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 |
|---|---|---|---|---|---|---|
return RubyModule.newModule(getRuntime(), getBaseName(), parentModule); | return RubyModule.newModule(getRuntime(), getBaseName(), cref.getNext()); | protected IRubyObject doClone() { return RubyModule.newModule(getRuntime(), getBaseName(), parentModule); } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/a1b8fc1d456e3d5c6e01579b88773383068aa85c/RubyModule.java/buggy/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
15908,
10340,
921,
741,
10930,
1435,
288,
377,
202,
2463,
19817,
3120,
18,
2704,
3120,
12,
588,
5576,
9334,
8297,
461,
9334,
1519,
74,
18,
588,
2134,
10663,
565,
289,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
15908,
10340,
921,
741,
10930,
1435,
288,
377,
202,
2463,
19817,
3120,
18,
2704,
3120,
12,
588,
5576,
9334,
8297,
461,
9334,
1519,
74,
18,
588,
2134,
10663,
565,
289,
2,
-100,
-100,... |
setPublishedItemTextHash(publishedItemTextHash); return publishedItemTextHash; | return this.publishedItemTextHash; | public HashMap getPublishedItemTextHash(){ if (publishedItemTextHash == null){ PublishedAssessmentService pubService = new PublishedAssessmentService(); publishedItemTextHash = pubService.preparePublishedItemTextHash(getPublishedAssessment()); } setPublishedItemTextHash(publishedItemTextHash); return publishedItemTextHash; } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/50c9955ac71c99e3923c27897d60d3f6744677fe/DeliveryBean.java/buggy/samigo/tool/src/java/org/sakaiproject/tool/assessment/ui/bean/delivery/DeliveryBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4317,
27480,
329,
1180,
1528,
2310,
1435,
95,
565,
309,
261,
12614,
1180,
1528,
2310,
422,
446,
15329,
1377,
9761,
329,
15209,
1179,
5634,
1179,
273,
394,
9761,
329,
15209,
1179,
5621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4317,
27480,
329,
1180,
1528,
2310,
1435,
95,
565,
309,
261,
12614,
1180,
1528,
2310,
422,
446,
15329,
1377,
9761,
329,
15209,
1179,
5634,
1179,
273,
394,
9761,
329,
15209,
1179,
5621... |
catch (MalformedURLException e) { context.setSystemId(getAttribute("href")); final ErrorMsg msg = new ErrorMsg(ErrorMsg.FILE_NOT_FOUND_ERR, docToLoad, this); parser.reportError(Constants.FATAL, msg); } | public void parseContents(final Parser parser) { XSLTC xsltc = parser.getXSLTC(); Stylesheet context = parser.getCurrentStylesheet(); String docToLoad = getAttribute("href"); try { if (context.checkForLoop(docToLoad)) { final ErrorMsg msg = new ErrorMsg(ErrorMsg.CIRCULAR_INCLUDE_ERR, docToLoad, this); parser.reportError(Constants.FATAL, msg); return; } InputSource input = null; XMLReader reader = null; String currLoadedDoc = context.getSystemId(); SourceLoader loader = context.getSourceLoader(); // Initialize currLoadedDocURL using currLoadedDoc URL docToLoadURL = null, currLoadedDocURL = null; if (currLoadedDoc != null && currLoadedDoc.length() > 0) { try { currLoadedDocURL = new URL(currLoadedDoc); } catch (MalformedURLException e) { // ignore } } // Use SourceLoader if available if (loader != null) { input = loader.loadSource(docToLoad, currLoadedDoc, xsltc); if (input != null) { docToLoad = input.getSystemId(); reader = xsltc.getXMLReader(); } } // No SourceLoader or not resolved by SourceLoader if (input == null) { docToLoadURL = (currLoadedDocURL != null) ? new URL(currLoadedDocURL, docToLoad) : new URL("file", "", System.getProperty("user.dir") + System.getProperty("file.separator") + docToLoad); docToLoad = docToLoadURL.toString(); input = new InputSource(docToLoad); } // Return if we could not resolve the URL if (input == null) { final ErrorMsg msg = new ErrorMsg(ErrorMsg.FILE_NOT_FOUND_ERR, docToLoad, this); parser.reportError(Constants.FATAL, msg); return; } final SyntaxTreeNode root; if (reader != null) { root = parser.parse(reader,input); } else { root = parser.parse(input); } if (root == null) return; _included = parser.makeStylesheet(root); if (_included == null) return; _included.setSourceLoader(loader); _included.setSystemId(docToLoadURL.toString()); _included.setParentStylesheet(context); _included.setIncludingStylesheet(context); _included.setTemplateInlining(context.getTemplateInlining()); // An included stylesheet gets the same import precedence // as the stylesheet that included it. final int precedence = context.getImportPrecedence(); _included.setImportPrecedence(precedence); parser.setCurrentStylesheet(_included); _included.parseContents(parser); final Enumeration elements = _included.elements(); final Stylesheet topStylesheet = parser.getTopLevelStylesheet(); while (elements.hasMoreElements()) { final Object element = elements.nextElement(); if (element instanceof TopLevelElement) { if (element instanceof Variable) { topStylesheet.addVariable((Variable) element); } else if (element instanceof Param) { topStylesheet.addParam((Param) element); } else { topStylesheet.addElement((TopLevelElement) element); } } } } catch (MalformedURLException e) { // Update systemId in parent stylesheet for error reporting context.setSystemId(getAttribute("href")); final ErrorMsg msg = new ErrorMsg(ErrorMsg.FILE_NOT_FOUND_ERR, docToLoad, this); parser.reportError(Constants.FATAL, msg); } catch (Exception e) { e.printStackTrace(); } finally { parser.setCurrentStylesheet(context); } } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/f296a1ebdc474bc8a8672b995bfe4070113cc969/Include.java/clean/src/org/apache/xalan/xsltc/compiler/Include.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
6323,
12,
6385,
6783,
2082,
13,
288,
202,
60,
4559,
15988,
20791,
5111,
273,
2082,
18,
588,
60,
4559,
15988,
5621,
202,
24656,
819,
273,
2082,
18,
588,
3935,
24656,
5621,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
6323,
12,
6385,
6783,
2082,
13,
288,
202,
60,
4559,
15988,
20791,
5111,
273,
2082,
18,
588,
60,
4559,
15988,
5621,
202,
24656,
819,
273,
2082,
18,
588,
3935,
24656,
5621,... | |
AST __t123 = _t; | AST __t128 = _t; | public final void aggregate_opt(AST _t) throws RecognitionException { AST aggregate_opt_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST id1 = null; AST id2 = null; AST id3 = null; AST id4 = null; AST id5 = null; AST id6 = null; AST id7 = null; AST id8 = null; AST id9 = null; AST id10 = null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AVERAGE: { AST __t117 = _t; id1 = _t==ASTNULL ? null :(AST)_t; match(_t,AVERAGE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id1, id1, DECIMAL)); } _t = __t117; _t = _t.getNextSibling(); break; } case COUNT: { AST __t119 = _t; id2 = _t==ASTNULL ? null :(AST)_t; match(_t,COUNT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id2, id2, INTEGER)); } _t = __t119; _t = _t.getNextSibling(); break; } case MAXIMUM: { AST __t121 = _t; id3 = _t==ASTNULL ? null :(AST)_t; match(_t,MAXIMUM); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id3, id3, DECIMAL)); } _t = __t121; _t = _t.getNextSibling(); break; } case MINIMUM: { AST __t123 = _t; id4 = _t==ASTNULL ? null :(AST)_t; match(_t,MINIMUM); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id4, id4, DECIMAL)); } _t = __t123; _t = _t.getNextSibling(); break; } case TOTAL: { AST __t125 = _t; id5 = _t==ASTNULL ? null :(AST)_t; match(_t,TOTAL); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id5, id5, DECIMAL)); } _t = __t125; _t = _t.getNextSibling(); break; } case SUBAVERAGE: { AST __t127 = _t; id6 = _t==ASTNULL ? null :(AST)_t; match(_t,SUBAVERAGE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id6, id6, DECIMAL)); } _t = __t127; _t = _t.getNextSibling(); break; } case SUBCOUNT: { AST __t129 = _t; id7 = _t==ASTNULL ? null :(AST)_t; match(_t,SUBCOUNT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id7, id7, DECIMAL)); } _t = __t129; _t = _t.getNextSibling(); break; } case SUBMAXIMUM: { AST __t131 = _t; id8 = _t==ASTNULL ? null :(AST)_t; match(_t,SUBMAXIMUM); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id8, id8, DECIMAL)); } _t = __t131; _t = _t.getNextSibling(); break; } case SUBMINIMUM: { AST __t133 = _t; id9 = _t==ASTNULL ? null :(AST)_t; match(_t,SUBMINIMUM); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id9, id9, DECIMAL)); } _t = __t133; _t = _t.getNextSibling(); break; } case SUBTOTAL: { AST __t135 = _t; id10 = _t==ASTNULL ? null :(AST)_t; match(_t,SUBTOTAL); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id10, id10, DECIMAL)); } _t = __t135; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _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,
7047,
67,
3838,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
7047,
67,
3838,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7047,
67,
3838,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
7047,
67,
3838,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
... |
if (updateContainer(element)) { postRefresh(parent); } | updateContainer(element); return; | protected void processDelta(ICElementDelta delta) throws CModelException { int kind= delta.getKind(); int flags= delta.getFlags(); ICElement element= delta.getElement(); //System.out.println("Processing " + element); // handle open and closing of a solution or project if (((flags & ICElementDelta.F_CLOSED) != 0) || ((flags & ICElementDelta.F_OPENED) != 0)) { postRefresh(element); } // We do not care about changes in Working copies // well, we do see bugzilla 147694// if (element instanceof ITranslationUnit) {// ITranslationUnit unit = (ITranslationUnit) element;// if (unit.isWorkingCopy()) {// return;// }// } if (kind == ICElementDelta.REMOVED) { Object parent = internalGetParent(element); postRemove(element); if (updateContainer(element)) { postRefresh(parent); } } if (kind == ICElementDelta.ADDED) { Object parent= internalGetParent(element); postAdd(parent, element); if (updateContainer(element)) { postRefresh(parent); } } if (kind == ICElementDelta.CHANGED) { // Binary/Archive changes is done differently since they // are at two places, they are in the {Binary,Archive}Container // and in the Tree hiearchy if (updateContainer(element)) { Object parent = getParent(element); postRefresh(parent); } else if (element instanceof ITranslationUnit) { postRefresh(element); } else if (element instanceof ArchiveContainer || element instanceof BinaryContainer) { postContainerRefresh((IParent) element, element.getCProject()); } } if (isPathEntryChange(delta)) { // throw the towel and do a full refresh of the affected C project. postRefresh(element.getCProject()); return;// bailout } if (delta.getResourceDeltas() != null) { IResourceDelta[] rd= delta.getResourceDeltas(); for (int i= 0; i < rd.length; i++) { processResourceDelta(rd[i], element); } } ICElementDelta[] affectedChildren= delta.getAffectedChildren(); for (int i= 0; i < affectedChildren.length; i++) { processDelta(affectedChildren[i]); } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ead46b18a7f254959c1428306b90fb9479690b28/CElementContentProvider.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementContentProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1207,
9242,
12,
2871,
1046,
9242,
3622,
13,
1216,
385,
1488,
503,
288,
202,
202,
474,
3846,
33,
3622,
18,
588,
5677,
5621,
202,
202,
474,
2943,
33,
3622,
18,
588,
5094,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1207,
9242,
12,
2871,
1046,
9242,
3622,
13,
1216,
385,
1488,
503,
288,
202,
202,
474,
3846,
33,
3622,
18,
588,
5677,
5621,
202,
202,
474,
2943,
33,
3622,
18,
588,
5094,
... |
if(perspectiveId == null) { | if (perspectiveId == null) { | private void openEditor(IEditorInput input, String editorId, String perspectiveId) { if (getWorkbenchWindowCount() == 0) { // Something is wrong, there should be at least // one workbench window open by now. return; } IWorkbenchWindow win = null; if(perspectiveId == null) { win = getActiveWorkbenchWindow(); } else { IContainer root = WorkbenchPlugin.getPluginWorkspace().getRoot(); try { win = openWorkbenchWindow(perspectiveId,root); } catch (WorkbenchException e) { if (WorkbenchPlugin.DEBUG) // only report ini problems if the -debug command line argument is used WorkbenchPlugin.log("Error opening window in Workbench.openEditor(..)"); return; } } if (win == null) win = getWorkbenchWindows()[0]; WorkbenchPage page = (WorkbenchPage)win.getActivePage(); String id = perspectiveId; if (id == null) id = WorkbenchPlugin.getDefault().getPerspectiveRegistry().getDefaultPerspective(); if (page == null) { // Create the page. try { IContainer root = WorkbenchPlugin.getPluginWorkspace().getRoot(); page = (WorkbenchPage)getActiveWorkbenchWindow().openPage(id, root); } catch (WorkbenchException e) { ErrorDialog.openError( win.getShell(), WorkbenchMessages.getString("Problems_Opening_Page"), //$NON-NLS-1$ e.getMessage(), e.getStatus()); } } if (page == null) return; if (page.getActivePerspective() == null) { try { page = (WorkbenchPage)showPerspective(id, win); } catch (WorkbenchException e) { IStatus status = new Status(IStatus.ERROR, WorkbenchPlugin.PI_WORKBENCH, 1, WorkbenchMessages.getString("QuickStartAction.openEditorException"), e); //$NON-NLS-1$ ErrorDialog.openError( win.getShell(), WorkbenchMessages.getString("Workbench.openEditorErrorDialogTitle"), //$NON-NLS-1$ WorkbenchMessages.getString("Workbench.openEditorErrorDialogMessage"), //$NON-NLS-1$ status); return; } } page.setEditorAreaVisible(true); // see if we already have an editor IEditorPart editor = page.findEditor(input); if (editor != null) { page.activate(editor); return; } try { page.openEditor(input, editorId); } catch (PartInitException e) { IStatus status = new Status(IStatus.ERROR, WorkbenchPlugin.PI_WORKBENCH, 1, WorkbenchMessages.getString("QuickStartAction.openEditorException"), e); //$NON-NLS-1$ ErrorDialog.openError( win.getShell(), WorkbenchMessages.getString("Workbench.openEditorErrorDialogTitle"), //$NON-NLS-1$ WorkbenchMessages.getString("Workbench.openEditorErrorDialogMessage"), //$NON-NLS-1$ status); } return; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/25425fe3505bc6f62e9021f3f79e33d77a752241/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1696,
6946,
12,
45,
6946,
1210,
810,
16,
514,
4858,
548,
16,
514,
26651,
548,
13,
288,
202,
202,
430,
261,
588,
2421,
22144,
3829,
1380,
1435,
422,
374,
13,
288,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1696,
6946,
12,
45,
6946,
1210,
810,
16,
514,
4858,
548,
16,
514,
26651,
548,
13,
288,
202,
202,
430,
261,
588,
2421,
22144,
3829,
1380,
1435,
422,
374,
13,
288,
1082,
... |
if (_entryBytes <= 7) entry &= _longToEntryMask; if (entry < 0) { DataHelper.toLong(_longToEntry, 0, _entryBytes, 0-entry); _longToEntry[0] |= (1 << 7); } else { DataHelper.toLong(_longToEntry, 0, _entryBytes, entry); } return locked_add(_longToEntry); | return locked_add(entry); | public boolean add(long entry) { synchronized (this) { if (_entryBytes <= 7) entry &= _longToEntryMask; if (entry < 0) { DataHelper.toLong(_longToEntry, 0, _entryBytes, 0-entry); _longToEntry[0] |= (1 << 7); } else { DataHelper.toLong(_longToEntry, 0, _entryBytes, entry); } return locked_add(_longToEntry); } } | 3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/a2c7c5a5169ba52abc4f332f800367e4b5ac2a0c/DecayingBloomFilter.java/buggy/core/java/src/net/i2p/util/DecayingBloomFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
527,
12,
5748,
1241,
13,
288,
3639,
3852,
261,
2211,
13,
288,
5411,
309,
261,
67,
4099,
2160,
1648,
2371,
13,
7734,
1241,
12058,
389,
5748,
774,
1622,
5796,
31,
2398,
309,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
527,
12,
5748,
1241,
13,
288,
3639,
3852,
261,
2211,
13,
288,
5411,
309,
261,
67,
4099,
2160,
1648,
2371,
13,
7734,
1241,
12058,
389,
5748,
774,
1622,
5796,
31,
2398,
309,
2... |
if (stackType instanceof ClassType && type instanceof ClassType) { ClassType baseClass = (ClassType) stackType; while (baseClass != null) { if (baseClass == type) return; baseClass = baseClass.getSuperclass(); } } | if (stackType.isSubtype(type)) return; | public void compileFromStack(Compilation comp, Type stackType) { if (type == stackType) return; CodeAttr code = comp.getCode(); if (stackType == Type.void_type) { comp.compileConstant (Values.empty); stackType = Type.pointer_type; } else if (stackType instanceof PrimType && type instanceof PrimType) { code.emitConvert(stackType, type); return; } if (stackType instanceof ClassType && type instanceof ClassType) { // If stackType inherits from target type, no coercion is needed. ClassType baseClass = (ClassType) stackType; while (baseClass != null) { if (baseClass == type) return; baseClass = baseClass.getSuperclass(); } } stackType.emitCoerceToObject(code); type.emitCoerceFromObject(code); } | 41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/cc94e69884cea9d0a536a2d876b148af6b004cc9/StackTarget.java/clean/gnu/expr/StackTarget.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4074,
1265,
2624,
12,
19184,
1161,
16,
1412,
2110,
559,
13,
225,
288,
565,
309,
261,
723,
422,
2110,
559,
13,
1377,
327,
31,
565,
3356,
3843,
981,
273,
1161,
18,
588,
1085,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4074,
1265,
2624,
12,
19184,
1161,
16,
1412,
2110,
559,
13,
225,
288,
565,
309,
261,
723,
422,
2110,
559,
13,
1377,
327,
31,
565,
3356,
3843,
981,
273,
1161,
18,
588,
1085,
... |
System.out.println("***** Digital Image Library Servlet (version "+dlVersion+") *****"); | System.out.println( "***** Digital Image Library Servlet (version " + dlVersion + ") *****"); | public void init(ServletConfig config) throws ServletException { super.init(config); // Debuggin! //TCTool tctool = new TCTool(); System.out.println("***** Digital Image Library Servlet (version "+dlVersion+") *****"); // get our ServletContext ServletContext context = config.getServletContext(); // see if there is a Configuration instance dlConfig = (DigilibConfiguration) context.getAttribute( "digilib.servlet.configuration"); if (dlConfig == null) { // create new Configuration try { dlConfig = new DigilibConfiguration(config); context.setAttribute("digilib.servlet.configuration", dlConfig); } catch (Exception e) { throw new ServletException(e); } } // set the servlet version dlConfig.setServletVersion(dlVersion); // first we need an Utils util = dlConfig.getUtil(); // set our AuthOps useAuthentication = dlConfig.isUseAuthentication(); authOp = dlConfig.getAuthOp(); // FileOps instance fileOp = new FileOps(util); // AuthOps instance servletOp = new ServletOps(util); // DocuDirCache instance dirCache = dlConfig.getDirCache(); } | 10369 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10369/30061725985ec78ce98cd753ffc05c8157209233/Scaler.java/buggy/servlet/src/digilib/servlet/Scaler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
12,
4745,
809,
642,
13,
1216,
16517,
288,
202,
202,
9565,
18,
2738,
12,
1425,
1769,
202,
202,
759,
4015,
1912,
5,
202,
202,
759,
15988,
6364,
268,
299,
1371,
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,
1208,
12,
4745,
809,
642,
13,
1216,
16517,
288,
202,
202,
9565,
18,
2738,
12,
1425,
1769,
202,
202,
759,
4015,
1912,
5,
202,
202,
759,
15988,
6364,
268,
299,
1371,
273,
... |
throws NotImplementedException | public boolean isFocusTraversable() throws NotImplementedException { throw new Error("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/JTableHeader.java/clean/core/src/classpath/javax/javax/swing/table/JTableHeader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
1250,
353,
9233,
15844,
429,
1435,
540,
288,
3639,
604,
394,
1068,
2932,
902,
8249,
8863,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
1250,
353,
9233,
15844,
429,
1435,
540,
288,
3639,
604,
394,
1068,
2932,
902,
8249,
8863,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
yaccValue = new Token(getInteger(number, 10), getPosition(null, false)); | yaccValue = new Token(getInteger(number, 10), getPositionMinusOne()); | private int getNumberToken(String number, boolean isFloat, char nondigit) { if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } if (isFloat) { Double d = new Double(0.0); try { d = Double.valueOf(number); } catch (NumberFormatException e) { warnings.warn(src.getPosition(), "Float " + number + " out of range."); if (number.startsWith("-")) { d = new Double(Double.NEGATIVE_INFINITY); } else { d = new Double(Double.POSITIVE_INFINITY); } } yaccValue = new Token(d, getPosition(null, false)); return Tokens.tFLOAT; } yaccValue = new Token(getInteger(number, 10), getPosition(null, false)); return Tokens.tINTEGER; } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/67a441c8ea70c9532cdedb2001a6741b63e793ae/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
18491,
1345,
12,
780,
1300,
16,
1250,
353,
4723,
16,
1149,
290,
1434,
360,
305,
13,
288,
3639,
309,
261,
82,
1434,
360,
305,
480,
2337,
20,
6134,
288,
5411,
604,
394,
11517,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18491,
1345,
12,
780,
1300,
16,
1250,
353,
4723,
16,
1149,
290,
1434,
360,
305,
13,
288,
3639,
309,
261,
82,
1434,
360,
305,
480,
2337,
20,
6134,
288,
5411,
604,
394,
11517,
... |
if (RDEBUG && (debuglevel > 6)) System.out.println("CT"+r+"="+intToString(t0)+intToString(t1)+intToString(t2)+intToString(t3)); | if (RDEBUG && (debuglevel > 6)) System.out.println("CT"+r+ '=' +intToString(t0)+intToString(t1)+intToString(t2)+intToString(t3)); | blockEncrypt (byte[] in, byte[] result, int inOffset, Object sessionKey) {if (RDEBUG) trace(IN, "blockEncrypt("+in+", "+inOffset+", "+sessionKey+")"); int[][] Ke = (int[][]) ((Object[]) sessionKey)[0]; // extract encryption round keys int ROUNDS = Ke.length - 1; int[] Ker = Ke[0]; // plaintext to ints + key int t0 = ((in[inOffset++] & 0xFF) << 24 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) ) ^ Ker[0]; int t1 = ((in[inOffset++] & 0xFF) << 24 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) ) ^ Ker[1]; int t2 = ((in[inOffset++] & 0xFF) << 24 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) ) ^ Ker[2]; int t3 = ((in[inOffset++] & 0xFF) << 24 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) ) ^ Ker[3]; int a0, a1, a2, a3; for (int r = 1; r < ROUNDS; r++) { // apply round transforms Ker = Ke[r]; a0 = (T1[(t0 >>> 24) & 0xFF] ^ T2[(t1 >>> 16) & 0xFF] ^ T3[(t2 >>> 8) & 0xFF] ^ T4[ t3 & 0xFF] ) ^ Ker[0]; a1 = (T1[(t1 >>> 24) & 0xFF] ^ T2[(t2 >>> 16) & 0xFF] ^ T3[(t3 >>> 8) & 0xFF] ^ T4[ t0 & 0xFF] ) ^ Ker[1]; a2 = (T1[(t2 >>> 24) & 0xFF] ^ T2[(t3 >>> 16) & 0xFF] ^ T3[(t0 >>> 8) & 0xFF] ^ T4[ t1 & 0xFF] ) ^ Ker[2]; a3 = (T1[(t3 >>> 24) & 0xFF] ^ T2[(t0 >>> 16) & 0xFF] ^ T3[(t1 >>> 8) & 0xFF] ^ T4[ t2 & 0xFF] ) ^ Ker[3]; t0 = a0; t1 = a1; t2 = a2; t3 = a3;if (RDEBUG && (debuglevel > 6)) System.out.println("CT"+r+"="+intToString(t0)+intToString(t1)+intToString(t2)+intToString(t3)); } // last round is special Ker = Ke[ROUNDS]; int tt = Ker[0]; result[ 0] = (byte)(S[(t0 >>> 24) & 0xFF] ^ (tt >>> 24)); result[ 1] = (byte)(S[(t1 >>> 16) & 0xFF] ^ (tt >>> 16)); result[ 2] = (byte)(S[(t2 >>> 8) & 0xFF] ^ (tt >>> 8)); result[ 3] = (byte)(S[ t3 & 0xFF] ^ tt ); tt = Ker[1]; result[ 4] = (byte)(S[(t1 >>> 24) & 0xFF] ^ (tt >>> 24)); result[ 5] = (byte)(S[(t2 >>> 16) & 0xFF] ^ (tt >>> 16)); result[ 6] = (byte)(S[(t3 >>> 8) & 0xFF] ^ (tt >>> 8)); result[ 7] = (byte)(S[ t0 & 0xFF] ^ tt ); tt = Ker[2]; result[ 8] = (byte)(S[(t2 >>> 24) & 0xFF] ^ (tt >>> 24)); result[ 9] = (byte)(S[(t3 >>> 16) & 0xFF] ^ (tt >>> 16)); result[10] = (byte)(S[(t0 >>> 8) & 0xFF] ^ (tt >>> 8)); result[11] = (byte)(S[ t1 & 0xFF] ^ tt ); tt = Ker[3]; result[12] = (byte)(S[(t3 >>> 24) & 0xFF] ^ (tt >>> 24)); result[13] = (byte)(S[(t0 >>> 16) & 0xFF] ^ (tt >>> 16)); result[14] = (byte)(S[(t1 >>> 8) & 0xFF] ^ (tt >>> 8)); result[15] = (byte)(S[ t2 & 0xFF] ^ tt );if (RDEBUG && (debuglevel > 6)) {System.out.println("CT="+toString(result));System.out.println();}if (RDEBUG) trace(OUT, "blockEncrypt()"); } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/62fd59041864b4ed1f43adc676de6bfb5ea977f3/Rijndael_Algorithm.java/buggy/src/freenet/crypt/ciphers/Rijndael_Algorithm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1203,
13129,
261,
7229,
8526,
316,
16,
1160,
8526,
563,
16,
509,
316,
2335,
16,
1033,
26864,
13,
288,
430,
261,
54,
9394,
13,
2606,
12,
706,
16,
315,
2629,
13129,
2932,
15,
267,
15,
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,
1203,
13129,
261,
7229,
8526,
316,
16,
1160,
8526,
563,
16,
509,
316,
2335,
16,
1033,
26864,
13,
288,
430,
261,
54,
9394,
13,
2606,
12,
706,
16,
315,
2629,
13129,
2932,
15,
267,
15,
3... |
return discovered; | return m_discovered; | int getDiscoveyTime( ) { return discovered; } | 47032 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47032/e07df8411d2d5660415c7539e838f795b02777b5/StrongConnectivityInspector.java/clean/src/org/_3pq/jgrapht/alg/StrongConnectivityInspector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
509,
336,
1669,
14014,
402,
950,
12,
225,
262,
288,
5411,
327,
312,
67,
2251,
16810,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
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,
509,
336,
1669,
14014,
402,
950,
12,
225,
262,
288,
5411,
327,
312,
67,
2251,
16810,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
start.put(index, start, value); | start.put(name, start, value); | public void put(int index, Scriptable start, Object value) { Slot slot = getSlot(null, index, false); if (slot == null) { if (start != this) { start.put(index, start, value); return; } slot = getSlotToSet(null, index); } if ((slot.attributes & ScriptableObject.READONLY) != 0) return; if (this == start) { slot.value = value; } else { start.put(index, start, value); } } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/0257e231a558a4534a9cbc9d3903cc22dc103663/ScriptableObject.java/buggy/js/rhino/src/org/mozilla/javascript/ScriptableObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1378,
12,
474,
770,
16,
22780,
787,
16,
1033,
460,
13,
288,
3639,
23195,
4694,
273,
17718,
352,
12,
2011,
16,
770,
16,
629,
1769,
3639,
309,
261,
14194,
422,
446,
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,
377,
1071,
918,
1378,
12,
474,
770,
16,
22780,
787,
16,
1033,
460,
13,
288,
3639,
23195,
4694,
273,
17718,
352,
12,
2011,
16,
770,
16,
629,
1769,
3639,
309,
261,
14194,
422,
446,
13,
288,
... |
Vector3f origin4 = new Vector3f(size/4 * stepScale - 1, 0, -size/4 * stepScale + 1); | Vector3f origin4 = new Vector3f(size/4 * stepScale, 0, -size/4 * stepScale); | private void createQuadBlock(int size, float stepScale, int[] heightMap, boolean clod) { //create 4 terrain blocks //1 upper left int[] heightBlock1 = new int[heightMap.length/4]; int count = 0; for(int i = 0; i < size/2; i++) { for(int j = 0; j < size/2; j++) { heightBlock1[count++] = heightMap[i + (j*size)]; } } Vector3f origin1 = new Vector3f(-size/4 * stepScale + 1, 0, size/4 * stepScale - 1); TerrainBlock block1 = new TerrainBlock(name+"Block1", size/2, stepScale, heightBlock1, origin1, clod); this.attachChild(block1); //2 lower left int[] heightBlock2 = new int[heightMap.length/4]; count = 0; for(int i = size/2; i < size; i++) { for(int j = 0; j < size/2; j++) { heightBlock2[count++] = heightMap[i + (j*size)]; } } Vector3f origin2 = new Vector3f(-size/4 * stepScale + 1, 0, -size/4 * stepScale - 1); TerrainBlock block2 = new TerrainBlock(name+"Block2", size/2, stepScale, heightBlock2, origin2, clod); this.attachChild(block2); //3 lower right int[] heightBlock3 = new int[heightMap.length/4]; count = 0; for(int i = 0; i < size/2; i++) { for(int j = size/2; j < size; j++) { heightBlock3[count++] = heightMap[i + (j*size)]; } } Vector3f origin3 = new Vector3f(size/4 * stepScale - 1, 0, size/4 * stepScale - 1); TerrainBlock block3 = new TerrainBlock(name+"Block3", size/2, stepScale, heightBlock3, origin3, clod); this.attachChild(block3); //4 upper right int[] heightBlock4 = new int[heightMap.length/4]; count = 0; for(int i = size/2; i < size; i++) { for(int j = size/2; j < size; j++) { heightBlock4[count++] = heightMap[i + (j*size)]; } } Vector3f origin4 = new Vector3f(size/4 * stepScale - 1, 0, -size/4 * stepScale + 1); TerrainBlock block4 = new TerrainBlock(name+"Block4", size/2, stepScale, heightBlock4, origin4, clod); this.attachChild(block4); } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/a9768ac30f3477122a6c30dedc87c8867bfd048e/TerrainPage.java/buggy/src/com/jme/terrain/TerrainPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
24483,
1768,
12,
474,
963,
16,
1431,
2235,
5587,
16,
509,
8526,
2072,
863,
16,
1250,
927,
369,
13,
288,
3639,
368,
2640,
1059,
19272,
7596,
4398,
7734,
368,
21,
3854,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
24483,
1768,
12,
474,
963,
16,
1431,
2235,
5587,
16,
509,
8526,
2072,
863,
16,
1250,
927,
369,
13,
288,
3639,
368,
2640,
1059,
19272,
7596,
4398,
7734,
368,
21,
3854,
20... |
switch(areq) { case AUTH_REQ_OK: break; | switch(areq) { case AUTH_REQ_OK: break; | protected void openConnection(String host, int port, Properties info, String database, String url, Driver d) throws SQLException { // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if(info.getProperty("user")==null) throw new PSQLException("postgresql.con.user"); if(info.getProperty("password")==null) throw new PSQLException("postgresql.con.pass"); this_driver = d; this_url = url; PG_DATABASE = database; PG_PASSWORD = info.getProperty("password"); PG_USER = info.getProperty("user"); PG_PORT = port; PG_HOST = host; PG_STATUS = CONNECTION_BAD; if(info.getProperty("compatible")==null) { compatible = d.getMajorVersion() + "." + d.getMinorVersion(); } else { compatible = info.getProperty("compatible"); } // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <peter@retep.org.uk> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed",e); } // Now we need to construct and send a startup packet try { // Ver 6.3 code pg_stream.SendInteger(4+4+SM_DATABASE+SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY,4); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MAJOR,2); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MINOR,2); pg_stream.Send(database.getBytes(),SM_DATABASE); // This last send includes the unused fields pg_stream.Send(PG_USER.getBytes(),SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new SQLException(pg_stream.ReceiveString(encoding)); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the password salt if there is one if(areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst,0,2); DriverManager.println("Salt="+salt); } // now send the auth packet switch(areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: DriverManager.println("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: DriverManager.println("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: DriverManager.println("postgresql: PASSWORD"); pg_stream.SendInteger(5+PG_PASSWORD.length(),4); pg_stream.Send(PG_PASSWORD.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: DriverManager.println("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt,PG_PASSWORD); pg_stream.SendInteger(5+crypted.length(),4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth",new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while(areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed",e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'K': pid = pg_stream.ReceiveInteger(4); ckey = pg_stream.ReceiveInteger(4); break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(encoding)); default: throw new PSQLException("postgresql.con.setup"); } // Expect ReadyForQuery packet beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'Z': break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(encoding)); default: throw new PSQLException("postgresql.con.setup"); } firstWarning = null; // "pg_encoding_to_char(1)" will return 'EUC_JP' for a backend compiled with multibyte, // otherwise it's hardcoded to 'SQL_ASCII'. // If the backend doesn't know about multibyte we can't assume anything about the encoding // used, so we denote this with 'UNKNOWN'. final String encodingQuery = "case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end"; // Set datestyle and fetch db encoding in a single call, to avoid making // more than one round trip to the backend during connection startup. java.sql.ResultSet resultSet = ExecSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";"); if (! resultSet.next()) { throw new PSQLException("postgresql.con.failed", "failed getting backend encoding"); } String version = resultSet.getString(1); dbVersionNumber = extractVersionNumber(version); String dbEncoding = resultSet.getString(2); encoding = Encoding.getEncoding(dbEncoding, info.getProperty("charSet")); // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup firstWarning = null; PG_STATUS = CONNECTION_OK; } | 46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/839b9bc0117946afd62ee385a4c8a36c01b3053b/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24982,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
13,
1216,
6483,
565,
288,
565,
368,
3743,
392,
1520,
309,
326,
729,
578,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24982,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
13,
1216,
6483,
565,
288,
565,
368,
3743,
392,
1520,
309,
326,
729,
578,
22... |
return new XDoclet(AntSourceProvider.class, FileWriterMapper.class) { public void composeContainer(MutablePicoContainer pico, Object scope) { super.composeContainer(pico, scope); pico.registerComponentInstance(filesets); pico.registerComponentInstance(getProject()); pico.registerComponentInstance(encoding); pico.registerComponentInstance(verbose); } }; } | return new XDoclet(AntSourceProvider.class, FileWriterMapper.class) { public void composeContainer(MutablePicoContainer pico, Object scope) { super.composeContainer(pico, scope); pico.registerComponentInstance(filesets); pico.registerComponentInstance(getProject()); pico.registerComponentInstance(encoding); pico.registerComponentInstance(verbose); pico.registerComponentImplementation(PropertyComposer.class); pico.registerComponentImplementation(SystemQDoxPropertyExpander.class); pico.registerComponentInstance(new MyPropertiesQDoxPropertyExpander()); } }; } | protected Generama createGenerama() { return new XDoclet(AntSourceProvider.class, FileWriterMapper.class) { public void composeContainer(MutablePicoContainer pico, Object scope) { super.composeContainer(pico, scope); pico.registerComponentInstance(filesets); pico.registerComponentInstance(getProject()); pico.registerComponentInstance(encoding); pico.registerComponentInstance(verbose); } }; } | 4525 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4525/7b0e98412d3e2694e76904412b41e06eca60b866/XDocletTask.java/clean/xdoclet/src/main/java/org/xdoclet/ant/XDocletTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3055,
20789,
752,
1863,
20789,
1435,
288,
3639,
327,
394,
1139,
1759,
1810,
12,
14925,
1830,
2249,
18,
1106,
16,
24639,
4597,
18,
1106,
13,
288,
5411,
1071,
918,
11458,
2170,
12,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3055,
20789,
752,
1863,
20789,
1435,
288,
3639,
327,
394,
1139,
1759,
1810,
12,
14925,
1830,
2249,
18,
1106,
16,
24639,
4597,
18,
1106,
13,
288,
5411,
1071,
918,
11458,
2170,
12,
19... |
iCodeTop = addToken(Token.LOCAL_SAVE, iCodeTop); iCodeTop = addByte(finallyRegister, iCodeTop); | iCodeTop = addIndexOp(Token.LOCAL_SAVE, finallyRegister, iCodeTop); | private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; int savedStackDepth = itsStackDepth; int stackDelta = 0; // expected stack change for subtree code boolean stackShouldBeZero = false; switch (type) { case Token.FUNCTION : { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); FunctionNode fn = scriptOrFn.getFunctionNode(fnIndex); if (fn.getFunctionType() != FunctionNode.FUNCTION_STATEMENT) { stackDelta = 1; // Only function expressions or function expression // statements needs closure code creating new function // object on stack as function statements are initialized // at script/function start iCodeTop = addIndexOp(Icode_CLOSURE, fnIndex, iCodeTop); stackChange(1); } else { stackShouldBeZero = true; } break; } case Token.SCRIPT : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != Token.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.CASE : // Skip case condition child = child.getNext(); // fallthrough case Token.LABEL : case Token.LOOP : case Token.DEFAULT : case Token.BLOCK : case Token.EMPTY : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.WITH : ++itsWithDepth; stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsWithDepth; break; case Token.LOCAL_BLOCK : stackShouldBeZero = true; if ((itsLocalTop & ~0xFF) != 0) { throw Context.reportRuntimeError( "Program too complex (out of locals)"); } node.putIntProp(Node.LOCAL_PROP, itsLocalTop); ++itsLocalTop; if (itsLocalTop > itsData.itsMaxLocals) { itsData.itsMaxLocals = itsLocalTop; } iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsLocalTop; break; case Token.LOCAL_LOAD : { stackDelta = 1; iCodeTop = addToken(Token.LOCAL_LOAD, iCodeTop); iCodeTop = addLocalBlockRef(node, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.COMMA : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { if (1 != itsStackDepth - savedStackDepth) Kit.codeBug(); iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; iCodeTop = generateICode(child, iCodeTop); } break; case Token.INIT_LIST : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { if (1 != itsStackDepth - savedStackDepth) Kit.codeBug(); iCodeTop = addIcode(Icode_DUP, iCodeTop); // No stack adjusting: USE_STACK in subtree will do it iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; } break; case Token.USE_STACK: // Indicates that stack was modified externally, // like placed catch object stackDelta = 1; itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.SWITCH : { stackShouldBeZero = true; Node.Jump switchNode = (Node.Jump)node; iCodeTop = updateLineNumber(switchNode, iCodeTop); iCodeTop = generateICode(child, iCodeTop); ObjArray cases = (ObjArray) switchNode.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.SHEQ, iCodeTop); itsStackDepth--; Node.Target target = new Node.Target(); thisCase.addChildAfter(target, first); // If true, Icode_IFEQ_POP will jump and remove case value // from stack iCodeTop = addGoto(target, Icode_IFEQ_POP, iCodeTop); itsStackDepth--; } iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; Node defaultNode = (Node) switchNode.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node.Target defaultTarget = new Node.Target(); defaultNode.getFirstChild(). addChildToFront(defaultTarget); iCodeTop = addGoto(defaultTarget, Token.GOTO, iCodeTop); } Node.Target breakTarget = switchNode.target; iCodeTop = addGoto(breakTarget, Token.GOTO, iCodeTop); break; } case Token.TARGET : stackShouldBeZero = true; markTargetLabel((Node.Target)node, iCodeTop); break; case Token.NEW : case Token.CALL : { stackDelta = 1; if (type == Token.NEW) { iCodeTop = generateICode(child, iCodeTop); } else { iCodeTop = generateCallFunAndThis(child, iCodeTop); if (itsStackDepth - savedStackDepth != 2) Kit.codeBug(); } int argCount = 0; while ((child = child.getNext()) != null) { iCodeTop = generateICode(child, iCodeTop); ++argCount; } int callType = node.getIntProp(Node.SPECIALCALL_PROP, Node.NON_SPECIALCALL); if (callType != Node.NON_SPECIALCALL) { // embed line number and source filename iCodeTop = addIndexOp(Icode_CALLSPECIAL, argCount, iCodeTop); iCodeTop = addByte(callType, iCodeTop); iCodeTop = addByte(type == Token.NEW ? 1 : 0, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); } else { iCodeTop = addIndexOp(type, argCount, iCodeTop); } // adjust stack if (type == Token.NEW) { // f, args -> results itsStackDepth -= argCount; } else { // f, thisObj, args -> results itsStackDepth -= (argCount + 1); } if (argCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = argCount; break; } case Token.IFEQ : case Token.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case Token.GOTO : { stackShouldBeZero = true; Node.Target target = ((Node.Jump)node).target; iCodeTop = addGoto(target, (byte) type, iCodeTop); break; } case Token.JSR : { stackShouldBeZero = true; Node.Target target = ((Node.Jump)node).target; iCodeTop = addGoto(target, Icode_GOSUB, iCodeTop); break; } case Token.FINALLY : { stackShouldBeZero = true; // Account for incomming exception or GOTOSUB address ++itsStackDepth; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int finallyRegister = getLocalBlockRef(node); iCodeTop = addToken(Token.LOCAL_SAVE, iCodeTop); iCodeTop = addByte(finallyRegister, iCodeTop); itsStackDepth--; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (itsStackDepth != 0) Kit.codeBug(); child = child.getNext(); } iCodeTop = addIcode(Icode_RETSUB, iCodeTop); iCodeTop = addByte(finallyRegister, iCodeTop); break; } case Token.AND : case Token.OR : { stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addIcode(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int afterSecondJumpStart = iCodeTop; int jump = (type == Token.AND) ? Token.IFNE : Token.IFEQ; iCodeTop = addForwardGoto(jump, iCodeTop); itsStackDepth--; iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(afterSecondJumpStart, iCodeTop); break; } case Token.HOOK : { stackDelta = 1; Node ifThen = child.getNext(); Node ifElse = ifThen.getNext(); iCodeTop = generateICode(child, iCodeTop); int elseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFNE, iCodeTop); itsStackDepth--; iCodeTop = generateICode(ifThen, iCodeTop); int afterElseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.GOTO, iCodeTop); resolveForwardGoto(elseJumpStart, iCodeTop); itsStackDepth = savedStackDepth; iCodeTop = generateICode(ifElse, iCodeTop); resolveForwardGoto(afterElseJumpStart, iCodeTop); break; } case Token.GETPROP : stackDelta = 1; iCodeTop = visitGetProp(iCodeTop, node, child, false); break; case Token.GETELEM : stackDelta = 1; iCodeTop = visitGetElem(iCodeTop, node, child, false); break; 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 : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(type, iCodeTop); itsStackDepth--; break; case Token.POS : case Token.NEG : case Token.NOT : case Token.BITNOT : case Token.TYPEOF : case Token.VOID : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); if (type == Token.VOID) { iCodeTop = addToken(Token.POP, iCodeTop); iCodeTop = addToken(Token.UNDEFINED, iCodeTop); } else { iCodeTop = addToken(type, iCodeTop); } break; case Token.SETPROP : case Token.SETPROP_OP : { stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); int special = node.getIntProp(Node.SPECIAL_PROP_PROP, 0); if (special != 0) { if (type == Token.SETPROP_OP) { iCodeTop = addIcode(Icode_DUP, iCodeTop); if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; if (special == Node.SPECIAL_PROP_PROTO) { iCodeTop = addIcode(Icode_GETPROTO, iCodeTop); } else if (special == Node.SPECIAL_PROP_PARENT) { iCodeTop = addIcode(Icode_GETSCOPEPARENT, iCodeTop); } else { throw badTree(node); } // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); if (special == Node.SPECIAL_PROP_PROTO) { iCodeTop = addIcode(Icode_SETPROTO, iCodeTop); } else if (special == Node.SPECIAL_PROP_PARENT) { iCodeTop = addIcode(Icode_SETPARENT, iCodeTop); } else { throw badTree(node); } itsStackDepth--; } else { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); if (type == Token.SETPROP_OP) { iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETPROP, iCodeTop); itsStackDepth--; // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.SETPROP, iCodeTop); itsStackDepth -= 2; } break; } case Token.SETELEM : case Token.SETELEM_OP : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); if (type == Token.SETELEM_OP) { iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETELEM, iCodeTop); itsStackDepth--; // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.SETELEM, iCodeTop); itsStackDepth -= 2; break; case Token.SETNAME : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addStringOp(Token.SETNAME, firstChild.getString(), iCodeTop); itsStackDepth--; break; case Token.TYPEOFNAME : { stackDelta = 1; 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) { iCodeTop = addStringOp(Icode_TYPEOFNAME, name, iCodeTop); stackChange(1); } else { iCodeTop = addToken(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); stackChange(1); iCodeTop = addToken(Token.TYPEOF, iCodeTop); } break; } case Token.BINDNAME : case Token.NAME : case Token.STRING : stackDelta = 1; iCodeTop = addStringOp(type, node.getString(), iCodeTop); stackChange(1); break; case Token.INC : case Token.DEC : { stackDelta = 1; int childType = child.getType(); switch (childType) { case Token.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addIcode(Icode_SCOPE, iCodeTop); iCodeTop = addStringOp(Token.STRING, name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addIcode(type == Token.INC ? Icode_PROPINC : Icode_PROPDEC, iCodeTop); itsStackDepth--; } else { int i = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addIcode(type == Token.INC ? Icode_VARINC : Icode_VARDEC, iCodeTop); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.GETPROP : case Token.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNext(); iCodeTop = generateICode(getPropChild, iCodeTop); int icode; if (childType == Token.GETPROP) { icode = (type == Token.INC) ? Icode_PROPINC : Icode_PROPDEC; } else { icode = (type == Token.INC) ? Icode_ELEMINC : Icode_ELEMDEC; } iCodeTop = addIcode(icode, iCodeTop); itsStackDepth--; break; } default : { iCodeTop = addStringOp(type == Token.INC ? Icode_NAMEINC : Icode_NAMEDEC, child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } } break; } case Token.NUMBER : { stackDelta = 1; double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addToken(Token.ZERO, iCodeTop); // Check for negative zero if (1.0 / num < 0.0) { iCodeTop = addToken(Token.NEG, iCodeTop); } } else if (inum == 1) { iCodeTop = addToken(Token.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addIcode(Icode_SHORTNUMBER, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addIcode(Icode_INTNUMBER, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { int index = getDoubleIndex(num); iCodeTop = addIndexOp(Token.NUMBER, index, iCodeTop); } stackChange(1); break; } case Token.POPV : stackShouldBeZero = true; // fallthrough case Token.POP : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(type, iCodeTop); itsStackDepth--; break; case Token.ENTERWITH : stackShouldBeZero = true; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.ENTERWITH, iCodeTop); itsStackDepth--; break; case Token.CATCH_SCOPE : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addStringOp(Token.CATCH_SCOPE, node.getString(), iCodeTop); break; case Token.LEAVEWITH : stackShouldBeZero = true; iCodeTop = addToken(Token.LEAVEWITH, iCodeTop); break; case Token.TRY : { stackShouldBeZero = true; Node.Jump tryNode = (Node.Jump)node; int exceptionObjectLocal = getLocalBlockRef(tryNode); Node catchTarget = tryNode.target; Node finallyTarget = tryNode.getFinally(); int tryStart = iCodeTop; int tryEnd = -1; int catchStart = -1; int finallyStart = -1; while (child != null) { boolean generated = false; if (child == catchTarget) { if (tryEnd >= 0) Kit.codeBug(); tryEnd = iCodeTop; catchStart = iCodeTop; markTargetLabel((Node.Target)child, iCodeTop); generated = true; } else if (child == finallyTarget) { if (tryEnd < 0) { tryEnd = iCodeTop; } finallyStart = iCodeTop; markTargetLabel((Node.Target)child, iCodeTop); generated = true; } if (!generated) { iCodeTop = generateICode(child, iCodeTop); } child = child.getNext(); } // [tryStart, tryEnd) contains GOSUB to call finally when it // presents at the end of try code and before return, break // continue that transfer control outside try. // After finally is executed the control will be // transfered back into [tryStart, tryEnd) and exception // handling assumes that the only code executed after // finally returns will be a jump outside try which could not // trigger exceptions. // It does not hold if instruction observer throws during // goto. Currently it may lead to double execution of finally. addExceptionHandler(tryStart, tryEnd, catchStart, finallyStart, itsWithDepth, exceptionObjectLocal); break; } case Token.THROW : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.THROW, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); itsStackDepth--; break; case Token.RETURN : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addIcode(Icode_RETUNDEF, iCodeTop); } break; case Token.RETURN_POPV : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = addToken(Token.RETURN_POPV, iCodeTop); break; case Token.GETVAR : { stackDelta = 1; String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addIcode(Icode_SCOPE, iCodeTop); iCodeTop = addStringOp(Token.STRING, name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETPROP, iCodeTop); itsStackDepth--; } else { int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addToken(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SETVAR : { stackDelta = 1; if (itsData.itsNeedsActivation) { child.setType(Token.BINDNAME); node.setType(Token.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addToken(Token.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } break; } case Token.NULL: case Token.THIS: case Token.THISFN: case Token.FALSE: case Token.TRUE: case Token.UNDEFINED: stackDelta = 1; iCodeTop = addToken(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.ENUM_INIT : stackShouldBeZero = true; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.ENUM_INIT, iCodeTop); iCodeTop = addLocalBlockRef(node, iCodeTop); itsStackDepth--; break; case Token.ENUM_NEXT : case Token.ENUM_ID : { stackDelta = 1; iCodeTop = addToken(type, iCodeTop); iCodeTop = addLocalBlockRef(node, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.REGEXP : { stackDelta = 1; int index = node.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addIndexOp(Token.REGEXP, index, iCodeTop); stackChange(1); break; } case Token.ARRAYLIT: case Token.OBJECTLIT: stackDelta = 1; iCodeTop = visitLiteral(iCodeTop, node, child); break; default : throw badTree(node); } if (stackDelta != itsStackDepth - savedStackDepth) { //System.out.println("Bad stack delta: type="+Token.name(type)+" expected="+stackDelta+" real="+ (itsStackDepth - savedStackDepth)); Kit.codeBug(); } if (stackShouldBeZero && !(stackDelta == 0 && itsStackDepth == 0)) { Kit.codeBug(); } return iCodeTop; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/5b81311a845598f1a18a6f94fb54470e92728630/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3... |
break; | continue Loop; | static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: for (;;) { try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); int pcNew = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcNew >= 0) { // Has catch block doCatch = true; } } if (pcNew < 0) { pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcNew < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // Notify instruction observer if necessary // and point pc and pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = pcNew; continue Loop; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); javaException = new JavaScriptException(value, idata.itsSourceFile, sourceLine); exceptionPC = pc - 1; if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); stack[stackTop--] = null; continue Loop; } pc += 2; break; } case Token.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_RETSUB : { int slot = (iCode[pc] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } int newPC; Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case Token.POP : stack[stackTop] = null; stackTop--; break; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; break; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; break; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; break; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; break; } case Token.BINDNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case Token.SETNAME : { String name = strings[getIndex(iCode, pc)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); break; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); break; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); break; } case Token.LOCAL_SAVE : { int slot = (iCode[pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; --stackTop; ++pc; break; } case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; ++pc; break; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); int count = getIndex(iCode, pc + 4); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 6; break; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case Icode_TYPEOFNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case Icode_NAME_AND_THIS : { String name = strings[getIndex(iCode, pc)]; boolean skipGetThis = (0 != iCode[pc + 2]); stackTop = do_nameAndThis(stack, stackTop, scope, name, skipGetThis); pc += 3; break; } case Token.STRING : stack[++stackTop] = strings[getIndex(iCode, pc)]; pc += 2; break; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; break; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; break; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2; break; case Token.NAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case Icode_NAMEINC : case Icode_NAMEDEC : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, name, op == Icode_NAMEINC); pc += 2; break; } case Token.SETVAR : { int slot = (iCode[pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.GETVAR : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } ++pc; break; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case Token.NULL : stack[++stackTop] = null; break; case Token.THIS : stack[++stackTop] = thisObj; break; case Token.THISFN : stack[++stackTop] = fnOrScript; break; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; break; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; break; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; break; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; break; case Token.CATCH_SCOPE : { String name = strings[getIndex(iCode, pc)]; stack[stackTop] = ScriptRuntime.newCatchScope(name, stack[stackTop]); pc += 2; break; } case Token.ENUM_INIT : { int slot = (iCode[pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.enumInit(lhs, scope); ++pc; break; } case Token.ENUM_NEXT : case Token.ENUM_ID : { int slot = (iCode[pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); ++pc; break; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); break; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; break; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; break; } case Icode_SCOPE : stack[++stackTop] = scope; break; case Icode_CLOSURE : { int i = getIndex(iCode, pc); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case Token.REGEXP : { int i = getIndex(iCode, pc); Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[i]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[i]; } stack[++stackTop] = regexp; pc += 2; break; } case Icode_LITERAL_NEW : { int i = getInt(iCode, pc); ++stackTop; stack[stackTop] = new Object[i]; sDbl[stackTop] = 0; pc += 4; break; } case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; break; } case Token.ARRAYLIT : case Token.OBJECTLIT : { int offset = getInt(iCode, pc); Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.ARRAYLIT) { int[] skipIndexces = null; if (offset >= 0) { skipIndexces = (int[])idata.literalIds[offset]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } else { Object[] ids = (Object[])idata.literalIds[offset]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } stack[stackTop] = val; pc += 4; break; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } // end of interpreter switch } } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } javaException = ex; exceptionPC = pc; pc = getJavaCatchPC(iCode); continue Loop; } } cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/34e9dc56b7553f450b9015c8f4135584139686cf/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701... |
LogWriter log = LogWriter.getInstance(); if (mappingTransMeta!=null) | try | private void editTrans() { LogWriter log = LogWriter.getInstance(); if (mappingTransMeta!=null) { Spoon spoon = new Spoon(log, shell.getDisplay(), mappingTransMeta, repository); spoon.open(); } else { MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage(Messages.getString("MappingDialog.TransformationSelecting.DialogMessage")); //$NON-NLS-1$ mb.setText(Messages.getString("MappingDialog.TransformationSelecting.DialogTitle")); //$NON-NLS-1$ mb.open(); } } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/71a9bdb4b8dc0c8f042243703389f84ad31040ab/MappingDialog.java/clean/kettle/src/be/ibridge/kettle/trans/step/mapping/MappingDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3874,
1429,
1435,
565,
288,
3639,
1827,
2289,
613,
273,
1827,
2289,
18,
588,
1442,
5621,
3639,
309,
261,
6770,
1429,
2781,
5,
33,
2011,
13,
3639,
288,
5411,
348,
1631,
265,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3874,
1429,
1435,
565,
288,
3639,
1827,
2289,
613,
273,
1827,
2289,
18,
588,
1442,
5621,
3639,
309,
261,
6770,
1429,
2781,
5,
33,
2011,
13,
3639,
288,
5411,
348,
1631,
265,
2... |
"")), aPC); | "")), aPC); | public static Dimension getOptionsFromProperties(final PlayerCharacter aPC) { Dimension d = new Dimension(0, 0); final String tempBrowserPath = getPCGenOption("browserPath", ""); //$NON-NLS-1$ //$NON-NLS-2$ if (!"".equals(tempBrowserPath)) //$NON-NLS-1$ { setBrowserPath(tempBrowserPath); } else { setBrowserPath(null); } PersistenceManager.getInstance().setChosenCampaignSourcefiles(CoreUtility.split(getOptions().getProperty("pcgen.files.chosenCampaignSourcefiles", //$NON-NLS-1$ ""), ',')); //$NON-NLS-1$ setLeftUpperCorner(new Point(getPCGenOption("windowLeftUpperCorner.X", -1.0).intValue(), //$NON-NLS-1$ getPCGenOption("windowLeftUpperCorner.Y", -1.0).intValue())); //$NON-NLS-1$ setWindowState(getPCGenOption("windowState",Frame.NORMAL)); //$NON-NLS-1$ Double dw = getPCGenOption("windowWidth", 0.0); //$NON-NLS-1$ Double dh = getPCGenOption("windowHeight", 0.0); //$NON-NLS-1$ if (!CoreUtility.doublesEqual(dw.doubleValue(), 0.0) && !CoreUtility.doublesEqual(dh.doubleValue(), 0.0)) { final int width = Integer.parseInt(dw.toString().substring(0, Math.min(dw.toString().length(), dw.toString().lastIndexOf(".")))); //$NON-NLS-1$ final int height = Integer.parseInt(dh.toString().substring(0, Math.min(dh.toString().length(), dh.toString().lastIndexOf(".")))); //$NON-NLS-1$ d = new Dimension(width, height); } setCustomizerLeftUpperCorner(new Point(getPCGenOption("customizer.windowLeftUpperCorner.X", -1.0).intValue(), //$NON-NLS-1$ getPCGenOption("customizer.windowLeftUpperCorner.Y", -1.0).intValue())); //$NON-NLS-1$ dw = getPCGenOption("customizer.windowWidth", 0.0); //$NON-NLS-1$ dh = getPCGenOption("customizer.windowHeight", 0.0); //$NON-NLS-1$ if (!CoreUtility.doublesEqual(dw.doubleValue(), 0.0) && !CoreUtility.doublesEqual(dh.doubleValue(), 0.0)) { setCustomizerDimension(new Dimension(dw.intValue(), dh.intValue())); } // // Read in the buy/sell percentages for the gear tab // If not in the .ini file and ignoreCost is set, then use 0% // Otherwise set buy to 100% and sell to %50 // int buyRate = getPCGenOption("GearTab.buyRate", -1); //$NON-NLS-1$ int sellRate = getPCGenOption("GearTab.sellRate", -1); //$NON-NLS-1$ if ((buyRate < 0) || (sellRate < 0)) { if (getPCGenOption("GearTab.ignoreCost", false)) //$NON-NLS-1$ { buyRate = 0; sellRate = 0; } else { buyRate = 100; sellRate = 50; } } Globals.initCustColumnWidth(CoreUtility.split(getOptions().getProperty("pcgen.options.custColumnWidth", ""), ',')); //$NON-NLS-1$ //$NON-NLS-2$ showD20InfoAtStart = getPCGenOption("showD20InfoAtStart", true); //$NON-NLS-1$ loadURLs = getPCGenOption("loadURLs", false); //$NON-NLS-1$ allowOverride = getPCGenOption("allowOverride", false); //$NON-NLS-1$ showOGLOnLoad = getPCGenOption("showOGLOnLoad", true); //$NON-NLS-1$ showSponsorsOnLoad = getPCGenOption("showSponsorsOnLoad", true); //$NON-NLS-1$ Globals.setSourceDisplay(getPCGenOption("sourceDisplay", Constants.SOURCELONG)); //$NON-NLS-1$ Globals.setLanguage(getPCGenOption("language", null)); //$NON-NLS-1$ //$NON-NLS-2$ Globals.setCountry(getPCGenOption("country", null)); //$NON-NLS-1$ //$NON-NLS-2$ setAbilitiesShownAsATab(getPCGenOption("abilitiesShownAsTab", false)); //$NON-NLS-1$ setAlwaysOverwrite(getPCGenOption("alwaysOverwrite", false)); //$NON-NLS-1$ setAutoFeatsRefundable(getPCGenOption("autoFeatsRefundable", false)); //$NON-NLS-1$ setUseFeatBenefits(getPCGenOption("useFeatBenefits", true)); //$NON-NLS-1$ setAutogenExoticMaterial(getPCGenOption("autoGenerateExoticMaterial", false)); //$NON-NLS-1$ setAutogenMagic(getPCGenOption("autoGenerateMagic", false)); //$NON-NLS-1$ setAutogenMasterwork(getPCGenOption("autoGenerateMasterwork", false)); //$NON-NLS-1$ setAutogenRacial(getPCGenOption("autoGenerateRacial", false)); //$NON-NLS-1$ setChaTabPlacement(getOptionTabPlacement("chaTabPlacement", SwingConstants.TOP)); //$NON-NLS-1$ setClassTab_AvailableListMode(getPCGenOption("ClassTab.availableListMode", GuiConstants.INFOCLASS_VIEW_NAME)); //$NON-NLS-1$ setClassTab_SelectedListMode(getPCGenOption("ClassTab.selectedListMode", GuiConstants.INFOCLASS_VIEW_NAME)); //$NON-NLS-1$ setCreatePcgBackup(getPCGenOption("createPcgBackup", true)); setCleanupTempFiles(getPCGenOption("cleanupTempFiles", false)); //$NON-NLS-1$ setCustomizerSplit1(getPCGenOption("customizer.split1", -1)); //$NON-NLS-1$ setCustomizerSplit2(getPCGenOption("customizer.split2", -1)); //$NON-NLS-1$ setDmNotes(getPCGenOption("dmnotes", "")); //$NON-NLS-1$ //$NON-NLS-2$ setDomainTab_ListMode(getPCGenOption("DomainTab.ListMode", GuiConstants.INFODOMAIN_VIEW_NAME)); //$NON-NLS-1$ setEnforceSpendingBeforeLevelUp(getPCGenOption("enforceSpendingBeforeLevelUp", false)); //$NON-NLS-1$ setEquipTab_AvailableListMode(getPCGenOption("EquipTab.availableListMode", GuiConstants.INFOEQUIPPING_VIEW_EQUIPPED)); //$NON-NLS-1$ setEquipTab_SelectedListMode(getPCGenOption("EquipTab.selectedListMode", GuiConstants.INFOEQUIPPING_VIEW_NAME)); //$NON-NLS-1$// setExcSkillCost(getPCGenOption("excSkillCost", 0)); //$NON-NLS-1$ setExpertGUI(getPCGenOption("expertGUI", false)); //$NON-NLS-1$ setFeatAutoColor(getPCGenOption("featAutoColor", Color.yellow.darker().getRGB())); //$NON-NLS-1$ setFeatTab_AvailableListMode(getPCGenOption("FeatTab.availableListMode", GuiConstants.INFOFEATS_VIEW_PREREQTREE)); //$NON-NLS-1$ setFeatTab_SelectedListMode(getPCGenOption("FeatTab.selectedListMode", GuiConstants.INFOFEATS_VIEW_NAMEONLY)); //$NON-NLS-1$ setFeatVirtualColor(getPCGenOption("featVirtualColor", Color.magenta.getRGB())); //$NON-NLS-1$ setGearTab_AllowDebt(getPCGenOption("GearTab.allowDebt", false)); //$NON-NLS-1$ setGearTab_AutoResize(getPCGenOption("GearTab.autoResize", false)); //$NON-NLS-1$ setGearTab_AvailableListMode(getPCGenOption("GearTab.availableListMode", //$NON-NLS-1$ GuiConstants.INFOINVENTORY_VIEW_TYPE_NAME)); setGearTab_BuyRate(buyRate); setGearTab_IgnoreCost(getPCGenOption("GearTab.ignoreCost", false)); //$NON-NLS-1$ setGearTab_SelectedListMode(getPCGenOption("GearTab.selectedListMode", GuiConstants.INFOINVENTORY_VIEW_NAME)); //$NON-NLS-1$ setGearTab_SellRate(sellRate); setGrimHPMode(getPCGenOption("grimHPMode", false)); //$NON-NLS-1$ setGrittyACMode(getPCGenOption("grittyACMode", false)); //$NON-NLS-1$ setGUIUsesOutputNameEquipment(getPCGenOption("GUIUsesOutputNameEquipment", false)); //$NON-NLS-1$ setGUIUsesOutputNameSpells(getPCGenOption("GUIUsesOutputNameSpells", false)); //$NON-NLS-1$ setHideMonsterClasses(getPCGenOption("hideMonsterClasses", false)); //$NON-NLS-1$ setHPMaxAtFirstLevel(getPCGenOption("hpMaxAtFirstLevel", true)); //$NON-NLS-1$ setHPPct(getPCGenOption("hpPct", 100)); //$NON-NLS-1$ setHPRollMethod(getPCGenOption("hpRollMethod", Constants.HP_STANDARD)); //$NON-NLS-1$ setIgnoreMonsterHDCap(getPCGenOption("ignoreMonsterHDCap", false)); //$NON-NLS-1$ setIncludeSkills(getPCGenOption("includeSkills", 3)); //$NON-NLS-1$ setSkillsTab_IncludeSkills(getPCGenOption("skillsTab_IncludeSkills", 1)); //$NON-NLS-1$// setIntCrossClassSkillCost(getPCGenOption("intCrossClassSkillCost", 2)); //$NON-NLS-1$ setInvalidDmgText(getPCGenOption("invalidDmgText", PropertyFactory.getString("SettingsHandler.114"))); //$NON-NLS-1$//$NON-NLS-2$ setInvalidToHitText(getPCGenOption("invalidToHitText", PropertyFactory.getString("SettingsHandler.114"))); //$NON-NLS-1$//$NON-NLS-2$ setLastTipShown(getPCGenOption("lastTipOfTheDayTipShown", -1)); //$NON-NLS-1$ setLoadCampaignsAtStart(getPCGenOption("loadCampaignsAtStart", false)); //$NON-NLS-1$ setLoadCampaignsWithPC(getPCGenOption("loadCampaignsWithPC", true)); //$NON-NLS-1$ setLookAndFeel(getPCGenOption("looknFeel", 0)); //$NON-NLS-1$ setAaText(getPCGenOption("aaText", false)); //$NON-NLS-1$ setMaxPotionSpellLevel(getPCGenOption("maxPotionSpellLevel", 3)); //$NON-NLS-1$ setMaxWandSpellLevel(getPCGenOption("maxWandSpellLevel", 4)); //$NON-NLS-1$ setMetamagicAllowedInEqBuilder(getPCGenOption("allowMetamagicInCustomizer", false)); //$NON-NLS-1$ setMonsterDefault(getPCGenOption("useMonsterDefault", false)); //$NON-NLS-1$ setOptionAllowedInSources(getPCGenOption("optionAllowedInSources", true)); //$NON-NLS-1$ setPccFilesLocation(new File(expandRelativePath(getPCGenOption("pccFilesLocation", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "data")))); //$NON-NLS-1$ //$NON-NLS-2$ setPcgenCustomDir(new File(expandRelativePath(getOptions().getProperty("pcgen.files.pcgenCustomDir", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "data" + File.separator + "customsources")))); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ setPcgenVendorDataDir(new File(expandRelativePath(getOptions().getProperty("pcgen.files.pcgenVendorDataDir", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "vendordata")))); //$NON-NLS-1$ //$NON-NLS-2$ setPcgenDocsDir(new File(expandRelativePath(getOptions().getProperty("pcgen.files.pcgenDocsDir", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "docs")))); //$NON-NLS-1$ //$NON-NLS-2$ setPcgenSystemDir(new File(expandRelativePath(getOptions().getProperty("pcgen.files.pcgenSystemDir", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "system")))); //$NON-NLS-1$ //$NON-NLS-2$ setPcgenThemePackDir(new File(expandRelativePath(getOptions().getProperty("pcgen.files.pcgenThemePackDir", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "lib" + File.separator + "themes")))); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ setPcgenOutputSheetDir(new File(expandRelativePath(getOptions().getProperty("pcgen.files.pcgenOutputSheetDir", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "outputsheets")))); //$NON-NLS-1$ //$NON-NLS-2$ setGmgenPluginDir(new File(expandRelativePath(getOptions().getProperty("gmgen.files.gmgenPluginDir", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "plugins")))); //$NON-NLS-1$ //$NON-NLS-2$ setPcgPath(new File(expandRelativePath(getOptions().getProperty("pcgen.files.characters", //$NON-NLS-1$ Globals.getDefaultPcgPath())))); setBackupPcgPath(new File(expandRelativePath(getOptions().getProperty("pcgen.files.characters.backup", "")))); //$NON-NLS-1$ setPortraitsPath(new File(expandRelativePath(getOptions().getProperty("pcgen.files.portraits", //$NON-NLS-1$ Globals.getDefaultPath())))); setPostExportCommandStandard(getPCGenOption("postExportCommandStandard", "")); //$NON-NLS-1$ //$NON-NLS-2$ setPostExportCommandPDF(getPCGenOption("postExportCommandPDF", "")); //$NON-NLS-1$ //$NON-NLS-2$ setPrereqFailColor(getPCGenOption("prereqFailColor", Color.red.getRGB())); //$NON-NLS-1$ setPrereqQualifyColor(getPCGenOption("prereqQualifyColor", Color.black.getRGB())); //$NON-NLS-1$ setPreviewTabShown(getPCGenOption("previewTabShown", true)); //$NON-NLS-1$ setRaceTab_ListMode(getPCGenOption("RaceTab.ListMode", GuiConstants.INFORACE_VIEW_NAME)); //$NON-NLS-1$ setRanStartingWizard(getPCGenOption("ranStartingWizard", false)); //$NON-NLS-1$ setROG(getPCGenOption("isROG", false)); //$NON-NLS-1$ setSaveCustomInLst(getPCGenOption("saveCustomInLst", false)); //$NON-NLS-1$ setSaveOutputSheetWithPC(getPCGenOption("saveOutputSheetWithPC", false)); //$NON-NLS-1$ setPrintSpellsWithPC(getPCGenOption("printSpellsWithPC", true)); //$NON-NLS-1$ setSelectedSpellSheet(expandRelativePath(getOptions().getProperty("pcgen.files.selectedSpellOutputSheet", ""))); //$NON-NLS-1$ //$NON-NLS-2$ setSelectedCharacterHTMLOutputSheet(expandRelativePath(getOptions().getProperty("pcgen.files.selectedCharacterHTMLOutputSheet", //$NON-NLS-1$ "")), aPC); //$NON-NLS-1$ setSelectedCharacterPDFOutputSheet(expandRelativePath(getOptions().getProperty("pcgen.files.selectedCharacterPDFOutputSheet", //$NON-NLS-1$ "")), aPC); //$NON-NLS-1$ setSelectedEqSetTemplate(expandRelativePath(getOptions().getProperty("pcgen.files.selectedEqSetTemplate", ""))); //$NON-NLS-1$ //$NON-NLS-2$ setSelectedPartyHTMLOutputSheet(expandRelativePath(getOptions().getProperty("pcgen.files.selectedPartyHTMLOutputSheet", //$NON-NLS-1$ ""))); //$NON-NLS-1$ setSelectedPartyPDFOutputSheet(expandRelativePath(getOptions().getProperty("pcgen.files.selectedPartyPDFOutputSheet", //$NON-NLS-1$ ""))); //$NON-NLS-1$ setShowFeatDialogAtLevelUp(getPCGenOption("showFeatDialogAtLevelUp", true)); //$NON-NLS-1$ setShowHPDialogAtLevelUp(getPCGenOption("showHPDialogAtLevelUp", true)); //$NON-NLS-1$ setShowMemoryArea(getPCGenOption("showMemoryArea", false)); //$NON-NLS-1$ setShowImagePreview(getPCGenOption("showImagePreview", true)); //$NON-NLS-1$ setShowStatDialogAtLevelUp(getPCGenOption("showStatDialogAtLevelUp", true)); //$NON-NLS-1$ setShowTipOfTheDay(getPCGenOption("showTipOfTheDay", true)); //$NON-NLS-1$ setShowToolBar(getPCGenOption("showToolBar", true)); //$NON-NLS-1$ setShowSkillModifier(getPCGenOption("showSkillModifier", false)); //$NON-NLS-1$ setShowWarningAtFirstLevelUp(getPCGenOption("showWarningAtFirstLevelUp", true)); //$NON-NLS-1$ setSingleChoicePreference(getPCGenOption("ChooserSingleChoiceMethod", Constants.CHOOSER_SINGLECHOICEMETHOD_NONE)); //$NON-NLS-1$ setSkillsTab_AvailableListMode(getPCGenOption("SkillsTab.availableListMode", //$NON-NLS-1$ GuiConstants.INFOSKILLS_VIEW_TYPE_NAME)); setSkillsTab_SelectedListMode(getPCGenOption("SkillsTab.selectedListMode", GuiConstants.INFOSKILLS_VIEW_NAME)); //$NON-NLS-1$ setSkinLFThemePack(getPCGenOption("skinLFThemePack", "")); //$NON-NLS-1$ //$NON-NLS-2$ setSpellMarketPriceAdjusted(getPCGenOption("spellMarketPriceAdjusted", false)); //$NON-NLS-1$ setSpellsTab_AvailableListMode(getPCGenOption("SpellsTab.availableListMode", GuiConstants.INFOSPELLS_VIEW_CLASS)); //$NON-NLS-1$ setSpellsTab_SelectedListMode(getPCGenOption("SpellsTab.selectedListMode", GuiConstants.INFOSPELLS_VIEW_CLASS)); //$NON-NLS-1$ setSummaryTabShown(getPCGenOption("summaryTabShown", true)); //$NON-NLS-1$ setTabPlacement(getOptionTabPlacement("tabPlacement", SwingConstants.BOTTOM)); //$NON-NLS-1$ setToolTipTextShown(getPCGenOption("toolTipTextShown", true)); //$NON-NLS-1$ setUseHigherLevelSlotsDefault(getPCGenOption("useHigherLevelSlotsDefault", false)); //$NON-NLS-1$ setUseWaitCursor(getPCGenOption("useWaitCursor", true)); //$NON-NLS-1$ setWantToLoadMasterworkAndMagic(getPCGenOption("loadMasterworkAndMagicFromLst", false)); //$NON-NLS-1$ setWeaponProfPrintout(getPCGenOption("weaponProfPrintout", Constants.PRINTOUT_WEAPONPROF)); //$NON-NLS-1$ // Load up all the RuleCheck stuff from the options.ini file // It's stored as: // pcgen.options.rulechecks=aKey:Y|bKey:N|cKey:Y parseRuleChecksFromOptions(getPCGenOption("ruleChecks", "")); //$NON-NLS-1$ //$NON-NLS-2$ try { PersistenceManager.getInstance().initialize(); } catch (PersistenceLayerException e) { ShowMessageDelegate.showMessageDialog(e.getMessage(), Constants.s_APPNAME, MessageType.INFORMATION); } setGame(getPCGenOption("game", Constants.e35_MODE)); //$NON-NLS-1$ Globals.loadAttributeNames(); showNatWeaponTab = getPCGenOption("showNatWeaponTab", false); //$NON-NLS-1$ validateBonuses = getPCGenOption("validateBonuses", false); //$NON-NLS-1$ debugFeats = getPCGenOption("debugFeats", false); //$NON-NLS-1$ return d; } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/746f9fbe7d3bb98c609b2f38fbc5ffad4e685726/SettingsHandler.java/buggy/code/src/java/pcgen/core/SettingsHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
13037,
9849,
1265,
2297,
12,
6385,
19185,
7069,
279,
3513,
13,
202,
95,
202,
202,
8611,
302,
273,
394,
13037,
12,
20,
16,
374,
1769,
202,
202,
6385,
514,
1906,
9132,
743,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13037,
9849,
1265,
2297,
12,
6385,
19185,
7069,
279,
3513,
13,
202,
95,
202,
202,
8611,
302,
273,
394,
13037,
12,
20,
16,
374,
1769,
202,
202,
6385,
514,
1906,
9132,
743,... |
protected void writePostfix(Device d, SScrollPane scrollPane) throws IOException { SScrollBar horizontalScroller = scrollPane.getHorizontalScrollBar(); SScrollBar verticalScroller = scrollPane.getVerticalScrollBar(); d.append( "</td>" ); verticalScroller.write( d ); d.append( "</tr>" ); horizontalScroller.write( d ); d.append("</tr></table>"); } | 3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/f83dd76ed94fa9d02d4396d6669bd166b3747426/ScrollPaneCG.java/clean/wings/src/org/wings/plaf/xhtml/ScrollPaneCG.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
6459,
2626,
24505,
12,
3654,
72,
16,
1260,
71,
2693,
4069,
742,
2693,
8485,
13,
15069,
14106,
95,
1260,
71,
2693,
5190,
18396,
1541,
1539,
33,
12033,
8485,
18,
588,
14457,
6806,
5190,
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,
6459,
2626,
24505,
12,
3654,
72,
16,
1260,
71,
2693,
4069,
742,
2693,
8485,
13,
15069,
14106,
95,
1260,
71,
2693,
5190,
18396,
1541,
1539,
33,
12033,
8485,
18,
588,
14457,
6806,
5190,
56... | ||
if (!configuration.equals(oldDefault)) { | if (defaultTarget == null || !configuration.equals(oldDefault)) { | public void setDefaultConfiguration(IConfiguration configuration) { // Sanity if (configuration== null) return; // Get the target associated with the argument ITarget target = configuration.getTarget(); // See if there is anything to be done IConfiguration oldDefault = getDefaultConfiguration(target); if (!configuration.equals(oldDefault)) { // Make sure it is the default setDefaultTarget(target); // Make the argument the getDefaultConfigMap().put(target.getId(), configuration); // Save it persistDefaultConfigurations(); } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/5f5b6bc0d76595e4b92f22fb99ae2c6a05ae6e12/ManagedBuildInfo.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
9277,
1750,
12,
45,
1750,
1664,
13,
288,
202,
202,
759,
23123,
202,
202,
430,
261,
7025,
631,
446,
13,
327,
31,
9506,
202,
759,
968,
326,
1018,
3627,
598,
326,
1237,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9277,
1750,
12,
45,
1750,
1664,
13,
288,
202,
202,
759,
23123,
202,
202,
430,
261,
7025,
631,
446,
13,
327,
31,
9506,
202,
759,
968,
326,
1018,
3627,
598,
326,
1237,
20... |
if (argv.length != 3) { System.err.println("Usage: " + ConvertToARFF.class.getName() + " <findbugs results> <relation name> <output file>"); | C2ACommandLine commandLine = new C2ACommandLine(); int argCount = commandLine.parse(argv); if (argCount != argv.length - 3) { commandLine.printUsage(System.err); | public static void main(String[] argv) throws Exception { if (argv.length != 3) { System.err.println("Usage: " + ConvertToARFF.class.getName() + " <findbugs results> <relation name> <output file>"); System.exit(1); } String fileName = argv[0]; String relationName = argv[1]; String outputFileName = argv[2]; SAXReader reader = new SAXReader(); Document document = reader.read(fileName); ConvertToARFF converter = new ConvertToARFF(); // FIXME: this conversion scheme is arbitrary // FIXME: method and field signatures? converter.addNominalAttribute("bugtype", "@type"); converter.addNominalAttribute("class", "./Class[1]/@classname"); converter.addNominalAttribute("methodname", "./Method[1]/@name"); converter.addNominalAttribute("auxmethodclass", "./Method[2]/@classname"); converter.addNominalAttribute("auxmethodname", "./Method[2]/@name"); converter.addNominalAttribute("fieldclass", "./Field[1]/@classname"); converter.addNominalAttribute("fieldname", "./Field[1]/@name"); converter.addNumericAttribute("priority", "@priority"); converter.addClassificationAttribute(); Writer out = new OutputStreamWriter(new BufferedOutputStream( new FileOutputStream(outputFileName))); converter.convert(relationName, document, out); out.close(); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/b2ab064d87bc076f6c318358bca0c37253abb4ad/ConvertToARFF.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ml/ConvertToARFF.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
5261,
13,
1216,
1185,
288,
202,
202,
430,
261,
19485,
18,
2469,
480,
890,
13,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
5357,
30,
315,
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,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
5261,
13,
1216,
1185,
288,
202,
202,
430,
261,
19485,
18,
2469,
480,
890,
13,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
5357,
30,
315,
39... |
dstore(lVar.getJRegister()); if (needValue) dload(lVar.getJRegister()); | cfw.addDStore(lVar.getJRegister()); if (needValue) cfw.addDLoad(lVar.getJRegister()); | private void visitSetVar(Node node, Node child, boolean needValue) { OptLocalVariable lVar; lVar = (OptLocalVariable)(node.getProp(Node.VARIABLE_PROP)); // XXX is this right? If so, clean up. if (hasVarsInRegs && lVar == null) lVar = fnCurrent.getVar(child.getString()); if (lVar != null) { generateCodeFromNode(child.getNext(), node); if (lVar.getJRegister() == -1) { if (lVar.isNumber()) lVar.assignJRegister(getNewWordPairLocal()); else lVar.assignJRegister(getNewWordLocal()); } if (lVar.isParameter() && inDirectCallFunction && !itsForcedObjectParameters) { if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { if (needValue) addByteCode(ByteCode.DUP2); aload(lVar.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int isNumberLabel = acquireLabel(); int beyond = acquireLabel(); addByteCode(ByteCode.IF_ACMPEQ, isNumberLabel); addByteCode(ByteCode.NEW,"java/lang/Double"); addByteCode(ByteCode.DUP); addByteCode(ByteCode.DUP2_X2); addByteCode(ByteCode.POP2); addDoubleConstructor(); astore(lVar.getJRegister()); addByteCode(ByteCode.GOTO, beyond); markLabel(isNumberLabel); dstore((short)(lVar.getJRegister() + 1)); markLabel(beyond); } else { if (needValue) addByteCode(ByteCode.DUP); astore(lVar.getJRegister()); } } else { if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { dstore(lVar.getJRegister()); if (needValue) dload(lVar.getJRegister()); } else { astore(lVar.getJRegister()); if (needValue) aload(lVar.getJRegister()); } } return; } // default: just treat like any other name lookup child.setType(Token.BINDNAME); node.setType(Token.SETNAME); visitSetName(node, child); if (!needValue) addByteCode(ByteCode.POP); } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
694,
1537,
12,
907,
756,
16,
2029,
1151,
16,
1250,
1608,
620,
13,
565,
288,
3639,
12056,
2042,
3092,
328,
1537,
31,
3639,
328,
1537,
273,
261,
6179,
2042,
3092,
21433,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
694,
1537,
12,
907,
756,
16,
2029,
1151,
16,
1250,
1608,
620,
13,
565,
288,
3639,
12056,
2042,
3092,
328,
1537,
31,
3639,
328,
1537,
273,
261,
6179,
2042,
3092,
21433,
... |
public void function() throws RecognitionException { Token name=null; Token paramName=null; String retType = null; String paramType = null; String body = null; FunctionDescr f = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:286:17: ( 'function' opt_eol (retType= dotted_name )? opt_eol name= ID opt_eol '(' opt_eol ( (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* )? ')' opt_eol '{' body= curly_chunk '}' opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:286:17: 'function' opt_eol (retType= dotted_name )? opt_eol name= ID opt_eol '(' opt_eol ( (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* )? ')' opt_eol '{' body= curly_chunk '}' opt_eol { match(input,20,FOLLOW_20_in_function313); following.push(FOLLOW_opt_eol_in_function315); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:286:36: (retType= dotted_name )? int alt10=2; alt10 = dfa10.predict(input); switch (alt10) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:286:37: retType= dotted_name { following.push(FOLLOW_dotted_name_in_function320); retType=dotted_name(); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_function324); opt_eol(); following.pop(); name=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_function328); following.push(FOLLOW_opt_eol_in_function330); opt_eol(); following.pop(); //System.err.println( "function :: " + name.getText() ); f = new FunctionDescr( name.getText(), retType ); match(input,21,FOLLOW_21_in_function339); following.push(FOLLOW_opt_eol_in_function341); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:292:25: ( (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* )? int alt14=2; int LA14_0 = input.LA(1); if ( (LA14_0>=EOL && LA14_0<=ID)||LA14_0==15 ) { alt14=1; } else if ( LA14_0==23 ) { alt14=2; } else { NoViableAltException nvae = new NoViableAltException("292:25: ( (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( \',\' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* )?", 14, 0, input); throw nvae; } switch (alt14) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:292:33: (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:292:33: (paramType= dotted_name )? int alt11=2; alt11 = dfa11.predict(input); switch (alt11) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:292:34: paramType= dotted_name { following.push(FOLLOW_dotted_name_in_function351); paramType=dotted_name(); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_function355); opt_eol(); following.pop(); paramName=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_function359); following.push(FOLLOW_opt_eol_in_function361); opt_eol(); following.pop(); f.addParameter( paramType, paramName.getText() ); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:296:33: ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* loop13: do { int alt13=2; int LA13_0 = input.LA(1); if ( LA13_0==22 ) { alt13=1; } switch (alt13) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:296:41: ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol { match(input,22,FOLLOW_22_in_function375); following.push(FOLLOW_opt_eol_in_function377); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:296:53: (paramType= dotted_name )? int alt12=2; alt12 = dfa12.predict(input); switch (alt12) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:296:54: paramType= dotted_name { following.push(FOLLOW_dotted_name_in_function382); paramType=dotted_name(); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_function386); opt_eol(); following.pop(); paramName=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_function390); following.push(FOLLOW_opt_eol_in_function392); opt_eol(); following.pop(); f.addParameter( paramType, paramName.getText() ); } break; default : break loop13; } } while (true); } break; } match(input,23,FOLLOW_23_in_function417); following.push(FOLLOW_opt_eol_in_function421); opt_eol(); following.pop(); match(input,24,FOLLOW_24_in_function425); following.push(FOLLOW_curly_chunk_in_function432); body=curly_chunk(); following.pop(); f.setText( body ); match(input,25,FOLLOW_25_in_function441); packageDescr.addFunction( f ); following.push(FOLLOW_opt_eol_in_function449); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/bf3305a89ef5e916acbab744c38aaaec83bf67ff/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
445,
1435,
1216,
9539,
288,
6647,
3155,
508,
33,
2011,
31,
3639,
3155,
11466,
33,
2011,
31,
3639,
514,
325,
559,
273,
446,
31,
3639,
514,
20781,
273,
446,
31,
3639,
514,
1417... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
445,
1435,
1216,
9539,
288,
6647,
3155,
508,
33,
2011,
31,
3639,
3155,
11466,
33,
2011,
31,
3639,
514,
325,
559,
273,
446,
31,
3639,
514,
20781,
273,
446,
31,
3639,
514,
1417... | ||
DataContext dataContext = e.getDataContext(); final QuickFixAction[] quickFixes = getSelectedTool().getQuickFixes(); | final InspectionTool tool = getSelectedTool(); if (tool == null) return; final QuickFixAction[] quickFixes = tool.getQuickFixes(); | public void actionPerformed(AnActionEvent e) { DataContext dataContext = e.getDataContext(); final QuickFixAction[] quickFixes = getSelectedTool().getQuickFixes(); ActionGroup fixes = new ActionGroup() { public AnAction[] getChildren(AnActionEvent e) { return quickFixes; } }; ListPopup popup = ActionListPopup.createListPopup(" Accept Resolution ", fixes, dataContext, false, false); Point location = getSelectedTreeNodeBounds(); if (location == null) return; popup.show(location.x, location.y); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/44b1444ef611a7223c4ad1fa4fc69f6017017008/InspectionResultsView.java/clean/source/com/intellij/codeInspection/ui/InspectionResultsView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
979,
1803,
1133,
425,
13,
288,
1377,
1910,
1042,
501,
1042,
273,
425,
18,
588,
751,
1042,
5621,
1377,
727,
19884,
8585,
1803,
8526,
9549,
8585,
281,
273,
16625,
6364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
1803,
1133,
425,
13,
288,
1377,
1910,
1042,
501,
1042,
273,
425,
18,
588,
751,
1042,
5621,
1377,
727,
19884,
8585,
1803,
8526,
9549,
8585,
281,
273,
16625,
6364... |
if (slotdoc != null) out.print("\t out.println(); | if (slotdoc != null) print(out,"\t println(out); | private void writeIndex() throws Exception { String outname = "Properties.index"; if (cleanp) { (new File(outname)).delete(); return ; } noteFile(outname); debug("Writing Properties Index to \""+outname+"\""); FileOutputStream fos = new FileOutputStream(new File(getTargetDir(),outname)); OutputStreamWriter osw = new OutputStreamWriter(fos); PrintWriter out = new PrintWriter(osw); out.println("- - - - - List of machine generated PropertyGroups - - - - -"); HashMap permuted = new HashMap(); List l =new ArrayList(p.table.keySet()); Collections.sort(l); for (Iterator i = l.iterator(); i.hasNext();) { String context = (String) i.next(); out.println("* "+context); String doc = p.get(context,"doc"); if (doc != null) { out.println(doc); } Vector slotspecs = getAllSlotSpecs(context); Enumeration se = slotspecs.elements(); while (se.hasMoreElements()) { String slotspec = ((String)se.nextElement()).trim(); int s = slotspec.indexOf(" "); String type = slotspec.substring(0, s); String name = slotspec.substring(s+1); ActiveSlot as = parseActiveSlot(slotspec); if (as != null) { name = as.name; } out.print(" "+type+" "+toClassName(name)+";"); String slotdoc = (String)p.get(context, name+".doc"); if (slotdoc != null) out.print("\t//"+slotdoc); out.println(); List pent = (List) permuted.get(name); if (pent == null) { pent = new ArrayList(); permuted.put(name, pent); } pent.add(context); } } out.println("- - - - - Permuted index of PropertyGroupSlots - - - - -"); List k = new ArrayList(permuted.keySet()); Collections.sort(k); for (Iterator i = k.iterator(); i.hasNext();) { String name = (String) i.next(); out.println("* "+toClassName(name)); List cs = (List) permuted.get(name); for (Iterator j = cs.iterator(); j.hasNext();) { String context = (String) j.next(); out.println(" "+context); } } out.close(); } | 8708 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8708/9fadfb620dfbadc3fa0c7a899195b84a369fc304/PGWriter.java/buggy/build/src/org/cougaar/tools/build/PGWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
1016,
1435,
1216,
1185,
288,
1377,
514,
596,
529,
273,
315,
2297,
18,
1615,
14432,
1377,
309,
261,
6200,
84,
13,
288,
3639,
261,
2704,
1387,
12,
659,
529,
13,
2934,
373... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
1016,
1435,
1216,
1185,
288,
1377,
514,
596,
529,
273,
315,
2297,
18,
1615,
14432,
1377,
309,
261,
6200,
84,
13,
288,
3639,
261,
2704,
1387,
12,
659,
529,
13,
2934,
373... |
pattern = getPatternForCategory( category ); gText = SAMPLE_TEXT_ZIP_CODE; fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( gText ); | String pattern = getPatternForCategory( category ); String fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( SAMPLE_TEXT_ZIP_CODE ); | private void updatePreview( ) { markDirty( hasLoaded ); String pattern = ""; //$NON-NLS-1$ String fmtStr = ""; //$NON-NLS-1$ String gText = getPreviewText( ) == null ? DEFAULT_PREVIEW_TEXT : getPreviewText( ); String category = getCategory4DisplayName( typeChoicer.getText( ) ); setCategory( category ); if ( DesignChoiceConstants.STRING_FORMAT_TYPE_UNFORMATTED.equals( category ) ) { pattern = getPatternForCategory( category ); generalPreviewLabel.setText( gText ); setPattern( pattern ); return; } else if ( DesignChoiceConstants.STRING_FORMAT_TYPE_UPPERCASE.equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( gText ); generalPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } else if ( DesignChoiceConstants.STRING_FORMAT_TYPE_LOWERCASE.equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( gText ); generalPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } else if ( DesignChoiceConstants.STRING_FORMAT_TYPE_ZIP_CODE.equals( category ) ) { pattern = getPatternForCategory( category ); gText = SAMPLE_TEXT_ZIP_CODE; fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( gText ); generalPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } else if ( DesignChoiceConstants.STRING_FORMAT_TYPE_ZIP_CODE_4.equals( category ) ) { pattern = getPatternForCategory( category ); gText = SAMPLE_TEXT_ZIP_C0DE4; fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( gText ); generalPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } else if ( DesignChoiceConstants.STRING_FORMAT_TYPE_PHONE_NUMBER.equals( category ) ) { pattern = getPatternForCategory( category ); gText = SAMPLE_TEXT_PHONE_NUMBER; fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( gText ); generalPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } else if ( DesignChoiceConstants.STRING_FORMAT_TYPE_SOCIAL_SECURITY_NUMBER.equals( category ) ) { pattern = getPatternForCategory( category ); gText = SAMPLE_TEXT_SOCIAL_SECURITY_NUMBER; fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( gText ); generalPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } else if ( DesignChoiceConstants.STRING_FORMAT_TYPE_CUSTOM.equals( category ) ) { pattern = formatCode.getText( ); if ( StringUtil.isBlank( previewTextBox.getText( ) ) ) { fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( gText ); } else { fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( previewTextBox.getText( ) ); } cPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/1123f2b44bade54e4b5714c702c79b94bb65dca3/FormatStringPage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatStringPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
11124,
12,
262,
202,
95,
202,
202,
3355,
10785,
12,
711,
8835,
11272,
202,
202,
780,
1936,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
780,
1325,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
11124,
12,
262,
202,
95,
202,
202,
3355,
10785,
12,
711,
8835,
11272,
202,
202,
780,
1936,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
780,
1325,
1... |
public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[30]; try { result[0] = new PropertyDescriptor("accesskey", ELFileTag.class, null, "setAccesskey"); result[1] = new PropertyDescriptor("accept", ELFileTag.class, null, "setAccept"); result[2] = new PropertyDescriptor("alt", ELFileTag.class, null, "setAlt"); result[3] = new PropertyDescriptor("altKey", ELFileTag.class, null, "setAltKey"); // This attribute has a non-standard mapping. result[4] = new PropertyDescriptor("disabled", ELFileTag.class, null, "setDisabledExpr"); // This attribute has a non-standard mapping. result[5] = new PropertyDescriptor("indexed", ELFileTag.class, null, "setIndexedExpr"); result[6] = new PropertyDescriptor("maxlength", ELFileTag.class, null, "setMaxlength"); result[7] = new PropertyDescriptor("name", ELFileTag.class, null, "setName"); result[8] = new PropertyDescriptor("onblur", ELFileTag.class, null, "setOnblur"); result[9] = new PropertyDescriptor("onchange", ELFileTag.class, null, "setOnchange"); result[10] = new PropertyDescriptor("onclick", ELFileTag.class, null, "setOnclick"); result[11] = new PropertyDescriptor("ondblclick", ELFileTag.class, null, "setOndblclick"); result[12] = new PropertyDescriptor("onfocus", ELFileTag.class, null, "setOnfocus"); result[13] = new PropertyDescriptor("onkeydown", ELFileTag.class, null, "setOnkeydown"); result[14] = new PropertyDescriptor("onkeypress", ELFileTag.class, null, "setOnkeypress"); result[15] = new PropertyDescriptor("onkeyup", ELFileTag.class, null, "setOnkeyup"); result[16] = new PropertyDescriptor("onmousedown", ELFileTag.class, null, "setOnmousedown"); result[17] = new PropertyDescriptor("onmousemove", ELFileTag.class, null, "setOnmousemove"); result[18] = new PropertyDescriptor("onmouseout", ELFileTag.class, null, "setOnmouseout"); result[19] = new PropertyDescriptor("onmouseover", ELFileTag.class, null, "setOnmouseover"); result[20] = new PropertyDescriptor("onmouseup", ELFileTag.class, null, "setOnmouseup"); result[21] = new PropertyDescriptor("property", ELFileTag.class, null, "setProperty"); result[22] = new PropertyDescriptor("size", ELFileTag.class, null, "setSize"); result[23] = new PropertyDescriptor("style", ELFileTag.class, null, "setStyle"); result[24] = new PropertyDescriptor("styleClass", ELFileTag.class, null, "setStyleClass"); result[25] = new PropertyDescriptor("styleId", ELFileTag.class, null, "setStyleId"); result[26] = new PropertyDescriptor("tabindex", ELFileTag.class, null, "setTabindex"); result[27] = new PropertyDescriptor("title", ELFileTag.class, null, "setTitle"); result[28] = new PropertyDescriptor("titleKey", ELFileTag.class, null, "setTitleKey"); result[29] = new PropertyDescriptor("value", ELFileTag.class, null, "setValue"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELFileTagBeanInfo.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELFileTagBeanInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1396,
3187,
8526,
588,
1396,
12705,
1435,
95,
1396,
3187,
8526,
2088,
33,
2704,
1396,
3187,
63,
5082,
15533,
698,
95,
2088,
63,
20,
65,
33,
2704,
1396,
3187,
2932,
3860,
856,
3113,
2247,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1396,
3187,
8526,
588,
1396,
12705,
1435,
95,
1396,
3187,
8526,
2088,
33,
2704,
1396,
3187,
63,
5082,
15533,
698,
95,
2088,
63,
20,
65,
33,
2704,
1396,
3187,
2932,
3860,
856,
3113,
2247,... | ||
int from = fromExp.getType(); if (from == to) { return fromExp; } switch (from) { case Category.Array: return null; case Category.Dimension: switch (to) { case Category.Hierarchy: return new FunCall( "Hierarchy", Syntax.Property, new Exp[]{ new FunCall( "CurrentMember", | int from = fromExp.getType(); if (from == to) { return fromExp; } switch (from) { case Category.Array: return null; case Category.Dimension: switch (to) { case Category.Hierarchy: return new FunCall( "Hierarchy", Syntax.Property, new Exp[]{ new FunCall( "CurrentMember", | private static Exp convert_(Exp fromExp, int to) { int from = fromExp.getType(); if (from == to) { return fromExp; } switch (from) { case Category.Array: return null; case Category.Dimension: // Seems funny that you can 'downcast' from a dimension, doesn't // it? But we add an implicit 'CurrentMember', for example, // '[Time].PrevMember' actually means // '[Time].CurrentMember.PrevMember'. switch (to) { case Category.Hierarchy: // "<Dimension>.CurrentMember.Hierarchy" return new FunCall( "Hierarchy", Syntax.Property, new Exp[]{ new FunCall( "CurrentMember", Syntax.Property, new Exp[]{fromExp} )} ); case Category.Level: // "<Dimension>.CurrentMember.Level" return new FunCall( "Level", Syntax.Property, new Exp[]{ new FunCall( "CurrentMember", Syntax.Property, new Exp[]{fromExp} )} ); case Category.Member: // "<Dimension>.CurrentMember" return new FunCall("CurrentMember", Syntax.Property, new Exp[]{fromExp}); default: return null; } case Category.Hierarchy: switch (to) { case Category.Dimension: // "<Hierarchy>.Dimension" return new FunCall("Dimension", Syntax.Property, new Exp[]{fromExp}); default: return null; } case Category.Level: switch (to) { case Category.Dimension: // "<Level>.Dimension" return new FunCall("Dimension", Syntax.Property, new Exp[]{fromExp}); case Category.Hierarchy: // "<Level>.Hierarchy" return new FunCall("Hierarchy", Syntax.Property, new Exp[]{fromExp}); default: return null; } case Category.Logical: return null; case Category.Member: switch (to) { case Category.Dimension: // "<Member>.Dimension" return new FunCall("Dimension", Syntax.Property, new Exp[]{fromExp}); case Category.Hierarchy: // "<Member>.Hierarchy" return new FunCall("Hierarchy", Syntax.Property, new Exp[]{fromExp}); case Category.Level: // "<Member>.Level" return new FunCall("Level", Syntax.Property, new Exp[]{fromExp}); case Category.Numeric | Category.Constant: case Category.String | Category.Constant: //todo: assert is a string member // "<Member>.Value" return new FunCall("Value", Syntax.Property, new Exp[]{fromExp}); case Category.Value: case Category.Numeric: case Category.String: return fromExp; default: return null; } case Category.Numeric | Category.Constant: switch (to) { case Category.Value: case Category.Numeric: return fromExp; default: return null; } case Category.Numeric: switch (to) { case Category.Value: return fromExp; case Category.Numeric | Category.Constant: return new FunCall("_Value", Syntax.Function, new Exp[] {fromExp}); default: return null; } case Category.Set: return null; case Category.String | Category.Constant: switch (to) { case Category.Value: case Category.String: return fromExp; default: return null; } case Category.String: switch (to) { case Category.Value: return fromExp; case Category.String | Category.Constant: return new FunCall("_Value", Syntax.Function, new Exp[] {fromExp}); default: return null; } case Category.Tuple: switch (to) { case Category.Value: return fromExp; case Category.Numeric: case Category.String: return new FunCall("_Value", Syntax.Function, new Exp[] {fromExp}); default: return null; } case Category.Value: return null; case Category.Symbol: return null; default: throw Util.newInternal("unknown category " + from); } } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
7784,
1765,
67,
12,
2966,
628,
2966,
16,
509,
358,
13,
288,
202,
202,
474,
628,
273,
628,
2966,
18,
588,
559,
5621,
202,
202,
430,
261,
2080,
422,
358,
13,
288,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7784,
1765,
67,
12,
2966,
628,
2966,
16,
509,
358,
13,
288,
202,
202,
474,
628,
273,
628,
2966,
18,
588,
559,
5621,
202,
202,
430,
261,
2080,
422,
358,
13,
288,
1082,
... |
_loop2325: | _loop2329: | public final void insertintostate(AST _t) throws RecognitionException { AST insertintostate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2321 = _t; AST tmp924_AST_in = (AST)_t; match(_t,INSERT); _t = _t.getFirstChild(); AST tmp925_AST_in = (AST)_t; match(_t,INTO); _t = _t.getNextSibling(); AST tmp926_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_list: { AST __t2323 = _t; AST tmp927_AST_in = (AST)_t; match(_t,Field_list); _t = _t.getFirstChild(); AST tmp928_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); field(_t); _t = _retTree; { _loop2325: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp929_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); field(_t); _t = _retTree; } else { break _loop2325; } } while (true); } AST tmp930_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2323; _t = _t.getNextSibling(); break; } case SELECT: case VALUES: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALUES: { AST __t2327 = _t; AST tmp931_AST_in = (AST)_t; match(_t,VALUES); _t = _t.getFirstChild(); AST tmp932_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); sqlexpression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INDICATOR: case Field_ref: { fetch_indicator(_t); _t = _retTree; break; } case COMMA: case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop2331: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp933_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); sqlexpression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INDICATOR: case Field_ref: { fetch_indicator(_t); _t = _retTree; break; } case COMMA: case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop2331; } } while (true); } AST tmp934_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2327; _t = _t.getNextSibling(); break; } case SELECT: { selectstatea(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t2321; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2243,
474,
669,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2243,
474,
669,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2243,
474,
669,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2243,
474,
669,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
... |
else { | throw new SSKVerifyException("Invalid new pubkey: "+pubKey2+" old pubkey: "+pubKey); } else { | public void setPubKey(DSAPublicKey pubKey2) throws SSKVerifyException { if(pubKey == pubKey2) return; if(pubKey2 == null) return; if(pubKey == null || !pubKey2.equals(pubKey)) { if(pubKey2 != null) { MessageDigest md256; try { md256 = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e) { throw new Error(e); } byte[] newPubKeyHash = md256.digest(pubKey2.asBytes()); if(Arrays.equals(pubKeyHash, newPubKeyHash)) { if(pubKey != null) Logger.error(this, "Found SHA-256 collision or something... WTF?"); else { // Valid key, assign. } } else { throw new SSKVerifyException("New pubkey has invalid hash"); } throw new SSKVerifyException("Invalid new pubkey: "+pubKey2+" old pubkey: "+pubKey); } pubKey = pubKey2; } } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/bacd30d5f5edf0854d67b034b0c22bc1f4f1736a/NodeSSK.java/clean/src/freenet/keys/NodeSSK.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
17924,
12,
3948,
2203,
24312,
18659,
22,
13,
1216,
348,
11129,
8097,
503,
288,
202,
202,
430,
12,
10174,
653,
422,
18659,
22,
13,
327,
31,
202,
202,
430,
12,
10174,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
17924,
12,
3948,
2203,
24312,
18659,
22,
13,
1216,
348,
11129,
8097,
503,
288,
202,
202,
430,
12,
10174,
653,
422,
18659,
22,
13,
327,
31,
202,
202,
430,
12,
10174,
... |
v.add(i); | intrumentationOperations.add(i); | private static void performVariationNoDuplication(OPT_IR ir) { // The register containing the counter value to check cbsReg = ir.regpool.makeTempInt(); Vector v = new Vector(); for (OPT_BasicBlockEnumeration allBB = ir.getBasicBlocks(); allBB.hasMoreElements(); ) { OPT_BasicBlock bb = allBB.next(); for (OPT_InstructionEnumeration ie = bb.forwardInstrEnumerator(); ie.hasMoreElements();) { OPT_Instruction i = ie.next(); // If it's an instrumentation operation, remember the instruction if (isInstrumentationInstruction(i)) v.add(i); } } // for each instrumentation operation. Enumeration e = v.elements(); while (e.hasMoreElements()) { OPT_Instruction i = (OPT_Instruction)e.nextElement(); OPT_BasicBlock bb = i.getBasicBlock(); conditionalizeInstrumentationOperation(ir,i,bb); } } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/32e80a6e3f4fb06979f006e75487f4e1ebceaa8f/OPT_InstrumentationSamplingFramework.java/clean/rvm/src/vm/adaptive/recompilation/instrumentation/OPT_InstrumentationSamplingFramework.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
3073,
23771,
2279,
40,
89,
1254,
12,
15620,
67,
7937,
9482,
13,
288,
565,
368,
1021,
1744,
4191,
326,
3895,
460,
358,
866,
565,
276,
2038,
1617,
273,
9482,
18,
1574,
601... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
3073,
23771,
2279,
40,
89,
1254,
12,
15620,
67,
7937,
9482,
13,
288,
565,
368,
1021,
1744,
4191,
326,
3895,
460,
358,
866,
565,
276,
2038,
1617,
273,
9482,
18,
1574,
601... |
VM_Magic.setObjectAtOffset(VM_Magic.addressAsObject(fp), -offset, exceptionObject); | VM_Magic.setObjectAtOffset(VM_Magic.addressAsObject(fp), Offset.fromIntSignExtend(-offset), exceptionObject); | public void deliverException(VM_CompiledMethod compiledMethod, Address catchBlockInstructionAddress, Throwable exceptionObject, VM_Registers registers) { VM_OptCompiledMethod optMethod = (VM_OptCompiledMethod)compiledMethod; Address fp = registers.getInnermostFramePointer(); VM_Thread myThread = VM_Thread.getCurrentThread(); if (TRACE) { VM.sysWrite("Frame size of "); VM.sysWrite(optMethod.getMethod()); VM.sysWrite(" is "); VM.sysWrite(optMethod.getFrameFixedSize()); VM.sysWrite("\n"); } // reset sp to "empty params" state (ie same as it was after prologue) Address sp = fp.sub(optMethod.getFrameFixedSize()); registers.gprs.set(STACK_POINTER, sp); // store exception object for later retrieval by catch block int offset = optMethod.getUnsignedExceptionOffset(); if (offset != 0) { // only put the exception object in the stackframe if the catch block is expecting it. // (if the method hasn't allocated a stack slot for caught exceptions, then we can safely // drop the exceptionObject on the floor). VM_Magic.setObjectAtOffset(VM_Magic.addressAsObject(fp), -offset, exceptionObject); if (TRACE) { VM.sysWrite("Storing exception object "); VM.sysWrite(VM_Magic.objectAsAddress(exceptionObject)); VM.sysWrite(" at offset "); VM.sysWrite(offset); VM.sysWrite(" from framepoint "); VM.sysWrite(fp); VM.sysWrite("\n"); } } if (TRACE) { VM.sysWrite("Registers before delivering exception in "); VM.sysWrite(optMethod.getMethod()); VM.sysWrite("\n"); for (int i=0; i<NUM_GPRS; i++) { VM.sysWrite(GPR_NAMES[i]); VM.sysWrite(" = "); VM.sysWrite(registers.gprs.get(i)); VM.sysWrite("\n"); } } // set address at which to resume executing frame registers.ip = catchBlockInstructionAddress; if (TRACE) { VM.sysWrite("Set ip to "); VM.sysWrite(registers.ip); VM.sysWrite("\n"); } VM.enableGC(); // disabled right before VM_Runtime.deliverException was called if (VM.VerifyAssertions) VM._assert(registers.inuse == true); registers.inuse = false; // 'give back' the portion of the stack we borrowed to run // exception delivery code when invoked for a hardware trap. // If this was a straight software trap (athrow) then setting // the stacklimit should be harmless, since the stacklimit should already have exactly // the value we are setting it too. if (!myThread.hardwareExceptionRegisters.inuse) { myThread.stackLimit = VM_Magic.objectAsAddress(myThread.stack).add(STACK_SIZE_GUARD); VM_Processor.getCurrentProcessor().activeThreadStackLimit = myThread.stackLimit; } // "branches" to catchBlockInstructionAddress VM_Magic.restoreHardwareExceptionState(registers); if (VM.VerifyAssertions) VM._assert(NOT_REACHED); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/71f0481e0131f8f2137e2feea85ae32a28daffcc/VM_OptExceptionDeliverer.java/buggy/rvm/src/vm/arch/intel/compilers/optimizing/vmInterface/services/VM_OptExceptionDeliverer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
11795,
503,
12,
7397,
67,
20733,
1305,
7743,
1305,
16,
13491,
5267,
1044,
1768,
11983,
1887,
16,
13491,
4206,
1520,
921,
16,
13491,
8251,
67,
10277,
10285,
13,
225,
288,
565,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
11795,
503,
12,
7397,
67,
20733,
1305,
7743,
1305,
16,
13491,
5267,
1044,
1768,
11983,
1887,
16,
13491,
4206,
1520,
921,
16,
13491,
8251,
67,
10277,
10285,
13,
225,
288,
565,
8... |
if(mode == GroupRequest.GET_NONE) | if (mode == GroupRequest.GET_NONE) { | public Object sendMessage(Message msg, int mode, long timeout) throws TimeoutException, SuspectedException { Vector mbrs=new Vector(); RspList rsp_list=null; Object dest=msg.getDest(); Rsp rsp; GroupRequest _req=null; if(dest == null) { if(log.isErrorEnabled()) log.error("the message's destination is null, " + "cannot send message"); return null; } mbrs.addElement(dest); // dummy membership (of destination address) _req=new GroupRequest(msg, corr, mbrs, mode, timeout, 0); _req.execute(); if(mode == GroupRequest.GET_NONE) return null; rsp_list=_req.getResults(); if(rsp_list.size() == 0) { if(log.isWarnEnabled()) log.warn(" response list is empty"); return null; } if(rsp_list.size() > 1) if(log.isWarnEnabled()) log.warn("response list contains " + "more that 1 response; returning first response !"); rsp=(Rsp)rsp_list.elementAt(0); if(rsp.wasSuspected()) throw new SuspectedException(dest); if(!rsp.wasReceived()) throw new TimeoutException(); return rsp.getValue(); } | 3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/9b133caccdd70cd06c1674ee2a42e75071fdc287/MessageDispatcher.java/clean/src/org/jgroups/blocks/MessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
15399,
12,
1079,
1234,
16,
509,
1965,
16,
1525,
2021,
13,
1216,
23334,
16,
348,
407,
1789,
503,
288,
3639,
5589,
3639,
312,
2848,
87,
33,
2704,
5589,
5621,
3639,
534,
1752,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
15399,
12,
1079,
1234,
16,
509,
1965,
16,
1525,
2021,
13,
1216,
23334,
16,
348,
407,
1789,
503,
288,
3639,
5589,
3639,
312,
2848,
87,
33,
2704,
5589,
5621,
3639,
534,
1752,
... |
String context = request.getContextPath(); String servlet = request.getServletPath(); String reqURI = request.getRequestURI(); | protected long getLastModified(HttpServletRequest request) { String context = request.getContextPath(); String servlet = request.getServletPath(); String reqURI = request.getRequestURI(); String path = request.getPathInfo(); if(path == null) path = ""; String rawSource = getServletContext().getInitParameter("SRC_ROOT"); String resourcePath = rawSource + path; File resourceFile = new File(resourcePath); resourcePath = resourceFile.getAbsolutePath(); boolean valid; String basename = resourceFile.getName(); boolean isDir = false; if (resourcePath.length() < rawSource.length() || !resourcePath.startsWith(rawSource) || !resourceFile.canRead() || IgnoredNames.ignore.contains(basename) || resourceFile.isDirectory()) { return 0; } else { return(resourceFile.lastModified()); } } | 49232 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49232/3f3e158a62a68589df602d25b00f5890a9055466/raw.java/clean/src/org/opensolaris/opengrok/web/raw.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1525,
27068,
12,
2940,
18572,
590,
13,
288,
202,
780,
819,
273,
590,
18,
29120,
743,
5621,
202,
780,
8100,
273,
590,
18,
588,
4745,
743,
5621,
202,
780,
1111,
3098,
273,
590,
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,
4750,
1525,
27068,
12,
2940,
18572,
590,
13,
288,
202,
780,
819,
273,
590,
18,
29120,
743,
5621,
202,
780,
8100,
273,
590,
18,
588,
4745,
743,
5621,
202,
780,
1111,
3098,
273,
590,
18,
... | |
public void mRIGHT_SQUARE() throws RecognitionException { try { ruleNestingLevel++; int _type = RIGHT_SQUARE; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1418:11: ( ']' ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1418:11: ']' { match(']'); if (failed) return ; } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/d92dc116c388103ddf04d98d53904a6fdc204af5/DRLLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
11847,
67,
19716,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
13135,
67,
19716,
31,
5411,
509,
389,
1937,
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,
377,
1071,
918,
312,
11847,
67,
19716,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
13135,
67,
19716,
31,
5411,
509,
389,
1937,
273,
... | ||
public static Object callN(Function fun, Scriptable thisObj, | public static Object callN(Callable fun, Scriptable thisObj, | public static Object callN(Function fun, Scriptable thisObj, Object[] args, Context cx, Scriptable scope) { return fun.call(cx, scope, thisObj, args); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/90ebe1bf30876ca8ca8a098496166e8475268746/OptRuntime.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/OptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
745,
50,
12,
11452,
9831,
16,
22780,
15261,
16,
1171,
9079,
1033,
8526,
833,
16,
1171,
9079,
1772,
9494,
16,
22780,
2146,
13,
565,
288,
3639,
327,
9831,
18,
1991,
12,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
745,
50,
12,
11452,
9831,
16,
22780,
15261,
16,
1171,
9079,
1033,
8526,
833,
16,
1171,
9079,
1772,
9494,
16,
22780,
2146,
13,
565,
288,
3639,
327,
9831,
18,
1991,
12,
7... |
int LA15_250 = input.LA(1); if ( LA15_250=='t' ) {return s318;} return s51; | int LA15_169 = input.LA(1); if ( (LA15_169>='0' && LA15_169<='9')||(LA15_169>='A' && LA15_169<='Z')||LA15_169=='_'||(LA15_169>='a' && LA15_169<='z') ) {return s51;} return s250; | public DFA.State transition(IntStream input) throws RecognitionException { int LA15_250 = input.LA(1); if ( LA15_250=='t' ) {return s318;} return s51; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
509,
2928,
3600,
67,
26520,
273,
810,
18,
2534,
12,
21,
1769,
7734,
309,
261,
2928,
3600,
67,
26520,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
509,
2928,
3600,
67,
26520,
273,
810,
18,
2534,
12,
21,
1769,
7734,
309,
261,
2928,
3600,
67,
26520,
18... |
while (true) { | while (m_alive) { | public void run() { while (true) { // the Grim Reaper is eternal, of course try { // one minute sleep time sleep(60000); } catch (InterruptedException e) { // let's go on reaping... } try { Iterator i; i = m_threads.keySet().iterator(); Set doomed = new HashSet(); // fisrt collect all doomed Threads while (i.hasNext()) { CmsUUID key = (CmsUUID)i.next(); A_CmsReportThread thread = (A_CmsReportThread)m_threads.get(key); if (thread.isDoomed()) { doomed.add(key); if (DEBUG) { System.err.println("[CmsThreadStore] Grim Reaper dooming: " + thread.getName()); } } } i = doomed.iterator(); // no remove all doomed Threads from the Thread store while (i.hasNext()) { m_threads.remove(i.next()); } if (DEBUG) { dumpThreads(); } } catch (Throwable t) { // the Grim Reaper must not be stopped by any error if (DEBUG) { System.err.println("[CmsThreadStore] Grim Reaper exception " + t); } } } } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/2c6f118e6829e83e68b7436185bcfe3c3c48b03c/CmsThreadStore.java/clean/src/org/opencms/main/CmsThreadStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
1323,
261,
81,
67,
11462,
13,
288,
5411,
368,
326,
611,
86,
381,
868,
7294,
353,
225,
847,
82,
287,
16,
434,
4362,
5411,
775,
288,
7734,
368,
1245,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
1323,
261,
81,
67,
11462,
13,
288,
5411,
368,
326,
611,
86,
381,
868,
7294,
353,
225,
847,
82,
287,
16,
434,
4362,
5411,
775,
288,
7734,
368,
1245,
8... |
jjCheckNAddStates(40, 42); break; case 25: | jjCheckNAddStates(47, 49); break; case 40: | private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 30; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x3ff000000000000L & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(5); } else if (curChar == 36) { if (kind > 13) kind = 13; jjCheckNAddTwoStates(13, 14); } else if (curChar == 45) jjCheckNAdd(5); else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; break; case 30: if ((0x3ff000000000000L & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } else if ((0x2400L & l) != 0L) { if (kind > 49) kind = 49; } else if ((0x100000200L & l) != 0L) jjCheckNAddStates(40, 42); if (curChar == 13) jjstateSet[jjnewStateCnt++] = 26; break; case 22: case 7: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 28: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 16) kind = 16; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 4: if (curChar == 45) jjCheckNAdd(5); break; case 5: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(5); break; case 10: if (curChar == 36 && kind > 13) kind = 13; break; case 12: if (curChar == 36) jjCheckNAddTwoStates(13, 14); break; case 14: if (curChar == 33 && kind > 14) kind = 14; break; case 15: if (curChar != 36) break; if (kind > 13) kind = 13; jjCheckNAddTwoStates(13, 14); break; case 18: if ((0x100000200L & l) != 0L) jjAddStates(43, 45); break; case 19: if ((0x2400L & l) != 0L && kind > 46) kind = 46; break; case 20: if (curChar == 10 && kind > 46) kind = 46; break; case 21: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 20; break; case 24: if ((0x100000200L & l) != 0L) jjCheckNAddStates(40, 42); break; case 25: if ((0x2400L & l) != 0L && kind > 49) kind = 49; break; case 26: if (curChar == 10 && kind > 49) kind = 49; break; case 27: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 26; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } else if (curChar == 92) jjCheckNAddStates(46, 49); if (curChar == 101) jjAddStates(50, 51); break; case 30: case 7: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 22: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 108) jjstateSet[jjnewStateCnt++] = 28; else if (curChar == 110) jjstateSet[jjnewStateCnt++] = 17; break; case 28: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 115) jjstateSet[jjnewStateCnt++] = 23; break; case 23: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 101) { if (kind > 49) kind = 49; jjAddStates(40, 42); } break; case 1: if (kind > 16) kind = 16; break; case 6: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 8: if (curChar == 92) jjCheckNAddStates(46, 49); break; case 9: if (curChar == 92) jjCheckNAddTwoStates(9, 10); break; case 11: if (curChar == 92) jjCheckNAddTwoStates(11, 12); break; case 13: if (curChar == 92) jjAddStates(52, 53); break; case 16: if (curChar == 101) jjAddStates(50, 51); break; case 17: if (curChar != 100) break; if (kind > 46) kind = 46; jjAddStates(43, 45); break; case 29: if (curChar == 108) jjstateSet[jjnewStateCnt++] = 28; break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 16) kind = 16; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 30 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }} | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/8e9e155e88430402b0d51d6b344267b73292ca2c/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
24,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
24,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... |
return markedState; | return markedState; | public JState getMarkedState() { return markedState; } | 11750 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11750/36ae550a98e77afb5a18157cf7613b9c6bfb13aa/AutWindow.java/buggy/src/gui/AutWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
804,
1119,
23232,
329,
1119,
1435,
288,
202,
2463,
9350,
1119,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
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,
377,
1071,
804,
1119,
23232,
329,
1119,
1435,
288,
202,
2463,
9350,
1119,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
CmsResourceFilter.IGNORE_EXPIRATION, true, true); | CmsResourceFilter.IGNORE_EXPIRATION, true, true); | public void copyResource( CmsObject cms, CmsSecurityManager securityManager, CmsResource source, String destination, int siblingMode ) throws CmsIllegalArgumentException, CmsException { // first validate the destination name destination = validateFoldername(destination); // collect all resources in the folder (but exclude deleted ones) List resources = securityManager.readChildResources( cms.getRequestContext(), source, CmsResourceFilter.IGNORE_EXPIRATION, true, true); // handle the folder itself super.copyResource( cms, securityManager, source, destination, siblingMode); // now walk through all sub-resources in the folder for (int i = 0; i < resources.size(); i++) { CmsResource childResource = (CmsResource)resources.get(i); String childDestination = destination.concat(childResource.getName()); if (childResource.isFolder()) { // recurse into this method for subfolders copyResource(cms, securityManager, childResource, childDestination, siblingMode); } else { // handle child resources getResourceType( childResource.getTypeId() ).copyResource( cms, securityManager, childResource, childDestination, siblingMode); } } } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/c7083871cfaaede3aa187a175b34be606d8431f2/A_CmsResourceTypeFolderBase.java/buggy/src/org/opencms/file/types/A_CmsResourceTypeFolderBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1610,
1420,
12,
3639,
14371,
6166,
16,
540,
2149,
4368,
1318,
4373,
1318,
16,
540,
7630,
1084,
16,
540,
514,
2929,
16,
540,
509,
10841,
2309,
565,
262,
1216,
2149,
31237,
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,
377,
1071,
918,
1610,
1420,
12,
3639,
14371,
6166,
16,
540,
2149,
4368,
1318,
4373,
1318,
16,
540,
7630,
1084,
16,
540,
514,
2929,
16,
540,
509,
10841,
2309,
565,
262,
1216,
2149,
31237,
16,
... |
omOutput.getCharSetEncoding()); | omOutput.getCharSetEncoding(),SOAP12Constants.SOAP_12_CONTENT_TYPE); | protected void setUp() throws Exception { super.setUp(); SOAPFactory factory = OMAbstractFactory.getSOAP11Factory(); ByteArrayOutputStream outStream; String boundary; OMOutputImpl omOutput = new OMOutputImpl(null); boundary = omOutput.getMimeBoundary(); String contentType = org.apache.axis2.om.impl.MIMEOutputUtils .getContentTypeForMime(boundary, omOutput.getRootContentId(), omOutput.getCharSetEncoding()); DataHandler dataHandler; dataHandler = new DataHandler(new ByteArrayDataSource(byteArray)); OMText textData = factory.createText(dataHandler, true); assertNotNull(textData.getContentID()); DataHandler dataHandler2 = new DataHandler( "Apache Software Foundation", "text/plain"); OMText text = factory.createText(dataHandler2, true); assertNotNull(text.getContentID()); outStream = new ByteArrayOutputStream(); outStream.write(("Content-Type: " + contentType).getBytes()); outStream.write(new byte[]{13,10}); outStream.write(new byte[]{13,10}); MIMEOutputUtils.startWritingMime(outStream, boundary); MimeBodyPart part1 = MIMEOutputUtils.createMimeBodyPart(textData); MIMEOutputUtils.writeBodyPart(outStream, part1, boundary); MimeBodyPart part2 = MIMEOutputUtils.createMimeBodyPart(text); MIMEOutputUtils.writeBodyPart(outStream, part2, boundary); MIMEOutputUtils.finishWritingMime(outStream); buffer = outStream.toByteArray();// System.out.println(new String(buffer)); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6256934b6dcfac675746472f21d5f6d7752430ed/MIMEOutputUtilsTest.java/clean/modules/xml/test/org/apache/axis2/om/MIMEOutputUtilsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
1185,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
16434,
1733,
3272,
273,
531,
5535,
3336,
1733,
18,
588,
27952,
2499,
1733,
5621,
3639,
11559,
28997,
31,
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,
4750,
918,
24292,
1435,
1216,
1185,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
16434,
1733,
3272,
273,
531,
5535,
3336,
1733,
18,
588,
27952,
2499,
1733,
5621,
3639,
11559,
28997,
31,
3639... |
Collection[] collections = item.getCollections(); | Collection[] collections = {wsItem.getCollection()}; | private void showMainPage(Context c, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { // get the value from the request int wsItemID = UIUtil.getIntParameter(request,"workspace_id"); // get the workspace item, item and collections from the request value WorkspaceItem wsItem = WorkspaceItem.find(c, wsItemID); Item item = wsItem.getItem(); Collection[] collections = item.getCollections(); // Ensure the user has authorisation AuthorizeManager.authorizeAction(c, item, Constants.READ); log.info(LogManager.getHeader(c, "View Workspace Item Metadata", "workspace_item_id="+wsItemID)); // Full or simple display? boolean displayAll = false; String button = UIUtil.getSubmitButton(request, "submit_simple"); if (button.equalsIgnoreCase("submit_full")) { displayAll = true; } // FIXME: we need to synchronise with the handle servlet to use the // display item JSP for both handled and un-handled items // Set attributes and display // request.setAttribute("wsItem", wsItem); request.setAttribute("display.all", new Boolean(displayAll)); request.setAttribute("item", item); request.setAttribute("collections", collections); request.setAttribute("workspace_id", new Integer(wsItem.getID())); JSPManager.showJSP(request, response, "/display-item.jsp"); } | 25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/c001b05d051d733ee890bc31c43c638d4dff933c/ViewWorkspaceItemServlet.java/buggy/dspace/src/org/dspace/app/webui/servlet/ViewWorkspaceItemServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2405,
6376,
1964,
12,
1042,
276,
16,
540,
9984,
590,
16,
12446,
766,
13,
3639,
1216,
16517,
16,
1860,
16,
6483,
16,
23859,
503,
565,
288,
3639,
368,
336,
326,
460,
628,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2405,
6376,
1964,
12,
1042,
276,
16,
540,
9984,
590,
16,
12446,
766,
13,
3639,
1216,
16517,
16,
1860,
16,
6483,
16,
23859,
503,
565,
288,
3639,
368,
336,
326,
460,
628,
326,
... |
if (arg.isEmpty()) | if (arg.isEmpty()) | public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { if (context.getProfiler().isEnabled()) { context.getProfiler().start(this); context.getProfiler().message(this, Profiler.DEPENDENCIES, "DEPENDENCIES", Dependency.getDependenciesName(this.getDependencies())); if (contextSequence != null) context.getProfiler().message(this, Profiler.START_SEQUENCES, "CONTEXT SEQUENCE", contextSequence); } Sequence result; Sequence arg = args[0]; if (arg.isEmpty()) result = Sequence.EMPTY_SEQUENCE; else { TimeValue time = (TimeValue) arg.itemAt(0); if (isCalledAs("hours-from-time")) result = new IntegerValue(time.getPart(DateValue.HOUR), Type.INTEGER); else if (isCalledAs("minutes-from-time")) result = new IntegerValue(time.getPart(DateValue.MINUTE), Type.INTEGER); else if (isCalledAs("seconds-from-time")) { long millis = time.getPart(DateValue.SECOND) * 1000 + time.getPart(DateValue.MILLISECOND); result = new DecimalValue(millis / 1000); } else if (isCalledAs("timezone-from-time")) result = time.getTimezone(); else throw new Error("can't handle function " + mySignature.getName().getLocalName()); } if (context.getProfiler().isEnabled()) context.getProfiler().end(this, "", result); return result; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/786eb35949aa2ce55d9681aa5f6b5fa349c8b371/FunGetTimeComponent.java/buggy/src/org/exist/xquery/functions/FunGetTimeComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8370,
5302,
12,
4021,
8526,
833,
16,
8370,
819,
4021,
13,
1216,
10172,
503,
288,
3639,
309,
261,
2472,
18,
588,
22060,
7675,
291,
1526,
10756,
288,
5411,
819,
18,
588,
22060,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8370,
5302,
12,
4021,
8526,
833,
16,
8370,
819,
4021,
13,
1216,
10172,
503,
288,
3639,
309,
261,
2472,
18,
588,
22060,
7675,
291,
1526,
10756,
288,
5411,
819,
18,
588,
22060,
... |
public boolean visit( final IResource resource ) | public boolean visit( final IResource resource ) | public void rescanAllFiles() { clearScripts(); for( final IMonkeyScriptFactory factory : getScriptFactories().values() ) factory.clearCachedScripts(); final IWorkspace workspace = getWorkspace(); for( final IProject project : workspace.getRoot().getProjects() ) { final IResourceVisitor visitor = new IResourceVisitor() { public boolean visit( final IResource resource ) throws CoreException { if( !( resource instanceof IFile ) ) return true; final IFile file = ( IFile )resource; if( isMonkeyScript( file ) ) processNewOrChangedScript( file.getFullPath().toString(), file ); return true; } }; try { project.accept( visitor ); } catch( final CoreException x ) { // ignore folders we cannot access } } } | 51952 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51952/ce6c85f70290ca5e9a8eb0752cbe5501d54166ad/UpdateMonkeyActionsResourceChangeListener.java/clean/net.sf.groovyMonkey/src/net/sf/groovyMonkey/UpdateMonkeyActionsResourceChangeListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
29144,
1595,
2697,
1435,
565,
288,
3639,
2424,
15041,
5621,
3639,
364,
12,
727,
6246,
265,
856,
3651,
1733,
3272,
294,
22611,
19271,
7675,
2372,
1435,
262,
5411,
3272,
18,
8507,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29144,
1595,
2697,
1435,
565,
288,
3639,
2424,
15041,
5621,
3639,
364,
12,
727,
6246,
265,
856,
3651,
1733,
3272,
294,
22611,
19271,
7675,
2372,
1435,
262,
5411,
3272,
18,
8507,
... |
Pointcut concretePointcut = d.getPointcut().concretize(inAspect, 0,m); | m.setDeclaringType(d.getDeclaringType()); Pointcut concretePointcut = d.getPointcut().concretize(inAspect, d.getDeclaringType(), 0,m); | public void addDeclare(Declare declare) { // this is not extensible, oh well if (declare instanceof DeclareErrorOrWarning) { ShadowMunger m = new Checker((DeclareErrorOrWarning)declare); addShadowMunger(m); } else if (declare instanceof DeclarePrecedence) { declareDominates.add(declare); } else if (declare instanceof DeclareParents) { DeclareParents dp = (DeclareParents)declare; exposeTypes(dp.getParents().getExactTypes()); declareParents.add(dp); } else if (declare instanceof DeclareSoft) { DeclareSoft d = (DeclareSoft)declare; // Ordered so that during concretization we can check the related munger ShadowMunger m = Advice.makeSoftener(world, d.getPointcut(), d.getException(),inAspect,d); Pointcut concretePointcut = d.getPointcut().concretize(inAspect, 0,m); m.pointcut = concretePointcut; declareSofts.add(new DeclareSoft(d.getException(), concretePointcut)); addConcreteShadowMunger(m); } else if (declare instanceof DeclareAnnotation) { // FIXME asc perf Possible Improvement. Investigate why this is called twice in a weave ? DeclareAnnotation da = (DeclareAnnotation)declare; da.setAspect(this.inAspect); if (da.isDeclareAtType()) { declareAnnotationsOnType.add(da); } else if (da.isDeclareAtField()) { declareAnnotationsOnField.add(da); } else if (da.isDeclareAtMethod() || da.isDeclareAtConstuctor()) { declareAnnotationsOnMethods.add(da); } } else { throw new RuntimeException("unimplemented"); } } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/9a7dfa5ff13d55a2934e877a7684944920efc224/CrosscuttingMembers.java/buggy/weaver/src/org/aspectj/weaver/CrosscuttingMembers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
3456,
834,
12,
3456,
834,
14196,
13,
288,
202,
202,
759,
333,
353,
486,
1110,
773,
1523,
16,
29797,
5492,
202,
202,
430,
261,
29554,
1276,
16110,
834,
668,
1162,
621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
3456,
834,
12,
3456,
834,
14196,
13,
288,
202,
202,
759,
333,
353,
486,
1110,
773,
1523,
16,
29797,
5492,
202,
202,
430,
261,
29554,
1276,
16110,
834,
668,
1162,
621... |
public org.quickfix.field.BenchmarkPrice getBenchmarkPrice() throws FieldNotFound { org.quickfix.field.BenchmarkPrice value = new org.quickfix.field.BenchmarkPrice(); | public quickfix.field.BenchmarkPrice getBenchmarkPrice() throws FieldNotFound { quickfix.field.BenchmarkPrice value = new quickfix.field.BenchmarkPrice(); | public org.quickfix.field.BenchmarkPrice getBenchmarkPrice() throws FieldNotFound { org.quickfix.field.BenchmarkPrice value = new org.quickfix.field.BenchmarkPrice(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationInstruction.java/clean/src/java/src/quickfix/fix44/AllocationInstruction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
5147,
2882,
9737,
5147,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
5147,
460,
273,
394,
2358,
18,
19525,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
5147,
2882,
9737,
5147,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
5147,
460,
273,
394,
2358,
18,
19525,... |
byte[] rBuf = truncate(sig.getR().toByteArray(), ClientSSKBlock.SIG_R_LENGTH); byte[] sBuf = truncate(sig.getS().toByteArray(), ClientSSKBlock.SIG_S_LENGTH); | byte[] rBuf = truncate(sig.getR().toByteArray(), SSKBlock.SIG_R_LENGTH); byte[] sBuf = truncate(sig.getS().toByteArray(), SSKBlock.SIG_S_LENGTH); | public ClientSSKBlock encode(Bucket sourceData, boolean asMetadata, boolean dontCompress, short alreadyCompressedCodec, long sourceLength, RandomSource r) throws SSKEncodeException, IOException { byte[] compressedData; short compressionAlgo; try { Compressed comp = Key.compress(sourceData, dontCompress, alreadyCompressedCodec, sourceLength, ClientSSKBlock.MAX_DECOMPRESSED_DATA_LENGTH, ClientSSKBlock.DATA_LENGTH, true); compressedData = comp.compressedData; compressionAlgo = comp.compressionAlgorithm; } catch (KeyEncodeException e) { throw new SSKEncodeException(e.getMessage(), e); } // Pad it MessageDigest md256; try { md256 = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e1) { // FIXME: log this properly? throw new Error(e1); } byte[] data; // First pad it if(compressedData.length != ClientSSKBlock.DATA_LENGTH) { // Hash the data if(compressedData.length != 0) md256.update(compressedData); byte[] digest = md256.digest(); MersenneTwister mt = new MersenneTwister(digest); data = new byte[ClientSSKBlock.DATA_LENGTH]; System.arraycopy(compressedData, 0, data, 0, compressedData.length); byte[] randomBytes = new byte[ClientSSKBlock.DATA_LENGTH-compressedData.length]; mt.nextBytes(randomBytes); System.arraycopy(randomBytes, 0, data, compressedData.length, ClientSSKBlock.DATA_LENGTH-compressedData.length); } else { data = compressedData; } // Implicit hash of data byte[] origDataHash = md256.digest(data); Rijndael aes; try { aes = new Rijndael(256, 256); } catch (UnsupportedCipherException e) { throw new Error("256/256 Rijndael not supported!"); } // Encrypt data. Data encryption key = H(plaintext data). aes.initialize(origDataHash); PCFBMode pcfb = new PCFBMode(aes); pcfb.reset(origDataHash); pcfb.blockEncipher(data, 0, data.length); byte[] encryptedDataHash = md256.digest(data); // Create headers byte[] headers = new byte[SSKBlock.TOTAL_HEADERS_LENGTH]; // First two bytes = hash ID int x = 0; headers[x++] = (byte) (ClientSSKBlock.HASH_SHA256 >> 8); headers[x++] = (byte) (ClientSSKBlock.HASH_SHA256); // Then crypto ID headers[x++] = (byte) (Key.ALGO_AES_PCFB_256_SHA256 >> 8); headers[x++] = (byte) (Key.ALGO_AES_PCFB_256_SHA256); // Then E(H(docname)) // Copy to headers System.arraycopy(ehDocname, 0, headers, x, ehDocname.length); x += ehDocname.length; // Now the encrypted headers byte[] encryptedHeaders = new byte[SSKBlock.ENCRYPTED_HEADERS_LENGTH]; System.arraycopy(origDataHash, 0, encryptedHeaders, 0, origDataHash.length); int y = origDataHash.length; short len = (short) compressedData.length; if(asMetadata) len |= 32768; encryptedHeaders[y++] = (byte)(len >> 8); encryptedHeaders[y++] = (byte)len; encryptedHeaders[y++] = (byte)(compressionAlgo >> 8); encryptedHeaders[y++] = (byte)compressionAlgo; if(encryptedHeaders.length != y) throw new IllegalStateException("Have more bytes to generate encoding SSK"); aes.initialize(cryptoKey); pcfb.reset(ehDocname); pcfb.blockEncipher(encryptedHeaders, 0, encryptedHeaders.length); System.arraycopy(encryptedHeaders, 0, headers, x, encryptedHeaders.length); x+=encryptedHeaders.length; // Generate implicit overall hash. md256.update(headers, 0, x); md256.update(encryptedDataHash); byte[] overallHash = md256.digest(); // Now sign it DSASignature sig = DSA.sign(pubKey.getGroup(), privKey, new NativeBigInteger(1, overallHash), r); // Pack R and S into 32 bytes each, and copy to headers. // Then create and return the ClientSSKBlock. byte[] rBuf = truncate(sig.getR().toByteArray(), ClientSSKBlock.SIG_R_LENGTH); byte[] sBuf = truncate(sig.getS().toByteArray(), ClientSSKBlock.SIG_S_LENGTH); System.arraycopy(rBuf, 0, headers, x, rBuf.length); x+=rBuf.length; System.arraycopy(sBuf, 0, headers, x, sBuf.length); x+=sBuf.length; if(x != SSKBlock.TOTAL_HEADERS_LENGTH) throw new IllegalStateException("Too long"); try { return new ClientSSKBlock(data, headers, this, false); // FIXME set last arg to true to not verify } catch (SSKVerifyException e) { IllegalStateException exception=new IllegalStateException("Impossible encoding error: "+e.getMessage()); exception.initCause(e); throw exception; } } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/InsertableClientSSK.java/clean/src/freenet/keys/InsertableClientSSK.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
1260,
47,
1768,
2017,
12,
4103,
1084,
751,
16,
1250,
487,
2277,
16,
1250,
14046,
16552,
16,
3025,
1818,
16841,
11008,
16,
1525,
27406,
16,
8072,
1830,
436,
13,
1216,
348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
1260,
47,
1768,
2017,
12,
4103,
1084,
751,
16,
1250,
487,
2277,
16,
1250,
14046,
16552,
16,
3025,
1818,
16841,
11008,
16,
1525,
27406,
16,
8072,
1830,
436,
13,
1216,
348,
... |
BugzillaPlugin.log(new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.OK, "", e)); | BugzillaPlugin.log(new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.OK, "", e)); | public void refreshBugs() { hits.clear(); // refresh the view to show that the results are gone Display.getDefault().asyncExec(new Runnable(){ public void run() { if(TaskListView.getDefault() != null) TaskListView.getDefault().getViewer().refresh(); } }); final BugzillaCategorySearchOperation catSearch = new BugzillaCategorySearchOperation( getQueryString(), maxHits); catSearch.addResultsListener(listener); final IStatus[] status = new IStatus[1]; try { // execute the search operation catSearch.execute(new NullProgressMonitor()); isMaxReached = catSearch.isMaxReached(); hasBeenRefreshed = true; lastRefresh = new Date(); // get the status of the search operation status[0] = catSearch.getStatus(); // determine if there was an error, if it was cancelled, or if it is // ok if (status[0].getCode() == IStatus.CANCEL) { // it was cancelled, so just return status[0] = Status.OK_STATUS; // return status[0]; return; } else if (!status[0].isOK()) { // there was an error, so display an error message PlatformUI.getWorkbench().getDisplay().asyncExec( new Runnable() { public void run() { ErrorDialog.openError(null, "Bugzilla Search Error", null, status[0]); } }); status[0] = Status.OK_STATUS; return; // return status[0]; } } catch (LoginException e) { // we had a problem while searching that seems like a login info // problem // thrown in BugzillaSearchOperation MessageDialog .openError( null, "Login Error", "Bugzilla could not log you in to get the information you requested since login name or password is incorrect.\nPlease check your settings in the bugzilla preferences. "); BugzillaPlugin.log(new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.OK, "", e)); } return; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d4f4b7adbac6f3f4b67fbc7714a5fbeb8cd7ff7e/BugzillaQueryCategory.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaQueryCategory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4460,
31559,
1435,
288,
202,
202,
15173,
18,
8507,
5621,
202,
202,
759,
4460,
326,
1476,
358,
2405,
716,
326,
1686,
854,
22296,
202,
202,
4236,
18,
588,
1868,
7675,
3810,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4460,
31559,
1435,
288,
202,
202,
15173,
18,
8507,
5621,
202,
202,
759,
4460,
326,
1476,
358,
2405,
716,
326,
1686,
854,
22296,
202,
202,
4236,
18,
588,
1868,
7675,
3810,
... |
ViewTemplate template = (ViewTemplate) templates.get(viewpath); if (template == null) { String fullpath = basedir + viewpath + suffix; InputStream is = tryLoadTemplate(fullpath, consumerprefix == null); if (is == null && consumerprefix != null) { fullpath = basedir + viewparams.viewID + suffix; is = tryLoadTemplate(fullpath, true); } | ViewTemplate template = null; String fullpath = basedir + viewpath + suffix; InputStream is = tryLoadTemplate(fullpath, consumerprefix == null); if (is == null && consumerprefix != null) { fullpath = basedir + viewparams.viewID + suffix; is = tryLoadTemplate(fullpath, true); } if (is == CachingInputStreamSource.UP_TO_DATE) { template = (ViewTemplate) templates.get(viewpath); } if (template == null) { | public ViewTemplate locateTemplate(ViewParameters viewparams) { String viewpath = viewparams.viewID; String consumerprefix = null; if (ci.consumertype != null) { consumerprefix = ci.consumertype + CONSUMERTYPE_SEPARATOR; viewpath = consumerprefix + viewparams.viewID; } ViewTemplate template = (ViewTemplate) templates.get(viewpath); if (template == null) { String fullpath = basedir + viewpath + suffix; InputStream is = tryLoadTemplate(fullpath, consumerprefix == null); if (is == null && consumerprefix != null) { fullpath = basedir + viewparams.viewID + suffix; is = tryLoadTemplate(fullpath, true); } try { template = new XMLViewTemplate(); template.parse(is); template.setRelativePath(basedir.substring(1)); templates.put(viewpath, template); } catch (Exception e) { throw UniversalRuntimeException.accumulate(e, "Error parsing view template file " + fullpath); } } return template; } | 29 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/29/12d8604799b477105d658adc24aa01e952a647fd/BasicTemplateResolver.java/clean/rsf-core/core/src/uk/org/ponder/rsf/templateresolver/BasicTemplateResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4441,
2283,
10627,
2283,
12,
1767,
2402,
1476,
2010,
13,
288,
565,
514,
1476,
803,
273,
1476,
2010,
18,
1945,
734,
31,
565,
514,
4765,
3239,
273,
446,
31,
565,
309,
261,
8450,
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,
282,
1071,
4441,
2283,
10627,
2283,
12,
1767,
2402,
1476,
2010,
13,
288,
565,
514,
1476,
803,
273,
1476,
2010,
18,
1945,
734,
31,
565,
514,
4765,
3239,
273,
446,
31,
565,
309,
261,
8450,
18,... |
if (!showHsb) y3 = y4; else y3 = y4 - hsb.getPreferredSize().height; | if (showVsb) vsWidth = vsb.getPreferredSize().width; } x3 = x4 - vsWidth; y3 = y4 - hsHeight; | public void layoutContainer(Container parent) { // Sun's implementation simply throws a ClassCastException if // parent is no JScrollPane, so do we. JScrollPane sc = (JScrollPane) parent; JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); int x1 = 0, x2 = 0, x3 = 0, x4 = 0; int y1 = 0, y2 = 0, y3 = 0, y4 = 0; Rectangle scrollPaneBounds = SwingUtilities.calculateInnerArea(sc, null); x1 = scrollPaneBounds.x; y1 = scrollPaneBounds.y; x4 = scrollPaneBounds.x + scrollPaneBounds.width; y4 = scrollPaneBounds.y + scrollPaneBounds.height; if (colHead != null) y2 = y1 + colHead.getPreferredSize().height; else y2 = y1; if (rowHead != null) x2 = x1 + rowHead.getPreferredSize().width; else x2 = x1; int vsbPolicy = sc.getVerticalScrollBarPolicy(); int hsbPolicy = sc.getHorizontalScrollBarPolicy(); boolean showVsb = (vsb != null) && ((vsbPolicy == VERTICAL_SCROLLBAR_ALWAYS) || (vsbPolicy == VERTICAL_SCROLLBAR_AS_NEEDED && viewSize.height > (y4 - y2))); boolean showHsb = (hsb != null) && ((hsbPolicy == HORIZONTAL_SCROLLBAR_ALWAYS) || (hsbPolicy == HORIZONTAL_SCROLLBAR_AS_NEEDED && viewSize.width > (x4 - x2))); if (!showVsb) x3 = x4; else x3 = x4 - vsb.getPreferredSize().width; if (!showHsb) y3 = y4; else y3 = y4 - hsb.getPreferredSize().height; // now set the layout if (viewport != null) viewport.setBounds(new Rectangle(x2, y2, x3 - x2, y3 - y2)); if (colHead != null) colHead.setBounds(new Rectangle(x2, y1, x3 - x2, y2 - y1)); if (rowHead != null) rowHead.setBounds(new Rectangle(x1, y2, x2 - x1, y3 - y2)); if (showVsb) { vsb.setVisible(true); vsb.setBounds(new Rectangle(x3, y2, x4 - x3, y3 - y2)); } else if (vsb != null) vsb.setVisible(false); if (showHsb) { hsb.setVisible(true); hsb.setBounds(new Rectangle(x2, y3, x3 - x2, y4 - y3)); } else if (hsb != null) hsb.setVisible(false); if (upperLeft != null) upperLeft.setBounds(new Rectangle(x1, y1, x2 - x1, y2 - y1)); if (upperRight != null) upperRight.setBounds(new Rectangle(x3, y1, x4 - x3, y2 - y1)); if (lowerLeft != null) lowerLeft.setBounds(new Rectangle(x1, y3, x2 - x1, y4 - y3)); if (lowerRight != null) lowerRight.setBounds(new Rectangle(x3, y3, x4 - x3, y4 - y3)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8a78b0a127a68dcc6823fee2b8bdb1cbb7ec268d/ScrollPaneLayout.java/buggy/core/src/classpath/javax/javax/swing/ScrollPaneLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3511,
2170,
12,
2170,
982,
13,
225,
288,
565,
368,
31608,
1807,
4471,
8616,
1216,
279,
24034,
309,
565,
368,
982,
353,
1158,
804,
26360,
16,
1427,
741,
732,
18,
3639,
804,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3511,
2170,
12,
2170,
982,
13,
225,
288,
565,
368,
31608,
1807,
4471,
8616,
1216,
279,
24034,
309,
565,
368,
982,
353,
1158,
804,
26360,
16,
1427,
741,
732,
18,
3639,
804,
26... |
MockVisitor eventCreator = new MockVisitorAdapter() { public void visitService(MockService svc) { anticipateUp(svc); } }; node.visit(eventCreator); } | MockVisitor eventCreator = new MockVisitorAdapter() { public void visitService(MockService svc) { anticipateUp(svc); } }; node.visit(eventCreator); } | private void anticipateServicesUp(MockElement node) { MockVisitor eventCreator = new MockVisitorAdapter() { public void visitService(MockService svc) { anticipateUp(svc); } }; node.visit(eventCreator); } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/e3db1312e8cc2636034eb4d7b29db88850613e3b/PollerTest.java/clean/opennms-services/src/test/java/org/opennms/netmgt/poller/PollerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
17841,
24629,
340,
5676,
1211,
12,
9865,
1046,
756,
13,
288,
3639,
7867,
7413,
871,
10636,
273,
394,
7867,
7413,
4216,
1435,
288,
5411,
1071,
918,
3757,
1179,
12,
9865,
1179,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17841,
24629,
340,
5676,
1211,
12,
9865,
1046,
756,
13,
288,
3639,
7867,
7413,
871,
10636,
273,
394,
7867,
7413,
4216,
1435,
288,
5411,
1071,
918,
3757,
1179,
12,
9865,
1179,
7... |
final URL submissionURL; try { final String actionString = (serializedInstanceString == null) ? action : action + ((action.indexOf('?') == -1) ? "?" : "") + serializedInstanceString; if (action.startsWith("/")) { final String requestURL = externalContext.getRequest().getRequestURL(); submissionURL = URLFactory.createURL(requestURL, externalContext.getRequest().getContextPath() + actionString); } else if (NetUtils.urlHasProtocol(actionString)) { submissionURL = URLFactory.createURL(actionString); } else { throw new OXFException("xforms:submission: invalid action: " + actionString); } } catch (MalformedURLException e) { throw new OXFException("xforms:submission: invalid action: " + action, e); } final String scheme = submissionURL.getProtocol(); if (scheme.equals("http") || scheme.equals("https")) { urlConnection = (HttpURLConnection) submissionURL.openConnection(); if (isPost() || isPut() || isGet()) { urlConnection.setDoInput(true); urlConnection.setDoOutput(!isGet()); urlConnection.setRequestMethod(method.toUpperCase()); urlConnection.setRequestProperty("content-type", (mediatype != null) ? mediatype : "application/xml"); urlConnection.connect(); if (!isGet()) { os = urlConnection.getOutputStream(); os.write(serializedInstance); } resultCode = urlConnection.getResponseCode(); final String contentType = urlConnection.getContentType(); resultMediaType = NetUtils.getContentTypeMediaType(contentType); resultHeaders = urlConnection.getHeaderFields(); resultInputStream = urlConnection.getInputStream(); } else if (method.equals("multipart-post")) { throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("form-data-post")) { throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("urlencoded-post")) { throw new OXFException("xforms:submission: deprecated submission method requested: " + method); } else { throw new OXFException("xforms:submission: invalid submission method requested: " + method); } } else if (scheme.equals("file")) { throw new OXFException("xforms:submission: submission URL scheme not yet implemented: " + scheme); } else if (scheme.equals("mailto")) { throw new OXFException("xforms:submission: submission URL scheme not yet implemented: " + scheme); } else { throw new OXFException("xforms:submission: submission URL scheme not supported: " + scheme); } } if (!dontHandleResponse) { | final String resolvedURL = XFormsUtils.resolveURL(containingDocument, pipelineContext, submissionElement, false, action); connectionResult = XFormsSubmissionUtils.doRegular(pipelineContext, externalContext, method, resolvedURL, mediatype, isReplaceAll, serializedInstance, serializedInstanceString); } if (!connectionResult.dontHandleResponse) { | public void performDefaultAction(PipelineContext pipelineContext, XFormsEvent event) { final String eventName = event.getEventName(); if (XFormsEvents.XFORMS_SUBMIT.equals(eventName) || XFormsEvents.XXFORMS_SUBMIT.equals(eventName)) { // 11.1 The xforms-submit Event // Bubbles: Yes / Cancelable: Yes / Context Info: None boolean isDeferredSubmissionSecondPass = false; try { // Make sure submission element info is extracted extractSubmissionElement(); final boolean isHandlingOptimizedGet = XFormsUtils.isOptimizeGetAllSubmission() && isGet() && replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL); final boolean isDeferredSubmission = replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL); final boolean isDeferredSubmissionFirstPass = isDeferredSubmission && XFormsEvents.XFORMS_SUBMIT.equals(eventName) && !isHandlingOptimizedGet; isDeferredSubmissionSecondPass = isDeferredSubmission && !isDeferredSubmissionFirstPass; // Select node based on ref or bind final XFormsControls xformsControls = containingDocument.getXFormsControls(); xformsControls.setBinding(pipelineContext, submissionElement); // FIXME: the submission element is not a control... final Node currentNode = xformsControls.getCurrentSingleNode(); if (!(currentNode instanceof Document || currentNode instanceof Element)) { throw new OXFException("xforms:submission: single-node binding must refer to a document node or an element."); } final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final Document initialDocumentToSubmit; if (!isDeferredSubmissionSecondPass) { // Create document to submit initialDocumentToSubmit = createDocumentToSubmit(currentNode, currentInstance); // Revalidate instance containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, false)); // TODO: The "false" attribute is no longer used. The above will cause events to be // sent out. Check if the validation state can really change. If so, find a // solution. // "no notification events are marked for dispatching due to this operation" // Check that there are no validation errors final boolean instanceSatisfiesValidRequired = isDocumentSatisfiesValidRequired(initialDocumentToSubmit); if (!instanceSatisfiesValidRequired) { if (XFormsServer.logger.isDebugEnabled()) { final LocationDocumentResult documentResult = new LocationDocumentResult(); final TransformerHandler identity = TransformerUtils.getIdentityTransformerHandler(); identity.setResult(documentResult); currentInstance.read(identity); final String documentString = Dom4jUtils.domToString(documentResult.getDocument()); XFormsServer.logger.debug("XForms - instance document or subset thereof cannot be submitted:\n" + documentString); } throw new OXFException("xforms:submission: instance to submit does not satisfy valid and/or required model item properties."); } } else { initialDocumentToSubmit = null; } // Deferred submission: end of the first pass if (isDeferredSubmissionFirstPass) { // When replace="all", we wait for the submission of an XXFormsSubmissionEvent from the client containingDocument.setClientActiveSubmission(this); return; } final Document documentToSubmit; if (isDeferredSubmissionSecondPass) { // Handle uploaded files if any final Element filesElement = (event instanceof XXFormsSubmissionEvent) ? ((XXFormsSubmissionEvent) event).getFilesElement() : null; if (filesElement != null) { for (Iterator i = filesElement.elements().iterator(); i.hasNext();) { final Element parameterElement = (Element) i.next(); final String name = parameterElement.element("name").getTextTrim(); final Element valueElement = parameterElement.element("value"); final String value = valueElement.getTextTrim(); final String paramValueType = Dom4jUtils.qNameToexplodedQName(Dom4jUtils.extractAttributeValueQName(valueElement, XMLConstants.XSI_TYPE_QNAME)); final String filename = parameterElement.element("filename").getTextTrim(); final String mediatype = parameterElement.element("content-type").getTextTrim(); final String size = parameterElement.element("content-length").getTextTrim(); final XFormsControls.UploadControlInfo uploadControl = (XFormsControls.UploadControlInfo) containingDocument.getObjectById(pipelineContext, name); if (uploadControl != null) { // in case of xforms:repeat, the name of the template will not match an existing control // Set value into the instance xformsControls.setBinding(pipelineContext, uploadControl); { final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, value, paramValueType); } // Handle filename if any if (uploadControl.getFilenameElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getFilenameElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, filename, null); xformsControls.popBinding(); } // Handle mediatype if any if (uploadControl.getMediatypeElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getMediatypeElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, mediatype, null); xformsControls.popBinding(); } // Handle file size if any if (uploadControl.getSizeElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getSizeElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, size, null); xformsControls.popBinding(); } } } } // Create document to submit documentToSubmit = createDocumentToSubmit(currentNode, currentInstance); // Revalidate instance containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, false)); // TODO: The "false" attribute is no longer used. The above will cause events to be // sent out. Check if the validation state can really change. If so, find a // solution. // "no notification events are marked for dispatching due to this operation" // Check that there are no validation errors final boolean instanceSatisfiesValidRequired = isDocumentSatisfiesValidRequired(documentToSubmit); if (!instanceSatisfiesValidRequired) {// currentInstance.readOut();// FIXME: DEBUG throw new OXFException("xforms:submission: instance to submit does not satisfy valid and/or required model item properties."); } } else { // Don't recreate document documentToSubmit = initialDocumentToSubmit; } // Serialize // To support: application/xml, application/x-www-form-urlencoded, multipart/related, multipart/form-data final byte[] serializedInstance; final String serializedInstanceString; { if (isPost() || isPut()) { try { final Transformer identity = TransformerUtils.getIdentityTransformer(); TransformerUtils.applyOutputProperties(identity, "xml", version, null, null, encoding, omitxmldeclaration, standalone, indent, 4); // TODO: use cdata-section-elements final ByteArrayOutputStream os = new ByteArrayOutputStream(); identity.transform(new DocumentSource(documentToSubmit), new StreamResult(os)); serializedInstance = os.toByteArray(); } catch (Exception e) { throw new OXFException("xforms:submission: exception while serializing instance to XML.", e); } serializedInstanceString = null; } else if (isGet()) { // Perform "application/x-www-form-urlencoded" serialization serializedInstanceString = createWwwFormUrlEncoded(documentToSubmit); serializedInstance = null; } else if (method.equals("multipart-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("form-data-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("urlencoded-post")) { throw new OXFException("xforms:submission: deprecated submission method requested: " + method); } else { throw new OXFException("xforms:submission: invalid submission method requested: " + method); } } final ExternalContext externalContext = (ExternalContext) pipelineContext.getAttribute(PipelineContext.EXTERNAL_CONTEXT); // Result information int resultCode = 0; String resultMediaType = null; Map resultHeaders = null; InputStream resultInputStream = null; HttpURLConnection urlConnection = null; OutputStream os = null; boolean dontHandleResponse = false; try { if (isHandlingOptimizedGet) { // GET with replace="all" // We can optimize and tell the client to load the URL final String actionString = action + ((action.indexOf('?') == -1) ? "?" : "") + serializedInstanceString; XFormsActionInterpreter.resolveLoadValue(containingDocument, pipelineContext, submissionElement, true, actionString, null); dontHandleResponse = true; } else if ((XFormsUtils.isOptimizeLocalSubmission() || isMethodOptimizedLocalSubmission()) && action.startsWith("/")) { // TODO // && !externalContext.getRequest().getContainerType().equals("portlet") // This is a "local" submission, i.e. in the same web application // The submission can be optimized. // NOTE: It is not possible to use include() with portlets, because it is // not possible to intercept the response, unlike with servlets. Also, there // is no concept of forward() with portlets. In the case of portlets, we can // therefore not optimize. // FIXME: How to deal with absolute paths on the same server, but not in // the web application? Just use absolute URLs? ExternalContext.RequestDispatcher requestDispatcher = externalContext.getRequestDispatcher(action); try { if (isPost() || isPut() || isGet()) { // Create requestAdapter depending on method final ForwardExternalContextRequestWrapper requestAdapter; { if (isPost() || isPut()) requestAdapter= new ForwardExternalContextRequestWrapper(externalContext.getRequest(), action, method.toUpperCase(), (mediatype != null) ? mediatype : "application/xml", serializedInstance); else { final String actionString = action + ((action.indexOf('?') == -1) ? "?" : "") + serializedInstanceString; requestAdapter = new ForwardExternalContextRequestWrapper(externalContext.getRequest(), actionString, method.toUpperCase()); } } if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL)) { // Just forward the reply // TODO: xforms-submit-done must be sent before the body is forwarded containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); requestDispatcher.forward(requestAdapter, externalContext.getResponse()); dontHandleResponse = true; } else { // We must intercept the reply final ResponseAdapter responseAdapter = new ResponseAdapter(); requestDispatcher.include(requestAdapter, responseAdapter); // Get response information that needs to be forwarded resultCode = responseAdapter.getResponseCode();// TODO: this is bad, because the code is actually not propagated from the other side. We should probably not use "optimized" submission here. // resultMediaType = NetUtils.getContentTypeMediaType(responseAdapter.getContentType()); // resultHeaders = responseAdapter.getHeaders(); resultMediaType = ProcessorUtils.XML_CONTENT_TYPE; resultInputStream = responseAdapter.getInputStream(); } } else if (method.equals("multipart-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("form-data-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("urlencoded-post")) { throw new OXFException("xforms:submission: deprecated submission method requested: " + method); } else { throw new OXFException("xforms:submission: invalid submission method requested: " + method); } } catch (IOException e) { throw new OXFException(e); } } else { // This is a "remote" submission, i.e. using an absolute URL, OR a "local" submission from a portlet // Compute submission URL final URL submissionURL; try { final String actionString = (serializedInstanceString == null) ? action : action + ((action.indexOf('?') == -1) ? "?" : "") + serializedInstanceString; if (action.startsWith("/")) { // Case of "local" portlet submission final String requestURL = externalContext.getRequest().getRequestURL(); submissionURL = URLFactory.createURL(requestURL, externalContext.getRequest().getContextPath() + actionString);//TODO: should be relative to actual page's request URL, and use xml:base as well! } else if (NetUtils.urlHasProtocol(actionString)) { // Case of absolute URL submissionURL = URLFactory.createURL(actionString); } else { throw new OXFException("xforms:submission: invalid action: " + actionString);// final String requestURL = externalContext.getRequest().getRequestURL();//// if (requestURL != null) {// submissionURL = URLFactory.createURL(requestURL, action);// } else {// throw new OXFException("xforms:submission: cannot resolve relative action: " + action);// } } } catch (MalformedURLException e) { throw new OXFException("xforms:submission: invalid action: " + action, e); } // Perform submission final String scheme = submissionURL.getProtocol(); if (scheme.equals("http") || scheme.equals("https")) { // http MUST be supported // https SHOULD be supported urlConnection = (HttpURLConnection) submissionURL.openConnection(); if (isPost() || isPut() || isGet()) { urlConnection.setDoInput(true); urlConnection.setDoOutput(!isGet()); // Only if POST / PUT urlConnection.setRequestMethod(method.toUpperCase()); urlConnection.setRequestProperty("content-type", (mediatype != null) ? mediatype : "application/xml"); urlConnection.connect(); // Write request body if (!isGet()) { os = urlConnection.getOutputStream(); os.write(serializedInstance); } // Get response information that needs to be forwarded resultCode = urlConnection.getResponseCode(); final String contentType = urlConnection.getContentType(); resultMediaType = NetUtils.getContentTypeMediaType(contentType); resultHeaders = urlConnection.getHeaderFields(); resultInputStream = urlConnection.getInputStream(); } else if (method.equals("multipart-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("form-data-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("urlencoded-post")) { throw new OXFException("xforms:submission: deprecated submission method requested: " + method); } else { throw new OXFException("xforms:submission: invalid submission method requested: " + method); } } else if (scheme.equals("file")) { // TODO // SHOULD be supported // Question: should support oxf: as well? throw new OXFException("xforms:submission: submission URL scheme not yet implemented: " + scheme); } else if (scheme.equals("mailto")) { // TODO // MAY be supported throw new OXFException("xforms:submission: submission URL scheme not yet implemented: " + scheme); } else { throw new OXFException("xforms:submission: submission URL scheme not supported: " + scheme); } } if (!dontHandleResponse) { // Handle response if (resultCode == 200) { // Sucessful response final boolean hasContent; { if (resultInputStream == null) { hasContent = false; } else { if (!resultInputStream.markSupported()) resultInputStream = new BufferedInputStream(resultInputStream); resultInputStream.mark(1); hasContent = resultInputStream.read() != -1; resultInputStream.reset(); } } if (hasContent) { // There is a body if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL)) { // When we get here, we are in a mode where we need to send the reply // directly to an external context, if any. // "the event xforms-submit-done is dispatched" containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); final ExternalContext.Response response = externalContext.getResponse(); // Forward headers to response if (resultHeaders != null) { for (Iterator i = resultHeaders.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String headerName = (String) currentEntry.getKey(); final List headerValues = (List) currentEntry.getValue(); if (headerName != null && headerValues != null) { for (Iterator j = headerValues.iterator(); j.hasNext();) { response.addHeader(headerName, (String) j.next()); } } } } // Forward content to response NetUtils.copyStream(resultInputStream, response.getOutputStream()); } else if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_INSTANCE)) { final ByteArrayOutputStream resultByteArrayOutputStream = new ByteArrayOutputStream(); NetUtils.copyStream(resultInputStream, resultByteArrayOutputStream); byte[] submissionResponse = resultByteArrayOutputStream.toByteArray(); if (ProcessorUtils.isXMLContentType(resultMediaType)) { // Handling of XML media type try { final Transformer identity = TransformerUtils.getIdentityTransformer(); final LocationDocumentResult documentResult = new LocationDocumentResult(); identity.transform(new StreamSource(new ByteArrayInputStream(submissionResponse)), documentResult); final Document resultingInstanceDocument = documentResult.getDocument(); // Set new instance document to replace the one submitted final XFormsInstance replaceInstance = (replaceInstanceId == null) ? currentInstance : model.getInstance(replaceInstanceId); if (replaceInstance == null) { containingDocument.dispatchEvent(pipelineContext, new XFormsBindingExceptionEvent(XFormsModelSubmission.this)); } else { // Get repeat index information just before insertion final Map previousRepeatIdToIndex; { final Map map = xformsControls.getCurrentControlsState().getRepeatIdToIndex(); previousRepeatIdToIndex = (map == null) ? null : new HashMap(map); } // Set new instance replaceInstance.setInstanceDocument(resultingInstanceDocument); // Mark all values as changed so that refresh sends appropriate events XFormsUtils.markAllValuesChanged(replaceInstance.getDocument()); // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); // "Once the XML instance data has been replaced, // the rebuild, recalculate, revalidate and refresh // operations are performed on the model, without // dispatching events to invoke those four // operations." model.doRebuild(pipelineContext); model.doRecalculate(pipelineContext); model.doRevalidate(pipelineContext); model.doRefresh(pipelineContext); // Update repeat indexes if necessary // The idea is that if a repeat index was set to 0 // (which can only happen when a repeat node-set is // empty) and instance replacement causes the // node-set to be non-empty, then the repeat index // must be set to the initial repeat index for that // repeat. if (previousRepeatIdToIndex != null) { final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); final Map currentRepeatIdToIndex = currentControlsState.getRepeatIdToIndex(); final Map intialRepeatIdToIndex = currentControlsState.getDefaultRepeatIdToIndex(); final Map effectiveRepeatIdToIterations = currentControlsState.getEffectiveRepeatIdToIterations(); if (currentRepeatIdToIndex != null && currentRepeatIdToIndex.size() != 0) { for (Iterator i = previousRepeatIdToIndex.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String repeatId = (String) currentEntry.getKey(); final Integer previouslIndex = (Integer) currentEntry.getValue();// final Integer newIndex = (Integer) currentRepeatIdToIndex.get(repeatId); final Integer newIterations = (Integer) effectiveRepeatIdToIterations.get(repeatId); if (previouslIndex.intValue() == 0 && newIterations.intValue() > 0) { // Set index to defaul value final Integer initialRepeatIndex = (Integer) intialRepeatIdToIndex.get(repeatId);// XFormsActionInterpreter.executeSetindexAction(pipelineContext, containingDocument, repeatId, initialRepeatIndex.toString()); // TODO: Here we need to check that the index is within bounds and to send the appropriate events currentControlsState.updateRepeatIndex(repeatId, initialRepeatIndex.intValue()); } else { // Just reset index and make sure it is within bounds// XFormsActionInterpreter.executeSetindexAction(pipelineContext, containingDocument, repeatId, previousRepeatIndex.toString()); // TODO: Here we need to check that the index is within bounds and to send the appropriate events// final Integer previousRepeatIndex = (Integer) previousRepeatIdToIndex.get(repeatId);// currentControlsState.updateRepeatIndex(repeatId, previousRepeatIndex.intValue()); final Integer initialRepeatIndex = (Integer) intialRepeatIdToIndex.get(repeatId); currentControlsState.updateRepeatIndex(repeatId, initialRepeatIndex.intValue()); } } } } // Notify that submission is done containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } } catch (Exception e) { throw new OXFException("xforms:submission: exception while serializing XML to instance.", e); } } else { // Other media type throw new OXFException("Body received with non-XML media type for replace=\"instance\": " + resultMediaType); } } else if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_NONE)) { // Just notify that processing is terminated containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } else { throw new OXFException("xforms:submission: invalid replace attribute: " + replace); } } else { // There is no body, notify that processing is terminated containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } } else if (resultCode == 302 || resultCode == 301) { // Got a redirect final ExternalContext.Response response = externalContext.getResponse(); // Forward headers to response // TODO: this is duplicated from above if (resultHeaders != null) { for (Iterator i = resultHeaders.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String headerName = (String) currentEntry.getKey(); final List headerValues = (List) currentEntry.getValue(); if (headerName != null && headerValues != null) { for (Iterator j = headerValues.iterator(); j.hasNext();) { response.addHeader(headerName, (String) j.next()); } } } } // Forward redirect response.setStatus(resultCode); } else { // Error code received throw new OXFException("Error code received when submitting instance: " + resultCode); } } } finally { // Clean-up if (os != null) { try { os.close(); } catch (IOException e) { throw new OXFException("Exception while closing output stream for action: " + action); } } if (resultInputStream != null) { try { resultInputStream.close(); } catch (IOException e) { throw new OXFException("Exception while closing input stream for action: " + action); } } if (urlConnection != null) urlConnection.disconnect(); } } catch (Throwable e) { if (isDeferredSubmissionSecondPass && XFormsUtils.isOptimizePostAllSubmission()) { // It doesn't serve any purpose here to dispatch an event, so we just propagate the exception throw new OXFException(e); } else { // Any exception will cause an error event to be dispatched containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitErrorEvent(XFormsModelSubmission.this, action, e)); } } } else if (XFormsEvents.XFORMS_BINDING_EXCEPTION.equals(eventName)) { // The default action for this event results in the following: Fatal error. throw new OXFException("Binding exception."); } } | 57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/7d5f64cdd8f43075e248143706be45d2af32ca88/XFormsModelSubmission.java/clean/src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3073,
1868,
1803,
12,
8798,
1042,
5873,
1042,
16,
1139,
18529,
1133,
871,
13,
288,
3639,
727,
514,
7933,
273,
871,
18,
588,
24320,
5621,
3639,
309,
261,
60,
18529,
3783,
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,
3073,
1868,
1803,
12,
8798,
1042,
5873,
1042,
16,
1139,
18529,
1133,
871,
13,
288,
3639,
727,
514,
7933,
273,
871,
18,
588,
24320,
5621,
3639,
309,
261,
60,
18529,
3783,
18,
... |
int lastAttrChunk = lastAttrNodeIndex >> CHUNK_SHIFT; int lastAttrIndex = lastAttrNodeIndex & CHUNK_MASK; | public int setDeferredAttribute(int elementNodeIndex, String attrName, String attrURI, String attrValue, boolean specified, boolean id, Object type) { // create attribute int attrNodeIndex = createDeferredAttribute(attrName, attrURI, attrValue, specified); int attrChunk = attrNodeIndex >> CHUNK_SHIFT; int attrIndex = attrNodeIndex & CHUNK_MASK; // set attribute's parent to element setChunkIndex(fNodeParent, elementNodeIndex, attrChunk, attrIndex); int elementChunk = elementNodeIndex >> CHUNK_SHIFT; int elementIndex = elementNodeIndex & CHUNK_MASK; // get element's last attribute int lastAttrNodeIndex = getChunkIndex(fNodeExtra, elementChunk, elementIndex); if (lastAttrNodeIndex != 0) { int lastAttrChunk = lastAttrNodeIndex >> CHUNK_SHIFT; int lastAttrIndex = lastAttrNodeIndex & CHUNK_MASK; // add link from new attribute to last attribute setChunkIndex(fNodePrevSib, lastAttrNodeIndex, attrChunk, attrIndex); } // add link from element to new last attribute setChunkIndex(fNodeExtra, attrNodeIndex, elementChunk, elementIndex); int extra = getChunkIndex(fNodeExtra, attrChunk, attrIndex); if (id) { extra = extra | ID; setChunkIndex(fNodeExtra, extra, attrChunk, attrIndex); String value = getChunkValue(fNodeValue, attrChunk, attrIndex); putIdentifier(value, elementNodeIndex); } // store type information if (type != null) { int extraDataIndex = createNode(DeferredNode.TYPE_NODE); int echunk = extraDataIndex >> CHUNK_SHIFT; int eindex = extraDataIndex & CHUNK_MASK; setChunkIndex(fNodeLastChild, extraDataIndex, attrChunk, attrIndex); setChunkValue(fNodeValue, type, echunk, eindex); } // return node index return attrNodeIndex; } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/617ad3886f7378dfa652e6b66017cfa73dd6fda6/DeferredDocumentImpl.java/clean/src/org/apache/xerces/dom/DeferredDocumentImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
444,
16886,
1499,
12,
474,
930,
907,
1016,
16,
1082,
13491,
514,
11583,
16,
21821,
202,
202,
780,
1604,
3098,
16,
7682,
202,
202,
780,
21676,
16,
7682,
202,
202,
6494,
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,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
444,
16886,
1499,
12,
474,
930,
907,
1016,
16,
1082,
13491,
514,
11583,
16,
21821,
202,
202,
780,
1604,
3098,
16,
7682,
202,
202,
780,
21676,
16,
7682,
202,
202,
6494,
12... | |
return closed; | return impl == null; | public boolean isClosed() { return closed; } | 25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/dcbb69e84e9c71073608efebeefaa86de4bd97d3/DatagramSocket.java/clean/libjava/java/net/DatagramSocket.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
18851,
1435,
225,
288,
565,
327,
9380,
422,
446,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
18851,
1435,
225,
288,
565,
327,
9380,
422,
446,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public UploadDialog() { super("Storing files ..."); GridBagLayout grid = new GridBagLayout(); getContentPane().setLayout(grid); GridBagConstraints c = new GridBagConstraints(); c.insets = new Insets(5, 5, 5, 5); JLabel label = new JLabel("Stored:"); c.gridx = 0; c.gridy = 0; c.anchor = GridBagConstraints.WEST; c.fill = GridBagConstraints.NONE; grid.setConstraints(label, c); getContentPane().add(label); byDirProgress = new JProgressBar(); byDirProgress.setStringPainted(true); byDirProgress.setString("Calculating file sizes ..."); byDirProgress.setIndeterminate(true); c.gridx = 1; c.gridy = 0; c.anchor = GridBagConstraints.EAST; c.fill = GridBagConstraints.HORIZONTAL; grid.setConstraints(byDirProgress, c); getContentPane().add(byDirProgress); label = new JLabel("Directory:"); c.gridx = 0; c.gridy = 1; c.anchor = GridBagConstraints.WEST; c.fill = GridBagConstraints.NONE; grid.setConstraints(label, c); getContentPane().add(label); currentDir = new JTextField(30); currentDir.setEditable(false); c.gridx = 1; c.gridy = 1; c.anchor = GridBagConstraints.EAST; c.fill = GridBagConstraints.HORIZONTAL; grid.setConstraints(currentDir, c); getContentPane().add(currentDir); label = new JLabel("Uploading file:"); c.gridx = 0; c.gridy = 2; c.anchor = GridBagConstraints.WEST; c.fill = GridBagConstraints.NONE; grid.setConstraints(label, c); getContentPane().add(label); currentFile = new JTextField(30); currentFile.setEditable(false); c.gridx = 1; c.gridy = 2; c.anchor = GridBagConstraints.EAST; c.fill = GridBagConstraints.HORIZONTAL; grid.setConstraints(currentFile, c); getContentPane().add(currentFile); label = new JLabel("Size:"); c.gridx = 0; c.gridy = 3; c.anchor = GridBagConstraints.WEST; c.fill = GridBagConstraints.NONE; grid.setConstraints(label, c); getContentPane().add(label); currentSize = new JLabel("0K"); c.gridx = 1; c.gridy = 3; c.anchor = GridBagConstraints.EAST; c.fill = GridBagConstraints.HORIZONTAL; grid.setConstraints(currentSize, c); getContentPane().add(currentSize); JLabel status = new JLabel("Progress:"); c.gridx = 0; c.gridy = 4; c.anchor = GridBagConstraints.WEST; c.fill = GridBagConstraints.NONE; grid.setConstraints(status, c); getContentPane().add(status); progress = new JProgressBar(); progress.setIndeterminate(true); progress.setStringPainted(true); c.gridx = 1; c.gridy = 4; c.anchor = GridBagConstraints.EAST; c.fill = GridBagConstraints.HORIZONTAL; grid.setConstraints(progress, c); getContentPane().add(progress); messages = new JTextArea(5, 50); messages.setEditable(false); messages.setLineWrap(true); JScrollPane scroll = new JScrollPane( messages, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); scroll.setBorder(BorderFactory.createTitledBorder("Messages")); c.gridx = 0; c.gridy = 5; c.gridwidth = 2; c.anchor = GridBagConstraints.WEST; c.fill = GridBagConstraints.HORIZONTAL; grid.setConstraints(scroll, c); getContentPane().add(scroll); pack(); } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/96a020d1e295b0656cc0cf89c67a713d91bb61ad/UploadDialog.java/buggy/src/org/exist/client/UploadDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4777,
6353,
1435,
95,
202,
202,
9565,
2932,
510,
6053,
2354,
7070,
1769,
202,
202,
6313,
5013,
3744,
5222,
33,
2704,
6313,
5013,
3744,
5621,
202,
202,
588,
1350,
8485,
7675,
542... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4777,
6353,
1435,
95,
202,
202,
9565,
2932,
510,
6053,
2354,
7070,
1769,
202,
202,
6313,
5013,
3744,
5222,
33,
2704,
6313,
5013,
3744,
5621,
202,
202,
588,
1350,
8485,
7675,
542... | ||
private String generateOJBSqlType(String type) { | protected String generateOJBSqlType(String type) { | private String generateOJBSqlType(String type) { if (type.equals("int") || type.equals("java.lang.Integer")) { return "INTEGER"; } if (type.equals("java.lang.String")) { return "LONGVARCHAR"; } if (type.equals("boolean")) { return "INTEGER\" conversion=\"" + "org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFieldConversion"; } if (type.equals("float") || type.equals("java.lang.Float")) { return "FLOAT"; } if (type.equals("java.util.Date")) { return "DATE\" conversion=\"" + "org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlDateFieldConversion"; } return type; } | 29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/951eedc01ee537246da85396892850bfc418d30b/OJBModelOutput.java/clean/intermine/src/java/org/intermine/codegen/OJBModelOutput.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
2103,
51,
8877,
5101,
559,
12,
780,
618,
13,
288,
3639,
309,
261,
723,
18,
14963,
2932,
474,
7923,
747,
618,
18,
14963,
2932,
6290,
18,
4936,
18,
4522,
6,
3719,
288,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
2103,
51,
8877,
5101,
559,
12,
780,
618,
13,
288,
3639,
309,
261,
723,
18,
14963,
2932,
474,
7923,
747,
618,
18,
14963,
2932,
6290,
18,
4936,
18,
4522,
6,
3719,
288,
5411,
... |
public RubyNumeric op_mul(RubyNumeric other) { return other.multiplyWith(this); | public IRubyObject op_mul(IRubyObject other) { if (other instanceof RubyNumeric) { return ((RubyNumeric ) other).multiplyWith(this); } return callCoerced("*", other); | public RubyNumeric op_mul(RubyNumeric other) { return other.multiplyWith(this); } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyBignum.java/clean/src/org/jruby/RubyBignum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
16411,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
327,
1308,
18,
7027,
1283,
1190,
12,
2211,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
16411,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
327,
1308,
18,
7027,
1283,
1190,
12,
2211,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
case ABNORMAL_TEMINATION: | case ABNORMAL_TERMINATION: | public void run() { Address tmp_ping_dest; IpAddress ping_addr; int max_fetch_tries=10; // number of times a socket address is to be requested before giving up if(trace) log.trace("pinger_thread started"); // +++ remove while(pinger_thread != null) { tmp_ping_dest=determinePingDest(); // gets the neighbor to our right if(log.isDebugEnabled()) log.debug("determinePingDest()=" + tmp_ping_dest + ", pingable_mbrs=" + pingable_mbrs); if(tmp_ping_dest == null) { ping_dest=null; synchronized(pinger_mutex) { pinger_thread=null; } break; } ping_dest=tmp_ping_dest; ping_addr=fetchPingAddress(ping_dest); if(ping_addr == null) { if(log.isErrorEnabled()) log.error("socket address for " + ping_dest + " could not be fetched, retrying"); if(--max_fetch_tries <= 0) break; Util.sleep(2000); continue; } if(!setupPingSocket(ping_addr)) { // covers use cases #7 and #8 in GmsTests.txt if(log.isDebugEnabled()) log.debug("could not create socket to " + ping_dest + "; suspecting " + ping_dest); broadcastSuspectMessage(ping_dest); pingable_mbrs.removeElement(ping_dest); continue; } if(log.isDebugEnabled()) log.debug("ping_dest=" + ping_dest + ", ping_sock=" + ping_sock + ", cache=" + cache); // at this point ping_input must be non-null, otherwise setupPingSocket() would have thrown an exception try { if(ping_input != null) { int c=ping_input.read(); switch(c) { case NORMAL_TEMINATION: if(log.isDebugEnabled()) log.debug("peer closed socket normally"); synchronized(pinger_mutex) { pinger_thread=null; } break; case ABNORMAL_TEMINATION: handleSocketClose(null); break; default: break; } } } catch(IOException ex) { // we got here when the peer closed the socket --> suspect peer and then continue handleSocketClose(ex); } catch(Throwable catch_all_the_rest) { log.error("exception", catch_all_the_rest); } } if(log.isDebugEnabled()) log.debug("pinger thread terminated"); synchronized(pinger_mutex) { pinger_thread=null; } } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/5d5b3e7f359ac5b87dfc5bfeb391c5f00805972a/FD_SOCK.java/clean/src/org/jgroups/protocols/FD_SOCK.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
5267,
1853,
67,
1382,
67,
10488,
31,
3639,
14709,
1887,
10087,
67,
4793,
31,
3639,
509,
943,
67,
5754,
67,
2007,
33,
2163,
31,
225,
368,
1300,
434,
412... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
288,
3639,
5267,
1853,
67,
1382,
67,
10488,
31,
3639,
14709,
1887,
10087,
67,
4793,
31,
3639,
509,
943,
67,
5754,
67,
2007,
33,
2163,
31,
225,
368,
1300,
434,
412... |
} else { | } else { | private static boolean whiteSpaceHasInvalidPosition(final ASTNode element, final PsiFile file) { final ASTNode treeParent = element.getTreeParent(); if (isWS(element) && treeParent.getElementType() == ElementType.XML_TEXT) return false; if (treeParent.getPsi().getUserData(ParseUtil.UNCLOSED_ELEMENT_PROPERTY) != null) return false; if (hasNonEmptyPrev(element) && hasNonEmptyNext(element, file)) return false; if (treeParent.getElementType() == ElementType.XML_PROLOG) return false; if (treeParent.getElementType() == ElementType.HTML_DOCUMENT) return false; if (treeParent.getElementType() == ElementType.ERROR_ELEMENT) return false; if (treeParent.getElementType() instanceof IChameleonElementType) { if (((IChameleonElementType) treeParent.getElementType()).isParsable(treeParent.getText(), file.getProject())) { return false; } else { return true; } } else { return true; } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/96735ca7ff93fd7888903ef0019b76e8c47ac172/CodeEditUtil.java/clean/source/com/intellij/psi/impl/source/codeStyle/CodeEditUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1250,
9578,
3819,
5582,
1941,
2555,
12,
6385,
9183,
907,
930,
16,
727,
453,
7722,
812,
585,
13,
288,
565,
727,
9183,
907,
2151,
3054,
273,
930,
18,
588,
2471,
3054,
5621,
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,
3238,
760,
1250,
9578,
3819,
5582,
1941,
2555,
12,
6385,
9183,
907,
930,
16,
727,
453,
7722,
812,
585,
13,
288,
565,
727,
9183,
907,
2151,
3054,
273,
930,
18,
588,
2471,
3054,
5621,
565... |
lm = new LoadMonitorLinux(myThis); | lm = new LoadMonitor(myThis,thisCPURanking); | public void init() { this.forBalancing = new Vector(MAX_KNOWN_PEERS); this.forStealing = new Vector(MAX_KNOWN_PEERS); this.randomizer = new Random(); this.underloaded = false; /* We update the ranking */ CPURanking thisCPURanking = new LinuxCPURanking(); ranking = thisCPURanking.getRanking(); try { this.acquaintances = ((P2PService) P2PService.getLocalP2PService()).getAcquaintanceList(); } catch (Exception e) { e.printStackTrace(); } /* We update the lists */ this.addToBalanceList(MAX_KNOWN_PEERS); this.addToStealList(MAX_KNOWN_PEERS); // by now we use only P2P over Linux lm = new LoadMonitorLinux(myThis); new Thread(lm).start(); } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/3c5ce22f004414cc3ab13d11da83974d0f642bee/P2PLoadBalancer.java/buggy/src/org/objectweb/proactive/p2p/loadbalancer/P2PLoadBalancer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
1435,
288,
377,
202,
2211,
18,
1884,
38,
16142,
273,
394,
5589,
12,
6694,
67,
9308,
67,
1423,
11367,
1769,
377,
202,
2211,
18,
1884,
510,
73,
287,
310,
273,
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,
225,
202,
482,
918,
1208,
1435,
288,
377,
202,
2211,
18,
1884,
38,
16142,
273,
394,
5589,
12,
6694,
67,
9308,
67,
1423,
11367,
1769,
377,
202,
2211,
18,
1884,
510,
73,
287,
310,
273,
394,
... |
public void visitConstantExpression(ConstantExpression expression) { Object value = expression.getValue(); if (value == null) { cv.visitInsn(ACONST_NULL); } else if (value instanceof String) { cv.visitLdcInsn(value); } else if (value instanceof Number) { /** @todo it would be more efficient to generate class constants */ Number n = (Number) value; String className = BytecodeHelper.getClassInternalName(value.getClass().getName()); cv.visitTypeInsn(NEW, className); cv.visitInsn(DUP); String methodType; if (n instanceof Double) { cv.visitLdcInsn(n); methodType = "(D)V"; } else if (n instanceof Float) { cv.visitLdcInsn(n); methodType = "(F)V"; } else if (value instanceof Long) { cv.visitLdcInsn(n); methodType = "(J)V"; } else if (value instanceof BigDecimal) { cv.visitLdcInsn(n.toString()); methodType = "(Ljava/lang/String;)V"; } else if (value instanceof BigInteger) { cv.visitLdcInsn(n.toString()); methodType = "(Ljava/lang/String;)V"; } else if (value instanceof Integer){ cv.visitLdcInsn(n); methodType = "(I)V"; } else { throw new ClassGeneratorException( "Cannot generate bytecode for constant: " + value + " of type: " + value.getClass().getName() +". Numeric constant type not supported."); } cv.visitMethodInsn(INVOKESPECIAL, className, "<init>", methodType); } else if (value instanceof Boolean) { Boolean bool = (Boolean) value; String text = (bool.booleanValue()) ? "TRUE" : "FALSE"; cv.visitFieldInsn(GETSTATIC, "java/lang/Boolean", text, "Ljava/lang/Boolean;"); } else { throw new ClassGeneratorException( "Cannot generate bytecode for constant: " + value + " of type: " + value.getClass().getName()); } } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/c38dc7208744f1a7388f7471b277add7929e17b3/ClassGenerator.java/buggy/src/main/org/codehaus/groovy/classgen/ClassGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
6902,
2300,
12,
6902,
2300,
2652,
13,
288,
3639,
1033,
460,
273,
2652,
18,
24805,
5621,
3639,
309,
261,
1132,
422,
446,
13,
288,
5411,
8951,
18,
11658,
11796,
12,
2226,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
6902,
2300,
12,
6902,
2300,
2652,
13,
288,
3639,
1033,
460,
273,
2652,
18,
24805,
5621,
3639,
309,
261,
1132,
422,
446,
13,
288,
5411,
8951,
18,
11658,
11796,
12,
2226,
... | ||
Assert.assertTrue("Invoked wrong number of times", expectedCount == invocationCount); } | Assert.assertTrue("Invoked wrong number of times", expectedCount == invocationCount); } | public void verify() { Assert.assertTrue("Invoked wrong number of times", expectedCount == invocationCount); } | 2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/InvokeCountMatcher.java/clean/jmock/examples/timed-cache/src/test/jmock/examples/timedcache/InvokeCountMatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3929,
1435,
288,
202,
202,
8213,
18,
11231,
5510,
2932,
26215,
7194,
1300,
434,
4124,
3113,
2665,
1380,
422,
9495,
1380,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3929,
1435,
288,
202,
202,
8213,
18,
11231,
5510,
2932,
26215,
7194,
1300,
434,
4124,
3113,
2665,
1380,
422,
9495,
1380,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
_index.seek(recnum * DataBlock.SIZE_ON_DISK); | _index.seek((long)recnum * DataBlock.SIZE_ON_DISK); | private void createAndOverwrite(int recnum, Key key, byte[] data) throws IOException { Logger.minor(this, "createAndOverwrite("+recnum+","+key+")"); DataBlock b = new DataBlock(recnum, key, System.currentTimeMillis()); _index.seek(recnum * DataBlock.SIZE_ON_DISK); key.write(_index); getKeyMap().put(key, b); _index.writeLong(b.getLastAccessTime()); getAccessTimeList().addLast(b); getBlockStore().seek(recnum * blockSize); getBlockStore().write(data); getRecordNumberList().add(recnum, b); } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/0400e73e7503ab43211657c44d8448afd6346cce/DataStore.java/buggy/src/freenet/store/DataStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
30545,
20832,
12,
474,
1950,
2107,
16,
1929,
498,
16,
1160,
8526,
501,
13,
1216,
1860,
288,
202,
565,
4242,
18,
17364,
12,
2211,
16,
315,
2640,
1876,
20832,
2932,
15,
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,
225,
202,
1152,
918,
30545,
20832,
12,
474,
1950,
2107,
16,
1929,
498,
16,
1160,
8526,
501,
13,
1216,
1860,
288,
202,
565,
4242,
18,
17364,
12,
2211,
16,
315,
2640,
1876,
20832,
2932,
15,
39... |
if (text == null) | if (text == null) { | private void createRefreshJob() { refreshJob = new WorkbenchJob("Refresh Filter"){//$NON-NLS-1$ /* (non-Javadoc) * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { if(treeViewer.getControl().isDisposed()) return Status.CANCEL_STATUS; String text = getFilterString(); if (text == null) // filter text not being used return Status.OK_STATUS; boolean initial = initialText != null && initialText.equals(text); if (initial) { patternFilter.setPattern(null); } else if (text != null){ patternFilter.setPattern(text); } treeViewer.getControl().setRedraw(false); treeViewer.refresh(true); treeViewer.getControl().setRedraw(true); if (text.length() > 0 && !initial) { treeViewer.expandAll(); TreeItem[] items = getViewer().getTree().getItems(); if (items.length > 0) treeViewer.getTree().showItem(items[0]); // to prevent scrolling // enabled toolbar - there is text to clear // and the list is currently being filtered updateToolbar(true); } else { // disabled toolbar - there is no text to clear // and the list is currently not filtered updateToolbar(false); } return Status.OK_STATUS; } }; refreshJob.setSystem(true); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/FilteredTree.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
8323,
2278,
1435,
288,
202,
202,
9144,
2278,
273,
394,
4147,
22144,
2278,
2932,
8323,
4008,
7923,
95,
759,
8,
3993,
17,
5106,
17,
21,
8,
1082,
202,
20308,
261,
5836... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8323,
2278,
1435,
288,
202,
202,
9144,
2278,
273,
394,
4147,
22144,
2278,
2932,
8323,
4008,
7923,
95,
759,
8,
3993,
17,
5106,
17,
21,
8,
1082,
202,
20308,
261,
5836... |
void removeSelectionInterval(int index0, int index1); | void removeSelectionInterval(int anchor, int lead); | void removeSelectionInterval(int index0, int index1); | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/ListSelectionModel.java/clean/core/src/classpath/javax/javax/swing/ListSelectionModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1206,
6233,
4006,
12,
474,
770,
20,
16,
509,
770,
21,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1206,
6233,
4006,
12,
474,
770,
20,
16,
509,
770,
21,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
obj = m_expr.execute(m_lpi.getXPathContext()); m_nodeSet = (null != obj) ? obj.iter() : null; | m_nodeSet = m_expr.asIterator(xctxt, root); | public void setRoot(int root) { // System.out.println("root: "+root); XPathContext xctxt = m_lpi.getXPathContext(); PrefixResolver savedResolver = xctxt.getNamespaceContext(); try { xctxt.pushCurrentNode(root); xctxt.setNamespaceContext(m_lpi.getPrefixResolver()); // The setRoot operation can take place with a reset operation, // and so we may not be in the context of LocPathIterator#nextNode, // so we have to set up the variable context, execute the expression, // and then restore the variable context. XObject obj; if(m_lpi.getIsTopLevel()) { // System.out.println("calling m_expr.execute(m_lpi.getXPathContext())"); VariableStack vars = m_lpi.m_execContext.getVarStack(); // These three statements need to be combined into one operation. int savedStart = vars.getStackFrame(); vars.setStackFrame(m_lpi.m_stackFrame); obj = m_expr.execute(m_lpi.getXPathContext()); // These two statements need to be combined into one operation. vars.setStackFrame(savedStart); } else obj = m_expr.execute(m_lpi.getXPathContext()); // System.out.println("Back from m_expr.execute(m_lpi.getXPathContext()): "+obj); m_nodeSet = (null != obj) ? obj.iter() : null; m_peek = DTM.NULL; } catch (javax.xml.transform.TransformerException se) { // TODO: Fix... throw new org.apache.xml.utils.WrappedRuntimeException(se); } finally { xctxt.popCurrentNode(); xctxt.setNamespaceContext(savedResolver); } super.setRoot(root); } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/b95d1c87df6d6c5df6a3ef844f47c3f732846601/FilterExprWalker.java/buggy/src/org/apache/xpath/axes/FilterExprWalker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
31706,
12,
474,
1365,
13,
225,
288,
565,
368,
2332,
18,
659,
18,
8222,
2932,
3085,
30,
13773,
3085,
1769,
565,
10172,
1042,
25465,
273,
312,
67,
80,
7259,
18,
588,
14124,
104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
31706,
12,
474,
1365,
13,
225,
288,
565,
368,
2332,
18,
659,
18,
8222,
2932,
3085,
30,
13773,
3085,
1769,
565,
10172,
1042,
25465,
273,
312,
67,
80,
7259,
18,
588,
14124,
104... |
while ((c=es.read())!=-1) { errorMsg.append((char)c); if (!dead){ child.destroy(); dead = true; } | boolean dead = false; StringBuffer errorMsg = new StringBuffer("Fatal Error:\n"); BufferedReader besr = new BufferedReader(new InputStreamReader(child.getErrorStream())); String line = null; if ((line = besr.readLine()) != null) { errorMsg.append(line); child.destroy(); dead = true; | public static void main(String[] args) { JFrame jf = new JFrame(); String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("java.class.path"); String argsToBePassed = new String(); boolean headless = false; for (int a = 0; a < args.length; a++){ argsToBePassed = argsToBePassed.concat(" " + args[a]); if (args[a].equals("-n")){ headless=true; } } try { //if the nogui flag is present we force it into headless mode String runString = "java -Xmx650m -classpath " + jarfile; if (headless){ runString += " -Djava.awt.headless=true"; } runString += " edu.mit.wi.haploview.HaploView"+argsToBePassed; Process child = Runtime.getRuntime().exec(runString); int c; boolean dead = false; StringBuffer errorMsg = new StringBuffer(); InputStream es = child.getErrorStream(); InputStream is = child.getInputStream(); //while the child is alive we wait for error messages while ((c=es.read())!=-1) { errorMsg.append((char)c); if (!dead){ child.destroy(); dead = true; } } //if the child has exited without throwing an error (which should've been caught and dealt //with above) we read all the accumulated msgs to stdout and print them... while ((c=is.read())!=-1){ System.out.print((char)c); } if (dead){ JOptionPane.showMessageDialog(jf, "Fatal Error:\n" + errorMsg, null, JOptionPane.ERROR_MESSAGE); } } catch (Exception e) { JOptionPane.showMessageDialog(jf, "Error:\nUnable to launch Haploview.", null, JOptionPane.ERROR_MESSAGE); } System.exit(0); } | 51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/28687de59f333cb3a64e076a760a118f7d50754a/HVWrap.java/clean/edu/mit/wi/haploview/HVWrap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
804,
3219,
525,
74,
273,
394,
804,
3219,
5621,
3639,
514,
1577,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
1214,
8863,
3639,
514,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
804,
3219,
525,
74,
273,
394,
804,
3219,
5621,
3639,
514,
1577,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
1214,
8863,
3639,
514,... |
private BugzillaResultCollector searchLocalUnQual(IProgressMonitor monitor) { | private QueryHitCollector searchLocalUnQual(IProgressMonitor monitor) { | private BugzillaResultCollector searchLocalUnQual(IProgressMonitor monitor) { // get the element name for searching String elementName = javaElement.getElementName(); // setup the search result collector collector = new BugzillaSearchResultCollector(TasksUiPlugin.getTaskListManager().getTaskList()); collector.setOperation(this); collector.setProgressMonitor(monitor); // get all of the root tasks and start the search Set<ITask> tasks = TasksUiPlugin.getTaskListManager().getTaskList().getRootTasks(); searchLocal(tasks, collector, elementName, monitor); for (AbstractTaskContainer cat : TasksUiPlugin.getTaskListManager().getTaskList().getTaskContainers()) { searchLocal(cat.getChildren(), collector, elementName, monitor); } // return the collector return collector; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/859efd27ce7fbcfec8176f6792bbfd6610b5a47e/BugzillaMylarSearchOperation.java/clean/sandbox/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/bridge/bugs/BugzillaMylarSearchOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
16907,
15990,
1253,
7134,
1623,
2042,
984,
5628,
12,
45,
5491,
7187,
6438,
13,
288,
202,
202,
759,
336,
326,
930,
508,
364,
15300,
202,
202,
780,
14453,
273,
2252,
1046,
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,
16907,
15990,
1253,
7134,
1623,
2042,
984,
5628,
12,
45,
5491,
7187,
6438,
13,
288,
202,
202,
759,
336,
326,
930,
508,
364,
15300,
202,
202,
780,
14453,
273,
2252,
1046,
18,
... |
Value[] mergeFailed = n.getProperty(JcrConstants.JCR_MERGEFAILED).getValues(); | private void resolveMergeConflict(DavPropertySet setProperties, DavPropertyNameSet removePropertyNames) throws DavException { if (!exists()) { throw new DavException(DavServletResponse.SC_NOT_FOUND); } try { Node n = (Node)item; if (removePropertyNames.contains(AUTO_MERGE_SET)) { // retrieve the current jcr:mergeFailed property values if (!n.hasProperty(JcrConstants.JCR_MERGEFAILED)) { throw new DavException(DavServletResponse.SC_CONFLICT, "Attempt to resolve non-existing merge conflicts."); } Value[] mergeFailed = n.getProperty(JcrConstants.JCR_MERGEFAILED).getValues(); // resolve all remaining merge conflicts with 'cancel' for (int i = 0; i < mergeFailed.length; i++) { n.cancelMerge((Version)getRepositorySession().getNodeByUUID(mergeFailed[i].getString())); } // adjust removeProperty set removePropertyNames.remove(AUTO_MERGE_SET); } else if (setProperties.contains(AUTO_MERGE_SET) && setProperties.contains(PREDECESSOR_SET)){ // retrieve the current jcr:mergeFailed property values if (!n.hasProperty(JcrConstants.JCR_MERGEFAILED)) { throw new DavException(DavServletResponse.SC_CONFLICT, "Attempt to resolve non-existing merge conflicts."); } Value[] mergeFailed = n.getProperty(JcrConstants.JCR_MERGEFAILED).getValues(); // check which mergeFailed entries have been removed from the // auto-merge-set (cancelMerge) and have been moved over to the // predecessor set (doneMerge) List mergeset = new HrefProperty(setProperties.get(AUTO_MERGE_SET)).getHrefs(); List predecSet = new HrefProperty(setProperties.get(PREDECESSOR_SET)).getHrefs(); Session session = getRepositorySession(); for (int i = 0; i < mergeFailed.length; i++) { // build version-href from each entry in the jcr:mergeFailed property Version version = (Version) session.getNodeByUUID(mergeFailed[i].getString()); String href = getLocatorFromItem(version).getHref(true); // Test if that version has been removed from the merge-set. // thus indicating that the merge-conflict needs to be resolved. if (!mergeset.contains(href)) { // Test if the 'href' has been moved over to the // predecessor-set (thus 'doneMerge' is appropriate) or // if it is not present in the predecessor set and the // the conflict is resolved by 'cancelMerge'. if (predecSet.contains(href)) { n.doneMerge(version); } else { n.cancelMerge(version); } } } // adjust setProperty set setProperties.remove(AUTO_MERGE_SET); setProperties.remove(PREDECESSOR_SET); } /* else: no (valid) attempt to resolve merge conflict > return silently */ } catch (RepositoryException e) { throw new JcrDavException(e); } } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/7ba325f3cbca205a791a3f1bf2960098e4aa1b09/VersionControlledItemCollection.java/clean/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/VersionControlledItemCollection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
6786,
10732,
12,
40,
842,
1396,
694,
23126,
16,
19694,
463,
842,
13073,
694,
1206,
29932,
13,
3639,
1216,
463,
842,
503,
288,
3639,
309,
16051,
1808,
10756,
288,
5411,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6786,
10732,
12,
40,
842,
1396,
694,
23126,
16,
19694,
463,
842,
13073,
694,
1206,
29932,
13,
3639,
1216,
463,
842,
503,
288,
3639,
309,
16051,
1808,
10756,
288,
5411,
60... | |
RubyClass newClass = new RubyClass(runtime, runtime.getClasses().getClassClass(), this, parentModule, name); | RubyClass newClass = new RubyClass(runtime, runtime.getClass("Class"), this, parentModule, name); | public RubyClass newSubClass(String name, RubyModule parentModule) { RubyClass newClass = new RubyClass(runtime, runtime.getClasses().getClassClass(), this, parentModule, name); newClass.makeMetaClass(getMetaClass(), newClass); newClass.inheritedBy(this); runtime.getClasses().putClass(name, newClass, parentModule); return newClass; } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyClass.java/clean/src/org/jruby/RubyClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
797,
394,
1676,
797,
12,
780,
508,
16,
19817,
3120,
982,
3120,
13,
288,
3639,
19817,
797,
394,
797,
273,
394,
19817,
797,
12,
9448,
16,
3099,
18,
588,
797,
2932,
797,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
797,
394,
1676,
797,
12,
780,
508,
16,
19817,
3120,
982,
3120,
13,
288,
3639,
19817,
797,
394,
797,
273,
394,
19817,
797,
12,
9448,
16,
3099,
18,
588,
797,
2932,
797,
6,
... |
public Context() { | public Context() { | public Context() { setLanguageVersion(VERSION_DEFAULT); optimizationLevel = codegenClass != null ? 0 : -1; } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/5586a284813f024a7d52061d1ea71ae99876066e/Context.java/buggy/js/rhino/src/org/mozilla/javascript/Context.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1772,
1435,
288,
3639,
28993,
1444,
12,
5757,
67,
5280,
1769,
3639,
14850,
2355,
273,
23198,
797,
480,
446,
692,
374,
294,
300,
21,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
1772,
1435,
288,
3639,
28993,
1444,
12,
5757,
67,
5280,
1769,
3639,
14850,
2355,
273,
23198,
797,
480,
446,
692,
374,
294,
300,
21,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
... |
if (!subvista.isRepresentsCollection()) { | if (!subvista.isRepresentsCollection()) { | public boolean trySetValue(String name, Object value) throws XavaException { int idx = name.indexOf('.'); if (idx < 0) { if (getMembersNamesInGroup().contains(name)) { intentarSetValorEnGrupos(name, value); } else if (!getMemberNamesWithoutSeccions().contains(name) && !getMetaModel().getKeyPropertiesNames().contains(name) && !getMetaModel().getKeyReferencesNames().contains(name)) { if (!setValorEnSecciones(name, value)) { return false; } } else { if (hasSubview(name)) { View subvista = getSubview(name); if (!subvista.isRepresentsCollection()) { subvista.setValues((Map)value); } else { throw new XavaException("no_set_collection_value_error", name); } } else { if (values == null) values = new HashMap(); values.put(name, value); } } } else { String subvista = name.substring(0, idx); String miembro = name.substring(idx+1); getSubview(subvista).setValue(miembro, value); } return true; } | 14127 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14127/45c621729e1c4236083dbe7e04095e230362319d/View.java/buggy/OpenXava/src/org/openxava/view/View.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
775,
694,
620,
12,
780,
508,
16,
1033,
460,
13,
1216,
1139,
1629,
503,
288,
202,
202,
474,
2067,
273,
508,
18,
31806,
2668,
1093,
1769,
9506,
202,
430,
261,
3465,
411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
775,
694,
620,
12,
780,
508,
16,
1033,
460,
13,
1216,
1139,
1629,
503,
288,
202,
202,
474,
2067,
273,
508,
18,
31806,
2668,
1093,
1769,
9506,
202,
430,
261,
3465,
411,
... |
if (type == IResource.FILE && linkTargetFile.isDirectory()) { return createStatus(IStatus.ERROR, IDEWorkbenchMessages.CreateLinkedResourceGroup_linkTargetNotFile); } else if (type == IResource.FOLDER && !linkTargetFile.isDirectory()) { return createStatus(IStatus.ERROR, IDEWorkbenchMessages.CreateLinkedResourceGroup_linkTargetNotFolder); } return Status.OK_STATUS; } | if (type == IResource.FILE && linkTargetFile.isDirectory()) { return createStatus( IStatus.ERROR, IDEWorkbenchMessages.CreateLinkedResourceGroup_linkTargetNotFile); } else if (type == IResource.FOLDER && !linkTargetFile.isDirectory()) { return createStatus( IStatus.ERROR, IDEWorkbenchMessages.CreateLinkedResourceGroup_linkTargetNotFolder); } return Status.OK_STATUS; } | private IStatus validateFileType(IFileInfo linkTargetFile) { if (type == IResource.FILE && linkTargetFile.isDirectory()) { return createStatus(IStatus.ERROR, IDEWorkbenchMessages.CreateLinkedResourceGroup_linkTargetNotFile); } else if (type == IResource.FOLDER && !linkTargetFile.isDirectory()) { return createStatus(IStatus.ERROR, IDEWorkbenchMessages.CreateLinkedResourceGroup_linkTargetNotFolder); } return Status.OK_STATUS; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e816513e58ce5e8aac27c7ab2d1aae964d5540df/CreateLinkedResourceGroup.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CreateLinkedResourceGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
1482,
1954,
28941,
12,
45,
11995,
1692,
2326,
812,
13,
288,
3639,
309,
261,
723,
422,
467,
1420,
18,
3776,
597,
1692,
2326,
812,
18,
291,
2853,
10756,
288,
5411,
327,
752,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
1482,
1954,
28941,
12,
45,
11995,
1692,
2326,
812,
13,
288,
3639,
309,
261,
723,
422,
467,
1420,
18,
3776,
597,
1692,
2326,
812,
18,
291,
2853,
10756,
288,
5411,
327,
752,
14... |
if(change != null ) P4CmdOpts = "-c "+change; if(P4View == null) throw new BuildException("No view specified to delete"); | if(change != null ) { P4CmdOpts = "-c "+change; } if(P4View == null) { throw new BuildException("No view specified to delete"); } | public void execute() throws BuildException { if(change != null ) P4CmdOpts = "-c "+change; if(P4View == null) throw new BuildException("No view specified to delete"); execP4Command("-s delete "+P4CmdOpts+" "+P4View, new SimpleP4OutputHandler(this)); } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/19452beb7a1ae6b1eb14ef6e92feb0fbb95f69b4/P4Delete.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Delete.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
309,
12,
3427,
480,
446,
262,
453,
24,
5931,
5476,
273,
3701,
71,
13773,
3427,
31,
3639,
309,
12,
52,
24,
1767,
422,
446,
13,
604,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
309,
12,
3427,
480,
446,
262,
453,
24,
5931,
5476,
273,
3701,
71,
13773,
3427,
31,
3639,
309,
12,
52,
24,
1767,
422,
446,
13,
604,
394,
... |
NodeState thisState = (NodeState) getOrCreateTransientItemState(); Set mixins = new HashSet(thisState.getMixinTypeNames()); mixins.add(ntName); thisState.setMixinTypeNames(mixins); | try { NodeState thisState = (NodeState) getOrCreateTransientItemState(); Set mixins = new HashSet(thisState.getMixinTypeNames()); mixins.add(ntName); thisState.setMixinTypeNames(mixins); | public void addMixin(String mixinName) throws NoSuchNodeTypeException, ConstraintViolationException, RepositoryException { // check state of this instance checkItemState(); // check if versioning allows write if (!safeIsCheckedOut()) { String msg = safeGetJCRPath() + ": cannot add a mixin node type to a checked-in node"; log.error(msg); throw new ConstraintViolationException(msg); } // check protected flag if (definition.isProtected()) { String msg = safeGetJCRPath() + ": cannot add a mixin node type to a protected node"; log.error(msg); throw new ConstraintViolationException(msg); } QName ntName; try { ntName = QName.fromJCRName(mixinName, session.getNamespaceResolver()); } catch (IllegalNameException ine) { throw new RepositoryException("invalid mixin type name: " + mixinName, ine); } catch (UnknownPrefixException upe) { throw new RepositoryException("invalid mixin type name: " + mixinName, upe); } NodeTypeManagerImpl ntMgr = session.getNodeTypeManager(); NodeTypeImpl mixin = ntMgr.getNodeType(ntName); if (!mixin.isMixin()) { throw new RepositoryException(mixinName + ": not a mixin node type"); } if (nodeType.isDerivedFrom(ntName)) { throw new RepositoryException(mixinName + ": already contained in primary node type"); } // build effective node type of mixin's & primary type in order to detect conflicts NodeTypeRegistry ntReg = ntMgr.getNodeTypeRegistry(); EffectiveNodeType entExisting; try { // existing mixin's HashSet set = new HashSet(((NodeState) state).getMixinTypeNames()); // primary type set.add(nodeType.getQName()); // build effective node type representing primary type including existing mixin's entExisting = ntReg.buildEffectiveNodeType((QName[]) set.toArray(new QName[set.size()])); if (entExisting.includesNodeType(ntName)) { throw new RepositoryException(mixinName + ": already contained in mixin types"); } // add new mixin set.add(ntName); // try to build new effective node type (will throw in case of conflicts) ntReg.buildEffectiveNodeType((QName[]) set.toArray(new QName[set.size()])); } catch (NodeTypeConflictException ntce) { throw new ConstraintViolationException(ntce.getMessage()); } // modify the state of this node NodeState thisState = (NodeState) getOrCreateTransientItemState(); // add mixin name Set mixins = new HashSet(thisState.getMixinTypeNames()); mixins.add(ntName); thisState.setMixinTypeNames(mixins); // set jcr:mixinTypes property setMixinTypesProperty(mixins); // add 'auto-create' properties defined in mixin type PropertyDef[] pda = mixin.getAutoCreatePropertyDefs(); for (int i = 0; i < pda.length; i++) { PropertyDefImpl pd = (PropertyDefImpl) pda[i]; // make sure that the property is not already defined by primary type // or existing mixin's NodeTypeImpl declaringNT = (NodeTypeImpl) pd.getDeclaringNodeType(); if (!entExisting.includesNodeType(declaringNT.getQName())) { createChildProperty(pd.getQName(), pd.getRequiredType(), pd); } } // recursively add 'auto-create' child nodes defined in mixin type NodeDef[] nda = mixin.getAutoCreateNodeDefs(); for (int i = 0; i < nda.length; i++) { NodeDefImpl nd = (NodeDefImpl) nda[i]; // make sure that the child node is not already defined by primary type // or existing mixin's NodeTypeImpl declaringNT = (NodeTypeImpl) nd.getDeclaringNodeType(); if (!entExisting.includesNodeType(declaringNT.getQName())) { createChildNode(nd.getQName(), nd, (NodeTypeImpl) nd.getDefaultPrimaryType(), null); } } // check for special node types // todo centralize version history creation code (currently in NodeImpl.addMixin & ItemImpl.initVersionHistories if (ntName.equals(NodeTypeRegistry.MIX_VERSIONABLE)) { VersionHistory hist = rep.getVersionManager().createVersionHistory(this); internalSetProperty(VersionImpl.PROPNAME_VERSION_HISTORY, InternalValue.create(new UUID(hist.getUUID()))); internalSetProperty(VersionImpl.PROPNAME_BASE_VERSION, InternalValue.create(new UUID(hist.getRootVersion().getUUID()))); internalSetProperty(VersionImpl.PROPNAME_IS_CHECKED_OUT, InternalValue.create(true)); internalSetProperty(VersionImpl.PROPNAME_PREDECESSORS, new InternalValue[]{InternalValue.create(new UUID(hist.getRootVersion().getUUID()))}); } } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/7dc1d5c8f34f8e236515a53086599d9c5c4f97c4/NodeImpl.java/clean/src/java/org/apache/jackrabbit/jcr/core/NodeImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
14439,
12,
780,
11682,
461,
13,
202,
565,
1216,
5823,
907,
14144,
16,
10770,
27052,
16,
202,
565,
13367,
288,
202,
759,
866,
919,
434,
333,
791,
202,
1893,
1180,
1119,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
14439,
12,
780,
11682,
461,
13,
202,
565,
1216,
5823,
907,
14144,
16,
10770,
27052,
16,
202,
565,
13367,
288,
202,
759,
866,
919,
434,
333,
791,
202,
1893,
1180,
1119,
5... |
return excludePattern; } | return excludePattern; } | public static FilePatternMatcher getExcludePattern() { return excludePattern; } | 49097 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49097/5626948860264209205e36947b9e39d53b3f3974/ConfigurationOptions.java/buggy/src/net/sf/statcvs/output/ConfigurationOptions.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1387,
3234,
6286,
336,
12689,
3234,
1435,
288,
202,
202,
2463,
4433,
3234,
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,... | [
1,
1,
1,
1,
1,
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,
760,
1387,
3234,
6286,
336,
12689,
3234,
1435,
288,
202,
202,
2463,
4433,
3234,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
reshape (x, y, width, height); | setBounds (r.x, r.y, r.width, r.height); | public void setBounds(int x, int y, int width, int height) { reshape (x, y, width, height); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/cfd5d26ab69af1fe494534bdf03f35be22c13bd8/Rectangle.java/buggy/core/src/classpath/java/java/awt/Rectangle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
5694,
12,
474,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
13,
225,
288,
565,
6985,
261,
92,
16,
677,
16,
1835,
16,
2072,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
5694,
12,
474,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
13,
225,
288,
565,
6985,
261,
92,
16,
677,
16,
1835,
16,
2072,
1769,
202,
97,
2,
-100,
-100,
-100,
-1... |
IPreprocessor s = new Preprocessor( input, fileName, info, ourRequestor, ourMode, language, log ); | IPreprocessor s = new Preprocessor( input, fileName, info, ourRequestor, ourMode, language, log, extensionFactory.createScannerExtension() ); | public static IPreprocessor createPreprocessor( Reader input, String fileName, IScannerInfo info, ParserMode mode, ParserLanguage language, ISourceElementRequestor requestor, IParserLogService logService ) { if( input == null ) throw new ParserFactoryError( ParserFactoryError.Kind.NULL_READER ); if( fileName == null ) throw new ParserFactoryError( ParserFactoryError.Kind.NULL_FILENAME ); if( info == null ) throw new ParserFactoryError( ParserFactoryError.Kind.NULL_CONFIG ); if( language == null ) throw new ParserFactoryError( ParserFactoryError.Kind.NULL_LANGUAGE ); IParserLogService log = ( logService == null ) ? createDefaultLogService() : logService; ParserMode ourMode = ( (mode == null )? ParserMode.COMPLETE_PARSE : mode ); ISourceElementRequestor ourRequestor = (( requestor == null) ? new NullSourceElementRequestor() : requestor ); IPreprocessor s = new Preprocessor( input, fileName, info, ourRequestor, ourMode, language, log ); return s; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/6dbe39d0d05fc79c35b81cae69bd88ac089585bb/ParserFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ParserFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
467,
1386,
8700,
752,
1386,
8700,
12,
5393,
810,
16,
514,
3968,
16,
467,
11338,
966,
1123,
16,
6783,
2309,
1965,
16,
6783,
3779,
2653,
16,
467,
1830,
1046,
691,
280,
590,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
1386,
8700,
752,
1386,
8700,
12,
5393,
810,
16,
514,
3968,
16,
467,
11338,
966,
1123,
16,
6783,
2309,
1965,
16,
6783,
3779,
2653,
16,
467,
1830,
1046,
691,
280,
590,
280... |
int textWidth = x + width - xDraw - marginRight(); | int textWidth = x + width - xDraw - marginRight(false); | void drawUnselected(GC gc) { // Do not draw partial items if (!isShowing()) return; if (background != null || bgImage != null || gradientColors != null) { int x1 = x, y1 = parent.onBottom ? y : y+1; int x2 = x + width, y2 = parent.onBottom ? y+height-1 : y+height; int index = parent.indexOf(this); if (!parent.simple && !parent.single && parent.selectedIndex != -1) { if (parent.selectedIndex + 1 == index) { x1 -= CTabFolder.CURVE_WIDTH/2; } if (parent.selectedIndex - 1 == index) { x2 += CTabFolder.CURVE_WIDTH/2; } } int[] shape = null; if (index == parent.firstIndex) { if (parent.borderLeft != 0) x1 += 1; int[] left = parent.onBottom ? CTabFolder.BOTTOM_LEFT_CORNER : CTabFolder.TOP_LEFT_CORNER; shape = new int[left.length+6]; int i = 0; shape[i++] = x1; shape[i++] = parent.onBottom ? y1 : y2; for (int j = 0; j < left.length/2; j++) { shape[i++] = x1 + left[2*j]; shape[i++] = parent.onBottom ? y2 + left[2*j+1] : y1 + left[2*j+1] - 1; if (parent.borderLeft == 0) shape[i-1] += parent.onBottom ? 1 : -1; } shape[i++] = x2; shape[i++] = parent.onBottom ? y2 : y1; shape[i++] = x2; shape[i++] = parent.onBottom ? y1 : y2; } else { shape = new int[] {x1,y1, x2,y1, x2,y2, x1,y2}; } Color defaultBackground = background != null ? background : parent.getBackground(); parent.drawBackground(gc, shape, defaultBackground, bgImage, gradientColors, gradientPercents, gradientVertical); } // draw border if (parent.indexOf(this) != parent.selectedIndex - 1) { gc.setForeground(CTabFolder.borderColor); gc.drawLine(x + width - 1, y, x + width - 1, y + height); } // draw Image int xDraw = x + marginLeft(); Image image = getImage(); if (image != null && parent.showUnselectedImage) { Rectangle imageBounds = image.getBounds(); int imageX = xDraw; int imageHeight = imageBounds.height; int imageY = y + (height - imageHeight) / 2; imageY += parent.onBottom ? -1 : 1; int imageWidth = imageBounds.width * imageHeight / imageBounds.height; gc.drawImage(image, imageBounds.x, imageBounds.y, imageBounds.width, imageBounds.height, imageX, imageY, imageWidth, imageHeight); xDraw += imageWidth + INTERNAL_SPACING; } // draw Text int textWidth = x + width - xDraw - marginRight(); if (closeRect.width > 0) textWidth -= closeRect.width + INTERNAL_SPACING; Font gcFont = gc.getFont(); if (font != null) { gc.setFont(font); } if (shortenedText == null || shortenedTextWidth != textWidth) { shortenedText = shortenText(gc, getText(), textWidth); shortenedTextWidth = textWidth; } Point extent = gc.textExtent(shortenedText, FLAGS); int textY = y + (height - extent.y) / 2; textY += parent.onBottom ? -1 : 1; gc.setForeground(foreground != null ? foreground : parent.getForeground()); gc.drawText(shortenedText, xDraw, textY, FLAGS); gc.setFont(gcFont); // draw close if (parent.showUnselectedClose && (parent.showClose || showClose)) drawClose(gc);} | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/c6fd4be6320b2facfb9f1ed9f239ccc09008db10/CTabItem.java/clean/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
3724,
984,
8109,
12,
15396,
8859,
13,
288,
202,
759,
2256,
486,
3724,
4702,
1516,
202,
430,
16051,
291,
5706,
310,
10756,
327,
31,
202,
430,
261,
9342,
480,
446,
747,
7611,
2040,
480,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
3724,
984,
8109,
12,
15396,
8859,
13,
288,
202,
759,
2256,
486,
3724,
4702,
1516,
202,
430,
16051,
291,
5706,
310,
10756,
327,
31,
202,
430,
261,
9342,
480,
446,
747,
7611,
2040,
480,
4... |
public DuplicateNameException(String name) { this.name = name; } | public DuplicateNameException() { } | public DuplicateNameException(String name) { this.name = name; } | 6381 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6381/2e9493784e397205b53ae78e8cc47debb40e6c50/DuplicateNameException.java/buggy/ocl20/src/tudresden/ocl20/core/parser/astgen/DuplicateNameException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19072,
26771,
12,
780,
508,
13,
288,
3639,
333,
18,
529,
273,
508,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
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,
19072,
26771,
12,
780,
508,
13,
288,
3639,
333,
18,
529,
273,
508,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Object lock = queue.getLock(); while (true) { dequeue(); synchronized (lock) { while (queue.isEmpty()) { try { lock.wait(); break; } catch (InterruptedException ex) { } } } } } | Object lock = queue.getLock(); while (isRunning) { dequeue(); synchronized (lock) { while (queue.isEmpty()) { try { lock.wait(); break; } catch (InterruptedException ex) { } } } } } | public void run() { Object lock = queue.getLock(); while (true) { dequeue(); synchronized (lock) { while (queue.isEmpty()) { try { lock.wait(); break; } catch (InterruptedException ex) { } } } } } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/c067a0dcefa4982f3978854fd7545d5d469df162/SerialThreadRunner.java/clean/core/src/org/cougaar/core/thread/SerialThreadRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
225,
202,
95,
202,
565,
1033,
2176,
273,
2389,
18,
588,
2531,
5621,
202,
565,
1323,
261,
3767,
13,
288,
202,
202,
323,
4000,
5621,
202,
202,
22043,
261,
739,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
225,
202,
95,
202,
565,
1033,
2176,
273,
2389,
18,
588,
2531,
5621,
202,
565,
1323,
261,
3767,
13,
288,
202,
202,
323,
4000,
5621,
202,
202,
22043,
261,
739,
... |
assertEqualContent(new File(System.getProperty("root"), "src/etc/testcases/taskdefs/fixcrlf/expected/crcrlf.dos"), new File(System.getProperty("root"), "src/etc/testcases/taskdefs/fixcrlf/result/crcrlf")); | public void testCrCrLfSequenceDos() throws IOException { executeTarget("testCrCrLfSequence-dos"); assertEqualContent(new File(System.getProperty("root"), "src/etc/testcases/taskdefs/fixcrlf/expected/crcrlf.dos"), new File(System.getProperty("root"), "src/etc/testcases/taskdefs/fixcrlf/result/crcrlf")); } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/2f195a1558eebdf368e708a2663f059218fcea2f/FixCrLfTest.java/buggy/src/testcases/org/apache/tools/ant/taskdefs/FixCrLfTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
12893,
12893,
48,
74,
4021,
40,
538,
1435,
1216,
1860,
288,
3639,
1836,
2326,
2932,
3813,
12893,
12893,
48,
74,
4021,
17,
19219,
8863,
3639,
1815,
5812,
1350,
12,
2704,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12893,
12893,
48,
74,
4021,
40,
538,
1435,
1216,
1860,
288,
3639,
1836,
2326,
2932,
3813,
12893,
12893,
48,
74,
4021,
17,
19219,
8863,
3639,
1815,
5812,
1350,
12,
2704,
1... | |
jScrollPane1.setViewportView(jEditorPane1); bugDetailsTabbedPane.addTab("Details", jScrollPane1); | private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; consoleSplitter = new javax.swing.JSplitPane(); navigatorViewSplitter = new javax.swing.JSplitPane(); navigatorScrollPane = new javax.swing.JScrollPane(); navigatorTree = new javax.swing.JTree(); viewPanel = new javax.swing.JPanel(); emptyPanel = new javax.swing.JPanel(); reportPanel = new javax.swing.JPanel(); editProjectPanel = new javax.swing.JPanel(); jarFileLabel = new javax.swing.JLabel(); jarNameTextField = new javax.swing.JTextField(); addJarButton = new javax.swing.JButton(); jarFileListLabel = new javax.swing.JLabel(); sourceDirLabel = new javax.swing.JLabel(); srcDirTextField = new javax.swing.JTextField(); addSourceDirButton = new javax.swing.JButton(); sourceDirListLabel = new javax.swing.JLabel(); removeJarButton = new javax.swing.JButton(); removeSrcDirButton = new javax.swing.JButton(); jSeparator1 = new javax.swing.JSeparator(); browseJarButton = new javax.swing.JButton(); browseSrcDirButton = new javax.swing.JButton(); editProjectLabel = new javax.swing.JLabel(); jSeparator2 = new javax.swing.JSeparator(); findBugsButton = new javax.swing.JButton(); jSeparator4 = new javax.swing.JSeparator(); jarFileListScrollPane = new javax.swing.JScrollPane(); jarFileList = new javax.swing.JList(); sourceDirListScrollPane = new javax.swing.JScrollPane(); sourceDirList = new javax.swing.JList(); bugTreePanel = new javax.swing.JPanel(); groupByChooser = new javax.swing.JComboBox(); groupByLabel = new javax.swing.JLabel(); bugTreeBugDetailsSplitter = new javax.swing.JSplitPane(); bugTreeScrollPane = new javax.swing.JScrollPane(); bugTree = new javax.swing.JTree(); bugDetailsTabbedPane = new javax.swing.JTabbedPane(); sourceTextAreaScrollPane = new javax.swing.JScrollPane(); sourceTextArea = new javax.swing.JTextArea(); jScrollPane1 = new javax.swing.JScrollPane(); jEditorPane1 = new javax.swing.JEditorPane(); consoleScrollPane = new javax.swing.JScrollPane(); consoleMessageArea = new javax.swing.JTextArea(); theMenuBar = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); newProjectItem = new javax.swing.JMenuItem(); openProjectItem = new javax.swing.JMenuItem(); saveProjectItem = new javax.swing.JMenuItem(); closeProjectItem = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JSeparator(); exitItem = new javax.swing.JMenuItem(); viewMenu = new javax.swing.JMenu(); viewConsoleItem = new javax.swing.JCheckBoxMenuItem(); helpMenu = new javax.swing.JMenu(); aboutItem = new javax.swing.JMenuItem(); setTitle("FindBugs"); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } }); consoleSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); consoleSplitter.setResizeWeight(1.0); consoleSplitter.setOneTouchExpandable(true); consoleSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { consoleSplitterPropertyChange(evt); } }); navigatorScrollPane.setPreferredSize(new java.awt.Dimension(140, 0)); navigatorTree.setModel(createNavigatorTreeModel()); navigatorScrollPane.setViewportView(navigatorTree); navigatorViewSplitter.setLeftComponent(navigatorScrollPane); viewPanel.setLayout(new java.awt.CardLayout()); viewPanel.add(emptyPanel, "EmptyPanel"); viewPanel.add(reportPanel, "ReportPanel"); editProjectPanel.setLayout(new java.awt.GridBagLayout()); jarFileLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileLabel.setText("Jar file:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileLabel, gridBagConstraints); jarNameTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jarNameTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(jarNameTextField, gridBagConstraints); addJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); addJarButton.setText("Add"); addJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addJarButton, gridBagConstraints); jarFileListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileListLabel.setText("Jar Files:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListLabel, gridBagConstraints); sourceDirLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirLabel.setText("Source Dir:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirLabel, gridBagConstraints); srcDirTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { srcDirTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(srcDirTextField, gridBagConstraints); addSourceDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); addSourceDirButton.setText("Add"); addSourceDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addSourceDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 6; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addSourceDirButton, gridBagConstraints); sourceDirListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirListLabel.setText("Source Dirs:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListLabel, gridBagConstraints); removeJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeJarButton.setText("Remove"); removeJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeJarButton, gridBagConstraints); removeSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeSrcDirButton.setText("Remove"); removeSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 7; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeSrcDirButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator1, gridBagConstraints); browseJarButton.setText("..."); browseJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseJarButton, gridBagConstraints); browseSrcDirButton.setText("..."); browseSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 6; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseSrcDirButton, gridBagConstraints); editProjectLabel.setBackground(new java.awt.Color(0, 0, 204)); editProjectLabel.setFont(new java.awt.Font("Dialog", 1, 24)); editProjectLabel.setForeground(new java.awt.Color(255, 255, 255)); editProjectLabel.setText("Project"); editProjectLabel.setOpaque(true); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; editProjectPanel.add(editProjectLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator2, gridBagConstraints); findBugsButton.setText("Find Bugs!"); findBugsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { findBugsButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.gridwidth = 4; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(findBugsButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator4, gridBagConstraints); jarFileListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); jarFileList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); jarFileList.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jarFileListScrollPane.setViewportView(jarFileList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.7; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListScrollPane, gridBagConstraints); sourceDirListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); sourceDirList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); sourceDirList.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); sourceDirListScrollPane.setViewportView(sourceDirList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.3; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListScrollPane, gridBagConstraints); viewPanel.add(editProjectPanel, "EditProjectPanel"); bugTreePanel.setLayout(new java.awt.GridBagLayout()); groupByChooser.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { groupByChooserActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; bugTreePanel.add(groupByChooser, gridBagConstraints); groupByLabel.setFont(new java.awt.Font("Dialog", 0, 12)); groupByLabel.setText("Group:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; bugTreePanel.add(groupByLabel, gridBagConstraints); bugTreeBugDetailsSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); bugTreeBugDetailsSplitter.setResizeWeight(1.0); bugTreeBugDetailsSplitter.setOneTouchExpandable(true); bugTreeScrollPane.setViewportView(bugTree); bugTreeBugDetailsSplitter.setLeftComponent(bugTreeScrollPane); sourceTextAreaScrollPane.setMinimumSize(new java.awt.Dimension(22, 180)); sourceTextAreaScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); sourceTextArea.setEditable(false); sourceTextArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12)); sourceTextAreaScrollPane.setViewportView(sourceTextArea); bugDetailsTabbedPane.addTab("Source code", sourceTextAreaScrollPane); jScrollPane1.setViewportView(jEditorPane1); bugDetailsTabbedPane.addTab("Details", jScrollPane1); bugTreeBugDetailsSplitter.setRightComponent(bugDetailsTabbedPane); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; bugTreePanel.add(bugTreeBugDetailsSplitter, gridBagConstraints); viewPanel.add(bugTreePanel, "BugTree"); navigatorViewSplitter.setRightComponent(viewPanel); consoleSplitter.setTopComponent(navigatorViewSplitter); consoleScrollPane.setMinimumSize(new java.awt.Dimension(22, 100)); consoleScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); consoleMessageArea.setBackground(new java.awt.Color(204, 204, 204)); consoleMessageArea.setEditable(false); consoleMessageArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12)); consoleMessageArea.setMinimumSize(new java.awt.Dimension(0, 0)); consoleMessageArea.setAutoscrolls(false); consoleScrollPane.setViewportView(consoleMessageArea); consoleSplitter.setBottomComponent(consoleScrollPane); getContentPane().add(consoleSplitter, java.awt.BorderLayout.CENTER); theMenuBar.setFont(new java.awt.Font("Dialog", 0, 12)); fileMenu.setMnemonic('F'); fileMenu.setText("File"); fileMenu.setFont(new java.awt.Font("Dialog", 0, 12)); newProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); newProjectItem.setMnemonic('N'); newProjectItem.setText("New Project"); newProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { newProjectItemActionPerformed(evt); } }); fileMenu.add(newProjectItem); openProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); openProjectItem.setMnemonic('O'); openProjectItem.setText("Open Project"); openProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openProjectItemActionPerformed(evt); } }); fileMenu.add(openProjectItem); saveProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveProjectItem.setMnemonic('S'); saveProjectItem.setText("Save project"); saveProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveProjectItemActionPerformed(evt); } }); fileMenu.add(saveProjectItem); closeProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); closeProjectItem.setMnemonic('C'); closeProjectItem.setText("Close Project"); fileMenu.add(closeProjectItem); fileMenu.add(jSeparator3); exitItem.setFont(new java.awt.Font("Dialog", 0, 12)); exitItem.setMnemonic('X'); exitItem.setText("Exit"); exitItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitItemActionPerformed(evt); } }); fileMenu.add(exitItem); theMenuBar.add(fileMenu); viewMenu.setMnemonic('V'); viewMenu.setText("View"); viewMenu.setFont(new java.awt.Font("Dialog", 0, 12)); viewConsoleItem.setMnemonic('C'); viewConsoleItem.setSelected(true); viewConsoleItem.setText("Console"); viewConsoleItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewConsoleItemActionPerformed(evt); } }); viewMenu.add(viewConsoleItem); theMenuBar.add(viewMenu); helpMenu.setMnemonic('H'); helpMenu.setText("Help"); helpMenu.setFont(new java.awt.Font("Dialog", 0, 12)); aboutItem.setFont(new java.awt.Font("Dialog", 0, 12)); aboutItem.setMnemonic('A'); aboutItem.setText("About"); aboutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { aboutItemActionPerformed(evt); } }); helpMenu.add(aboutItem); theMenuBar.add(helpMenu); setJMenuBar(theMenuBar); pack(); }//GEN-END:initComponents | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/7d772c177466a59304413107b7d6321828b96e63/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
3639,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
3639,
2983,
26738,
273,
394,
6863,
18,
5328,
310,
18,
46,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
3639,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
3639,
2983,
26738,
273,
394,
6863,
18,
5328,
310,
18,
46,
55... | |
public boolean isNodeAfter(Node node1, Node node2) { // Assume first that the nodes are DTM nodes, since discovering node // order is massivly faster for the DTM. try { int index1 = ((DOMOrder) node1).getUid(); int index2 = ((DOMOrder) node2).getUid(); return index1 <= index2; } catch (ClassCastException cce) { // isNodeAfter will return true if node is after countedNode // in document order. The base isNodeAfter is sloooow (relatively) return super.isNodeAfter(node1, node2); } } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/a8855c631cbd476a4ac4111fbc8a443f995165b3/DOM2Helper.java/buggy/src/org/apache/xpath/DOM2Helper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
28452,
4436,
12,
907,
756,
21,
16,
2029,
756,
22,
13,
225,
288,
565,
368,
15983,
1122,
716,
326,
2199,
854,
19854,
2199,
16,
3241,
10372,
310,
756,
377,
368,
1353,
353,
8039... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
28452,
4436,
12,
907,
756,
21,
16,
2029,
756,
22,
13,
225,
288,
565,
368,
15983,
1122,
716,
326,
2199,
854,
19854,
2199,
16,
3241,
10372,
310,
756,
377,
368,
1353,
353,
8039... | ||
if (o instanceof StringMapEntry) return ((String) getKey()).compareTo(((StringMapEntry) o).getKey()); if (o instanceof String) return ((String) getKey()).compareTo(o); | if (o instanceof StringMapEntry) return ((String) getKey()).compareTo((String)((StringMapEntry) o).getKey()); if (o instanceof String) return ((String) getKey()).compareTo((String)o); | public int compareTo(Object o) { if (o == null) return -1; if (o instanceof StringMapEntry) return ((String) getKey()).compareTo(((StringMapEntry) o).getKey()); if (o instanceof String) return ((String) getKey()).compareTo(o); return -2; } | 27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/01979c08b3f3349252f807ba4b1336dc3270cbed/OrderedProperties.java/buggy/core/java/src/net/i2p/util/OrderedProperties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
9292,
12,
921,
320,
13,
288,
5411,
309,
261,
83,
422,
446,
13,
327,
300,
21,
31,
5411,
309,
261,
83,
1276,
514,
863,
1622,
13,
327,
14015,
780,
13,
3579,
1435,
2934,
9877,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
9292,
12,
921,
320,
13,
288,
5411,
309,
261,
83,
422,
446,
13,
327,
300,
21,
31,
5411,
309,
261,
83,
1276,
514,
863,
1622,
13,
327,
14015,
780,
13,
3579,
1435,
2934,
9877,
... |
{ FightFrame.showLocation( "desc_effect.php?whicheffect=" + StatusEffectDatabase.getEffectID( ((AdventureResult) elementList.getSelectedValue()).getName() ) ); | { FightFrame.showLocation( "desc_effect.php?whicheffect=" + StatusEffectDatabase.getEffectId( ((AdventureResult) elementList.getSelectedValue()).getName() ) ); | public void actionCancelled() { FightFrame.showLocation( "desc_effect.php?whicheffect=" + StatusEffectDatabase.getEffectID( ((AdventureResult) elementList.getSelectedValue()).getName() ) ); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/db652071b06715a4456f702f081fbe5b47aa5a70/SkillBuffFrame.java/clean/src/net/sourceforge/kolmafia/SkillBuffFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1301,
21890,
1435,
202,
202,
95,
202,
42,
750,
3219,
18,
4500,
2735,
12,
315,
5569,
67,
13867,
18,
2684,
35,
3350,
335,
580,
3736,
1546,
397,
2685,
12477,
4254,
18,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1301,
21890,
1435,
202,
202,
95,
202,
42,
750,
3219,
18,
4500,
2735,
12,
315,
5569,
67,
13867,
18,
2684,
35,
3350,
335,
580,
3736,
1546,
397,
2685,
12477,
4254,
18,
588,... |
IListNode list = (func == '`') ? (IListNode) new DXStrNode(position) : new DStrNode(position); | IListNode list = (func == '`') ? (IListNode) new DXStrNode(position) : new DStrNode(position); | private int parseString(int func, int closeQuote, int openQuote) { if (func == '\'') { return parseSingleQuotedString(closeQuote, openQuote); } if (func == 0) { // read 1 line for heredoc // -1 for chomp yaccValue = support.readLine(); return Token.tSTRING; } ISourcePosition position = support.getPosition(); StringToken token = new StringToken(support, errorHandler, position); IListNode list = (func == '`') ? (IListNode) new DXStrNode(position) : new DStrNode(position); int nest = 0; boolean lDyn = false; for (char c = support.read(); c != closeQuote || nest > 0; c = support.read()) { switch (c) { case '\0' : errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; case '#' : try { lDyn = parseExpressionString(list, (char) closeQuote, token) || lDyn; } catch (EOFException e) { errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; } continue; case '\\' : c = support.read(); if (c == '\n') { continue; } else if (c == closeQuote) { token.append(c); } else { support.unread(); if (func != '"') { token.append('\\'); } token.append((char) readEscape()); } continue; default : if (openQuote != '\0') { if (c == openQuote) { nest++; } if (c == closeQuote && nest-- == 0) { break; } } token.append(c); } } lexState = LexState.EXPR_END; if (lDyn) //we know the string is dynamic { if (token.getLength() > 0) { list.add(new StrNode(token.getPosition(), token.getToken())); } yaccValue = list; return (func == '`') ? Token.tDXSTRING : Token.tDSTRING; } //Benoit: this is not needed, I think that if we arrive here //(if the string is not dynamic) there is only one element in the list //and it is the content of token /* StringBuffer buffer = new StringBuffer(); Iterator iter = list.iterator(); while (iter.hasNext()) { Object next = iter.next(); if (next instanceof StrNode) { buffer.append(((StrNode) next).getValue()); } else { yaccValue = list; return (func == '`') ? Token.tDXSTRING : Token.tDSTRING; } } yaccValue = buffer.toString(); */ yaccValue = token.getToken(); return (func == '`') ? Token.tXSTRING : Token.tSTRING; } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
23659,
12,
474,
1326,
16,
509,
1746,
10257,
16,
509,
1696,
10257,
13,
288,
202,
202,
430,
261,
644,
422,
14118,
6134,
288,
1082,
202,
2463,
1109,
5281,
15919,
780,
12,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23659,
12,
474,
1326,
16,
509,
1746,
10257,
16,
509,
1696,
10257,
13,
288,
202,
202,
430,
261,
644,
422,
14118,
6134,
288,
1082,
202,
2463,
1109,
5281,
15919,
780,
12,
4... |
return new Long((long)length); | return lengthObj; | private static Object jsFunction_push(Context cx, Scriptable thisObj, Object[] args) { double length = getLengthProperty(thisObj); for (int i = 0; i < args.length; i++) { setElem(thisObj, (long)length + i, args[i]); } length += args.length; ScriptRuntime.setProp(thisObj, "length", new Double(length), thisObj); /* * If JS1.2, follow Perl4 by returning the last thing pushed. * Otherwise, return the new array length. */ if (cx.getLanguageVersion() == Context.VERSION_1_2) // if JS1.2 && no arguments, return undefined. return args.length == 0 ? Context.getUndefinedValue() : args[args.length - 1]; else return new Long((long)length); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/5f6a565762eea9efee2aee1297e0f938ac7edf63/NativeArray.java/buggy/js/rhino/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
3828,
2083,
67,
6206,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
1850,
1033,
8526,
833,
13,
565,
288,
3639,
1645,
769,
273,
9888,
1396,
12,
2211,
2675,
1769,
3639,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
3828,
2083,
67,
6206,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
1850,
1033,
8526,
833,
13,
565,
288,
3639,
1645,
769,
273,
9888,
1396,
12,
2211,
2675,
1769,
3639,
364,
... |
this.input = input; | this.input = new BufferedReader(input); | public void setReader(Reader reader) throws CDKException { this.input = input; } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/a08c6ae51fd6e8e2448b2b9fde92a30a4e271589/CIFReader.java/clean/src/org/openscience/cdk/io/CIFReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2514,
12,
2514,
2949,
13,
1216,
24570,
288,
3639,
333,
18,
2630,
273,
394,
10633,
12,
2630,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2514,
12,
2514,
2949,
13,
1216,
24570,
288,
3639,
333,
18,
2630,
273,
394,
10633,
12,
2630,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
run_(); progress.close(); | try { run_(); } finally { progress.close(); } | public void run() { if(grammarDirty) { grammarDirty = false; try { parser = new Grammar(); parser.setGrammarContent(grammarText); String lexerGrammarText = parser.getLexerGrammar(); lexer = new Grammar(); lexer.importTokenVocabulary(parser); // make sure token types line up lexer.setGrammarContent(lexerGrammarText); } catch (Exception e) { e.printStackTrace(); } } SwingUtilities.invokeLater(new Runnable() { public void run() { run_(); progress.close(); } }); } | 51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/dc79ce0a7a65ef3f5bf611245e37c5ed763f5add/Interpreter.java/clean/src/org/antlr/works/interpreter/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
309,
12,
31628,
10785,
13,
288,
5411,
6473,
10785,
273,
629,
31,
5411,
775,
288,
7734,
2082,
273,
394,
27809,
5621,
7734,
2082,
18,
542,
18576,
1350,
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,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
309,
12,
31628,
10785,
13,
288,
5411,
6473,
10785,
273,
629,
31,
5411,
775,
288,
7734,
2082,
273,
394,
27809,
5621,
7734,
2082,
18,
542,
18576,
1350,
12,... |
receivedPacket(); | receivedPacket(unverified); | public synchronized boolean completedHandshake(long thisBootID, byte[] data, int offset, int length, BlockCipher encCipher, byte[] encKey, Peer replyTo, boolean unverified) { long now = System.currentTimeMillis(); completedHandshake = true; handshakeCount = 0; arkFetcher.stop(); bogusNoderef = false; try { // First, the new noderef processNewNoderef(data, offset, length); } catch (FSParseException e1) { bogusNoderef = true; Logger.error(this, "Failed to parse new noderef for "+this+": "+e1, e1); // Treat as invalid version } if(reverseInvalidVersion()) { try { node.setNewestPeerLastGoodVersion(Version.getArbitraryBuildNumber(lastGoodVersion)); } catch (NumberFormatException e) { // ignore } Logger.normal(this, "Not connecting to "+this+" - reverse invalid version "+Version.getVersionString()+" for peer's lastGoodversion: "+lastGoodVersion); verifiedIncompatibleNewerVersion = true; isConnected = false; setPeerNodeStatus(now); node.peers.disconnected(this); return false; } else { verifiedIncompatibleNewerVersion = false; setPeerNodeStatus(now); } if(invalidVersion()) { Logger.normal(this, "Not connecting to "+this+" - invalid version "+version); verifiedIncompatibleOlderVersion = true; isConnected = false; setPeerNodeStatus(now); node.peers.disconnected(this); return false; } else { verifiedIncompatibleOlderVersion = false; setPeerNodeStatus(now); } KeyTracker newTracker = new KeyTracker(this, encCipher, encKey); changedIP(replyTo); if(thisBootID != this.bootID) { connectedTime = System.currentTimeMillis(); Logger.minor(this, "Changed boot ID from "+bootID+" to "+thisBootID+" for "+getPeer()); isConnected = false; // Will be reset below setPeerNodeStatus(now); if(previousTracker != null) { KeyTracker old = previousTracker; previousTracker = null; old.completelyDeprecated(newTracker); } previousTracker = null; if(currentTracker != null) { KeyTracker old = currentTracker; currentTracker = null; old.completelyDeprecated(newTracker); } this.bootID = thisBootID; node.lm.lostOrRestartedNode(this); } // else it's a rekey if(unverified) { unverifiedTracker = newTracker; ctx = null; Logger.minor(this, "sentHandshake() being called for unverifiedTracker: "+getPeer()); sentHandshake(); } else { previousTracker = currentTracker; currentTracker = newTracker; unverifiedTracker = null; if(previousTracker != null) previousTracker.deprecated(); isConnected = true; neverConnected = false; peerAddedTime = 0; // don't store anymore setPeerNodeStatus(now); ctx = null; } if(!isConnected) node.peers.disconnected(this); Logger.normal(this, "Completed handshake with "+this+" on "+replyTo+" - current: "+currentTracker+" old: "+previousTracker+" unverified: "+unverifiedTracker+" bootID: "+thisBootID+" myName: "+myName); try { receivedPacket(); } catch (NotConnectedException e) { Logger.error(this, "Disconnected in completedHandshake with "+this); return true; // i suppose } if(isConnected) node.peers.addConnectedPeer(this); sentInitialMessages = false; return true; } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/526001d229fbb8984520830276cc81c59ed6b3a1/PeerNode.java/clean/src/freenet/node/PeerNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
5951,
14545,
12,
5748,
333,
15817,
734,
16,
1160,
8526,
501,
16,
509,
1384,
16,
509,
769,
16,
3914,
13896,
2446,
13896,
16,
1160,
8526,
2446,
653,
16,
10669,
30934,
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,
377,
1071,
3852,
1250,
5951,
14545,
12,
5748,
333,
15817,
734,
16,
1160,
8526,
501,
16,
509,
1384,
16,
509,
769,
16,
3914,
13896,
2446,
13896,
16,
1160,
8526,
2446,
653,
16,
10669,
30934,
16,
... |
addTestSuite(MediaTypeTestCase.class); | public RestletTestSuite() { addTestSuite(CallTestCase.class); addTestSuite(FilterTestCase.class); addTestSuite(ReferenceTestCase.class); addTestSuite(MediaTypeTestCase.class); } | 14172 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14172/ef0a9735f414afb525a513ed71280fc5d153c2b9/RestletTestSuite.java/clean/plugins/internal/org.restlet.test/src/org/restlet/test/RestletTestSuite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
6320,
1810,
4709,
13587,
1435,
282,
288,
1377,
527,
4709,
13587,
12,
1477,
4709,
2449,
18,
1106,
1769,
1377,
527,
4709,
13587,
12,
1586,
4709,
2449,
18,
1106,
1769,
1377,
527,
4709,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
6320,
1810,
4709,
13587,
1435,
282,
288,
1377,
527,
4709,
13587,
12,
1477,
4709,
2449,
18,
1106,
1769,
1377,
527,
4709,
13587,
12,
1586,
4709,
2449,
18,
1106,
1769,
1377,
527,
4709,
... | |
for (Iterator e = SettingsHandler.getGame().getUnmodifiableCheckList().iterator(); e.hasNext();) | for (Iterator<PObject> e = SettingsHandler.getGame().getUnmodifiableCheckList().iterator(); e.hasNext();) | private void calcCheckBonuses() { if (SettingsHandler.getGame().getUnmodifiableCheckList().isEmpty()) { return; } for (Iterator e = SettingsHandler.getGame().getUnmodifiableCheckList().iterator(); e.hasNext();) { final PObject anObj = (PObject) e.next(); activateAndAddBonusesFromPObject(anObj); } } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/eb5f93299afbba8e2b27cdc67dfddc016c5d86a9/PlayerCharacter.java/buggy/code/src/java/pcgen/core/PlayerCharacter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
7029,
1564,
38,
265,
6117,
1435,
202,
95,
202,
202,
430,
261,
2628,
1503,
18,
588,
12496,
7675,
588,
984,
13388,
1564,
682,
7675,
291,
1921,
10756,
202,
202,
95,
1082,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
7029,
1564,
38,
265,
6117,
1435,
202,
95,
202,
202,
430,
261,
2628,
1503,
18,
588,
12496,
7675,
588,
984,
13388,
1564,
682,
7675,
291,
1921,
10756,
202,
202,
95,
1082,
2... |
String propertiesFileName = System.getProperty("java.home") | String propertiesFileName = SystemProperties.getProperty("java.home") | static Object find(String factoryPropertyName, String defaultFactoryClassName) throws SOAPException { try { String factoryClassName = System.getProperty(factoryPropertyName); if (factoryClassName != null) { return newInstance(factoryClassName); } } catch (SecurityException securityexception) {} try { String propertiesFileName = System.getProperty("java.home") + File.separator + "lib" + File.separator + "jaxm.properties"; File file = new File(propertiesFileName); if (file.exists()) { FileInputStream fileInput = new FileInputStream(file); Properties properties = new Properties(); properties.load(fileInput); fileInput.close(); String factoryClassName = properties.getProperty(factoryPropertyName); return newInstance(factoryClassName); } } catch (Exception exception1) {} String factoryResource = "META-INF/services/" + factoryPropertyName; try { InputStream inputstream = getResource(factoryResource); if (inputstream != null) { BufferedReader bufferedreader = new BufferedReader(new InputStreamReader(inputstream, "UTF-8")); String factoryClassName = bufferedreader.readLine(); bufferedreader.close(); if ((factoryClassName != null) && !"".equals(factoryClassName)) { return newInstance(factoryClassName); } } } catch (Exception exception2) {} if (defaultFactoryClassName == null) { throw new SOAPException("Provider for " + factoryPropertyName + " cannot be found", null); } else { return newInstance(defaultFactoryClassName); } } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/ffed9b4d4b21ff7369ca15e75ffe0301f88e3be9/FactoryFinder.java/clean/src/saaj_api/org/apache/xmlbeans/impl/soap/FactoryFinder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
1104,
12,
780,
3272,
13073,
16,
514,
805,
1733,
3834,
13,
1216,
16434,
503,
288,
3639,
775,
288,
5411,
514,
3272,
3834,
273,
2332,
18,
588,
1396,
12,
6848,
13073,
1769,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
1104,
12,
780,
3272,
13073,
16,
514,
805,
1733,
3834,
13,
1216,
16434,
503,
288,
3639,
775,
288,
5411,
514,
3272,
3834,
273,
2332,
18,
588,
1396,
12,
6848,
13073,
1769,
5411,
... |
} else if (args[i].equals("-step")) { | } else if (args[i].equals("-step")) { | public static void main (String [] args) throws Exception{ String USAGE = "Usage: java JobFlagReport [options] <date (YYYY-MM-DD)> Enter -help for a list of options\n"; String HELP = "Where [options] are:\n"+ " -help Displays help\n"+ " -step <day|month> Specifies size of step (day by default)\n"+ " -n <steps> Specifies number of steps to do\n"; if (args.length == 0){ System.err.println(USAGE); System.exit(1); } else if (args.length == 1 && args[0].equalsIgnoreCase("-help")){ System.err.println(USAGE); System.err.println(HELP); System.exit(1); } int n = 1; String stepStr = "day"; for (int i=0;i<args.length-1;i++){ if (args[i].equals("-n")) { n = Integer.parseInt(args[++i]); } else if (args[i].equals("-step")) { stepStr = args[++i]; } else if (args[i].equalsIgnoreCase("-help")) { System.err.println(USAGE); System.err.println(HELP); System.exit(1); } else { System.err.println("Unknown argument: " + args[i]); System.exit(1); } } String inputDate = args[args.length-1]; DecimalFormat f = (DecimalFormat) NumberFormat.getInstance(Locale.US); f.setMaximumFractionDigits(3); String [] faultNames = {"FAULT_CLASS_UNKNOWN","FAULT_CLASS_CREDENTIAL_SERIALIZATION","FAULT_CLASS_EXECUTION_FAILED","FAULT_CLASS_FAULT","FAULT_CLASS_FILE_PERMISSIONS","FAULT_CLASS_INSUFFICIENT_CREDENTIALS","FAULT_CLASS_INTERNAL","FAULT_CLASS_INVALID_CREDENTIALS","FAULT_CLASS_INVALID_PATH","FAULT_CLASS_SERVICE_LEVEL_AGREEMENT","FAULT_CLASS_STAGING","FAULT_CLASS_UNSUPPORTED_FEATURE"}; TimeStep ts = new TimeStep (stepStr, n, inputDate); System.out.println("<report>"); DatabaseRetriever dbr = new DatabaseRetriever(); HistogramParser gt2hist = new HistogramParser("Breakdown of GT2 Codes", "gt2histogram", "Jobs with Each Error code", n); HistogramParser faulthist = new HistogramParser("Breakdown of Fault Classes", "faulthistogram", "Number of Jobs with Fault Class", n); while(ts.next()){ Date startTime = ts.getTime(); String startDate = ts.getFormattedTime(); ts.stepTime(); gt2hist.nextEntry(startDate, ts.getFormattedTime()); faulthist.nextEntry(startDate, ts.getFormattedTime()); int totalJobs = 0; int gt2Jobs = 0; int faultJobs = 0; ResultSet rs = dbr.retrieve(new String ("gram_packets"), new String [] {"gt2_error_code","fault_class"}, startTime, ts.getTime()); while (rs.next()){ totalJobs++; if (rs.getInt(1) != 0){ gt2Jobs++; gt2hist.addData(rs.getString(1), 1); } if (rs.getInt(2) != 0){ faultJobs++; faulthist.addData(faultNames[rs.getInt(2)], 1); } } rs.close(); System.out.println(" <entry>"); System.out.println("\t<start-date>" + startDate + "</start-date>"); System.out.println("\t<end-date>" + ts.getFormattedTime() + "</end-date>"); System.out.println("\t<total-jobs>"+totalJobs+"</total-jobs>"); System.out.println("\t<jobs-with-error-code>"+f.format(100.0*gt2Jobs/totalJobs)+"</jobs-with-error-code>"); System.out.println("\t<jobs-with-fault>"+f.format(100.0*faultJobs/totalJobs)+"</jobs-with-fault>"); System.out.println(" </entry>"); } dbr.close(); gt2hist.output(System.out); faulthist.output(System.out); System.out.println("</report>"); } | 8754 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8754/efb83d08bf3214ba362adb9486345c128a00bae7/ErrorReport.java/clean/usage/java/reports/source/src/org/globus/usage/report/gram/ErrorReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
261,
780,
5378,
833,
13,
1216,
1185,
95,
3639,
514,
11836,
2833,
273,
315,
5357,
30,
2252,
3956,
4678,
4820,
306,
2116,
65,
411,
712,
261,
26287,
17,
8206,
17,
569... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2774,
261,
780,
5378,
833,
13,
1216,
1185,
95,
3639,
514,
11836,
2833,
273,
315,
5357,
30,
2252,
3956,
4678,
4820,
306,
2116,
65,
411,
712,
261,
26287,
17,
8206,
17,
569... |
super(position); | super(position, NodeTypes.STARNODE); | public StarNode(ISourcePosition position) { super(position); } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/6e15491217631472c05c6928672f9c7064a978b3/StarNode.java/buggy/src/org/jruby/ast/StarNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
934,
297,
907,
12,
45,
1830,
2555,
1754,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
882,
4391,
2712,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
934,
297,
907,
12,
45,
1830,
2555,
1754,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
882,
4391,
2712,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.