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 |
|---|---|---|---|---|---|---|
if (coolbarControl != null) coolbarWasEnabled = coolbarControl.getEnabled(); | if (coolbarControl != null) { coolbarWasEnabled = coolbarControl.getEnabled(); } | public void run(final boolean fork, boolean cancelable, final IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException { try { operationInProgress = true; final StatusLineManager mgr = getStatusLineManager(); if (mgr == null) { runnable.run(new NullProgressMonitor()); return; } boolean cancelWasEnabled = mgr.isCancelEnabled(); final Control contents = getContents(); final Display display = contents.getDisplay(); Shell shell = getShell(); boolean contentsWasEnabled = contents.getEnabled(); MenuManager manager = getMenuBarManager(); Menu menuBar = null; if (manager != null) { menuBar = manager.getMenu(); manager = null; } boolean menuBarWasEnabled = false; if (menuBar != null) menuBarWasEnabled = menuBar.isEnabled(); Control toolbarControl = getToolBarControl(); boolean toolbarWasEnabled = false; if (toolbarControl != null) toolbarWasEnabled = toolbarControl.getEnabled(); Control coolbarControl = getCoolBarControl(); boolean coolbarWasEnabled = false; if (coolbarControl != null) coolbarWasEnabled = coolbarControl.getEnabled(); // Disable the rest of the shells on the current display Shell[] shells = display.getShells(); boolean[] enabled = new boolean[shells.length]; for (int i = 0; i < shells.length; i++) { Shell current = shells[i]; if (current == shell) continue; if (current != null && !current.isDisposed()) { enabled[i] = current.getEnabled(); current.setEnabled(false); } } Control currentFocus = display.getFocusControl(); try { contents.setEnabled(false); if (menuBar != null) menuBar.setEnabled(false); if (toolbarControl != null) toolbarControl.setEnabled(false); if (coolbarControl != null) coolbarControl.setEnabled(false); mgr.setCancelEnabled(cancelable); final Exception[] holder = new Exception[1]; BusyIndicator.showWhile(display, new Runnable() { public void run() { try { ModalContext.run(runnable, fork, mgr .getProgressMonitor(), display); } catch (InvocationTargetException ite) { holder[0] = ite; } catch (InterruptedException ie) { holder[0] = ie; } } }); if (holder[0] != null) { if (holder[0] instanceof InvocationTargetException) { throw (InvocationTargetException) holder[0]; } else if (holder[0] instanceof InterruptedException) { throw (InterruptedException) holder[0]; } } } finally { operationInProgress = false; // Enable the rest of the shells on the current display for (int i = 0; i < shells.length; i++) { Shell current = shells[i]; if (current == shell) continue; if (current != null && !current.isDisposed()) { current.setEnabled(enabled[i]); } } if (!contents.isDisposed()) contents.setEnabled(contentsWasEnabled); if (menuBar != null && !menuBar.isDisposed()) menuBar.setEnabled(menuBarWasEnabled); if (toolbarControl != null && !toolbarControl.isDisposed()) toolbarControl.setEnabled(toolbarWasEnabled); if (coolbarControl != null && !coolbarControl.isDisposed()) coolbarControl.setEnabled(coolbarWasEnabled); mgr.setCancelEnabled(cancelWasEnabled); if (currentFocus != null && !currentFocus.isDisposed()) { // It's necessary to restore focus after reenabling the controls // because disabling them causes focus to jump elsewhere. // Use forceFocus rather than setFocus to avoid SWT's // search for children which can take focus, so focus // ends up back on the actual control that previously had it. currentFocus.forceFocus(); } } } finally { operationInProgress = false; } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/ApplicationWindow.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/window/ApplicationWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
12,
6385,
1250,
12515,
16,
1250,
3755,
429,
16,
5411,
727,
467,
20013,
1190,
5491,
14685,
13,
5411,
1216,
15342,
16,
7558,
288,
3639,
775,
288,
5411,
1674,
13434,
273,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
6385,
1250,
12515,
16,
1250,
3755,
429,
16,
5411,
727,
467,
20013,
1190,
5491,
14685,
13,
5411,
1216,
15342,
16,
7558,
288,
3639,
775,
288,
5411,
1674,
13434,
273,
63... |
(Integer)rowCount, (Integer)columnCount, | new Integer(rowCount), new Integer(columnCount), | protected void okPressed( ) { try { rowCount = Integer.parseInt( rowEditor.getText( ) ); } catch ( NumberFormatException e ) { rowCount = insertTable ? DEFAULT_TABLE_ROW_COUNT : DEFAULT_ROW_COUNT; } try { columnCount = Integer.parseInt( columnEditor.getText( ) ); } catch ( NumberFormatException e ) { columnCount = DEFAULT_COLUMN_COUNT; } if ( columnCount <= 0 ) { columnCount = DEFAULT_COLUMN_COUNT; } if ( rowCount <= 0 ) { rowCount = insertTable ? DEFAULT_TABLE_ROW_COUNT : DEFAULT_ROW_COUNT; } if ( insertTable ) { setResult( new Object[]{ (Integer)rowCount, (Integer)columnCount, dataSetCombo.getItem( dataSetCombo.getSelectionIndex( ) ) .toString( ) } ); } else setResult( new int[]{ rowCount, columnCount } ); if ( chkbox.getSelection( ) ) { savePreference( ); } super.okPressed( ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/96ed798200d8cd03c1dcb12195ebf21e5f5a779e/TableOptionDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/TableOptionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1529,
24624,
12,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
492,
1380,
273,
2144,
18,
2670,
1702,
12,
1027,
6946,
18,
588,
1528,
12,
262,
11272,
202,
202,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1529,
24624,
12,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
492,
1380,
273,
2144,
18,
2670,
1702,
12,
1027,
6946,
18,
588,
1528,
12,
262,
11272,
202,
202,
9... |
if (arity0 == 1 && arity1 == 1) { | if (neitherSideIsTuple) { | public Object evaluate(Evaluator evaluator, Exp[] args) { Vector set0 = (Vector) getArg(evaluator, args, 0), set1 = (Vector) getArg(evaluator, args, 1); if (set0.isEmpty() || set1.isEmpty()) { return emptyVector; } int arity0 = 1, arity1 = 1; if (set0.elementAt(0) instanceof Member[]) { arity0 = ((Member[]) set0.elementAt(0)).length; } if (set1.elementAt(0) instanceof Member[]) { arity1 = ((Member[]) set1.elementAt(0)).length; } Vector result = new Vector(); if (arity0 == 1 && arity1 == 1) { // Simpler routine if we know neither side is an array. for (int i = 0, m = set0.size(); i < m; i++) { Member o0 = (Member) set0.elementAt(i); for (int j = 0, n = set1.size(); j < n; j++) { Member o1 = (Member) set1.elementAt(j); result.addElement(new Member[]{o0, o1}); } } } else { // More complex routine if one or both sides are arrays // (probably the product of nested CrossJoins). Member[] row = new Member[arity0 + arity1]; for (int i = 0, m = set0.size(); i < m; i++) { int x = 0; Object o0 = set0.elementAt(i); if (o0 instanceof Member) { row[x++] = (Member) o0; } else { assertTrue(o0 instanceof Member[]); final Member[] members = (Member[]) o0; for (int k = 0; k < members.length; k++) { row[x++] = members[k]; } } for (int j = 0, n = set1.size(); j < n; j++) { Object o1 = set1.elementAt(j); if (o1 instanceof Member) { row[x++] = (Member) o1; } else { assertTrue(o1 instanceof Member[]); final Member[] members = (Member[]) o1; for (int k = 0; k < members.length; k++) { row[x++] = members[k]; } } result.addElement(row.clone()); x = arity0; } } } return result; } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/ada99f5c5d586b6d870a4230d26658a6021bc766/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
9506,
202,
5018,
444,
20,
273,
261,
5018,
13,
336,
4117,
12,
14168,
639,
16,
833,
16,
374,
3631,
25083,
202,
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,
1875,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
9506,
202,
5018,
444,
20,
273,
261,
5018,
13,
336,
4117,
12,
14168,
639,
16,
833,
16,
374,
3631,
25083,
202,
542,
... |
if ( ( locator == null || locator.getSystemId() == null ) && locDat != null ) { final Locator loc = new ConstantLocator( locDat ); super.setDocumentLocator( loc ); | if ((locator == null || locator.getSystemId() == null) && locDat != null) { final Locator loc = new ConstantLocator(locDat); super.setDocumentLocator(loc); | public void startDocument() throws SAXException { if ( ( locator == null || locator.getSystemId() == null ) && locDat != null ) { final Locator loc = new ConstantLocator( locDat ); super.setDocumentLocator( loc ); } super.startDocument(); } | 57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/39af8ecc1ae2167364f1b997bcc297fdef02469a/XSLTTransformer.java/clean/src/java/org/orbeon/oxf/processor/transformer/xslt/XSLTTransformer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
918,
787,
2519,
1435,
1216,
14366,
288,
18701,
309,
261,
261,
8871,
422,
446,
747,
8871,
18,
588,
3163,
548,
1435,
422,
446,
262,
4766,
282,
597,
1515,
5139,
480,
446,
262,
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,
7682,
1071,
918,
787,
2519,
1435,
1216,
14366,
288,
18701,
309,
261,
261,
8871,
422,
446,
747,
8871,
18,
588,
3163,
548,
1435,
422,
446,
262,
4766,
282,
597,
1515,
5139,
480,
446,
262,
288,
... |
public void testIncludeLibraryRule2( ) throws Exception { openDesign( fileName ); try { designHandle.includeLibrary( LibA , "" ); designHandle.includeLibrary( LibB , "" ); designHandle.includeLibrary( LibC , "" ); } catch(Exception e) { assertNotNull(e); } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/be89bbe9dc15ff0ab4dc1c872159ed1fafbdcb6f/IncludeLibraryRuleTest.java/buggy/testsuites/org.eclipse.birt.report.tests.model/src/org/eclipse/birt/report/tests/model/api/IncludeLibraryRuleTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8752,
9313,
2175,
22,
12,
262,
1216,
1185,
202,
95,
202,
202,
3190,
15478,
12,
3968,
11272,
9506,
202,
698,
202,
202,
95,
1082,
202,
16934,
3259,
18,
6702,
9313,
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,
918,
1842,
8752,
9313,
2175,
22,
12,
262,
1216,
1185,
202,
95,
202,
202,
3190,
15478,
12,
3968,
11272,
9506,
202,
698,
202,
202,
95,
1082,
202,
16934,
3259,
18,
6702,
9313,
12... | ||
String url = "http: | String url = ""; | public void run(IAction action) { String url = "http://google.com"; try { IWebBrowser browser = null; int flags = 0; if (WorkbenchBrowserSupport.getInstance().isInternalWebBrowserAvailable()) { flags = WorkbenchBrowserSupport.AS_EDITOR | WorkbenchBrowserSupport.LOCATION_BAR | WorkbenchBrowserSupport.NAVIGATION_BAR; } else { flags = WorkbenchBrowserSupport.AS_EXTERNAL | WorkbenchBrowserSupport.LOCATION_BAR | WorkbenchBrowserSupport.NAVIGATION_BAR; } browser = WorkbenchBrowserSupport.getInstance().createBrowser(flags, "org.eclipse.mylar.tasklist", "Browser", "tasktooltip"); browser.openURL(new URL(url)); } catch (PartInitException e) { MessageDialog.openError(Display.getDefault().getActiveShell(), "URL not found", url + " could not be opened"); } catch (MalformedURLException e) { MessageDialog.openError(Display.getDefault().getActiveShell(), "URL not found", url + " could not be opened"); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b1e9de5785bfe1f736f06cead6b15122060fe4a8/NewWebBrowserAction.java/clean/sandbox/org.eclipse.mylyn.web.ui/src/org/eclipse/mylyn/internal/web/ui/NewWebBrowserAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
45,
1803,
1301,
13,
288,
202,
202,
780,
880,
273,
315,
2505,
2207,
9536,
18,
832,
14432,
3196,
202,
698,
288,
1082,
202,
45,
4079,
9132,
4748,
273,
446,
31,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
45,
1803,
1301,
13,
288,
202,
202,
780,
880,
273,
315,
2505,
2207,
9536,
18,
832,
14432,
3196,
202,
698,
288,
1082,
202,
45,
4079,
9132,
4748,
273,
446,
31,
1... |
System.out.print("Testing insertSiblingAfter ..."); Iterator rootChildrenIter = root.getChildren(); OMNode firstChild = getNextChild(rootChildrenIter); OMNode secondChild = getNextChild(rootChildrenIter); OMNode thirdChild = getNextChild(rootChildrenIter); firstChild.insertSiblingAfter(thirdChild); assertTrue("insertSiblingAfter is not woking properly", firstChild.getNextSibling() == thirdChild); System.out.println(" \t\t OK"); | public final void testInsertSiblingAfter() { //TODO Implement insertSiblingAfter(). } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/27c66f6651fa677cda2ed4c3b6e9b14db3983f5b/OMElementTest.java/buggy/dev/scratch/chinthaka/OMAPI_with_Impl/src/test/org/apache/axis/om/OMElementTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2332,
18,
659,
18,
1188,
2932,
22218,
2243,
10291,
4436,
1372,
8863,
225,
4498,
1365,
4212,
2360,
273,
1365,
18,
588,
4212,
5621,
225,
28839,
907,
15070,
273,
6927,
1763,
12,
3085,
4212,
2360,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2332,
18,
659,
18,
1188,
2932,
22218,
2243,
10291,
4436,
1372,
8863,
225,
4498,
1365,
4212,
2360,
273,
1365,
18,
588,
4212,
5621,
225,
28839,
907,
15070,
273,
6927,
1763,
12,
3085,
4212,
2360,
... | |
if( resourceFile == null ) return ""; IProject [] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects(); for( int i = 0; i < projects.length; ++i ) { if( projects[i].contains(resourceFile) ) return projects[i].getName(); } return ""; } | if( resourceFile == null ) return ""; IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects(); for( int i = 0; i < projects.length; ++i ) { if( projects[i].contains(resourceFile) ) return projects[i].getName(); } return ""; } | private String findProjectName(IFile resourceFile) { if( resourceFile == null ) return ""; //$NON-NLS-1$ IProject [] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects(); for( int i = 0; i < projects.length; ++i ) { if( projects[i].contains(resourceFile) ) return projects[i].getName(); } return ""; //$NON-NLS-1$ } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/0fedc36b901abdb7526a0e7e27d2d481789c398a/OpenDeclarationsAction.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/actions/OpenDeclarationsAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1152,
514,
1104,
4109,
461,
12,
45,
812,
1058,
812,
13,
288,
9506,
202,
430,
12,
1058,
812,
422,
446,
262,
327,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
45,
4109,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1152,
514,
1104,
4109,
461,
12,
45,
812,
1058,
812,
13,
288,
9506,
202,
430,
12,
1058,
812,
422,
446,
262,
327,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
45,
4109,
... |
this.evo = evo; | this.config = config; | public NodeTypesConfig(Evolution evo) { this.evo = evo; real = new NodeType(); logic = new NodeType(); treeRoot = new NodeType(); real.functions.add(new Plus()); real.functions.add(new Minus()); real.functions.add(new Times()); real.terminals.add(new RealConstant()); for (int i=0; i<evo.dataHolder.nVars; i++) { real.terminals.add(new RealVar(i+1)); } if (evo.config.usePreviousOutputAsReal) { for (int i=0; i<evo.previousOutputHolder.nDelays; i++) { real.terminals.add(new PreviousOutput(i+1)); } } real.all.addAll(real.functions); real.all.addAll(real.terminals); logic.functions.add(new And()); logic.functions.add(new Or()); logic.functions.add(new GreaterThan()); logic.functions.add(new LessThan()); /* TODO: Important: this could add many terminals if nDelays is too large * Maybe we could add a single PreviousOutput and create an init() method * that randomly defines every copy's delay */ if (!evo.config.usePreviousOutputAsReal) { for (int i=0; i<evo.previousOutputHolder.nDelays; i++) { logic.terminals.add(new PreviousOutput(i+1)); } } //If there aren't any logic terminals, add logic constants for closure: if (evo.config.usePreviousOutputAsReal || evo.previousOutputHolder.nDelays == 0) { logic.terminals.add(new LogicConstant()); } logic.all.addAll(logic.functions); logic.all.addAll(logic.terminals); treeRoot = real; } | 12140 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12140/8845f3626a06d05706f6c2e0889a778682a0b689/NodeTypesConfig.java/buggy/src/gpalta/core/NodeTypesConfig.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
2016,
809,
12,
20861,
5889,
2113,
83,
13,
565,
288,
3639,
333,
18,
1425,
273,
642,
31,
7734,
2863,
273,
394,
20896,
5621,
7734,
4058,
273,
394,
20896,
5621,
3639,
2151,
2375,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
2016,
809,
12,
20861,
5889,
2113,
83,
13,
565,
288,
3639,
333,
18,
1425,
273,
642,
31,
7734,
2863,
273,
394,
20896,
5621,
7734,
4058,
273,
394,
20896,
5621,
3639,
2151,
2375,
... |
Modules mempty = factory.makeModules_Empty(); Modules2 mempty2 = factory.makeModules2_Empty(); | Modules mempty = factory.makeModules(); Modules2 mempty2 = factory.makeModules2(); | public void run() { String[] strs = new String[8]; Modules[] mods = new Modules[8]; Module[] mod = new Module[8]; Module m = factory.makeModule_Default("amodule"); ModuleList l; mods[0] = Modules.fromTerm( factory.parse("modules([\"m1\",\"m2\",\"m3\",\"m4\"])")); mod[0] = mods[0].getFirst(); testAssert("\"m1\"".equals(mod[0].toString()), "getFirstTest"); testAssert(mods[0].hasNext(), "hasNextTest"); mods[4] = mods[0].getNext(); testAssert("[\"m2\",\"m3\",\"m4\"]".equals(mods[4].toString()), "getNextTest"); mods[1] = factory.makeModules_Body(m, factory.makeModules_Empty()); strs[1] = mods[1].toString(); testAssert("[\"amodule\"]".equals(strs[1]), "toStringTest1"); mods[2] = factory.makeModules_Body(m, mods[1]); strs[2] = mods[2].toString(); testAssert("[\"amodule\",\"amodule\"]".equals(strs[2]), "toStringTest2"); mods[3] = factory.makeModules_List(m, mods[2]); strs[3] = mods[3].toString(); testAssert("modules([\"amodule\",\"amodule\",\"amodule\"])".equals(strs[3]), "toStringTest3"); l = factory.makeModuleList_Modules(mods[3]); strs[4] = l.toString(); testAssert("list(modules([\"amodule\",\"amodule\",\"amodule\"]))".equals( strs[4]), "toStringTest4"); /* If the hash code generator does not generate different hash codes for these * two constructors (they have the same pattern, same alternative name, but a different type) * then a ClassCastException will occurr: */ Modules mempty = factory.makeModules_Empty(); Modules2 mempty2 = factory.makeModules2_Empty(); ListFactory f = mempty.getListFactory(); l = factory.makeModuleList_Modules(mods[3]); testAssert(l.isSortModuleList() == true, "is<type> test"); testAssert(l.isModules() == true, "is<cons> test"); } | 3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/254c3ec1df537d078abb76532ba23210235b3077/ListTest.java/buggy/apigen/test/ListTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
288,
565,
514,
8526,
19954,
273,
394,
514,
63,
28,
15533,
565,
25493,
8526,
15546,
273,
394,
25493,
63,
28,
15533,
565,
5924,
8526,
681,
273,
394,
5924,
63,
28,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
288,
565,
514,
8526,
19954,
273,
394,
514,
63,
28,
15533,
565,
25493,
8526,
15546,
273,
394,
25493,
63,
28,
15533,
565,
5924,
8526,
681,
273,
394,
5924,
63,
28,
1... |
public void implementsClause() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:169:17: ( ( 'implements' identifier ( COMMA identifier )* )? ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:169:17: ( 'implements' identifier ( COMMA identifier )* )? { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:169:17: ( 'implements' identifier ( COMMA identifier )* )? int alt14=2; int LA14_0 = input.LA(1); if ( LA14_0==92 ) { alt14=1; } else if ( LA14_0==LCURLY ) { alt14=2; } else { NoViableAltException nvae = new NoViableAltException("169:17: ( \'implements\' identifier ( COMMA identifier )* )?", 14, 0, input); throw nvae; } switch (alt14) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:170:25: 'implements' identifier ( COMMA identifier )* { match(input,92,FOLLOW_92_in_implementsClause514); following.push(FOLLOW_identifier_in_implementsClause516); identifier(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:170:49: ( COMMA identifier )* loop13: do { int alt13=2; int LA13_0 = input.LA(1); if ( LA13_0==COMMA ) { alt13=1; } switch (alt13) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:170:51: COMMA identifier { match(input,COMMA,FOLLOW_COMMA_in_implementsClause520); following.push(FOLLOW_identifier_in_implementsClause522); identifier(); following.pop(); } break; default : break loop13; } } while (true); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4792,
7044,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
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,
1071,
918,
4792,
7044,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19... | ||
} | final private boolean jj_3R_67() { Token xsp; xsp = jj_scanpos; if (jj_3R_103()) { jj_scanpos = xsp; if (jj_3R_104()) return true; } return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
9599,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
23494,
10756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
9599,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
23494,
10756,
... | |
{ Viewer v = new TreeViewer(); v.setContent(this); return v; } | { Viewer v = new TreeViewer(); v.setContent(this); return v; } | public Viewer toGUI() { Viewer v = new TreeViewer(); v.setContent(this); return v; } | 51753 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51753/d975bfff4faafadda70a7e65241e209037e33bfe/DecisionTree.java/clean/src/edu/cmu/minorthird/classify/algorithms/trees/DecisionTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4441,
264,
358,
43,
5370,
1435,
202,
202,
95,
1082,
202,
18415,
331,
273,
394,
4902,
18415,
5621,
1082,
202,
90,
18,
542,
1350,
12,
2211,
1769,
1082,
202,
2463,
331,
31,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4441,
264,
358,
43,
5370,
1435,
202,
202,
95,
1082,
202,
18415,
331,
273,
394,
4902,
18415,
5621,
1082,
202,
90,
18,
542,
1350,
12,
2211,
1769,
1082,
202,
2463,
331,
31,
202,... |
private MavenProject processProjectLogic( String pomLocation, MavenProject project, List remoteRepositories, ProfileManager profileMgr ) throws ProjectBuildingException, ModelInterpolationException { Model model = project.getModel(); String key = createCacheKey( model.getGroupId(), model.getArtifactId(), model.getVersion() ); Model cachedModel = (Model) modelCache.get( key ); if ( cachedModel == null ) { modelCache.put( key, model ); } Properties profileProperties = project.getProfileProperties(); if ( profileProperties == null ) { profileProperties = new Properties(); } List activeProfiles = project.getActiveProfiles(); if ( activeProfiles == null ) { activeProfiles = new ArrayList(); } List injectedProfiles = injectActiveProfiles( profileMgr, model, profileProperties ); activeProfiles.addAll( injectedProfiles ); // TODO: Clean this up...we're using this to 'jump' the interpolation step for model properties not expressed in XML. // [BP] - Can this above comment be explained? // We don't need all the project methods that are added over those in the model, but we do need basedir Map context = Collections.singletonMap( "basedir", project.getBasedir() ); model = modelInterpolator.interpolate( model, context ); // interpolation is before injection, because interpolation is off-limits in the injected variables modelDefaultsInjector.injectDefaults( model ); MavenProject parentProject = project.getParent(); Model originalModel = project.getOriginalModel(); // We will return a different project object using the new model (hence the need to return a project, not just modify the parameter) project = new MavenProject( model ); project.setOriginalModel( originalModel ); project.setActiveProfiles( activeProfiles ); project.addProfileProperties( profileProperties ); project.assembleProfilePropertiesInheritance(); // TODO: maybe not strictly correct, while we should enfore that packaging has a type handler of the same id, we don't Artifact projectArtifact = artifactFactory.createBuildArtifact( project.getGroupId(), project.getArtifactId(), project.getVersion(), project.getPackaging() ); project.setArtifact( projectArtifact ); if ( projectArtifact.isSnapshot() ) { project.setSnapshotDeploymentVersion( transformationManager.getSnapshotDeploymentVersion( projectArtifact ) ); project.setSnapshotDeploymentBuildNumber( transformationManager.getSnapshotDeploymentBuildNumber( projectArtifact ) ); } project.setPluginArtifactRepositories( ProjectUtils.buildArtifactRepositories( model.getPluginRepositories(), artifactRepositoryFactory, container ) ); DistributionManagement dm = model.getDistributionManagement(); if ( dm != null ) { ArtifactRepository repo = ProjectUtils.buildArtifactRepositoryBase( dm.getRepository(), artifactRepositoryFactory, container ); project.setReleaseArtifactRepository( repo ); if ( dm.getSnapshotRepository() != null ) { repo = ProjectUtils.buildArtifactRepositoryBase( dm.getSnapshotRepository(), artifactRepositoryFactory, container ); project.setSnapshotArtifactRepository( repo ); } } project.setParent( parentProject ); if ( parentProject != null ) { Artifact parentArtifact = artifactFactory.createParentArtifact( parentProject.getGroupId(), parentProject.getArtifactId(), parentProject.getVersion() ); project.setParentArtifact( parentArtifact ); } // Must validate before artifact construction to make sure dependencies are good ModelValidationResult validationResult = validator.validate( model ); if ( validationResult.getMessageCount() > 0 ) { throw new ProjectBuildingException( "Failed to validate POM for \'" + pomLocation + "\'.\n\n Reason(s):\n" + validationResult.render( " " ) ); } project.setRemoteArtifactRepositories( remoteRepositories ); project.setPluginArtifacts( createPluginArtifacts( project.getBuildPlugins() ) ); project.setReportArtifacts( createReportArtifacts( project.getReportPlugins() ) ); project.setExtensionArtifacts( createExtensionArtifacts( project.getBuildExtensions() ) ); return project; } | 47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/d466205274b1a04edc89551db56aa32049ee2b39/DefaultMavenProjectBuilder.java/clean/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
17176,
4109,
1207,
4109,
20556,
12,
514,
21400,
2735,
16,
17176,
4109,
1984,
16,
987,
2632,
18429,
16,
11357,
1318,
3042,
9455,
262,
3639,
1216,
5420,
16713,
503,
16,
3164,
15665,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17176,
4109,
1207,
4109,
20556,
12,
514,
21400,
2735,
16,
17176,
4109,
1984,
16,
987,
2632,
18429,
16,
11357,
1318,
3042,
9455,
262,
3639,
1216,
5420,
16713,
503,
16,
3164,
15665,
293... | ||
upToDate=true; | private synchronized void renderImpl() { //synchronized(this) { upToDate=true; //} Dimension d= getSize(); if (d.width > 0 && d.height > 0) { //System.out.println("render: off="+offscreen); if (offscreen == null || offscreen.getWidth() != d.width || offscreen.getHeight() != d.height) { imageValid = false; if(useDouble) {// offscreen=// new BufferedImage(d.width, d.height, BufferedImage.TYPE_3BYTE_BGR);// renderer=new Renderer.ByteArray(offscreen);// renderer = new Renderer.ByteArrayDouble(offscreen); offscreen= new BufferedImage(d.width, d.height, BufferedImage.TYPE_INT_ARGB); renderer=new Renderer.IntArrayDouble(offscreen); } else if(useFloat) { offscreen= new BufferedImage(d.width, d.height, BufferedImage.TYPE_INT_ARGB); renderer=new Renderer.IntArrayFloat(offscreen); } else { offscreen= new BufferedImage(d.width, d.height, BufferedImage.TYPE_INT_ARGB); renderer=new Renderer.IntArray(offscreen); } Color c = getBackground(); renderer.setBackgroundColor(c !=null? c.getRGB(): 0); renderer.setCameraPath(cameraPath); renderer.setSceneRoot(root); } else if(!backgroundExplicitlySet) { Color c = getBackground();//inherited from parent renderer.setBackgroundColor(c !=null? c.getRGB(): 0); }// System.out.println("start rendering "+new java.util.Date()); try { renderer.render(); } catch (Exception e) { LoggingSystem.getLogger(this).log(Level.SEVERE, "renderer.render() failed! ", e); } synchronized(this) { //imageValid = false; renderer.update(); imageValid=true; }// System.out.println("end rendering "+new java.util.Date()); } else { System.out.println("no area to paint"); } } | 25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/6ff1071e4fe0caa04893342861ae7a09d2cd1417/DefaultViewer.java/buggy/src-soft/de/jreality/soft/DefaultViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3852,
918,
1743,
2828,
1435,
288,
1377,
368,
22043,
12,
2211,
13,
288,
6647,
19363,
565,
13037,
302,
33,
9950,
5621,
565,
309,
261,
72,
18,
2819,
405,
374,
597,
302,
18,
4210,
405... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3852,
918,
1743,
2828,
1435,
288,
1377,
368,
22043,
12,
2211,
13,
288,
6647,
19363,
565,
13037,
302,
33,
9950,
5621,
565,
309,
261,
72,
18,
2819,
405,
374,
597,
302,
18,
4210,
405... | |
writeSuccessFractionCell(p, buf); | writeProgressFractionCell(p, buf); | public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { StringBuffer buf = new StringBuffer(2048); ctx.getPageMaker().makeHead(buf, "Queued Requests"); // First, get the queued requests, and separate them into different types. LinkedList completedDownloadToDisk = new LinkedList(); LinkedList completedDownloadToTemp = new LinkedList(); LinkedList completedUpload = new LinkedList(); LinkedList completedDirUpload = new LinkedList(); LinkedList failedDownload = new LinkedList(); LinkedList failedUpload = new LinkedList(); LinkedList failedDirUpload = new LinkedList(); LinkedList uncompletedDownload = new LinkedList(); LinkedList uncompletedUpload = new LinkedList(); LinkedList uncompletedDirUpload = new LinkedList(); ClientRequest[] reqs = fcp.getGlobalRequests(); Logger.minor(this, "Request count: "+reqs.length); for(int i=0;i<reqs.length;i++) { ClientRequest req = reqs[i]; if(req instanceof ClientGet) { ClientGet cg = (ClientGet) req; if(cg.hasSucceeded()) { if(cg.isDirect()) completedDownloadToTemp.add(cg); else if(cg.isToDisk()) completedDownloadToDisk.add(cg); else // FIXME Logger.error(this, "Don't know what to do with "+cg); } else if(cg.hasFinished()) { failedDownload.add(cg); } else { uncompletedDownload.add(cg); } } else if(req instanceof ClientPut) { ClientPut cp = (ClientPut) req; if(cp.hasSucceeded()) { completedUpload.add(cp); } else if(cp.hasFinished()) { failedUpload.add(cp); } else { uncompletedUpload.add(cp); } } else if(req instanceof ClientPutDir) { ClientPutDir cp = (ClientPutDir) req; if(cp.hasSucceeded()) { completedDirUpload.add(cp); } else if(cp.hasFinished()) { failedDirUpload.add(cp); } else { uncompletedDirUpload.add(cp); } } } if(!(completedDownloadToTemp.isEmpty() && completedDownloadToDisk.isEmpty() && completedUpload.isEmpty() && completedDirUpload.isEmpty())) { writeBigHeading("Completed requests", buf); if(!completedDownloadToTemp.isEmpty()) { writeTableHead("Completed downloads to temporary space", new String[] { "", "Identifier", "Size", "Type", "Download", "Persistence", "Key" }, buf ); for(Iterator i = completedDownloadToTemp.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeDownloadCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!completedDownloadToDisk.isEmpty()) { writeTableHead("Completed downloads to disk", new String[] { "", "Identifier", "Filename", "Size", "Type", "Download", "Persistence", "Key" }, buf); for(Iterator i=completedDownloadToDisk.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); writeFilenameCell(p.getDestFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeDownloadCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!completedUpload.isEmpty()) { writeTableHead("Completed uploads", new String[] { "", "Key", "Filename", "Size", "Type", "Persistence", "Identifier" }, buf); for(Iterator i=completedUpload.iterator();i.hasNext();) { ClientPut p = (ClientPut) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getOrigFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!completedDirUpload.isEmpty()) { // FIXME include filename?? writeTableHead("Completed directory uploads", new String[] { "", "Identifier", "Files", "Total Size", "Persistence", "Key" }, buf); for(Iterator i=completedUpload.iterator();i.hasNext();) { ClientPutDir p = (ClientPutDir) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); writeNumberCell(p.getNumberOfFiles(), buf); writeSizeCell(p.getTotalDataSize(), buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } } /* FIXME color-coded progress bars. * It would be really nice to have a color-coded progress bar. * We can then show what part is successful, what part isn't tried yet, * what part has each different well known error code... */ if(!(failedDownload.isEmpty() && failedUpload.isEmpty())) { writeBigHeading("Failed requests", buf); if(!failedDownload.isEmpty()) { writeTableHead("Failed downloads", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Reason", "Persistence", "Key" }, buf); for(Iterator i=failedDownload.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getDestFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writeFailureReasonCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!failedUpload.isEmpty()) { writeTableHead("Failed uploads", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Reason", "Persistence", "Key" }, buf); for(Iterator i=failedUpload.iterator();i.hasNext();) { ClientPut p = (ClientPut) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getOrigFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writeFailureReasonCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!failedDirUpload.isEmpty()) { writeTableHead("Failed directory uploads", new String[] { "", "Identifier", "Files", "Total Size", "Success", "Reason", "Persistence", "Key" }, buf); for(Iterator i=failedDirUpload.iterator();i.hasNext();) { ClientPutDir p = (ClientPutDir) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); writeNumberCell(p.getNumberOfFiles(), buf); writeSizeCell(p.getTotalDataSize(), buf); writeSuccessFractionCell(p, buf); writeFailureReasonCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } } if(!(uncompletedDownload.isEmpty() && uncompletedUpload.isEmpty() && uncompletedDirUpload.isEmpty())) { writeBigHeading("Requests in progress", buf); if(!uncompletedDownload.isEmpty()) { writeTableHead("Downloads in progress", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Persistence", "Key" }, buf); for(Iterator i = uncompletedDownload.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getDestFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!uncompletedUpload.isEmpty()) { writeTableHead("Uploads in progress", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Persistence", "Key" }, buf); for(Iterator i = uncompletedUpload.iterator();i.hasNext();) { ClientPut p = (ClientPut) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getOrigFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!uncompletedDirUpload.isEmpty()) { writeTableHead("Directory uploads in progress", new String[] { "", "Identifier", "Files", "Total Size", "Success", "Persistence", "Key" }, buf); for(Iterator i=uncompletedDirUpload.iterator();i.hasNext();) { ClientPutDir p = (ClientPutDir) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); writeNumberCell(p.getNumberOfFiles(), buf); writeSizeCell(p.getTotalDataSize(), buf); writeSuccessFractionCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } } ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/2a50af2c7d1c8c3a5ad945e6a509003db2cd8d7f/QueueToadlet.java/buggy/src/freenet/clients/http/QueueToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
225,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
780,
1892,
168... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
225,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
780,
1892,
168... |
astore(argsLocal); markLabel(label); | cfw.addAStore(argsLocal); cfw.markLabel(label); | private void generatePrologue(Context cx, int directParameterCount) { if (inFunction && !itsUseDynamicScope && directParameterCount == -1) { // Unless we're either using dynamic scope or we're in a // direct call, use the enclosing scope of the function as our // variable object. aload(funObjLocal); classFile.addInvoke(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Scriptable", "getParentScope", "()Lorg/mozilla/javascript/Scriptable;"); astore(variableObjectLocal); } if (directParameterCount > 0) { for (int i = 0; i < (3 * directParameterCount); i++) reserveWordLocal(i + 4); // reserve 'args' } // reserve 'args[]' argsLocal = reserveWordLocal(directParameterCount <= 0 ? 4 : (3 * directParameterCount) + 4); // These locals are to be pre-allocated since they need function scope. // They are primarily used by the exception handling mechanism int localCount = scriptOrFn.getLocalCount(); if (localCount != 0) { itsLocalAllocationBase = (short)(argsLocal + 1); for (int i = 0; i < localCount; i++) { reserveWordLocal(itsLocalAllocationBase + i); } } if (inFunction && fnCurrent.getCheckThis()) { // Nested functions must check their 'this' value to // insure it is not an activation object: // see 10.1.6 Activation Object aload(thisObjLocal); addScriptRuntimeInvoke("getThis", "(Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); astore(thisObjLocal); } hasVarsInRegs = inFunction && !fnCurrent.requiresActivation(); if (hasVarsInRegs) { // No need to create activation. Pad arguments if need be. int parmCount = scriptOrFn.getParamCount(); if (inFunction && parmCount > 0 && directParameterCount < 0) { // Set up args array // check length of arguments, pad if need be aload(argsLocal); addByteCode(ByteCode.ARRAYLENGTH); push(parmCount); int label = acquireLabel(); addByteCode(ByteCode.IF_ICMPGE, label); aload(argsLocal); push(parmCount); addScriptRuntimeInvoke("padArguments", "([Ljava/lang/Object;I" +")[Ljava/lang/Object;"); astore(argsLocal); markLabel(label); } // REMIND - only need to initialize the vars that don't get a value // before the next call and are used in the function short firstUndefVar = -1; for (int i = 0; i < fnCurrent.getVarCount(); i++) { OptLocalVariable lVar = fnCurrent.getVar(i); if (lVar.isNumber()) { lVar.assignJRegister(getNewWordPairLocal()); push(0.0); dstore(lVar.getJRegister()); } else if (lVar.isParameter()) { if (directParameterCount < 0) { lVar.assignJRegister(getNewWordLocal()); aload(argsLocal); push(i); addByteCode(ByteCode.AALOAD); astore(lVar.getJRegister()); } } else { lVar.assignJRegister(getNewWordLocal()); if (firstUndefVar == -1) { pushUndefined(); firstUndefVar = lVar.getJRegister(); } else { aload(firstUndefVar); } astore(lVar.getJRegister()); } lVar.setStartPC(classFile.getCurrentCodeOffset()); } // Indicate that we should generate debug information for // the variable table. (If we're generating debug info at // all.) debugVars = fnCurrent.getVarsArray(); // Skip creating activation object. return; } if (directParameterCount > 0) { // We're going to create an activation object, so we // need to get an args array with all the arguments in it. aload(argsLocal); push(directParameterCount); addOptRuntimeInvoke("padStart", "([Ljava/lang/Object;I)[Ljava/lang/Object;"); astore(argsLocal); for (int i=0; i < directParameterCount; i++) { aload(argsLocal); push(i); // "3" is 1 for Object parm and 2 for double parm, and // "4" is to account for the context, etc. parms aload((short) (3*i+4)); addByteCode(ByteCode.AASTORE); } } String debugVariableName; if (inFunction) { aload(contextLocal); aload(variableObjectLocal); aload(funObjLocal); aload(thisObjLocal); aload(argsLocal); addScriptRuntimeInvoke("initVarObj", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/NativeFunction;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;" +")Lorg/mozilla/javascript/Scriptable;"); debugVariableName = "activation"; } else { aload(contextLocal); aload(variableObjectLocal); aload(funObjLocal); aload(thisObjLocal); push(0); addScriptRuntimeInvoke("initScript", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/NativeFunction;" +"Lorg/mozilla/javascript/Scriptable;" +"Z" +")Lorg/mozilla/javascript/Scriptable;"); debugVariableName = "global"; } astore(variableObjectLocal); int functionCount = scriptOrFn.getFunctionCount(); for (int i = 0; i != functionCount; i++) { OptFunctionNode fn = (OptFunctionNode)scriptOrFn.getFunctionNode(i); if (fn.getFunctionType() == FunctionNode.FUNCTION_STATEMENT) { visitFunction(fn, FunctionNode.FUNCTION_STATEMENT); } } // default is to generate debug info if (!cx.isGeneratingDebugChanged() || cx.isGeneratingDebug()) { OptLocalVariable lv = new OptLocalVariable(debugVariableName, false); lv.assignJRegister(variableObjectLocal); lv.setStartPC(classFile.getCurrentCodeOffset()); debugVars = new OptLocalVariable[1]; debugVars[0] = lv; } if (!inFunction) { // OPT: use dataflow to prove that this assignment is dead scriptResultLocal = getNewWordLocal(); pushUndefined(); astore(scriptResultLocal); } if (inFunction) { if (fnCurrent.itsContainsCalls0) { itsZeroArgArray = getNewWordLocal(); classFile.add(ByteCode.GETSTATIC, "org/mozilla/javascript/ScriptRuntime", "emptyArgs", "[Ljava/lang/Object;"); astore(itsZeroArgArray); } if (fnCurrent.itsContainsCalls1) { itsOneArgArray = getNewWordLocal(); push(1); addByteCode(ByteCode.ANEWARRAY, "java/lang/Object"); astore(itsOneArgArray); } } } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/64dc04549cad044865eae2e65e775ddc0f292717/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
626,
1330,
344,
12,
1042,
9494,
16,
509,
2657,
1662,
1380,
13,
565,
288,
3639,
309,
261,
267,
2083,
597,
401,
1282,
3727,
9791,
3876,
597,
5411,
2657,
1662,
1380,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
626,
1330,
344,
12,
1042,
9494,
16,
509,
2657,
1662,
1380,
13,
565,
288,
3639,
309,
261,
267,
2083,
597,
401,
1282,
3727,
9791,
3876,
597,
5411,
2657,
1662,
1380,
422,
... |
public org.quickfix.field.DiscretionInst getDiscretionInst() throws FieldNotFound { org.quickfix.field.DiscretionInst value = new org.quickfix.field.DiscretionInst(); | public quickfix.field.DiscretionInst getDiscretionInst() throws FieldNotFound { quickfix.field.DiscretionInst value = new quickfix.field.DiscretionInst(); | public org.quickfix.field.DiscretionInst getDiscretionInst() throws FieldNotFound { org.quickfix.field.DiscretionInst value = new org.quickfix.field.DiscretionInst(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix42/OrderCancelReplaceRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
28912,
1349,
285,
10773,
336,
28912,
1349,
285,
10773,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
28912,
1349,
285,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
28912,
1349,
285,
10773,
336,
28912,
1349,
285,
10773,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
28912,
1349,
285,
10... |
String[] argNames = itsVariableTable.getAllNames(); | String[] argNames = getArgNames(itsVariableTable); | generateFunctionICode(Context cx, Scriptable scope, FunctionNode theFunction, Object securityDomain) { itsFunctionList = (ObjArray) theFunction.getProp(Node.FUNCTION_PROP); if (itsFunctionList != null) generateNestedFunctions(scope, cx, securityDomain); Object[] regExpLiterals = null; ObjArray regexps = (ObjArray)theFunction.getProp(Node.REGEXP_PROP); if (regexps != null) regExpLiterals = generateRegExpLiterals(cx, scope, regexps); VariableTable varTable = theFunction.getVariableTable(); generateICodeFromTree(theFunction.getLastChild(), varTable, theFunction.requiresActivation(), securityDomain); itsData.itsName = theFunction.getFunctionName(); itsData.itsSourceFile = (String) theFunction.getProp( Node.SOURCENAME_PROP); itsData.itsSource = (String)theFunction.getProp(Node.SOURCE_PROP); itsData.itsNestedFunctions = itsNestedFunctions; itsData.itsRegExpLiterals = regExpLiterals; if (Context.printICode) dumpICode(itsData); String[] argNames = itsVariableTable.getAllNames(); short argCount = (short)itsVariableTable.getParameterCount(); InterpretedFunction result = new InterpretedFunction(cx, itsData, argNames, argCount); if (cx.debugger != null) { cx.debugger.handleCompilationDone(cx, result, debugSource); } return result; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/e497d2b898e781a5052344191ab878cd469f3f53/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2103,
2083,
45,
1085,
12,
1042,
9494,
16,
22780,
2146,
16,
12900,
4284,
907,
326,
2083,
16,
1033,
4373,
3748,
13,
565,
288,
3639,
2097,
2083,
682,
273,
261,
2675,
1076,
13,
326,
2083,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
2083,
45,
1085,
12,
1042,
9494,
16,
22780,
2146,
16,
12900,
4284,
907,
326,
2083,
16,
1033,
4373,
3748,
13,
565,
288,
3639,
2097,
2083,
682,
273,
261,
2675,
1076,
13,
326,
2083,
1... |
} | } | private void initializeShortcutMenuInput() { rootMenu = new ShortcutMenu(null, "Root", ""); //$NON-NLS-1$ //$NON-NLS-2$ ArrayList activeIds; if (window.containsSubmenu(WorkbenchWindow.NEW_WIZARD_SUBMENU)) { ShortcutMenu wizardMenu = new ShortcutMenu(rootMenu, ShortcutMenu.ID_WIZARD, WorkbenchMessages.getString("ActionSetDialogInput.wizardCategory")); //$NON-NLS-1$ NewWizardsRegistryReader rdr = new NewWizardsRegistryReader(); WizardCollectionElement wizardCollection = rdr.getWizardElements(); // @issue should not pass in null Object [] wizardCategories = wizardCollection.getChildren(null); activeIds = perspective.getNewWizardActionIds(); for (int i = 0; i < wizardCategories.length; i ++) { WizardCollectionElement element = (WizardCollectionElement)wizardCategories[i]; initializeShortCutMenu(wizardMenu, element, activeIds); } } if (window.containsSubmenu(WorkbenchWindow.OPEN_PERSPECTIVE_SUBMENU)) { ShortcutMenu perspMenu = new ShortcutMenu(rootMenu, ShortcutMenu.ID_PERSP, WorkbenchMessages.getString("ActionSetDialogInput.perspectiveCategory")); //$NON-NLS-1$ IPerspectiveRegistry perspReg = WorkbenchPlugin.getDefault().getPerspectiveRegistry(); IPerspectiveDescriptor [] persps = perspReg.getPerspectives(); for (int i = 0; i < persps.length; i ++) { perspMenu.addItem(persps[i]); } activeIds = perspective.getPerspectiveActionIds(); for (int i = 0; i < activeIds.size(); i++) { String id = (String)activeIds.get(i); Object item = perspMenu.getItem(id); if (item != null) perspMenu.addCheckedItem(item); } } if (window.containsSubmenu(WorkbenchWindow.SHOW_VIEW_SUBMENU)) { ShortcutMenu viewMenu = new ShortcutMenu(rootMenu, ShortcutMenu.ID_VIEW, WorkbenchMessages.getString("ActionSetDialogInput.viewCategory")); //$NON-NLS-1$ IViewRegistry viewReg = WorkbenchPlugin.getDefault().getViewRegistry(); Category[] categories = viewReg.getCategories(); activeIds = perspective.getShowViewActionIds(); for (int i=0; i<categories.length; i++) { Category category = categories[i]; ShortcutMenu viewCategory = new ShortcutMenu(viewMenu, category.getId(), category.getLabel()); ArrayList views = category.getElements(); if (views != null) { for (int j=0; j<views.size(); j++) { IViewDescriptor view = (IViewDescriptor)views.get(j); viewCategory.addItem(view); if (activeIds.contains(view.getId())) viewCategory.addCheckedItem(view); } } } } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1321d185298177935908fd00393d46f8481fea34/CustomizePerspectiveDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/CustomizePerspectiveDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
4046,
15576,
4599,
1210,
1435,
288,
202,
3085,
4599,
273,
394,
7925,
5150,
4599,
12,
2011,
16,
315,
2375,
3113,
1408,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
4046,
15576,
4599,
1210,
1435,
288,
202,
3085,
4599,
273,
394,
7925,
5150,
4599,
12,
2011,
16,
315,
2375,
3113,
1408,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
... |
public List selectActiveBannerByPlacement(int placement) throws Exception | public List selectActiveBannerByPlacement(int placement) | public List selectActiveBannerByPlacement(int placement) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BannerDAO.selectActiveBannerByPlacement")); p.setInt(1, placement); List l = new ArrayList(); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(this.getBanner(rs)); } rs.close(); p.close(); return l; } | 52144 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52144/f4af364dacad27a1238104a19d90e4a102043281/GenericBannerDAO.java/clean/src/net/jforum/dao/generic/GenericBannerDAO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
2027,
3896,
27398,
858,
12420,
12,
474,
12607,
13,
1216,
1185,
202,
95,
202,
202,
29325,
293,
273,
804,
1290,
379,
3210,
1042,
18,
588,
1952,
7675,
9366,
3406,
12,
9506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
2027,
3896,
27398,
858,
12420,
12,
474,
12607,
13,
1216,
1185,
202,
95,
202,
202,
29325,
293,
273,
804,
1290,
379,
3210,
1042,
18,
588,
1952,
7675,
9366,
3406,
12,
9506,
... |
} else if (atts.getQName(i).equals("title") && atts.getValue(i).equals("connect")) { | } else if (atts.getQName(j).equals("title") && atts.getValue(j).equals("connect")) { | public void startElement(CMLStack xpath, String uri, String local, String raw, Attributes atts) { String name = raw; isELSYM = false; if ("list".equals(name)) { for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("title") && atts.getValue(i).equals("sequence")) { } else if (atts.getQName(i).equals("title") && atts.getValue(i).equals("connections")) { // assume that Atom's have been read logger.debug("Assuming that Atom's have been read: storing them"); super.storeAtomData(); connectionTable = true; logger.debug("Start Connection Table"); } else if (atts.getQName(i).equals("title") && atts.getValue(i).equals("connect")) { logger.debug("New connection"); isBond = true; } else if (atts.getQName(i).equals("id") && isBond) { connect_root = atts.getValue(i); } // ignore other list items at this moment } } else { super.startElement(xpath, uri, local, raw, atts); } } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/2a939a94486794ee0ca07c58f450714250d67e84/PDBConvention.java/buggy/src/org/openscience/cdk/io/cml/PDBConvention.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
39,
1495,
2624,
6748,
16,
514,
2003,
16,
514,
1191,
16,
514,
1831,
16,
1171,
9079,
9055,
15687,
13,
288,
3639,
514,
508,
273,
1831,
31,
3639,
353,
2247,
7474,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13591,
12,
39,
1495,
2624,
6748,
16,
514,
2003,
16,
514,
1191,
16,
514,
1831,
16,
1171,
9079,
9055,
15687,
13,
288,
3639,
514,
508,
273,
1831,
31,
3639,
353,
2247,
7474,
49,
... |
sb.append(bigStr.substring(negative ? 1 : 0)); sb.insert(point, '.'); | else { sb.append(bigStr); sb.insert(point + (negative ? 1 : 0), '.'); } | public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; int point = bigStr.length() - scale; boolean negative = (bigStr.charAt(0) == '-'); StringBuffer sb = new StringBuffer(bigStr.length() + 1 + (point <= 0 ? -point+1 : 0)); if (negative) sb.append('-'); while (point <= 0) { sb.append('0'); point++; } sb.append(bigStr.substring(negative ? 1 : 0)); sb.insert(point, '.'); return sb.toString(); } | 1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/992e575b64a7cd3975a728342d1e4f837c0b90cc/BigDecimal.java/buggy/libjava/java/math/BigDecimal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1832,
282,
288,
565,
514,
5446,
1585,
273,
509,
3053,
18,
10492,
5621,
565,
309,
261,
5864,
422,
374,
13,
4202,
327,
5446,
1585,
31,
565,
509,
1634,
273,
5446,
1585,
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,
514,
1762,
1832,
282,
288,
565,
514,
5446,
1585,
273,
509,
3053,
18,
10492,
5621,
565,
309,
261,
5864,
422,
374,
13,
4202,
327,
5446,
1585,
31,
565,
509,
1634,
273,
5446,
1585,
18... |
public static boolean isPrimitive(Class C) { | public static boolean isPrimitive(Class C) { | public static boolean isPrimitive(Class C) { return java.lang.JikesRVMSupport.getTypeForClass(C).isPrimitiveType(); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/705cb85b3c7e05696189446f5268011580d80945/ReflectionSupport.java/buggy/rvm/src/vm/libSupport/ReflectionSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
19598,
12,
797,
385,
13,
225,
288,
565,
327,
2252,
18,
4936,
18,
46,
25235,
54,
7397,
6289,
18,
588,
559,
22581,
12,
39,
2934,
291,
9840,
559,
5621,
225,
289,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
19598,
12,
797,
385,
13,
225,
288,
565,
327,
2252,
18,
4936,
18,
46,
25235,
54,
7397,
6289,
18,
588,
559,
22581,
12,
39,
2934,
291,
9840,
559,
5621,
225,
289,
2,
-100... |
String device = stateLocation.getDevice(); if (device != null && device.charAt(0) == '/') stateLocation = stateLocation.setDevice(device.substring(1)); | private IPath getJavaPluginWorkingLocation() { if (this.javaPluginLocation != null) return this.javaPluginLocation; IPath stateLocation = JavaCore.getPlugin().getStateLocation(); // TODO (jerome) workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=62267 String device = stateLocation.getDevice(); if (device != null && device.charAt(0) == '/') stateLocation = stateLocation.setDevice(device.substring(1)); return this.javaPluginLocation = stateLocation;} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/9250e414d116832e107a8d728c507c603f99f374/IndexManager.java/clean/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
467,
743,
18911,
3773,
14836,
2735,
1435,
288,
202,
430,
261,
2211,
18,
6290,
3773,
2735,
480,
446,
13,
327,
333,
18,
6290,
3773,
2735,
31,
202,
45,
743,
919,
2735,
273,
5110,
4670,
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,
3238,
467,
743,
18911,
3773,
14836,
2735,
1435,
288,
202,
430,
261,
2211,
18,
6290,
3773,
2735,
480,
446,
13,
327,
333,
18,
6290,
3773,
2735,
31,
202,
45,
743,
919,
2735,
273,
5110,
4670,
18... | |
layerButton = new JButton(new ImageIcon(OMToolSet.class.getResource("layers.gif"), "Layer Controls")); | layerButton = new JButton(new ImageIcon(OMToolSet.class .getResource("layers.gif"), "Layer Controls")); | public Container getFace() { JButton layerButton = null; if (getUseAsTool()) { layerButton = new JButton(new ImageIcon(OMToolSet.class.getResource("layers.gif"), "Layer Controls")); layerButton.setBorderPainted(false); layerButton.setToolTipText("Layer Controls"); layerButton.setMargin(new Insets(0,0,0,0)); layerButton.addActionListener(getActionListener()); } return layerButton; } | 3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/852a795729cc7bdc306618487d58138d7265f6f8/LayersPanel.java/clean/src/openmap/com/bbn/openmap/gui/LayersPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4039,
2812,
623,
1435,
288,
3639,
28804,
3018,
3616,
273,
446,
31,
3639,
309,
261,
588,
3727,
1463,
6364,
10756,
288,
5411,
3018,
3616,
273,
394,
28804,
12,
2704,
3421,
5554,
12,
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,
4039,
2812,
623,
1435,
288,
3639,
28804,
3018,
3616,
273,
446,
31,
3639,
309,
261,
588,
3727,
1463,
6364,
10756,
288,
5411,
3018,
3616,
273,
394,
28804,
12,
2704,
3421,
5554,
12,
18... |
(Math.abs(inClose[i] - inOpen[i])) > ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) != 0.0 ? BodyLongPeriodTotal[0] / (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[0] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[0] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && | if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLKICKING_Lookback (); if( startIdx < lookbackTotal ) startIdx = lookbackTotal; | public TA_RetCode CDLKICKING(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[]) { double[] ShadowVeryShortPeriodTotal = new double[2]; ; double[] BodyLongPeriodTotal = new double[2]; ; int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLKICKING_Lookback(); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } ShadowVeryShortPeriodTotal[1] = 0; ShadowVeryShortPeriodTotal[0] = 0; ShadowVeryShortTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod); BodyLongPeriodTotal[1] = 0; BodyLongPeriodTotal[0] = 0; BodyLongTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod); i = ShadowVeryShortTrailingIdx; while (i < startIdx) { ShadowVeryShortPeriodTotal[1] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); ShadowVeryShortPeriodTotal[0] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))); i++; } i = BodyLongTrailingIdx; while (i < startIdx) { BodyLongPeriodTotal[1] += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); BodyLongPeriodTotal[0] += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))); i++; } i = startIdx; outIdx = 0; do { if ((inClose[i - 1] >= inOpen[i - 1] ? 1 : -1) == -(inClose[i] >= inOpen[i] ? 1 : -1) && (Math.abs(inClose[i - 1] - inOpen[i - 1])) > ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) != 0.0 ? BodyLongPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (Math.abs(inClose[i] - inOpen[i])) > ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) != 0.0 ? BodyLongPeriodTotal[0] / (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[0] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[0] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (((inClose[i - 1] >= inOpen[i - 1] ? 1 : -1) == -1 && (inLow[i] > inHigh[i - 1])) || ((inClose[i - 1] >= inOpen[i - 1] ? 1 : -1) == 1 && (inHigh[i] < inLow[i - 1])))) outInteger[outIdx++] = (inClose[i] >= inOpen[i] ? 1 : -1) * 100; else outInteger[outIdx++] = 0; for (totIdx = 1; totIdx >= 0; --totIdx) { BodyLongPeriodTotal[totIdx] += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - totIdx] - inOpen[i - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - totIdx] - inLow[i - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - totIdx] - (inClose[i - totIdx] >= inOpen[i - totIdx] ? inClose[i - totIdx] : inOpen[i - totIdx])) + ((inClose[i - totIdx] >= inOpen[i - totIdx] ? inOpen[i - totIdx] : inClose[i - totIdx]) - inLow[i - totIdx]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[BodyLongTrailingIdx - totIdx] - inOpen[BodyLongTrailingIdx - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[BodyLongTrailingIdx - totIdx] - inLow[BodyLongTrailingIdx - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[BodyLongTrailingIdx - totIdx] - (inClose[BodyLongTrailingIdx - totIdx] >= inOpen[BodyLongTrailingIdx - totIdx] ? inClose[BodyLongTrailingIdx - totIdx] : inOpen[BodyLongTrailingIdx - totIdx])) + ((inClose[BodyLongTrailingIdx - totIdx] >= inOpen[BodyLongTrailingIdx - totIdx] ? inOpen[BodyLongTrailingIdx - totIdx] : inClose[BodyLongTrailingIdx - totIdx]) - inLow[BodyLongTrailingIdx - totIdx]) : 0))); ShadowVeryShortPeriodTotal[totIdx] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - totIdx] - inOpen[i - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - totIdx] - inLow[i - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - totIdx] - (inClose[i - totIdx] >= inOpen[i - totIdx] ? inClose[i - totIdx] : inOpen[i - totIdx])) + ((inClose[i - totIdx] >= inOpen[i - totIdx] ? inOpen[i - totIdx] : inClose[i - totIdx]) - inLow[i - totIdx]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[ShadowVeryShortTrailingIdx - totIdx] - inOpen[ShadowVeryShortTrailingIdx - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[ShadowVeryShortTrailingIdx - totIdx] - inLow[ShadowVeryShortTrailingIdx - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[ShadowVeryShortTrailingIdx - totIdx] - (inClose[ShadowVeryShortTrailingIdx - totIdx] >= inOpen[ShadowVeryShortTrailingIdx - totIdx] ? inClose[ShadowVeryShortTrailingIdx - totIdx] : inOpen[ShadowVeryShortTrailingIdx - totIdx])) + ((inClose[ShadowVeryShortTrailingIdx - totIdx] >= inOpen[ShadowVeryShortTrailingIdx - totIdx] ? inOpen[ShadowVeryShortTrailingIdx - totIdx] : inClose[ShadowVeryShortTrailingIdx - totIdx]) - inLow[ShadowVeryShortTrailingIdx - totIdx]) : 0))); } i++; ShadowVeryShortTrailingIdx++; BodyLongTrailingIdx++; } while (i <= endIdx); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; } | 2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/8c26ea7a2c59f9148f3db0db7ab39ed48689e601/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
385,
8914,
47,
16656,
1360,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
3678,
63,
6487,
1082,
202,
9056,
316,
8573,
63,
6487,
1645,
316,
10520,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
399,
37,
67,
7055,
1085,
385,
8914,
47,
16656,
1360,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
3678,
63,
6487,
1082,
202,
9056,
316,
8573,
63,
6487,
1645,
316,
10520,... |
if (!(value instanceof NativeJavaObject)) | if (!(value instanceof Wrapper)) | public boolean hasInstance(Scriptable value) { if (!(value instanceof NativeJavaObject)) return false; Object instance = ((NativeJavaObject)value).unwrap(); return cls.isInstance(instance); } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/58b79a147be15512c87cfd878014c0c293f7d8af/NativeJavaArray.java/buggy/js/rhino/org/mozilla/javascript/NativeJavaArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
1442,
12,
3651,
429,
460,
13,
288,
3639,
309,
16051,
12,
1132,
1276,
18735,
3719,
5411,
327,
629,
31,
3639,
1033,
791,
273,
14015,
9220,
5852,
921,
13,
1132,
2934,
318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
1442,
12,
3651,
429,
460,
13,
288,
3639,
309,
16051,
12,
1132,
1276,
18735,
3719,
5411,
327,
629,
31,
3639,
1033,
791,
273,
14015,
9220,
5852,
921,
13,
1132,
2934,
318,
... |
return (!connection.isConnected() && !connection.isSecureConnection()) | return (!connection.isConnected() && !connection.isSecureConnection()) | private boolean requiresReconnect() { return (!connection.isConnected() && !connection.isSecureConnection()) || !connection.isAuthenticated(); } | 52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/5da3e40f23fd0d5e4f007d33f240c966dcc49a92/JabberPublisher.java/clean/main/src/net/sourceforge/cruisecontrol/publishers/JabberPublisher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
4991,
20427,
1435,
288,
3639,
327,
16051,
4071,
18,
291,
8932,
1435,
1171,
597,
401,
4071,
18,
291,
12834,
1952,
10756,
1171,
747,
401,
4071,
18,
291,
15606,
5621,
565,
289,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
4991,
20427,
1435,
288,
3639,
327,
16051,
4071,
18,
291,
8932,
1435,
1171,
597,
401,
4071,
18,
291,
12834,
1952,
10756,
1171,
747,
401,
4071,
18,
291,
15606,
5621,
565,
289,
2... |
res.setStatus(HttpServletResponse.SC_OK); | private byte[] dispatchJsp(CmsFlexController controller) throws ServletException, IOException { // get request / response wrappers CmsFlexRequest f_req = controller.getCurrentRequest(); CmsFlexResponse f_res = controller.getCurrentResponse(); try { f_req.getRequestDispatcher(controller.getCmsObject().getSitePath(controller.getCmsResource())).include( f_req, f_res); } catch (SocketException e) { // uncritical, might happen if client (browser) does not wait until end of page delivery LOG.debug(Messages.get().key(Messages.LOG_IGNORING_EXC_1, e.getClass().getName()), e); } byte[] result = null; HttpServletResponse res = controller.getTopResponse(); if (!controller.isStreaming() && !f_res.isSuspended()) { try { // if a JSP errorpage was triggered the response will be already committed here if (!res.isCommitted() || m_errorPagesAreNotCommited) { // check if the current request was done by a workplace user boolean isWorkplaceUser = CmsWorkplaceManager.isWorkplaceUser(f_req); // check if the content was modified since the last request if (controller.isTop() && !isWorkplaceUser && CmsFlexController.isNotModifiedSince(f_req, controller.getDateLastModified())) { if (f_req.getParameterMap().size() == 0) { // only use "expires" header on pages that have no parameters, // otherwise some browsers (e.g. IE 6) will not even try to request // updated versions of the page CmsFlexController.setDateExpiresHeader(res, controller.getDateExpires()); } res.setStatus(HttpServletResponse.SC_NOT_MODIFIED); return null; } // get the result byte array result = f_res.getWriterBytes(); if (controller.getTopRequest().getHeader(CmsRequestUtil.HEADER_OPENCMS_EXPORT) != null) { // this is a non "on-demand" static export request, don't write to the response stream controller.getTopRequest().setAttribute( CmsRequestUtil.HEADER_OPENCMS_EXPORT, new Long(controller.getDateLastModified())); } else if (controller.isTop()) { // process headers and write output if this is the "top" request/response res.setContentLength(result.length); if (isWorkplaceUser) { res.setDateHeader(CmsRequestUtil.HEADER_LAST_MODIFIED, System.currentTimeMillis()); CmsRequestUtil.setNoCacheHeaders(res); } else { // set date last modified header CmsFlexController.setDateLastModifiedHeader(res, controller.getDateLastModified()); if ((f_req.getParameterMap().size() == 0) && (controller.getDateLastModified() > -1)) { // only use "expires" header on pages that have no parameters // and that are cachable (i.e. 'date last modified' is set) // otherwise some browsers (e.g. IE 6) will not even try to request // updated versions of the page CmsFlexController.setDateExpiresHeader(res, controller.getDateExpires()); } } // set response status to "200 - OK" (required for static export "on-demand") res.setStatus(HttpServletResponse.SC_OK); // proecess the headers CmsFlexResponse.processHeaders(f_res.getHeaders(), res); res.getOutputStream().write(result); res.getOutputStream().flush(); } } } catch (IllegalStateException e) { // uncritical, might happen if JSP error page was used LOG.debug(Messages.get().key(Messages.LOG_IGNORING_EXC_1, e.getClass().getName()), e); } catch (SocketException e) { // uncritical, might happen if client (browser) does not wait until end of page delivery LOG.debug(Messages.get().key(Messages.LOG_IGNORING_EXC_1, e.getClass().getName()), e); } } return result; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/8ec2cf0f95ce23cbf57d3c6bc199db5910c99ccc/CmsJspLoader.java/buggy/src/org/opencms/loader/CmsJspLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1160,
8526,
3435,
21796,
12,
4747,
19667,
2933,
2596,
13,
1216,
16517,
16,
1860,
288,
3639,
368,
336,
590,
342,
766,
21589,
3639,
2149,
19667,
691,
284,
67,
3658,
273,
2596,
18,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1160,
8526,
3435,
21796,
12,
4747,
19667,
2933,
2596,
13,
1216,
16517,
16,
1860,
288,
3639,
368,
336,
590,
342,
766,
21589,
3639,
2149,
19667,
691,
284,
67,
3658,
273,
2596,
18,
588... | |
this.seq = seq; | public void setSequence(Sequence seq) { this.seq = seq; } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/dc62a0a7cf481c21c3be647214959067a3b98f61/SimpleTrackLayout.java/buggy/src/org/biojava/bio/gui/sequence/tracklayout/SimpleTrackLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
4021,
12,
4021,
3833,
13,
288,
6647,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
4021,
12,
4021,
3833,
13,
288,
6647,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
org.exist.xquery.parser.XQueryAST tmp207_AST = null; tmp207_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp207_AST); | org.exist.xquery.parser.XQueryAST tmp206_AST = null; tmp206_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp206_AST); | public final void forwardAxisSpecifier() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST forwardAxisSpecifier_AST = null; switch ( LA(1)) { case LITERAL_child: { org.exist.xquery.parser.XQueryAST tmp201_AST = null; tmp201_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp201_AST); match(LITERAL_child); forwardAxisSpecifier_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_self: { org.exist.xquery.parser.XQueryAST tmp202_AST = null; tmp202_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp202_AST); match(LITERAL_self); forwardAxisSpecifier_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_attribute: { org.exist.xquery.parser.XQueryAST tmp203_AST = null; tmp203_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp203_AST); match(LITERAL_attribute); forwardAxisSpecifier_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_descendant: { org.exist.xquery.parser.XQueryAST tmp204_AST = null; tmp204_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp204_AST); match(LITERAL_descendant); forwardAxisSpecifier_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 151: { org.exist.xquery.parser.XQueryAST tmp205_AST = null; tmp205_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp205_AST); match(151); forwardAxisSpecifier_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 152: { org.exist.xquery.parser.XQueryAST tmp206_AST = null; tmp206_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp206_AST); match(152); forwardAxisSpecifier_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_following: { org.exist.xquery.parser.XQueryAST tmp207_AST = null; tmp207_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp207_AST); match(LITERAL_following); forwardAxisSpecifier_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = forwardAxisSpecifier_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/00430aa4dd6963441696c4ac7250593b74a38b39/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
5104,
6558,
21416,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
5104,
6558,
21416,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
... |
public DefaultSiteStatusServiceIntegrationTest() throws MarshalException, ValidationException, IOException, PropertyVetoException, SQLException { /* * Note: I'm using the opennms-database.xml file in target/classes/etc * so that it has been filtered first. You'll have to make sure that * you've done an "install" in opennms-daemon or the top-level, * or at least a "compile". * * E.g.: ( cd opennms-daemon && ../build.sh compile ) */ DataSourceFactory.setInstance(new C3P0ConnectionFactory("../opennms-daemon/target/classes/etc/opennms-database.xml")); | public DefaultSiteStatusServiceIntegrationTest() throws Exception { System.setProperty("opennms.home", "src/test/opennms-home"); | public DefaultSiteStatusServiceIntegrationTest() throws MarshalException, ValidationException, IOException, PropertyVetoException, SQLException { /* * Note: I'm using the opennms-database.xml file in target/classes/etc * so that it has been filtered first. You'll have to make sure that * you've done an "install" in opennms-daemon or the top-level, * or at least a "compile". * * E.g.: ( cd opennms-daemon && ../build.sh compile ) */ DataSourceFactory.setInstance(new C3P0ConnectionFactory("../opennms-daemon/target/classes/etc/opennms-database.xml")); SurveillanceViewsFactory.setInstance(new SurveillanceViewsFactory("../opennms-daemon/src/main/filtered/etc/surveillance-views.xml")); CategoryFactory.setInstance(new CategoryFactory(new FileReader("../opennms-daemon/src/main/filtered/etc/categories.xml"))); ViewsDisplayFactory.setInstance(new ViewsDisplayFactory("../opennms-daemon/src/main/filtered/etc/viewsdisplay.xml")); SiteStatusViewsFactory.setInstance(new SiteStatusViewsFactory("../opennms-daemon/src/main/filtered/etc/site-status-views.xml")); } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/efda237e0ff80bc5232fbc36817f5f1c9642bde6/DefaultSiteStatusServiceIntegrationTest.java/buggy/opennms-webapp/src/test/java/org/opennms/web/svclayer/support/DefaultSiteStatusServiceIntegrationTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2989,
4956,
1482,
1179,
15372,
4709,
1435,
1216,
5884,
503,
16,
15614,
16,
1860,
16,
4276,
58,
11453,
503,
16,
6483,
288,
3639,
1748,
540,
380,
3609,
30,
467,
17784,
1450,
326,
1696... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2989,
4956,
1482,
1179,
15372,
4709,
1435,
1216,
5884,
503,
16,
15614,
16,
1860,
16,
4276,
58,
11453,
503,
16,
6483,
288,
3639,
1748,
540,
380,
3609,
30,
467,
17784,
1450,
326,
1696... |
instance.isActive = false; | System.out.println( "InstanceInterpreter finished" ); | public void run() { try { boolean ret; instance.isActive = true; ret = init(); while (ret) { ret = advance(); } instance.isActive = false; System.out.println( "InstanceInterpreter finished" ); synchronized (instance.instanceInObject) { instance.drainSignals(context.debugObject); if (instance.instanceInObject.getRunningInterpretersRefcount().put()) { /** * If this is the last running interpreter, then delete * the object from the global object pool (analogous to * a delete object action for passive objects) */ context.delObject( instance.instanceInObject ); instance.instanceInObject.drainSignals(context.debugObject); } } } catch ( LemRuntimeException e ) { e.printStackTrace(); } } | 10434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10434/5efe5c406a4ca29a2177537faf48660bbcc8580d/InstanceInterpreter.java/clean/trunk/src/runtime/InstanceInterpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
775,
288,
202,
565,
1250,
325,
31,
202,
565,
791,
18,
291,
3896,
273,
638,
31,
5411,
325,
273,
1208,
5621,
5411,
1323,
261,
1349,
13,
288,
10792,
325,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
775,
288,
202,
565,
1250,
325,
31,
202,
565,
791,
18,
291,
3896,
273,
638,
31,
5411,
325,
273,
1208,
5621,
5411,
1323,
261,
1349,
13,
288,
10792,
325,
... |
public void applyFix(Project project, ProblemDescriptor problemDescriptor) { final PsiElement nameElement = problemDescriptor.getPsiElement(); | public void applyFix(Project project, ProblemDescriptor descriptor) { if (ReadonlyStatusHandler.getInstance(project).ensureFilesWritable(new VirtualFile[]{descriptor.getPsiElement().getContainingFile().getVirtualFile()}).hasReadonlyFiles()) return; final PsiElement nameElement = descriptor.getPsiElement(); | public void applyFix(Project project, ProblemDescriptor problemDescriptor) { final PsiElement nameElement = problemDescriptor.getPsiElement(); final PsiLocalVariable variable = (PsiLocalVariable) nameElement.getParent(); final RefactoringActionHandlerFactory factory = RefactoringActionHandlerFactory.getInstance(); final RefactoringActionHandler inlineHandler = factory.createInlineHandler(); inlineHandler.invoke(project, new PsiElement[]{variable}, null); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/f23e268ec3c50c6292ee986871630b8e997a0d32/InlineVariableFix.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/fixes/InlineVariableFix.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2230,
8585,
12,
4109,
1984,
16,
21685,
3187,
6199,
3187,
13,
288,
3639,
727,
453,
7722,
1046,
508,
1046,
273,
6199,
3187,
18,
588,
52,
7722,
1046,
5621,
3639,
727,
453,
7722,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2230,
8585,
12,
4109,
1984,
16,
21685,
3187,
6199,
3187,
13,
288,
3639,
727,
453,
7722,
1046,
508,
1046,
273,
6199,
3187,
18,
588,
52,
7722,
1046,
5621,
3639,
727,
453,
7722,
... |
return type.type(); | TypeSystem ts = av.typeSystem(); if (ts.numericConversionValid(type.type(), child.constantValue())) { return child.type(); } else { return type.type(); } | public Type childExpectedType(Expr child, AscriptionVisitor av) { if (child == init) { return type.type(); } return child.type(); } | 11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/a8533317d300894b35ed4762483efd548b386527/LocalDecl_c.java/buggy/src/polyglot/ast/LocalDecl_c.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1412,
1151,
6861,
559,
12,
4742,
1151,
16,
432,
3100,
7413,
1712,
13,
288,
3639,
309,
261,
3624,
422,
1208,
13,
288,
5411,
1412,
3163,
3742,
273,
1712,
18,
723,
3163,
5621,
565,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1412,
1151,
6861,
559,
12,
4742,
1151,
16,
432,
3100,
7413,
1712,
13,
288,
3639,
309,
261,
3624,
422,
1208,
13,
288,
5411,
1412,
3163,
3742,
273,
1712,
18,
723,
3163,
5621,
565,
3... |
pageContext.setAttribute(PAGE_ATTRIBUTE_MEDIA, currentMediaType); | this.pageContext.setAttribute(PAGE_ATTRIBUTE_MEDIA, this.currentMediaType); | public int doStartTag() throws JspException { checkCommonsLang(); if (log.isDebugEnabled()) { log.debug("[" + getId() + "] doStartTag called"); } this.tableModel = new TableModel(); // copying id to the table model for logging this.tableModel.setId(getId()); this.properties = new TableProperties(); initParameters(); // set the PAGE_ATTRIBUTE_MEDIA attribute in the page scope if (this.currentMediaType != null) { if (log.isDebugEnabled()) { log.debug("[" + getId() + "] setting media [" + currentMediaType + "] in pagecontext"); } pageContext.setAttribute(PAGE_ATTRIBUTE_MEDIA, currentMediaType); } doIteration(); // always return EVAL_BODY_TAG to get column headers also if the table is empty // using int to avoid deprecation error in compilation using j2ee 1.3 return 2; } | 7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/ed5033a65d1a925fc3c1ad3ffe7210f23cf10cb0/TableTag.java/clean/displaytag/src/main/java/org/displaytag/tags/TableTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
565,
288,
3639,
866,
6517,
87,
7275,
5621,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
3639,
288,
5411,
613,
18,
4148,
2932,
9614,
397,
263... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
565,
288,
3639,
866,
6517,
87,
7275,
5621,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
3639,
288,
5411,
613,
18,
4148,
2932,
9614,
397,
263... |
int[] partialCounts = null; BatchUpdateException err = null; try { partialCounts = tds.getBatchCounts(); } catch (BatchUpdateException ex) { err = ex; partialCounts = ex.getUpdateCounts(); } | sqlEx = tds.getBatchCounts(counts, sqlEx); | public synchronized int[] executeBatch() throws SQLException, BatchUpdateException { checkOpen(); if (batchValues == null || batchValues.size() == 0) { return new int[0]; } int size = batchValues.size(); int executeSize = connection.getBatchSize(); executeSize = (executeSize == 0) ? Integer.MAX_VALUE : executeSize; int[] updateCounts = null; if (executeSize < size) { updateCounts = new int[size]; } try { tds.startBatch(); for (int i = 0; i < size;) { Object value = batchValues.get(i); ++i; // Execute batch now if max size reached or end of batch boolean executeNow = (i % executeSize == 0) || i == size; if (value instanceof String) { tds.executeSQL((String)value, null, null, true, 0, -1, -1, executeNow); } else { executeBatchOther(value, executeNow); } // If the batch has been sent, process the results if (executeNow) { int[] partialCounts = null; BatchUpdateException err = null; try { // Will throw a BatchUpdateException with the partial // update counts if an error occurs and consume the // whole response partialCounts = tds.getBatchCounts(); } catch (BatchUpdateException ex) { err = ex; partialCounts = ex.getUpdateCounts(); } if (executeSize < size) { // Copy over update counts System.arraycopy(partialCounts, 0, updateCounts, ((i - 1) / executeSize) * executeSize, partialCounts.length); } else { updateCounts = partialCounts; } if (err != null) { // If an error occurred, truncate the update counts and // "rethrow" the exception // TODO Should probably continue for Sybase to keep compatible if (i > executeSize) { int[] tmp = new int[((i - 1) / executeSize) * executeSize + partialCounts.length]; System.arraycopy(updateCounts, 0, tmp, 0, tmp.length); updateCounts = tmp; } throw new BatchUpdateException( err.getMessage(), err.getSQLState(), err.getErrorCode(), updateCounts); } } } return updateCounts; } catch (BatchUpdateException ex) { // If it's a BatchUpdateException let it go throw ex; } catch (SQLException ex) { // An SQLException can only occur while sending the batch // (getBatchCounts() doesn't throw SQLExceptions), so we have to // end the batch and return the partial results // FIXME What should we send here to flush out the batch? // Come to think of it, is there any circumstance under which this // could actually happen without the connection getting closed? throw new BatchUpdateException(ex.getMessage(), ex.getSQLState(), ex.getErrorCode(), tds.getBatchCounts()); } finally { clearBatch(); } } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/8e88ecdb0e7cf8395cec7218bae01985cf88609a/JtdsStatement.java/buggy/src/main/net/sourceforge/jtds/jdbc/JtdsStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
509,
8526,
1836,
4497,
1435,
5411,
1216,
6483,
16,
5982,
1891,
503,
288,
3639,
866,
3678,
5621,
3639,
309,
261,
5303,
1972,
422,
446,
747,
2581,
1972,
18,
1467,
1435,
422,
374... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
509,
8526,
1836,
4497,
1435,
5411,
1216,
6483,
16,
5982,
1891,
503,
288,
3639,
866,
3678,
5621,
3639,
309,
261,
5303,
1972,
422,
446,
747,
2581,
1972,
18,
1467,
1435,
422,
374... |
reportGenericSchemaError("ComplexType " + typeName + ": " + | reportGenericSchemaError("ComplexType " + typeName + ": " + | private void traverseComplexContent(Element complexContentElement, XSComplexTypeDecl typeInfo, boolean mixedOnType, XSDocumentInfo schemaDoc, SchemaGrammar grammar) throws ComplexTypeRecoverableError { String typeName = typeInfo.fName; Object[] attrValues = fAttrChecker.checkAttributes(complexContentElement, false, schemaDoc); // ----------------------------------------------------------------------- // Determine if this is mixed content // ----------------------------------------------------------------------- boolean mixedContent = mixedOnType; Boolean mixedAtt = (Boolean) attrValues[XSAttributeChecker.ATTIDX_MIXED]; if (mixedAtt != null) { mixedContent = mixedAtt.booleanValue(); } // ----------------------------------------------------------------------- // Since the type must have complex content, set the simple type validators // to null // ----------------------------------------------------------------------- typeInfo.fDatatypeValidator = null; Element complexContent = checkContent(DOMUtil.getFirstChildElement(complexContentElement), attrValues, schemaDoc); fAttrChecker.returnAttrArray(attrValues, schemaDoc); // If there are no children, return if (complexContent==null) { throw new ComplexTypeRecoverableError(); } // ----------------------------------------------------------------------- // The content should be either "restriction" or "extension" // ----------------------------------------------------------------------- String complexContentName = DOMUtil.getLocalName(complexContent); if (complexContentName.equals(SchemaSymbols.ELT_RESTRICTION)) typeInfo.fDerivedBy = SchemaSymbols.RESTRICTION; else if (complexContentName.equals(SchemaSymbols.ELT_EXTENSION)) typeInfo.fDerivedBy = SchemaSymbols.EXTENSION; else { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "Child of complexContent must be restriction or extension"); throw new ComplexTypeRecoverableError(); } if (DOMUtil.getNextSiblingElement(complexContent) != null) { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "Invalid child of complexContent"); throw new ComplexTypeRecoverableError(); } attrValues = fAttrChecker.checkAttributes(complexContent, false, schemaDoc); QName baseTypeName = (QName) attrValues[XSAttributeChecker.ATTIDX_BASE]; fAttrChecker.returnAttrArray(attrValues, schemaDoc); // ----------------------------------------------------------------------- // Need a base type. Check that it's a complex type // ----------------------------------------------------------------------- if (baseTypeName==null) { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "The base attribute must be specified for the restriction or extension"); throw new ComplexTypeRecoverableError(); } XSTypeDecl type = (XSTypeDecl)fSchemaHandler.getGlobalDecl(schemaDoc, XSDHandler.TYPEDECL_TYPE, baseTypeName); if (type==null) throw new ComplexTypeRecoverableError(); if (! (type instanceof XSComplexTypeDecl)) { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "The base type must be complex"); throw new ComplexTypeRecoverableError(); } XSComplexTypeDecl baseType = (XSComplexTypeDecl)type; typeInfo.fBaseType = baseType; // ----------------------------------------------------------------------- // Check that the base permits the derivation // ----------------------------------------------------------------------- if ((baseType.fFinal & typeInfo.fDerivedBy)!=0) { //REVISIT - generate error reportGenericSchemaError("ComplexType " + typeName + ": " + "The base type has a final value that prohibits this derivation"); throw new ComplexTypeRecoverableError(); } // ----------------------------------------------------------------------- // Skip over any potential annotations // ----------------------------------------------------------------------- complexContent = checkContent(DOMUtil.getFirstChildElement(complexContent), null, schemaDoc); // ----------------------------------------------------------------------- // Process the content. Note: should I try to catch any complexType errors // here in order to return the attr array? // ----------------------------------------------------------------------- processComplexContent(complexContent, typeInfo, mixedContent, schemaDoc, grammar); // ----------------------------------------------------------------------- // Compose the final content and attribute uses // ----------------------------------------------------------------------- XSParticleDecl baseContent = baseType.fParticle; if (typeInfo.fDerivedBy==SchemaSymbols.RESTRICTION) { // This is an RESTRICTION if (typeInfo.fParticle==null && (!(baseContent==null || baseContent.emptiable()))) { //REVISIT - need better error msg throw new ComplexTypeRecoverableError("derivation-ok-restriction", null); } if (typeInfo.fParticle!=null && baseContent==null) { //REVISIT - need better error msg throw new ComplexTypeRecoverableError("derivation-ok-restriction", null); } mergeAttributes(baseType.fAttrGrp, typeInfo.fAttrGrp, typeName, false); String error = typeInfo.fAttrGrp.validRestrictionOf(baseType.fAttrGrp); if (error != null) { reportGenericSchemaError("ComplexType " + typeName + ": " + error); throw new ComplexTypeRecoverableError(); } } else { // This is an EXTENSION // // Check if the contentType of the base is consistent with the new type // cos-ct-extends.1.4.2.2 if (baseType.fContentType != XSComplexTypeDecl.CONTENTTYPE_EMPTY) { if (((baseType.fContentType == XSComplexTypeDecl.CONTENTTYPE_ELEMENT) && mixedContent) || ((baseType.fContentType == XSComplexTypeDecl.CONTENTTYPE_MIXED) && !mixedContent)) { // REVISIT - need to add a property message reportGenericSchemaError("cos-ct-extends.1.4.2.2.2.1: The content type of the base type " + baseTypeName + " and derived type " + typeName + " must both be mixed or element-only"); throw new ComplexTypeRecoverableError(); } } // Create the particle if (typeInfo.fParticle == null) { typeInfo.fParticle = baseContent; } else if (baseContent==null) { } else { if (typeInfo.fParticle.fType == XSParticleDecl.PARTICLE_ALL || baseType.fParticle.fType == XSParticleDecl.PARTICLE_ALL) { reportGenericSchemaError("cos-all-limited.1.2: An \"all\" model group that is part of a complex type definition must constitute the entire {content type} of the definition"); throw new ComplexTypeRecoverableError(); } XSParticleDecl temp = new XSParticleDecl(); temp.fType = XSParticleDecl.PARTICLE_SEQUENCE; temp.fValue = baseContent; temp.fOtherValue = typeInfo.fParticle; typeInfo.fParticle = temp; } // Set the contentType if (mixedContent) typeInfo.fContentType = XSComplexTypeDecl.CONTENTTYPE_MIXED; else if (typeInfo.fParticle == null) typeInfo.fContentType = XSComplexTypeDecl.CONTENTTYPE_EMPTY; else typeInfo.fContentType = XSComplexTypeDecl.CONTENTTYPE_ELEMENT; mergeAttributes(baseType.fAttrGrp, typeInfo.fAttrGrp, typeName, true); } } // end of traverseComplexContent | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/4b0def86a1a96df8c8cbd5bf50c757023d94325b/XSDComplexTypeTraverser.java/clean/src/org/apache/xerces/impl/v2/XSDComplexTypeTraverser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10080,
12795,
1350,
12,
1046,
7233,
1350,
1046,
16,
29159,
1139,
55,
12795,
559,
3456,
23112,
16,
4766,
3639,
1250,
7826,
1398,
559,
16,
1139,
55,
2519,
966,
1963,
1759,
16,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10080,
12795,
1350,
12,
1046,
7233,
1350,
1046,
16,
29159,
1139,
55,
12795,
559,
3456,
23112,
16,
4766,
3639,
1250,
7826,
1398,
559,
16,
1139,
55,
2519,
966,
1963,
1759,
16,
29... |
if (trace) | if (log.isTraceEnabled()) { | public void end(Xid xid, int flags) throws XAException { if (trace) log.trace("End xid=" + xid + ", flags=" + flags + " " +this); synchronized (this) { switch (flags) { case TMSUSPEND : unsetCurrentTransactionId(xid); rm.suspendTx(xid); break; case TMFAIL : unsetCurrentTransactionId(xid); rm.endTx(xid, false); break; case TMSUCCESS : unsetCurrentTransactionId(xid); rm.endTx(xid, true); break; } } } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/90e4b161b21b8aef910dbc6f515ceceadf11bf49/JBossXAResource.java/clean/src/main/org/jboss/jms/client/JBossXAResource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
679,
12,
60,
350,
19031,
16,
509,
2943,
13,
1216,
21514,
282,
288,
1377,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
540,
613,
18,
5129,
2932,
1638,
19031,
1546,
397,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
679,
12,
60,
350,
19031,
16,
509,
2943,
13,
1216,
21514,
282,
288,
1377,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
540,
613,
18,
5129,
2932,
1638,
19031,
1546,
397,
19... |
this.region = start; this.cursor = start.add(DATA_START_OFFSET); | region = start; cursor = start.add(DATA_START_OFFSET); | final protected Address allocSlowOnce(int bytes, int align, int offset, boolean inGC) { // Ensure the selected chunk size can accomodate the largest object. Extent chunkSize = Word.fromIntZeroExtend(bytes).add(CHUNK_MASK) .and(CHUNK_MASK.not()).toExtent(); Address start = space.acquire(Conversions.bytesToPages(chunkSize)); if (start.isZero()) return start; if (!allowScanning) { // simple allocator if (start.NE(this.limit)) this.cursor = start; this.limit = start.add(chunkSize); } else { if (initialRegion.isZero()) { // first allocation this.initialRegion = start; this.region = start; this.cursor = region.add(DATA_START_OFFSET); } else if (this.limit.add(BYTES_IN_ADDRESS).NE(start) || this.region.diff(start.add(chunkSize)).toWord().toExtent() .GT(maximumRegionSize())) { // non contiguous or maximum size, initialize new region this.region.add(NEXT_REGION_OFFSET).store(start); this.region.add(DATA_END_OFFSET).store(this.cursor); this.region = start; this.cursor = start.add(DATA_START_OFFSET); } this.limit = start.add(chunkSize.sub(BYTES_IN_ADDRESS)); this.region.add(REGION_LIMIT_OFFSET).store(this.limit); } return this.alloc(bytes, align, offset); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/5bc56cf55e7ab608e68f323b9d966899c93b99ff/BumpPointer.java/clean/MMTk/src/org/mmtk/utility/alloc/BumpPointer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
4750,
5267,
4767,
28733,
12212,
12,
474,
1731,
16,
509,
5689,
16,
509,
1384,
16,
4766,
5411,
1250,
316,
15396,
13,
288,
565,
368,
7693,
326,
3170,
2441,
963,
848,
28217,
31756,
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,
282,
727,
4750,
5267,
4767,
28733,
12212,
12,
474,
1731,
16,
509,
5689,
16,
509,
1384,
16,
4766,
5411,
1250,
316,
15396,
13,
288,
565,
368,
7693,
326,
3170,
2441,
963,
848,
28217,
31756,
326,
... |
Debug.show(clasz, " -- ", this.context.clasz); | Debug.show(clasz, this.context.clasz); | private Tree genOuterRef(int pos, Symbol clasz) { if (context.clasz == clasz) return gen.This(pos, clasz); TypeContext tcontext = null; for (int i = 0; i < context.context.outers.length; i++) if (context.context.outers[i].clasz == clasz) tcontext = context.context.outers[i]; assert tcontext != null: Debug.show(clasz, " -- ", context.clasz); if (tcontext.isStable) { throw Debug.abort(Debug.show(clasz, " - ", context.clasz)); /* if (!clasz.owner().isPackageClass()) { Tree qualifier = genOuterRef(pos,tcontext.outers[0].clasz); return gen.Select(pos, qualifier, clasz.module()); } else { assert clasz.owner().isPackageClass(): Debug.show(clasz); return gen.Ident(pos, clasz.module()); } */ } else { assert context.context.vlink != null: Debug.show(clasz, " -- ", context.clasz); Tree tree = context.method == null || context.method.isConstructor() ? gen.Ident(pos, context.context.vlink) : gen.Select(gen.This(pos, context.clasz), context.context.context.vfield); Context context = this.context; while (true) { context = context.outer; assert context != null: Debug.show(clasz, " -- ", this.context.clasz); while (context.context.isStable) { context = context.outer; assert context != null: Debug.show(clasz, " -- ", this.context.clasz); } if (context.clasz == clasz) return tree; Symbol access = getAccessSymbol(context.context.context.vfield, null); assert access != context.context.context.vfield: Debug.show(access) + " - " + Debug.show(this.context.clasz); tree = gen.Apply(gen.Select(tree, access)); } } } | 32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/d94a30d34746ddbe4274c00231734e2bbc3e9ff5/ExplicitOuterClassesPhase.java/buggy/sources/scalac/transformer/ExplicitOuterClassesPhase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
4902,
3157,
15040,
1957,
12,
474,
949,
16,
8565,
23268,
94,
13,
288,
5411,
309,
261,
2472,
18,
830,
345,
94,
422,
23268,
94,
13,
327,
3157,
18,
2503,
12,
917,
16,
23268,
94,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
4902,
3157,
15040,
1957,
12,
474,
949,
16,
8565,
23268,
94,
13,
288,
5411,
309,
261,
2472,
18,
830,
345,
94,
422,
23268,
94,
13,
327,
3157,
18,
2503,
12,
917,
16,
23268,
94,
176... |
System.out.print("Creating Cache Manager..."); cache = new Cache(config); System.out.println("OK"); | System.out.print("Creating Cache Manager..."); cache = new Cache(config); System.out.println("OK"); | public void run(){ // Parse command line /* switch (args.length) { case 0: daemonPort = defaultDaemonPort; break; case 1: try { daemonPort = Integer.parseInt(args[0]); } catch (NumberFormatException e) { System.out.println("Error: Invalid daemon port"); return; } if (daemonPort > maxDaemonPort) { System.out.println("Error: Invalid daemon port"); return; } break; default:System.out.println("Usage: Proxy [daemon port]"); return; }*/ if (!done) { try { // Create the Cache Manager and Configuration objects System.out.println("Initializing..."); // Create main socket daemonPort = defaultDaemonPort; while (daemonPort < 65536) { try { MainSocket = new ServerSocket(daemonPort); System.out.print("Creating Daemon Socket..."); System.out.println(" port " + daemonPort + " OK"); System.out.println("Proxy [daemon port] : " + daemonPort); done = true; break; } catch (IOException e) { daemonPort++; // System.out.println("Error opening daemon socket"); } } System.out.print("Creating Config Object..."); config = new Config(); config.setIsAppletContext(false); config.setLocalHost(InetAddress.getLocalHost().getHostName()); String tmp = InetAddress.getLocalHost().toString(); config.setLocalIP(tmp.substring(tmp.indexOf('/')+1)); config.setProxyMachineNameAndPort(InetAddress.getLocalHost().getHostName()+":"+daemonPort); File adminDir = new File("Applet"); config.setAdminPath(adminDir.getAbsolutePath()); System.out.println("OK"); System.out.print("Creating Cache Manager..."); cache = new Cache(config); System.out.println("OK"); // Start the admin thread System.out.print("Creating Admin Thread..."); Admin adminThd = new Admin(config,cache); adminThd.start(); System.out.println(" port " + config.getAdminPort() + " OK"); if (config.getIsFatherProxy()) { System.out.println("Using Father Proxy "+ config.getFatherProxyHost()+ ":"+config.getFatherProxyPort()+" ."); } else { System.out.println("Not Using Father Proxy ."); } System.out.println("Proxy up and running!"); // Main loop while (true) { // Listen on main socket Socket ClientSocket = MainSocket.accept(); // Pass request to new proxy thread Proxy thd = new Proxy(ClientSocket,cache,config); thd.start(); } } catch (Exception e) {} finally { try { MainSocket.close(); } catch (Exception exc) {} } } } | 14629 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14629/de88bfdbec8aec97404369a96dfb2ca3b6ca9630/Daemon.java/clean/Daemon.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
95,
3639,
368,
2884,
1296,
980,
565,
1748,
1620,
261,
1968,
18,
2469,
13,
288,
565,
648,
374,
30,
8131,
2617,
273,
805,
12858,
2617,
31,
5411,
898,
31,
565,
648,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
95,
3639,
368,
2884,
1296,
980,
565,
1748,
1620,
261,
1968,
18,
2469,
13,
288,
565,
648,
374,
30,
8131,
2617,
273,
805,
12858,
2617,
31,
5411,
898,
31,
565,
648,
... |
_inputName = _unitTest.getInput(); if (_delegate instanceof MarshallingFrameworkTestCase) { _goldFileName = _unitTest.getGoldFile(); } else if (_delegate instanceof SourceGeneratorTestCase) { _goldFileName = _unitTest.getOutput(); } else { | _inputName = _unitTest.getInput(); _goldFileName = _unitTest.getGoldFile(); if (!(_delegate instanceof MarshallingFrameworkTestCase)) { | public void runTest() { if (_delegate == null) { throw new IllegalStateException("No test specified to be run."); } verbose("\n------------------------------"); verbose("Test with reference documents"); verbose("------------------------------\n"); if (_delegate._skip) { verbose("-->Skipping the test"); return; } _inputName = _unitTest.getInput(); if (_delegate instanceof MarshallingFrameworkTestCase) { _goldFileName = _unitTest.getGoldFile(); } else if (_delegate instanceof SourceGeneratorTestCase) { _goldFileName = _unitTest.getOutput(); } else { _goldFileName = null; } if (_inputName != null) { _input = _test.getClassLoader().getResourceAsStream(_inputName); } if (_delegate instanceof MarshallingFrameworkTestCase) { assertNotNull("The input file specified:"+_inputName+" cannot be found.", _input); } String outputName = _delegate._name.replace(' ', '_') + "-testWithReferenceDocument.xml"; try { // 1. Unmarshall Input file if any Object out = null; if (_input != null) { verbose("--> Unmarshalling '" + _inputName + "'\n"); out = _delegate.testUnmarshal(_input); assertNotNull("Unmarshalling '"+ _inputName + "' results in a NULL object.", out); } // 2. Compare with ObjectModelBuilder if any String builderClassName = _delegate._unitTest.getObjectBuilder(); Object generated = null; if (builderClassName != null) { generated = _delegate.buildObjectModel(builderClassName); assertNotNull("The generated object with '" + builderClassName + "' is null", generated); } if (out != null) { if (generated != null) { //the object model must override the equals method. boolean result = generated.equals(out); verbose("----> Compare unmarshalled document to reference object: " + ((result)?"OK":"### Failed ### ")); if (result == false) { verbose("Make sure the reference object model overrides Object#equals"); } if (result == false && generated instanceof CastorTestable) { // try to dump the unmarshalled object and the reference object FileWriter writer = new FileWriter(new File(_delegate._outputRootFile, outputName + "-ref.dump")); writer.write(((CastorTestable)generated).dumpFields()); writer.close(); writer = new FileWriter(new File(_delegate._outputRootFile, outputName + "-unmar.dump")); writer.write(((CastorTestable)out).dumpFields()); writer.close(); } assertTrue("The unmarshalled object differs from the hardcoded object.", result); assertTrue("-->The test case should have failed.", _failure == null || _failure.getContent() == false); } } else if (generated != null) { // We don't have an input file, but we can use the hardcoded object for the next steps out = generated; } else { // we have no input file and no hardcoded object, we can't continue the tests throw new Exception("There is no valid input file or hardcoded object in '" + _delegate._name + "'"); } // 3. Marshall the object ///////////////////////// //change the outputName //////////////////////// verbose("--> Marshalling to: '" + outputName +"'\n"); File marshal_output = _delegate.testMarshal(out, outputName); // 4. Compare with output file if any if (_goldFileName != null) { int result = CTFUtils.compare(_delegate._outputRootFile + "/" + _goldFileName, marshal_output.getAbsolutePath()); verbose("----> Compare marshalled document to gold file '" + _goldFileName + "': " + ((result == 0)?"OK":"### Failed ### ")); if ((_failure != null) && (_failure.getContent() == true)) assertTrue(result != 0); else { assertEquals("The Marshalled object differ from the gold file", 0, result); assertTrue("-->The test case should have failed.",((_failure == null) || (_failure.getContent() == false))); } } // 5. Marshal the Listener and compare it to the listener gold file, if any. if ( _delegate._listenerGoldFile != null && _delegate._listener != null ) { verbose("Compare listener to gold file: " + _delegate._listenerGoldFile); // Unregister the listener -- if we marshal a MarshalListener, // it may end up in an endless loop. For example, a simple implementation // of MarshalListener could log each pre/post marshal invocation on a // Vector to allow for later comparisons. But this means that the // object *being marshaled* keeps getting data added to it during the // marshaling -- each marshal call creates another object to be marshalled! Object listener = _delegate._listener; _delegate._listener = null; String listenerOutput = "Listener-" + outputName; File outputFile = _delegate.testMarshal(listener, listenerOutput); int result = CTFUtils.compare(_delegate._outputRootFile + "/" + _delegate._listenerGoldFile, outputFile.getAbsolutePath()); verbose("----> Compare marshalled document to gold file '" + _delegate._listenerGoldFile + "': " + ((result == 0)?"OK":"### Failed ### ")); if ((_failure != null) && (_failure.getContent() == true)) { assertTrue(result != 0); } else { assertEquals("The Marshalled object differ from the gold file", 0, result); assertTrue("-->The test case should have failed.",((_failure == null) || (_failure.getContent() == false))); } } // 6. umarshall output file and compare to ObjectModelBuilder if any verbose("--> Unmarshalling '" + marshal_output + "'\n"); Object outAgain = _delegate.testUnmarshal(marshal_output); assertNotNull("Unmarshalling '"+marshal_output.getName()+ "' results in a NULL object.", outAgain); assertTrue("-->The test case should have failed.",((_failure == null) || (_failure.getContent() == false))); if (builderClassName != null) { //the equals method must be overriden boolean result = outAgain.equals(out); if (result == false) { verbose("Make sure the reference object model overrides Object#equals"); } verbose("Compare to reference object: " + ((result)?"OK":" ### Failed ### ")); assertTrue("The unmarshalled object differs from the hardcoded object.", result); } } catch (Exception ex) { if (_failure != null && _delegate.checkExceptionWasExpected(ex)) { assertTrue(_failure.getContent()); return; } if (XMLTestCase._printStack) { ex.printStackTrace(System.out); } fail("Unable to process the test case:" + ex); } } | 57307 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57307/944d2a6307b12265358614111f0785d1668b34cc/TestWithReferenceDocument.java/clean/src/tests/main/org/exolab/castor/tests/framework/TestWithReferenceDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
4709,
1435,
288,
3639,
309,
261,
67,
22216,
422,
446,
13,
288,
5411,
604,
394,
5477,
2932,
2279,
1842,
1269,
358,
506,
1086,
1199,
1769,
3639,
289,
3639,
3988,
31458,
82,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4709,
1435,
288,
3639,
309,
261,
67,
22216,
422,
446,
13,
288,
5411,
604,
394,
5477,
2932,
2279,
1842,
1269,
358,
506,
1086,
1199,
1769,
3639,
289,
3639,
3988,
31458,
82,... |
public void paintFixed(Context c, BlockBox block) { int xoff = 0; int yoff = 0; xoff = c.canvas.getWidth(); yoff = c.canvas.getHeight(); if (block.right_set) { xoff = xoff - block.width; } if (block.bottom_set) { //joshy: this should really be block.height instead of bnds.y // need to fix the setting of block.height //joshy: need to do horizontal calcs too, inc scrolling //joshy: need to make the body paint the whole canvas. // start at the bottom of the viewport yoff = c.viewport.getHeight(); // account for the width of the box yoff = yoff - block.height; // - bnds.y // account for the current y offset of the box yoff = yoff - c.getExtents().y; //orig.y; // account for the scrolling of the viewport yoff = yoff - c.canvas.getLocation().y; } c.translate(xoff, yoff); paintNormal(c,block); c.translate(-xoff, -yoff); } | 52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/07ab625b03cad242caa27ac48e830592130b24a1/BoxLayout.java/buggy/src/java/org/joshy/html/BoxLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
12574,
7505,
12,
1042,
276,
16,
3914,
3514,
1203,
13,
288,
474,
619,
3674,
273,
374,
31,
474,
677,
3674,
273,
374,
31,
92,
3674,
273,
276,
18,
15424,
18,
588,
2384,
5621,
93,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
12574,
7505,
12,
1042,
276,
16,
3914,
3514,
1203,
13,
288,
474,
619,
3674,
273,
374,
31,
474,
677,
3674,
273,
374,
31,
92,
3674,
273,
276,
18,
15424,
18,
588,
2384,
5621,
93,
36... | ||
throw new RubyBugException("unsupported encoding " + e); | Asserts.assertNotReached("unsupported encoding " + e); return null; | public static String bytesToString(byte[] bytes) { try { return new String(bytes, encoding); } catch (java.io.UnsupportedEncodingException e) { throw new RubyBugException("unsupported encoding " + e); } } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyString.java/buggy/org/jruby/RubyString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
1731,
5808,
12,
7229,
8526,
1731,
13,
288,
202,
202,
698,
288,
1082,
202,
2463,
394,
514,
12,
3890,
16,
2688,
1769,
202,
202,
97,
1044,
261,
6290,
18,
1594,
18,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
1731,
5808,
12,
7229,
8526,
1731,
13,
288,
202,
202,
698,
288,
1082,
202,
2463,
394,
514,
12,
3890,
16,
2688,
1769,
202,
202,
97,
1044,
261,
6290,
18,
1594,
18,
85... |
.getReportDesignHandle( ); | .getReportDesignHandle( ); | private URL generateURL( String uri ) throws MalformedURLException { try { return new URL( uri ); } catch ( MalformedURLException e ) { String path = URIUtil.getLocalPath( uri ); if ( path != null ) { ModuleHandle designHandle = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); //add by gao for lib return designHandle.findResource( path, IResourceLocator.IMAGE ); } return URI.create( uri ).toURL( ); } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/b7d1cc25e401679546a33915e0d0639457ac3a69/ImageManager.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/ImageManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1976,
2103,
1785,
12,
514,
2003,
262,
1216,
20710,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
2463,
394,
1976,
12,
2003,
11272,
202,
202,
97,
202,
202,
14683,
261,
2071... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1976,
2103,
1785,
12,
514,
2003,
262,
1216,
20710,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
2463,
394,
1976,
12,
2003,
11272,
202,
202,
97,
202,
202,
14683,
261,
2071... |
public static void findLineBrk(AttributedString as) { AttributedCharacterIterator aci = as.getIterator(); if (aci.getEndIndex() == 0) return; char ch = aci.current(), prevCh = (char)-1; byte cls = getCharCharClass(ch); byte curCls = cls; byte prevCls = cls; byte prevPrevCls = -1; int wordCnt = 0; int wordBegin = aci.getBeginIndex(); // loop over all pairs in the string int ich = wordBegin+1; int lineEnd = aci.getRunLimit(lineBrks); if (cls >= CHAR_CLASS_CM) cls = CHAR_CLASS_AL; for (ch = aci.next(); ch != AttributedCharacterIterator.DONE; ich++, prevCh = ch, ch = aci.next(), prevPrevCls = prevCls, prevCls = curCls) { if (ich == lineEnd) { as.addAttribute(WORD_LIMIT, new Integer(wordCnt++), wordBegin, ich); wordBegin = ich; cls = getCharCharClass(ch); curCls = cls; prevCls = cls; if (cls >= CHAR_CLASS_CM) cls = CHAR_CLASS_AL; lineEnd = aci.getRunLimit(lineBrks); continue; } // handle spaces curCls = getCharCharClass(ch); if (curCls == CHAR_CLASS_SP) { // pbrk[ich-1] = BREAK_ACTION_PROHIBITED; continue; } // handle complex scripts if (curCls == CHAR_CLASS_SA) { ich += findComplexBreak(aci); ch = aci.previous(); if (ch != AttributedCharacterIterator.DONE) prevCls = getCharCharClass(ch); ch = aci.next(); if (ch != AttributedCharacterIterator.DONE) curCls = cls = getCharCharClass(ch); continue; } // This isn't in the Unicode line breaking alg. but it // seems needed as otherwise it does produce a break. if ((ch == CHAR_ZERO_WIDTH_JOINER) || (prevCh == CHAR_ZERO_WIDTH_JOINER)) continue; // Don't allow break around JOINER. // handle combining marks if (curCls == CHAR_CLASS_CM) { if (prevCls == CHAR_CLASS_SP) { cls = CHAR_CLASS_ID; if (prevPrevCls != -1) { if (brkPairs[prevPrevCls][CHAR_CLASS_ID] == BREAK_ACTION_DIRECT) { as.addAttribute(WORD_LIMIT, new Integer(wordCnt++), wordBegin, ich-1); wordBegin = ich-1; // pbrk[ich-2] = BREAK_ACTION_DIRECT; } else { // pbrk[ich-2] = BREAK_ACTION_PROHIBITED; } } } // pbrk[ich-1] = BREAK_ACTION_PROHIBITED; continue; } // lookup pair table information byte brk = brkPairs[cls][curCls]; if (brk == BREAK_ACTION_DIRECT) { as.addAttribute(WORD_LIMIT, new Integer(wordCnt++), wordBegin, ich); wordBegin = ich; // pbrk[ich-1] = brk; } else if (brk == BREAK_ACTION_INDIRECT) { if (prevCls == CHAR_CLASS_SP) { as.addAttribute(WORD_LIMIT, new Integer(wordCnt++), wordBegin, ich); wordBegin = ich; } // pbrk[ich-1] = ((prevCls == CHAR_CLASS_SP) ? // BREAK_ACTION_INDIRECT : // BREAK_ACTION_PROHIBITED); } cls = curCls; } // always break at the end as.addAttribute(WORD_LIMIT, new Integer(wordCnt++), wordBegin, ich); wordBegin = ich; // pbrk[ich-1] = BREAK_ACTION_DIRECT; return; } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/e5964823d5dfff2da9aaf63434ed7a83e9f7b152/TextLineBreaks.java/buggy/sources/org/apache/batik/gvt/flow/TextLineBreaks.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
225,
760,
225,
918,
225,
1104,
1670,
19114,
79,
12,
861,
11050,
780,
225,
487,
13,
225,
288,
7734,
2380,
11050,
7069,
3198,
225,
1721,
77,
225,
273,
225,
487,
18,
588,
3198,
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,
540,
1071,
225,
760,
225,
918,
225,
1104,
1670,
19114,
79,
12,
861,
11050,
780,
225,
487,
13,
225,
288,
7734,
2380,
11050,
7069,
3198,
225,
1721,
77,
225,
273,
225,
487,
18,
588,
3198,
5621,... | ||
JavaMembers members = (JavaMembers) ct.get(dynamicType); if (members != null) return members; if (staticType == dynamicType) { staticType = null; } | static JavaMembers lookupClass(Scriptable scope, Class dynamicType, Class staticType) { Hashtable ct = classTable; // use local reference to avoid synchronize JavaMembers members = (JavaMembers) ct.get(dynamicType); if (members != null) return members; if (staticType == dynamicType) { staticType = null; } Class cl = dynamicType; if (!Modifier.isPublic(dynamicType.getModifiers())) { if (staticType == null || !Modifier.isPublic(staticType.getModifiers())) { cl = getPublicSuperclass(dynamicType); if (cl == null) { // Can happen if dynamicType is interface cl = dynamicType; } } else if (staticType.isInterface()) { // If the static type is an interface, use it cl = staticType; } else { // We can use the static type, and that is OK, but we'll trace // back the java class chain here to look for public superclass // comming before staticType cl = getPublicSuperclass(dynamicType); if (cl == null) { // Can happen if dynamicType is interface cl = dynamicType; } } } for (;;) { try { members = new JavaMembers(scope, cl); break; } catch (SecurityException e) { // Reflection may fail for objects that are in a restricted // access package (e.g. sun.*). If we get a security // exception, try again with the static type if it is interface. // Otherwise, try public superclass if (staticType != null && staticType.isInterface()) { cl = staticType; staticType = null; // try staticType only once continue; } Class parent = getPublicSuperclass(cl); if (parent == null) { if (cl.isInterface()) { // last resort parent = ScriptRuntime.ObjectClass; } else { throw e; } } cl = parent; } } if (Context.isCachingEnabled) ct.put(cl, members); return members; } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/9d44b5410ee73a96e98b00aa767eb0b7acd190dc/JavaMembers.java/buggy/js/rhino/src/org/mozilla/javascript/JavaMembers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
5110,
6918,
3689,
797,
12,
3651,
429,
2146,
16,
1659,
5976,
559,
16,
4766,
282,
1659,
760,
559,
13,
565,
288,
3639,
18559,
5691,
273,
667,
1388,
31,
225,
368,
999,
1191,
2114,
358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5110,
6918,
3689,
797,
12,
3651,
429,
2146,
16,
1659,
5976,
559,
16,
4766,
282,
1659,
760,
559,
13,
565,
288,
3639,
18559,
5691,
273,
667,
1388,
31,
225,
368,
999,
1191,
2114,
358,... | |
AST tmp75_AST = null; tmp75_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp75_AST); | AST tmp99_AST = null; tmp99_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp99_AST); | public final void multiplicativeExpr() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST multiplicativeExpr_AST = null; unaryExpr(); astFactory.addASTChild(currentAST, returnAST); { _loop25: do { if (((LA(1) >= STAR && LA(1) <= LITERAL_mod))) { { switch ( LA(1)) { case STAR: { AST tmp75_AST = null; tmp75_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp75_AST); match(STAR); break; } case LITERAL_div: { AST tmp76_AST = null; tmp76_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp76_AST); match(LITERAL_div); break; } case LITERAL_mod: { AST tmp77_AST = null; tmp77_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp77_AST); match(LITERAL_mod); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } unaryExpr(); astFactory.addASTChild(currentAST, returnAST); } else { break _loop25; } } while (true); } multiplicativeExpr_AST = (AST)currentAST.root; returnAST = multiplicativeExpr_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ad9d55f515de2cb1fa50cf09c9e42150efc8374f/XPathParser2.java/buggy/src/org/exist/parser/XPathParser2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3309,
28884,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3309,
28884,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
... |
textNodeImpl.setIgnorableWhitespace(true); | textNodeImpl.setIgnorableWhitespace (true); | public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException { if (!fIncludeIgnorableWhitespace || fFilterReject) { return; } if (!fDeferNodeExpansion) { Node child = fCurrentNode.getLastChild(); if (child != null && child.getNodeType() == Node.TEXT_NODE) { Text textNode = (Text)child; textNode.appendData(text.toString()); } else { Text textNode = fDocument.createTextNode(text.toString()); if (fDocumentImpl != null) { TextImpl textNodeImpl = (TextImpl)textNode; textNodeImpl.setIgnorableWhitespace(true); } fCurrentNode.appendChild(textNode); } } else { // The Text normalization is taken care of within the DOM in the // deferred case. int txt = fDeferredDocumentImpl. createDeferredTextNode(text.toString(), true); fDeferredDocumentImpl.appendChild(fCurrentNodeIndex, txt); } } // ignorableWhitespace(XMLString) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/9d1dbf89c75cf6f564facc2b605dd9f2cf2dac4d/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
9750,
15514,
9431,
12,
4201,
780,
977,
16,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
309,
16051,
74,
8752,
45,
1600,
15514,
9431,
747,
284,
1586,
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,
918,
9750,
15514,
9431,
12,
4201,
780,
977,
16,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
309,
16051,
74,
8752,
45,
1600,
15514,
9431,
747,
284,
1586,
2... |
listener.setURI(seq.getURN()); | listener.setURI(seq.getURN()); | public static void getSeqIOEvents(Sequence seq, SeqIOListener listener) throws BioException { try { // Inform listener of sequence start listener.startSequence(); // Pass name to listener listener.setName(seq.getName()); // Pass URN to listener listener.setURI(seq.getURN()); // Pass sequence properties to listener Annotation a = seq.getAnnotation(); for (Iterator ai = a.keys().iterator(); ai.hasNext();) { Object key = ai.next(); listener.addSequenceProperty(key, a.getProperty(key)); } // Recurse through sub feature tree, flattening it for // EMBL List subs = getSubFeatures(seq); Collections.sort(subs, Feature.byEmblOrder); // Put the source features first for EMBL for (Iterator fi = subs.iterator(); fi.hasNext();) { // The template is required to call startFeature Feature.Template t = ((Feature) fi.next()).makeTemplate(); // Inform listener of feature start listener.startFeature(t); // Pass feature properties (i.e. qualifiers to // listener) List keys = new ArrayList(); keys.addAll(t.annotation.keys()); Collections.sort(keys); for (Iterator ki = keys.iterator(); ki.hasNext();) { Object key = ki.next(); if (key.equals(Feature.PROPERTY_DATA_KEY)) continue; listener.addFeatureProperty(key, t.annotation.getProperty(key)); } // Inform listener of feature end listener.endFeature(); } // Add symbols listener.addSymbols(seq.getAlphabet(), (Symbol []) seq.toList().toArray(new Symbol [0]), 0, seq.length()); // Inform listener of sequence end listener.endSequence(); } catch (IllegalAlphabetException iae) { // This should never happen as the alphabet is being used // by this Sequence instance throw new BioException(iae, "An internal error occurred processing symbols of " + seq.toString() + " into SeqIO events"); } catch (ParseException pe) { throw new BioException(pe, "An internal error occurred processing " + seq.toString() + " into SeqIO events"); } } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/8dfcb8a9a7ad95d813441dc1c1c904bb2e267f57/SeqIOEventEmitter.java/buggy/src/org/biojava/bio/seq/io/SeqIOEventEmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1322,
11253,
4294,
3783,
12,
4021,
1377,
3833,
16,
6862,
1377,
14367,
4294,
2223,
2991,
13,
202,
15069,
21209,
503,
565,
288,
202,
698,
202,
95,
202,
565,
368,
657,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1322,
11253,
4294,
3783,
12,
4021,
1377,
3833,
16,
6862,
1377,
14367,
4294,
2223,
2991,
13,
202,
15069,
21209,
503,
565,
288,
202,
698,
202,
95,
202,
565,
368,
657,
687,
... |
protected OdaDataSetDesign newDataSet( String datasetName, String queryText ) throws Exception { OdaDataSetDesign dset = new OdaDataSetDesign( datasetName ); dset.setDataSource( this.dataSource.getName( ) ); dset.setQueryText( queryText ); dset.setExtensionID( JDBCOdaDataSource.DATA_SET_TYPE ); dataEngine.defineDataSet( dset ); return dset; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/a6517270d3ab712ad61d0d7ce18b0f674f02bcdb/APITestCase.java/buggy/testsuites/org.eclipse.birt.tests.data/src/testutil/APITestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
531,
2414,
13676,
15478,
394,
13676,
12,
514,
3709,
461,
16,
514,
843,
1528,
262,
1082,
202,
15069,
1185,
202,
95,
202,
202,
51,
2414,
13676,
15478,
23626,
273,
394,
531,
2414,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
531,
2414,
13676,
15478,
394,
13676,
12,
514,
3709,
461,
16,
514,
843,
1528,
262,
1082,
202,
15069,
1185,
202,
95,
202,
202,
51,
2414,
13676,
15478,
23626,
273,
394,
531,
2414,... | ||
tc.resolve_recursion(); | public TypeCode create_union_tc( String id, String name, TypeCode discriminator_type, org.omg.CORBA.UnionMember[] members) { org.jacorb.orb.TypeCode tc = new org.jacorb.orb.TypeCode( id, name, discriminator_type, members); tc.resolve_recursion(); return tc; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/c2dfe970d22b8cb416e5894640d5730255d285f4/ORBSingleton.java/buggy/src/org/jacorb/orb/ORBSingleton.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
30332,
752,
67,
18910,
67,
5111,
12,
514,
612,
16,
4766,
1377,
514,
508,
16,
4766,
1377,
30332,
15819,
67,
723,
16,
4766,
1377,
2358,
18,
362,
75,
18,
9428,
12536,
18,
14325,
4419... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30332,
752,
67,
18910,
67,
5111,
12,
514,
612,
16,
4766,
1377,
514,
508,
16,
4766,
1377,
30332,
15819,
67,
723,
16,
4766,
1377,
2358,
18,
362,
75,
18,
9428,
12536,
18,
14325,
4419... | |
info = processLocalVariable((PsiLocalVariable)parent, options); | info = processLocalVariable((PsiLocalVariable)parent, options, displayName); | private HighlightInfo processIdentifier(PsiIdentifier identifier) { InspectionProfileImpl profile = (InspectionProfileImpl)InspectionProjectProfileManager.getInstance(myProject).getProfile(identifier); if (!profile.isToolEnabled(HighlightDisplayKey.UNUSED_SYMBOL)) return null; if (InspectionManagerEx.inspectionResultSuppressed(identifier, HighlightDisplayKey.UNUSED_SYMBOL.getID())) return null; PsiElement parent = identifier.getParent(); if (PsiUtil.hasErrorElementChild(parent)) return null; List<IntentionAction> options = IntentionManager.getInstance(myProject).getStandardIntentionOptions(HighlightDisplayKey.UNUSED_SYMBOL, identifier); HighlightInfo info; InspectionProfile.UnusedSymbolSettings unusedSymbolSettings = profile.getUnusedSymbolSettings(); if (parent instanceof PsiLocalVariable && unusedSymbolSettings.LOCAL_VARIABLE) { info = processLocalVariable((PsiLocalVariable)parent, options); } else if (parent instanceof PsiField && unusedSymbolSettings.FIELD) { info = processField((PsiField)parent, options); } else if (parent instanceof PsiParameter && unusedSymbolSettings.PARAMETER) { info = processParameter((PsiParameter)parent, options); } else if (parent instanceof PsiMethod && unusedSymbolSettings.METHOD) { info = processMethod((PsiMethod)parent, options); } else if (parent instanceof PsiClass && identifier.equals(((PsiClass)parent).getNameIdentifier()) && unusedSymbolSettings.CLASS) { info = processClass((PsiClass)parent, options); } else { return null; } return info; } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dee9b62fe1ee40a1d6ca8afc95e5e1eca32dd11f/PostHighlightingPass.java/clean/codeInsight/impl/com/intellij/codeInsight/daemon/impl/PostHighlightingPass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
31386,
966,
1207,
3004,
12,
52,
7722,
3004,
2756,
13,
288,
565,
22085,
7017,
4029,
2828,
3042,
273,
261,
14985,
4029,
2828,
13,
14985,
4109,
4029,
1318,
18,
588,
1442,
12,
4811,
410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31386,
966,
1207,
3004,
12,
52,
7722,
3004,
2756,
13,
288,
565,
22085,
7017,
4029,
2828,
3042,
273,
261,
14985,
4029,
2828,
13,
14985,
4109,
4029,
1318,
18,
588,
1442,
12,
4811,
410... |
return (Element)generatedModel.selectSingleNode(" | return (Element)generatedModel.selectSingleNode(" | public static Element getElemnetByID(String id) { return (Element)generatedModel.selectSingleNode("//item[@id='" + id + "']"); } | 6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/450350b8b1844260a7bbaab88c8849f06fe2d84b/AdminConsole.java/buggy/src/java/org/jivesoftware/admin/AdminConsole.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3010,
4774,
3269,
2758,
13331,
12,
780,
612,
13,
288,
3639,
327,
261,
1046,
13,
11168,
1488,
18,
4025,
5281,
907,
2932,
759,
1726,
14782,
350,
13396,
397,
612,
397,
2491,
4279,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3010,
4774,
3269,
2758,
13331,
12,
780,
612,
13,
288,
3639,
327,
261,
1046,
13,
11168,
1488,
18,
4025,
5281,
907,
2932,
759,
1726,
14782,
350,
13396,
397,
612,
397,
2491,
4279,... |
Query q = QueryImpl.create( "Data " + ( sdTmp.getSeries( ).size( ) ) ); seriesOrthogonalRuntime.getDataDefinition( ).add( q ); | public final void createSampleRuntimeSeries( ) { Chart chart = this; SampleData sd = chart.getSampleData( ); if ( sd == null || sd.getBaseSampleData( ).size( ) == 0 || sd.getOrthogonalSampleData( ).size( ) == 0 ) { return; } try { // Process Base SeriesDefinitions Series seriesBaseRuntime = (Series) EcoreUtil.copy( getBaseSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) ); // Clear existing values from the dataset seriesBaseRuntime.setDataSet( null ); // Clear any existing Runtime Series chart.clearSections( IConstants.RUN_TIME ); // Get the BaseSampleData and use it to construct dataset seriesBaseRuntime.setDataSet( ( PluginSettings.instance( ).getDataSetProcessor( getBaseSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) .getClass( ) ) ).fromString( ( (BaseSampleData) sd.getBaseSampleData( ) .get( 0 ) ).getDataSetRepresentation( ), seriesBaseRuntime.getDataSet( ) ) ); getBaseSeriesDefinitionForProcessing( ).getSeries( ) .add( seriesBaseRuntime ); // Set sample series identifier seriesBaseRuntime.setSeriesIdentifier( "Category" ); //$NON-NLS-1$ // Process Orthogonal SeriesDefinitions Vector vOSD = getOrthogonalSeriesDefinitions( ); int[] iOSD = new int[vOSD.size( )]; SeriesDefinition sdTmp = null; Series seriesOrthogonalRuntime = null; // Initialize position array and clear any existing runtime series for ( int i = 0; i < iOSD.length; i++ ) { iOSD[i] = 0; sdTmp = (SeriesDefinition) vOSD.get( i ); } // Fetch the DataSetRepresentations for orthogonal sample data for ( int iO = 0; iO < sd.getOrthogonalSampleData( ).size( ); iO++ ) { OrthogonalSampleData osd = (OrthogonalSampleData) sd.getOrthogonalSampleData( ) .get( iO ); int iSDIndex = osd.getSeriesDefinitionIndex( ); // If the series definition has been removed if ( iSDIndex > vOSD.size( ) - 1 ) { // Remove the Orthogonal Sample Data entry (since it is no // longer valid) sd.getOrthogonalSampleData( ).remove( iO ); // Reset the loop counter to not lose an entry iO--; // continue with the next iteration continue; } // Create runtime series for SeriesDefinition index sdTmp = (SeriesDefinition) vOSD.get( iSDIndex ); seriesOrthogonalRuntime = (Series) EcoreUtil.copy( sdTmp.getDesignTimeSeries( ) ); // Clear existing values from the dataset seriesOrthogonalRuntime.setDataSet( null ); // Set the new dataset with sample values seriesOrthogonalRuntime.setDataSet( ( PluginSettings.instance( ).getDataSetProcessor( sdTmp.getDesignTimeSeries( ) .getClass( ) ) ).fromString( osd.getDataSetRepresentation( ), seriesOrthogonalRuntime.getDataSet( ) ) ); // Set sample series identifiers seriesOrthogonalRuntime.setSeriesIdentifier( "Series " //$NON-NLS-1$ + ( iO + 1 ) ); // Set sample data definition Query q = QueryImpl.create( "Data " //$NON-NLS-1$ + ( sdTmp.getSeries( ).size( ) ) ); seriesOrthogonalRuntime.getDataDefinition( ).add( q ); sdTmp.getSeries( ).add( seriesOrthogonalRuntime ); } if ( chart.getDimension( ) == ChartDimension.THREE_DIMENSIONAL_LITERAL ) { // Process Ancillary Base SeriesDefinitions SeriesDefinition sdZ = getAncillaryBaseSeriesDefinitionForProcessing( ); if ( sdZ != null && sd.getAncillarySampleData( ).size( ) > 0 ) { Series seriesZRuntime = (Series) EcoreUtil.copy( sdZ.getDesignTimeSeries( ) ); seriesZRuntime.setDataSet( null ); seriesZRuntime.setDataSet( ( PluginSettings.instance( ).getDataSetProcessor( sdZ.getDesignTimeSeries( ) .getClass( ) ) ).fromString( ( (BaseSampleData) sd.getAncillarySampleData( ) .get( 0 ) ).getDataSetRepresentation( ), seriesZRuntime.getDataSet( ) ) ); sdZ.getSeries( ).add( seriesZRuntime ); seriesZRuntime.setSeriesIdentifier( "Series" ); //$NON-NLS-1$ } } } catch ( Exception e1 ) { logger.log( e1 ); } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/6a870e8218dbd6ab18b7aecdce5937cb8edffbe9/ChartImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ChartImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
752,
8504,
5576,
6485,
12,
262,
202,
95,
202,
202,
7984,
4980,
273,
333,
31,
202,
202,
8504,
751,
8349,
273,
4980,
18,
588,
8504,
751,
12,
11272,
202,
202,
430,
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,
225,
202,
482,
727,
918,
752,
8504,
5576,
6485,
12,
262,
202,
95,
202,
202,
7984,
4980,
273,
333,
31,
202,
202,
8504,
751,
8349,
273,
4980,
18,
588,
8504,
751,
12,
11272,
202,
202,
430,
26... | |
rootValues.reset(); | forwardPool.reset(); | private final void baseThreadLocalRelease(int order) { values.reset(); locations.reset(); rootValues.reset(); rootLocations.reset(); interiorRootLocations.reset(); threadLocalRelease(order); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/913fbbad349e00f5520f7f382bb1885f0bb3910d/StopTheWorldGC.java/buggy/rvm/src/vm/memoryManagers/JMTk/plan/StopTheWorldGC.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
918,
1026,
3830,
2042,
7391,
12,
474,
1353,
13,
288,
565,
924,
18,
6208,
5621,
565,
7838,
18,
6208,
5621,
565,
5104,
2864,
18,
6208,
5621,
565,
1365,
10985,
18,
6208,
5621,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
918,
1026,
3830,
2042,
7391,
12,
474,
1353,
13,
288,
565,
924,
18,
6208,
5621,
565,
7838,
18,
6208,
5621,
565,
5104,
2864,
18,
6208,
5621,
565,
1365,
10985,
18,
6208,
5621,
5... |
for(int i = 0; i < expressions.length; i++){ calculateExceptionsThrown(expressions[i], exceptionTypes, | for(PsiExpression expression : expressions){ calculateExceptionsThrown(expression, exceptionTypes, | private static void calculateExceptionsThrownForMethodCall(PsiMethodCallExpression methExp, Set exceptionTypes, PsiElementFactory factory){ final PsiExpressionList argumentList = methExp.getArgumentList(); if(argumentList != null){ final PsiExpression[] expressions = argumentList.getExpressions(); for(int i = 0; i < expressions.length; i++){ calculateExceptionsThrown(expressions[i], exceptionTypes, factory); } } final PsiReferenceExpression methodExpression = methExp.getMethodExpression(); calculateExceptionsThrown(methodExpression, exceptionTypes, factory); final PsiMethod method = methExp.resolveMethod(); if(method != null){ final PsiReferenceList throwsList = method.getThrowsList(); final PsiJavaCodeReferenceElement[] list = throwsList.getReferenceElements(); for(int i = 0; i < list.length; i++){ final PsiJavaCodeReferenceElement referenceElement = list[i]; final PsiClass exceptionClass = (PsiClass) referenceElement.resolve(); final PsiClassType exceptionType = factory.createType(exceptionClass); exceptionTypes.add(exceptionType); } } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/e4329a48065fe37b7b5d3d9883a02a38ec8f42fa/ExceptionUtils.java/buggy/plugins/IntentionPowerPak/src/com/siyeh/ipp/exceptions/ExceptionUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4604,
11416,
29591,
1290,
12592,
12,
52,
7722,
12592,
2300,
7917,
2966,
16,
4766,
1171,
9079,
1000,
1520,
2016,
16,
4766,
1171,
9079,
453,
7722,
1046,
1733,
3272,
15329,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4604,
11416,
29591,
1290,
12592,
12,
52,
7722,
12592,
2300,
7917,
2966,
16,
4766,
1171,
9079,
1000,
1520,
2016,
16,
4766,
1171,
9079,
453,
7722,
1046,
1733,
3272,
15329,
363... |
visualBounds = null; | bounds2D = null; | public void setGlyphVisible(int glyphIndex, boolean visible) { if (visible == glyphVisible[glyphIndex]) return; glyphVisible[glyphIndex] = visible; outline = null; logicalBounds = null; visualBounds = null; glyphVisualBounds [glyphIndex] = null; glyphLogicalBounds[glyphIndex] = null; glyphOutlines [glyphIndex] = null; glyphMetrics [glyphIndex] = null; } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/93923dc09bdec7c8d24e7fc5a66d3eae64787c71/AWTGVTGlyphVector.java/buggy/sources/org/apache/batik/gvt/font/AWTGVTGlyphVector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
15141,
6207,
12,
474,
9440,
1016,
16,
1250,
6021,
13,
288,
3639,
309,
261,
8613,
422,
9440,
6207,
63,
19426,
1016,
5717,
2398,
327,
31,
3639,
9440,
6207,
63,
19426,
1016,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
15141,
6207,
12,
474,
9440,
1016,
16,
1250,
6021,
13,
288,
3639,
309,
261,
8613,
422,
9440,
6207,
63,
19426,
1016,
5717,
2398,
327,
31,
3639,
9440,
6207,
63,
19426,
1016,
... |
tga[i].getAction( ) ) ); | tga[i].getAction( ), clipping ) ); | public void enableInteraction( InteractionEvent iev ) throws ChartException { if ( _iun == null ) { logger.log( ILogger.WARNING, Messages.getString( "exception.missing.component.interaction", getLocale( ) ) ); //$NON-NLS-1$ return; } final Trigger[] tga = iev.getTriggers( ); if ( tga == null ) { return; } // CREATE AND SETUP THE SHAPES FOR INTERACTION TriggerCondition tc; ArrayList al; final PrimitiveRenderEvent pre = iev.getHotSpot( ); if ( pre instanceof PolygonRenderEvent ) { final Location[] loa = ( (PolygonRenderEvent) pre ).getPoints( ); for ( int i = 0; i < tga.length; i++ ) { tc = tga[i].getCondition( ); al = (ArrayList) _lhmAllTriggers.get( tc ); if ( al == null ) { al = new ArrayList( 4 ); // UNDER NORMAL CONDITIONS _lhmAllTriggers.put( tc, al ); } al.add( new ShapedAction( iev.getSource( ), loa, tga[i].getAction( ) ) ); } } else if ( pre instanceof RectangleRenderEvent ) { final Bounds bo = ( (RectangleRenderEvent) pre ).getBounds( ); final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( bo.getLeft( ), bo.getTop( ) ); loa[1] = LocationImpl.create( bo.getLeft( ), bo.getTop( ) + bo.getHeight( ) ); loa[2] = LocationImpl.create( bo.getLeft( ) + bo.getWidth( ), bo.getTop( ) + bo.getHeight( ) ); loa[3] = LocationImpl.create( bo.getLeft( ) + bo.getWidth( ), bo.getTop( ) ); for ( int i = 0; i < tga.length; i++ ) { tc = tga[i].getCondition( ); al = (ArrayList) _lhmAllTriggers.get( tc ); if ( al == null ) { al = new ArrayList( 4 ); // UNDER NORMAL CONDITIONS _lhmAllTriggers.put( tc, al ); } al.add( new ShapedAction( iev.getSource( ), loa, tga[i].getAction( ) ) ); } } else if ( pre instanceof OvalRenderEvent ) { final Bounds boEllipse = ( (OvalRenderEvent) pre ).getBounds( ); for ( int i = 0; i < tga.length; i++ ) { tc = tga[i].getCondition( ); al = (ArrayList) _lhmAllTriggers.get( tc ); if ( al == null ) { al = new ArrayList( 4 ); // UNDER NORMAL CONDITIONS _lhmAllTriggers.put( tc, al ); } al.add( new ShapedAction( iev.getSource( ), boEllipse, tga[i].getAction( ) ) ); } } else if ( pre instanceof ArcRenderEvent ) { final ArcRenderEvent are = (ArcRenderEvent) pre; final Bounds boEllipse = are.getEllipseBounds( ); double dStart = are.getStartAngle( ); double dExtent = are.getAngleExtent( ); int iArcType = toSwingArcType( are.getStyle( ) ); for ( int i = 0; i < tga.length; i++ ) { tc = tga[i].getCondition( ); al = (ArrayList) _lhmAllTriggers.get( tc ); if ( al == null ) { al = new ArrayList( 4 ); // UNDER NORMAL CONDITIONS _lhmAllTriggers.put( tc, al ); } al.add( new ShapedAction( iev.getSource( ), boEllipse, dStart, dExtent, iArcType, tga[i].getAction( ) ) ); } } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/05b872f3bed7d4bd11be846d7b8ac2034d58c1c1/SwingRendererImpl.java/buggy/chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingRendererImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4237,
17419,
12,
5294,
1128,
1133,
9228,
90,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
389,
77,
318,
422,
446,
262,
202,
202,
95,
1082,
202,
4901,
18,
1330,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4237,
17419,
12,
5294,
1128,
1133,
9228,
90,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
389,
77,
318,
422,
446,
262,
202,
202,
95,
1082,
202,
4901,
18,
1330,
1... |
if (fValidating && fGrammarIsSchemaGrammar) { pushContentLeafStack(); } | fValidationFlagStack[fElementDepth] = fValidating ? 0 : -1; | public void callStartElement(QName element) throws Exception { if ( DEBUG_SCHEMA_VALIDATION ) System.out.println("\n=======StartElement : " + fStringPool.toString(element.localpart)); // // Check after all specified attrs are scanned // (1) report error for REQUIRED attrs that are missing (V_TAGc) // (2) add default attrs (FIXED and NOT_FIXED) // if (!fSeenRootElement) { fSeenRootElement = true; rootElementSpecified(element); fStringPool.resetShuffleCount(); } if (fGrammar != null && fGrammarIsDTDGrammar) { fAttrListHandle = addDTDDefaultAttributes(element, fAttrList, fAttrListHandle, fValidating, fStandaloneReader != -1); } fCheckedForSchema = true; if (fNamespacesEnabled) { bindNamespacesToElementAndAttributes(element, fAttrList); } validateElementAndAttributes(element, fAttrList); if (fAttrListHandle != -1) { fAttrList.endAttrList(); } fDocumentHandler.startElement(element, fAttrList, fAttrListHandle); fAttrListHandle = -1; //before we increment the element depth, add this element's QName to its enclosing element 's children list fElementDepth++; //if (fElementDepth >= 0) { if (fValidating) { // push current length onto stack if (fElementChildrenOffsetStack.length < fElementDepth) { int newarray[] = new int[fElementChildrenOffsetStack.length * 2]; System.arraycopy(fElementChildrenOffsetStack, 0, newarray, 0, fElementChildrenOffsetStack.length); fElementChildrenOffsetStack = newarray; } fElementChildrenOffsetStack[fElementDepth] = fElementChildrenLength; // add this element to children if (fElementChildren.length <= fElementChildrenLength) { QName[] newarray = new QName[fElementChildrenLength * 2]; System.arraycopy(fElementChildren, 0, newarray, 0, fElementChildren.length); fElementChildren = newarray; } QName qname = fElementChildren[fElementChildrenLength]; if (qname == null) { for (int i = fElementChildrenLength; i < fElementChildren.length; i++) { fElementChildren[i] = new QName(); } qname = fElementChildren[fElementChildrenLength]; } qname.setValues(element); fElementChildrenLength++; if (DEBUG_ELEMENT_CHILDREN) { printChildren(); printStack(); } } // One more level of depth //fElementDepth++; ensureStackCapacity(fElementDepth); fCurrentElement.setValues(element); fCurrentElementEntity = fEntityHandler.getReaderId(); fElementQNamePartsStack[fElementDepth].setValues(fCurrentElement); fElementEntityStack[fElementDepth] = fCurrentElementEntity; fElementIndexStack[fElementDepth] = fCurrentElementIndex; fContentSpecTypeStack[fElementDepth] = fCurrentContentSpecType; if (fNeedValidationOff) { fValidating = false; fNeedValidationOff = false; } if (fValidating && fGrammarIsSchemaGrammar) { pushContentLeafStack(); } fValidationFlagStack[fElementDepth] = fValidating ? 0 : -1; fScopeStack[fElementDepth] = fCurrentScope; fGrammarNameSpaceIndexStack[fElementDepth] = fGrammarNameSpaceIndex; } // callStartElement(QName) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/f2b9ad84920b2015a53c9a67b4dfb5460fa0465e/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
745,
1685,
1046,
12,
13688,
930,
13,
1216,
1185,
288,
3639,
309,
261,
6369,
67,
14233,
67,
5063,
2689,
262,
5411,
2332,
18,
659,
18,
8222,
31458,
82,
894,
12275,
1685,
1046,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
745,
1685,
1046,
12,
13688,
930,
13,
1216,
1185,
288,
3639,
309,
261,
6369,
67,
14233,
67,
5063,
2689,
262,
5411,
2332,
18,
659,
18,
8222,
31458,
82,
894,
12275,
1685,
1046,
... |
AST tmp1242_AST_in = (AST)_t; | AST tmp1243_AST_in = (AST)_t; | public final void destructorstate(AST _t) throws RecognitionException { AST destructorstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST d = null; AST __t655 = _t; d = _t==ASTNULL ? null :(AST)_t; match(_t,DESTRUCTOR); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.scopeAdd(d); } AST tmp1237_AST_in = (AST)_t; match(_t,PUBLIC); _t = _t.getNextSibling(); AST tmp1238_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); AST tmp1239_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); AST tmp1240_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); block_colon(_t); _t = _retTree; code_block(_t); _t = _retTree; AST __t656 = _t; AST tmp1241_AST_in = (AST)_t; match(_t,END); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DESTRUCTOR: { AST tmp1242_AST_in = (AST)_t; match(_t,DESTRUCTOR); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t656; _t = _t.getNextSibling(); state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.scopeClose(d); } _t = __t655; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
23819,
280,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
23819,
280,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
23819,
280,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
23819,
280,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... |
for (int i = 0; i < argCount; i++) addTypeReference(parameterTypes[i]); | if (parameterTypes != null) { for (int i = 0; i < argCount; i++) addTypeReference(parameterTypes[i]); } | public void addConstructorDeclaration(char[] typeName, char[][] parameterTypes, char[][] exceptionTypes) { int argCount = parameterTypes == null ? 0 : parameterTypes.length; addIndexEntry(CONSTRUCTOR_DECL, ConstructorPattern.createIndexKey(CharOperation.lastSegment(typeName,'.'), argCount)); for (int i = 0; i < argCount; i++) addTypeReference(parameterTypes[i]); if (exceptionTypes != null) for (int i = 0, max = exceptionTypes.length; i < max; i++) addTypeReference(exceptionTypes[i]); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/4cbee9c4edfca3748d4063d8a7e10ad2054f1b8a/AbstractIndexer.java/buggy/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/AbstractIndexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
6293,
6094,
12,
3001,
8526,
8173,
16,
1149,
63,
6362,
65,
20173,
16,
1149,
63,
6362,
65,
1520,
2016,
13,
288,
202,
202,
474,
1501,
1380,
273,
20173,
422,
446,
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,
918,
527,
6293,
6094,
12,
3001,
8526,
8173,
16,
1149,
63,
6362,
65,
20173,
16,
1149,
63,
6362,
65,
1520,
2016,
13,
288,
202,
202,
474,
1501,
1380,
273,
20173,
422,
446,
692,
... |
case 39: break; case 29: | case 44: break; | public PropertiesToken getNextToken() throws java.io.IOException { int yy_input; int yy_action; // cached fields: int yy_currentPos_l; int yy_startRead_l; int yy_markedPos_l; int yy_endRead_l = yy_endRead; char [] yy_buffer_l = yy_buffer; char [] yycmap_l = yycmap_instance; int [] yytrans_l = yytrans; int [] yy_rowMap_l = yy_rowMap; byte [] yy_attr_l = YY_ATTRIBUTE; while (true) { yy_markedPos_l = yy_markedPos; yy_action = -1; yy_startRead_l = yy_currentPos_l = yy_currentPos = yy_startRead = yy_markedPos_l; yy_state = yy_lexical_state; yy_forAction: { while (true) { if (yy_currentPos_l < yy_endRead_l) yy_input = yy_buffer_l[yy_currentPos_l++]; else if (yy_atEOF) { yy_input = YYEOF; break yy_forAction; } else { // store back cached positions yy_currentPos = yy_currentPos_l; yy_markedPos = yy_markedPos_l; boolean eof = yy_refill(); // get translated positions and possibly new buffer yy_currentPos_l = yy_currentPos; yy_markedPos_l = yy_markedPos; yy_buffer_l = yy_buffer; yy_endRead_l = yy_endRead; if (eof) { yy_input = YYEOF; break yy_forAction; } else { yy_input = yy_buffer_l[yy_currentPos_l++]; } } int yy_next = yytrans_l[ yy_rowMap_l[yy_state] + yycmap_l[yy_input] ]; if (yy_next == -1) break yy_forAction; yy_state = yy_next; int yy_attributes = yy_attr_l[yy_state]; if ( (yy_attributes & 1) == 1 ) { yy_action = yy_state; yy_markedPos_l = yy_currentPos_l; if ( (yy_attributes & 8) == 8 ) break yy_forAction; } } } // store back cached position yy_markedPos = yy_markedPos_l; switch (yy_action) { case 31: case 32: { nextState = MID_VALUE; lastToken = PropertiesToken.CONTINUE_LINE; String text = yytext(); PropertiesToken t = new PropertiesToken(lastToken,text); yybegin(nextState); return (t); } case 34: break; case 22: { nextState = MID_NAME; lastToken = PropertiesToken.WHITE_SPACE; String text = yytext(); PropertiesToken t = new PropertiesToken(lastToken,text); yybegin(nextState); return (t); } case 35: break; case 19: { lastToken = PropertiesToken.WHITE_SPACE; String text = yytext(); PropertiesToken t = new PropertiesToken(lastToken,text); return (t); } case 36: break; case 11: case 16: case 17: case 20: case 21: case 23: case 24: { System.err.println("Unmatched input."); String state = ""; String text = yytext(); switch (nextState){ case YYINITIAL: state = "YYINITIAL"; break; case LINE_END: state = "LINE_END"; break; case WHITE_SPACE: state = "WHITE_SPACE"; break; case NAME: state = "NAME"; break; case SEPARATOR: state = "SEPARATOR"; break; case VALUE: state = "VALUE"; break; case MID_NAME: state = "MID_NAME"; break; } System.err.println("State: " + state); System.err.println("Text: " + text); yy_ScanError(YY_NO_MATCH); } case 37: break; case 14: { nextState = SEPARATOR; lastToken = PropertiesToken.SEPARATOR; String text = yytext(); PropertiesToken t = new PropertiesToken(lastToken,text); yybegin(nextState); return (t); } case 38: break; case 15: { nextState = LINE_END; lastToken = PropertiesToken.COMMENT; String text = yytext(); PropertiesToken t = new PropertiesToken(lastToken,text); yybegin(nextState); return (t); } case 39: break; case 29: case 30: { nextState = MID_NAME_NEW_LINE; lastToken = PropertiesToken.CONTINUE_LINE; String text = yytext(); PropertiesToken t = new PropertiesToken(lastToken,text); yybegin(nextState); return (t); } case 40: break; case 12: case 13: { nextState = YYINITIAL; lastToken = PropertiesToken.END_LINE_WHITE_SPACE; String text = yytext(); PropertiesToken t = new PropertiesToken(lastToken,text); yybegin(nextState); return (t); } case 41: break; case 3: case 18: { nextState = VALUE; lastToken = PropertiesToken.VALUE; String text = yytext(); PropertiesToken t = new PropertiesToken(lastToken,text); yybegin(nextState); return (t); } case 42: break; case 6: { nextState = VALUE; lastToken = PropertiesToken.VALUE; String text = yytext(); PropertiesToken t = new PropertiesToken(lastToken,text); yybegin(nextState); return (t); } case 43: break; case 0: case 2: case 4: case 5: case 9: { nextState = NAME; lastToken = PropertiesToken.NAME; String text = yytext(); PropertiesToken t = new PropertiesToken(lastToken,text); yybegin(nextState); return (t); } case 44: break; case 10: { nextState = WHITE_SPACE; lastToken = PropertiesToken.WHITE_SPACE; String text = yytext(); PropertiesToken t = new PropertiesToken(lastToken,text); yybegin(nextState); return (t); } case 45: break; case 8: { return null; } case 46: break; default: if (yy_input == YYEOF && yy_startRead == yy_currentPos) { yy_atEOF = true; switch (yy_lexical_state) { case SEPARATOR: { nextState = DONE; lastToken = PropertiesToken.END_LINE_WHITE_SPACE; PropertiesToken t = new PropertiesToken(lastToken,""); yybegin(nextState); return (t); } case 34: break; case MID_NAME: { nextState = DONE; lastToken = PropertiesToken.END_LINE_WHITE_SPACE; PropertiesToken t = new PropertiesToken(lastToken,""); yybegin(nextState); return (t); } case 35: break; case MID_NAME_NEW_LINE: { nextState = DONE; lastToken = PropertiesToken.END_LINE_WHITE_SPACE; PropertiesToken t = new PropertiesToken(lastToken,""); yybegin(nextState); return (t); } case 36: break; case VALUE: { nextState = DONE; lastToken = PropertiesToken.END_LINE_WHITE_SPACE; PropertiesToken t = new PropertiesToken(lastToken,""); yybegin(nextState); return (t); } case 37: break; case YYINITIAL: { nextState = DONE; lastToken = PropertiesToken.END_LINE_WHITE_SPACE; PropertiesToken t = new PropertiesToken(lastToken,""); yybegin(nextState); return (t); } case 38: break; case LINE_END: { nextState = DONE; lastToken = PropertiesToken.END_LINE_WHITE_SPACE; PropertiesToken t = new PropertiesToken(lastToken,""); yybegin(nextState); return (t); } case 39: break; case NAME: { nextState = DONE; lastToken = PropertiesToken.END_LINE_WHITE_SPACE; PropertiesToken t = new PropertiesToken(lastToken,""); yybegin(nextState); return (t); } case 40: break; default: return null; } } else { yy_ScanError(YY_NO_MATCH); } } } } | 14437 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14437/ba5ec6df2ffcfc8594ca52972c35ed489cee7340/PropertiesLexer.java/buggy/PropertiesLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6183,
1345,
22616,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
9016,
67,
2630,
31,
565,
509,
9016,
67,
1128,
31,
565,
368,
3472,
1466,
30,
565,
509,
9016,
67,
2972,
1616... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6183,
1345,
22616,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
9016,
67,
2630,
31,
565,
509,
9016,
67,
1128,
31,
565,
368,
3472,
1466,
30,
565,
509,
9016,
67,
2972,
1616... |
setStartSet("1-last"); m_starting = new int[m_numAttribs]; | public int[] search (ASEvaluation ASEval, Instances data) throws Exception { int i, j; double best_merit = -Double.MAX_VALUE; double temp_best,temp_merit; int temp_index=0; BitSet temp_group; if (data != null) { // this is a fresh run so reset resetOptions(); m_Instances = data; } m_ASEval = ASEval; m_numAttribs = m_Instances.numAttributes(); if (m_best_group == null) { m_best_group = new BitSet(m_numAttribs); } if (!(m_ASEval instanceof SubsetEvaluator)) { throw new Exception(m_ASEval.getClass().getName() + " is not a " + "Subset evaluator!"); } m_startRange.setUpper(m_numAttribs-1); if (!(getStartSet().equals(""))) { m_starting = m_startRange.getSelection(); } if (m_ASEval instanceof UnsupervisedSubsetEvaluator) { m_hasClass = false; m_classIndex = -1; } else { m_hasClass = true; m_classIndex = m_Instances.classIndex(); } SubsetEvaluator ASEvaluator = (SubsetEvaluator)m_ASEval; if (m_rankedAtts == null) { m_rankedAtts = new double[m_numAttribs][2]; m_rankedSoFar = 0; } // If a starting subset has been supplied, then initialise the bitset if (m_starting != null) { for (i = 0; i < m_starting.length; i++) { if ((m_starting[i]) != m_classIndex) { m_best_group.set(m_starting[i]); } } } else { if (m_backward) { setStartSet("1-last"); m_starting = new int[m_numAttribs]; for (i = 0, j = 0; i < m_numAttribs; i++) { if (i != m_classIndex) { m_best_group.set(i); m_starting[j++] = i; } } } } // Evaluate the initial subset best_merit = ASEvaluator.evaluateSubset(m_best_group); // main search loop boolean done = false; boolean addone = false; boolean z; while (!done) { temp_group = (BitSet)m_best_group.clone(); temp_best = best_merit; if (m_doRank) { temp_best = -Double.MAX_VALUE; } done = true; addone = false; for (i=0;i<m_numAttribs;i++) { if (m_backward) { z = ((i != m_classIndex) && (temp_group.get(i))); } else { z = ((i != m_classIndex) && (!temp_group.get(i))); } if (z) { // set/unset the bit if (m_backward) { temp_group.clear(i); } else { temp_group.set(i); } temp_merit = ASEvaluator.evaluateSubset(temp_group); if (m_backward) { z = (temp_merit >= temp_best); } else { z = (temp_merit > temp_best); } if (z) { temp_best = temp_merit; temp_index = i; addone = true; done = false; } // unset this addition/deletion if (m_backward) { temp_group.set(i); } else { temp_group.clear(i); } if (m_doRank) { done = false; } } } if (addone) { if (m_backward) { m_best_group.clear(temp_index); } else { m_best_group.set(temp_index); } best_merit = temp_best; m_rankedAtts[m_rankedSoFar][0] = temp_index; m_rankedAtts[m_rankedSoFar][1] = best_merit; m_rankedSoFar++; } } m_bestMerit = best_merit; return attributeList(m_best_group); } | 4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/55d920144cabad3db67f207aec48980a8420e7c3/GreedyStepwise.java/buggy/weka/attributeSelection/GreedyStepwise.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
8526,
1623,
261,
4429,
4531,
367,
432,
1090,
1125,
16,
18357,
501,
13,
565,
1216,
1185,
288,
565,
509,
277,
16,
525,
31,
565,
1645,
3796,
67,
6592,
305,
273,
300,
5265,
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,
509,
8526,
1623,
261,
4429,
4531,
367,
432,
1090,
1125,
16,
18357,
501,
13,
565,
1216,
1185,
288,
565,
509,
277,
16,
525,
31,
565,
1645,
3796,
67,
6592,
305,
273,
300,
5265,
18,
... | |
Asserts.notReached("IOException: " + e.getMessage()); | assert false : "IOException: " + e.getMessage(); | public void close() { try { oout.close(); } catch (IOException e) { Asserts.notReached("IOException: " + e.getMessage()); } } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/SerializationAstMarshal.java/clean/src/org/ablaf/internal/ast/SerializationAstMarshal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1746,
1435,
288,
10792,
775,
288,
13491,
320,
659,
18,
4412,
5621,
10792,
289,
1044,
261,
14106,
425,
13,
288,
13491,
1815,
629,
294,
315,
14106,
30,
315,
397,
425,
18,
24906,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1746,
1435,
288,
10792,
775,
288,
13491,
320,
659,
18,
4412,
5621,
10792,
289,
1044,
261,
14106,
425,
13,
288,
13491,
1815,
629,
294,
315,
14106,
30,
315,
397,
425,
18,
24906,... |
rebuildAction.selectionChanged(selection); menu.add(rebuildAction); } menu.add(new Separator()); refreshAction.selectionChanged(selection); menu.add(refreshAction); | if (hasOpenProjects) { closeProjectAction.selectionChanged(selection); menu.add(closeProjectAction); } } | public void fillContextMenu(IMenuManager menu) { IStructuredSelection selection = (IStructuredSelection) getContext().getSelection(); if (!selection.isEmpty()) { // Allow manual incremental build only if auto build is off. if (!ResourcesPlugin.getWorkspace().isAutoBuilding()) { buildAction.selectionChanged(selection); menu.add(buildAction); } rebuildAction.selectionChanged(selection); menu.add(rebuildAction); } menu.add(new Separator()); refreshAction.selectionChanged(selection); menu.add(refreshAction); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ee6ab881a0a1a72e76a57f2964546c0a70dee229/WorkspaceActionGroup.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/navigator/WorkspaceActionGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
27315,
12,
3445,
2104,
1318,
3824,
13,
288,
202,
202,
45,
30733,
6233,
4421,
273,
1082,
202,
12,
45,
30733,
6233,
13,
6474,
7675,
588,
6233,
5621,
9506,
202,
430,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3636,
27315,
12,
3445,
2104,
1318,
3824,
13,
288,
202,
202,
45,
30733,
6233,
4421,
273,
1082,
202,
12,
45,
30733,
6233,
13,
6474,
7675,
588,
6233,
5621,
9506,
202,
430,
1... |
if (debug) e.printStackTrace(); | if (debug) e.printStackTrace(System.out); | private static void blobTest8Trigger(Connection conn) { System.out.println(START + "blobTest8Trigger"); try { Statement stmt = conn.createStatement(); stmt.executeUpdate("CREATE TABLE blobTest8TriggerA (a BLOB(400k), b int, crc32 BIGINT)"); stmt.executeUpdate("CREATE TABLE blobTest8TriggerB (a BLOB(400k), b int, crc32 BIGINT)"); stmt.executeUpdate( "create trigger T8A after update on testBlob " + "referencing new as n old as o " + "for each row mode db2sql "+ "insert into blobTest8TriggerA(a, b, crc32) values (n.a, n.b, n.crc32)"); stmt.executeUpdate( "create trigger T8B after INSERT on blobTest8TriggerA " + "referencing new_table as n " + "for each statement mode db2sql "+ "insert into blobTest8TriggerB(a, b, crc32) select n.a, n.b, n.crc32 from n"); conn.commit(); ResultSet rs = stmt.executeQuery( "select a,b,crc32 from blobTest8TriggerA"); testBlobContents(rs); rs.close(); conn.commit(); stmt.executeUpdate("UPDATE testBlob set b = b + 0"); conn.commit(); rs = stmt.executeQuery( "select a,b,crc32 from blobTest8TriggerA"); testBlobContents(rs); rs.close(); conn.commit(); rs = stmt.executeQuery( "select a,b,crc32 from blobTest8TriggerB"); testBlobContents(rs); rs.close(); conn.commit(); stmt.executeUpdate("DROP TRIGGER T8A"); stmt.executeUpdate("DROP TABLE blobTest8TriggerB"); stmt.executeUpdate("DROP TABLE blobTest8TriggerA"); stmt.close(); conn.commit(); System.out.println("blobTest8Trigger finished"); } catch (SQLException e) { TestUtil.dumpSQLExceptions(e); do { e.printStackTrace(System.out); e = e.getNextException(); } while (e != null); } catch (Throwable e) { System.out.println("FAIL -- unexpected exception:" + e.toString()); if (debug) e.printStackTrace(); } } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/c4ce097d51f16e98fb4a13bd026311406c724401/blobclob4BLOB.java/buggy/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/blobclob4BLOB.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4795,
4709,
28,
6518,
12,
1952,
1487,
13,
565,
288,
3639,
2332,
18,
659,
18,
8222,
12,
7570,
397,
315,
10721,
4709,
28,
6518,
8863,
3639,
775,
288,
5411,
8056,
3480,
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,
3238,
760,
918,
4795,
4709,
28,
6518,
12,
1952,
1487,
13,
565,
288,
3639,
2332,
18,
659,
18,
8222,
12,
7570,
397,
315,
10721,
4709,
28,
6518,
8863,
3639,
775,
288,
5411,
8056,
3480,
273... |
if (showHints) { | if (showHints && lastToolTip != null) { | public boolean mouseMoved(MouseEvent e) { OMGraphic omgr = ((OMGraphicList)getList()).findClosest(e.getX(),e.getY(),4.0f); boolean ret = false; if (omgr != null) {// fireRequestInfoLine("Click to edit graphic"); if (showHints) { if (omgr != lastSelected) { lastToolTip = getToolTipForOMGraphic(omgr); } if (lastToolTip != null) { fireRequestToolTip(e, lastToolTip); ret = true; } else { fireHideToolTip(e); } } } else {// fireRequestInfoLine(""); if (showHints) { fireHideToolTip(e); } lastToolTip = null; } lastSelected = omgr; return ret; } | 3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/e58ee5299d713caef58236c0133210bc0d765fe8/DrawingToolLayer.java/buggy/src/openmap/com/bbn/openmap/layer/DrawingToolLayer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
7644,
25317,
12,
9186,
1133,
425,
13,
288,
282,
202,
1872,
29459,
8068,
3197,
273,
14015,
1872,
29459,
682,
13,
588,
682,
1435,
2934,
4720,
4082,
7781,
12,
73,
18,
588,
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,
1071,
1250,
7644,
25317,
12,
9186,
1133,
425,
13,
288,
282,
202,
1872,
29459,
8068,
3197,
273,
14015,
1872,
29459,
682,
13,
588,
682,
1435,
2934,
4720,
4082,
7781,
12,
73,
18,
588,
60,
... |
IToolChain[] toolChainElements = (IToolChain[]) subMap.values().toArray(); | Collection c = subMap.values(); IToolChain[] toolChainElements = (IToolChain[]) c.toArray(new IToolChain[c.size()]); | public void checkForMigrationSupport() { boolean isExists = false; if (getSuperClass() == null) { // If 'getSuperClass()' is null, then there is no toolchain available in // plugin manifest file with the 'id' & version. // Look for the 'versionsSupported' attribute String high = (String) ManagedBuildManager .getExtensionToolChainMap().lastKey(); SortedMap subMap = null; if (superClassId.compareTo(high) <= 0) { subMap = ManagedBuildManager.getExtensionToolChainMap().subMap( superClassId, high + "\0"); //$NON-NLS-1$ } else { // It means there are no entries in the map for the given id. // make the project is invalid IConfiguration parentConfig = getParent(); IManagedProject managedProject = parentConfig.getManagedProject(); if (managedProject != null) { managedProject.setValid(false); } return; } // for each element in the 'subMap', // check the 'versionsSupported' attribute whether the given // toolChain version is supported String baseId = ManagedBuildManager.getIdFromIdAndVersion(superClassId); String version = getVersionFromId().toString(); IToolChain[] toolChainElements = (IToolChain[]) subMap.values().toArray(); for (int i = 0; i < toolChainElements.length; i++) { IToolChain toolChainElement = toolChainElements[i]; if (ManagedBuildManager.getIdFromIdAndVersion( toolChainElement.getId()).compareTo(baseId) > 0) break; // First check if both base ids are equal if (ManagedBuildManager.getIdFromIdAndVersion( toolChainElement.getId()).equals(baseId)) { // Check if 'versionsSupported' attribute is available' String versionsSupported = toolChainElement.getVersionsSupported(); if ((versionsSupported != null) && (!versionsSupported.equals(""))) { //$NON-NLS-1$ String[] tmpVersions = versionsSupported.split(","); //$NON-NLS-1$ for (int j = 0; j < tmpVersions.length; j++) { if (new PluginVersionIdentifier(version).equals(new PluginVersionIdentifier(tmpVersions[j]))) { // version is supported. // Do the automatic conversion without // prompting the user. // Get the supported version String supportedVersion = ManagedBuildManager.getVersionFromIdAndVersion( toolChainElement.getId()); setId(ManagedBuildManager.getIdFromIdAndVersion(getId()) + "_" + supportedVersion); //$NON-NLS-1$ // If control comes here means that 'superClass' is null // So, set the superClass to this toolChain element setSuperClassInternal(toolChainElement); superClassId = getSuperClass().getId(); isExists = true; break; } } if(isExists) break; // break the outer for loop if 'isExists' is true } } } } if (getSuperClass() != null) { // If 'getSuperClass()' is not null, look for 'convertToId' attribute in plugin // manifest file for this toolchain. String convertToId = getSuperClass().getConvertToId(); if ((convertToId == null) || (convertToId.equals(""))) { //$NON-NLS-1$ // It means there is no 'convertToId' attribute available and // the version is still actively // supported by the tool integrator. So do nothing, just return return; } else { // In case the 'convertToId' attribute is available, // it means that Tool integrator currently does not support this // version of toolchain. // Look for the converters available for this toolchain version. getConverter(convertToId); } } else { // make the project is invalid // IConfiguration parentConfig = getParent(); IManagedProject managedProject = parentConfig.getManagedProject(); if (managedProject != null) { managedProject.setValid(false); } } return; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/74e3308a05729aeaf4841395f96c1c1d10c7764f/ToolChain.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ToolChain.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13855,
10224,
6289,
1435,
288,
202,
202,
6494,
353,
4002,
273,
629,
31,
1082,
202,
430,
261,
588,
8051,
797,
1435,
422,
446,
13,
288,
1082,
202,
759,
971,
296,
588,
8051,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13855,
10224,
6289,
1435,
288,
202,
202,
6494,
353,
4002,
273,
629,
31,
1082,
202,
430,
261,
588,
8051,
797,
1435,
422,
446,
13,
288,
1082,
202,
759,
971,
296,
588,
8051,... |
private SamlAssertion buildSamlAssertion(Element assertion) throws InvalidCredentialsException | private SamlAssertion buildSamlAssertion(Element assertion) throws InvalidCredentialsException | private SamlAssertion buildSamlAssertion(Element assertion) throws InvalidCredentialsException { SamlAssertion samlAssertion = null; try { samlAssertion = new SamlAssertion(assertion); } catch (Exception e) { throw new InvalidCredentialsException("SAML token invalid", e); } return samlAssertion; } | 56200 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56200/8a2db82e09d1481d5fde170ab41c3ebf251f88b6/CardSpaceProcessingFilter.java/clean/WEB-INF/src/com/randomcoder/security/cardspace/CardSpaceProcessingFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
348,
3522,
14979,
1361,
18151,
14979,
12,
1046,
11240,
13,
1216,
1962,
6163,
503,
202,
95,
202,
202,
18151,
14979,
22835,
14979,
273,
446,
31,
202,
202,
698,
202,
202,
95,
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,
348,
3522,
14979,
1361,
18151,
14979,
12,
1046,
11240,
13,
1216,
1962,
6163,
503,
202,
95,
202,
202,
18151,
14979,
22835,
14979,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082... |
int maxTech = (m_client.game.getOptions().booleanOption("allow_level_3_units")?TechConstants.SIZE:TechConstants.SIZE_LEVEL_2); | includeMaxTech = m_client.game.getOptions().booleanOption("allow_level_3_units"); int maxTech = (includeMaxTech ? TechConstants.SIZE : TechConstants.SIZE_LEVEL_2); | private void populateChoices() { for (int i=0; i<EntityWeightClass.SIZE; i++) { m_chWeightClass.addItem(EntityWeightClass.getClassName(i)); } m_chWeightClass.addItem(Messages.getString("MechSelectorDialog.All")); //$NON-NLS-1$ m_chWeightClass.select(0); int maxTech = (m_client.game.getOptions().booleanOption("allow_level_3_units")?TechConstants.SIZE:TechConstants.SIZE_LEVEL_2); for (int i=0; i<maxTech; i++) { m_chType.addItem(TechConstants.getLevelDisplayableName(i)); } // m_chType.addItem(Messages.getString("MechSelectorDialog.ISAll")); //$NON-NLS-1$// m_chType.addItem(Messages.getString("MechSelectorDialog.ISAndClan")); //$NON-NLS-1$ // More than 8 items causes the drop down to sprout a vertical // scroll bar. I guess we'll sacrifice this next one to stay // under the limit. Stupid AWT Choice class! //m_chType.addItem("Mixed All");// m_chType.addItem(Messages.getString("MechSelectorDialog.All")); //$NON-NLS-1$ m_chType.select(0); for (int i=0; i<UnitType.SIZE; i++) { m_chUnitType.addItem(UnitType.getTypeDisplayableName(i)); } m_chUnitType.addItem(Messages.getString("MechSelectorDialog.All")); //$NON-NLS-1$ m_chUnitType.select(0); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/acc0accfb3eab1cf042649a861912b83fbcfe219/MechSelectorDialog.java/buggy/megamek/src/megamek/client/ui/AWT/MechSelectorDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6490,
17442,
1435,
288,
7734,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1943,
6544,
797,
18,
4574,
31,
277,
27245,
288,
5411,
312,
67,
343,
6544,
797,
18,
1289,
1180,
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,
3238,
918,
6490,
17442,
1435,
288,
7734,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1943,
6544,
797,
18,
4574,
31,
277,
27245,
288,
5411,
312,
67,
343,
6544,
797,
18,
1289,
1180,
12,
19... |
else if (attrName.equals ("mail")) { mail = attr.getValue(); } | else if (attrName.equals ("sn")) { phone = attr.getValue(); } | public Vector queryLDAP (String aServerName, int aPort, String aSearchString) { Vector retVecVec = new Vector(); //return vector of vectors.// try { //open a connection to the LDAP serverSystem.out.println ("Opening server " + aServerName); ICardSource Four11AddressBook = new LDAP_Server (aServerName); //create the query ITerm query = new TermEqual (new AC_Attribute ("sn", aSearchString)); String[] attributes = {"sn", "cn", "o", "mail", "city"}; //query the LDAP server.System.out.println ("Send query" + query); ICardSet cardSet = Four11AddressBook.getCardSet (query, attributes); //Sort the list. String[] sortOrder = {"sn", "cn"}; cardSet.sort (sortOrder); //hack. I've put the for loop in a try block to catch the exception //thrown when cardEnum.hasMoreElements() incorrectly returns true. try { //enumerate thru the cards. for (Enumeration cardEnum = cardSet.getEnumeration(); cardEnum.hasMoreElements(); ) {System.out.println ("got card"); ICard card = (ICard) cardEnum.nextElement(); //get the addres card IAttributeSet attrSet = card.getAttributeSet (); //get the attributes for this card Vector thisRow = new Vector(6); //create a simple vector to hold the attributes values for this card. String commonName = ""; String organization = ""; String mail = ""; String phone = ""; String city = ""; String nickName = ""; // enumerate thru the card attributes. for (Enumeration attEnum = attrSet.getEnumeration(); attEnum.hasMoreElements(); ) { IAttribute attr = (IAttribute) attEnum.nextElement(); String attrName = attr.getName(); if (attrName.equals ("cn")) { commonName = attr.getValue(); } else if (attrName.equals ("o")) { organization = attr.getValue(); } else if (attrName.equals ("mail")) { mail = attr.getValue(); } else if (attrName.equals ("sn")) { phone = attr.getValue(); } else if (attrName.equals ("city")) { city = attr.getValue(); } } //create this row for the table. thisRow.addElement (commonName); thisRow.addElement (mail); thisRow.addElement (organization); thisRow.addElement (phone); thisRow.addElement (city); thisRow.addElement (nickName); //add this row to the table retVecVec.addElement (thisRow); } } catch (Exception e) { }// }// catch( LDAPException e ) {// System.out.println( "Error: " + e.toString() );// }System.out.println ("Done."); return retVecVec; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/8c4478f8940802ba535b872e33a4659e26f6567e/AddressBook.java/buggy/grendel/addressbook/AddressBook.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
843,
15496,
261,
780,
279,
28434,
16,
509,
279,
2617,
16,
514,
279,
2979,
780,
13,
288,
3639,
5589,
325,
12991,
12991,
273,
394,
5589,
5621,
282,
368,
2463,
3806,
434,
10046,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5589,
843,
15496,
261,
780,
279,
28434,
16,
509,
279,
2617,
16,
514,
279,
2979,
780,
13,
288,
3639,
5589,
325,
12991,
12991,
273,
394,
5589,
5621,
282,
368,
2463,
3806,
434,
10046,
... |
public static RefactoringStatus checkForMainMethods(ICompilationUnit cu) throws JavaModelException{ return checkForMainMethods(cu.getTypes()); | public static RefactoringStatus checkForMainMethods(IType[] types) throws JavaModelException{ if (types == null) return null; RefactoringStatus result= new RefactoringStatus(); for (int i= 0; i < types.length; i++) result.merge(checkForMainMethod(types[i])); return result; | public static RefactoringStatus checkForMainMethods(ICompilationUnit cu) throws JavaModelException{ return checkForMainMethods(cu.getTypes()); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/ad0d061f6e824ab010adc2e7470e22ebd60fa186/Checks.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
868,
3493,
6053,
1482,
13855,
6376,
4712,
12,
45,
19184,
2802,
15985,
13,
1216,
5110,
1488,
503,
95,
202,
202,
2463,
13855,
6376,
4712,
12,
6319,
18,
588,
2016,
10663,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
868,
3493,
6053,
1482,
13855,
6376,
4712,
12,
45,
19184,
2802,
15985,
13,
1216,
5110,
1488,
503,
95,
202,
202,
2463,
13855,
6376,
4712,
12,
6319,
18,
588,
2016,
10663,
202,... |
if (id == null) throw new PSQLException("postgresql.fp.unknown", name); | if (id == null) throw new PSQLException("postgresql.fp.unknown", name); | public int getID(String name) throws SQLException { Integer id = (Integer)func.get(name); // may be we could add a lookup to the database here, and store the result // in our lookup table, throwing the exception if that fails. // We must, however, ensure that if we do, any existing ResultSet is // unaffected, otherwise we could break user code. // // so, until we know we can do this (needs testing, on the TODO list) // for now, we throw the exception and do no lookups. if (id == null) throw new PSQLException("postgresql.fp.unknown", name); return id.intValue(); } | 46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/ef7d7910745cf2812007668138eaaf0a8e1d8d99/Fastpath.java/buggy/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
14744,
12,
780,
508,
13,
1216,
6483,
202,
95,
202,
202,
4522,
612,
273,
261,
4522,
13,
644,
18,
588,
12,
529,
1769,
202,
202,
759,
2026,
506,
732,
3377,
527,
279,
3689,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14744,
12,
780,
508,
13,
1216,
6483,
202,
95,
202,
202,
4522,
612,
273,
261,
4522,
13,
644,
18,
588,
12,
529,
1769,
202,
202,
759,
2026,
506,
732,
3377,
527,
279,
3689,... |
protected boolean updateSelection(IStructuredSelection selection) { if (!super.updateSelection(selection)) return false; // clipboard must have resources or files ResourceTransfer resTransfer = ResourceTransfer.getInstance(); IResource[] resourceData = (IResource[])clipboard.getContents(resTransfer); FileTransfer fileTransfer = FileTransfer.getInstance(); String[] fileData = (String[])clipboard.getContents(fileTransfer); if (resourceData == null && fileData == null) return false; // can paste open projects regardless of selection boolean isProjectRes = resourceData != null && resourceData.length > 0 && resourceData[0].getType() == IResource.PROJECT; if (isProjectRes) { for (int i = 0; i < resourceData.length; i++) { // make sure all resource data are open projects if (resourceData[i].getType() != IResource.PROJECT || ((IProject) resourceData[i]).isOpen() == false) return false; } return true; } // can paste files and folders to a single selection (project must be open) // or multiple file selection with the same parent if (getSelectedNonResources().size() > 0) return false; List selectedResources = getSelectedResources(); IResource targetResource = getTarget(); // targetResource is null if no valid target is selected or // selection is empty if (targetResource == null) return false; // linked resources can only be pasted into projects if (isLinked(resourceData) && targetResource.getType() != IResource.PROJECT) return false; if (selectedResources.size() > 1) { // if more than one resource is selected the selection has // to be all files with the same parent for (int i = 0; i < selectedResources.size(); i++) { IResource resource = (IResource)selectedResources.get(i); if (resource.getType() != IResource.FILE) return false; if (!targetResource.equals(resource.getParent())) return false; } } if (targetResource.getType() == IResource.FOLDER && resourceData != null) { // don't try to copy folder to self for (int i = 0; i < resourceData.length; i++) { if (targetResource.equals(resourceData[i])) return false; } } return true;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e30426dca631df5cc633df34b1d19cc27948dda3/PasteAction.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/navigator/PasteAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
1250,
1089,
6233,
12,
45,
30733,
6233,
4421,
13,
288,
202,
430,
16051,
9565,
18,
2725,
6233,
12,
10705,
3719,
3196,
202,
2463,
629,
31,
202,
202,
759,
20304,
1297,
1240,
2703,
578,
1390,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
1089,
6233,
12,
45,
30733,
6233,
4421,
13,
288,
202,
430,
16051,
9565,
18,
2725,
6233,
12,
10705,
3719,
3196,
202,
2463,
629,
31,
202,
202,
759,
20304,
1297,
1240,
2703,
578,
1390,... | ||
MylarTasksPlugin.setPriorityLevel(MylarTasksPlugin.Priority_Level.P3, isChecked()); if (isChecked()) { priorityFilter.displayPriority(PRIORITY_LEVELS[2]); } else { priorityFilter.hidePriority(PRIORITY_LEVELS[2]); } | MylarTasksPlugin.setPriorityLevel(MylarTasksPlugin.PriorityLevel.P3); priorityFilter.displayPrioritiesAbove(PRIORITY_LEVELS[2]); | public void addActionsToMenu() { Action P1 = new Action(PRIORITY_LEVELS[0], AS_CHECK_BOX) { @Override public void run() { MylarTasksPlugin.setPriorityLevel(MylarTasksPlugin.Priority_Level.P1, isChecked()); if (isChecked()) { priorityFilter.displayPriority(PRIORITY_LEVELS[0]); } else { priorityFilter.hidePriority(PRIORITY_LEVELS[0]); } viewer.refresh(); } }; P1.setEnabled(true); P1.setChecked(MylarTasksPlugin.getPriorityLevel(MylarTasksPlugin.Priority_Level.P1)); P1.setToolTipText(PRIORITY_LEVELS[0]); ActionContributionItem item= new ActionContributionItem(P1); item.fill(dropDownMenu, -1); Action P2 = new Action(PRIORITY_LEVELS[1], AS_CHECK_BOX) { @Override public void run() { MylarTasksPlugin.setPriorityLevel(MylarTasksPlugin.Priority_Level.P2, isChecked()); if (isChecked()) { priorityFilter.displayPriority(PRIORITY_LEVELS[1]); } else { priorityFilter.hidePriority(PRIORITY_LEVELS[1]); } viewer.refresh(); } }; P2.setEnabled(true); P2.setChecked(MylarTasksPlugin.getPriorityLevel(MylarTasksPlugin.Priority_Level.P2)); P2.setToolTipText(PRIORITY_LEVELS[1]); item= new ActionContributionItem(P2); item.fill(dropDownMenu, -1); Action P3 = new Action(PRIORITY_LEVELS[2], AS_CHECK_BOX) { @Override public void run() { MylarTasksPlugin.setPriorityLevel(MylarTasksPlugin.Priority_Level.P3, isChecked()); if (isChecked()) { priorityFilter.displayPriority(PRIORITY_LEVELS[2]); } else { priorityFilter.hidePriority(PRIORITY_LEVELS[2]); } viewer.refresh(); } }; P3.setEnabled(true); P3.setChecked(MylarTasksPlugin.getPriorityLevel(MylarTasksPlugin.Priority_Level.P3)); P3.setToolTipText(PRIORITY_LEVELS[2]); item= new ActionContributionItem(P3); item.fill(dropDownMenu, -1); Action P4 = new Action(PRIORITY_LEVELS[3], AS_CHECK_BOX) { @Override public void run() { MylarTasksPlugin.setPriorityLevel(MylarTasksPlugin.Priority_Level.P4, isChecked()); if (isChecked()) { priorityFilter.displayPriority(PRIORITY_LEVELS[3]); } else { priorityFilter.hidePriority(PRIORITY_LEVELS[3]); } viewer.refresh(); } }; P4.setEnabled(true); P4.setChecked(MylarTasksPlugin.getPriorityLevel(MylarTasksPlugin.Priority_Level.P4)); P4.setToolTipText(PRIORITY_LEVELS[3]); item= new ActionContributionItem(P4); item.fill(dropDownMenu, -1); Action P5 = new Action(PRIORITY_LEVELS[4], AS_CHECK_BOX) { @Override public void run() { MylarTasksPlugin.setPriorityLevel(MylarTasksPlugin.Priority_Level.P5, isChecked()); if (isChecked()) { priorityFilter.displayPriority(PRIORITY_LEVELS[4]); } else { priorityFilter.hidePriority(PRIORITY_LEVELS[4]); } viewer.refresh(); } }; P5.setEnabled(true); P5.setChecked(MylarTasksPlugin.getPriorityLevel(MylarTasksPlugin.Priority_Level.P5)); P5.setToolTipText(PRIORITY_LEVELS[4]); item= new ActionContributionItem(P5); item.fill(dropDownMenu, -1); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bc7021f7587b73cedaec1c7da627f583e04f991d/TaskListView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
527,
6100,
774,
4599,
1435,
288,
1082,
202,
1803,
453,
21,
273,
394,
4382,
12,
19804,
67,
10398,
55,
63,
20,
6487,
5355,
67,
10687,
67,
16876,
13,
288,
202,
377,
9506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
527,
6100,
774,
4599,
1435,
288,
1082,
202,
1803,
453,
21,
273,
394,
4382,
12,
19804,
67,
10398,
55,
63,
20,
6487,
5355,
67,
10687,
67,
16876,
13,
288,
202,
377,
9506,
... |
public void testDatatypes0017() throws Exception { Connection cx = getConnection(); Statement stmt = cx.createStatement(); dropTable("#t0017"); /* remove ( ), convert , to _ myXXXX, mynullXXXX // Insert a row without nulls via a Statement // Insert a row with nulls via a Statement // Insert a row without nulls via a PreparedStatement // Insert a row with nulls via a PreparedStatement // Now verify that the database has the same data as we put in. */ } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/d456535dc5bca0bbf54c0b9c6730e782aa275787/TimestampTest.java/clean/src.old/test/freetds/TimestampTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5139,
13373,
713,
4033,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
3406,
3480,
273,
9494,
18,
2640,
3406,
5621,
202,
202,
7285,
1388,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5139,
13373,
713,
4033,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
3406,
3480,
273,
9494,
18,
2640,
3406,
5621,
202,
202,
7285,
1388,... | ||
new ConditionalExpression( "Total.sum(row.AMOUNT,null,1)", IConditionalExpression.OP_TOP_PERCENT, "50" ) ); GroupDefinition groupDefn = new GroupDefinition( ); groupDefn.setKeyExpression( "row.COUNTRY" ); groupDefn.addFilter( filterDefn ); | new ConditionalExpression( "Total.sum(row.ROW_AMOUNT)", IConditionalExpression.OP_TOP_PERCENT, "40" ) ); | public void test_FilterGroup( ) throws Exception { String sqlStatement = "select COUNTRY,AMOUNT, SALE_DATE from " + getTestTableName( ); ( ( OdaDataSetDesign )this.dataSet ).setQueryText( sqlStatement ); IBaseExpression[] expressions = new IBaseExpression[]{ new ScriptExpression( "row.COUNTRY" ), new ScriptExpression( "row.AMOUNT" ), new ScriptExpression( "row.SALE_DATE" ) }; String names[] = { "COL_COUNTRY", "COL_AMOUNT", "COL_SALE_DATE"}; QueryDefinition queryDefn = new QueryDefinition( ); queryDefn.setDataSetName( this.dataSet.getName( ) ); for( int i = 0; i < expressions.length; i ++ ) { queryDefn.addResultSetExpression( names[i], expressions[ i ] ); } FilterDefinition filterDefn = new FilterDefinition( new ConditionalExpression( "Total.sum(row.AMOUNT,null,1)", IConditionalExpression.OP_TOP_PERCENT, "50" ) ); GroupDefinition groupDefn = new GroupDefinition( ); groupDefn.setKeyExpression( "row.COUNTRY" ); groupDefn.addFilter( filterDefn ); queryDefn.addGroup( groupDefn ); IPreparedQuery preparedQuery = dataEngine.prepare( queryDefn ); IQueryResults queryResults = preparedQuery.execute( null ); IResultIterator resultIt = queryResults.getResultIterator( ); outputQueryResult( resultIt, names ); checkOutputFile( ); } | 58644 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58644/a66a429089723024f073630955fe61fac636966f/MultiPass_FilterTest.java/clean/plugins/org.eclipse.birt.tests.data/src/org/eclipse/birt/tests/data/engine/api/MultiPass_FilterTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
1586,
1114,
12,
262,
1216,
1185,
202,
95,
202,
202,
780,
1847,
3406,
273,
315,
4025,
12666,
9590,
16,
2192,
51,
5321,
16,
17127,
900,
67,
4594,
628,
315,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
1586,
1114,
12,
262,
1216,
1185,
202,
95,
202,
202,
780,
1847,
3406,
273,
315,
4025,
12666,
9590,
16,
2192,
51,
5321,
16,
17127,
900,
67,
4594,
628,
315,
397,
... |
for (int i = 0, length = pkgs == null ? 0 : pkgs.length; i < length; i++) { IType type = this.nameLookup.findType(typeName, pkgs[i], false, acceptFlag, true/*consider secondary types*/); if (type != null) return type; | if (pkgs != null) { for (int i = 0, length = pkgs.length; i < length; i++) { IType type = this.nameLookup.findType(typeName, pkgs[i], false, acceptFlag, true/*consider secondary types*/); if (type != null) return type; } | protected IType lookupType(ReferenceBinding typeBinding) { if (typeBinding == null) return null; char[] packageName = typeBinding.qualifiedPackageName(); IPackageFragment[] pkgs = this.nameLookup.findPackageFragments( (packageName == null || packageName.length == 0) ? IPackageFragment.DEFAULT_PACKAGE_NAME : new String(packageName), false); // iterate type lookup in each package fragment char[] sourceName = typeBinding.qualifiedSourceName(); String typeName = new String(sourceName); int acceptFlag = 0; if (typeBinding.isAnnotationType()) { acceptFlag = NameLookup.ACCEPT_ANNOTATIONS; } else if (typeBinding.isEnum()) { acceptFlag = NameLookup.ACCEPT_ENUMS; } else if (typeBinding.isInterface()) { acceptFlag = NameLookup.ACCEPT_INTERFACES; } else if (typeBinding.isClass()) { acceptFlag = NameLookup.ACCEPT_CLASSES; } for (int i = 0, length = pkgs == null ? 0 : pkgs.length; i < length; i++) { IType type = this.nameLookup.findType(typeName, pkgs[i], false, acceptFlag, true/*consider secondary types*/); if (type != null) return type; } // search inside enclosing element char[][] qualifiedName = CharOperation.splitOn('.', sourceName); int length = qualifiedName.length; if (length == 0) return null; IType type = createTypeHandle(new String(qualifiedName[0])); // find the top-level type if (type == null) return null; for (int i = 1; i < length; i++) { type = type.getType(new String(qualifiedName[i])); if (type == null) return null; } if (type.exists()) return type; return null;} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/4cbee9c4edfca3748d4063d8a7e10ad2054f1b8a/MatchLocator.java/clean/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
467,
559,
3689,
559,
12,
2404,
5250,
618,
5250,
13,
288,
202,
430,
261,
723,
5250,
422,
446,
13,
327,
446,
31,
202,
3001,
8526,
9929,
273,
618,
5250,
18,
19724,
18308,
5621,
202,
45,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
559,
3689,
559,
12,
2404,
5250,
618,
5250,
13,
288,
202,
430,
261,
723,
5250,
422,
446,
13,
327,
446,
31,
202,
3001,
8526,
9929,
273,
618,
5250,
18,
19724,
18308,
5621,
202,
45,
... |
this.name = RubyString.newString(ruby, name); this.script = RubyString.newString(ruby, script); } | this.name = RubyString.newString(ruby, name); this.script = RubyString.newString(ruby, script); } | EvalThread(String name, String script) { this.name = RubyString.newString(ruby, name); this.script = RubyString.newString(ruby, script); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f6ab64381d604b2fe48f73bcfae05c88ebb3ceb/TestRubyBase.java/buggy/org/jruby/test/TestRubyBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
13163,
3830,
12,
780,
508,
16,
514,
2728,
13,
288,
5411,
333,
18,
529,
273,
19817,
780,
18,
2704,
780,
12,
27768,
16,
508,
1769,
5411,
333,
18,
4263,
273,
19817,
780,
18,
2704,
780,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
13163,
3830,
12,
780,
508,
16,
514,
2728,
13,
288,
5411,
333,
18,
529,
273,
19817,
780,
18,
2704,
780,
12,
27768,
16,
508,
1769,
5411,
333,
18,
4263,
273,
19817,
780,
18,
2704,
780,
1... |
super(position); | super(position, NodeTypes.POSTEXENODE); | public PostExeNode(ISourcePosition position) { super(position); } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/6e15491217631472c05c6928672f9c7064a978b3/PostExeNode.java/buggy/src/org/jruby/ast/PostExeNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5616,
424,
73,
907,
12,
45,
1830,
2555,
1754,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
3798,
2294,
1157,
2712,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
5616,
424,
73,
907,
12,
45,
1830,
2555,
1754,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
3798,
2294,
1157,
2712,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
callerSidePattern.append(className); callerSidePattern.append('#'); callerSidePattern.append(createMethodPattern(javaMethod)); | callerSidePattern.append(callerClassPattern); callerSidePattern.append("->"); callerSidePattern.append(createExecutionPattern(className, javaMethod)); | private static String createCallerSidePattern(final String className, final JavaMethod javaMethod) { StringBuffer callerSidePattern = new StringBuffer(); callerSidePattern.append(className); callerSidePattern.append('#'); callerSidePattern.append(createMethodPattern(javaMethod)); return callerSidePattern.toString(); } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/d5ed59713fb0d95785a77bd315554bca1e78b21a/AttributeC.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/metadata/AttributeC.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
752,
11095,
8895,
3234,
12,
6385,
514,
2658,
16,
4766,
5375,
727,
5110,
1305,
2252,
1305,
13,
288,
3639,
6674,
4894,
8895,
3234,
273,
394,
6674,
5621,
3639,
4894,
8895,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
752,
11095,
8895,
3234,
12,
6385,
514,
2658,
16,
4766,
5375,
727,
5110,
1305,
2252,
1305,
13,
288,
3639,
6674,
4894,
8895,
3234,
273,
394,
6674,
5621,
3639,
4894,
8895,
32... |
public void paintComponent( Graphics g ) { super.paintComponent(g); this.calculerDimension(); //A regarder //this.updateAutoSize() /* // Couleur de remplissage g.setColor(getModele().getFillColor()); g.fillRect(0,0,getWidth(),getHeight()); // Dessine les liens for (int i = 0; i < this.liens.size(); i++) { ((FLien) (this.liens.elementAt(i))).paintComponent(g); } // Dessine les lments for (int i = 0; i < this.elements.size(); i++) { ((FElement) (this.elements.elementAt(i))).paintComponent(g); } // Dessine les poignes (handles) for (int i = 0; i < this.selection.size(); i++) { ((Figure) (this.selection.elementAt(i))).displayHandles(g); } // Permet de dessiner la reprsentation de l'outil (ex : cadre de slection) if (this.diagramTool != null) { //this.diagramTool.draw(g); } */ } | 9761 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9761/599d625574482d45f40f2a723d91fbf758c8842d/VueDPGraphe.java/buggy/isinit/src/iepp/ui/iedition/VueDPGraphe.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12574,
1841,
12,
16830,
314,
262,
202,
95,
202,
202,
9565,
18,
84,
1598,
1841,
12,
75,
1769,
202,
202,
2211,
18,
12780,
264,
8611,
5621,
202,
202,
759,
37,
960,
297,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12574,
1841,
12,
16830,
314,
262,
202,
95,
202,
202,
9565,
18,
84,
1598,
1841,
12,
75,
1769,
202,
202,
2211,
18,
12780,
264,
8611,
5621,
202,
202,
759,
37,
960,
297,
76... | ||
(PsiCatchSection) PsiTreeUtil.getParentOfType(variable, | PsiTreeUtil.getParentOfType(variable, | public void applyFix(Project project, ProblemDescriptor descriptor){ if(isQuickFixOnReadOnlyFile(project, descriptor)) return; try{ final PsiExpression variable = (PsiExpression) descriptor.getPsiElement(); final PsiCatchSection catchSection = (PsiCatchSection) PsiTreeUtil.getParentOfType(variable, PsiCatchSection.class); final PsiCodeBlock body = catchSection.getCatchBlock(); final String replacementText; final PsiType type = variable.getType(); final PsiManager psiManager = PsiManager.getInstance(project); final CodeStyleManager codeStyleManager = psiManager.getCodeStyleManager(); final String originalVariableName = variable.getText(); final SuggestedNameInfo suggestions = codeStyleManager.suggestVariableName(VariableKind.LOCAL_VARIABLE, originalVariableName + '1', variable, type); final String[] names = suggestions.names; final String baseName; if(names != null && names.length > 0){ baseName = names[0]; } else{ baseName = "value"; } final String variableName = codeStyleManager.suggestUniqueVariableName(baseName, catchSection, false); final String className = type.getPresentableText(); final PsiElement[] children = body.getChildren(); final StringBuffer buffer = new StringBuffer(); for(int i = 1; i < children.length; i++){ replaceVariableName(children[i], variableName, originalVariableName, buffer); } replacementText = '{' + className + ' ' + variableName + " = " + originalVariableName + ';' + buffer; final PsiElementFactory elementFactory = psiManager.getElementFactory(); final PsiCodeBlock block = elementFactory.createCodeBlockFromText(replacementText, null); body.replace(block); codeStyleManager.reformat(catchSection); } catch(IncorrectOperationException e){ } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/2d46d291193579a7564649b4881c7ea8e02eda5b/AssignmentToCatchBlockParameterInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/confusing/AssignmentToCatchBlockParameterInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
2230,
8585,
12,
4109,
1984,
16,
21685,
3187,
4950,
15329,
5411,
309,
12,
291,
13663,
8585,
1398,
12066,
812,
12,
4406,
16,
4950,
3719,
327,
31,
5411,
775,
95,
7734,
727,
453,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2230,
8585,
12,
4109,
1984,
16,
21685,
3187,
4950,
15329,
5411,
309,
12,
291,
13663,
8585,
1398,
12066,
812,
12,
4406,
16,
4950,
3719,
327,
31,
5411,
775,
95,
7734,
727,
453,
... |
private static final void debug(String mesg) { | private static final void debug(String msg) { | private static final void debug(String mesg) { if ( DEBUG ) { System.out.println("[" + SessionServlet.class.getName() + "] " + mesg); } } | 3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/03935216b8afca9f8a2b5fe6aba51feeb98385e0/SessionServlet.java/clean/wings/src/org/wings/servlet/SessionServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
727,
918,
1198,
12,
780,
1234,
13,
288,
3639,
309,
261,
6369,
262,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
9614,
397,
3877,
4745,
18,
1106,
18,
17994,
1435,
397,
9850,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
760,
727,
918,
1198,
12,
780,
1234,
13,
288,
3639,
309,
261,
6369,
262,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
9614,
397,
3877,
4745,
18,
1106,
18,
17994,
1435,
397,
9850,
315,... |
String workDirAbsolutePath = StarteamCommandLineUtils.toJavaPath( workDir.getAbsolutePath() ); testCommandLine( "scm:starteam:myusername:mypassword@myhost:1234/projecturl", workDir, "stcmd hist -x -nologo -stop -p myusername:mypassword@myhost:1234/projecturl " + "-fp " + workDirAbsolutePath + " -is" ); | String workingCopy = StarteamCommandLineUtils.toJavaPath( getWorkingCopy().getPath() ); String starteamUrl = "user:password@host:1234/project/view"; String mavenUrl = "scm:starteam:" + starteamUrl; String expectedCmd = "stcmd hist -x -nologo -stop" + " -p " + starteamUrl + " -fp " + workingCopy + " -is" ; testCommandLine( mavenUrl, fileSet, expectedCmd ); | public void testGetCommandLine() throws Exception { File workDir = new File( getBasedir() + "/target" ); String workDirAbsolutePath = StarteamCommandLineUtils.toJavaPath( workDir.getAbsolutePath() ); testCommandLine( "scm:starteam:myusername:mypassword@myhost:1234/projecturl", workDir, "stcmd hist -x -nologo -stop -p myusername:mypassword@myhost:1234/projecturl " + "-fp " + workDirAbsolutePath + " -is" ); } | 48502 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48502/ffdcec215223e70f6f647acea992f3b788a956ee/StarteamChangeLogCommandTest.java/clean/maven-scm-providers/maven-scm-provider-starteam/src/test/java/org/apache/maven/scm/provider/starteam/command/changelog/StarteamChangeLogCommandTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
21391,
1435,
3639,
1216,
1185,
565,
288,
3639,
1387,
1440,
1621,
273,
394,
1387,
12,
8297,
1214,
1435,
397,
2206,
3299,
6,
11272,
3639,
514,
1440,
1621,
10368,
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,
377,
1071,
918,
1842,
967,
21391,
1435,
3639,
1216,
1185,
565,
288,
3639,
1387,
1440,
1621,
273,
394,
1387,
12,
8297,
1214,
1435,
397,
2206,
3299,
6,
11272,
3639,
514,
1440,
1621,
10368,
743,
... |
MarkerCategory(MarkerAdapter adapter, int startIndex, int endIndex, int fieldNumber, MarkerCategory parentCategory) { | MarkerCategory(MarkerAdapter adapter, int startIndex, int endIndex) { | MarkerCategory(MarkerAdapter adapter, int startIndex, int endIndex, int fieldNumber, MarkerCategory parentCategory) { markerAdapter = adapter; start = startIndex; end = endIndex; fieldIndex = fieldNumber; parent = parentCategory; IField field = adapter.getCategorySorter().getCategoryField(); name = field .getValue(markerAdapter.lastMarkers.toArray()[startIndex]); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/0446a7ffd95451a95b1b9aea90290a8cb25be855/MarkerAdapter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
7078,
4457,
12,
7078,
4216,
4516,
16,
509,
10588,
16,
509,
13818,
16,
9506,
202,
474,
652,
1854,
16,
14742,
4457,
982,
4457,
13,
288,
1082,
202,
11145,
4216,
273,
4516,
31,
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,
3196,
202,
7078,
4457,
12,
7078,
4216,
4516,
16,
509,
10588,
16,
509,
13818,
16,
9506,
202,
474,
652,
1854,
16,
14742,
4457,
982,
4457,
13,
288,
1082,
202,
11145,
4216,
273,
4516,
31,
1082,
... |
versionLabel.setText(VERSION+"(rev "+m.group()+")"+OMERO_VERSION); | versionLabel.setText(VERSION+OMERO_VERSION); | private void initFields() { user = new JTextField(); user.setFont(FONT); user.setForeground(FONT_COLOR); user.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED)); pass = new JPasswordField(); pass.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED)); pass.setFont(FONT); pass.setForeground(FONT_COLOR); versionLabel = new JLabel(); versionLabel.setDoubleBuffered(false); String version = "$Rev$"; Pattern p = Pattern.compile("\\d{1,9}"); Matcher m = p.matcher(version); m.find(); versionLabel.setText(VERSION+"(rev "+m.group()+")"+OMERO_VERSION); versionLabel.setForeground(VERSION_FONT_COLOR); versionLabel.setFont(VERSION_FONT); } | 55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/146920a8791fff71320ced0f240b9d8f3d319a13/SplashScreenView.java/buggy/SRC/org/openmicroscopy/shoola/env/ui/SplashScreenView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
2314,
1435,
565,
288,
3639,
729,
273,
394,
804,
16157,
5621,
3639,
729,
18,
542,
5711,
12,
25221,
1769,
3639,
729,
18,
542,
23206,
12,
25221,
67,
10989,
1769,
3639,
729,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2314,
1435,
565,
288,
3639,
729,
273,
394,
804,
16157,
5621,
3639,
729,
18,
542,
5711,
12,
25221,
1769,
3639,
729,
18,
542,
23206,
12,
25221,
67,
10989,
1769,
3639,
729,
... |
} else if ( tabToShow.equals(PARAMETER_VALUE__SHOW_SEARCH) ) { | } else if ( tabToShow.equals( PARAMETER_VALUE__SHOW_SEARCH ) ) { | public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { ImcmsServices service = Imcms.getServices(); UserDomainObject loggedOnUser = Utility.getLoggedOnUser(req); String whichButton = req.getParameter("AdminTask"); if ( null != whichButton ) { /* handle Admin tasks only for Users with admin rights*/ if (!loggedOnUser.isSuperAdmin() && !loggedOnUser.isUserAdmin()) { String header = "Error in AdminManager."; Properties langproperties = service.getLanguageProperties( loggedOnUser ); String msg = langproperties.getProperty("error/servlet/global/no_administrator") + "<br>"; log.debug(header + "- user is not an administrator"); new AdminError(req, res, header, msg); return; } String url = getAdminTaskUrl(whichButton); if (StringUtils.isNotBlank( url )) { res.sendRedirect( url ); return; } } else if (PAGE_SEARCH.equals(req.getParameter(REQUEST_PARAMETER__FROMPAGE))) { req.getRequestDispatcher("/servlet/SearchDocuments").forward(req, res); return ; } String tabToShow = null != req.getParameter(REQUEST_PARAMETER__SHOW) ? req.getParameter(REQUEST_PARAMETER__SHOW): PARAMETER_VALUE__SHOW_NEW; String fileToForwardTo = JSP__ADMIN_MANAGER_NEW; // parse and return the html_admin_part Vector vec = new Vector(); String html_admin_part = ""; if (loggedOnUser.isSuperAdmin()) { html_admin_part = service.getAdminTemplate( HTML_ADMINTASK, loggedOnUser, vec ); // if superadmin } else if (loggedOnUser.isUserAdmin() ) { //if user is useradmin html_admin_part = service.getAdminTemplate( HTML_USERADMINTASK, loggedOnUser, vec ); //if useradmin } List documents_new = new LinkedList(); // STATUS = NEW List documents_changed = new LinkedList(); //MODIFIED_DATETIME > CREATED_DATETIME List documents_archived_less_then_one_week = new LinkedList(); //ARCHIVED_DATETIME < 7 days List documents_publication_end_less_then_one_week = new LinkedList() ; //PUBLICATION_END_DATETIME < 7 days List documents_not_changed_in_six_month = new LinkedList(); DocumentIndex index = service.getDocumentMapper().getDocumentIndex(); BooleanQuery booleanQuery = new BooleanQuery(); Query restrictingQuery = new TermQuery( new Term( DocumentIndex.FIELD__CREATOR_ID, loggedOnUser.getId()+"" ) ); booleanQuery.add( restrictingQuery, true, false ); HashMap current_sortorderMap = new HashMap(); HashMap expand_listMap = new HashMap(); HashMap subreports = new HashMap(); String sortorder ; String new_sortorder = ""; String list_toChange_sortorder = ""; DocumentDomainObject[] documentsFound = index.search( booleanQuery, loggedOnUser); if ( tabToShow.equals(PARAMETER_VALUE__SHOW_NEW) ){ fileToForwardTo = JSP__ADMIN_MANAGER_NEW ; addNewNotApprovedDocumentsToList(booleanQuery, documents_new, index, loggedOnUser); if ( null != req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER) ) { new_sortorder = req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER); list_toChange_sortorder = LIST_TYPE__list_new_not_approved; } sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_new_not_approved_current_sortorder), LIST_TYPE__list_new_not_approved, "MOD"); current_sortorderMap.put(LIST_TYPE__list_new_not_approved, sortorder ); Collections.sort( documents_new, getChainableReversibleNullComparator(sortorder) ) ; setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_new_not_approved, REQUEST_PARAMETER__list_new_not_approved_current_expand ); // documents_new_not_approved = new AdminManagerSubreport(LIST_TYPE__list_new_not_approved, "", "", DEFAULT_DOCUMENTS_PER_LIST, documents_new ); }else if ( tabToShow.equals(PARAMETER_VALUE__SHOW_REMINDERS) ) { fileToForwardTo = JSP__ADMIN_MANAGER_REMINDERS; if ( null != req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER) ) { new_sortorder = req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER); list_toChange_sortorder = req.getParameter(REQUEST_PARAMETER__LIST_TYPE); } sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_sortorder), LIST_TYPE__list_documents_archived_less_then_one_week, "ARCR"); current_sortorderMap.put(LIST_TYPE__list_documents_archived_less_then_one_week, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_sortorder), LIST_TYPE__list_documents_publication_end_less_then_one_week, "PUBER"); current_sortorderMap.put(LIST_TYPE__list_documents_publication_end_less_then_one_week, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_sortorder), LIST_TYPE__list_documents_not_changed_in_six_month, "MOD"); current_sortorderMap.put(LIST_TYPE__list_documents_not_changed_in_six_month, sortorder); addFoundDocumentsToCorrespondingList(documentsFound, documents_archived_less_then_one_week, documents_publication_end_less_then_one_week, documents_not_changed_in_six_month, null, current_sortorderMap); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_archived_less_then_one_week, REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_expand ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_publication_end_less_then_one_week, REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_sortorder ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_not_changed_in_six_month, REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_sortorder ); }else if ( tabToShow.equals(PARAMETER_VALUE__SHOW_SUMMARY) ) { fileToForwardTo = JSP__ADMIN_MANAGER_SUMMARY; addNewNotApprovedDocumentsToList(booleanQuery, documents_new, index, loggedOnUser); if ( null != req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER) ) { new_sortorder = req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER); list_toChange_sortorder = req.getParameter(REQUEST_PARAMETER__LIST_TYPE); } sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_new_not_approved_current_sortorder), LIST_TYPE__list_new_not_approved, "MOD"); current_sortorderMap.put(LIST_TYPE__list_new_not_approved, sortorder); Collections.sort( documents_new, getChainableReversibleNullComparator(sortorder) ) ; sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_changed_current_sortorder), LIST_TYPE__list_documents_changed, "MOD"); current_sortorderMap.put(LIST_TYPE__list_documents_changed, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_sortorder), LIST_TYPE__list_documents_publication_end_less_then_one_week, "PUBER"); current_sortorderMap.put(LIST_TYPE__list_documents_publication_end_less_then_one_week, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_sortorder), LIST_TYPE__list_documents_archived_less_then_one_week, "ARCR"); current_sortorderMap.put(LIST_TYPE__list_documents_archived_less_then_one_week, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_sortorder), LIST_TYPE__list_documents_not_changed_in_six_month, "MOD"); current_sortorderMap.put(LIST_TYPE__list_documents_not_changed_in_six_month, sortorder); addFoundDocumentsToCorrespondingList(documentsFound, documents_archived_less_then_one_week, documents_publication_end_less_then_one_week, documents_not_changed_in_six_month, documents_changed, current_sortorderMap); expand_listMap.put(LIST_TYPE__list_new_not_approved, null != req.getParameter(REQUEST_PARAMETER__list_new_not_approved_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_new_not_approved_current_expand) : "hide"); expand_listMap.put(LIST_TYPE__list_documents_changed, null != req.getParameter(REQUEST_PARAMETER__list_documents_changed_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_documents_changed_current_expand) : "hide"); expand_listMap.put(LIST_TYPE__list_documents_publication_end_less_then_one_week, null != req.getParameter(REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_expand) : "hide"); expand_listMap.put(LIST_TYPE__list_documents_archived_less_then_one_week, null != req.getParameter(REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_expand) : "hide"); expand_listMap.put(LIST_TYPE__list_documents_not_changed_in_six_month, null != req.getParameter(REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_expand) : "hide"); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_new_not_approved, REQUEST_PARAMETER__list_new_not_approved_current_expand ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_changed, REQUEST_PARAMETER__list_documents_changed_current_expand ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_publication_end_less_then_one_week, REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_sortorder ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_archived_less_then_one_week, REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_expand ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_not_changed_in_six_month, REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_sortorder ); } else if ( tabToShow.equals(PARAMETER_VALUE__SHOW_SEARCH) ) { fileToForwardTo = JSP__ADMIN_MANAGER_SEARCH; } AdminManagerPage page = new AdminManagerPage( "".equals(html_admin_part) ? null : html_admin_part, documents_new, documents_changed, documents_archived_less_then_one_week, documents_publication_end_less_then_one_week, documents_not_changed_in_six_month, fileToForwardTo, current_sortorderMap, expand_listMap, subreports, restrictingQuery); page.forward(req, res, loggedOnUser); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/15d70408e151e5aaa1d66d5d73056b4a9e757ed4/AdminManager.java/clean/server/src/com/imcode/imcms/servlet/superadmin/AdminManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
5411,
1216,
16517,
16,
1860,
288,
3639,
2221,
6851,
5676,
1156,
273,
2221,
6851,
18,
588,
5676,
5621,
3639,
2177,
3748,
92... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
5411,
1216,
16517,
16,
1860,
288,
3639,
2221,
6851,
5676,
1156,
273,
2221,
6851,
18,
588,
5676,
5621,
3639,
2177,
3748,
92... |
if (this.isInfinity() && o.isInfinity()) { return true; } | if (this.isInfinity()) { return o.isInfinity(); } | public boolean equals( Object other) { if (other == this) { return true; } if (!(other instanceof ECPoint)) { return false; } ECPoint o = (ECPoint)other; if (this.isInfinity() && o.isInfinity()) { return true; } return x.equals(o.x) && y.equals(o.y); } | 14767 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14767/a27d559078c0404f600992435c9eacb32412b786/ECPoint.java/buggy/crypto/src/org/bouncycastle/math/ec/ECPoint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
3639,
1033,
225,
1308,
13,
565,
288,
3639,
309,
261,
3011,
422,
333,
13,
3639,
288,
5411,
327,
638,
31,
3639,
289,
3639,
309,
16051,
12,
3011,
1276,
7773,
2148,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
3639,
1033,
225,
1308,
13,
565,
288,
3639,
309,
261,
3011,
422,
333,
13,
3639,
288,
5411,
327,
638,
31,
3639,
289,
3639,
309,
16051,
12,
3011,
1276,
7773,
2148,
37... |
dummy += (String)cache.CacheLogs.get(i); | dummy += (String)cache.CacheLogs.get(i)+"</br>"; | public void onEvent(Event ev){ if(ev instanceof ControlEvent && ev.type == ControlEvent.PRESSED){ int minLogs = java.lang.Math.min(5, cache.CacheLogs.size()); if(ev.target == moreBt){ prevBt.modify(0,Control.Disabled); prevBt.repaintNow(); crntLogPosition += minLogs; if(crntLogPosition >= cache.CacheLogs.size()) { //crntLogPosition = cache.CacheLogs.size()-5; crntLogPosition = cache.CacheLogs.size()- minLogs; moreBt.modify(Control.Disabled,0); moreBt.repaintNow(); } String dummy = new String(); int counter = 0; for(int i = crntLogPosition; i<cache.CacheLogs.size(); i++){ dummy += (String)cache.CacheLogs.get(i); counter++; if(counter >= minLogs) break; } logs.setHtml(dummy); } // = moreBt if(ev.target == prevBt){ moreBt.modify(0,Control.Disabled); moreBt.repaintNow(); String dummy = new String(); crntLogPosition -= minLogs; if(crntLogPosition <= 0) { prevBt.modify(Control.Disabled,0); prevBt.repaintNow(); crntLogPosition = 0; } int counter = 0; for(int i = crntLogPosition; i<cache.CacheLogs.size(); i++){ dummy += (String)cache.CacheLogs.get(i); counter++; if(counter >= minLogs) break; } logs.setHtml(dummy); } if(ev.target == decodeButton){ hint.setText(Common.rot13(hint.getText())); } } } | 51026 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51026/f528f4fda167d841c9a1fb055b63973d8f47ddc2/HintLogPanel.java/buggy/src/CacheWolf/HintLogPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
603,
1133,
12,
1133,
2113,
15329,
202,
202,
430,
12,
14965,
1276,
8888,
1133,
597,
2113,
18,
723,
422,
8888,
1133,
18,
27388,
15329,
1082,
202,
474,
1131,
7777,
273,
2252,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
1133,
12,
1133,
2113,
15329,
202,
202,
430,
12,
14965,
1276,
8888,
1133,
597,
2113,
18,
723,
422,
8888,
1133,
18,
27388,
15329,
1082,
202,
474,
1131,
7777,
273,
2252,
... |
this.widget = widget; this.element = element; this.fullMap = fullMap; } | this.widget = widget; this.element = element; this.fullMap = fullMap; } | UpdateItemSafeRunnable(Widget widget, Object element, boolean fullMap) { this.widget = widget; this.element = element; this.fullMap = fullMap; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/dc85f0b1334fe6aa79c5c32e8024d573af99e0d2/StructuredViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
2315,
1180,
9890,
20013,
12,
4609,
3604,
16,
1033,
930,
16,
1250,
1983,
863,
13,
288,
5411,
333,
18,
6587,
273,
3604,
31,
5411,
333,
18,
2956,
273,
930,
31,
5411,
333,
18,
2854,
863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
2315,
1180,
9890,
20013,
12,
4609,
3604,
16,
1033,
930,
16,
1250,
1983,
863,
13,
288,
5411,
333,
18,
6587,
273,
3604,
31,
5411,
333,
18,
2956,
273,
930,
31,
5411,
333,
18,
2854,
863,
... |
super( ValueType.INTEGER_TYPE, | super( ValueType.PINTEGER_TYPE, | private IntegerLessOrEqualEvaluator() { super( ValueType.INTEGER_TYPE, Operator.LESS_OR_EQUAL ); } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/0a76f888ef55c8d5cf806f1c9e6a6e27fa7f4faf/IntegerFactory.java/clean/drools-core/src/main/java/org/drools/base/evaluators/IntegerFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
2144,
15313,
22376,
15876,
1435,
288,
5411,
2240,
12,
31718,
18,
52,
14217,
67,
2399,
16,
10402,
11097,
18,
26005,
67,
916,
67,
12853,
11272,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
3238,
2144,
15313,
22376,
15876,
1435,
288,
5411,
2240,
12,
31718,
18,
52,
14217,
67,
2399,
16,
10402,
11097,
18,
26005,
67,
916,
67,
12853,
11272,
3639,
289,
2,
-100,
-100,
-100,
-100,
-... |
addScannerInfo(type, scannerInfo.get(type)); | addScannerInfo(type, (List) scannerInfo.get(type)); | public synchronized void contributeToScannerConfig(Object resource, Map scannerInfo) { // check the resource String errorMessage = null; if (resource == null) { errorMessage = "resource is null";//$NON-NLS-1$ } else if (!(resource instanceof IFile)) { errorMessage = "resource is not an IFile";//$NON-NLS-1$ } else if (((IFile) resource).getProject() == null) { errorMessage = "project is null";//$NON-NLS-1$ } else if (((IFile) resource).getProject() != project) { errorMessage = "wrong project";//$NON-NLS-1$ } if (errorMessage != null) { TraceUtil.outputError("PerProjectSICollector.contributeToScannerConfig : ", errorMessage); //$NON-NLS-1$ return; } IFile file = (IFile) resource; for (Iterator i = scannerInfo.keySet().iterator(); i.hasNext(); ) { ScannerInfoTypes type = (ScannerInfoTypes) i.next(); if (type.equals(ScannerInfoTypes.COMPILER_COMMAND)) { addCompilerCommands(file, (List) scannerInfo.get(type)); } else { addScannerInfo(type, scannerInfo.get(type)); } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1af4417856bbdfe5e25fa599b676c4ded521b9b1/PerFileSICollector.java/buggy/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/PerFileSICollector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
356,
887,
774,
11338,
809,
12,
921,
1058,
16,
1635,
7683,
966,
13,
288,
3639,
368,
866,
326,
1058,
3639,
514,
9324,
273,
446,
31,
3639,
309,
261,
3146,
422,
446,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
356,
887,
774,
11338,
809,
12,
921,
1058,
16,
1635,
7683,
966,
13,
288,
3639,
368,
866,
326,
1058,
3639,
514,
9324,
273,
446,
31,
3639,
309,
261,
3146,
422,
446,
13,
... |
element.setAttribute(LEVEL_ATTRIBUTE_NAME, getLevel()); | if (getLevel() != null) { element.setAttribute(LEVEL_ATTRIBUTE_NAME, getLevel()); } | public void writeExternal(Element element) throws WriteExternalException { super.writeExternal(element); String name = getName(); if (name == null) { List<String> urls = getUrls(); for (final String url : urls) { final Element urlElement = new Element(URL_ELEMENT_NAME); urlElement.setText(url); element.addContent(urlElement); } } else { element.setAttribute(NAME_ATTRIBUTE_NAME, name); } element.setAttribute(LEVEL_ATTRIBUTE_NAME, getLevel()); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/ad18ad2d5a1ca96f33271e83f42ac566d716f37d/LibraryLinkImpl.java/clean/J2EE/source/com/intellij/j2ee/module/LibraryLinkImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1045,
6841,
12,
1046,
930,
13,
1216,
2598,
6841,
503,
288,
565,
2240,
18,
2626,
6841,
12,
2956,
1769,
565,
514,
508,
273,
1723,
5621,
565,
309,
261,
529,
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,
282,
1071,
918,
1045,
6841,
12,
1046,
930,
13,
1216,
2598,
6841,
503,
288,
565,
2240,
18,
2626,
6841,
12,
2956,
1769,
565,
514,
508,
273,
1723,
5621,
565,
309,
261,
529,
422,
446,
13,
288,
... |
Object parentTask = findParentTaskObject(); | public void doTag(XMLOutput output) throws Exception { hasIDAttribute = false; Project project = getAntProject(); String tagName = getTagName(); Object parentObject = findBeanAncestor(); // lets assume that Task instances are not nested inside other Task instances // for example <manifest> inside a <jar> should be a nested object, where as // if the parent is not a Task the <manifest> should create a ManifestTask // // also its possible to have a root Ant tag which isn't a task, such as when // defining <fileset id="...">...</fileset> if (findParentTaskSource() == null && project.getTaskDefinitions().containsKey( tagName )) { if ( log.isDebugEnabled() ) { log.debug( "Creating an ant Task for name: " + tagName ); } // the following algorithm follows the lifetime of a tag // http://jakarta.apache.org/ant/manual/develop.html#writingowntask // kindly recommended by Stefan Bodewig // create and set its project reference task = createTask( tagName ); if ( task instanceof TaskAdapter ) { setObject( ((TaskAdapter)task).getProxy() ); } else { setObject( task ); } // set the task ID if one is given Object id = getAttributes().remove( "id" ); if ( id != null ) { hasIDAttribute = true; project.addReference( (String) id, task ); } // ### we might want to spoof a Target setting here // now lets initialize task.init(); // now lets invoke the body to call all the createXXX() or addXXX() methods String body = getBodyText(); // now lets set any attributes of this tag... setBeanProperties(); // now lets set the addText() of the body content, if its applicaable Method method = MethodUtils.getAccessibleMethod( task.getClass(), "addText", addTaskParamTypes ); if (method != null) { Object[] args = { body }; method.invoke(this.task, args); } // now lets set all the attributes of the child elements // XXXX: to do! // now we're ready to invoke the task // XXX: should we call execute() or perform()? task.perform(); } else { if ( log.isDebugEnabled() ) { log.debug( "Creating a nested object name: " + tagName ); } Object nested = createNestedObject( parentObject, tagName ); if ( nested == null ) { nested = createDataType( tagName ); } if ( nested != null ) { setObject( nested ); // set the task ID if one is given Object id = getAttributes().remove( "id" ); if ( id != null ) { hasIDAttribute = true; project.addReference( (String) id, nested ); } try{ PropertyUtils.setProperty( nested, "name", tagName ); } catch (Exception e) { } // now lets invoke the body String body = getBodyText(); // now lets set any attributes of this tag... setBeanProperties(); // now lets add it to its parent if ( parentObject != null ) { IntrospectionHelper ih = IntrospectionHelper.getHelper( parentObject.getClass() ); try { if (log.isDebugEnabled()) { log.debug("About to set the: " + tagName + " property on: " + parentObject + " to value: " + nested + " with type: " + nested.getClass() ); } ih.storeElement( project, parentObject, nested, tagName ); } catch (Exception e) { log.warn( "Caught exception setting nested: " + tagName, e ); } // now try to set the property for good measure // as the storeElement() method does not // seem to call any setter methods of non-String types try { BeanUtils.setProperty( parentObject, tagName, nested ); } catch (Exception e) { log.debug("Caught exception trying to set property: " + tagName + " on: " + parentObject); } } } else { // lets treat this tag as static XML... StaticTag tag = new StaticTag("", tagName, tagName); tag.setParent( getParent() ); tag.setBody( getBody() ); tag.setContext(context); for (Iterator iter = getAttributes().entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); String name = (String) entry.getKey(); Object value = entry.getValue(); tag.setAttribute(name, value); } tag.doTag(output); } } } | 51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/59ab4f11de19377f431dedbd37bb0e354b24068a/AntTag.java/buggy/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant/AntTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1033,
982,
2174,
273,
1104,
3054,
2174,
921,
5621,
225,
1033,
982,
2174,
273,
1104,
3054,
2174,
921,
5621,
225,
1033,
982,
2174,
273,
1104,
3054,
2174,
921,
5621,
225,
1033,
982,
2174,
273,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1033,
982,
2174,
273,
1104,
3054,
2174,
921,
5621,
225,
1033,
982,
2174,
273,
1104,
3054,
2174,
921,
5621,
225,
1033,
982,
2174,
273,
1104,
3054,
2174,
921,
5621,
225,
1033,
982,
2174,
273,
11... | |
IContentDescription description = contentTypeManager.getDescriptionFor(contents, file.getName(), IContentDescription.CHARSET); | IContentDescription description = contentTypeManager.getDescriptionFor(contents, file.getName(), new QualifiedName[] {IContentDescription.CHARSET}); | private String getEncodingFromContent(IFile file) { // tries to obtain a description for the file contents IContentTypeManager contentTypeManager = Platform.getContentTypeManager(); try { InputStream contents = new BufferedInputStream(file.getContents()); try { IContentDescription description = contentTypeManager.getDescriptionFor(contents, file.getName(), IContentDescription.CHARSET); if (description != null) { String charset= description.getCharset(); if (charset != null) return charset; } } catch (IOException e) { } finally { if (contents != null) try { contents.close(); } catch (IOException e) { // ignore silently } } } catch (CoreException e) { // ignore silently } return null;} | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c690c13e2ff52fc7506ef720c02f2d6137a15dd4/ResourceInfoPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
514,
29505,
1265,
1350,
12,
45,
812,
585,
13,
288,
202,
759,
9327,
358,
7161,
279,
2477,
364,
326,
585,
2939,
202,
45,
8046,
1318,
5064,
1318,
273,
11810,
18,
588,
8046,
1318,
5621,
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,
3238,
514,
29505,
1265,
1350,
12,
45,
812,
585,
13,
288,
202,
759,
9327,
358,
7161,
279,
2477,
364,
326,
585,
2939,
202,
45,
8046,
1318,
5064,
1318,
273,
11810,
18,
588,
8046,
1318,
5621,
20... |
for(int i=0; i < attributes.length; i++) | for (int i = 0; i < attributes.length; i++) | public void visitCode(Code obj) { super.visitCode(obj); CodeException[] exceptions = obj.getExceptionTable(); for(int i = 0; i < exceptions.length; i++) exceptions[i].accept(this); Attribute[] attributes = obj.getAttributes(); for(int i=0; i < attributes.length; i++) attributes[i].accept(this); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/25ad10cbe95e7dda9a87fe50b448c051f108b7e2/PreorderVisitor.java/clean/findbugs/src/java/edu/umd/cs/findbugs/visitclass/PreorderVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
1071,
918,
3757,
1085,
12,
1085,
1081,
13,
288,
225,
202,
9565,
18,
11658,
1085,
12,
2603,
1769,
202,
1085,
503,
8526,
4798,
273,
1081,
18,
588,
503,
1388,
5621,
202,
1884,
12,
474,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
918,
3757,
1085,
12,
1085,
1081,
13,
288,
225,
202,
9565,
18,
11658,
1085,
12,
2603,
1769,
202,
1085,
503,
8526,
4798,
273,
1081,
18,
588,
503,
1388,
5621,
202,
1884,
12,
474,
27... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.