rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
IEditorPart editor = page.findEditor(new WelcomeEditorInput()); | IEditorPart editor = page.findEditor(input); | public void run() { WorkbenchPage page = (WorkbenchPage)workbench.getActiveWorkbenchWindow().getActivePage(); if (page == null) { // Create the initial page. try { IContainer root = WorkbenchPlugin.getPluginWorkspace().getRoot(); page = (WorkbenchPage)workbench.getActiveWorkbenchWindow().openPage( WorkbenchPlugin.getDefault().getPerspectiveRegistry().getDefaultPerspective(), root); } catch (WorkbenchException e) { MessageDialog.openError( workbench.getActiveWorkbenchWindow().getShell(), WorkbenchMessages.getString("Problems_Opening_Page"), //$NON-NLS-1$ e.getMessage()); } } if (page == null) return; page.setEditorAreaVisible(true); // see if we already have a welcome editor IEditorPart editor = page.findEditor(new WelcomeEditorInput()); if(editor != null) { page.bringToTop(editor); return; } try { page.openEditor(new WelcomeEditorInput(), EDITOR_ID); } catch (PartInitException e) { IStatus status = new Status(IStatus.ERROR, WorkbenchPlugin.PI_WORKBENCH, 1, WorkbenchMessages.getString("QuickStartAction.openEditorException"), e); //$NON-NLS-1$ ErrorDialog.openError( workbench.getActiveWorkbenchWindow().getShell(), WorkbenchMessages.getString("QuickStartAction.errorDialogTitle"), //$NON-NLS-1$ WorkbenchMessages.getString("QuickStartAction.errorDialogMessage"), //$NON-NLS-1$ status); }} | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ea54731eb383911fc4c34e3f9e00e33dad9ed4fb/QuickStartAction.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/QuickStartAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1086,
1435,
288,
202,
2421,
22144,
1964,
1363,
273,
261,
2421,
22144,
1964,
13,
1252,
22144,
18,
588,
3896,
2421,
22144,
3829,
7675,
588,
3896,
1964,
5621,
202,
430,
261,
2433,
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,
1071,
918,
1086,
1435,
288,
202,
2421,
22144,
1964,
1363,
273,
261,
2421,
22144,
1964,
13,
1252,
22144,
18,
588,
3896,
2421,
22144,
3829,
7675,
588,
3896,
1964,
5621,
202,
430,
261,
2433,
422,
... |
parse(buffer.toString(), ParserLanguage.CPP, false, true); | parse(buffer.toString(), ParserLanguage.CPP, true, 0); | public void test7_3_3s5() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("class A {\n"); //$NON-NLS-1$ buffer.append("public:\n"); //$NON-NLS-1$ buffer.append("template <class T> void f(T);\n"); //$NON-NLS-1$ buffer.append("template <class T> struct X { };\n"); //$NON-NLS-1$ buffer.append("};\n"); //$NON-NLS-1$ buffer.append("class B : public A {\n"); //$NON-NLS-1$ buffer.append("public:\n"); //$NON-NLS-1$ buffer.append("using A::f<double>; // illformed\n"); //$NON-NLS-1$ buffer.append("using A::X<int>; // illformed\n"); //$NON-NLS-1$ buffer.append("};\n"); //$NON-NLS-1$ parse(buffer.toString(), ParserLanguage.CPP, false, true); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/7d7fa374bfd169ce8924a5c15bd01444e6e6e445/AST2CPPSpecTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
27,
67,
23,
67,
23,
87,
25,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
1106,
432,
18890,
82,
8863,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27,
67,
23,
67,
23,
87,
25,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
1106,
432,
18890,
82,
8863,
43... |
String name, displayName, url, language, home; HashSet oper, affil; HashMap attrs; | String name, displayName, url, language, home; HashSet oper, affil; HashMap attrs; | AuthorizationClient parseClientElem(Element element) throws IllegalConfigException { String name, displayName, url, language, home; HashSet oper, affil; HashMap attrs; if (element == null) throw new IllegalArgumentException("Element cannot be null"); name = element.getAttributeValue("name"); if (name == null || name.equals("")) throw new IllegalConfigException("Name attribute must be a non empty string."); displayName = getChildContent(element, "DisplayName"); url = getChildContent(element, "URL"); language = getChildContent(element, "Language"); home = getChildContent(element, "Home"); attrs = parseAttributesElem(element.getChild("Attributes")); oper = parseListElem(element.getChild("Operations")); affil = parseListElem(element.getChild("Affiliation")); return new AuthorizationClient(name, displayName, url, language, home, affil, oper, attrs); } | 1637 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1637/aae449b8f0b3690db2dc4c5b5a6e10bd6c5b319c/AuthorizationManager.java/clean/moria2/modules/moria-am/src/java/no/feide/moria/authorization/AuthorizationManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6063,
1227,
1109,
1227,
7498,
12,
1046,
930,
13,
1216,
2141,
18625,
288,
202,
202,
780,
508,
16,
16218,
16,
880,
16,
2653,
16,
6382,
31,
202,
202,
13482,
2255,
16,
7103,
330,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6063,
1227,
1109,
1227,
7498,
12,
1046,
930,
13,
1216,
2141,
18625,
288,
202,
202,
780,
508,
16,
16218,
16,
880,
16,
2653,
16,
6382,
31,
202,
202,
13482,
2255,
16,
7103,
330,
31,
... |
throw new RangeError(runtime, inspect().toString() + " out of range."); | throw new RangeError(getRuntime(), inspect().toString() + " out of range."); | public long[] getBeginLength(long limit, boolean truncate, boolean isStrict) { long beginLong = RubyNumeric.num2long(begin); long endLong = RubyNumeric.num2long(end); if (! isExclusive) { endLong++; } if (beginLong < 0) { beginLong += limit; if (beginLong < 0) { if (isStrict) { throw new RangeError(runtime, inspect().toString() + " out of range."); } return null; } } if (truncate && beginLong > limit) { if (isStrict) { throw new RangeError(runtime, inspect().toString() + " out of range."); } return null; } if (truncate && endLong > limit) { endLong = limit; } if (endLong < 0 || (!isExclusive && endLong == 0)) { endLong += limit; if (endLong < 0) { if (isStrict) { throw new RangeError(runtime, inspect().toString() + " out of range."); } return null; } } if (beginLong > endLong) { if (isStrict) { throw new RangeError(runtime, inspect().toString() + " out of range."); } return null; } return new long[] { beginLong, endLong - beginLong }; } | 49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRange.java/clean/src/org/jruby/RubyRange.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
8526,
25282,
1782,
12,
5748,
1800,
16,
1250,
10310,
16,
1250,
353,
14809,
13,
288,
3639,
1525,
2376,
3708,
273,
19817,
9902,
18,
2107,
22,
5748,
12,
10086,
1769,
3639,
1525,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
8526,
25282,
1782,
12,
5748,
1800,
16,
1250,
10310,
16,
1250,
353,
14809,
13,
288,
3639,
1525,
2376,
3708,
273,
19817,
9902,
18,
2107,
22,
5748,
12,
10086,
1769,
3639,
1525,
6... |
name = " (Artillery)"; | name = Messages.getString("HexTarget.Artillery"); | public String getDisplayName() { String name = ""; switch (m_type) { case (Targetable.TYPE_MINEFIELD_DELIVER) : name = " (Deliver minefield)"; break; case (Targetable.TYPE_HEX_CLEAR) : name = " (Clear)"; break; case (Targetable.TYPE_HEX_IGNITE) : name = " (Ignite)"; break; case (Targetable.TYPE_HEX_ARTILLERY) : name = " (Artillery)"; break; case (Targetable.TYPE_HEX_FASCAM) : name = " (FASCAM)"; break; case (Targetable.TYPE_HEX_INFERNO_IV) : name = " (Inferno IV)"; break; case (Targetable.TYPE_HEX_VIBRABOMB_IV) : name = " (Vibrabomb IV)"; } return "Hex: " + m_coords.getBoardNum() + name; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/da0fd28b35690a37ed28474ff664daaf8f2834f2/HexTarget.java/clean/megamek/src/megamek/common/HexTarget.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
22055,
1435,
288,
3639,
514,
508,
273,
1408,
31,
3639,
1620,
261,
81,
67,
723,
13,
288,
3639,
648,
261,
2326,
429,
18,
2399,
67,
49,
3740,
6776,
67,
20643,
2204,
13,
294,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
22055,
1435,
288,
3639,
514,
508,
273,
1408,
31,
3639,
1620,
261,
81,
67,
723,
13,
288,
3639,
648,
261,
2326,
429,
18,
2399,
67,
49,
3740,
6776,
67,
20643,
2204,
13,
294,
5... |
} else if( (doc != null) ) doc.print(new PrintWriter(out)); | } else if( (doc != null) ) { XMLSerializer serializer = new XMLSerializer(new PrintWriter(out), new OutputFormat()); serializer.serialize(doc); } | private void processContainerXSL(XMLObjectProvider myObjectProvider, XSLTInputSource myXSL, OutputStream out, final String collectionType ) { TXDocument doc = null; try{ synchronized( myObjectProvider) { Object odoc= getDocument(myObjectProvider); if( odoc instanceof TXDocument) doc = (TXDocument)odoc; if( doc != null) { //Element ce = doc.createElement("Container"); //ce.setAttribute("Event", "ADD"); //doc.getFirstChild().appendChild(ce); NodeList children = doc.getFirstChild().getChildNodes(); for(int i=0; i<children.getLength(); i++) { Node n= (Node)children.item(i); Element elem = doc.createElement("Subscription"); if( collectionType.equals(GenericLogic.collectionType_ADD)) { elem.setAttribute("Event","ADD"); } else if( collectionType.equals(GenericLogic.collectionType_CHANGE)){ elem.setAttribute("Event","CHANGE"); } else if( collectionType.equals(GenericLogic.collectionType_REMOVE)){ elem.setAttribute("Event","REMOVE"); } else elem.setAttribute("Event","UNKNOWN"); n.appendChild(elem); } } } // // This is BAD. // TODO: FIX THIS // converting TO STRING TO APPLY XSL is v. inefficient. // When COUGAAR XML parser version is updated, will go away. // if( (myXSL != null) && ( doc != null) ) { StringWriter sw = new StringWriter(); doc.print(sw); StringBuffer sb = sw.getBuffer(); //System.err.println("returnVal, sb.toSTring()=" + sb.toString().substring(0,120)); //System.err.println("returnVal, sbuf.toString()=" + sbuf.toString()); StringReader sr = new StringReader(sb.toString() ); applyXSL(sr,myXSL, out); // DEBUG //doc.print(new PrintWriter(System.out)); // } else if( (doc != null) ) doc.print(new PrintWriter(out)); } catch (Exception ex ) { ex.printStackTrace(); } } | 10685 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10685/862a9f1603c7ac73651303202b20d87608b51ed5/GenericQueryXML.java/buggy/aggagent/src/org/cougaar/lib/aggagent/dictionary/glquery/GenericQueryXML.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1207,
2170,
60,
4559,
12,
4201,
921,
2249,
3399,
921,
2249,
16,
4766,
282,
20751,
1210,
1830,
225,
3399,
60,
4559,
16,
8962,
596,
16,
4766,
282,
727,
514,
1849,
559,
262,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1207,
2170,
60,
4559,
12,
4201,
921,
2249,
3399,
921,
2249,
16,
4766,
282,
20751,
1210,
1830,
225,
3399,
60,
4559,
16,
8962,
596,
16,
4766,
282,
727,
514,
1849,
559,
262,
225... |
{ zoomLevel = ImageInspector.ZOOM_DEFAULT; control.setZoomLevel(zoomLevel); } | { zoomLevel = ImageInspector.ZOOM_DEFAULT; control.setZoomLevel(zoomLevel); } | private void zoomFit() { zoomLevel = ImageInspector.ZOOM_DEFAULT; control.setZoomLevel(zoomLevel); } | 55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomBarManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomBarManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
7182,
14219,
1435,
202,
95,
202,
202,
14932,
2355,
273,
3421,
19443,
18,
62,
51,
1872,
67,
5280,
31,
202,
202,
7098,
18,
542,
11497,
2355,
12,
14932,
2355,
1769,
202,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1152,
918,
7182,
14219,
1435,
202,
95,
202,
202,
14932,
2355,
273,
3421,
19443,
18,
62,
51,
1872,
67,
5280,
31,
202,
202,
7098,
18,
542,
11497,
2355,
12,
14932,
2355,
1769,
202,
97... |
row = new HashMap<String, Object>(); | row = new TreeMap<String, Object>(String.CASE_INSENSITIVE_ORDER); | public final void set(String name, Object value) { if (row == null) { row = new HashMap<String, Object>(); } row.put(name, value); } | 55401 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55401/f15cc109d1e02d62528b4b0e722ab3cb12d2b7bd/JaninoQuery.java/clean/drivers/src/java/scriptella/drivers/janino/JaninoQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
444,
12,
780,
508,
16,
1033,
460,
13,
288,
3639,
309,
261,
492,
422,
446,
13,
288,
5411,
1027,
273,
394,
16381,
32,
780,
16,
1033,
34,
12,
780,
18,
13415,
67,
706,
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,
727,
918,
444,
12,
780,
508,
16,
1033,
460,
13,
288,
3639,
309,
261,
492,
422,
446,
13,
288,
5411,
1027,
273,
394,
16381,
32,
780,
16,
1033,
34,
12,
780,
18,
13415,
67,
706,
2... |
if ((userRole.getName()) == role.getName()) { | if (userRole.getName().equals(role.getName())) { | public int doStartTag() throws JspException { PortletRequest req = (PortletRequest) pageContext.getAttribute("portletRequest"); PortletRole userRole = req.getRole(); if (userRole != null) { if (exclusive) { if ((userRole.getName()) == role.getName()) { return EVAL_BODY_INCLUDE; } } else { if ((userRole.getID()) >= role.getID()) { return EVAL_BODY_INCLUDE; } } } return SKIP_BODY; } | 49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/216ed8c4615d600e7450012661807bef24deed7b/HasRoleTag.java/clean/src/org/gridlab/gridsphere/provider/portletui/tags/HasRoleTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
288,
3639,
21305,
691,
1111,
273,
261,
18566,
691,
13,
21442,
18,
588,
1499,
2932,
655,
1810,
691,
8863,
3639,
21305,
2996,
729,
2996,
273,
1111,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
3639,
21305,
691,
1111,
273,
261,
18566,
691,
13,
21442,
18,
588,
1499,
2932,
655,
1810,
691,
8863,
3639,
21305,
2996,
729,
2996,
273,
1111,
... |
classFile.startMethod(getSourceMethodStr, mainImplSig, (short)flags); push(encodedSource); addByteCode(ByteCode.ILOAD_0); addByteCode(ByteCode.ILOAD_1); classFile.addInvoke(ByteCode.INVOKEVIRTUAL, "java/lang/String", "substring", "(II)Ljava/lang/String;"); addByteCode(ByteCode.ARETURN); classFile.stopMethod((short)2, null); | cfw.startMethod(getSourceMethodStr, mainImplSig, (short)flags); cfw.addPush(encodedSource); cfw.add(ByteCode.ILOAD_0); cfw.add(ByteCode.ILOAD_1); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, "java/lang/String", "substring", "(II)Ljava/lang/String;"); cfw.add(ByteCode.ARETURN); cfw.stopMethod((short)2, null); | private void generateInit(Context cx, String superClassName) { String methodName = (inFunction) ? "<init>" : "initScript"; classFile.startMethod(methodName, "(Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;)V", ClassFileWriter.ACC_PUBLIC); final byte ALOAD_SCOPE = ByteCode.ALOAD_1; final byte ALOAD_CONTEXT = ByteCode.ALOAD_2; if (inFunction) { addByteCode(ByteCode.ALOAD_0); addSpecialInvoke(superClassName, "<init>", "()V"); addByteCode(ByteCode.ALOAD_0); addByteCode(ALOAD_SCOPE); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/ScriptableObject", "parent", "Lorg/mozilla/javascript/Scriptable;"); /* * Generate code to initialize functionName field with the name * of the function. */ String name = fnCurrent.getFunctionName(); if (name.length() != 0) { addByteCode(ByteCode.ALOAD_0); classFile.addLoadConstant(name); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "functionName", "Ljava/lang/String;"); } } /* * Generate code to initialize argNames string array with the names * of the parameters and the vars. Initialize argCount * to the number of formal parameters. */ int N = scriptOrFn.getParamAndVarCount(); if (N != 0) { push(N); addByteCode(ByteCode.ANEWARRAY, "java/lang/String"); for (int i = 0; i != N; i++) { addByteCode(ByteCode.DUP); push(i); push(scriptOrFn.getParamOrVarName(i)); addByteCode(ByteCode.AASTORE); } addByteCode(ByteCode.ALOAD_0); addByteCode(ByteCode.SWAP); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "argNames", "[Ljava/lang/String;"); } int parmCount = scriptOrFn.getParamCount(); if (parmCount != 0) { if (!inFunction) Context.codeBug(); addByteCode(ByteCode.ALOAD_0); push(parmCount); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "argCount", "S"); } // Initialize NativeFunction.version with Context's version. if (cx.getLanguageVersion() != 0) { addByteCode(ByteCode.ALOAD_0); push(cx.getLanguageVersion()); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "version", "S"); } // precompile all regexp literals int regexpCount = scriptOrFn.getRegexpCount(); if (regexpCount != 0) { for (int i = 0; i != regexpCount; ++i) { String fieldName = getRegexpFieldName(i); short flags = ClassFileWriter.ACC_PRIVATE; if (inFunction) { flags |= ClassFileWriter.ACC_FINAL; } classFile.addField( fieldName, "Lorg/mozilla/javascript/regexp/NativeRegExp;", flags); addByteCode(ByteCode.ALOAD_0); // load 'this' addByteCode(ByteCode.NEW, "org/mozilla/javascript/regexp/NativeRegExp"); addByteCode(ByteCode.DUP); addByteCode(ALOAD_CONTEXT); addByteCode(ALOAD_SCOPE); push(scriptOrFn.getRegexpString(i)); String regexpFlags = scriptOrFn.getRegexpFlags(i); if (regexpFlags == null) { addByteCode(ByteCode.ACONST_NULL); } else { push(regexpFlags); } push(0); addSpecialInvoke("org/mozilla/javascript/regexp/NativeRegExp", "<init>", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/String;Ljava/lang/String;" +"Z" +")V"); classFile.add(ByteCode.PUTFIELD, generatedClassName, fieldName, "Lorg/mozilla/javascript/regexp/NativeRegExp;"); } } classFile.addField(MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature, (short)0); // For top level script or function init scriptMaster to self if (isMainCodegen) { addByteCode(ByteCode.ALOAD_0); addByteCode(ByteCode.DUP); classFile.add(ByteCode.PUTFIELD, generatedClassName, MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); } addByteCode(ByteCode.RETURN); // 3 = this + scope + context classFile.stopMethod((short)3, null); // Add static method to return encoded source tree for decompilation // which will be called from OptFunction/OptScrript.getSourcesTree // via reflection. See NativeFunction.getSourcesTree for documentation. // Note that nested function decompilation currently depends on the // elements of the fns array being defined in source order. // (per function/script, starting from 0.) // Change Parser if changing ordering. if (mainCodegen.encodedSource != null) { // Override NativeFunction.getEncodedSourceg() with // public String getEncodedSource() // { // return main_class.getEncodedSourceImpl(START, END); // } short flags = ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_STATIC; String getSourceMethodStr = "getEncodedSourceImpl"; String mainImplSig = "(II)Ljava/lang/String;"; classFile.startMethod("getEncodedSource", "()Ljava/lang/Object;", ClassFileWriter.ACC_PUBLIC); push(scriptOrFn.getEncodedSourceStart()); push(scriptOrFn.getEncodedSourceEnd()); classFile.addInvoke(ByteCode.INVOKESTATIC, mainCodegen.generatedClassName, getSourceMethodStr, mainImplSig); addByteCode(ByteCode.ARETURN); // 1: this and no argument or locals classFile.stopMethod((short)1, null); if (isMainCodegen) { // generate // public static String getEncodedSourceImpl(int start, int end) // { // return ENCODED.substring(start, end); // } classFile.startMethod(getSourceMethodStr, mainImplSig, (short)flags); push(encodedSource); addByteCode(ByteCode.ILOAD_0); addByteCode(ByteCode.ILOAD_1); classFile.addInvoke(ByteCode.INVOKEVIRTUAL, "java/lang/String", "substring", "(II)Ljava/lang/String;"); addByteCode(ByteCode.ARETURN); classFile.stopMethod((short)2, null); } } } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
2570,
12,
1042,
9494,
16,
514,
2240,
3834,
13,
565,
288,
3639,
514,
4918,
273,
261,
267,
2083,
13,
692,
3532,
2738,
2984,
294,
225,
315,
2738,
3651,
14432,
3639,
29728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2570,
12,
1042,
9494,
16,
514,
2240,
3834,
13,
565,
288,
3639,
514,
4918,
273,
261,
267,
2083,
13,
692,
3532,
2738,
2984,
294,
225,
315,
2738,
3651,
14432,
3639,
29728,
... |
Extent blockSize = Extent.fromInt(BlockAllocator.blockSize(blockSizeClass[sizeClass])); | Extent blockSize = Extent.fromIntSignExtend(BlockAllocator.blockSize(blockSizeClass[sizeClass])); | protected final Address makeFreeListFromLiveBits(Address block, int sizeClass) throws InlinePragma { Extent cellBytes = Extent.fromInt(cellSize[sizeClass]); Address cellCursor = block.add(blockHeaderSize[sizeClass]); Extent blockSize = Extent.fromInt(BlockAllocator.blockSize(blockSizeClass[sizeClass])); Address end = block.add(blockSize); Address nextFree = Address.zero(); Address nextCellCursor = cellCursor.add(cellBytes); Address liveCursor = alignToLiveStride(cellCursor); Address liveWordCursor = getLiveWordAddress(liveCursor); boolean isLive = false; while (liveCursor.LT(end)) { Word live = liveWordCursor.loadWord(); if (!live.isZero()) { for (int i=0; i < BITS_IN_WORD; i++) { if (!(live.and(Word.one().lsh(i)).isZero())) isLive = true; liveCursor = liveCursor.add(BYTES_PER_LIVE_BIT); if (liveCursor.GE(nextCellCursor)) { if (!isLive) { free(cellCursor, block, sizeClass, nextFree); nextFree = cellCursor; } cellCursor = nextCellCursor; nextCellCursor = nextCellCursor.add(cellBytes); isLive = false; } } } else { liveCursor = liveCursor.add(BYTES_PER_LIVE_WORD); while (liveCursor.GE(nextCellCursor)) { // while (nextCellCursor.LT(liveCursor)) { if (!isLive) { free(cellCursor, block, sizeClass, nextFree); nextFree = cellCursor; } cellCursor = nextCellCursor; nextCellCursor = nextCellCursor.add(cellBytes); isLive = false; } } liveWordCursor = liveWordCursor.add(BYTES_IN_WORD); } return nextFree; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/8dfe8cd586b96d63fa7fc0e721eee0627995e5e3/SegregatedFreeList.java/buggy/MMTk/src/org/mmtk/utility/alloc/SegregatedFreeList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
5267,
1221,
9194,
682,
1265,
12328,
6495,
12,
1887,
1203,
16,
4766,
15604,
509,
963,
797,
13,
565,
1216,
16355,
2050,
9454,
288,
565,
6419,
319,
2484,
2160,
273,
6419,
319,
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,
4750,
727,
5267,
1221,
9194,
682,
1265,
12328,
6495,
12,
1887,
1203,
16,
4766,
15604,
509,
963,
797,
13,
565,
1216,
16355,
2050,
9454,
288,
565,
6419,
319,
2484,
2160,
273,
6419,
319,
18,... |
CellConstraints cc = (CellConstraints) component.getCustomLayoutConstraints(); if (cc != null) { | if (component.getCustomLayoutConstraints() instanceof CellConstraints) { CellConstraints cc = (CellConstraints) component.getCustomLayoutConstraints(); | private static CellConstraints gridToCellConstraints(final RadComponent component) { GridConstraints gc = component.getConstraints(); CellConstraints.Alignment hAlign = ((gc.getHSizePolicy() & GridConstraints.SIZEPOLICY_WANT_GROW) != 0) ? CellConstraints.FILL : CellConstraints.DEFAULT; CellConstraints.Alignment vAlign = ((gc.getVSizePolicy() & GridConstraints.SIZEPOLICY_WANT_GROW) != 0) ? CellConstraints.FILL : CellConstraints.DEFAULT; CellConstraints cc = (CellConstraints) component.getCustomLayoutConstraints(); if (cc != null) { hAlign = cc.hAlign; vAlign = cc.vAlign; } return new CellConstraints(gc.getColumn()+1, gc.getRow()+1, gc.getColSpan(), gc.getRowSpan(), hAlign, vAlign); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/0a5ed8d54314b70b25b2e2021d87ef324041160b/RadFormLayoutManager.java/clean/ui-designer/impl/com/intellij/uiDesigner/radComponents/RadFormLayoutManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
8614,
4878,
3068,
774,
4020,
4878,
12,
6385,
16378,
1841,
1794,
13,
288,
565,
7145,
4878,
8859,
273,
1794,
18,
588,
4878,
5621,
565,
8614,
4878,
18,
11535,
366,
10044,
273,
140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
8614,
4878,
3068,
774,
4020,
4878,
12,
6385,
16378,
1841,
1794,
13,
288,
565,
7145,
4878,
8859,
273,
1794,
18,
588,
4878,
5621,
565,
8614,
4878,
18,
11535,
366,
10044,
273,
140... |
if (soot.options.Options.v().xml_attributes()) { Printer.v().setOption(Printer.ADD_JIMPLE_LN); } | Printer.v().clearOption(Printer.ADD_JIMPLE_LN); | private void writeClass(SootClass c) { final int format = soot.options.Options.v().output_format(); if( format == soot.options.Options.output_format_none ) return; if( format == soot.options.Options.output_format_dava ) return; FileOutputStream streamOut = null; PrintWriter writerOut = null; boolean noOutputFile = false; String fileName = SourceLocator.v().getFileNameFor(c, format); if (format != soot.options.Options.output_format_class) { try { streamOut = new FileOutputStream(fileName); writerOut = new PrintWriter(new OutputStreamWriter(streamOut)); G.v().out.println( "Writing to "+fileName ); } catch (IOException e) { G.v().out.println("Cannot output file " + fileName); } } if (soot.options.Options.v().xml_attributes()) { Printer.v().setOption(Printer.ADD_JIMPLE_LN); } switch (format) { case soot.options.Options.output_format_jasmin : if (c.containsBafBody()) new soot.baf.JasminClass(c).print(writerOut); else new soot.jimple.JasminClass(c).print(writerOut); break; case soot.options.Options.output_format_jimp : case soot.options.Options.output_format_shimp : case soot.options.Options.output_format_b : case soot.options.Options.output_format_grimp : Printer.v().setOption(Printer.USE_ABBREVIATIONS); Printer.v().printTo(c, writerOut); break; case soot.options.Options.output_format_baf : case soot.options.Options.output_format_jimple : case soot.options.Options.output_format_shimple : case soot.options.Options.output_format_grimple : writerOut = new PrintWriter( new EscapedWriter(new OutputStreamWriter(streamOut))); Printer.v().printTo(c, writerOut); break; case soot.options.Options.output_format_class : Printer.v().write(c, SourceLocator.v().getOutputDir()); break; case soot.options.Options.output_format_xml : writerOut = new PrintWriter( new EscapedWriter(new OutputStreamWriter(streamOut))); XMLPrinter.v().printJimpleStyleTo(c, writerOut); break; default : throw new RuntimeException(); } if (format != soot.options.Options.output_format_class) { try { writerOut.flush(); streamOut.close(); } catch (IOException e) { G.v().out.println("Cannot close output file " + fileName); } } } | 236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/ec32d4608be2f4c5a7765f9a47ab2e43ef0666eb/Main.java/clean/aop/abc/src/abc/main/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
797,
12,
55,
1632,
797,
276,
13,
288,
3639,
727,
509,
740,
273,
1427,
352,
18,
2116,
18,
1320,
18,
90,
7675,
2844,
67,
2139,
5621,
3639,
309,
12,
740,
422,
1427,
352,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
797,
12,
55,
1632,
797,
276,
13,
288,
3639,
727,
509,
740,
273,
1427,
352,
18,
2116,
18,
1320,
18,
90,
7675,
2844,
67,
2139,
5621,
3639,
309,
12,
740,
422,
1427,
352,... |
public org.quickfix.field.LegIssuer getLegIssuer() throws FieldNotFound { org.quickfix.field.LegIssuer value = new org.quickfix.field.LegIssuer(); | public quickfix.field.LegIssuer getLegIssuer() throws FieldNotFound { quickfix.field.LegIssuer value = new quickfix.field.LegIssuer(); | public org.quickfix.field.LegIssuer getLegIssuer() throws FieldNotFound { org.quickfix.field.LegIssuer value = new org.quickfix.field.LegIssuer(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralRequest.java/buggy/src/java/src/quickfix/fix44/CollateralRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
16667,
336,
8329,
16667,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
16667,
460,
273,
394,
2358,
18,
19525,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
16667,
336,
8329,
16667,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
16667,
460,
273,
394,
2358,
18,
19525,... |
ExtendedElementUIPoint point = (ExtendedElementUIPoint) iter.next( ); action = getAction( point.getExtensionName( ) ); if ( action != null ) | if ( point.getExtensionName( ).equalsIgnoreCase( "Chart" ) ) | private void createInsertElementMenu( IMenuManager menuManager, String group_name ) { MenuManager subMenu = new MenuManager( ELEMENT_MENU_ITEM_TEXT ); IAction action = getAction( GeneralInsertMenuAction.INSERT_TEXT_ID ); action.setText( GeneralInsertMenuAction.INSERT_TEXT_DISPLAY_TEXT ); subMenu.add( action ); action = getAction( GeneralInsertMenuAction.INSERT_LABEL_ID ); action.setText( GeneralInsertMenuAction.INSERT_LABEL_DISPLAY_TEXT ); subMenu.add( action ); action = getAction( GeneralInsertMenuAction.INSERT_DATA_ID ); action.setText( GeneralInsertMenuAction.INSERT_DATA_DISPLAY_TEXT ); subMenu.add( action ); action = getAction( GeneralInsertMenuAction.INSERT_IMAGE_ID ); action.setText( GeneralInsertMenuAction.INSERT_IMAGE_DISPLAY_TEXT ); subMenu.add( action ); action = getAction( GeneralInsertMenuAction.INSERT_GRID_ID ); action.setText( GeneralInsertMenuAction.INSERT_GRID_DISPLAY_TEXT ); subMenu.add( action ); action = getAction( GeneralInsertMenuAction.INSERT_LIST_ID ); action.setText( GeneralInsertMenuAction.INSERT_LIST_DISPLAY_TEXT ); subMenu.add( action ); action = getAction( GeneralInsertMenuAction.INSERT_TABLE_ID ); action.setText( GeneralInsertMenuAction.INSERT_TABLE_DISPLAY_TEXT ); subMenu.add( action ); /* * Extended Items insert actions */ List points = ExtensionPointManager.getInstance( ) .getExtendedElementPoints( ); for ( Iterator iter = points.iterator( ); iter.hasNext( ); ) { ExtendedElementUIPoint point = (ExtendedElementUIPoint) iter.next( ); action = getAction( point.getExtensionName( ) ); if ( action != null ) { if(point.getExtensionName( ).equalsIgnoreCase("Chart")) //$NON-NLS-1$ { action.setText( "&" + point.getExtensionName( ) ); //$NON-NLS-1$ } else { action.setText( point.getExtensionName( ) ); } subMenu.add( action ); } } menuManager.appendToGroup( group_name, subMenu ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ea128f9408add45fe88b59d7638b704e09fe9949/SchematicContextMenuProvider.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/providers/SchematicContextMenuProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
4600,
1046,
4599,
12,
467,
4599,
1318,
3824,
1318,
16,
1082,
202,
780,
1041,
67,
529,
262,
202,
95,
202,
202,
4599,
1318,
720,
4599,
273,
394,
9809,
1318,
12,
13424... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
4600,
1046,
4599,
12,
467,
4599,
1318,
3824,
1318,
16,
1082,
202,
780,
1041,
67,
529,
262,
202,
95,
202,
202,
4599,
1318,
720,
4599,
273,
394,
9809,
1318,
12,
13424... |
if (len == 0) return ScriptRuntime.NaNobj; | int start = 0; char c; for (;;) { if (start == len) { return ScriptRuntime.NaNobj; } c = s.charAt(start); if (!TokenStream.isJSSpace(c)) { break; } ++start; } | private Object js_parseFloat(Context cx, Object[] args) { if (args.length < 1) return ScriptRuntime.NaNobj; String s = ScriptRuntime.toString(args[0]); int len = s.length(); if (len == 0) return ScriptRuntime.NaNobj; int i; char c; // Scan forward to the first digit or . for (i=0; TokenStream.isJSSpace(c = s.charAt(i)) && i+1 < len; i++) /* empty */ ; int start = i; if (c == '+' || c == '-') c = s.charAt(++i); if (c == 'I') { // check for "Infinity" double d; if (i+8 <= len && s.substring(i, i+8).equals("Infinity")) d = s.charAt(start) == '-' ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY; else return ScriptRuntime.NaNobj; return new Double(d); } // Find the end of the legal bit int decimal = -1; int exponent = -1; for (; i < len; i++) { switch (s.charAt(i)) { case '.': if (decimal != -1) // Only allow a single decimal point. break; decimal = i; continue; case 'e': case 'E': if (exponent != -1) break; exponent = i; continue; case '+': case '-': // Only allow '+' or '-' after 'e' or 'E' if (exponent != i-1) break; continue; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': continue; default: break; } break; } s = s.substring(start, i); try { return Double.valueOf(s); } catch (NumberFormatException ex) { return ScriptRuntime.NaNobj; } } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/4ad826a35e76cb27011d7ce32f9515c2d80a93c0/NativeGlobal.java/clean/js/rhino/src/org/mozilla/javascript/NativeGlobal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3828,
67,
2670,
4723,
12,
1042,
9494,
16,
1033,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
5411,
327,
7739,
5576,
18,
24101,
2279,
441,
31,
3639,
514,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3828,
67,
2670,
4723,
12,
1042,
9494,
16,
1033,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
5411,
327,
7739,
5576,
18,
24101,
2279,
441,
31,
3639,
514,... |
if (shortCut == null) return result; | if (shortCut == null) { return result; } | private MenuManager createFileMenu() { MenuManager menu = new MenuManager(IDEWorkbenchMessages.Workbench_file, IWorkbenchActionConstants.M_FILE); menu.add(new GroupMarker(IWorkbenchActionConstants.FILE_START)); { // create the New submenu, using the same id for it as the New action String newText = IDEWorkbenchMessages.Workbench_new; String newId = ActionFactory.NEW.getId(); MenuManager newMenu = new MenuManager(newText, newId) { public String getMenuText() { String result = super.getMenuText(); if (newQuickMenu == null) return result; String shortCut = newQuickMenu.getShortCutString(); if (shortCut == null) return result; return result + "\t" + shortCut; //$NON-NLS-1$ } }; newMenu.add(new Separator(newId)); this.newWizardMenu = new NewWizardMenu(getWindow()); newMenu.add(this.newWizardMenu); newMenu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); menu.add(newMenu); } menu.add(new GroupMarker(IWorkbenchActionConstants.NEW_EXT)); menu.add(new Separator()); menu.add(closeAction); menu.add(closeAllAction); // menu.add(closeAllSavedAction); menu.add(new GroupMarker(IWorkbenchActionConstants.CLOSE_EXT)); menu.add(new Separator()); menu.add(saveAction); menu.add(saveAsAction); menu.add(saveAllAction); menu.add(revertAction); menu.add(new Separator()); menu.add(moveAction); menu.add(renameAction); menu.add(refreshAction); menu.add(new GroupMarker(IWorkbenchActionConstants.SAVE_EXT)); menu.add(new Separator()); menu.add(printAction); menu.add(new GroupMarker(IWorkbenchActionConstants.PRINT_EXT)); menu.add(new Separator()); menu.add(openWorkspaceAction); menu.add(new GroupMarker(IWorkbenchActionConstants.OPEN_EXT)); menu.add(new Separator()); menu.add(importResourcesAction); menu.add(exportResourcesAction); menu.add(new GroupMarker(IWorkbenchActionConstants.IMPORT_EXT)); menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); menu.add(new Separator()); menu.add(propertiesAction); menu.add(ContributionItemFactory.REOPEN_EDITORS.create(getWindow())); menu.add(new GroupMarker(IWorkbenchActionConstants.MRU)); menu.add(new Separator()); menu.add(quitAction); menu.add(new GroupMarker(IWorkbenchActionConstants.FILE_END)); return menu; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
9809,
1318,
21266,
4599,
1435,
288,
3639,
9809,
1318,
3824,
273,
394,
9809,
1318,
12,
10385,
2421,
22144,
5058,
18,
2421,
22144,
67,
768,
16,
467,
2421,
22144,
1803,
2918,
18,
49,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
9809,
1318,
21266,
4599,
1435,
288,
3639,
9809,
1318,
3824,
273,
394,
9809,
1318,
12,
10385,
2421,
22144,
5058,
18,
2421,
22144,
67,
768,
16,
467,
2421,
22144,
1803,
2918,
18,
49,
6... |
_t = __t371; | _t = __t376; | public final void definebrowsestate(AST _t) throws RecognitionException { AST definebrowsestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST def = null; AST id = null; AST fi1 = null; AST fi2 = null; AST __t340 = _t; def = _t==ASTNULL ? null :(AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case BROWSE: case PRIVATE: case PUBLIC: case PROTECTED: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: case PUBLIC: case PROTECTED: { def_visib(_t); _t = _retTree; break; } case BROWSE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp957_AST_in = (AST)_t; match(_t,BROWSE); _t = _t.getNextSibling(); id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { push(action.defineBrowse(def, id)); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QUERY: { AST __t344 = _t; AST tmp958_AST_in = (AST)_t; match(_t,QUERY); _t = _t.getFirstChild(); AST tmp959_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); _t = __t344; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case CONTEXTHELPID: case DISPLAY: case EXCLUSIVELOCK: case NOLOCK: case NOWAIT: case SHARELOCK: case TOOLTIP: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { _loop346: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCLUSIVELOCK: case NOLOCK: case SHARELOCK: { lockhow(_t); _t = _retTree; break; } case NOWAIT: { AST tmp960_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } default: { break _loop346; } } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DISPLAY: { AST __t348 = _t; AST tmp961_AST_in = (AST)_t; match(_t,DISPLAY); _t = _t.getFirstChild(); { _loop355: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { AST __t350 = _t; fi1 = _t==ASTNULL ? null :(AST)_t; match(_t,Form_item); _t = _t.getFirstChild(); { boolean synPredMatched353 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==RECORD_NAME))) { AST __t353 = _t; synPredMatched353 = true; inputState.guessing++; try { { tbl(_t,CQ.INIT); _t = _retTree; } } catch (RecognitionException pe) { synPredMatched353 = false; } _t = __t353;inputState.guessing--; } if ( synPredMatched353 ) { tbl(_t,CQ.INIT); _t = _retTree; } else if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { columnformat(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } } else if ((_t.getType()==SPACE)) { spacephrase(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } if ( inputState.guessing==0 ) { action.formItem(fi1); } _t = __t350; _t = _t.getNextSibling(); } else { break _loop355; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t357 = _t; AST tmp962_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop359: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop359; } } while (true); } _t = __t357; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t348; _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ENABLE: { AST __t361 = _t; AST tmp963_AST_in = (AST)_t; match(_t,ENABLE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ALL: { AST __t363 = _t; AST tmp964_AST_in = (AST)_t; match(_t,ALL); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t365 = _t; AST tmp965_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop367: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop367; } } while (true); } _t = __t365; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t363; _t = _t.getNextSibling(); break; } case 3: case Form_item: { { _loop374: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { AST __t369 = _t; fi2 = _t==ASTNULL ? null :(AST)_t; match(_t,Form_item); _t = _t.getFirstChild(); fld(_t,CQ.SYMBOL); _t = _retTree; if ( inputState.guessing==0 ) { action.formItem(fi2); } { _loop373: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case HELP: { AST __t371 = _t; AST tmp966_AST_in = (AST)_t; match(_t,HELP); _t = _t.getFirstChild(); constant(_t); _t = _retTree; _t = __t371; _t = _t.getNextSibling(); break; } case VALIDATE: { AST __t372 = _t; AST tmp967_AST_in = (AST)_t; match(_t,VALIDATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t372; _t = _t.getNextSibling(); break; } case AUTORETURN: { AST tmp968_AST_in = (AST)_t; match(_t,AUTORETURN); _t = _t.getNextSibling(); break; } case DISABLEAUTOZAP: { AST tmp969_AST_in = (AST)_t; match(_t,DISABLEAUTOZAP); _t = _t.getNextSibling(); break; } default: { break _loop373; } } } while (true); } _t = __t369; _t = _t.getNextSibling(); } else { break _loop374; } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } _t = __t361; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case CONTEXTHELPID: case TOOLTIP: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } break; } case EOF: case PERIOD: case CONTEXTHELPID: case TOOLTIP: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { _loop376: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==WITH)) { display_with(_t); _t = _retTree; } else { break _loop376; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } case EOF: case PERIOD: case CONTEXTHELPID: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CONTEXTHELPID: { AST __t379 = _t; AST tmp970_AST_in = (AST)_t; match(_t,CONTEXTHELPID); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t379; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.addToSymbolScope(pop()); } _t = __t340; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4426,
70,
3870,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4426,
70,
3870,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4426,
70,
3870,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4426,
70,
3870,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
... |
switch ( eDerivedStructuralFeatureID( eFeature ) ) | switch ( featureID ) | public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case ComponentPackage.CHART_PREFERENCES__LABELS : getLabels( ).clear( ); return; case ComponentPackage.CHART_PREFERENCES__BLOCKS : getBlocks( ).clear( ); return; } eDynamicUnset( eFeature ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/036e8c78765730b146e5854b9d6c397a296fed86/ChartPreferencesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/ChartPreferencesImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
5435,
226... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
5435,
226... |
_setThreadDependentDebugMenuItems(true); | _model.setActiveDocument(bp.getDocument()); _currentDefPane.getHighlightManager().addHighlight(bp.getStartOffset(), bp.getEndOffset(), DefinitionsPane.BREAKPOINT_PAINTER); | public void run() { //DrJava.consoleOut().println("showing resume, etc"); _setThreadDependentDebugMenuItems(true); //DrJava.consoleOut().println("done with MF.currThreadSuspended..."); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/ddcbad2909e9c9411b7283368e21d7790422a21d/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
1850,
368,
8956,
5852,
18,
8698,
1182,
7675,
8222,
2932,
4500,
310,
10774,
16,
5527,
8863,
540,
389,
2284,
18,
542,
3896,
2519,
12,
17152,
18,
588,
2519,
10663... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
288,
1850,
368,
8956,
5852,
18,
8698,
1182,
7675,
8222,
2932,
4500,
310,
10774,
16,
5527,
8863,
540,
389,
2284,
18,
542,
3896,
2519,
12,
17152,
18,
588,
2519,
10663... |
throw new RuntimeException(sae); | throw new RuntimeException("Unable to load component configuration"); | private ComponentConfiguration loadConfiguration() { ComponentConfiguration config = new ComponentConfiguration(); InputStream configXml = Thread.currentThread().getContextClassLoader().getResourceAsStream("components.xml"); if (configXml == null) { final String message = "Unable to find the file components.xml in the classpath."; log.error(message); throw new RuntimeException(message); } try { config.loadFromXml(configXml); } catch (IOException ioe) { log.error(ioe); throw new RuntimeException(ioe); } catch (SAXException sae) { log.error(sae); throw new RuntimeException(sae); } return config; } | 22725 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22725/1325b57f4faf71200a1800a003f28ef2f7cd9309/ApplicationLifecycleListener.java/clean/src/java/com/opensymphony/webwork/lifecycle/ApplicationLifecycleListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
5435,
1750,
1262,
1750,
1435,
288,
3639,
5435,
1750,
642,
273,
394,
5435,
1750,
5621,
3639,
5037,
642,
4432,
273,
4884,
18,
2972,
3830,
7675,
29120,
7805,
7675,
588,
1420,
17052,
2932... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5435,
1750,
1262,
1750,
1435,
288,
3639,
5435,
1750,
642,
273,
394,
5435,
1750,
5621,
3639,
5037,
642,
4432,
273,
4884,
18,
2972,
3830,
7675,
29120,
7805,
7675,
588,
1420,
17052,
2932... |
buf.append( eachParam.getText() ); if ( paramIter.hasNext() ) | if (paramIter.hasNext()) | public String getText() { StringBuffer buf = new StringBuffer(); String prefix = getPrefix(); if ( prefix != null && ! prefix.equals("") ) { buf.append( prefix ); buf.append( ":" ); } buf.append( getFunctionName() ); buf.append( "(" ); Iterator paramIter = getParameters().iterator(); Expr eachParam = null; while ( paramIter.hasNext() ) { eachParam = (Expr) paramIter.next(); buf.append( eachParam.getText() ); if ( paramIter.hasNext() ) { buf.append( ", " ); } } buf.append( ")" ); return buf.toString(); } | 12974 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12974/e3c53ba7f2b7ddbce78a2f9beb9abd31c56e86d9/DefaultFunctionCallExpr.java/buggy/src/java/main/org/jaxen/expr/DefaultFunctionCallExpr.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
6701,
1435,
565,
288,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
514,
1633,
273,
16182,
5621,
3639,
309,
261,
1633,
480,
446,
2398,
597,
2398,
401,
1633,
18,
14963,
2932,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
6701,
1435,
565,
288,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
514,
1633,
273,
16182,
5621,
3639,
309,
261,
1633,
480,
446,
2398,
597,
2398,
401,
1633,
18,
14963,
2932,
79... |
out.writeObject(channel_name); | out.writeObject(channel_name); | public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(channel_name); } | 51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/462c7e2ed6980678c603a434a8eb5bc2e6749ac2/TunnelHeader.java/buggy/src/org/jgroups/protocols/TunnelHeader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
6841,
12,
921,
1447,
596,
13,
1216,
1860,
288,
202,
659,
18,
2626,
921,
12,
4327,
67,
529,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
6841,
12,
921,
1447,
596,
13,
1216,
1860,
288,
202,
659,
18,
2626,
921,
12,
4327,
67,
529,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
private void initContextMenu() { MenuManager menuMgr = new MenuManager("#PopupMenu"); //$NON-NLS-1$ Menu menu = menuMgr.createContextMenu(viewer.getTree()); createCancelAction(); menuMgr.add(cancelAction); menuMgr.addMenuListener(new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { JobInfo info = getSelectedInfo(); if (info == null) return; } }); menuMgr.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); getSite().registerContextMenu(menuMgr, viewer); viewer.getTree().setMenu(menu); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3f652291cb5ee0b7cdf9df17b164b86372991f82/ProgressView.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
2738,
27315,
1435,
95,
202,
202,
4599,
49,
940,
1035,
2104,
9455,
33,
2704,
4599,
1318,
2932,
7,
13770,
4599,
8863,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
49,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
2738,
27315,
1435,
95,
202,
202,
4599,
49,
940,
1035,
2104,
9455,
33,
2704,
4599,
1318,
2932,
7,
13770,
4599,
8863,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
49,
7... | ||
markFilterSource.mark(); support.readLine(); | int bufferLine = source.getLine(); int bufferColumn = source.getColumn(); String buffer = support.readLine() + '\n'; | private int parseHereDocument(int term, boolean indent) { int c; Node list = null; int linesave = ruby.getSourceLine(); newtok(); switch (term) { case '\'' : case '"' : case '`' : while ((c = nextc()) != term) { tokadd(c); } if (term == '\'') { term = 0; } break; default : c = term; term = '"'; if (!isIdentifierChar(c)) { ph.rb_warn("use of bare << to mean <<\"\" is deprecated"); break; } while (isIdentifierChar(c)) { tokadd(c); c = nextc(); } pushback(c); break; } markFilterSource.mark(); support.readLine(); String eos = tok(); StringBuffer sb = new StringBuffer(); while (true) { // test if the end of file or end of string is reached. String line = support.readLine(); if (line == null) { // error: ruby.setSourceLine(linesave); ph.rb_compile_error("can't find string \"" + eos + "\" anywhere before EOF"); return 0; } else if ((indent && line.trim().startsWith(eos)) || line.startsWith(eos)) { if (line.trim().length() == eos.length()) { source.addCurrentLine(); break; } } source.unread(line.length() + 1); while (true) { switch (parse_string(term, '\n', '\n')) { case Token.tSTRING : case Token.tXSTRING : ((RubyString) yyVal).cat("\n"); if (list == null) { sb.append(yyVal.toString()); } else { ph.list_append(list, nf.newStr((RubyObject) yyVal)); } break; case Token.tDSTRING : if (list == null) { list = nf.newDStr(RubyString.newString(ruby, sb.toString())); } /* fall through */ case Token.tDXSTRING : if (list == null) { list = nf.newDXStr(RubyString.newString(ruby, sb.toString())); } ph.list_append((Node) yyVal, nf.newStr(RubyString.newString(ruby, "\n"))); ((StrNodeConvertable) yyVal).convertToStrNode(); yyVal = nf.newList((Node) yyVal); ((Node) yyVal).setNextNode(((Node) yyVal).getHeadNode().getNextNode()); ph.list_concat(list, (Node) yyVal); break; case 0 : // goto error; ruby.setSourceLine(linesave); ph.rb_compile_error("can't find string \"" + eos + "\" anywhere before EOF"); return 0; } if (source.isEOL()) { source.addCurrentLine(); break; } } } ph.setLexState(LexState.EXPR_END); ph.setHeredocEnd(ruby.getSourceLine()); ruby.setSourceLine(linesave); markFilterSource.reset(); if (list != null) { list.setLine(linesave + 1); yyVal = list; } switch (term) { case '\0' : case '\'' : case '"' : if (list != null) { return Token.tDSTRING; } yyVal = RubyString.newString(ruby, sb.toString()); return Token.tSTRING; case '`' : if (list != null) { return Token.tDXSTRING; } yyVal = RubyString.newString(ruby, sb.toString()); return Token.tXSTRING; } return 0; } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/4e4bb40b2eb2d38881d15ca8ef7cda4c34323793/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1109,
26715,
2519,
12,
474,
2481,
16,
1250,
3504,
13,
288,
3639,
509,
276,
31,
3639,
2029,
666,
273,
446,
31,
3639,
509,
2362,
836,
273,
22155,
18,
588,
1830,
1670,
5621,
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,
509,
1109,
26715,
2519,
12,
474,
2481,
16,
1250,
3504,
13,
288,
3639,
509,
276,
31,
3639,
2029,
666,
273,
446,
31,
3639,
509,
2362,
836,
273,
22155,
18,
588,
1830,
1670,
5621,
363... |
d.syncExec(new Runnable() { | final int id = swtKey; display.syncExec(new Runnable() { | public Image get(String key) { // can be null if (key == null){ return null; } /** * NOTE, for backwards compatibility the following images are supported * here, they should never be disposed, hence we explicitly return them * rather then registering images that SWT will dispose. * * Applications should go direclty to SWT for these icons. * * @see Display.getSystemIcon(int ID) */ int swtKey = -1; if (key.equals(Dialog.DLG_IMG_INFO)) { swtKey = SWT.ICON_INFORMATION; } if (key.equals(Dialog.DLG_IMG_QUESTION)) { swtKey = SWT.ICON_QUESTION; } if (key.equals(Dialog.DLG_IMG_WARNING)) { swtKey = SWT.ICON_WARNING; } if (key.equals(Dialog.DLG_IMG_ERROR)) { swtKey = SWT.ICON_ERROR; } // if we actually just want to return an SWT image do so without // looking in the registry if (swtKey != -1){ final Display d = (display == null) ? Display.getCurrent() : display; final Image[] image = new Image[1]; d.syncExec(new Runnable() { public void run() { image[0] = d.getSystemImage(SWT.ICON_INFORMATION); } }); return image[0]; } Entry entry = getEntry(key); if (entry == null) { return null; } if (entry.image == null && entry.descriptor != null) { entry.image = entry.descriptor.createImage(); } return entry.image; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a4b0a7865ffbdbaf514fc25c42275e897d4565d0/ImageRegistry.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ImageRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3421,
336,
12,
780,
498,
13,
288,
9506,
202,
759,
848,
506,
446,
202,
202,
430,
261,
856,
422,
446,
15329,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
26873,
1082,
380... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3421,
336,
12,
780,
498,
13,
288,
9506,
202,
759,
848,
506,
446,
202,
202,
430,
261,
856,
422,
446,
15329,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
26873,
1082,
380... |
cache.createContributionItems(ciList); | cache.createContributionItems(this, ciList); | private boolean processAdditions(ContributionManager mgr, MenuCacheEntry cache) { int insertionIndex = getInsertionIndex(mgr, cache.getUri()); if (insertionIndex == -1) return false; // can't process (yet) // Get the additions List ciList = new ArrayList(); cache.createContributionItems(ciList); // If we have any then add them at the correct location if (ciList.size() > 0) { for (Iterator ciIter = ciList.iterator(); ciIter.hasNext();) { IContributionItem ici = (IContributionItem) ciIter.next(); mgr.insert(insertionIndex++, ici); } } return true; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f7118bacdde0037a8b2ce9ab7a0a133d473eead0/WorkbenchMenuService.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/WorkbenchMenuService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1207,
986,
5029,
12,
442,
4027,
1318,
13333,
16,
1082,
202,
4599,
27630,
1247,
13,
288,
202,
202,
474,
12626,
1016,
273,
336,
29739,
1016,
12,
13552,
16,
1247,
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,
225,
202,
1152,
1250,
1207,
986,
5029,
12,
442,
4027,
1318,
13333,
16,
1082,
202,
4599,
27630,
1247,
13,
288,
202,
202,
474,
12626,
1016,
273,
336,
29739,
1016,
12,
13552,
16,
1247,
18,
588,
... |
public TA_RetCode HT_DCPHASE( int startIdx, int endIdx, double inReal[], MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int outIdx, i; int lookbackTotal, today; double tempReal, tempReal2; double adjustedPrevPeriod, period; int trailingWMAIdx; double periodWMASum, periodWMASub, trailingWMAValue; double smoothedValue; final double a = 0.0962; final double b = 0.5769; double hilbertTempReal; int hilbertIdx; double []detrender_Odd = new double[3]; ; double []detrender_Even = new double[3]; ; double detrender; double prev_detrender_Odd ; double prev_detrender_Even ; double prev_detrender_input_Odd ; double prev_detrender_input_Even ; double []Q1_Odd = new double[3]; ; double []Q1_Even = new double[3]; ; double Q1; double prev_Q1_Odd ; double prev_Q1_Even ; double prev_Q1_input_Odd ; double prev_Q1_input_Even ; double []jI_Odd = new double[3]; ; double []jI_Even = new double[3]; ; double jI; double prev_jI_Odd ; double prev_jI_Even ; double prev_jI_input_Odd ; double prev_jI_input_Even ; double []jQ_Odd = new double[3]; ; double []jQ_Even = new double[3]; ; double jQ; double prev_jQ_Odd ; double prev_jQ_Even ; double prev_jQ_input_Odd ; double prev_jQ_input_Even ; double Q2, I2, prevQ2, prevI2, Re, Im; double I1ForOddPrev2, I1ForOddPrev3; double I1ForEvenPrev2, I1ForEvenPrev3; double rad2Deg, constDeg2RadBy360; double todayValue, smoothPeriod; int smoothPrice_Idx = 0; double []smoothPrice; int maxIdx_smoothPrice = ( 50 -1) ; int idx; int DCPeriodInt; double DCPhase, DCPeriod, imagPart, realPart; 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; { smoothPrice = new double[maxIdx_smoothPrice +1]; } ; tempReal = Math.atan (1); rad2Deg = 45.0/tempReal; constDeg2RadBy360 = tempReal*8.0; lookbackTotal = 63 + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_HT_DCPHASE.ordinal()]) ; if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } outBegIdx.value = startIdx; trailingWMAIdx = startIdx - lookbackTotal; today = trailingWMAIdx; tempReal = inReal[today++]; periodWMASub = tempReal; periodWMASum = tempReal; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal*2.0; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal*3.0; trailingWMAValue = 0.0; i = 34; do { tempReal = inReal[today++]; { periodWMASub += tempReal; periodWMASub -= trailingWMAValue; periodWMASum += tempReal*4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum*0.1; periodWMASum -= periodWMASub; } ; } while( --i != 0); hilbertIdx = 0; { detrender_Odd [0] = 0.0; detrender_Odd [1] = 0.0; detrender_Odd [2] = 0.0; detrender_Even [0] = 0.0; detrender_Even [1] = 0.0; detrender_Even [2] = 0.0; detrender = 0.0; prev_detrender_Odd = 0.0; prev_detrender_Even = 0.0; prev_detrender_input_Odd = 0.0; prev_detrender_input_Even = 0.0; } ; { Q1_Odd [0] = 0.0; Q1_Odd [1] = 0.0; Q1_Odd [2] = 0.0; Q1_Even [0] = 0.0; Q1_Even [1] = 0.0; Q1_Even [2] = 0.0; Q1 = 0.0; prev_Q1_Odd = 0.0; prev_Q1_Even = 0.0; prev_Q1_input_Odd = 0.0; prev_Q1_input_Even = 0.0; } ; { jI_Odd [0] = 0.0; jI_Odd [1] = 0.0; jI_Odd [2] = 0.0; jI_Even [0] = 0.0; jI_Even [1] = 0.0; jI_Even [2] = 0.0; jI = 0.0; prev_jI_Odd = 0.0; prev_jI_Even = 0.0; prev_jI_input_Odd = 0.0; prev_jI_input_Even = 0.0; } ; { jQ_Odd [0] = 0.0; jQ_Odd [1] = 0.0; jQ_Odd [2] = 0.0; jQ_Even [0] = 0.0; jQ_Even [1] = 0.0; jQ_Even [2] = 0.0; jQ = 0.0; prev_jQ_Odd = 0.0; prev_jQ_Even = 0.0; prev_jQ_input_Odd = 0.0; prev_jQ_input_Even = 0.0; } ; period = 0.0; outIdx = 0; prevI2 = prevQ2 = 0.0; Re = Im = 0.0; I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; smoothPeriod = 0.0; for( i=0; i < 50 ; i++ ) smoothPrice[i] = 0.0; DCPhase = 0.0; while( today <= endIdx ) { adjustedPrevPeriod = (0.075*period)+0.54; todayValue = inReal[today]; { periodWMASub += todayValue; periodWMASub -= trailingWMAValue; periodWMASum += todayValue*4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum*0.1; periodWMASum -= periodWMASub; } ; smoothPrice[smoothPrice_Idx] = smoothedValue; if( (today%2) == 0 ) { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Even [hilbertIdx]; detrender_Even [hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Even ; prev_detrender_Even = b * prev_detrender_input_Even ; detrender += prev_detrender_Even ; prev_detrender_input_Even = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Even [hilbertIdx]; Q1_Even [hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Even ; prev_Q1_Even = b * prev_Q1_input_Even ; Q1 += prev_Q1_Even ; prev_Q1_input_Even = detrender; Q1 *= adjustedPrevPeriod; } ; { hilbertTempReal = a * I1ForEvenPrev3; jI = -jI_Even [hilbertIdx]; jI_Even [hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Even ; prev_jI_Even = b * prev_jI_input_Even ; jI += prev_jI_Even ; prev_jI_input_Even = I1ForEvenPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Even [hilbertIdx]; jQ_Even [hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Even ; prev_jQ_Even = b * prev_jQ_input_Even ; jQ += prev_jQ_Even ; prev_jQ_input_Even = Q1; jQ *= adjustedPrevPeriod; } ; if( ++hilbertIdx == 3 ) hilbertIdx = 0; Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); I1ForOddPrev3 = I1ForOddPrev2; I1ForOddPrev2 = detrender; } else { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Odd [hilbertIdx]; detrender_Odd [hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Odd ; prev_detrender_Odd = b * prev_detrender_input_Odd ; detrender += prev_detrender_Odd ; prev_detrender_input_Odd = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Odd [hilbertIdx]; Q1_Odd [hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Odd ; prev_Q1_Odd = b * prev_Q1_input_Odd ; Q1 += prev_Q1_Odd ; prev_Q1_input_Odd = detrender; Q1 *= adjustedPrevPeriod; } ; { hilbertTempReal = a * I1ForOddPrev3; jI = -jI_Odd [hilbertIdx]; jI_Odd [hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Odd ; prev_jI_Odd = b * prev_jI_input_Odd ; jI += prev_jI_Odd ; prev_jI_input_Odd = I1ForOddPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Odd [hilbertIdx]; jQ_Odd [hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Odd ; prev_jQ_Odd = b * prev_jQ_input_Odd ; jQ += prev_jQ_Odd ; prev_jQ_input_Odd = Q1; jQ *= adjustedPrevPeriod; } ; Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); I1ForEvenPrev3 = I1ForEvenPrev2; I1ForEvenPrev2 = detrender; } Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); prevQ2 = Q2; prevI2 = I2; tempReal = period; if( (Im != 0.0) && (Re != 0.0) ) period = 360.0 / ( Math.atan (Im/Re)*rad2Deg); tempReal2 = 1.5*tempReal; if( period > tempReal2) period = tempReal2; tempReal2 = 0.67*tempReal; if( period < tempReal2 ) period = tempReal2; if( period < 6 ) period = 6; else if( period > 50 ) period = 50; period = (0.2*period) + (0.8 * tempReal); smoothPeriod = (0.33*period)+(0.67*smoothPeriod); DCPeriod = smoothPeriod+0.5; DCPeriodInt = (int)DCPeriod; realPart = 0.0; imagPart = 0.0; idx = smoothPrice_Idx; for( i=0; i < DCPeriodInt; i++ ) { tempReal = ((double)i*constDeg2RadBy360)/(double)DCPeriodInt; tempReal2 = smoothPrice[idx]; realPart += Math.sin (tempReal)*tempReal2; imagPart += Math.cos (tempReal)*tempReal2; if( idx == 0 ) idx = 50 -1; else idx--; } tempReal = Math.abs (imagPart); if( tempReal > 0.0 ) DCPhase = Math.atan (realPart/imagPart)*rad2Deg; else if( tempReal <= 0.01 ) { if( realPart < 0.0 ) DCPhase -= 90.0; else if( realPart > 0.0 ) DCPhase += 90.0; } DCPhase += 90.0; DCPhase += 360.0 / smoothPeriod; if( imagPart < 0.0 ) DCPhase += 180.0; if( DCPhase > 315.0 ) DCPhase -= 360.0; if( today >= startIdx ) { outReal[outIdx++] = DCPhase; } { smoothPrice_Idx ++; if( smoothPrice_Idx > maxIdx_smoothPrice ) smoothPrice_Idx = 0; } ; today++; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;} | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
5062,
67,
40,
4258,
44,
4429,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
6955,
63,
6487,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
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,
1071,
9833,
67,
7055,
1085,
5062,
67,
40,
4258,
44,
4429,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
6955,
63,
6487,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
... | ||
setScope((String) evalAttr("scope", getScope(), String.class)); | setScope((String) evalAttr("scope", getScopeExpr(), String.class)); | private void evaluateExpressions() throws JspException { try { setCookie((String) evalAttr("cookie", getCookie(), String.class)); } catch (NullAttributeException ex) { setCookie(null); } try { setExpr((String) evalAttr("expr", getExpr(), String.class)); } catch (NullAttributeException ex) { setExpr(null); } try { setHeader((String) evalAttr("header", getHeader(), String.class)); } catch (NullAttributeException ex) { setHeader(null); } try { setLocation((String) evalAttr("location", getLocation(), String.class)); } catch (NullAttributeException ex) { setLocation(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setParameter((String) evalAttr("parameter", getParameter(), String.class)); } catch (NullAttributeException ex) { setParameter(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setScope((String) evalAttr("scope", getScope(), String.class)); } catch (NullAttributeException ex) { setScope(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELNotMatchTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELNotMatchTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
26793,
12443,
780,
13,
5302,
3843,
2932,
8417,
3113,
24643,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
26793,
12443,
780,
13,
5302,
3843,
2932,
8417,
3113,
24643,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499... |
java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat( "yyyy-MM-dd HH:mm:ss" ); | SimpleDateFormat formatter = new java.text.SimpleDateFormat( "yyyy-MM-dd HH:mm:ss" ); | private boolean compareDates( String date1, String date2 ) { // Lets fix the date // java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat() ; java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat( "yyyy-MM-dd HH:mm:ss" ); GregorianCalendar firstDate = new GregorianCalendar(); GregorianCalendar secDate = new GregorianCalendar(); try { // Create a calendar, by parse to a date and then create calendar firstDate.setTime( formatter.parse( date1 ) ); secDate.setTime( formatter.parse( date2 ) ); // Get the seconds from the datestring, firstDate.set( Calendar.SECOND, this.getDateItem( date1, ":", 3 ) ); secDate.set( Calendar.SECOND, this.getDateItem( date2, ":", 3 ) ); //secDate = formatter.parse(date2) ; //log("firstDate: " + firstDate.toString() ) ; //log("secDate: " + firstDate.toString() ) ; } catch ( java.text.ParseException e ) { log( e.getMessage() ); log( "Invalid date1: " + date1 ); log( "Invalid date2: " + date2 ); return true; } // if ( firstDate.before( secDate ) ) { //log( date1 + " innan " + date2) ; return true; } return false; // return firstDate.before(secDate) ; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/384aa6673a2d85962105b70af94204908f253f18/ConfDisc.java/clean/server/src/com/imcode/imcms/servlet/conference/ConfDisc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
3400,
15578,
12,
514,
1509,
21,
16,
514,
1509,
22,
262,
288,
3639,
368,
511,
2413,
2917,
326,
1509,
3639,
368,
2252,
18,
955,
18,
5784,
11878,
4453,
273,
394,
2252,
18,
955,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
3400,
15578,
12,
514,
1509,
21,
16,
514,
1509,
22,
262,
288,
3639,
368,
511,
2413,
2917,
326,
1509,
3639,
368,
2252,
18,
955,
18,
5784,
11878,
4453,
273,
394,
2252,
18,
955,... |
out.println("looseMarshalByteArray(wireFormat, " + getter + ", dataOut);"); | out.println(" looseMarshalByteArray(wireFormat, " + getter + ", dataOut);"); | protected void generateLooseMarshalBody(PrintWriter out) { List properties = getProperties(); for (Iterator iter = properties.iterator(); iter.hasNext();) { JProperty property = (JProperty) iter.next(); JAnnotation annotation = property.getAnnotation("openwire:property"); JAnnotationValue size = annotation.getValue("size"); JClass propertyType = property.getType(); String type = propertyType.getSimpleName(); String getter = "info." + property.getGetter().getSimpleName() + "()"; out.print(indent); if (type.equals("boolean")) { out.println("dataOut.writeBoolean("+ getter + ");"); } else if (type.equals("byte")) { out.println("dataOut.writeByte(" + getter + ");"); } else if (type.equals("char")) { out.println("dataOut.writeChar(" + getter + ");"); } else if (type.equals("short")) { out.println("dataOut.writeShort(" + getter + ");"); } else if (type.equals("int")) { out.println("dataOut.writeInt(" + getter + ");"); } else if (type.equals("long")) { out.println("looseMarshalLong(wireFormat, " + getter + ", dataOut);"); } else if (type.equals("String")) { out.println("looseMarshalString(" + getter + ", dataOut);"); } else if (type.equals("byte[]")) { if (size != null) { out.println("looseMarshalConstByteArray(wireFormat, " + getter + ", dataOut, " + size.asInt() + ");"); } else { out.println("looseMarshalByteArray(wireFormat, " + getter + ", dataOut);"); } } else if (type.equals("ByteSequence")) { out.println("looseMarshalByteSequence(wireFormat, " + getter + ", dataOut);"); } else if (propertyType.isArrayType()) { if (size != null) { out.println("looseMarshalObjectArrayConstSize(wireFormat, " + getter + ", dataOut, " + size.asInt() + ");"); } else { out.println("looseMarshalObjectArray(wireFormat, " + getter + ", dataOut);"); } } else if (isThrowable(propertyType)) { out.println("looseMarshalThrowable(wireFormat, " + getter + ", dataOut);"); } else { if (isCachedProperty(property)) { out.println("looseMarshalCachedObject(wireFormat, (DataStructure)" + getter + ", dataOut);"); } else { out.println("looseMarshalNestedObject(wireFormat, (DataStructure)" + getter + ", dataOut);"); } } } } | 11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/cd0fb615deb6accf8dfdc07fbe58b53cf6b972a2/OpenWireJavaMarshallingScript.java/buggy/activemq-core/src/gram/java/org/apache/activemq/openwire/tool/OpenWireJavaMarshallingScript.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2103,
1504,
2584,
8105,
2250,
12,
5108,
2289,
596,
13,
288,
3639,
987,
1790,
273,
9392,
5621,
3639,
364,
261,
3198,
1400,
273,
1790,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2103,
1504,
2584,
8105,
2250,
12,
5108,
2289,
596,
13,
288,
3639,
987,
1790,
273,
9392,
5621,
3639,
364,
261,
3198,
1400,
273,
1790,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,... |
errors.add(property, error); | errors.add(property, message); | protected void storeException(HttpServletRequest request, String property, ActionError error, ActionForward forward, String scope) { ActionErrors errors = null; if ("request".equals(scope)) { errors = (ActionErrors) request.getAttribute(Globals.ERROR_KEY); } else { request.getSession().getAttribute(Globals.ERROR_KEY); } if (errors == null) { errors = new ActionErrors(); } errors.add(property, error); if ("request".equals(scope)) { request.setAttribute(Globals.ERROR_KEY, errors); } else { request.getSession().setAttribute(Globals.ERROR_KEY, errors); } } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/51d6c55876b2dab867b26e35de85c0ba981a5ca6/InterMineExceptionHandler.java/clean/intermine/src/java/org/intermine/web/InterMineExceptionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1707,
503,
12,
2940,
18572,
590,
16,
13491,
514,
1272,
16,
13491,
4382,
668,
555,
16,
13491,
4382,
8514,
5104,
16,
13491,
514,
2146,
13,
288,
3639,
4382,
4229,
1334,
273,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1707,
503,
12,
2940,
18572,
590,
16,
13491,
514,
1272,
16,
13491,
4382,
668,
555,
16,
13491,
4382,
8514,
5104,
16,
13491,
514,
2146,
13,
288,
3639,
4382,
4229,
1334,
273,
446,
... |
return urls.contains(url); | return url.startsWith((String)spec.getPrefixList().get(0)); | public boolean containsUrl(String url) { return urls.contains(url); } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/28720b461a544af18af58dee4e33782a7cce6517/MockCachedUrlSet.java/clean/test/src/org/lockss/test/MockCachedUrlSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1914,
1489,
12,
780,
880,
13,
288,
565,
327,
880,
18,
17514,
1190,
12443,
780,
13,
2793,
18,
588,
2244,
682,
7675,
588,
12,
20,
10019,
225,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1914,
1489,
12,
780,
880,
13,
288,
565,
327,
880,
18,
17514,
1190,
12443,
780,
13,
2793,
18,
588,
2244,
682,
7675,
588,
12,
20,
10019,
225,
289,
2,
-100,
-100,
-100,
-100,
... |
model1.insertQuote(); model1.insertQuote(); | model1.insertChar('\"'); model1.insertChar('\"'); | public void testQuotesSimple() { model1.insertQuote(); model1.insertQuote(); model1.move(-2); assertEquals("#0.0", "\"", model1.currentToken().getType()); assertEquals("#0.3", ReducedToken.FREE, model1.currentToken().getState()); model1.move(1); assertEquals("#0.1", "\"", model1.currentToken().getType()); assertEquals("#0.2", ReducedToken.FREE, model1.currentToken().getState()); assertEquals("#0.4", ReducedToken.INSIDE_QUOTE, model1.getStateAtCurrent()); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/6f064a351cf6f32ca81eb7bd4e1d9f192f6a46c6/ReducedModelTest.java/buggy/drjava/src/edu/rice/cs/drjava/model/definitions/reducedmodel/ReducedModelTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
14292,
5784,
1435,
202,
202,
95,
1082,
202,
2284,
21,
18,
6387,
10257,
5621,
1082,
202,
2284,
21,
18,
6387,
10257,
5621,
1082,
202,
2284,
21,
18,
8501,
19236,
22,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
14292,
5784,
1435,
202,
202,
95,
1082,
202,
2284,
21,
18,
6387,
10257,
5621,
1082,
202,
2284,
21,
18,
6387,
10257,
5621,
1082,
202,
2284,
21,
18,
8501,
19236,
22,
1... |
BugzillaReportSubmitForm form = BugzillaReportSubmitForm.makeNewBugPost(repository, model); | Proxy proxySettings = MylarTaskListPlugin.getDefault().getProxySettings(); BugzillaReportSubmitForm form = BugzillaReportSubmitForm.makeNewBugPost(repository, proxySettings, model); | protected void execute(final IProgressMonitor monitor) throws CoreException { PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() { public void run() { BugzillaReportSubmitForm form = BugzillaReportSubmitForm.makeNewBugPost(repository, model); try { id = form.submitReportToRepository(); if (id != null) { sentSuccessfully = true; } } catch (BugzillaException e) { MessageDialog.openError(null, "I/O Error", "Bugzilla could not post your bug."); BugzillaPlugin.log(e); } catch (PossibleBugzillaFailureException e) { WebBrowserDialog.openAcceptAgreement(null, "Possible Bugzilla Client Failure", "Bugzilla may not have posted your bug.\n" + e.getMessage(), form.getError()); BugzillaPlugin.log(e); } catch (LoginException e) { MessageDialog.openError(null, "Posting Error", "Bugzilla could not post your bug since your login name or password is incorrect." + "\nPlease check your settings in the bugzilla preferences. "); sentSuccessfully = false; } } }); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/558d58605a0fbb2adb69fc938209c46cfe02bf81/AbstractBugWizard.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/AbstractBugWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
918,
1836,
12,
6385,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
8389,
1905,
12,
2704,
10254,
1435,
288,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
918,
1836,
12,
6385,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
8389,
1905,
12,
2704,
10254,
1435,
288,
6... |
Properties params = this.getParameters(req) ; if (super.checkParameters(req, res, params) == false) { /* String header = "ConfLogin servlet. " ; String msg = params.toString() ; ChatError err = new ChatError(req,res,header,1) ; */ return ; } | Properties params = this.getParameters(req) ; if (super.checkParameters(req, res, params) == false) { return ; } | public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { // Lets validate the session, e.g has the user logged in to Janus? if (super.checkSession(req,res) == false) return ; // Lets get all parameters for this servlet Properties params = this.getParameters(req) ; if (super.checkParameters(req, res, params) == false) { /* String header = "ConfLogin servlet. " ; String msg = params.toString() ; ChatError err = new ChatError(req,res,header,1) ; */ return ; } //log("tyest"); // Lets get the user object imcode.server.User user = super.getUserObj(req,res) ; if(user == null) return ; if ( isUserAuthorized( req, res, user ) ) { // Lets get serverinformation String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("userserver",host) ; // Lets detect which helparea the user wants //String helpArea = params.getProperty("HELP_AREA") ; // Lets get a VariableManager VariableManager vm = new VariableManager() ; String file = ""; // Lets create the path to our html page if ( params.getProperty("HELP_MODE").equalsIgnoreCase("USER") ) { file = USER_TEMPLATE ; } else if ( params.getProperty("HELP_MODE").equalsIgnoreCase("ADMIN") ) { //lets se if user has adminrights String metaId = getMetaId( req ); if ( metaId != null && userHasAdminRights( imcServer, Integer.parseInt( metaId ), user ) ) { file = ADMIN_TEMPLATE ; if( params.getProperty("HELP_AREA").equalsIgnoreCase("TEMPLATESPEC") ) { file = ADMIN_TEMPLATE2; } } else { String header = "ConfHelp servlet. " ; String msg = params.toString() ; ChatError err = new ChatError( req, res, header, 6 ); return ; } } //if( params.getProperty("HELP_SPEC").equalsIgnoreCase("SPEC") ) file = ADMIN_TEMPLATE2 ;// this.sendHtml(req,res,vm, file) ; this.sendHtml(req,res,new Vector(), file, null) ; return ; } else { return; } } //DoPost | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/ChatHelp.java/clean/servlets/chat/ChatHelp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
202,
95,
202,
202,
759,
511,
2413,
1954,
326,
1339,
16,
425,
18,
75,
711,
326,
729,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
202,
95,
202,
202,
759,
511,
2413,
1954,
326,
1339,
16,
425,
18,
75,
711,
326,
729,
7... |
weapon.flags |= F_DIRECT_FIRE | F_NO_FIRES; | weapon.flags |= F_DIRECT_FIRE | F_NO_FIRES | F_BALLISTIC; | public static WeaponType createISHeavyGaussRifle() { WeaponType weapon = new WeaponType(); weapon.name = "Heavy Gauss Rifle"; weapon.setInternalName("ISHeavyGaussRifle"); weapon.addLookupName("IS Heavy Gauss Rifle"); weapon.heat = 2; weapon.damage = DAMAGE_VARIABLE; weapon.ammoType = AmmoType.T_GAUSS_HEAVY; weapon.minimumRange = 4; weapon.shortRange = 6; weapon.mediumRange = 13; weapon.longRange = 20; weapon.extremeRange = 26; weapon.tonnage = 18.0f; weapon.criticals = 11; weapon.flags |= F_DIRECT_FIRE | F_NO_FIRES; weapon.explosive = true; weapon.bv = 346; return weapon; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/df0eddd0ba47368cf64b7512cbd59cc9224d546a/WeaponType.java/clean/megamek/src/megamek/common/WeaponType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
20424,
73,
23935,
43,
10325,
54,
430,
298,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
529,
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,
377,
1071,
760,
1660,
28629,
559,
752,
20424,
73,
23935,
43,
10325,
54,
430,
298,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
529,
27... |
if(m_dataSet.m_userName == null || "".equals(m_dataSet.m_userName.trim())) { | if ((m_dataSet.m_userName == null || "".equals(m_dataSet.m_userName.trim())) && !CmsUUID.getNullUUID().equals(m_dataSet.m_userId)) { | public String getOwnerName() { String retValue = m_dataSet.m_userId + ""; if(m_dataSet.m_userName == null || "".equals(m_dataSet.m_userName.trim())) { try { // to read the real name of this user retValue = m_cms.readUser(m_dataSet.m_userId).getName(); } catch(CmsException exc) { // ignore the exception - it was not possible to read the group // instead return the groupid } } else { // this is a history value - return it retValue = m_dataSet.m_userName; } return retValue; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/4fb506476e4d372c8e57ccb60b7d51e7032a0944/CmsMasterContent.java/buggy/src/com/opencms/defaults/master/CmsMasterContent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
13782,
461,
1435,
288,
3639,
514,
21236,
273,
312,
67,
892,
694,
18,
81,
67,
18991,
397,
1408,
31,
3639,
309,
14015,
81,
67,
892,
694,
18,
81,
67,
1355,
461,
422,
446,
747,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
13782,
461,
1435,
288,
3639,
514,
21236,
273,
312,
67,
892,
694,
18,
81,
67,
18991,
397,
1408,
31,
3639,
309,
14015,
81,
67,
892,
694,
18,
81,
67,
1355,
461,
422,
446,
747,... |
private static void resetChannelBindings(RenderingDef def, Pixels pixels, IPixels iPixels) { // The actual channel bindings we are returning List<ChannelBinding> channelBindings = def.getWaveRendering(); List<Channel> channels = pixels.getChannels(); int i = 0; for (Channel channel : channels) { StatsInfo stats = channel.getStatsInfo(); Family family = QuantumFactory.getFamily(iPixels, QuantumFactory.LINEAR); ChannelBinding channelBinding = channelBindings.get(i); channelBinding.setFamily(family); channelBinding.setCoefficient(new Double(1)); // FIXME: Lost of precision, downcast from Double to Float channelBinding.setInputStart(new Float(stats.getGlobalMin())); channelBinding.setInputEnd(new Float(stats.getGlobalMax())); // If we have more than one channel set each of the first three // active, otherwise only activate the first. if (i < 3) channelBinding.setActive(true); channelBinding.setColor(ColorsFactory.getColor(i, channel)); channelBinding.setNoiseReduction(false); i++; } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6015,
270,
395,
2126,
6459,
6208,
2909,
10497,
12,
14261,
3262,
536,
16,
9037,
1752,
3556,
87,
16,
2579,
3556,
7722,
18079,
15329,
759,
1986,
18672,
4327,
15863,
1814,
14500,
851,
310,
682,
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,
6015,
270,
395,
2126,
6459,
6208,
2909,
10497,
12,
14261,
3262,
536,
16,
9037,
1752,
3556,
87,
16,
2579,
3556,
7722,
18079,
15329,
759,
1986,
18672,
4327,
15863,
1814,
14500,
851,
310,
682,
32,
... | ||
if (name instanceof Pair && (p = (Pair) name).car == "quote") | if (name instanceof Pair && tr.matches((p = (Pair) name).car, Scheme.quote_sym)) | public boolean scanForDefinitions (Pair st, Vector forms, ScopeExp defs, Translator tr) { Object name = ((Pair) st.cdr).car; // Type type = Scheme.expType(tr.rewrite(name)); Type type = null; Pair p; if (name instanceof Pair && (p = (Pair) name).car == "quote") { name = p.cdr; if (! (name instanceof Pair) || (p = (Pair) name).cdr != LList.Empty || ! (p.car instanceof String)) { tr.error('e', "invalid quoted symbol for 'require'"); return false; } name = mapFeature((String) p.car); if (name == null) { tr.error('e', "unknown feature name '"+p.car+"' for 'require'"); return false; } type = ClassType.make((String) name); } else { if (name instanceof String) { String str = (String) name; int len = str.length(); if (len > 2 && str.charAt(0) == '<' && str.charAt(len-1) == '>') { str = str.substring(1, len-1); if (str.indexOf('.') < 0 && kawa.repl.compilationPrefix != null) str = kawa.repl.compilationPrefix + str; type = Scheme.string2Type(str); } } } if (type == null) { tr.error('e', "invalid specifier for 'require'"); return false; } return importDefinitions(type, null, forms, defs, tr); } | 41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/f525ea41b4380e2b2e69fbe8acaaeac1d8735f65/require.java/buggy/kawa/standard/require.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
4135,
1290,
7130,
261,
4154,
384,
16,
5589,
10138,
16,
19694,
5468,
2966,
17588,
16,
18669,
433,
13,
225,
288,
565,
1033,
508,
273,
14015,
4154,
13,
384,
18,
71,
3069,
2934,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
4135,
1290,
7130,
261,
4154,
384,
16,
5589,
10138,
16,
19694,
5468,
2966,
17588,
16,
18669,
433,
13,
225,
288,
565,
1033,
508,
273,
14015,
4154,
13,
384,
18,
71,
3069,
2934,
... |
public boolean isSet(org.quickfix.field.UnderlyingSecurityAltID field) | public boolean isSet(quickfix.field.UnderlyingSecurityAltID field) | public boolean isSet(org.quickfix.field.UnderlyingSecurityAltID field) { return isSetField(field); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataIncrementalRefresh.java/clean/src/java/src/quickfix/fix44/MarketDataIncrementalRefresh.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
10655,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
10655,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
buffer.append('?'); | buffer.append('?'); | private void appendPageMapName(final StringBuffer buffer) { final PageMap pageMap = getPageMap(); if (!pageMap.isDefault()) { buffer.append("?pagemap="); buffer.append(pageMap.getName()); buffer.append('&'); } else { buffer.append('?'); } } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/3d4afb199e69615b17f4c3740a25e35722597751/WebPage.java/clean/wicket/src/java/wicket/markup/html/WebPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
714,
1964,
863,
461,
12,
6385,
6674,
1613,
13,
202,
95,
202,
202,
6385,
3460,
863,
1363,
863,
273,
8957,
863,
5621,
202,
202,
430,
16051,
2433,
863,
18,
291,
1868,
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,
225,
202,
1152,
918,
714,
1964,
863,
461,
12,
6385,
6674,
1613,
13,
202,
95,
202,
202,
6385,
3460,
863,
1363,
863,
273,
8957,
863,
5621,
202,
202,
430,
16051,
2433,
863,
18,
291,
1868,
10756... |
switch (area.scalingMethod()) { | switch (area.scalingMethod()) { | public void renderForeignObjectArea(ForeignObjectArea area) { // if necessary need to scale and align the content this.currentXPosition = this.currentXPosition + area.getXOffset(); this.currentYPosition = this.currentYPosition; switch (area.getAlign()) { case TextAlign.START: break; case TextAlign.END: break; case TextAlign.CENTER: case TextAlign.JUSTIFY: break; } switch (area.getVerticalAlign()) { case VerticalAlign.BASELINE: break; case VerticalAlign.MIDDLE: break; case VerticalAlign.SUB: break; case VerticalAlign.SUPER: break; case VerticalAlign.TEXT_TOP: break; case VerticalAlign.TEXT_BOTTOM: break; case VerticalAlign.TOP: break; case VerticalAlign.BOTTOM: break; } // in general the content will not be text // align and scale switch (area.scalingMethod()) { case Scaling.UNIFORM: break; case Scaling.NON_UNIFORM: break; } // if the overflow is auto (default), scroll or visible // then the contents should not be clipped, since this // is considered a printing medium. switch (area.getOverflow()) { case Overflow.VISIBLE: case Overflow.SCROLL: case Overflow.AUTO: break; case Overflow.HIDDEN: break; } area.getObject().render(this); this.currentXPosition += area.getEffectiveWidth(); // this.currentYPosition -= area.getEffectiveHeight(); } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/cd264ba6a67a155375a4ba85cdb6dc35503ef593/PCLRenderer.java/buggy/src/org/apache/fop/render/pcl/PCLRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1743,
7816,
921,
5484,
12,
7816,
921,
5484,
5091,
13,
565,
288,
3639,
368,
309,
4573,
1608,
358,
3159,
471,
5689,
326,
913,
3639,
333,
18,
2972,
60,
2555,
273,
333,
18,
2972,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
7816,
921,
5484,
12,
7816,
921,
5484,
5091,
13,
565,
288,
3639,
368,
309,
4573,
1608,
358,
3159,
471,
5689,
326,
913,
3639,
333,
18,
2972,
60,
2555,
273,
333,
18,
2972,... |
result = getNextFile(endpointUri.getAddress()); | result = getNextFile(endpointUri.getAddress(), filenameFilter); | public UMOMessage receive(UMOEndpointURI endpointUri, long timeout) throws Exception { File file = new File(endpointUri.getAddress()); File result = null; if (file.exists()) { if (file.isFile()) { result = file; } else if (file.isDirectory()) { result = getNextFile(endpointUri.getAddress()); } if (result != null) { MuleMessage message = new MuleMessage(connector.getMessageAdapter(result)); if (connector.getMoveToDirectory() != null) { { File destinationFile = new File(connector.getMoveToDirectory(), result.getName()); if (!result.renameTo(destinationFile)) { logger.error("Failed to move file: " + result.getAbsolutePath() + " to " + destinationFile.getAbsolutePath()); } } } result.delete(); return message; } } return null; } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/96614fbd9f8f5688387f0109b3f66283aae399c9/FileMessageDispatcher.java/buggy/providers/file/src/java/org/mule/providers/file/FileMessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
587,
5980,
1079,
6798,
12,
2799,
51,
3293,
3098,
2494,
3006,
16,
1525,
2021,
13,
1216,
1185,
565,
288,
3639,
1387,
585,
273,
394,
1387,
12,
8003,
3006,
18,
588,
1887,
10663,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
587,
5980,
1079,
6798,
12,
2799,
51,
3293,
3098,
2494,
3006,
16,
1525,
2021,
13,
1216,
1185,
565,
288,
3639,
1387,
585,
273,
394,
1387,
12,
8003,
3006,
18,
588,
1887,
10663,
3639,
... |
"src", "href", "action", "background", "width", "height", "type", "bgcolor", "color", "vlink", "link", "alink", "text" | "src", "href", "action", "background", "width", "height", "type", "bgcolor", "color", "vlink", "link", "alink", "text", "name" | private ReferenceProvidersRegistry() { // Temp scopes declarations myTempScopes.add(PsiIdentifier.class); // Manipulators mapping registerManipulator(XmlAttributeValue.class, new XmlAttributeValueManipulator()); registerManipulator(PsiPlainTextFile.class, new PlainFileManipulator()); registerManipulator(XmlToken.class, new XmlTokenManipulator()); registerManipulator(PsiLiteralExpression.class, new StringLiteralManipulator()); registerManipulator(XmlTag.class, new XmlTagValueManipulator()); // Binding declarations myReferenceTypeToProviderMap.put(CLASS_REFERENCE_PROVIDER, new JavaClassReferenceProvider()); myReferenceTypeToProviderMap.put(PATH_REFERENCES_PROVIDER, new JspxIncludePathReferenceProvider()); myReferenceTypeToProviderMap.put(DYNAMIC_PATH_REFERENCES_PROVIDER, new JspxDynamicPathReferenceProvider()); myReferenceTypeToProviderMap.put(PROPERTIES_FILE_KEY_PROVIDER, new PropertiesReferenceProvider()); registerXmlAttributeValueReferenceProvider( new String[]{"class", "type"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new TextFilter("useBean"), new NamespaceFilter(XmlUtil.JSP_URI) ), 2 ) ), getProviderByType(CLASS_REFERENCE_PROVIDER) ); RegisterInPsi.referenceProviders(this); registerXmlAttributeValueReferenceProvider( new String[]{"extends"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new OrFilter( new AndFilter( new ClassFilter(XmlTag.class), new TextFilter("directive.page") ), new AndFilter( new ClassFilter(JspDirective.class), new TextFilter("page") ) ), new NamespaceFilter(XmlUtil.JSP_URI) ), 2 ) ), getProviderByType(CLASS_REFERENCE_PROVIDER) ); registerXmlAttributeValueReferenceProvider( new String[]{"type"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new OrFilter( new AndFilter( new ClassFilter(XmlTag.class), new TextFilter("directive.attribute") ), new AndFilter( new ClassFilter(JspDirective.class), new TextFilter("attribute") ) ), new NamespaceFilter(XmlUtil.JSP_URI) ), 2 ) ), getProviderByType(CLASS_REFERENCE_PROVIDER) ); registerXmlAttributeValueReferenceProvider( new String[]{"variable-class"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new OrFilter( new AndFilter( new ClassFilter(XmlTag.class), new TextFilter("directive.variable") ), new AndFilter( new ClassFilter(JspDirective.class), new TextFilter("variable") ) ), new NamespaceFilter(XmlUtil.JSP_URI) ), 2 ) ), getProviderByType(CLASS_REFERENCE_PROVIDER) ); registerXmlAttributeValueReferenceProvider( new String[] { "import" }, new ScopeFilter( new ParentElementFilter( new AndFilter( new OrFilter( new AndFilter( new ClassFilter(XmlTag.class), new TextFilter("directive.page") ), new AndFilter( new ClassFilter(JspDirective.class), new TextFilter("page") ) ), new NamespaceFilter(XmlUtil.JSP_URI) ), 2 ) ), new JspImportListReferenceProvider() ); registerXmlAttributeValueReferenceProvider( new String[]{"errorPage"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new NamespaceFilter(XmlUtil.JSP_URI), new OrFilter( new AndFilter( new ClassFilter(JspDirective.class), new TextFilter("page") ), new AndFilter( new ClassFilter(XmlTag.class), new TextFilter("directive.page") )) ), 2 ) ), getProviderByType(PATH_REFERENCES_PROVIDER) ); registerXmlAttributeValueReferenceProvider( new String[]{"file"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new NamespaceFilter(XmlUtil.JSP_URI), new OrFilter( new AndFilter( new ClassFilter(JspDirective.class), new TextFilter("include") ), new AndFilter( new ClassFilter(XmlTag.class), new TextFilter("directive.include") )) ), 2 ) ), getProviderByType(PATH_REFERENCES_PROVIDER) ); registerXmlAttributeValueReferenceProvider( new String[]{"value"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new NamespaceFilter(XmlUtil.JSTL_CORE_URIS), new AndFilter( new ClassFilter(XmlTag.class), new TextFilter("url") ) ), 2 ) ), getProviderByType(DYNAMIC_PATH_REFERENCES_PROVIDER) ); registerXmlAttributeValueReferenceProvider( new String[]{"url"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new NamespaceFilter(XmlUtil.JSTL_CORE_URIS), new AndFilter( new ClassFilter(XmlTag.class), new OrFilter( new TextFilter("import"), new TextFilter("redirect") ) ) ), 2 ) ), getProviderByType(DYNAMIC_PATH_REFERENCES_PROVIDER) ); registerXmlAttributeValueReferenceProvider( new String[]{"key"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new OrFilter( new NamespaceFilter(XmlUtil.JSTL_FORMAT_URIS), new NamespaceFilter(XmlUtil.STRUTS_BEAN_URI) ), new AndFilter( new ClassFilter(XmlTag.class), new TextFilter("message") ) ), 2 ) ), getProviderByType(PROPERTIES_FILE_KEY_PROVIDER) ); registerXmlAttributeValueReferenceProvider( new String[]{"altKey","titleKey","pageKey","srcKey"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new NamespaceFilter(XmlUtil.STRUTS_HTML_URI), new ClassFilter(XmlTag.class) ), 2 ) ), getProviderByType(PROPERTIES_FILE_KEY_PROVIDER) ); registerXmlAttributeValueReferenceProvider( new String[]{"code"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new NamespaceFilter(XmlUtil.SPRING_URI), new AndFilter( new ClassFilter(XmlTag.class), new TextFilter("message", "theme") ) ), 2 ) ), getProviderByType(PROPERTIES_FILE_KEY_PROVIDER) ); registerXmlAttributeValueReferenceProvider( new String[]{"page"}, new ScopeFilter( new ParentElementFilter( new OrFilter( new AndFilter( new NamespaceFilter(XmlUtil.JSP_URI), new AndFilter( new ClassFilter(XmlTag.class), new TextFilter("include","forward") ) ), new AndFilter( new NamespaceFilter(XmlUtil.STRUTS_HTML_URI), new AndFilter( new ClassFilter(XmlTag.class), new TextFilter("rewrite") ) ) ), 2 ) ), getProviderByType(DYNAMIC_PATH_REFERENCES_PROVIDER) ); registerXmlAttributeValueReferenceProvider( new String[]{"tagdir"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new NamespaceFilter(XmlUtil.JSP_URI), new AndFilter( new ClassFilter(JspDirective.class), new TextFilter("taglib") ) ), 2 ) ), getProviderByType(PATH_REFERENCES_PROVIDER) ); registerXmlAttributeValueReferenceProvider( new String[] { "uri" }, new ScopeFilter( new ParentElementFilter( new AndFilter( new NamespaceFilter(XmlUtil.JSP_URI), new AndFilter( new ClassFilter(JspDirective.class), new TextFilter("taglib") ) ), 2 ) ), new JspUriReferenceProvider() ); final JavaClassListReferenceProvider classListProvider = new JavaClassListReferenceProvider(); registerXmlAttributeValueReferenceProvider( null, new NotFilter(new ParentElementFilter(new NamespaceFilter(XmlUtil.ANT_URI), 2)), classListProvider ); registerReferenceProvider(new TokenTypeFilter(XmlTokenType.XML_DATA_CHARACTERS), XmlToken.class, classListProvider); registerXmlTagReferenceProvider( new String[] { "function-class", "tag-class", "tei-class", "variable-class", "type", "path", "function-signature", "name", "name-given" }, new NamespaceFilter(MetaRegistry.TAGLIB_URIS), true, new TaglibReferenceProvider( getProviderByType(CLASS_REFERENCE_PROVIDER) ) ); final NamespaceFilter jsfNsFilter = new NamespaceFilter(XmlUtil.JSF_URIS); registerXmlTagReferenceProvider( new String[] { "render-kit-class","renderer-class","managed-bean-class","attribute-class","component-class", "converter-for-class", "converter-class", "key-class", "value-class", "referenced-bean-class", "validator-class", "application-factory", "faces-context-factory", "render-kit-factory", "lifecycle-factory", "view-handler", "variable-resolver", "phase-listener", "property-resolver", "state-manager", "action-listener", "navigation-handler" }, jsfNsFilter, true, getProviderByType(CLASS_REFERENCE_PROVIDER) ); final JSFReferencesProvider jsfProvider = new JSFReferencesProvider(); registerXmlTagReferenceProvider( new String[] { "property-name", "property-class" }, jsfNsFilter, true, jsfProvider ); final DtdReferencesProvider dtdReferencesProvider = new DtdReferencesProvider(); //registerReferenceProvider(null, XmlEntityDecl.class,dtdReferencesProvider); registerReferenceProvider(null, XmlEntityRef.class,dtdReferencesProvider); registerReferenceProvider(null, XmlDoctype.class,dtdReferencesProvider); registerReferenceProvider(null, XmlElementDecl.class,dtdReferencesProvider); registerReferenceProvider(null, XmlAttlistDecl.class,dtdReferencesProvider); registerReferenceProvider(null, XmlElementContentSpec.class,dtdReferencesProvider); URIReferenceProvider uriProvider = new URIReferenceProvider(); registerTypeWithProvider(URI_PROVIDER,uriProvider); registerXmlAttributeValueReferenceProvider( null, dtdReferencesProvider.getSystemReferenceFilter(), uriProvider ); //registerReferenceProvider(PsiPlainTextFile.class, new JavaClassListReferenceProvider()); HtmlReferenceProvider provider = new HtmlReferenceProvider(); registerXmlAttributeValueReferenceProvider( new String[] { "src", "href", "action", "background", "width", "height", "type", "bgcolor", "color", "vlink", "link", "alink", "text" }, provider.getFilter(), false, provider ); final PsiReferenceProvider filePathReferenceProvider = new FilePathReferenceProvider(); registerReferenceProvider(PsiLiteralExpression.class, filePathReferenceProvider); final SchemaReferencesProvider schemaReferencesProvider = new SchemaReferencesProvider(); registerXmlAttributeValueReferenceProvider( new String[] {"ref","type","base","name","substitutionGroup","memberTypes"}, new ScopeFilter( new ParentElementFilter( new NamespaceFilter(MetaRegistry.SCHEMA_URIS), 2 ) ), schemaReferencesProvider ); registerXmlAttributeValueReferenceProvider( new String[] {"xsi:type"}, null, schemaReferencesProvider ); registerXmlAttributeValueReferenceProvider( new String[] {"xsi:noNamespaceSchemaLocation"}, null, uriProvider ); registerXmlAttributeValueReferenceProvider( new String[] {"schemaLocation"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new NamespaceFilter(MetaRegistry.SCHEMA_URIS), new AndFilter( new ClassFilter(XmlTag.class), new TextFilter("import","include") ) ), 2 ) ), uriProvider ); registerXmlAttributeValueReferenceProvider( null, uriProvider.getNamespaceAttributeFilter(), uriProvider ); final JspReferencesProvider jspReferencesProvider = new JspReferencesProvider(); registerXmlAttributeValueReferenceProvider( new String[] {"fragment","name","property","id","name-given","dynamic-attributes"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new ClassFilter(XmlTag.class), new NamespaceFilter( new String[] { XmlUtil.JSP_URI, XmlUtil.STRUTS_BEAN_URI, XmlUtil.STRUTS_LOGIC_URI } ) ), 2 ) ), jspReferencesProvider ); registerXmlAttributeValueReferenceProvider( new String[] {"var"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new ClassFilter(XmlTag.class), new NamespaceFilter(XmlUtil.JSTL_CORE_URIS) ), 2 ) ), jspReferencesProvider ); registerXmlAttributeValueReferenceProvider( new String[] {"scope"}, null, jspReferencesProvider ); registerXmlAttributeValueReferenceProvider( new String[] {"name"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new ClassFilter(XmlTag.class), new AndFilter( new TextFilter("property"), new NamespaceFilter(XmlUtil.SPRING_CORE_URI) ) ), 2 ) ), new SpringReferencesProvider() ); registerXmlAttributeValueReferenceProvider( new String[] {"name"}, new ScopeFilter( new ParentElementFilter( new AndFilter( new ClassFilter(XmlTag.class), new AndFilter( new NamespaceFilter(XmlUtil.HIBERNATE_URIS), new TextFilter(new String[] { "property","list","map","set", "array", "bag", "idbag", "primitive-array", "many-to-one", "one-to-one"} ) ) ), 2 ) ), new HibernateReferencesProvider() ); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/1949b48cbfd269b88332b9a0664ec79467414339/ReferenceProvidersRegistry.java/buggy/source/com/intellij/psi/impl/source/resolve/reference/ReferenceProvidersRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
6268,
10672,
4243,
1435,
288,
565,
368,
16380,
8124,
12312,
565,
3399,
7185,
12668,
18,
1289,
12,
52,
7722,
3004,
18,
1106,
1769,
565,
368,
8660,
625,
332,
3062,
2874,
565,
1744,
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,
282,
3238,
6268,
10672,
4243,
1435,
288,
565,
368,
16380,
8124,
12312,
565,
3399,
7185,
12668,
18,
1289,
12,
52,
7722,
3004,
18,
1106,
1769,
565,
368,
8660,
625,
332,
3062,
2874,
565,
1744,
27... |
retry: while (true) { | retry: while (true) { | private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name); if (constant == null) { if (getRuntime().getLoadService().autoload(name) != null) { continue; } } if (constant != null) { if (exclude && p == objectClass && this != objectClass) { getRuntime().getWarnings().warn("toplevel constant " + name + " referenced by " + getName() + "::" + name); } return constant; } p = p.getSuperClass(); } if (!exclude && !retryForModule && getClass().equals(RubyModule.class)) { retryForModule = true; p = getRuntime().getObject(); continue retry; } break; } return callMethod(getRuntime().getCurrentContext(), "const_missing", RubySymbol.newSymbol(getRuntime(), name)); } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/buggy/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15908,
10340,
921,
24337,
2857,
12,
780,
508,
16,
1250,
4433,
13,
288,
3639,
15908,
10340,
921,
23992,
273,
18814,
7675,
588,
921,
5621,
3639,
1250,
3300,
1290,
3120,
273,
629,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15908,
10340,
921,
24337,
2857,
12,
780,
508,
16,
1250,
4433,
13,
288,
3639,
15908,
10340,
921,
23992,
273,
18814,
7675,
588,
921,
5621,
3639,
1250,
3300,
1290,
3120,
273,
629,
31,
... |
if (viewerApp != null) { | if (viewerApp != null && viewerApp.isAttachNavigator()) { | public JMenuBar getMenuBar() { final JMenuBar menuBar = new JMenuBar(); //create general actions final JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic(KeyEvent.VK_F); fileMenu.add(new JMenuItem(new Quit(QUIT))); menuBar.add(fileMenu); if (sm == null) return menuBar; //create actions which require a SelectionManager final JMenu compMenu = new JMenu("Component"); compMenu.setMnemonic(KeyEvent.VK_C); menuBar.add(compMenu); fileMenu.insert(new JMenuItem(new LoadFile(LOAD_FILE, sm, frame)), 0); fileMenu.insert(new JMenuItem(new LoadFileMerged(LOAD_FILE_MERGED, sm, frame)), 1); compMenu.add(new JMenuItem(new Remove(REMOVE, sm))); compMenu.add(new JMenuItem(new AddTool(ADD_TOOL, sm, frame))); final JMenu appMenu = new JMenu("Appearance"); appMenu.setMnemonic(KeyEvent.VK_A); menuBar.add(appMenu); appMenu.add(new JMenuItem(new ToggleAppearance(TOGGLE_VERTEX_DRAWING, CommonAttributes.VERTEX_DRAW, sm))); appMenu.add(new JMenuItem(new ToggleAppearance(TOGGLE_EDGE_DRAWING, CommonAttributes.EDGE_DRAW, sm))); appMenu.add(new JMenuItem(new ToggleAppearance(TOGGLE_FACE_DRAWING, CommonAttributes.FACE_DRAW, sm))); final JMenu viewerMenu = new JMenu("Viewer"); viewerMenu.setMnemonic(KeyEvent.VK_V); menuBar.add(viewerMenu); if (viewerApp != null) viewerMenu.add(new JMenuItem(ToggleViewerFullScreen.sharedInstance(TOGGLE_FULL_VIEWER, viewerApp))); viewerMenu.add(new JMenuItem(ToggleFullScreen.sharedInstance(TOGGLE_FULL_SCREEN, frame))); //create actions which require a Viewer if (viewerSwitch != null) { viewerMenu.addSeparator(); String[] viewerNames = viewerSwitch.getViewerNames(); ButtonGroup bg = new ButtonGroup(); for (int i=0; i<viewerSwitch.getNumViewers(); i++) { final int index = i; final JRadioButtonMenuItem item = new JRadioButtonMenuItem( new javax.swing.AbstractAction(viewerNames[index]){ private static final long serialVersionUID = 1L; public void actionPerformed(ActionEvent e) { viewerSwitch.selectViewer(index); viewerSwitch.getCurrentViewer().renderAsync(); } }); item.setSelected(index==0); item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1 + index, 0)); bg.add(item); viewerMenu.add(item); } viewerMenu.addSeparator(); JMenuItem mi = new JMenuItem(new Render(RENDER, viewerSwitch)); mi.setAccelerator(KeyStroke.getKeyStroke("R")); viewerMenu.add(mi); //camera actions final JMenu cameraMenu = new JMenu("Camera"); cameraMenu.setMnemonic(KeyEvent.VK_M); menuBar.add(cameraMenu, 3); cameraMenu.add(new JMenuItem(new ShiftFieldOfView(DECREASE_FIELD_OF_VIEW, viewerSwitch, true))); cameraMenu.add(new JMenuItem(new ShiftFieldOfView(INCREASE_FIELD_OF_VIEW, viewerSwitch, false))); cameraMenu.add(new JMenuItem(new ShiftFocus(DECREASE_FOCUS, viewerSwitch, true))); cameraMenu.add(new JMenuItem(new ShiftFocus(INCREASE_FOCUS, viewerSwitch, false))); cameraMenu.add(new JMenuItem(new ShiftEyeSeparation(DECREASE_EYE_SEPARATION, viewerSwitch, true))); cameraMenu.add(new JMenuItem(new ShiftEyeSeparation(INCREASE_EYE_SEPARATION, viewerSwitch, false))); cameraMenu.add(new JMenuItem(new TogglePerspective(TOGGLE_PERSPECTIVE, viewerSwitch))); } //enable or disable menus depending on navigator selection if (viewerApp != null) { Navigator navigator = (Navigator) viewerApp.getNavigator(); if (navigator != null) { navigator.getTreeSelectionModel().addTreeSelectionListener( new Navigator.SelectionListener() { @Override public void selectionChanged(SelectionEvent e) { compMenu.setEnabled(false); appMenu.setEnabled(false); if (e.selectionIsSGNode()) { e.selectionAsSGNode().accept(new SceneGraphVisitor(){ @Override public void visit(SceneGraphComponent c) { compMenu.setEnabled(true); appMenu.setEnabled(true); } @Override public void visit(Appearance a) { appMenu.setEnabled(true); } }); } } }); } } return menuBar; } | 25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/9e8f55eeed1368bf1cb4b4473cffff6c43ea7b7e/MenuFactory.java/buggy/src-ui/de/jreality/ui/viewerapp/MenuFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
4599,
5190,
25877,
5190,
1435,
288,
3639,
727,
804,
4599,
5190,
3824,
5190,
273,
394,
804,
4599,
5190,
5621,
565,
368,
2640,
7470,
4209,
565,
727,
804,
4599,
585,
4599,
273,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
4599,
5190,
25877,
5190,
1435,
288,
3639,
727,
804,
4599,
5190,
3824,
5190,
273,
394,
804,
4599,
5190,
5621,
565,
368,
2640,
7470,
4209,
565,
727,
804,
4599,
585,
4599,
273,
39... |
public Hashtable sqlProcedureHash(String procedure) { DBConnect dbc = new DBConnect(m_conPool) ; dbc.getConnection() ; dbc.setProcedure(procedure) ; Vector data = (Vector)dbc.executeProcedure() ; String[] meta = (String[])dbc.getMetaData() ; int columns = dbc.getColumnCount() ; Hashtable result = new Hashtable(columns,0.5f) ; dbc.clearResultSet() ; dbc.closeConnection() ; if ( data.size() > 0 ) { for ( int i = 0 ; i < columns ; i++ ) { String temp_str[] = new String[data.size() / columns] ; int counter = 0 ; for ( int j = i ; j < data.size() ; j+=columns ) temp_str[counter++] = data.elementAt(j).toString() ; result.put(meta[i],temp_str) ; } return result ; } else { return new Hashtable(1,0.5f) ; } } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/2b0064103818c3deb3752d0149625b30e3f12b52/IMCService.java/clean/server/src/imcode/server/IMCService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
18559,
1847,
17213,
2310,
12,
780,
12131,
13,
288,
202,
2290,
5215,
9881,
273,
394,
2383,
5215,
12,
81,
67,
591,
2864,
13,
274,
202,
9137,
18,
588,
1952,
1435,
274,
202,
9137,
18,
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,
1071,
18559,
1847,
17213,
2310,
12,
780,
12131,
13,
288,
202,
2290,
5215,
9881,
273,
394,
2383,
5215,
12,
81,
67,
591,
2864,
13,
274,
202,
9137,
18,
588,
1952,
1435,
274,
202,
9137,
18,
542,... | ||
Job bootDb = new BootNetworkDbJob(_context); | Job bootDb = new BootNetworkDbJob(getContext()); | public void runJob() { // start up the network comm system _context.commSystem().startup(); _context.tunnelManager().startup(); _context.peerManager().startup(); Job bootDb = new BootNetworkDbJob(_context); boolean useTrusted = false; String useTrustedStr = _context.router().getConfigSetting(PROP_USE_TRUSTED_LINKS); if (useTrustedStr != null) { useTrusted = Boolean.TRUE.toString().equalsIgnoreCase(useTrustedStr); } if (useTrusted) { _log.debug("Using trusted links..."); _context.jobQueue().addJob(new BuildTrustedLinksJob(_context, bootDb)); return; } else { _log.debug("Not using trusted links - boot db"); _context.jobQueue().addJob(bootDb); } } | 27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/e737e5c9507ed0d463dc9e45a8f63657f466b177/BootCommSystemJob.java/buggy/router/java/src/net/i2p/router/startup/BootCommSystemJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
2278,
1435,
288,
3639,
368,
787,
731,
326,
2483,
1543,
2619,
7734,
389,
2472,
18,
5702,
3163,
7675,
23939,
5621,
3639,
389,
2472,
18,
19878,
1318,
7675,
23939,
5621,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
2278,
1435,
288,
3639,
368,
787,
731,
326,
2483,
1543,
2619,
7734,
389,
2472,
18,
5702,
3163,
7675,
23939,
5621,
3639,
389,
2472,
18,
19878,
1318,
7675,
23939,
5621,
3639,
... |
for (StringTokenizer tokenizer = new StringTokenizer(s, ";"); tokenizer.hasMoreTokens();) { | for (StringTokenizer tokenizer = new StringTokenizer(s, ":"); tokenizer.hasMoreTokens();) { | private void initParams(List params) throws ClassNotFoundException { NamedParameter param; for (Iterator iterator = params.iterator(); iterator.hasNext();) { String s = (String) iterator.next(); for (StringTokenizer tokenizer = new StringTokenizer(s, ";"); tokenizer.hasMoreTokens();) { String name = tokenizer.nextToken(); String type = tokenizer.nextToken(); if(name.equalsIgnoreCase("return")) { returnType = NamedParameter.createQName(type); } else if(name.equalsIgnoreCase("returnClass")) { returnClass = ClassHelper.loadClass(type, getClass()); } else { String mode = tokenizer.nextToken(); QName paramName = (QName)converter.convert(QName.class, name); QName qtype = null; if(type.startsWith("qname{")) { qtype = (QName)converter.convert(QName.class, type); } else { qtype = NamedParameter.createQName(type); } param = new NamedParameter(paramName, qtype, mode); addNamedParameter(param); } } } } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/fb0f7f84e84bd7437bc5e3cc737d8b661adb97e6/SoapMethod.java/buggy/providers/soap/src/java/org/mule/providers/soap/SoapMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
1370,
12,
682,
859,
13,
1216,
10403,
288,
3639,
9796,
1662,
579,
31,
3639,
364,
261,
3198,
2775,
273,
859,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
13,
288,
5411,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1370,
12,
682,
859,
13,
1216,
10403,
288,
3639,
9796,
1662,
579,
31,
3639,
364,
261,
3198,
2775,
273,
859,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
13,
288,
5411,
51... |
public OnmsAlarm() { | public OnmsAlarm(Integer alarmid, String eventuei, OnmsDistPoller distPoller, OnmsNode node, String ipaddr, OnmsServiceType serviceType, String reductionkey, Integer alarmtype, Integer counter, Integer severity, Date firsteventtime, String description, String logmsg, String operinstruct, String tticketid, Integer tticketstate, String mouseovertext, Date suppresseduntil, String suppresseduser, Date suppressedtime, String alarmackuser, Date alarmacktime, String clearuei, String managedObjectInstance, String managedObjectType, org.opennms.netmgt.model.OnmsEvent event) { this.m_id = alarmid; this.m_uei = eventuei; this.m_distPoller = distPoller; this.m_node = node; this.m_ipAddr = ipaddr; this.m_serviceType = serviceType; this.m_reductionKey = reductionkey; this.m_alarmType = alarmtype; this.m_counter = counter; this.m_severity = severity; this.m_firstEventTime = firsteventtime; this.m_description = description; this.m_logMsg = logmsg; this.m_operInstruct = operinstruct; this.m_tTicketId = tticketid; this.m_tTicketState = tticketstate; this.m_mouseOverText = mouseovertext; this.m_suppressedUntil = suppresseduntil; this.m_suppressedUser = suppresseduser; this.m_suppressedTime = suppressedtime; this.m_alarmAckUser = alarmackuser; this.m_alarmAckTime = alarmacktime; this.m_clearUei = clearuei; this.m_lastEvent = event; this.m_managedObjectInstance = managedObjectInstance; | public OnmsAlarm() { } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/07a7ec47618ec810bdaa9401e9c589fe61f84e0f/OnmsAlarm.java/buggy/opennms-model/src/main/java/org/opennms/netmgt/model/OnmsAlarm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2755,
959,
16779,
12,
4522,
13721,
350,
16,
514,
871,
344,
77,
16,
2755,
959,
5133,
5850,
749,
2411,
5850,
749,
16,
2755,
959,
907,
756,
16,
514,
2359,
4793,
16,
2755,
959,
1179,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2755,
959,
16779,
12,
4522,
13721,
350,
16,
514,
871,
344,
77,
16,
2755,
959,
5133,
5850,
749,
2411,
5850,
749,
16,
2755,
959,
907,
756,
16,
514,
2359,
4793,
16,
2755,
959,
1179,
... |
case Event.AT_TARGET: | case Event.AT_TARGET: | public void handleEvent(Event evt) { switch(evt.getEventPhase()) { case Event.CAPTURING_PHASE: capturedEvents.add(evt); break; case Event.BUBBLING_PHASE: bubbledEvents.add(evt); break; case Event.AT_TARGET: atEvents.add(evt); break; } allEvents.add(evt); } | 54650 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54650/19ecf80dd539cb3920fc52530e5ddff6102cf9f2/EventMonitor.java/buggy/java/org/w3c/domts/EventMonitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1640,
1133,
12,
1133,
6324,
13,
288,
565,
1620,
12,
73,
11734,
18,
588,
1133,
11406,
10756,
288,
3639,
648,
225,
2587,
18,
20053,
1099,
1360,
67,
8939,
4429,
30,
3639,
19550,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
1133,
12,
1133,
6324,
13,
288,
565,
1620,
12,
73,
11734,
18,
588,
1133,
11406,
10756,
288,
3639,
648,
225,
2587,
18,
20053,
1099,
1360,
67,
8939,
4429,
30,
3639,
19550,
... |
return m; | return null; | private TypeMarshaller lookupMarshaller(BindingProperty prop, RuntimeBindingTypeTable typeTable, BindingLoader loader) { final BindingType bindingType = loader.getBindingType(prop.getTypeName()); TypeMarshaller m = typeTable.getTypeMarshaller(bindingType); if (m == null) { //TODO: FIXME for nested as-if types if (bindingType instanceof SimpleBindingType) { SimpleBindingType stype = (SimpleBindingType)bindingType; //let's try using the as if type final BindingTypeName asif_name = stype.getAsIfBindingTypeName(); assert asif_name != null : "no asif for " + stype; BindingType asif = loader.getBindingType(asif_name); if (asif == null) { throw new AssertionError("unable to get asif type" + " for " + asif_name); } m = typeTable.getTypeMarshaller(asif); if (m == null) { final String msg = "asif type marshaller not found" + " for" + stype + " asif=" + asif; throw new AssertionError(msg); } } } return m; } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/1ee788a304cafd6be0f0f482987f320cc3ef271b/ByNameRuntimeBindingType.java/clean/v2/src/marshal/org/apache/xmlbeans/impl/marshal/ByNameRuntimeBindingType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1412,
2058,
3689,
2058,
12,
5250,
1396,
2270,
16,
4766,
7734,
2509,
5250,
559,
1388,
618,
1388,
16,
4766,
7734,
15689,
2886,
4088,
13,
3639,
288,
5411,
727,
15689,
559,
5085,
559,
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,
540,
3238,
1412,
2058,
3689,
2058,
12,
5250,
1396,
2270,
16,
4766,
7734,
2509,
5250,
559,
1388,
618,
1388,
16,
4766,
7734,
15689,
2886,
4088,
13,
3639,
288,
5411,
727,
15689,
559,
5085,
559,
2... |
status = Messages.format("filter.itemsMessage", new Object[] {new Integer(totalCount)}); | status = Messages.format("filter.itemsMessage", new Object[] { new Integer(totalCount)}); | void updateTitle() { String currentTitle = getTitle(); String viewName = getConfigurationElement().getAttribute("name"); //$NON-NLS-1$ String status = ""; //$NON-NLS-1$ int filteredCount = getRegistry().getItemCount(); int totalCount = getRegistry().getRawItemCount(); if (filteredCount == totalCount) { status = Messages.format("filter.itemsMessage", new Object[] {new Integer(totalCount)}); //$NON-NLS-1$ } else { status = Messages.format("filter.matchedMessage", new Object[] {new Integer(filteredCount), new Integer(totalCount)}); //$NON-NLS-1$ } String newTitle = Messages.format("view.title", new String[] {viewName, status}); //$NON-NLS-1$ if (!newTitle.equals(currentTitle)) { setTitle(newTitle); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ea57ee1b804071939d5791d4c2986826074efe0c/MarkerView.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1089,
4247,
1435,
288,
202,
202,
780,
783,
4247,
273,
10786,
5621,
202,
202,
780,
22244,
273,
10316,
1046,
7675,
588,
1499,
2932,
529,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1089,
4247,
1435,
288,
202,
202,
780,
783,
4247,
273,
10786,
5621,
202,
202,
780,
22244,
273,
10316,
1046,
7675,
588,
1499,
2932,
529,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
... |
String returnValue = value.substring(splitPosition + 1); value = value.substring(0, splitPosition); | String returnValue = value.substring(splitPosition); value = PdfFontMetrics.trim(value.substring(0, splitPosition)); | PdfChunk split(double width) { int currentPosition = 0; int splitPosition = -1; double currentWidth = font.width(); // loop over all the characters of a string // or until the totalWidth is reached int length = value.length(); char character; while (currentPosition < length && currentWidth < width) { // the width of every character is added to the currentWidth character = value.charAt(currentPosition); currentWidth += font.width(character); // if a newLine or carriageReturn is encountered if (character == '\r' || character == '\n') { String returnValue = value.substring(currentPosition + 1); value = value.substring(0, currentPosition); if (value.length() < 1) { value = " "; } setContent(value); return new PdfChunk(returnValue, font, color); } // if a split-character is encountered, the splitPosition is altered if (PdfFontMetrics.isSplitCharacter(character)) { splitPosition = currentPosition; } currentPosition++; } // if all the characters fit in the total width, null is returned (there is no overflow) if (currentPosition == length) { return null; } // otherwise, the string has to be truncated if (splitPosition < 0) { String returnValue = value; value = ""; setContent(value); return new PdfChunk(returnValue, font, color); } String returnValue = value.substring(splitPosition + 1); value = value.substring(0, splitPosition); setContent(value); return new PdfChunk(returnValue, font, color); } | 3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/e1960cbfc8e6ed3a6aed46f0ca93ed6dc335a438/PdfChunk.java/clean/itext/src/com/lowagie/text/pdf/PdfChunk.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
18562,
5579,
1416,
12,
9056,
1835,
13,
288,
202,
202,
474,
22356,
273,
374,
31,
202,
202,
474,
1416,
2555,
273,
300,
21,
31,
202,
202,
9056,
783,
2384,
273,
3512,
18,
2819,
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,
225,
202,
18562,
5579,
1416,
12,
9056,
1835,
13,
288,
202,
202,
474,
22356,
273,
374,
31,
202,
202,
474,
1416,
2555,
273,
300,
21,
31,
202,
202,
9056,
783,
2384,
273,
3512,
18,
2819,
5621,
... |
throws MalformedURLException { | throws URISyntaxException { | public void setName(String n) throws MalformedURLException { String s = ""; if (getURL() != null) { s = getURL().toString(); } s = s.substring(0, s.lastIndexOf("/") + 1) + n; setURL(new URL(s)); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/393b06a765c576f48e34a44465304d01d5ae36a4/Project.java/clean/src_new/org/argouml/kernel/Project.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6788,
12,
780,
290,
13,
3639,
1216,
19883,
288,
3639,
514,
272,
273,
1408,
31,
3639,
309,
261,
588,
1785,
1435,
480,
446,
13,
288,
5411,
272,
273,
19341,
7675,
10492,
5621,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6788,
12,
780,
290,
13,
3639,
1216,
19883,
288,
3639,
514,
272,
273,
1408,
31,
3639,
309,
261,
588,
1785,
1435,
480,
446,
13,
288,
5411,
272,
273,
19341,
7675,
10492,
5621,
3... |
yaccValue = "&"; | yaccValue = new Token("&", getPosition(null, false)); | private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END; } return tok; } currentPos = src.getPosition(); commandState = commandStart; commandStart = false; retry: for(;;) { c = src.read(); switch(c) { case '\004': /* ^D */ case '\032': /* ^Z */ case 0: /* end of script. */ return 0; /* white spaces */ case ' ': case '\t': case '\f': case '\r': case '\13': /* '\v' */ spaceSeen = true; continue retry; case '#': /* it's a comment */ while ((c = src.read()) != '\n') { if (c == EOF) { return 0; } } /* fall through */ case '\n': // Replace a string of newlines with a single one while((c = src.read()) == '\n') { currentPos = src.getPosition(); } src.unread( c ); if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_CLASS) { continue retry; } commandStart = true; lex_state = LexState.EXPR_BEG; return '\n'; case '*': if ((c = src.read()) == '*') { if ((c = src.read()) == '=') { yaccValue = "**"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } yaccValue = "**"; src.unread(c); c = Tokens.tPOW; } else { if (c == '=') { yaccValue = "*"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { warnings.warning(src.getPosition(), "`*' interpreted as argument prefix"); c = Tokens.tSTAR; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tSTAR; } else { c = Tokens.tSTAR2; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "*"; return c; case '!': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { return Tokens.tNEQ; } if (c == '~') { return Tokens.tNMATCH; } src.unread(c); return Tokens.tBANG; case '=': // Skip documentation nodes if (src.wasBeginOfLine()) { /* skip embedded rd document */ if (isNextNoCase("begin")) { c = src.read(); if (Character.isWhitespace(c)) { // In case last next was the newline. src.unread(c); for (;;) { c = src.read(); // If a line is followed by a blank line put // it back. while (c == '\n') { c = src.read(); } if (c == EOF) { throw new SyntaxException(src.getPosition(), "embedded document meets end of file"); } if (c != '=') continue; if (src.wasBeginOfLine() && isNextNoCase("end")) { //if (src.peek('\n')) { // break; //} //c = src.read(); //if (Character.isWhitespace(c)) { src.readLine(); break; //} //src.unread(c); } } continue retry; } src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } c = src.read(); if (c == '=') { c = src.read(); if (c == '=') { yaccValue = "==="; return Tokens.tEQQ; } src.unread(c); yaccValue = "=="; return Tokens.tEQ; } if (c == '~') { yaccValue = "=~"; return Tokens.tMATCH; } else if (c == '>') { return Tokens.tASSOC; } src.unread(c); return '='; case '<': c = src.read(); if (c == '<' && lex_state != LexState.EXPR_END && lex_state != LexState.EXPR_DOT && lex_state != LexState.EXPR_ENDARG && lex_state != LexState.EXPR_CLASS && (!lex_state.isArgument() || spaceSeen)) { int tok = hereDocumentIdentifier(); if (tok != 0) return tok; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if (c == '=') { if ((c = src.read()) == '>') { yaccValue = "<=>"; return Tokens.tCMP; } yaccValue = "<="; src.unread(c); return Tokens.tLEQ; } if (c == '<') { yaccValue = "<<"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tLSHFT; } yaccValue = "<"; src.unread(c); return Tokens.tLT; case '>': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if ((c = src.read()) == '=') { yaccValue = ">="; return Tokens.tGEQ; } if (c == '>') { yaccValue = ">>"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tRSHFT; } yaccValue = ">"; src.unread(c); return Tokens.tGT; case '"': lex_strterm = new StringTerm(str_dquote, '"', '\0'); return Tokens.tSTRING_BEG; case '`': yaccValue = "`"; if (lex_state == LexState.EXPR_FNAME) { lex_state = LexState.EXPR_END; return Tokens.tBACK_REF2; } if (lex_state == LexState.EXPR_DOT) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } return Tokens.tBACK_REF2; } lex_strterm = new StringTerm(str_xquote, '`', '\0'); return Tokens.tXSTRING_BEG; case '\'': lex_strterm = new StringTerm(str_squote, '\'', '\0'); return Tokens.tSTRING_BEG; case '?': if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG) { lex_state = LexState.EXPR_BEG; return '?'; } c = src.read(); if (c == EOF) { throw new SyntaxException(src.getPosition(), "incomplete character syntax"); } if (Character.isWhitespace(c)){ if (!lex_state.isArgument()){ int c2 = 0; switch (c) { case ' ': c2 = 's'; break; case '\n': c2 = 'n'; break; case '\t': c2 = 't'; break; /* What is \v in C? case '\v': c2 = 'v'; break; */ case '\r': c2 = 'r'; break; case '\f': c2 = 'f'; break; } if (c2 != 0) { warnings.warn(src.getPosition(), "invalid character syntax; use ?\\" + c2); } } src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; /*} else if (ismbchar(c)) { // ruby - we don't support them either? rb_warn("multibyte character literal not supported yet; use ?\\" + c); support.unread(c); lexState = LexState.EXPR_BEG; return '?';*/ } else if ((Character.isLetterOrDigit(c) || c == '_') && !src.peek('\n') && isNext_identchar()) { src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; } else if (c == '\\') { c = src.readEscape(); } c &= 0xff; lex_state = LexState.EXPR_END; yaccValue = new Long(c); return Tokens.tINTEGER; case '&': if ((c = src.read()) == '&') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "&&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tANDOP; } else if (c == '=') { yaccValue = "&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)){ warnings.warning(src.getPosition(), "`&' interpreted as argument prefix"); c = Tokens.tAMPER; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tAMPER; } else { c = Tokens.tAMPER2; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "&"; return c; case '|': if ((c = src.read()) == '|') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "||"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tOROP; } if (c == '=') { yaccValue = "|"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "|"; src.unread(c); return Tokens.tPIPE; case '+': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@+"; return Tokens.tUPLUS; } yaccValue = "+"; src.unread(c); return Tokens.tPLUS; } if (c == '=') { yaccValue = "+"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { c = '+'; return parseNumber(c); } return Tokens.tUPLUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tPLUS; case '-': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@-"; return Tokens.tUMINUS; } yaccValue = "-"; src.unread(c); return Tokens.tMINUS; } if (c == '=') { yaccValue = "-"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { return Tokens.tUMINUS_NUM; } return Tokens.tUMINUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tMINUS; case '.': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '.') { if ((c = src.read()) == '.') { return Tokens.tDOT3; } src.unread(c); return Tokens.tDOT2; } src.unread(c); if (Character.isDigit(c)) { throw new SyntaxException(src.getPosition(), "no .<digit> floating literal anymore; put 0 before dot"); } lex_state = LexState.EXPR_DOT; return Tokens.tDOT; case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return parseNumber(c); case ']': case '}': case ')': conditionState.restart(); cmdArgumentState.restart(); lex_state = LexState.EXPR_END; return c; case ':': c = src.read(); if (c == ':') { if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_CLASS || (lex_state.isArgument() && spaceSeen)) { lex_state = LexState.EXPR_BEG; return Tokens.tCOLON3; } lex_state = LexState.EXPR_DOT; return Tokens.tCOLON2; } if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG || Character.isWhitespace(c)) { src.unread(c); lex_state = LexState.EXPR_BEG; return ':'; } switch (c) { case '\'': lex_strterm = new StringTerm(str_ssym, c, '\0'); break; case '"': lex_strterm = new StringTerm(str_dsym, c, '\0'); break; default: src.unread(c); break; } lex_state = LexState.EXPR_FNAME; return Tokens.tSYMBEG; case '/': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } if ((c = src.read()) == '=') { yaccValue = "/"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen) { if (!Character.isWhitespace(c)) { arg_ambiguous(); lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "/"; return Tokens.tDIVIDE; case '^': yaccValue = "^"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } src.unread(c); return Tokens.tCARET; case ';': commandStart = true; case ',': lex_state = LexState.EXPR_BEG; return c; case '~': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { if ((c = src.read()) != '@') { src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "~"; return Tokens.tTILDE; case '(': c = Tokens.tLPAREN2; commandStart = true; if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLPAREN; } else if (spaceSeen) { if (lex_state == LexState.EXPR_CMDARG) { c = Tokens.tLPAREN_ARG; } else if (lex_state == LexState.EXPR_ARG) { warnings.warn(src.getPosition(), "don't put space before argument parentheses"); c = Tokens.tLPAREN2; } } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '[': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if ((c = src.read()) == ']') { if ((c = src.read()) == '=') { yaccValue = "[]="; return Tokens.tASET; } yaccValue = "[]"; src.unread(c); return Tokens.tAREF; } src.unread(c); return '['; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLBRACK; } else if (lex_state.isArgument() && spaceSeen) { c = Tokens.tLBRACK; } lex_state = LexState.EXPR_BEG; conditionState.stop(); cmdArgumentState.stop(); return c; case '{': c = Tokens.tLCURLY; if (lex_state.isArgument() || lex_state == LexState.EXPR_END) { c = Tokens.tLCURLY; /* block (primary) */ } else if (lex_state == LexState.EXPR_ENDARG) { c = Tokens.tLBRACE_ARG; /* block (expr) */ } else { c = Tokens.tLBRACE; /* hash */ } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '\\': c = src.read(); if (c == '\n') { spaceSeen = true; continue retry; /* skip \\n */ } src.unread(c); return '\\'; case '%': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { return parseQuote(src.read()); } if ((c = src.read()) == '=') { yaccValue = "%"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { return parseQuote(c); } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "%"; src.unread(c); return Tokens.tPERCENT; case '$': lex_state = LexState.EXPR_END; tokenBuffer.setLength(0); c = src.read(); switch (c) { case '_': /* $_: last read line string */ c = src.read(); if (isIdentifierChar(c)) { tokenBuffer.append('$'); tokenBuffer.append('_'); break; } src.unread(c); c = '_'; /* fall through */ case '*': /* $*: argv */ case '$': /* $$: pid */ case '?': /* $?: last status */ case '!': /* $!: error string */ case '@': /* $@: error position */ case '/': /* $/: input record separator */ case '\\': /* $\: output record separator */ case ';': /* $;: field separator */ case ',': /* $,: output field separator */ case '.': /* $.: last read line number */ case '=': /* $=: ignorecase */ case ':': /* $:: load path */ case '<': /* $<: reading filename */ case '>': /* $>: default output handle */ case '\"': /* $": already loaded files */ tokenBuffer.append('$'); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); return Tokens.tGVAR; case '-': tokenBuffer.append('$'); tokenBuffer.append(c); c = src.read(); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); /* xxx shouldn't check if valid option variable */ return Tokens.tGVAR; case '~': /* $~: match-data */ case '&': /* $&: last match */ case '`': /* $`: string before last match */ case '\'': /* $': string after last match */ case '+': /* $+: string matches last paren. */ yaccValue = new BackRefNode(src.getPosition(), c); return Tokens.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokenBuffer.append('$'); do { tokenBuffer.append(c); c = src.read(); } while (Character.isDigit(c)); src.unread(c); yaccValue = new NthRefNode(src.getPosition(), Integer.parseInt(tokenBuffer.substring(1))); return Tokens.tNTH_REF; default: if (!isIdentifierChar(c)) { src.unread(c); return '$'; } case '0': tokenBuffer.append('$'); } break; case '@': c = src.read(); tokenBuffer.setLength(0); tokenBuffer.append('@'); if (c == '@') { tokenBuffer.append('@'); c = src.read(); } if (Character.isDigit(c)) { if (tokenBuffer.length() == 1) { throw new SyntaxException(src.getPosition(), "`@" + c + "' is not allowed as an instance variable name"); } throw new SyntaxException(src.getPosition(), "`@@" + c + "' is not allowed as a class variable name"); } if (!isIdentifierChar(c)) { src.unread(c); return '@'; } break; case '_': if (src.wasBeginOfLine() && src.matchString("_END__\n", false)) { parserSupport.getResult().setEndSeen(true); return 0; } tokenBuffer.setLength(0); break; default: if (!isIdentifierChar(c)) { throw new SyntaxException(src.getPosition(), "Invalid char `\\" + new PrintfFormat("%.3o").sprintf(c) + "' in expression"); } tokenBuffer.setLength(0); break; } do { tokenBuffer.append(c); /* no special multibyte character handling is needed in Java * if (ismbchar(c)) { int i, len = mbclen(c)-1; for (i = 0; i < len; i++) { c = src.read(); tokenBuffer.append(c); } }*/ c = src.read(); } while (isIdentifierChar(c)); char peek = src.read(); if ((c == '!' || c == '?') && isIdentifierChar(tokenBuffer.charAt(0)) && peek != '=') { src.unread(peek); tokenBuffer.append(c); } else { src.unread(peek); src.unread(c); } int result = 0; switch (tokenBuffer.charAt(0)) { case '$': lex_state = LexState.EXPR_END; result = Tokens.tGVAR; break; case '@': lex_state = LexState.EXPR_END; if (tokenBuffer.charAt(1) == '@') { result = Tokens.tCVAR; } else { result = Tokens.tIVAR; } break; default: char last = tokenBuffer.charAt(tokenBuffer.length() - 1); if (last == '!' || last == '?') { result = Tokens.tFID; } else { if (lex_state == LexState.EXPR_FNAME) { /* // Enebo: This should be equivalent to below without // so much read/unread action. if ((c = src.read()) == '=') { char c2 = src.read(); if (c2 != '~' && c2 != '>' && (c2 != '=' || (c2 == '\n' && src.peek('>')))) { result = Token.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c2); src.unread(c); } } else { src.unread(c); } */ if ((c = src.read()) == '=' && !src.peek('~') && !src.peek('>') && (!src.peek('=') || (src.peek('\n') && src.getCharAt(1) == '>'))) { result = Tokens.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c); } } if (result == 0 && ISUPPER(tokenBuffer.charAt(0))) { result = Tokens.tCONSTANT; } else { result = Tokens.tIDENTIFIER; } } if (lex_state != LexState.EXPR_DOT) { /* See if it is a reserved word. */ Keyword keyword = Keyword.getKeyword(tokenBuffer.toString(), tokenBuffer.length()); if (keyword != null) { // enum lex_state LexState state = lex_state; lex_state = keyword.state; if (state.isExprFName()) { yaccValue = keyword.name; } if (keyword.id0 == Tokens.kDO) { if (conditionState.isInState()) { return Tokens.kDO_COND; } if (cmdArgumentState.isInState() && state != LexState.EXPR_CMDARG) { return Tokens.kDO_BLOCK; } if (state == LexState.EXPR_ENDARG) { return Tokens.kDO_BLOCK; } return Tokens.kDO; } if (state == LexState.EXPR_BEG) { return keyword.id0; } if (keyword.id0 != keyword.id1) { lex_state = LexState.EXPR_BEG; } return keyword.id1; } } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_ARG || lex_state == LexState.EXPR_CMDARG) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } } else { lex_state = LexState.EXPR_END; } } yaccValue = tokenBuffer.toString(); // Lame: parsing logic made it into lexer in ruby...So we // are emulating if (IdUtil.isLocal((String)yaccValue) && ((((LocalNamesElement) parserSupport.getLocalNames().peek()).isInBlock() && ((BlockNamesElement) parserSupport.getBlockNames().peek()).isDefined((String) yaccValue)) || ((LocalNamesElement) parserSupport.getLocalNames().peek()).isLocalRegistered((String) yaccValue))) { lex_state = LexState.EXPR_END; } return result; } } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/b1293eda8454686e846e2a9837b348e2983bb423/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
1149,
276,
31,
3639,
1250,
3476,
15160,
273,
629,
31,
3639,
1250,
1296,
1119,
31,
7734,
309,
261,
4149,
67,
701,
6408,
480,
446,
13,
288,
1082... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
1149,
276,
31,
3639,
1250,
3476,
15160,
273,
629,
31,
3639,
1250,
1296,
1119,
31,
7734,
309,
261,
4149,
67,
701,
6408,
480,
446,
13,
288,
1082... |
log.exiting(this.getClass().getName(), "teardown"); | if (Configuration.DEBUG) log.exiting(this.getClass().getName(), "teardown"); | void teardown() { log.entering(this.getClass().getName(), "teardown"); //$NON-NLS-1$ if (storeStream != null) try { storeStream.close(); } catch (IOException ignored) { log.fine("Exception while closing key store URL stream. Ignored: " //$NON-NLS-1$ + ignored); } if (outStream != null) { try { outStream.flush(); } catch (IOException ignored) { } if (! systemOut) try { outStream.close(); } catch (IOException ignored) { } } if (inStream != null) try { inStream.close(); } catch (IOException ignored) { } if (providerNdx > 0) ProviderUtil.removeProvider(provider.getName()); log.exiting(this.getClass().getName(), "teardown"); //$NON-NLS-1$ } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/2fc4e384dcea5a4ff5cefac633fe9a3c8607d6b3/Command.java/clean/tools/gnu/classpath/tools/keytool/Command.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
28196,
1435,
225,
288,
565,
613,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
736,
20684,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
565,
309,
261,
2233,
1228,
480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
28196,
1435,
225,
288,
565,
613,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
736,
20684,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
565,
309,
261,
2233,
1228,
480,
... |
if ( _cnt1213>=1 ) { break _loop1213; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} | if ( _cnt589>=1 ) { break _loop589; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} | public final void mMODULE_NAME(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = MODULE_NAME; int _saveIndex; boolean synPredMatched1198 = false; if (((LA(1)=='A') && (LA(2)=='R') && (LA(3)=='R'))) { int _m1198 = mark(); synPredMatched1198 = true; inputState.guessing++; try { { match("ARRAY"); } } catch (RecognitionException pe) { synPredMatched1198 = false; } rewind(_m1198); inputState.guessing--; } if ( synPredMatched1198 ) { match("ARRAY"); if ( inputState.guessing==0 ) { _ttype = ARRAY_REF; } } else { boolean synPredMatched1200 = false; if (((LA(1)=='S') && (LA(2)=='C') && (LA(3)=='A'))) { int _m1200 = mark(); synPredMatched1200 = true; inputState.guessing++; try { { match("SCALAR"); } } catch (RecognitionException pe) { synPredMatched1200 = false; } rewind(_m1200); inputState.guessing--; } if ( synPredMatched1200 ) { match("SCALAR"); if ( inputState.guessing==0 ) { _ttype = SCALAR_REF; } } else { boolean synPredMatched1202 = false; if (((LA(1)=='H') && (LA(2)=='A') && (LA(3)=='S'))) { int _m1202 = mark(); synPredMatched1202 = true; inputState.guessing++; try { { match("HASH"); } } catch (RecognitionException pe) { synPredMatched1202 = false; } rewind(_m1202); inputState.guessing--; } if ( synPredMatched1202 ) { match("HASH"); if ( inputState.guessing==0 ) { _ttype = HASH_REF; } } else { boolean synPredMatched1204 = false; if (((LA(1)=='C') && (LA(2)=='O') && (LA(3)=='D'))) { int _m1204 = mark(); synPredMatched1204 = true; inputState.guessing++; try { { match("CODE"); } } catch (RecognitionException pe) { synPredMatched1204 = false; } rewind(_m1204); inputState.guessing--; } if ( synPredMatched1204 ) { match("CODE"); if ( inputState.guessing==0 ) { _ttype = CODE_REF; } } else { boolean synPredMatched1206 = false; if (((LA(1)=='R') && (LA(2)=='E') && (LA(3)=='F'))) { int _m1206 = mark(); synPredMatched1206 = true; inputState.guessing++; try { { match("REF"); } } catch (RecognitionException pe) { synPredMatched1206 = false; } rewind(_m1206); inputState.guessing--; } if ( synPredMatched1206 ) { match("REF"); if ( inputState.guessing==0 ) { _ttype = REF; } } else { boolean synPredMatched1208 = false; if (((LA(1)=='F') && (LA(2)=='i') && (LA(3)=='l'))) { int _m1208 = mark(); synPredMatched1208 = true; inputState.guessing++; try { { match("FileHandle"); } } catch (RecognitionException pe) { synPredMatched1208 = false; } rewind(_m1208); inputState.guessing--; } if ( synPredMatched1208 ) { match("FileHandle"); if ( inputState.guessing==0 ) { _ttype = FILE_HANDLE; } } else { boolean synPredMatched1210 = false; if (((LA(1)=='f') && (LA(2)=='i') && (LA(3)=='l'))) { int _m1210 = mark(); synPredMatched1210 = true; inputState.guessing++; try { { match("fileno("); } } catch (RecognitionException pe) { synPredMatched1210 = false; } rewind(_m1210); inputState.guessing--; } if ( synPredMatched1210 ) { { match("fileno("); } { int _cnt1213=0; _loop1213: do { if (((LA(1) >= '0' && LA(1) <= '9'))) { matchRange('0','9'); } else { if ( _cnt1213>=1 ) { break _loop1213; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} } _cnt1213++; } while (true); } match(')'); if ( inputState.guessing==0 ) { _ttype = FILE_NO; } } else if ((_tokenSet_0.member(LA(1))) && (true) && (true)) { mPURE_NAME(false); if ( inputState.guessing==0 ) { _ttype = PURE_NAME; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } }}}}}} if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; } | 48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/72375d88949c7cd568747d5147388993cafd19ac/PerlBaseLexer.java/buggy/org.epic.debug/src/org/epic/debug/varparser/PerlBaseLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
12194,
67,
1985,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
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,
225,
202,
482,
727,
918,
312,
12194,
67,
1985,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
3... |
PipelinedViewerUpdate anUpdateSynchronization) { | PipelinedViewerUpdate anUpdateSynchronization) { boolean pipelined = false; Object refreshable = null; for (Iterator iter = anUpdateSynchronization.getRefreshTargets().iterator(); iter.hasNext();) { refreshable = iter.next(); Set overrideableExtensions = contentService.findOverrideableContentExtensionsForPossibleChild(refreshable); for (Iterator overrideableExtensionItr = overrideableExtensions.iterator(); overrideableExtensionItr.hasNext();) { pipelined |= pipelineInterceptUpdate((NavigatorContentExtension) overrideableExtensionItr.next(), anUpdateSynchronization, refreshable); } } return pipelined; | public boolean interceptUpdate( PipelinedViewerUpdate anUpdateSynchronization) { Set overrideableExtensions = new HashSet(); for (Iterator iter = anUpdateSynchronization.getRefreshTargets() .iterator(); iter.hasNext();) { overrideableExtensions.addAll(contentService .findOverrideableContentExtensionsForPossibleChild(iter .next())); } if (overrideableExtensions.isEmpty()) { return false; } return pipelineUpdate(overrideableExtensions, anUpdateSynchronization); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/74d335dd8455d470c9630ff446ced94771603eb1/NavigatorPipelineService.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorPipelineService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
10883,
1891,
12,
1082,
202,
24925,
292,
1920,
18415,
1891,
392,
1891,
30196,
13,
288,
9506,
202,
694,
3849,
429,
7513,
273,
394,
6847,
5621,
202,
202,
1884,
261,
3198,
140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
10883,
1891,
12,
1082,
202,
24925,
292,
1920,
18415,
1891,
392,
1891,
30196,
13,
288,
9506,
202,
694,
3849,
429,
7513,
273,
394,
6847,
5621,
202,
202,
1884,
261,
3198,
140... |
bookName = (String) getSpellBooks().get(sbookNum); | bookName = getSpellBooks().get(sbookNum); | int countSpellLevelsInBook(final String aString) { int levelNum = 0; final StringTokenizer aTok = new StringTokenizer(aString, "."); final int classNum = Integer.parseInt(aTok.nextToken()); final int sbookNum = Integer.parseInt(aTok.nextToken()); String bookName = Globals.getDefaultSpellBook(); if (sbookNum > 0) { bookName = (String) getSpellBooks().get(sbookNum); } final PObject aObject = getSpellClassAtIndex(classNum); if (aObject != null) { for (levelNum = 0; levelNum >= 0; ++levelNum) { final List<CharacterSpell> aList = aObject.getSpellSupport().getCharacterSpell(null, bookName, levelNum); if (aList.size() < 1) { break; } } } return levelNum; } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/acba5add5892f6e7b415025a78f0ecab22892ce1/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
1056,
3389,
1165,
12240,
382,
9084,
12,
6385,
514,
279,
780,
13,
202,
95,
202,
202,
474,
1801,
2578,
273,
374,
31,
202,
202,
6385,
16370,
279,
20477,
273,
394,
16370,
12,
69,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
474,
1056,
3389,
1165,
12240,
382,
9084,
12,
6385,
514,
279,
780,
13,
202,
95,
202,
202,
474,
1801,
2578,
273,
374,
31,
202,
202,
6385,
16370,
279,
20477,
273,
394,
16370,
12,
69,
... |
section.setText("Usage Details"); | section.setText("Usage Details"); | private void createUsageSection(Composite parent, FormToolkit toolkit) { Section section = toolkit.createSection(parent, Section.TITLE_BAR); section.setText("Usage Details"); section.setLayout(new TableWrapLayout()); section.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); Composite container = toolkit.createComposite(section); section.setClient(container); TableWrapLayout layout = new TableWrapLayout(); layout.numColumns = 2; container.setLayout(layout); createTable(container, toolkit); createTableViewer(); toolkit.paintBordersFor(container); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/69cf4a60cebdb2edef88b409b2e36e233cd05c24/UsageStatsEditorPart.java/clean/sandbox/org.eclipse.mylyn.monitor.reports/src/org/eclipse/mylyn/monitor/reports/ui/views/UsageStatsEditorPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
5357,
5285,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
2938,
16,
10092,
18,
14123,
67,
219... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
5357,
5285,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
2938,
16,
10092,
18,
14123,
67,
219... |
passDown(new Event(Event.MSG, msg)); } | passDown(new Event(Event.MSG, msg)); } | void send(Message msg) { Message copy; long id=seqno++; Vector stable_msgs=sender_win.getStableMessages(); NakAckHeader hdr; if(Trace.trace) Trace.info("NAKACK.OutOfBander.send()", "sending msg #=" + id); hdr=new NakAckHeader(NakAckHeader.OUT_OF_BAND_MSG, id, null); hdr.stable_msgs=stable_msgs; msg.putHeader(getName(), hdr); // msg needs to be copied, otherwise it will be modified by the code below sender_win.add(id, msg.copy(), (Vector)members.clone()); passDown(new Event(Event.MSG, msg)); } | 3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/3a7a5d6ef9a8f574da3e45b696950d0b4bb12acc/NAKACK.java/clean/src/org/jgroups/protocols/NAKACK.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1366,
12,
1079,
1234,
13,
288,
202,
565,
2350,
1377,
1610,
31,
202,
565,
1525,
540,
612,
33,
5436,
2135,
9904,
31,
202,
565,
5589,
4202,
14114,
67,
27439,
33,
15330,
67,
8082... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
1366,
12,
1079,
1234,
13,
288,
202,
565,
2350,
1377,
1610,
31,
202,
565,
1525,
540,
612,
33,
5436,
2135,
9904,
31,
202,
565,
5589,
4202,
14114,
67,
27439,
33,
15330,
67,
8082... |
return "MetalLookAndFeel"; | return "Metal"; | public String getName() { return "MetalLookAndFeel"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalLookAndFeel.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalLookAndFeel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1723,
1435,
225,
288,
565,
327,
315,
26365,
14432,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1723,
1435,
225,
288,
565,
327,
315,
26365,
14432,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
throw new RuntimeException("PRB is aborted"); | throw new AbortedException("PRB is aborted"); | public Buffer getPacket(int x) { if (_aborted) { throw new RuntimeException("PRB is aborted"); } return new Buffer(_data, x * _packetSize, _packetSize); } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/b4ecaa4055b5835413830d4125c72de27d68e306/PartiallyReceivedBlock.java/buggy/src/freenet/io/xfer/PartiallyReceivedBlock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3525,
30401,
278,
12,
474,
619,
13,
288,
202,
202,
430,
261,
67,
18623,
329,
13,
288,
1082,
202,
12849,
394,
3235,
2932,
8025,
38,
353,
18166,
8863,
202,
202,
97,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3525,
30401,
278,
12,
474,
619,
13,
288,
202,
202,
430,
261,
67,
18623,
329,
13,
288,
1082,
202,
12849,
394,
3235,
2932,
8025,
38,
353,
18166,
8863,
202,
202,
97,
202,
202,
... |
HashSet found = new HashSet(); findFile(includePaths, includeName, filesFound, found); | findFile(includePaths, includeName, filesFound); | public void run() { ICElement include= getIncludeStatement(fSelectionProvider.getSelection()); if (include == null) { return; } try { IResource res = include.getUnderlyingResource(); ArrayList filesFound = new ArrayList(4); if (res != null) { IProject proj = res.getProject(); String includeName = include.getElementName(); // Search in the scannerInfo information IScannerInfoProvider provider = CCorePlugin.getDefault().getScannerInfoProvider(proj); if (provider != null) { IScannerInfo info = provider.getScannerInformation(res); // XXXX this should fall back to project by itself if (info == null) { info = provider.getScannerInformation(proj); } if (info != null) { String[] includePaths = info.getIncludePaths(); HashSet found = new HashSet(); findFile(includePaths, includeName, filesFound, found); } if (filesFound.size() == 0) { // Fall back and search the project findFile(proj, new Path(includeName), filesFound); } } } IPath fileToOpen; int nElementsFound= filesFound.size(); if (nElementsFound == 0) { noElementsFound(); fileToOpen= null; } else if (nElementsFound == 1) { fileToOpen= (IPath) filesFound.get(0); } else { fileToOpen= chooseFile(filesFound); } if (fileToOpen != null) { EditorUtility.openInEditor(fileToOpen, include); } } catch (CModelException e) { CUIPlugin.getDefault().log(e.getStatus()); } catch (CoreException e) { CUIPlugin.getDefault().log(e.getStatus()); } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/6155014aabc967cc18fe016c5558f308e1c76038/OpenIncludeAction.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
2871,
1046,
2341,
33,
7854,
1571,
3406,
12,
74,
6233,
2249,
18,
588,
6233,
10663,
202,
202,
430,
261,
6702,
422,
446,
13,
288,
1082,
202,
2463,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
2871,
1046,
2341,
33,
7854,
1571,
3406,
12,
74,
6233,
2249,
18,
588,
6233,
10663,
202,
202,
430,
261,
6702,
422,
446,
13,
288,
1082,
202,
2463,... |
get3CSelections().remove(oldSelection); repaint(); | if(get3CSelections().remove(oldSelection));{ selection3CCount--; repaint(); } | public void remove3CSelection(Selection oldSelection){ get3CSelections().remove(oldSelection); repaint(); } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/7c3c7ef202d9907c0d47de1db7b7481878bd9902/BasicSeismogramDisplay.java/clean/src/edu/sc/seis/fissuresUtil/display/BasicSeismogramDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
23,
39,
6233,
12,
6233,
1592,
6233,
15329,
225,
202,
588,
23,
39,
29913,
7675,
4479,
12,
1673,
6233,
1769,
225,
202,
14462,
1598,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
23,
39,
6233,
12,
6233,
1592,
6233,
15329,
225,
202,
588,
23,
39,
29913,
7675,
4479,
12,
1673,
6233,
1769,
225,
202,
14462,
1598,
5621,
565,
289,
2,
-100,
-100,
-100,
-... |
GtpUtils.parsePoint(response.toString(), m_board.getSize()); | GtpUtil.parsePoint(response.toString(), m_board.getSize()); | private void genmove() { GoColor toMove = m_board.getToMove(); String command = m_gtp.getCommandGenmove(toMove); StringBuffer response = new StringBuffer(); if (! send(command, response)) { System.out.println(response); return; } try { GoPoint point = GtpUtils.parsePoint(response.toString(), m_board.getSize()); System.out.println("Computer move: " + GoPoint.toString(point)); play(Move.get(point, toMove)); printBoard(); } catch (GtpError error) { System.out.println(response); } } | 51310 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51310/1f50ffb219183ddaf94720a4aba453e11f412425/GtpTerminal.java/buggy/src/net/sf/gogui/gtpterminal/GtpTerminal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3157,
8501,
1435,
565,
288,
3639,
4220,
2957,
358,
7607,
273,
312,
67,
3752,
18,
588,
774,
7607,
5621,
3639,
514,
1296,
273,
312,
67,
4521,
84,
18,
588,
2189,
7642,
8501,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3157,
8501,
1435,
565,
288,
3639,
4220,
2957,
358,
7607,
273,
312,
67,
3752,
18,
588,
774,
7607,
5621,
3639,
514,
1296,
273,
312,
67,
4521,
84,
18,
588,
2189,
7642,
8501,
12,... |
if (op instanceof OPT_LongConstantOperand) return Address.fromLong(op.asLongConstant().value); | private static Address getAddressValue(OPT_Operand op) { if (op instanceof OPT_NullConstantOperand) return Address.zero(); if (op instanceof OPT_AddressConstantOperand) return op.asAddressConstant().value; if (op instanceof OPT_IntConstantOperand) return Address.fromIntSignExtend(op.asIntConstant().value); //-#if RVM_FOR_64_ADDR if (op instanceof OPT_LongConstantOperand) return Address.fromLong(op.asLongConstant().value); //-#endif throw new OPT_OptimizingCompilerException("Cannot getAddressValue from this operand " + op); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/b372860b0bca12a1b3850b17dde0b867223b735d/OPT_Simplifier.java/buggy/rvm/src/vm/compilers/optimizing/optimizations/local/OPT_Simplifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
5267,
14808,
620,
12,
15620,
67,
10265,
1061,
13,
288,
565,
309,
261,
556,
1276,
16456,
67,
2041,
6902,
10265,
13,
4202,
327,
5267,
18,
7124,
5621,
565,
309,
261,
556,
1276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
5267,
14808,
620,
12,
15620,
67,
10265,
1061,
13,
288,
565,
309,
261,
556,
1276,
16456,
67,
2041,
6902,
10265,
13,
4202,
327,
5267,
18,
7124,
5621,
565,
309,
261,
556,
1276,
... | |
if (lex_p == 1) { | if (source.getColumn() == 1) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0; // white spaces case ' ' : case '\t' : case '\f' : case '\r' : case '\013' : // '\v' space_seen++; continue retry; case '#' : // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n' : switch (ph.getLexState()) { case LexState.EXPR_BEG : case LexState.EXPR_FNAME : case LexState.EXPR_DOT : continue retry; default : break; } ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*' : if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = "**"; // ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = "*"; // ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("'*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=' : if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (;;) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<' : c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen != 0)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = "<<"; // ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ">>"; //ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"' : return parse_string(c, c, c); case '`' : if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'' : return parse_qstring(c, 0); case '?' : if (ph.getLexState() == LexState.EXPR_END) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&' : if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "&&"; // ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = "&"; //ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = "||"; // ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = "|"; //ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "+"; //ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "-"; // ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return start_num(c); case ']' : case '}' : ph.setLexState(LexState.EXPR_END); return c; case ')' : if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':' : c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/' : if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "/"; // ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "^"; //ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',' : case ';' : ph.setLexState(LexState.EXPR_BEG); return c; case '~' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(' : if (cond_nest > 0) { cond_stack = (cond_stack << 1) | 0; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call"); } ph.setLexState(LexState.EXPR_BEG); return c; case '[' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen != 0) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{' : if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ARG) { c = Token.tLBRACE; } ph.setLexState(LexState.EXPR_BEG); return c; case '\\' : c = nextc(); if (c == '\n') { space_seen = 1; continue retry; // skip \\n } pushback(c); return '\\'; case '%' : quotation : for (;;) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q' : return parse_string('"', term, paren); case 'q' : return parse_qstring(term, paren); case 'w' : return parse_quotedwords(term, paren); case 'x' : return parse_string('`', term, paren); case 'r' : return parse_regx(term, paren); default : yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = "%"; //ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$' : ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_' : // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~' : // $~: match-data ph.getLocalIndex(String.valueOf(c)); // fall through case '*' : // $*: argv case '$' : // $$: pid case '?' : // $?: last status case '!' : // $!: error string case '@' : // $@: error position case '/' : // $/: input record separator case '\\' : // $\: output record separator case ';' : // $;: field separator case ',' : // $,: output field separator case '.' : // $.: last read line number case '=' : // $=: ignorecase case ':' : // $:: load path case '<' : // $<: reading filename case '>' : // $>: default output handle case '\"' : // $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); return Token.tGVAR; case '-' : tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); /* xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&' : // $&: last match case '`' : // $`: string before last match case '\'' : // $': string after last match case '+' : // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default : if (!is_identchar(c)) { pushback(c); return '$'; } case '0' : tokadd('$'); } break; case '@' : c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default : if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$' : ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@' : ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default : if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = kw.name; // ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P()) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { ph.setLexState(LexState.EXPR_ARG); } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = tok(); // ruby.intern(tok()); return result; } } | 49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
509,
3476,
67,
15156,
273,
374,
31,
3639,
5323,
2121,
5323,
31,
3639,
3300,
294,
364,
261,
25708,
13,
288,
5411,
1620,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
509,
3476,
67,
15156,
273,
374,
31,
3639,
5323,
2121,
5323,
31,
3639,
3300,
294,
364,
261,
25708,
13,
288,
5411,
1620,
261... |
int n = max>StackMapAttribute.MAX_SIZE ? cr.readInt( off =+ 4) : cr.readUnsignedShort( off =+ 2); | int n = 0; if( max>StackMapAttribute.MAX_SIZE) { n = cr.readInt( off); off += 4; } else { n = cr.readUnsignedShort( off); off += 4; } | private int readTypeInfo( ClassReader cr, int off, List info, Label[] labels, char[] buf, int max) { int n = max>StackMapAttribute.MAX_SIZE ? cr.readInt( off =+ 4) : cr.readUnsignedShort( off =+ 2); for( int j = 0; j<n; j++) { int itemType = cr.readUnsignedShort( off++) & 0xff; StackMapTypeInfo typeInfo = StackMapTypeInfo.getTypeInfo( itemType); info.add( typeInfo); switch( itemType) { case StackMapTypeInfo.ITEM_Object: // typeInfo.setObject( cr.readClass( off =+ 2, buf)); break; case StackMapTypeInfo.ITEM_Uninitialized: // int o = cr.readUnsignedShort( off =+ 2); if( labels[ o]==null) labels[ o] = new Label(); typeInfo.setLabel( labels[ o]); break; } } return off; } | 8320 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8320/f2a1c6f2872a82afd2f2c6d90320f1ef3135eb32/StackMapFrame.java/buggy/asm/src/org/objectweb/asm/attrs/StackMapFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
509,
855,
17305,
12,
1659,
2514,
4422,
16,
509,
3397,
16,
987,
1123,
16,
5287,
8526,
3249,
16,
1149,
8526,
1681,
16,
509,
943,
13,
288,
565,
509,
290,
273,
374,
31,
309,
12,
943... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
855,
17305,
12,
1659,
2514,
4422,
16,
509,
3397,
16,
987,
1123,
16,
5287,
8526,
3249,
16,
1149,
8526,
1681,
16,
509,
943,
13,
288,
565,
509,
290,
273,
374,
31,
309,
12,
943... |
NotImplemented(); | setParam(index, value, java.sql.Types.TIMESTAMP, -1); | public void setTimestamp(int parameterIndex, java.sql.Timestamp x, java.util.Calendar cal) throws java.sql.SQLException { NotImplemented(); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/68d090e16c5812940a9f369b9de5da0f86523923/PreparedStatement_base.java/clean/src.old/main/com/internetcds/jdbc/tds/PreparedStatement_base.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
25251,
12,
474,
7734,
25412,
16,
18701,
2252,
18,
4669,
18,
4921,
619,
16,
18701,
2252,
18,
1367,
18,
7335,
1443,
13,
1377,
1216,
2252,
18,
4669,
18,
23116,
282,
288,
1377,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
25251,
12,
474,
7734,
25412,
16,
18701,
2252,
18,
4669,
18,
4921,
619,
16,
18701,
2252,
18,
1367,
18,
7335,
1443,
13,
1377,
1216,
2252,
18,
4669,
18,
23116,
282,
288,
1377,
2... |
total_header_type=in.readInt(); seq_id=in.readLong(); } | total_header_type=in.readInt(); seq_id=in.readLong(); } | public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { total_header_type=in.readInt(); seq_id=in.readLong(); } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/5ad015d9a78e1da3350d9b398b46b2f5d4508564/TOTAL_OLD.java/clean/src/org/jgroups/protocols/TOTAL_OLD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
855,
6841,
12,
921,
1210,
316,
13,
1216,
1860,
16,
10403,
288,
202,
565,
2078,
67,
3374,
67,
723,
33,
267,
18,
896,
1702,
5621,
202,
565,
3833,
67,
350,
33,
267,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
855,
6841,
12,
921,
1210,
316,
13,
1216,
1860,
16,
10403,
288,
202,
565,
2078,
67,
3374,
67,
723,
33,
267,
18,
896,
1702,
5621,
202,
565,
3833,
67,
350,
33,
267,
18,
... |
public org.quickfix.field.EncodedSecurityDesc getEncodedSecurityDesc() throws FieldNotFound { org.quickfix.field.EncodedSecurityDesc value = new org.quickfix.field.EncodedSecurityDesc(); | public quickfix.field.EncodedSecurityDesc getEncodedSecurityDesc() throws FieldNotFound { quickfix.field.EncodedSecurityDesc value = new quickfix.field.EncodedSecurityDesc(); | public org.quickfix.field.EncodedSecurityDesc getEncodedSecurityDesc() throws FieldNotFound { org.quickfix.field.EncodedSecurityDesc value = new org.quickfix.field.EncodedSecurityDesc(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataIncrementalRefresh.java/clean/src/java/src/quickfix/fix42/MarketDataIncrementalRefresh.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
4368,
4217,
28799,
4368,
4217,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
4368,
4217,
460,
273,
394,
235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
4368,
4217,
28799,
4368,
4217,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
4368,
4217,
460,
273,
394,
235... |
private int clusterProcessedInstance(Instance instance) { | private int clusterProcessedInstance(Instance instance, boolean updateErrors) { | private int clusterProcessedInstance(Instance instance) { double minDist = Integer.MAX_VALUE; int bestCluster = 0; for (int i = 0; i < m_NumClusters; i++) { double dist = distance(instance, m_ClusterCentroids.instance(i)); if (dist < minDist) { minDist = dist; bestCluster = i; } } m_squaredErrors[bestCluster] += minDist; return bestCluster; } | 6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/17ecbc5db2341f345af4e3008700496ffcef6d4c/SimpleKMeans.java/buggy/clusterers/SimpleKMeans.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
509,
2855,
13533,
1442,
12,
1442,
791,
16,
1250,
1089,
4229,
13,
288,
565,
1645,
1131,
5133,
273,
2144,
18,
6694,
67,
4051,
31,
565,
509,
3796,
3629,
273,
374,
31,
565,
364,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
509,
2855,
13533,
1442,
12,
1442,
791,
16,
1250,
1089,
4229,
13,
288,
565,
1645,
1131,
5133,
273,
2144,
18,
6694,
67,
4051,
31,
565,
509,
3796,
3629,
273,
374,
31,
565,
364,
261,
... |
} else if (onResource == ON_SELECTED_RESOURCE_AND_CHILDREN) { | } else if (onResource == ON_SELECTED_AND_CHILDREN) { | private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (workingSet == null) return true; if (resource != null) return isEnclosed(resource); } else if (onResource == ON_ANY_RESOURCE_OF_SAME_PROJECT) { IProject project = resource.getProject(); if (project == null) { return false; } for (int i = 0; i < focusResource.length; i++) { IProject selectedProject = focusResource[i].getProject(); if (selectedProject == null) { continue; } if (project.equals(selectedProject)) return true; } } else if (onResource == ON_SELECTED_RESOURCE_ONLY) { for (int i = 0; i < focusResource.length; i++) { if (resource.equals(focusResource[i])) return true; } } else if (onResource == ON_SELECTED_RESOURCE_AND_CHILDREN) { for (int i = 0; i < focusResource.length; i++) { IResource parentResource = resource; while (parentResource != null) { if (parentResource.equals(focusResource[i])) return true; parentResource = parentResource.getParent(); } } } return false; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d429cef46040235ef9ac2442a0d7364d1bc73be0/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
2027,
858,
6233,
12,
25845,
7078,
5373,
13,
288,
202,
202,
430,
261,
265,
1420,
422,
6229,
67,
15409,
67,
11395,
747,
5373,
422,
446,
13,
1082,
202,
2463,
638,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
2027,
858,
6233,
12,
25845,
7078,
5373,
13,
288,
202,
202,
430,
261,
265,
1420,
422,
6229,
67,
15409,
67,
11395,
747,
5373,
422,
446,
13,
1082,
202,
2463,
638,
31,
202,... |
butClub.setEnabled(enabled); | butClub.setEnabled(enabled); | public void setClubEnabled(boolean enabled) { butClub.setEnabled(enabled); client.getMenuBar().setPhysicalClubEnabled(enabled); } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/9c0b4690fd5c365b3d2d2c585dff4ce1c2a762f1/PhysicalDisplay.java/clean/megamek/src/megamek/client/ui/AWT/PhysicalDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
2009,
373,
1526,
12,
6494,
3696,
13,
288,
202,
202,
12885,
2009,
373,
18,
542,
1526,
12,
5745,
1769,
3639,
1004,
18,
588,
4599,
5190,
7675,
542,
18136,
2009,
373,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
2009,
373,
1526,
12,
6494,
3696,
13,
288,
202,
202,
12885,
2009,
373,
18,
542,
1526,
12,
5745,
1769,
3639,
1004,
18,
588,
4599,
5190,
7675,
542,
18136,
2009,
373,
15... |
PrintWriter out = context.getOut(); LineEditor in = context.getIn(); MessageFormatter formatter = context.getMessageFormatter(); | PrintWriter out = m_context.getOut(); LineEditor in = m_context.getIn(); MessageFormatter formatter = m_context.getMessageFormatter(); | public UnstoredMessage edit(Context context, long replyTo) throws KOMException, InterruptedException { PrintWriter out = context.getOut(); LineEditor in = context.getIn(); MessageFormatter formatter = context.getMessageFormatter(); String oldSubject=null; try { // if this is a reply, retrieve subject from original message // if(replyTo > 0) { oldSubject = context.getSession().innerReadMessage(replyTo).getMessage().getSubject(); } // Read subject // out.print(formatter.format("write.message.subject")); out.flush(); String subject = in.readLine(oldSubject); // Read message body // out.println(formatter.format("write.message.writetext")); StringBuffer sb = new StringBuffer(); for(;;) { String line = in.readLine(); if(line.equals(".")) break; sb.append(line); sb.append('\n'); } return new UnstoredMessage(subject, sb.toString()); } catch(IOException e) { throw new KOMException(formatter.format("error.reading.user.input"), e); } } | 3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/3611fc07ae4f7af9af8cfd539b4ed74e06e40b89/BraindeadMessageEditor.java/buggy/kom/java/nu/rydin/kom/frontend/text/BraindeadMessageEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1351,
22601,
1079,
3874,
12,
1042,
819,
16,
1525,
30934,
13,
202,
202,
15069,
1475,
1872,
503,
16,
7558,
202,
95,
202,
202,
5108,
2289,
596,
273,
819,
18,
588,
1182,
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,
1351,
22601,
1079,
3874,
12,
1042,
819,
16,
1525,
30934,
13,
202,
202,
15069,
1475,
1872,
503,
16,
7558,
202,
95,
202,
202,
5108,
2289,
596,
273,
819,
18,
588,
1182,
5621,
202... |
clinit.getBody().insert(getFactory().RETURN); | clinit.getBody().insert(InstructionConstants.RETURN); | public LazyMethodGen getStaticInitializer() { for (Iterator i = methodGens.iterator(); i.hasNext();) { LazyMethodGen gen = (LazyMethodGen) i.next(); if (gen.getName().equals("<clinit>")) return gen; } LazyMethodGen clinit = new LazyMethodGen( Modifier.STATIC, Type.VOID, "<clinit>", new Type[0], CollectionUtil.NO_STRINGS, this); clinit.getBody().insert(getFactory().RETURN); methodGens.add(clinit); return clinit; } | 7955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7955/990faf8f05daeac1a2ce1de47d832905d3eb1c5e/LazyClassGen.java/clean/org.aspectj/modules/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12805,
1305,
7642,
23414,
14729,
1435,
288,
3639,
364,
261,
3198,
277,
273,
707,
43,
773,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
5411,
12805,
1305,
7642,
3157,
273,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12805,
1305,
7642,
23414,
14729,
1435,
288,
3639,
364,
261,
3198,
277,
273,
707,
43,
773,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
5411,
12805,
1305,
7642,
3157,
273,
261... |
_doc()._reduced.move(getCaretPosition() - _doc()._currentLocation); _doc()._currentLocation = getCaretPosition(); | _doc().setCurrentLocation(getCaretPosition()); | public void caretUpdate(CaretEvent e) { _doc()._reduced.move(getCaretPosition() - _doc()._currentLocation); _doc()._currentLocation = getCaretPosition(); _mainFrame.getStatusBar().setText(""); try { _updateMatchHighlight(); } catch (BadLocationException ex) {} } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/28c4be6b04d5867405916840b451c47e4acad060/DefinitionsView.java/clean/drjava/src/edu/rice/cs/drjava/DefinitionsView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
21683,
1891,
12,
39,
20731,
1133,
425,
13,
288,
1082,
202,
67,
2434,
1435,
6315,
1118,
26372,
18,
8501,
12,
588,
39,
20731,
2555,
1435,
300,
389,
2434,
1435,
6315,
2972,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21683,
1891,
12,
39,
20731,
1133,
425,
13,
288,
1082,
202,
67,
2434,
1435,
6315,
1118,
26372,
18,
8501,
12,
588,
39,
20731,
2555,
1435,
300,
389,
2434,
1435,
6315,
2972,
... |
public static Method getMethod(Class c, String name, Object[] params) throws Exception { // If this is the first time seeing this class // then create a method map for this class and // store it in Hashtable of class method maps. if (!classMethodMaps.containsKey(c)) { // Lots of threads might be whizzing through here, // so we do a double-checked lock, which only involves // synchronization when there's a key-miss. Avoids // doing duplicate work, and constructing objects twice // in particular race conditions // Though, some folks say that double-checked-locking // doesn't necessarily work-as-expected in Java on // multi-proc machines. Doesn't make things worse, // but just doesn't help as much as you'd imagine it // would. Darn re-ordering of instructions. synchronized (classMethodMaps) { if (!classMethodMaps.containsKey(c)) { classMethodMaps.put(c, new ClassMap(c)); } } } return findMethod(c, name, params); } | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/93ed5b3e84203ba9796795da5b242169259213a0/Introspector.java/buggy/src/java/org/apache/velocity/util/introspection/Introspector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2985,
6272,
12,
797,
276,
16,
514,
508,
16,
1033,
8526,
859,
13,
3639,
1216,
1185,
565,
288,
3639,
368,
971,
333,
353,
326,
1122,
813,
2621,
310,
333,
667,
3639,
368,
1508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2985,
6272,
12,
797,
276,
16,
514,
508,
16,
1033,
8526,
859,
13,
3639,
1216,
1185,
565,
288,
3639,
368,
971,
333,
353,
326,
1122,
813,
2621,
310,
333,
667,
3639,
368,
1508,
... | ||
} else if (ev.getSource() == butFire) { | } else if (ev.getActionCommand().equalsIgnoreCase("viewGameOptions")) { if ( client.getGameOptionsDialog().isEditable() ) { client.getGameOptionsDialog().setEditable( false ); } client.getGameOptionsDialog().update(client.game.getOptions()); client.getGameOptionsDialog().show(); } else if (ev.getActionCommand().equalsIgnoreCase("fireFire")) { | public void actionPerformed(ActionEvent ev) { if ( statusBarActionPerformed(ev, client) ) return; if (!client.isMyTurn()) { return; } if (ev.getSource() == butDone) { ready(); } else if (ev.getSource() == butReport) { new MiniReportDisplay(client.frame, client.eotr).show(); return; } else if (ev.getSource() == butFire) { fire(); } else if (ev.getSource() == butSkip) { nextWeapon(); } else if (ev.getSource() == butTwist) { twisting = true; } else if (ev.getSource() == butNext) { selectEntity(client.getNextEntityNum(cen)); } else if (ev.getSource() == butMore) { buttonLayout++; buttonLayout %= NUM_BUTTON_LAYOUTS; setupButtonPanel(); } else if (ev.getSource() == butFindClub) { findClub(); } else if (ev.getSource() == butSpot) { doSpot(); } else if (ev.getSource() == butNextTarg) { jumpToNextTarget(); } else if (ev.getSource() == butFlipArms) { updateFlipArms(!ce().getArmsFlipped()); // Fire Mode - More Fire Mode button handling - Rasia } else if (ev.getSource() == butFireMode) { changeMode(); } } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/ce8144dea6a84334a4e11c70038984a6d634c503/FiringDisplay.java/buggy/megamek/src/megamek/client/ui/AWT/FiringDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
2113,
13,
288,
3639,
309,
261,
1267,
5190,
19449,
12,
14965,
16,
1004,
13,
262,
1850,
327,
31,
5375,
309,
16051,
2625,
18,
291,
12062,
15858,
10756,
288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
2113,
13,
288,
3639,
309,
261,
1267,
5190,
19449,
12,
14965,
16,
1004,
13,
262,
1850,
327,
31,
5375,
309,
16051,
2625,
18,
291,
12062,
15858,
10756,
288,... |
int fieldOffset = fieldRef.peekResolvedField().getOffsetAsInt(); | Offset fieldOffset = fieldRef.peekResolvedField().getOffset(); | protected final void emit_resolved_getfield(VM_FieldReference fieldRef) { int fieldOffset = fieldRef.peekResolvedField().getOffsetAsInt(); if (fieldRef.getSize() == BYTES_IN_INT) { // field is one word asm.emitMOV_Reg_RegDisp(T0, SP, 0); // T0 is object reference asm.emitMOV_Reg_RegDisp(T0, T0, fieldOffset); // T0 is field value asm.emitMOV_RegDisp_Reg(SP, 0, T0); // replace reference with value on stack } else { // field is two words (double or long) if (VM.VerifyAssertions) VM._assert(fieldRef.getSize() == BYTES_IN_LONG); asm.emitMOV_Reg_RegDisp(T0, SP, 0); // T0 is object reference asm.emitMOV_Reg_RegDisp(T1, T0, fieldOffset+WORDSIZE); // T1 is high part of field value asm.emitMOV_RegDisp_Reg(SP, 0, T1); // replace reference with high part of value on stack asm.emitPUSH_RegDisp(T0, fieldOffset); // push low part of field value } } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/c19269673fcdd14e39a92c30e8ccef4cb7ce0402/VM_Compiler.java/clean/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
3626,
67,
11792,
67,
588,
1518,
12,
7397,
67,
974,
2404,
652,
1957,
13,
288,
565,
9874,
652,
2335,
273,
652,
1957,
18,
347,
3839,
12793,
974,
7675,
588,
2335,
5621,
565,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
3626,
67,
11792,
67,
588,
1518,
12,
7397,
67,
974,
2404,
652,
1957,
13,
288,
565,
9874,
652,
2335,
273,
652,
1957,
18,
347,
3839,
12793,
974,
7675,
588,
2335,
5621,
565,... |
self.getValue().equals(((RubyString) other).getValue())); | self.toString().equals(((RubyString) other).toString())); | public IRubyObject invoke(RubyString self, IRubyObject[] args) { IRubyObject other = args[0]; if (other == self) { return self.getRuntime().getTrue(); } else if (!(other instanceof RubyString)) { return self.getRuntime().getNil(); } /* use Java implementation if both different String instances */ return self.getRuntime().newBoolean( self.getValue().equals(((RubyString) other).getValue())); } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/9f2efc63a858fa0507245b207025eab027840a04/StringMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/StringMetaClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
15908,
10340,
921,
4356,
12,
54,
10340,
780,
365,
16,
15908,
10340,
921,
8526,
833,
13,
288,
5411,
15908,
10340,
921,
1308,
273,
833,
63,
20,
15533,
13491,
309,
261,
3011,
422,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15908,
10340,
921,
4356,
12,
54,
10340,
780,
365,
16,
15908,
10340,
921,
8526,
833,
13,
288,
5411,
15908,
10340,
921,
1308,
273,
833,
63,
20,
15533,
13491,
309,
261,
3011,
422,
365,... |
fTableViewer.getTable().select(itemCount -1); | fTableViewer.getTable( ).deselectAll( ); fTableViewer.getTable( ).select( itemCount - 1 ); | private void add( ) { HighlightRuleBuilder builder = new HighlightRuleBuilder( getShell( ), Messages.getString( "HighlightsPage.Dialog.NewHighlight" ), //$NON-NLS-1$ provider ); builder.updateHandle( null, fTableViewer.getTable( ).getItemCount( ) ); builder.setDesignHandle( (DesignElementHandle) model ); if ( builder.open( ) == Window.OK ) { fTableViewer.add( builder.getHandle( ) ); int itemCount = fTableViewer.getTable().getItemCount(); fTableViewer.getTable().deselectAll(); fTableViewer.getTable().select(itemCount -1); fTableViewer.getTable( ).setFocus( ); updateButtons( ); refreshTableItemView( ); } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/9b13ef2ab739bf6e84142ee3792e82399e36ad2d/HighlightsPreferencePage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/HighlightsPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
12,
262,
202,
95,
202,
202,
16205,
2175,
1263,
2089,
273,
394,
31386,
2175,
1263,
12,
7932,
1165,
12,
262,
16,
9506,
202,
5058,
18,
588,
780,
12,
315,
16205,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
12,
262,
202,
95,
202,
202,
16205,
2175,
1263,
2089,
273,
394,
31386,
2175,
1263,
12,
7932,
1165,
12,
262,
16,
9506,
202,
5058,
18,
588,
780,
12,
315,
16205,
87,
... |
statement.setBytes(12,value); | m_doSetBytes(statement,12,value); | public CmsUser addUser(String name, String password, String description, String firstname, String lastname, String email, long lastlogin, long lastused, int flags, Hashtable additionalInfos, CmsGroup defaultGroup, String address, String section, int type) throws CmsException { int id = nextId(C_TABLE_USERS); byte[] value=null; Connection con = null; PreparedStatement statement = null; try { // serialize the hashtable ByteArrayOutputStream bout= new ByteArrayOutputStream(); ObjectOutputStream oout=new ObjectOutputStream(bout); oout.writeObject(additionalInfos); oout.close(); value=bout.toByteArray(); // write data to database con = DriverManager.getConnection(m_poolName); statement = con.prepareStatement(m_cq.get("C_USERS_ADD")); statement.setInt(1,id); statement.setString(2,name); // crypt the password with MD5 statement.setString(3, digest(password)); statement.setString(4, digest("")); statement.setString(5,checkNull(description)); statement.setString(6,checkNull(firstname)); statement.setString(7,checkNull(lastname)); statement.setString(8,checkNull(email)); statement.setTimestamp(9, new Timestamp(lastlogin)); statement.setTimestamp(10, new Timestamp(lastused)); statement.setInt(11,flags); statement.setBytes(12,value); statement.setInt(13,defaultGroup.getId()); statement.setString(14,checkNull(address)); statement.setString(15,checkNull(section)); statement.setInt(16,type); statement.executeUpdate(); } catch (SQLException e){ throw new CmsException("["+this.getClass().getName()+"]"+e.getMessage(),CmsException.C_SQL_ERROR, e); } catch (IOException e){ throw new CmsException("[CmsAccessUserInfoMySql/addUserInformation(id,object)]:"+CmsException. C_SERIALIZATION, e); } finally { // close all db-resources if(statement != null) { try { statement.close(); } catch(SQLException exc) { // nothing to do here } } if(con != null) { try { con.close(); } catch(SQLException exc) { // nothing to do here } } } return readUser(id); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/9fd72a34400be5c3a4576e13300bd1780cb23c9c/CmsDbAccess.java/clean/src/com/opencms/file/genericSql/CmsDbAccess.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
25492,
527,
1299,
12,
780,
508,
16,
514,
2201,
16,
514,
2477,
16,
12900,
514,
1122,
529,
16,
514,
1142,
529,
16,
514,
2699,
16,
12900,
1525,
1142,
5819,
16,
1525,
1142,
3668,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
25492,
527,
1299,
12,
780,
508,
16,
514,
2201,
16,
514,
2477,
16,
12900,
514,
1122,
529,
16,
514,
1142,
529,
16,
514,
2699,
16,
12900,
1525,
1142,
5819,
16,
1525,
1142,
3668,
16,
... |
if( list.length == 0 ) | if( list.length == 0 ) { | public String toString() { try { final String[] list = list(); // empty path return empty string if( list.length == 0 ) return ""; // path containing one or more elements final StringBuffer result = new StringBuffer( list[ 0 ].toString() ); for( int i = 1; i < list.length; i++ ) { result.append( File.pathSeparatorChar ); result.append( list[ i ] ); } return result.toString(); } catch( final TaskException te ) { throw new Error( te.toString() ); } } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/b95d90a13da3fb8d362982bc84652f1e03e8325e/Path.java/buggy/proposal/myrmidon/src/main/org/apache/tools/ant/types/Path.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
565,
288,
3639,
775,
3639,
288,
5411,
727,
514,
8526,
666,
273,
666,
5621,
5411,
368,
1008,
589,
327,
1008,
533,
5411,
309,
12,
666,
18,
2469,
422,
374,
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,
377,
1071,
514,
1762,
1435,
565,
288,
3639,
775,
3639,
288,
5411,
727,
514,
8526,
666,
273,
666,
5621,
5411,
368,
1008,
589,
327,
1008,
533,
5411,
309,
12,
666,
18,
2469,
422,
374,
262,
288,... |
if (!virtualFile.isValid()) return; | if (!virtualFile.isValid()) { if (LOG.isDebugEnabled()) { LOG.debug("installTracker() for file " + virtualFile.getPath() + " failed: virtual file not valid"); } return; } | public void run() { try { alarm.cancelAllRequests(); if (!virtualFile.isValid()) return; final String lastUpToDateContent = getBaseVersionContent(virtualFile); if (lastUpToDateContent == null) return; ApplicationManager.getApplication().invokeLater(new Runnable() { public void run() { if (!myProject.isDisposed()) { synchronized (TRACKERS_LOCK) { ApplicationManager.getApplication().runWriteAction(new Runnable() { public void run() { tracker.initialize(lastUpToDateContent); } }); } } } }); } finally { myLineStatusUpdateAlarms.remove(document); } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/456dc2d485b04df41691ea03538e495cd589c916/ProjectLevelVcsManagerImpl.java/clean/source/com/intellij/openapi/vcs/impl/ProjectLevelVcsManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
1850,
775,
288,
5411,
13721,
18,
10996,
1595,
6421,
5621,
5411,
309,
16051,
12384,
812,
18,
26810,
10756,
288,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
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,
540,
1071,
918,
1086,
1435,
288,
1850,
775,
288,
5411,
13721,
18,
10996,
1595,
6421,
5621,
5411,
309,
16051,
12384,
812,
18,
26810,
10756,
288,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
288,
... |
final CTabFolder newContainer = new CTabFolder(parent, SWT.BOTTOM); | final CTabFolder newContainer = new CTabFolder(parent, SWT.BOTTOM | SWT.FLAT); | private CTabFolder createContainer(Composite parent) { final CTabFolder newContainer = new CTabFolder(parent, SWT.BOTTOM); newContainer.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { int newPageIndex = newContainer.indexOf((CTabItem) e.item); pageChange(newPageIndex); } }); return newContainer;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c1d743930007dd778b4a894ab1d40e9afa6e7fb0/MultiPageEditorPart.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/MultiPageEditorPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
385,
5661,
3899,
752,
2170,
12,
9400,
982,
13,
288,
202,
6385,
385,
5661,
3899,
394,
2170,
273,
394,
385,
5661,
3899,
12,
2938,
16,
348,
8588,
18,
28891,
1769,
202,
2704,
2170,
18,
128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
385,
5661,
3899,
752,
2170,
12,
9400,
982,
13,
288,
202,
6385,
385,
5661,
3899,
394,
2170,
273,
394,
385,
5661,
3899,
12,
2938,
16,
348,
8588,
18,
28891,
1769,
202,
2704,
2170,
18,
128... |
BigInteger results[] = getValue().divideAndRemainder(bigIntValue(other)); | BigInteger results[] = getValue().divideAndRemainder(bigIntValue(other)); | public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } BigInteger results[] = getValue().divideAndRemainder(bigIntValue(other)); if (results[0].compareTo(BigInteger.ZERO) <= 0 && results[1].compareTo(BigInteger.ZERO) != 0) { return bigNorm(getRuntime(), results[0].subtract(BigInteger.ONE)); } return bigNorm(getRuntime(), results[0]); } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/a25fc494ea7daeb4b5b479e0173372332cf7d4ac/RubyBignum.java/buggy/src/org/jruby/RubyBignum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
2892,
12,
7937,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
2892,
12,
7937,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327... |
private void processAnnotated(Annotated annotated) throws SAXException { Enumeration enum = annotated.getAnnotations(); while (enum.hasMoreElements()) processAnnotation( (Annotation) enum.nextElement() ); } //-- processAnnotated /** * Processes the given annotation into events * * @param annotation the annotation to process into events **/ private void processAnnotation(Annotation annotation) throws SAXException { _atts.clear(); String ELEMENT_NAME = "xsd:annotation"; _handler.startElement(ELEMENT_NAME, _atts); Enumeration enum = annotation.getDocumentation(); while (enum.hasMoreElements()) { Documentation doc = (Documentation) enum.nextElement(); String content = doc.getContent(); if ((content != null) && (content.length() > 0)) { char[] chars = content.toCharArray(); _handler.startElement("xsd:documentation", _atts); _handler.characters(chars, 0, chars.length); _handler.endElement("xsd:documentation"); } } | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/7ee630a0e8f0bc9bb27ab645fc4560e9ffbfc73c/SchemaWriter.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/xml/schema/writer/SchemaWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
17985,
12,
17985,
10529,
13,
540,
1216,
14366,
565,
288,
3639,
13864,
2792,
273,
10529,
18,
588,
5655,
5621,
3639,
1323,
261,
7924,
18,
5332,
7417,
3471,
10756,
5411,
1207,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
17985,
12,
17985,
10529,
13,
540,
1216,
14366,
565,
288,
3639,
13864,
2792,
273,
10529,
18,
588,
5655,
5621,
3639,
1323,
261,
7924,
18,
5332,
7417,
3471,
10756,
5411,
1207,... | ||
if (jj_3R_298()) jj_scanpos = xsp; | if (jj_3R_305()) jj_scanpos = xsp; | final private boolean jj_3R_137() { if (jj_scan_token(INTERFACE)) return true; if (jj_scan_token(IDENTIFIER)) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_298()) jj_scanpos = xsp; if (jj_scan_token(LBRACE)) return true; while (true) { xsp = jj_scanpos; if (jj_3R_299()) { jj_scanpos = xsp; break; } } if (jj_scan_token(RBRACE)) return true; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/d443fc629d3f9538d4772fc74e3c6afa936e3ced/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
24942,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
18865,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
24942,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
18865,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16... |
public static Object lookup(Class name) throws NameNotFoundException { return getNameSpace().lookup(name); } | public static Object lookup(Class name) throws NameNotFoundException { return getNameSpace().lookup(name); } | public static Object lookup(Class name) throws NameNotFoundException { return getNameSpace().lookup(name); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/95d080b6dd45e9377ad3ace3a74f8c5e46c8815f/InitialNaming.java/buggy/core/src/core/org/jnode/naming/InitialNaming.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1033,
3689,
12,
797,
508,
13,
225,
202,
15069,
1770,
3990,
288,
202,
202,
2463,
1723,
3819,
7675,
8664,
12,
529,
1769,
202,
97,
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,
225,
202,
482,
760,
1033,
3689,
12,
797,
508,
13,
225,
202,
15069,
1770,
3990,
288,
202,
202,
2463,
1723,
3819,
7675,
8664,
12,
529,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
setBorder(new EtchedBorder()); setBorderPainted(false); setMargin(new Insets(1,1,1,1)); setRequestFocusEnabled(false); | public RolloverButton() { if(OperatingSystem.hasJava15()) setContentAreaFilled(false); if(method != null) { try { method.invoke(this,new Boolean[] { Boolean.TRUE }); } catch(Exception e) { Log.log(Log.ERROR,this,e); } } else { setBorder(new EtchedBorder()); setBorderPainted(false); setMargin(new Insets(1,1,1,1)); setRequestFocusEnabled(false); addMouseListener(new MouseOverHandler()); } } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/7f4890339b1d6a60ac506a228c0f28534f548607/RolloverButton.java/buggy/org/gjt/sp/jedit/gui/RolloverButton.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
11714,
21896,
3616,
1435,
202,
95,
202,
202,
430,
12,
3542,
24811,
18,
5332,
5852,
3600,
10756,
1082,
202,
542,
1350,
5484,
29754,
12,
5743,
1769,
202,
202,
430,
12,
2039,
480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11714,
21896,
3616,
1435,
202,
95,
202,
202,
430,
12,
3542,
24811,
18,
5332,
5852,
3600,
10756,
1082,
202,
542,
1350,
5484,
29754,
12,
5743,
1769,
202,
202,
430,
12,
2039,
480,
... | |
public static WeaponType createCLHeavyLargeLaser() { WeaponType weapon = new WeaponType(); weapon.name = "Heavy Large Laser"; weapon.internalName = "CLHeavyLargeLaser"; weapon.mepName = "N/A"; weapon.mtfName = "CLHeavyLargeLaser"; weapon.heat = 18; weapon.damage = 16; weapon.toHitModifier = 1; weapon.ammoType = AmmoType.T_NA; weapon.minimumRange = WEAPON_NA; weapon.shortRange = 5; weapon.mediumRange = 10; weapon.longRange = 15; weapon.tonnage = 4.0f; weapon.criticals = 3; weapon.flags |= F_LASER | F_DIRECT_FIRE; weapon.bv = 243; return weapon; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/d05f2130c25015ca88066511083759513d50b746/WeaponType.java/clean/megamek/src/megamek/common/WeaponType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
5017,
5256,
23935,
20020,
48,
14558,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
7734,
732,
28629,
18,
529,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
5017,
5256,
23935,
20020,
48,
14558,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
7734,
732,
28629,
18,
529,
273,
315,
... | ||
if (bold.isSelected()) setFontStyle(Font.ITALIC, 0); | if (log.isDebugEnabled()) log.debug("When style item selected "+((String)getValue(NAME)) +" italic state is "+italic.isSelected()); if (italic.isSelected()) setFontStyle(Font.ITALIC, 0); | protected void showPopUp(MouseEvent e) { ours = this; if (icon && popup == null ) { popup = new JPopupMenu(); popup.add(new AbstractAction("Rotate") { public void actionPerformed(ActionEvent e) { namedIcon.setRotation(namedIcon.getRotation()+1, ours); setIcon(namedIcon); } }); popup.add(new AbstractAction("Remove") { public void actionPerformed(ActionEvent e) { remove(); dispose(); } }); } else if (text && popup == null) { popup = new JPopupMenu(); JMenu sizeMenu = new JMenu("Font size"); fontButtonGroup = new ButtonGroup(); addFontMenuEntry(sizeMenu, 6); addFontMenuEntry(sizeMenu, 8); addFontMenuEntry(sizeMenu, 10); addFontMenuEntry(sizeMenu, 12); addFontMenuEntry(sizeMenu, 14); addFontMenuEntry(sizeMenu, 16); addFontMenuEntry(sizeMenu, 20); addFontMenuEntry(sizeMenu, 24); addFontMenuEntry(sizeMenu, 28); addFontMenuEntry(sizeMenu, 32); addFontMenuEntry(sizeMenu, 36); popup.add(sizeMenu); JMenu styleMenu = new JMenu("Font style"); styleMenu.add(italic = newStyleMenuItem(new AbstractAction("Italic") { public void actionPerformed(ActionEvent e) { if (bold.isSelected()) setFontStyle(Font.ITALIC, 0); else setFontStyle(0, Font.ITALIC); } }, Font.ITALIC)); styleMenu.add(bold = newStyleMenuItem(new AbstractAction("Bold") { public void actionPerformed(ActionEvent e) { if (bold.isSelected()) setFontStyle(Font.BOLD, 0); else setFontStyle(0, Font.BOLD); } }, Font.BOLD)); popup.add(styleMenu); JMenu colorMenu = new JMenu("Font color"); colorButtonGroup = new ButtonGroup(); addColorMenuEntry(colorMenu, "Black", Color.black); addColorMenuEntry(colorMenu, "Dark Gray",Color.darkGray); addColorMenuEntry(colorMenu, "Gray",Color.gray); addColorMenuEntry(colorMenu, "Light Gray",Color.lightGray); addColorMenuEntry(colorMenu, "White",Color.white); addColorMenuEntry(colorMenu, "Red",Color.red); addColorMenuEntry(colorMenu, "Orange",Color.orange); addColorMenuEntry(colorMenu, "Yellow",Color.yellow); addColorMenuEntry(colorMenu, "Green",Color.green); addColorMenuEntry(colorMenu, "Blue",Color.blue); addColorMenuEntry(colorMenu, "Magenta",Color.magenta); popup.add(colorMenu); popup.add(new AbstractAction("Remove") { public void actionPerformed(ActionEvent e) { remove(); dispose(); } }); } else log.warn("showPopUp when neither text nor icon true"); // show the result if (popup != null) popup.show(e.getComponent(), e.getX(), e.getY()); } | 213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/56ba17419b82bac186cee8de434f45e037f8509b/PositionableLabel.java/buggy/jmri/jmrit/display/PositionableLabel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2405,
7049,
1211,
12,
9186,
1133,
425,
13,
288,
3639,
3134,
87,
273,
333,
31,
3639,
309,
261,
3950,
597,
10431,
422,
446,
262,
288,
5411,
10431,
273,
394,
804,
13770,
4599,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2405,
7049,
1211,
12,
9186,
1133,
425,
13,
288,
3639,
3134,
87,
273,
333,
31,
3639,
309,
261,
3950,
597,
10431,
422,
446,
262,
288,
5411,
10431,
273,
394,
804,
13770,
4599,
5... |
myWhitespaces.isInSet(myLexems.get(item.myLexemIndex - 1).getTokenType())) { | myWhitespaces.contains(myLexems.get(item.myLexemIndex - 1).getTokenType())) { | public ASTNode getTreeBuilt() { StartMarker rootMarker = (StartMarker)myProduction.get(0); final ASTNode rootNode; if (myFileLevelParsing) { rootNode = new FileElement(rootMarker.myType); myCharTable = ((FileElement)rootNode).getCharTable(); } else { rootNode = new CompositeElement(rootMarker.myType); rootNode.putUserData(CharTable.CHAR_TABLE_KEY, myCharTable); } for (int i = 1; i < myProduction.size() - 1; i++) { ProductionMarker item = myProduction.get(i); if (item instanceof StartMarker) { while (item.myLexemIndex < myLexems.size() && myWhitespaces.isInSet(myLexems.get(item.myLexemIndex).getTokenType())) item.myLexemIndex++; } else if (item instanceof DoneMarker || item instanceof ErrorItem) { int prevProductionLexIndex = myProduction.get(i - 1).myLexemIndex; while (item.myLexemIndex > prevProductionLexIndex && item.myLexemIndex < myLexems.size() && myWhitespaces.isInSet(myLexems.get(item.myLexemIndex - 1).getTokenType())) { item.myLexemIndex--; } } } ASTNode curNode = rootNode; int curToken = 0; int lastErrorIndex = -1; for (int i = 1; i < myProduction.size(); i++) { ProductionMarker item = myProduction.get(i); LOG.assertTrue(curNode != null, "Unexpected end of the production"); int lexIndex = item.myLexemIndex; if (item instanceof StartMarker) { StartMarker marker = (StartMarker)item; curToken = insertLeafs(curToken, lexIndex, curNode); ASTNode childNode = new CompositeElement(marker.myType); TreeUtil.addChildren((CompositeElement)curNode, (TreeElement)childNode); curNode = childNode; } else if (item instanceof DoneMarker) { DoneMarker doneMarker = (DoneMarker)item; curToken = insertLeafs(curToken, lexIndex, curNode); LOG.assertTrue(doneMarker.myStart.myType == curNode.getElementType()); curNode = curNode.getTreeParent(); } else if (item instanceof ErrorItem) { curToken = insertLeafs(curToken, lexIndex, curNode); if (curToken == lastErrorIndex) continue; lastErrorIndex = curToken; final PsiErrorElementImpl errorElement = new PsiErrorElementImpl(); errorElement.setErrorDescription(((ErrorItem)item).myMessage); TreeUtil.addChildren((CompositeElement)curNode, errorElement); } } LOG.assertTrue(curToken == myLexems.size(), "Not all of the tokens inserted to the tree"); LOG.assertTrue(curNode == null, "Unbalanced tree"); return rootNode; } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/4aaf21f520f82bb0b9b582f175802f7063e479b5/PsiBuilderImpl.java/buggy/source/com/intellij/lang/impl/PsiBuilderImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9183,
907,
15867,
16409,
1435,
288,
565,
3603,
7078,
1365,
7078,
273,
261,
1685,
7078,
13,
4811,
31590,
18,
588,
12,
20,
1769,
565,
727,
9183,
907,
10181,
31,
565,
309,
261,
4811,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9183,
907,
15867,
16409,
1435,
288,
565,
3603,
7078,
1365,
7078,
273,
261,
1685,
7078,
13,
4811,
31590,
18,
588,
12,
20,
1769,
565,
727,
9183,
907,
10181,
31,
565,
309,
261,
4811,
... |
return new FtpVFolderRef( this.fvol, FtpTools.fileName( this.path, name ) ); | return new FtpVFolderRef( this.fvol, FtpTools.folderName( this.path, name ) ); | public VFolderRef getVFolderRef( String nam, String ext ) { final String name = FolderNameCodec.FOLDER_NAME_CODEC.encode( nam,ext ); return new FtpVFolderRef( this.fvol, FtpTools.fileName( this.path, name ) ); } | 9770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9770/47d78d7bb839a91efe90c8f6c43fb9557bb76b4e/FtpVFolderRef.java/buggy/core/src/org/openspice/vfs/ftp/FtpVFolderRef.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
776,
3899,
1957,
11031,
3899,
1957,
12,
514,
15135,
16,
514,
1110,
262,
288,
202,
202,
6385,
514,
508,
273,
12623,
461,
11008,
18,
17357,
67,
1985,
67,
5572,
39,
18,
3015,
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,
776,
3899,
1957,
11031,
3899,
1957,
12,
514,
15135,
16,
514,
1110,
262,
288,
202,
202,
6385,
514,
508,
273,
12623,
461,
11008,
18,
17357,
67,
1985,
67,
5572,
39,
18,
3015,
12,... |
throw new IOException("Data is not available"); | throw new IOException(Messages.getString("awt.4F")); | private Object getHTML(DataFlavor f) throws IOException, UnsupportedFlavorException { if (!data.isNativeFormatAtailable(DataProvider.FORMAT_HTML)) { throw new UnsupportedFlavorException(f); } String str = data.getHTML(); if (str == null) { throw new IOException("Data is not available"); } return getTextRepresentation(str, f); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/c4916a7af46cbdb5a69d94b49c3f5669c05d8b4c/DataProxy.java/buggy/modules/awt/src/main/java/common/org/apache/harmony/awt/datatransfer/DataProxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
336,
4870,
12,
751,
2340,
9444,
284,
13,
5411,
1216,
1860,
16,
7221,
2340,
9444,
503,
288,
3639,
309,
16051,
892,
18,
291,
9220,
1630,
861,
1751,
12,
20757,
18,
7254,
67,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
336,
4870,
12,
751,
2340,
9444,
284,
13,
5411,
1216,
1860,
16,
7221,
2340,
9444,
503,
288,
3639,
309,
16051,
892,
18,
291,
9220,
1630,
861,
1751,
12,
20757,
18,
7254,
67,
48... |
if (nssConfig == null) nssConfig = cssConfig; if (nssArgs == null) nssArgs = cssArgs; | if (nssConfig == null) { if (log.isDebugEnabled()) log.debug("Defaulting NSS config to be CSS config"); nssConfig = cssConfig; } if (nssArgs == null) { if (log.isDebugEnabled()) log.debug("Defaulting NSS args to be CSS args"); nssArgs = cssArgs; } if (nssProps == null) { if (log.isDebugEnabled()) log.debug("Defaulting NSS props to be CSS props"); nssProps = cssProps; } | public void doStart() throws Exception { if (nssConfig == null) nssConfig = cssConfig; if (nssArgs == null) nssArgs = cssArgs; ClassLoader savedLoader = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(classLoader); Properties properties = configAdapter.translateToProps(nssConfig); properties.putAll(nssProps); nssORB = ORB.init((String[]) nssArgs.toArray(new String[nssArgs.size()]), properties); threadPool.execute(new Runnable() { public void run() { nssORB.run(); } }); properties = configAdapter.translateToProps(cssConfig); properties.putAll(cssProps); cssORB = ORB.init((String[]) cssArgs.toArray(new String[cssArgs.size()]), properties); org.omg.CORBA.Object ref = cssORB.resolve_initial_references("ORBPolicyManager"); PolicyManager pm = PolicyManagerHelper.narrow(ref); Any cssany = cssORB.create_any(); cssany.insert_Value(cssConfig); Any txany = cssORB.create_any(); txany.insert_Value(buildClientTransactionPolicyConfig()); pm.set_policy_overrides(new Policy[]{cssORB.create_policy(ClientPolicyFactory.POLICY_TYPE, cssany), cssORB.create_policy(ClientTransactionPolicyFactory.POLICY_TYPE, txany)}, SetOverrideType.ADD_OVERRIDE); threadPool.execute(new Runnable() { public void run() { cssORB.run(); } }); } finally { Thread.currentThread().setContextClassLoader(savedLoader); } log.info("Started CORBA Client Security Server - " + description); } | 47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/39e8e289d352de7c6b2b4af33bdb6b84360b0818/CSSBean.java/buggy/openejb2/modules/core/src/java/org/openejb/corba/CSSBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
1685,
1435,
1216,
1185,
288,
3639,
309,
261,
82,
1049,
809,
422,
446,
13,
290,
1049,
809,
273,
3747,
809,
31,
3639,
309,
261,
82,
1049,
2615,
422,
446,
13,
290,
1049,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1685,
1435,
1216,
1185,
288,
3639,
309,
261,
82,
1049,
809,
422,
446,
13,
290,
1049,
809,
273,
3747,
809,
31,
3639,
309,
261,
82,
1049,
2615,
422,
446,
13,
290,
1049,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.