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
match(_t,NOWAIT); _t = _t.getNextSibling(); break; } case NOCONSOLE: { AST tmp1296_AST_in = (AST)_t; match(_t,NOCONSOLE); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case VALUE: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1753: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VALUE||_t.getType()==TYPELESS_TOKEN)) { anyorvalue(_t); _t = _retTree; } else { break _loop1753; } } while (true); } state_end(_t); _t = _retTree; _t = __t1750;
match(_t,NOCONSOLE); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case VALUE: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1756: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VALUE||_t.getType()==TYPELESS_TOKEN)) { anyorvalue(_t); _t = _retTree; } else { break _loop1756; } } while (true); } state_end(_t); _t = _retTree; _t = __t1753;
public final void oscommandstate(AST _t) throws RecognitionException { AST oscommandstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OS400: { AST __t1730 = _t; AST tmp1273_AST_in = (AST)_t; match(_t,OS400); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SILENT: { AST tmp1274_AST_in = (AST)_t; match(_t,SILENT); _t = _t.getNextSibling(); break; } case NOWAIT: { AST tmp1275_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } case NOCONSOLE: { AST tmp1276_AST_in = (AST)_t; match(_t,NOCONSOLE); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case VALUE: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1733: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VALUE||_t.getType()==TYPELESS_TOKEN)) { anyorvalue(_t); _t = _retTree; } else { break _loop1733; } } while (true); } state_end(_t); _t = _retTree; _t = __t1730; _t = _t.getNextSibling(); break; } case BTOS: { AST __t1734 = _t; AST tmp1277_AST_in = (AST)_t; match(_t,BTOS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SILENT: { AST tmp1278_AST_in = (AST)_t; match(_t,SILENT); _t = _t.getNextSibling(); break; } case NOWAIT: { AST tmp1279_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } case NOCONSOLE: { AST tmp1280_AST_in = (AST)_t; match(_t,NOCONSOLE); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case VALUE: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1737: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VALUE||_t.getType()==TYPELESS_TOKEN)) { anyorvalue(_t); _t = _retTree; } else { break _loop1737; } } while (true); } state_end(_t); _t = _retTree; _t = __t1734; _t = _t.getNextSibling(); break; } case DOS: { AST __t1738 = _t; AST tmp1281_AST_in = (AST)_t; match(_t,DOS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SILENT: { AST tmp1282_AST_in = (AST)_t; match(_t,SILENT); _t = _t.getNextSibling(); break; } case NOWAIT: { AST tmp1283_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } case NOCONSOLE: { AST tmp1284_AST_in = (AST)_t; match(_t,NOCONSOLE); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case VALUE: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1741: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VALUE||_t.getType()==TYPELESS_TOKEN)) { anyorvalue(_t); _t = _retTree; } else { break _loop1741; } } while (true); } state_end(_t); _t = _retTree; _t = __t1738; _t = _t.getNextSibling(); break; } case MPE: { AST __t1742 = _t; AST tmp1285_AST_in = (AST)_t; match(_t,MPE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SILENT: { AST tmp1286_AST_in = (AST)_t; match(_t,SILENT); _t = _t.getNextSibling(); break; } case NOWAIT: { AST tmp1287_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } case NOCONSOLE: { AST tmp1288_AST_in = (AST)_t; match(_t,NOCONSOLE); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case VALUE: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1745: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VALUE||_t.getType()==TYPELESS_TOKEN)) { anyorvalue(_t); _t = _retTree; } else { break _loop1745; } } while (true); } state_end(_t); _t = _retTree; _t = __t1742; _t = _t.getNextSibling(); break; } case OS2: { AST __t1746 = _t; AST tmp1289_AST_in = (AST)_t; match(_t,OS2); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SILENT: { AST tmp1290_AST_in = (AST)_t; match(_t,SILENT); _t = _t.getNextSibling(); break; } case NOWAIT: { AST tmp1291_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } case NOCONSOLE: { AST tmp1292_AST_in = (AST)_t; match(_t,NOCONSOLE); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case VALUE: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1749: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VALUE||_t.getType()==TYPELESS_TOKEN)) { anyorvalue(_t); _t = _retTree; } else { break _loop1749; } } while (true); } state_end(_t); _t = _retTree; _t = __t1746; _t = _t.getNextSibling(); break; } case OSCOMMAND: { AST __t1750 = _t; AST tmp1293_AST_in = (AST)_t; match(_t,OSCOMMAND); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SILENT: { AST tmp1294_AST_in = (AST)_t; match(_t,SILENT); _t = _t.getNextSibling(); break; } case NOWAIT: { AST tmp1295_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } case NOCONSOLE: { AST tmp1296_AST_in = (AST)_t; match(_t,NOCONSOLE); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case VALUE: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1753: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VALUE||_t.getType()==TYPELESS_TOKEN)) { anyorvalue(_t); _t = _retTree; } else { break _loop1753; } } while (true); } state_end(_t); _t = _retTree; _t = __t1750; _t = _t.getNextSibling(); break; } case UNIX: { AST __t1754 = _t; AST tmp1297_AST_in = (AST)_t; match(_t,UNIX); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SILENT: { AST tmp1298_AST_in = (AST)_t; match(_t,SILENT); _t = _t.getNextSibling(); break; } case NOWAIT: { AST tmp1299_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } case NOCONSOLE: { AST tmp1300_AST_in = (AST)_t; match(_t,NOCONSOLE); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case VALUE: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1757: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VALUE||_t.getType()==TYPELESS_TOKEN)) { anyorvalue(_t); _t = _retTree; } else { break _loop1757; } } while (true); } state_end(_t); _t = _retTree; _t = __t1754; _t = _t.getNextSibling(); break; } case VMS: { AST __t1758 = _t; AST tmp1301_AST_in = (AST)_t; match(_t,VMS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SILENT: { AST tmp1302_AST_in = (AST)_t; match(_t,SILENT); _t = _t.getNextSibling(); break; } case NOWAIT: { AST tmp1303_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } case NOCONSOLE: { AST tmp1304_AST_in = (AST)_t; match(_t,NOCONSOLE); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case VALUE: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1761: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VALUE||_t.getType()==TYPELESS_TOKEN)) { anyorvalue(_t); _t = _retTree; } else { break _loop1761; } } while (true); } state_end(_t); _t = _retTree; _t = __t1758; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1140, 3076, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1140, 3076, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1140, 3076, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1140, 3076, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
if (global.debug) global.log("get expanded " + clasz + " in " + clasz.owner());
assert Debug.log("get expanded " + clasz + " in " + clasz.owner());
private Template getExpandedTemplate(Symbol clasz) { if (global.debug) global.log("get expanded " + clasz + " in " + clasz.owner()); Template template = (Template)expansions.get(clasz); if (template == null) { template = (Template)templates.remove(clasz); assert template != null : Debug.show(clasz); template = expandTemplate(clasz, expander.transform(template)); expansions.put(clasz, template); } return template; }
1156 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1156/858b174325c75316f5f838ce5876ac71514d9266/ExpandMixinsPhase.java/clean/sources/scalac/transformer/ExpandMixinsPhase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5035, 336, 17957, 2283, 12, 5335, 23268, 94, 13, 288, 202, 11231, 4015, 18, 1330, 2932, 588, 8406, 315, 397, 23268, 94, 397, 315, 316, 315, 397, 23268, 94, 18, 8443, 10663, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5035, 336, 17957, 2283, 12, 5335, 23268, 94, 13, 288, 202, 11231, 4015, 18, 1330, 2932, 588, 8406, 315, 397, 23268, 94, 397, 315, 316, 315, 397, 23268, 94, 18, 8443, 10663, 3639, ...
final String id = readRequiredFromRegistry(element, ATTRIBUTE_ID,
final String id = readRequired(element, ATTRIBUTE_ID,
private static final void readActionSetsFromRegistry( final IConfigurationElement[] configurationElements, final int configurationElementCount, final CommandManager commandManager, final IHandlerService handlerService, final BindingManager bindingManager, final CommandImageManager commandImageManager, final IMenuService menuService) { final List warningsToLog = new ArrayList(1); for (int i = 0; i < configurationElementCount; i++) { final IConfigurationElement element = configurationElements[i]; // Read the action set identifier. final String id = readRequiredFromRegistry(element, ATTRIBUTE_ID, warningsToLog, "Action sets need an id"); //$NON-NLS-1$ if (id == null) continue; // Read the label. final String label = readRequiredFromRegistry(element, ATTRIBUTE_LABEL, warningsToLog, "Actions set need a label", //$NON-NLS-1$ id); if (label == null) continue; // Read the description. final String description = readOptionalFromRegistry(element, ATTRIBUTE_DESCRIPTION); // Read whether the action set should be visible by default. final boolean visible = readBooleanFromRegistry(element, ATTRIBUTE_VISIBLE, false); // Read all of the child elements. final SReference[] references = readActionsAndMenusFromRegistry( element, id, warningsToLog, commandManager, handlerService, bindingManager, commandImageManager, menuService, null, null); if (references == null) { continue; } // Define the action set. final SActionSet actionSet = menuService.getActionSet(id); actionSet.define(label, description, visible, references); } logWarnings( warningsToLog, "Warnings while parsing the action sets from the 'org.eclipse.ui.actionSets' extension point"); //$NON-NLS-1$ }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/539b29bd9f4ed0020b6fce0d726b8d740d87469d/LegacyActionPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/LegacyActionPersistence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 727, 918, 855, 1803, 2785, 1265, 4243, 12, 1082, 202, 6385, 467, 1750, 1046, 8526, 1664, 3471, 16, 1082, 202, 6385, 509, 1664, 1046, 1380, 16, 1082, 202, 6385, 3498, 1318,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 918, 855, 1803, 2785, 1265, 4243, 12, 1082, 202, 6385, 467, 1750, 1046, 8526, 1664, 3471, 16, 1082, 202, 6385, 509, 1664, 1046, 1380, 16, 1082, 202, 6385, 3498, 1318,...
match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1724; _t = _t.getNextSibling(); break; } case 3: case INTO: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INTO: { AST __t1726 = _t; AST tmp1834_AST_in = (AST)_t;
public final void compilestate(AST _t) throws RecognitionException { AST compilestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1717 = _t; AST tmp1828_AST_in = (AST)_t; match(_t,COMPILE); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { _loop1766: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATTRSPACE: { AST __t1719 = _t; AST tmp1829_AST_in = (AST)_t; match(_t,ATTRSPACE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1721 = _t; AST tmp1830_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1721; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1719; _t = _t.getNextSibling(); break; } case NOATTRSPACE: { AST tmp1831_AST_in = (AST)_t; match(_t,NOATTRSPACE); _t = _t.getNextSibling(); break; } case SAVE: { AST __t1722 = _t; AST tmp1832_AST_in = (AST)_t; match(_t,SAVE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1724 = _t; AST tmp1833_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1724; _t = _t.getNextSibling(); break; } case 3: case INTO: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INTO: { AST __t1726 = _t; AST tmp1834_AST_in = (AST)_t; match(_t,INTO); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t1726; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1722; _t = _t.getNextSibling(); break; } case LISTING: { AST __t1727 = _t; AST tmp1835_AST_in = (AST)_t; match(_t,LISTING); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { _loop1731: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case PAGESIZE_KW: { AST __t1729 = _t; AST tmp1836_AST_in = (AST)_t; match(_t,PAGESIZE_KW); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1729; _t = _t.getNextSibling(); break; } case PAGEWIDTH: { AST __t1730 = _t; AST tmp1837_AST_in = (AST)_t; match(_t,PAGEWIDTH); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1730; _t = _t.getNextSibling(); break; } default: { break _loop1731; } } } while (true); } _t = __t1727; _t = _t.getNextSibling(); break; } case XCODE: { AST __t1732 = _t; AST tmp1838_AST_in = (AST)_t; match(_t,XCODE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1732; _t = _t.getNextSibling(); break; } case XREF: { AST __t1733 = _t; AST tmp1839_AST_in = (AST)_t; match(_t,XREF); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1733; _t = _t.getNextSibling(); break; } case STRINGXREF: { AST __t1735 = _t; AST tmp1840_AST_in = (AST)_t; match(_t,STRINGXREF); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1735; _t = _t.getNextSibling(); break; } case STREAMIO: { AST __t1737 = _t; AST tmp1841_AST_in = (AST)_t; match(_t,STREAMIO); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1739 = _t; AST tmp1842_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1739; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1737; _t = _t.getNextSibling(); break; } case MINSIZE: { AST __t1740 = _t; AST tmp1843_AST_in = (AST)_t; match(_t,MINSIZE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1742 = _t; AST tmp1844_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1742; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1740; _t = _t.getNextSibling(); break; } case LANGUAGES: { AST __t1743 = _t; AST tmp1845_AST_in = (AST)_t; match(_t,LANGUAGES); _t = _t.getFirstChild(); AST tmp1846_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALUE: case TYPELESS_TOKEN: { compile_lang(_t); _t = _retTree; { _loop1746: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1847_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); compile_lang(_t); _t = _retTree; } else { break _loop1746; } } while (true); } break; } case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1848_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t1743; _t = _t.getNextSibling(); break; } case TEXTSEGGROW: { AST __t1747 = _t; AST tmp1849_AST_in = (AST)_t; match(_t,TEXTSEGGROW); _t = _t.getFirstChild(); AST __t1748 = _t; AST tmp1850_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1748; _t = _t.getNextSibling(); _t = __t1747; _t = _t.getNextSibling(); break; } case DEBUGLIST: { AST __t1749 = _t; AST tmp1851_AST_in = (AST)_t; match(_t,DEBUGLIST); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t1749; _t = _t.getNextSibling(); break; } case DEFAULTNOXLATE: { AST __t1750 = _t; AST tmp1852_AST_in = (AST)_t; match(_t,DEFAULTNOXLATE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1752 = _t; AST tmp1853_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1752; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1750; _t = _t.getNextSibling(); break; } case GENERATEMD5: { AST __t1753 = _t; AST tmp1854_AST_in = (AST)_t; match(_t,GENERATEMD5); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1755 = _t; AST tmp1855_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1755; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1753; _t = _t.getNextSibling(); break; } case PREPROCESS: { AST __t1756 = _t; AST tmp1856_AST_in = (AST)_t; match(_t,PREPROCESS); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t1756; _t = _t.getNextSibling(); break; } case USEREVVIDEO: { AST __t1757 = _t; AST tmp1857_AST_in = (AST)_t; match(_t,USEREVVIDEO); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1759 = _t; AST tmp1858_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1759; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1757; _t = _t.getNextSibling(); break; } case USEUNDERLINE: { AST __t1760 = _t; AST tmp1859_AST_in = (AST)_t; match(_t,USEUNDERLINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1762 = _t; AST tmp1860_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1762; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1760; _t = _t.getNextSibling(); break; } case V6FRAME: { AST __t1763 = _t; AST tmp1861_AST_in = (AST)_t; match(_t,V6FRAME); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1765 = _t; AST tmp1862_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1765; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1763; _t = _t.getNextSibling(); break; } case NOERROR_KW: { AST tmp1863_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } default: { break _loop1766; } } } while (true); } state_end(_t); _t = _retTree; _t = __t1717; _t = _t.getNextSibling(); _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, 1161, 14849, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1161, 14849, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1161, 14849, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1161, 14849, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
showError(frame, message + "\n" + StringUtils.printException(e));
String title = "Error"; if (frame == null) title = title + " - " + APP_NAME; JOptionPane.showMessageDialog(frame, message, title, JOptionPane.ERROR_MESSAGE);
public static void showError(Component frame, String message, Exception e) { showError(frame, message + "\n" + StringUtils.printException(e)); }
48906 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48906/1f50ffb219183ddaf94720a4aba453e11f412425/SimpleDialogs.java/buggy/src/net/sf/gogui/gui/SimpleDialogs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2405, 668, 12, 1841, 2623, 16, 514, 883, 16, 1185, 425, 13, 565, 288, 3639, 514, 2077, 273, 315, 668, 14432, 309, 261, 3789, 422, 446, 13, 2077, 273, 2077, 397, 315, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2405, 668, 12, 1841, 2623, 16, 514, 883, 16, 1185, 425, 13, 565, 288, 3639, 514, 2077, 273, 315, 668, 14432, 309, 261, 3789, 422, 446, 13, 2077, 273, 2077, 397, 315, 3...
def = testF2(file, offset);
def = testCtrl_F3(file, offset);
public void testCPPSpecDeclsDefs() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("int a; // defines a\n"); //$NON-NLS-1$ buffer.append("extern const int c = 1; // defines c\n"); //$NON-NLS-1$ buffer.append("int f(int x) { return x+a; } // defines f and defines x\n"); //$NON-NLS-1$ buffer.append("struct S { int a; int b; }; // defines S, S::a, and S::b\n"); //$NON-NLS-1$ buffer.append("struct X { // defines X\n"); //$NON-NLS-1$ buffer.append("int x; // defines nonstatic data member x\n"); //$NON-NLS-1$ buffer.append("};\n"); //$NON-NLS-1$ buffer.append("enum { up, down }; // defines up and down\n"); //$NON-NLS-1$ buffer.append("struct X anX; // defines anX\n"); //$NON-NLS-1$ buffer.append("extern int a; // declares a\n"); //$NON-NLS-1$ buffer.append("extern const int c; // declares c\n"); //$NON-NLS-1$ buffer.append("int f(int); // declares f\n"); //$NON-NLS-1$ buffer.append("struct S; // declares S\n"); //$NON-NLS-1$ buffer.append("typedef int Int; // declares Int\n"); //$NON-NLS-1$ buffer.append("extern struct X anotherX; // declares anotherX\n"); //$NON-NLS-1$ String code = buffer.toString(); IFile file = importFile("testCPPSpecDeclsDefs.c", code); //$NON-NLS-1$ int offset = code.indexOf("a; // defines a"); //$NON-NLS-1$ IASTNode def = testF2(file, offset); IASTNode decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 4); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 4); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("c = 1; // defines c"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "c"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 37); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "c"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 37); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("f(int x) { return x+a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "f"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 61); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "f"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 61); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("x) { return x+a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 67); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 67); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("x+a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 67); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 67); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("x+a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 67); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 67); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 4); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 4); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("S { int a; int b; }; // defines S, S::a, and S::b"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "S"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 120); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "S"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 120); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("a; int b; }; // defines S, S::a, and S::b"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 128); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 128); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("b; }; // defines S, S::a, and S::b"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "b"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 135); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "b"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 135); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("X { // defines X"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 177); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 177); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("x; // defines nonstatic data member x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 198); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 198); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("up, down }; // defines up and down"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "up"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 246); assertEquals(((ASTNode)decl).getLength(), 2); assertEquals(((IASTName)def).toString(), "up"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 246); assertEquals(((ASTNode)def).getLength(), 2); offset = code.indexOf("down }; // defines up and down"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "down"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 250); assertEquals(((ASTNode)decl).getLength(), 4); assertEquals(((IASTName)def).toString(), "down"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 250); assertEquals(((ASTNode)def).getLength(), 4); offset = code.indexOf("X anX; // defines anX"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 177); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 177); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("anX; // defines anX"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "anX"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 290); assertEquals(((ASTNode)decl).getLength(), 3); assertEquals(((IASTName)def).toString(), "anX"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 290); assertEquals(((ASTNode)def).getLength(), 3); offset = code.indexOf("a; // declares a"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 4); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 4); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("c; // declares c"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "c"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 37); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "c"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 37); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("f(int); // declares f"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "f"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 61); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "f"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 61); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("S; // declares S"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "S"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 120); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "S"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 120); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("Int; // declares Int"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "Int"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 434); assertEquals(((ASTNode)decl).getLength(), 3); assertEquals(((IASTName)def).toString(), "Int"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 434); assertEquals(((ASTNode)def).getLength(), 3); offset = code.indexOf("X anotherX; // declares anotherX"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 177); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 177); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("anotherX; // declares anotherX"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); try { assertNull(def); // TODO raised bug 96689 assertTrue(false); // try/catch/assertTrue(false) added to alert the tester when this test passes! } catch (AssertionFailedError e) {} assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "anotherX"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 471); assertEquals(((ASTNode)decl).getLength(), 8); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a80f774ac034fed44b578ede9c708e773e1fabcf/CPPSelectionTestsCTagsIndexer.java/clean/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CPPSelectionTestsCTagsIndexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4258, 52, 1990, 1799, 3251, 14554, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 3639, 1613, 18, 6923, 2932, 474, 279, 31, 368, 11164, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4258, 52, 1990, 1799, 3251, 14554, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 3639, 1613, 18, 6923, 2932, 474, 279, 31, 368, 11164, 279, ...
}
}
public List getAccessControlEntries(CmsRequestContext context, CmsResource resource, boolean getInherited) throws CmsException { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); List result = null; try { result = m_driverManager.getAccessControlEntries(dbc, resource, getInherited); } catch (Exception e) { dbc.report(null, null, e); } finally { dbc.clear(); } return result; }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/a7ffa3c192d7068f584b0a3a844b88bdb2d3145a/CmsSecurityManager.java/clean/src/org/opencms/db/CmsSecurityManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 336, 16541, 5400, 12, 4747, 21426, 819, 16, 7630, 1058, 16, 1250, 7854, 3721, 329, 13, 565, 1216, 11228, 288, 3639, 30670, 9881, 273, 312, 67, 1966, 29871, 18, 588, 4331, 1042,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 16541, 5400, 12, 4747, 21426, 819, 16, 7630, 1058, 16, 1250, 7854, 3721, 329, 13, 565, 1216, 11228, 288, 3639, 30670, 9881, 273, 312, 67, 1966, 29871, 18, 588, 4331, 1042,...
public boolean equals( Object obj ) { if ( obj == null || obj instanceof DataSourceAndDataSet == false ) return false; if ( this == obj ) return true; IBaseDataSourceDesign dataSourceDesign2 = ( (DataSourceAndDataSet) obj ).dataSourceDesign; IBaseDataSetDesign dataSetDesign2 = ( (DataSourceAndDataSet) obj ).dataSetDesign; Collection parameterBindings2 = ( (DataSourceAndDataSet) obj ).parameterBindings; int cacheCount2 = ( (DataSourceAndDataSet) obj ).cacheCount; if ( this.dataSourceDesign == dataSourceDesign2 ) { if ( this.dataSetDesign == dataSetDesign2 ) { if ( isEqualParameterBindings( this.parameterBindings, parameterBindings2 ) ) return true; } else if ( this.dataSetDesign == null || dataSetDesign2 == null ) { return false; } } else if ( this.dataSourceDesign == null || dataSourceDesign2 == null ) { return false; } else { if ( ( this.dataSetDesign != dataSetDesign2 ) && ( this.dataSetDesign == null || dataSetDesign2 == null ) ) return false; } // data source compare if ( isEqualString( dataSourceDesign.getBeforeOpenScript( ), dataSourceDesign2.getBeforeOpenScript( ) ) == false || isEqualString( dataSourceDesign.getAfterOpenScript( ), dataSourceDesign2.getAfterOpenScript( ) ) == false || isEqualString( dataSourceDesign.getBeforeCloseScript( ), dataSourceDesign2.getBeforeCloseScript( ) ) == false || isEqualString( dataSourceDesign.getAfterCloseScript( ), dataSourceDesign2.getAfterCloseScript( ) ) == false ) return false; if ( dataSourceDesign instanceof IOdaDataSourceDesign && dataSourceDesign2 instanceof IOdaDataSourceDesign ) { IOdaDataSourceDesign dataSource = (IOdaDataSourceDesign) dataSourceDesign; IOdaDataSourceDesign dataSource2 = (IOdaDataSourceDesign) dataSourceDesign2; if ( isEqualString( dataSource.getExtensionID( ), dataSource2.getExtensionID( ) ) == false ) return false; if ( isEqualProps( dataSource.getPublicProperties( ), dataSource2.getPublicProperties( ) ) == false || isEqualProps( dataSource.getPrivateProperties( ), dataSource2.getPrivateProperties( ) ) == false ) return false; } else if ( dataSourceDesign instanceof IScriptDataSourceDesign && dataSourceDesign2 instanceof IScriptDataSourceDesign ) { IScriptDataSourceDesign dataSource = (IScriptDataSourceDesign) dataSourceDesign; IScriptDataSourceDesign dataSource2 = (IScriptDataSourceDesign) dataSourceDesign2; if ( isEqualString( dataSource.getOpenScript( ), dataSource2.getOpenScript( ) ) == false || isEqualString( dataSource.getCloseScript( ), dataSource2.getCloseScript( ) ) == false ) return false; } // data set compare if ( isEqualString( dataSetDesign.getBeforeOpenScript( ), dataSetDesign2.getBeforeOpenScript( ) ) == false || isEqualString( dataSetDesign.getAfterOpenScript( ), dataSetDesign2.getAfterOpenScript( ) ) == false || isEqualString( dataSetDesign.getBeforeCloseScript( ), dataSetDesign2.getBeforeCloseScript( ) ) == false || isEqualString( dataSetDesign.getAfterCloseScript( ), dataSetDesign2.getAfterCloseScript( ) ) == false ) return false; if ( isEqualComputedColumns( dataSetDesign.getComputedColumns( ), dataSetDesign2.getComputedColumns( ) ) == false || isEqualFilters( dataSetDesign.getFilters( ), dataSetDesign2.getFilters( ) ) == false || isEqualParameterBindings( dataSetDesign.getInputParamBindings( ), dataSetDesign2.getInputParamBindings( ) ) == false || isEqualParameters( dataSetDesign.getParameters( ), dataSetDesign2.getParameters( ) ) == false || isEqualResultHints( dataSetDesign.getResultSetHints( ), dataSetDesign2.getResultSetHints( ) ) == false ) return false; if ( dataSetDesign instanceof IOdaDataSetDesign && dataSetDesign2 instanceof IOdaDataSetDesign ) { IOdaDataSetDesign dataSet = (IOdaDataSetDesign) dataSetDesign; IOdaDataSetDesign dataSet2 = (IOdaDataSetDesign) dataSetDesign2; if ( isEqualString( dataSet.getQueryText( ), dataSet2.getQueryText( ) ) == false || isEqualString( dataSet.getExtensionID( ), dataSet2.getExtensionID( ) ) == false || isEqualString( dataSet.getPrimaryResultSetName( ), dataSet2.getPrimaryResultSetName( ) ) == false || isEqualProps( dataSet.getPublicProperties( ), dataSet2.getPublicProperties( ) ) == false || isEqualProps( dataSet.getPrivateProperties( ), dataSet2.getPrivateProperties( ) ) == false ) return false; } else if ( dataSetDesign instanceof IScriptDataSetDesign && dataSetDesign2 instanceof IScriptDataSetDesign ) { IScriptDataSetDesign dataSet = (IScriptDataSetDesign) dataSetDesign; IScriptDataSetDesign dataSet2 = (IScriptDataSetDesign) dataSetDesign2; if ( isEqualString( dataSet.getOpenScript( ), dataSet2.getOpenScript( ) ) == false || isEqualString( dataSet.getFetchScript( ), dataSet2.getFetchScript( ) ) == false || isEqualString( dataSet.getCloseScript( ), dataSet2.getCloseScript( ) ) == false || isEqualString( dataSet.getDescribeScript( ), dataSet2.getDescribeScript( ) ) == false ) return false; } else { return false; } // parameter bindings compare if ( this.isEqualParameterBindings( this.parameterBindings, parameterBindings2 ) == false ) return false; if ( this.cacheCount != cacheCount2 ) return false; return true; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ba0d1531f75bdde405266bd9f08e48a2c2ec8cd5/DataSourceAndDataSet.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceAndDataSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1606, 12, 1033, 1081, 262, 202, 95, 202, 202, 430, 261, 1081, 422, 446, 747, 1081, 1276, 12806, 1876, 13676, 422, 629, 262, 1082, 202, 2463, 629, 31, 202, 202, 430, 261,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1606, 12, 1033, 1081, 262, 202, 95, 202, 202, 430, 261, 1081, 422, 446, 747, 1081, 1276, 12806, 1876, 13676, 422, 629, 262, 1082, 202, 2463, 629, 31, 202, 202, 430, 261,...
return new DiagramState(getDiagramEditPart());
setResult(new DiagramState(getDiagramEditPart()));
public Object run() { return new DiagramState(getDiagramEditPart()); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/b4c938d5d97221f8736d44de85b5ab8ff289c7cc/AbstractTestBase.java/buggy/org.eclipse.gmf.runtime/tests/org.eclipse.gmf.tests.runtime.diagram.ui/src/org/eclipse/gmf/tests/runtime/diagram/ui/AbstractTestBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1033, 1086, 1435, 288, 9506, 202, 2463, 394, 14539, 1940, 1119, 12, 588, 14058, 1940, 4666, 1988, 10663, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1033, 1086, 1435, 288, 9506, 202, 2463, 394, 14539, 1940, 1119, 12, 588, 14058, 1940, 4666, 1988, 10663, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
private void convertElement(Element element) throws SAXException { // Does this need to be the actual base URI, unaffected by xml:base???? locator.setSystemId(element.getBaseURI()); ParentNode parentNode = element.getParent(); Element parent = null; if (parentNode instanceof Element) { parent = (Element) parentNode; } // start prefix mapping for (int i = 0; i < element.getNamespaceDeclarationCount(); i++) { String prefix = element.getNamespacePrefix(i); convertNamespace(element, prefix); /* contentHandler.startPrefixMapping(prefix, element.getNamespaceURI(prefix)); */ } if (parent != null) { // now handle element's prefix if not declared on ancestor String prefix = element.getNamespacePrefix(); if (!element.getNamespaceURI(prefix) .equals(parent.getNamespaceURI(prefix))) {// System.err.println(prefix + " mapped to "); // XXX contentHandler.startPrefixMapping(prefix, element.getNamespaceURI(prefix)); } // Handle attributes' prefixes if not declared on ancestor for (int i = 0; i < element.getAttributeCount(); i++) { Attribute att = element.getAttribute(i); String attPrefix = att.getNamespacePrefix(); if (!element.getNamespaceURI(attPrefix) .equals(parent.getNamespaceURI(attPrefix)) && !element.getNamespacePrefix() .equals(attPrefix) // SAX never calls startPrefixMapping for the xml prefix && !"xml".equals(attPrefix)) {// System.err.println(attPrefix + " mapped to "); // XXX contentHandler.startPrefixMapping(attPrefix, element.getNamespaceURI(attPrefix)); } } } else { // declare all prefixes String prefix = element.getNamespacePrefix(); if (!prefix.equals("") && !"xml".equals(prefix)) {// System.err.println(prefix + " mapped to "); // XXX contentHandler.startPrefixMapping(prefix, element.getNamespaceURI()); } // Handle attributes' prefixes if not declared on ancestor for (int i = 0; i < element.getAttributeCount(); i++) { Attribute att = element.getAttribute(i); String attPrefix = att.getNamespacePrefix(); if ("xml".equals(attPrefix)) { continue; } else if (!attPrefix.equals("") && !attPrefix.equals(element.getNamespacePrefix())){// System.err.println(attPrefix + " mapped to "); // XXX contentHandler.startPrefixMapping(attPrefix, att.getNamespaceURI()); } } } // add attributes AttributesImpl saxAttributes = new AttributesImpl(); for (int i = 0; i < element.getAttributeCount(); i++) { Attribute attribute = element.getAttribute(i); saxAttributes.addAttribute(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getQualifiedName(), getSAXType(attribute), attribute.getValue()); } contentHandler.startElement( element.getNamespaceURI(), element.getLocalName(), element.getQualifiedName(), saxAttributes); for (int i = 0; i < element.getChildCount(); i++) { process(element.getChild(i)); } contentHandler.endElement(element.getNamespaceURI(), element.getLocalName(), element.getQualifiedName()); // end prefix mappings for (int i = 0; i < element.getNamespaceDeclarationCount(); i++) { String prefix = element.getNamespacePrefix(i); if ("xml".equals(prefix)) continue; contentHandler.endPrefixMapping(prefix); } if (parent != null) { // Now handle element's prefix if not declared on ancestor String prefix = element.getNamespacePrefix(); if (!element.getNamespaceURI(prefix) .equals(parent.getNamespaceURI(prefix))) { contentHandler.endPrefixMapping(prefix); } // Handle attributes' prefixes if not declared on ancestor for (int i = 0; i < element.getAttributeCount(); i++) { Attribute att = element.getAttribute(i); String attPrefix = att.getNamespacePrefix(); if (!element.getNamespaceURI(attPrefix) .equals(parent.getNamespaceURI(attPrefix)) && !element.getNamespacePrefix().equals( attPrefix) && !"xml".equals(attPrefix)) { contentHandler.endPrefixMapping(attPrefix); } } } else { // undeclare all prefixes String prefix = element.getNamespacePrefix(); if (!prefix.equals("") && !"xml".equals(prefix)) { contentHandler.endPrefixMapping(prefix); } // Handle attributes' prefixes if not declared on ancestor for (int i = 0; i < element.getAttributeCount(); i++) { Attribute att = element.getAttribute(i); String attPrefix = att.getNamespacePrefix(); if (!attPrefix.equals("") && !attPrefix .equals(element.getNamespacePrefix()) && !"xml".equals(attPrefix)) { contentHandler.endPrefixMapping(attPrefix); } } } }
626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/626/18fa2619e08cf769b9f60ef1697f1a0d947c7c34/SAXConverter.java/buggy/src/nu/xom/converters/SAXConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 6283, 1046, 12, 1046, 2956, 13, 15069, 55, 2501, 503, 95, 759, 3244, 395, 76, 291, 14891, 869, 70, 546, 73, 18672, 1969, 3098, 16, 318, 20119, 1637, 2902, 30, 1969, 14646, 14646, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 6283, 1046, 12, 1046, 2956, 13, 15069, 55, 2501, 503, 95, 759, 3244, 395, 76, 291, 14891, 869, 70, 546, 73, 18672, 1969, 3098, 16, 318, 20119, 1637, 2902, 30, 1969, 14646, 14646, ...
System.exit(0); }
System.exit(0); }
public void windowClosing(WindowEvent e) { System.exit(0); }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b0fa2f56cd2dcc90452b768e6b38187cfb8c30eb/AddressBook.java/buggy/grendel/addressbook/AddressBook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2742, 15745, 12, 3829, 1133, 425, 13, 288, 5411, 2332, 18, 8593, 12, 20, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2742, 15745, 12, 3829, 1133, 425, 13, 288, 5411, 2332, 18, 8593, 12, 20, 1769, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
IOException { SessionImpl s = (SessionImpl) repo.login(new SimpleCredentials(this.conf.getLogin(), this.conf.getPassword().toCharArray()), this.wspName); SAXTransformerFactory stf = (SAXTransformerFactory) SAXTransformerFactory.newInstance(); File temp = new File(this.conf.getWorkFolder() + "wsp.xml"); try { TransformerHandler th = stf.newTransformerHandler(); th.setResult(new StreamResult(new FileOutputStream(temp))); th.getTransformer().setParameter(OutputKeys.METHOD, "xml"); th.getTransformer().setParameter(OutputKeys.ENCODING, "UTF-8"); th.getTransformer().setParameter(OutputKeys.INDENT, "no"); new SysViewSAXEventGenerator( s.getRootNode(), false, false, th) { protected void process(Node node, int level) throws RepositoryException, SAXException { if (!"/jcr:system".equals(node.getPath())) { super.process(node, level); } } }.serialize(); h.write("export"+ called +".xml", temp); } catch (TransformerException te) { throw new RepositoryException(te); } catch (SAXException se) { throw new RepositoryException(se); } finally { temp.delete(); called += 1; }
IOException { SessionImpl s = (SessionImpl) this.getRepo().login(this.getCredentials(), this.wspName); SAXTransformerFactory stf = (SAXTransformerFactory) SAXTransformerFactory.newInstance(); File temp = new File(this.getConf().getWorkFolder() + "wsp.xml"); try { TransformerHandler th = stf.newTransformerHandler(); th.setResult(new StreamResult(new FileOutputStream(temp))); th.getTransformer().setParameter(OutputKeys.METHOD, "xml"); th.getTransformer().setParameter(OutputKeys.ENCODING, "UTF-8"); th.getTransformer().setParameter(OutputKeys.INDENT, "no"); new SysViewSAXEventGenerator( s.getRootNode(), false, false, th) { protected void process(Node node, int level) throws RepositoryException, SAXException { if (!"/jcr:system".equals(node.getPath())) { super.process(node, level); } } }.serialize(); h.write("export_"+ this.wspName +".xml", temp); } catch (TransformerException te) { throw new RepositoryException(te); } catch (SAXException se) { throw new RepositoryException(se); } finally { temp.delete(); }
public void backup(BackupIOHandler h) throws RepositoryException, IOException { SessionImpl s = (SessionImpl) repo.login(new SimpleCredentials(this.conf.getLogin(), this.conf.getPassword().toCharArray()), this.wspName); SAXTransformerFactory stf = (SAXTransformerFactory) SAXTransformerFactory.newInstance(); File temp = new File(this.conf.getWorkFolder() + "wsp.xml"); try { TransformerHandler th = stf.newTransformerHandler(); th.setResult(new StreamResult(new FileOutputStream(temp))); th.getTransformer().setParameter(OutputKeys.METHOD, "xml"); th.getTransformer().setParameter(OutputKeys.ENCODING, "UTF-8"); th.getTransformer().setParameter(OutputKeys.INDENT, "no"); new SysViewSAXEventGenerator( s.getRootNode(), false, false, th) { protected void process(Node node, int level) throws RepositoryException, SAXException { if (!"/jcr:system".equals(node.getPath())) { super.process(node, level); } } }.serialize(); h.write("export"+ called +".xml", temp); } catch (TransformerException te) { throw new RepositoryException(te); } catch (SAXException se) { throw new RepositoryException(se); } finally { temp.delete(); called += 1; } }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/a9dbc7000807a0307409af65664df04ae0ae298b/WorkspaceBackup.java/buggy/contrib/backup/src/main/java/org/apache/jackrabbit/backup/WorkspaceBackup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5114, 12, 6248, 4294, 1503, 366, 13, 1216, 13367, 16, 5411, 1860, 288, 4202, 3877, 2828, 272, 273, 261, 2157, 2828, 13, 3538, 18, 5819, 12, 2704, 4477, 6163, 12, 2211, 18, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5114, 12, 6248, 4294, 1503, 366, 13, 1216, 13367, 16, 5411, 1860, 288, 4202, 3877, 2828, 272, 273, 261, 2157, 2828, 13, 3538, 18, 5819, 12, 2704, 4477, 6163, 12, 2211, 18, 39...
private boolean processAdditions(ContributionManager mgr, MenuAdditionCacheEntry cache) { int insertionIndex = getInsertionIndex(mgr, cache.getUri()); if (insertionIndex == -1) return false; // can't process (yet) // Get the additions List ciList = new ArrayList(); cache.getContributionItems(ciList); // If we have any then add them at the correct location if (ciList.size() > 0) { for (Iterator ciIter = ciList.iterator(); ciIter .hasNext();) { IContributionItem ici = (IContributionItem) ciIter.next(); // Register for 'visibleWhen' handling Expression visibleWhen = cache.getVisibleWhenForItem(ici); if (visibleWhen != null) { menuAuthority.addContribution(new MenuActivation(ici, visibleWhen, this)); } mgr.insert(insertionIndex++, ici); } } return true; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/7708c9aa128d7f727df6c085dc73634c29372cac/WorkbenchMenuService.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/WorkbenchMenuService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1207, 986, 5029, 12, 442, 4027, 1318, 13333, 16, 9809, 30296, 27630, 1247, 13, 288, 202, 202, 474, 12626, 1016, 273, 336, 29739, 1016, 12, 13552, 16, 1247, 18, 588, 3006,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 986, 5029, 12, 442, 4027, 1318, 13333, 16, 9809, 30296, 27630, 1247, 13, 288, 202, 202, 474, 12626, 1016, 273, 336, 29739, 1016, 12, 13552, 16, 1247, 18, 588, 3006,...
myMain.dispatch(msg, receiverID);
myPlatform.dispatch(msg, receiverID);
private void unicastPostMessage(ACLMessage msg, AID receiverID) { try { if(livesHere(receiverID)) { // Dispatch it through the MainContainerProxy myMain.dispatch(msg, receiverID); } else { // Dispatch it through the ACC myACC.dispatch(msg, receiverID); } } catch(NotFoundException nfe) { notifyFailureToSender(msg, new InternalError("Agent not found: " + nfe.getMessage())); } }
5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/dc83e3ac14a2d96ed15f7d33eac7fe3128b90daa/AgentContainerImpl.java/buggy/src/jade/core/AgentContainerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 640, 12544, 3349, 1079, 12, 9486, 1079, 1234, 16, 432, 734, 5971, 734, 13, 288, 565, 775, 288, 1377, 309, 12, 80, 3606, 26715, 12, 24454, 734, 3719, 288, 202, 759, 11552, 518...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 640, 12544, 3349, 1079, 12, 9486, 1079, 1234, 16, 432, 734, 5971, 734, 13, 288, 565, 775, 288, 1377, 309, 12, 80, 3606, 26715, 12, 24454, 734, 3719, 288, 202, 759, 11552, 518...
if ( !mappedChildPlugins.containsKey( constructPluginKey( plugin ) ) )
String pluginKey = constructPluginKey( plugin ); if ( !mappedChildPlugins.containsKey( pluginKey ) )
private void assemblePluginManagementInheritance( Model child, Model parent ) { Build parentBuild = parent.getBuild(); Build childBuild = child.getBuild(); if ( childBuild == null ) { if ( parentBuild != null ) { child.setBuild( parentBuild ); } else { childBuild = new Build(); } } else { PluginManagement parentPluginMgmt = parentBuild.getPluginManagement(); PluginManagement childPluginMgmt = childBuild.getPluginManagement(); if ( parentPluginMgmt != null ) { if ( childPluginMgmt == null ) { childBuild.setPluginManagement( parentPluginMgmt ); } else { List childPlugins = childPluginMgmt.getPlugins(); Map mappedChildPlugins = new TreeMap(); for ( Iterator it = childPlugins.iterator(); it.hasNext(); ) { Plugin plugin = (Plugin) it.next(); mappedChildPlugins.put( constructPluginKey( plugin ), plugin ); } for ( Iterator it = parentPluginMgmt.getPlugins().iterator(); it.hasNext(); ) { Plugin plugin = (Plugin) it.next(); if ( !mappedChildPlugins.containsKey( constructPluginKey( plugin ) ) ) { childPluginMgmt.addPlugin( plugin ); } else { Plugin childPlugin = (Plugin) mappedChildPlugins.get( constructPluginKey( plugin ) ); if ( childPlugin.getVersion() == null ) { childPlugin.setVersion( childPlugin.getVersion() ); } Map mappedChildGoals = new TreeMap(); for ( Iterator itGoals = childPlugin.getGoals().iterator(); itGoals.hasNext(); ) { Goal goal = (Goal) itGoals.next(); mappedChildGoals.put( goal.getId(), goal ); } for ( Iterator itGoals = plugin.getGoals().iterator(); itGoals.hasNext(); ) { Goal parentGoal = (Goal) itGoals.next(); Goal childGoal = (Goal) mappedChildGoals.get( parentGoal.getId() ); if ( childGoal == null ) { childPlugin.addGoal( parentGoal ); } else { Xpp3Dom childDom = (Xpp3Dom) childGoal.getConfiguration(); Xpp3Dom parentDom = (Xpp3Dom) parentGoal.getConfiguration(); childGoal.setConfiguration( Xpp3Dom.mergeXpp3Dom( childDom, parentDom ) ); } } } } } } } }
48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/7d7c4ed4aacf5a96e4ebed45faa6773f594cf819/DefaultModelInheritanceAssembler.java/buggy/maven-project/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 19540, 3773, 10998, 28255, 12, 3164, 1151, 16, 3164, 982, 262, 565, 288, 3639, 3998, 982, 3116, 273, 982, 18, 588, 3116, 5621, 3639, 3998, 1151, 3116, 273, 1151, 18, 588, 3116,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19540, 3773, 10998, 28255, 12, 3164, 1151, 16, 3164, 982, 262, 565, 288, 3639, 3998, 982, 3116, 273, 982, 18, 588, 3116, 5621, 3639, 3998, 1151, 3116, 273, 1151, 18, 588, 3116,...
if (tcd.getVersionsSupported()[k].compareTo(version) >= 0)
if (tcd.getVersionsSupported()[k].equals(version))
public boolean shouldBeVisibleForToolchain(String id, String version) { // if no toolchains specified then always return true if (toolchainSet.size() == 0) return true; Iterator iterator = toolchainSet.iterator(); while (iterator.hasNext()) { ToolchainData tcd = (ToolchainData) iterator.next(); // look for toolchain with same id if (tcd.getId().equals(id)) { // if we don't check versions then we're done if (version == null) return true; // does the toolchain have a compatible version? for (int k = 0; k < tcd.getVersionsSupported().length; k++) { // TODO: implement version support - should this check for an exact match? // An older version of a tool-chain could use a different custom page // than a newer version. if (tcd.getVersionsSupported()[k].compareTo(version) >= 0) { return true; } } } } return false; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/03c8b2fa41e90ac225314481a29cc4fd4066fdf5/MBSCustomPageData.java/buggy/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSCustomPageData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1410, 1919, 6207, 1290, 6364, 5639, 12, 780, 612, 16, 514, 1177, 13, 202, 95, 202, 202, 759, 309, 1158, 5226, 23060, 1269, 1508, 3712, 327, 638, 202, 202, 430, 261, 6738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1410, 1919, 6207, 1290, 6364, 5639, 12, 780, 612, 16, 514, 1177, 13, 202, 95, 202, 202, 759, 309, 1158, 5226, 23060, 1269, 1508, 3712, 327, 638, 202, 202, 430, 261, 6738...
fTargetCombo.setItems(new String[] {ICoreConstants.TARGET32, ICoreConstants.TARGET31, ICoreConstants.TARGET30});
fTargetCombo.setItems(new String[] {ICoreConstants.TARGET33, ICoreConstants.TARGET32, ICoreConstants.TARGET31, ICoreConstants.TARGET30});
private void createFormatGroup(Composite container) { Group group = new Group(container, SWT.NONE); group.setText(PDEUIMessages.NewProjectCreationPage_target); group.setLayout(new GridLayout(2, false)); group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Label label = new Label(group, SWT.NONE); if (fFragment) label.setText(PDEUIMessages.NewProjectCreationPage_ftarget); else label.setText(PDEUIMessages.NewProjectCreationPage_ptarget); GridData gd = new GridData(); gd.horizontalSpan = 2; label.setLayoutData(gd); fEclipseButton = createButton(group, SWT.RADIO, 1, 30); fEclipseButton.setText(PDEUIMessages.NewProjectCreationPage_pDependsOnRuntime); fEclipseButton.setSelection(fData.getOSGiFramework() == null); fEclipseButton.addSelectionListener(new SelectionAdapter(){ public void widgetSelected(SelectionEvent e) { updateRuntimeDependency(); } }); fTargetCombo = new Combo(group, SWT.READ_ONLY|SWT.SINGLE); fTargetCombo.setItems(new String[] {ICoreConstants.TARGET32, ICoreConstants.TARGET31, ICoreConstants.TARGET30}); if (PDECore.getDefault().areModelsInitialized()) fTargetCombo.setText(TargetPlatform.getTargetVersionString()); else fTargetCombo.setText(ICoreConstants.TARGET32); fOSGIButton = createButton(group, SWT.RADIO, 1, 30); fOSGIButton.setText(PDEUIMessages.NewProjectCreationPage_pPureOSGi); fOSGIButton.setSelection(fData.getOSGiFramework() != null); fOSGiCombo = new Combo(group, SWT.READ_ONLY|SWT.SINGLE); fOSGiCombo.setItems(new String[] {ICoreConstants.EQUINOX, PDEUIMessages.NewProjectCreationPage_standard}); fOSGiCombo.setText(ICoreConstants.EQUINOX); }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/5df1bd1a4b638c8bae3fca50e757496e6e85100a/NewProjectCreationPage.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/plugin/NewProjectCreationPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1630, 1114, 12, 9400, 1478, 13, 288, 202, 202, 1114, 1041, 273, 394, 3756, 12, 3782, 16, 348, 8588, 18, 9826, 1769, 202, 202, 1655, 18, 542, 1528, 12, 52, 1639, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1630, 1114, 12, 9400, 1478, 13, 288, 202, 202, 1114, 1041, 273, 394, 3756, 12, 3782, 16, 348, 8588, 18, 9826, 1769, 202, 202, 1655, 18, 542, 1528, 12, 52, 1639, 5...
stmt.execute("CREATE TABLE #psso2 (data MONEY)");
stmt.execute("CREATE TABLE ##psso2 (data MONEY)");
public void testPreparedStatementSetObject2() throws Exception { BigDecimal data = new BigDecimal(3.7D); Statement stmt = con.createStatement(); stmt.execute("CREATE TABLE #psso2 (data MONEY)"); stmt.close(); PreparedStatement pstmt = con.prepareStatement("INSERT INTO #psso2 (data) VALUES (?)"); pstmt.setObject(1, data, Types.NUMERIC); assertTrue(pstmt.executeUpdate() == 1); pstmt.close(); stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT data FROM #psso2"); assertTrue(rs.next()); assertTrue(data.doubleValue() == rs.getDouble(1)); assertTrue(!rs.next()); rs.close(); }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/3536f07067bcf3c572aa820c500e64c50499f6c5/PreparedStatementTest.java/buggy/src/test/net/sourceforge/jtds/test/PreparedStatementTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 29325, 694, 921, 22, 1435, 1216, 1185, 288, 3639, 8150, 501, 273, 394, 8150, 12, 23, 18, 27, 40, 1769, 3639, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 3480, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 29325, 694, 921, 22, 1435, 1216, 1185, 288, 3639, 8150, 501, 273, 394, 8150, 12, 23, 18, 27, 40, 1769, 3639, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 3480, 18,...
if (getMylarCorePrefs().getBoolean(TaskListPreferenceConstants.REPOSITORY_SYNCH_ON_STARTUP)) { for (AbstractRepositoryConnector repositoryClient : taskRepositoryManager.getRepositoryConnectors()) { repositoryClient.synchronize(); } }
public void earlyStartup() { final IWorkbench workbench = PlatformUI.getWorkbench(); workbench.getDisplay().asyncExec(new Runnable() { public void run() { try { TaskListExtensionReader.initExtensions(taskListWriter); taskRepositoryManager.readRepositories(); taskListManager.addActivityListener(CONTEXT_TASK_ACTIVITY_LISTENER); taskListManager.readExistingOrCreateNewList(); initialized = true; migrateHandlesToRepositorySupport(); if (getMylarCorePrefs().getBoolean(TaskListPreferenceConstants.REPOSITORY_SYNCH_ON_STARTUP)) { for (AbstractRepositoryConnector repositoryClient : taskRepositoryManager.getRepositoryConnectors()) { repositoryClient.synchronize(); } } PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell().addShellListener(SHELL_LISTENER); taskListNotificationManager = new TaskListNotificationManager(); taskListNotificationManager.addNotificationProvider(NOTIFICATION_PROVIDER); taskListNotificationManager.startNotification(NOTIFICATION_DELAY); getMylarCorePrefs().addPropertyChangeListener(taskListNotificationManager); taskListArchiveManager = new TaskListAutoArchiveManager(); getMylarCorePrefs().addPropertyChangeListener(taskListArchiveManager); taskListRefreshManager = new TaskListRefreshManager(); taskListRefreshManager.startRefreshJob(); taskListSaveManager = new TaskListSaveManager(); taskListManager.getTaskList().addChangeListener(taskListSaveManager); MylarPlugin.getDefault().getPluginPreferences().addPropertyChangeListener(PREFERENCE_LISTENER); getMylarCorePrefs().addPropertyChangeListener(taskListRefreshManager); PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell().addDisposeListener( taskListSaveManager); } catch (Exception e) { MylarStatusHandler.fail(e, "Task List initialization failed", true); } } }); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/950346562e2c2bb9c9094b7863845ec7be90d7fe/MylarTaskListPlugin.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/MylarTaskListPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 11646, 22178, 1435, 288, 202, 202, 6385, 467, 2421, 22144, 1440, 22144, 273, 11810, 5370, 18, 588, 2421, 22144, 5621, 202, 202, 1252, 22144, 18, 588, 4236, 7675, 3810, 1905, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11646, 22178, 1435, 288, 202, 202, 6385, 467, 2421, 22144, 1440, 22144, 273, 11810, 5370, 18, 588, 2421, 22144, 5621, 202, 202, 1252, 22144, 18, 588, 4236, 7675, 3810, 1905, ...
frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame);
frame = cx.debugger.enterFrame(cx, scope, thisObj, args, (DebuggableScript)fnOrScript);
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = theData.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_STACK_SHFT = LOCAL_SHFT + theData.itsMaxLocals; final int STACK_SHFT = TRY_STACK_SHFT + theData.itsMaxTryDepth;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try scopes// stack[STACK_SHFT <= i < STACK_SHFT + theData.itsMaxStack]: stack data// sDbl[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try block pc, stored as doubles// sDbl[any other i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = theData.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + theData.itsMaxStack) Context.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int tryStackTop = 0; // add TRY_STACK_SHFT to get real index int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (int i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } if (theData.isFunction) { if (fnOrScript.itsClosure != null) { scope = fnOrScript.itsClosure; }else if (!theData.itsUseDynamicScope) { scope = fnOrScript.getParentScope(); } }else { scope = ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, theData.itsFromEvalCode); } if (theData.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (theData.itsNeedsActivation) { scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (theData.itsNestedFunctions != null) { for (int i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope, theData.itsFromEvalCode); } Object result = undefined; byte[] iCode = theData.itsICode; String[] strings = theData.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: while (true) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : stack[TRY_STACK_SHFT + tryStackTop] = scope; sDbl[TRY_STACK_SHFT + tryStackTop] = (double)pc; ++tryStackTop; // Skip starting pc of catch/finally blocks pc += 4; break; case TokenStream.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 == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LE : { --stackTop; 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 == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.GT : { --stackTop; 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 == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LT : { --stackTop; 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 == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.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 TokenStream.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(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IFNE : { Object val = stack[stackTop]; boolean valBln; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; } case TokenStream.IFEQ : { boolean valBln; Object val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; } case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : { int slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; } case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case RETURN_UNDEF_ICODE : result = undefined; break Loop; case END_ICODE: break Loop; case TokenStream.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.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 TokenStream.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case TokenStream.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.BINDNAME : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case TokenStream.GETBASE : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; } case TokenStream.SETNAME : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; } case TokenStream.DELPROP : { 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(lhs, rhs); break; } case TokenStream.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 TokenStream.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 TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; } case TokenStream.PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; } case TokenStream.ELEMINC : { 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.postIncrementElem(lhs, rhs, scope); break; } case TokenStream.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.postDecrementElem(lhs, rhs, scope); break; } case TokenStream.GETTHIS : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; } case TokenStream.NEWTEMP : { int slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; } case TokenStream.USETEMP : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; } case TokenStream.CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); String name = strings[getShort(iCode, pc + 3)]; int count = getShort(iCode, pc + 5); Object[] outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; 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.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; } case TokenStream.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; int count = getShort(iCode, pc + 3); Object[] outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; 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]); if (lhs == undefined) { int i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getShort(iCode, pc + 3); Object[] outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case TokenStream.TYPEOFNAME : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : { int slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; } case TokenStream.GETVAR : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; } case TokenStream.VARINC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; } case TokenStream.VARDEC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; } case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : { Object exception = stack[stackTop]; if (exception == DBL_MRK) exception = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(exception); } case TokenStream.JTHROW : { Object exception = stack[stackTop]; // No need to check for DBL_MRK: exception must be Exception --stackTop; if (exception instanceof JavaScriptException) throw (JavaScriptException)exception; else throw (RuntimeException)exception; } case TokenStream.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; } case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : { int slot = (iCode[++pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; } case TokenStream.ENUMNEXT : { int slot = (iCode[++pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; } case TokenStream.GETPROTO : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; } case TokenStream.GETPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; } case TokenStream.GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; } case TokenStream.SETPROTO : { 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.setProto(lhs, rhs, scope); break; } case TokenStream.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]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; } case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : { int i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope, theData.itsFromEvalCode); pc += 2; break; } case TokenStream.OBJECT : { int i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; } case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : { int i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; } default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object catchObj = ex; // Object seen by script catch for (;;) { if (catchObj instanceof JavaScriptException) { catchObj = ScriptRuntime.unwrapJavaScriptException ((JavaScriptException)catchObj); exType = SCRIPT_THROW; } else if (catchObj instanceof EcmaError) { // an offical ECMA error object, catchObj = ((EcmaError)catchObj).getErrorObject(); exType = ECMA; } else if (catchObj instanceof RuntimeException) { if (catchObj instanceof WrappedException) { Object w = ((WrappedException) catchObj).unwrap(); if (w instanceof Throwable) { catchObj = (Throwable) w; continue; } } catchObj = null; // script can not catch this exType = RUNTIME; } else { // Error instance catchObj = null; // script can not catch this exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, ex); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script --tryStackTop; int try_pc = (int)sDbl[TRY_STACK_SHFT + tryStackTop]; if (exType == SCRIPT_THROW || exType == ECMA) { // Allow JS to catch only JavaScriptException and // EcmaError int catch_pc = getTarget(iCode, try_pc + 1); if (catch_pc == try_pc) { catch_pc = 0; } if (catch_pc != 0) { // Has catch block rethrow = false; pc = catch_pc; stackTop = STACK_SHFT; stack[stackTop] = catchObj; } } if (rethrow) { int finally_pc = getTarget(iCode, try_pc + 3); if (finally_pc == try_pc + 2) { finally_pc = 0; } if (finally_pc != 0) { // has finally block rethrow = false; pc = finally_pc; stackTop = STACK_SHFT; stack[stackTop] = ex; } } } if (rethrow) { if (frame != null) { cx.popFrame(); } if (theData.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // restore scope at try point scope = (Scriptable)stack[TRY_STACK_SHFT + tryStackTop]; } } if (frame != null) { cx.popFrame(); } if (theData.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/b3d321243cfc38d2b36851c259974f1b9bb1efd9/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
_t = __t650;
_t = __t655;
public final void destructorstate(AST _t) throws RecognitionException { AST destructorstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST d = null; AST __t650 = _t; d = _t==ASTNULL ? null :(AST)_t; match(_t,DESTRUCTOR); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.scopeAdd(d); } AST tmp1227_AST_in = (AST)_t; match(_t,PUBLIC); _t = _t.getNextSibling(); AST tmp1228_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); AST tmp1229_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); AST tmp1230_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); block_colon(_t); _t = _retTree; code_block(_t); _t = _retTree; AST __t651 = _t; AST tmp1231_AST_in = (AST)_t; match(_t,END); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DESTRUCTOR: { AST tmp1232_AST_in = (AST)_t; match(_t,DESTRUCTOR); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t651; _t = _t.getNextSibling(); state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.scopeClose(d); } _t = __t650; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 23819, 280, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 23819, 280, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23819, 280, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 23819, 280, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
}
}
public void update() { //TODO Check requirement for persisting. }
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/40604da2488c0e0e9de3a307e5a05bd456b9a02a/ProcessDaoImpl.java/clean/bpel-runtime/src/main/java/org/apache/ode/bpel/memdao/ProcessDaoImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1089, 1435, 288, 565, 368, 6241, 2073, 12405, 364, 3898, 310, 18, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1089, 1435, 288, 565, 368, 6241, 2073, 12405, 364, 3898, 310, 18, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
current = endRoot.getPreviousSibling();
DocumentFragment traverseContents(int traversalType) throws DOMException { if (fStartContainer == null || fEndContainer == null) { return null; // REVIST: Throw exception? } DocumentFragment frag = fDocument.createDocumentFragment(); Node current = fStartContainer; Node cloneCurrent = null; Node cloneParent = null; Node partialNode = null; int partialInt = START; Vector d = new Vector(); // if same container, simplify case if (fStartContainer == fEndContainer) { if (fStartOffset == fEndOffset) { // eg collapsed return frag; // REVIST: what is correct re spec? } if (fStartContainer.getNodeType() == Node.TEXT_NODE) { cloneCurrent = fStartContainer.cloneNode(false); cloneCurrent.setNodeValue( (cloneCurrent.getNodeValue()).substring(fStartOffset, fEndOffset)); if (traversalType == EXTRACT_CONTENTS) { deleteData((CharacterData)current, fStartOffset, fEndOffset-fStartOffset); } frag.appendChild(cloneCurrent); } else { current = current.getFirstChild(); int i = 0; for(i = 0; i < fStartOffset && current != null; i++) { current=current.getNextSibling(); } int n = fEndOffset-fStartOffset; for(i = 0; i < n && current != null ;i++) { Node newCurrent=current.getNextSibling(); if (traversalType == CLONE_CONTENTS) { cloneCurrent = current.cloneNode(true); frag.appendChild(cloneCurrent); } else if (traversalType == EXTRACT_CONTENTS) { frag.appendChild(current); } current = newCurrent; } } return frag; } //***** END SIMPLE CASE **** Node root = getCommonAncestorContainer(); Node parent = null; // go up the start tree... current = fStartContainer; //REVIST: Always clone TEXT_NODE's? if (current.getNodeType() == Node.TEXT_NODE) { cloneCurrent = current.cloneNode(false); cloneCurrent.setNodeValue( (cloneCurrent.getNodeValue()).substring(fStartOffset)); if (traversalType == EXTRACT_CONTENTS) { deleteData((CharacterData)current, fStartOffset, current.getNodeValue().length()-fStartOffset); } } else { current = current.getFirstChild(); for(int i = 0; i < fStartOffset && current != null; i++) { current=current.getNextSibling(); } // current is now at the offset. if (current==null) { //"after" current = fStartContainer; } if (traversalType == CLONE_CONTENTS) { cloneCurrent = current.cloneNode(true); } else if (traversalType == EXTRACT_CONTENTS ) { cloneCurrent = current; } } Node startRoot = null; parent = null; // going up in a direct line from boundary point // through parents to the common ancestor, // all these nodes are partially selected, and must // be cloned. while (current != root) { parent = current.getParentNode(); if (parent == root) { cloneParent = frag; startRoot = current; } else { if (parent == null) System.out.println("parent==null: current="+current); cloneParent = parent.cloneNode(false); if (partialNode==null && parent != root) { partialNode = parent; partialInt = AFTER; } } // The children to thr "right" of the "ancestor hierarchy" // are "fully-selected". Node next = null; //increment to the next sibling BEFORE doing the appendChild current = current.getNextSibling(); //do this appendChild after the increment above. cloneParent.appendChild(cloneCurrent); while (current != null) { next = current.getNextSibling(); if (current != null && parent != root) { if (traversalType == CLONE_CONTENTS) { cloneCurrent = current.cloneNode(true); cloneParent.appendChild(cloneCurrent); } else if (traversalType == EXTRACT_CONTENTS) { cloneParent.appendChild(current); } } current = next; } current = parent; cloneCurrent = cloneParent; } // go up the end tree... Node endRoot = null; current = fEndContainer; if (current.getNodeType() == Node.TEXT_NODE) { cloneCurrent = current.cloneNode(false); cloneCurrent.setNodeValue( (cloneCurrent.getNodeValue()).substring(0,fEndOffset)); if (traversalType == EXTRACT_CONTENTS) { deleteData((CharacterData)current, 0, fEndOffset); } } else { if (fEndOffset == 0) { // "before" current = fEndContainer; } else { current = current.getFirstChild(); for(int i = 1; i < fEndOffset && current != null; i++) { current=current.getNextSibling(); } if (current==null) { // REVIST: index-out-of-range what to do? current = fEndContainer.getLastChild(); } } if (traversalType == CLONE_CONTENTS) { cloneCurrent = current.cloneNode(true); } else if (traversalType == EXTRACT_CONTENTS ) { cloneCurrent = current; } } while (current != root && current != null) { parent = current.getParentNode(); if (parent == root) { cloneParent = frag; endRoot = current; } else { cloneParent = parent.cloneNode(false); if (partialNode==null && parent != root) { partialNode = parent; partialInt = BEFORE; } } Node holdCurrent = current; current = parent.getFirstChild(); cloneParent.appendChild(cloneCurrent); Node next = null; while (current != holdCurrent && current != null) { next = current.getNextSibling(); // The leftmost children are fully-selected // and are removed, and appended, not cloned. if (current != null && parent != root) { if (traversalType == CLONE_CONTENTS) { cloneCurrent = current.cloneNode(true); cloneParent.appendChild(cloneCurrent); } else if (traversalType == EXTRACT_CONTENTS) { //cloneCurrent = current; cloneParent.appendChild(current); } } current = next; } current = parent; cloneCurrent = cloneParent; } d.removeAllElements(); // traverse the "fully-selected" middle... Node clonedPrevious = frag.getLastChild(); current = endRoot.getPreviousSibling(); Node prev = null; while (current != startRoot && current != null) { prev = current.getPreviousSibling(); if (traversalType == CLONE_CONTENTS) { cloneCurrent = current.cloneNode(true); } else if (traversalType == EXTRACT_CONTENTS) { cloneCurrent = current; } frag.insertBefore(cloneCurrent, clonedPrevious); current = prev; clonedPrevious = cloneCurrent; } // collapse the range... if (traversalType == EXTRACT_CONTENTS ) { if (partialNode == null) { collapse(true); } else if (partialInt == AFTER) { setStartAfter(partialNode); setEndAfter(partialNode); } else if (partialInt == BEFORE) { setStartBefore(partialNode); setEndBefore(partialNode); } } return frag; }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/1b8addb84b37bd7eebc114246cd6e0a8dc9f156d/RangeImpl.java/buggy/src/org/apache/xerces/dom/RangeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4319, 7456, 10080, 6323, 12, 474, 15940, 559, 13, 3639, 1216, 4703, 503, 565, 288, 3639, 309, 261, 74, 1685, 2170, 422, 446, 747, 284, 1638, 2170, 422, 446, 13, 288, 5411, 327, 446, 31,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4319, 7456, 10080, 6323, 12, 474, 15940, 559, 13, 3639, 1216, 4703, 503, 565, 288, 3639, 309, 261, 74, 1685, 2170, 422, 446, 747, 284, 1638, 2170, 422, 446, 13, 288, 5411, 327, 446, 31,...
{ throw new GroupsException("Problem finding containing groups: " + ce.getMessage()); }
{ throw new GroupsException("Problem finding containing groups", ce); }
public Iterator findContainingGroups(IGroupMember gm) throws GroupsException{ Collection groups = new ArrayList(10); IEntityGroup group = null; for ( Iterator it = getGroupStore().findContainingGroups(gm); it.hasNext(); ) { group = (IEntityGroup) it.next(); group.setLocalGroupService(this); groups.add(group); if (cacheInUse()) { try { if ( getGroupFromCache(group.getEntityIdentifier().getKey()) == null ) { cacheAdd(group); } } catch (CachingException ce) { throw new GroupsException("Problem finding containing groups: " + ce.getMessage()); } } } return groups.iterator();}
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/948a50c00c52659556ab3183d5ea2e316077d789/ReferenceIndividualGroupService.java/buggy/source/org/jasig/portal/groups/ReferenceIndividualGroupService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 4498, 1104, 24344, 3621, 12, 45, 1114, 4419, 14125, 13, 1216, 14712, 503, 95, 565, 2200, 3252, 273, 394, 2407, 12, 2163, 1769, 565, 29202, 1114, 1041, 273, 446, 31, 565, 364, 261, 4498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4498, 1104, 24344, 3621, 12, 45, 1114, 4419, 14125, 13, 1216, 14712, 503, 95, 565, 2200, 3252, 273, 394, 2407, 12, 2163, 1769, 565, 29202, 1114, 1041, 273, 446, 31, 565, 364, 261, 4498, ...
protected void sizeChanged(int w,int h) { System.err.println("size changed, w="+w+", h="+h); System.err.println("size changed, w="+super.getWidth()+", h="+super.getHeight()); System.err.println("resizing GraphicsCmd..."); // go calculate. remind: some nokia devices have a bug that cause // wrong values to be passed as arguments to this function. calcScreenWidth(); Drawable d = (Drawable)graphicscmd.getData(); if(d != null) { d.resize(drawwidth,drawheight); } callEventHandler(new CanvasEvent(this,CanvasEvent.E_RESIZE,0,0,drawwidth,drawheight,0)); showCommands(mygraphics); }
47447 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47447/b0e3e0c78cf6f8d791b4077ff6c75bc6ebbef1e8/HeclCanvas.java/clean/trunk/hecl/midp20/org/hecl/midp20/lcdui/HeclCanvas.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 6459, 1467, 5033, 12, 474, 91, 16, 267, 451, 15329, 202, 3163, 18, 370, 18, 8222, 2932, 1467, 6703, 16, 91, 1546, 15, 91, 15, 3113, 76, 1546, 15, 76, 1769, 202, 3163, 18, 370, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 6459, 1467, 5033, 12, 474, 91, 16, 267, 451, 15329, 202, 3163, 18, 370, 18, 8222, 2932, 1467, 6703, 16, 91, 1546, 15, 91, 15, 3113, 76, 1546, 15, 76, 1769, 202, 3163, 18, 370, 18, ...
Vector fromEdges = new Vector( n.getFromEdges());
Vector fromEdges = new Vector(n.getFromEdges());
protected boolean optimizeNodeBackward(Node n) { Vector fromEdges = new Vector( n.getFromEdges()); for (int j = 0; j < fromEdges.size(); j++) { Edge e = (Edge) fromEdges.elementAt(j); for (int k = j + 1; k < n.getFromEdges().size(); k++) { Edge e2 = (Edge) fromEdges.elementAt(k); /* * If these are not the same edge, and they point to * equivalent nodes, we have a hit, return true */ assert e != e2; if (equivalentNodesBackward(e.getFromNode(),e2.getFromNode())) { mergeNodesAndEdgesBackward(n, e, e2); return true; } } } /* * return false if we did not get a hit */ return false; }
47105 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47105/8d147af0bf72c96a0a6e8a3bd99e0057deb9183d/LatticeOptimizer.java/buggy/sphinx4/edu/cmu/sphinx/result/LatticeOptimizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 10979, 907, 26283, 12, 907, 290, 13, 288, 3639, 5589, 628, 10697, 273, 394, 5589, 12, 82, 18, 588, 1265, 10697, 10663, 3639, 364, 261, 474, 525, 273, 374, 31, 525, 411, 628,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 10979, 907, 26283, 12, 907, 290, 13, 288, 3639, 5589, 628, 10697, 273, 394, 5589, 12, 82, 18, 588, 1265, 10697, 10663, 3639, 364, 261, 474, 525, 273, 374, 31, 525, 411, 628,...
if (obj instanceof NativeString) return (double)((NativeString)obj).jsGet_length(); if (obj instanceof NativeArray) return (double)((NativeArray)obj).jsGet_length();
if (obj instanceof NativeString) { return ((NativeString)obj).jsGet_length(); } else if (obj instanceof NativeArray) { return ((NativeArray)obj).jsGet_length(); } else if (!(obj instanceof Scriptable)) { return 0; }
static double getLengthProperty(Scriptable obj) { // These will both give numeric lengths within Uint32 range. if (obj instanceof NativeString) return (double)((NativeString)obj).jsGet_length(); if (obj instanceof NativeArray) return (double)((NativeArray)obj).jsGet_length(); return ScriptRuntime.toUint32(ScriptRuntime .getProp(obj, "length", obj)); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/5f6a565762eea9efee2aee1297e0f938ac7edf63/NativeArray.java/buggy/js/rhino/src/org/mozilla/javascript/NativeArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1645, 9888, 1396, 12, 3651, 429, 1081, 13, 288, 3639, 368, 8646, 903, 3937, 8492, 6389, 10917, 3470, 7320, 1578, 1048, 18, 3639, 309, 261, 2603, 1276, 16717, 780, 13, 5411, 327, 261,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1645, 9888, 1396, 12, 3651, 429, 1081, 13, 288, 3639, 368, 8646, 903, 3937, 8492, 6389, 10917, 3470, 7320, 1578, 1048, 18, 3639, 309, 261, 2603, 1276, 16717, 780, 13, 5411, 327, 261,...
} else if(cmd.equals("Paste")) {
} else if (cmd.equals("Paste")) {
public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); if(cmd.equals("Cut")) { // textArea.cut(); } else if(cmd.equals("Copy")) { textArea.copy(); } else if(cmd.equals("Paste")) { // textArea.paste(); } }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/bebd557da53b74c60ab8525aa96904d4cee6224c/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1797, 273, 425, 18, 588, 1803, 2189, 5621, 3639, 309, 12, 4172, 18, 14963, 2932, 15812, 6, 3719, 288, 5411, 368, 977, 5484, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1797, 273, 425, 18, 588, 1803, 2189, 5621, 3639, 309, 12, 4172, 18, 14963, 2932, 15812, 6, 3719, 288, 5411, 368, 977, 5484, 18...
returnList.add(new KnuthGlue(0, 0, 0,
seq.add(new KnuthGlue(0, 0, 0,
public LinkedList getNextKnuthElements(LayoutContext context, int alignment) { MinOptMax ipd; curArea = get(context); LinkedList returnList = new LinkedList(); if (curArea == null) { setFinished(true); return null; } ipd = new MinOptMax(fs.getCharWidth(((org.apache.fop.area.inline.Character) curArea).getChar().charAt(0))); curArea.setIPD(ipd.opt); curArea.setBPD(fs.getAscender() - fs.getDescender()); // offset is set in the offsetArea() method //curArea.setOffset(textInfo.fs.getAscender()); //curArea.setOffset(context.getBaseline()); curArea.addTrait(Trait.FONT_NAME, fs.getFontName()); curArea.addTrait(Trait.FONT_SIZE, new Integer(fs.getFontSize())); curArea.addTrait(Trait.COLOR, fobj.getColor()); int bpd = curArea.getBPD(); int lead = 0; int total = 0; int middle = 0; switch (verticalAlignment) { case EN_MIDDLE : middle = bpd / 2 ; break; case EN_TOP : // fall through case EN_BOTTOM : total = bpd; break; case EN_BASELINE: // fall through default : lead = fs.getAscender(); total = bpd; break; } // create the AreaInfo object to store the computed values areaInfo = new AreaInfo((short) 0, ipd, false, lead, total, middle); // node is a fo:Character if (letterSpaceIPD.min == letterSpaceIPD.max) { // constant letter space, only return a box returnList.add(new KnuthInlineBox(areaInfo.ipdArea.opt, areaInfo.lead, areaInfo.total, areaInfo.middle, new LeafPosition(this, 0), false)); } else { // adjustable letter space, return a sequence of elements; // at the moment the character is supposed to have no letter spaces, // but returning this sequence allows us to change only one element // if addALetterSpaceTo() is called returnList.add(new KnuthInlineBox(areaInfo.ipdArea.opt, areaInfo.lead, areaInfo.total, areaInfo.middle, new LeafPosition(this, 0), false)); returnList.add(new KnuthPenalty(0, KnuthElement.INFINITE, false, new LeafPosition(this, -1), true)); returnList.add(new KnuthGlue(0, 0, 0, new LeafPosition(this, -1), true)); returnList.add(new KnuthInlineBox(0, 0, 0, 0, new LeafPosition(this, -1), true)); } setFinished(true); return returnList; }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/b17185078597089c27f937e0a540a594589c30ec/CharacterLayoutManager.java/clean/src/java/org/apache/fop/layoutmgr/inline/CharacterLayoutManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10688, 6927, 47, 82, 795, 3471, 12, 3744, 1042, 819, 16, 4766, 6647, 509, 8710, 13, 288, 3639, 5444, 6179, 2747, 2359, 72, 31, 3639, 662, 5484, 273, 336, 12, 2472, 1769, 3639, 106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10688, 6927, 47, 82, 795, 3471, 12, 3744, 1042, 819, 16, 4766, 6647, 509, 8710, 13, 288, 3639, 5444, 6179, 2747, 2359, 72, 31, 3639, 662, 5484, 273, 336, 12, 2472, 1769, 3639, 106...
for (Object o : userPrefs.getPrefs().getDescDict()) { if (o instanceof DictEntry) { DictEntry entry = (DictEntry) o; descDict.add(entry.getEntry()); defaultsMap.put(entry.getEntry(), entry.getData()); } } for (Object o : userPrefs.getPrefs().getListEntries()) { if (o instanceof ListEntry){ ListEntry l = (ListEntry) o; listAttributesMap.put(l.getEntry(), l.getAttributes()); } }
private PrefsInstance(){ descDict = new DefaultDictionary(); defaultsMap = new HashMap<String, DictData>(); listAttributesMap = new HashMap<String, ListAttributes>(); if (location == null){ if (Buddi.isMac()){ location = System.getProperty("user.home") + File.separator + "Library" + File.separator + "Application Support" + File.separator + "Buddi" + File.separator + "prefs.xml"; } else if (Buddi.isWindows()){ location = System.getProperty("user.home") + File.separator + "Application Data" + File.separator + "Buddi" + File.separator + "prefs.xml"; } else{ //Probably Linux / Unix... location = System.getProperty("user.home") + File.separator + ".buddi" + File.separator + "prefs.xml"; } } File locationFile = new File(location).getAbsoluteFile(); try{ // Create a resource set. resourceSet = new ResourceSetImpl(); // Register the default resource factory -- only needed for stand-alone! resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put( Resource.Factory.Registry.DEFAULT_EXTENSION, new XMLResourceFactoryImpl()); // Register the package @SuppressWarnings("unused") PrefsPackage prefsPackage = PrefsPackage.eINSTANCE; // Get the URI of the model file. URI fileURI = URI.createFileURI(locationFile.getAbsolutePath()); // Demand load the resource for this file. Resource resource = resourceSet.getResource(fileURI, true); // Print the contents of the resource to System.out. EList contents = resource.getContents(); if (contents.size() > 0){ userPrefs = (UserPrefs) contents.get(0); } //Do some final sanity checks. Probably not needed for everyday use, but // needed for some upgrades (i.e., from 1.1.5 to 1.1.6). if (userPrefs.getPrefs().getSelectedInterval() == null || userPrefs.getPrefs().getIntervals() == null || userPrefs.getPrefs().getIntervals().getAllIntervals() == null) throw new Exception(); //Make a smooth crossover from 1.6 to 1.8 if (userPrefs.getPrefs().getLanguage() != null){ if (userPrefs.getPrefs().getLanguage().equals("en")) userPrefs.getPrefs().setLanguage("English"); else if (userPrefs.getPrefs().getLanguage().equals("en-US")) userPrefs.getPrefs().setLanguage("English_(US)"); else if (userPrefs.getPrefs().getLanguage().equals("es")) userPrefs.getPrefs().setLanguage("Espanol"); else if (userPrefs.getPrefs().getLanguage().equals("de")) userPrefs.getPrefs().setLanguage("Deutsch"); else if (userPrefs.getPrefs().getLanguage().equals("no")) userPrefs.getPrefs().setLanguage("Norsk"); savePrefs(); } //Allow upgrading to rotating backups - default to 10 if (userPrefs.getPrefs().getNumberOfBackups() == 0){ userPrefs.getPrefs().setNumberOfBackups(10); savePrefs(); } if (userPrefs.getPrefs().getCurrencySymbol() == null){ userPrefs.getPrefs().setCurrencySymbol("$"); savePrefs(); } } //If there is a problem opening the file, we will prompt to make a new one catch (Exception e){ //If the file does not exist, we make a new one w/o prompting. userPrefs = prefsFactory.createUserPrefs(); Prefs prefs = prefsFactory.createPrefs(); userPrefs.setPrefs(prefs); //Create sane defaults for all the properties //Ask the user where to put the data file. This could possibly be on encrypted disk, etc. // We do not translate this part because we have not yet loaded the langauge files... JOptionPane.showMessageDialog( null, "You need to choose your data file. You can\n" + "either choose an existing Buddi data store, or a\n" + "directory in which a new file will be created.", "Choose Datastore Location...", JOptionPane.INFORMATION_MESSAGE); final String dataFileName = chooseDataFile(); if (dataFileName == null){ Log.critical("Cannot use a null file"); System.exit(1); } File languageLocation = new File(Const.LANGUAGE_FOLDER); if (languageLocation.exists() && languageLocation.isDirectory()){ Vector<String> languages = new Vector<String>(); for (File f: languageLocation.listFiles()) if (f.getName().endsWith(Const.LANGUAGE_EXTENSION)) languages.add(f.getName().replaceAll(Const.LANGUAGE_EXTENSION, "")); Object[] options = languages.toArray(); Object defaultOption = options[languages.indexOf("English")]; Object retValue = JOptionPane.showInputDialog( null, "Please choose your language:", "Language", JOptionPane.PLAIN_MESSAGE, null, options, defaultOption ); if (retValue != null) prefs.setLanguage((String) retValue); else{ JOptionPane.showMessageDialog(null, "Invalid selection. Defaulting to English - you can change this in Preferences.", "Invalid Selection", JOptionPane.ERROR_MESSAGE); prefs.setLanguage("English"); } } else{ prefs.setLanguage("English"); } //Set meaningful defaults prefs.setDataFile(dataFileName); prefs.setShowDeletedAccounts(true); prefs.setShowDeletedCategories(true); prefs.setShowAutoComplete(true); prefs.setEnableUpdateNotifications(true); prefs.setDateFormat("yyyy/MMM/d"); prefs.setCurrencySymbol(Const.CURRENCY_FORMATS[0]); WindowAttributes main = prefsFactory.createWindowAttributes(); WindowAttributes transactions = prefsFactory.createWindowAttributes(); WindowAttributes graphs = prefsFactory.createWindowAttributes(); WindowAttributes reports = prefsFactory.createWindowAttributes(); main.setHeight(400); main.setWidth(600); transactions.setHeight(500); transactions.setWidth(700); prefs.setMainWindow(main); prefs.setTransactionsWindow(transactions); prefs.setGraphsWindow(graphs); prefs.setReportsWindow(reports); Intervals intervals = prefsFactory.createIntervals(); prefs.setIntervals(intervals); Interval month = prefsFactory.createInterval(); month.setName(TranslateKeys.MONTH.toString()); month.setLength(1); month.setDays(false); //If days is false, then we assume the length is in months. prefs.getIntervals().getAllIntervals().add(month); Interval week = prefsFactory.createInterval(); week.setName(TranslateKeys.WEEK.toString()); week.setLength(7); week.setDays(true); prefs.getIntervals().getAllIntervals().add(week); Interval fortnight = prefsFactory.createInterval(); fortnight.setName(TranslateKeys.FORTNIGHT.toString()); fortnight.setLength(14); fortnight.setDays(true); prefs.getIntervals().getAllIntervals().add(fortnight); Interval quarter = prefsFactory.createInterval(); quarter.setName(TranslateKeys.QUARTER.toString()); quarter.setLength(3); quarter.setDays(false); prefs.getIntervals().getAllIntervals().add(quarter); Interval year = prefsFactory.createInterval(); year.setName(TranslateKeys.YEAR.toString()); year.setLength(12); year.setDays(false); prefs.getIntervals().getAllIntervals().add(year); prefs.setSelectedInterval(month.toString()); ResourceSet resourceSet = new ResourceSetImpl(); resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put( Resource.Factory.Registry.DEFAULT_EXTENSION, new XMLResourceFactoryImpl()); if (!locationFile.getParentFile().exists()){ locationFile.getParentFile().mkdirs(); } if (!locationFile.getParentFile().exists()){ Log.critical("Cannot create directory for preferences file. Please choose a location for which you have write privleges. Exiting."); System.exit(1); } URI fileURI = URI.createFileURI(locationFile.getAbsolutePath()); Resource resource = resourceSet.createResource(fileURI); resource.getContents().add(userPrefs); try{ resource.save(Collections.EMPTY_MAP); } catch (IOException ioe){} } //Load the auto complete entries into the dictionary // and create the autocomplete map, between // description and other fields. for (Object o : userPrefs.getPrefs().getDescDict()) { if (o instanceof DictEntry) { DictEntry entry = (DictEntry) o; descDict.add(entry.getEntry()); defaultsMap.put(entry.getEntry(), entry.getData()); } } //Load the state for the list entries for (Object o : userPrefs.getPrefs().getListEntries()) { if (o instanceof ListEntry){ ListEntry l = (ListEntry) o; listAttributesMap.put(l.getEntry(), l.getAttributes()); } } }
58048 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58048/eaf521fa0519a5c48fb66d782774848f3a00dcbb/PrefsInstance.java/clean/src/org/homeunix/drummer/prefs/PrefsInstance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 453, 9316, 1442, 1435, 95, 202, 202, 5569, 5014, 273, 394, 2989, 10905, 5621, 202, 202, 7606, 863, 273, 394, 4317, 32, 780, 16, 9696, 751, 34, 5621, 202, 202, 1098, 2498, 863...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 453, 9316, 1442, 1435, 95, 202, 202, 5569, 5014, 273, 394, 2989, 10905, 5621, 202, 202, 7606, 863, 273, 394, 4317, 32, 780, 16, 9696, 751, 34, 5621, 202, 202, 1098, 2498, 863...
if (mFindWindow == null) { mFindWindow = new FindWindow(FindAsYouType.this); } mFindWindow.reset(); mFindWindow.setText(""+e.getKeyChar()); mFindWindow.setVisible(true);
showFindWindow(""+e.getKeyChar());
public void keyTyped(KeyEvent e) { if ((e.getKeyChar() != KeyEvent.CHAR_UNDEFINED) && ((int)e.getKeyChar() > 27)){ if (mFindWindow == null) { mFindWindow = new FindWindow(FindAsYouType.this); } mFindWindow.reset(); mFindWindow.setText(""+e.getKeyChar()); mFindWindow.setVisible(true); e.consume(); } }
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/3e58fdd1555b0dfd06a3a146463a0643e57dcbe2/FindAsYouType.java/buggy/tvbrowser/src/util/ui/findasyoutype/FindAsYouType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 498, 11985, 12, 653, 1133, 425, 13, 288, 3639, 309, 14015, 73, 18, 588, 653, 2156, 1435, 480, 23737, 18, 7305, 67, 2124, 15544, 13, 597, 14015, 474, 13, 73, 18, 588, 653, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 498, 11985, 12, 653, 1133, 425, 13, 288, 3639, 309, 14015, 73, 18, 588, 653, 2156, 1435, 480, 23737, 18, 7305, 67, 2124, 15544, 13, 597, 14015, 474, 13, 73, 18, 588, 653, ...
if (element instanceof PsiLanguageInjectionHost) { PsiLanguageInjectionHost injectionHost = (PsiLanguageInjectionHost)element; final Language injectedLanguage = element.getManager().getInjectedLanguage(injectionHost); if (injectedLanguage != null) { Pair<PsiElement,TextRange> injectedInfo = injectionHost.getInjectedPsi(); if (injectedInfo != null) { VirtualFile virtualFile = element.getContainingFile().getVirtualFile(); SyntaxHighlighter syntaxHighlighter = injectedLanguage.getSyntaxHighlighter(element.getProject(), virtualFile); final Annotator languageAnnotator = injectedLanguage.getAnnotator(); final int injectedPsiOffset = injectionHost.getTextRange().getStartOffset() + injectedInfo.second.getStartOffset(); PsiElement injectedPsi = injectedInfo.first; final SyntaxHighlighterAsAnnotator syntaxAnnotator = new SyntaxHighlighterAsAnnotator(syntaxHighlighter); PsiRecursiveElementVisitor visitor = new PsiRecursiveElementVisitor() { final AnnotationHolderImpl fixingAnnotationHolder = new AnnotationHolderImpl() { protected Annotation createAnnotation(TextRange range, HighlightSeverity severity, String message) { Annotation annotation = super.createAnnotation(range.shiftRight(injectedPsiOffset), severity, message); myAnnotationHolder.add(annotation); return annotation; } }; public void visitElement(PsiElement element) { super.visitElement(element); syntaxAnnotator.annotate(element, fixingAnnotationHolder); if (languageAnnotator != null) { languageAnnotator.annotate(element, fixingAnnotationHolder); } }
if (!(element instanceof PsiLanguageInjectionHost)) { return false; } PsiLanguageInjectionHost injectionHost = (PsiLanguageInjectionHost)element; List<Pair<PsiElement, TextRange>> injected = injectionHost.getInjectedPsi(); if (injected == null) return false; for (Pair<PsiElement, TextRange> pair : injected) { PsiElement injectedPsi = pair.getFirst(); TextRange range = pair.getSecond(); Language injectedLanguage = injectedPsi.getLanguage(); VirtualFile virtualFile = element.getContainingFile().getVirtualFile(); SyntaxHighlighter syntaxHighlighter = injectedLanguage.getSyntaxHighlighter(element.getProject(), virtualFile); final Annotator languageAnnotator = injectedLanguage.getAnnotator(); final int injectedPsiOffset = injectionHost.getTextRange().getStartOffset() + range.getStartOffset(); final SyntaxHighlighterAsAnnotator syntaxAnnotator = new SyntaxHighlighterAsAnnotator(syntaxHighlighter); PsiRecursiveElementVisitor visitor = new PsiRecursiveElementVisitor() { final AnnotationHolderImpl fixingAnnotationHolder = new AnnotationHolderImpl() { protected Annotation createAnnotation(TextRange range, HighlightSeverity severity, String message) { Annotation annotation = super.createAnnotation(range.shiftRight(injectedPsiOffset), severity, message); myAnnotationHolder.add(annotation); return annotation; } }; public void visitElement(PsiElement element) { super.visitElement(element); syntaxAnnotator.annotate(element, fixingAnnotationHolder); if (languageAnnotator != null) { languageAnnotator.annotate(element, fixingAnnotationHolder); } }
private boolean highlightInjectedPsi(final PsiElement element) { if (element instanceof PsiLanguageInjectionHost) { PsiLanguageInjectionHost injectionHost = (PsiLanguageInjectionHost)element; final Language injectedLanguage = element.getManager().getInjectedLanguage(injectionHost); if (injectedLanguage != null) { Pair<PsiElement,TextRange> injectedInfo = injectionHost.getInjectedPsi(); if (injectedInfo != null) { VirtualFile virtualFile = element.getContainingFile().getVirtualFile(); SyntaxHighlighter syntaxHighlighter = injectedLanguage.getSyntaxHighlighter(element.getProject(), virtualFile); final Annotator languageAnnotator = injectedLanguage.getAnnotator(); final int injectedPsiOffset = injectionHost.getTextRange().getStartOffset() + injectedInfo.second.getStartOffset(); PsiElement injectedPsi = injectedInfo.first; final SyntaxHighlighterAsAnnotator syntaxAnnotator = new SyntaxHighlighterAsAnnotator(syntaxHighlighter); PsiRecursiveElementVisitor visitor = new PsiRecursiveElementVisitor() { final AnnotationHolderImpl fixingAnnotationHolder = new AnnotationHolderImpl() { protected Annotation createAnnotation(TextRange range, HighlightSeverity severity, String message) { Annotation annotation = super.createAnnotation(range.shiftRight(injectedPsiOffset), severity, message); myAnnotationHolder.add(annotation); return annotation; } }; public void visitElement(PsiElement element) { super.visitElement(element); syntaxAnnotator.annotate(element, fixingAnnotationHolder); if (languageAnnotator != null) { languageAnnotator.annotate(element, fixingAnnotationHolder); } } public void visitErrorElement(PsiErrorElement element) { HighlightInfo info = createErrorElementInfo(element); HighlightInfo fixed = new HighlightInfo(HighlightInfoType.ERROR, info.startOffset + injectedPsiOffset, info.endOffset + injectedPsiOffset, info.description, info.toolTip); myHolder.add(fixed); } }; injectedPsi.accept(visitor); return true; } } } return false; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/f0f4a2bd46dc054a5d61fb1b3de76307a7026935/HighlightVisitorImpl.java/clean/codeInsight/impl/com/intellij/codeInsight/daemon/impl/analysis/HighlightVisitorImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 8839, 382, 6059, 52, 7722, 12, 6385, 453, 7722, 1046, 930, 13, 288, 565, 309, 261, 2956, 1276, 453, 7722, 3779, 12039, 2594, 13, 288, 1377, 453, 7722, 3779, 12039, 2594, 10380...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 8839, 382, 6059, 52, 7722, 12, 6385, 453, 7722, 1046, 930, 13, 288, 565, 309, 261, 2956, 1276, 453, 7722, 3779, 12039, 2594, 13, 288, 1377, 453, 7722, 3779, 12039, 2594, 10380...
if (shell != null)
if (shell != null) {
Shell getShell(IAdaptable uiInfo) { if (uiInfo != null) { Shell shell = (Shell) uiInfo.getAdapter(Shell.class); if (shell != null) return shell; } return null; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/AdvancedValidationUserApprover.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/operations/AdvancedValidationUserApprover.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 13220, 7932, 1165, 12, 45, 13716, 429, 5915, 966, 13, 288, 202, 202, 430, 261, 4881, 966, 480, 446, 13, 288, 1082, 202, 13220, 5972, 273, 261, 13220, 13, 5915, 966, 18, 588, 4216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13220, 7932, 1165, 12, 45, 13716, 429, 5915, 966, 13, 288, 202, 202, 430, 261, 4881, 966, 480, 446, 13, 288, 1082, 202, 13220, 5972, 273, 261, 13220, 13, 5915, 966, 18, 588, 4216, ...
pixelType[i] = FormatReader.INT16;
pixelType[i] = FormatReader.UINT16;
protected void initMetadata() { if (headerIFDs == null) headerIFDs = ifds; for (int i=0; i<headerIFDs.length; i++) { byte[] temp = (byte[]) headerIFDs[i].get(new Integer(10)); if (temp != null) { // the series data // ID_SERIES metadata.put("Version", new Integer(DataTools.bytesToInt(temp, 0, 4, littleEndian))); metadata.put("Number of Series", new Integer(DataTools.bytesToInt(temp, 4, 4, littleEndian))); metadata.put("Length of filename", new Integer(DataTools.bytesToInt(temp, 8, 4, littleEndian))); metadata.put("Length of file extension", new Integer(DataTools.bytesToInt(temp, 12, 4, littleEndian))); Integer fileExtLen = (Integer) metadata.get("Length of file extension"); metadata.put("Image file extension", DataTools.stripString(new String(temp, 16, fileExtLen.intValue()))); } temp = (byte[]) headerIFDs[i].get(new Integer(15)); if (temp != null) { // the image data // ID_IMAGES zs[i] = DataTools.bytesToInt(temp, 0, 4, littleEndian); widths[i] = DataTools.bytesToInt(temp, 4, 4, littleEndian); heights[i] = DataTools.bytesToInt(temp, 8, 4, littleEndian); metadata.put("Number of images", new Integer(zs[i])); metadata.put("Image width", new Integer(widths[i])); metadata.put("Image height", new Integer(heights[i])); metadata.put("Bits per Sample", new Integer( DataTools.bytesToInt(temp, 12, 4, littleEndian))); metadata.put("Samples per pixel", new Integer( DataTools.bytesToInt(temp, 16, 4, littleEndian))); } temp = (byte[]) headerIFDs[i].get(new Integer(20)); if (temp != null) { // dimension description // ID_DIMDESCR int pt = 0; metadata.put("Voxel Version", new Integer( DataTools.bytesToInt(temp, 0, 4, littleEndian))); int voxelType = DataTools.bytesToInt(temp, 4, 4, littleEndian); String type = ""; switch (voxelType) { case 0: type = "undefined"; break; case 10: type = "gray normal"; break; case 20: type = "RGB"; break; } metadata.put("VoxelType", type); metadata.put("Bytes per pixel", new Integer( DataTools.bytesToInt(temp, 8, 4, littleEndian))); metadata.put("Real world resolution", new Integer( DataTools.bytesToInt(temp, 12, 4, littleEndian))); int length = DataTools.bytesToInt(temp, 16, 4, littleEndian); metadata.put("Maximum voxel intensity", DataTools.stripString(new String(temp, 20, length))); pt = 20 + length; pt += 4; metadata.put("Minimum voxel intensity", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4 + length + 4; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); for (int j=0; j<length; j++) { int dimId = DataTools.bytesToInt(temp, pt, 4, littleEndian); String dimType = ""; switch (dimId) { case 0: dimType = "undefined"; break; case 120: dimType = "x"; break; case 121: dimType = "y"; break; case 122: dimType = "z"; break; case 116: dimType = "t"; break; case 6815843: dimType = "channel"; break; case 6357100: dimType = "wave length"; break; case 7602290: dimType = "rotation"; break; case 7798904: dimType = "x-wide for the motorized xy-stage"; break; case 7798905: dimType = "y-wide for the motorized xy-stage"; break; case 7798906: dimType = "z-wide for the z-stage-drive"; break; case 4259957: dimType = "user1 - unspecified"; break; case 4325493: dimType = "user2 - unspecified"; break; case 4391029: dimType = "user3 - unspecified"; break; case 6357095: dimType = "graylevel"; break; case 6422631: dimType = "graylevel1"; break; case 6488167: dimType = "graylevel2"; break; case 6553703: dimType = "graylevel3"; break; case 7864398: dimType = "logical x"; break; case 7929934: dimType = "logical y"; break; case 7995470: dimType = "logical z"; break; case 7602254: dimType = "logical t"; break; case 7077966: dimType = "logical lambda"; break; case 7471182: dimType = "logical rotation"; break; case 5767246: dimType = "logical x-wide"; break; case 5832782: dimType = "logical y-wide"; break; case 5898318: dimType = "logical z-wide"; break; } //if (dimType.equals("channel")) numChannels++; metadata.put("Dim" + j + " type", dimType); pt += 4; metadata.put("Dim" + j + " size", new Integer( DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dim" + j + " distance between sub-dimensions", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; int len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " physical length", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " physical origin", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " name", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " description", DataTools.stripString(new String(temp, pt, len))); } } temp = (byte[]) headerIFDs[i].get(new Integer(30)); if (temp != null) { // filter data // ID_FILTERSET // not currently used } temp = (byte[]) headerIFDs[i].get(new Integer(40)); if (temp != null) { // time data // ID_TIMEINFO try { metadata.put("Number of time-stamped dimensions", new Integer(DataTools.bytesToInt(temp, 0, 4, littleEndian))); int nDims = DataTools.bytesToInt(temp, 4, 4, littleEndian); metadata.put("Time-stamped dimension", new Integer(nDims)); int pt = 8; for (int j=0; j < nDims; j++) { metadata.put("Dimension " + j + " ID", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dimension " + j + " size", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dimension " + j + " distance between dimensions", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; } int numStamps = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of time-stamps", new Integer(numStamps)); for (int j=0; j<numStamps; j++) { metadata.put("Timestamp " + j, DataTools.stripString(new String(temp, pt, 64))); pt += 64; } int numTMs = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of time-markers", new Integer(numTMs)); for (int j=0; j<numTMs; j++) { int numDims = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; for (int k=0; k<numDims; k++) { metadata.put("Time-marker " + j + " Dimension " + k + " coordinate", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; } metadata.put("Time-marker " + j, DataTools.stripString(new String(temp, pt, 64))); pt += 64; } } catch (Throwable t) { } } temp = (byte[]) headerIFDs[i].get(new Integer(50)); if (temp != null) { // scanner data // ID_SCANNERSET // not currently used } temp = (byte[]) headerIFDs[i].get(new Integer(60)); if (temp != null) { // experiment data // ID_EXPERIMENT int pt = 8; int len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Image Description", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Main file extension", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Single image format identifier", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Single image extension", DataTools.stripString(new String(temp, pt, 2*len))); } temp = (byte[]) headerIFDs[i].get(new Integer(70)); if (temp != null) { // LUT data // ID_LUTDESC int pt = 0; int nChannels = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of LUT channels", new Integer(nChannels)); metadata.put("ID of colored dimension", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; numChannels[i] = nChannels; for (int j=0; j<nChannels; j++) { metadata.put("LUT Channel " + j + " version", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; int invert = DataTools.bytesToInt(temp, pt, 1, littleEndian); pt += 1; boolean inverted = invert == 1; metadata.put("LUT Channel " + j + " inverted?", new Boolean(inverted).toString()); int length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("LUT Channel " + j + " description", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("LUT Channel " + j + " filename", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; String name = DataTools.stripString(new String(temp, pt, length)); if (name.equals("Green") || name.equals("Red") || name.equals("Blue")) { numChannels[i] = 3; } metadata.put("LUT Channel " + j + " name", name); pt += length; pt += 8; } } } sizeX = widths; sizeY = heights; sizeZ = zs; sizeC = numChannels; sizeT = new int[numSeries]; pixelType = new int[numSeries]; currentOrder = new String[numSeries]; try { int oldSeries = getSeries(currentId); for (int i=0; i<sizeC.length; i++) { setSeries(currentId, i); if (isRGB(currentId)) sizeC[i] = 3; } setSeries(currentId, oldSeries); } catch (Exception e) { // NullPointerException caught here if the file we opened was a TIFF. // However, the sizeC field will be adjusted anyway by a later call to // BaseTiffReader.initMetadata } // The metadata store we're working with. MetadataStore store = new DummyMetadataStore(); try { store = getMetadataStore(currentId); } catch (Exception e) { } for (int i=0; i<numSeries; i++) { if (sizeC[i] == 0) sizeC[i] = 1; sizeT[i] += 1; currentOrder[i] = "XYZTC"; int tPixelType = ((Integer) metadata.get("Bytes per pixel")).intValue(); switch (tPixelType) { case 1: pixelType[i] = FormatReader.INT8; break; case 2: pixelType[i] = FormatReader.INT16; break; case 3: pixelType[i] = FormatReader.INT8; break; case 4: pixelType[i] = FormatReader.INT32; break; case 6: pixelType[i] = FormatReader.INT16; break; case 8: pixelType[i] = FormatReader.DOUBLE; break; } store.setPixels( new Integer(widths[i]), new Integer(heights[i]), new Integer(zs[i]), new Integer(numChannels[i] == 0 ? 1 : numChannels[i]), // SizeC new Integer(1), // SizeT new Integer(pixelType[i]), // PixelType new Boolean(!littleEndian), // BigEndian "XYZTC", // DimensionOrder new Integer(i)); String timestamp = (String) metadata.get("Timestamp " + (i+1)); String description = (String) metadata.get("Image Description"); try { store.setImage(null, timestamp.substring(3), description, new Integer(i)); } catch (NullPointerException n) { } } }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/db080dd0a46728b8a134dea3f2915320b0ce0482/LeicaReader.java/clean/loci/formats/in/LeicaReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 2277, 1435, 288, 565, 309, 261, 3374, 5501, 22831, 422, 446, 13, 1446, 5501, 22831, 273, 309, 2377, 31, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 3374, 5501, 22831,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 2277, 1435, 288, 565, 309, 261, 3374, 5501, 22831, 422, 446, 13, 1446, 5501, 22831, 273, 309, 2377, 31, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 3374, 5501, 22831,...
if (!display.readAndDispatch()) display.sleep();
if (!currentDisplay.readAndDispatch()) currentDisplay.sleep();
public void run() { try { dialog.setOpenOnRun(false); dialog.run(true /* fork */ , true /* cancelable */ , runnable); //Run the event loop until the progress job wakes up Display display = Display.getCurrent(); while (busy[0]) { if (!display.readAndDispatch()) display.sleep(); } } catch (InvocationTargetException e) { invokes[0] = e; } catch (InterruptedException e) { interrupt[0] = e; } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2e7dc730649441690c6caeb4caed8895e396307d/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 698, 288, 6862, 202, 12730, 18, 542, 3678, 1398, 1997, 12, 5743, 1769, 6862, 202, 12730, 18, 2681, 12, 3767, 1748, 12515, 1195, 6862, 202, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 288, 9506, 202, 698, 288, 6862, 202, 12730, 18, 542, 3678, 1398, 1997, 12, 5743, 1769, 6862, 202, 12730, 18, 2681, 12, 3767, 1748, 12515, 1195, 6862, 202, 16, ...
if (totalMarkers == -1) {
if (markerCountDirty) {
public void run(IProgressMonitor innerMonitor) throws CoreException { if (innerMonitor.isCanceled()) return; innerMonitor.subTask(SEARCHING_FOR_MARKERS); currentMarkers = MarkerList.compute(getFilter(), innerMonitor, true); if (innerMonitor.isCanceled()) return; if (totalMarkers == -1) { innerMonitor.subTask(REFRESHING_MARKER_COUNTS); totalMarkers = MarkerList.compute(getMarkerTypes()).length; } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/386f57cbd90f7f13615d6b25487d4c4b6505ac0d/MarkerView.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 1086, 12, 45, 5491, 7187, 3443, 7187, 13, 1216, 30015, 288, 6862, 202, 430, 261, 7872, 7187, 18, 291, 23163, 10756, 327, 31, 6862, 202, 7872, 7187, 18, 1717, 2174, 12, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 1086, 12, 45, 5491, 7187, 3443, 7187, 13, 1216, 30015, 288, 6862, 202, 430, 261, 7872, 7187, 18, 291, 23163, 10756, 327, 31, 6862, 202, 7872, 7187, 18, 1717, 2174, 12, 1...
return new Period(this, PeriodType.getAllType());
return new Period(getMillis());
public final Period toPeriod() { return new Period(this, PeriodType.getAllType()); }
52859 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52859/3f62b3a3ef59f954a14f09aeee97053618da1c74/AbstractDuration.java/buggy/JodaTime/src/java/org/joda/time/AbstractDuration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 12698, 358, 5027, 1435, 288, 3639, 327, 394, 12698, 12, 588, 4814, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 12698, 358, 5027, 1435, 288, 3639, 327, 394, 12698, 12, 588, 4814, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public static IEditorInput getEditorInput(Object input) throws CModelException { if (input instanceof ICElement) { return getEditorInput((ICElement) input);
private static IEditorInput getEditorInput(ICElement element) throws CModelException { while (element != null) { if (element instanceof IWorkingCopy && ((IWorkingCopy) element).isWorkingCopy()) element= ((IWorkingCopy) element).getOriginalElement(); if (element instanceof ISourceReference) { ITranslationUnit tu = ((ISourceReference)element).getTranslationUnit(); if (tu != null) { element = tu; } } if (element instanceof ITranslationUnit) { ITranslationUnit unit= (ITranslationUnit) element; IResource resource= unit.getResource(); if (resource instanceof IFile) { return new FileEditorInput((IFile) resource); } else { return new ExternalEditorInput(unit, getStorage(unit)); } } if (element instanceof IBinary) { return new ExternalEditorInput(getStorage((IBinary)element), null); } element= element.getParent();
public static IEditorInput getEditorInput(Object input) throws CModelException { if (input instanceof ICElement) { return getEditorInput((ICElement) input); } if (input instanceof IFile) { return new FileEditorInput((IFile) input); } if (input instanceof IStorage) { return new ExternalEditorInput((IStorage)input, null); } return null; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0c2b43cb022cb3280137996e6ee1ab5e4a94a82f/EditorUtility.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 467, 6946, 1210, 336, 6946, 1210, 12, 921, 810, 13, 1216, 385, 1488, 503, 288, 202, 202, 430, 261, 2630, 1276, 26899, 1046, 13, 288, 1082, 202, 2463, 336, 6946, 1210, 124...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 6946, 1210, 336, 6946, 1210, 12, 921, 810, 13, 1216, 385, 1488, 503, 288, 202, 202, 430, 261, 2630, 1276, 26899, 1046, 13, 288, 1082, 202, 2463, 336, 6946, 1210, 124...
if (jj_3R_25()) { jj_scanpos = xsp; break; }
if (jj_3R_26()) { jj_scanpos = xsp; break; }
final private boolean jj_3R_21() { Token xsp; if (jj_3R_25()) return true; while (true) { xsp = jj_scanpos; if (jj_3R_25()) { jj_scanpos = xsp; break; } } if (jj_3R_11()) return true; return false; }
1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/0faf643f0efa6f2ad848fed686443d8e4c4ad978/NutchAnalysis.java/buggy/src/java/org/apache/nutch/analysis/NutchAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 5340, 1435, 288, 565, 3155, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 2947, 10756, 327, 638, 31, 565, 1323, 261, 3767, 13, 288, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 5340, 1435, 288, 565, 3155, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 2947, 10756, 327, 638, 31, 565, 1323, 261, 3767, 13, 288, 1...
public org.quickfix.field.CPRegType getCPRegType() throws FieldNotFound { org.quickfix.field.CPRegType value = new org.quickfix.field.CPRegType();
public quickfix.field.CPRegType getCPRegType() throws FieldNotFound { quickfix.field.CPRegType value = new quickfix.field.CPRegType();
public org.quickfix.field.CPRegType getCPRegType() throws FieldNotFound { org.quickfix.field.CPRegType value = new org.quickfix.field.CPRegType(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralAssignment.java/buggy/src/java/src/quickfix/fix44/CollateralAssignment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4258, 1617, 559, 1927, 52, 1617, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4258, 1617, 559, 460, 273, 394, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 19525, 904, 18, 1518, 18, 4258, 1617, 559, 1927, 52, 1617, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4258, 1617, 559, 460, 273, 394, 235...
public BackEnd getBackEnd(FrontEnd fe, Properties props) throws IMTPException { try { beAddrsText = props.getProperty(FrontEnd.REMOTE_BACK_END_ADDRESSES); backEndAddresses = parseBackEndAddresses(beAddrsText); /* try { verbosity = Integer.parseInt(props.getProperty("jade_imtp_leap_JICP_EndPoint_verbosity")); } catch (NumberFormatException nfe) { } */ log("Connecting to the BackEnd",Logger.INFO); String host = props.getProperty("host"); if (host == null) { host = "localhost"; } int port = JICPProtocol.DEFAULT_PORT; try { port = Integer.parseInt(props.getProperty("port")); } catch (NumberFormatException nfe) { } mediatorTA = JICPProtocol.getInstance().buildAddress(host, String.valueOf(port), null, null); log("Remote URL is "+JICPProtocol.getInstance().addrToString(mediatorTA),Logger.INFO); String tmp = props.getProperty(JICPProtocol.RECONNECTION_RETRY_TIME_KEY); try { retryTime = Long.parseLong(tmp); } catch (Exception e) { } log("Reconnection retry time is "+retryTime,Logger.INFO); tmp = props.getProperty(JICPProtocol.MAX_DISCONNECTION_TIME_KEY); try { maxDisconnectionTime = Long.parseLong(tmp); } catch (Exception e) { } log("Max disconnection time is "+maxDisconnectionTime,Logger.INFO); myStub = new BackEndStub(this); mySkel = new FrontEndSkel(fe); owner = props.getProperty("owner"); start(); Thread.yield(); try { myConnectionListener = (ConnectionListener) Class.forName(props.getProperty("connection-listener")).newInstance(); } catch (Exception e) { } waitUntilConnected(); log("Connection OK",Logger.INFO); return myStub; } catch (ICPException icpe) { throw new IMTPException("Connection error", icpe); } }
public BackEnd getBackEnd(FrontEnd fe, Properties props) throws IMTPException { myProperties = props; try { String tmp = props.getProperty(FrontEnd.REMOTE_BACK_END_ADDRESSES); backEndAddresses = parseBackEndAddresses(tmp); String host = props.getProperty(MicroRuntime.HOST_KEY); if (host == null) { host = "localhost"; } int port = JICPProtocol.DEFAULT_PORT; try { port = Integer.parseInt(props.getProperty(MicroRuntime.PORT_KEY)); } catch (NumberFormatException nfe) { } mediatorTA = JICPProtocol.getInstance().buildAddress(host, String.valueOf(port), null, null); mediatorTA = JICPProtocol.getInstance().buildAddress(host, String.valueOf(port), null, null); if (myLogger.isLoggable(Logger.CONFIG)) { myLogger.log(Logger.CONFIG, "Remote URL="+JICPProtocol.getInstance().addrToString(mediatorTA)); } tmp = props.getProperty(JICPProtocol.MEDIATOR_CLASS_KEY); if (tmp != null) { myMediatorClass = tmp; } else{ props.setProperty(JICPProtocol.MEDIATOR_CLASS_KEY, myMediatorClass); } if (myLogger.isLoggable(Logger.CONFIG)) { myLogger.log(Logger.CONFIG, "Mediator class="+myMediatorClass); } tmp = props.getProperty(JICPProtocol.RECONNECTION_RETRY_TIME_KEY); try { retryTime = Long.parseLong(tmp); } catch (Exception e) { } if (myLogger.isLoggable(Logger.CONFIG)) { myLogger.log(Logger.CONFIG, "Reconnection time="+retryTime); } tmp = props.getProperty(JICPProtocol.MAX_DISCONNECTION_TIME_KEY); try { maxDisconnectionTime = Long.parseLong(tmp); } catch (Exception e) { } if (myLogger.isLoggable(Logger.CONFIG)) { myLogger.log(Logger.CONFIG, "Max discon. time="+maxDisconnectionTime); } tmp = props.getProperty(JICPProtocol.KEEP_ALIVE_TIME_KEY); try { keepAliveTime = Long.parseLong(tmp); } catch (Exception e) { props.setProperty(JICPProtocol.KEEP_ALIVE_TIME_KEY, String.valueOf(keepAliveTime)); } if (myLogger.isLoggable(Logger.CONFIG)) { myLogger.log(Logger.CONFIG, "Keep-alive time="+keepAliveTime); } tmp = props.getProperty(JICPProtocol.DROP_DOWN_TIME_KEY); try { connectionDropDownTime = Long.parseLong(tmp); } catch (Exception e) { } if (myLogger.isLoggable(Logger.CONFIG)) { myLogger.log(Logger.CONFIG, "Connection-drop-down time="+connectionDropDownTime); } try { Object obj = props.get("connection-listener"); if (obj instanceof ConnectionListener) { myConnectionListener = (ConnectionListener) obj; } else { myConnectionListener = (ConnectionListener) Class.forName(obj.toString()).newInstance(); } } catch (Exception e) { } mySkel = new FrontEndSkel(fe); myStub = new BackEndStub(this); Connection c = createBackEnd(); startConnectionReader(c); return myStub; } catch (ICPException icpe) { throw new IMTPException("Connection error", icpe); } }
public BackEnd getBackEnd(FrontEnd fe, Properties props) throws IMTPException { try { beAddrsText = props.getProperty(FrontEnd.REMOTE_BACK_END_ADDRESSES); backEndAddresses = parseBackEndAddresses(beAddrsText); // Verbosity /* // Not available with new Logger try { verbosity = Integer.parseInt(props.getProperty("jade_imtp_leap_JICP_EndPoint_verbosity")); } catch (NumberFormatException nfe) { // Use default (1) } */ log("Connecting to the BackEnd",Logger.INFO); // Host String host = props.getProperty("host"); if (host == null) { host = "localhost"; } // Port int port = JICPProtocol.DEFAULT_PORT; try { port = Integer.parseInt(props.getProperty("port")); } catch (NumberFormatException nfe) { // Use default } // Compose URL mediatorTA = JICPProtocol.getInstance().buildAddress(host, String.valueOf(port), null, null); log("Remote URL is "+JICPProtocol.getInstance().addrToString(mediatorTA),Logger.INFO); // Read (re)connection retry time String tmp = props.getProperty(JICPProtocol.RECONNECTION_RETRY_TIME_KEY); try { retryTime = Long.parseLong(tmp); } catch (Exception e) { // Use default } log("Reconnection retry time is "+retryTime,Logger.INFO); // Read Max disconnection time tmp = props.getProperty(JICPProtocol.MAX_DISCONNECTION_TIME_KEY); try { maxDisconnectionTime = Long.parseLong(tmp); } catch (Exception e) { // Use default } log("Max disconnection time is "+maxDisconnectionTime,Logger.INFO); // Create the BackEnd stub and the FrontEnd skeleton myStub = new BackEndStub(this); mySkel = new FrontEndSkel(fe); // Read the owner if any owner = props.getProperty("owner"); // Start the embedded Thread and wait until it connects to the BackEnd start(); Thread.yield(); // In the meanwhile load the ConnectionListener if any try { myConnectionListener = (ConnectionListener) Class.forName(props.getProperty("connection-listener")).newInstance(); } catch (Exception e) { // Just ignore it } waitUntilConnected(); log("Connection OK",Logger.INFO); return myStub; } catch (ICPException icpe) { throw new IMTPException("Connection error", icpe); } }
5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/74e6444ff2d261ae8ff8da1b22c3eae765013ee5/FrontEndDispatcher.java/buggy/leap/src/jade/imtp/leap/JICP/FrontEndDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4297, 1638, 336, 2711, 1638, 12, 9580, 1638, 1656, 16, 6183, 3458, 13, 1216, 467, 14636, 503, 288, 21114, 282, 202, 698, 288, 202, 565, 506, 13811, 1528, 273, 3458, 18, 588, 1396, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4297, 1638, 336, 2711, 1638, 12, 9580, 1638, 1656, 16, 6183, 3458, 13, 1216, 467, 14636, 503, 288, 21114, 282, 202, 698, 288, 202, 565, 506, 13811, 1528, 273, 3458, 18, 588, 1396, ...
else return m_distribution.prob(classIndex);
} else { double [] weights = weights(instance); if (weights == null) { return m_distribution.prob(classIndex); } else { double prob = 0; for (int i = 0; i < weights.length; i++) { prob += weights[i] * m_distribution.prob(classIndex, i); } return prob; } }
public double classProb(int classIndex,Instance instance) throws Exception { int theSubset = whichSubset(instance); if (theSubset > -1) return m_distribution.prob(classIndex,theSubset); else return m_distribution.prob(classIndex); }
6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/25f188ee94496b1d3089b2a5df93b388f20b2de4/ClassifierSplitModel.java/buggy/classifiers/j48/ClassifierSplitModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1645, 667, 9152, 12, 474, 667, 1016, 16, 1442, 791, 13, 3639, 1216, 1185, 288, 3639, 509, 326, 20315, 273, 1492, 20315, 12, 1336, 1769, 565, 309, 261, 5787, 20315, 405, 300, 21, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 667, 9152, 12, 474, 667, 1016, 16, 1442, 791, 13, 3639, 1216, 1185, 288, 3639, 509, 326, 20315, 273, 1492, 20315, 12, 1336, 1769, 565, 309, 261, 5787, 20315, 405, 300, 21, 1...
assertEqual(result, expecting);
assertEquals(result, expecting);
public void testDefaultArgsWhenNotInvoked() throws Exception { String templates = "group test;" +newline+ "b(name=\"foo\") ::= \".<name>.\""+newline ; StringTemplateGroup group = new StringTemplateGroup(new StringReader(templates)); StringTemplate b = group.getInstanceOf("b"); String expecting = ".foo."; String result = b.toString(); assertEqual(result, expecting); }
51898 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51898/0c15a856afe727f6355e53ebf153d3bf274ab655/TestStringTemplate.java/buggy/java/main/src/org/antlr/stringtemplate/test/TestStringTemplate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1868, 2615, 9434, 1248, 26215, 1435, 1216, 1185, 288, 202, 202, 780, 5539, 273, 9506, 202, 6, 1655, 1842, 4868, 397, 22861, 15, 9506, 202, 6, 70, 12, 529, 5189, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1868, 2615, 9434, 1248, 26215, 1435, 1216, 1185, 288, 202, 202, 780, 5539, 273, 9506, 202, 6, 1655, 1842, 4868, 397, 22861, 15, 9506, 202, 6, 70, 12, 529, 5189, 113...
MessageFilter mf2 = MessageFilter.create().setField(DMT.UID, uid).setType(DMT.FNPRoutedRejected).setTimeout(5000); m = usm.waitFor(mf1.or(mf2));
m = usm.waitFor(mf1/*.or(mf2)*/);
public int routedPing(double loc2) { long uid = random.nextLong(); int initialX = random.nextInt(); NodePeer pn = peers.closestPeer(loc2); if(pn == null) { Logger.error(this, "Nowhere to send routed ping on "+this); return -1; } Logger.normal(this, "Ping to "+loc2+": "+portNumber+" -> "+pn.getPeer().getPort()); Message m = DMT.createFNPRoutedPing(uid, loc2, MAX_HTL, initialX, lm.getLocation().getValue()); Logger.normal(this, "Message: "+m); dispatcher.handleRouted(m); // FIXME: might be rejected MessageFilter mf1 = MessageFilter.create().setField(DMT.UID, uid).setType(DMT.FNPRoutedPong).setTimeout(5000); MessageFilter mf2 = MessageFilter.create().setField(DMT.UID, uid).setType(DMT.FNPRoutedRejected).setTimeout(5000); m = usm.waitFor(mf1.or(mf2)); if(m == null) return -1; if(m.getSpec() == DMT.FNPRoutedRejected) return -1; return m.getInt(DMT.COUNTER) - initialX; }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/67ffc74c653c146c3327643dba419ef696af844a/Node.java/clean/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 3237, 329, 17223, 12, 9056, 1515, 22, 13, 288, 3639, 1525, 4555, 273, 2744, 18, 4285, 3708, 5621, 3639, 509, 2172, 60, 273, 2744, 18, 4285, 1702, 5621, 3639, 2029, 6813, 11059,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 3237, 329, 17223, 12, 9056, 1515, 22, 13, 288, 3639, 1525, 4555, 273, 2744, 18, 4285, 3708, 5621, 3639, 509, 2172, 60, 273, 2744, 18, 4285, 1702, 5621, 3639, 2029, 6813, 11059,...
addForwardGoto(Token.GOTO);
addGotoOp(Token.GOTO);
private void visitExpression(Node node, int contextFlags) { int type = node.getType(); Node child = node.getFirstChild(); int savedStackDepth = itsStackDepth; switch (type) { case Token.FUNCTION: { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); FunctionNode fn = scriptOrFn.getFunctionNode(fnIndex); // See comments in visitStatement for Token.FUNCTION case if (fn.getFunctionType() != FunctionNode.FUNCTION_EXPRESSION) { throw Kit.codeBug(); } addIndexOp(Icode_CLOSURE_EXPR, fnIndex); stackChange(1); } break; case Token.LOCAL_LOAD: { int localIndex = getLocalBlockRef(node); addIndexOp(Token.LOCAL_LOAD, localIndex); stackChange(1); } break; case Token.COMMA: { Node lastChild = node.getLastChild(); while (child != lastChild) { visitExpression(child, 0); addIcode(Icode_POP); stackChange(-1); child = child.getNext(); } // Preserve tail context flag if any visitExpression(child, contextFlags & ECF_TAIL); } break; case Token.USE_STACK: // Indicates that stack was modified externally, // like placed catch object stackChange(1); break; case Token.REF_CALL: case Token.CALL: case Token.NEW: { if (type == Token.NEW) { visitExpression(child, 0); } else { generateCallFunAndThis(child); } int argCount = 0; while ((child = child.getNext()) != null) { visitExpression(child, 0); ++argCount; } int callType = node.getIntProp(Node.SPECIALCALL_PROP, Node.NON_SPECIALCALL); if (callType != Node.NON_SPECIALCALL) { // embed line number and source filename addIndexOp(Icode_CALLSPECIAL, argCount); addUint8(callType); addUint8(type == Token.NEW ? 1 : 0); addUint16(itsLineNumber & 0xFFFF); } else { if (type == Token.CALL) { if ((contextFlags & ECF_TAIL) != 0) { type = Icode_TAIL_CALL; } } addIndexOp(type, argCount); } // adjust stack if (type == Token.NEW) { // new: f, args -> result stackChange(-argCount); } else { // call: f, thisObj, args -> result // ref_call: f, thisObj, args -> ref stackChange(-1 - argCount); } if (argCount > itsData.itsMaxCalleeArgs) { itsData.itsMaxCalleeArgs = argCount; } } break; case Token.AND: case Token.OR: { visitExpression(child, 0); addIcode(Icode_DUP); stackChange(1); int afterSecondJumpStart = itsICodeTop; int jump = (type == Token.AND) ? Token.IFNE : Token.IFEQ; addForwardGoto(jump); stackChange(-1); addIcode(Icode_POP); stackChange(-1); child = child.getNext(); // Preserve tail context flag if any visitExpression(child, contextFlags & ECF_TAIL); resolveForwardGoto(afterSecondJumpStart); } break; case Token.HOOK: { Node ifThen = child.getNext(); Node ifElse = ifThen.getNext(); visitExpression(child, 0); int elseJumpStart = itsICodeTop; addForwardGoto(Token.IFNE); stackChange(-1); // Preserve tail context flag if any visitExpression(ifThen, contextFlags & ECF_TAIL); int afterElseJumpStart = itsICodeTop; addForwardGoto(Token.GOTO); resolveForwardGoto(elseJumpStart); itsStackDepth = savedStackDepth; // Preserve tail context flag if any visitExpression(ifElse, contextFlags & ECF_TAIL); resolveForwardGoto(afterElseJumpStart); } break; case Token.GETPROP: visitExpression(child, 0); child = child.getNext(); addStringOp(Token.GETPROP, child.getString()); break; case Token.GETELEM: case Token.DELPROP: case Token.BITAND: case Token.BITOR: case Token.BITXOR: case Token.LSH: case Token.RSH: case Token.URSH: case Token.ADD: case Token.SUB: case Token.MOD: case Token.DIV: case Token.MUL: case Token.EQ: case Token.NE: case Token.SHEQ: case Token.SHNE: case Token.IN: case Token.INSTANCEOF: case Token.LE: case Token.LT: case Token.GE: case Token.GT: visitExpression(child, 0); child = child.getNext(); visitExpression(child, 0); addToken(type); stackChange(-1); break; case Token.POS: case Token.NEG: case Token.NOT: case Token.BITNOT: case Token.TYPEOF: case Token.VOID: visitExpression(child, 0); if (type == Token.VOID) { addIcode(Icode_POP); addIcode(Icode_UNDEF); } else { addToken(type); } break; case Token.GET_REF: case Token.DEL_REF: visitExpression(child, 0); addToken(type); break; case Token.SETPROP: case Token.SETPROP_OP: { visitExpression(child, 0); child = child.getNext(); String property = child.getString(); child = child.getNext(); if (type == Token.SETPROP_OP) { addIcode(Icode_DUP); stackChange(1); addStringOp(Token.GETPROP, property); // Compensate for the following USE_STACK stackChange(-1); } visitExpression(child, 0); addStringOp(Token.SETPROP, property); stackChange(-1); } break; case Token.SETELEM: case Token.SETELEM_OP: visitExpression(child, 0); child = child.getNext(); visitExpression(child, 0); child = child.getNext(); if (type == Token.SETELEM_OP) { addIcode(Icode_DUP2); stackChange(2); addToken(Token.GETELEM); stackChange(-1); // Compensate for the following USE_STACK stackChange(-1); } visitExpression(child, 0); addToken(Token.SETELEM); stackChange(-2); break; case Token.SET_REF: case Token.SET_REF_OP: visitExpression(child, 0); child = child.getNext(); if (type == Token.SET_REF_OP) { addIcode(Icode_DUP); stackChange(1); addToken(Token.GET_REF); // Compensate for the following USE_STACK stackChange(-1); } visitExpression(child, 0); addToken(Token.SET_REF); stackChange(-1); break; case Token.SETNAME: { String name = child.getString(); visitExpression(child, 0); child = child.getNext(); visitExpression(child, 0); addStringOp(Token.SETNAME, name); stackChange(-1); } break; case Token.TYPEOFNAME: { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = scriptOrFn.getParamOrVarIndex(name); if (index == -1) { addStringOp(Icode_TYPEOFNAME, name); stackChange(1); } else { addVarOp(Token.GETVAR, index); stackChange(1); addToken(Token.TYPEOF); } } break; case Token.BINDNAME: case Token.NAME: case Token.STRING: addStringOp(type, node.getString()); stackChange(1); break; case Token.INC: case Token.DEC: visitIncDec(node, child); break; case Token.NUMBER: { double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { addIcode(Icode_ZERO); // Check for negative zero if (1.0 / num < 0.0) { addToken(Token.NEG); } } else if (inum == 1) { addIcode(Icode_ONE); } else if ((short)inum == inum) { addIcode(Icode_SHORTNUMBER); // write short as uin16 bit pattern addUint16(inum & 0xFFFF); } else { addIcode(Icode_INTNUMBER); addInt(inum); } } else { int index = getDoubleIndex(num); addIndexOp(Token.NUMBER, index); } stackChange(1); } break; case Token.GETVAR: { if (itsData.itsNeedsActivation) Kit.codeBug(); String name = node.getString(); int index = scriptOrFn.getParamOrVarIndex(name); addVarOp(Token.GETVAR, index); stackChange(1); } break; case Token.SETVAR: { if (itsData.itsNeedsActivation) Kit.codeBug(); String name = child.getString(); child = child.getNext(); visitExpression(child, 0); int index = scriptOrFn.getParamOrVarIndex(name); addVarOp(Token.SETVAR, index); } break; case Token.NULL: case Token.THIS: case Token.THISFN: case Token.FALSE: case Token.TRUE: addToken(type); stackChange(1); break; case Token.ENUM_NEXT: case Token.ENUM_ID: addIndexOp(type, getLocalBlockRef(node)); stackChange(1); break; case Token.REGEXP: { int index = node.getExistingIntProp(Node.REGEXP_PROP); addIndexOp(Token.REGEXP, index); stackChange(1); } break; case Token.ARRAYLIT: case Token.OBJECTLIT: visitLiteral(node, child); break; case Token.REF_SPECIAL: visitExpression(child, 0); addStringOp(type, (String)node.getProp(Node.NAME_PROP)); break; case Token.REF_MEMBER: case Token.REF_NS_MEMBER: case Token.REF_NAME: case Token.REF_NS_NAME: { int memberTypeFlags = node.getIntProp(Node.MEMBER_TYPE_PROP, 0); // generate possible target, possible namespace and member int childCount = 0; do { visitExpression(child, 0); ++childCount; child = child.getNext(); } while (child != null); addIndexOp(type, memberTypeFlags); stackChange(1 - childCount); } break; case Token.DOTQUERY: { int queryPC; updateLineNumber(node); visitExpression(child, 0); addIcode(Icode_ENTERDQ); stackChange(-1); queryPC = itsICodeTop; visitExpression(child.getNext(), 0); addBackwardGoto(Icode_LEAVEDQ, queryPC); } break; case Token.DEFAULTNAMESPACE : case Token.ESCXMLATTR : case Token.ESCXMLTEXT : visitExpression(child, 0); addToken(type); break; default: throw badTree(node); } if (savedStackDepth + 1 != itsStackDepth) { Kit.codeBug(); } }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/bc63a23d7b4a1d6e277c093eb62057be0106b31e/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 2300, 12, 907, 756, 16, 509, 819, 5094, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 509, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 2300, 12, 907, 756, 16, 509, 819, 5094, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 509, ...
if(group.getId().equals(groupId))
String gid = group.getId(); String gref = group.getReference(); if(gid.equals(groupId) || gref.equals(groupId))
public void addInheritedGroup(String groupId) { if(m_inheritedGroups == null) { m_inheritedGroups = new Vector(); } if(m_container == null) { if(m_id == null) { m_container = ContentHostingService.getSiteCollection(ToolManager.getCurrentPlacement().getContext()); } else { m_container = ContentHostingService.getContainingCollectionId(m_id); } if(m_container == null || m_container.trim() == "") { m_container = ContentHostingService.getSiteCollection(ToolManager.getCurrentPlacement().getContext()); } } boolean found = false; Collection groups = ContentHostingService.getGroupsWithReadAccess(m_container); Iterator it = groups.iterator(); while( it.hasNext() && !found ) { Group group = (Group) it.next(); if(group.getId().equals(groupId)) { if(! inheritsGroup(group.getReference())) { m_inheritedGroups.add(group); } found = true; } } }
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/090303794a50966061b6209d3d287c5d22f71e83/ResourcesAction.java/clean/content/content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 527, 29078, 1114, 12, 780, 6612, 13, 202, 202, 95, 1082, 202, 430, 12, 81, 67, 6018, 329, 3621, 422, 446, 13, 1082, 202, 95, 9506, 202, 81, 67, 6018, 329, 3621, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 527, 29078, 1114, 12, 780, 6612, 13, 202, 202, 95, 1082, 202, 430, 12, 81, 67, 6018, 329, 3621, 422, 446, 13, 1082, 202, 95, 9506, 202, 81, 67, 6018, 329, 3621, 273, ...
public ConnectionTable(Receiver r, InetAddress bind_addr, int srv_port, long reaper_interval, long conn_expire_time) throws Exception { setReceiver(r); this.bind_addr=bind_addr;
public ConnectionTable(int srv_port) throws Exception {
public ConnectionTable(Receiver r, InetAddress bind_addr, int srv_port, long reaper_interval, long conn_expire_time) throws Exception { setReceiver(r); this.bind_addr=bind_addr; this.srv_port=srv_port; this.reaper_interval=reaper_interval; this.conn_expire_time=conn_expire_time; use_reaper=true; start(); }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/3239d54501a61a05eb6b45df50b0144eb7970a31/ConnectionTable.java/buggy/src/org/jgroups/blocks/ConnectionTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4050, 1388, 12, 12952, 436, 16, 14218, 1993, 67, 4793, 16, 509, 7302, 67, 655, 16, 21821, 1525, 283, 7294, 67, 6624, 16, 1525, 1487, 67, 14070, 67, 957, 13, 1216, 1185, 288, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4050, 1388, 12, 12952, 436, 16, 14218, 1993, 67, 4793, 16, 509, 7302, 67, 655, 16, 21821, 1525, 283, 7294, 67, 6624, 16, 1525, 1487, 67, 14070, 67, 957, 13, 1216, 1185, 288, 3639,...
public byte [] generate(int value) { byte []b=new byte[sysex.length()/2]; for (int i=0;i<sysex.length();i+=2) { if (sysex.charAt(i)=='*') b[i/2]=(byte)value; else if (sysex.charAt(i)=='@') b[i/2]=(byte) (channel-1); else if (sysex.charAt(i)=='#') b[i/2]=(byte) (channel-1+16); else {
public byte[] generate(int value) { byte[] b = new byte[sysex.length() / 2]; for (int i = 0; i < sysex.length(); i += 2) { if (sysex.charAt(i) == '*') b[i / 2] = (byte) value; else if (sysex.charAt(i) == '@') b[i / 2] = (byte) (channel - 1); else if (sysex.charAt(i) == '#') b[i / 2] = (byte) (channel - 1 + 16); else {
public byte [] generate(int value) { byte []b=new byte[sysex.length()/2]; for (int i=0;i<sysex.length();i+=2) { if (sysex.charAt(i)=='*') b[i/2]=(byte)value; else if (sysex.charAt(i)=='@') b[i/2]=(byte) (channel-1); else if (sysex.charAt(i)=='#') b[i/2]=(byte) (channel-1+16); else { Integer in = new Integer(0); b[i/2]=(byte)in.parseInt(sysex.substring(i,i+2),16); } } return b; }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/e7311a9aa2ac478953975abaa1c0c14e8201c062/SysexSender.java/clean/JSynthLib/core/SysexSender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1160, 5378, 2103, 12, 474, 460, 13, 282, 288, 565, 1160, 5378, 70, 33, 2704, 1160, 63, 9009, 20909, 18, 2469, 1435, 19, 22, 15533, 565, 364, 261, 474, 277, 33, 20, 31, 77, 32, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1160, 5378, 2103, 12, 474, 460, 13, 282, 288, 565, 1160, 5378, 70, 33, 2704, 1160, 63, 9009, 20909, 18, 2469, 1435, 19, 22, 15533, 565, 364, 261, 474, 277, 33, 20, 31, 77, 32, ...
public static void sprocUpdateParentsDateModified( IMCServiceInterface imcref, int meta_id ) { imcref.sqlUpdateProcedure( SPROC_UPDATE_PARENTS_DATE_MODIFIED, new String[]{"" + meta_id} );
public static void sprocUpdateParentsDateModified(IMCServiceInterface imcref, int meta_id) { imcref.sqlUpdateProcedure(SPROC_UPDATE_PARENTS_DATE_MODIFIED, new String[]{"" + meta_id});
public static void sprocUpdateParentsDateModified( IMCServiceInterface imcref, int meta_id ) { imcref.sqlUpdateProcedure( SPROC_UPDATE_PARENTS_DATE_MODIFIED, new String[]{"" + meta_id} ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/25d7c7c866e4b2d2d9e20e2d71648b696a1c81f6/DocumentMapper.java/buggy/server/src/imcode/server/document/DocumentMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 272, 9381, 1891, 13733, 1626, 4575, 12, 6246, 39, 18348, 709, 71, 1734, 16, 509, 2191, 67, 350, 262, 288, 3639, 709, 71, 1734, 18, 4669, 1891, 17213, 12, 348, 3373, 39, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 272, 9381, 1891, 13733, 1626, 4575, 12, 6246, 39, 18348, 709, 71, 1734, 16, 509, 2191, 67, 350, 262, 288, 3639, 709, 71, 1734, 18, 4669, 1891, 17213, 12, 348, 3373, 39, ...
Graphics g = getGraphics();
Graphics g = PlotPanel.this.getGraphics();
public void mouseReleased(MouseEvent e) { //System.out.println("rel"); if (m_createShape) { if (((Double)m_shapePoints.elementAt(0)).intValue() == 1) { m_createShape = false; Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); g.drawRect(((Double)m_shapePoints.elementAt(1)). intValue(), ((Double)m_shapePoints.elementAt(2)).intValue(), ((Double)m_shapePoints.elementAt(3)).intValue() - ((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(4)).intValue() - ((Double)m_shapePoints.elementAt(2)).intValue()); g.dispose(); if (checkPoints(((Double)m_shapePoints.elementAt(1)). doubleValue(), ((Double)m_shapePoints.elementAt(2)). doubleValue()) && checkPoints(((Double)m_shapePoints.elementAt(3)). doubleValue(), ((Double)m_shapePoints.elementAt(4)). doubleValue())) { //then the points all land on the screen //now do special check for the rectangle if (((Double)m_shapePoints.elementAt(1)).doubleValue() < ((Double)m_shapePoints.elementAt(3)).doubleValue() && ((Double)m_shapePoints.elementAt(2)).doubleValue() < ((Double)m_shapePoints.elementAt(4)).doubleValue()) { //then the rectangle is valid if (m_shapes == null) { m_shapes = new FastVector(2); } m_shapePoints.setElementAt(new Double(convertToAttribX(((Double)m_shapePoints. elementAt(1)). doubleValue())), 1); m_shapePoints.setElementAt(new Double(convertToAttribY(((Double)m_shapePoints. elementAt(2)). doubleValue())), 2); m_shapePoints.setElementAt(new Double(convertToAttribX(((Double)m_shapePoints. elementAt(3)). doubleValue())), 3); m_shapePoints.setElementAt(new Double(convertToAttribY(((Double)m_shapePoints. elementAt(4)). doubleValue())), 4); m_shapes.addElement(m_shapePoints); m_submit.setText("Submit"); m_submit.setActionCommand("Submit"); m_submit.setEnabled(true); repaint(); } } m_shapePoints = null; } } }
6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/dab572c119692e2deb0fa2d817b347c7cfe42ded/VisualizePanel.java/buggy/gui/explorer/VisualizePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 225, 1071, 918, 7644, 26363, 12, 9186, 1133, 425, 13, 288, 202, 565, 368, 3163, 18, 659, 18, 8222, 2932, 2878, 8863, 202, 565, 309, 261, 81, 67, 2640, 8500, 13, 288, 202, 1377, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 1071, 918, 7644, 26363, 12, 9186, 1133, 425, 13, 288, 202, 565, 368, 3163, 18, 659, 18, 8222, 2932, 2878, 8863, 202, 565, 309, 261, 81, 67, 2640, 8500, 13, 288, 202, 1377, 309, ...
columns.remove(column); }
columns.remove(column); }
public void removeColumn(Column column) { columns.remove(column); }
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/06b0a7e65b5f3b82a40d6dc1888c656f99a4429b/SelectQuery.java/clean/src/java/com/idega/data/query/SelectQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 1494, 12, 1494, 1057, 13, 288, 3639, 2168, 18, 4479, 12, 2827, 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...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 1494, 12, 1494, 1057, 13, 288, 3639, 2168, 18, 4479, 12, 2827, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if (dst instanceof Object[]) {
if (src == dst) { Object tmp = Array.newInstance(dst_component, length); System.arraycopy(src, src_position, tmp, 0, length); System.arraycopy(tmp, 0, dst, dst_position, length); } else if (dst instanceof Object[]) {
public static void arraycopy(Object src, int src_position, Object dst, int dst_position, int length) { if (length < 0) { throw new ArrayIndexOutOfBoundsException(); } if (dst instanceof Object[]) { Object[] d = (Object[])dst; Object[] s = (Object[])src; if (dst_position < src_position) { for (int i = length - 1; i >= 0; --i) { d[dst_position++] = s[src_position++]; } } else { dst_position += length; src_position += length; for (int i = length - 1; i >= 0; --i) { d[--dst_position] = s[--src_position]; } } } else if (dst instanceof int[]) { int[] d = (int[])dst; int[] s = (int[])src; if (dst_position < src_position) { for (int i = length - 1; i >= 0; --i) { d[dst_position++] = s[src_position++]; } } else { dst_position += length; src_position += length; for (int i = length - 1; i >= 0; --i) { d[--dst_position] = s[--src_position]; } } } else if (dst instanceof float[]) { float[] d = (float[])dst; float[] s = (float[])src; if (dst_position < src_position) { for (int i = length - 1; i >= 0; --i) { d[dst_position++] = s[src_position++]; } } else { dst_position += length; src_position += length; for (int i = length - 1; i >= 0; --i) { d[--dst_position] = s[--src_position]; } } } else if (dst instanceof long[]) { long[] d = (long[])dst; long[] s = (long[])src; if (dst_position < src_position) { for (int i = length - 1; i >= 0; --i) { d[dst_position++] = s[src_position++]; } } else { dst_position += length; src_position += length; for (int i = length - 1; i >= 0; --i) { d[--dst_position] = s[--src_position]; } } } else if (dst instanceof double[]) { double[] d = (double[])dst; double[] s = (double[])src; if (dst_position < src_position) { for (int i = length - 1; i >= 0; --i) { d[dst_position++] = s[src_position++]; } } else { dst_position += length; src_position += length; for (int i = length - 1; i >= 0; --i) { d[--dst_position] = s[--src_position]; } } } else if (dst instanceof boolean[]) { boolean[] d = (boolean[])dst; boolean[] s = (boolean[])src; if (dst_position < src_position) { for (int i = length - 1; i >= 0; --i) { d[dst_position++] = s[src_position++]; } } else { dst_position += length; src_position += length; for (int i = length - 1; i >= 0; --i) { d[--dst_position] = s[--src_position]; } } } else if (dst instanceof byte[]) { byte[] d = (byte[])dst; byte[] s = (byte[])src; if (dst_position < src_position) { for (int i = length - 1; i >= 0; --i) { d[dst_position++] = s[src_position++]; } } else { dst_position += length; src_position += length; for (int i = length - 1; i >= 0; --i) { d[--dst_position] = s[--src_position]; } } } else if (dst instanceof char[]) { char[] d = (char[])dst; char[] s = (char[])src; if (dst_position < src_position) { for (int i = length - 1; i >= 0; --i) { d[dst_position++] = s[src_position++]; } } else { dst_position += length; src_position += length; for (int i = length - 1; i >= 0; --i) { d[--dst_position] = s[--src_position]; } } } else if (dst instanceof short[]) { short[] d = (short[])dst; short[] s = (short[])src; if (dst_position < src_position) { for (int i = length - 1; i >= 0; --i) { d[dst_position++] = s[src_position++]; } } else { dst_position += length; src_position += length; for (int i = length - 1; i >= 0; --i) { d[--dst_position] = s[--src_position]; } } } else { throw new ArrayStoreException("not arrays: source type is " + src.getClass().getName() + ", destination type is " + dst.getClass().getName()); }}
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/887318ddf28a5bdb2422b983c3bf6cc6f2dda340/System.java/clean/libraries/javalib/java/lang/System.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 918, 8817, 12, 921, 1705, 16, 509, 1705, 67, 3276, 16, 1033, 3046, 16, 509, 3046, 67, 3276, 16, 509, 769, 13, 288, 202, 430, 261, 2469, 411, 374, 13, 288, 202, 202, 12849, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 918, 8817, 12, 921, 1705, 16, 509, 1705, 67, 3276, 16, 1033, 3046, 16, 509, 3046, 67, 3276, 16, 509, 769, 13, 288, 202, 430, 261, 2469, 411, 374, 13, 288, 202, 202, 12849, 394, ...
if (clc != null) { return clc.getClassLoader(); } return null;
if (clc != null) { return clc.getClassLoader(); } return null;
protected ClassLoader getAdditionalClassLoader() { if (clc != null) { return clc.getClassLoader(); } return null; }
49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/108e1021fab89bb260b33d4575fd7b4622fb8703/GlobalContext.java/buggy/src/koala/dynamicjava/interpreter/context/GlobalContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 9403, 26660, 7805, 1435, 288, 202, 430, 261, 830, 71, 480, 446, 13, 288, 202, 565, 327, 927, 71, 18, 588, 7805, 5621, 202, 97, 202, 2463, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 9403, 26660, 7805, 1435, 288, 202, 430, 261, 830, 71, 480, 446, 13, 288, 202, 565, 327, 927, 71, 18, 588, 7805, 5621, 202, 97, 202, 2463, 446, 31, 565, 289, 2, -100, -100, -100,...
String qualifier;
String qualifier = null;
private static void writeItemIndex(Context c, IndexWriter writer, Item myitem) throws SQLException, IOException { // get the location string (for searching by collection & community) String location_text = buildItemLocationString(c, myitem); // read in indexes from the config ArrayList indexes = new ArrayList(); // read in search.index.1, search.index.2.... for (int i = 1; ConfigurationManager.getProperty("search.index." + i) != null; i++) { indexes.add(ConfigurationManager.getProperty("search.index." + i)); } int j; int k = 0; // initialize hash to be built HashMap textvalues = new HashMap(); if (indexes.size() > 0) { ArrayList fields = new ArrayList(); ArrayList content = new ArrayList(); DCValue[] mydc; for (int i = 0; i < indexes.size(); i++) { String index = (String) indexes.get(i); String[] dc = index.split(":"); String myindex = dc[0]; String schema; String element; String qualifier; // Get the schema, element and qualifier for the index String[] elements = dc[1].split("\\."); if (elements.length == 3) { schema = elements[0]; element = elements[1]; qualifier = elements[2]; } else { schema = MetadataSchema.DC_SCHEMA; element = elements[0]; qualifier = elements[1]; } // extract metadata (ANY is wildcard from Item class) if (qualifier.equals("*")) { mydc = myitem.getMetadata(schema, element, Item.ANY, Item.ANY); } else { mydc = myitem.getMetadata(schema, element, qualifier, Item.ANY); } // put them all from an array of strings to one string for // writing out pack all of the arrays of DCValues into plain // text strings for the indexer String content_text = ""; for (j = 0; j < mydc.length; j++) { content_text = new String(content_text + mydc[j].value + " "); } // arranges content with fields in ArrayLists with same index to // put // into hash later k = fields.indexOf(myindex); if (k < 0) { fields.add(myindex); content.add(content_text); } else { content_text = new String(content_text + (String) content.get(k) + " "); content.set(k, content_text); } } // build the hash for (int i = 0; i < fields.size(); i++) { textvalues.put((String) fields.get(i), (String) content.get(i)); } textvalues.put("location", location_text); } else // if no search indexes found in cfg file, for backward compatibility { // extract metadata (ANY is wildcard from Item class) DCValue[] authors = myitem.getDC("contributor", Item.ANY, Item.ANY); DCValue[] creators = myitem.getDC("creator", Item.ANY, Item.ANY); DCValue[] titles = myitem.getDC("title", Item.ANY, Item.ANY); DCValue[] keywords = myitem.getDC("subject", Item.ANY, Item.ANY); DCValue[] abstracts = myitem.getDC("description", "abstract", Item.ANY); DCValue[] sors = myitem.getDC("description", "statementofresponsibility", Item.ANY); DCValue[] series = myitem.getDC("relation", "ispartofseries", Item.ANY); DCValue[] tocs = myitem.getDC("description", "tableofcontents", Item.ANY); DCValue[] mimetypes = myitem.getDC("format", "mimetype", Item.ANY); DCValue[] sponsors = myitem.getDC("description", "sponsorship", Item.ANY); DCValue[] identifiers = myitem.getDC("identifier", Item.ANY, Item.ANY); // put them all from an array of strings to one string for writing // out String author_text = ""; String title_text = ""; String keyword_text = ""; String abstract_text = ""; String series_text = ""; String mime_text = ""; String sponsor_text = ""; String id_text = ""; // pack all of the arrays of DCValues into plain text strings for // the // indexer for (j = 0; j < authors.length; j++) { author_text = new String(author_text + authors[j].value + " "); } for (j = 0; j < creators.length; j++) //also authors { author_text = new String(author_text + creators[j].value + " "); } for (j = 0; j < sors.length; j++) //also authors { author_text = new String(author_text + sors[j].value + " "); } for (j = 0; j < titles.length; j++) { title_text = new String(title_text + titles[j].value + " "); } for (j = 0; j < keywords.length; j++) { keyword_text = new String(keyword_text + keywords[j].value + " "); } for (j = 0; j < abstracts.length; j++) { abstract_text = new String(abstract_text + abstracts[j].value + " "); } for (j = 0; j < tocs.length; j++) { abstract_text = new String(abstract_text + tocs[j].value + " "); } for (j = 0; j < series.length; j++) { series_text = new String(series_text + series[j].value + " "); } for (j = 0; j < mimetypes.length; j++) { mime_text = new String(mime_text + mimetypes[j].value + " "); } for (j = 0; j < sponsors.length; j++) { sponsor_text = new String(sponsor_text + sponsors[j].value + " "); } for (j = 0; j < identifiers.length; j++) { id_text = new String(id_text + identifiers[j].value + " "); } // build the hash textvalues.put("author", author_text); textvalues.put("title", title_text); textvalues.put("keyword", keyword_text); textvalues.put("location", location_text); textvalues.put("abstract", abstract_text); textvalues.put("series", series_text); textvalues.put("mimetype", mime_text); textvalues.put("sponsor", sponsor_text); textvalues.put("identifier", id_text); } // now get full text of any bitstreams in the TEXT bundle String extractedText = ""; // trundle through the bundles Bundle[] myBundles = myitem.getBundles(); for (int i = 0; i < myBundles.length; i++) { if ((myBundles[i].getName() != null) && myBundles[i].getName().equals("TEXT")) { // a-ha! grab the text out of the bitstreams Bitstream[] myBitstreams = myBundles[i].getBitstreams(); for (j = 0; j < myBitstreams.length; j++) { try { InputStreamReader is = new InputStreamReader( myBitstreams[j].retrieve()); // get input // stream StringBuffer sb = new StringBuffer(); char[] charBuffer = new char[1024]; while (true) { int bytesIn = is.read(charBuffer); if (bytesIn == -1) { break; } if (bytesIn > 0) { sb.append(charBuffer, 0, bytesIn); } } // now sb has the full text - tack on to fullText string extractedText = extractedText.concat(new String(sb)); // System.out.println("Found extracted text!\n" + new // String(sb)); } catch (AuthorizeException e) { // this will never happen, but compiler is now happy. } } } } // lastly, get the handle String itemhandle = HandleManager.findHandle(c, myitem); textvalues.put("handletext", itemhandle); // write out the metatdata (for scalability, using hash instead of // individual strings) writeIndexRecord(writer, Constants.ITEM, itemhandle, textvalues, extractedText); }
25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/40fcbb2dd2def0066fee139b7bc646ab8c39e98d/DSIndexer.java/buggy/dspace/src/org/dspace/search/DSIndexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1045, 1180, 1016, 12, 1042, 276, 16, 3340, 2289, 2633, 16, 5411, 4342, 3399, 1726, 13, 1216, 6483, 16, 1860, 565, 288, 3639, 368, 336, 326, 2117, 533, 261, 1884, 15300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 1180, 1016, 12, 1042, 276, 16, 3340, 2289, 2633, 16, 5411, 4342, 3399, 1726, 13, 1216, 6483, 16, 1860, 565, 288, 3639, 368, 336, 326, 2117, 533, 261, 1884, 15300, ...
int currCon = stat.getCurrentConnectionNumber(); setValue(I_CURR_CONS, String.valueOf(currCon)); int totalCon = stat.getTotalConnectionNumber(); setValue(I_TOTAL_CONS, String.valueOf(totalCon));
int loginNbr = stat.getCurrentLoginNumber(); setValue(I_CURR_LOGINS, String.valueOf(loginNbr)); int totalLoginNbr = stat.getTotalLoginNumber(); setValue(I_TOTAL_LOGINS, String.valueOf(totalLoginNbr)); if(anonymous) { int anonLoginNbr = stat.getCurrentAnonymousLoginNumber(); setValue(I_CURR_ANON_LOGINS, String.valueOf(anonLoginNbr)); int totalAnonLoginNbr = stat.getTotalAnonymousLoginNumber(); setValue(I_TOTAL_ANON_LOGINS, String.valueOf(totalAnonLoginNbr)); }
public void run() { ServerFtpStatistics stat = statistics; if(stat != null) { int currCon = stat.getCurrentConnectionNumber(); setValue(I_CURR_CONS, String.valueOf(currCon)); int totalCon = stat.getTotalConnectionNumber(); setValue(I_TOTAL_CONS, String.valueOf(totalCon)); } }
48500 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48500/fb0100d79cce109e2696e6867ac71f0eacc966cb/StatisticsPanel.java/clean/admin-gui/src/java/org/apache/ftpserver/gui/StatisticsPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 1171, 3224, 42, 6834, 8569, 610, 273, 7691, 31, 7734, 309, 12, 5642, 480, 446, 13, 288, 10792, 509, 4306, 442, 273, 610, 18, 588, 3935, 1952, 1854, 5621, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 1171, 3224, 42, 6834, 8569, 610, 273, 7691, 31, 7734, 309, 12, 5642, 480, 446, 13, 288, 10792, 509, 4306, 442, 273, 610, 18, 588, 3935, 1952, 1854, 5621, 10...
try { /* * use an alternative logger. Set it up here and pass it in. */ Velocity.setProperty(Velocity.RUNTIME_LOG_LOGSYSTEM, this ); Velocity.init(); } catch (Exception e) { System.err.println("Cannot setup event handling test : " + e); System.exit(1); }
public EventHandlingTestCase() { super("EventHandlingTestCase"); try { /* * use an alternative logger. Set it up here and pass it in. */ Velocity.setProperty(Velocity.RUNTIME_LOG_LOGSYSTEM, this ); Velocity.init(); } catch (Exception e) { System.err.println("Cannot setup event handling test : " + e); System.exit(1); } }
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/59780514f566344db5c57333d6182e2f5f040af7/EventHandlingTestCase.java/buggy/src/java/org/apache/velocity/test/EventHandlingTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2587, 14701, 4709, 2449, 1435, 565, 288, 3639, 2240, 2932, 1133, 14701, 4709, 2449, 8863, 3639, 775, 3639, 288, 5411, 1748, 2398, 380, 225, 999, 392, 10355, 1194, 18, 225, 1000, 518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2587, 14701, 4709, 2449, 1435, 565, 288, 3639, 2240, 2932, 1133, 14701, 4709, 2449, 8863, 3639, 775, 3639, 288, 5411, 1748, 2398, 380, 225, 999, 392, 10355, 1194, 18, 225, 1000, 518, ...
if (dragTarget != null)
if (dragTarget != null && dragButton == ev.getButton())
private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); // Find the target for the mouse event. We first seach the deepest // component at the specified location. The we go up to its parent and // try to find a neighbor of the deepest component that is suitable as // mouse event target (it must be showing, at that location and have either // a MouseListener or MouseMotionListener installed). If no such component // is found, then we walk up the container hierarchy and find the next // container that has a MouseListener or MouseMotionListener installed. Component deepest = window.findComponentAt(ev.getX(), ev.getY()); if (deepest == null) return false; Container parent = deepest.getParent(); Point loc = ev.getPoint(); loc = AWTUtilities.convertPoint(window, loc.x, loc.y, parent); Component target = null; if (parent != null) { target = findTarget(deepest.getParent(), loc); while (target == null && parent != null) { if (parent.getMouseListeners().length > 0 || parent.getMouseMotionListeners().length > 0) { target = parent; } else parent = parent.getParent(); } } if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if event target // is different from the last event target. if (target != lastTarget) { if (lastTarget != null) { Point p1 = AWTUtilities.convertPoint(window, ev.getX(), ev.getY(), lastTarget); MouseEvent mouseExited = new MouseEvent(lastTarget, MouseEvent.MOUSE_EXITED, ev.getWhen(), ev.getModifiers(), p1.x, p1.y, ev.getClickCount(), ev.isPopupTrigger()); lastTarget.dispatchEvent(mouseExited); } // If a target exists dispatch the MOUSE_ENTERED event only if // there is currently no component from which a drag operation // started (dragTarget == null) or the target is that component // (dragTarget == target) // That way a user can click and hold on a button (putting it into // the armed state), move the cursor above other buttons without // affecting their rollover state and get back to the initial // button. if (target != null && (dragTarget == null || dragTarget == target)) { Point p = AWTUtilities.convertPoint(window, ev.getX(), ev.getY(), target); MouseEvent mouseEntered = new MouseEvent(target, MouseEvent.MOUSE_ENTERED, ev.getWhen(), ev.getModifiers(), p.x, p.y, ev.getClickCount(), ev.isPopupTrigger()); target.dispatchEvent(mouseEntered); } } switch (ev.getID()) { case MouseEvent.MOUSE_PRESSED: lastTarget = dragTarget = target; break; case MouseEvent.MOUSE_RELEASED: if (dragTarget != null) { target = dragTarget; dragTarget = null; } lastTarget = target; break; case MouseEvent.MOUSE_CLICKED: // When we receive a MOUSE_CLICKED, we set the target to the // previous target, which must have been a MOUSE_RELEASED event. // This is necessary for the case when the MOUSE_RELEASED has // caused the original target (like an internal component) go // away. // This line is the reason why it is not possible to move the // 'lastTarget = target' assignment before the switch-statement. target = lastTarget; break; case MouseEvent.MOUSE_DRAGGED: // We consider only dragTarget for redispatching the event still // we have to act in a way that the newly found target component // was handled. lastTarget = target; target = dragTarget; break; default: // Only declare current target as the old value in all other // cases. lastTarget = target; break; } if (target != null) { Point targetCoordinates = AWTUtilities.convertPoint(window, ev.getX(), ev.getY(), target); int dx = targetCoordinates.x - ev.getX(); int dy = targetCoordinates.y - ev.getY(); ev.translatePoint(dx, dy); ev.setSource(target); target.dispatchEvent(ev); // We reset the event, so that the normal event dispatching is not // influenced by this modified event. ev.setSource(window); ev.translatePoint(-dx, -dy); } return true; } else return false; }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/085ab59d1ee22673b1f5e3328558ae7ad6418e45/LightweightDispatcher.java/buggy/java/awt/LightweightDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 1640, 9186, 1133, 12, 9186, 1133, 2113, 13, 225, 288, 565, 6076, 2742, 273, 261, 3829, 13, 2113, 18, 588, 1830, 5621, 565, 368, 4163, 326, 1018, 364, 326, 7644, 871, 18, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 1640, 9186, 1133, 12, 9186, 1133, 2113, 13, 225, 288, 565, 6076, 2742, 273, 261, 3829, 13, 2113, 18, 588, 1830, 5621, 565, 368, 4163, 326, 1018, 364, 326, 7644, 871, 18, 166...
public void run() { servant.collectUserCredentials(future); }
public void run() { servant.collectUserCredentials(future, init); }
public void run() { servant.collectUserCredentials(future); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/84042cbca2e8aeaf65ca18c85ea2224ea4c04d55/SplashScreenProxy.java/clean/SRC/org/openmicroscopy/shoola/env/ui/SplashScreenProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 703, 7445, 18, 14676, 1299, 6163, 12, 14343, 1769, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 703, 7445, 18, 14676, 1299, 6163, 12, 14343, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
public Parse getParse(Content content) throws ParseException {
public Parse getParse(Content content) {
public Parse getParse(Content content) throws ParseException { // check that contentType is one we can handle String contentType = content.getContentType(); if (contentType != null && !contentType.startsWith("application/msword")) throw new ParseException( "Content-Type not application/msword: "+contentType); String text = null; String title = null; Properties properties = null; try { byte[] raw = content.getContent(); String contentLength = content.get("Content-Length"); if (contentLength != null && raw.length != Integer.parseInt(contentLength)) { throw new ParseException("Content truncated at "+raw.length +" bytes. Parser can't handle incomplete msword file."); } WordExtractor extractor = new WordExtractor(); // collect text text = extractor.extractText(new ByteArrayInputStream(raw)); // collect meta info properties = extractor.extractProperties(new ByteArrayInputStream(raw)); extractor = null; } catch (ParseException e) { throw e; } catch (FastSavedException e) { throw new ParseException(e); } catch (PasswordProtectedException e) { throw new ParseException(e); } catch (Exception e) { // run time exception throw new ParseException("Can't be handled as msword document. "+e); } finally { // nothing so far } // collect meta data Properties metadata = new Properties(); metadata.putAll(content.getMetadata()); // copy through if(properties != null) { title = properties.getProperty("Title"); properties.remove("Title"); metadata.putAll(properties); } if (text == null) text = ""; if (title == null) title = ""; // collect outlink Outlink[] outlinks = new Outlink[0]; ParseData parseData = new ParseData(title, outlinks, metadata); return new ParseImpl(text, parseData); // any filter? //return HtmlParseFilters.filter(content, parse, root); }
50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/29bea6a24ea978596c3c1880a520b24bdeb2252d/MSWordParser.java/buggy/src/plugin/parse-msword/src/java/org/apache/nutch/parse/msword/MSWordParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2884, 336, 3201, 12, 1350, 913, 13, 288, 565, 368, 866, 716, 5064, 353, 1245, 732, 848, 1640, 565, 514, 5064, 273, 913, 18, 588, 8046, 5621, 565, 309, 261, 22194, 480, 446, 597, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2884, 336, 3201, 12, 1350, 913, 13, 288, 565, 368, 866, 716, 5064, 353, 1245, 732, 848, 1640, 565, 514, 5064, 273, 913, 18, 588, 8046, 5621, 565, 309, 261, 22194, 480, 446, 597, ...
public void drop(DropTargetDropEvent e) { Point loc = e.getLocation(); int x = (int)loc.getX(), y = (int)loc.getY(); // reset cursor back to normal Cursor defaultCursor = new Cursor(Cursor.DEFAULT_CURSOR); DataMapTree.getDataMapTree().setCursor(defaultCursor); int action = e.getDropAction(); DataFlavor[] flavors = e.getCurrentDataFlavors(); DataFlavor chosen = flavors[0]; if (isDropOK(x, y, action)) { e.acceptDrop(action); } else { e.rejectDrop(); return; } Vector data = null; try { data = (Vector)e.getTransferable().getTransferData(chosen); } catch(Throwable t) { t.printStackTrace(); e.dropComplete(false); return; } TreePath path = getPathForLocation(x, y); SoarVertex vertex = ((FakeTreeNode)path.getLastPathComponent()).getEnumeratingVertex(); swmm.addTriple(vertex,(String)data.get(1),swmm.getVertexForId(((Integer)data.get(0)).intValue())); if(action == DnDConstants.ACTION_MOVE) { NamedEdge ne = (NamedEdge)data.get(2); swmm.removeTriple((SoarVertex)ne.V0(),ne.getName(),(SoarVertex)ne.V1()); } e.dropComplete(true); }
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/5f86f1698ecae9bee19eda190b80e574908c2728/DataMapTree.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/datamap/DataMapTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 7285, 12, 7544, 2326, 7544, 1133, 73, 15329, 2148, 1829, 33, 73, 18, 588, 2735, 5621, 474, 92, 28657, 474, 13, 1829, 18, 588, 60, 9334, 93, 28657, 474, 13, 1829, 18, 588, 61, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 7285, 12, 7544, 2326, 7544, 1133, 73, 15329, 2148, 1829, 33, 73, 18, 588, 2735, 5621, 474, 92, 28657, 474, 13, 1829, 18, 588, 60, 9334, 93, 28657, 474, 13, 1829, 18, 588, 61, 5...
String className; Class param; if (name.equals("CustomAttributes") || name.equals("Dataset") || name.equals("Feature") || name.equals("Image") || name.equals("OME") || name.equals("Project")) { className = "org.openmicroscopy.xml." + name + "Node"; param = base.getClass(); } else { className = "org.openmicroscopy.xml.st." + name + "Node"; param = CustomAttributesNode.class; }
private OMEXMLNode getChild(OMEXMLNode base, String name, int i) { Vector children = base.getChildren(name); if (i < children.size()) { if (children.get(i) != null) return (OMEXMLNode) children.get(i); } // CTR TODO fix this, it is crap try { Class c = Class.forName("org.openmicroscopy.xml.st." + name + "Node"); Constructor con = c.getConstructor(new Class[] {OMEXMLNode.class}); return (OMEXMLNode) con.newInstance(new Object[] {base}); } catch (Exception exc) { exc.printStackTrace(); } return null; }
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/34bcbe2acc8b7f882c8afbdc1290ab99847904ea/OMEXMLMetadataStore.java/clean/loci/formats/OMEXMLMetadataStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 514, 2658, 31, 1659, 579, 31, 309, 261, 529, 18, 14963, 2932, 3802, 2498, 7923, 747, 508, 18, 14963, 2932, 10656, 7923, 747, 508, 18, 14963, 2932, 4595, 7923, 747, 508, 18, 14963, 2932, 2040, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 514, 2658, 31, 1659, 579, 31, 309, 261, 529, 18, 14963, 2932, 3802, 2498, 7923, 747, 508, 18, 14963, 2932, 10656, 7923, 747, 508, 18, 14963, 2932, 4595, 7923, 747, 508, 18, 14963, 2932, 2040, ...
pdbflag = hasCoordSys(PDBCOORDSYS,source) ; uniprotflag = hasCoordSys(UNIPROTCOORDSYS,source) ;
pdbflag = hasCoordSys(BrowserPane.DEFAULT_PDBCOORDSYS,source) ; uniprotflag = hasCoordSys(BrowserPane.DEFAULT_UNIPROTCOORDSYS,source) ;
public boolean isSeqStrucAlignmentServer(SpiceDasSource source) { boolean msdmapping = false ; //DasCoordinateSystem[] coordsys = source.getCoordinateSystem() ; boolean uniprotflag = false ; boolean pdbflag = false ; pdbflag = hasCoordSys(PDBCOORDSYS,source) ; uniprotflag = hasCoordSys(UNIPROTCOORDSYS,source) ; //System.out.println(pdbflag + " " + uniprotflag); if (( uniprotflag == true) && ( pdbflag == true)) { msdmapping = true ; } return msdmapping ; }
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/9fce485ed3b2b2273375a86353ca79bf8d9af076/RegistryConfiguration.java/buggy/src/org/biojava/spice/Config/RegistryConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 6926, 1585, 5286, 11535, 2081, 12, 3389, 1812, 40, 345, 1830, 1084, 13, 288, 3639, 1250, 4086, 72, 6770, 273, 629, 274, 3639, 368, 40, 345, 13503, 3163, 8526, 6074, 1900,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 6926, 1585, 5286, 11535, 2081, 12, 3389, 1812, 40, 345, 1830, 1084, 13, 288, 3639, 1250, 4086, 72, 6770, 273, 629, 274, 3639, 368, 40, 345, 13503, 3163, 8526, 6074, 1900,...
add((byte)(shortOp + 3));
add(shortOp + 3);
private void xop(byte shortOp, byte op, int local) { switch (local) { case 0: add(shortOp); break; case 1: add((byte)(shortOp + 1)); break; case 2: add((byte)(shortOp + 2)); break; case 3: add((byte)(shortOp + 3)); break; default: add(op, local); } }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/22644d0e62d87924a341469f715d13055cb347cc/ClassFileWriter.java/clean/src/org/mozilla/classfile/ClassFileWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 619, 556, 12, 7229, 3025, 3817, 16, 1160, 1061, 16, 509, 1191, 13, 565, 288, 3639, 1620, 261, 3729, 13, 288, 1850, 648, 374, 30, 5411, 527, 12, 6620, 3817, 1769, 5411, 898, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 619, 556, 12, 7229, 3025, 3817, 16, 1160, 1061, 16, 509, 1191, 13, 565, 288, 3639, 1620, 261, 3729, 13, 288, 1850, 648, 374, 30, 5411, 527, 12, 6620, 3817, 1769, 5411, 898, ...
_instance.fileVersion = Integer.parseInt(masterVersion);
instance().fileVersion = Integer.parseInt(masterVersion);
static boolean updateIndexIfNeeded(String name) throws org.jdom.JDOMException, java.io.FileNotFoundException { // get version from master index; if not found, give up String masterVersion = null; DecoderIndexFile masterXmlFile = new DecoderIndexFile(); File masterFile = new File("xml"+File.separator+defaultDecoderIndexFilename()); if (! masterFile.exists()) return false; Element masterRoot = masterXmlFile.rootFromFile(masterFile); if (masterRoot.getChild("decoderIndex") != null ) { if (masterRoot.getChild("decoderIndex").getAttribute("version")!=null) masterVersion = masterRoot.getChild("decoderIndex").getAttribute("version").getValue(); log.debug("master version found, is "+masterVersion); } else { return false; } // get from user index. Unless they are equal, force an update. // note we find this file via the search path; if not exists, so that // the master is found, we still do the right thing (nothing). String userVersion = null; DecoderIndexFile userXmlFile = new DecoderIndexFile(); Element userRoot = userXmlFile.rootFromName(defaultDecoderIndexFilename()); if (userRoot.getChild("decoderIndex") != null ) { if (userRoot.getChild("decoderIndex").getAttribute("version")!=null) userVersion = userRoot.getChild("decoderIndex").getAttribute("version").getValue(); log.debug("user version found, is "+userVersion); } if (userRoot!=null && masterVersion.equals(userVersion)) return false; // force the update, with the version number located earlier _instance.fileVersion = Integer.parseInt(masterVersion); forceCreationOfNewIndex(); // and force it's use return true; }
213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/7a8cd063d3442573a6136ae59ff04bb914a386c9/DecoderIndexFile.java/buggy/jmri/jmrit/decoderdefn/DecoderIndexFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1250, 1089, 1016, 18299, 12, 780, 508, 13, 1216, 2358, 18, 78, 9859, 18, 46, 8168, 503, 16, 2252, 18, 1594, 18, 812, 3990, 288, 3639, 368, 336, 1177, 628, 4171, 770, 31, 309, 486...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1089, 1016, 18299, 12, 780, 508, 13, 1216, 2358, 18, 78, 9859, 18, 46, 8168, 503, 16, 2252, 18, 1594, 18, 812, 3990, 288, 3639, 368, 336, 1177, 628, 4171, 770, 31, 309, 486...
messageCallback = new Callback (this, "messageProc", 4);
messageCallback = new Callback (this, "messageProc", 4);
protected void init () { super.init (); /* Create the callbacks */ windowCallback = new Callback (this, "windowProc", 4); windowProc = windowCallback.getAddress (); if (windowProc == 0) error (SWT.ERROR_NO_MORE_CALLBACKS); /* Remember the current procsss and thread */ threadId = OS.GetCurrentThreadId (); processId = OS.GetCurrentProcessId (); /* Use the character encoding for the default locale */ windowClass = new TCHAR (0, WindowName + WindowClassCount++, true); /* Register the SWT window class */ int hHeap = OS.GetProcessHeap (); int hInstance = OS.GetModuleHandle (null); WNDCLASS lpWndClass = new WNDCLASS (); lpWndClass.hInstance = hInstance; lpWndClass.lpfnWndProc = windowProc; lpWndClass.style = OS.CS_BYTEALIGNWINDOW | OS.CS_DBLCLKS; lpWndClass.hCursor = OS.LoadCursor (0, OS.IDC_ARROW); int byteCount = windowClass.length () * TCHAR.sizeof; int lpszClassName = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount); lpWndClass.lpszClassName = lpszClassName; OS.MoveMemory (lpszClassName, windowClass, byteCount); OS.RegisterClass (lpWndClass); /* Initialize the system font */ int systemFont = 0; if (!OS.IsWinCE) { NONCLIENTMETRICS info = OS.IsUnicode ? (NONCLIENTMETRICS) new NONCLIENTMETRICSW () : new NONCLIENTMETRICSA (); info.cbSize = NONCLIENTMETRICS.sizeof; if (OS.SystemParametersInfo (OS.SPI_GETNONCLIENTMETRICS, 0, info, 0)) { systemFont = OS.CreateFontIndirect (OS.IsUnicode ? (LOGFONT) ((NONCLIENTMETRICSW)info).lfMessageFont : ((NONCLIENTMETRICSA)info).lfMessageFont); } } if (systemFont == 0) systemFont = OS.GetStockObject (OS.DEFAULT_GUI_FONT); if (systemFont == 0) systemFont = OS.GetStockObject (OS.SYSTEM_FONT); if (systemFont != 0) systemFonts = new int [] {systemFont}; /* Create the message only HWND */ hwndMessage = OS.CreateWindowEx (0, windowClass, null, OS.WS_OVERLAPPED, 0, 0, 0, 0, 0, 0, hInstance, null); messageCallback = new Callback (this, "messageProc", 4); messageProc = messageCallback.getAddress (); if (messageProc == 0) error (SWT.ERROR_NO_MORE_CALLBACKS); OS.SetWindowLong (hwndMessage, OS.GWL_WNDPROC, messageProc); /* Create the filter hook */ if (!OS.IsWinCE) { msgFilterCallback = new Callback (this, "msgFilterProc", 3); msgFilterProc = msgFilterCallback.getAddress (); if (msgFilterProc == 0) error (SWT.ERROR_NO_MORE_CALLBACKS); filterHook = OS.SetWindowsHookEx (OS.WH_MSGFILTER, msgFilterProc, 0, threadId); } /* Initialize the Widget Table */ indexTable = new int [GROW_SIZE]; controlTable = new Control [GROW_SIZE]; for (int i=0; i<GROW_SIZE-1; i++) indexTable [i] = i + 1; indexTable [GROW_SIZE - 1] = -1;}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/38dbe88a9501faece746ad495a4038d0f100d1c9/Display.java/buggy/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 1208, 1832, 288, 202, 9565, 18, 2738, 261, 1769, 1082, 202, 20308, 1788, 326, 6689, 1195, 202, 5668, 2428, 273, 394, 8444, 261, 2211, 16, 315, 5668, 15417, 3113, 1059, 1769, 202, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 1208, 1832, 288, 202, 9565, 18, 2738, 261, 1769, 1082, 202, 20308, 1788, 326, 6689, 1195, 202, 5668, 2428, 273, 394, 8444, 261, 2211, 16, 315, 5668, 15417, 3113, 1059, 1769, 202, 56...
if (entityHex.terrainLevel(Terrains.FIRE) == 2) {
if (entityHex.terrainLevel(Terrains.FIRE) == 2 && entity.getElevation() <=1) {
private void resolveHeat() { Report r; //Heat phase header addReport(new Report(5000, Report.PUBLIC)); for (Enumeration i = game.getEntities(); i.hasMoreElements();) { Entity entity = (Entity)i.nextElement(); if ( null == entity.getPosition() ) { continue; } IHex entityHex = game.getBoard().getHex(entity.getPosition()); // heat doesn't matter for non-mechs if (!(entity instanceof Mech)) { entity.heatBuildup = 0; if(game.getOptions().booleanOption("vehicle_fires") && entity instanceof Tank) { resolveVehicleFire((Tank)entity, true); } // If the unit is hit with an Inferno, do flaming death test. else if ( entity.infernos.isStillBurning()) { doFlamingDeath(entity); } continue; } else { // Meks gain heat from inferno hits. if ( entity.infernos.isStillBurning() ) { int infernoHeat = entity.infernos.getHeat(); entity.heatBuildup += infernoHeat; r = new Report(5010); r.subject = entity.getId(); r.add(infernoHeat); addReport(r); } } // should we even bother? if ( entity.isDestroyed() || entity.isDoomed() || entity.crew.isDoomed() || entity.crew.isDead() ) { continue; } // engine hits add a lot of heat, provided the engine is on entity.heatBuildup += entity.getEngineCritHeat(); // If a Mek had an active Stealth suite, add 10 heat. if ( entity instanceof Mech && entity.isStealthActive() ) { entity.heatBuildup += 10; r = new Report(5015); r.subject = entity.getId(); addReport(r); } // If a Mek is in extreme Temperatures, add or subtract one // heat per 10 degrees (or fraction of 10 degrees) above or // below 50 or -30 degrees Celsius if ( entity instanceof Mech && game.getTemperatureDifference() != 0 && !((Mech)entity).hasLaserHeatSinks()) { if (game.getOptions().intOption("temperature") > 50) { entity.heatBuildup += game.getTemperatureDifference(); r = new Report(5020); r.subject = entity.getId(); r.add(game.getTemperatureDifference()); addReport(r); } else { entity.heatBuildup -= game.getTemperatureDifference(); r = new Report(5025); r.subject = entity.getId(); r.add(game.getTemperatureDifference()); addReport(r); } } // Add +5 Heat if the hex you're in is on fire // and was on fire for the full round. if (entityHex != null) { if (entityHex.terrainLevel(Terrains.FIRE) == 2) { entity.heatBuildup += 5; r = new Report(5030); r.subject = entity.getId(); addReport(r); } int magma = entityHex.terrainLevel(Terrains.MAGMA); if(magma > 0) { entity.heatBuildup += 5 * magma; r = new Report(5032); r.subject = entity.getId(); r.add(5 * magma); addReport(r); } } //Check the mech for vibroblades if so then check to see if any //are active and what heat they will produce. if ( entity.hasVibroblades() ){ int vibroHeat = 0; vibroHeat = entity.getActiveVibrobladeHeat(Mech.LOC_RARM); vibroHeat += entity.getActiveVibrobladeHeat(Mech.LOC_LARM); if ( vibroHeat > 0 ){ r = new Report(5017); r.subject = entity.getId(); r.add(vibroHeat); addReport(r); entity.heatBuildup += vibroHeat; } } // if heatbuildup is negative due to temperature, set it to 0 // for prettier turnreports if (entity.heatBuildup < 0) { entity.heatBuildup = 0; } // add the heat we've built up so far. entity.heat += entity.heatBuildup; // how much heat can we sink? int tosink = entity.getHeatCapacityWithWater(); // should we use a coolant pod? int safeHeat = entity.hasInfernoAmmo() ? 9 : 13; int possibleSinkage = ((Mech)entity).getNumberOfSinks(); for (Mounted m : entity.getEquipment()) { if(m.getType() instanceof AmmoType) { AmmoType at = (AmmoType)m.getType(); if(at.getAmmoType() == AmmoType.T_COOLANT_POD && m.isAmmoUsable()) { EquipmentMode mode = m.curMode(); if(mode.equals("dump")) { r = new Report(5260); r.subject = entity.getId(); addReport(r); m.setShotsLeft(0); tosink += possibleSinkage; break; } if(mode.equals("safe") && entity.heat - tosink > safeHeat) { r = new Report(5265); r.subject = entity.getId(); addReport(r); m.setShotsLeft(0); tosink += possibleSinkage; break; } if(mode.equals("efficient") && entity.heat - tosink >= possibleSinkage) { r = new Report(5270); r.subject = entity.getId(); addReport(r); m.setShotsLeft(0); tosink += possibleSinkage; break; } } } } tosink = Math.min( tosink, entity.heat ); entity.heat -= tosink; r = new Report(5035); r.subject = entity.getId(); r.addDesc(entity); r.add(entity.heatBuildup); r.add(tosink); r.add(entity.heat); addReport(r); entity.heatBuildup = 0; // Does the unit have inferno ammo? if( entity.hasInfernoAmmo() ) { // Roll for possible inferno ammo explosion. if (entity.heat >= 10) { int boom = 4 + (entity.heat >= 14 ? 2 : 0) + (entity.heat >= 19 ? 2 : 0) + (entity.heat >= 23 ? 2 : 0) + (entity.heat >= 28 ? 2 : 0); int boomroll = Compute.d6(2); r = new Report(5040); r.subject = entity.getId(); r.addDesc(entity); r.add(boom); r.add(boomroll); if (boomroll >= boom) { //avoided r.choose(true); addReport(r); } else { r.choose(false); addReport(r); addReport( explodeInfernoAmmoFromHeat(entity)); } } } // End avoid-inferno-explosion int autoShutDownHeat; boolean mtHeat; if (game.getOptions().booleanOption("maxtech_heat")) { autoShutDownHeat = 50; mtHeat = true; } else { autoShutDownHeat = 30; mtHeat = false; } // heat effects: start up if (entity.heat < autoShutDownHeat && entity.isShutDown()) { if (entity.heat < 14) { //automatically starts up again entity.setShutDown(false); r = new Report(5045); r.subject = entity.getId(); r.addDesc(entity); addReport(r); } else { //roll for startup int startup = 4 + (entity.heat - 14) / 4 * 2; if (mtHeat) { startup = entity.crew.getPiloting() + startup - 8; } int suroll = Compute.d6(2); r = new Report(5050); r.subject = entity.getId(); r.addDesc(entity); r.add(startup); r.add(suroll); if (suroll >= startup) { //start 'er back up entity.setShutDown(false); r.choose(true); } else { r.choose(false); } addReport(r); } } // heat effects: shutdown! // 2003-01-26 JAD - Don't shut down if you just restarted. else if (entity.heat >= 14 && !entity.isShutDown()) { if (entity.heat >= autoShutDownHeat) { r = new Report(5055); r.subject = entity.getId(); r.addDesc(entity); addReport(r); // add a piloting roll and resolve immediately game.addPSR(new PilotingRollData ( entity.getId(), 3, "reactor shutdown" )); resolvePilotingRolls(); // okay, now mark shut down entity.setShutDown(true); } else if (entity.heat >= 14) { int shutdown = 4 + (entity.heat - 14) / 4 * 2; if (mtHeat) { shutdown = entity.crew.getPiloting() + shutdown - 8; } int sdroll = Compute.d6(2); r = new Report(5060); r.subject = entity.getId(); r.addDesc(entity); r.add(shutdown); r.add(sdroll); if (sdroll >= shutdown) { //avoided r.choose(true); addReport(r); } else { //shutting down... r.choose(false); addReport(r); // add a piloting roll and resolve immediately game.addPSR(new PilotingRollData ( entity.getId(), 3, "reactor shutdown" )); resolvePilotingRolls(); // okay, now mark shut down entity.setShutDown(true); } } } // heat effects: ammo explosion! if (entity.heat >= 19) { int boom = 4 + (entity.heat >= 23 ? 2 : 0) + (entity.heat >= 28 ? 2 : 0); if (mtHeat) { boom += (entity.heat >= 35 ? 2 : 0) + (entity.heat >= 40 ? 2 : 0) + (entity.heat >= 45 ? 2 : 0); // Last line is a crutch; 45 heat should be no roll // but automatic explosion. } if(entity instanceof Mech && ((Mech)entity).hasLaserHeatSinks()) boom--; int boomroll = Compute.d6(2); r = new Report(5065); r.subject = entity.getId(); r.addDesc(entity); r.add(boom); r.add(boomroll); if (boomroll >= boom) { //mech is ok r.choose(true); addReport(r); } else { //boom! r.choose(false); addReport(r); addReport( explodeAmmoFromHeat(entity)); } } // heat effects: mechwarrior damage // N.B. The pilot may already be dead. int lifeSupportCritCount = 0; boolean torsoMountedCockpit = ((Mech)entity).getCockpitType() == Mech.COCKPIT_TORSO_MOUNTED; if (entity instanceof Mech && torsoMountedCockpit) { lifeSupportCritCount = entity.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_LIFE_SUPPORT, Mech.LOC_RT); lifeSupportCritCount += entity.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_LIFE_SUPPORT, Mech.LOC_LT); } else { lifeSupportCritCount = entity.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_LIFE_SUPPORT, Mech.LOC_HEAD); } if (lifeSupportCritCount > 0 && (entity.heat >= 15 || torsoMountedCockpit && entity.heat >= 0) && !entity.crew.isDead() && !entity.crew.isDoomed() && !entity.crew.isEjected()) { int heatLimitDesc = 1; int damageToCrew = 0; if (entity.heat >= 47 && mtHeat) { // mechwarrior takes 5 damage heatLimitDesc = 47; damageToCrew = 5; } else if (entity.heat >= 39 && mtHeat) { // mechwarrior takes 4 damage heatLimitDesc = 39; damageToCrew = 4; } else if (entity.heat >= 32 && mtHeat) { // mechwarrior takes 3 damage heatLimitDesc = 32; damageToCrew = 3; } else if (entity.heat >= 25) { // mechwarrior takes 2 damage heatLimitDesc = 25; damageToCrew = 2; } else if (entity.heat >= 15) { // mechwarrior takes 1 damage heatLimitDesc = 15; damageToCrew = 1; } if (entity.heat > 0 && entity instanceof Mech && ((Mech)entity).getCockpitType() == Mech.COCKPIT_TORSO_MOUNTED) damageToCrew += 1; r = new Report(5070); r.subject = entity.getId(); r.addDesc(entity); r.add(heatLimitDesc); r.add(damageToCrew); addReport(r); damageCrew(entity, damageToCrew); } else if (mtHeat && entity.heat >= 32 && !entity.crew.isDead() && !entity.crew.isDoomed() ) { // Pilot may take damage from heat if MaxTech option is set int heatroll = Compute.d6(2); int avoidNumber = -1; if (entity.heat >= 47) { avoidNumber = 12; } else if (entity.heat >= 39) { avoidNumber = 10; } else if (entity.heat >= 32) { avoidNumber = 8; } r = new Report(5075); r.subject = entity.getId(); r.addDesc(entity); r.add(avoidNumber); r.add(heatroll); if (heatroll >= avoidNumber) { //damage avoided r.choose(true); } else { damageCrew(entity, 1); r.choose(false); } addReport(r); } // The pilot may have just expired. if ( (entity.crew.isDead() || entity.crew.isDoomed() ) && !entity.crew.isEjected() ) { r = new Report(5080); r.subject = entity.getId(); r.addDesc(entity); r.newlines = 0; addReport(r); addReport( destroyEntity(entity, "crew death", true)); } // With MaxTech Heat Scale, there may occur critical damage if (mtHeat) { if (entity.heat >= 36) { int damageroll = Compute.d6(2); int damageNumber = -1; if (entity.heat >= 44) { damageNumber = 10; } else if (entity.heat >= 36) { damageNumber = 8; } r = new Report(5085); r.subject = entity.getId(); r.addDesc(entity); r.add(damageNumber); r.add(damageroll); r.newlines = 0; if (damageroll >= damageNumber) { r.choose(true); addReport(r); } else { r.choose(false); addReport(r); addReport(oneCriticalEntity(entity, Compute.d6(2))); //add an empty report, for linebreaking r = new Report(1210); addReport(r); } } } } if (vPhaseReport.size() == 1) { //I guess nothing happened... addReport(new Report(1205, Report.PUBLIC)); } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/ee5d03b72348c238aad6ca777c4e0833732a5821/Server.java/clean/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2245, 5256, 270, 1435, 288, 3639, 8706, 436, 31, 3639, 368, 5256, 270, 6855, 1446, 3639, 527, 4820, 12, 2704, 8706, 12, 25, 3784, 16, 8706, 18, 14939, 10019, 3639, 364, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2245, 5256, 270, 1435, 288, 3639, 8706, 436, 31, 3639, 368, 5256, 270, 6855, 1446, 3639, 527, 4820, 12, 2704, 8706, 12, 25, 3784, 16, 8706, 18, 14939, 10019, 3639, 364, 261, ...
runtime.getNil();
getRuntime().getNil();
public IRubyObject subseq(long beg, long len) { // Subsequence begins at a valid index and a positive length if (beg < 0 || beg > getSize() || len < 0) { runtime.getNil(); } if (beg + len > getSize()) { len = getSize() - beg; } if (len < 0) { len = 0; } if (len == 0) { return RubyArray.newArray(getRuntime()); } RubyArray arr = RubyArray.newArray(getRuntime(), 0); for (long i = beg; i < beg + len; i++) { arr.append(group(i)); } return arr; }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyMatchData.java/buggy/src/org/jruby/RubyMatchData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 720, 5436, 12, 5748, 16847, 16, 1525, 562, 13, 288, 377, 202, 759, 2592, 6178, 17874, 622, 279, 923, 770, 471, 279, 6895, 769, 3639, 309, 261, 70, 1332, 411, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 720, 5436, 12, 5748, 16847, 16, 1525, 562, 13, 288, 377, 202, 759, 2592, 6178, 17874, 622, 279, 923, 770, 471, 279, 6895, 769, 3639, 309, 261, 70, 1332, 411, 37...
byte lsb = (byte) (b & 0x01); return (byte) ((b >>> 1) | (lsb << 7));
int lsb = (b & 0x01); return (byte) (((b & 0xFF) >>> 1) | (lsb << 7));
public static byte rotateClockwise(byte b) { byte lsb = (byte) (b & 0x01); return (byte) ((b >>> 1) | (lsb << 7)); }
9170 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9170/b7e0886ec1e49211f376dae03021436fcab01c67/CompassPoints.java/buggy/railz/src/jfreerails/world/common/CompassPoints.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1160, 8534, 14027, 2460, 12, 7229, 324, 13, 288, 202, 7229, 7180, 70, 273, 261, 7229, 13, 261, 70, 473, 374, 92, 1611, 1769, 202, 2463, 261, 7229, 13, 14015, 70, 4080, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1160, 8534, 14027, 2460, 12, 7229, 324, 13, 288, 202, 7229, 7180, 70, 273, 261, 7229, 13, 261, 70, 473, 374, 92, 1611, 1769, 202, 2463, 261, 7229, 13, 14015, 70, 4080, 404, ...
updateBuildActions(autoBuild);
updateBuildActions();
public void propertyChange(Preferences.PropertyChangeEvent event) { if (event.getProperty().equals( ResourcesPlugin.PREF_AUTO_BUILDING)) { final boolean autoBuild = ResourcesPlugin.getWorkspace() .isAutoBuilding(); if (window.getShell() != null && !window.getShell().isDisposed()) { // this property change notification could be from a non-ui thread window.getShell().getDisplay().syncExec(new Runnable() { public void run() { updateBuildActions(autoBuild); } }); } } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/cf6dbe88c16d566306439f0a3a20accff5b1cafb/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1272, 3043, 12, 12377, 18, 1396, 20930, 871, 13, 288, 7734, 309, 261, 2575, 18, 588, 1396, 7675, 14963, 12, 13491, 8128, 3773, 18, 3670, 42, 67, 18909, 67, 20215, 1360, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1272, 3043, 12, 12377, 18, 1396, 20930, 871, 13, 288, 7734, 309, 261, 2575, 18, 588, 1396, 7675, 14963, 12, 13491, 8128, 3773, 18, 3670, 42, 67, 18909, 67, 20215, 1360, 3719, ...
protected UMOEndpointURI getInDest() { try {
protected UMOEndpointURI getInDest() { try {
protected UMOEndpointURI getInDest() { try { return new MuleEndpointURI("xmpp://mule1:mule@jabber.org.au"); } catch (MalformedEndpointException e) { fail(e.getMessage()); return null; } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/8cc09178adb8b0a3803c08f7b3cf0b6cf566d2b0/XmppFunctionalTestCase.java/clean/tests/integration/src/test/java/org/mule/test/integration/providers/xmpp/XmppFunctionalTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 587, 5980, 3293, 3098, 7854, 9378, 1435, 288, 540, 775, 288, 5411, 327, 394, 490, 725, 3293, 3098, 2932, 92, 24109, 2207, 81, 725, 21, 30, 81, 725, 36, 78, 378, 744, 18, 3341, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 587, 5980, 3293, 3098, 7854, 9378, 1435, 288, 540, 775, 288, 5411, 327, 394, 490, 725, 3293, 3098, 2932, 92, 24109, 2207, 81, 725, 21, 30, 81, 725, 36, 78, 378, 744, 18, 3341, 1...
public FProxyToadlet(HighLevelSimpleClient client, byte[] random) {
public FProxyToadlet(HighLevelSimpleClient client, byte[] random, Node node) {
public FProxyToadlet(HighLevelSimpleClient client, byte[] random) { super(client); this.random = random; client.setMaxLength(MAX_LENGTH); client.setMaxIntermediateLength(MAX_LENGTH); }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/4e5d41f2c75a41cc651e6f777b7a50ae3f0adc76/FProxyToadlet.java/buggy/src/freenet/clients/http/FProxyToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 478, 3886, 774, 361, 1810, 12, 8573, 2355, 5784, 1227, 1004, 16, 1160, 8526, 2744, 13, 288, 202, 202, 9565, 12, 2625, 1769, 202, 202, 2211, 18, 9188, 273, 2744, 31, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 478, 3886, 774, 361, 1810, 12, 8573, 2355, 5784, 1227, 1004, 16, 1160, 8526, 2744, 13, 288, 202, 202, 9565, 12, 2625, 1769, 202, 202, 2211, 18, 9188, 273, 2744, 31, 202, 202, ...
TriggerSequence[] sequences= getBestActiveBinding();
KeySequence[] sequences= getInvokingCommandKeySequences();
public void keyPressed(KeyEvent e) { int accelerator = SWTKeySupport.convertEventToUnmodifiedAccelerator(e); KeySequence keySequence = KeySequence.getInstance(SWTKeySupport.convertAcceleratorToKeyStroke(accelerator)); TriggerSequence[] sequences= getBestActiveBinding(); if (sequences == null) return; for (int i= 0; i < sequences.length; i++) { if (sequences[i].equals(keySequence)) { e.doit= false; toggleShowInheritedMembers(); return; } } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/d3b312746d9b505c771292e6b822d0de2cc7828c/JavaOutlineInformationControl.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaOutlineInformationControl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 498, 24624, 12, 653, 1133, 425, 13, 288, 6862, 202, 474, 15153, 7385, 273, 348, 8588, 653, 6289, 18, 6283, 1133, 774, 984, 7342, 28417, 12, 73, 1769, 6862, 202, 653, 402...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 498, 24624, 12, 653, 1133, 425, 13, 288, 6862, 202, 474, 15153, 7385, 273, 348, 8588, 653, 6289, 18, 6283, 1133, 774, 984, 7342, 28417, 12, 73, 1769, 6862, 202, 653, 402...
Date beginningDate = getBeginningDate(event); Date endingDate = getEndingDate(event); for (Date currentDate = beginningDate; currentDate.before(endingDate); currentDate = nextDay(currentDate)) { addEventToMap(currentDate, event); }
addMultiDayEventToMap(event);
public void add(Object event) { eventsList.add(event); Date beginningDate = getBeginningDate(event); Date endingDate = getEndingDate(event); for (Date currentDate = beginningDate; currentDate.before(endingDate); currentDate = nextDay(currentDate)) { addEventToMap(currentDate, event); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/dbfab952faa5c32f60b2d2c7c252e1e1ac843ed8/EventEditorObservableLazyDataRequestor.java/clean/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/compositetable/day/binding/EventEditorObservableLazyDataRequestor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 527, 12, 921, 871, 13, 288, 1082, 202, 5989, 682, 18, 1289, 12, 2575, 1769, 1082, 202, 1626, 8435, 1626, 273, 25282, 2093, 1626, 12, 2575, 1769, 1082, 202, 1626, 11463, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 12, 921, 871, 13, 288, 1082, 202, 5989, 682, 18, 1289, 12, 2575, 1769, 1082, 202, 1626, 8435, 1626, 273, 25282, 2093, 1626, 12, 2575, 1769, 1082, 202, 1626, 11463, ...
public LazySet(Loader loader) {
public LazySet(Loader<E> loader) {
public LazySet(Loader loader) { m_loader = loader; }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/bd4cc08f661db252c895153538564e9f8b9035d3/LazySet.java/clean/opennms-util/src/main/java/org/opennms/core/utils/LazySet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 12805, 694, 12, 2886, 4088, 13, 288, 202, 202, 81, 67, 6714, 273, 4088, 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, ...
[ 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 12805, 694, 12, 2886, 4088, 13, 288, 202, 202, 81, 67, 6714, 273, 4088, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
body.append(fact.createReturn(returnType));
body.append(InstructionFactory.createReturn(returnType));
private static LazyMethodGen makeDispatcher( LazyClassGen onGen, String dispatchName, ResolvedMember superMethod, BcelWorld world, boolean isSuper) { Type[] paramTypes = BcelWorld.makeBcelTypes(superMethod.getParameterTypes()); Type returnType = BcelWorld.makeBcelType(superMethod.getReturnType()); int modifiers = Modifier.PUBLIC; if (onGen.isInterface()) modifiers |= Modifier.ABSTRACT; LazyMethodGen mg = new LazyMethodGen( modifiers, returnType, dispatchName, paramTypes, TypeX.getNames(superMethod.getExceptions()), onGen); InstructionList body = mg.getBody(); if (onGen.isInterface()) return mg; // assert (!superMethod.isStatic()) InstructionFactory fact = onGen.getFactory(); int pos = 0; body.append(fact.createThis()); pos++; for (int i = 0, len = paramTypes.length; i < len; i++) { Type paramType = paramTypes[i]; body.append(fact.createLoad(paramType, pos)); pos+=paramType.getSize(); } if (isSuper) { body.append(Utility.createSuperInvoke(fact, world, superMethod)); } else { body.append(Utility.createInvoke(fact, world, superMethod)); } body.append(fact.createReturn(returnType)); return mg; }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/fde423ac335eb547834bb6f1b0ec51ddfac51cd6/BcelTypeMunger.java/buggy/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 12805, 1305, 7642, 1221, 6681, 12, 202, 202, 14443, 797, 7642, 603, 7642, 16, 202, 202, 780, 3435, 461, 16, 202, 202, 12793, 4419, 2240, 1305, 16, 202, 202, 38, 2183, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 12805, 1305, 7642, 1221, 6681, 12, 202, 202, 14443, 797, 7642, 603, 7642, 16, 202, 202, 780, 3435, 461, 16, 202, 202, 12793, 4419, 2240, 1305, 16, 202, 202, 38, 2183, 18...
int i = readerIndex(n); return subReaders[i].document(n - starts[i]);
int i = readerIndex(n); return subReaders[i].document(n - starts[i]);
public Document document(int n) throws IOException { int i = readerIndex(n); // find segment num return subReaders[i].document(n - starts[i]); // dispatch to segment reader }
1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/b48c75c33cbc8f4834834d931f10db5c0db0af6b/MultiReader.java/clean/src/java/org/apache/lucene/index/MultiReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4319, 1668, 12, 474, 290, 13, 1216, 1860, 288, 565, 509, 277, 273, 2949, 1016, 12, 82, 1769, 9506, 225, 368, 1104, 3267, 818, 565, 327, 720, 30301, 63, 77, 8009, 5457, 12, 82, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4319, 1668, 12, 474, 290, 13, 1216, 1860, 288, 565, 509, 277, 273, 2949, 1016, 12, 82, 1769, 9506, 225, 368, 1104, 3267, 818, 565, 327, 720, 30301, 63, 77, 8009, 5457, 12, 82, 3...
bitnum = (diff >>>2) + 1 +1;
bitnum = (diff >>>2) + 1;
private int convertJsrOffsetToBitNum(int offset) { int bitnum, diff; if ( offset ==0) return 1; // initial call return first map bit // determine offset in bit area offset = offset + 4; // compensate for different mapping of jsr and ref maps ie no jsr bit in jsr maps diff = local0Offset - offset; // convert from offset to bitnumber bitnum = (diff >>>2) + 1 +1; // 1 for being 1 based +1 for jsr bit if (VM.TraceStkMaps) { VM.sysWrite("convertJsrOffsetToBitnum- Input offset = "); VM.sysWrite( offset ); VM.sysWrite( " jsr bitnum = " ); VM.sysWrite( bitnum); VM.sysWrite( "\n"); } return bitnum; }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/0a323e6af9db88b41b8dd710bf2d293b13ef4bd5/VM_ReferenceMaps.java/buggy/rvm/src/vm/compilers/baseline/GCMap/VM_ReferenceMaps.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1765, 8382, 86, 2335, 774, 5775, 2578, 12, 474, 1384, 13, 565, 288, 4202, 509, 2831, 2107, 16, 3122, 31, 1377, 309, 261, 1384, 422, 20, 13, 327, 404, 31, 368, 2172, 745, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1765, 8382, 86, 2335, 774, 5775, 2578, 12, 474, 1384, 13, 565, 288, 4202, 509, 2831, 2107, 16, 3122, 31, 1377, 309, 261, 1384, 422, 20, 13, 327, 404, 31, 368, 2172, 745, 32...
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 745, 12, 202, 202, 54, 10340, 921, 10665, 16, 202, 202, 54, 10340, 548, 7501, 16, 202, 202, 54, 10340, 4926, 833, 16, 202, 202, 474, 2146, 13, 288, 202, 202, 54,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 921, 745, 12, 202, 202, 54, 10340, 921, 10665, 16, 202, 202, 54, 10340, 548, 7501, 16, 202, 202, 54, 10340, 4926, 833, 16, 202, 202, 474, 2146, 13, 288, 202, 202, 54,...
super();
public EvalTextArea(SwingGui debugGui) { super(); this.debugGui = debugGui; history = new java.util.Vector(); Document doc = getDocument(); doc.addDocumentListener(this); addKeyListener(this); setLineWrap(true); setFont(new Font("Monospaced", 0, 12)); append("% "); outputMark = doc.getLength(); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/2d4fc75b74d717c754829dde488ff0a7456682cc/SwingGui.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13163, 1528, 5484, 12, 6050, 310, 18070, 1198, 18070, 13, 288, 9079, 333, 18, 4148, 18070, 273, 1198, 18070, 31, 3639, 4927, 273, 394, 2252, 18, 1367, 18, 5018, 5621, 3639, 4319, 99...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13163, 1528, 5484, 12, 6050, 310, 18070, 1198, 18070, 13, 288, 9079, 333, 18, 4148, 18070, 273, 1198, 18070, 31, 3639, 4927, 273, 394, 2252, 18, 1367, 18, 5018, 5621, 3639, 4319, 99...
assertTrue("Should fail fast on object", testPasses); }
assertTrue("Should fail fast on object", testPasses); }
public void testExpectNothingFail() { myExpectation.setExpectNothing(); boolean testPasses = false; try { myExpectation.setActual("another object"); } catch (AssertionFailedError ex) { testPasses = true; } assertTrue("Should fail fast on object", testPasses); }
57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/4aaf60d8fa76687c3492c508dd98678fbbd3d935/ExpectationValueTest.java/clean/jmock/core/src/test/jmock/expectation/ExpectationValueTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 11988, 23814, 3754, 1435, 288, 3639, 3399, 11988, 367, 18, 542, 11988, 23814, 5621, 3639, 1250, 1842, 6433, 281, 273, 629, 31, 3639, 775, 288, 5411, 3399, 11988, 367, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 11988, 23814, 3754, 1435, 288, 3639, 3399, 11988, 367, 18, 542, 11988, 23814, 5621, 3639, 1250, 1842, 6433, 281, 273, 629, 31, 3639, 775, 288, 5411, 3399, 11988, 367, 18, ...
bag.putObjectToReturn(KEY1, 1);
bag.putObjectToReturn(KEY1, 1);
public void testReturnInt() { bag.putObjectToReturn(KEY1, 1); assertEquals("Should be 1", 1, bag.getNextReturnInt(KEY1)); bag.verify(); }
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/ReturnObjectBagTest.java/buggy/jmock/core/src/test/jmock/expectation/ReturnObjectBagTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 990, 1702, 1435, 288, 202, 202, 22551, 18, 458, 921, 27014, 12, 3297, 21, 16, 404, 1769, 202, 202, 11231, 8867, 2932, 14309, 506, 404, 3113, 404, 16, 13189, 18, 588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 990, 1702, 1435, 288, 202, 202, 22551, 18, 458, 921, 27014, 12, 3297, 21, 16, 404, 1769, 202, 202, 11231, 8867, 2932, 14309, 506, 404, 3113, 404, 16, 13189, 18, 588...
value = new EnumConstValue( cr.readClass( off =+ 2, buf), cr.readClass( off =+ 2, buf));
value = new EnumConstValue( cr.readClass( off, buf), cr.readClass( off+2, buf)); off += 4;
public int read( ClassReader cr, int off, char[] buf) { tag = cr.b[ off++] & 0xff; switch( tag) { case 'B': // pointer to CONSTANT_Byte case 'C': // pointer to CONSTANT_Char case 'D': // pointer to CONSTANT_Double case 'F': // pointer to CONSTANT_Float case 'I': // pointer to CONSTANT_Integer case 'J': // pointer to CONSTANT_Long case 'S': // pointer to CONSTANT_Short case 'Z': // pointer to CONSTANT_Boolean case 's': // pointer to CONSTANT_Utf8 value = cr.readConst( cr.readUnsignedShort( off =+ 2), buf); break; case 'e': // enum_const_value value = new EnumConstValue( cr.readClass( off =+ 2, buf), cr.readClass( off =+ 2, buf)); break; case 'c': // class_info value = cr.readClass( off =+ 2, buf); break; case '@': // annotation_value value = new Annotation(); off = (( Annotation) value).read( cr, off, buf); break; case '[': // array_value value = new LinkedList(); int size = cr.readUnsignedShort( off =+ 2); for( int i = 0; i<size; i++) { AnnotationMemberValue member = new AnnotationMemberValue(); member.read( cr, off, buf); (( List) value).add( member); } break; } return off; }
8320 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8320/f2a1c6f2872a82afd2f2c6d90320f1ef3135eb32/AnnotationMemberValue.java/buggy/asm/src/org/objectweb/asm/attrs/AnnotationMemberValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 855, 12, 1659, 2514, 4422, 16, 509, 3397, 16, 1149, 8526, 1681, 13, 288, 565, 1047, 273, 4422, 18, 70, 63, 3397, 9904, 65, 473, 374, 5297, 31, 565, 1620, 12, 1047, 13, 288,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 855, 12, 1659, 2514, 4422, 16, 509, 3397, 16, 1149, 8526, 1681, 13, 288, 565, 1047, 273, 4422, 18, 70, 63, 3397, 9904, 65, 473, 374, 5297, 31, 565, 1620, 12, 1047, 13, 288,...
AST tmp2177_AST_in = (AST)_t;
AST tmp2176_AST_in = (AST)_t;
public final void source_buffer_phrase(AST _t) throws RecognitionException { AST source_buffer_phrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t946 = _t; AST tmp2173_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case KEYS: { AST tmp2174_AST_in = (AST)_t; match(_t,KEYS); _t = _t.getNextSibling(); AST tmp2175_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ROWID: { AST tmp2176_AST_in = (AST)_t; match(_t,ROWID); _t = _t.getNextSibling(); break; } case Field_ref: { field(_t); _t = _retTree; { _loop950: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2177_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); field(_t); _t = _retTree; } else { break _loop950; } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } AST tmp2178_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t946; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/JPTreeParser.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1084, 67, 4106, 67, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1084, 67, 4106, 67, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1084, 67, 4106, 67, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1084, 67, 4106, 67, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, ...
public void exclusiveOrExpression() throws Exception { andExpression();
protected void exclusiveOrExpression( Object expression ) throws Exception { andExpression( expression );
public void exclusiveOrExpression() throws Exception { andExpression(); while (LT(1) == Token.tXOR) { Token t = consume(); andExpression(); callback.expressionOperator(t); } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/14f209afacefaf1ea1c7cf1c38e0c44afbb6e571/Parser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12060, 23695, 1435, 1216, 1185, 288, 202, 202, 464, 2300, 5621, 9506, 202, 17523, 261, 12050, 12, 21, 13, 422, 3155, 18, 88, 60, 916, 13, 288, 1082, 202, 1345, 268, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12060, 23695, 1435, 1216, 1185, 288, 202, 202, 464, 2300, 5621, 9506, 202, 17523, 261, 12050, 12, 21, 13, 422, 3155, 18, 88, 60, 916, 13, 288, 1082, 202, 1345, 268, 273, ...
if(!sign1.getTokenType().equals(sign2.getTokenType())){
final IElementType tokenType1 = sign1.getTokenType(); if(!tokenType1.equals(sign2.getTokenType())){
private static boolean assignmentExpressionsAreEquivalent( @NotNull PsiAssignmentExpression assignExp1, @NotNull PsiAssignmentExpression assignExp2){ final PsiJavaToken sign1 = assignExp1.getOperationSign(); final PsiJavaToken sign2 = assignExp2.getOperationSign(); if(!sign1.getTokenType().equals(sign2.getTokenType())){ return false; } final PsiExpression lhs1 = assignExp1.getLExpression(); final PsiExpression lhs2 = assignExp2.getLExpression(); final PsiExpression rhs1 = assignExp1.getRExpression(); final PsiExpression rhs2 = assignExp2.getRExpression(); return expressionsAreEquivalent(lhs1, lhs2) && expressionsAreEquivalent(rhs1, rhs2); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/56cd877e6165ef40ca5d20020e04147ae7f2dee4/EquivalenceChecker.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/EquivalenceChecker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 6661, 8927, 4704, 22606, 12, 5411, 632, 5962, 453, 7722, 7729, 2300, 2683, 2966, 21, 16, 5411, 632, 5962, 453, 7722, 7729, 2300, 2683, 2966, 22, 15329, 3639, 727, 453, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 6661, 8927, 4704, 22606, 12, 5411, 632, 5962, 453, 7722, 7729, 2300, 2683, 2966, 21, 16, 5411, 632, 5962, 453, 7722, 7729, 2300, 2683, 2966, 22, 15329, 3639, 727, 453, 77...
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { this.applicationContext = applicationContext; String[] viewbeans = applicationContext .getBeanNamesForType(StaticTLAB.class, false, false);
public void setApplicationContext(ApplicationContext applicationContext) { String[] viewbeans = applicationContext.getBeanNamesForType( TargetListAggregatingBean.class, false, false); for (int i = 0; i < viewbeans.length; ++i) { TargetListAggregatingBean tlab = (TargetListAggregatingBean) applicationContext .getBean(viewbeans[i]); MapUtil.putMultiMap(targetMap, tlab.getTargetBean(), tlab); }
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { this.applicationContext = applicationContext; String[] viewbeans = applicationContext .getBeanNamesForType(StaticTLAB.class, false, false); }
29 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/29/240522d7c27049f05db159ed6098abcb6cf5a633/TLABPostProcessor.java/buggy/rsf-core/servletutil/src/uk/org/ponder/springutil/TLABPostProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 28278, 12, 28278, 31775, 13, 1216, 4823, 634, 503, 288, 565, 333, 18, 3685, 1042, 273, 31775, 31, 565, 514, 8526, 1476, 2196, 634, 273, 31775, 1377, 263, 588, 3381, 1557, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 28278, 12, 28278, 31775, 13, 1216, 4823, 634, 503, 288, 565, 333, 18, 3685, 1042, 273, 31775, 31, 565, 514, 8526, 1476, 2196, 634, 273, 31775, 1377, 263, 588, 3381, 1557, ...
if (name != null) getOut().print("<B>Name: </B>" + name + "<BR>"); if (type != null) getOut().print("<B>Type: </B>" + type + "<BR>"); if (desc != null) getOut().print("<B>Description: </B>" + desc + "<BR>");
if (name != null) getOut().print("<B>Name: </B>" + name + "<BR>"); if (type != null) getOut().print("<B>Type: </B>" + type + "<BR>"); if (desc != null) getOut().print("<B>Description: </B>" + desc + "<BR>");
void formatAttachmentBox(InternetHeaders headers, String type, String link_name, String link_url, String body, boolean all_headers_p) { String icon = "internal-gopher-binary"; // #### getOut().print("<CENTER>" + "<TABLE CELLPADDING=8 CELLSPACING=1 BORDER=1>" + "<TR><TD NOWRAP>");//#### Temporarily removed because the current renderer doesn't get it --Edwin if (icon != null) { getOut().print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>" + "<TR><TD NOWRAP VALIGN=CENTER>"); if (link_url != null) getOut().print("<A HREF=\"" + link_url + "\">"); getOut().print("<IMG SRC=\"" + icon + "\" BORDER=0 ALIGN=MIDDLE ALT=\"\">"); if (link_url != null) getOut().print("</A>"); getOut().print("</TD><TD VALIGN=CENTER>"); }//#### End of temporarily removed block --Edwin if (link_url != null) getOut().print("<A HREF=\"" + link_url + "\">"); getOut().print(link_name); if (link_url != null) getOut().print("</A>");//#### Temporarily removed because the current renderer doesn't get it --Edwin if (icon != null) getOut().print("</TD></TR></TABLE>");//#### End of temporarily removed block --Edwin getOut().print("</TD><TD>"); if (all_headers_p) { FullHeaderFormatter formatter = new FullHeaderFormatter(); StringBuffer output = new StringBuffer(200); formatter.formatHeaders(headers, output); getOut().print(output.toString()); } else { String cde[] = headers.getHeader("Content-Description"); String desc = (cde == null || cde.length == 0 ? null : cde[0]); String name = null; ByteBuf buf = new ByteBuf(50); String cdi[] = headers.getHeader("Content-Disposition"); String disp = (cdi == null || cdi.length == 0 ? null : cdi[0]);// #### if (disp != null) name = headers.getHeader("filename", "\n"); if (name == null) if ((type = headers.getHeader("Content-Type", "\n")) != null) name = headers.getHeader("name", "\n"); if (name == null) { String n[] = headers.getHeader("Content-Name"); if (n != null && n.length != 0) name = n[0]; }//#### Temporarily removed because the current renderer doesn't get it --Edwin// getOut().print("<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>");//// if (name != null)// getOut().print("<TR><TH VALIGN=BASELINE ALIGN=RIGHT NOWRAP>" +// "Name" + // #### l10n// ": </TH><TD>" +// name +// "</TD></TR>");//// if (type != null)// getOut().print("<TR><TH VALIGN=BASELINE ALIGN=RIGHT NOWRAP>" +// "Type" + // #### l10n// ": </TH><TD>" +// type +// "</TD></TR>");//// if (desc != null)// getOut().print("<TR><TH VALIGN=BASELINE ALIGN=RIGHT NOWRAP>" +// "Description" + // #### l10n// ": </TH><TD>" +// desc +// "</TD></TR>");//// getOut().print("</TABLE>");//#### End of temporarily removed block --Edwin//#### Temporarily inserted to get rendering working --Edwin if (name != null) getOut().print("<B>Name: </B>" + name + "<BR>"); if (type != null) getOut().print("<B>Type: </B>" + type + "<BR>"); if (desc != null) getOut().print("<B>Description: </B>" + desc + "<BR>");//#### End of temporarily inserted block --Edwin } if (body != null) {// getOut().print("<P><PRE>"); // #### quote HTML getOut().print(body);// getOut().print("</PRE>"); }// getOut().print("</TD></TR></TABLE></CENTER>"); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/0cc63cb388a13f01532486f9d178811914e6d71b/MimeExternalObjectOperator.java/buggy/grendel/sources/grendel/mime/html/MimeExternalObjectOperator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 740, 6803, 3514, 12, 26562, 3121, 1607, 16, 514, 618, 16, 21821, 514, 1692, 67, 529, 16, 514, 1692, 67, 718, 16, 514, 1417, 16, 21821, 1250, 777, 67, 2485, 67, 84, 13, 288, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 740, 6803, 3514, 12, 26562, 3121, 1607, 16, 514, 618, 16, 21821, 514, 1692, 67, 529, 16, 514, 1692, 67, 718, 16, 514, 1417, 16, 21821, 1250, 777, 67, 2485, 67, 84, 13, 288, 565, ...
super(METHOD_PATTERN,sessionFactory, classLoader); if(application == null) throw new IllegalArgumentException("Constructor argument 'application' cannot be null"); this.application = application;
super(METHOD_PATTERN,sessionFactory, classLoader, application);
public SavePersistentMethod(SessionFactory sessionFactory, ClassLoader classLoader, GrailsApplication application) { super(METHOD_PATTERN,sessionFactory, classLoader); if(application == null) throw new IllegalArgumentException("Constructor argument 'application' cannot be null"); this.application = application; }
54552 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54552/1f93a00b9ded85ce53eea3e9d4bda1f2c680aa2c/SavePersistentMethod.java/buggy/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/SavePersistentMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7074, 11906, 1305, 12, 2157, 1733, 1339, 1733, 16, 9403, 11138, 16, 10812, 14573, 3208, 2521, 13, 288, 3639, 2240, 12, 5327, 67, 10831, 16, 3184, 1733, 16, 11138, 1769, 3639, 309, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7074, 11906, 1305, 12, 2157, 1733, 1339, 1733, 16, 9403, 11138, 16, 10812, 14573, 3208, 2521, 13, 288, 3639, 2240, 12, 5327, 67, 10831, 16, 3184, 1733, 16, 11138, 1769, 3639, 309, 1...
browseButton.setText(WorkbenchMessages.getString("CreateLinkedResourceGroup.browseButton"));
browseButton.setText(NewWizardMessages.getString("CreateLinkedResourceGroup.browseButton"));
public Button getBrowseButtonControl(Composite parent){ // browse button if(browseButton == null){ assertCompositeNotNull(parent); browseButton = new Button(parent, SWT.PUSH); //setButtonLayoutData(browseButton); browseButton.setFont(parent.getFont()); browseButton.setText(WorkbenchMessages.getString("CreateLinkedResourceGroup.browseButton")); //$NON-NLS-1$ browseButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { handleLinkTargetBrowseButtonPressed(); } }); browseButton.setEnabled(createLink); } return browseButton; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ad024f522bfded2b084003834636c3f90c1e2aef/LinkToFileGroup.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/dialogfields/LinkToFileGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 12569, 2882, 12481, 3616, 3367, 12, 9400, 982, 15329, 202, 202, 759, 21670, 3568, 202, 202, 430, 12, 25731, 3616, 422, 446, 15329, 1082, 202, 11231, 9400, 5962, 12, 2938, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12569, 2882, 12481, 3616, 3367, 12, 9400, 982, 15329, 202, 202, 759, 21670, 3568, 202, 202, 430, 12, 25731, 3616, 422, 446, 15329, 1082, 202, 11231, 9400, 5962, 12, 2938, 1769, ...
a.getProps().setTipo(""); return a;
atrDeIns.getProps().setTipo(""); return atrDeIns;
public Par PElse() throws Exception{ Par a = new Par(); Par atrDeIns; if (lexico.reconoce(Tipos.TKPYCOMA)){ Token tk; tk = lexico.getNextToken(); if (!tk.equals(new Token ("else",Tipos.TKELS))){ a.getProps().setTipo(""); return a; } lexico.lexer(); //consumimos else atrDeIns = I(); a = atrDeIns; } else{ a.getProps().setTipo("error"); } return a; }
10474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10474/f6dc44d80fd64451a5eb89c4413e42d14f2f424d/Sintactico.java/buggy/plg/procesador/Sintactico.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2280, 453, 12427, 1435, 1216, 1185, 95, 202, 202, 1553, 279, 273, 394, 2280, 5621, 202, 202, 1553, 622, 86, 758, 5048, 31, 202, 202, 430, 261, 4149, 10764, 18, 266, 591, 83, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2280, 453, 12427, 1435, 1216, 1185, 95, 202, 202, 1553, 279, 273, 394, 2280, 5621, 202, 202, 1553, 622, 86, 758, 5048, 31, 202, 202, 430, 261, 4149, 10764, 18, 266, 591, 83, ...
/*if (classReference != null) { return DeprecationInspection.checkDeprecated(constructor, classReference); }*/
public static HighlightInfo checkConstructorCall(PsiClassType.ClassResolveResult typeResolveResult, PsiConstructorCall constructorCall, PsiType type, PsiJavaCodeReferenceElement classReference) { PsiExpressionList list = constructorCall.getArgumentList(); if (list == null) return null; PsiClass aClass = typeResolveResult.getElement(); if (aClass == null) return null; final PsiResolveHelper resolveHelper = constructorCall.getManager().getResolveHelper(); PsiClass accessObjectClass = null; if (constructorCall instanceof PsiNewExpression) { PsiExpression qualifier = ((PsiNewExpression)constructorCall).getQualifier(); if (qualifier != null) { accessObjectClass = (PsiClass)PsiUtil.getAccessObjectClass(qualifier).getElement(); } } if (classReference != null && !resolveHelper.isAccessible(aClass, constructorCall, accessObjectClass)) { String description = HighlightUtil.buildProblemWithAccessDescription(classReference, typeResolveResult); HighlightInfo info = HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, classReference.getReferenceNameElement(), description); HighlightUtil.registerAccessQuickFixAction(aClass, classReference, info, null); return info; } PsiMethod[] constructors = aClass.getConstructors(); if (constructors.length == 0) { if (list.getExpressions().length != 0) { String constructorName = aClass.getName(); String argTypes = HighlightUtil.buildArgTypesList(list); String description = JavaErrorMessages.message("wrong.constructor.arguments", constructorName+"()", argTypes); String tooltip = createMismatchedArgumentsHtmlTooltip(list, PsiParameter.EMPTY_ARRAY, constructorName, PsiSubstitutor.EMPTY, aClass); HighlightInfo info = HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, list, description, tooltip); QuickFixAction.registerQuickFixAction(info, constructorCall.getTextRange(), new CreateConstructorFromCallAction(constructorCall), null, null); info.navigationShift = +1; return info; } } else { JavaResolveResult[] results = resolveHelper.multiResolveConstructor((PsiClassType)type, list, list); MethodCandidateInfo result = null; if (results.length == 1) result = (MethodCandidateInfo)results[0]; PsiMethod constructor = result == null ? null : result.getElement(); if (constructor == null) { String name = aClass.getName(); name += HighlightUtil.buildArgTypesList(list); String description = JavaErrorMessages.message("cannot.resolve.constructor", name); HighlightInfo info = HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, list, description); QuickFixAction.registerQuickFixAction(info, constructorCall.getTextRange(), new CreateConstructorFromCallAction(constructorCall), null, null); if (classReference != null) { CastConstructorParametersFix.registerCastActions(classReference, constructorCall, info); } WrapExpressionFix.registerWrapAction(results, list.getExpressions(), info); info.navigationShift = +1; return info; } else { if (!result.isAccessible() || callingProtectedConstructorFromDerivedClass(constructor, constructorCall)) { String description = HighlightUtil.buildProblemWithAccessDescription(classReference, result); HighlightInfo info = HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, list, description); info.navigationShift = +1; if (classReference != null && result.isStaticsScopeCorrect()) { HighlightUtil.registerAccessQuickFixAction(constructor, classReference, info, result.getCurrentFileResolveScope()); } return info; } else if (!result.isApplicable()) { String constructorName = HighlightMessageUtil.getSymbolName(constructor, result.getSubstitutor()); String containerName = HighlightMessageUtil.getSymbolName(constructor.getParent(), result.getSubstitutor()); String argTypes = HighlightUtil.buildArgTypesList(list); String description = JavaErrorMessages.message("wrong.method.arguments", constructorName, containerName, argTypes); String toolTip = createMismatchedArgumentsHtmlTooltip(result, list); PsiElement infoElement = list.getTextLength() > 0 ? list : constructorCall; HighlightInfo info = HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, infoElement, description, toolTip); QuickFixAction.registerQuickFixAction(info, constructorCall.getTextRange(), new CreateConstructorFromCallAction(constructorCall), null, null); if (classReference != null) { CastConstructorParametersFix.registerCastActions(classReference, constructorCall, info); ChangeMethodSignatureFromUsageFix.registerIntentions(results, list, info, null); } info.navigationShift = +1; return info; } else { HighlightInfo highlightInfo = GenericsHighlightUtil.checkUncheckedCall(result, constructorCall); if (highlightInfo != null) return highlightInfo; if (constructorCall instanceof PsiNewExpression) { highlightInfo = GenericsHighlightUtil.checkGenericCallWithRawArguments(result, (PsiCallExpression)constructorCall); } if (highlightInfo != null) return highlightInfo; /*if (classReference != null) { return DeprecationInspection.checkDeprecated(constructor, classReference); }*/ } } } return null; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/649d9a65411ea451539361398ec9a18af83c404e/HighlightMethodUtil.java/clean/codeInsight/impl/com/intellij/codeInsight/daemon/impl/analysis/HighlightMethodUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 31386, 966, 866, 6293, 1477, 12, 52, 7722, 18328, 18, 797, 8460, 1253, 618, 8460, 1253, 16, 4766, 10402, 453, 7722, 6293, 1477, 3885, 1477, 16, 4766, 10402, 453, 7722, 559, 618...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31386, 966, 866, 6293, 1477, 12, 52, 7722, 18328, 18, 797, 8460, 1253, 618, 8460, 1253, 16, 4766, 10402, 453, 7722, 6293, 1477, 3885, 1477, 16, 4766, 10402, 453, 7722, 559, 618...
return importationManager.getCurrentPackage();
return importationManager.getCurrentPackage();
public String getCurrentPackage() { return importationManager.getCurrentPackage(); }
49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/108e1021fab89bb260b33d4575fd7b4622fb8703/GlobalContext.java/buggy/src/koala/dynamicjava/interpreter/context/GlobalContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 5175, 2261, 1435, 288, 202, 2463, 1930, 367, 1318, 18, 588, 3935, 2261, 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, ...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 5175, 2261, 1435, 288, 202, 2463, 1930, 367, 1318, 18, 588, 3935, 2261, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
String argName = f.argNames[index];
String argName = f.getParamOrVarName(index);
private boolean sharedWithActivation(int index) { NativeFunction f = activation.function; int definedCount = f.argCount; if (index < definedCount) { // Check if argument is not hidden by later argument with the same // name as hidden arguments are not shared with activation if (index < definedCount - 1) { String argName = f.argNames[index]; for (int i = index + 1; i < definedCount; i++) { if (argName.equals(f.argNames[i])) { return false; } } } return true; } return false; }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/993454366a57fd32ee051c61ff3a0658292d84f2/Arguments.java/buggy/js/rhino/src/org/mozilla/javascript/Arguments.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 5116, 1190, 14857, 12, 474, 770, 13, 565, 288, 3639, 16717, 2083, 284, 273, 10027, 18, 915, 31, 3639, 509, 2553, 1380, 273, 284, 18, 3175, 1380, 31, 3639, 309, 261, 1615, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5116, 1190, 14857, 12, 474, 770, 13, 565, 288, 3639, 16717, 2083, 284, 273, 10027, 18, 915, 31, 3639, 509, 2553, 1380, 273, 284, 18, 3175, 1380, 31, 3639, 309, 261, 1615, 41...
String c1 = element1.getSummary(); String c2 = element2.getSummary(); return this.view.sortDirection * taskKeyComparator.compare(c1, c2);
String summary1 = element1.getSummary(); String summary2 = element2.getSummary(); if (element1 instanceof AbstractQueryHit) { AbstractRepositoryTask task1 = ((AbstractQueryHit)element1).getCorrespondingTask(); if (task1 != null && task1.getIdLabel() != null) { summary1 = task1.getIdLabel() + ": " + summary1; } } else if (element1 instanceof AbstractRepositoryTask) { AbstractRepositoryTask task1 = (AbstractRepositoryTask)element1; if (task1.getIdLabel() != null) { summary1 = task1.getIdLabel() + ": " + summary1; } } if (element2 instanceof AbstractRepositoryTask) { AbstractRepositoryTask task2 = (AbstractRepositoryTask)element2; if (task2.getIdLabel() != null) { summary2 = task2.getIdLabel() + ": " + summary2; } } else if (element2 instanceof AbstractQueryHit) { AbstractRepositoryTask task2 = ((AbstractQueryHit)element2).getCorrespondingTask(); if (task2 != null && task2.getIdLabel() != null) { summary2 = task2.getIdLabel() + ": " + summary2; } } return this.view.sortDirection * taskKeyComparator.compare(summary1, summary2);
private int compareElements(ITaskListElement element1, ITaskListElement element2) { if (column != null && column.equals(this.view.columnNames[1])) { return 0; } else if (column == this.view.columnNames[2]) { return this.view.sortDirection * element1.getPriority().compareTo(element2.getPriority()); } else if (column == this.view.columnNames[4]) { String c1 = element1.getSummary(); String c2 = element2.getSummary(); return this.view.sortDirection * taskKeyComparator.compare(c1, c2); } else { return 0; } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/aa0965a2f250d8c081524525bb267fb94c496d23/TaskListTableSorter.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListTableSorter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 3400, 3471, 12, 1285, 835, 682, 1046, 930, 21, 16, 467, 2174, 682, 1046, 930, 22, 13, 288, 202, 202, 430, 261, 2827, 480, 446, 597, 1057, 18, 14963, 12, 2211, 18, 1945...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 3400, 3471, 12, 1285, 835, 682, 1046, 930, 21, 16, 467, 2174, 682, 1046, 930, 22, 13, 288, 202, 202, 430, 261, 2827, 480, 446, 597, 1057, 18, 14963, 12, 2211, 18, 1945...
static TagsetCache getFlagsetCache(Connection conn, int mailboxId)
static TagsetCache getFlagsetCache(Connection conn, Mailbox mbox)
static TagsetCache getFlagsetCache(Connection conn, int mailboxId) throws ServiceException { Integer id = new Integer(mailboxId); TagsetCache flagsets = null; synchronized (sFlagsetCache) { flagsets = sFlagsetCache.get(id); } // All access to a mailbox is synchronized, so we can initialize // the flagset cache for a single mailbox outside the // synchronized block. if (flagsets == null) { ZimbraLog.cache.info("Loading tagset cache"); flagsets = new TagsetCache("Mailbox " + mailboxId + " flags"); flagsets.addTagsets(DbMailbox.getDistinctFlagsets(conn, mailboxId)); synchronized (sFlagsetCache) { sFlagsetCache.put(id, flagsets); } } return flagsets; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/ddefc0e424e4cccf845f5a987c40274fece99e76/DbMailItem.java/clean/ZimbraServer/src/java/com/zimbra/cs/db/DbMailItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 4034, 542, 1649, 336, 4678, 542, 1649, 12, 1952, 1487, 16, 11542, 2147, 312, 2147, 13, 565, 1216, 16489, 288, 3639, 2144, 612, 273, 394, 2144, 12, 4408, 2147, 548, 1769, 3639, 4034, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4034, 542, 1649, 336, 4678, 542, 1649, 12, 1952, 1487, 16, 11542, 2147, 312, 2147, 13, 565, 1216, 16489, 288, 3639, 2144, 612, 273, 394, 2144, 12, 4408, 2147, 548, 1769, 3639, 4034, ...
public org.quickfix.field.LegSecurityID getLegSecurityID() throws FieldNotFound { org.quickfix.field.LegSecurityID value = new org.quickfix.field.LegSecurityID();
public quickfix.field.LegSecurityID getLegSecurityID() throws FieldNotFound { quickfix.field.LegSecurityID value = new quickfix.field.LegSecurityID();
public org.quickfix.field.LegSecurityID getLegSecurityID() throws FieldNotFound { org.quickfix.field.LegSecurityID value = new org.quickfix.field.LegSecurityID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/News.java/clean/src/java/src/quickfix/fix44/News.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 336, 8329, 4368, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 460, 273, 394, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 336, 8329, 4368, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 460, 273, 394, 23...
public static char getCombiningChar(char c, char d) { switch (c) { case 0x0300 : switch (d) { case 0x0041 : return 0x00C0; case 0x0045 : return 0x00C8; case 0x0049 : return 0x00CC; case 0x004F : return 0x00D2; case 0x0055 : return 0x00D9; case 0x0061 : return 0x00E0; case 0x0065 : return 0x00E8; case 0x0069 : return 0x00EC; case 0x006F : return 0x00F2; case 0x0075 : return 0x00F9; default: break; } case 0x0301 : switch (d) { case 0x0041 : return 0x00C1; case 0x0043 : return 0x0106; case 0x0045 : return 0x00C9; case 0x0047 : return 0x01F4; case 0x0049 : return 0x00CD; case 0x004B : return 0x1E30; case 0x004C : return 0x0139; case 0x004D : return 0x1E3E; case 0x004E : return 0x0143; case 0x004F : return 0x00D3; case 0x0050 : return 0x1E54; case 0x0052 : return 0x0154; case 0x0053 : return 0x015A; case 0x0055 : return 0x00DA; case 0x0059 : return 0x00DD; case 0x005A : return 0x0179; case 0x0061 : return 0x00E1; case 0x0063 : return 0x0107; case 0x0065 : return 0x00E9; case 0x0067 : return 0x01F5; case 0x0069 : return 0x00ED; case 0x006B : return 0x1E31; case 0x006C : return 0x013A; case 0x006D : return 0x1E3F; case 0x006E : return 0x0144; case 0x006F : return 0x00F3; case 0x0070 : return 0x1E55; case 0x0072 : return 0x0155; case 0x0073 : return 0x015B; case 0x0075 : return 0x00FA; case 0x0079 : return 0x00FD; case 0x007A : return 0x017A; case 0x00A2 : return 0x01FE; case 0x00B2 : return 0x01FF; default: break; } case 0x0302 : switch(d) { case 0x0041 : return 0x00C2; case 0x0043 : return 0x0108; case 0x0045 : return 0x00CA; case 0x0047 : return 0x011C; case 0x0048 : return 0x0124; case 0x0049 : return 0x00CE; case 0x004A : return 0x0134; case 0x004B : return 0x01E8; case 0x004C : return 0x1E3C; case 0x004F : return 0x00D4; case 0x0053 : return 0x015C; case 0x0054 : return 0x1E70; case 0x0055 : return 0x00DB; case 0x0057 : return 0x0174; case 0x0059 : return 0x0176; case 0x0061 : return 0x00E2; case 0x0063 : return 0x0109; case 0x0065 : return 0x00EA; case 0x0067 : return 0x011D; case 0x0068 : return 0x0125; case 0x0069 : return 0x00EE; case 0x006A : return 0x0135; case 0x006B : return 0x01E9; case 0x006C : return 0x1E3D; case 0x006F : return 0x00F4; case 0x0073 : return 0x015D; case 0x0074 : return 0x1E71; case 0x0075 : return 0x00FB; case 0x0077 : return 0x0175; case 0x0079 : return 0x0177; default: break; } case 0x0303 : switch(d) { case 0x0041 : return 0x00C3; case 0x0049 : return 0x0128; case 0x004E : return 0x00D1; case 0x004F : return 0x00D5; case 0x0055 : return 0x0168; case 0x0061 : return 0x00E3; case 0x0069 : return 0x0129; case 0x006E : return 0x00F1; case 0x006F : return 0x00F5; case 0x0075 : return 0x0169; default: break; } case 0x0304 : switch(d) { case 0x0041 : return 0x0100; case 0x0045 : return 0x0112; case 0x0049 : return 0x012A; case 0x004F : return 0x014C; case 0x0055 : return 0x016A; case 0x0061 : return 0x0101; case 0x0065 : return 0x0113; case 0x0069 : return 0x012B; case 0x006F : return 0x014D; case 0x0075 : return 0x016B; default: break; } case 0x0306 : switch(d) { case 0x0041 : return 0x0102; case 0x0045 : return 0x0114; case 0x0047 : return 0x011E; case 0x0049 : return 0x012C; case 0x004F : return 0x014E; case 0x0055 : return 0x016C; case 0x0061 : return 0x0103; case 0x0065 : return 0x0115; case 0x0069 : return 0x012D; case 0x006F : return 0x014F; case 0x0075 : return 0x016D; default: break; } case 0x0307 : switch(d) { case 0x0041 : return 0x0226; case 0x0042 : return 0x1E02; case 0x0043 : return 0x010A; case 0x0045 : return 0x0116; case 0x0046 : return 0x1E1E; case 0x0047 : return 0x0120; case 0x0048 : return 0x1E22; case 0x0049 : return 0x0130; case 0x004D : return 0x1E40; case 0x004E : return 0x1E44; case 0x0054 : return 0x1E6A; case 0x0057 : return 0x1E86; case 0x0058 : return 0x1E8A; case 0x0059 : return 0x1E8E; case 0x005A : return 0x017B; case 0x0061 : return 0x0227; case 0x0062 : return 0x1E03; case 0x0063 : return 0x010B; case 0x0065 : return 0x0117; case 0x0066 : return 0x1E1F; case 0x0067 : return 0x0121; case 0x0068 : return 0x1E23; case 0x006D : return 0x1E41; case 0x006E : return 0x1E45; case 0x0074 : return 0x1E6B; case 0x0077 : return 0x1E87; case 0x0078 : return 0x1E8B; case 0x0079 : return 0x1E8F; case 0x007A : return 0x017C; default: break; } case 0x0308 : switch(d) { case 0x0041 : return 0x00C4; case 0x0045 : return 0x00CB; case 0x0049 : return 0x00CF; case 0x004F : return 0x00D6; case 0x0055 : return 0x00DC; case 0x0059 : return 0x0178; case 0x0061 : return 0x00E4; case 0x0065 : return 0x00EB; case 0x0069 : return 0x00EF; case 0x006F : return 0x00F6; case 0x0075 : return 0x00FC; case 0x0079 : return 0x00FF; default: break; } case 0x0309 : switch(d) { case 0x0041 : return 0x1EA2; case 0x0061 : return 0x1EA3; case 0x00C2 : return 0x1EA8; case 0x00E2 : return 0x1EA9; case 0x0102 : return 0x1EB2; case 0x0103 : return 0x1EB3; case 0x0045 : return 0x1EBA; case 0x0065 : return 0x1EBB; case 0x00CA : return 0x1EC0; case 0x00EA : return 0x1EC1; case 0x0049 : return 0x1EC8; case 0x0069 : return 0x1EC9; case 0x004F : return 0x1ECE; case 0x006F : return 0x1ECF; case 0x00D4 : return 0x1ED4; case 0x00F4 : return 0x1ED5; // latin capital letter O with horn and hook above case 0x01A0 : return 0x1EDE; // latin small letter o with horn and hook above case 0x01A1 : return 0x1EDF; // latin capital letter U with hook above case 0x0055 : return 0x1EE6; // latin small letter U with hook above case 0x0075 : return 0x1EE7; // latin capital letter U with horn and hook above case 0x01AF : return 0x1EEC; // latin small letter u with horn and hook above case 0x01B0 : return 0x1EED; // latin capital letter Y with hook above case 0x0059 : return 0x1EF6; // latin small letter y with hook above case 0x0079 : return 0x1EF7; default : break; } case 0x030C : switch(d) { case 0x0043 : return 0x010C; case 0x0044 : return 0x010E; case 0x0045 : return 0x011A; case 0x0047 : return 0x01E6; case 0x004C : return 0x013D; case 0x004E : return 0x0147; case 0x004F : return 0x01D1; case 0x0052 : return 0x0158; case 0x0053 : return 0x0160; case 0x0054 : return 0x0164; case 0x005A : return 0x017D; case 0x0063 : return 0x010D; case 0x0064 : return 0x010F; case 0x0065 : return 0x011B; case 0x0067 : return 0x01E7; case 0x006C : return 0x013E; case 0x006E : return 0x0148; case 0x006F : return 0x01D2; case 0x0072 : return 0x0159; case 0x0073 : return 0x0161; case 0x0074 : return 0x0165; case 0x007A : return 0x017E; default: break; } case 0x030A : switch(d) { case 0x0041 : return 0x00C5; case 0x0055 : return 0x016E; case 0x0061 : return 0x00E5; case 0x0075 : return 0x016F; default: break; } case 0x0315 : switch(d) { case 0x006E : return 0x0149; default: break; } case 0x030B : switch(d) { case 0x004F : return 0x0150; case 0x0055 : return 0x0170; case 0x006F : return 0x0151; case 0x0075 : return 0x0171; default: break; } case 0x0323 : switch(d) { case 0x0041 : return 0x1EA0; case 0x0042 : return 0x1E04; case 0x0044 : return 0x1E0C; case 0x004B : return 0x1E32; case 0x004C : return 0x1E36; case 0x004D : return 0x1E42; case 0x004E : return 0x1E46; case 0x0052 : return 0x1E5A; case 0x0054 : return 0x1E6C; case 0x0056 : return 0x1E7E; case 0x005A : return 0x1E92; case 0x0061 : return 0x1EA1; case 0x0062 : return 0x1E05; case 0x0064 : return 0x1E0D; case 0x0065 : return 0x1EB9; case 0x006B : return 0x1E33; case 0x006C : return 0x1E37; case 0x006D : return 0x1E43; case 0x006E : return 0x1E47; case 0x0072 : return 0x1E5B; case 0x0074 : return 0x1E6D; case 0x0076 : return 0x1E7F; case 0x007A : return 0x1E93; default: break; } case 0x0325 : switch(d) { case 0x0041 : return 0x1E00; case 0x0061 : return 0x1E01; default: break; } case 0x0327 : switch(d) { case 0x0043 : return 0x00C7; case 0x0047 : return 0x0122; case 0x004B : return 0x0136; case 0x004C : return 0x013B; case 0x004E : return 0x0145; case 0x0053 : return 0x015E; case 0x0054 : return 0x0162; case 0x0063 : return 0x00E7; case 0x0067 : return 0x0123; case 0x006B : return 0x0137; case 0x006C : return 0x013C; case 0x006E : return 0x0146; case 0x0072 : return 0x0157; case 0x0073 : return 0x015F; case 0x0074 : return 0x0163; default: break; } case 0x0328 : switch(d) { case 0x0041 : return 0x0104; case 0x0045 : return 0x0118; case 0x0049 : return 0x012E; case 0x004F : return 0x01EA; case 0x0055 : return 0x0172; case 0x0061 : return 0x0105; case 0x0065 : return 0x0119; case 0x0069 : return 0x012F; case 0x006F : return 0x01EB; case 0x0075 : return 0x0173; default: break; } case 0x0331 : switch(d) { case 0x0042 : return 0x1E06; case 0x0062 : return 0x1E07; default: break; } case 0x0333 : switch(d) { case 0x0047 : return 0x01E4; case 0x0048 : return 0x0126; case 0x0054 : return 0x0166; case 0x0067 : return 0x01E5; case 0x0068 : return 0x0127; case 0x0074 : return 0x0167; default: break; } case 0x0332 : switch(d) { case 0x0042 : return 0x1E06; case 0x0044 : return 0x1E0E; case 0x004B : return 0x1E34; case 0x004C : return 0x1E3A; case 0x004E : return 0x1E47; case 0x0052 : return 0x1E5E; case 0x0054 : return 0x1E6E; case 0x0062 : return 0x1E07; case 0x0064 : return 0x1E0F; case 0x006B : return 0x1E35; case 0x006C : return 0x1E3B; case 0x006E : return 0x1E48; case 0x0072 : return 0x1E5F; case 0x0074 : return 0x1E6F; default: break; } case 0x031C : switch(d) { case 0x0052 : return 0x0156; default: break; } case 0x032E : switch(d) { case 0x0048 : return 0x1E2A; case 0x0068 : return 0x1E2B; default: break; } default: break; } return 0; }
46685 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46685/5a70bb5e1a663b495a4eb352ec7c7510a3bfc2f1/Unicode.java/buggy/src/org/marc4j/util/Unicode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 343, 826, 24107, 310, 2156, 12, 3001, 71, 16, 343, 1060, 15329, 202, 9610, 12, 71, 15329, 3593, 20, 92, 4630, 713, 30, 9610, 12, 72, 15329, 3593, 20, 92, 713, 9803, 30, 2463, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 343, 826, 24107, 310, 2156, 12, 3001, 71, 16, 343, 1060, 15329, 202, 9610, 12, 71, 15329, 3593, 20, 92, 4630, 713, 30, 9610, 12, 72, 15329, 3593, 20, 92, 713, 9803, 30, 2463, 2...
RoomListener[] listenerArray = (RoomListener[]) listeners .getListeners(RoomListener.class); for (int i = 0; i < listenerArray.length; i++) { RoomListener listener = listenerArray[i]; listener.table_joined(table_index); } }
RoomListener[] listenerArray = (RoomListener[]) listeners .getListeners(RoomListener.class); for (int i = 0; i < listenerArray.length; i++) { RoomListener listener = listenerArray[i]; listener.table_joined(table_index); } }
public void fire_table_joined(int table_index) { RoomListener[] listenerArray = (RoomListener[]) listeners .getListeners(RoomListener.class); for (int i = 0; i < listenerArray.length; i++) { RoomListener listener = listenerArray[i]; listener.table_joined(table_index); } }
45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/23297b98c08218eabfb0ce50651df65538ee0abb/Room.java/clean/java/src/ggz/client/core/Room.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 4452, 67, 2121, 67, 5701, 329, 12, 474, 1014, 67, 1615, 13, 288, 1082, 202, 13646, 2223, 8526, 2991, 1076, 273, 261, 13646, 2223, 63, 5717, 4679, 6862, 202, 18, 588, 558...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4452, 67, 2121, 67, 5701, 329, 12, 474, 1014, 67, 1615, 13, 288, 1082, 202, 13646, 2223, 8526, 2991, 1076, 273, 261, 13646, 2223, 63, 5717, 4679, 6862, 202, 18, 588, 558...
return "Feature"+(featureId==null ? ":Hash"+this.hashCode() : ":"+featureId);
return "Feature"+(featureId==null ? ":Hash_"+this.hashCode() : ":Id_"+featureId);
public String toString(){ return "Feature"+(featureId==null ? ":Hash"+this.hashCode() : ":"+featureId); }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/51a3c546dfc7a7a98b29771a459df19094fc5b51/Feature.java/clean/components/common/src/ome/model/Feature.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 95, 202, 2463, 315, 4595, 6, 15, 12, 7238, 548, 631, 2011, 692, 6398, 2310, 9548, 15, 2211, 18, 2816, 1085, 1435, 294, 6398, 548, 9548, 15, 7238, 548, 1769, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 95, 202, 2463, 315, 4595, 6, 15, 12, 7238, 548, 631, 2011, 692, 6398, 2310, 9548, 15, 2211, 18, 2816, 1085, 1435, 294, 6398, 548, 9548, 15, 7238, 548, 1769, 225, ...
AST __t408 = _t;
AST __t137 = _t;
public final Expression numericExpr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST numericExpr_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST plus = null; org.exist.xquery.parser.XQueryAST minus = null; org.exist.xquery.parser.XQueryAST uminus = null; org.exist.xquery.parser.XQueryAST uplus = null; org.exist.xquery.parser.XQueryAST div = null; org.exist.xquery.parser.XQueryAST idiv = null; org.exist.xquery.parser.XQueryAST mod = null; org.exist.xquery.parser.XQueryAST mult = null; step= null; PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PLUS: { AST __t405 = _t; plus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,PLUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t405; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.PLUS); op.setASTNode(plus); path.addPath(op); step= op; break; } case MINUS: { AST __t406 = _t; minus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,MINUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t406; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MINUS); op.setASTNode(minus); path.addPath(op); step= op; break; } case UNARY_MINUS: { AST __t407 = _t; uminus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,UNARY_MINUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; _t = __t407; _t = _t.getNextSibling(); UnaryExpr unary= new UnaryExpr(context, Constants.MINUS); unary.setASTNode(uminus); unary.add(left); path.addPath(unary); step= unary; break; } case UNARY_PLUS: { AST __t408 = _t; uplus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,UNARY_PLUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; _t = __t408; _t = _t.getNextSibling(); UnaryExpr unary= new UnaryExpr(context, Constants.PLUS); unary.setASTNode(uplus); unary.add(left); path.addPath(unary); step= unary; break; } case LITERAL_div: { AST __t409 = _t; div = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_div); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t409; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.DIV); op.setASTNode(div); path.addPath(op); step= op; break; } case LITERAL_idiv: { AST __t410 = _t; idiv = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_idiv); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t410; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.IDIV); op.setASTNode(idiv); path.addPath(op); step= op; break; } case LITERAL_mod: { AST __t411 = _t; mod = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_mod); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t411; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MOD); op.setASTNode(mod); path.addPath(op); step= op; break; } case STAR: { AST __t412 = _t; mult = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,STAR); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t412; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MULT); op.setASTNode(mult); path.addPath(op); step= op; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/06537933dfbae14c444eb15b44247b312b5f47d7/XQueryTreeParser.java/clean/src/org/exist/xquery/parser/XQueryTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 6389, 4742, 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, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 6389, 4742, 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, 2...