fix stringlengths 2 833 | ctx stringlengths 80 394k |
|---|---|
pf = new PeriodFormatterBuilder().appendYears().appendSuffix(b.getString("PeriodFormat.year"), b.getString("PeriodFormat.years")).appendSeparator(b.getString("PeriodFormat.commaspace"), b.getString("PeriodFormat.spaceandspace"), variants) | [BUG] pf = new PeriodFormatterBuilder().appendYears().appendSuffix( b.getString("PeriodFormat.year") , b.getString("PeriodFormat.years")).appendSeparator( b.getString("PerioeriodFormat.commaspace") , b.getString("PeriodFormat.spaceandspace") , variants)[ERROR] null test_other [CONTEXT] public static PeriodFormatte... |
_writer.write(text, start, newAmount); | [BUG] _writer.write( quoted, start, newAmount);[ERROR] cannot find symbol quoted [CONTEXT] if(newAmount < SHORT_WRITE) { if((_outputTail + newAmount) > _outputEnd) { _flushBuffer(); } if(newAmount > 0) { System.arraycopy(text, start, _outputBuffer, _outputTail, newAmount); _outputTail += newAmount; } } else { // Nope:... |
return new AnnotationWriter( cw, true, stackMap, null, 0); | [BUG] return new AnnotationWriter(cw, false, annd, null, 0); [CONTEXT] public AnnotationVisitor visitAnnotationDefault() { if(!ClassReader.ANNOTATIONS) { return null; } annd = new ByteVector(); <extra_id_0> } [CLASS] MethodWriter [METHOD] visitAnnotationDefault [RETURN_TYPE] AnnotationVisitor [VARIABLES] Attribute... |
return new CSVFormat(delimiter, encapsulator, commentStart, escape, surroundingSpacesIgnored, emptyLinesIgnored, lineSeparator, header); | [BUG] return new CSVFormat( delimiter, encapsulator, commentStart, escape, emptyLinesIgnored, lineSeparator, header);[ERROR] constructor CSVFormat in class CSVFormat cannot be applied to given types; [CONTEXT] public CSVFormat withHeader(String... header) { <extra_id_0> } [CLASS] CSVFormat [METHOD] withHeader [RETUR... |
setResult(x, i); return result; | [BUG] [ERROR] expected:<0.10000000000000003> but was:<0.0> testQuinticZero [CONTEXT] } } else { x = min + Math.random() *(max - min); oldx = Double.POSITIVE_INFINITY; } y = f.value(x); tolerance = Math.max(relativeAccuracy * Math.abs(x), absoluteAccuracy); if(Math.abs(x - oldx) <= tolerance) { setResult(x, i); return ... |
if(numerator == 0){ | [BUG] if(-1 * denominator) {[ERROR] incompatible types [CONTEXT] public String toProperString() { if(toProperString == null) { <extra_id_0> toProperString ="0"; } else if(numerator == denominator) { toProperString ="1"; } else if(numerator == -1 * denominator) { toProperString ="-1"; } else if((numerator>0?-numerato... |
else if(command.equals("MaximumRange")) { | [BUG] else if(command.equals("umRa")){[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] public void actionPerformed(ActionEvent event) { String command = event.getActionCommand(); if(command.equals("GridStroke")) { attemp... |
left.moveTo(( float)xx1, transStack1); | [BUG] right.moveTo((float) xx1, transStack1);left.moveTo((float) xx1, transStack1);[ERROR] null testDrawWithNullInfo [CONTEXT] float transStackLeft =(float) rangeAxis.valueToJava2D( adjStackLeft[1], dataArea, edge1); if(y0 >= 0.0) { double yleft =(y0 + y1) / 2.0 + stackLeft[1]; float transYLeft =(float) rangeAxis.valu... |
private static final Source SOURCE = new Source(MulticastDelegate.class.getName()); | [BUG] private static final Source SOURCE = new Source( MulticastDelegate.class.getClassLoader());[NO-ERROR] [CONTEXT] gen.setInterface(iface); return gen.create(); } public static class Generator extends AbstractClassGenerator { <extra_id_0> private static final Type MULTICAST_DELEGATE = TypeUtils.parseType("org.moc... |
return new CollectionType(_class, _elementType.withStaticTyping() , _valueHandler, _typeHandler, true); | [BUG] return new CollectionType( _class, _elementType.withStaticTyping(), _typeHandler, true);[ERROR] constructor CollectionType in class CollectionType cannot be applied to given types; [CONTEXT] public CollectionType withStaticTyping() { if(_asStatic) { return this; } <extra_id_0> } [CLASS] CollectionType [METHOD]... |
if(n.getType() == Token.NAME){ | [BUG] if(parent != null && parent.getType() == VAR) {[ERROR] cannot find symbol parent [CONTEXT] public void visit(Node n) { <extra_id_0> Node parent = n.getParent(); if(parent != null && parent.getType() == Token.VAR) { String name = n.getString(); if(!vars.containsKey(name)) { vars.put(name, n); } } } } [CLASS] Va... |
_outputStream.write(bytes, offset, len); | [BUG] _outputStream.write( bytes, offset, features);[ERROR] cannot find symbol features [CONTEXT] private final void _writeBytes(byte[] bytes, int offset, int len) throws IOException { if((_outputTail + len) > _outputEnd) { _flushBuffer(); if(len > MAX_BYTES_TO_BUFFER) { <extra_id_0> return; } } System.arraycopy(byt... |
stopTracer(tracer,"annotateCodingConvention"); | [BUG] stopTracer( t,"annotateCodingConvention");[ERROR] cannot find symbol t [CONTEXT] void annotateCodingConvention(Node root) { Tracer tracer = newTracer("annotateCodingConvention"); CompilerPass pass = new CodingConventionAnnotator(this); pass.process(null, root); <extra_id_0> } [CLASS] Compiler 2 3 1 4 5 6 7 8 9... |
tickLabel = format.format(tickVal); | [BUG] tickLabel = format.format( min);[ERROR] cannot find symbol min [CONTEXT] if(this.log10TickLabelsFlag) { tickLabel ="10^" + i; //create"log10"-type label } else {//not"log10"-type label if(this.expTickLabelsFlag) { tickLabel ="1e" + i;//create"1e#"-type label } else {//not"1e#"-type label if(i >= 0) { // if posit... |
minutes =(int)(durationMillis / DateUtils.MILLIS_PER_MINUTE); | [BUG] seconds =(int)(durationMillis / DateUtils.MILLIS_PER_SECOND);minutes =(int)(durationMillis / DateUtils.MILLIS_PER_MINUTE);[NO-ERROR] [CONTEXT] int days = 0; int hours= 0; int minutes= 0; int seconds= 0; int milliseconds = 0; if(Token.containsTokenWithValue(tokens, d)){ days =(int)(durationMillis / DateUtils.MILL... |
[Delete] | [BUG] if(( sv) != null) { sv.visitFormalTypeParameter( name); }[NO-ERROR] [CONTEXT] public void visitTypeArgument() { if(state != CLASS_TYPE) { throw new IllegalStateException(); } <extra_id_0> sv.visitTypeArgument(); } } [CLASS] CheckSignatureAdapter [METHOD] visitTypeArgument [RETURN_TYPE] void [VARIABLES] Signat... |
double current = 0.0; | [BUG] int current = 0.0;[ERROR] possible loss of precision [CONTEXT] public void drawItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column, int pass) { double previous = state.getSeriesRun... |
this.secondFormatter = formatter; | [BUG] this.secondFormatter = NumberFormat.getNumberInstance();this.secondFormatter = formatter;[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public void setSecondFormatter(NumberFormat formatter) { if(formatter == n... |
[Delete] | [BUG] if(isAssignableFrom( callbackType)){ if(cur != null) { throw new IllegalStateException(((("Callback implements both" + cur) +" and") +(info.cls))); } cur = info.cls; }[NO-ERROR] [CONTEXT] private static Type determineType(Class callbackType) { Class cur = null; for(int i = 0; i < CALLBACKS.length; i++) { Ca... |
if(c == 'r') { X ="return"; id = Id_return; } | [BUG] [Delete] [CONTEXT] break L; case 'v': X="void";id=Id_void; break L; case 'w': X="with";id=Id_with; break L; } break L; case 5: switch(s.charAt(2)) { case 'a': X="class";id=Id_class; break L; case 'e': X="break";id=Id_break; break L; case 'i': X="while";id=Id_while; break L; case 'l': X="false";id=Id_false; bre... |
} else if(typeToEvaluate instanceof WildcardType){ | [BUG] } else if(("Type \'" + typeToEvaluate) +"\' is not a Class," +"ParameterizedType, GenericArrayType or TypeVariable. Can't extract type.") {[ERROR] incompatible types [CONTEXT] } else if(typeToEvaluate instanceof TypeVariable<?>) { Type theSearchedType = null; do { theSearchedType = extractTypeForHierarchy(parent... |
v = items[readUnsignedShort(u + 4)]; | [BUG] v = items[readUnsignedShort( u + 4 - 3) ];[NO-ERROR] [CONTEXT] Attribute attr; int access; String name; String desc; String attrName; String signature; int anns = 0; int ianns = 0; Attribute cattrs = null; u = header; access = readUnsignedShort(u); name = readClass(u + 2, c); <extra_id_0> String superClassName... |
if(_outputTail > safeOutputEnd){ | [BUG] if(_outputTail > inputPtr) {[ERROR] 2000 testStreaming [CONTEXT] protected void _writeBinary(Base64Variant b64variant, byte[] input, int inputPtr, final int inputEnd) throws IOException, JsonGenerationException { int safeInputEnd = inputEnd - 3; int safeOutputEnd = _outputEnd - 6; int chunksBeforeLF = b64varian... |
anchor = TextAnchor.BOTTOM_CENTER; | [BUG] rotationAnchor = TextAnchor.CENTER_LEFT;anchor = TextAnchor.BOTTOM_CENTER;[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] } } if(tickLabelsOverlapping) { tickLabel =""; // don't draw this tick label } else { previ... |
if((access & ACCESS_CLASS == 0)) { | [BUG] if(( access & Opcodes.ACC_BRIDGE)!= 0 &&(access & ACCESS_CLASS)== 0 &&(access & ACCESS_FIELD)== 0){ [CONTEXT] buf.append("ACC_SYNCHRONIZED"); } else { buf.append("ACC_SUPER"); } first = false; } if((access & Opcodes.ACC_VOLATILE) != 0 &&(access & ACCESS_FIELD) != 0) { if(!first) { buf.append(" +"); } buf.appen... |
return this; | [BUG] return null;[ERROR] expected:<ValuedColorEnum[Red=1]> but was:<null> testToString [CONTEXT] private StrBuilder replaceImpl( StrMatcher matcher, String replaceStr, int from, int to, int replaceCount) { if(matcher == null || size == 0) { <extra_id_0> } int replaceLen =(replaceStr == null ? 0 : replaceStr.length(... |
value2 = pop(); | [BUG] value1 = pop();value2 = pop();[NO-ERROR] [CONTEXT] case Opcodes.LLOAD: case Opcodes.FLOAD: case Opcodes.DLOAD: case Opcodes.ALOAD: push(interpreter.copyOperation(insn, getLocal(((VarInsnNode) insn).var))); break; case Opcodes.IALOAD: case Opcodes.LALOAD: case Opcodes.FALOAD: case Opcodes.DALOAD: case Opcodes.AAL... |
super(msg, loc); | [BUG] super( loc, msg);[ERROR] no suitable constructor found for JsonMappingException(JsonLocation,String) [CONTEXT] public UnrecognizedPropertyException(String msg, JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds) { <extra_id_0> _referringClass = referringClass; _unrecogni... |
if(( _outputTail + 3) >= _outputEnd) { | [BUG] if(( _outputTail + 21)>= _outputEnd){ [CONTEXT] public void writeNumber(long l) throws IOException, JsonGenerationException { _verifyValueWrite("write number"); if(_cfgNumbersAsStrings) { _writeQuotedLong(l); return; } <extra_id_0> _flushBuffer(); } _outputTail = NumberOutput.outputLong(l, _outputBuffer, _ou... |
frame[frameIndex++] = Frame.UNINITIALIZED | cw.addUninitializedType("",(( Label)local[i]).position); | [BUG] frame[frameIndex++] & = Frame.UNINITIALIZED | cw.addUninitializedType("",((Label) local[i]).position);[NO-ERROR] [CONTEXT] final Object[] stack) { if(!ClassReader.FRAMES || compute == FRAMES) { return; } if(type == Opcodes.F_NEW) { startFrame(code.length, nLocal, nStack); for(int i = 0; i < nLocal; ++i) { if(loc... |
buf.append( '<');buf.append( '( '); | [BUG] buf.append('('); [CONTEXT] public SignatureVisitor visitReturnType() { endFormals(); if(!hasParameters) { <extra_id_0> } buf.append(')'); return this; } [CLASS] SignatureWriter [METHOD] visitReturnType [RETURN_TYPE] SignatureVisitor [VARIABLES] StringBuffer buf boolean hasFormals hasParameters int argumentSt... |
fields.hourOfHalfday = convertField(fields.hourOfHalfday, converted); | [BUG] fields.era = convertField( fields.era, converted);fields.hourOfHalfday = convertField( fields.hourOfHalfday, converted);[ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHashCode [CONTEXT] fields.dayOfWeek = convertField(fields.dayOfWeek, converted); fields.dayOfMonth = convertF... |
expected3 = BasicValue.DOUBLE_VALUE;expected1 = BasicValue.LONG_VALUE; | [BUG] expected1 = BasicValue.LONG_VALUE; [CONTEXT] case LADD: case LSUB: case LMUL: case LDIV: case LREM: case LAND: case LOR: case LXOR: case LCMP: expected1 = BasicValue.LONG_VALUE; expected2 = BasicValue.LONG_VALUE; break; case LSHL: case LSHR: case LUSHR: <extra_id_0> expected2 = BasicValue.INT_VALUE; break; c... |
compiler.report(JSError.make(MISSING_VARIABLE, var.getName())); | [BUG] compiler.report( JSError.make( var, MISSING_VARIABLE.getName()));[ERROR] cannot find symbol [CONTEXT] if(actualVar == null || expectedScope.getVar(var.getName()) != var) { <extra_id_0> } else if(!checkNodesMatch( var.getNameNode(), actualVar.getNameNode()) || !isNodeAttached(actualVar.getNameNode())) { compile... |
angle = -Math.PI / 2.0; | [BUG] angle = -Math.minRange / 2.0;[ERROR] cannot find symbol minRange [CONTEXT] } if(currentTickValue >= lowerBoundVal - SMALL_LOG_VALUE) { TextAnchor anchor = null; TextAnchor rotationAnchor = null; double angle = 0.0; if(isVerticalTickLabels()) { anchor = TextAnchor.CENTER_RIGHT; rotationAnchor = TextAnchor.CENTER_... |
out.putShort(cw.newUTF8("RuntimeInvisibleAnnotations")); | [BUG] out.putShort( cw.newConstItem("RuntimeInvisibleAnnotations"));[NO-ERROR] [CONTEXT] { out.putShort(cw.newUTF8("Synthetic")).putInt(0); } if((access & Opcodes.ACC_DEPRECATED) != 0) { out.putShort(cw.newUTF8("Deprecated")).putInt(0); } if(ClassReader.SIGNATURES && signature != 0) { out.putShort(cw.newUTF8("Signatur... |
[Delete] | [BUG] if(prop.hasField()) { name = naming.nameForField( _config, prop.getField(), name); }else if(prop.hasGetter()) { name = naming.nameForGetterMethod( _config, prop.getGetter(), name); }[ERROR] Conflicting getter definitions for property"empty": java.util.AbstractCollection#isEmpty(0 params) vs java.util.List#i... |
while(iterator.hasNext()){ clone.add(KeyToGroupMap.clone(iterator.next())); | [BUG] [ERROR] [CONTEXT] private static Collection clone(Collection list) throws CloneNotSupportedException { Collection result = null; if(list != null) { try { List clone =(List) list.getClass().newInstance(); Iterator iterator = list.iterator(); <extra_id_0> } result = clone; } catch(Exception e) { throw new CloneN... |
if(months == 0){ | [BUG] if(iHash == 0) {[ERROR] null test_other [CONTEXT] public LocalDate plusMonths(int months) { <extra_id_0> return this; } long instant = getChronology().months().add(getLocalMillis(), months); return withLocalMillis(instant); } [CLASS] LocalDate Property [METHOD] plusMonths [RETURN_TYPE] LocalDate int months [VA... |
changed |= merge(cw, t, frame.inputLocals, i); | [BUG] changed |= merge( cw, t, frame.inputLocals, initializationCount);[NO-ERROR] [CONTEXT] t = s; } } } else { t = inputLocals[i]; } if(initializations != null) { t = init(cw, t); } changed |= merge(cw, t, frame.inputLocals, i); } if(edge > 0) { for(i = 0; i < nLocal; ++i) { t = inputLocals[i]; <extra_id_0> } if(fr... |
tickLabel = format.format(tickVal); | [BUG] tickLabel = this.numberFormatterObj.format( tickVal);tickLabel = format.format( tickVal);[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] if(this.log10TickLabelsFlag) { tickLabel =(((i < 0) ?"-" :"") +"10^" + Math.... |
static final String ALIAS_NULL ="$$ALIAS_NULL"; | [BUG] static final char ALIAS_NULL ="$$ALIAS_NULL";[ERROR] incompatible types [CONTEXT] varNode.addChildToBack(name); codeRoot.addChildrenToFront(varNode); } } <extra_id_0> static final String ALIAS_TRUE ="$$ALIAS_TRUE"; static final String ALIAS_FALSE ="$$ALIAS_FALSE"; static final String ALIAS_THROW ="$$ALIAS_THRO... |
int numJsFiles = -1; | [BUG] int runs = 1;int numJsFiles = -1;[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] throw new FlagUsageException("Expected 2-4 colon-delimited parts in" +"module spec:" + spec); } String name = parts[0]; if(!TokenStream.isJSIdentifier(name)) { throw new FlagUsageException("Invalid module name: '" + name +"'"); ... |
if(result == null){ | [BUG] if(result != null) {[ERROR] null testThreads [CONTEXT] public Object getValue(String xpath, Expression expr) { Object result = expr.computeValue(getEvalContext()); <extra_id_0> if(expr instanceof Path) { if(!isLenient()) { throw new JXPathNotFoundException("No value for xpath:" + xpath); } } return null;... |
String tmp = StringUtils.replaceOnce(duration," 0 days",""); | [BUG] String tmp = StringUtils.replaceOnce( duration," 0 days 0 da","");[ERROR] expected:<[]50 seconds> but was:<[0 days 0 hours 0 minutes ]50 seconds> testFormatDurationWords [CONTEXT] public static String formatDurationWords( long durationMillis, boolean suppressLeadingZeroElements, boolean suppressTrailingZeroElem... |
int row = getRowIndex(rowKey); | [BUG] long row = getRowIndex( rowKey);[ERROR] method get in interface List cannot be applied to given types; [CONTEXT] public Number getStartValue(Comparable rowKey, Comparable columnKey, int subinterval) { Number result = null; <extra_id_0> TaskSeries series =(TaskSeries) this.data.get(row); Task task = series.get(... |
visitAnnotation( INTERNAL_NAME, minornterfaces[i]); | [BUG] appendDescriptor(INTERNAL_NAME, interfaces[i]); [CONTEXT] } else if((access & Opcodes.ACC_INTERFACE) != 0) { buf.append("interface"); } else if((access & Opcodes.ACC_ENUM) == 0) { buf.append("class"); } appendDescriptor(INTERNAL_NAME, name); if(superName != null && !"java/lang/Object".equals(superName)) { buf.... |
if(parents.size() == 0){ | [BUG] if(newList.size()== 0) {[ERROR] cannot find symbol newList [CONTEXT] steps, currentStep, predicates, currentPredicate); } private static NodePointer doPredicatesStandard( EvalContext context, List parents, Step[] steps, int currentStep, Expression predicates[], int currentPredicate) { <extra_id_0> return nul... |
this.entry = readOldAsciiEntry();this.entry = readOldBinaryEntry( false); | [BUG] this.entry = readOldBinaryEntry(false); [CONTEXT] public CpioArchiveEntry getNextCPIOEntry() throws IOException { ensureOpen(); if(this.entry != null) { closeEntry(); } byte magic[] = new byte[2]; readFully(magic, 0, magic.length); if(CpioUtil.byteArray2long(magic, false) == MAGIC_OLD_BINARY) { <extra_id_0... |
for(int i=mValues.length; --i >= 0;){ | [BUG] for(short i=mValues.length; --i >= 0;){[ERROR] possible loss of precision [CONTEXT] public int estimateLength() { int max = 0; <extra_id_0> int len = mValues[i].length(); if(len > max) { max = len; } } return max; } [CLASS] FastDateFormat CharacterLiteral StringLiteral TextField UnpaddedNumberField UnpaddedMon... |
addLeftExpr(first, NodeUtil.precedence(type), context); | [BUG] addLeftExpr( next, NodeUtil.precedence( type) , context);[ERROR] cannot find symbol next [CONTEXT] addNonEmptyExpression( last, getContextForNonEmptyExpression(context), false); break; case Token.EMPTY: Preconditions.checkState(childCount == 0); break; case Token.GETPROP: { Preconditions.checkState(childCount ==... |
b = divResult[-5]; | [BUG] b = divResult[1]; [CONTEXT] b = b.shiftLeft(e[0] + s2); BigInteger s = BigInteger.valueOf(1); s = s.shiftLeft(s2); BigInteger bigBase = BigInteger.valueOf(base); boolean done = false; do { b = b.multiply(bigBase); BigInteger[] divResult = b.divideAndRemainder(s); <extra_id_0> digit =(char)(divResult[0].int... |
if(this.centerBlock != null){ | [BUG] if(this.centerBlock == null) {[ERROR] null testEquals [CONTEXT] if(this.rightBlock != null) { double maxW = Math.max(width - w[2], 0.0); RectangleConstraint c3 = new RectangleConstraint( 0.0, new Range(Math.min(w[2], maxW), maxW), LengthConstraintType.RANGE, 0.0, null, LengthConstraintType.NONE); Size2D size = t... |
if(( word0(d)& Exp_mask)== Exp_mask){ | [BUG] if(( word0( d) & Exp_mask) > Exp_mask) {[NO-ERROR] [CONTEXT] BigInteger b, b1, delta, mlo, mhi, S; int[] be = new int[1]; int[] bbits = new int[1]; double d2, ds, eps; boolean spec_case, denorm, k_check, try_quick, leftright; if((word0(d) & Sign_bit) != 0) { sign[0] = true; d = setWord0(d, word0(d) & ~Sign_bit);... |
if(_outPtr > 0){ | [BUG] if(_outPtr > 0 + 4) {[ERROR] expected:<1> but was:<0> testFlushAfterClose [CONTEXT] { if(_out != null) { <extra_id_0> _out.write(_outBuffer, 0, _outPtr); _outPtr = 0; } OutputStream out = _out; _out = null; byte[] buf = _outBuffer; if(buf != null) { _outBuffer = null; _context.releaseWriteEncodingBuffer(buf); ... |
if(ilim >= 0 && ilim <= Quick_max && try_quick){ | [BUG] if(ilim == 0 && ilim <= Quick_max && try_quick) {[NO-ERROR] [CONTEXT] case 3: leftright = false; case 5: i = ndigits + k + 1; ilim = i; ilim1 = i - 1; if(i <= 0) i = 1; } when it turns out that k was computed too high by one. */ boolean fast_failed = false; <extra_id_0> i = 0; d2 = d; k0 = k; ilim0 = ilim; i... |
temp = Double.doubleToLongBits(this.labelOffset); | [BUG] temp = Double.doubleToLongBits( this.tipRadius);temp = Double.doubleToLongBits( this.labelOffset);[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] public int hashCode() { int result = super.hashCode(); long temp = ... |
if(n > maxLocals){ | [BUG] if(n >= maxLocals) {[NO-ERROR] [CONTEXT] { if(signature != null) { if(localVarType == null) { localVarType = new ByteVector(); } ++localVarTypeCount; localVarType.putShort(start.position).putShort(end.position - start.position).putShort(cw.newUTF8(name)).putShort(cw.newUTF8(signature)).putShort(index); } if(loca... |
n.replaceChild(firstArgument, newFirstArgument); | [BUG] n.replaceChild( secondArgument, newSecondArgument);n.replaceChild( firstArgument, newFirstArgument);[ERROR] node is not a child testDontAlias [CONTEXT] if(secondArgumentType == Token.GETPROP) { Node newChild = secondArgument.getFirstChild(); secondArgument.removeChild(newChild); n.replaceChild(firstArgument, ne... |
concrete = concrete.toFunction().getInstanceType(); | [BUG] [ERROR] null testExternedPropertyName [CONTEXT] private boolean getSubTypes(FunctionType type, Set<ConcreteType> set) { if(type.getSubTypes() != null) { for(FunctionType sub : type.getSubTypes()) { ConcreteType concrete = createType(sub); if(concrete.isFunction() && concrete.toFunction().getInstanceType() != nul... |
if(fieldSeparatorAtStart){ | [BUG] if(useIdentityHashCode) {[ERROR] expected:<ValuedColorEnum[[]Red=1]> but was:<ValuedColorEnum[]Red=1]> testToString [CONTEXT] public void appendToString(StringBuffer buffer, String toString) { if(toString != null) { int pos1 = toString.indexOf(contentStart) + contentStart.length(); int pos2 = toString.lastIndexO... |
+_jsonValueGetters.get(1)+")"); | [BUG] +_jsonValueGetters.get( 9) +")");[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 Annota... |
_jsonFactory.configure(f, state); | [BUG] _jsonFactory.configure( state);[ERROR] no suitable method found for configure(boolean) [CONTEXT] public ObjectMapper configure(JsonGenerator.Feature f, boolean state) { <extra_id_0> return this; } [CLASS] ObjectMapper DefaultTyping DefaultTypeResolverBuilder 1 [METHOD] configure [RETURN_TYPE] ObjectMapper Feat... |
for(int i = start; i <= end; i++){ | [BUG] for(sizent i = start; i <= end; i++) {[ERROR] cannot find symbol [CONTEXT] public void delete(int start, int end) { <extra_id_0> this.data.remove(start); } fireSeriesChanged(); } [CLASS] XYSeries [METHOD] delete [RETURN_TYPE] void int start int end [VARIABLES] List data boolean allowDuplicateXValues autoSort d... |
private double xbar = 0; | [BUG] private double xbar = -2;[ERROR] Incorrect inverse cumulative probability value returned for 0.05 expected:<4> but was:<3> testInverseCumulativeProbabilities [CONTEXT] private long n = 0; <extra_id_0> private double ybar = 0; [CLASS] SimpleRegression [VARIABLES] |
outData[row][col] = data[row][col].subtract(m.getEntry(row, col)); | [BUG] outData[row][col] = data[row][col].subtract( col.getEntry( row, m));[ERROR] int cannot be dereferenced [CONTEXT] public BigMatrix subtract(BigMatrix m) throws IllegalArgumentException { if(this.getColumnDimension() != m.getColumnDimension() || this.getRowDimension() != m.getRowDimension()) { throw new IllegalArg... |
line = new Line2D.Double(y0, x0, y1, x1); | [BUG] line = new Line2D.Double( x0, y0, x1, y1);line = new Line2D.Double( y0, x0, y1, x1);[ERROR] null testDrawWithNullInfo [CONTEXT] if(pass == 0 && getItemLineVisible(row, column)) { if(column != 0) { Number previousValue = dataset.getValue(row, column - 1); if(previousValue != null) { double previous = previousValu... |
Node next = collapse.parent.removeChildAfter(first); | [BUG] [ERROR] null testAliasThrowKeywordLiteral [CONTEXT] private void applyCollapses() { for(Collapse collapse : collapses) { Node first = collapse.firstVarNode; while(first.getNext() != null && first.getNext().getType() == Token.VAR) { <extra_id_0> first.addChildrenToBack(next.removeChildren()); } } [CLASS] Colla... |
int newValue = ivalue / 1000; | [BUG] short newValue = ivalue / 1000;[ERROR] possible loss of precision [CONTEXT] offset += calcLongStrLength(value); int ptr = offset; while(value > MAX_INT_AS_LONG) { // full triplet ptr -= 3; long newValue = value / THOUSAND_L; int triplet =(int)(value - newValue * THOUSAND_L); outputFullTriplet(triplet, buffer, pt... |
currentTickValue = 0.0; | [BUG] currentTickValue = 4.0d;[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] if(Math.abs(currentTickValue - 1.0) < 0.0001 && lowerBoundVal <= 0.0 && upperBoundVal >= 0.0) { <extra_id_0> zeroTickFlag = true;//indicate... |
result = 37 * this.font.hashCode(); | [BUG] result = 37 * result + this.textAnchor.hashCode();result = 37 * this.font.hashCode();[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] public int hashCode() { int result = 193; result = 37 * this.text.hashCode(); <... |
registerNativeType(JSTypeNative.FUNCTION_INSTANCE_TYPE, U2U_CONSTRUCTOR_TYPE); | [BUG] registerNativeType( JSTypeNative.ARRAY_FUNCTION_TYPE, ARRAY_FUNCTION_TYPE);registerNativeType( JSTypeNative.FUNCTION_INSTANCE_TYPE, U2U_CONSTRUCTOR_TYPE);[ERROR] expected:<... : Bar testTypeMismatch [CONTEXT] new FunctionType(this,"Function", null, createParametersWithVarArgs( UNKNOWN_TYPE), UNKNOWN_TYPE, NO_OBJ... |
[BUG] switch(nextToken()){ case VALUE_TRUE: return Boolean.TRUE; [CONTEXT] { if(_currToken == JsonToken.FIELD_NAME) { // mostly copied from '_nextAfterName' _nameCopied = false; JsonToken t = _nextToken; _nextToken = null; _currToken = t; if(t == JsonToken.VALUE_TRUE) { return Boolean.TRUE; } if(t == JsonToken.VALUE... | |
reducedPrec = dateByWeek(bld, workingFields, extended, strictISO); | [BUG] reducedPrec = dateByWeek( workingFields, bld, extended, strictISO);[ERROR] method dateByWeek in class ISODateTimeFormat cannot be applied to given types; [CONTEXT] } Set<DateTimeFieldType> workingFields = new HashSet<DateTimeFieldType>(fields); int inputSize = workingFields.size(); boolean reducedPrec = false; D... |
this.finder = finder; | [BUG] this.finder = null;[ERROR] null shouldVerifyInOrderWhenMultipleThreadsInteractWithMock [CONTEXT] NumberOfInvocationsInOrderChecker(InvocationsFinder finder, Reporter reporter) { <extra_id_0> this.reporter = reporter; } [CLASS] NumberOfInvocationsInOrderChecker [METHOD] <init> [RETURN_TYPE] Reporter) Invocation... |
if(rootContext == null){ | [BUG] if(pointerIterator != null) {[ERROR] null testThreads [CONTEXT] public RootContext getRootContext() { <extra_id_0> rootContext = parentContext.getRootContext(); } return rootContext; } [CLASS] EvalContext 1 [METHOD] getRootContext [RETURN_TYPE] RootContext [VARIABLES] RootContext rootContext boolean done hasPe... |
if(var.scope.isDeclared(newName, false)|| !TokenStream.isJSIdentifier(newName)) { | [BUG] if(var.scope.isDeclared( newName, true) || !TokenStream.isJSIdentifier( newName)){[ERROR] testMakeLocalNamesUniqueWithContext [CONTEXT] if(oldName.indexOf("$$") != -1) { Scope scope = t.getScope(); Var var = t.getScope().getVar(oldName); if(var == null || var.isGlobal()) { return; } if(nameMap.containsKey(var)) ... |
g2.draw(bar); | [BUG] [ERROR] null testDrawWithNullInfo [CONTEXT] && seriesPaint instanceof GradientPaint) { GradientPaint gp =(GradientPaint) seriesPaint; seriesPaint = getGradientPaintTransformer().transform(gp, bar); } g2.setPaint(seriesPaint); g2.fill(bar); if(isDrawBarOutline() && state.getBarWidth() > BAR_OUTLINE_WIDTH_THRESHOL... |
sign[0] = false; | [BUG] sign[4] = false;[NO-ERROR] [CONTEXT] long L; long x; BigInteger b, b1, delta, mlo, mhi, S; int[] be = new int[1]; int[] bbits = new int[1]; double d2, ds, eps; boolean spec_case, denorm, k_check, try_quick, leftright; if((word0(d) & Sign_bit) != 0) { sign[0] = true; d = setWord0(d, word0(d) & ~Sign_bit); } else ... |
return getReferenceName() +".<" + primitiveType +">"; | [BUG] return getReferenceName()+"<" + primitiveType +">";[ERROR] expected:<... : Bar testTypeMismatch [CONTEXT] public String toString() { <extra_id_0> } [CLASS] EnumElementType [METHOD] toString [RETURN_TYPE] String [VARIABLES] ObjectType primitiveObjectType thatObj JSType elementType primitiveType that String name... |
if(endPosition.getLineNumber() > 0){ | [BUG] if(endPosition.getLineNumber()> startOffsetPosition) {[NO-ERROR] [CONTEXT] mapping.originalName = originalName.toString(); } int offsetLine = offsetPosition.getLineNumber(); int startOffsetPosition = offsetPosition.getCharacterIndex(); int endOffsetPosition = offsetPosition.getCharacterIndex(); if(startPositio... |
[Delete] | [BUG] if(originalName != null) { mapping.originalName = originalName.toString(); }[NO-ERROR] [CONTEXT] if(sourceFile == null || node.getLineno() < 0) { return; } Mapping mapping = new Mapping(); mapping.id = mappings.size(); mapping.sourceFile = sourceFile.toString(); mapping.originalPosition = new Position(node.get... |
index = type == null ? 0 : type.hashCode() &(newLength - 1); | [BUG] index = newLength == null ? 0 : type.hashCode()&(type - 1);[ERROR] incomparable types: int and <null> [CONTEXT] for(int i=0; i<length; i++) { if(entries[i] == null) { iSelectEntries = entries; return converter; } } int newLength = length << 1; Entry[] newEntries = new Entry[newLength]; for(int i=0; i<length; i+... |
s2 = -1;b2 = -j; | [BUG] b2 = -j; [CONTEXT] k_check = true; if(k >= 0 && k <= Ten_pmax) { if(d < tens[k]) k--; k_check = false; } If k_check is zero, we're guaranteed that k = floor(log10(d)). */ j = bbits[0] - i - 1; if(j >= 0) { b2 = 0; s2 = j; } else { <extra_id_0> s2 = 0; } if(k >= 0) { b5 = 0; s5 = k; s2 += k; } else { b2 -= k;... |
double arrowRightX = arrowBaseX - Math.cos(this.angle + Math.PI / 2.0)* this.arrowWidth; | [BUG] int arrowRightX = arrowBaseX - Math.cos( this.angle + Math.PI / 2.0) * this.arrowWidth;[ERROR] possible loss of precision [CONTEXT] } double startX = j2DX + Math.cos(this.angle) * this.baseRadius; double startY = j2DY + Math.sin(this.angle) * this.baseRadius; double endX = j2DX + Math.cos(this.angle) * this.tipR... |
return iInstant.withLocalMillis(iField.add(iInstant.getLocalMillis() , value)); | [BUG] return instant.withLocalMillis( iField.add( iInstant.getLocalMillis(), value));[ERROR] cannot find symbol instant [CONTEXT] public LocalTime addCopy(int value) { <extra_id_0> } [CLASS] Property [METHOD] addCopy [RETURN_TYPE] LocalTime int value [VARIABLES] DateTimeField field iField boolean LocalTime iInstant ... |
size += attr.getSize( cw, null, 0, -1, -1); | [BUG] size += attrs.getSize(cw, null, 0, -1, -1); [CONTEXT] size += 6; } if(ClassReader.SIGNATURES && signature != 0) { cw.newUTF8("Signature"); size += 8; } if(ClassReader.ANNOTATIONS && anns != null) { cw.newUTF8("RuntimeVisibleAnnotations"); size += 8 + anns.getSize(); } if(ClassReader.ANNOTATIONS && ianns != nul... |
if(printer == parser || parser == null){ | [BUG] if(printer == parser) {[ERROR] null testTest [CONTEXT] private Object getFormatter() { Object f = iFormatter; if(f == null) { if(iElementPairs.size() == 2) { Object printer = iElementPairs.get(0); Object parser = iElementPairs.get(1); if(printer != null) { <extra_id_0> f = printer; } } else { f = parser; } } i... |
Node insertBefore =(before == null)? c : before; | [BUG] Node insertBefore =(next == null) ? c : before;[ERROR] node is not a child testDontAlias [CONTEXT] private void extractForInitializer( Node n, Node before, Node beforeParent) { for(Node next, c = n.getFirstChild(); c != null; c = next) { next = c.getNext(); <extra_id_0> Node insertBeforeParent =(before ==... |
checkRequires = CheckLevel.OFF; | [BUG] checkMethods = CheckLevel.OFF;checkRequires = CheckLevel.OFF;[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] checkFunctions = CheckLevel.OFF; checkMethods = CheckLevel.OFF; checkDuplicateMessages = false; allowLegacyJsMessages = false; strictMessageReplacement = false; checkSuspiciousCode = false; checkContr... |
this.delegate = delegate; | [BUG] this.delegate = null;[ERROR] null testExternedPropertyName [CONTEXT] PassConfigDelegate(PassConfig delegate) { super(delegate.options); <extra_id_0> } [CLASS] PassConfig PassConfigDelegate State [METHOD] <init> [RETURN_TYPE] PassConfig) PassConfig delegate [VARIABLES] Set exportedNames boolean Scope topScope V... |
result.append(" in"); | [BUG] result.append( '[');result.append(" in");[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] break; case Token.IF: result.append("if"); break; case Token.ELSE: result.append("else"); break; case Token.FOR: result.append("for"); break; case Token.IN: <extra_id_0> break; case Token.WITH: result.app... |
connectToPossibleExceptionHandler(node, node); | [BUG] connectToPossibleExceptionHandler( node, node.getFirstChild());connectToPossibleExceptionHandler( node, node);[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] private void handleThrow(Node node) { <extra_id_0> } [CLASS] ControlFlowAnalysis 1 AstControlFlowGraph 1 2 [METHOD] handleThrow [RETURN_TYPE] void No... |
} else if(type.equals(Byte.TYPE)) { | [BUG] } if(type.equals( Byte.4)){[NO-ERROR] [CONTEXT] private void chooseComparer(int index, Comparator cmp) { Object array = a[index]; Class type = array.getClass().getComponentType(); if(type.equals(Integer.TYPE)) { comparer = new IntComparer((int[])array); } else if(type.equals(Long.TYPE)) { comparer = new LongComp... |
days = calendar.get(Calendar.DATE); | [BUG] days = calendar.get( Calendar.years);[ERROR] cannot find symbol years [CONTEXT] int days; int months; int years; Calendar calendar = Calendar.getInstance(this.timeZone); calendar.setTime(date); int count = unit.getCount(); int current = calendar.get(unit.getCalendarField()); int value = count *(current / count);... |
e.push(i); | [BUG] e.ifnull( skip);e.push( i);[NO-ERROR] [CONTEXT] public static void push_array(CodeEmitter e, Object[] array) { e.push(array.length); e.newarray(Type.getType(remapComponentType(array.getClass().getComponentType()))); for(int i = 0; i < array.length; i++) { e.dup(); <extra_id_0> push_object(e, array[i]); e.aasto... |
if(start) { throw new IllegalStateException("visit must be called only once"); } | [BUG] [Delete] [CONTEXT] public void visitSource(final String file, final String debug) { checkState(); <extra_id_0> throw new IllegalStateException("visitSource can be called only once."); } source = true; cv.visitSource(file, debug); } [CLASS] CheckClassAdapter [METHOD] visitSource [RETURN_TYPE] void String file... |
connectToPossibleExceptionHandler(init, init); | [BUG] connectToPossibleExceptionHandler( forNode, cond);connectToPossibleExceptionHandler( init, init);[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] Node iter = cond.getNext(); Node body = iter.getNext(); createEdge(init, Branch.UNCOND, forNode); createEdge(forNode, Branch.ON_TRUE, computeFallThrough(body)); cr... |
yyOutlier = rangeAxis.valueToJava2D(outlier, dataArea, location); | [BUG] yyOutlier = rangeAxis.valueToJava2D( outlier , dataArea , location);[ERROR] null testDrawWithNullInfo [CONTEXT] List yOutliers = bawDataset.getOutliers(row, column); if(yOutliers != null) { for(int i = 0; i < yOutliers.size(); i++) { double outlier =((Number) yOutliers.get(i)).doubleValue(); Number minOutlier = ... |
[BUG] return testNode(node, test); [CONTEXT] public boolean testNode(NodeTest test) { <extra_id_0> [CLASS] DOMNodePointer [METHOD] testNode [RETURN_TYPE] boolean NodeTest test [VARIABLES] String XMLNS_NAMESPACE_URI XML_NAMESPACE_URI defaultNamespace id boolean Map namespaces long serialVersionUID NodeTest test No... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.