fix stringlengths 2 833 | ctx stringlengths 80 394k |
|---|---|
out.append("]"); | [BUG] out.append("");[ERROR] expected:<...ion. **/ testGoldenOutput1 [CONTEXT] void appendFileMapTo(Appendable out) throws IOException { out.append("["); for(int j = 0; j < files.size(); ++j) { if(j > 0) { out.append(","); } out.append("\""); out.append(files.get(j)); out.append("\""); } <extra_id_0> } [CLASS] LineM... |
end = str.length(); | [BUG] [ERROR] [CONTEXT] public static String substring(String str, int start, int end) { if(str == null) { return null; } if(end < 0) { end = str.length() + end; // remember end is negative } if(start < 0) { start = str.length() + start; // remember start is negative } if(end > str.length()) { <extra_id_0> } if(star... |
jjmatchedPos = 3; | [BUG] jjmatchedPos = 8;jjmatchedPos = 3;[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] if((active0 & 0xffe7ffff80000000L) != 0L ||(active1 & 0x3df7L) != 0L) { jjmatchedKind = 78; jjmatchedPos = 2; return 12; } return -1; case 3: if((active0 & 0xc1010... |
return hasProperty(propertyName)? getPropertyType(propertyName): null; | [BUG] return hasOwnProperty( propertyName) ? getPropertyType( propertyName) : null;[ERROR] testFunctionType [CONTEXT] public JSType findPropertyType(String propertyName) { <extra_id_0> } [CLASS] ObjectType [METHOD] findPropertyType [RETURN_TYPE] JSType String propertyName [VARIABLES] JSDocInfo docInfo info boolean i... |
final int index = decorated().hashIndex(hashCode, decorated().data.length); | [BUG] final int index = decorated().hashIndex( decorated().data.length);[ERROR] method hashIndex in class AbstractHashedMap<K,V> cannot be applied to given types; [CONTEXT] public V removeMultiKey(final Object key1, final Object key2, final Object key3) { final int hashCode = hash(key1, key2, key3); <extra_id_0> Abs... |
addEntry(entry, hashIndex); | [BUG] [NO-ERROR] [CONTEXT] previous = loop; loop = loop.next; } if(loop == null) { throw new IllegalStateException("Entry.next=null, data[removeIndex]=" + data[removeIndex] +" previous=" + previous +" key=" + key +" value=" + value +" size=" + size +" maxSize=" + maxSize +" Please check that your keys are immutable, a... |
new FunctionTypeBuilder(name, compiler, errorRoot, sourceName, scope).setSourceNode(fnRoot).inferFromOverriddenFunction(propType, parametersNode) | [BUG] new FunctionTypeBuilder( name, compiler, errorRoot, sourceName, fnRoot).setSourceNode( scope).inferFromOverriddenFunction( propType, parametersNode)[ERROR] constructor FunctionTypeBuilder in class FunctionTypeBuilder cannot be applied to given types; [CONTEXT] if(lvalueNode != null && lvalueNode.getType() == Tok... |
code.putShort( 8);noSuccessor(); | [BUG] noSuccessor(); [CONTEXT] code.putByte(opcode); label.put(this, code, code.length - 1, false); } if(currentBlock != null) { if(nextInsn != null) { visitLabel(nextInsn); } if(opcode == Opcodes.GOTO) { <extra_id_0> } } } public void visitLabel(final Label label) { resize |= label.resolve(this, code.length, c... |
if(( access & Opcodes.ACC_FINAL)!= 0){ | [BUG] if(( access & Opcodes.ACC_DEPRECATED) != 0) {[NO-ERROR] [CONTEXT] void appendAccess(final int access) { boolean first = true; if((access & Opcodes.ACC_PUBLIC) != 0) { buf.append("ACC_PUBLIC"); first = false; } if((access & Opcodes.ACC_PRIVATE) != 0) { buf.append("ACC_PRIVATE"); first = false; } if((access & Opco... |
Class c = loader.loadClass(className); | [BUG] Class c = loader.loadClass( pkgName);[ERROR] cannot find symbol pkgName [CONTEXT] public static Object loadAndInstantiate(String className, Class source, Class type) { try { ClassLoader loader = getClassLoader(source); <extra_id_0> if(type.isAssignableFrom(c)) { return c.newInstance(); } } catch(Exception e) {... |
if(isNaN() || rhs.isNaN()){ | [BUG] if(isNaN()&& rhs.isNaN()) {[NO-ERROR] [CONTEXT] public Complex divide(Complex rhs) { <extra_id_0> return NaN; } 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 ==... |
if(lower > 0.0){ | [BUG] if(log(lower) / LOG10_VALUE) {[ERROR] cannot find symbol [CONTEXT] else if(lower < -10.0) { //parameter value is < -10 logFloor = Math.log(-lower) / LOG10_VALUE; logFloor = Math.floor(-logFloor); logFloor = -Math.pow(10, -logFloor); } else { logFloor = Math.floor(lower); //use as-is } } else { <extra_id_0> log... |
len = size() - pos; | [BUG] len = size()- off;[ERROR] expected:<ValuedColorEnum[Red=1]> but was:<null> testToString [CONTEXT] public int read(char b[], int off, int len) { if(off < 0 || len < 0 || off > b.length ||(off + len) > b.length ||(off + len) < 0) { throw new IndexOutOfBoundsException(); } if(len == 0) { return 0; } if(pos >= size(... |
checkInvariant(); | [BUG] toString();[ERROR] null testExternedPropertyName [CONTEXT] FunctionInformation(boolean extern) { this.extern = extern; <extra_id_0> } [CLASS] FunctionInformation [METHOD] <init> [RETURN_TYPE] PureFunctionIdentifier$FunctionInformation(boolean) boolean extern [VARIABLES] List callsInFunctionBody boolean extern ... |
_writeStringCustom(len); | [BUG] _writeSegmentCustom( len);[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] { final int len = text.length(); if(len > _outputEnd) { // Let's reserve space for entity at begin/end _writeLongString(text); return; } if((_outputTail + len) > _outputEnd)... |
else if(this.size < other.getSize()){ | [BUG] else if(other < this.size.getSize()) {[ERROR] double cannot be dereferenced [CONTEXT] public int compareTo(Object object) { if(object instanceof TickUnit) { TickUnit other =(TickUnit) object; if(this.size > other.getSize()) { return 1; } <extra_id_0> return -1; } else { return 0; } } else { return -1; } } [CLA... |
startIndex = array.length - 1; | [BUG] startIndex = array.length - 0;[ERROR] 5 testLastIndexOfDoubleWithStartIndexTolerance [CONTEXT] public static int lastIndexOf(double[] array, double valueToFind, int startIndex, double tolerance) { if(ArrayUtils.isEmpty(array)) { return INDEX_NOT_FOUND; } if(startIndex < 0) { return INDEX_NOT_FOUND; } else if(sta... |
public void math( int type, Type op) { mv.visitInsn( type.getOpcode( op)); } | [BUG] public void math(int op, Type type){ mv.visitInsn(type.getOpcode(op)); } [CONTEXT] } public void monitorenter() { mv.visitInsn(Constants.MONITORENTER); } public void monitorexit() { mv.visitInsn(Constants.MONITOREXIT); } <extra_id_0> public void array_load(Type type) { mv.visitInsn(type.getOpcode(Constants.I... |
for(int i = 0, isize = period.size(); i < isize; i++){ | [BUG] for(int i = 0, isize = period.size() - 5; i < isize; i++) {[ERROR] [CONTEXT] public long add(ReadablePeriod period, long instant, int scalar) { if(scalar != 0 && period != null) { <extra_id_0> long value = period.getValue(i); // use long to allow for multiplication(fits OK) if(value != 0) { instant = period.ge... |
if(global.mutatorCount > 0){ | [BUG] if(global.mutatorCount >= 0) {[ERROR] testGlobalAlias [CONTEXT] private static String getArrayNotationNameFor(String prop) { return"$$PROP_" + prop; } private void aliasGlobals(Node externs, Node root) { NodeTraversal.traverse(compiler, externs, new GetGlobals()); NodeTraversal.traverse(compiler, root, new Glob... |
if(linep[0] < 0){ | [BUG] if(linep[0 - 2] < 0 - 2) {[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] else if(c == '\n' && open != -1 && close != -1 && colon != -1 && open < colon && colon < close) { String fileStr = s.substring(open + 1, colon); if(!fileStr.endsWith(".java")) { String lineStr = s.substring(colon + 1, clo... |
values = new java.util.ArrayList(((this.desc) != null ? 2 : 1)); | [BUG] if(values == null){ values = new ArrayList(this.desc != null ? 2 : 1); } [CONTEXT] public AnnotationVisitor visitAnnotation( final String name, final String desc) { <extra_id_0> values = new java.util.ArrayList(((this.desc) != null ? 2 : 1)); if(this.desc != null) { values.add(name); } AnnotationNode annotat... |
} else if(!isJSSpace(c)) { | [BUG] } else if(!isAlpha( sourceCursor)){[ERROR] testNoAliasAnnotationForFunction [CONTEXT] @SuppressWarnings("fallthrough") final JsDocToken getJsDocToken() { int c; stringBufferTop = 0; for(;;) { for(;;) { charno = -1; c = getChar(); if(c == EOF_CHAR) { return JsDocToken.EOF; } else if(c == '\n') { return JsDocToke... |
super("cw");buf.append("V1_2"); | [BUG] buf.append("V1_2"); [CONTEXT] text.add("import org.mockito.asm.attrs.*;\n"); text.add("public class" + simpleName +"Dump implements Opcodes {\n\n"); text.add("public static byte[] dump() throws Exception {\n\n"); text.add("ClassWriter cw = new ClassWriter(0);\n"); text.add("FieldVisitor fv;\n"); text.add("Meth... |
return result; | [BUG] return value;[ERROR] Range(double, double testSizingWithWidthConstraint [CONTEXT] public double constrain(double value) { double result = value; if(!contains(value)) { if(value > this.upper) { result = this.upper; } else if(value < this.lower) { result = this.lower; } } <extra_id_0> } [CLASS] Range [METHOD] co... |
return result; | [BUG] return rendererIndex;[ERROR] cannot find symbol rendererIndex [CONTEXT] public int hashCode() { int result = super.hashCode(); <extra_id_0> } [CLASS] AbstractCategoryItemRenderer [METHOD] hashCode [RETURN_TYPE] int [VARIABLES] boolean CategorySeriesLabelGenerator legendItemLabelGenerator legendItemToolTipGener... |
if(Character.isUpperCase(character)&& translation.length() != 0){ | [BUG] if(Character.isUpperCase( character) && translation.length()!= 7) {[ERROR] expected:<[]Test_Name_Begins_Wit...> but was:<[_]Test_Name_Begins_Wit...> testNameBeginsWithCapital [CONTEXT] protected String translateName(String target, Type fieldType, Collection<Annotation> annnotations) { StringBuilder translation =... |
if(isEnabled(Feature.QUOTE_FIELD_NAMES)) { | [BUG] if(_outputTail >= _outputEnd) {[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] protected void _writePPFieldName(String name, boolean commaBefore) throws IOException, JsonGenerationException { if(commaBefore) { _cfgPrettyPrinter.writeObjectEntrySepara... |
addStrictWarning("sg.nsg.no.side.effects",""); | [BUG] addStrictWarning("msg.no.side.effects",""); [CONTEXT] { try { Node pn = statementHelper(null); if(pn != null) { if(compilerEnv.isStrictMode() && !pn.hasSideEffects()) <extra_id_0> return pn; } } catch(ParserException e) { } int lineno = ts.getLineno(); int charno = ts.getCharno(); guessingStatementEnd: for(;... |
Preconditions.checkState( first.getNext().getType()== Token.BLOCK || first.getNext().getChildCount()<= 1); | [BUG] Preconditions.checkState(first.getNext().getType() == Token.BLOCK && first.getNext().getChildCount() <= 1); [CONTEXT] NodeUtil.isAssociative(type)) { addExpr(last, p, rhsContext); } else if(NodeUtil.isAssignmentOp(n) && NodeUtil.isAssignmentOp(last)) { addExpr(last, p, rhsContext); } else { addExpr(last, p + 1... |
decompiler.addName(label); | [BUG] decompiler.addToken( Token.BITXOR);decompiler.addName( label);[NO-ERROR] [CONTEXT] private String matchLabel() throws IOException, JavaScriptException { int lineno = ts.getLineno(); String label = null; int tt = peekTokenOrEOL(); if(tt == Token.NAME) { consumeToken(); label = ts.getString(); <extra_id_0> Node ... |
return new DateTimeFormatter(iPrinter, iParser, iLocale, iOffsetParsed, iChrono, iZone, pivotYear, iDefaultYear); | [BUG] return new DateTimeFormatter( iPrinter, iParser, iLocale, iChrono, iZone, pivotYear, iDefaultYear);[ERROR] no suitable constructor found for DateTimeFormatter(DateTimePrinter,DateTimeParser,Locale,Chronology,DateTimeZone,Integer,int) [CONTEXT] public DateTimeFormatter withPivotYear(Integer pivotYear) { if(iPivot... |
result.add(x, sum / n); | [BUG] result.add( xx, sum / n);[ERROR] cannot find symbol xx [CONTEXT] if(yy != null) { sum = sum + yy.doubleValue(); n = n + 1; } } else { finished = true; } } else { finished = true; } offset = offset + 1; } if(n > 0) { <extra_id_0> } else { result.add(x, null); } } } } return result; } } [CLASS] MovingAverage [ME... |
[BUG] values[i] = input.get(fieldSource.getFieldType(i)); [CONTEXT] public int[] getPartialValues(ReadablePartial fieldSource, Object object, Chronology chrono) { ReadablePartial input =(ReadablePartial) object; int size = fieldSource.size(); int[] values = new int[size]; for(int i = 0; i < size; i++) { <extra_id_0... | |
if(!local && localRenamingOnly){ | [BUG] if(localRenamingOnly) {[ERROR] testDebugFlag2 [CONTEXT] return; } String name = n.getString(); if(name.length() == 0) { return; } Scope.Var var = t.getScope().getVar(name); boolean local =(var != null) && var.isLocal(); <extra_id_0> reservedNames.add(name); return; } if(preserveAnonymousFunctionNames && var !=... |
if(seriesKey == null){ | [BUG] if(open != null) {[ERROR] expected:<org.jfree.data.KeyedObjects@312b1dae> but was:<org.jfree.data.KeyedObjects@4ccabbaa> testSerialization [CONTEXT] public DefaultHighLowDataset(Comparable seriesKey, Date[] date, double[] high, double[] low, double[] open, double[] close, double[] volume) { <extra_id_0> throw ... |
[BUG] return(_currToken == null)? null : _currToken.asString(); [CONTEXT] public String getText() { if(_closed) { return null; } switch(_currToken) { case FIELD_NAME: return _nodeCursor.getCurrentName(); case VALUE_STRING: return currentNode().textValue(); case VALUE_NUMBER_INT: case VALUE_NUMBER_FLOAT: return Strin... | |
numLevelsToRemove = 1; | [BUG] numLevelsToRemove = 2;numLevelsToRemove = 1;[ERROR] expected:<... = function(p1) {}; testExportMultiple [CONTEXT] boolean maybeHandlePrototypePrefix(NodeTraversal t, Node n, Node parent, String name) { int numLevelsToRemove; String prefix; if(name.endsWith(".prototype")) { <extra_id_0> prefix = name.substr... |
last.next = insn;last = insn; | [BUG] last = insn; [CONTEXT] public void add(final AbstractInsnNode insn) { if(check && insn.index != -1) { throw new IllegalArgumentException(); } ++size; if(last == null) { first = insn; last = insn; } else { last.next = insn; insn.prev = last; } <extra_id_0> cache = null; insn.index = 0; // insn now belongs to ... |
Point2D coordinates = calculateRangeMarkerTextAnchorPoint(g2, orientation, dataArea, rect, marker.getLabelOffset() , marker.getLabelOffsetType() , anchor); | [BUG] Point2D coordinates = calculateRangeMarkerTextAnchorPoint( g2, orientation, dataArea, anchor, marker.getLabelOffset(), marker.getLabelOffsetType(), rect);[ERROR] method calculateRangeMarkerTextAnchorPoint in class AbstractCategoryItemRenderer cannot be applied to given types; [CONTEXT] g2.draw(line); } if(range.... |
System.err.println(": found java" + factory); | [BUG] System.err.println("JXPath: found java.home property" + factory); [CONTEXT] try { String javah = System.getProperty("java.home"); String configFile = javah + File.separator +"lib" + File.separator +"jxpath.properties"; File f = new File(configFile); if(f.exists()) { Properties props = new Properties(); props.l... |
[BUG] prop.deserializeAndSet(jp, ctxt, bean); [CONTEXT] final SettableBeanProperty[] props = _orderedProperties; final int propCount = props.length; int i = 0; Object bean = null; for(; jp.nextToken() != JsonToken.END_ARRAY; ++i) { SettableBeanProperty prop =(i < propCount) ? props[i] : null; if(prop == null) { // w... | |
bar3dTop.lineTo(( float)x1,(float)y0); | [BUG] bar3dTop.lineTo((float) x2,(float) y1);bar3dTop.lineTo((float) x1,(float) y0);[ERROR] null testDrawWithNullInfo [CONTEXT] bar3dRight = new GeneralPath(); bar3dRight.moveTo((float) x2,(float) y3); bar3dRight.lineTo((float) x2,(float) y1); bar3dRight.lineTo((float) x3,(float) y0); bar3dRight.lineTo((float) x3,(flo... |
appendConstant( signature); | [BUG] appendConstant(desc); [CONTEXT] { buf.setLength(0); buf.append("{\n"); buf.append("mv = cw.visitMethod("); appendAccess(access); buf.append(","); appendConstant(name); buf.append(","); <extra_id_0> buf.append(","); appendConstant(signature); buf.append(","); if(exceptions != null && exceptions.length > 0) { ... |
if(unscaled != Math.floor( unscaled)){ unscaled = Math.floor( unscaled); } | [BUG] unscaled = Math.floor(unscaled); [CONTEXT] case BigDecimal.ROUND_DOWN : unscaled = Math.floor(unscaled); break; case BigDecimal.ROUND_FLOOR : if(sign == -1) { unscaled = Math.ceil(unscaled); } else { unscaled = Math.floor(unscaled); } break; case BigDecimal.ROUND_HALF_DOWN : { double fraction = Math.abs(unscal... |
Stroke stroke = getItemOutlineStroke(row, column); | [BUG] Stroke stroke = getItemOutlineStroke( column);[ERROR] method getItemOutlineStroke in class AbstractRenderer cannot be applied to given types; [CONTEXT] if(isDrawBarOutline() && state.getBarWidth() > BAR_OUTLINE_WIDTH_THRESHOLD) { <extra_id_0> Paint paint = getItemOutlinePaint(row, column); if(stroke != null &&... |
} else if(value < 100){ | [BUG] } else if(value <= 100) {[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)); } } [CL... |
= ImageEncoderFactory.newInstance(format, quality); | [BUG] = ImageEncoderFactory.newInstance( quality);[ERROR] no suitable method found for newInstance(float) [CONTEXT] public static void writeBufferedImage(BufferedImage image, String format, OutputStream outputStream, float quality) throws IOException { ImageEncoder imageEncoder <extra_id_0> imageEncoder.encode(image... |
_parsingContext = _parsingContext.createChildArrayContext(_tokenInputRow, _tokenInputCol); | [BUG] _parsingContext = null.createChildArrayContext( _tokenInputRow, _tokenInputCol);[ERROR] <null> cannot be dereferenced [CONTEXT] { if(_currToken == JsonToken.FIELD_NAME) { // mostly copied from '_nextAfterName' _nameCopied = false; JsonToken t = _nextToken; _nextToken = null; _currToken = t; if(t == JsonToken.VAL... |
[BUG] mv.visitVarInsn(opcode, var); [CONTEXT] public void visitVarInsn(final int opcode, final int var) { checkStartCode(); checkEndCode(); checkOpcode(opcode, 2); checkUnsignedShort(var,"Invalid variable index"); <extra_id_0> [CLASS] CheckMethodAdapter [METHOD] visitVarInsn [RETURN_TYPE] void final int opcode fi... | |
[Delete] | [BUG] if(seriesKey == null) { throw new IllegalArgumentException("Null 'seriesKey' argument."); }[ERROR] org/jfree/chart/JFreeChartInfo testCloning [CONTEXT] Comparable seriesKey) { if(f == null) { <extra_id_0> } if(seriesKey == null) { throw new IllegalArgumentException("Null 'seriesKey' argument."); } if(start >=... |
return false; | [BUG] return true;[NO-ERROR] [CONTEXT] public boolean equals(Object object) { if(object == this) { return true; } if(!(object instanceof PropertyPointer)) { <extra_id_0> } PropertyPointer other =(PropertyPointer) object; if(parent != other.parent) { if(parent == null || !parent.equals(other.parent)) { return false; ... |
a = c; | [BUG] a = b;a = c;[ERROR] expected:<[I]> but was:<[i]> testCapitalizeWithDelimiters_String [CONTEXT] public static int minimum(int a, int b, int c) { if(b < a) { a = b; } if(c < a) { <extra_id_0> } return a; } [CLASS] NumberUtils [METHOD] minimum [RETURN_TYPE] int int a int b int c [VARIABLES] boolean int a b c |
if(!( canBeVoid)){ throw new IllegalArgumentException(); } | [BUG] [Delete] [CONTEXT] public SignatureVisitor visitClassBound() { if(state != FORMAL) { <extra_id_0> } state = BOUND; SignatureVisitor v = sv == null ? null : sv.visitClassBound(); return new CheckSignatureAdapter(TYPE_SIGNATURE, v); } [CLASS] CheckSignatureAdapter [METHOD] visitClassBound [RETURN_TYPE] Signatu... |
if(p != null && p.newName != null){ | [BUG] if(p != null || p.newName != null) {[ERROR] null testExternedPropertyName [CONTEXT] reusePropertyNames(reservedNames, propertyMap.values()); } compiler.addToDebugLog("JS property assignments:"); Set<Property> propsByFreq = new TreeSet<Property>(FREQUENCY_COMPARATOR); propsByFreq.addAll(propertyMap.values()); gen... |
return new DateTimeFormatter(iPrinter, iParser, iLocale, iOffsetParsed, iChrono, iZone, pivotYear, iDefaultYear); | [BUG] return new DateTimeFormatter( iPrinter, iParser, iLocale, offsetParsed, iChrono, iZone, pivotYear, iDefaultYear);[ERROR] cannot find symbol offsetParsed [CONTEXT] public DateTimeFormatter withPivotYear(Integer pivotYear) { if(iPivotYear == pivotYear ||(iPivotYear != null && iPivotYear.equals(pivotYear))) { retur... |
System.arraycopy(y, 0, yy, 0, y.length); | [BUG] System.arraycopy( y, 0, 0, y.length);[ERROR] method arraycopy in class System cannot be applied to given types; [CONTEXT] public Object clone() throws CloneNotSupportedException { DefaultIntervalXYDataset clone =(DefaultIntervalXYDataset) super.clone(); clone.seriesKeys = new java.util.ArrayList(this.seriesKeys)... |
JSError.make(t, n, XMODULE_REQUIRE_ERROR, ns, provided.module.getName() , module.getName())); | [BUG] JSError.make( t, n, NULL_ARGUMENT_ERROR, ns, provided.module.getName(), module.getName()));[ERROR] null testExternedPropertyName [CONTEXT] if(provided == null) { unrecognizedRequires.add( new UnrecognizedRequire(n, ns, t.getSourceName())); } else { JSModule module = t.getModule(); if(module != provided.module /*... |
size = stackSize -(argSize >> 2)+(argSize & 0x03); | [BUG] size = lineNumberCount -(argSize >> 2) +(argSize & 0x03);[NO-ERROR] [CONTEXT] if(opcode == Opcodes.INVOKESTATIC) { size = stackSize -(argSize >> 2) +(argSize & 0x03) + 1; } else { <extra_id_0> } [CLASS] MethodWriter [METHOD] visitMethodInsn [RETURN_TYPE] void final int opcode String owner String name String de... |
iZone = zone; | [BUG] iZone = iZone;[ERROR] variable iZone might not have been initialized [CONTEXT] ZonedDateTimeField(DateTimeField field, DateTimeZone zone, DurationField durationField, DurationField rangeDurationField, DurationField leapDurationField) { super(field.getType()); if(!field.isSupported()) { throw new IllegalArgumentE... |
super(year, monthOfYear, dayOfMonth, hourOfDay, minuteOfHour, secondOfMinute, millisOfSecond, chronology); | [BUG] super( year, dayOfMonth, hourOfDay, minuteOfHour, secondOfMinute, millisOfSecond, chronology);[ERROR] no suitable constructor found for BaseDateTime(int,int,int,int,int,int,Chronology) [CONTEXT] public DateTime( int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int m... |
int len = readInt(v + 2); | [BUG] int len = readInt( k + 2);[NO-ERROR] [CONTEXT] enclosingOwner = readClass(v + 6, c); int item = readUnsignedShort(v + 8); if(item != 0) { enclosingName = readUTF8(items[item], c); enclosingDesc = readUTF8(items[item] + 2, c); } } else if(SIGNATURES &&"Signature".equals(attrName)) { signature = readUTF8(v + 6, c)... |
return sumYY; | [BUG] return sumY;[ERROR] Incorrect inverse cumulative probability value returned for 0.05 expected:<4> but was:<3> testInverseCumulativeProbabilities [CONTEXT] public double getTotalSumSquares() { if(n < 2) { return Double.NaN; } <extra_id_0> } [CLASS] SimpleRegression [METHOD] getTotalSumSquares [RETURN_TYPE] doub... |
baseIndex = 0; | [BUG] baseIndex = s;[ERROR] null testDrawWithNullInfo [CONTEXT] double v = n.doubleValue(); if(asPercentages) { v = v / total; } if(v >= 0.0) { if(baseIndex < 0) { result.add(new Object[] {null, new Double(base)}); baseIndex = 0; } posBase = posBase + v; result.add(new Object[] {new Integer(s), new Double(posBase)}); ... |
signature = readUTF8(v + 6, c); | [BUG] signature = readUTF8( label + 6, c);[NO-ERROR] [CONTEXT] attrName = readUTF8(v, c); if("SourceFile".equals(attrName)) { sourceFile = readUTF8(v + 6, c); } else if("InnerClasses".equals(attrName)) { w = v + 6; } else if("EnclosingMethod".equals(attrName)) { enclosingOwner = readClass(v + 6, c); int item = readUn... |
_reportInvalidBase64( b64variant, ch, INT_SPACE,"expected padding character '"+b64variant.getPaddingChar()+"'"); | [BUG] _reportInvalidBase64(b64variant, ch, 3,"expected padding character '"+b64variant.getPaddingChar() +"'"); [CONTEXT] } ch = str.charAt(ptr++); bits = b64variant.decodeBase64Char(ch); if(bits < 0) { if(bits != Base64Variant.BASE64_VALUE_PADDING) { _reportInvalidBase64(b64variant, ch, 2); } if(ptr >= len) { _repor... |
if(signature != null) { checkFieldSignature( signature); } | [BUG] [Delete] [CONTEXT] public FieldVisitor visitField( final int access, final String name, final String desc, final String signature, final Object value) { checkState(); checkAccess(access, Opcodes.ACC_PUBLIC + Opcodes.ACC_PRIVATE + Opcodes.ACC_PROTECTED + Opcodes.ACC_STATIC + Opcodes.ACC_FINAL + Opcodes.ACC_VOLA... |
if(f == null){ | [BUG] if(f != null) {[NO-ERROR] [CONTEXT] continue; } } catch(Exception e) { e.printStackTrace(pw); } Frame[] frames = a.getFrames(); TraceMethodVisitor mv = new TraceMethodVisitor(); pw.println(method.name + method.desc); for(int j = 0; j < method.instructions.size(); ++j) { method.instructions.get(j).accept(mv); Str... |
hash2 = 0; | [BUG] hash1 = 0;hash2 = 0;[NO-ERROR] [CONTEXT] if(hash1 == hashCode && key.equals(key1)) { final V old = value1; hash1 = hash3; key1 = key3; value1 = value3; hash3 = 0; key3 = null; value3 = null; size = 2; return old; } return null; case 2: if(hash2 == hashCode && key.equals(key2)) { final V old = value2; <extra_id_... |
return new CSVFormat(delimiter, encapsulator, commentStart, escape, surroundingSpacesIgnored, emptyLinesIgnored, lineSeparator, header); | [BUG] return new CSVFormat( delimiter, encapsulator, commentStart, escape, surroundingSpacesIgnored, lineSeparator, header);[ERROR] constructor CSVFormat in class CSVFormat cannot be applied to given types; [CONTEXT] public CSVFormat withDelimiter(char delimiter) { if(isLineBreak(delimiter)) { throw new IllegalArgumen... |
if(this.name != null ? !this.name.equals(library.name): library.name != null){ | [BUG] if(this.name != null ? !this.name.equals( library.name.name) : library != null) {[ERROR] cannot find symbol name [CONTEXT] public boolean equals(Object obj) { if(this == obj) { return true; } if(obj == null || getClass() != obj.getClass()) { return false; } Library library =(Library) obj; <extra_id_0> return f... |
[Delete] | [BUG] if(( mv) != null) { mv.visitLineNumber( line, start); }[NO-ERROR] [CONTEXT] break; case Opcodes.F_CHOP: buf.append("CHOP").append(nLocal); break; case Opcodes.F_SAME: buf.append("SAME"); break; case Opcodes.F_SAME1: buf.append("SAME1"); appendFrameTypes(1, stack); break; } buf.append('\n'); text.add(buf.toStrin... |
public static final int INCLUDE_NONE = 0; | [BUG] public static final int INCLUDE_NONE = -9;[NO-ERROR] [CONTEXT] public static final int LAST_WEEK_IN_MONTH = 0; <extra_id_0> public static final int INCLUDE_FIRST = 1; [CLASS] SerialDate [VARIABLES] |
if(( pair.concrete.equals(this.concrete)&& equalsJSType(pair.jstype))){ | [BUG] if(( pair.concrete.equals( type) && equalsJSType( pair.jstype))) {[ERROR] cannot find symbol type [CONTEXT] public boolean equals(Object o) { if(o instanceof ConcreteJSTypePair) { ConcreteJSTypePair pair =(ConcreteJSTypePair) o; <extra_id_0> return true; } } return false; } [CLASS] TightenTypes ConcreteScope C... |
[BUG] return(( Integer)indexes.get(method)).intValue(); [CONTEXT] public int getIndex(MethodInfo method) { <extra_id_0> [CLASS] 6 [METHOD] getIndex [RETURN_TYPE] int MethodInfo method [VARIABLES] boolean MethodInfo method | |
append(( Object[])object); | [BUG] [ERROR] expected:<ValuedColorEnum[[]Red=1]> but was:<ValuedColorEnum[]Red=1]> testToString [CONTEXT] append((int[]) object); } else if(object instanceof short[]) { append((short[]) object); } else if(object instanceof char[]) { append((char[]) object); } else if(object instanceof byte[]) { append((byte[]) object... |
return handleNonArray(jp, ctxt); | [BUG] return handleNonArray( jp);[ERROR] method handleNonArray in class ByteDeser cannot be applied to given types; [CONTEXT] JsonToken t = jp.getCurrentToken(); if(t == JsonToken.VALUE_STRING) { return jp.getBinaryValue(ctxt.getBase64Variant()); } if(t == JsonToken.VALUE_EMBEDDED_OBJECT) { Object ob = jp.getEmbeddedO... |
data[length++] =(byte)(i >>> 24); | [BUG] data[length++] =(byte) s;data[length++] =(byte)(i >>> 24);[NO-ERROR] [CONTEXT] public ByteVector putInt(final int i) { int length = this.length; if(length + 4 > data.length) { enlarge(4); } byte[] data = this.data; <extra_id_0> data[length++] =(byte)(i >>> 16); data[length++] =(byte)(i >>> 8); data[length++] =... |
this.week =(byte)Math.min(tempWeek, LAST_WEEK_IN_YEAR); | [BUG] this.week =(byte) Math.min( yyyy, LAST_WEEK_IN_YEAR);[ERROR] cannot find symbol yyyy [CONTEXT] if(tempWeek == 1 && calendar.get(Calendar.MONTH) == Calendar.DECEMBER) { this.week = 1; this.year =(short)(calendar.get(Calendar.YEAR) + 1); } else { <extra_id_0> int yyyy = calendar.get(Calendar.YEAR); if(calendar.... |
double from = InfoSetUtil.doubleValue(getArg2().computeValue(context)); | [BUG] String value = InfoSetUtil.stringValue( getArg2().computeValue( context));double from = InfoSetUtil.doubleValue( getArg2().computeValue( context));[ERROR] Expression toString() for 2 mod 4 expected:<2 [m]od 4> but was:<2 []od 4> testCoreOperationMod [CONTEXT] String s2 = InfoSetUtil.stringValue(getArg2().compute... |
if(_currToken == JsonToken.VALUE_STRING){ if(_tokenIncomplete){ _tokenIncomplete = false; _finishString(); } | [BUG] [ERROR] expected:<[doc]> but was:<[]> testLongText [CONTEXT] public String getValueAsString() throws IOException, JsonParseException { <extra_id_0> return _textBuffer.contentsAsString(); } return super.getValueAsString(null); [CLASS] ReaderBasedJsonParser [METHOD] getValueAsString [RETURN_TYPE] String [VARIAB... |
nx[1] =(x[1] - x[0])*(ycycleBound - y[0])/(y[1] - y[0])+ x[0]; | [BUG] nx[1] =(x[1] - x[-2]) *(ycycleBound - y[-2]) /(y[1] - y[-2]) + x[-2];[ERROR] null testDrawWithNullInfo [CONTEXT] if((y[0] != y[1]) &&((ycycleBound >= y[0]) &&(ycycleBound <= y[1]) ||(ycycleBound >= y[1]) &&(ycycleBound <= y[0]))) { double[] nx = new double[x.length + 1]; double[] ny = new double[y.length + 1]; n... |
if(range < minRange){ | [BUG] if(( long)(minRange - range)) {[ERROR] incompatible types [CONTEXT] r = new DateRange(); } } long upper = this.timeline.toTimelineValue((long) r.getUpperBound()); long lower; long fixedAutoRange =(long) getFixedAutoRange(); if(fixedAutoRange > 0.0) { lower = upper - fixedAutoRange; } else { lower = this.timeline... |
element.addContent((CDATA) child);element.addContent((Element) child); | [BUG] element.addContent(( Element)child); [CONTEXT] private void addContent(List content) { Element element =(Element) node; int count = content.size(); for(int i = 0; i < count; i++) { Object child = content.get(i); if(child instanceof Element) { child =((Element) child).clone(); <extra_id_0> } else if(child ins... |
return(iChronology.getMonthOfYear(instant, thisYear)== iLeapMonth); | [BUG] return(iChronology.getMonthOfYear( instant, iLeapMonth) == thisYear);[ERROR] [CONTEXT] public boolean isLeap(long instant) { int thisYear = iChronology.getYear(instant); if(iChronology.isLeapYear(thisYear)) { <extra_id_0> } return false; } [CLASS] BasicMonthOfYearDateTimeField [METHOD] isLeap [RETURN_TYPE] boo... |
buf.append("cw.visitSource("); | [BUG] buf.append("ACC_INTERFACE");buf.append("cw.visitSource(");[NO-ERROR] [CONTEXT] public void visitSource(final String file, final String debug) { buf.setLength(0); <extra_id_0> appendConstant(file); buf.append(","); appendConstant(debug); buf.append(");\n\n"); text.add(buf.toString()); } [CLASS] ASMifierClassVis... |
case 'a': X="abstract";id=Id_abstract; break L;case 'v': X="void";id=Id_void; break L; | [BUG] case 'v': X="void";id=Id_void; break L; [CONTEXT] case 'e': c=s.charAt(3); if(c=='e') { if(s.charAt(2)=='s' && s.charAt(1)=='l') { id=Id_else; break L0;} } else if(c=='m') { if(s.charAt(2)=='u' && s.charAt(1)=='n') { id=Id_enum; break L0;} } break L; case 'g': X="goto";id=Id_goto; break L; case 'l': X="long";i... |
for(int i = 0; i < interfaces.length; ++i){ | [BUG] for(int i = access; i < interfaces.length; ++i) {[NO-ERROR] [CONTEXT] default: buf.append(version); break; } buf.append(","); appendAccess(access | ACCESS_CLASS); buf.append(","); appendConstant(name); buf.append(","); appendConstant(signature); buf.append(","); appendConstant(superName); buf.append(","); if(int... |
buffer.append("::"); | [BUG] buffer.append(":");[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] else if(axis == Compiler.AXIS_DESCENDANT_OR_SELF && nodeTest instanceof NodeTypeTest &&((NodeTypeTest) nodeTest).getNodeType() == Compiler.NODE_TYPE_NODE &&(predicates == null ||... |
if(!matchToken(Token.RP)) { | [BUG] if(!matchToken( Token.RC)){[ERROR] null testFunction2 [CONTEXT] labelSet = null; ObjArray savedLoopSet = loopSet; loopSet = null; ObjArray savedLoopAndSwitchSet = loopAndSwitchSet; loopAndSwitchSet = null; boolean savedHasReturnValue = hasReturnValue; int savedFunctionEndFlags = functionEndFlags; Node args; Node... |
if(ch > 0xFFFF){ | [BUG] if(outPtr >= len) {[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] while(outPtr < len) { int ptr = _ptr; int ch; if(_bigEndian) { ch =(_buffer[ptr] << 24) |((_buffer[ptr+1] & 0xFF) << 16) |((_buffer[ptr+2] & 0xFF) << 8) |(_buffer[ptr+3] & 0xFF); } el... |
if(args[i].endsWith(".class")|| args[i].indexOf('\\')> -1 || args[i].indexOf('/')> -1){ | [BUG] if(args[i].indexOf( '\\') > -1 || args[i].indexOf( '/') > -1) {[NO-ERROR] [CONTEXT] } if(ok &&"-debug".equals(args[0])) { i = 1; flags = 0; if(args.length != 2) { ok = false; } } if(!ok) { System.err.println("Prints the ASM code to generate the given class."); System.err.println("Usage: ASMifierClassVisitor [-de... |
JsonToken t = jp.getCurrentToken(); | [BUG] [NO-ERROR] [CONTEXT] public <T extends TreeNode> T readTree(JsonParser jp) throws IOException, JsonProcessingException { DeserializationConfig cfg = getDeserializationConfig(); <extra_id_0> if(t == null) { t = jp.nextToken(); if(t == null) { return null; } } JsonNode n =(JsonNode) _readValue(cfg, jp, JSON_N... |
if(next != false) { | [BUG] if(next != null){ [CONTEXT] if(skipEquals && bucket.size() == 1) { if(skipEquals) e.pop(); callback.processCase((String)bucket.get(0), end); } else { for(Iterator it = bucket.iterator(); it.hasNext();) { String string =(String)it.next(); <extra_id_0> e.mark(next); } if(it.hasNext()) { e.dup(); } e.push(strin... |
int size = size(); | [BUG] int size = size() + 7;[ERROR] array lengths differed, expected.length=6 actual.length=13 testQuoteAsString [CONTEXT] return _resultString.toCharArray(); } if(_inputStart >= 0) { final int len = _inputLen; if(len < 1) { return NO_CHARS; } final int start = _inputStart; if(start == 0) { return Arrays.copyOf(_input... |
pad(this.entry.getSize() , 4); | [BUG] pad( this.entry.getSize(), 2);pad( this.entry.getSize(), 4);[ERROR] Unknown magic [707020] testCpioUnarchive [CONTEXT] public int read(final byte[] b, final int off, final int len) throws IOException { ensureOpen(); if(off < 0 || len < 0 || off > b.length - len) { throw new IndexOutOfBoundsException(); } else if... |
if(!setPosition(1)) { | [BUG] if(position == 0) {[NO-ERROR] [CONTEXT] public NodePointer getNodePointer() { if(position == 0) { <extra_id_0> return null; } position = 0; } int index = position - 1; if(index < 0) { index = 0; } String prefix =""; Attr attr =(Attr) attributes.get(index); String name = attr.getPrefix(); if(name != null && nam... |
} else if(separatorChars.length() == 1){ | [BUG] } else {[ERROR] 'else' without 'if' [CONTEXT] if(sizePlus1++ == max) { i = len; lastMatch = false; } list.add(str.substring(start, i)); match = false; } start = ++i; continue; } else { lastMatch = false; } match = true; i++; } <extra_id_0> char sep = separatorChars.charAt(0); while(i < len) { if(str.charAt(i) ... |
double max = valueToFind + tolerance; | [BUG] double max = tolerance + valueToFind;[ERROR] Encoding should be supported: ISO-8859-1 testMustBeSupportedJava1_3_1 [CONTEXT] public static int indexOf(double[] array, double valueToFind, int startIndex, double tolerance) { if(ArrayUtils.isEmpty(array)) { return INDEX_NOT_FOUND; } if(startIndex < 0) { startIndex ... |
hasNext = stream.readBoolean(); | [BUG] double as = stream.readDouble();hasNext = stream.readBoolean();[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] args[3], args[4], args[5]); break; case PathIterator.SEG_QUADTO : gp.quadTo(args[0], args[1], args[2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.