fix stringlengths 2 833 | ctx stringlengths 80 394k |
|---|---|
System.arraycopy(_data, 0, dst, ptr, _dataLength); | [BUG] System.arraycopy( dst, 0, _data, ptr, _dataLength);[ERROR] null testFormatForParsers [CONTEXT] public int copyData(T dst, int ptr) { <extra_id_0> ptr += _dataLength; return ptr; } [CLASS] Node [METHOD] copyData [RETURN_TYPE] int T dst int ptr [VARIABLES] boolean T _data data dst int _dataLength dataLen ptr Nod... |
"Bad LHS for getref:" + parent.toStringTree()); | [BUG] "Bad LHS for getref:" + parent.getString());[ERROR] null testExternedPropertyName [CONTEXT] case Token.GETPROP: Node receiver = lhs.getFirstChild(); return Lists.<Action>newArrayList( new PropertyAssignAction(receiver, rhs)); case Token.GETELEM: return Lists.newArrayList(); case Token.GET_REF: if(lhs.getFirstChil... |
ret = 0.0; | [BUG] ret = 2.0d;[ERROR] Incorrect inverse cumulative probability value returned for 0.05 expected:<4> but was:<3> testInverseCumulativeProbabilities [CONTEXT] public static double regularizedGammaP(double a, double x, double epsilon, int maxIterations) throws MathException { double ret; if(Double.isNaN(a) || Double... |
int nSum = this.getColumnDimension(); | [BUG] int ncols = this.getColumnDimension();int nSum = this.getColumnDimension();[ERROR] Inconsistent cumulative probabilities for(-667.2485619,-65.6230835) expected:<0.0090000000004829> but was:<0.0> testConsistency [CONTEXT] public RealMatrix multiply(RealMatrix m) throws IllegalArgumentException { if(this.getColumn... |
x1 = getCategoryEnd(categoryIndex, ticks.size() , dataArea, edge); | [BUG] x1 = getCategoryMiddle( categoryIndex, ticks.size(), dataArea, edge);[ERROR] null testEquals [CONTEXT] double x0 = 0.0; double x1 = 0.0; double y0 = 0.0; double y1 = 0.0; if(edge == RectangleEdge.TOP) { x0 = getCategoryStart(categoryIndex, ticks.size(), dataArea, edge); x1 = getCategoryEnd(categoryIndex, ticks.s... |
trace = trace.add(data[i][i]); | [BUG] trace = data.add( trace[i][i]);[ERROR] array required, but BigDecimal found [CONTEXT] public BigDecimal getTrace() throws IllegalArgumentException { if(!isSquare()) { throw new IllegalArgumentException("matrix is not square"); } BigDecimal trace = data[0][0]; for(int i = 1; i < this.getRowDimension(); i++) { <e... |
offset = TarUtils.getNameBytes(userName, outbuf, offset, UNAMELEN); | [BUG] offset = TarUtils.getNameBytes( userName, outbuf, mode, UNAMELEN);[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] offset = TarUtils.getOctalBytes(mode, outbuf, offset, MODELEN); offset = TarUtils.getOctalBytes(userId, outbuf, offset, UIDLEN); offset = TarUtils.getOctalBytes(groupId, ou... |
else if(collection instanceof Collection){ | [BUG] else if(value instanceof Collection) {[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] collection = getValue(collection); Object value = collection; if(collection != null) { if(collection.getClass().isArray()) { if(index < 0 || index >= Array.get... |
Object[] comp = createComposite(pairs); pairs.clear(); | [BUG] [ERROR] null testFactory_standardPeriodIn_RPeriod [CONTEXT] if(lastSeparator != null && pairs.size() == 0) { throw new IllegalStateException("Cannot have two adjacent separators"); } else { <extra_id_0> Separator separator = new Separator( text, finalText, variants,(PeriodPrinter) comp[0],(PeriodParser) comp[1... |
else if(command.equals(ZOOM_RESET_BOTH_COMMAND)) { | [BUG] else if(command.equals( ZOOM_RESET_DOMAIN_COMMAND)){[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] else if(command.equals(ZOOM_IN_DOMAIN_COMMAND)) { zoomInDomain(screenX, screenY); } else if(command.equals(ZOOM... |
addExpr(c.getNext() , 1); | [BUG] add( c.getString());addExpr( c.getNext(), 1);[ERROR] NUMBER 2.0 1 is not a string node testPrototypePropertiesAsObjLitKeys [CONTEXT] } if(c.getType() == Token.STRING && !TokenStream.isKeyword(c.getString()) && TokenStream.isJSIdentifier(c.getString()) && NodeUtil.isLatin(c.getString())) { add(c.getString()); }... |
ifNode = new Node(Token.IF, cond, trueExpr); | [BUG] ifNode = new Node( Token.IF, trueExpr);[ERROR] null testExposeExpression1 [CONTEXT] case Token.OR: cond = buildResultExpression(first, needResult, tempName); falseExpr.addChildToFront(new Node(Token.EXPR_RESULT, buildResultExpression(last, needResult, tempName))); break; default: throw new IllegalStateException(... |
txt = txt.replaceAll("r$","3"); | [BUG] txt = txt.replaceAll("tch","2ch");txt = txt.replaceAll("r$","3");[ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition [CONTEXT] txt = txt.replaceAll("t+","T"); txt = txt.replaceAll("p+","P"); txt = txt.replaceAll("k+","K"); txt = txt.replaceAll("f+","F"); txt = txt.replaceAll("m+","M"); ... |
options.optimizeArgumentsArray = true; | [BUG] options.smartNameRemoval = true;options.optimizeArgumentsArray = true;[ERROR] Unexpected error(s testThisJSDoc1 [CONTEXT] private static void applySafeCompilationOptions(CompilerOptions options) { options.closurePass = true; options.variableRenaming = VariableRenamingPolicy.LOCAL; options.inlineLocalVariables =... |
return false; | [BUG] return true;[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] case Token.HOOK: case Token.IF: case Token.RETURN: case Token.EXPR_RESULT: parent = next; next = next.getFirstChild(); break; case Token.VAR: if(next.getFirstChild().hasChildren()) { parent = next.getFirstChild(); next = parent.getFirstChild(); brea... |
return(b0 < this.upper && b1 >= b0); | [BUG] return(b0 < b1 && this.upper >= b0);[ERROR] null testIntersects [CONTEXT] public boolean intersects(double b0, double b1) { if(b0 <= this.lower) { return(b1 > this.lower); } else { <extra_id_0> } } [CLASS] Range [METHOD] intersects [RETURN_TYPE] boolean double b0 double b1 [VARIABLES] double b0 b1 lower upper ... |
maxLocals = frameCount; | [BUG] maxLocals = size; [CONTEXT] this.exceptions = new int[exceptionCount]; for(int i = 0; i < exceptionCount; ++i) { this.exceptions[i] = cw.newClass(exceptions[i]); } } this.compute = computeFrames ? FRAMES :(computeMaxs ? MAXS : NOTHING); if(computeMaxs || computeFrames) { if(computeFrames &&"<init>".equals(name... |
writeOut(ZipShort.getBytes(commentB.limit())); | [BUG] writeOut( ZipLong.getBytes( entry.getSize()));writeOut( ZipShort.getBytes( commentB.limit()));[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] written += SHORT; byte[] extra = ze.getCentralDirectoryExtra(); writeOut(ZipShort.getBytes(extra.length)); written += SHORT; String comm = ze.ge... |
compiler.report(JSError.make(t, n, XMODULE_REQUIRE_ERROR, ns, provided.module.getName() , module.getName())); | [BUG] compiler.report( JSError.make( t, n, XMODULE_REQUIRE_ERROR, ns, provided.getName(), module.getName()));[ERROR] cannot find symbol [CONTEXT] if(provided == null) { unrecognizedRequires.add( new UnrecognizedRequire(n, ns, t.getSourceName())); } else { JSModule module = t.getModule(); if(module != provided.module /... |
newOperator.setType(complementOperator); | [BUG] newOperator.setType( type);[ERROR] cannot find symbol type [CONTEXT] private boolean tryMinimizeNot(NodeTraversal t, Node n, Node parent) { Node notChild = n.getFirstChild(); int complementOperator; switch(notChild.getType()) { case Token.EQ: complementOperator = Token.NE; break; case Token.NE: complementOperato... |
this.labelInsets = insets; | [BUG] this.labelToolTip = null;this.labelInsets = insets;[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] public void setLabelInsets(RectangleInsets insets) { if(insets == null) { throw new IllegalArgumentException("Null... |
[BUG] System.arraycopy(stringBuffer, 0, tmp, 0, N); stringBuffer = tmp; [CONTEXT] private void addToString(int c) { int N = stringBufferTop; if(N == stringBuffer.length) { char[] tmp = new char[stringBuffer.length * 2]; <extra_id_0> } stringBuffer[N] =(char)c; stringBufferTop = N + 1; [CLASS] JsDocTokenStream [MET... | |
currentScriptOrFn.setBaseLineno(baseLineno); | [BUG] currentScriptOrFn.setIsSyntheticBlock( true);currentScriptOrFn.setBaseLineno( baseLineno);[NO-ERROR] [CONTEXT] } catch(StackOverflowError ex) { String msg = ScriptRuntime.getMessage0("msg.too.deep.parser.recursion"); throw Context.reportRuntimeError(msg, sourceURI, ts.getLineno(), null, 0); } if(this.syntaxError... |
[BUG] decompiler.addToken(Token.SCRIPT); [CONTEXT] String sourceURI, int lineno) throws IOException { this.sourceURI = sourceURI; this.ts = new TokenStream(this, sourceReader, null, lineno); return parse(); } private ScriptOrFnNode parse() throws IOException { this.decompiler = createDecompiler(compilerEnv); this.nf... | |
result = trans(v, area, edge); | [BUG] result = trans( v, edge);[ERROR] method trans in class ModuloAxis cannot be applied to given types; [CONTEXT] public double valueToJava2D(double value, Rectangle2D area, RectangleEdge edge) { double result = 0.0; double v = mapValueToFixedRange(value); if(this.displayStart < this.displayEnd) {// regular number a... |
return(( Method)member).getExceptionTypes(); | [BUG] [NO-ERROR] [CONTEXT] public Class[] getExceptionTypes() { <extra_id_0> [CLASS] FastMethod [METHOD] getExceptionTypes [RETURN_TYPE] Class[] [VARIABLES] boolean |
if(parent.getFirstChild() == n){ | [BUG] if(parent.getLastChild() == n) {[ERROR] null testExternedPropertyName [CONTEXT] break; case Token.ASSIGN: case Token.ASSIGN_BITOR: case Token.ASSIGN_BITXOR: case Token.ASSIGN_BITAND: case Token.ASSIGN_LSH: case Token.ASSIGN_RSH: case Token.ASSIGN_URSH: case Token.ASSIGN_ADD: case Token.ASSIGN_SUB: case Token.ASS... |
interior.add(new JPanel()); | [BUG] interior.add( this.titleField);interior.add( new JPanel());[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] general.setBorder( BorderFactory.createTitledBorder( BorderFactory.createEtchedBorder(), localizationResou... |
[Delete] | [BUG] if(( sv) != null) { sv.visitTypeArgument(); }[NO-ERROR] [CONTEXT] public void visitClassType(final String name) { if(type != TYPE_SIGNATURE || state != EMPTY) { throw new IllegalStateException(); } CheckMethodAdapter.checkInternalName(name,"class name"); state = CLASS_TYPE; <extra_id_0> sv.visitClassType(name... |
Boolean flag = getSeriesShapesVisible(series); | [BUG] [ERROR] null testDrawWithNullInfo [CONTEXT] public boolean getItemShapeVisible(int series, int item) { <extra_id_0> if(flag != null) { return flag.booleanValue(); } else { return this.baseShapesVisible; } [CLASS] XYLineAndShapeRenderer State [METHOD] getItemShapeVisible [RETURN_TYPE] boolean int series int ite... |
checkFunctions = CheckLevel.OFF; | [BUG] checkProvides = CheckLevel.OFF;checkFunctions = CheckLevel.OFF;[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] public CompilerOptions() { skipAllPasses = false; nameAnonymousFunctionsOnly = false; devMode = DevMode.OFF; checkSymbols = false; checkShadowVars = CheckLevel.OFF; aggressiveVarCheck = CheckLeve... |
out.write(buffer, 0, outputPtr); | [BUG] out.write( out, 0, bufferputPtr);[ERROR] cannot find symbol bufferputPtr [CONTEXT] } while(ch <= INT_SPACE); int bits = b64variant.decodeBase64Char(ch); if(bits < 0) { // reached the end, fair and square? if(ch == '"') { break; } bits = _decodeBase64Escape(b64variant, ch, 0); if(bits < 0) { // white space to ski... |
if(( labels.get( label))!= null) { throw new IllegalArgumentException("Already visited label"); } | [BUG] [Delete] [CONTEXT] static void checkDesc(final String desc, final boolean canBeVoid) { int end = checkDesc(desc, 0, canBeVoid); <extra_id_0> throw new IllegalArgumentException("Invalid descriptor:" + desc); } } [CLASS] CheckMethodAdapter [METHOD] checkDesc [RETURN_TYPE] void String desc final boolean canBeVo... |
txt = txt.replaceAll("d","t"); | [BUG] txt = txt.replaceAll("w","2");txt = txt.replaceAll("d","t");[ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition [CONTEXT] txt = txt.replaceAll("^mb","m2"); txt = txt.replaceAll("cq","2q"); txt = txt.replaceAll("ci","si"); txt = txt.replaceAll("ce","se"); txt = txt.replaceAll("cy","sy");... |
defineDeclaredProperty(name, new FunctionType(registry, null, null, null, getReturnType()), false); | [BUG] defineDeclaredProperty( name, new FunctionType( registry, null, null, null, getPrototype()) , false);[ERROR] expected:<... : Bar testTypeMismatch [CONTEXT] return super.hasProperty(name) ||"prototype".equals(name); } @Override public JSType getPropertyType(String name) { if("prototype".equals(name)) { return get... |
if(( x & 1) >= 0) return 32; | [BUG] if(( x & 1)== 0)return 32; [CONTEXT] if((x & 0xff) == 0) { k += 8; x >>>= 8; } if((x & 0xf) == 0) { k += 4; x >>>= 4; } if((x & 0x3) == 0) { k += 2; x >>>= 2; } if((x & 1) == 0) { k++; x >>>= 1; <extra_id_0> } return k; } private static int hi0bits(int x) { int k = 0; if((x & 0xffff0000) == 0) { k = 16; x <<... |
setSeriesToolTipGenerator(series, generator, true); | [BUG] this.toolTipGeneratorList.set( series, generator);setSeriesToolTipGenerator( series, generator, true);[ERROR] null testDrawWithNullInfo [CONTEXT] public void setSeriesToolTipGenerator(int series, XYToolTipGenerator generator) { <extra_id_0> } [CLASS] AbstractXYItemRenderer [METHOD] setSeriesToolTipGenerator [R... |
byteBuilder.append(INT_0); | [BUG] byteBuilder.append((byte) escCode);byteBuilder.append( INT_0);[ERROR] array lengths differed, expected.length=20734 actual.length=20738 testQuoteAsUTF8 [CONTEXT] private int _appendByteEscape(int ch, int escCode, ByteArrayBuilder byteBuilder, int ptr) { byteBuilder.setCurrentSegmentLength(ptr); byteBuilder.appen... |
result.append(")."); | [BUG] result.append( getName());result.append(").");[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] } result.append("\n"); result.append("OTHER LIBRARIES USED BY"); result.append(getName()); result.append(":"); final ... |
return register(new Tag(tagName)); | [BUG] [ERROR] expected:<[<img alt="" />]> but was:<[]> testHandlesEmptyAttributes [CONTEXT] private static Tag createBlock(String tagName) { <extra_id_0> [CLASS] Tag [METHOD] createBlock [RETURN_TYPE] Tag String tagName [VARIABLES] List ancestors boolean canContainBlock canContainInline empty isBlock optionalClosin... |
s.append( 2); | [BUG] s.append('?'); [CONTEXT] } } 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); StringBuffer s = new S... |
Number x = getStartX(series, item); | [BUG] Number x = getStartY( series, series);[ERROR] expected:<1.0> but was:<NaN> testIterateDomainBounds [CONTEXT] public double getStartXValue(int series, int item) { double result = Double.NaN; <extra_id_0> if(x != null) { result = x.doubleValue(); } return result; } [CLASS] AbstractIntervalXYDataset [METHOD] getS... |
z[i] =(3d *(y[i + 1] * h[i - 1] - y[i] *(x[i + 1] - x[i - 1])+ y[i - 1] * h[i])/(h[i - 1] * h[i])- h[i - 1] * z[i - 1])/ g; | [BUG] z[i] =(3d *(y[i + 1] * h[i - 1] - y[i] *(h[i + 1] - x[i - 1]) + y[i - 1] * h[i]) /( h[i - 1] * h[i]) - h[i - 1] * z[i - 1]) / g;[ERROR] expected:<0.7071067811865475> but was:<0.7853981633974483> testSinFunction [CONTEXT] double h[] = new double[n]; for(int i = 0; i < n; i++) { h[i] = x[i + 1] - x[i]; } double mu... |
if(end < minEnd){ | [BUG] if(end <= minEnd) {[ERROR] expected:<3> but was:<2> testDateConstructor1 [CONTEXT].getTime(); long e = getDataItem(this.minMiddleIndex).getPeriod().getEnd().getTime(); long maxMiddle = s +(e - s) / 2; if(middle > maxMiddle) { this.maxMiddleIndex = index; } } else { this.maxMiddleIndex = index; } if(this.minEndIn... |
super(duration); | [BUG] super( serialVersionUID);[ERROR] expected:<2545-04-06T00:00:00.000+01:00> but was:<2623-07-31T00:00:00.000+01:00> testWithDurationAdded_RD_int [CONTEXT] public Duration(long duration) { <extra_id_0> } [CLASS] Duration [METHOD] <init> [RETURN_TYPE] Duration(long) long duration [VARIABLES] Duration ZERO long dur... |
keys[index] = key;keys[index] = DELETED; | [BUG] keys[index] = DELETED; [CONTEXT] public void remove(int key) { if(key < 0) Kit.codeBug(); int index = findIndex(key); if(0 <= index) { <extra_id_0> --keyCount; if(values != null) { values[index] = null; } if(ivaluesShift != 0) { keys[ivaluesShift + index] = 0; } } } [CLASS] UintMap [METHOD] remove [RETURN_T... |
if(prefix != null) { | [BUG] if(prefix == null){ [CONTEXT] public String getClassName(String prefix, String source, Object key, Predicate names) { <extra_id_0> prefix ="org.mockito.cglib.empty.Object"; } else if(prefix.startsWith("java")) { prefix ="$" + prefix; } String base = prefix +"$$" + source.substring(source.lastIndexOf('.') + 1... |
Class<?> prevCls = type.getRawClass(); | [BUG] Class<?> prevCls = type.getValueHandler();[ERROR] null testDefaultImplViaModule [CONTEXT] public JavaType mapAbstractType(DeserializationConfig config, JavaType type) throws JsonMappingException { while(true) { JavaType next = _mapAbstractType2(config, type); if(next == null) { return type; } <extra_id_0> Cl... |
if(dims >(( desc.lastIndexOf( '['))+ 1)){ throw new IllegalArgumentException(("Invalid dimensions(must not be greater than dims( desc)):" + dims)); } | [BUG] [Delete] [CONTEXT] static void checkMethodIdentifier(final String name, final String msg) { <extra_id_0> throw new IllegalArgumentException("Invalid" + msg +"(must not be null or empty)"); } if("<init>".equals(name) ||"<clinit>".equals(name)) { return; } if(!Character.isJavaIdentifierStart(name.charAt(0))) {... |
resultMap.put(var, null); | [BUG] [NO-ERROR] [CONTEXT] private static class JoinOp extends DataFlowAnalysis.BinaryJoinOp<MustDef> { @Override public MustDef apply(MustDef a, MustDef b) { MustDef result = new MustDef(); Map<Var, Definition> resultMap = result.reachingDef; for(Var var : a.reachingDef.keySet()) { Definition aDef = a.reachingDef.get... |
if(isInverted()){ | [BUG] if(jmax - jmin) {[ERROR] incompatible types [CONTEXT] double vmax = range.getUpperBound(); double vp = getCycleBound(); double jmin = 0.0; double jmax = 0.0; if(RectangleEdge.isTopOrBottom(edge)) { jmin = dataArea.getMinX(); jmax = dataArea.getMaxX(); } else if(RectangleEdge.isLeftOrRight(edge)) { jmin = dataAre... |
c = Character.toLowerCase(c); | [BUG] [ERROR] null testFormatForParsers [CONTEXT] for(int i = 0; i < length; i++) { char c = input.charAt(i); if(i > 0 || c != '_') // skip first starting underscore { if(Character.isUpperCase(c)) { if(!wasPrevTranslated && resultLength > 0 && result.charAt(resultLength - 1) != '_') { result.append('_'); resultLength+... |
return true; | [BUG] return false;[ERROR] Unexpected warning(s testInstanceofOfPrivateConstructor [CONTEXT] static boolean isSubtype(JSType thisType, JSType thatType) { if(thatType.isUnknownType()) { return true; } if(thisType.equals(thatType)) { return true; } if(thatType.isAllType()) { return true; } if(thatType instanceof UnionTy... |
this.mtime = time; | [BUG] this.inode = inode;this.mtime = time;[NO-ERROR] [CONTEXT] public void setTime(final long time) { <extra_id_0> } [CLASS] CpioArchiveEntry [METHOD] setTime [RETURN_TYPE] void final long time [VARIABLES] short fileFormat format String name boolean long chksum device filesize gid headerSize inode maj min mode mtim... |
write(entry.getName().getBytes()); | [BUG] write( entry.getName().length());[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] public void putNextEntry(TarArchiveEntry entry) throws IOException { if(entry.getName().length() >= TarConstants.NAMELEN) { if(longFileMode == LONGFILE_GNU) { TarArchiveEntry longLinkEntry = new TarArch... |
if(value1 != null){ | [BUG] if(other != this) {[ERROR] expected:<{["x":4]}> but was:<{[ testPojoWriting [CONTEXT] { final int length = Array.getLength(defaultValue); final Class<?> defaultValueType = defaultValue.getClass(); return new Object() { @Override public boolean equals(Object other) { if(other == this) return true; if(other == nul... |
hash2 = 0; | [BUG] hash1 = hash3;hash2 = 0;[NO-ERROR] [CONTEXT] return null; case 2: if(key2 == null) { final V old = value2; hash2 = 0; key2 = null; value2 = null; size = 1; return old; } if(key1 == null) { final V old = value1; hash1 = hash2; key1 = key2; value1 = value2; <extra_id_0> key2 = null; value2 = null; size = 1; retu... |
for(int i = 0; i < exceptions.length; ++i){ | [BUG] for(int i = i; i < exceptions.length; ++i) {[NO-ERROR] [CONTEXT] { buf.setLength(0); buf.append("{\n"); buf.append("mv = cw.visitMethod("); appendAccess(access); buf.append(","); appendConstant(name); buf.append(","); appendConstant(desc); buf.append(","); appendConstant(signature); buf.append(","); if(exception... |
map.register(boolean.class, wrapDeserializer(BOOLEAN_TYPE_ADAPTER)); | [BUG] map.register( Date.class, DATE_TYPE_ADAPTER);map.register( boolean.class, wrapDeserializer( BOOLEAN_TYPE_ADAPTER));[ERROR] expected:<[a, b, c]> but was:<[]> testParseComments [CONTEXT] map.register(UUID.class, wrapDeserializer(UUUID_TYPE_ADAPTER)); map.register(Locale.class, wrapDeserializer(LOCALE_TYPE_ADAPTER)... |
if(index > 0) { | [BUG] if(edge > 0){ [CONTEXT] } else if(kind == STACK) { t = dim + inputStack[nStack -(s & VALUE)]; } else { t = s; } } } else { t = inputLocals[i]; } if(initializations != null) { t = init(cw, t); } changed |= merge(cw, t, frame.inputLocals, i); } <extra_id_0> for(i = 0; i < nLocal; ++i) { t = inputLocals[i]; cha... |
out.put(entry.getValue() , entry.getKey()); | [BUG] out.put( entry.getValue().getKey());[ERROR] cannot find symbol [CONTEXT] public static <K, V> Map<V, K> invertMap(final Map<K, V> map) { final Map<V, K> out = new HashMap<V, K>(map.size()); for(final Entry<K, V> entry : map.entrySet()) { <extra_id_0> } return out; } [CLASS] MapUtils 1 2 [METHOD] invertMap [RET... |
return(mObj1 == null ? key.mObj1 == null : mObj1.equals(key.mObj1)) &&(mObj2 == null ? | [BUG] return( mObj1 != null ? key.mObj1 != null : mObj1.equals( key.mObj1))&&( mObj2 == null ?[NO-ERROR] [CONTEXT] public boolean equals(Object obj) { if(this == obj) { return true; } if(!(obj instanceof Pair)) { return false; } Pair key =(Pair)obj; <extra_id_0> key.mObj2 == null : mObj2.equals(key.mObj2)); } [CLAS... |
_startRootArray(xgen, rootName); | [BUG] _startRootArray( rootName, xgen);[ERROR] method _startRootArray in class XmlSerializerProvider cannot be applied to given types; [CONTEXT] _serializeXmlNull(gen); return; } final boolean asArray; final ToXmlGenerator xgen = _asXmlGenerator(gen); if(xgen == null) { // called by convertValue() asArray = false; } e... |
for(int j = 0; j < method.instructions.size(); ++j){ | [BUG] for >=(int j = 0; j < method.instructions.size(); ++j) {[NO-ERROR] [CONTEXT] syperType, false)); try { a.analyze(cn.name, method); if(!dump) { continue; } } catch(Exception e) { e.printStackTrace(pw); } Frame[] frames = a.getFrames(); TraceMethodVisitor mv = new TraceMethodVisitor(); pw.println(method.name + met... |
if(entryValue == null || entryKey == null) { | [BUG] if(entryKey == null || entryValue == null){ [CONTEXT] public boolean equals(final Object obj) { if(obj == this) { return true; } if(obj instanceof Map.Entry == false) { return false; } final Map.Entry<?, ?> entry =(Map.Entry<?, ?>)obj; final Object entryKey = entry.getKey();// convert to hard reference final O... |
_writeContext = _writeContext.createChildArrayContext(); | [BUG] [ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] public void writeStartArray() throws IOException, JsonGenerationException { _verifyValueWrite("start an array"); <extra_id_0> if(_cfgPrettyPrinter != null) { _cfgPrettyPrinter.writeStartArray(this); }... |
return basic().addTags("img").addAttributes("img","align","alt","height","src","title","width").addProtocols("img","src","http","https") | [BUG] return basic().addTags("img").addAttributes("img","align","alt","height","src","title","width").addProtocols("img","src","tttp","https")[ERROR] expected:<<p><img [src="http://example.com/" ]alt="Image" /></p><p...> but was:<<p><img []alt="Image" /></p><p...> basicWithImagesTest [CONTEXT] public static Whitelist ... |
for(i = 0; i <= n; i++){ | [BUG] for(i = 0; i <= j; i++) {[ERROR] variable j might not have been initialized [CONTEXT] protected void computeCoefficients() { int i, j, n = degree(); coefficients = new double[n+1]; <extra_id_0> coefficients[i] = 0.0; } coefficients[0] = a[n]; for(i = n-1; i >= 0; i--) { for(j = n-i; j > 0; j--) { coefficients[... |
return token = JsonToken.END_OBJECT; | [BUG] if(token != JsonToken.NAME) { return token = JsonToken.END_OBJECT; }[ERROR] expected:<[a, b, c]> but was:<[]> testParseComments [CONTEXT] if(firstElement) { switch(nextNonWhitespace()) { case '}': pop(); hasToken = true; return token = JsonToken.END_OBJECT; default: pos--; } } else { switch(nextNonWhitespace()) ... |
private final static Object[] NO_OBJECTS = new Object[0]; | [BUG] private final static Object[] NO_OBJECTS = new Object[-5];[ERROR] null testFormatForParsers [CONTEXT] public class UntypedObjectDeserializer extends StdDeserializer<Object> { private static final long serialVersionUID = 1L; <extra_id_0> public final static UntypedObjectDeserializer instance = new UntypedObje... |
sideEffect = NodeUtil.constructorCallHasSideEffects(n); | [BUG] sideEffect = NodeUtil.functionCallHasSideEffects( n);[ERROR] expected:<... = function(p1) {}; testExportMultiple [CONTEXT] private boolean hasNonLocalSideEffect(Node n) { boolean sideEffect = false; int type = n.getType(); if(NodeUtil.isAssignmentOp(n) || type == Token.INC || type == Token.DEC) { Node lhs = n.g... |
visitAssign(t, n); | [BUG] [ERROR] null testExternedPropertyName [CONTEXT] case Token.INSTANCEOF: left = n.getFirstChild(); right = n.getLastChild(); leftType = getJSType(left); rightType = getJSType(right).restrictByNotNullOrUndefined(); validator.expectAnyObject( t, left, leftType,"deterministic instanceof yields false"); validator.expe... |
if(o[i] instanceof String){ | [BUG] if(o[i] & String) {[NO-ERROR] [CONTEXT] } private void declareFrameTypes(final int n, final Object[] o) { for(int i = 0; i < n; ++i) { if(o[i] instanceof Label) { declareLabel((Label) o[i]); } } } private void appendFrameTypes(final int n, final Object[] o) { for(int i = 0; i < n; ++i) { if(i > 0) { buf.append("... |
x = x2 - 2.0 * C *(x2 - x1)/ denominator; | [BUG] x = x1 - 2.0 * C *(x2 - x2) / denominator;[ERROR] expected:<0.10000000000000003> but was:<0.0> testQuinticZero [CONTEXT] q =(x2 - x1) /(x1 - x0); A = q *(y2 -(1 + q) * y1 + q * y0); B =(2*q + 1) * y2 -(1 + q) *(1 + q) * y1 + q * q * y0; C =(1 + q) * y2; delta = B * B - 4 * A * C; if(delta >= 0.0) { double dplus ... |
ReflectUtils.getSignature(newInstance), ReflectUtils.getExceptionTypes(newInstance)); | [BUG] [NO-ERROR] [CONTEXT] constructor = targetClass.getDeclaredConstructor(newInstance.getParameterTypes()); } catch(NoSuchMethodException e) { throw new IllegalArgumentException("interface does not match any known constructor"); } ClassEmitter ce = new ClassEmitter(v); ce.begin_class(Constants.V1_2, Constants.ACC_PU... |
fields.halfdayOfDay = convertField(fields.halfdayOfDay); | [BUG] fields.weekOfWeekyear = convertField( fields.weekOfWeekyear);fields.halfdayOfDay = convertField( fields.halfdayOfDay);[ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHashCode [CONTEXT] protected void assemble(Fields fields) { fields.year = convertField(fields.year); fields.yea... |
write(buff, 0, 1); | [BUG] write( buf, 0, 1);[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] public void write(int b) throws IOException { byte[] buff = new byte[1]; buff[0] =(byte)(b & BYTE_MASK); <extra_id_0> } [CLASS] ZipArchiveOutputStream UnicodeExtraFieldPolicy [METHOD] write [RETURN_TYPE] void int b [VA... |
if(prop == null) { | [BUG] if(prop != null){ [CONTEXT] if(!_vanillaProcessing) { return _deserializeNonVanilla(jp, ctxt); } final Object bean = _valueInstantiator.createUsingDefault(ctxt); final SettableBeanProperty[] props = _orderedProperties; int i = 0; final int propCount = props.length; while(true) { if(jp.nextToken() == JsonToken.... |
factory.setNamespaceAware(isNamespaceAware()); | [BUG] factory.setNamespaceAware( isCoalescing());[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] public Object parseXML(InputStream stream) { try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setValidating(isValidati... |
long diffFromFloor = instant - floor; | [BUG] int diffFromFloor = instant - floor;[ERROR] possible loss of precision [CONTEXT] public long roundHalfFloor(long instant) { long floor = roundFloor(instant); long ceiling = roundCeiling(instant); <extra_id_0> long diffToCeiling = ceiling - instant; if(diffFromFloor <= diffToCeiling) { return floor; } else { re... |
decompiler.addToken(Token.SEMI); | [BUG] decompiler.addToken( Token.BREAK);decompiler.addToken( Token.SEMI);[NO-ERROR] [CONTEXT] if(matchToken(Token.IN)) { decompiler.addToken(Token.IN); cond = expr(false); } else {// ordinary for loop mustMatchToken(Token.SEMI,"msg.no.semi.for"); <extra_id_0> if(peekToken() == Token.SEMI) { cond = nf.createLeaf(Toke... |
return n == 0 ? null : readUTF8(n, new char[maxStringLength]); | [BUG] return size == 0 ? null : readUTF8( n, new char[maxStringLength]);[NO-ERROR] [CONTEXT] public String getSuperName() { int n = items[readUnsignedShort(header + 4)]; <extra_id_0> } [CLASS] ClassReader [METHOD] getSuperName [RETURN_TYPE] String [VARIABLES] byte[] b int[] items boolean ANNOTATIONS FRAMES RESIZE SI... |
if(unknown != null){ | [BUG] if(bean.getClass() != _beanType.getRawClass()) {[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] if(unknown == null) { unknown = new TokenBuffer(jp.getCodec()); } unknown.writeFieldName(propName); unknown.copyCurrentStructure(jp); } Object bean; try { bean =creator.build(ctxt, buffer); } catch(... |
expected2 = BasicValue.LONG_VALUE; | [BUG] expected3 = BasicValue.REFERENCE_VALUE;expected2 = BasicValue.LONG_VALUE;[NO-ERROR] [CONTEXT] 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: expected1 = BasicV... |
if(spiedInstance != null){ | [BUG] if(spiedInstance == null) {[ERROR] [CONTEXT] public <T> T createMock(Class<T> classToMock, MockingProgress progress, MockSettingsImpl settings) { creationValidator.validateType(classToMock); creationValidator.validateExtraInterfaces(classToMock, settings.getExtraInterfaces()); MockName mockName = new MockName(se... |
tz = ctxt.getTimeZone(); | [BUG] [ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] throws JsonMappingException { if(property != null) { JsonFormat.Value format = ctxt.getAnnotationIntrospector().findFormat((Annotated) property.getMember()); if(format != null) { TimeZone tz = format.getTimeZone(); String pattern = format.getPatt... |
public static DiagnosticGroup ACCESS_CONTROLS = DiagnosticGroups.registerGroup("accessControls", new DiagnosticGroup(DEPRECATED, VISIBILITY)); | [BUG] public static DiagnosticGroup ACCESS_CONTROLS;[ERROR] INTERNAL COMPILER ERROR. testNoWarningInGlobalScopeForCall [CONTEXT] <extra_id_0> [CLASS] DiagnosticGroups [VARIABLES] |
List<DiGraphEdge<N, E>> edges = Lists.newArrayList(); | [BUG] List<GraphNode<N, E>> list = Lists.newArrayList();List<DiGraphEdge<N, E>> edges = Lists.newArrayList();[ERROR] expected:<4> but was:<5> testCommentPositions [CONTEXT] public List<DiGraphEdge<N, E>> getDirectedGraphEdges(N n1, N n2) { DiGraphNode<N, E> dNode1 = nodes.get(n1); if(dNode1 == null) { throw new Illega... |
String errMsg ="DefaultIntervalCategoryDataset: the number" +"of series in the start value dataset does" +"not match the number of series in the end" +"value dataset."; | [BUG] String errMsg ="DefaultIntervalCategoryDataset: the number" +"of series in the start value dataset does o" +"not match the number of series in the end" +"value dataset.";[ERROR] org/jfree/chart/JFreeChartInfo testCloning [CONTEXT] public DefaultIntervalCategoryDataset(Comparable[] seriesKeys, Comparable[] catego... |
data[length] =(byte)(byteLength >>> 8); | [BUG] data[length] =(long)(byteLength >>> 8);[NO-ERROR] [CONTEXT] char c = s.charAt(i); if(c >= '\001' && c <= '\177') { data[len++] =(byte) c; } else { int byteLength = i; for(int j = i; j < charLength; ++j) { c = s.charAt(j); if(c >= '\001' && c <= '\177') { byteLength++; } else if(c > '\u07FF') { byteLength += 3; }... |
outputLocals = new int[10]; | [BUG] outputLocals = new int[2];[NO-ERROR] [CONTEXT] private void set(final int local, final int type) { if(outputLocals == null) { <extra_id_0> } int n = outputLocals.length; if(local >= n) { int[] t = new int[Math.max(local + 1, 2 * n)]; System.arraycopy(outputLocals, 0, t, 0, n); outputLocals = t; } outputLocals[... |
if(millis % 1000L == 0){ | [BUG] if(millis % 1000L) {[ERROR] incompatible types [CONTEXT] out.writeByte((int)(units & 0x3f)); return; } } if(millis % 60000L == 0) { long minutes = millis / 60000L; if(((minutes <<(64 - 30)) >>(64 - 30)) == minutes) { out.writeInt(0x40000000 |(int)(minutes & 0x3fffffff)); return; } } <extra_id_0> long seconds =... |
fields.era = convertField(fields.era); | [BUG] fields.secondOfDay = convertField( fields.secondOfDay);fields.era = convertField( fields.era);[ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHashCode [CONTEXT] protected void assemble(Fields fields) { fields.year = convertField(fields.year); fields.yearOfEra = convertField(fi... |
if(var < firstLocal){ return var; } | [BUG] return var;[NO-ERROR] [CONTEXT] private int remap(final int var, final int size) { <extra_id_0> 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, 0, newMapping, 0, length); ... |
Preconditions.checkState(type == DecompositionType.UNDECOMPOSABLE); | [BUG] Preconditions.checkState( type != DecompositionType.UNDECOMPOSABLE);[NO-ERROR] [CONTEXT] } else if(type == DecompositionType.DECOMPOSABLE) { return CallSiteType.DECOMPOSABLE_EXPRESSION; } else { <extra_id_0> } [CLASS] FunctionInjector InliningMode Reference CallSiteType CanInlineResult [METHOD] classifyCallSit... |
this.yOffset = -this.blockHeight / 2.0; | [BUG] this.yOffset = -this.blockHeight / 2.0D;[ERROR] null testDrawWithNullInfo [CONTEXT] } else if(this.blockAnchor.equals(RectangleAnchor.BOTTOM)) { this.xOffset = -this.blockWidth / 2.0; this.yOffset = 0.0; } else if(this.blockAnchor.equals(RectangleAnchor.BOTTOM_RIGHT)) { this.xOffset = -this.blockWidth; this.yOff... |
jgen.writeEndArray(); | [BUG] jgen.writeEndObject();jgen.writeEndArray();[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] pub... |
if(_baseType != null && _baseType.getClass() == type.getClass()){ | [BUG] if(type != null && _baseType.getClass()== type.getClass()) {[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"]) testWithGetterAsSet... |
traverseWithinShortCircuitingBinOp(left, scope.createChildFlowScope()); | [BUG] traverseWithinShortCircuitingBinOp( scope, left.createChildFlowScope());[ERROR] cannot find symbol [CONTEXT] return propertyType; } private BooleanOutcomePair traverseOr(Node n, FlowScope scope) { return traverseShortCircuitingBinOp(n, scope, false); } private BooleanOutcomePair traverseShortCircuitingBinOp( Nod... |
} else if("Deprecated".equals(attrName)) { | [BUG] } else if("Deprecated".substring( name)){[NO-ERROR] [CONTEXT] 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 = readUnsignedShort(v + 8); if(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.