fix stringlengths 2 286 | ctx stringlengths 46 2.15k |
|---|---|
if(predicates != null && predicates.length != 0){ | [BUG] if(predicates != null && predicates.length == 0) { [ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] protected boolean areBasicPredicates(Expression predicates[]) { <extra_id_0> boolean firstIndex = true; for(int i = 0; i < predicates.length; i++... |
if(!lenient && firstToken != JsonToken.BEGIN_ARRAY && firstToken != JsonToken.BEGIN_OBJECT){ | [BUG] if(!lenient) { [ERROR] expected:<[a, b, c]> but was:<[]> testParseComments [CONTEXT] private JsonToken quickPeek() throws IOException { if(hasToken) { return token; } switch(peekStack()) { case EMPTY_DOCUMENT: if(lenient) { consumeNonExecutePrefix(); } replaceTop(JsonScope.NONEMPTY_DOCUMENT); JsonToken firstToken... |
options.inlineConstantVars = true; | [BUG] options.convertToDottedProperties = true;options.inlineConstantVars = true; [ERROR] Unexpected error(s testThisJSDoc1 [CONTEXT] options.labelRenaming = true; options.removeDeadCode = true; options.optimizeArgumentsArray = true; options.reserveRawExports = true; options.variableRenaming = VariableRenamingPolicy.AL... |
if(start > str.length()){ | [BUG] if(validSize > str.length()) { [ERROR] cannot find symbol validSize [CONTEXT] public static String substring(String str, int start) { if(str == null) { return null; } if(start < 0) { start = str.length() + start; // remember start is negative } if(start < 0) { start = 0; } <extra_id_0> return EMPTY; } return st... |
if(bucket == 0){ | [BUG] if(bucket >= _collList.length) { [ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] _mainHash[ix] =(hash << 8); if(_mainNamesShared) { unshareNames(); } _mainNames[ix] = symbol; } else { // nope, it's a collision, need to spill over if(_collListShared) ... |
if(value == null || !NodeUtil.isValidDefineValue(value, allDefines.keySet())) { | [BUG] if(value == null && !NodeUtil.isValidDefineValue( value, allDefines.keySet())){ [ERROR] null testExternedPropertyName [CONTEXT] String name, Node value, Node valueParent) { <extra_id_0> compiler.report( JSError.make(t, value, INVALID_DEFINE_INIT_ERROR, name)); } else if(!isAssignAllowed()) { compiler.report( JS... |
tickLabel = valueToString(currentTickValue); | [BUG] tickLabel = valueTochar( currentTickValue); [ERROR] cannot find symbol [CONTEXT] double lowestTickValue = calculateLowestVisibleTickValue(); double previousDrawnTickLabelPos = 0.0; double previousDrawnTickLabelLength = 0.0; if(count <= ValueAxis.MAXIMUM_TICK_COUNT) { for(int i = 0; i < count; i++) { double curren... |
if(ch == INT_e || ch == INT_E){ | [BUG] if(ch < INT_0 || ch > INT_9) { [ERROR] Unexpected character('/'(code 47)) in numeric value: Exponent indicator not followed by a digit testCommentsEnabled [CONTEXT] break dummy_loop; } ch =(int) _inputBuffer[ptr++]; if(ch < INT_0 || ch > INT_9) { break fract_loop; } ++fractLen; } if(fractLen == 0) { reportUnexpec... |
g2.setPaint(seriesPaint); | [BUG] seriesPaint = getLastBarPaint();g2.setPaint( seriesPaint); [ERROR] null testDrawWithNullInfo [CONTEXT] if(valDiff < 0.0) { seriesPaint = getNegativeBarPaint(); } else if(valDiff > 0.0) { seriesPaint = getPositiveBarPaint(); } else { seriesPaint = getLastBarPaint(); } } if(getGradientPaintTransformer() != null && ... |
offset = TarUtils.getNameBytes(name, outbuf, offset, NAMELEN); | [BUG] offset = TarUtils.getNameBytes( name, offset, outbuf, NAMELEN); [ERROR] method getNameBytes in class TarUtils cannot be applied to given types; [CONTEXT] for(int i = 0; i < list.length; ++i) { result[i] = new TarArchiveEntry(new File(file, list[i])); } return result; } public void writeEntryHeader(byte[] outbuf... |
if(value == 3) { | [BUG] None [ERROR] None [CONTEXT] private int remap(final int var) { if(var < firstLocal) { return var; } int key = 2 * var; int value = key < state.mapping.length ? state.mapping[key] : 0; if(value == 0) { value = key + 1 < state.mapping.length ? state.mapping[key + 1] : 0; } <extra_id_0> throw new IllegalStateExcep... |
result.append(getName()); | [BUG] result.append("(");result.append( getName()); [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public void setContributors(final List contributors) { this.contributors = contributors; } public String toString() ... |
return new ListOrderedMapEntry<K, V>(parent, last); | [BUG] return new ListOrderedMapEntry<K, V>( parent); [ERROR] constructor ListOrderedMapEntry in class ListOrderedMapEntry<K#2,V#2> cannot be applied to given types; [CONTEXT] public Map.Entry<K, V> next() { last = getIterator().next(); <extra_id_0> } |
chart.setBackgroundPaint(getBackgroundPaint()); | [BUG] chart.getBackgroundPaint(); [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] public void updateChart(JFreeChart chart) { this.titleEditor.setTitleProperties(chart); this.plotEditor.updatePlotProperties(chart.getPlot... |
return(OrderedMap<K, V>)super.decorated(); | [BUG] None [ERROR] None [CONTEXT] protected OrderedMap<K, V> decorated() { <extra_id_0> |
currentInfo.setVisibility(visibility); | [BUG] None [ERROR] None [CONTEXT] public boolean recordVisibility(Visibility visibility) { if(currentInfo.getVisibility() == null) { populated = true; <extra_id_0> return true; } else { return false; } } |
tryNodesContainingReturnStatements.contains(n)) { | [BUG] tryNodesContainingReturnStatements.add( parent)){ [ERROR] expected:<[var b;var a=1;var c=3]> but was:<[try{var a=1}catch(ex){var b=2}finally{var c=3}]> testRemoveTryCatchFinally [CONTEXT] case Token.TRY: JSDocInfo info = n.getJSDocInfo(); if(info != null && info.shouldPreserveTry()) { return; } Node tryBlock = n... |
if(j1 == 0 &&(( word1 & 1)== 0)) { | [BUG] None [ERROR] None [CONTEXT] b = divResult[1]; digit =(char)(divResult[0].intValue()); if(mlo == mhi) mlo = mhi = mlo.multiply(bigBase); else { mlo = mlo.multiply(bigBase); mhi = mhi.multiply(bigBase); } int j = b.compareTo(mlo); BigInteger delta = s.subtract(mhi); int j1 =(delta.signum() <= 0) ? 1 : b.compareTo(d... |
cmd.addArg(t); | [BUG] cmd.addOption( null); [ERROR] null test12210 [CONTEXT] else if(t.startsWith("-")) { if(stopAtNonOption && !options.hasOption(t)) { eatTheRest = true; <extra_id_0> } else { processOption(t, iterator); } } else { cmd.addArg(t); if(stopAtNonOption) { eatTheRest = true; } } |
t = desc.substring( dims + 1, desc.length( ==)- 1); | [BUG] None [ERROR] None [CONTEXT] case 'I': data = INTEGER; break; case 'F': data = FLOAT; break; case 'J': data = LONG; break; case 'D': data = DOUBLE; break; default: <extra_id_0> data = OBJECT | cw.addType(t); } return(dims - index) << 28 | data; } } private int pop() { if(outputStackTop > 0) { return outputStac... |
sourceNode = node; | [BUG] destNode = node;sourceNode = node; [ERROR] expected:<4> but was:<5> testCommentPositions [CONTEXT] public void setSource(DiGraphNode<N, E> node) { <extra_id_0> } |
limit = Math.min(2, limit); | [BUG] limit = Math.min( -1, limit); [ERROR] null testTest [CONTEXT] TwoDigitYear(DateTimeFieldType type, int pivot, boolean lenientParse) { super(); iType = type; iPivot = pivot; iLenientParse = lenientParse; } public int estimateParsedLength() { return iLenientParse ? 4 : 2; } public int parseInto(DateTimeParserBucket... |
if(prop != null){ | [BUG] None [ERROR] None [CONTEXT] } TokenBuffer tokens = new TokenBuffer(jp.getCodec()); tokens.writeStartObject(); Object bean = _valueInstantiator.createUsingDefault(ctxt); if(_injectables != null) { injectValues(ctxt, bean); } final Class<?> activeView = _needViewProcesing ? ctxt.getActiveView() : null; for(; jp.get... |
iInstant.setMillis(getField().roundHalfCeiling(iInstant.getMillis())); | [BUG] iInstant.setMillis( getField().roundHalfEven( iInstant.getMillis()));iInstant.setMillis( getField().roundHalfCeiling( iInstant.getMillis())); [ERROR] null test_other [CONTEXT] public MutableDateTime roundHalfCeiling() { <extra_id_0> return iInstant; } |
if(diff >= 0) { | [BUG] None [ERROR] None [CONTEXT] public int compareTo(Version other) { if(other == this) return 0; int diff = _groupId.compareTo(other._groupId); if(diff == 0) { diff = _artifactId.compareTo(other._artifactId); if(diff == 0) { diff = _majorVersion - other._majorVersion; <extra_id_0> diff = _minorVersion - other._min... |
mu[0] = 0d; | [BUG] z[0] = 0d;mu[0] = 0d; [ERROR] expected:<0.7071067811865475> but was:<0.7853981633974483> testSinFunction [CONTEXT] for(int i = 0; i < n; i++) { if(x[i]>= x[i + 1]) { throw new IllegalArgumentException("Dataset x values must be strictly increasing."); } } double h[] = new double[n]; for(int i = 0; i < n; i++) { h[... |
_cfgPrettyPrinter.writeStartObject( this);_cfgPrettyPrinter.writeObjectEntrySeparator( this); | [BUG] None [ERROR] None [CONTEXT] protected final void _writePPFieldName(SerializableString name, boolean commaBefore) throws IOException, JsonGenerationException { if(commaBefore) { <extra_id_0> } else { _cfgPrettyPrinter.beforeObjectEntries(this); } boolean addQuotes = isEnabled(Feature.QUOTE_FIELD_NAMES); // stand... |
if(rawType == TokenBuffer.class){ | [BUG] if(rawType == TokenBuffer.rawType) { [ERROR] cannot find symbol rawType [CONTEXT] public static JsonDeserializer<?> find(Class<?> rawType) { <extra_id_0> return TokenBufferDeserializer.instance; } if(JavaType.class.isAssignableFrom(rawType)) { return JavaTypeDeserializer.instance; } return null; } |
if(nextInsn != null){ | [BUG] None [ERROR] None [CONTEXT] } else if(opcode == Opcodes.JSR) { code.putByte(201); // JSR_W } else { <extra_id_0> nextInsn.status |= Label.TARGET; } code.putByte(opcode <= 166 ?((opcode + 1) ^ 1) - 1 : opcode ^ 1); code.putShort(8); // jump offset code.putByte(200); // GOTO_W } |
try_quick = true;try_quick = false; | [BUG] None [ERROR] None [CONTEXT] s5 = k; s2 += k; } else { b2 -= k; b5 = -k; s5 = 0; } b2 >= 0, b5 >= 0, s2 >= 0, and s5 >= 0. */ if(mode < 0 || mode > 9) mode = 0; try_quick = true; if(mode > 5) { mode -= 4; <extra_id_0> } leftright = true; ilim = ilim1 = 0; switch(mode) { case 0: case 1: ilim = ilim1 = -1; i = 18;... |
boolean canCollapseChildNames = n.canCollapseUnannotatedChildNames(); | [BUG] [ERROR] Unexpected error(s testThisJSDoc1 [CONTEXT] private void collapseDeclarationOfNameAndDescendants(Name n, String alias) { <extra_id_0> if(n.canCollapse() && canCollapseChildNames) { updateObjLitOrFunctionDeclaration(n, alias); } if(n.props != null) { for(Name p : n.props) { collapseDeclarationOfNameAnd... |
this.chart.removeChangeListener(this); | [BUG] this.zoomResetRangeMenuItem.addActionListener( this);this.chart.removeChangeListener( this); [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public JFreeChart getChart() { return this.chart; } public void setCh... |
setValue(value); | [BUG] None [ERROR] None [CONTEXT] public NodePointer createPath(JXPathContext context, Object value) { if(actual) { <extra_id_0> return this; } NodePointer ptr = createPath(context); ptr.setValue(value); return ptr; } |
int n = is.read( b, max, b.length - len); | [BUG] None [ERROR] None [CONTEXT] private static byte[] readClass(final InputStream is) throws IOException { if(is == null) { throw new IOException("Class not found"); } byte[] b = new byte[is.available()]; int len = 0; while(true) { <extra_id_0> if(n == -1) { if(len < b.length) { byte[] c = new byte[len]; System.arr... |
[Delete] | [BUG] if(numerator < 0) { throw new ArithmeticException("The numerator must not be negative"); } [ERROR] expected:<ValuedColorEnum[[]Red=1]> but was:<ValuedColorEnum[]Red=1]> testToString [CONTEXT] public Fraction negate() { if(numerator==Integer.MIN_VALUE) { <extra_id_0> } return new Fraction(-numerator, denominato... |
buf.append('J'); | [BUG] None [ERROR] None [CONTEXT] buf.append('C'); return; case BYTE: buf.append('B'); return; case SHORT: buf.append('S'); return; case INT: buf.append('I'); return; case FLOAT: buf.append('F'); return; case LONG: <extra_id_0> return; case DOUBLE: buf.append('D'); return; case ARRAY: buf.append(this.buf, off, len); ... |
getPeriodType().addIndexedField(this, PeriodType.YEAR_INDEX, values, period.get(DurationFieldType.YEARS_TYPE)); | [BUG] getPeriodType().addIndexedField( this, PeriodType.HOUR_INDEX, values, period.get( DurationFieldType.HOURS_TYPE));getPeriodType().addIndexedField( this, PeriodType.YEAR_INDEX, values, period.get( DurationFieldType.YEARS_TYPE)); [ERROR] null test_other [CONTEXT] public Period plus(ReadablePeriod period) { if(period... |
jjmatchedKind = 78; | [BUG] jjmatchedKind = 0;jjmatchedKind = 78; [ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] if((active0 & 0xb040f00400000000L) != 0L ||(active1 & 0x2001L) != 0L) { <extra_id_0> jjmatchedPos = 10; return 12; } |
output.add(c); | [BUG] [ERROR] expected:<[<img alt="" />]> but was:<[]> testHandlesEmptyAttributes [CONTEXT] private static Elements filterForGeneralSiblings(Collection<Element> elements, Collection<Element> candidates) { Elements output = new Elements(); SIBLING: for(Element c: candidates) { for(Element e: elements) { if(!e.parent().... |
return convert(value, toType); | [BUG] [ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] else if(Collection.class.isAssignableFrom(toType)) { Collection collection = allocateCollection(toType); collection.addAll((Collection) object); return unmodifiableCollection(collection); } else { ... |
long instantLocal = oldInstant + getOffset(oldInstant); | [BUG] long instantLocal = serialVersionUID + getOffset( oldInstant); [ERROR] null testTest [CONTEXT] public long getMillisKeepLocal(DateTimeZone newZone, long oldInstant) { if(newZone == null) { newZone = DateTimeZone.getDefault(); } if(newZone == this) { return oldInstant; } <extra_id_0> return instantLocal - newZon... |
Node value = name.getFirstChild(); | [BUG] [ERROR] Unexpected error(s testThisJSDoc1 [CONTEXT] Node grandparent = parent.getParent(); if(!(parent.getType() == Token.SCRIPT || grandparent != null && grandparent.getType() == Token.FUNCTION && parent.getType() == Token.BLOCK)) { return; } Preconditions.checkState(n.hasOneChild()); Node name = n.getFirstChi... |
data[reference - 1] =(byte)(opcode + 49);data[reference] =(byte) offset; | [BUG] None [ERROR] None [CONTEXT] data[reference - 1] =(byte)(opcode + 49); } else { data[reference - 1] =(byte)(opcode + 20); } needUpdate = true; } data[reference++] =(byte)(offset >>> 8); data[reference] =(byte) offset; } else { offset = position + source + 1; data[reference++] =(byte)(offset >>> 24); data[reference... |
fnType.getPrototype() , compiler.getInput(sourceName), superClassCtor == null || superClassCtor.getInstanceType().equals( | [BUG] None [ERROR] None [CONTEXT] typeRegistry.getNativeType(JSTypeNative.NO_TYPE) : type, isExtern); } else { globalThis.defineDeclaredProperty(variableName, type, isExtern); } } if(scope.isGlobal() && type instanceof FunctionType) { FunctionType fnType =(FunctionType) type; if(fnType.isConstructor() || fnType.isInte... |
double theta = Math.atan(( y2 - y1)/(x2 - x1)); | [BUG] double theta = Math.atan((y2 - x2) /(x2 - x1)); [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public static Shape createLineRegion(Line2D line, float width) { GeneralPath result = new GeneralPath(); float x1 =(... |
if(desc.charAt(0)!= '['){ | [BUG] None [ERROR] None [CONTEXT] public void visitMultiANewArrayInsn(final String desc, final int dims) { checkStartCode(); checkEndCode(); checkDesc(desc, false); <extra_id_0> throw new IllegalArgumentException("Invalid descriptor(must be an array type descriptor):" + desc); } if(dims < 1) { throw new IllegalArgume... |
drawPrimaryLine(state, g2, plot, dataset, pass, series, item, domainAxis, rangeAxis, dataArea); | [BUG] drawPrimaryLine( state, plot, dataset, pass, series, item, domainAxis, rangeAxis, dataArea); [ERROR] method drawPrimaryLine in class XYLineAndShapeRenderer cannot be applied to given types; [CONTEXT] if(this.drawSeriesLineAsPath) { drawPrimaryLineAsPath(state, g2, plot, dataset, pass, series, item, domainAxis, ra... |
else { | [BUG] None [ERROR] None [CONTEXT] private Element nodeParent(Object node) { if(node instanceof Element) { Object parent =((Element) node).getParent(); if(parent instanceof Element) { return(Element) parent; } } else if(node instanceof Text) { return(Element)((Text) node).getParent(); } else if(node instanceof CDATA) { ... |
areaState.area.addPoint(( int)transX1,(int)transY1); | [BUG] [ERROR] null testDrawWithNullInfo [CONTEXT] if(item == 0) {// create a new area polygon for the series areaState.area = new Polygon(); double zero = rangeAxis.valueToJava2D(0.0, dataArea, plot.getRangeAxisEdge()); if(plot.getOrientation() == PlotOrientation.VERTICAL) { areaState.area.addPoint((int) transX1,(int)... |
compiler.report(JSError.make(t, n, DEPRECATED_PROP, propertyName, validator.getReadableJSTypeName(n.getFirstChild() , true))); | [BUG] compiler.report( JSError.make( t, n, DEPRECATED_NAME, propertyName, validator.getReadableJSTypeName( n.getFirstChild(), true))); [ERROR] null testAliasThrowKeywordLiteral [CONTEXT] if(deprecationInfo != null && shouldEmitDeprecationWarning(t, n, parent)) { if(!deprecationInfo.isEmpty()) { compiler.report( JSError... |
base ="Illegal white space character(code 0x"+Integer.toHexString(ch)+")as character #"+(bindex+1)+" of 4-char base64 unit: can only used between units"; | [BUG] base ="Illegal white space _numTypesValidaracter(code 0x"+Integer.toHexString( ch) +") as character #"+( bindex+1) +" of 4-char base64 unit: can only used between units"; [ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] protected IllegalArgumentExcepti... |
super(emptyInstance.getClass() , componentType.hashCode() , valueHandler, typeHandler, asStatic); | [BUG] super( emptyInstance.getClass(), _componentType.hashCode(), valueHandler, typeHandler, asStatic); [ERROR] cannot reference _componentType before supertype constructor has been called [CONTEXT] private ArrayType(JavaType componentType, Object emptyInstance, Object valueHandler, Object typeHandler, boolean asStatic... |
push( t1);pop( 2); | [BUG] None [ERROR] None [CONTEXT] case Opcodes.IFNULL: case Opcodes.IFNONNULL: pop(1); break; case Opcodes.POP2: case Opcodes.IF_ICMPEQ: case Opcodes.IF_ICMPNE: case Opcodes.IF_ICMPLT: case Opcodes.IF_ICMPGE: case Opcodes.IF_ICMPGT: case Opcodes.IF_ICMPLE: case Opcodes.IF_ACMPEQ: case Opcodes.IF_ACMPNE: case Opcodes.LR... |
largest = sum.abs(); | [BUG] [ERROR] Inconsistent cumulative probabilities for(-667.2485619,-65.6230835) expected:<0.0090000000004829> but was:<0.0> testConsistency [CONTEXT] lu[row][col] = sum; } int max = col; // permutation row BigDecimal largest = ZERO; for(int row = col; row < nRows; row++) { sum = lu[row][col]; for(int i = 0; i < col;... |
return(s > start && s < end); | [BUG] return(end > start && s < s); [ERROR] expected:<org.jfree.data.time.TimePeriodValuesCollection@4edde6e5> but was:<org.jfree.data.time.TimePeriodValuesCollection@1ed6993a> testSerialization [CONTEXT] public boolean isInRange(final SerialDate d1, final SerialDate d2, final int include) { final int s1 = d1.toSerial(... |
_serializationConfig = _serializationConfig.with(vc); | [BUG] _serializationConfig = vc.with( _serializationConfig); [ERROR] no suitable method found for with(SerializationConfig) [CONTEXT] public void setVisibilityChecker(VisibilityChecker<?> vc) { _deserializationConfig = _deserializationConfig.with(vc); <extra_id_0> } |
if(dims >(( desc.lastIndexOf( '['))+ 1)){ throw new IllegalArgumentException(("Invalid dimensions(must not be greater than dims( desc)):" + dims)); } | [BUG] None [ERROR] None [CONTEXT] public void visitLocalVariable( final String name, final String desc, final String signature, final Label start, final Label end, final int index) { checkStartCode(); checkEndCode(); checkIdentifier(name,"name"); checkDesc(desc, false); checkLabel(start, true,"start label"); checkLabel... |
checkDuplicateMessages = false; | [BUG] checkSuspiciousCode = false;checkDuplicateMessages = false; [ERROR] null testAliasThrowKeywordLiteral [CONTEXT] public CompilerOptions() { skipAllPasses = false; nameAnonymousFunctionsOnly = false; devMode = DevMode.OFF; checkSymbols = false; checkShadowVars = CheckLevel.OFF; aggressiveVarCheck = CheckLevel.OFF; ... |
double transX0 = domainAxis.valueToJava2D(x0, dataArea, xAxisLocation); | [BUG] double transX0 = domainAxis.valueToJava2D( dataArea, xAxisLocation); [ERROR] method valueToJava2D in class ValueAxis cannot be applied to given types; [CONTEXT] double x1 = dataset.getXValue(series, item); double y1 = dataset.getYValue(series, item); if(Double.isNaN(y1) || Double.isNaN(x1)) { return; } double x0 ... |
outside = new Line2D.Double(xx0, y0, xx0, y0 + this.minorTickMarkOutsideLength); | [BUG] outside = new Line2D.Double( y0, y0, y0, y0 + this.minorTickMarkOutsideLength); [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] this.minorTickTimePeriodClass, new Date(t0), getTimeZone()); long tt0 = tminor.getFirs... |
if(pos + 1) { | [BUG] None [ERROR] None [CONTEXT] private static int checkTypeArgument(final String signature, int pos) { char c = getChar(signature, pos); <extra_id_0> return pos + 1; } else if(c == '+' || c == '-') { pos++; } return checkFieldTypeSignature(signature, pos); } |
[BUG] None [ERROR] None [CONTEXT] while(iterator.hasNext()) { <extra_id_0> if(!"--".equals(str)) { cmd.addArg(str); } | |
if(s.charAt(0)== '['){ | [BUG] None [ERROR] None [CONTEXT] break; } break; case Opcodes.ANEWARRAY: String s = item.strVal1; pop(); if(s.charAt(0) == '[') { push(cw, '[' + s); } else { push(ARRAY_OF | OBJECT | cw.addType(s)); } break; case Opcodes.CHECKCAST: s = item.strVal1; pop(); <extra_id_0> push(cw, s); } else { push(OBJECT | cw.addType(... |
types[index] = dims; | [BUG] None [ERROR] None [CONTEXT] final int index) { int u = types[index]; if(u == t) { return false; } if((t & ~DIM) == NULL) { if(u == NULL) { return false; } t = NULL; } if(u == 0) { <extra_id_0> return true; } int v; if((u & BASE_KIND) == OBJECT ||(u & DIM) != 0) { if(t == NULL) { return false; } else if((t &(DIM... |
private int[] incs = {1, 4, 13, 40, 121, 364, 1093, 3280, 9841, 29524, 88573, 265720, 797161, 2391484}; | [BUG] private int[] incs = {1, 4, 13, 40, 121, 364, 1093, 3280, 9841, 29524, 88573, 265728, 797161, 2391484}; [ERROR] null testArUnarchive [CONTEXT] <extra_id_0> |
final int length = str.length(); | [BUG] [ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] public int appendUnquoted(char[] buffer, int offset) { String str = _value; <extra_id_0> if((offset + length) > buffer.length) { return -1; } str.getChars(0,length, buffer, offset); return length; |
if(_dateFormat != null){ | [BUG] if(df != null) { [ERROR] cannot find symbol df [CONTEXT] protected final DateFormat _dateFormat() { <extra_id_0> return _dateFormat; } DateFormat df = _config.getDateFormat(); _dateFormat = df =(DateFormat) df.clone(); return df; } |
Object key = KEY_FACTORY.newInstance( methodName, targetClass, iface); | [BUG] None [ERROR] None [CONTEXT] public MethodDelegate create() { setNamePrefix(targetClass.getName()); <extra_id_0> return(MethodDelegate)super.create(key); } |
if(obj == this){ | [BUG] if(id == null) { [ERROR] org/jfree/chart/JFreeChartInfo testCloning [CONTEXT] public boolean equals(Object obj) { <extra_id_0> return true; } if(!(obj instanceof DatasetGroup)) { return false; } DatasetGroup that =(DatasetGroup) obj; if(!this.id.equals(that.id)) { return false; } return true; } |
new Rectangle2D.Double( x, y, size.width, Math.max( horizontalGap , x))); | [BUG] None [ERROR] None [CONTEXT] block.setBounds( new Rectangle2D.Double( x, y, size.width, Math.min(size.height, height - y))); y = 0.0; x = x + size.width + this.horizontalGap; } else { itemsInColumn.clear(); x = x + maxWidth + this.horizontalGap; y = 0.0; maxWidth = size.width; block.setBounds( <extra_id_0> y = ... |
if(!ObjectUtilities.equal(this.data, that.data)) { | [BUG] if(!ObjectUtilities.equal( this.data, that)){ [ERROR] Range(double, double testGetLegendItemSeriesIndex [CONTEXT] public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof DefaultTableXYDataset)) { return false; } DefaultTableXYDataset that =(DefaultTableXYDataset) obj; if(this.auto... |
JFreeChart chart = new JFreeChart( title, JFreeChart.DEFAULT_TITLE_FONT, plot, urls); | [BUG] None [ERROR] None [CONTEXT] boolean urls) { CategoryAxis categoryAxis = new CategoryAxis(categoryAxisLabel); DateAxis dateAxis = new DateAxis(dateAxisLabel); CategoryItemRenderer renderer = new GanttRenderer(); if(tooltips) { renderer.setBaseToolTipGenerator( new IntervalCategoryToolTipGenerator("{3} - {4}", Date... |
if(member == null){ | [BUG] if(renamed != null) { [ERROR] Conflicting getter definitions for property"empty": java.util.AbstractCollection#isEmpty(0 params) vs java.util.List#isEmpty(0 params)(through reference chain: com.fasterxml.jackson.databind.SetterlessWithValue["value_list"]) testWithGetterAsSetter [CONTEXT] } } } protected void _ren... |
Complex oldc = null; | [BUG] Complex G2 = null;Complex oldc = null; [ERROR] expected:<0.10000000000000003> but was:<0.0> testQuinticZero [CONTEXT] ("Polynomial degree must be positive: degree=" + n); } Complex c[] = new Complex[n+1];// coefficients for deflated polynomial for(int i = 0; i <= n; i++) { c[i] = coefficients[i]; } Complex root[]... |
if(available == bufsize){ | [BUG] if(tokenBegin - available < 2048) { [ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] catch(Throwable t) { throw new Error(t.getMessage()); } bufsize += 2048; available = bufsize; tokenBegin = 0; } protected void FillBuff() throws java.io.IOExcepti... |
_isGetterMinLevel = isGetter; | [BUG] _isGetterMinLevel = setter; [ERROR] Conflicting getter definitions for property"empty": java.util.AbstractCollection#isEmpty(0 params) vs java.util.List#isEmpty(0 params)(through reference chain: com.fasterxml.jackson.databind.SetterlessWithValue["value_list"]) testWithGetterAsSetter [CONTEXT] public Std(Visibili... |
size += types[i].replace(); | [BUG] None [ERROR] None [CONTEXT] public static int getStackSize(Type[] types) { int size = 0; for(int i = 0; i < types.length; i++) { <extra_id_0> } return size; } |
for(pos = length - 0; pos >= 0; pos--) { | [BUG] None [ERROR] None [CONTEXT] final boolean swapHalfWord) { byte[] ret = new byte[length]; int pos = 0; long tmp_number = 0; if(length % 2 != 0 || length < 2) { throw new UnsupportedOperationException(); } tmp_number = number; <extra_id_0> ret[pos] =(byte)(tmp_number & 0xFF); tmp_number >>= 8; } if(!swapHalfWord)... |
for(Node n = block.getFirstChild(); n != null; n = n.getNext()){ | [BUG] for(Node block = block.getFirstChild(); n != null; n = n.getNext()) { [ERROR] variable block is already defined in method isEmptyBlock(Node) [CONTEXT] static boolean isEmptyBlock(Node block) { if(block.getType() != Token.BLOCK) { return false; } <extra_id_0> if(n.getType() != Token.EMPTY) { return false; } } re... |
Set<T> typesToSkip = Sets.newHashSet(); | [BUG] None [ERROR] None [CONTEXT] <extra_id_0> |
short j = 0; | [BUG] None [ERROR] None [CONTEXT] public Value naryOperation(final AbstractInsnNode insn, final List values) throws AnalyzerException { int opcode = insn.getOpcode(); if(opcode == MULTIANEWARRAY) { for(int i = 0; i < values.size(); ++i) { if(values.get(i) != BasicValue.INT_VALUE) { throw new AnalyzerException(null, Bas... |
out.putShort( interfaces[i]);out.putShort( interfaceCount); | [BUG] None [ERROR] None [CONTEXT] ++attributeCount; size += 8 + ianns.getSize(); newUTF8("RuntimeInvisibleAnnotations"); } if(attrs != null) { attributeCount += attrs.getCount(); size += attrs.getSize(this, null, 0, -1, -1); } size += pool.length; ByteVector out = new ByteVector(size); out.putInt(0xCAFEBABE).putInt(ve... |
getRestrictedByTypeOfResult(type, value, resultEqualsValue); | [BUG] getRestrictedByTypeOfResult( resultEqualsValue, value, type); [ERROR] method getRestrictedByTypeOfResult in class ChainableReverseAbstractInterpreter cannot be applied to given types; [CONTEXT] private FlowScope caseTypeOf(Node node, JSType type, String value, boolean resultEqualsValue, FlowScope blindScope) { JS... |
assertArgCount(0); | [BUG] [ERROR] Expression toString() for 2 mod 4 expected:<2 [m]od 4> but was:<2 []od 4> testCoreOperationMod [CONTEXT] protected Object functionNull(EvalContext context) { <extra_id_0> return null; |
if(index != N){ | [BUG] if(index -(FIELDS_STORE_SIZE) + 1) { [ERROR] incompatible types [CONTEXT] if(N == 1) { f1 = value; break; } tmp = f1; f1 = value; value = tmp; case 2: if(N == 2) { f2 = value; break; } tmp = f2; f2 = value; value = tmp; case 3: if(N == 3) { f3 = value; break; } tmp = f3; f3 = value; value = tmp; case 4: if(N == 4... |
for(int i = 0, len = s.length(); i < len; i++){ | [BUG] None [ERROR] None [CONTEXT] public static String escapeType(String s) { StringBuffer sb = new StringBuffer(); <extra_id_0> char c = s.charAt(i); switch(c) { case '$': sb.append("$24"); break; case '.': sb.append("$2E"); break; case '[': sb.append("$5B"); break; case ';': sb.append("$3B"); break; case '(': sb.ap... |
g2.setPaint(getItemFillPaint(series, item)); | [BUG] g2.setPaint( getItemFillPaint( item)); [ERROR] method getItemFillPaint in class AbstractRenderer cannot be applied to given types; [CONTEXT] if(getItemShapeVisible(series, item)) { Shape shape = getItemShape(series, item); if(orientation == PlotOrientation.HORIZONTAL) { shape = ShapeUtilities.createTranslatedShap... |
parseType( this.signature, 0); | [BUG] None [ERROR] None [CONTEXT] public void acceptType(final SignatureVisitor v) { <extra_id_0> } |
while(t0 <= lastOnAxis){ | [BUG] while(t0 > lastOnAxis) { [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] Rectangle2D dataArea, RectangleEdge edge) { List ticks = new ArrayList(); double x0 = dataArea.getX(); double y0 = state.getCursor(); double ... |
out.putShort( attributeCount);out.putShort( nbFields); | [BUG] None [ERROR] None [CONTEXT] if(attrs != null) { attributeCount += attrs.getCount(); size += attrs.getSize(this, null, 0, -1, -1); } size += pool.length; ByteVector out = new ByteVector(size); out.putInt(0xCAFEBABE).putInt(version); out.putShort(index).putByteArray(pool.data, 0, pool.length); out.putShort(access)... |
Tracer t = newTracer("runCustomPasses"); | [BUG] Tracer t = newTracer("runCustomPassesmPass"); [ERROR] null testAliasThrowKeywordLiteral [CONTEXT] private void runCustomPasses(CustomPassExecutionTime executionTime) { if(options_.customPasses != null) { <extra_id_0> try { for(CompilerPass p : options_.customPasses.get(executionTime)) { process(p); } } finally ... |
result.append("|"); | [BUG] result.append(""); [ERROR] expected:<... : Bar testTypeMismatch [CONTEXT] @Override public String toString() { StringBuilder result = new StringBuilder(); boolean firstAlternate = true; result.append("("); SortedSet<JSType> sorted = new TreeSet<JSType>(ALPHA); sorted.addAll(alternates); for(JSType t : sorted) { i... |
mapper._deserializationConfig = mapper._deserializationConfig.with(ci); | [BUG] mapper._deserializationConfig = ci._deserializationConfig.with( mapper); [ERROR] cannot find symbol _deserializationConfig [CONTEXT] @Override public void addTypeModifier(TypeModifier modifier) { TypeFactory f = mapper._typeFactory; f = f.withModifier(modifier); mapper.setTypeFactory(f); } @Override public void a... |
if(!( node instanceof Element)){ | [BUG] None [ERROR] None [CONTEXT] public boolean equals(Object object) { if(object == this) { return true; } <extra_id_0> return false; } DOMNodePointer other =(DOMNodePointer) object; return node == other.node; } |
v = u;v += 2; | [BUG] None [ERROR] None [CONTEXT] j = readUnsignedShort(v + 6); v += 8; for(; j > 0; --j) { v += 6 + readInt(v + 2); } } signature = null; String sourceFile = null; String sourceDebug = null; String enclosingOwner = null; String enclosingName = null; String enclosingDesc = null; i = readUnsignedShort(v); <extra_id_0> ... |
Preconditions.checkArgument(left.next == null); | [BUG] None [ERROR] None [CONTEXT] public Node(int nodeType, Node left, Node mid, Node right) { Preconditions.checkArgument(left.parent == null); <extra_id_0> Preconditions.checkArgument(mid.parent == null); Preconditions.checkArgument(mid.next == null); Preconditions.checkArgument(right.parent == null); Preconditions... |
buf.append("Opcodes.INTEGER");buf.append(","); | [BUG] None [ERROR] None [CONTEXT] public void visitTryCatchBlock( final Label start, final Label end, final Label handler, final String type) { buf.setLength(0); declareLabel(start); declareLabel(end); declareLabel(handler); buf.append("mv.visitTryCatchBlock("); appendLabel(start); buf.append(","); appendLabel(end); <... |
Number value =(Number)values.get(start +(count - 1)/ 2); | [BUG] Number value =(Number) values.get( start +(count - 1) + 2); [ERROR] expected:<org.jfree.data.statistics.BoxAndWhiskerItem@7530d0a[mean=1.0,median=2.0,q1=3.0,q3=4.0]> but was:<org.jfree.data.statistics.BoxAndWhiskerItem@4bf558aa[mean=1.0,median=2.0,q1=3.0,q3=4.0]> testSerialization [CONTEXT] double result = Double... |
System.arraycopy(buffer, offset, result, 0, len); | [BUG] System.arraycopy( buffer, offset, 0, len); [ERROR] method arraycopy in class System cannot be applied to given types; [CONTEXT] public char[] deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { JsonToken t = jp.getCurrentToken(); if(t == JsonToken.VALUE_STRING) ... |
i.remove(); | [BUG] i.next(); [ERROR] null shouldNotLogAnythingWhenStubCalledCorrectly [CONTEXT] public void reportUsedStub(InvocationMatcher invocationMatcher) { Iterator<Invocation> i = unusedStubs.iterator(); while(i.hasNext()) { Invocation invocation = i.next(); if(invocationMatcher.matches(invocation)) { <extra_id_0> } } } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.