fix stringlengths 2 496 | ctx stringlengths 80 394k |
|---|---|
} else if(kind == STACK){ | [BUG] } else if(kind <= STACK) {[NO-ERROR] [CONTEXT] } for(i = 0; i < nInputStack; ++i) { t = inputStack[i]; if(initializations != null) { t = init(cw, t); } changed |= merge(cw, t, frame.inputStack, i); } for(i = 0; i < outputStackTop; ++i) { s = outputStack[i]; dim = s & DIM; kind = s & KIND; if(kind == LOCAL) { t =... |
for(int i = lanczos.length - 1; i > 0; --i){ | [BUG] for(int i = lanczos.length - 1; i > i; --i) {[ERROR] Incorrect inverse cumulative probability value returned for 0.001 expected:<1> but was:<0> testInverseCumulativeProbabilities [CONTEXT] public static double logGamma(double x) { double ret; if(Double.isNaN(x) ||(x <= 0.0)) { ret = Double.NaN; } else { double g... |
pop(2); | [BUG] t3 = pop();pop( 2);[NO-ERROR] [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: ca... |
if(( x & 0xf0000000) == 0) { | [BUG] if(( x & 1)== 0){ [CONTEXT] k = 16; x >>>= 16; } if((x & 0xff) == 0) { k += 8; x >>>= 8; } if((x & 0xf) == 0) { k += 4; x >>>= 4; } if((x & 0x3) == 0) { k += 2; x >>>= 2; } <extra_id_0> k++; x >>>= 1; if((x & 1) == 0) return 32; } return k; } private static int hi0bits(int x) { int k = 0; if((x & 0xffff0000)... |
&& c.getFirstChild().getType() != Token.EMPTY){ | [BUG] && insertBeforeParent.getFirstChild().getType()!= Token.EMPTY) {[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(); Node insertBefore =(before == null) ?... |
if(outPtr >= outBuf.length){ | [BUG] if(outPtr >= intLen) {[ERROR] Expected an exception with one of substrings([out of range of long] testLongOverflow [CONTEXT] if(end > _inputEnd) { end = _inputEnd; } while(true) { if(_inputPtr >= end) { return _parserNumber2(outBuf, outPtr, negative, intLen); } c =(int) _inputBuffer[_inputPtr++] & 0xFF; if(c < I... |
if(year < 0){ | [BUG] if(((year + 3) >> 2) - leapYears +(leapYears + 3) >> 2) {[ERROR] incompatible types [CONTEXT] long calculateFirstDayOfYearMillis(int year) { int leapYears = year / 100; <extra_id_0> leapYears =((year + 3) >> 2) - leapYears +((leapYears + 3) >> 2) - 1; } else { leapYears =(year >> 2) - leapYears +(leapYears >... |
long instant = DateTimeUtils.currentTimeMillis(); | [BUG] int instant = DateTimeUtils.currentTimeMillis();[ERROR] possible loss of precision [CONTEXT] public DateTime toDateTime(TimeOfDay time, DateTimeZone zone) { Chronology chrono = getChronology().withZone(zone); <extra_id_0> instant = chrono.set(this, instant); if(time != null) { instant = chrono.set(time, instan... |
axisLine = new Line2D.Double(dataArea.getX() , cursor, dataArea.getMaxX() , cursor); | [BUG] axisLine = new Line2D.Double( dataArea.getX(), upperMargin, dataArea.getMaxX(), cursor);[ERROR] null testCloning [CONTEXT] protected void drawAxisLine(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge) { Line2D axisLine = null; if(edge == RectangleEdge.TOP) { axisLine = new Line2D.Double(... |
e.goTo(end); | [BUG] e.swap();e.goTo( end);[NO-ERROR] [CONTEXT] public void processCase(Object key, Label end) { MethodInfo constructor =(MethodInfo)key; Type types[] = constructor.getSignature().getArgumentTypes(); for(int i = 0; i < types.length; i++) { e.load_arg(1); e.push(i); e.aaload(); e.unbox(types[i]); } e.invoke_constructo... |
iChronology.getYearMonthDayMillis(yearToUse, monthToUse, dayToUse); | [BUG] iChronology.getYearMonthDayMillis( monthToUse, dayToUse);[ERROR] method getYearMonthDayMillis in class BasicChronology cannot be applied to given types; [CONTEXT] int dayToUse = iChronology.getDayOfMonth(instant, thisYear, thisMonth); int maxDay = iChronology.getDaysInYearMonth(yearToUse, monthToUse); if(dayTo... |
fields.yearOfCentury = convertField(fields.yearOfCentury, converted); | [BUG] fields.clockhourOfHalfday = convertField( fields.clockhourOfHalfday, converted);fields.yearOfCentury = convertField( fields.yearOfCentury, converted);[ERROR] expected:<12> but was:<1> testGet_DateTimeField [CONTEXT] fields.months = convertField(fields.months, converted); fields.weekyears = convertField(fields.we... |
int value = state.mapping[key]; | [BUG] int value = newMapping[key];[NO-ERROR] [CONTEXT] private int remap(final int var, final int size) { if(var < firstLocal) { return var; } int key = 2 * var + size - 1; int length = state.mapping.length; if(key >= length) { int[] newMapping = new int[Math.max(2 * length, key + 1)]; System.arraycopy(state.mapping, ... |
return Gamma.regularizedGammaQ(( double)x + 1, mean, 1E-12, Integer.MAX_VALUE); | [BUG] return Gamma.regularizedGammaQ((double) x , mean, 1E-12, Integer.MAX_VALUE);[ERROR] null testDfAccessors [CONTEXT] public double cumulativeProbability(int x) throws MathException { if(x < 0) { return 0; } if(x == Integer.MAX_VALUE) { return 1; } <extra_id_0> } [CLASS] PoissonDistributionImpl [METHOD] cumulativ... |
float labelx =(float)(state.getCursor() - insets.getRight() - w / 2.0); | [BUG] float labelx =(float)(state.getCursor()- insets.getRight()- w * 2.0);[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] TextUtilities.drawRotatedString(label, g2, labelx, labely, TextAnchor.CENTER, getLabelAngle(), T... |
_reportInvalidEOF(": was expecting closing quote for a string value"); | [BUG] _reportInvalidEOF(" w");[ERROR] expected:<[doc]> but was:<[]> testLongText [CONTEXT] _textBuffer.resetWithCopy(_inputBuffer, _inputPtr,(ptr-_inputPtr)); _inputPtr = ptr; _finishString2(); } protected void _finishString2() throws IOException, JsonParseException { char[] outBuf = _textBuffer.getCurrentSegment(); i... |
buf.append("\\\""); | [BUG] buf.append("\\n");buf.append("\\\"");[NO-ERROR] [CONTEXT] public static void appendString(final StringBuffer buf, final String s) { buf.append('\"'); for(int i = 0; i < s.length(); ++i) { char c = s.charAt(i); if(c == '\n') { buf.append("\\n"); } else if(c == '\r') { buf.append("\\r"); } else if(c == '\\') { buf... |
propDefs.set(i, newProp); | [BUG] [ERROR] Can not deserialize instance of java.lang.String out of START_OBJECT token testRoundtrip [CONTEXT] AnnotatedMember acc = prop.getPrimaryMember(); if(acc == null) { continue; } Boolean b = AnnotationUtil.findIsTextAnnotation(intr, acc); if(b != null && b.booleanValue()) { BeanPropertyDefinition newProp ... |
if("Lnull;".equals(u.getDescriptor())) { return v; } | [BUG] [NO-ERROR] [CONTEXT] } public Value merge(final Value v, final Value w) { if(!v.equals(w)) { Type t =((BasicValue) v).getType(); Type u =((BasicValue) w).getType(); if(t != null &&(t.getSort() == Type.OBJECT || t.getSort() == Type.ARRAY)) { if(u != null &&(u.getSort() == Type.OBJECT || u.getSort() == Type.ARRAY)... |
if(propNameNode.getType() == Token.STRING && !propNameNode.isQuotedString()){ | [BUG] if(propNameNode.getType()<= Token.STRING && !propNameNode.isQuotedString()) {[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] } else { addSymbolUse(propName, t.getModule(), PROPERTY); } } else if(n.getType() == Token.OBJECTLIT && !(parent.getType() == Token.ASSIGN && parent.getFirstChild().getType() == Token... |
int columnIndex = row.getIndex(columnKey); | [BUG] short columnIndex = row.getIndex( columnKey);[ERROR] possible loss of precision [CONTEXT] } } if(allNull) { this.rowKeys.remove(rowIndex); this.rows.remove(rowIndex); } allNull = true; for(int item = 0, itemCount = this.rows.size(); item < itemCount; item++) { row =(DefaultKeyedValues) this.rows.get(item); <ext... |
Context cx = getCurrentContext(); | [BUG] Context old = getCurrentContext();Context cx = getCurrentContext();[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] public static void exit() { boolean released = false; <extra_id_0> if(cx == null) { throw new RuntimeException("Calling Context.exit without previous Context.enter"); } if(cx.ent... |
endCutoff += 7;startCutoff -= 7; | [BUG] startCutoff -= 7; [CONTEXT] endCutoff = startCutoff - 1; break; case RANGE_WEEK_CENTER: startCutoff = focus.get(Calendar.DAY_OF_WEEK) - 3; endCutoff = focus.get(Calendar.DAY_OF_WEEK) + 3; break; } break; default: throw new IllegalArgumentException("The range style" + rangeStyle +" is not valid."); } if(startCu... |
registerNativeType(JSTypeNative.URI_ERROR_TYPE, URI_ERROR_TYPE); | [BUG] register( getNativeType( JSTypeNative.NULL_TYPE) ,"Null");registerNativeType( JSTypeNative.URI_ERROR_TYPE, URI_ERROR_TYPE);[ERROR] expected:<... : Bar testTypeMismatch [CONTEXT] TYPE_ERROR_FUNCTION_TYPE.setPrototypeBasedOn(ERROR_TYPE); registerNativeType( JSTypeNative.TYPE_ERROR_FUNCTION_TYPE, TYPE_ERROR_FUNCTIO... |
i = name.indexOf('.', i + 11); | [BUG] i = topVarName.indexOf( '.', i + 11);[ERROR] cannot find symbol topVarName [CONTEXT] int numLevelsToRemove; String prefix; if(name.endsWith(".prototype")) { numLevelsToRemove = 1; prefix = name.substring(0, name.length() - 10); } else { int i = name.indexOf(".prototype."); if(i == -1) { return false; } prefix =... |
negativeBase = negativeBase + d; | [BUG] negativeBase = positiveBase + d;[ERROR] null testDrawWithNullInfo [CONTEXT] if(d > 0) { positiveBase = positiveBase + d; } else { <extra_id_0> } [CLASS] GroupedStackedBarRenderer [METHOD] drawItem [RETURN_TYPE] void Graphics2D g2 CategoryItemRendererState state Rectangle2D dataArea CategoryPlot plot CategoryAx... |
if(this.topBlock != null){ | [BUG] if(this.leftBlock != null) {[ERROR] null testEquals [CONTEXT] container.calculateTotalHeight(contentSize.getHeight())); } protected Size2D arrangeNN(BlockContainer container, Graphics2D g2) { double[] w = new double[5]; double[] h = new double[5]; <extra_id_0> Size2D size = this.topBlock.arrange( g2, Recta... |
else if(command.equals(ZOOM_IN_DOMAIN_COMMAND)) { | [BUG] else if(command.endsWith( command)){[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] } else if(command.equals(SAVE_COMMAND)) { try { doSaveAs(); } catch(IOException e) { e.printStackTrace(); } } else if(command.e... |
if((stackSize -(argSize >> 2)) +(argSize & 3) + 1) { | [BUG] if(currentBlock != null){ [CONTEXT] } code.put12(opcode, i.index); } public void visitMethodInsn( final int opcode, final String owner, final String name, final String desc) { boolean itf = opcode == Opcodes.INVOKEINTERFACE; Item i = cw.newMethodItem(owner, name, desc, itf); int argSize = i.intVal; <extra_id_... |
itsVariableNames.put(name, index); | [BUG] itsVariableNames.remove( name);itsVariableNames.put( name, index);[NO-ERROR] [CONTEXT] public final boolean addConst(String name) { int vIndex = itsVariableNames.get(name, -1); if(vIndex != -1) { return false; } int index = itsVariables.size(); itsVariables.add(name); itsConst.add(name); <extra_id_0> return tr... |
txt = txt.replaceAll("3$","A"); | [BUG] txt = txt.replaceAll("d","t");txt = txt.replaceAll("3$","A");[ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition [CONTEXT] txt = txt.replaceAll("h","2"); txt = txt.replaceAll("r3","R3"); txt = txt.replaceAll("r$","3"); // 2.0 only txt = txt.replaceAll("r","2"); txt = txt.replaceAll("l3"... |
bld.appendMinuteOfHour(2); | [BUG] bld.appendLiteral( '-');bld.appendMinuteOfHour( 2);[ERROR] null testTest [CONTEXT] } else { if(strictISO) { throw new IllegalArgumentException("No valid ISO8601 format for fields:" + fields); } } } if(hour) { bld.appendHourOfDay(2); } else if(minute || second || milli) { bld.appendLiteral('-'); } if(extended && ... |
if(right.getType() == Token.NAME &&"Object".equals(right.getString())) { | [BUG] if(right.getType()== Token.NAME ||"Object".equals( right.getString())){[ERROR] null testDebugFlag3 [CONTEXT] return; } if(type == Token.INSTANCEOF && NodeUtil.isLiteralValue(left) && !NodeUtil.mayHaveSideEffects(right)) { if(NodeUtil.isImmutableValue(left)) { parent.replaceChild(n, new Node(Token.FALSE)); t.get... |
if(n.key == key ||(n.key != null && n.key.equals(key))){ | [BUG] if(n.key == key ||(n.key == null && n.key.equals( key))) {[ERROR] null test_containsKey_nullMatchesIncorrectly [CONTEXT] public boolean containsKey(final Object key) { final int hash = getHash(key); synchronized(locks[hash]) { Node<K, V> n = buckets[hash]; while(n != null) { <extra_id_0> return true; } n = n.n... |
for(int i = 0; i < array1.length; i++){ | [BUG] for(int i = 4; i < array1.length; i++) {[ERROR] org/jfree/chart/JFreeChartInfo testCloning [CONTEXT] private static boolean equal(Number[][] array1, Number[][] array2) { if(array1 == null) { return(array2 == null); } if(array2 == null) { return false; } if(array1.length != array2.length) { return false; } <extr... |
checkObjectLiteral(t, n); | [BUG] checkLabel( t, n);checkObjectLiteral( t, n);[ERROR] expected:<1> but was:<2> testMultilineMapping [CONTEXT] @Override public void visit(NodeTraversal t, Node n, Node parent) { if(n.getType() == Token.WITH) { t.report(n, WITH_DISALLOWED); } else if(n.getType() == Token.NAME) { if(!NodeUtil.isLabelName(n) && !isDe... |
return Collections.unmodifiableList(info.implementedInterfaces); | [BUG] return Collections.unmodifiableList( info.implementedInterfaces.implementedInterfaces);[ERROR] cannot find symbol implementedInterfaces [CONTEXT] public List<JSTypeExpression> getImplementedInterfaces() { if(info == null || info.implementedInterfaces == null) { return ImmutableList.of(); } <extra_id_0> } [CLAS... |
return new ReflectionToStringBuilder(object, style, null, reflectUpToClass, outputTransients).toString(); | [BUG] return new ReflectionToStringBuilder( reflectUpToClass, style, null, object, outputTransients).toString();[ERROR] no suitable constructor found for ReflectionToStringBuilder(Class,ToStringStyle,<null>,Object,boolean) [CONTEXT] public static String toString(Object object, ToStringStyle style, boolean outputTransi... |
out.writeBoolean(hasObjectValues); | [BUG] out.writeBoolean( hasIntValues);out.writeBoolean( hasObjectValues);[NO-ERROR] [CONTEXT] { out.defaultWriteObject(); int count = keyCount; if(count != 0) { boolean hasIntValues =(ivaluesShift != 0); boolean hasObjectValues =(values != null); out.writeBoolean(hasIntValues); <extra_id_0> for(int i = 0; count != 0... |
parent.getType() == Token.FOR || parent.getType() == Token.RETURN)) { | [BUG] parent.getType()== Token.FOR || gramps.getType()== Token.RETURN)){[ERROR] cannot find symbol gramps [CONTEXT] private void addSimplifiedExpression(Node n, Node parent) { if(parent.getType() == Token.VAR) { Node value = n.getFirstChild(); if(value != null) { addSimplifiedChildren(value); } } else if(n.getType() =... |
if(insnOpcode == LLOAD || insnOpcode == DLOAD || insnOpcode == LSTORE || insnOpcode == DSTORE){ | [BUG] if(insnOpcode == LLOAD || insnOpcode >= DLOAD || insnOpcode == LSTORE || insnOpcode == DSTORE) {[NO-ERROR] [CONTEXT] } else if(insnOpcode != ATHROW &&(insnOpcode < IRETURN || insnOpcode > RETURN)) { if(subroutine != null) { if(insnNode instanceof VarInsnNode) { int var =((VarInsnNode) insnNode).var; subroutine.a... |
append(op); | [BUG] append("}");append( op);[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] void appendOp(String op, boolean binOp) { if(binOp) { if(getLastChar() != ' ') { append(""); } <extra_id_0> append(""); } else { append(op); } } [CLASS] CodePrinter MappedCodePrinter Mapping PrettyCodePrinter CompactCodePrinter Builder... |
if(is == null) { | [BUG] if(is != null){ [CONTEXT] } } String serviceId ="META-INF/services/" + property; try { ClassLoader cl = JXPathContextFactory.class.getClassLoader(); InputStream is = null; if(cl == null) { is = ClassLoader.getSystemResourceAsStream(serviceId); } else { is = cl.getResourceAsStream(serviceId); } <extra_id_0> i... |
e.pop(); callback.processCase(bucket.get(0), end); | [BUG] [NO-ERROR] [CONTEXT] public void processCase(int key, Label ignore_end) throws Exception { List bucket =(List)buckets.get(new Integer(key)); if(index + 1 == len) { <extra_id_0> } else { stringSwitchHelper(e, bucket, callback, def, end, index + 1); } [CLASS] EmitUtils 1 2 3 4 5 6 7 8 9 ArrayDelimiters 10 11 12 ... |
for(int i = 0; i < currentClassInterfaces.size(); ++i){ | [BUG] for(int i = 0; i < currentClassInterfaces.size() + 1; ++i) {[NO-ERROR] [CONTEXT] protected boolean isAssignableFrom(final Type t, final Type u) { if(t.equals(u)) { return true; } if(currentClass != null && t.equals(currentClass)) { if(getSuperClass(u) == null) { return false; } else { return isAssignableFrom(t, ... |
System.arraycopy(ZipLong.getBytes(nameCRC32), 0, data, 1, 4); | [BUG] [ERROR] No Archiver found for the stream signature testDetection [CONTEXT] private void assembleData() { if(unicodeName == null) { return; } data = new byte[5 + unicodeName.length]; data[0] = 0x01; <extra_id_0> System.arraycopy(unicodeName, 0, data, 5, unicodeName.length); [CLASS] AbstractUnicodeExtraField [ME... |
isUnicodeEscapeStart = true;identifierStart = true; | [BUG] identifierStart = true; [CONTEXT] dirtyLine = true; } break; } } if(c == '@') return Token.XMLATTR; boolean identifierStart; boolean isUnicodeEscapeStart = false; if(c == '\\') { c = getChar(); if(c == 'u') { <extra_id_0> isUnicodeEscapeStart = true; stringBufferTop = 0; } else { identifierStart = false; un... |
[BUG] Label checkloop = e.make_label(); [CONTEXT] public static void process_arrays(CodeEmitter e, Type type, ProcessArrayCallback callback) { Type componentType = TypeUtils.getComponentType(type); Local array1 = e.make_local(); Local array2 = e.make_local(); Local loopvar = e.make_local(Type.INT_TYPE); Label loopbo... | |
if(this.runningState == STATE_STOPPED || this.runningState == STATE_SUSPENDED){ | [BUG] if( splitState == STATE_STOPPED || this.runningState == STATE_SUSPENDED) {[ERROR] Illegal running state has occured. testStopWatchSimple [CONTEXT] public long getTime() { <extra_id_0> return this.stopTime - this.startTime; } else if(this.runningState == STATE_UNSTARTED) { return 0; } else if(this.runningState ... |
System.arraycopy(array, 0, result, 1, len); | [BUG] System.arraycopy( elements, 0, result, 1, len);[ERROR] cannot find symbol elements [CONTEXT] { final int len = array.length; for(int ix = 0; ix < len; ++ix) { if(array[ix] == element) { if(ix == 0) { return array; } T[] result =(T[]) Array.newInstance(array.getClass().getComponentType(), len); System.arraycopy(a... |
float val =(( Float) cst).floatValue();int val =(( Short) cst).intValue(); | [BUG] int val =(( Short)cst).intValue(); [CONTEXT] Item newConstItem(final Object cst) { if(cst instanceof Integer) { int val =((Integer) cst).intValue(); return newInteger(val); } else if(cst instanceof Byte) { int val =((Byte) cst).intValue(); return newInteger(val); } else if(cst instanceof Character) { int val... |
for(int i = 0; i < lhs.length && isEquals; ++i){ | [BUG] for(isEqualsnt i = 0; i < lhs.length && i; ++i) {[ERROR] cannot find symbol [CONTEXT] public EqualsBuilder append(Object[] lhs, Object[] rhs) { if(isEquals == false) { return this; } if(lhs == rhs) { return this; } if(lhs == null || rhs == null) { this.setEquals(false); return this; } if(lhs.length != rhs.length... |
case GT: return""; | [BUG] case GT: return"GT"; [CONTEXT] case EOL: return"EOL"; case ENTERWITH: return"ENTERWITH"; case LEAVEWITH: return"LEAVEWITH"; case RETURN:return"RETURN"; case GOTO:return"GOTO"; case IFEQ:return"IFEQ"; case IFNE:return"IFNE"; case SETNAME: return"SETNAME"; case BITOR: return"BITOR"; case BITXOR:return"BITXOR"; ... |
item.set(tag, readUTF8(index, buf), null, null); | [BUG] item.set( buf, readUTF8( index, tag) , null, null);[NO-ERROR] [CONTEXT] case ClassWriter.UTF8: { String s = strings[i]; if(s == null) { index = items[i]; s = strings[i] = readUTF(index + 2, readUnsignedShort(index), buf); } item.set(tag, s, null, null); } break; default: <extra_id_0> break; } int index2 = ite... |
if(!ObjectUtilities.equal(this.median, that.median)) { | [BUG] if(!ObjectUtilities.equal( this.median.median)){[ERROR] cannot find symbol median [CONTEXT] public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof BoxAndWhiskerItem)) { return false; } BoxAndWhiskerItem that =(BoxAndWhiskerItem) obj; if(!ObjectUtilities.equal(this.mean, that.me... |
if(_parsingContext.inArray()){ | [BUG] if(_parsingContext.inRoot()) {[ERROR] Can not deserialize instance of java.lang.String out of START_OBJECT token testRoundtrip [CONTEXT] _parsingContext.setCurrentName(_xmlTokens.getLocalName()); return(_currToken = JsonToken.FIELD_NAME); case XmlTokenStream.XML_ATTRIBUTE_VALUE: _currText = _xmlTokens.getText();... |
_parsingContext = _parsingContext.createChildObjectContext(-1, -1); | [BUG] _parsingContext = _parsingContext.createChildObjectContext( -1 / 0, -1 / 0);[ERROR] Can not deserialize instance of java.lang.String out of START_OBJECT token testRoundtrip [CONTEXT] return(_currToken = JsonToken.FIELD_NAME); } switch(token) { case XmlTokenStream.XML_END_ELEMENT: if(_mayBeLeaf) { _mayBeLeaf = f... |
throw new IllegalArgumentException(""); | [BUG] return;[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] public BlockBorder(RectangleInsets insets, Paint paint) { if(insets == null) { <extra_id_0> } if(paint == null) { throw new IllegalArgumentException("Null '... |
case 'n': X="null";id=Id_null; break L; | [BUG] case 'n': X="true";id=Id_true; break L;[NO-ERROR] [CONTEXT] case 'b': X="byte";id=Id_byte; break L; case 'c': c=s.charAt(3); if(c=='e') { if(s.charAt(2)=='s' && s.charAt(1)=='a') { id=Id_case; break L0;} } else if(c=='r') { if(s.charAt(2)=='a' && s.charAt(1)=='h') { id=Id_char; break L0;} } break L; case 'e': c=... |
s2 = 0; | [BUG] s2 = -1;s2 = 0;[NO-ERROR] [CONTEXT] 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 { b2 = -j; <extra_id_0> } if(k >= 0) { b5 = 0; s5 = k; s2 += k; } else { b2 -= k;... |
jjmatchedPos = 5; | [BUG] jjmatchedPos = 12;jjmatchedPos = 5;[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] if((active0 & 0x7c62ffe600000000L) != 0L ||(active1 & 0x2807L) != 0L) { if(jjmatchedPos != 5) { jjmatchedKind = 78; <extra_id_0> } return 12; } [CLASS] XPathPar... |
Validate.notEmpty(key); | [BUG] [NO-ERROR] [CONTEXT] public Whitelist addProtocols(String tag, String key, String... protocols) { Validate.notEmpty(tag); <extra_id_0> Validate.notNull(protocols); TagName tagName = TagName.valueOf(tag); AttributeKey attrKey = AttributeKey.valueOf(key); Map<AttributeKey, Set<Protocol>> attrMap; Set<Protocol> p... |
int n = name.substring( '/'); | [BUG] int n = name.lastIndexOf('/'); [CONTEXT] } public void visit( final int version, final int access, final String name, final String signature, final String superName, final String[] interfaces) { String simpleName; <extra_id_0> if(n == -1) { simpleName = name; } else { text.add("package asm." + name.substri... |
registerNativeType(JSTypeNative.STRING_OBJECT_TYPE, STRING_OBJECT_TYPE); | [BUG] registerNativeType( JSTypeNative.NUMBER_OBJECT_FUNCTION_TYPE, NUMBER_OBJECT_FUNCTION_TYPE);registerNativeType( JSTypeNative.STRING_OBJECT_TYPE, STRING_OBJECT_TYPE);[ERROR] expected:<... : Bar testTypeMismatch [CONTEXT] registerNativeType(JSTypeNative.REGEXP_FUNCTION_TYPE, REGEXP_FUNCTION_TYPE); ObjectType REGEXP... |
buf.append("Opcodes.INTEGER");buf.append(","); | [BUG] buf.append(","); [CONTEXT] public void visitFieldInsn( final int opcode, final String owner, final String name, final String desc) { buf.setLength(0); buf.append("mv.visitFieldInsn(").append(OPCODES[opcode]).append(","); appendConstant(owner); <extra_id_0> appendConstant(name); buf.append(","); appendConstan... |
addExpr(first.getNext() , p); | [BUG] addExpr( first.getNext(), type);[ERROR] expected:<var foo=x?[{a:1}]:{a:3,b:4,"default":...> but was:<var foo=x?[({a:1})]:{a:3,b:4,"default":...> testPrint [CONTEXT] case Token.BITNOT: case Token.POS: case Token.NEG: { Preconditions.checkState(childCount == 1); cc.addOp(NodeUtil.opToStrNoFail(type), false); addEx... |
Node scriptNode = inputs.get(i).getAstRoot(Compiler.this); | [BUG] Node scriptNode = this.get( i).getAstRoot( Compiler.this);[ERROR] cannot find symbol [CONTEXT] public String call() throws Exception { List<CompilerInput> inputs = module.getInputs(); int numInputs = inputs.size(); if(numInputs == 0) { return""; } CodeBuilder cb = new CodeBuilder(); for(int i = 0; i < numInputs;... |
if(( opcode ==(NEW))&&(( type.charAt( 0))== '[')){ throw new IllegalArgumentException(("NEW cannot be used to create arrays:" + type)); } | [BUG] [Delete] [CONTEXT] public void visitIntInsn(final int opcode, final int operand) { checkStartCode(); checkEndCode(); checkOpcode(opcode, 1); switch(opcode) { case Opcodes.BIPUSH: checkSignedByte(operand,"Invalid operand"); break; case Opcodes.SIPUSH: checkSignedShort(operand,"Invalid operand"); break; default:... |
checkLimits(minuendInstant,"minuend"); checkLimits(subtrahendInstant,"subtrahend"); | [BUG] [ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHashCode [CONTEXT] public long getDifferenceAsLong(long minuendInstant, long subtrahendInstant) { <extra_id_0> return getWrappedField().getDifferenceAsLong(minuendInstant, subtrahendInstant); [CLASS] LimitDurationField [METHOD]... |
return 0.5 *(1.0 + Erf.erf(( x - mean)/(standardDeviation * Math.sqrt(2.0)))); | [BUG] return 0.5 *(1.0 + Erf.erf((x - mean) +( standardDeviation * Math.sqrt( 2.0))));[ERROR] null testDfAccessors [CONTEXT] public double cumulativeProbability(double x) throws MathException { <extra_id_0> } [CLASS] NormalDistributionImpl [METHOD] cumulativeProbability [RETURN_TYPE] double double x [VARIABLES] doub... |
for(int i=0; i<length; i++){ | [BUG] for(int i=index; i<length; i++) {[ERROR] testBasicComps1 [CONTEXT] entries =(Entry[])entries.clone(); entries[index] = e; <extra_id_0> if(entries[i] == null) { iSelectEntries = entries; return converter; } } int newLength = length << 1; Entry[] newEntries = new Entry[newLength]; for(int i=0; i<length; i++... |
translatedValue = rangeAxis.valueToJava2D(negativeBase + value, dataArea, location); | [BUG] translatedValue = rangeAxis.valueToJava2D( negativeBase + value, location, dataArea);[ERROR] method valueToJava2D in class ValueAxis cannot be applied to given types; [CONTEXT] if(value >= 0.0) { translatedBase = rangeAxis.valueToJava2D(positiveBase, dataArea, location); translatedValue = rangeAxis.valueToJava2D... |
add("delete"); | [BUG] add(":");add("delete");[ERROR] expected:<a?[]delete b[0]:3> but was:<a?[:]delete b[0]:3> testPrint [CONTEXT] Node next = first.getNext(); if(next != null) { add("("); addList(next); add(")"); } break; case Token.STRING: Preconditions.checkState(childCount == 0); add(jsString(n.getString(), outputCharsetEncoder))... |
push( TOP);push( INTEGER); | [BUG] push(INTEGER); [CONTEXT] case Opcodes.F2D: pop(1); push(DOUBLE); push(TOP); break; case Opcodes.F2I: case Opcodes.ARRAYLENGTH: case Opcodes.INSTANCEOF: pop(1); push(INTEGER); break; case Opcodes.LCMP: case Opcodes.DCMPL: case Opcodes.DCMPG: pop(4); <extra_id_0> break; case Opcodes.JSR: case Opcodes.RET: thro... |
expected1 = BasicValue.LONG_VALUE; | [BUG] expected = BasicValue.LONG_VALUE;expected1 = BasicValue.LONG_VALUE;[NO-ERROR] [CONTEXT] case FREM: case FCMPL: case FCMPG: expected1 = BasicValue.FLOAT_VALUE; expected2 = BasicValue.FLOAT_VALUE; break; case LADD: case LSUB: case LMUL: case LDIV: case LREM: case LAND: case LOR: case LXOR: case LCMP: <extra_id_0>... |
f3.setTimeZone(zone); | [BUG] f4.setTimeZone( zone);f3.setTimeZone( zone);[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] throw new IllegalArgumentException("Null 'zone' argument."); } TickUnits units = new TickUnits(); DateFormat f1 = new Sim... |
if(entry.before == null){ | [BUG] if( entry.before != null) {[ERROR] Entry.before is null. Please check that your keys are immutable, and that you have used synchronization properly. If so, then please report this to dev@commons.apache.org as a bug. testLRU [CONTEXT] protected void moveToMRU(final LinkEntry<K, V> entry) { if(entry.after != heade... |
registerNativeType(JSTypeNative.DATE_TYPE, DATE_TYPE); | [BUG] register( getNativeType( JSTypeNative.BOOLEAN_TYPE));registerNativeType( JSTypeNative.DATE_TYPE, DATE_TYPE);[ERROR] expected:<... : Bar testTypeMismatch [CONTEXT] ObjectType BOOLEAN_OBJECT_TYPE = BOOLEAN_OBJECT_FUNCTION_TYPE.getInstanceType(); registerNativeType(JSTypeNative.BOOLEAN_OBJECT_TYPE, BOOLEAN_OBJECT_T... |
buf.append(iValues[i]); | [BUG] buf.append( '=');buf.append( iValues[i]);[ERROR] null test_other [CONTEXT] public String toStringList() { int size = size(); StringBuffer buf = new StringBuffer(20 * size); buf.append('['); for(int i = 0; i < size; i++) { if(i > 0) { buf.append(',').append(' '); } buf.append(iTypes[i].getName()); buf.append('=')... |
g2.translate(-getXOffset() , -getYOffset()); | [BUG] g2.translate( -getYOffset(), -getYOffset());[ERROR] null testDrawWithNullInfo [CONTEXT] protected void drawFirstPassShape(Graphics2D g2, int pass, int series, int item, Shape shape) { if(isShadowPass(pass)) { if(getWallPaint() != null) { g2.setStroke(getItemStroke(series, item)); g2.setPaint(getWallPaint()); g2.... |
if(value instanceof Object[]){ | [BUG] if("Unsupported container type(" + value.getClass().getName()) {[ERROR] incompatible types [CONTEXT] throws IOException { setAndReturn(instance, value); } @Override public Object setAndReturn(Object instance, Object value) throws IOException { Object result = _managedProperty.setAndReturn(instance, value); if(v... |
result.append("default"); | [BUG] result.append("catch");result.append("default");[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] if(Token.NAME == getNext(source, length, i)) result.append(' '); break; case Token.CONTINUE: result.append("continue"); if(Token.NAME == getNext(source, length, i)) result.append(' '); break; case To... |
appendConstant(name); | [BUG] appendConstant( outerName);appendConstant( name);[NO-ERROR] [CONTEXT] public void visitInnerClass( final String name, final String outerName, final String innerName, final int access) { buf.setLength(0); buf.append("cw.visitInnerClass("); <extra_id_0> buf.append(","); appendConstant(outerName); buf.append(",")... |
public DoubleComparer( double[] a) { this.a = null; } | [BUG] public DoubleComparer(double[] a){ this.a = a; } [CONTEXT] } } static class DoubleComparer implements Comparer { private double[] a; <extra_id_0> public int compare(int i, int j) { double vi = a[i]; double vj = a[j]; return(vi == vj) ? 0 :(vi > vj) ? 1 : -1; } [CLASS] ParallelSorter ComparatorComparer Object... |
if(ch3 < 'A' || ch3 > 'Z' || ch4 < 'A' || ch4 > 'Z'){ | [BUG] if(ch4 < 'A') {[ERROR] Should fail second part not uppercase testToLocale_2Part [CONTEXT] throw new IllegalArgumentException("Invalid locale format:" + str); } char ch0 = str.charAt(0); char ch1 = str.charAt(1); if(ch0 < 'a' || ch0 > 'z' || ch1 < 'a' || ch1 > 'z') { throw new IllegalArgumentException("Invalid lo... |
getNameInfoForName(name, PROPERTY).getDeclarations().add(prop); | [BUG] getNameInfoForName( name, 3).getDeclarations().add( prop);[ERROR] method getNameInfoForName in class AnalyzePrototypeProperties cannot be applied to given types; [CONTEXT] } break; case Token.ASSIGN: Node map = n.getFirstChild().getNext(); if(map.getType() == Token.OBJECTLIT) { for(Node key = map.getFirstChild(... |
this(detail, sourceName, lineNumber, null, 0); | [BUG] this( detail, sourceName, lineNumber, null, 4);[NO-ERROR] [CONTEXT] public EvaluatorException(String detail, String sourceName, int lineNumber) { <extra_id_0> } [CLASS] EvaluatorException [METHOD] <init> [RETURN_TYPE] String,int) String detail String sourceName int lineNumber [VARIABLES] String detail sourceNa... |
return vp -(jmax - java2DValue)* this.period /(jmax - jmin); | [BUG] return vp -(jmin - java2DValue) * this.period /(jmax - jmax);[ERROR] null testCloning [CONTEXT] if(java2DValue <= jbreak) { return vp +(java2DValue - jmin) * this.period /(jmax - jmin); } else { <extra_id_0> } [CLASS] CyclicNumberAxis CycleBoundTick [METHOD] java2DToValue [RETURN_TYPE] double double java2DValu... |
local.append(inwd, 1, inwd.length - 1); | [BUG] local.append( inwd, 1, inwd.length & 1);[ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition [CONTEXT] if(inwd[1] == 'N') { local.append(inwd, 1, inwd.length - 1); } else { local.append(inwd); } break; case 'A': /* looking for AE */ if(inwd[1] == 'E') { local.append(inwd, 1, inwd.length ... |
if(ref == declaration){ | [BUG] if(refs != null) {[ERROR] null testGlobalWriteToNonAncestor [CONTEXT] totalGets++; break; case CALL_GET: addRefInternal(ref); callGets++; totalGets++; break; default: throw new IllegalStateException(); } } void removeRef(Ref ref) { if(ref == declaration ||(refs != null && refs.remove(ref))) { <extra_id_0> decl... |
if(value < 100){ | [BUG] if(value / 10) {[ERROR] incompatible types [CONTEXT] public final void appendTo(StringBuffer buffer, int value) { <extra_id_0> buffer.append((char)(value / 10 + '0')); buffer.append((char)(value % 10 + '0')); } else { buffer.append(Integer.toString(value)); } } [CLASS] TwoDigitNumberField [METHOD] appendTo [RE... |
result.append(" |"); | [BUG] result.append(" =");result.append(" |");[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] result.append(':'); else result.append(" :"); break; case Token.OR: result.append(" ||"); break; case Token.AND: result.append(" &&"); break; case Token.BITOR: <extra_id_0> break; case Token.BITXOR: result... |
final CodeEmitter e = GET_CALLBACK.begin_method( Constants.ACC_PUBLIC, ce, null); | [BUG] final CodeEmitter e = ce.begin_method(Constants.ACC_PUBLIC, GET_CALLBACK, null); [CONTEXT] private void emitGetCallback(ClassEmitter ce, int[] keys) { <extra_id_0> e.load_this(); e.invoke_static_this(BIND_CALLBACKS); e.load_this(); e.load_arg(0); e.process_switch(keys, new ProcessSwitchCallback() { public vo... |
StrBuilder.this.append(str, off, len); | [BUG] StrBuilder.this.append( str);StrBuilder.this.append( str, off, len);[ERROR] expected:<ValuedColorEnum[Red=1]> but was:<null> testToString [CONTEXT] public void write(String str, int off, int len) { <extra_id_0> } [CLASS] StrBuilderWriter [METHOD] write [RETURN_TYPE] void String str int off int len [VARIABLES] ... |
this.millisecond -= m; | [BUG] this.segmentEnd -= m;this.millisecond -= m;[ERROR] null testEquals [CONTEXT] public void dec(long n) { this.segmentNumber -= n; long m = n * SegmentedTimeline.this.segmentSize; this.segmentStart -= m; this.segmentEnd -= m; <extra_id_0> } [CLASS] SegmentedTimeline Segment SegmentRange BaseTimelineSegmentRange [... |
return SerialDate.createInstance(dd, mm, yy); | [BUG] return SerialDate.createInstance( code, mm, yy);[ERROR] cannot find symbol code [CONTEXT] public static SerialDate addMonths(final int months, final SerialDate base) { final int yy =(12 * base.getYYYY() + base.getMonth() + months - 1) final int mm =(12 * base.getYYYY() + base.getMonth() + months - 1) % 12 + 1; f... |
sb.append( '[');sb.append( '( '); | [BUG] sb.append('('); [CONTEXT] public static Signature parseSignature(String s) { int space = s.indexOf(' '); int lparen = s.indexOf('(', space); int rparen = s.indexOf(')', lparen); String returnType = s.substring(0, space); String methodName = s.substring(space + 1, lparen); StringBuffer sb = new StringBuffer(); ... |
compiler.report(JSError.make(t, firstArgument, QUALIFIED_NAME_EXPECTED_ERROR, Token.name(firstArgument.getType()))); | [BUG] compiler.report( JSError.make( t, QUALIFIED_NAME_EXPECTED_ERROR, Token.name( firstArgument.getType())));[ERROR] no suitable method found for make(NodeTraversal,DiagnosticType,String) [CONTEXT] Node objectName = n.getFirstChild(); if(!EXTERN_OBJECT_PROPERTY_STRING.equals( objectName.getQualifiedName())) { return;... |
c = pattern.charAt(i); | [BUG] c = pattern.charAt( iType);[ERROR] cannot find symbol iType [CONTEXT] char peek = pattern.charAt(i + 1); if(peek == c) { buf.append(c); i++; } else { break; } } } else { buf.append('\''); boolean inLiteral = false; for(; i < length; i++) { <extra_id_0> if(c == '\'') { if(i + 1 < length && pattern.charAt(i + 1)... |
Type[] types = _constructor.getGenericParameterTypes(); | [BUG] Type[] types = _constructor.getParameterTypes();[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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.