rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
if (function instanceof BaseFunction) { BaseFunction bf = (BaseFunction)function; Ref ref = bf.callRef(cx, scope, thisObj, args); if (ref != null) { return ref;
if (function instanceof RefCallable) { RefCallable rfunction = (RefCallable)function; Ref ref = rfunction.refCall(cx, thisObj, args); if (ref == null) { throw new IllegalStateException(rfunction.getClass().getName()+".refCall() returned null");
public static Ref callRef(Function function, Scriptable thisObj, Object[] args, Context cx, Scriptable scope) { if (function instanceof BaseFunction) { BaseFunction bf = (BaseFunction)function; Ref ref = bf.callRef(cx, scope, thisObj, args); if (ref != null) { return ref; } } // No runtime support for now String msg = getMessage1("msg.no.ref.from.function", toString(function)); throw constructError("ReferenceError", msg); }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/8f901d363ed2edf31a1885784e6ea84dee079051/ScriptRuntime.java/clean/src/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3941, 745, 1957, 12, 2083, 445, 16, 22780, 15261, 16, 17311, 1033, 8526, 833, 16, 1772, 9494, 16, 22780, 2146, 13, 565, 288, 3639, 309, 261, 915, 1276, 3360, 2083, 13, 288, 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, 760, 3941, 745, 1957, 12, 2083, 445, 16, 22780, 15261, 16, 17311, 1033, 8526, 833, 16, 1772, 9494, 16, 22780, 2146, 13, 565, 288, 3639, 309, 261, 915, 1276, 3360, 2083, 13, 288, 5...
if (!(formatspecifier instanceof NumberFormatSpecifier) && !(formatspecifier instanceof JavaNumberFormatSpecifier)) { formatspecifier = NumberFormatSpecifierImpl.create(); }
public void widgetSelected(SelectionEvent e) { if (!bEnableEvents) { return; } if (e.getSource().equals(cmbDataType)) { if (cmbDataType.getText().equals("Number")) { if (!(formatspecifier instanceof NumberFormatSpecifier) && !(formatspecifier instanceof JavaNumberFormatSpecifier)) { formatspecifier = NumberFormatSpecifierImpl.create(); } slDetails.topControl = cmpNumberDetails; } else { if (!(formatspecifier instanceof DateFormatSpecifier) && !(formatspecifier instanceof JavaDateFormatSpecifier)) { formatspecifier = AttributeFactory.eINSTANCE.createDateFormatSpecifier(); } slDetails.topControl = cmpDateDetails; } cmpDetails.layout(); } else if (e.getSource().equals(cmbDateType)) { if (!(formatspecifier instanceof DateFormatSpecifier)) { formatspecifier = AttributeFactory.eINSTANCE.createDateFormatSpecifier(); ((DateFormatSpecifier) formatspecifier).setDetail(DateFormatDetail.get(cmbDateForm.getText())); } ((DateFormatSpecifier) formatspecifier).setType(DateFormatType.get(cmbDateType.getText())); } else if (e.getSource().equals(cmbDateForm)) { if (!(formatspecifier instanceof DateFormatSpecifier)) { formatspecifier = AttributeFactory.eINSTANCE.createDateFormatSpecifier(); ((DateFormatSpecifier) formatspecifier).setType(DateFormatType.get(cmbDateType.getText())); } ((DateFormatSpecifier) formatspecifier).setDetail(DateFormatDetail.get(cmbDateForm.getText())); } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/0c62946adee3c9b3b9437f08261ae8af76dc6141/FormatSpecifierComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 565, 288, 3639, 309, 16051, 70, 8317, 3783, 13, 3639, 288, 5411, 327, 31, 3639, 289, 3639, 309, 261, 73, 18, 588, 1830, 7675, 14963, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 565, 288, 3639, 309, 16051, 70, 8317, 3783, 13, 3639, 288, 5411, 327, 31, 3639, 289, 3639, 309, 261, 73, 18, 588, 1830, 7675, 14963, 12, ...
if (!name.equals("method_missing")) { if (method.getVisibility().isPrivate() && scope == 0) { } else if (method.getVisibility().isProtected()) { RubyModule defined = klass; while (defined.isIncluded()) { defined = defined.getInternalClass(); } if (!ruby.getCurrentFrame().getSelf().isKindOf(defined)) { } } }
public final IRubyObject call(IRubyObject recv, String name, IRubyObject[] args, final int scope) { if (args == null) { args = new IRubyObject[0]; } CacheEntry ent = getRuntime().getMethodCache().getEntry(this, name); if (ent == null) { ent = getMethodBody(name, 0); } if (ent == null || ent.getMethod() == null) { if (scope == 3) { throw new NameError(ruby, "super: no superclass method '" + name + "'"); } IRubyObject[] newArgs = new IRubyObject[args.length + 1]; newArgs[0] = RubySymbol.newSymbol(getRuntime(), name); System.arraycopy(args, 0, newArgs, 1, args.length); return recv.callMethod("method_missing", newArgs); } RubyModule klass = ent.getOrigin(); name = ent.getOriginalName(); ICallable method = ent.getMethod(); // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, name, args, method, false); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/f05423516c2d1bfe54c4363eedb9654f7cfb6898/RubyModule.java/clean/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 15908, 10340, 921, 745, 12, 7937, 10340, 921, 10665, 16, 514, 508, 16, 15908, 10340, 921, 8526, 833, 16, 727, 509, 2146, 13, 288, 3639, 309, 261, 1968, 422, 446, 13, 288, 541...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 745, 12, 7937, 10340, 921, 10665, 16, 514, 508, 16, 15908, 10340, 921, 8526, 833, 16, 727, 509, 2146, 13, 288, 3639, 309, 261, 1968, 422, 446, 13, 288, 541...
l = null;
public void dispose() { SVGOMUseElement ue = (SVGOMUseElement)e; if ((ue != null) && (ue.getCSSImportedElementRoot() != null)) { disposeTree(ue.getCSSImportedElementRoot()); } super.dispose(); if (l != null) { // Remove event listeners EventTarget target = l.target; target.removeEventListener("DOMAttrModified", l, true); target.removeEventListener("DOMNodeInserted", l, true); target.removeEventListener("DOMNodeRemoved", l, true); target.removeEventListener("DOMCharacterDataModified",l, true); } subCtx = null; l = null; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/93537bb43393b3ff0ca6aad05d875091a5a94e6d/SVGUseElementBridge.java/buggy/sources/org/apache/batik/bridge/SVGUseElementBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 15825, 1435, 288, 3639, 11281, 1872, 3727, 1046, 17869, 273, 261, 26531, 1872, 3727, 1046, 13, 73, 31, 3639, 309, 14015, 344, 480, 446, 13, 597, 5411, 261, 344, 18, 588, 10276,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15825, 1435, 288, 3639, 11281, 1872, 3727, 1046, 17869, 273, 261, 26531, 1872, 3727, 1046, 13, 73, 31, 3639, 309, 14015, 344, 480, 446, 13, 597, 5411, 261, 344, 18, 588, 10276,...
initEClass(chartWithAxesEClass, ChartWithAxes.class, "ChartWithAxes", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getChartWithAxes_Axes(), theComponentPackage.getAxis(), null, "axes", null, 2, -1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChartWithAxes_WallFill(), theAttributePackage.getFill(), null, "wallFill", null, 1, 1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChartWithAxes_FloorFill(), theAttributePackage.getFill(), null, "floorFill", null, 1, 1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChartWithAxes_Orientation(), theAttributePackage.getOrientation(), "orientation", "Horizontal", 1, 1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChartWithAxes_UnitSpacing(), theAttributePackage.getPercentage(), "unitSpacing", null, 1, 1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(chartWithAxesEClass, ChartWithAxes.class, "ChartWithAxes", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getChartWithAxes_Axes(), theComponentPackage.getAxis(), null, "axes", null, 2, -1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChartWithAxes_WallFill(), theAttributePackage.getFill(), null, "wallFill", null, 1, 1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChartWithAxes_FloorFill(), theAttributePackage.getFill(), null, "floorFill", null, 1, 1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChartWithAxes_Orientation(), theAttributePackage.getOrientation(), "orientation", "Horizontal", 1, 1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChartWithAxes_UnitSpacing(), theAttributePackage.getPercentage(), "unitSpacing", null, 1, 1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Obtain other dependent packages XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); AttributePackageImpl theAttributePackage = (AttributePackageImpl)EPackage.Registry.INSTANCE.getEPackage(AttributePackage.eNS_URI); LayoutPackageImpl theLayoutPackage = (LayoutPackageImpl)EPackage.Registry.INSTANCE.getEPackage(LayoutPackage.eNS_URI); DataPackageImpl theDataPackage = (DataPackageImpl)EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI); ComponentPackageImpl theComponentPackage = (ComponentPackageImpl)EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI); // Add supertypes to classes chartWithAxesEClass.getESuperTypes().add(this.getChart()); chartWithoutAxesEClass.getESuperTypes().add(this.getChart()); // Initialize classes and features; add operations and parameters initEClass(chartEClass, Chart.class, "Chart", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getChart_Version(), theXMLTypePackage.getString(), "version", null, 1, 1, Chart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChart_Type(), theXMLTypePackage.getString(), "type", null, 1, 1, Chart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChart_SubType(), theXMLTypePackage.getString(), "subType", null, 1, 1, Chart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChart_Description(), theAttributePackage.getText(), null, "description", null, 0, 1, Chart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChart_Block(), theLayoutPackage.getBlock(), null, "block", null, 1, 1, Chart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChart_Dimension(), theAttributePackage.getChartDimension(), "dimension", "Two_Dimensional", 1, 1, Chart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChart_Script(), theXMLTypePackage.getString(), "script", null, 1, 1, Chart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChart_Units(), theXMLTypePackage.getString(), "units", null, 0, 1, Chart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChart_SeriesThickness(), theAttributePackage.getPercentage(), "seriesThickness", null, 0, 1, Chart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChart_SeriesHints(), theAttributePackage.getSeriesHint(), null, "seriesHints", null, 0, 1, Chart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChart_GridColumnCount(), theXMLTypePackage.getInt(), "gridColumnCount", null, 1, 1, Chart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChart_ExtendedProperties(), theAttributePackage.getExtendedProperty(), null, "extendedProperties", null, 1, -1, Chart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChart_SampleData(), theDataPackage.getSampleData(), null, "sampleData", null, 0, 1, Chart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(chartWithAxesEClass, ChartWithAxes.class, "ChartWithAxes", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getChartWithAxes_Axes(), theComponentPackage.getAxis(), null, "axes", null, 2, -1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChartWithAxes_WallFill(), theAttributePackage.getFill(), null, "wallFill", null, 1, 1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChartWithAxes_FloorFill(), theAttributePackage.getFill(), null, "floorFill", null, 1, 1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChartWithAxes_Orientation(), theAttributePackage.getOrientation(), "orientation", "Horizontal", 1, 1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChartWithAxes_UnitSpacing(), theAttributePackage.getPercentage(), "unitSpacing", null, 1, 1, ChartWithAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(chartWithoutAxesEClass, ChartWithoutAxes.class, "ChartWithoutAxes", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getChartWithoutAxes_SeriesDefinitions(), theDataPackage.getSeriesDefinition(), null, "seriesDefinitions", null, 1, -1, ChartWithoutAxes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); // Create resource createResource(eNS_URI); // Create annotations // http:///org/eclipse/emf/ecore/util/ExtendedMetaData createExtendedMetaDataAnnotations(); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ModelPackageImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ModelPackageImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 2261, 6323, 1435, 565, 288, 3639, 309, 261, 291, 11459, 13, 327, 31, 3639, 25359, 273, 638, 31, 3639, 368, 9190, 2181, 3639, 6788, 12, 73, 1985, 1769, 3639, 444, 10386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 2261, 6323, 1435, 565, 288, 3639, 309, 261, 291, 11459, 13, 327, 31, 3639, 25359, 273, 638, 31, 3639, 368, 9190, 2181, 3639, 6788, 12, 73, 1985, 1769, 3639, 444, 10386, ...
protected void virtualMaterializeItem(TreeItem treeItem) {
private void virtualMaterializeItem(TreeItem treeItem) {
protected void virtualMaterializeItem(TreeItem treeItem) { if (treeItem.getData() != null) { // already materialized return; } if (!(getContentProvider() instanceof ILazyTreeContentProvider)) { return; } ILazyTreeContentProvider lazyTreeContentProvider = (ILazyTreeContentProvider) getContentProvider(); int index; Widget parent = treeItem.getParentItem(); if (parent == null) { parent = treeItem.getParent(); } Object parentElement = parent.getData(); if (parentElement != null) { if (parent instanceof Tree) { index = ((Tree) parent).indexOf(treeItem); } else { index = ((TreeItem) parent).indexOf(treeItem); } lazyTreeContentProvider.updateElement(parentElement, index); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/623c80769a41b43f850b1a1b15fd1bb215aa0126/TreeViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 5024, 49, 31624, 1180, 12, 2471, 1180, 2151, 1180, 13, 288, 202, 202, 430, 261, 3413, 1180, 18, 588, 751, 1435, 480, 446, 13, 288, 1082, 202, 759, 1818, 9390, 1235, 1082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 5024, 49, 31624, 1180, 12, 2471, 1180, 2151, 1180, 13, 288, 202, 202, 430, 261, 3413, 1180, 18, 588, 751, 1435, 480, 446, 13, 288, 1082, 202, 759, 1818, 9390, 1235, 1082...
slashName,
generatedClassName,
private void generateExecute(Context cx) { cfw.startMethod("exec", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;", (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); final byte ALOAD_CONTEXT = ByteCode.ALOAD_1; final byte ALOAD_SCOPE = ByteCode.ALOAD_2; String slashName = generatedClassName.replace('.', '/'); // to begin a script, call the initScript method cfw.add(ByteCode.ALOAD_0); // load 'this' cfw.add(ALOAD_SCOPE); cfw.add(ALOAD_CONTEXT); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, slashName, "initScript", "(Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;" +")V"); cfw.add(ByteCode.ALOAD_0); // load 'this' cfw.add(ALOAD_CONTEXT); cfw.add(ALOAD_SCOPE); cfw.add(ByteCode.DUP); cfw.add(ByteCode.ACONST_NULL); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, slashName, "call", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;" +")Ljava/lang/Object;"); cfw.add(ByteCode.ARETURN); // 3 = this + context + scope cfw.stopMethod((short)3, null); }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/df6e3ed45793449d4d2f8ff32a2c6552165f2303/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 5289, 12, 1042, 9494, 13, 565, 288, 3639, 6080, 91, 18, 1937, 1305, 2932, 4177, 3113, 17311, 7751, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 1042, 4868, 17311, 397, 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, 918, 2103, 5289, 12, 1042, 9494, 13, 565, 288, 3639, 6080, 91, 18, 1937, 1305, 2932, 4177, 3113, 17311, 7751, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 1042, 4868, 17311, 397, 6, ...
public boolean eIsSet( EStructuralFeature eFeature )
public boolean eIsSet( int featureID )
public boolean eIsSet( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case DataPackage.ACTION__TYPE : return isSetType( ); case DataPackage.ACTION__VALUE : return value != null; } return eDynamicIsSet( eFeature ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/036e8c78765730b146e5854b9d6c397a296fed86/ActionImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/data/impl/ActionImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 20372, 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, 1910, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 20372, 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, 1910, 22...
this.breakOnReturn = value;
dim.breakOnReturn = value;
public void setBreakOnReturn(boolean value) { this.breakOnReturn = value; }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/73fd9eb93275e351c71f43b3daa62b337c492a93/Main.java/clean/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 7634, 1398, 990, 12, 6494, 460, 13, 288, 3639, 2464, 18, 8820, 1398, 990, 273, 460, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 7634, 1398, 990, 12, 6494, 460, 13, 288, 3639, 2464, 18, 8820, 1398, 990, 273, 460, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
public Collection getStoredTopNodeGroups(User user){ try { return getTopNodeGroupHome().getTopNodeGroups(user); } catch (IDORelationshipException e) { e.printStackTrace(); } return null; }
public Collection getStoredTopNodeGroups(User user) { try { return getTopNodeGroupHome().getTopNodeGroups(user); } catch (IDORelationshipException e) { e.printStackTrace(); } return null; }
public Collection getStoredTopNodeGroups(User user){ try { return getTopNodeGroupHome().getTopNodeGroups(user); } catch (IDORelationshipException e) { e.printStackTrace(); } return null; }
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/21dcc2ab672cd5cc52a7f8a072e86fed3aa20ecc/UserBusinessBean.java/buggy/src/java/com/idega/user/business/UserBusinessBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2200, 15818, 72, 3401, 907, 3621, 12, 1299, 729, 15329, 377, 775, 288, 3639, 327, 13729, 907, 1114, 8684, 7675, 588, 3401, 907, 3621, 12, 1355, 1769, 565, 289, 1044, 261, 734, 916, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2200, 15818, 72, 3401, 907, 3621, 12, 1299, 729, 15329, 377, 775, 288, 3639, 327, 13729, 907, 1114, 8684, 7675, 588, 3401, 907, 3621, 12, 1355, 1769, 565, 289, 1044, 261, 734, 916, ...
public static void addEventParm(Event event, String parmName, String parmValue) { Parms parms = event.getParms(); if (parms == null) { parms = new Parms(); event.setParms(parms); } Parm parm = new Parm(); parm.setParmName(parmName); Value value = new Value(); value.setContent(parmValue); parm.setValue(value); parms.addParm(parm);
public static void addEventParm(Event event, String parmName, int parmValue) { addEventParm(event, parmName, String.valueOf(parmValue));
public static void addEventParm(Event event, String parmName, String parmValue) { Parms parms = event.getParms(); if (parms == null) { parms = new Parms(); event.setParms(parms); } Parm parm = new Parm(); parm.setParmName(parmName); Value value = new Value(); value.setContent(parmValue); parm.setValue(value); parms.addParm(parm); }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/0d2bf16b00831ddc6436e4079efe28442e2cbef1/MockUtil.java/buggy/src/services/org/opennms/netmgt/mock/MockUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 21781, 27144, 12, 1133, 871, 16, 514, 19924, 461, 16, 514, 19924, 620, 13, 288, 3639, 2280, 959, 17902, 273, 871, 18, 588, 28572, 5621, 3639, 309, 261, 29927, 422, 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, 1071, 760, 918, 21781, 27144, 12, 1133, 871, 16, 514, 19924, 461, 16, 514, 19924, 620, 13, 288, 3639, 2280, 959, 17902, 273, 871, 18, 588, 28572, 5621, 3639, 309, 261, 29927, 422, 446, ...
if (pickMode) gl.glPopName();
public int createTubesOnEdgesAsDL(IndexedLineSet ils, double rad, double alpha, JOGLRenderer jr, int sig, boolean pickMode, boolean useDisplayLists) { GL gl = jr.globalGL; double[] p1 = new double[4], p2 = new double[4]; p1[3] = p2[3] = 1.0; double[][] oneCurve = null; double[][] crossSection = TubeUtility.octagonalCrossSection; if (jr.openGLState.levelOfDetail == 0.0) crossSection = TubeUtility.diamondCrossSection; int n = ils.getNumEdges(); DataList vertices = ils.getVertexAttributes(Attribute.COORDINATES); if (ils.getNumPoints() <= 1) return -1;// JOGLConfiguration.theLog.log(Level.FINE,"Creating tubes for "+ils.getName()); if (tubeDL == null) { tubeDL = new int[3]; } if (tubeDL[sig+1] == 0) { tubeDL[sig+1] = gl.glGenLists(1); gl.glNewList(tubeDL[sig+1], GL.GL_COMPILE); jr.helper.drawFaces(TubeUtility.urTube[sig+1], smoothShading , alpha ); gl.glEndList(); } int nextDL = -1; if (useDisplayLists) { nextDL = gl.glGenLists(1); gl.glNewList(nextDL, GL.GL_COMPILE); } int k, l; DoubleArray da; double[] mat = new double[16]; for (int i = 0; i<n; ++i) { IntArray ia = ils.getEdgeAttributes(Attribute.INDICES).item(i).toIntArray(); DataList edgec = ils.getEdgeAttributes(Attribute.COLORS); int m = ia.size(); if (pickMode) gl.glPushName(i); if (m == 2 || pickMode) { // probably an IndexedFaceSet DoubleArray edgecolor = null; int clength = 3; if (edgec != null) { edgecolor = edgec.item(i).toDoubleArray(); clength = edgecolor.size(); if (clength == 3) gl.glColor3d(edgecolor.getValueAt(0), edgecolor.getValueAt(1), edgecolor.getValueAt(2)); else gl.glColor4d(edgecolor.getValueAt(0), edgecolor.getValueAt(1), edgecolor.getValueAt(2), edgecolor.getValueAt(3)); } for (int j = 0; j<m-1; ++j) { k = ia.getValueAt(j); da = vertices.item(k).toDoubleArray(); l = da.size(); for (int xx=0; xx<l; ++xx) p1[xx] = da.getValueAt(xx); k = ia.getValueAt(j+1); da = vertices.item(k).toDoubleArray(); l = da.size(); for (int xx=0; xx<l; ++xx) p2[xx] = da.getValueAt(xx); SceneGraphComponent cc = TubeUtility.tubeOneEdge(p1, p2, rad, crossSection, sig); if (pickMode) gl.glPushName(j); gl.glPushMatrix(); gl.glMultTransposeMatrixd(cc.getTransformation().getMatrix(mat)); gl.glCallList(tubeDL[sig+1]); gl.glPopMatrix(); if (pickMode) gl.glPopName(); } } else { // the assumption is that this is a genuine IndexedLineSet (not subclass with faces) oneCurve = IndexedLineSetUtility.extractCurve(oneCurve, ils, i); PolygonalTubeFactory ptf = new PolygonalTubeFactory(oneCurve); ptf.setClosed(false); ptf.setCrossSection(crossSection); ptf.setFrameFieldType(tubeStyle); ptf.setSignature(sig); ptf.setRadius(rad); ptf.update(); IndexedFaceSet tube = ptf.getTube(); if (tube != null) { jr.helper.drawFaces(tube, smoothShading, alpha); } } if (pickMode) gl.glPopName(); } if (pickMode) gl.glPopName(); if (useDisplayLists) gl.glEndList(); return nextDL; }
25414 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25414/b7e7acfd437fcc628868cf9f41c51ae0951c3a88/DefaultLineShader.java/buggy/src-jogl/de/jreality/jogl/shader/DefaultLineShader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 752, 56, 23317, 1398, 10697, 1463, 8914, 12, 15034, 1670, 694, 277, 3251, 16, 1645, 6719, 16, 225, 1645, 4190, 16, 804, 51, 11261, 6747, 31928, 16, 509, 3553, 16, 1250, 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, 225, 202, 482, 509, 752, 56, 23317, 1398, 10697, 1463, 8914, 12, 15034, 1670, 694, 277, 3251, 16, 1645, 6719, 16, 225, 1645, 4190, 16, 804, 51, 11261, 6747, 31928, 16, 509, 3553, 16, 1250, 6...
}
}
public String getmessage () { return res.message; }
46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/289f87d5ff3a4ebcafe98543ad52c37a38709f1e/ResponseBean.java/clean/src/helma/framework/ResponseBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 336, 2150, 1832, 288, 202, 2463, 400, 18, 2150, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 336, 2150, 1832, 288, 202, 2463, 400, 18, 2150, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return (mapping.findForward(null));
return (mapping.findForward("error"));
public ActionForward perform( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // Identify the request parameter containing the method name // If none defined, use "def" String parameter = mapping.getParameter(); if (parameter == null) { parameter = "def"; } // Identify the method name to be dispatched to String name = request.getParameter(parameter); if (name == null) { String msg = "Definition dispatcher action : can't get parameter '" + parameter + "'."; printError( response, msg ); return (null); } // Try to dispatch to requested definition try { // Read definition from factory, but we can create it here. ComponentDefinition definition = DefinitionsUtil.getDefinition( name, request, getServlet().getServletContext() ); DefinitionsUtil.setActionDefinition( request, definition); } catch( FactoryNotFoundException ex ) { printError( response, "Error - DefinitionDispatcherAction : Can't get definition factory."); return (mapping.findForward(null)); } catch( NoSuchDefinitionException ex ) { printError( response, "Error - DefinitionDispatcherAction : Can't get definition '" + name +"'."); return (mapping.findForward(null)); } catch( DefinitionsFactoryException ex ) { printError( response, "Error - DefinitionDispatcherAction : General error '" + ex.getMessage() +"'."); return (mapping.findForward(null)); } return (mapping.findForward(null)); }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/596a25567b2658e0bffbc3397de7d9043b696735/DefinitionDispatcherAction.java/buggy/contrib/tiles/src/share/org/apache/struts/tiles/actions/DefinitionDispatcherAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 3073, 12, 4766, 4382, 3233, 2874, 16, 4766, 4382, 1204, 646, 16, 4766, 9984, 590, 16, 4766, 12446, 766, 13, 12900, 1216, 1860, 16, 16517, 565, 288, 3639, 368, 25622, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 3073, 12, 4766, 4382, 3233, 2874, 16, 4766, 4382, 1204, 646, 16, 4766, 9984, 590, 16, 4766, 12446, 766, 13, 12900, 1216, 1860, 16, 16517, 565, 288, 3639, 368, 25622, 326...
SimpleListValidator validator = SimpleListValidator.getInstance( ); triggerDefn = new SemanticTriggerDefn( SimpleListValidator.NAME );
SimpleListValidator validator = SimpleListValidator .getInstance( ); triggerDefn = new SemanticTriggerDefn( SimpleListValidator.NAME );
void build( ) throws MetaDataException { // Ensure we can find the property type. if ( getType( ) == null ) throw new MetaDataException( new String[]{name}, MetaDataException.DESIGN_EXCEPTION_PROP_TYPE_ERROR ); displayNameID = StringUtil.trimString( displayNameID ); // Perform type-specific initialization. switch ( getTypeCode( ) ) { case PropertyType.CHOICE_TYPE : // Build the set of choices. The list is required if this // property // is a choice property, and is not allowed otherwise. if ( getChoices( ) == null ) throw new MetaDataException( new String[]{name}, MetaDataException.DESIGN_EXCEPTION_MISSING_PROP_CHOICES ); break; case PropertyType.STRUCT_TYPE : // A structure definition must be provided. if ( details == null ) throw new MetaDataException( new String[]{name, definedBy( ).getName( )}, MetaDataException.DESIGN_EXCEPTION_MISSING_STRUCT_DEFN ); // Look up a string name reference. if ( details instanceof String ) { MetaDataDictionary dd = MetaDataDictionary.getInstance( ); StructureDefn structDefn = (StructureDefn) dd .getStructure( StringUtil .trimString( (String) details ) ); details = structDefn; } if ( isList( ) ) { StructureListValidator validator = StructureListValidator .getInstance( ); SemanticTriggerDefn triggerDefn = new SemanticTriggerDefn( StructureListValidator.NAME ); triggerDefn.setPropertyName( getName( ) ); triggerDefn.setValidator( validator ); getTriggerDefnSet( ).add( triggerDefn ); } else { StructureValidator validator = StructureValidator .getInstance( ); SemanticTriggerDefn triggerDefn = new SemanticTriggerDefn( StructureValidator.NAME ); triggerDefn.setPropertyName( getName( ) ); triggerDefn.setValidator( validator ); getTriggerDefnSet( ).add( triggerDefn ); } break; case PropertyType.ELEMENT_REF_TYPE : buildElementType( ); break; case PropertyType.STRUCT_REF_TYPE : // A structure definition must be provided. if ( details == null ) throw new MetaDataException( new String[]{name}, MetaDataException.DESIGN_EXCEPTION_MISSING_STRUCT_DEFN ); // Look up a string name reference. if ( details instanceof String ) { MetaDataDictionary dd = MetaDataDictionary.getInstance( ); StructureDefn structDefn = (StructureDefn) dd .getStructure( StringUtil .trimString( (String) details ) ); details = structDefn; } // the structure must be defined in the ReportDesign MetaDataDictionary dd = MetaDataDictionary.getInstance( ); IElementDefn report = dd .getElement( ReportDesignConstants.REPORT_DESIGN_ELEMENT ); List properties = report.getProperties( ); boolean isFound = false; for ( int i = 0; i < properties.size( ); i++ ) { IPropertyDefn property = (IPropertyDefn) properties.get( i ); if ( property.getTypeCode( ) == PropertyType.STRUCT_TYPE ) { if ( property.getStructDefn( ) == getStructDefn( ) ) { isFound = true; break; } } } if ( !isFound ) throw new MetaDataException( new String[]{name}, MetaDataException.DESIGN_EXCEPTION_UNREFERENCABLE_STRUCT_DEFN ); SemanticTriggerDefn triggerDefn = new SemanticTriggerDefn( StructureReferenceValidator.NAME ); triggerDefn.setPropertyName( getName( ) ); triggerDefn.setValidator( StructureReferenceValidator .getInstance( ) ); getTriggerDefnSet( ).add( triggerDefn ); break; case PropertyType.LIST_TYPE : // list property must provide the subtype if ( subType == null ) throw new MetaDataException( new String[]{name}, MetaDataException.DESIGN_EXCEPTION_MISSING_SUB_TYPE ); // check the subtype, not all simple types are supported if ( !getSupportedSubTypes( ).contains( subType ) ) throw new MetaDataException( new String[]{name, subType.getName( )}, MetaDataException.DESIGN_EXCEPTION_UNSUPPORTED_SUB_TYPE ); // add the simple list validator // TODO exclude the style property SimpleListValidator validator = SimpleListValidator.getInstance( ); triggerDefn = new SemanticTriggerDefn( SimpleListValidator.NAME ); triggerDefn.setPropertyName( getName( ) ); triggerDefn.setValidator( validator ); getTriggerDefnSet( ).add( triggerDefn ); // sub-type is element, then do some checks for it if ( subType.getTypeCode( ) == PropertyType.ELEMENT_REF_TYPE ) buildElementType( ); break; } if ( isValueRequired( ) ) { SemanticTriggerDefn triggerDefn = new SemanticTriggerDefn( ValueRequiredValidator.NAME ); triggerDefn.setPropertyName( getName( ) ); triggerDefn.setValidator( ValueRequiredValidator.getInstance( ) ); getTriggerDefnSet( ).add( triggerDefn ); } if ( getValueType( ) == EXTENSION_MODEL_PROPERTY || getValueType( ) == EXTENSION_PROPERTY ) { SemanticTriggerDefn triggerDefn = new SemanticTriggerDefn( ExtensionValidator.NAME ); triggerDefn.setPropertyName( getName( ) ); triggerDefn.setValidator( ExtensionValidator.getInstance( ) ); getTriggerDefnSet( ).add( triggerDefn ); } if ( getTypeCode( ) != PropertyType.LIST_TYPE && subType != null ) { // only when the type is list, the subtype is set throw new MetaDataException( new String[]{name}, MetaDataException.DESIGN_EXCEPTION_SUB_TYPE_FORBIDDEN ); } if ( getTypeCode( ) != PropertyType.STRUCT_TYPE && isList == true ) { // only support list of structures. throw new MetaDataException( new String[]{getType( ).getName( )}, MetaDataException.DESIGN_EXCEPTION_INVALID_LIST_TYPE ); } // if the property has a defalut value, validate it again. At this time, // it will be validated against the allowed choices. if ( defaultValue != null ) { try { validateXml( null, defaultValue.toString( ) ); } catch ( PropertyValueException e ) { throw new MetaDataException( new String[]{name, defaultValue.toString( )}, MetaDataException.DESIGN_EXCEPTION_INVALID_DEFAULT_VALUE ); } } // ensure that the validator is defined in the dictionary. if ( valueValidator != null ) { MetaDataDictionary dict = MetaDataDictionary.getInstance( ); if ( dict.getValueValidator( valueValidator ) == null ) throw new MetaDataException( new String[]{valueValidator, name}, MetaDataException.DESIGN_EXCEPTION_VALIDATOR_NOT_FOUND ); } getTriggerDefnSet( ).build( ); // default unit check if ( getTypeCode( ) == PropertyType.DIMENSION_TYPE || ( getTypeCode( ) == PropertyType.LIST_TYPE && subType .getTypeCode( ) == PropertyType.DIMENSION_TYPE ) ) { String defaultUnit = getDefaultUnit( ); if ( !StringUtil.isBlank( defaultUnit ) ) { IChoiceSet units = getAllowedChoices( ); IChoice choice = units.findChoice( defaultUnit ); if ( choice == null ) { setDefaultUnit( DimensionValue.DEFAULT_UNIT ); throw new MetaDataException( new String[]{getName( ), defaultUnit}, MetaDataException.DESIGN_EXCEPTION_INVALID_UNIT ); } } } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e7114ad5bbd4556bfe90ad8fef8d73f7007b3bbf/PropertyDefn.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/metadata/PropertyDefn.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1361, 12, 262, 1216, 6565, 22480, 202, 95, 202, 202, 759, 7693, 732, 848, 1104, 326, 1272, 618, 18, 202, 202, 430, 261, 3130, 12, 262, 422, 446, 262, 1082, 202, 12849, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1361, 12, 262, 1216, 6565, 22480, 202, 95, 202, 202, 759, 7693, 732, 848, 1104, 326, 1272, 618, 18, 202, 202, 430, 261, 3130, 12, 262, 422, 446, 262, 1082, 202, 12849, 394, ...
public boolean isGreaterThanOrEqual( final DeweyDecimal other ) { final int max = Math.max( other.m_components.length, m_components.length ); for( int i = 0; i < max; i++ ) { final int component1 = ( i < m_components.length ) ? m_components[ i ] : 0; final int component2 = ( i < other.m_components.length ) ? other.m_components[ i ] : 0; if( component2 > component1 ) { return false; } if( component2 < component1 ) { return true; } } return true; // Exact match }
2044 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2044/e622ff134f94da7c133006a05d0aab68115a1013/DeweyDecimal.java/clean/scm/loom/support/extension/src/java/org/realityforge/extension/DeweyDecimal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6494, 291, 28130, 22376, 12, 6385, 40, 359, 402, 5749, 3011, 15329, 6385, 474, 1896, 33, 10477, 18, 1896, 12, 3011, 18, 81, 67, 8119, 18, 2469, 16, 81, 67, 8119, 18, 2469, 1769, 1884, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6494, 291, 28130, 22376, 12, 6385, 40, 359, 402, 5749, 3011, 15329, 6385, 474, 1896, 33, 10477, 18, 1896, 12, 3011, 18, 81, 67, 8119, 18, 2469, 16, 81, 67, 8119, 18, 2469, 1769, 1884, ...
char c; boolean negate = false; int i = 0; if (len > 0 && (c = str.charAt(0)) == '-') { negate = true; i = 1; } if (len > 0 && '0' <= (c = str.charAt(i)) && c <= '9' && len <= MAX_VALUE_LENGTH) { int index = c - '0'; int oldIndex = 0; i++; if (index != 0) { while (i < len && '0' <= (c = str.charAt(i)) && c <= '9') { oldIndex = index; index = 10*index + (c - '0'); i++; }
if (len > 0) { int i = 0; boolean negate = false; int c = str.charAt(0); if (c == '-') { if (len > 1) { c = str.charAt(1); i = 1; negate = true; }
private static int indexFromString(String str) { /* It must be a string. */ int len = str.length(); char c; boolean negate = false; int i = 0; if (len > 0 && (c = str.charAt(0)) == '-') { negate = true; i = 1; } if (len > 0 && '0' <= (c = str.charAt(i)) && c <= '9' && len <= MAX_VALUE_LENGTH) { int index = c - '0'; int oldIndex = 0; i++; if (index != 0) { while (i < len && '0' <= (c = str.charAt(i)) && c <= '9') { oldIndex = index; index = 10*index + (c - '0'); i++; } } /* Make sure all characters were consumed and that it couldn't * have overflowed. */ if (i == len && (oldIndex < (Integer.MAX_VALUE / 10) || (oldIndex == (Integer.MAX_VALUE / 10) && c < (Integer.MAX_VALUE % 10)))) { return negate ? -index : index; } } return NO_INDEX; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/5e0b2ebaed49fc9dc92fb0127fd9256424173c6e/ScriptRuntime.java/clean/js/rhino/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 770, 9193, 12, 780, 609, 13, 288, 3639, 1748, 2597, 1297, 506, 279, 533, 18, 1195, 3639, 509, 562, 273, 609, 18, 2469, 5621, 3639, 1149, 276, 31, 3639, 1250, 15626, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 770, 9193, 12, 780, 609, 13, 288, 3639, 1748, 2597, 1297, 506, 279, 533, 18, 1195, 3639, 509, 562, 273, 609, 18, 2469, 5621, 3639, 1149, 276, 31, 3639, 1250, 15626, 273,...
public Value computeValue(CSSStylableElement elt, CSSEngine engine, int idx, Value value) { if (value.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE) { switch (value.getPrimitiveType()) { case CSSPrimitiveValue.CSS_NUMBER: case CSSPrimitiveValue.CSS_PX: return value;
public Value computeValue( CSSStylableElement elt, CSSEngine engine, int idx, Value value ) { if ( value.getCssValueType( ) == CSSValue.CSS_PRIMITIVE_VALUE ) { switch ( value.getPrimitiveType( ) ) { case CSSPrimitiveValue.CSS_NUMBER : return value;
public Value computeValue(CSSStylableElement elt, CSSEngine engine, int idx, Value value) { if (value.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE) { switch (value.getPrimitiveType()) { case CSSPrimitiveValue.CSS_NUMBER: case CSSPrimitiveValue.CSS_PX: return value; case CSSPrimitiveValue.CSS_MM: CSSContext ctx = engine.getCSSContext(); float v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v / ctx.getPixelUnitToMillimeter()); case CSSPrimitiveValue.CSS_CM: ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * 10f / ctx.getPixelUnitToMillimeter()); case CSSPrimitiveValue.CSS_IN: ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * 25.4f / ctx.getPixelUnitToMillimeter()); case CSSPrimitiveValue.CSS_PT: ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * 25.4f / (72f * ctx.getPixelUnitToMillimeter())); case CSSPrimitiveValue.CSS_PC: ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, (v * 25.4f / (6f * ctx.getPixelUnitToMillimeter()))); case CSSPrimitiveValue.CSS_EMS: v = value.getFloatValue(); Value fontSize = (Value)elt.getComputedStyle().getProperty( IStyle.STYLE_FONT_SIZE); float fs = fontSize.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * fs); case CSSPrimitiveValue.CSS_EXS: v = value.getFloatValue(); fontSize = (Value)elt.getComputedStyle().getProperty( IStyle.STYLE_FONT_SIZE); fs = fontSize.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * fs * 0.5f); } } return value; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c71489f80df3e518aa58c4898c221867ba32d699/AbstractLengthManager.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/value/AbstractLengthManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1445, 3671, 620, 12, 10276, 24273, 80, 429, 1046, 11572, 16, 6765, 4410, 4073, 16, 1082, 202, 474, 2067, 16, 1445, 460, 13, 288, 202, 202, 430, 261, 1132, 18, 588, 7359, 17930...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1445, 3671, 620, 12, 10276, 24273, 80, 429, 1046, 11572, 16, 6765, 4410, 4073, 16, 1082, 202, 474, 2067, 16, 1445, 460, 13, 288, 202, 202, 430, 261, 1132, 18, 588, 7359, 17930...
setByte(findParameter(parameterName, false), x);
setByte(findParameter(parameterName, true), x);
public void setByte(String parameterName, byte x) throws SQLException { setByte(findParameter(parameterName, false), x); }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/a595750b4ffbc80e0137cbf23d31dcd87717698e/JtdsCallableStatement.java/clean/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/JtdsCallableStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 3216, 12, 780, 15524, 16, 1160, 619, 13, 1216, 6483, 288, 3639, 444, 3216, 12, 4720, 1662, 12, 6775, 461, 16, 638, 3631, 619, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 3216, 12, 780, 15524, 16, 1160, 619, 13, 1216, 6483, 288, 3639, 444, 3216, 12, 4720, 1662, 12, 6775, 461, 16, 638, 3631, 619, 1769, 565, 289, 2, -100, -100, -100, -100, ...
public void addOrder(String order) { if (m_cursor != null) { throw new PersistenceException ("Cannot order an active data query. " + "Data query must be rewound."); } order = unalias(order); if (m_orders.contains(order)) { throw new IllegalArgumentException ("already ordered by expr: " + order); } m_orders.add(order); // XXX: ascending }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/f4e268981575a60399b9094f10361d0e2f25927b/DataQueryImpl.java/buggy/archive/qgen/src/com/arsdigita/persistence/DataQueryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 1289, 2448, 12, 780, 1019, 15329, 430, 12, 81, 67, 9216, 5, 33, 2011, 15329, 12849, 2704, 13182, 503, 2932, 4515, 1019, 304, 621, 2950, 396, 2271, 1199, 9078, 751, 2271, 11926, 744...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 1289, 2448, 12, 780, 1019, 15329, 430, 12, 81, 67, 9216, 5, 33, 2011, 15329, 12849, 2704, 13182, 503, 2932, 4515, 1019, 304, 621, 2950, 396, 2271, 1199, 9078, 751, 2271, 11926, 744...
public static DoorLocation getDoorLocation(int areaX, int areaY, int num)
public static DoorLocation getDoorLocation(int areaNum, int num)
public static DoorLocation getDoorLocation(int areaX, int areaY, int num) { return getDoorLocation(areaX + (areaY * MapEditor.widthInSectors), num); }
3699 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3699/0e27106ea86a9771296d74038eeef80e390833b8/MapEditor.java/buggy/src/net/starmen/pkhack/eb/MapEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 760, 2256, 280, 2735, 11165, 280, 2735, 12, 474, 5091, 2578, 16, 509, 818, 13, 3639, 288, 540, 202, 2463, 11165, 280, 2735, 12, 5036, 60, 397, 261, 5036, 61, 380, 1635, 6946, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 760, 2256, 280, 2735, 11165, 280, 2735, 12, 474, 5091, 2578, 16, 509, 818, 13, 3639, 288, 540, 202, 2463, 11165, 280, 2735, 12, 5036, 60, 397, 261, 5036, 61, 380, 1635, 6946, 18, ...
private VirusScannerResult scanPart(MIMEPart part) {/* //Fake scanning (for test) if(System.currentTimeMillis() > 0) { if(part.isAttachment()) { String fileName = part.getAttachmentName(); m_logger.debug("Part filename \"" + fileName + "\""); if(fileName != null && fileName.startsWith("virus")) { m_logger.debug("Pretend part has virus"); return new VirusScannerResult(false, "MyFakeVirus", false); } else { m_logger.debug("Pretend part does not have virus"); } } else { m_logger.debug("Pretend part does not have virus"); } return new VirusScannerResult(true, null, false); }*/ //Get the part as a file File f = null; try { f = part.getContentAsFile(m_fileFactory, true); } catch(Exception ex) { m_logger.error("Exception writing MIME part to file", ex); return null; } //Call VirusScanner try { VirusScannerResult result = m_virusImpl.getScanner().scanFile(f.getPath()); if(result == null || result == VirusScannerResult.ERROR) { m_logger.error("Received an error scan report. Assume local error" + " and report file clean"); //TODO bscott This is scary return null; } return result; } catch(Exception ex) { //TODO bscott I'd like to preserve this file and include it // in some type of "report". m_logger.error("Exception scanning MIME part in file \"" + f.getAbsolutePath() + "\"", ex); //No need to delete the file. This will be handled by the MIMEPart itself //through its normal lifecycle return null; } }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/0033ccca439d3936f23e01a896aee46bccd0b8c4/SmtpSessionHandler.java/clean/tran/virus/main/com/metavize/tran/virus/SmtpSessionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 776, 481, 407, 11338, 1253, 4135, 1988, 12, 18178, 1988, 1087, 13, 288, 20308, 565, 368, 25462, 21138, 261, 1884, 1842, 13, 1377, 309, 12, 3163, 18, 2972, 28512, 1435, 405, 374, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 776, 481, 407, 11338, 1253, 4135, 1988, 12, 18178, 1988, 1087, 13, 288, 20308, 565, 368, 25462, 21138, 261, 1884, 1842, 13, 1377, 309, 12, 3163, 18, 2972, 28512, 1435, 405, 374, 13,...
else if( button.equals( "submit_group_delete" ) )
else if( submit_group_delete )
protected void doDSPost(Context c, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { // Find out if there's a group parameter int groupID = UIUtil.getIntParameter(request, "group_id"); Group group = null; if (groupID >= 0) { group = Group.find(c, groupID); } // group is set if (group != null) { // is this user authorized to edit this group? AuthorizeManager.authorizeAction(c, group, Constants.ADD); String button = UIUtil.getSubmitButton(request, "submit"); // just chosen a group to edit - get group and pass it to group-edit.jsp if( button.equals("submit_edit") ) { request.setAttribute("group", group); request.setAttribute("members", group.getMembers()); JSPManager.showJSP(request, response, "/tools/group-edit.jsp" ); } // update the members of the group else if( button.equals("submit_group_update") ) { // first off, did we change the group name? String newName = request.getParameter("group_name"); if( !newName.equals(group.getName()) ) { group.setName( newName ); group.update(); } int [] eperson_ids = UIUtil.getIntParameters(request,"eperson_id"); // now get members, and add new ones and remove missing ones EPerson [] members = group.getMembers(); if( eperson_ids != null ) { for(int x=0; x<eperson_ids.length; x++) { // look for this ID in the EPerson array int foundIndex = -1; for(int y=0; y<members.length; y++) { if((members[y]!=null) && (members[y].getID() == eperson_ids[x])) { foundIndex = y; break; } } if(foundIndex == -1) { // didn't find it, add eperson EPerson e = EPerson.find(c, eperson_ids[x]); group.addMember( e ); } else { // found it, clear entry in members table members[foundIndex] = null; } } // now go through the members array, and any that // weren't set to NULL are no longer members, so remove them for(int y=0; y<members.length; y++) { if(members[y] != null) { group.removeMember(members[y]); } } } else { // no members found (ids == null), remove them all! for(int y=0; y<members.length; y++) { group.removeMember(members[y]); } } group.update(); request.setAttribute("group", group); request.setAttribute("members", group.getMembers()); JSPManager.showJSP(request, response, "/tools/group-edit.jsp" ); c.complete(); } else if( button.equals( "submit_group_delete" ) ) { // bogus authorize, only admins can do this AuthorizeManager.authorizeAction(c, group, Constants.WRITE); // delete group, return to group-list.jsp group.delete(); showMainPage(c, request, response); c.complete(); } else { // unknown action, show edit page request.setAttribute("group", group); request.setAttribute("members", group.getMembers()); JSPManager.showJSP(request, response, "/tools/group-edit.jsp" ); } } else // no group set { // want to add a group - create a blank one, and pass to group_edit.jsp String button = UIUtil.getSubmitButton(request, "submit"); if( button.equals( "submit_add" ) ) { group = Group.create(c); group.setName("new group"+group.getID()); group.update(); request.setAttribute("group", group); request.setAttribute("members", group.getMembers()); JSPManager.showJSP(request, response, "/tools/group-edit.jsp" ); c.complete(); } else { // show the main page (select groups) showMainPage(c, request, response); } } }
47214 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47214/44d920f6673301feb8b329391378fb326189f9de/GroupEditServlet.java/clean/dspace/src/org/dspace/app/webui/servlet/admin/GroupEditServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 40, 3118, 669, 12, 1042, 276, 16, 10792, 9984, 590, 16, 12446, 766, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859, 503, 565, 288, 3639, 368, 4163, 596, 309, 1915,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 40, 3118, 669, 12, 1042, 276, 16, 10792, 9984, 590, 16, 12446, 766, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859, 503, 565, 288, 3639, 368, 4163, 596, 309, 1915,...
gapLine = lastValidLineContext = -1;
gapLine = firstInvalidLineContext = -1;
public void _contentInserted(LongArray endOffsets) { gapLine = lastValidLineContext = -1; gapWidth = 0; lineCount = endOffsets.getSize(); lineInfo = endOffsets.getArray(); if(lineContext == null || lineContext.length <= lineCount) lineContext = new TokenMarker.LineContext[lineCount]; for(int i = 0; i < positionCount; i++) positions[i].offset = 0; } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/f2ed2065375a0d8f3fdc17e221b5e9dadbf3e3a3/OffsetManager.java/buggy/org/gjt/sp/jedit/buffer/OffsetManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 389, 1745, 27329, 12, 3708, 1076, 679, 13830, 13, 202, 95, 202, 202, 14048, 1670, 273, 1142, 1556, 1670, 1042, 273, 300, 21, 31, 202, 202, 14048, 2384, 273, 374, 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, 482, 918, 389, 1745, 27329, 12, 3708, 1076, 679, 13830, 13, 202, 95, 202, 202, 14048, 1670, 273, 1142, 1556, 1670, 1042, 273, 300, 21, 31, 202, 202, 14048, 2384, 273, 374, 31, 202,...
BugzillaReport report = new BugzillaReport(bugid, repository.getUrl());
RepositoryReport report = new RepositoryReport(bugid, repository.getUrl());
public void testReadingReport() throws Exception { int bugid = 2; TaskRepository repository = new TaskRepository(BugzillaPlugin.REPOSITORY_KIND, IBugzillaConstants.TEST_BUGZILLA_222_URL); BugzillaReport report = new BugzillaReport(bugid, repository.getUrl()); BugzillaRepositoryUtil.setupExistingBugAttributes(repository.getUrl(), report); factory.populateReport(report, repository.getUrl(), null, repository.getUserName(), repository.getPassword(), null); assertNotNull(report); assertEquals("search-match-test 1", report.getAttribute(BugzillaReportElement.SHORT_DESC).getValue()); assertEquals("TestProduct", report.getAttribute(BugzillaReportElement.PRODUCT).getValue()); assertEquals("PC", report.getAttribute(BugzillaReportElement.REP_PLATFORM).getValue()); assertEquals("Windows", report.getAttribute(BugzillaReportElement.OP_SYS).getValue()); // first comment (#0) is the description so this value is always 1 greater // than what is shown on the report ui assertEquals(2, report.getComments().size()); assertEquals("search-match-test 1", report.getComments().get(0).getAttribute( BugzillaReportElement.THETEXT).getValue());// assertEquals(15, report.getAttachments().size());// assertEquals("1", report.getAttachments().get(0).getAttribute(BugzillaReportElement.ATTACHID).getValue());// assertEquals("2006-03-10 14:11", report.getAttachments().get(0).getAttribute(BugzillaReportElement.DATE)// .getValue());// assertEquals("Testing upload", report.getAttachments().get(0).getAttribute(BugzillaReportElement.DESC)// .getValue());// assertEquals("patch130217.txt", report.getAttachments().get(0).getAttribute(BugzillaReportElement.FILENAME)// .getValue());// assertEquals("text/plain", report.getAttachments().get(0).getAttribute(BugzillaReportElement.TYPE).getValue()); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/301e7fdca7d49939faf98d0931834c70f7220b4f/RepositoryReportFactoryTest.java/clean/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryReportFactoryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 15714, 4820, 1435, 1216, 1185, 288, 202, 202, 474, 7934, 350, 273, 576, 31, 202, 202, 2174, 3305, 3352, 273, 394, 3837, 3305, 12, 19865, 15990, 3773, 18, 862, 30986, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15714, 4820, 1435, 1216, 1185, 288, 202, 202, 474, 7934, 350, 273, 576, 31, 202, 202, 2174, 3305, 3352, 273, 394, 3837, 3305, 12, 19865, 15990, 3773, 18, 862, 30986, ...
if(ex instanceof DatabaseException && ex.getMessage().indexOf("missing key in the primary database") > -1) {
if((ex instanceof DatabaseException) && (ex.getMessage().indexOf("missing key in the primary database") > -1)) {
private synchronized void checkSecondaryDatabaseError(Throwable ex) { if(ex instanceof DatabaseException && ex.getMessage().indexOf("missing key in the primary database") > -1) { try { fixSecondaryFile.createNewFile(); } catch (IOException e) { Logger.error(this, "Corrupt secondary database but could not create flag file "+fixSecondaryFile); System.err.println("Corrupt secondary database but could not create flag file "+fixSecondaryFile); return; // Not sure what else we can do } Logger.error(this, "Corrupt secondary database. Should be cleaned up on restart."); System.err.println("Corrupt secondary database. Should be cleaned up on restart."); System.exit(freenet.node.Node.EXIT_DATABASE_REQUIRES_RESTART); } }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/BerkeleyDBFreenetStore.java/buggy/src/freenet/store/BerkeleyDBFreenetStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 918, 866, 14893, 4254, 668, 12, 15155, 431, 13, 288, 377, 202, 430, 12443, 338, 1276, 27215, 13, 597, 261, 338, 18, 24906, 7675, 31806, 2932, 7337, 498, 316, 326, 3354, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 866, 14893, 4254, 668, 12, 15155, 431, 13, 288, 377, 202, 430, 12443, 338, 1276, 27215, 13, 597, 261, 338, 18, 24906, 7675, 31806, 2932, 7337, 498, 316, 326, 3354, ...
if ( ( (Integer) right).intValue() == 0 )
if ( MathUtils.isZero ( (Number)right ) )
public Object value( InternalContextAdapter context) throws MethodInvocationException { /* * get the two args */ Object left = jjtGetChild(0).value( context ); Object right = jjtGetChild(1).value( context ); /* * if either is null, lets log and bail */ if (left == null || right == null) { rsvc.error( ( left == null ? "Left" : "Right" ) + " side (" + jjtGetChild( (left == null? 0 : 1) ).literal() + ") of division operation has null value." + " Operation not possible. " + context.getCurrentTemplateName() + " [line " + getLine() + ", column " + getColumn() + "]"); return null; } /* * if not an Integer, not much we can do either */ if ( !( left instanceof Integer ) || !( right instanceof Integer )) { rsvc.error( ( !( left instanceof Integer ) ? "Left" : "Right" ) + " side of division operation is not a valid type. " + "Currently only integers (1,2,3...) and Integer type is supported. " + context.getCurrentTemplateName() + " [line " + getLine() + ", column " + getColumn() + "]"); return null; } /* * check for divide by 0 */ if ( ( (Integer) right).intValue() == 0 ) { rsvc.error( "Right side of division operation is zero. Must be non-zero. " + context.getCurrentTemplateName() + " [line " + getLine() + ", column " + getColumn() + "]"); return null; } return new Integer( ( (Integer) left ).intValue() / ( (Integer) right ).intValue() ); }
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/5b85dc5e122a5bdf3ea90d4f89cebe71413fc26b/ASTDivNode.java/buggy/src/java/org/apache/velocity/runtime/parser/node/ASTDivNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 460, 12, 3186, 1042, 4216, 819, 13, 3639, 1216, 2985, 9267, 503, 565, 288, 3639, 1748, 540, 380, 225, 336, 326, 2795, 833, 540, 1195, 3639, 1033, 2002, 273, 10684, 88, 967, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 460, 12, 3186, 1042, 4216, 819, 13, 3639, 1216, 2985, 9267, 503, 565, 288, 3639, 1748, 540, 380, 225, 336, 326, 2795, 833, 540, 1195, 3639, 1033, 2002, 273, 10684, 88, 967, ...
return entityLocation != null && entityLocation.getLiteralSystemId() != null;
return isExternal;
public final boolean isExternal() { return entityLocation != null && entityLocation.getLiteralSystemId() != null; } // isExternal():boolean
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/dfbcd98ba9ce48623cb7328b899a58e67489fe9b/XMLEntityManager.java/buggy/src/org/apache/xerces/impl/XMLEntityManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 727, 1250, 353, 6841, 1435, 288, 5411, 327, 353, 6841, 31, 3639, 289, 368, 353, 6841, 13332, 6494, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 727, 1250, 353, 6841, 1435, 288, 5411, 327, 353, 6841, 31, 3639, 289, 368, 353, 6841, 13332, 6494, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
int[] tileCosts = getTileWorks(true);
int[] tileCosts = getTileWorks(false);
public double placementCost(boolean debug) { int[] tileCosts = getTileWorks(true); double workOfBottleNeckTile = (double)maxTileWork(tileCosts); double cost = workOfBottleNeckTile; //standardDeviation(tileCosts); //+ (COMM_MULTIPLIER * (double)commEstimate(tileCosts)); //int wastedWork = Util.sum(tileCosts) - totalWork; //cost += (double)wastedWork / rawChip.getTotalTiles(); /* if (!isLegalLayout()) cost += ILLEGAL_COST; */ return cost; }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/68e576dc28e313fa38d98d64c202c460342c548f/AnnealedLayout.java/buggy/streams/src/at/dms/kjc/spacetime/AnnealedLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1645, 12607, 8018, 12, 6494, 1198, 13, 288, 6647, 509, 8526, 4769, 21420, 273, 24738, 16663, 12, 5743, 1769, 7734, 1645, 1440, 951, 6522, 5929, 50, 762, 9337, 273, 261, 9056, 13, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1645, 12607, 8018, 12, 6494, 1198, 13, 288, 6647, 509, 8526, 4769, 21420, 273, 24738, 16663, 12, 5743, 1769, 7734, 1645, 1440, 951, 6522, 5929, 50, 762, 9337, 273, 261, 9056, 13, 18...
public IBinding resolveBinding(IASTName name) throws CoreException {
public PDOMBinding resolveBinding(IASTName name) throws CoreException {
public IBinding resolveBinding(IASTName name) throws CoreException { IASTNode parent = name.getParent(); if (parent instanceof IASTIdExpression) { // reference IASTNode eParent = parent.getParent(); if (eParent instanceof IASTFunctionCallExpression) { FindBinding visitor = new FindBinding(pdom, name.toCharArray(), CFUNCTION); getIndex().accept(visitor); return visitor.pdomBinding; } else { FindBinding visitor = new FindBinding(pdom, name.toCharArray(), CVARIABLE); getIndex().accept(visitor); return visitor.pdomBinding; } } else if (parent instanceof ICASTElaboratedTypeSpecifier) { FindBinding visitor = new FindBinding(pdom, name.toCharArray(), CSTRUCTURE); getIndex().accept(visitor); return visitor.pdomBinding; } return null; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f5a4ba1d7638b16bde80c2f1086c78aa03af1f90/PDOMCLinkage.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/c/PDOMCLinkage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 5250, 2245, 5250, 12, 45, 9053, 461, 508, 13, 1216, 30015, 288, 202, 202, 45, 9053, 907, 982, 273, 508, 18, 588, 3054, 5621, 202, 202, 430, 261, 2938, 1276, 467, 9053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 5250, 2245, 5250, 12, 45, 9053, 461, 508, 13, 1216, 30015, 288, 202, 202, 45, 9053, 907, 982, 273, 508, 18, 588, 3054, 5621, 202, 202, 430, 261, 2938, 1276, 467, 9053, ...
return ruby.fixnumCache[(int) value];
RubyFixnum newNum = ruby.fixnumCache[(int) value]; if (newNum == null) { newNum = new RubyFixnum(ruby, value); ruby.fixnumCache[(int) value] = newNum; } return newNum; } else { return new RubyFixnum(ruby, value);
public static RubyFixnum newFixnum(Ruby ruby, long value) { // Cache for Fixnums (Performance) if ((value & ~Ruby.FIXNUM_CACHE_MAX) == 0) { return ruby.fixnumCache[(int) value]; } return new RubyFixnum(ruby, value); }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyFixnum.java/buggy/org/jruby/RubyFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 8585, 2107, 394, 8585, 2107, 12, 54, 10340, 22155, 16, 1525, 460, 13, 288, 3639, 368, 4379, 364, 12139, 21180, 261, 25024, 13, 3639, 309, 14015, 1132, 473, 4871, 54, 103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 8585, 2107, 394, 8585, 2107, 12, 54, 10340, 22155, 16, 1525, 460, 13, 288, 3639, 368, 4379, 364, 12139, 21180, 261, 25024, 13, 3639, 309, 14015, 1132, 473, 4871, 54, 103...
if (inputState.guessing==0) { id_AST = (AST)returnAST; }
id_AST = (AST)returnAST;
public final void singleVariable( AST mods, AST t ) throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST singleVariable_AST = null; AST id_AST = null; variableName(); if (inputState.guessing==0) { id_AST = (AST)returnAST; } if ( inputState.guessing==0 ) { singleVariable_AST = (AST)currentAST.root; singleVariable_AST = (AST)astFactory.make( (new ASTArray(4)).add(astFactory.create(VARIABLE_DEF,"VARIABLE_DEF")).add(mods).add((AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(TYPE,"TYPE")).add(t))).add(id_AST)); currentAST.root = singleVariable_AST; currentAST.child = singleVariable_AST!=null &&singleVariable_AST.getFirstChild()!=null ? singleVariable_AST.getFirstChild() : singleVariable_AST; currentAST.advanceChildToEnd(); } returnAST = singleVariable_AST; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/5c53aea8416ae7d318cf0157b4690ba71badb0f9/GroovyRecognizer.java/clean/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2202, 3092, 12, 202, 202, 9053, 15546, 16, 9183, 268, 202, 13, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2202, 3092, 12, 202, 202, 9053, 15546, 16, 9183, 268, 202, 13, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, ...
HandleAdapterFactory.getInstance( ).getLibraryHandleAdapter((LibraryHandle)getModel() ) .removePropertyChangeListener( this );
HandleAdapterFactory.getInstance( ).getLibraryHandleAdapter( (LibraryHandle) getModel( ) ).removePropertyChangeListener( this );
public void deactivate( ) { HandleAdapterFactory.getInstance( ).getLibraryHandleAdapter((LibraryHandle)getModel() ) .removePropertyChangeListener( this ); super.deactivate( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/675aa1d9b8f9ea3b13e46a886ac2b28ab28db622/LibraryReportDesignEditPart.java/clean/UI/org.eclipse.birt.report.designer.ui.lib/src/org/eclipse/birt/report/designer/internal/lib/editparts/LibraryReportDesignEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 18790, 12, 262, 202, 95, 202, 202, 3259, 4216, 1733, 18, 588, 1442, 12, 262, 18, 588, 9313, 3259, 4216, 12443, 9313, 3259, 13, 588, 1488, 1435, 262, 9506, 202, 18, 4479, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 18790, 12, 262, 202, 95, 202, 202, 3259, 4216, 1733, 18, 588, 1442, 12, 262, 18, 588, 9313, 3259, 4216, 12443, 9313, 3259, 13, 588, 1488, 1435, 262, 9506, 202, 18, 4479, ...
manualDebugResponseCheckBoxMenuItemActionPerformed(evt);
manualDebugRequestCheckBoxMenuItemActionPerformed(evt);
public void actionPerformed(java.awt.event.ActionEvent evt) { manualDebugResponseCheckBoxMenuItemActionPerformed(evt); }
31053 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31053/c2ebd3923045ca4b18d412f095eff8297b496973/WebScarab.java/clean/src/org/owasp/webscarab/ui/swing/WebScarab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 7734, 11297, 2829, 691, 19174, 12958, 19449, 12, 73, 11734, 1769, 5411, 289, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 7734, 11297, 2829, 691, 19174, 12958, 19449, 12, 73, 11734, 1769, 5411, 289, 2, -100, -100, -100, -100,...
AST tmp1622_AST_in = (AST)_t;
AST tmp1634_AST_in = (AST)_t;
public final void createindexstate(AST _t) throws RecognitionException { AST createindexstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1254 = _t; AST tmp1615_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNIQUE: { AST tmp1616_AST_in = (AST)_t; match(_t,UNIQUE); _t = _t.getNextSibling(); break; } case INDEX: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1617_AST_in = (AST)_t; match(_t,INDEX); _t = _t.getNextSibling(); AST tmp1618_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); AST tmp1619_AST_in = (AST)_t; match(_t,ON); _t = _t.getNextSibling(); tbl(_t,CQ.SCHEMATABLESYMBOL); _t = _retTree; AST __t1256 = _t; AST tmp1620_AST_in = (AST)_t; match(_t,Field_list); _t = _t.getFirstChild(); AST tmp1621_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); fld(_t,CQ.SYMBOL); _t = _retTree; { _loop1258: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1622_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); fld(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop1258; } } while (true); } AST tmp1623_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t1256; _t = _t.getNextSibling(); state_end(_t); _t = _retTree; _t = __t1254; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 752, 1615, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 752, 1615, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 752, 1615, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 752, 1615, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294,...
public String goToNextBlockStart(MesquiteLong startPos) { MesquiteInteger status = new MesquiteInteger(0); StringBuffer command = new StringBuffer(getNextCommand(status, null)); //���� if (!StringUtil.blank(command)) { if (status.getValue()==0) { //in middle of block; need to continue reading until get to end of block while (!StringUtil.blank(command) && status.getValue()!=2) { command.setLength(0); String c = getNextCommand(status, null); if (!StringUtil.blank(c)) command.append(c); } //reached end of this block, hence mark position for resetting if (startPos !=null) startPos.setValue(getFilePosition()+1); //at end of block; now get next to find first part of next block command.setLength(0); String c = getNextCommand(status, null); if (!StringUtil.blank(c)) command.append(c); } Parser nameParser = new Parser(); return nameParser.getTokenNumber(command.toString(), 2); } return null; }
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/a6cca3dab0a6fd887ee6bde71a8709e5bfbd4434/MesquiteFile.java/buggy/releases/current/Mesquite Project/Source/mesquite/lib/MesquiteFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1960, 774, 2134, 1768, 1685, 12, 49, 281, 372, 1137, 3708, 16013, 13, 288, 202, 202, 49, 281, 372, 1137, 4522, 1267, 273, 394, 490, 281, 372, 1137, 4522, 12, 20, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1960, 774, 2134, 1768, 1685, 12, 49, 281, 372, 1137, 3708, 16013, 13, 288, 202, 202, 49, 281, 372, 1137, 4522, 1267, 273, 394, 490, 281, 372, 1137, 4522, 12, 20, 1769, ...
int nest = 0; boolean lDyn = false; for (char c = support.read(); c != closeQuote || nest > 0; c = support.read()) { switch (c) { case '\0' : errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); return 0; case '#' : try { lDyn = parseExpressionString(list, (char) closeQuote, token) || lDyn; } catch (EOFException e) { errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); return 0; } continue; case '\\' : c = support.read(); if (c == '\n') { continue; } else if (c == closeQuote) { token.append(c); } else { support.unread(); if (func != '"') { token.append('\\'); } token.append((char) readEscape()); } continue; default : if (openQuote != '\0') { if (c == openQuote) { nest++; } if (c == closeQuote && nest-- == 0) { break; } } token.append(c); } }
int nest = 0; boolean lDyn = false; for (char c = support.read(); c != closeQuote || nest > 0; c = support.read()) { switch (c) { case '\0' : errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); return 0; case '#' : try { lDyn = parseExpressionString(list, (char) closeQuote, token) || lDyn; } catch (EOFException e) { errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); return 0; } continue; case '\\' : c = support.read(); if (c == '\n') { continue; } else if (c == closeQuote) { token.append(c); } else { support.unread(); if (func != '"') { token.append('\\'); } token.append((char) readEscape()); } continue; default : if (openQuote != '\0') { if (c == openQuote) { nest++; } if (c == closeQuote && nest-- == 0) { break; } } token.append(c); } }
private int parseString(int func, int closeQuote, int openQuote) { if (func == '\'') { return parseSingleQuotedString(closeQuote, openQuote); } if (func == 0) { // read 1 line for heredoc // -1 for chomp yaccValue = support.readLine(); return Token.tSTRING; } ISourcePosition position = support.getPosition(); StringToken token = new StringToken(support, errorHandler, position); IListNode list = (func == '`') ? (IListNode) new DXStrNode(position) : new DStrNode(position); int nest = 0; boolean lDyn = false; for (char c = support.read(); c != closeQuote || nest > 0; c = support.read()) { switch (c) { case '\0' : errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; case '#' : try { lDyn = parseExpressionString(list, (char) closeQuote, token) || lDyn; } catch (EOFException e) { errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; } continue; case '\\' : c = support.read(); if (c == '\n') { continue; } else if (c == closeQuote) { token.append(c); } else { support.unread(); if (func != '"') { token.append('\\'); } token.append((char) readEscape()); } continue; default : if (openQuote != '\0') { if (c == openQuote) { nest++; } if (c == closeQuote && nest-- == 0) { break; } } token.append(c); } } lexState = LexState.EXPR_END; if (lDyn) //we know the string is dynamic { if (token.getLength() > 0) { list.add(new StrNode(token.getPosition(), token.getToken())); } yaccValue = list; return (func == '`') ? Token.tDXSTRING : Token.tDSTRING; } //Benoit: this is not needed, I think that if we arrive here //(if the string is not dynamic) there is only one element in the list //and it is the content of token /* StringBuffer buffer = new StringBuffer(); Iterator iter = list.iterator(); while (iter.hasNext()) { Object next = iter.next(); if (next instanceof StrNode) { buffer.append(((StrNode) next).getValue()); } else { yaccValue = list; return (func == '`') ? Token.tDXSTRING : Token.tDSTRING; } } yaccValue = buffer.toString(); */ yaccValue = token.getToken(); return (func == '`') ? Token.tXSTRING : Token.tSTRING; }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 23659, 12, 474, 1326, 16, 509, 1746, 10257, 16, 509, 1696, 10257, 13, 288, 202, 202, 430, 261, 644, 422, 14118, 6134, 288, 1082, 202, 2463, 1109, 5281, 15919, 780, 12, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 23659, 12, 474, 1326, 16, 509, 1746, 10257, 16, 509, 1696, 10257, 13, 288, 202, 202, 430, 261, 644, 422, 14118, 6134, 288, 1082, 202, 2463, 1109, 5281, 15919, 780, 12, 4...
List javaExceptionTypes) throws ClassNotFoundException {
List javaExceptionTypes) {
private void assertExceptionsExist(Method jniMethod, List jniExceptionTypes, List javaExceptionTypes) throws ClassNotFoundException { for (int j = 0; j < jniExceptionTypes.size(); j++) { boolean foundException = false; for (int k = 0; k < javaExceptionTypes.size(); k++) { if (translatedClass((Class) jniExceptionTypes.get(j)).equals( javaExceptionTypes.get(k))) { foundException = true; break; } } Assert.assertTrue("missing exception: method=" + jniMethod.getName() + "; " + jniExceptionTypes.get(j), foundException); } }
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/b43da597739d00f108684e8e6e06e2c63bf44191/ApiCompatibilityTest.java/buggy/test/quickfix/ApiCompatibilityTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 1815, 11416, 4786, 12, 1305, 525, 15834, 1305, 16, 987, 525, 15834, 503, 2016, 16, 7734, 987, 2252, 503, 2016, 13, 288, 5411, 364, 261, 474, 525, 273, 374, 31, 525, 411, 525,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1815, 11416, 4786, 12, 1305, 525, 15834, 1305, 16, 987, 525, 15834, 503, 2016, 16, 7734, 987, 2252, 503, 2016, 13, 288, 5411, 364, 261, 474, 525, 273, 374, 31, 525, 411, 525,...
SimpleSeqSimilaritySearchResult that = (SimpleSeqSimilaritySearchResult) o;
SimpleSeqSimilaritySearchResult that = (SimpleSeqSimilaritySearchResult) o;
public boolean equals(Object o) { if (o == this) return true; // if this class is a direct sub-class of Object: if (o == null) return false; if (!o.getClass().equals(this.getClass())) return false; SimpleSeqSimilaritySearchResult that = (SimpleSeqSimilaritySearchResult) o; // only compare fields of this class (not of super-classes): if (!ObjectUtil.equals(this.searcher, that.searcher)) return false; if (!ObjectUtil.equals(this.querySequence, that.querySequence)) return false; if (!ObjectUtil.equals(this.sequenceDB, that.sequenceDB)) return false; if (!ObjectUtil.equals(this.searchParameters, that.searchParameters)) return false; if (!ObjectUtil.equals(this.hits, that.hits)) return false; // this and that are identical if we made it 'til here return true; }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/1e53e34b25e9b009c50460af0986e9449f82ece1/SimpleSeqSimilaritySearchResult.java/clean/src/org/biojava/bio/search/SimpleSeqSimilaritySearchResult.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1606, 12, 921, 320, 13, 288, 565, 309, 261, 83, 422, 333, 13, 327, 638, 31, 3639, 368, 309, 333, 667, 353, 279, 2657, 720, 17, 1106, 434, 1033, 30, 565, 309, 261, 83, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1606, 12, 921, 320, 13, 288, 565, 309, 261, 83, 422, 333, 13, 327, 638, 31, 3639, 368, 309, 333, 667, 353, 279, 2657, 720, 17, 1106, 434, 1033, 30, 565, 309, 261, 83, 42...
}
public EventChannel getEventChannel() { if (thisRef_ == null) { synchronized (this) { if (thisRef_ == null) { thisRef_ = _this( applicationContext_.getOrb() ); } } } return thisRef_; }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/16c06484cccb200d07338ea6f627db07caeed31a/EventChannelImpl.java/clean/src/org/jacorb/notification/EventChannelImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2587, 2909, 9832, 2909, 1435, 565, 288, 3639, 309, 261, 2211, 1957, 67, 422, 446, 13, 3639, 288, 5411, 3852, 261, 2211, 13, 5411, 288, 7734, 309, 261, 2211, 1957, 67, 422, 446, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2587, 2909, 9832, 2909, 1435, 565, 288, 3639, 309, 261, 2211, 1957, 67, 422, 446, 13, 3639, 288, 5411, 3852, 261, 2211, 13, 5411, 288, 7734, 309, 261, 2211, 1957, 67, 422, 446, 13...
throw new TypeError(arg.getRuntime(), "argument not numeric");
throw arg.getRuntime().newTypeError("argument not numeric");
public static final RubyNumeric numericValue(IRubyObject arg) { if (!(arg instanceof RubyNumeric)) { throw new TypeError(arg.getRuntime(), "argument not numeric"); } return (RubyNumeric) arg; }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyNumeric.java/buggy/src/org/jruby/RubyNumeric.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 19817, 9902, 6389, 620, 12, 7937, 10340, 921, 1501, 13, 288, 3639, 309, 16051, 12, 3175, 1276, 19817, 9902, 3719, 288, 5411, 604, 1501, 18, 588, 5576, 7675, 2704, 19030, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 19817, 9902, 6389, 620, 12, 7937, 10340, 921, 1501, 13, 288, 3639, 309, 16051, 12, 3175, 1276, 19817, 9902, 3719, 288, 5411, 604, 1501, 18, 588, 5576, 7675, 2704, 19030, 2...
url.append("#").append(windowOfAction.getId());
actionUrl.append("#"); actionUrl.append(windowOfAction.getId());
public String getActionURL() { String baseActionURL; if ( nextState != null && nextState.equals(PortalContextProviderImpl.EXCLUSIVE) ) { baseActionURL = runtimeData.getBaseWorkerURL(UPFileSpec.FILE_DOWNLOAD_WORKER); } else { baseActionURL = runtimeData.getBaseActionURL(); } String encodedURLParams = encodeURLParameters(this.toString()); StringBuffer url = new StringBuffer((encodedURLParams.length()>0)? (UPFileSpec.PORTLET_PARAMS_DELIM_BEG+ java.net.URLEncoder.encode(encodedURLParams)+ UPFileSpec.PORTLET_PARAMS_DELIM_END+ UPFileSpec.PORTAL_URL_SEPARATOR+baseActionURL):baseActionURL); if (ChannelManager.isUseAnchors()) { url.append("#").append(windowOfAction.getId()); } return url.toString(); }
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/0323e87fe1f8c2f01e1833c8cf0ce9dede666305/PortletStateManager.java/clean/source/org/jasig/portal/container/services/information/PortletStateManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 12473, 1785, 1435, 288, 202, 202, 780, 1026, 1803, 1785, 31, 202, 202, 430, 261, 25509, 480, 446, 597, 25509, 18, 14963, 12, 24395, 1042, 2249, 2828, 18, 2294, 11686, 24870...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 12473, 1785, 1435, 288, 202, 202, 780, 1026, 1803, 1785, 31, 202, 202, 430, 261, 25509, 480, 446, 597, 25509, 18, 14963, 12, 24395, 1042, 2249, 2828, 18, 2294, 11686, 24870...
advance(); return makeToken(ParserSym.QUOTE, "'");
public Symbol next_token() throws IOException { StringBuffer id; boolean ampersandId = false; for (;;) { switch (nextChar) { case '.': switch (lookahead()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': // We're looking at the '.' on the start of a number, // e.g. .1; fall through to parse a number. break; default: advance(); return makeToken(ParserSym.DOT, "."); } // fall through case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': // Parse a number. Valid examples include 1, 1.2, 0.1, .1, // 1e2, 1E2, 1e-2, 1e+2. Invalid examples include e2, 1.2.3, // 1e2e3, 1e2.3. // // Signs preceding numbers (e.g. -1, +1E-5) are valid, but are // handled by the parser. final int leftOfPoint = 0; final int rightOfPoint = 1; final int inExponent = 2; int n = 0, nDigits = 0, nSign = 0, exponent = 0; double mantissa = 0.0; int state = leftOfPoint; for (;;) { if (nextChar == '.') { if (state == leftOfPoint) { state = rightOfPoint; mantissa = n; n = nDigits = 0; nSign = 1; advance(); } else { // Error: we are seeing a point in the exponent // (e.g. 1E2.3 or 1.2E3.4) or a second point in the // mantissa (e.g. 1.2.3). Return what we've got // and let the parser raise the error. if (state == rightOfPoint) { mantissa += (n * java.lang.Math.pow( 10, -nDigits)); } else { exponent = n * nSign; } return makeNumber(mantissa, exponent); } } else if (nextChar == 'E' || nextChar == 'e') { if (state == inExponent) { // Error: we are seeing an 'e' in the exponent // (e.g. 1.2e3e4). Return what we've got and let // the parser raise the error. exponent = n * nSign; return makeNumber(mantissa, exponent); } else { if (state == leftOfPoint) { mantissa = n; } else { mantissa += (n * java.lang.Math.pow( 10, -nDigits)); } n = nDigits = 0; nSign = 1; advance(); state = inExponent; } } else if ((nextChar == '+' || nextChar == '-') && state == inExponent && nDigits == 0) { // We're looking at the sign after the 'e'. nSign = -nSign; advance(); } else if (nextChar >= '0' && nextChar <= '9') { n = n * 10 + (nextChar - '0'); nDigits++; advance(); } else { // Reached end of number. if (state == leftOfPoint) { mantissa = n; } else if (state == rightOfPoint) { mantissa += (n * java.lang.Math.pow(10, -nDigits)); } else { exponent = n * nSign; } return makeNumber(mantissa, exponent); } } case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': /* parse an identifier */ id = new StringBuffer(); for (;;) { id.append((char)nextChar); advance(); switch (nextChar) { case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case '_': break; default: String strId = id.toString(); Integer i = (Integer) m_resWordsTable.get( strId.toUpperCase()); if (i == null) { // identifier return makeId(strId, false, false); } else { // reserved word return makeRes(i.intValue()); } } } case '&': advance(); if (nextChar == '[') { ampersandId = true; // fall through } else { return makeToken(ParserSym.UNKNOWN, "&"); } case '[': /* parse a delimited identifier */ id = new StringBuffer(); for (;;) { advance(); switch (nextChar) { case ']': advance(); if (nextChar == ']') { // ] escaped with ] - just take one id.append(']'); break; } else { // end of identifier if (ampersandId) { ampersandId = false; return makeId(id.toString(), true, true); } else { return makeId(id.toString(), true, false); } } case -1: if (ampersandId) { ampersandId = false; return makeId(id.toString(), true, true); } else { return makeId(id.toString(), true, false); } default: id.append((char)nextChar); } } case ':': advance(); return makeToken(ParserSym.COLON, ":"); case ',': advance(); return makeToken(ParserSym.COMMA, ","); case '=': advance(); return makeToken(ParserSym.EQ, "="); case '<': advance(); switch (nextChar) { case '>': advance(); return makeToken(ParserSym.NE, "<>"); case '=': advance(); return makeToken(ParserSym.LE, "<="); default: return makeToken(ParserSym.LT, "<"); } case '>': advance(); switch (nextChar) { case '=': advance(); return makeToken(ParserSym.GE, ">="); default: return makeToken(ParserSym.GT, ">"); } case '{': advance(); return makeToken(ParserSym.LBRACE, "{"); case '(': advance(); return makeToken(ParserSym.LPAREN, "("); case '}': advance(); return makeToken(ParserSym.RBRACE, "}"); case ')': advance(); return makeToken(ParserSym.RPAREN, ")"); case '+': advance(); return makeToken(ParserSym.PLUS, "+"); case '-': advance(); return makeToken(ParserSym.MINUS, "-"); case '*': advance(); return makeToken(ParserSym.ASTERISK, "*"); case '/': advance(); return makeToken(ParserSym.SOLIDUS, "/"); case '|': advance(); switch (nextChar) { case '|': advance(); return makeToken(ParserSym.CONCAT, "||"); default: return makeToken(ParserSym.UNKNOWN, "|"); } case '"': /* parse a double-quoted string */ id = new StringBuffer(); for (;;) { advance(); switch (nextChar) { case '"': advance(); if (nextChar == '"') { // " escaped with " id.append('"'); break; } else { // end of string return makeString(id.toString()); } case -1: return makeString(id.toString()); default: id.append((char)nextChar); } } case '\'': if (inFormula) { inFormula = false; advance(); return makeToken(ParserSym.QUOTE, "'"); } else if (previousSymbol == ParserSym.AS) { inFormula = true; advance(); return makeToken(ParserSym.QUOTE, "'"); } /* parse a single-quoted string */ id = new StringBuffer(); for (;;) { advance(); switch (nextChar) { case '\'': advance(); if (nextChar == '\'') { // " escaped with " id.append('\''); break; } else { // end of string return makeString(id.toString()); } case -1: return makeString(id.toString()); default: id.append((char)nextChar); } } case -1: // we're done return makeToken(ParserSym.EOF, "EOF"); default: /* ignore everything else */ iPrevChar = iChar; advance(); break; } } }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/890f9606b9e09a1e7142dc5b4c809b3f9736f86a/Scanner.java/buggy/src/main/mondrian/olap/Scanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8565, 1024, 67, 2316, 1435, 1216, 1860, 288, 3639, 6674, 612, 31, 3639, 1250, 16946, 414, 464, 548, 273, 629, 31, 3639, 364, 261, 25708, 13, 288, 5411, 1620, 261, 4285, 2156, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8565, 1024, 67, 2316, 1435, 1216, 1860, 288, 3639, 6674, 612, 31, 3639, 1250, 16946, 414, 464, 548, 273, 629, 31, 3639, 364, 261, 25708, 13, 288, 5411, 1620, 261, 4285, 2156, 13, ...
Crystal crystal1 = new Crystal();
Crystal crystal1 = builder.newCrystal();
public void testClone_Axes() { Crystal crystal1 = new Crystal(); Vector3d axes = new Vector3d(1.0, 2.0, 3.0); crystal1.setA(axes); Crystal crystal2 = (Crystal)crystal1.clone(); // test cloning of axes crystal1.getA().x = 5.0; assertEquals(1.0, crystal2.getA().x, 0.001); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/d21f277c120791acd10319bbfe4f2deaa0db1306/CrystalTest.java/buggy/src/org/openscience/cdk/test/CrystalTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10930, 67, 26494, 1435, 288, 3639, 14998, 31365, 4422, 31365, 21, 273, 2089, 18, 2704, 12893, 31365, 5621, 3639, 5589, 23, 72, 6515, 273, 394, 5589, 23, 72, 12, 21, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10930, 67, 26494, 1435, 288, 3639, 14998, 31365, 4422, 31365, 21, 273, 2089, 18, 2704, 12893, 31365, 5621, 3639, 5589, 23, 72, 6515, 273, 394, 5589, 23, 72, 12, 21, 18, ...
/* * logeador.log(TolucaConstants.CLIENT_DEBUG_LOG_LEVEL, " Player cliente : " + * playerClient); */
/*logeador.log(TolucaConstants.CLIENT_DEBUG_LOG_LEVEL, " Player cliente : " + playerClient);*/
public void tirarCarta(TrucoEvent event) { /* * logeador.log(TolucaConstants.CLIENT_DEBUG_LOG_LEVEL, "Se quire tirar * carta table " + event.getTableNumber()); */ Table table = room.getTable(event.getTableNumber()); TrucoGameClient trucoGameClient = (TrucoGameClient) table.getTGame(); TrucoPlayer playerServer = event.getPlayer(); TrucoPlayer playerClient = room.getPlayer(playerServer.getName()); TrucoCard cartaServer = event.getCard(); TrucoCard cartaClient = trucoGameClient.getCard(cartaServer.getKind(), cartaServer.getValue()); /* * logeador.log(TolucaConstants.CLIENT_DEBUG_LOG_LEVEL, " Player cliente : " + * playerClient); */ // logeador.log(TolucaConstants.CLIENT_DEBUG_LOG_LEVEL, " carta cliente: // "+cartaClient); // logeador.log(TolucaConstants.CLIENT_DEBUG_LOG_LEVEL, "TrucoPlayer : // "+trucoPlayer); //TODO: ver por que no anda mas el tema del igual entre objetos como // era antes if (!trucoPlayer.getName().equals(playerClient.getName())) { //logeador.log(TolucaConstants.CLIENT_DEBUG_LOG_LEVEL, // getClass().getName()+"tirarCarta: playerCliente no es igual a // trucoPlayer"); //logeador.log(TolucaConstants.CLIENT_DEBUG_LOG_LEVEL, "Ejecuto // primero la jugada en el cliente!!!: " + // tp.getPlayer().getName()); TrucoPlay tp = new TrucoPlay(playerClient, TrucoPlay.JUGAR_CARTA, cartaClient); trucoGameClient.play(tp); } trucoGameClient.playResponse(playerClient, cartaClient); }
1311 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1311/41d462eab04bb797582f1b0121ef6312af5ad55b/EventDispatcherClient.java/clean/py/edu/uca/fcyt/toluca/net/EventDispatcherClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 268, 481, 297, 13006, 69, 12, 1070, 89, 2894, 1133, 871, 13, 288, 3639, 1748, 540, 380, 613, 684, 280, 18, 1330, 12, 16557, 5286, 69, 2918, 18, 11935, 67, 9394, 67, 4842, 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, 918, 268, 481, 297, 13006, 69, 12, 1070, 89, 2894, 1133, 871, 13, 288, 3639, 1748, 540, 380, 613, 684, 280, 18, 1330, 12, 16557, 5286, 69, 2918, 18, 11935, 67, 9394, 67, 4842, 6...
{ return checking; }
{ return rootPaneCheckingEnabled; }
protected boolean isRootPaneCheckingEnabled() { return checking; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/49e488b8530051383b90b1357fa767c87c9ff7f5/JDialog.java/clean/core/src/classpath/javax/javax/swing/JDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 225, 1250, 19371, 8485, 14294, 1526, 1435, 565, 288, 565, 327, 6728, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 225, 1250, 19371, 8485, 14294, 1526, 1435, 565, 288, 565, 327, 6728, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
rsp_list=_req.getResults(); if(rsp_list.size() == 0) { if(log.isWarnEnabled()) log.warn(" response list is empty"); return null; } if(rsp_list.size() > 1) if(log.isWarnEnabled()) log.warn("response list contains " + "more that 1 response; returning first response !"); rsp=(Rsp)rsp_list.elementAt(0); if(rsp.wasSuspected()) throw new SuspectedException(dest); if(!rsp.wasReceived()) throw new TimeoutException(); return rsp.getValue(); }
rsp_list = _req.getResults(); if (rsp_list.size() == 0) { if (log.isWarnEnabled()) { log.warn(" response list is empty"); } return null; } if (rsp_list.size() > 1) { if (log.isWarnEnabled()) { log.warn("response list contains " + "more that 1 response; returning first response !"); } } rsp = (Rsp) rsp_list.elementAt(0); if (rsp.wasSuspected()) { throw new SuspectedException(dest); } if (!rsp.wasReceived()) { throw new TimeoutException(); } return rsp.getValue(); }
public Object sendMessage(Message msg, int mode, long timeout) throws TimeoutException, SuspectedException { Vector mbrs=new Vector(); RspList rsp_list=null; Object dest=msg.getDest(); Rsp rsp; GroupRequest _req=null; if(dest == null) { if(log.isErrorEnabled()) log.error("the message's destination is null, " + "cannot send message"); return null; } mbrs.addElement(dest); // dummy membership (of destination address) _req=new GroupRequest(msg, corr, mbrs, mode, timeout, 0); _req.execute(); if(mode == GroupRequest.GET_NONE) return null; rsp_list=_req.getResults(); if(rsp_list.size() == 0) { if(log.isWarnEnabled()) log.warn(" response list is empty"); return null; } if(rsp_list.size() > 1) if(log.isWarnEnabled()) log.warn("response list contains " + "more that 1 response; returning first response !"); rsp=(Rsp)rsp_list.elementAt(0); if(rsp.wasSuspected()) throw new SuspectedException(dest); if(!rsp.wasReceived()) throw new TimeoutException(); return rsp.getValue(); }
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/1c1c7d103f9cfeff6928cd868bac88a3edc0eecf/MessageDispatcher.java/buggy/src/org/jgroups/blocks/MessageDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 15399, 12, 1079, 1234, 16, 509, 1965, 16, 1525, 2021, 13, 1216, 23334, 16, 348, 407, 1789, 503, 288, 3639, 5589, 3639, 312, 2848, 87, 33, 2704, 5589, 5621, 3639, 534, 1752, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 15399, 12, 1079, 1234, 16, 509, 1965, 16, 1525, 2021, 13, 1216, 23334, 16, 348, 407, 1789, 503, 288, 3639, 5589, 3639, 312, 2848, 87, 33, 2704, 5589, 5621, 3639, 534, 1752, ...
return addImplementation(node, unique, matchEmail, nodePresent);
if (unique != null && !address.equals(node.emailPart)) unique.add(address); node = addImplementation(node, unique, matchEmail, nodePresent); if (!nodePresent && node != null) mCache.put(address, node); return node;
public CacheNode add(CacheNode externalNode, Set<String> unique, boolean matchEmail) { if (externalNode == null) return null; CacheNode node = null; if (externalNode.emailPart != null) node = mCache.get(externalNode.emailPart); boolean nodePresent = node != null; if (!nodePresent) node = new CacheNode(externalNode, mId++); return addImplementation(node, unique, matchEmail, nodePresent); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/0c9fab6c109d16c5d723fd25631e62949944518a/EmailElementCache.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/mail/EmailElementCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4379, 907, 527, 12, 1649, 907, 3903, 907, 16, 1000, 32, 780, 34, 3089, 16, 1250, 845, 4134, 13, 288, 3639, 309, 261, 9375, 907, 422, 446, 13, 5411, 327, 446, 31, 3639, 4379, 907...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4379, 907, 527, 12, 1649, 907, 3903, 907, 16, 1000, 32, 780, 34, 3089, 16, 1250, 845, 4134, 13, 288, 3639, 309, 261, 9375, 907, 422, 446, 13, 5411, 327, 446, 31, 3639, 4379, 907...
if (pdom == null) {
if (index == null) {
protected void setUp() throws Exception { if (pdom == null) { project = createProject("includesTests"); pdom = CCorePlugin.getIndexManager().getIndex(project); } pdom.acquireReadLock(); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d6d9ed6df05fa9a4d5efa12e7ef50e6fa2caec66/IncludesTests.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/pdom/tests/IncludesTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24292, 1435, 1216, 1185, 288, 202, 202, 430, 261, 84, 9859, 422, 446, 13, 288, 1082, 202, 4406, 273, 752, 4109, 2932, 18499, 14650, 8863, 1082, 202, 84, 9859, 273, 385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24292, 1435, 1216, 1185, 288, 202, 202, 430, 261, 84, 9859, 422, 446, 13, 288, 1082, 202, 4406, 273, 752, 4109, 2932, 18499, 14650, 8863, 1082, 202, 84, 9859, 273, 385, ...
IRubyObject mesg = backtrace.first(IRubyObject.NULL_ARRAY);
IRubyObject mesg = ((RubyArray) backtrace).first(IRubyObject.NULL_ARRAY);
public void printError(RubyException excp) { if (excp == null || excp.isNil()) { return; } ThreadContext tc = getCurrentContext(); RubyArray backtrace = (RubyArray) excp.callMethod(tc, "backtrace"); PrintStream errorStream = getErrorStream(); if (backtrace.isNil()) { if (tc.getSourceFile() != null) { errorStream.print(tc.getPosition()); } else { errorStream.print(tc.getSourceLine()); } } else if (backtrace.getLength() == 0) { printErrorPos(errorStream); } else { IRubyObject mesg = backtrace.first(IRubyObject.NULL_ARRAY); if (mesg.isNil()) { printErrorPos(errorStream); } else { errorStream.print(mesg); } } RubyClass type = excp.getMetaClass(); String info = excp.toString(); if (type == getClass("RuntimeError") && (info == null || info.length() == 0)) { errorStream.print(": unhandled exception\n"); } else { String path = type.getName(); if (info.length() == 0) { errorStream.print(": " + path + '\n'); } else { if (path.startsWith("#")) { path = null; } String tail = null; if (info.indexOf("\n") != -1) { tail = info.substring(info.indexOf("\n") + 1); info = info.substring(0, info.indexOf("\n")); } errorStream.print(": " + info); if (path != null) { errorStream.print(" (" + path + ")\n"); } if (tail != null) { errorStream.print(tail + '\n'); } } } if (!backtrace.isNil()) { excp.printBacktrace(errorStream); } }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/fe628a940467ceda783730ea34173dec3d365fa4/Ruby.java/buggy/src/org/jruby/Ruby.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1172, 668, 12, 54, 10340, 503, 3533, 84, 13, 288, 202, 202, 430, 261, 338, 4057, 422, 446, 747, 3533, 84, 18, 291, 12616, 10756, 288, 5411, 327, 31, 3639, 289, 3639, 4884, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1172, 668, 12, 54, 10340, 503, 3533, 84, 13, 288, 202, 202, 430, 261, 338, 4057, 422, 446, 747, 3533, 84, 18, 291, 12616, 10756, 288, 5411, 327, 31, 3639, 289, 3639, 4884, ...
public static DataBuffer createBufferFromData(int dataType, Object data, int size) { switch (dataType) { case DataBuffer.TYPE_BYTE :
public static DataBuffer createBufferFromData(int dataType, Object data, int size) { switch (dataType) { case DataBuffer.TYPE_BYTE:
public static DataBuffer createBufferFromData(int dataType, Object data, int size) { switch (dataType) { case DataBuffer.TYPE_BYTE : return new DataBufferByte((byte[]) data, size); case DataBuffer.TYPE_USHORT : return new DataBufferUShort((short[]) data, size); case DataBuffer.TYPE_INT : return new DataBufferInt((int[]) data, size); default : throw new UnsupportedOperationException(); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/Buffers.java/buggy/core/src/classpath/gnu/gnu/java/awt/Buffers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1910, 1892, 752, 1892, 1265, 751, 12, 474, 8891, 16, 1033, 501, 16, 509, 963, 13, 288, 202, 202, 9610, 261, 892, 559, 13, 288, 1082, 202, 3593, 1910, 1892, 18, 2399, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1910, 1892, 752, 1892, 1265, 751, 12, 474, 8891, 16, 1033, 501, 16, 509, 963, 13, 288, 202, 202, 9610, 261, 892, 559, 13, 288, 1082, 202, 3593, 1910, 1892, 18, 2399, 67...
f = new USKFetcher(usk, this, ctx, parent, 3, false);
f = new USKFetcher(usk, this, ctx, parent, 3, false, keepLastData);
public synchronized USKFetcher getFetcher(USK usk, FetcherContext ctx, ClientGetter parent) { USKFetcher f = (USKFetcher) fetchersByUSK.get(usk); USK clear = usk.clearCopy(); if(temporaryBackgroundFetchersLRU.contains(clear)) temporaryBackgroundFetchersLRU.push(clear); if(f != null) { if((f.parent.priorityClass == parent.priorityClass) && f.ctx.equals(ctx)) return f; } f = new USKFetcher(usk, this, ctx, parent, 3, false); fetchersByUSK.put(usk, f); return f; }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/ba61984610fbdc6ae89adf37e39660cc27c3f343/USKManager.java/buggy/src/freenet/client/async/USKManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 587, 11129, 16855, 2812, 1593, 264, 12, 3378, 47, 584, 79, 16, 8065, 264, 1042, 1103, 16, 1082, 202, 1227, 8461, 982, 13, 288, 202, 202, 3378, 47, 16855, 284, 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, 225, 202, 482, 3852, 587, 11129, 16855, 2812, 1593, 264, 12, 3378, 47, 584, 79, 16, 8065, 264, 1042, 1103, 16, 1082, 202, 1227, 8461, 982, 13, 288, 202, 202, 3378, 47, 16855, 284, 273, 261, ...
in.seek(0);
in.reset();
protected void initFile(String id) throws FormatException, IOException { close(); currentId = id; metadata = new Hashtable(); in = new RandomAccessFile(id, "r"); offsets = new Vector(); in.seek(200); // read a block of 8192 characters, looking for the "BigEndian" pattern byte[] buf = new byte[8192]; boolean found = false; while (!found) { if (in.getFilePointer() < in.length()) { in.read(buf, 9, 8183); String test = new String(buf); int ndx = test.indexOf("BigEndian"); if (ndx != -1) { found = true; String endian = test.substring(ndx + 11); if (endian.toLowerCase().startsWith("t")) littleEndian = false; else littleEndian = true; } } else { throw new FormatException("Pixel data not found."); } } //in.seek(200); in.seek(0); // look for the first BinData element found = false; buf = new byte[8192]; in.read(buf, 0, 14); while (!found) { if (in.getFilePointer() < in.length()) { int numRead = in.read(buf, 14, 8192-14); String test = new String(buf); int ndx = test.indexOf("<Bin"); if (ndx == -1) throw new FormatException("Pixel data not found"); while (!((ndx != -1) && (ndx != test.indexOf("<Bin:External")))) { ndx = test.indexOf("<Bin", ndx+1); } found = true; numRead += 14; offsets.add(new Integer((int) in.getFilePointer() - (numRead - ndx))); } else { throw new FormatException("Pixel data not found"); } } in.seek(0); buf = new byte[((Integer) offsets.get(0)).intValue()]; in.read(buf); String xml = new String(buf); xml += "</Pixels></Image></OME>"; // might lose some data this way ome = OMETools.createRoot(xml); int sizeX = 0; int sizeY = 0; int sizeZ = 0; int sizeC = 0; int sizeT = 0; if (ome == null) { throw new FormatException("To use this feature, please install the " + "org.openmicroscopy.xml package, available from " + "http://www.openmicroscopy.org/"); } String type = OMETools.getPixelType(ome); if (type.endsWith("16")) bpp = 2; else if (type.endsWith("32")) bpp = 4; else if (type.equals("float")) bpp = 8; sizeX = OMETools.getSizeX(ome).intValue(); sizeY = OMETools.getSizeY(ome).intValue(); sizeZ = OMETools.getSizeZ(ome).intValue(); sizeC = OMETools.getSizeC(ome).intValue(); sizeT = OMETools.getSizeT(ome).intValue(); // calculate the number of raw bytes of pixel data that we are expecting int expected = sizeX * sizeY * bpp; // find the compression type and adjust 'expected' accordingly in.seek(((Integer) offsets.get(0)).intValue()); buf = new byte[256]; in.read(buf); String data = new String(buf); int compressionStart = data.indexOf("Compression") + 13; int compressionEnd = data.indexOf("\"", compressionStart); if (compressionStart != -1 && compressionEnd != -1) { compression = data.substring(compressionStart, compressionEnd); } else compression = "none"; expected /= 2; searchForData(expected); numImages = offsets.size(); if (numImages < (sizeZ * sizeT * sizeC)) { searchForData(0); // hope this doesn't happen too often numImages = offsets.size(); } }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/91859a26506b8a1d312b398da2c3ecd94e02fa60/OMEXMLReader.java/buggy/loci/formats/OMEXMLReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 1746, 5621, 565, 783, 548, 273, 612, 31, 565, 1982, 273, 394, 18559, 5621, 565, 316, 273, 394, 8072, 26933, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 1746, 5621, 565, 783, 548, 273, 612, 31, 565, 1982, 273, 394, 18559, 5621, 565, 316, 273, 394, 8072, 26933, ...
warningLabel.setText("If you don't know what these are, don't change them");
warningLabel .setText("If you don't know what these are, don't change them");
private void initComponents() { warningLabel = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); tpScene2Label = new javax.swing.JLabel(); tpScene2Field = new javax.swing.JTextField(); tpScene3Label = new javax.swing.JLabel(); tpScene3Field = new javax.swing.JTextField(); updateButton = new javax.swing.JButton(); cancelButton = new javax.swing.JButton(); setTitle("Teleport Address changer"); setName("teleportAddressChangerDialog"); setResizable(false); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { closeDialog(evt); } }); warningLabel.setText("If you don't know what these are, don't change them"); getContentPane().add(warningLabel, java.awt.BorderLayout.NORTH); jPanel1.setLayout(new java.awt.GridLayout(0, 2, 5, 10)); tpScene2Label.setText("Scene 2 TP (0x96):"); jPanel1.add(tpScene2Label); tpScene2Field.setText( Integer.toString( scene2.getTeleportOffset(), 16 ) ); jPanel1.add(tpScene2Field); tpScene3Label.setText("Scene 3 TP (0x97):"); jPanel1.add(tpScene3Label); tpScene3Field.setText( Integer.toString( scene3.getTeleportOffset(), 16 ) ); jPanel1.add(tpScene3Field); updateButton.setText("Update"); jPanel1.add(updateButton); cancelButton.setText("Cancel"); jPanel1.add(cancelButton); getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER); pack(); cancelButton.addActionListener( this ); updateButton.addActionListener( this ); }
3699 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3699/e3746491678a9f0bdee74ba64d785d53772c8516/FlyoverEditor.java/clean/src/net/starmen/pkhack/eb/FlyoverEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 1208, 7171, 1435, 540, 288, 5411, 3436, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 5411, 17871, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 5411, 807...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1208, 7171, 1435, 540, 288, 5411, 3436, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 5411, 17871, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 5411, 807...
namespaceURI_ = namespaceURI;
if(namespaceURI == null) namespaceURI_ = ""; else namespaceURI_ = namespaceURI;
public QName(String localName, String namespaceURI, String prefix) { localName_ = localName; namespaceURI_ = namespaceURI; prefix_ = prefix; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/5e842873242d5ae7b9bbb6cc77c54f6029667ea8/QName.java/clean/src/org/exist/dom/QName.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16723, 12, 780, 11927, 16, 514, 19421, 16, 514, 1633, 13, 288, 202, 202, 3729, 461, 67, 273, 11927, 31, 202, 202, 4937, 3098, 67, 273, 19421, 31, 202, 202, 3239, 67, 273, 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, 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, 16723, 12, 780, 11927, 16, 514, 19421, 16, 514, 1633, 13, 288, 202, 202, 3729, 461, 67, 273, 11927, 31, 202, 202, 4937, 3098, 67, 273, 19421, 31, 202, 202, 3239, 67, 273, 16...
log.error( sqle);
log.error("Error getting names by user ID from UP_USER", sqle);
private Map getUserNames() throws java.sql.SQLException{ Connection conn = null; Statement stmnt = null; Map userNames = new HashMap(); try { conn = RDBMServices.getConnection(); try { stmnt = conn.createStatement(); String sql = getSelectUserNamesSql(); log.debug( "ReferencePersonNameFinder.getUserNames(): " + sql); ResultSet rs = stmnt.executeQuery(sql); while (rs.next()) { String key = rs.getString(USER_NAME_COLUMN); userNames.put(key, key); } } finally { stmnt.close(); } } catch (SQLException sqle) { log.error( sqle); throw sqle; } finally { RDBMServices.releaseConnection(conn); } return userNames;}
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/08043273fa4afdbfed41d8831e4a2873036a8a54/ReferencePersonNameFinder.java/buggy/source/org/jasig/portal/groups/ReferencePersonNameFinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 1635, 4735, 1557, 1435, 1216, 2252, 18, 4669, 18, 23116, 95, 565, 4050, 1487, 273, 446, 31, 565, 8056, 384, 21818, 273, 446, 31, 565, 1635, 729, 1557, 273, 394, 4317, 5621, 565, 775, 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, 3238, 1635, 4735, 1557, 1435, 1216, 2252, 18, 4669, 18, 23116, 95, 565, 4050, 1487, 273, 446, 31, 565, 8056, 384, 21818, 273, 446, 31, 565, 1635, 729, 1557, 273, 394, 4317, 5621, 565, 775, 5...
_manager = createManagerFile(filePath);
_manager = createManagerFile(propPath);
public synchronized PersistenceManager createManager (String filePath) throws Exception { if (_manager == null) { if (checkDB(filePath)) _manager = createManagerDB(filePath); else _manager = createManagerFile(filePath); } return _manager; }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/13de68466e3cf7fde6ee0bde0cee09a33e837e89/PersistenceFactory.java/buggy/src/org/jgroups/persistence/PersistenceFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 13381, 1318, 752, 1318, 261, 780, 4612, 13, 1216, 1185, 377, 288, 3639, 309, 261, 67, 4181, 422, 446, 13, 3639, 288, 5411, 309, 261, 1893, 2290, 12, 22787, 3719, 7734, 389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 13381, 1318, 752, 1318, 261, 780, 4612, 13, 1216, 1185, 377, 288, 3639, 309, 261, 67, 4181, 422, 446, 13, 3639, 288, 5411, 309, 261, 1893, 2290, 12, 22787, 3719, 7734, 389, ...
String type = "text/plain";
String type = "text/plain";
public DataHandler getDataHandler() throws MessagingException { if (data_handler==null) { String type = "text/plain"; //XXX lie to it... String[] content_types = getHeader("Content-Type"); if ((content_types!=null)&&(content_types.length>0)) { type = content_types[0]; } data_handler = new DataHandler(getContentAsString(),type); } return data_handler; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b13c667b376deb4a8f2c235ffd847b57616d23c4/MessageBase.java/buggy/grendel/sources/grendel/storage/MessageBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1910, 1503, 4303, 1503, 1435, 1216, 23794, 503, 288, 565, 309, 261, 892, 67, 4176, 631, 2011, 13, 288, 1377, 514, 618, 273, 315, 955, 19, 7446, 14432, 225, 368, 15639, 328, 1385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1910, 1503, 4303, 1503, 1435, 1216, 23794, 503, 288, 565, 309, 261, 892, 67, 4176, 631, 2011, 13, 288, 1377, 514, 618, 273, 315, 955, 19, 7446, 14432, 225, 368, 15639, 328, 1385, ...
return true;
public boolean execute(final Flags prefix, final Context context, final TokenSource source, final Typesetter typesetter) throws GeneralException { ensureVerticalMode(typesetter); typesetter.addGlue(FILL); return true; }
9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/eb1aab511c6c3c43b19c0de86545f73f089e3526/Vfill.java/buggy/ExTeX/src/java/de/dante/extex/interpreter/primitives/typesetter/spacing/Vfill.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1836, 12, 6385, 10104, 1633, 16, 727, 1772, 819, 16, 5411, 727, 3155, 1830, 1084, 16, 727, 7658, 11214, 1953, 11214, 13, 5411, 1216, 9544, 503, 288, 3639, 3387, 15704, 2309, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1836, 12, 6385, 10104, 1633, 16, 727, 1772, 819, 16, 5411, 727, 3155, 1830, 1084, 16, 727, 7658, 11214, 1953, 11214, 13, 5411, 1216, 9544, 503, 288, 3639, 3387, 15704, 2309, 1...
clickLinkWithText("Configure Bootstrappers"); clickLinkWithText("Configure cvsbootstrapper");
gotoPage(CVS_URL);
public void testShouldAllowUsersToClearCVSBootstrapperAttributes() { String cvsroot = "/cvs/foo"; beginAt(CVS_URL); setWorkingForm("cvsbootstrapper-details"); setFormElement("cvsroot", cvsroot); submit(); assertTextPresent(cvsroot); clickLinkWithText("Configure Bootstrappers"); clickLinkWithText("Configure cvsbootstrapper"); assertTextPresent(cvsroot); setWorkingForm("cvsbootstrapper-details"); setFormElement("cvsroot", ""); submit(); assertTextNotPresent(cvsroot); clickLinkWithText("Configure Bootstrappers"); clickLinkWithText("Configure cvsbootstrapper"); assertTextNotPresent(cvsroot); }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/3d59f4c3b67f79b9d449bc219ab8c7bae11c698e/BootstrapperDetailsWebTest.java/clean/webtest/net/sourceforge/cruisecontrol/BootstrapperDetailsWebTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 14309, 7009, 6588, 774, 9094, 39, 14640, 10445, 457, 2498, 1435, 288, 3639, 514, 276, 6904, 3085, 273, 2206, 71, 6904, 19, 11351, 14432, 3639, 2376, 861, 12, 39, 14640, 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, 918, 1842, 14309, 7009, 6588, 774, 9094, 39, 14640, 10445, 457, 2498, 1435, 288, 3639, 514, 276, 6904, 3085, 273, 2206, 71, 6904, 19, 11351, 14432, 3639, 2376, 861, 12, 39, 14640, 6...
} catch(Exception e1) { e1.printStackTrace();
} catch (Exception e1) { e1.printStackTrace();
public void processFile(File f, boolean subdirectories) throws Exception { if ( f.isDirectory() && subdirectories) { // If f is a directory and the subdirectory flag is set, processDirectory(f); // import all the files in this directory } else { // Is this file a Jarfile? if( f.getName().endsWith(".jar")) { processJarFile(f); } else { if( f.getName().endsWith(".class")) { String fileName = f.getName(); try { parseFile(new FileInputStream(f), fileName); // Try to parse this file. } catch(Exception e1) { e1.printStackTrace(); _secondPassFiles.add(f); } } } } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5cee6094c7b77e3bcf6338f68456e6e531e781b7/ClassfileImport.java/buggy/modules/classfile/src/org/argouml/uml/reveng/classfile/ClassfileImport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1207, 812, 12, 812, 284, 16, 1250, 31220, 13, 1216, 1185, 288, 540, 202, 430, 261, 284, 18, 291, 2853, 1435, 597, 31220, 13, 288, 565, 368, 971, 284, 353, 279, 1867, 471, 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, 1207, 812, 12, 812, 284, 16, 1250, 31220, 13, 1216, 1185, 288, 540, 202, 430, 261, 284, 18, 291, 2853, 1435, 597, 31220, 13, 288, 565, 368, 971, 284, 353, 279, 1867, 471, 3...
Log.log(Log.ERROR, MODULE, "resizeTo size should be integer numbers");
Log.log(Log.LEVEL_ERROR, MODULE, "resizeTo size should be integer numbers");
public void writeProperties(GalleryProperties props) { props.setBooleanProperty(RESIZE_BEFORE_UPLOAD, resizeBeforeUpload.isSelected()); if (resizeBeforeUpload.isSelected()) { Dimension d = null; if (resizeToDefault.isSelected()) { d = new Dimension(0,0); } else { try { d = new Dimension(Integer.parseInt(resizeToWidth.getText()), Integer.parseInt(resizeToHeight.getText())); } catch (Exception e) { Log.log(Log.ERROR, MODULE, "resizeTo size should be integer numbers"); } } if (d != null) { props.setDimensionProperty(RESIZE_TO, d); } } props.setBooleanProperty(SET_CAPTIONS_WITH_FILENAMES, setCaptionsWithFilenames.isSelected()); props.setBooleanProperty(CAPTION_STRIP_EXTENSION, captionStripExtension.isSelected()); props.setBooleanProperty(HTML_ESCAPE_CAPTIONS, ! htmlEscapeCaptionsNot.isSelected()); props.setBooleanProperty(EXIF_AUTOROTATE, exifAutorotate.isSelected()); }
5431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5431/1faa1edcd69ba6f773ebcc5a8a21f029bd9e2263/UploadPanel.java/buggy/gallery_remote/com/gallery/GalleryRemote/prefs/UploadPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1045, 2297, 12, 18511, 2297, 3458, 13, 288, 202, 202, 9693, 18, 542, 5507, 1396, 12, 862, 4574, 67, 19152, 67, 23347, 16, 7041, 4649, 4777, 18, 291, 7416, 10663, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1045, 2297, 12, 18511, 2297, 3458, 13, 288, 202, 202, 9693, 18, 542, 5507, 1396, 12, 862, 4574, 67, 19152, 67, 23347, 16, 7041, 4649, 4777, 18, 291, 7416, 10663, 202, 202...
public void visitCRefNode(Node iVisited) { visit(iVisited); Node lNext = iVisited.getNextNode(); if (lNext != null) lNext.accept(this); leave(iVisited); }
public void visitCRefNode(Node iVisited) { visit(iVisited); Node lNext = iVisited.getNextNode(); if (lNext != null) { lNext.accept(this); } leave(iVisited); }
public void visitCRefNode(Node iVisited) { visit(iVisited); Node lNext = iVisited.getNextNode(); if (lNext != null) lNext.accept(this); leave(iVisited); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/d31a76ee29d5978a9bec41e3ac9134cee024bcab/NodeVisitorAdapter.java/buggy/org/jruby/nodes/NodeVisitorAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 39, 1957, 907, 12, 907, 277, 30019, 13, 202, 95, 202, 202, 11658, 12, 77, 30019, 1769, 202, 202, 907, 328, 2134, 273, 277, 30019, 18, 588, 2134, 907, 5621, 202, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 39, 1957, 907, 12, 907, 277, 30019, 13, 202, 95, 202, 202, 11658, 12, 77, 30019, 1769, 202, 202, 907, 328, 2134, 273, 277, 30019, 18, 588, 2134, 907, 5621, 202, 2...
if (iSeries != null) { return iBinaryIndexSum(start, finish); } if (sSeries != null) { return sBinaryIndexSum(start, finish); } if (fSeries != null) { return fBinaryIndexSum(start, finish); } if (dSeries != null) { return dBinaryIndexSum(start, finish); } return 0;
if (iSeries != null) { return iBinaryIndexSum(start, finish); } if (sSeries != null) { return sBinaryIndexSum(start, finish); } if (fSeries != null) { return fBinaryIndexSum(start, finish); } if (dSeries != null) { return dBinaryIndexSum(start, finish); } throw new RuntimeException("All data arrays are null (int, short, float and double), This should never happen");
public double binaryIndexSum(int start, int finish) { if (iSeries != null) { return iBinaryIndexSum(start, finish); } // end of if (iSeries != null) if (sSeries != null) { return sBinaryIndexSum(start, finish); } // end of if (sSeries != null) if (fSeries != null) { return fBinaryIndexSum(start, finish); } // end of if (fSeries != null) if (dSeries != null) { return dBinaryIndexSum(start, finish); } // end of if (dSeries != null) return 0; }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/05e078356cbf684ec12612d15c6a53faa346f073/Statistics.java/buggy/src/edu/sc/seis/fissuresUtil/bag/Statistics.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1645, 3112, 1016, 3495, 12, 474, 787, 16, 509, 4076, 13, 288, 565, 309, 261, 77, 6485, 480, 446, 13, 288, 3639, 327, 277, 5905, 1016, 3495, 12, 1937, 16, 4076, 1769, 565, 289, 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, 1645, 3112, 1016, 3495, 12, 474, 787, 16, 509, 4076, 13, 288, 565, 309, 261, 77, 6485, 480, 446, 13, 288, 3639, 327, 277, 5905, 1016, 3495, 12, 1937, 16, 4076, 1769, 565, 289, 3...
List subs = getSubFeatures(seq); Collections.sort(subs, Feature.byEmblOrder);
List subs = getSubFeatures(seq); Collections.sort(subs, Feature.byEmblOrder);
public static void getSeqIOEvents(Sequence seq, SeqIOListener listener) throws BioException { try { // Inform listener of sequence start listener.startSequence(); // Pass name to listener listener.setName(seq.getName()); // Pass URN to listener listener.setURI(seq.getURN()); // Pass sequence properties to listener Annotation a = seq.getAnnotation(); for (Iterator ai = a.keys().iterator(); ai.hasNext();) { Object key = ai.next(); listener.addSequenceProperty(key, a.getProperty(key)); } // Recurse through sub feature tree, flattening it for // EMBL List subs = getSubFeatures(seq); Collections.sort(subs, Feature.byEmblOrder); // Put the source features first for EMBL for (Iterator fi = subs.iterator(); fi.hasNext();) { // The template is required to call startFeature Feature.Template t = ((Feature) fi.next()).makeTemplate(); // Inform listener of feature start listener.startFeature(t); // Pass feature properties (i.e. qualifiers to // listener) List keys = new ArrayList(); keys.addAll(t.annotation.keys()); Collections.sort(keys); for (Iterator ki = keys.iterator(); ki.hasNext();) { Object key = ki.next(); if (key.equals(Feature.PROPERTY_DATA_KEY)) continue; listener.addFeatureProperty(key, t.annotation.getProperty(key)); } // Inform listener of feature end listener.endFeature(); } // Add symbols listener.addSymbols(seq.getAlphabet(), (Symbol []) seq.toList().toArray(new Symbol [0]), 0, seq.length()); // Inform listener of sequence end listener.endSequence(); } catch (IllegalAlphabetException iae) { // This should never happen as the alphabet is being used // by this Sequence instance throw new BioException(iae, "An internal error occurred processing symbols of " + seq.toString() + " into SeqIO events"); } catch (ParseException pe) { throw new BioException(pe, "An internal error occurred processing " + seq.toString() + " into SeqIO events"); } }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/8dfcb8a9a7ad95d813441dc1c1c904bb2e267f57/SeqIOEventEmitter.java/clean/src/org/biojava/bio/seq/io/SeqIOEventEmitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1322, 11253, 4294, 3783, 12, 4021, 1377, 3833, 16, 6862, 1377, 14367, 4294, 2223, 2991, 13, 202, 15069, 21209, 503, 565, 288, 202, 698, 202, 95, 202, 565, 368, 657, 687, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1322, 11253, 4294, 3783, 12, 4021, 1377, 3833, 16, 6862, 1377, 14367, 4294, 2223, 2991, 13, 202, 15069, 21209, 503, 565, 288, 202, 698, 202, 95, 202, 565, 368, 657, 687, ...
public org.quickfix.field.EncodedUnderlyingSecurityDescLen getEncodedUnderlyingSecurityDescLen() throws FieldNotFound { org.quickfix.field.EncodedUnderlyingSecurityDescLen value = new org.quickfix.field.EncodedUnderlyingSecurityDescLen();
public quickfix.field.EncodedUnderlyingSecurityDescLen getEncodedUnderlyingSecurityDescLen() throws FieldNotFound { quickfix.field.EncodedUnderlyingSecurityDescLen value = new quickfix.field.EncodedUnderlyingSecurityDescLen();
public org.quickfix.field.EncodedUnderlyingSecurityDescLen getEncodedUnderlyingSecurityDescLen() throws FieldNotFound { org.quickfix.field.EncodedUnderlyingSecurityDescLen value = new org.quickfix.field.EncodedUnderlyingSecurityDescLen(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/Confirmation.java/buggy/src/java/src/quickfix/fix44/Confirmation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 14655, 6291, 4368, 4217, 2891, 28799, 14655, 6291, 4368, 4217, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 14655, 6291, 4368, 4217, 2891, 28799, 14655, 6291, 4368, 4217, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, ...
|| DesignElement.VIEW_ACTION_PROP.equals( propName ) )
|| IDesignElementModel.VIEW_ACTION_PROP.equals( propName ) )
public static void duplicateProperties( DesignElementHandle source, DesignElementHandle destination, boolean onlyFactoryProperty ) { assert source != null; assert destination != null; if ( !( ( source instanceof ReportDesignHandle ) && ( destination instanceof LibraryHandle ) ) ) assert destination.getDefn( ).getName( ).equalsIgnoreCase( source.getDefn( ).getName( ) ); if ( source.getDefn( ).allowsUserProperties( ) ) { PropertyHandle propHandle = source .getPropertyHandle( DesignElement.USER_PROPERTIES_PROP ); Object value = source.getElement( ).getUserProperties( ); Object valueToSet = null; if ( propHandle != null ) { valueToSet = ModelUtil.copyValue( propHandle.getDefn( ), value ); } if ( valueToSet != null ) { Iterator iter = ( (List) valueToSet ).iterator( ); while ( iter.hasNext( ) ) { UserPropertyDefn userPropDefn = (UserPropertyDefn) iter .next( ); destination.getElement( ) .addUserPropertyDefn( userPropDefn ); } } } if ( source.getElement( ) instanceof IExtendableElement ) duplicateExtensionIdentifier( source.getElement( ), destination .getElement( ), source.getModule( ) ); Iterator iter = source.getPropertyIterator( ); while ( iter.hasNext( ) ) { PropertyHandle propHandle = (PropertyHandle) iter.next( ); String propName = propHandle.getDefn( ).getName( ); // Style property and extends property will be removed. // The properties inherited from style or parent will be // flatten to new element. if ( StyledElement.STYLE_PROP.equals( propName ) || DesignElement.EXTENDS_PROP.equals( propName ) || DesignElement.USER_PROPERTIES_PROP.equals( propName ) || IOdaExtendableElementModel.EXTENSION_ID_PROP .equals( propName ) || IExtendedItemModel.EXTENSION_NAME_PROP.equals( propName ) || DesignElement.REF_TEMPLATE_PARAMETER_PROP .equals( propName ) || DesignElement.VIEW_ACTION_PROP.equals( propName ) ) continue; ElementPropertyDefn propDefn = destination.getElement( ) .getPropertyDefn( propName ); if ( propDefn == null ) continue; Object value = null; // the special case for the toc, pageBreakAfter and pageBreakBefore // properties on the group element // for toc the default value is the group expression. if ( propHandle.getElement( ) instanceof GroupElement && ( GroupElement.TOC_PROP.equals( propName ) || IStyleModel.PAGE_BREAK_AFTER_PROP .equals( propName ) || IStyleModel.PAGE_BREAK_BEFORE_PROP .equals( propName ) || IStyleModel.PAGE_BREAK_INSIDE_PROP .equals( propName ) ) ) value = propHandle.getElement( ).getLocalProperty( propHandle.getModule( ), propDefn ); else if ( onlyFactoryProperty ) value = propHandle.getElement( ).getFactoryProperty( propHandle.getModule( ), propDefn ); else if ( Module.IMAGES_PROP.equals( propName ) ) { // Copy the embedded images Iterator images = source.getPropertyHandle( Module.IMAGES_PROP ) .iterator( ); while ( images.hasNext( ) ) { StructureHandle image = (StructureHandle) images.next( ); try { ElementExportUtil.exportStructure( image, (LibraryHandle) destination, false ); } catch ( SemanticException e ) { assert false; } } continue; } else value = propHandle.getElement( ).getStrategy( ) .getPropertyExceptRomDefault( propHandle.getModule( ), propHandle.getElement( ), propDefn ); Object valueToSet = ModelUtil.copyValue( propHandle.getDefn( ), value ); destination.getElement( ).setProperty( propName, valueToSet ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d802c33711e0d111551ae23575895cd060f085b6/ModelUtil.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ModelUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 6751, 2297, 12, 29703, 1046, 3259, 1084, 16, 1082, 202, 15478, 1046, 3259, 2929, 16, 1250, 1338, 1733, 1396, 262, 202, 95, 202, 202, 11231, 1084, 480, 446, 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, 482, 760, 918, 6751, 2297, 12, 29703, 1046, 3259, 1084, 16, 1082, 202, 15478, 1046, 3259, 2929, 16, 1250, 1338, 1733, 1396, 262, 202, 95, 202, 202, 11231, 1084, 480, 446, 31, 202, ...
category = argument;
categoryString = argument; else if (option.equals("-designation")) designationString = argument;
protected void handleOptionWithArgument(String option, String argument) throws IOException { if (option.equals("-priority")) { priority = parsePriority(argument); } else if (option.equals("-first")) firstAsString = argument; else if (option.equals("-last")) lastAsString = argument; else if (option.equals("-fixed")) fixedAsString = argument; else if (option.equals("-after")) afterAsString = argument; else if (option.equals("-before")) beforeAsString = argument; else if (option.equals("-present")) presentAsString = argument; else if (option.equals("-absent")) absentAsString = argument; else if (option.equals("-category")) category = argument; else if (option.equals("-class")) className = Pattern.compile(argument); else if (option.equals("-bugPattern")) bugPattern = Pattern.compile(argument); else if (option.equals("-annotation")) annotation = argument; else if (option.equals("-include")) { try { includeFilter = new edu.umd.cs.findbugs.filter.Filter(argument); } catch (FilterException e) { throw new IllegalArgumentException("Error processing include file: " + argument, e); } } else if (option.equals("-exclude")) { try { excludeFilter = new edu.umd.cs.findbugs.filter.Filter(argument); } catch (FilterException e) { throw new IllegalArgumentException("Error processing include file: " + argument, e); } } else throw new IllegalArgumentException("can't handle command line argument of " + option); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/f3bc4fd64fa6d192d32f7eb4a73680f0457905bf/Filter.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/workflow/Filter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 918, 1640, 1895, 1190, 1379, 12, 780, 1456, 16, 514, 1237, 13, 1216, 1860, 288, 1082, 202, 430, 261, 3482, 18, 14963, 2932, 17, 8457, 6, 3719, 288, 9506, 202, 8457, 273, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1117, 918, 1640, 1895, 1190, 1379, 12, 780, 1456, 16, 514, 1237, 13, 1216, 1860, 288, 1082, 202, 430, 261, 3482, 18, 14963, 2932, 17, 8457, 6, 3719, 288, 9506, 202, 8457, 273, 110...
if (nloop.get(out.getNumber())) {
if (OPT_CFGTransformations.inLoop (out, nloop)) {
static OPT_BasicBlock[] makeSomeCopies (int unrollFactor, OPT_IR ir, OPT_BitVector nloop, int blocks, OPT_BasicBlock header, OPT_BasicBlock exitBlock, OPT_BasicBlock seqStart) { // make some copies of the original loop OPT_BasicBlock seqEnd = seqStart.nextBasicBlockInCodeOrder(); if (seqEnd != null) ir.cfg.breakCodeOrder(seqStart, seqEnd); OPT_BasicBlock seqLast = seqStart; OPT_BasicBlock firstHeader = null; OPT_BasicBlock lastHeader = null; OPT_BasicBlock lastExit = null; OPT_BasicBlock handles[] = new OPT_BasicBlock[2]; OPT_BasicBlock bCopy = null; OPT_BitVector loop = new OPT_BitVector (nloop); loop.clear(header.getNumber()); loop.clear(exitBlock.getNumber()); for (int i = 0; i < unrollFactor; ++i) { // copy header seqLast = copyAndLinkBlock(ir, seqLast, header); lastHeader = seqLast; if (i == 0) { firstHeader = seqLast; } else { // link copies by jumps OPT_CFGTransformations.removeYieldPoint(seqLast); lastExit.lastInstruction().insertBefore (Goto.create(GOTO, seqLast.makeJumpTarget())); lastExit.recomputeNormalOut(ir); } // copy body OPT_BasicBlockEnumeration bs = ir.getBasicBlocks (loop); while (bs.hasMoreElements()) { seqLast = copyAndLinkBlock (ir, seqLast, bs.next()); } // copy exit block if (exitBlock != header) { seqLast = copyAndLinkBlock (ir, seqLast, exitBlock); lastExit = seqLast; } else { lastExit = lastHeader; } // delete all branches in the copies of the exit block deleteBranches (lastExit); // redirect internal branches OPT_BasicBlock cb = seqLast; for (int j = 0; j < blocks; ++j) { cb.recomputeNormalOut(ir); OPT_BasicBlockEnumeration be = cb.getOut(); while (be.hasMoreElements()) { OPT_BasicBlock out = be.next(); if (nloop.get(out.getNumber())) { cb.redirectOuts (out, (OPT_BasicBlock) out.scratchObject, ir); } } cb.recomputeNormalOut(ir); cb = cb.prevBasicBlockInCodeOrder(); } } if (seqEnd != null) ir.cfg.linkInCodeOrder (seqLast, seqEnd); handles[0] = firstHeader; handles[1] = lastExit; return handles; }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/ba9176ee0d2adcd87c3b329bd79a0d01eff8449f/OPT_LoopUnrolling.java/buggy/rvm/src/vm/compilers/optimizing/optimizations/control/OPT_LoopUnrolling.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 16456, 67, 8252, 1768, 8526, 1221, 17358, 15670, 261, 474, 640, 2693, 6837, 16, 16456, 67, 7937, 9482, 16, 25083, 225, 16456, 67, 5775, 5018, 290, 6498, 16, 25083, 225, 509, 4398, 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, 760, 16456, 67, 8252, 1768, 8526, 1221, 17358, 15670, 261, 474, 640, 2693, 6837, 16, 16456, 67, 7937, 9482, 16, 25083, 225, 16456, 67, 5775, 5018, 290, 6498, 16, 25083, 225, 509, 4398, 16...
f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, 32);
f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, NAME_SIZE);
public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, 32); f[4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[5] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, 32); f[8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, 32); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, 32); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, 32); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid, 4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, 32); StringBuffer sql = new StringBuffer(512); /* Build a >= 7.1 SQL statement to list all columns */ sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + /* Use the new col_description in 7.2 or an additional outer join in 7.1 */ (connection.haveMinimumServerVersion("7.2") ? "col_description(a.attrelid, a.attnum) " : "e.description ") + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern.toLowerCase() + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern.toLowerCase() + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " ) "); if (!connection.haveMinimumServerVersion("7.2")) { /* Only for 7.1 */ sql.append( " left outer join pg_description e on" + " (" + " e.objoid = a.oid" + " ) "); } sql.append("order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = null; // Catalog name, not supported tuple[1] = null; // Schema name, not supported tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length // Decimal digits = scale // From the source (see e.g. backend/utils/adt/format_type.c, // function numeric()) the scale and precision can be calculated // from the typmod value. if (typname.equals("numeric") || typname.equals("decimal")) { int attypmod = r.getInt(8) - VARHDRSZ; tuple[8] = Integer.toString(attypmod & 0xffff).getBytes(); tuple[9] = Integer.toString( ( attypmod >> 16 ) & 0xffff ).getBytes(); } else { tuple[8] = "0".getBytes(); tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal } tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return connection.getResultSet(null, f, v, "OK", 1); }
46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/62da2fa0e1cb3cf1df8d633f785e391c35477f7e/AbstractJdbc1DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 14226, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 16, 514, 7578, 3234, 13, 1216, 6483, 202, 95, 202, 202, 5018, 331, 273, 394, 5589, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 4669, 18, 13198, 14226, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 16, 514, 7578, 3234, 13, 1216, 6483, 202, 95, 202, 202, 5018, 331, 273, 394, 5589, ...
opcode = DataTools.bytesToInt(bytes, pt, 2, littleEndian);
opcode = DataTools.bytesToInt(bytes, pt, 2, little);
private boolean driveDecoder() throws FormatException { if (DEBUG) System.out.println("PictReader.driveDecoder"); int opcode, version; switch (pictState) { case INITIAL: int ret; int fileSize = DataTools.bytesToInt(bytes, pt, 2, littleEndian); pt += 2; // skip over frame pt += 8; int verOpcode = DataTools.bytesToInt(bytes, pt, 1, littleEndian); pt++; int verNumber = DataTools.bytesToInt(bytes, pt, 1, littleEndian); pt++; if (verOpcode == 0x11 && verNumber == 0x01) versionOne = true; else if (verOpcode == 0x00 && verNumber == 0x11) { versionOne = false; int verOpcode2 = 0x0011; int verNumber2 = DataTools.bytesToInt(bytes, pt, 2, littleEndian); pt += 2; if (verNumber2 != 0x02ff) { throw new FormatException("Invalid PICT file : " + verNumber2); } // skip over v2 header -- don't need it here pt += 26; } else throw new FormatException("Invalid PICT file"); pictState = STATE2; state |= INFOAVAIL; return true; case STATE2: if (versionOne) { opcode = DataTools.bytesToInt(bytes, pt, 1, littleEndian); pt++; } else { // if at odd boundary skip a byte for opcode in PICT v2 if ((pt & 0x1L) != 0) { pt++; } opcode = DataTools.bytesToInt(bytes, pt, 2, littleEndian); pt += 2; } return drivePictDecoder(opcode); } return true; }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/4cf4a7ff76a166988d770aa51d298fa2f84c9e2c/PictReader.java/buggy/loci/formats/PictReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 14316, 7975, 1435, 1216, 4077, 503, 288, 565, 309, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 52, 933, 2514, 18, 25431, 7975, 8863, 565, 509, 11396, 16, 1177, 31, 565, 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, 3238, 1250, 14316, 7975, 1435, 1216, 4077, 503, 288, 565, 309, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 52, 933, 2514, 18, 25431, 7975, 8863, 565, 509, 11396, 16, 1177, 31, 565, 16...
if (pl2 != null && pl.equals(pl2)) {
if (pl.equals(pl2)) {
public int getHeapObjectIndex(ProgramLocation pl) { Collection c = methodToVariables.getValues(pl.getMethod()); for (Iterator i = c.iterator(); i.hasNext(); ) { Node o = (Node) i.next(); if (o instanceof ConcreteTypeNode) { ConcreteTypeNode ctn = (ConcreteTypeNode) o; ProgramLocation pl2 = ctn.getLocation(); Assert._assert(pl2.getMethod() == pl.getMethod()); Assert._assert(pl.getClass() == pl2.getClass()); if (pl2 != null && pl.equals(pl2)) { return getHeapIndex(o); } } } return -1; }
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/b43e068069ef682f091dc7531466761863db32b6/CSPAResults.java/buggy/joeq_core/joeq/Compiler/Analysis/IPA/CSPAResults.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 336, 15648, 921, 1016, 12, 9459, 2735, 886, 13, 288, 3639, 2200, 276, 273, 707, 774, 6158, 18, 588, 1972, 12, 412, 18, 588, 1305, 10663, 3639, 364, 261, 3198, 277, 273, 276, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 15648, 921, 1016, 12, 9459, 2735, 886, 13, 288, 3639, 2200, 276, 273, 707, 774, 6158, 18, 588, 1972, 12, 412, 18, 588, 1305, 10663, 3639, 364, 261, 3198, 277, 273, 276, ...
return reservedWords.contains(s.toUpperCase()); }
return reservedWords.contains(s.toUpperCase()); }
public boolean isReserved(String s) { return reservedWords.contains(s.toUpperCase()); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 10435, 12, 780, 272, 13, 288, 202, 202, 2463, 8735, 7363, 18, 12298, 12, 87, 18, 869, 8915, 10663, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 10435, 12, 780, 272, 13, 288, 202, 202, 2463, 8735, 7363, 18, 12298, 12, 87, 18, 869, 8915, 10663, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
IProject project = (IProject)owner;
public String getOutputFlag(String outputExt) { IProject project = (IProject)owner; // Treat null extension as an empty string String ext = outputExt == null ? new String() : outputExt; // Get all the tools for the current config String flags = new String(); IConfiguration config = getDefaultConfiguration(getDefaultTarget()); ITool[] tools = config.getFilteredTools(project); for (int index = 0; index < tools.length; index++) { ITool tool = tools[index]; // It's OK if (tool.producesFileType(ext)) { flags = tool.getOutputFlag(); } } return flags; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/5c9fe1859cabfbd4618959eb71f6e54c1222ce0d/ManagedBuildInfo.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 11062, 4678, 12, 780, 876, 2482, 13, 288, 202, 202, 45, 4109, 1984, 273, 261, 45, 4109, 13, 8443, 31, 202, 202, 759, 26564, 446, 2710, 487, 392, 1008, 533, 202, 202, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 11062, 4678, 12, 780, 876, 2482, 13, 288, 202, 202, 45, 4109, 1984, 273, 261, 45, 4109, 13, 8443, 31, 202, 202, 759, 26564, 446, 2710, 487, 392, 1008, 533, 202, 202, 78...
int jtype = getType(datatypes[i][2]); if (pass == 1) cstmt.setObject(1,null,jtype,10); if (jtype == java.sql.Types.NUMERIC || jtype == java.sql.Types.DECIMAL) { cstmt.registerOutParameter(1, jtype, 10); if (pass == 0) cstmt.setObject(1,datatypes[i][2],jtype,10); } else if (jtype == java.sql.Types.VARCHAR) { cstmt.registerOutParameter(1, jtype, 255); if (pass == 0) cstmt.setObject(1,datatypes[i][2]); } else { cstmt.registerOutParameter(1, jtype); if (pass == 0) cstmt.setObject(1,datatypes[i][2]); }
int jtype = getType(datatypes[i][2]); if (pass == 1) cstmt.setObject(1, null, jtype, 10); if (jtype == java.sql.Types.NUMERIC || jtype == java.sql.Types.DECIMAL) { cstmt.registerOutParameter(1, jtype, 10); if (pass == 0) cstmt.setObject(1, datatypes[i][2], jtype, 10); } else if (jtype == java.sql.Types.VARCHAR) { cstmt.registerOutParameter(1, jtype, 255); if (pass == 0) cstmt.setObject(1, datatypes[i][2]); } else { cstmt.registerOutParameter(1, jtype); if (pass == 0) cstmt.setObject(1, datatypes[i][2]); }
public void testOutputParams() throws Exception { Statement stmt = con.createStatement(); dropProcedure("#jtds_outputTest"); Object[][] datatypes = getDatatypes(); for (int i = 0; i < datatypes.length; i++) { String valueToAssign; boolean bImage = datatypes[i][0].equals("image"); if( bImage ) valueToAssign = ""; else valueToAssign = " = " + datatypes[i][1]; String sql = "create procedure #jtds_outputTest " + "@a1 " + datatypes[i][0] + " = null out " + "as select @a1" + valueToAssign; stmt.executeUpdate(sql); for( int pass=0; (pass<2 && !bImage) || pass<1; pass++ ) { CallableStatement cstmt = con.prepareCall("{call #jtds_outputTest(?)}"); int jtype = getType(datatypes[i][2]); if (pass == 1) cstmt.setObject(1,null,jtype,10); if (jtype == java.sql.Types.NUMERIC || jtype == java.sql.Types.DECIMAL) { cstmt.registerOutParameter(1, jtype, 10); if (pass == 0) cstmt.setObject(1,datatypes[i][2],jtype,10); } else if (jtype == java.sql.Types.VARCHAR) { cstmt.registerOutParameter(1, jtype, 255); if (pass == 0) cstmt.setObject(1,datatypes[i][2]); } else { cstmt.registerOutParameter(1, jtype); if (pass == 0) cstmt.setObject(1,datatypes[i][2]); } if( !bImage ) assertTrue(!cstmt.execute()); while(cstmt.getUpdateCount() != -1 && cstmt.getMoreResults()); if (jtype == java.sql.Types.VARBINARY) { assertTrue(compareBytes(cstmt.getBytes(1), (byte[])datatypes[i][2]) == 0); } else if (datatypes[i][2] instanceof Number) { Number n = (Number)cstmt.getObject(1); assertEquals("Failed on " + datatypes[i][0], ((Number)cstmt.getObject(1)).doubleValue(), ((Number)datatypes[i][2]).doubleValue(),0.001); } else { assertEquals("Failed on " + datatypes[i][0], cstmt.getObject(1), datatypes[i][2]); } } // for (pass stmt.executeUpdate(" drop procedure #jtds_outputTest"); } // for (int }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/082f6b97f424e9550bf490d66efbe1c288b8df9b/TimestampTest.java/clean/trunk/jtds/src/test/net/sourceforge/jtds/test/TimestampTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1447, 1370, 1435, 1216, 1185, 565, 288, 3639, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 3640, 17213, 2932, 7, 78, 88, 2377, 67, 2844, 4709, 8863, 3639, 1033, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1447, 1370, 1435, 1216, 1185, 565, 288, 3639, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 3640, 17213, 2932, 7, 78, 88, 2377, 67, 2844, 4709, 8863, 3639, 1033, 63, ...
pilotRolls.addElement(roll);
if (roll != null) { pilotRolls.addElement(roll); }
private void doEntityDisplacement(Entity entity, Coords src, Coords dest, PilotingRollData roll) { final Hex srcHex = game.board.getHex(src); final Hex destHex = game.board.getHex(dest); final int direction = src.direction(dest); int fallElevation = srcHex.getElevation() - destHex.getElevation(); Entity target = game.getEntity(dest); // can't fall upwards if (fallElevation < 0) { fallElevation = 0; } // if destination is empty, this could be easy... if (target == null || target.equals(entity)) { if (fallElevation < 2) { // no cliff: move and roll normally phaseReport.append(entity.getDisplayName() + " is displaced into hex " + dest.getBoardNum() + ".\n"); entity.setPosition(dest); pilotRolls.addElement(roll); return; } else { // cliff: fall off it, deal damage, prone immediately phaseReport.append(entity.getDisplayName() + " falls " + fallElevation + " levels into hex " + dest.getBoardNum() + ".\n"); doEntityFall(entity, dest, fallElevation, PilotingRollData.AUTOMATIC_FALL); return; } } // okay, destination occupied. hmmm... System.err.println("server.doEntityDisplacement: destination occupied"); if (fallElevation < 2) { // domino effect: move & displace target phaseReport.append(entity.getDisplayName() + " is displaced into hex " + dest.getBoardNum() + ", occupied by " + target.getDisplayName() + ".\n"); entity.setPosition(dest); pilotRolls.addElement(roll); doEntityDisplacement(target, dest, dest.translated(direction), new PilotingRollData(target.getId(), 0, "domino effect")); return; } else { // accidental fall from above: havoc! phaseReport.append(entity.getDisplayName() + " falls " + fallElevation + " levels into hex " + dest.getBoardNum() + ", occupied by " + target.getDisplayName() + ".\n"); // determine to-hit number ToHitData toHit = new ToHitData(7, "7 (base)"); toHit.append(Compute.getTargetMovementModifier(game, target.getId())); toHit.append(Compute.getTargetTerrainModifier(game, target.getId())); // roll dice final int diceRoll = Compute.d6(2); phaseReport.append("Collision occurs on a " + toHit.getValue() + " or greater. Rolls " + diceRoll); if (diceRoll >= toHit.getValue()) { phaseReport.append(", hits!\n"); // deal damage to target int damage = (int)Math.ceil(entity.getWeight() / 10); phaseReport.append(target.getDisplayName() + " takes " + damage + " from the collision."); while (damage > 0) { int cluster = Math.min(5, damage); HitData hit = entity.rollHitLocation(ToHitData.HIT_PUNCH, ToHitData.SIDE_FRONT); phaseReport.append(damageEntity(target, hit, cluster)); damage -= cluster; } phaseReport.append("\n"); // attacker falls as normal, on his back doEntityFall(entity, dest, fallElevation, 3, PilotingRollData.AUTOMATIC_FALL); // defender pushed away, or destroyed Coords targetDest = Compute.getValidDisplacement(game, target.getId(), dest, direction); if (targetDest != null) { doEntityDisplacement(target, dest, targetDest, new PilotingRollData(target.getId(), 2, "fallen on")); } else { // ack! automatic death! phaseReport.append("*** " + target.getDisplayName() + " DESTROYED due to impossible displacement! ***"); target.setDoomed(true); } } else { phaseReport.append(", misses.\n"); //TODO: this is not quite how the rules go Coords targetDest = Compute.getValidDisplacement(game, entity.getId(), dest, direction); if (targetDest != null) { doEntityDisplacement(entity, src, targetDest, new PilotingRollData(entity.getId(), PilotingRollData.AUTOMATIC_FALL, "pushed off a cliff")); } else { // ack! automatic death! phaseReport.append("*** " + entity.getDisplayName() + " DESTROYED due to impossible displacement! ***"); entity.setDoomed(true); } } return; } }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/5d7060a84e551cee325465adbbecc6a4d05d7cd9/Server.java/buggy/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 1943, 1669, 15917, 12, 1943, 1522, 16, 10320, 87, 1705, 16, 10320, 87, 1570, 16, 4766, 1377, 453, 330, 17128, 24194, 751, 5824, 13, 288, 3639, 727, 15734, 1705, 7037, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 1943, 1669, 15917, 12, 1943, 1522, 16, 10320, 87, 1705, 16, 10320, 87, 1570, 16, 4766, 1377, 453, 330, 17128, 24194, 751, 5824, 13, 288, 3639, 727, 15734, 1705, 7037, 273,...
super(position);
super(position, NodeTypes.ITERNODE);
public IterNode(ISourcePosition position, Node varNode, Node bodyNode, Node iterNode) { super(position); this.varNode = varNode; this.bodyNode = bodyNode; this.iterNode = iterNode; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/6e15491217631472c05c6928672f9c7064a978b3/IterNode.java/buggy/src/org/jruby/ast/IterNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3016, 907, 12, 45, 1830, 2555, 1754, 16, 2029, 569, 907, 16, 2029, 1417, 907, 16, 2029, 1400, 907, 13, 288, 3639, 2240, 12, 3276, 16, 2029, 2016, 18, 11844, 8744, 1769, 3639, 333,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3016, 907, 12, 45, 1830, 2555, 1754, 16, 2029, 569, 907, 16, 2029, 1417, 907, 16, 2029, 1400, 907, 13, 288, 3639, 2240, 12, 3276, 16, 2029, 2016, 18, 11844, 8744, 1769, 3639, 333,...
TransformationUtil.ORIGINAL_METHOD_PREFIX) ) {
TransformationUtil.ORIGINAL_METHOD_PREFIX) && !declaredMethods[i].getName().startsWith( TransformationUtil.CLASS_LOOKUP_METHOD)) {
public DefaultIntroductionContainerStrategy(final Class implClass) { if (implClass == null) return; // we have an interface only introduction m_implClass = implClass; synchronized (m_methods) { Method[] declaredMethods = m_implClass.getDeclaredMethods(); // sort the list so that we can enshure that the indexes are in synch // see AddImplementationTransformer#addIntroductions List toSort = new ArrayList(); for (int i = 0; i < declaredMethods.length; i++) { // remove the getUuid, ___hidden$getMetaData, ___hidden$addMetaData methods // A the added proxy methods before sorting the method list if (!declaredMethods[i].getName().equals( TransformationUtil.GET_UUID_METHOD) && !declaredMethods[i].getName().equals( TransformationUtil.GET_META_DATA_METHOD) && !declaredMethods[i].getName().equals( TransformationUtil.SET_META_DATA_METHOD) && !declaredMethods[i].getName().startsWith( TransformationUtil.ORIGINAL_METHOD_PREFIX) ) { toSort.add(declaredMethods[i]); } } Collections.sort(toSort, MethodComparator. getInstance(MethodComparator.NORMAL_METHOD)); m_methods = new Method[toSort.size()]; for (int i = 0; i < m_methods.length; i++) { m_methods[i] = (Method)toSort.get(i); } } }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/d9b3f661aacc3e348ee4dac22844889c35fdbb2d/DefaultIntroductionContainerStrategy.java/buggy/aspectwerkz/src/main/org/codehaus/aspectwerkz/xmldef/introduction/DefaultIntroductionContainerStrategy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2989, 1702, 303, 2544, 349, 2170, 4525, 12, 6385, 1659, 9380, 797, 13, 288, 3639, 309, 261, 11299, 797, 422, 446, 13, 327, 31, 368, 732, 1240, 392, 1560, 1338, 16658, 349, 3639, 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, 2989, 1702, 303, 2544, 349, 2170, 4525, 12, 6385, 1659, 9380, 797, 13, 288, 3639, 309, 261, 11299, 797, 422, 446, 13, 327, 31, 368, 732, 1240, 392, 1560, 1338, 16658, 349, 3639, 3...
if (saveMode != SaveMode.NONE && !userNameStore.containsUserName(name) && name != null && !name.trim().equals("")) { userNameStore.addUserName(name); userNameStore.saveUserNames(); } if (saveCB.isSelected() && (saveMode == SaveMode.BOTH || saveMode == SaveMode.PASSWORD)) { passwordStore.set(name, loginService.getServer(), password); }
protected void startLogin() { oldCursor = getCursor(); try { setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); progressMessageLabel.setText("Please wait, logging in....");//TODO i18n String name = getUserName(); char[] password = getPassword(); loginService.startAuthentication(name, password, null); if (saveMode != SaveMode.NONE && !userNameStore.containsUserName(name) && name != null && !name.trim().equals("")) { userNameStore.addUserName(name); userNameStore.saveUserNames(); } if (saveCB.isSelected() && (saveMode == SaveMode.BOTH || saveMode == SaveMode.PASSWORD)) { passwordStore.set(name, loginService.getServer(), password); } } catch(Exception ex) { //The status is set via the loginService listener, so no need to set //the status here. Just log the error. LOG.log(Level.WARNING, "Authentication exception while logging in", ex); } finally { setCursor(oldCursor); } }
47551 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47551/7b32917796a9cf07505425bd2d1905236a817274/JXLoginPanel.java/clean/src/java/org/jdesktop/swingx/JXLoginPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 787, 5358, 1435, 288, 3639, 1592, 6688, 273, 14135, 2467, 5621, 3639, 775, 288, 5411, 444, 6688, 12, 6688, 18, 588, 1386, 2178, 6688, 12, 6688, 18, 19046, 67, 7509, 55, 916, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 5358, 1435, 288, 3639, 1592, 6688, 273, 14135, 2467, 5621, 3639, 775, 288, 5411, 444, 6688, 12, 6688, 18, 588, 1386, 2178, 6688, 12, 6688, 18, 19046, 67, 7509, 55, 916, ...
String msg = "The interactions window was terminated by a call " + "to System.exit(" + status + ").\n" + "The interactions window will now be restarted."; String title = "Interactions terminated by System.exit(" + status + ")"; ConfirmCheckBoxDialog dialog = new ConfirmCheckBoxDialog(MainFrame.this, title, msg, "Do not show this message again", JOptionPane.INFORMATION_MESSAGE, JOptionPane.DEFAULT_OPTION); if (dialog.show() == JOptionPane.OK_OPTION && dialog.getCheckBoxValue()) { DrJava.getConfig().setSetting(INTERACTIONS_EXIT_PROMPT, Boolean.FALSE);
try { showTab(_javadocErrorPanel); _javadocAllAction.setEnabled(true); _javadocCurrentAction.setEnabled(true); _javadocErrorPanel.reset(); } finally { hourglassOff(); } if (success) { String className; try { className = _model.getActiveDocument().getQualifiedClassName(); className = className.replace('.', File.separatorChar); } catch (ClassNameNotFoundException cnf) { className = ""; } try { String filename = (allDocs || className.equals("")) ? "index.html" : (className + ".html"); File index = new File(destDir, filename); URL address = index.getAbsoluteFile().toURL(); if (!PlatformFactory.ONLY.openURL(address)) { JavadocFrame _javadocFrame = new JavadocFrame(destDir, className, allDocs); _javadocFrame.setVisible(true); } } catch (MalformedURLException me) { throw new UnexpectedException(me); } catch (IllegalStateException ise) { String msg = "Javadoc completed successfully, but did not produce any HTML files.\n" + "Please ensure that your access level in Preferences is appropriate."; JOptionPane.showMessageDialog(MainFrame.this, msg, "No output to display.", JOptionPane.INFORMATION_MESSAGE);
public void run() { String msg = "The interactions window was terminated by a call " + "to System.exit(" + status + ").\n" + "The interactions window will now be restarted."; String title = "Interactions terminated by System.exit(" + status + ")"; ConfirmCheckBoxDialog dialog = new ConfirmCheckBoxDialog(MainFrame.this, title, msg, "Do not show this message again", JOptionPane.INFORMATION_MESSAGE, JOptionPane.DEFAULT_OPTION); if (dialog.show() == JOptionPane.OK_OPTION && dialog.getCheckBoxValue()) { DrJava.getConfig().setSetting(INTERACTIONS_EXIT_PROMPT, Boolean.FALSE); } }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/0912ab7ed35ec7cfa4a9c45641294748135ef6a8/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 1086, 1435, 288, 5411, 514, 1234, 273, 315, 1986, 23877, 2742, 1703, 14127, 635, 279, 745, 315, 397, 2868, 315, 869, 2332, 18, 8593, 2932, 397, 1267, 397, 315, 2934, 64, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 1086, 1435, 288, 5411, 514, 1234, 273, 315, 1986, 23877, 2742, 1703, 14127, 635, 279, 745, 315, 397, 2868, 315, 869, 2332, 18, 8593, 2932, 397, 1267, 397, 315, 2934, 64, 82, ...
if (filterProcessesUrl.equals(httpRequest.getServletPath())) {
if (httpRequest.getRequestURL().toString().endsWith(httpRequest .getContextPath() + filterProcessesUrl)) {
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { if (!(request instanceof HttpServletRequest)) { throw new ServletException("Can only process HttpServletRequest"); } if (!(response instanceof HttpServletResponse)) { throw new ServletException("Can only process HttpServletResponse"); } HttpServletRequest httpRequest = (HttpServletRequest) request; HttpServletResponse httpResponse = (HttpServletResponse) response; if (filterProcessesUrl.equals(httpRequest.getServletPath())) { if (logger.isDebugEnabled()) { logger.debug("Request is to process authentication"); } Authentication authResult; try { authResult = attemptAuthentication(httpRequest); } catch (AuthenticationException failed) { // Authentication failed if (logger.isDebugEnabled()) { logger.debug("Authentication request failed: " + failed.toString()); } httpRequest.getSession().setAttribute(ACEGI_SECURITY_LAST_EXCEPTION_KEY, failed); httpRequest.getSession().setAttribute(HttpSessionIntegrationFilter.ACEGI_SECURITY_AUTHENTICATION_KEY, null); httpResponse.sendRedirect(httpResponse.encodeRedirectURL(httpRequest .getContextPath() + authenticationFailureUrl)); return; } // Authentication success if (logger.isDebugEnabled()) { logger.debug("Authentication success: " + authResult.toString()); } httpRequest.getSession().setAttribute(HttpSessionIntegrationFilter.ACEGI_SECURITY_AUTHENTICATION_KEY, authResult); String targetUrl = (String) httpRequest.getSession().getAttribute(ACEGI_SECURITY_TARGET_URL_KEY); httpRequest.getSession().setAttribute(ACEGI_SECURITY_TARGET_URL_KEY, null); if (targetUrl == null) { targetUrl = httpRequest.getContextPath() + defaultTargetUrl; } if (logger.isDebugEnabled()) { logger.debug( "Redirecting to target URL from HTTP Session (or default): " + targetUrl); } httpResponse.sendRedirect(httpResponse.encodeRedirectURL(targetUrl)); return; } chain.doFilter(request, response); }
29994 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29994/04dea9e403b981adf695a9d98e6e057aff2eeb00/AbstractProcessingFilter.java/buggy/core/src/main/java/org/acegisecurity/ui/AbstractProcessingFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 1586, 12, 18572, 590, 16, 7971, 1064, 766, 16, 3639, 4008, 3893, 2687, 13, 1216, 1860, 16, 16517, 288, 3639, 309, 16051, 12, 2293, 1276, 9984, 3719, 288, 5411, 604, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 1586, 12, 18572, 590, 16, 7971, 1064, 766, 16, 3639, 4008, 3893, 2687, 13, 1216, 1860, 16, 16517, 288, 3639, 309, 16051, 12, 2293, 1276, 9984, 3719, 288, 5411, 604, 394, ...
protected void switchTo( String sSubtaskPath )
public void switchTo( String sSubtaskPath )
protected void switchTo( String sSubtaskPath ) { if ( getCurrentSubtask( ) != null ) { getCurrentSubtask( ).onHide( ); } if ( containSubtask( sSubtaskPath ) ) { sCurrentTaskSheet = getSubtask( sSubtaskPath ); this.sCurrentSubtask = sSubtaskPath; } getCurrentSubtask( ).onShow( context, container ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/037a987c5947853949a14c2cf99272d0b29ee449/CompoundTask.java/buggy/core/org.eclipse.birt.core.ui/src/org/eclipse/birt/core/ui/frameworks/taskwizard/CompoundTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1620, 774, 12, 514, 272, 1676, 4146, 743, 262, 202, 95, 202, 202, 430, 261, 5175, 1676, 4146, 12, 262, 480, 446, 262, 202, 202, 95, 1082, 202, 588, 3935, 1676, 4146, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1620, 774, 12, 514, 272, 1676, 4146, 743, 262, 202, 95, 202, 202, 430, 261, 5175, 1676, 4146, 12, 262, 480, 446, 262, 202, 202, 95, 1082, 202, 588, 3935, 1676, 4146, 1...
retValue.append("<input type=\"radio\" name=\"copymode\" value=\"" + I_CmsConstants.C_COPY_PRESERVE_SIBLING + "\"");
retValue.append("<input type=\"radio\" name=\"copymode\" value=\"" + I_CmsConstants.C_COPY_PRESERVE_SIBLING + "\"");
public String buildRadioCopyMode() { StringBuffer retValue = new StringBuffer(256); // check if the current resource is a folder boolean isFolder = false; try { CmsResource curRes = getCms().readResource(getParamResource(), CmsResourceFilter.ALL); if (curRes.isFolder()) { isFolder = true; } } catch (CmsException e) { // can usually be ignored if (LOG.isInfoEnabled()) { LOG.info(e.getLocalizedMessage()); } } String checkedAttr = " checked=\"checked\""; if (isFolder) { // for folders, show an additional option "preserve links" int defaultMode = getSettings().getUserSettings().getDialogCopyFolderMode(); retValue.append("<input type=\"radio\" name=\"copymode\" value=\"" + I_CmsConstants.C_COPY_AS_SIBLING + "\""); if (defaultMode == I_CmsConstants.C_COPY_AS_SIBLING) { retValue.append(checkedAttr); } retValue.append("> "); retValue.append(key("messagebox.option.folder.assibling.copy") + "<br>\n"); retValue.append("<input type=\"radio\" name=\"copymode\" value=\"" + I_CmsConstants.C_COPY_PRESERVE_SIBLING + "\""); if (defaultMode == I_CmsConstants.C_COPY_PRESERVE_SIBLING) { retValue.append(checkedAttr); } retValue.append("> "); retValue.append(key("messagebox.option.folder.preserve.copy") + "<br>\n"); retValue.append("<input type=\"radio\" name=\"copymode\" value=\"" + I_CmsConstants.C_COPY_AS_NEW + "\""); if (defaultMode == I_CmsConstants.C_COPY_AS_NEW) { retValue.append(checkedAttr); } retValue.append("> "); retValue.append(key("messagebox.option.folder.asnewresource.copy") + "<br>\n"); } else { // for files, show copy option "copy as sibling" and "copy as new resource" int defaultMode = getSettings().getUserSettings().getDialogCopyFileMode(); retValue.append("<input type=\"radio\" name=\"copymode\" value=\"" + I_CmsConstants.C_COPY_AS_SIBLING + "\""); if (defaultMode == I_CmsConstants.C_COPY_AS_SIBLING) { retValue.append(checkedAttr); } retValue.append("> "); retValue.append(key("messagebox.option.file.assibling.copy") + "<br>\n"); retValue.append("<input type=\"radio\" name=\"copymode\" value=\"" + I_CmsConstants.C_COPY_AS_NEW + "\""); if (defaultMode == I_CmsConstants.C_COPY_AS_NEW) { retValue.append(checkedAttr); } retValue.append("> "); retValue.append(key("messagebox.option.file.asnewresource.copy") + "<br>\n"); } return retValue.toString(); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/2fa0efcae8f9aa5971c7763269a3b033e9256d4b/CmsCopy.java/buggy/src/org/opencms/workplace/commons/CmsCopy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1361, 19984, 2951, 2309, 1435, 288, 3639, 6674, 21236, 273, 394, 6674, 12, 5034, 1769, 7734, 368, 866, 309, 326, 783, 1058, 353, 279, 3009, 3639, 1250, 31137, 273, 629, 31, 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, 1071, 514, 1361, 19984, 2951, 2309, 1435, 288, 3639, 6674, 21236, 273, 394, 6674, 12, 5034, 1769, 7734, 368, 866, 309, 326, 783, 1058, 353, 279, 3009, 3639, 1250, 31137, 273, 629, 31, 363...
AST __t1911 = _t;
AST __t1912 = _t;
public final void recordphrase(AST _t) throws RecognitionException { AST recordphrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1911 = _t; AST tmp1714_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: case FIELDS: { record_fields(_t); _t = _retTree; break; } case 3: case LEXDATE: case NUMBER: case QSTRING: case BIGENDIAN: case EXCLUSIVELOCK: case FALSE_KW: case FINDCASESENSITIVE: case FINDGLOBAL: case FINDNEXTOCCURRENCE: case FINDPREVOCCURRENCE: case FINDSELECT: case FINDWRAPAROUND: case HOSTBYTEORDER: case LEFT: case LITTLEENDIAN: case NO: case NOERROR_KW: case NOLOCK: case NOPREFETCH: case NOWAIT: case NULL_KW: case OF: case OUTERJOIN: case READAVAILABLE: case READEXACTNUM: case SEARCHSELF: case SEARCHTARGET: case SHARELOCK: case TODAY: case TRUE_KW: case USEINDEX: case USING: case WHERE: case WINDOWDELAYEDMINIMIZE: case WINDOWMAXIMIZED: case WINDOWMINIMIZED: case WINDOWNORMAL: case YES: case UNKNOWNVALUE: case FUNCTIONCALLTYPE: case GETATTRCALLTYPE: case PROCEDURECALLTYPE: case SAXCOMPLETE: case SAXPARSERERROR: case SAXRUNNING: case SAXUNINITIALIZED: case SETATTRCALLTYPE: case ROWUNMODIFIED: case ROWDELETED: case ROWMODIFIED: case ROWCREATED: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; if ((_t.getType()==TODAY)) { AST tmp1715_AST_in = (AST)_t; match(_t,TODAY); _t = _t.getNextSibling(); } else if ((_tokenSet_32.member(_t.getType()))) { constant(_t); _t = _retTree; } else if ((_tokenSet_33.member(_t.getType()))) { } else { throw new NoViableAltException(_t); } } { _loop1923: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFT: { AST __t1915 = _t; AST tmp1716_AST_in = (AST)_t; match(_t,LEFT); _t = _t.getFirstChild(); AST tmp1717_AST_in = (AST)_t; match(_t,OUTERJOIN); _t = _t.getNextSibling(); _t = __t1915; _t = _t.getNextSibling(); break; } case OUTERJOIN: { AST tmp1718_AST_in = (AST)_t; match(_t,OUTERJOIN); _t = _t.getNextSibling(); break; } case OF: { AST __t1916 = _t; AST tmp1719_AST_in = (AST)_t; match(_t,OF); _t = _t.getFirstChild(); AST tmp1720_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); _t = __t1916; _t = _t.getNextSibling(); break; } case WHERE: { AST __t1917 = _t; AST tmp1721_AST_in = (AST)_t; match(_t,WHERE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==3)) { } else { throw new NoViableAltException(_t); } } _t = __t1917; _t = _t.getNextSibling(); break; } case USEINDEX: { AST __t1919 = _t; AST tmp1722_AST_in = (AST)_t; match(_t,USEINDEX); _t = _t.getFirstChild(); AST tmp1723_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); _t = __t1919; _t = _t.getNextSibling(); break; } case USING: { AST __t1920 = _t; AST tmp1724_AST_in = (AST)_t; match(_t,USING); _t = _t.getFirstChild(); field(_t); _t = _retTree; { _loop1922: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==AND)) { AST tmp1725_AST_in = (AST)_t; match(_t,AND); _t = _t.getNextSibling(); field(_t); _t = _retTree; } else { break _loop1922; } } while (true); } _t = __t1920; _t = _t.getNextSibling(); break; } case EXCLUSIVELOCK: case NOLOCK: case SHARELOCK: { lockhow(_t); _t = _retTree; break; } case NOWAIT: { AST tmp1726_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } case NOPREFETCH: { AST tmp1727_AST_in = (AST)_t; match(_t,NOPREFETCH); _t = _t.getNextSibling(); break; } case NOERROR_KW: { AST tmp1728_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } default: { break _loop1923; } } } while (true); } _t = __t1911; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser03.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1409, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1409, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1409, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1409, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053...
path = PathUtil.removeLeadingSlash(path);
public SVNExternalInfo[] addExternals(SVNDirectory directory, String externals) throws SVNException { if (externals == null) { return null; } Collection result = new ArrayList(); for(StringTokenizer lines = new StringTokenizer(externals, "\n\r"); lines.hasMoreTokens();) { String line = lines.nextToken().trim(); if (line.length() == 0 || line.startsWith("#")) { continue; } String url = null; String path = null; long rev = -1; List parts = new ArrayList(4); for(StringTokenizer tokens = new StringTokenizer(line, " \t"); tokens.hasMoreTokens();) { String token = tokens.nextToken().trim(); parts.add(token); } if (parts.size() < 2) { continue; } path = PathUtil.append(directory.getPath(), (String) parts.get(0)); path = PathUtil.removeLeadingSlash(path); if (parts.size() == 2) { url = (String) parts.get(1); } else if (parts.size() == 3 && parts.get(1).toString().startsWith("-r")) { String revStr = parts.get(1).toString(); revStr = revStr.substring("-r".length()); if (!"HEAD".equals(revStr)) { try { rev = Long.parseLong(revStr); } catch (NumberFormatException nfe) { continue; } } url = (String) parts.get(2); } else if (parts.size() == 4 && "-r".equals(parts.get(1))) { String revStr = parts.get(2).toString(); if (!"HEAD".equals(revStr)) { try { rev = Long.parseLong(revStr); } catch (NumberFormatException nfe) { continue; } } url = (String) parts.get(4); } if (path!= null && url != null) { SVNExternalInfo info = addExternal(path, url, rev); result.add(info); } } return (SVNExternalInfo[]) result.toArray(new SVNExternalInfo[result.size()]); }
2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/35c4eff3cdefe26dc93ca64dd0977a77801e7b74/SVNWCAccess.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/ws/log/SVNWCAccess.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 29537, 50, 6841, 966, 8526, 527, 29764, 1031, 12, 23927, 50, 2853, 1867, 16, 514, 18885, 1031, 13, 1216, 29537, 50, 503, 288, 3639, 309, 261, 338, 798, 1031, 422, 446, 13, 288, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 29537, 50, 6841, 966, 8526, 527, 29764, 1031, 12, 23927, 50, 2853, 1867, 16, 514, 18885, 1031, 13, 1216, 29537, 50, 503, 288, 3639, 309, 261, 338, 798, 1031, 422, 446, 13, 288, 54...
MenuItem newItem = new MenuItem(parent, SWT.PUSH, index); newItem.setData(this); newItem.setEnabled(isEnabled()); String text = label; if (mnemonic != null) { } newItem.setText(text); if (icon != null) { LocalResourceManager m = new LocalResourceManager(JFaceResources .getResources()); newItem.setImage(icon == null ? null : m.createImage(icon)); disposeOldImages(); localResourceManager = m;
if (widget != null || parent == null) { return;
public void fill(Menu parent, int index) { if (command == null) { return; } MenuItem newItem = new MenuItem(parent, SWT.PUSH, index); newItem.setData(this); newItem.setEnabled(isEnabled()); String text = label; if (mnemonic != null) { // convert label to have mnemonic } newItem.setText(text); if (icon != null) { LocalResourceManager m = new LocalResourceManager(JFaceResources .getResources()); newItem.setImage(icon == null ? null : m.createImage(icon)); disposeOldImages(); localResourceManager = m; } newItem.addListener(SWT.Dispose, getItemListener()); newItem.addListener(SWT.Selection, getItemListener()); widget = newItem; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e84e7542be845f078b8e4aade9254de24aa21b6a/CommandContributionItem.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/menus/CommandContributionItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3636, 12, 4599, 982, 16, 509, 770, 13, 288, 202, 202, 430, 261, 3076, 422, 446, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 12958, 26536, 273, 394, 25085, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3636, 12, 4599, 982, 16, 509, 770, 13, 288, 202, 202, 430, 261, 3076, 422, 446, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 12958, 26536, 273, 394, 25085, 12,...
return this.pendingTokens[this.pendingTokensPtr--];
int nextToken = this.pendingTokens[this.pendingTokensPtr--]; if(nextToken == TerminalTokens.TokenNameIdentifier){ this.fakeTokenSource = FAKE_IDENTIFIER; } else { this.fakeTokenSource = CharOperation.NO_CHAR; } return nextToken;
public int getNextToken() throws InvalidInputException { if(this.pendingTokensPtr > -1) { return this.pendingTokens[this.pendingTokensPtr--]; } this.fakeTokenSource = null; this.precededByRemoved = false; if(this.data.insertedTokens != null) { for (int i = 0; i <= this.data.insertedTokensPtr; i++) { if(this.data.insertedTokensPosition[i] == this.currentPosition - 1 && i > skipNextInsertedTokens) { this.data.insertedTokenUsed[i] = true; this.pendingTokens = this.data.insertedTokens[i]; this.pendingTokensPtr = this.data.insertedTokens[i].length - 1; this.fakeTokenSource = CharOperation.NO_CHAR; this.isInserted = true; this.startPosition = this.currentPosition; this.skipNextInsertedTokens = i; return this.pendingTokens[this.pendingTokensPtr--]; } } this.skipNextInsertedTokens = -1; } int previousLocation = this.currentPosition; int currentToken = super.getNextToken(); if(this.data.replacedTokens != null) { for (int i = 0; i <= this.data.replacedTokensPtr; i++) { if(this.data.replacedTokensStart[i] >= previousLocation && this.data.replacedTokensStart[i] <= this.startPosition && this.data.replacedTokensEnd[i] >= this.currentPosition - 1) { this.data.replacedTokenUsed[i] = true; this.pendingTokens = this.data.replacedTokens[i]; this.pendingTokensPtr = this.data.replacedTokens[i].length - 1; this.fakeTokenSource = CharOperation.NO_CHAR; this.isInserted = false; this.currentPosition = this.data.replacedTokensEnd[i] + 1; return this.pendingTokens[this.pendingTokensPtr--]; } } } if(this.data.removedTokensStart != null) { for (int i = 0; i <= this.data.removedTokensPtr; i++) { if(this.data.removedTokensStart[i] >= previousLocation && this.data.removedTokensStart[i] <= this.startPosition && this.data.removedTokensEnd[i] >= this.currentPosition - 1) { this.data.removedTokenUsed[i] = true; this.currentPosition = this.data.removedTokensEnd[i] + 1; this.precededByRemoved = false; return getNextToken(); } } } return currentToken; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/b62ba1f827cf4ea86ca5f1a1ddb9504a62920662/RecoveryScanner.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveryScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 22616, 1435, 1216, 31989, 288, 202, 202, 430, 12, 2211, 18, 9561, 5157, 5263, 405, 300, 21, 13, 288, 1082, 202, 2463, 333, 18, 9561, 5157, 63, 2211, 18, 9561, 5157, 5263,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 22616, 1435, 1216, 31989, 288, 202, 202, 430, 12, 2211, 18, 9561, 5157, 5263, 405, 300, 21, 13, 288, 1082, 202, 2463, 333, 18, 9561, 5157, 63, 2211, 18, 9561, 5157, 5263,...
new EditFrameShower(new File(unitlabelDir, basename+".unitlab")).display();
new EditFrameShower(new File( db.unitLabDirName() + basename + db.unitLabExt() )).display();
private void editUnitLabels(String basename) throws IOException { new EditFrameShower(new File(unitlabelDir, basename+".unitlab")).display(); }
24259 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24259/863a435e1e81a31023f567a49dc521436d84df27/LabelFeatureAligner.java/buggy/java/de/dfki/lt/mary/unitselection/voiceimport_reorganized/LabelFeatureAligner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3874, 2802, 5888, 12, 780, 4882, 13, 1216, 1860, 565, 288, 3639, 394, 15328, 3219, 1555, 2085, 12, 2704, 1387, 12, 1319, 18, 4873, 14506, 28780, 1435, 397, 4882, 397, 1319, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3874, 2802, 5888, 12, 780, 4882, 13, 1216, 1860, 565, 288, 3639, 394, 15328, 3219, 1555, 2085, 12, 2704, 1387, 12, 1319, 18, 4873, 14506, 28780, 1435, 397, 4882, 397, 1319, 18,...
return (ICPPScope) dtor.getName().resolveBinding().getScope();
IBinding binding = dtor.getName().resolveBinding(); if( !(binding instanceof IProblemBinding) ) scope = binding.getScope(); } else { scope = CPPVisitor.getContainingScope( name );
static private ICPPScope getLookupScope( IASTName name ) throws DOMException{ IASTNode parent = name.getParent(); if( parent instanceof ICPPASTBaseSpecifier ) { ICPPASTCompositeTypeSpecifier compSpec = (ICPPASTCompositeTypeSpecifier) parent.getParent(); IASTName n = compSpec.getName(); if( n instanceof ICPPASTQualifiedName ){ IASTName [] ns = ((ICPPASTQualifiedName)n).getNames(); n = ns[ ns.length - 1 ]; } return (ICPPScope) CPPVisitor.getContainingScope( n ); } else if( parent instanceof ICPPASTConstructorChainInitializer ){ ICPPASTConstructorChainInitializer initializer = (ICPPASTConstructorChainInitializer) parent; IASTFunctionDeclarator dtor = (IASTFunctionDeclarator) initializer.getParent(); return (ICPPScope) dtor.getName().resolveBinding().getScope(); } return (ICPPScope) CPPVisitor.getContainingScope( name ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/609f1f0233b996fe185c5541fe3e1bdb427dda5d/CPPSemantics.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSemantics.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 3238, 467, 4258, 52, 3876, 336, 6609, 3876, 12, 467, 9053, 461, 508, 262, 1216, 4703, 503, 95, 202, 565, 467, 9053, 907, 982, 273, 508, 18, 588, 3054, 5621, 202, 540, 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, 3845, 3238, 467, 4258, 52, 3876, 336, 6609, 3876, 12, 467, 9053, 461, 508, 262, 1216, 4703, 503, 95, 202, 565, 467, 9053, 907, 982, 273, 508, 18, 588, 3054, 5621, 202, 540, 202, ...
View copy=new View(view.getVid(), new Vector(view.getMembers())); Vector members=copy.getMembers();
Vector members=new Vector(view.getMembers());
private View generateServiceView(List hosts) { View copy=new View(view.getVid(), new Vector(view.getMembers())); Vector members=copy.getMembers(); members.retainAll(hosts); return copy; }
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/9b6839e6b4fd1e5468397fff7d713fef86820db7/Multiplexer.java/buggy/src/org/jgroups/mux/Multiplexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4441, 2103, 1179, 1767, 12, 682, 7206, 13, 288, 3639, 4441, 1610, 33, 2704, 4441, 12, 1945, 18, 588, 58, 350, 9334, 394, 5589, 12, 1945, 18, 588, 6918, 1435, 10019, 3639, 5589, 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, 4441, 2103, 1179, 1767, 12, 682, 7206, 13, 288, 3639, 4441, 1610, 33, 2704, 4441, 12, 1945, 18, 588, 58, 350, 9334, 394, 5589, 12, 1945, 18, 588, 6918, 1435, 10019, 3639, 5589, 48...
try { getLogger().debug( "Creating label: " + tag ); Commandline newLabelCommandLine = createNewLabelCommandLine( fileSet, tag ); getLogger().debug( newLabelCommandLine.toString() ); exitCode = CommandLineUtils.executeCommandLine( newLabelCommandLine, new CommandLineUtils.StringStreamConsumer(), stderr );
try { getLogger().debug( "Creating label: " + tag ); Commandline newLabelCommandLine = createNewLabelCommandLine( fileSet, tag ); getLogger().debug( newLabelCommandLine.toString() ); exitCode = CommandLineUtils.executeCommandLine( newLabelCommandLine, new CommandLineUtils.StringStreamConsumer(), stderr );
protected ScmResult executeTagCommand( ScmProviderRepository scmProviderRepository, ScmFileSet fileSet, String tag ) throws ScmException { Commandline cl = createCommandLine( fileSet, tag ); ClearCaseCheckInConsumer consumer = new ClearCaseCheckInConsumer( getLogger() ); CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer(); int exitCode; try { getLogger().debug( "Creating label: " + tag ); Commandline newLabelCommandLine = createNewLabelCommandLine( fileSet, tag ); getLogger().debug( newLabelCommandLine.toString() ); exitCode = CommandLineUtils.executeCommandLine( newLabelCommandLine, new CommandLineUtils.StringStreamConsumer(), stderr ); if (exitCode == 0) { getLogger().debug( cl.toString() ); exitCode = CommandLineUtils.executeCommandLine( cl, consumer, stderr ); } } catch (CommandLineException ex) { throw new ScmException( "Error while executing clearcase command.", ex ); } if (exitCode != 0) { return new TagScmResult( cl.toString(), "The cleartool command failed.", stderr.getOutput(), false ); } return new TagScmResult( cl.toString(), consumer.getCheckedInFiles() ); }
48502 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48502/45d3dc744adc25176ac9602fc8c9b1c9186d3fa4/ClearCaseTagCommand.java/buggy/maven-scm-providers/maven-scm-provider-clearcase/src/main/java/org/apache/maven/scm/provider/clearcase/command/tag/ClearCaseTagCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2850, 81, 1253, 1836, 1805, 2189, 12, 2850, 81, 2249, 3305, 29207, 2249, 3305, 16, 6862, 6862, 1082, 282, 2850, 81, 812, 694, 585, 694, 16, 6862, 6862, 1082, 282, 514, 1047, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2850, 81, 1253, 1836, 1805, 2189, 12, 2850, 81, 2249, 3305, 29207, 2249, 3305, 16, 6862, 6862, 1082, 282, 2850, 81, 812, 694, 585, 694, 16, 6862, 6862, 1082, 282, 514, 1047, ...
odiResult.doSave( streamManager.getOutStream( DataEngineContext.EXPR_VALUE_STREAM ), streamManager.getOutStream( DataEngineContext.ROWLENGTH_INFO_STREAM ),
OutputStream streamForExprValue = null; OutputStream streamForRowLen = null; if ( context.getMode( ) == DataEngineContext.PRESENTATION_AND_GENERATION ) { streamForExprValue = streamManager.getOutStream( DataEngineContext.EXPR_VALUE_STREAM ); streamForRowLen = streamManager.getOutStream( DataEngineContext.ROWLENGTH_INFO_STREAM ); } odiResult.doSave( streamForExprValue, streamForRowLen,
private void saveResultIterator( IResultIterator odiResult, int groupLevel, int[] subQueryInfo ) throws DataException { try { // save the information of result class and group information boolean isSubQuery = streamManager.isSubquery( ); OutputStream streamForResultClass = null; if ( isSubQuery == false ) streamForResultClass = streamManager.getOutStream( DataEngineContext.RESULTCLASS_STREAM ); OutputStream streamForGroupInfo = streamManager.getOutStream( DataEngineContext.GROUP_INFO_STREAM ); odiResult.doSave( streamManager.getOutStream( DataEngineContext.EXPR_VALUE_STREAM ), streamManager.getOutStream( DataEngineContext.ROWLENGTH_INFO_STREAM ), streamForResultClass, null, streamForGroupInfo, isSubQuery, RDSave.this.exprNameSet ); streamForGroupInfo.close( ); if ( streamForResultClass != null ) streamForResultClass.close( ); // save the information of sub query information // notice, sub query name is used instead of sub query id if ( isSubQuery == true && streamManager.hasSubStream( DataEngineContext.SUBQUERY_INFO_STREAM ) == false ) { // save info related with sub query info OutputStream streamForSubQuery = streamManager.getSubOutStream( DataEngineContext.SUBQUERY_INFO_STREAM ); RDSubQueryUtil.doSave( streamForSubQuery, groupLevel, subQueryInfo ); streamForSubQuery.close( ); } } catch ( IOException e ) { throw new DataException( ResourceConstants.RD_SAVE_ERROR, e, "Result Set" ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/7f50e12b6336aaa1d5cb539eef819c63548feb2a/RDSave.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/document/RDSave.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 1923, 1253, 3198, 12, 467, 1253, 3198, 320, 3211, 1253, 16, 9506, 202, 474, 1041, 2355, 16, 509, 8526, 25182, 966, 262, 1216, 1910, 503, 202, 202, 95, 1082, 202, 698, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1152, 918, 1923, 1253, 3198, 12, 467, 1253, 3198, 320, 3211, 1253, 16, 9506, 202, 474, 1041, 2355, 16, 509, 8526, 25182, 966, 262, 1216, 1910, 503, 202, 202, 95, 1082, 202, 698, 1...
public org.quickfix.field.NoPartyIDs getNoPartyIDs() throws FieldNotFound { org.quickfix.field.NoPartyIDs value = new org.quickfix.field.NoPartyIDs();
public quickfix.field.NoPartyIDs getNoPartyIDs() throws FieldNotFound { quickfix.field.NoPartyIDs value = new quickfix.field.NoPartyIDs();
public org.quickfix.field.NoPartyIDs getNoPartyIDs() throws FieldNotFound { org.quickfix.field.NoPartyIDs value = new org.quickfix.field.NoPartyIDs(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MassQuote.java/clean/src/java/src/quickfix/fix44/MassQuote.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 17619, 5103, 336, 2279, 17619, 5103, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 17619, 5103, 460, 273, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 17619, 5103, 336, 2279, 17619, 5103, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 17619, 5103, 460, 273, 394...
/* compute title bar height; this should be done by computeTrim * to correctly handle seperate top center. */ int leftHeight = 0; if (control.getTopLeft() != null && !control.getTopLeft().isDisposed()) { leftHeight = control.getTopLeft().computeSize(SWT.DEFAULT, SWT.DEFAULT).y; } int centerHeight = 0; if (control.getTopCenter() != null && !control.getTopCenter().isDisposed()) { centerHeight = control.getTopCenter().computeSize(SWT.DEFAULT, SWT.DEFAULT).y; } int rightHeight = 0; if (control.getTopRight() != null && !control.getTopRight().isDisposed()) { rightHeight = control.getTopRight().computeSize(SWT.DEFAULT, SWT.DEFAULT).y; } int topHeight = Math.max(leftHeight, Math.max(centerHeight, rightHeight));
public int getMinimumHeight() { if (control == null || control.isDisposed()) return super.getMinimumHeight(); /* compute title bar height; this should be done by computeTrim * to correctly handle seperate top center. */ int leftHeight = 0; if (control.getTopLeft() != null && !control.getTopLeft().isDisposed()) { leftHeight = control.getTopLeft().computeSize(SWT.DEFAULT, SWT.DEFAULT).y; } int centerHeight = 0; if (control.getTopCenter() != null && !control.getTopCenter().isDisposed()) { centerHeight = control.getTopCenter().computeSize(SWT.DEFAULT, SWT.DEFAULT).y; } int rightHeight = 0; if (control.getTopRight() != null && !control.getTopRight().isDisposed()) { rightHeight = control.getTopRight().computeSize(SWT.DEFAULT, SWT.DEFAULT).y; } int topHeight = Math.max(leftHeight, Math.max(centerHeight, rightHeight)); // account for the borders topHeight = control.computeTrim(0, 0, 0, topHeight).height; return topHeight;}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/8c9deca5b5a25a6df8cce332551b8d6ac59a6c51/PartPane.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 509, 30665, 2686, 1435, 288, 202, 430, 261, 7098, 422, 446, 747, 3325, 18, 291, 1669, 7423, 10756, 202, 202, 2463, 2240, 18, 588, 13042, 2686, 5621, 202, 202, 20308, 3671, 2077, 4653, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 509, 30665, 2686, 1435, 288, 202, 430, 261, 7098, 422, 446, 747, 3325, 18, 291, 1669, 7423, 10756, 202, 202, 2463, 2240, 18, 588, 13042, 2686, 5621, 202, 202, 20308, 3671, 2077, 4653, 20...
super(textEncoding, text);
public FrameBodyTCON(byte textEncoding, String text) { super(textEncoding, text); }
40452 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40452/8e6062659057068b4b85fb7b41c567e179db6f7c/FrameBodyTCON.java/buggy/src/org/jaudiotagger/tag/id3/framebody/FrameBodyTCON.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8058, 2250, 56, 2248, 12, 7229, 977, 4705, 16, 514, 977, 13, 565, 288, 6647, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8058, 2250, 56, 2248, 12, 7229, 977, 4705, 16, 514, 977, 13, 565, 288, 6647, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public org.quickfix.field.TrdRegTimestamp get(org.quickfix.field.TrdRegTimestamp value)
public quickfix.field.TrdRegTimestamp get(quickfix.field.TrdRegTimestamp value)
public org.quickfix.field.TrdRegTimestamp get(org.quickfix.field.TrdRegTimestamp value) throws FieldNotFound { getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralRequest.java/clean/src/java/src/quickfix/fix44/CollateralRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9549, 904, 18, 1518, 18, 1070, 72, 1617, 4921, 336, 12, 19525, 904, 18, 1518, 18, 1070, 72, 1617, 4921, 225, 460, 13, 565, 1216, 2286, 2768, 225, 288, 5031, 12, 1132, 1769, 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, 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, 9549, 904, 18, 1518, 18, 1070, 72, 1617, 4921, 336, 12, 19525, 904, 18, 1518, 18, 1070, 72, 1617, 4921, 225, 460, 13, 565, 1216, 2286, 2768, 225, 288, 5031, 12, 1132, 1769, 327, ...
SettingsManager.instance().getPort());
ConnectionSettings.PORT.getValue());
public static void globalSetUp() throws Exception { setSettings(); assertEquals("unexpected port", PORT, SettingsManager.instance().getPort()); ROUTER_SERVICE.start(); ROUTER_SERVICE.clearHostCatcher(); ROUTER_SERVICE.connect(); connect(); assertEquals("unexpected port", PORT, SettingsManager.instance().getPort()); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/af6552190dbe08263169d8bbcf277965b115c243/ServerSideBrowseHostTest.java/clean/components/gnutella-core/src/test/java/com/limegroup/gnutella/ServerSideBrowseHostTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2552, 694, 1211, 1435, 1216, 1185, 288, 3639, 444, 2628, 5621, 3639, 1815, 8867, 2932, 21248, 1756, 3113, 20987, 16, 9944, 8709, 1318, 18, 1336, 7675, 588, 2617, 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, 225, 202, 482, 760, 918, 2552, 694, 1211, 1435, 1216, 1185, 288, 3639, 444, 2628, 5621, 3639, 1815, 8867, 2932, 21248, 1756, 3113, 20987, 16, 9944, 8709, 1318, 18, 1336, 7675, 588, 2617, 10663, ...
assertTrue("Expected no result set", !rs.next());
assertTrue("Expected no result set", !rs.next());
public void testPreparedStatement0040() throws Exception { Connection cx = getConnection(); dropTable("#t0040"); Statement stmt = cx.createStatement(); stmt.executeUpdate("create table #t0040 (" + " c255 char(255) not null, " + " v255 varchar(255) not null) "); PreparedStatement pStmt1 = cx.prepareStatement("insert into #t0040 values (?, ?)"); PreparedStatement pStmt2 = cx.prepareStatement("select c255, v255 from #t0040 order by c255"); String along = getLongString('a'); String blong = getLongString('b'); pStmt1.setString(1, along); pStmt1.setString(2, along); int count = pStmt1.executeUpdate(); assertTrue(count == 1); count = stmt.executeUpdate("" + "insert into #t0040 values ( " + "'" + blong + "', " + "'" + blong + "')"); assertTrue(count == 1); ResultSet rs = pStmt2.executeQuery(); assertNotNull(rs); assertTrue("Expected a result set", rs.next()); assertEquals(rs.getString("c255"), along); assertEquals(rs.getString("v255"), along); assertTrue("Expected a result set", rs.next()); assertEquals(rs.getString("c255"), blong); assertEquals(rs.getString("v255"), blong); assertTrue("Expected no result set", !rs.next()); rs = stmt.executeQuery("select c255, v255 from #t0040 order by c255"); assertNotNull(rs); assertTrue("Expected a result set", rs.next()); assertEquals(rs.getString("c255"), along); assertEquals(rs.getString("v255"), along); assertTrue("Expected a result set", rs.next()); assertEquals(rs.getString("c255"), blong); assertEquals(rs.getString("v255"), blong); assertTrue("Expected no result set", !rs.next()); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/7df6dc0065b654cd4e2b156461e0394d01dd13aa/TimestampTest.java/buggy/src.old/test/freetds/TimestampTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 29325, 713, 7132, 1435, 1216, 1185, 202, 95, 202, 202, 1952, 9494, 273, 6742, 5621, 202, 202, 7285, 1388, 2932, 7, 88, 713, 7132, 8863, 202, 202, 3406, 3480, 273, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 29325, 713, 7132, 1435, 1216, 1185, 202, 95, 202, 202, 1952, 9494, 273, 6742, 5621, 202, 202, 7285, 1388, 2932, 7, 88, 713, 7132, 8863, 202, 202, 3406, 3480, 273, 9...
vSubTypes.add(new DefaultChartSubTypeImpl("Standard Pie Chart", img2DWithDepth, sStandardDescription)); } return vSubTypes; }
vSubTypes.add( new DefaultChartSubTypeImpl( "Standard Pie Chart", img2DWithDepth, sStandardDescription ) ); } return vSubTypes; }
public Collection getChartSubtypes(String sDimension, Orientation orientation) { Vector vSubTypes = new Vector(); // Do not respond to requests for unknown orientations if (!orientation.equals(Orientation.VERTICAL_LITERAL)) { return vSubTypes; } if (sDimension.equals("2D") || sDimension.equals(ChartDimension.TWO_DIMENSIONAL_LITERAL.getName())) //$NON-NLS-1$ { img2D = UIHelper.getImage("icons/full/wizban/piechartimage.gif"); //$NON-NLS-1$ vSubTypes.add(new DefaultChartSubTypeImpl("Standard Pie Chart", img2D, sStandardDescription)); //$NON-NLS-1$ } else if (sDimension.equals("2D With Depth") //$NON-NLS-1$ || sDimension.equals(ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH_LITERAL.getName())) { img2DWithDepth = UIHelper.getImage("icons/full/wizban/piechartwithdepthimage.gif"); //$NON-NLS-1$ vSubTypes.add(new DefaultChartSubTypeImpl("Standard Pie Chart", img2DWithDepth, sStandardDescription)); //$NON-NLS-1$ } return vSubTypes; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/baa5e816320b37d313f82b2e70ae4a71b1f4e89d/PieChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/PieChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2200, 336, 7984, 1676, 2352, 12, 780, 272, 8611, 16, 531, 12556, 9820, 13, 565, 288, 3639, 5589, 331, 1676, 2016, 273, 394, 5589, 5621, 3639, 368, 2256, 486, 6846, 358, 3285, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2200, 336, 7984, 1676, 2352, 12, 780, 272, 8611, 16, 531, 12556, 9820, 13, 565, 288, 3639, 5589, 331, 1676, 2016, 273, 394, 5589, 5621, 3639, 368, 2256, 486, 6846, 358, 3285, 364, ...
else return;
public void onSuccess(ClientPutState state) { Logger.minor(this, "onSuccess("+state+")"); boolean lateStart = false; synchronized(this) { if(finished) return; if(state == sfi) { Logger.minor(this, "Splitfile insert succeeded"); splitInsertSuccess = true; if(!metaInsertSuccess && !metaInsertStarted) { Logger.error(this, "Splitfile insert succeeded but metadata not started, starting anyway..."); lateStart = true; } } else if(state == metadataPutter) { Logger.minor(this, "Metadata insert succeeded"); metaInsertSuccess = true; } else { Logger.error(this, "Unknown: "+state, new Exception("debug")); } if(splitInsertSuccess && metaInsertSuccess) { Logger.minor(this, "Both succeeded"); finished = true; } else return; } if(lateStart) startMetadata(); else if(finished) cb.onSuccess(this); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/b7504d6d131b7fabd8aa256e5606d43719c63fd6/SingleFileInserter.java/buggy/src/freenet/client/async/SingleFileInserter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 20613, 12, 1227, 6426, 1119, 919, 13, 288, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 265, 4510, 2932, 15, 2019, 9078, 2225, 1769, 1082, 202, 6494, 26374, 1685, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 20613, 12, 1227, 6426, 1119, 919, 13, 288, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 265, 4510, 2932, 15, 2019, 9078, 2225, 1769, 1082, 202, 6494, 26374, 1685, 273, ...