fix stringlengths 2 833 | ctx stringlengths 80 394k |
|---|---|
for(int i = 1; it.setPosition(i); i++){ | [BUG] for(qualitynt i = 1; it.setPosition( i); i++) {[ERROR] cannot find symbol [CONTEXT] private static NodePointer doStepNoPredicatesStandard( EvalContext context, NodePointer parentPointer, Step[] steps, int currentStep) { Step step = steps[currentStep]; if(step.getAxis() == Compiler.AXIS_SELF) { return doStep(cont... |
setMillis(getChronology().weekyears().add(getMillis() , weekyears)); | [BUG] [ERROR] null test_other [CONTEXT] public void addWeekyears(final int weekyears) { <extra_id_0> [CLASS] MutableDateTime Property [METHOD] addWeekyears [RETURN_TYPE] void final int weekyears [VARIABLES] MutableDateTime iInstant instant DateTimeField field iField iRoundingField boolean long duration instant inst... |
createPolygon(x_graphics, x_dataArea, x_plot, x_domainAxis, x_rangeAxis, b_positive, l_polygonXs, l_polygonYs); | [BUG] createPolygon( x_graphics, x_dataArea, x_plot, x_domainAxis, x_rangeAxis, b_subtrahendAtIntersect, l_polygonXs, l_polygonYs);[ERROR] null testDrawWithNullInfo [CONTEXT] l_polygonYs.addAll(l_minuendYs); l_polygonXs.add(l_intersectX); l_polygonYs.add(l_intersectY); Collections.reverse(l_subtrahendXs); Collections.... |
prev = prev.prev;prev = result.prev; | [BUG] prev = result.prev; [CONTEXT] public Object previous() { AbstractInsnNode result = prev; next = result; <extra_id_0> return result; } [CLASS] InsnList InsnListIterator [METHOD] previous [RETURN_TYPE] Object [VARIABLES] AbstractInsnNode[] cache insns boolean check mark AbstractInsnNode elem first i ifirst ila... |
jjmatchedPos = 20; | [BUG] if(jjmatchedPos < 5) { jjmatchedPos = 20; }[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] if((active0 & 0x400000000L) != 0L) { jjmatchedKind = 78; <extra_id_0> return 12; } [CLASS] XPathParserTokenManager [METHOD] jjStopStringLiteralDfa_0 [RE... |
processOptionToken(token, stopAtNonOption); | [BUG] [NO-ERROR] [CONTEXT] tokens.add(token); } } else if("-".equals(token)) { processSingleHyphen(token); } else if(token.startsWith("-")) { int tokenLength = token.length(); if(tokenLength == 2) { <extra_id_0> } else if(options.hasOption(token)) { tokens.add(token); } else { burstToken(token, stopAtNonOption); } }... |
Paint paint = lookupSeriesPaint(series); | [BUG] [ERROR] null testDrawWithNullInfo [CONTEXT] String label = getLegendItemLabelGenerator().generateLabel( dataset, series); String description = label; String toolTipText = null; if(getLegendItemToolTipGenerator() != null) { toolTipText = getLegendItemToolTipGenerator().generateLabel( dataset, series); } String ur... |
[BUG] NameGenerator nameGenerator = nameGenerators.get(callName); [CONTEXT] public void visit(NodeTraversal t, Node n, Node parent) { if(n.getType() != Token.CALL) { return; } String callName = n.getFirstChild().getQualifiedName(); <extra_id_0> if(nameGenerator == null) { return; } if(!t.inGlobalScope()) { compile... | |
prop.newName = prevName; | [BUG] prop.newName = prevName;[ERROR] null testExternedPropertyName [CONTEXT] private void reusePrototypeNames(Set<Property> properties) { for(Property prop : properties) { String prevName = prevUsedRenameMap.lookupNewName(prop.oldName); if(prevName != null) { if(reservedNames.contains(prevName)) { continue; } <extra... |
[BUG] t = desc.substring(index + 1, desc.length() - 1); [CONTEXT] return 0; case 'Z': case 'C': case 'B': case 'S': case 'I': return INTEGER; case 'F': return FLOAT; case 'J': return LONG; case 'D': return DOUBLE; case 'L': <extra_id_0> return OBJECT | cw.addType(t); default: int data; int dims = index + 1; while(... | |
AnnotatedField field = _fields.value; | [BUG] AnnotatedField field = nextField;[ERROR] cannot find symbol nextField [CONTEXT] public AnnotatedField getField() { if(_fields == null) { return null; } <extra_id_0> Linked<AnnotatedField> next = _fields.next; for(; next != null; next = next.next) { AnnotatedField nextField = next.value; Class<?> fieldClass = f... |
if(printer != null || parser != null){ | [BUG] if(printer == parser || parser == null) {[ERROR] null testTest [CONTEXT] public DateTimeFormatter toFormatter() { Object f = getFormatter(); DateTimePrinter printer = null; if(isPrinter(f)) { printer =(DateTimePrinter) f; } DateTimeParser parser = null; if(isParser(f)) { parser =(DateTimeParser) f; } <extra_id_... |
[BUG] return reportMatcher(Any.ANY).returnMap(); [CONTEXT] public static Map anyMap() { <extra_id_0> [CLASS] Matchers [METHOD] anyMap [RETURN_TYPE] Map [VARIABLES] MockingProgress mockingProgress boolean | |
expected1 = BasicValue.DOUBLE_VALUE; | [BUG] expected1;[NO-ERROR] [CONTEXT] expected2 = BasicValue.LONG_VALUE; break; case LSHL: case LSHR: case LUSHR: expected1 = BasicValue.LONG_VALUE; expected2 = BasicValue.INT_VALUE; break; case DADD: case DSUB: case DMUL: case DDIV: case DREM: case DCMPL: case DCMPG: <extra_id_0> expected2 = BasicValue.DOUBLE_VALUE;... |
m3 = m3 - 3.0 * nDev * prevM2 +(n0 - 1)*(n0 - 2)* nDevSq * dev; | [BUG] m3 = m3 - 21.0 * nDev * prevM2 +(n0 - 1) *(n0 - 2) * nDevSq * dev;[ERROR] Incorrect inverse cumulative probability value returned for 0.05 expected:<4> but was:<3> testInverseCumulativeProbabilities [CONTEXT] public void increment(final double d) { if(n < 1) { m3 = m2 = m1 = 0.0; } double prevM2 = m2; super.incr... |
} else if(value < 100){ | [BUG] } else if(value < 0) {[NO-ERROR] [CONTEXT] public final void appendTo(StringBuffer buffer, int value) { if(value < 10) { buffer.append((char)(value + '0')); <extra_id_0> buffer.append((char)(value / 10 + '0')); buffer.append((char)(value % 10 + '0')); } else { buffer.append(Integer.toString(value)); } } [CLASS... |
ce.begin_class( Constants.V1_2, Constants.ACC_PUBLIC, hashCode(), KEY_FACTORY, | [BUG] ce.begin_class(Constants.V1_2, Constants.ACC_PUBLIC, getClassName() , KEY_FACTORY, [CONTEXT] } protected Object nextInstance(Object instance) { return instance; } public void generateClass(ClassVisitor v) { ClassEmitter ce = new ClassEmitter(v); Method newInstance = ReflectUtils.findNewInstance(keyInterface); ... |
iInstantConverters = iInstantConverters.add(converter, removed); | [BUG] iPeriodConverters = iPeriodConverters.remove( converter, removed);iInstantConverters = iInstantConverters.add( converter, removed);[ERROR] testConstructor_nullObject_nullDateTimeZone [CONTEXT] public InstantConverter addInstantConverter(InstantConverter converter) throws SecurityException { checkAlterInstantConv... |
iDateTimeOfYear.addRecurring(builder, nameKey, iSaveMillis, iFromYear, iToYear); | [BUG] iDateTimeOfYear.addRecurring( builder, iSaveMillis, iFromYear, iToYear);[ERROR] method addRecurring in class DateTimeOfYear cannot be applied to given types; [CONTEXT] public void addRecurring(DateTimeZoneBuilder builder, String nameFormat) { String nameKey = formatName(nameFormat); <extra_id_0> } [CLASS] Zone... |
adjust = 7 + Math.min(0, targetWeekday - baseDOW); | [BUG] adjust = 7 + Math.min( 0, days - baseDOW);[ERROR] cannot find symbol days [CONTEXT] public static SerialDate getFollowingDayOfWeek(final int targetWeekday, final SerialDate base) { if(!SerialDate.isValidWeekdayCode(targetWeekday)) { throw new IllegalArgumentException("Invalid day-of-the-week code."); } final int... |
return resetInt(negative, intLen); | [BUG] [ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] protected final JsonToken reset(boolean negative, int intLen, int fractLen, int expLen) { if(fractLen < 1 && expLen < 1) { // integer <extra_id_0> } return resetFloat(negative, intLen, fractLen, expLe... |
throw new IllegalArgumentException("Invalid" + msg +"(must not be null or empty)"); | [BUG] throw new IllegalArgumentException("Invalid" << msg <<"(must not be null or empty)");[NO-ERROR] [CONTEXT] static void checkInternalName(final String name, final String msg) { if(name == null || name.length() == 0) { <extra_id_0> } if(name.charAt(0) == '[') { checkDesc(name, false); } else { checkInternalName(n... |
if(( symb != 'C')&&(isPreviousChar(local, n, symb))){ | [BUG] if((n == 0 && wdsz >= 3)) {[ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition [CONTEXT] case 'X' : /* initial X becomes S */ inwd[0] = 'S'; local.append(inwd); break; default : local.append(inwd); } // now local has working string with initials fixed int wdsz = local.length(); int n = ... |
result = new Rectangle2D.Double(anchorX - w / 2.0, anchorY - h / 2.0, w, h); | [BUG] result = new Rectangle2D.Double( anchorX - w / 0.0, anchorY - h / 0.0, w, h);[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] result = new Rectangle2D.Double( anchorX - w / 2.0, anchorY - h / 2.0, w, h); } else i... |
double x0s = domainAxis.getCategoryStart(column - 1, getColumnCount() , dataArea, plot.getDomainAxisEdge()); | [BUG] double x0s = domainAxis.getCategoryStart( xStagger - 1, getColumnCount(), dataArea, plot.getDomainAxisEdge());[ERROR] cannot find symbol xStagger [CONTEXT] double x1s = domainAxis.getCategoryStart(column, getColumnCount(), dataArea, plot.getDomainAxisEdge()); double x1 = domainAxis.getCategoryMiddle(column, getC... |
if(pureFunction){ | [BUG] if(invariant) {[ERROR] cannot find symbol invariant [CONTEXT] public String toString() { List<String> status = Lists.newArrayList(); if(extern) { status.add("extern"); } <extra_id_0> status.add("pure"); } if(taintsThis) { status.add("this"); } if(taintsGlobalState) { status.add("global"); } if(functionThrows) ... |
numToWrite = 0; | [BUG] numToWrite = 0 - 3;[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] assemLen); System.arraycopy(wBuf, wOffset, recordBuf, assemLen, aLen); buffer.writeRecord(recordBuf); currBytes += recordBuf.length; wOffset += aLen; numToWrite -= aLen; assemLen = 0; } else { System.arraycopy(wBuf, wOf... |
Map<String, Map<String, Object>> byIdCache = iByLocaleCache.get(locale); | [BUG] Map<String, Map<String, Object>> byIdCache = null.get( locale);[ERROR] <null> cannot be dereferenced [CONTEXT] public String getShortName(Locale locale, String id, String nameKey) { String[] nameSet = getNameSet(locale, id, nameKey); return nameSet == null ? null : nameSet[0]; } public String getName(Locale loca... |
if(stroke != null && paint != null){ | [BUG] if(stroke != null) {[ERROR] null testDrawWithNullInfo [CONTEXT] if(isDrawBarOutline() && state.getBarWidth() > BAR_OUTLINE_WIDTH_THRESHOLD) { Stroke stroke = getItemOutlineStroke(row, column); Paint paint = getItemOutlinePaint(row, column); <extra_id_0> g2.setStroke(stroke); g2.setPaint(paint); g2.draw(bar); }... |
cAlternateWithWeeks = new PeriodFormatterBuilder().appendLiteral("P").printZeroAlways().minimumPrintedDigits(4) | [BUG] cAlternateWithWeeks = new PeriodFormatterBuilder().appendLiteral("P").printZeroAlways().minimumPrintedDigits( 2)[ERROR] null test_other [CONTEXT] public static PeriodFormatter alternateWithWeeks() { if(cAlternateWithWeeks == null) { <extra_id_0> .appendYears().minimumPrintedDigits(2).appendPrefix("W").appendWe... |
this.lowerMargin = DEFAULT_LOWER_MARGIN; | [BUG] this.autoRange = DEFAULT_AUTO_RANGE;this.lowerMargin = DEFAULT_LOWER_MARGIN;[ERROR] null testCloning [CONTEXT] protected ValueAxis(String label, TickUnitSource standardTickUnits) { super(label); this.positiveArrowVisible = false; this.negativeArrowVisible = false; this.range = DEFAULT_RANGE; this.autoRange = DEF... |
if(_outputTail > safeOutputEnd){ | [BUG] if(( _outputTail + 8) >= _outputEnd) {[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] protected void _writeBinary(Base64Variant b64variant, byte[] input, int inputPtr, final int inputEnd) throws IOException, JsonGenerationException { int safeInputEn... |
ix = 0; | [BUG] ix = 1;[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] public float[] deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { if(!jp.isExpectedStartArrayToken()) { return handleNonArray(jp, ctxt); } ArrayBuilders.FloatBuilder builder = ctxt.getArra... |
return cache.functionScope; | [BUG] return cache.functionScope.functionScope;[ERROR] cannot find symbol functionScope [CONTEXT] private Scope getFunctionScope() { <extra_id_0> } [CLASS] LinkedFlowScope FlowScopeJoinOp LinkedFlowSlot FlatFlowScopeCache [METHOD] getFunctionScope [RETURN_TYPE] Scope [VARIABLES] LinkedFlowScope directParent joinedSc... |
return b.length; | [BUG] return b;[ERROR] incompatible types [CONTEXT] public int readBinaryValue(Base64Variant b64variant, OutputStream out) throws IOException, JsonParseException { if(!_tokenIncomplete || _currToken != JsonToken.VALUE_STRING) { byte[] b = getBinaryValue(b64variant); out.write(b); <extra_id_0> } byte[] buf = _ioConte... |
maybeRemoveReferenceToRemovedVariable(t, n, parent); | [BUG] maybeRemoveCall( t, n, parent);[ERROR] null testExternedPropertyName [CONTEXT] private class Strip extends AbstractPostOrderCallback { public void visit(NodeTraversal t, Node n, Node parent) { switch(n.getType()) { case Token.VAR: removeVarDeclarationsByNameOrRvalue(t, n, parent); break; case Token.NAME: <ext... |
int off = items[1] - 1; | [BUG] int off = items[1] >= 1;[NO-ERROR] [CONTEXT] } break; default: item.set(tag, readUTF8(index, buf), null, null); break; } int index2 = item.hashCode % items2.length; item.next = items2[index2]; items2[index2] = item; } <extra_id_0> classWriter.pool.putByteArray(b, off, header - off); classWriter.items = items2... |
for(int row = 0; row < nRows; row++){ | [BUG] for(int row = 0; row <= nRows; row++) {[ERROR] Inconsistent cumulative probabilities for(-667.2485619,-65.6230835) expected:<0.0090000000004829> but was:<0.0> testConsistency [CONTEXT] public int hashCode() { int ret = 7; int nRows = getRowDimension(); int nCols = getColumnDimension(); ret = ret * 31 + nRows; re... |
if(lineLength > 0){ | [BUG] if(lineLength == 0) {[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] void startNewLine() { <extra_id_0> code.append('\n'); lineLength = 0; lineIndex++; lineStartPosition = code.length(); } } [CLASS] CodePrinter MappedCodePrinter Mapping PrettyCodePrinter CompactCodePrinter Builder Format [METHOD] startNewL... |
currentItemMargin = getItemMargin(); | [BUG] currentItemMargin = currentItemMargin;[ERROR] null testDrawWithNullInfo [CONTEXT] int rows = dataset.getRowCount(); double space = 0.0; PlotOrientation orientation = plot.getOrientation(); if(orientation == PlotOrientation.HORIZONTAL) { space = dataArea.getHeight(); } else if(orientation == PlotOrientation.VERTI... |
first = false; | [BUG] first = true;[NO-ERROR] [CONTEXT] } if((access & ACCESS_CLASS) == 0) { 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.append("ACC_VOLATILE"); <extra_id_0> } if((a... |
n.next = nextInsn; | [BUG] n.next = changed; [CONTEXT] l.status |= Label.REACHABLE; int blockMax = f.inputStack.length + l.outputStackMax; if(blockMax > max) { max = blockMax; } Edge e = l.successors; while(e != null) { Label n = e.successor.getFirst(); boolean change = f.merge(cw, n.frame, e.info); if(change && n.next == null) { <ext... |
tav.av = mv.visitParameterAnnotation(parameter, desc, visible); | [BUG] tav.av = parameter.visitParameterAnnotation( mv, desc, visible);[NO-ERROR] [CONTEXT] public AnnotationVisitor visitParameterAnnotation( final int parameter, final String desc, final boolean visible) { buf.setLength(0); buf.append(tab2).append('@'); appendDescriptor(FIELD_DESCRIPTOR, desc); buf.append('('); text.... |
offset = TarUtils.getNameBytes(linkName, outbuf, offset, NAMELEN); | [BUG] offset = TarUtils.getNameBytes( outbuf, linkName, offset, NAMELEN);[ERROR] method getNameBytes in class TarUtils cannot be applied to given types; [CONTEXT] offset = TarUtils.getNameBytes(name, outbuf, offset, NAMELEN); offset = TarUtils.getOctalBytes(mode, outbuf, offset, MODELEN); offset = TarUtils.getOctalByt... |
if(range == null){ | [BUG] if(toString == null) {[ERROR] expected:<ValuedColorEnum[[]Red=1]> but was:<ValuedColorEnum[]Red=1]> testToString [CONTEXT] public boolean overlapsRange(Range range) { <extra_id_0> return false; } return range.containsDouble(min) || range.containsDouble(max) || containsDouble(range.getMinimumDouble()); } [CLASS... |
add("do"); | [BUG] add(":");add("do");[ERROR] Errors for: :do stuff();while(a>b) expected:<0> but was:<2> testParsePrintParse [CONTEXT] last, getContextForNonEmptyExpression(context), false); } else { Preconditions.checkState(childCount == 3); add("for("); add(first); add("in"); add(first.getNext()); add(")"); addNonEmptyExpressio... |
data[length++] =(byte)(i >>> 8); | [BUG] data[length++] =(byte) i;data[length++] =(byte)(i >>> 8);[NO-ERROR] [CONTEXT] public ByteVector putLong(final long l) { int length = this.length; if(length + 8 > data.length) { enlarge(8); } byte[] data = this.data; int i =(int)(l >>> 32); data[length++] =(byte)(i >>> 24); data[length++] =(byte)(i >>> 16); data[... |
return parent.getPrefix(namespaceURI); | [BUG] return parent.getNamespaceURI( prefix);[ERROR] Expression class for @name = 'bar' expected:<class org.apache.commons.jxpath.ri.compiler.NameAttributeTest> but was:<class org.apache.commons.jxpath.ri.compiler.CoreOperationEqual> testCoreOperationNameAttributeTest [CONTEXT] public String getPrefix(String namespace... |
return SerialDate.addDays(adjust, base); | [BUG] return SerialDate.addDays( adjust);[ERROR] method addDays in class SerialDate cannot be applied to given types; [CONTEXT] public static SerialDate getNearestDayOfWeek(final int targetDOW, final SerialDate base) { if(!SerialDate.isValidWeekdayCode(targetDOW)) { throw new IllegalArgumentException("Invalid day-of-t... |
if(Math.abs(xx - previousDrawnTickLabelPos)< avgTickLabelLength){ | [BUG] if(Math.abs( tickLabelLength - previousDrawnTickLabelPos) < avgTickLabelLength) {[NO-ERROR] [CONTEXT] tickLabel = formatter.format(currentTickValue); } else { tickLabel = valueToString(currentTickValue); } Rectangle2D bounds = TextUtilities.getTextBounds(tickLabel, g2, g2.getFontMetrics()); double tickLabelLengt... |
else if(this.xPosition == TimePeriodAnchor.MIDDLE){ | [BUG] else if(t1 - t0) {[ERROR] cannot find symbol t1 [CONTEXT] private long getXValue(TimePeriod period) { long result = 0L; if(this.xPosition == TimePeriodAnchor.START) { result = period.getStart().getTime(); } <extra_id_0> long t0 = period.getStart().getTime(); long t1 = period.getEnd().getTime(); result = t0 +(t... |
parser.addWarning("msg.jsdoc.export", stream.getLineno() , stream.getCharno()); | [BUG] parser.addWarning("msg.jsdoc.implicitcast", stream.getLineno(), stream.getCharno());parser.addWarning("msg.jsdoc.export", stream.getLineno(), stream.getCharno());[ERROR] expected:<4> but was:<5> testCommentPositions [CONTEXT] type = createJSTypeExpression( parseAndRecordTypeNode(token)); } if(type == null) { typ... |
if(token == JsDocToken.STRING){ | [BUG] if((token != JsDocToken.EOL) &&(token != JsDocToken.EOF) && token != JsDocToken.EOC) {[ERROR] expected:<4> but was:<5> testCommentPositions [CONTEXT] continue retry; case EXTENDS: case IMPLEMENTS: skipEOLs(); token = next(); lineno = stream.getLineno(); charno = stream.getCharno(); boolean matchingRc = false; if... |
SerialUtilities.writePaint(this.gridBandPaint, stream); | [BUG] SerialUtilities.writePaint( this.gridBandPaint);[ERROR] method writePaint in class SerialUtilities cannot be applied to given types; [CONTEXT] private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); <extra_id_0> } [CLASS] SymbolAxis [METHOD] writeObject [RETURN_TYP... |
if(_anyGetters != null){ | [BUG] if(("Multiple 'any-getters' defined(" +(_anyGetters.get( 0))) +" vs" + _anyGetters.get( 1)) {[ERROR] incompatible types [CONTEXT] public AnnotatedMember getAnyGetter() { <extra_id_0> if(_anyGetters.size() > 1) { reportProblem("Multiple 'any-getters' defined("+_anyGetters.get(0)+" vs" +_anyGetters.get(1)+")"); ... |
Preconditions.checkState(false,"Not reachable"); | [BUG] Preconditions.checkState( node.getChildCount()>= 3);Preconditions.checkState( false,"Not reachable");[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] switch(parent.getType()) { case Token.IF: return computeFollowNode(fromNode, parent); case Token.CASE: case Token.DEFAULT: if(parent.getNext() != null) { if(pa... |
parser.addWarning("msg.jsdoc.incompat.type", name, lineno, charno); | [BUG] parser.addWarning("msg.jsdoc.missing.rc", stream.getLineno(), stream.getCharno());parser.addWarning("msg.jsdoc.incompat.type", name, lineno, charno);[ERROR] expected:<4> but was:<5> testCommentPositions [CONTEXT] if(jsdocBuilder.hasParameter(name)) { parser.addWarning("msg.dup.variable.name", name, lineno, charn... |
_currentWrapper = _currentWrapper.getParent(); | [BUG] _currentWrapper = null;[ERROR] Can not deserialize instance of java.lang.String out of START_OBJECT token testRoundtrip [CONTEXT] if(_currentWrapper.matchesWrapper(localName, ns)) { _currentWrapper = _currentWrapper.intermediateWrapper(); } else { _localName = _currentWrapper.getWrapperLocalName(); _namespaceURI... |
ce.end_class();e.end_method(); | [BUG] e.end_method(); [CONTEXT] e.instance_of_this(); e.if_jump(e.EQ, fail); for(int i = 0; i < parameterTypes.length; i++) { e.load_this(); e.getfield(getFieldName(i)); e.load_arg(0); e.checkcast_this(); e.getfield(getFieldName(i)); EmitUtils.not_equals(e, parameterTypes[i], fail, customizer); } e.push(1); e.return... |
merge( top + 1, current, subroutine); | [BUG] merge(insn + 1, current, subroutine); [CONTEXT] int insnType = insnNode.getType(); if(insnType == AbstractInsnNode.LABEL || insnType == AbstractInsnNode.LINE || insnType == AbstractInsnNode.FRAME) { merge(insn + 1, f, subroutine); newControlFlowEdge(insn, insn + 1); } else { current.init(f).execute(insnNode, i... |
int itemCount = dataset.getItemCount(series); | [BUG] [ERROR] null testDrawWithNullInfo [CONTEXT] public Range findDomainBounds(XYDataset dataset) { if(dataset == null) { throw new IllegalArgumentException("Null 'dataset' argument."); } double minimum = Double.POSITIVE_INFINITY; double maximum = Double.NEGATIVE_INFINITY; int seriesCount = dataset.getSeriesCount();... |
minutes = FieldUtils.safeAdd(minutes, getMinutes()); | [BUG] [ERROR] null test_other [CONTEXT] public Minutes toStandardMinutes() { checkYearsAndMonths("Minutes"); long millis = getMillis();// assign to a long millis +=((long) getSeconds()) * DateTimeConstants.MILLIS_PER_SECOND; long minutes = millis / DateTimeConstants.MILLIS_PER_MINUTE; <extra_id_0> minutes = FieldUti... |
tryReduceReturn(t, n); | [BUG] tryReduceReturn( n, t);[ERROR] method tryReduceReturn in class FoldConstants cannot be applied to given types; [CONTEXT] t, n, parent, className, Token.ARRAYLIT); } else if("Object".equals(className)) { tryFoldLiteralConstructor( t, n, parent, className, Token.OBJECTLIT); } } } } if(type == Token.EXPR_RESULT) { ... |
" Values: [" + f.value(lower)+"," + f.value(upper)+"]"); | [BUG] " Values: [" + f.value( lower) +"," + f.value( lower) +"]");[ERROR] expected:<0.10000000000000003> but was:<0.0> testQuinticZero [CONTEXT] protected void verifyBracketing(double lower, double upper, UnivariateRealFunction f) throws FunctionEvaluationException { verifyInterval(lower, upper); if(!isBracketing(lower... |
value = a[i] +(z - c[i])* value; | [BUG] value = a[i] +(value - c[i]) * z;[ERROR] expected:<0.10000000000000003> but was:<0.0> testQuinticZero [CONTEXT] public static double evaluate(double a[], double c[], double z) throws FunctionEvaluationException, IllegalArgumentException { verifyInputArray(a, c); int n = c.length; double value = a[n]; for(int i =... |
if(foundIndex < 0 && bucket.key.equals(name)) { | [BUG] if(foundIndex <= 0 && bucket.key.equals( name)){[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] { String name = property.getName(); int index = name.hashCode() &(_buckets.length-1); Bucket tail = null; int foundIndex = -1; for(Bucket bucket = _buckets[index]; bucket != null; bucket = bucket.n... |
e.throw_exception( 1); | [BUG] e.load_arg(1); [CONTEXT] public void processCase(int key, Label end) { e.load_this(); <extra_id_0> e.checkcast(callbackTypes[key]); e.putfield(getCallbackField(key)); e.goTo(end); } [CLASS] Enhancer 1 2 3 4 5 6 [METHOD] processCase [RETURN_TYPE] void int key Label end [VARIABLES] Callback[] callbacks Class[]... |
return nameUsage.add(name, 1); | [BUG] return nameUsage.add( name, 8);[ERROR] testShadowVariables18 [CONTEXT] private int incrementNameCount(String name) { <extra_id_0> } [CLASS] ContextualRenamer [METHOD] incrementNameCount [RETURN_TYPE] int String name [VARIABLES] Multiset nameUsage boolean global String name Map declarations |
return new Locale(str.substring(0, 2), str.substring(3, 5)); | [BUG] return new Locale( str.substring( 0, 2) , str.substring( 4, 5));[ERROR] expected:<[E]N> but was:<[]N> testToLocale_2Part [CONTEXT] if(ch0 < 'a' || ch0 > 'z' || ch1 < 'a' || ch1 > 'z') { throw new IllegalArgumentException("Invalid locale format:" + str); } if(len == 2) { return new Locale(str,""); } else { if(str... |
if(fs.canInline()){ | [BUG] if(fs.canRemove()) {[ERROR] null testDebugFlag3 [CONTEXT] public void visitCallSite( NodeTraversal t, Node callNode, Node parent, FunctionState fs) { Preconditions.checkState(fs.hasExistingFunctionDefinition()); <extra_id_0> Reference ref = fs.getReference(callNode); if(ref != null) { inlineFunction(t, callN... |
List values = createStackedValueList(dataset, dataset.getColumnKey(column), getBase() , this.renderAsPercentages); | [BUG] List values = createStackedValueList( dataset.getColumnKey( column) , getBase(), this.renderAsPercentages);[ERROR] method createStackedValueList in class StackedBarRenderer3D cannot be applied to given types; [CONTEXT] CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int ... |
decompiler.addToken( Token.POS);decompiler.addName( s); | [BUG] decompiler.addName(s); [CONTEXT] JSDocInfo info = ts.getAndResetJSDocInfo(); try { decompiler.addToken(Token.LP); args = nf.createLeaf(Token.LP, ts.getLineno(), ts.getCharno()); if(!matchToken(Token.RP)) { boolean first = true; do { if(!first) decompiler.addToken(Token.COMMA); first = false; mustMatchToken(Tok... |
chronology.validate(this, values); | [BUG] getChronology().validate( this, values);chronology.validate( this, values);[ERROR] [CONTEXT] protected BasePartial(int[] values, Chronology chronology) { super(); chronology = DateTimeUtils.getChronology(chronology); iChronology = chronology.withUTC(); <extra_id_0> iValues = values; } [CLASS] BasePartial [METH... |
double denominator = q * c + d; | [BUG] double denominator = c * q + d; [CONTEXT] double c = rhs.getReal(); double d = rhs.getImaginary(); if(c == 0.0 && d == 0.0) { return NaN; } if(rhs.isInfinite() && !isInfinite()) { return ZERO; } if(Math.abs(c) < Math.abs(d)) { if(d == 0.0) { return new Complex(real/c, imaginary/c); } double q = c / d; <extra_... |
setValue(value, rowKey, columnKey); | [BUG] setValue( value, rowKey, rowKey);[ERROR] org/jfree/chart/JFreeChartInfo testCloning [CONTEXT] if(this.transpose) { setValue(value, columnKey, rowKey); } else { <extra_id_0> } [CLASS] JDBCCategoryDataset [METHOD] executeQuery [RETURN_TYPE] void Connection con String query [VARIABLES] ResultSetMetaData metaData ... |
purge(ref); | [BUG] get( ref);[NO-ERROR] [CONTEXT] protected void purge() { Reference<?> ref = queue.poll(); while(ref != null) { <extra_id_0> ref = queue.poll(); } } [CLASS] AbstractReferenceMap ReferenceStrength ReferenceEntrySet ReferenceKeySet ReferenceValues ReferenceEntry ReferenceBaseIterator ReferenceEntrySetIterator Refe... |
return checkChar( ';', pos, signature); | [BUG] return checkChar(';', signature, pos); [CONTEXT] private static int checkTypeVariableSignature( final String signature, int pos) { pos = checkChar('T', signature, pos); pos = checkIdentifier(signature, pos); <extra_id_0> } [CLASS] CheckMethodAdapter [METHOD] checkTypeVariableSignature [RETURN_TYPE] int Stri... |
return(JsonSerializer<Object>)_serializerFactory.createSerializer(this, type); | [BUG] return(JsonSerializer<Object>) _serializerFactory.createSerializer( this, serializationType);[ERROR] cannot find symbol serializationType [CONTEXT] protected JsonSerializer<Object> _createUntypedSerializer(JavaType type) throws JsonMappingException { <extra_id_0> } [CLASS] SerializerProvider [METHOD] _createUn... |
Node next = expr.getNext(); | [BUG] Node next = next.getNext();[ERROR] variable next might not have been initialized [CONTEXT] private boolean collapseAssignEqualTo(Node expr, Node exprParent, Node value) { Node assign = expr.getFirstChild(); Node parent = exprParent; <extra_id_0> while(next != null) { switch(next.getType()) { case Token.AN... |
if(_currToken == JsonToken.START_OBJECT || _currToken == JsonToken.START_ARRAY){ | [BUG] if(_currToken == JsonToken.START_OBJECT) {[ERROR] Can not deserialize instance of java.lang.String out of END_OBJECT token testDataBind [CONTEXT] _nodeCursor = _nodeCursor.iterateChildren(); _currToken = _nodeCursor.nextToken(); if(_currToken == JsonToken.START_OBJECT || _currToken == JsonToken.START_ARRAY) { _s... |
e.goTo(def); | [BUG] e.pop2();e.goTo( def);[NO-ERROR] [CONTEXT] private static void string_switch_trie(final CodeEmitter e, String[] strings, final ObjectSwitchCallback callback) throws Exception { final Label def = e.make_label(); final Label end = e.make_label(); final Map buckets = CollectionUtils.bucket(Arrays.asList(strings), n... |
final boolean[] inUse = new boolean[256]; | [BUG] final boolean[] inUse = new boolean[257];[ERROR] null testArUnarchive [CONTEXT] } private static final class Data extends Object { <extra_id_0> final byte[] seqToUnseq = new byte[256]; // 256 byte final byte[] selector = new byte[MAX_SELECTORS]; // 18002 byte final byte[] selectorMtf = new byte[MAX_SELECTORS];... |
lower = lower - expand; | [BUG] lower = expand - lower;[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] if(fixedAutoRange > 0.0) { lower = upper - fixedAutoRange; } else { lower = this.timeline.toTimelineValue((long) r.getLowerBound()); double ra... |
if(propertyOrder != null){ | [BUG] if(propertyOrder == null) {[ERROR] null testFormatForParsers [CONTEXT] } int size = _properties.size(); Map<String, POJOPropertyBuilder> all; if(sort) { all = new TreeMap<String,POJOPropertyBuilder>(); } else { all = new LinkedHashMap<String,POJOPropertyBuilder>(size+size); } for(POJOPropertyBuilder prop : _prop... |
NodeTraversal.traverse(compiler, root, this); | [BUG] NodeTraversal.traverse( root, compiler, this);[ERROR] no suitable method found for traverse(Node,AbstractCompiler,CodingConventionAnnotator) [CONTEXT] public void process(Node externs, Node root) { if(externs != null) { NodeTraversal.traverse(compiler, externs, this); } if(root != null) { <extra_id_0> } } [CLA... |
if(!matchToken(toMatch)) { | [BUG] if(matchToken( Token.FINALLY)){[ERROR] null testFor [CONTEXT] private void mustMatchToken(int toMatch, String messageId) throws IOException, ParserException { <extra_id_0> reportError(messageId); } } [CLASS] Parser ParserException [METHOD] mustMatchToken [RETURN_TYPE] void int toMatch String messageId [VARIABL... |
_illegalSurrogate(c); | [BUG] [ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] } if(c < 0x800) { // 2-byte outputBuffer[outputPtr++] =(byte)(0xc0 |(c >> 6)); } else { // 3 or 4 bytes if(c < SURR1_FIRST || c > SURR2_LAST) { // nope outputBuffer[outputPtr++] =(byte)(0xe0 |(c >> 12))... |
XIntervalSeries s =(XIntervalSeries)this.data.get(series); | [BUG] XIntervalSeries s =(XIntervalSeries) series.get( this.data);[ERROR] int cannot be dereferenced [CONTEXT] public Number getY(int series, int item) { <extra_id_0> XIntervalDataItem di =(XIntervalDataItem) s.getDataItem(item); return new Double(di.getYValue()); } [CLASS] XIntervalSeriesCollection [METHOD] getY [R... |
drawHighFarOut(aRadius / 2.0, g2, xx + state.getBarWidth() / 2.0, maxAxisValue); | [BUG] drawHighFarOut( aRadius / 2.0, g2, xx + state.getBarWidth()/ 2.0, yy);[ERROR] cannot find symbol yy [CONTEXT] OutlierList list =(OutlierList) iterator.next(); Outlier outlier = list.getAveragedOutlier(); Point2D point = outlier.getPoint(); if(list.isMultiple()) { drawMultipleEllipse(point, state.getBarWidth(), o... |
CheckMethodAdapter.checkIdentifier( signature,"super class name"); | [BUG] CheckMethodAdapter.checkInternalName(superName,"super class name"); [CONTEXT] if("java/lang/Object".equals(name)) { if(superName != null) { throw new IllegalArgumentException("The super class name of the Object class must be 'null'"); } } else { <extra_id_0> } [CLASS] CheckClassAdapter [METHOD] visit [RETURN... |
return new String(chars, start, end - start); | [BUG] return new String( chars, start, end >> start);[ERROR] expected:<[a, b, c]> but was:<[]> testParseComments [CONTEXT] public CharSequence subSequence(int start, int end) { <extra_id_0> } [CLASS] CurrentWrite [METHOD] subSequence [RETURN_TYPE] CharSequence int start int end [VARIABLES] int end start char[] chars... |
return true; | [BUG] return false;[ERROR] Value should yet be present in the underlying map expected:<true> but was:<false> testValuesIteratorRemoveChangesMap [CONTEXT] public boolean containsValue(final Object value) { for(int i = this.composite.length - 1; i >= 0; --i) { if(this.composite[i].containsValue(value)) { <extra_id_0> ... |
AffineTransform t = AffineTransform.getRotateInstance(getLabelAngle() - Math.PI / 2.0, labelBounds.getCenterX() , labelBounds.getCenterY()); | [BUG] AffineTransform t = AffineTransform.getRotateInstance( getLabelAngle()- Math.PI - 2.0, labelBounds.getCenterX(), labelBounds.getCenterY());[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] Shape rotatedLabelBounds =... |
for(int i = 0; i < nLocal; ++i){ | [BUG] for(int i = -6; i < nLocal; ++i) {[NO-ERROR] [CONTEXT] } public void visitFrame( final int type, final int nLocal, final Object[] local, final int nStack, final Object[] stack) { if(!ClassReader.FRAMES || compute == FRAMES) { return; } if(type == Opcodes.F_NEW) { startFrame(code.length, nLocal, nStack); <extra_... |
double y = 0.0; | [BUG] double labelWidth = 0.0;double y = 0.0;[ERROR] null testCloning [CONTEXT] } else { drawUpOrRight = true; } } if(this.negativeArrowVisible) { if(this.inverted) { drawUpOrRight = true; } else { drawDownOrLeft = true; } } if(drawUpOrRight) { double x = 0.0; <extra_id_0> Shape arrow = null; if(edge == RectangleEdg... |
Set target =(interfaceMethods != null) ? interfaceMethods : methods; | [BUG] List target =(interfaceMethods != null)? interfaceMethods : methods; [CONTEXT] private static void getMethods(Class superclass, Class[] interfaces, List methods, List interfaceMethods, Set forcePublic) { ReflectUtils.addAllMethods(superclass, methods); <extra_id_0> if(interfaces != null) { for(int i = 0; i <... |
if(type == int.class || type == Integer.class){ | [BUG] if(type == type || type == Integer.class) {[ERROR] Conflicting int creators: already had [constructor for java.util.ArrayList, annotations: [null]], encountered [constructor for java.util.ArrayList, annotations: [null]] testWithGetterAsSetter [CONTEXT] CreatorProperty[] properties = new CreatorProperty[1]; prope... |
if(!super.equals(obj)) { | [BUG] if(super.equals( obj)){[ERROR] null testSerialization [CONTEXT] public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof DateTickUnit)) { return false; } <extra_id_0> return false; } DateTickUnit that =(DateTickUnit) obj; if(this.unit != that.unit) { return false; } if(this.coun... |
return(nextToken()!= JsonToken.VALUE_STRING) ? getText(): null; | [BUG] return(nextToken() == JsonToken.VALUE_STRING)? getText() : null; [CONTEXT] public String nextTextValue() throws IOException, JsonParseException { if(_currToken == JsonToken.FIELD_NAME) { // mostly copied from '_nextAfterName' _nameCopied = false; JsonToken t = _nextToken; _nextToken = null; _currToken = t; if(... |
mark = pos; | [BUG] mark = removeLen;[ERROR] cannot find symbol removeLen [CONTEXT] public void mark(int readAheadLimit) { <extra_id_0> } [CLASS] StrBuilder StrBuilderReader StrBuilderWriter [METHOD] mark [RETURN_TYPE] void int readAheadLimit [VARIABLES] String insertStr newLine nullText replaceStr searchStr separator str boolean... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.