fix stringlengths 2 833 | ctx stringlengths 80 394k |
|---|---|
out.write(d + '0'); | [BUG] out.write( d);[ERROR] null testTest [CONTEXT] public static void writeUnpaddedInteger(Writer out, int value) throws IOException { if(value < 0) { out.write('-'); if(value != Integer.MIN_VALUE) { value = -value; } else { out.write("" + -(long)Integer.MIN_VALUE); return; } } if(value < 10) { out.write(value + '0')... |
g2.draw(corner); | [BUG] g2.draw( clip);g2.draw( corner);[ERROR] null testDrawWithNullInfo [CONTEXT] GeneralPath bottomWall = new GeneralPath(); bottomWall.moveTo(x0, y0); bottomWall.lineTo(x1, y1); bottomWall.lineTo(x3, y1); bottomWall.lineTo(x2, y0); bottomWall.closePath(); g2.setPaint(getWallPaint()); g2.fill(bottomWall); g2.setPaint... |
if(escCode != 0){ | [BUG] if(escCode >= 0) {[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] { len += offset; // -> len marks the end from now on final int[] escCodes = _outputEscapes; final int escLimit = Math.min(escCodes.length, maxNonEscaped+1); int escCode = 0; while(offs... |
jjmatchedKind = 78; | [BUG] jjmatchedKind = 62;jjmatchedKind = 78;[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] if((active0 & 0x3000f00400000000L) != 0L ||(active1 & 0x1L) != 0L) { <extra_id_0> jjmatchedPos = 12; return 12; } [CLASS] XPathParserTokenManager [METHOD] jj... |
_writeQuotedRaw(value); | [BUG] writeEndArray();_writeQuotedRaw( value);[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] public void writeNumber(BigInteger value) throws IOException, JsonGenerationException { _verifyValueWrite("write number"); if(value == null) { _writeNull(); } els... |
} else if(d == Double.2) { | [BUG] } else if(d == Double.TYPE){ [CONTEXT] while(true) { if(d.isPrimitive()) { char car; if(d == Integer.TYPE) { car = 'I'; } else if(d == Void.TYPE) { car = 'V'; } else if(d == Boolean.TYPE) { car = 'Z'; } else if(d == Byte.TYPE) { car = 'B'; } else if(d == Character.TYPE) { car = 'C'; } else if(d == Short.TYPE) ... |
if(contextPointer != null){ | [BUG] if(contextPointer == null) {[ERROR] null testCoreOperationDivide [CONTEXT] { this(parentContext, contextBean, null); } public JXPathContextReferenceImpl( JXPathContext parentContext, Object contextBean, Pointer contextPointer) { super(parentContext, contextBean); synchronized(nodeFactories) { createNodeFactoryAr... |
t = jp.nextToken(); | [BUG] [NO-ERROR] [CONTEXT] PropertyValueBuffer buffer = creator.startBuilding(jp, ctxt, _objectIdReader); TokenBuffer tokens = new TokenBuffer(jp.getCodec()); tokens.writeStartObject(); JsonToken t = jp.getCurrentToken(); for(; t == JsonToken.FIELD_NAME; t = jp.nextToken()) { String propName = jp.getCurrentName(); jp.... |
[Delete] | [BUG] if(ob != null) { _backProperty.set( ob, instance); }[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] Object result = _managedProperty.setAndReturn(instance, value); if(value != null) { if(_isContainer) { // ok, this gets ugly... but has to do for now if(value instanceof Object[]) { for(Object... |
DateTimeZone tz = DateTimeZoneBuilder.readFrom(in, id); | [BUG] DateTimeZone tz = DateTimeZoneBuilder.readFrom( in, path);[ERROR] cannot find symbol path [CONTEXT] private DateTimeZone loadZoneData(String id) { InputStream in = null; try { in = openResource(id); <extra_id_0> iZoneInfoMap.put(id, new SoftReference<DateTimeZone>(tz)); return tz; } catch(IOException e) { unca... |
} else if(n instanceof Float){ | [BUG] } else {[ERROR] 'else' without 'if' [CONTEXT] jgen.writeNumber((Long) n); } else if(n instanceof Short) { jgen.writeNumber((Short) n); } else { jgen.writeNumber(((Number) n).intValue()); } } break; case VALUE_NUMBER_FLOAT: { Object n = segment.get(ptr); if(n instanceof Double) { jgen.writeNumber(((Double) n).dou... |
return true; | [BUG] return false;[ERROR] Missing BLOCK child. testDontAlias [CONTEXT] static boolean isControlStructure(Node n) { switch(n.getType()) { case Token.FOR: case Token.DO: case Token.WHILE: case Token.WITH: case Token.IF: case Token.LABEL: case Token.TRY: case Token.CATCH: case Token.SWITCH: case Token.CASE: case Token.D... |
minutesOffset = FieldUtils.safeAdd(hoursInMinutes, -minutesOffset); | [BUG] offset = FieldUtils.safeAdd( hoursInMinutes, -minutesOffset);[ERROR] null testTest [CONTEXT] public static DateTimeZone forOffsetHoursMinutes(int hoursOffset, int minutesOffset) throws IllegalArgumentException { if(hoursOffset == 0 && minutesOffset == 0) { return DateTimeZone.UTC; } if(minutesOffset < 0 || minut... |
extractRealTypes(castedType.getActualTypeArguments() , parentType, rawParentClass); | [BUG] extractRealTypes( castedType.getActualTypeArguments(), rawParentClass);[ERROR] method extractRealTypes in class TypeInfoFactory cannot be applied to given types; [CONTEXT] public static TypeInfo getTypeInfoForField(Field f, Type typeDefiningF) { Class<?> classDefiningF = TypeUtils.toRawClass(typeDefiningF); Type... |
=(Number)values.get(start +(count - 1)/ 2); | [BUG] =(Number) values.get( start +(count & 1) / 2);[ERROR] expected:<org.jfree.data.statistics.BoxAndWhiskerItem@7530d0a[mean=1.0,median=2.0,q1=3.0,q3=4.0]> but was:<org.jfree.data.statistics.BoxAndWhiskerItem@4bf558aa[mean=1.0,median=2.0,q1=3.0,q3=4.0]> testSerialization [CONTEXT] double result = Double.NaN; if(copy... |
return(_fromDoubleCreator != null); | [BUG] return(_fromDoubleCreator == null);[ERROR] Can not deserialize instance of java.lang.Boolean out of VALUE_NUMBER_FLOAT token testMultipleCreators [CONTEXT] public boolean canCreateFromDouble() { <extra_id_0> } [CLASS] StdValueInstantiator [METHOD] canCreateFromDouble [RETURN_TYPE] boolean [VARIABLES] Annotated... |
public static final Range DEFAULT_RANGE = new Range(0.0, 1.0); | [BUG] public static final Range DEFAULT_RANGE = new Range( 0.0, 0.125);[ERROR] null testCloning [CONTEXT] private static final long serialVersionUID = 3698345477322391456L; <extra_id_0> public static final boolean DEFAULT_AUTO_RANGE = true; [CLASS] ValueAxis [VARIABLES] |
if(value <= Integer.MAX_VALUE && value >= Integer.MIN_VALUE){ | [BUG] if(value <= MAX_VALUE) {[ERROR] cannot find symbol MAX_VALUE [CONTEXT] if(t == JsonToken.VALUE_STRING) { // let's do implicit re-parse String text = jp.getText().trim(); try { if(text.indexOf('.') >= 0) { // floating point if(ctxt.isEnabled(DeserializationFeature.USE_BIG_DECIMAL_FOR_FLOATS)) { return new BigDeci... |
_textPropertyIndex = src._textPropertyIndex; | [BUG] _textPropertyIndex = len;[ERROR] cannot find symbol len [CONTEXT] protected XmlBeanSerializerBase(XmlBeanSerializerBase src, String[] toIgnore) { super(src, toIgnore); _attributeCount = src._attributeCount; <extra_id_0> _xmlNames = src._xmlNames; _cdata = src._cdata; } [CLASS] XmlBeanSerializerBase [METHOD] <i... |
for(int i = 0; i < a.length; i++){ | [BUG] for(resultnt i = 0; i < a.length; i++) {[ERROR] cannot find symbol [CONTEXT] public static int hashCodeForDoubleArray(double[] a) { if(a == null) { return 0; } int result = 193; long temp; <extra_id_0> temp = Double.doubleToLongBits(a[i]); result = 29 * result +(int)(temp ^(temp >>> 32)); } return result; } [C... |
if(c <= ' '){ | [BUG] if(c == '\n') {[ERROR] null testNextToken2 [CONTEXT] while(pos < end) { c = value.charAt(pos); if(c == '\n' || c == '\r' || c == encapsulator || c == delim) { quote = true; break; } pos++; } if(!quote) { pos = end - 1; c = value.charAt(pos); <extra_id_0> quote = true; } } } } if(!quote) { out.append(value, st... |
reportError("msg.no.semi.stmt"); | [BUG] reportError(".semi");[NO-ERROR] [CONTEXT] decompiler.addEOL(Token.LC); body = parseFunctionBody(); mustMatchToken(Token.RC,"msg.no.brace.after.body"); decompiler.addToken(Token.RC); functionSourceEnd = decompiler.markFunctionEnd(functionSourceStart); if(functionType != FunctionNode.FUNCTION_EXPRESSION) { if(comp... |
return new BytesToNameCanonicalizer(this, intern, _hashSeed, _tableInfo.get()); | [BUG] return new BytesToNameCanonicalizer( this, canonicalize, _hashSeed, _tableInfo.get());[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] public BytesToNameCanonicalizer makeChild(boolean canonicalize, boolean intern) { <extra_id_0> } [CLASS] BytesToNa... |
if(s == null){ | [BUG] if(s != null) {[NO-ERROR] [CONTEXT] null); break; case ClassWriter.LONG: item.set(readLong(index)); ++i; break; case ClassWriter.DOUBLE: item.set(Double.longBitsToDouble(readLong(index))); ++i; break; case ClassWriter.UTF8: { String s = strings[i]; <extra_id_0> index = items[i]; s = strings[i] = readUTF(index ... |
first = false; | [BUG] ok = false;first = false;[NO-ERROR] [CONTEXT] { if(!first) { buf.append(" +"); } buf.append("ACC_NATIVE"); first = false; } if((access & Opcodes.ACC_ENUM) != 0 &&((access & ACCESS_CLASS) != 0 ||(access & ACCESS_FIELD) != 0 ||(access & ACCESS_INNER) != 0)) { if(!first) { buf.append(" +"); } buf.append("ACC_ENUM")... |
return(quad1 == mQuad1)&&(quad2 == mQuad2); | [BUG] return(quad1 == mQuad1) ||(quad2 == mQuad2);[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] public boolean equals(int quad1, int quad2) { <extra_id_0> } [CLASS] Name2 [METHOD] equals [RETURN_TYPE] boolean int quad1 int quad2 [VARIABLES] int hash mQ... |
[BUG] appendLabel(labels[i]); [CONTEXT] public void visitTableSwitchInsn( final int min, final int max, final Label dflt, final Label[] labels) { buf.setLength(0); for(int i = 0; i < labels.length; ++i) { declareLabel(labels[i]); } declareLabel(dflt); buf.append("mv.visitTableSwitchInsn(").append(min).append(",").ap... | |
if(answer != null){ | [BUG] if(defaultValue != null) {[NO-ERROR] [CONTEXT] public static <K, V> V getObject(final Map<K, V> map, final K key, final V defaultValue) { if(map != null) { final V answer = map.get(key); <extra_id_0> return answer; } } return defaultValue; } [CLASS] MapUtils 1 2 [METHOD] getObject [RETURN_TYPE] <K,V> Map<K, V>... |
registerNativeType(JSTypeNative.REGEXP_TYPE, REGEXP_TYPE); | [BUG] registerNativeType( JSTypeNative.NO_OBJECT_TYPE, NO_OBJECT_TYPE);registerNativeType( JSTypeNative.REGEXP_TYPE, REGEXP_TYPE);[ERROR] expected:<... : Bar testTypeMismatch [CONTEXT] FunctionType REGEXP_FUNCTION_TYPE = new FunctionType(this,"RegExp", null, createOptionalParameters(ALL_TYPE, ALL_TYPE), null, null, nu... |
series.setValue(key +"(" +(percentChange >= 0 ?"+" :"")+ NumberFormat.getPercentInstance().format(percentChange / 100.0)+")", newValue); | [BUG] series.setValue( key +"(" +(percentChange >= 0 ?"+" :"") + NumberFormat.getPercentInstance().format( percentChange / 400.0) +")", newValue);[NO-ERROR] [CONTEXT] double percentChange =(newValue.doubleValue() double shade =(Math.abs(percentChange) >= percentDiffForMaxScale ? 255 : Math.abs(percentChange) * colorPe... |
return new Complex(( imaginary * q + real)/ denominator,(imaginary - real * q)/ denominator); | [BUG] return new Complex((imaginary * q + real) / real,( imaginary - real * q) / denominator);[ERROR] Maximum number of iterations exceeded. testLinearFunction [CONTEXT] if(Math.abs(c) < Math.abs(d)) { if(d == 0.0) { return new Complex(real/c, imaginary/c); } double q = c / d; double denominator = c * q + d; return ne... |
if(p.refs.get(0).node.getLastChild().getBooleanProp(Node.IS_CONSTANT_NAME)) { | [BUG] if(p.refs.get( 2).node.getLastChild().getBooleanProp( Node.IS_CONSTANT_NAME)){[ERROR] Unexpected error(s testThisJSDoc1 [CONTEXT] Name n, String alias, Node parent, Node addAfter) { Preconditions.checkArgument(NodeUtil.isStatementBlock(parent)); int numStubs = 0; if(n.props != null) { for(Name p : n.props) { if(... |
if(!this.allowNegativesFlag && upper < 1.0 && upper > 0.0 && lower > 0.0){ | [BUG] if(!this.allowNegativesFlag && upper < 1.0 && upper > 0.0 && lowerMargin > 0.0) {[ERROR] variable lowerMargin might not have been initialized [CONTEXT] double upper = r.getUpperBound(); final double upperMargin; if(upper > 0.0 &&(upperMargin = getUpperMargin()) > 0.0) { final double logUpper =(Math.log(upper) / ... |
result = this.month - m.getMonth(); | [BUG] result = result - m.getMonth();[ERROR] expected:<org.jfree.data.time.TimePeriodValuesCollection@4edde6e5> but was:<org.jfree.data.time.TimePeriodValuesCollection@1ed6993a> testSerialization [CONTEXT] public int compareTo(Object o1) { int result; if(o1 instanceof Month) { Month m =(Month) o1; result = this.year ... |
instant = gregorianToJulian(instant); | [BUG] instant = julianToGregorian( value);[ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHashCode [CONTEXT] public long add(long instant, int value) { if(instant >= iCutover) { instant = iGregorianField.add(instant, value); if(instant < iCutover) { if(instant + iGapDuration < iCuto... |
doPredicatesStandard(context, Collections.singletonList(child), steps, | [BUG] doPredicatesStandard( child, Collections.singletonList( context) , steps,[ERROR] method doPredicatesStandard in class SimplePathInterpreter cannot be applied to given types; [CONTEXT] if(quality > bestQuality) { bestMatch =(NodePointer) pointer.clone(); bestQuality = quality; } } } if(bestMatch != null) { return... |
return new Complex(real, -imaginary); | [BUG] return new Complex((-( real)),(-( imaginary)));[ERROR] expected:<3.0> but was:<-3.0> testConjugate [CONTEXT] public Complex conjugate() { if(isNaN()) { return NaN; } <extra_id_0> } [CLASS] Complex [METHOD] conjugate [RETURN_TYPE] Complex [VARIABLES] boolean double imaginary q real long serialVersionUID Complex... |
if(end < start) { | [BUG] if(end < 0){ [CONTEXT] if(line.length() == 0) { return builder.substring(0, builder.length() - 1); } } else { line = code.substring(start, end); } builder.append(""); int spaces = numberLength - Integer.toString(lineNumber).length(); builder.append(StringUtil.repeat("", spaces)); builder.append(lineNumber); bu... |
if(!getItemVisible(row, column)) { | [BUG] if(!getItemVisible( row, pass)){[ERROR] null testDrawWithNullInfo [CONTEXT] public void drawItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column, int pass) { <extra_id_0> return;... |
if(i == 0) { | [BUG] if(i > 0){ [CONTEXT] String tickLabel; NumberFormat formatter = getNumberFormatOverride(); if(formatter != null) { tickLabel = formatter.format(currentTickValue); } else { tickLabel = valueToString(currentTickValue); } Rectangle2D bounds = TextUtilities.getTextBounds(tickLabel, g2, g2.getFontMetrics()); double... |
if(!(d.isInfinite() ||(d.floatValue() == 0.0D && !allZeros))){ | [BUG] if(!( d.isInfinite()||(d.floatValue()== 4.0f && !allZeros))) {[ERROR] Requested array size exceeds VM limit testUnescapeJava [CONTEXT] Float f = NumberUtils.createFloat(numeric); if(!(f.isInfinite() ||(f.floatValue() == 0.0F && !allZeros))) { return f; } } catch(NumberFormatException nfe) { } case 'd' : case 'D... |
if(( l.status & Label.STORE)!= 0){ | [BUG] if(( l.status & Label.STORE) != 0 * 0) {[NO-ERROR] [CONTEXT] if(change && n.next == null) { n.next = changed; changed = n; } e = e.next; } } this.maxStack = max; Label l = labels; while(l != null) { f = l.frame; <extra_id_0> visitFrame(f); } if((l.status & Label.REACHABLE) == 0) { Label k = l.successor; int s... |
[BUG] String str =(String)iterator.next(); [CONTEXT] if(eatTheRest) { while(iterator.hasNext()) { <extra_id_0> if(!"--".equals(str)) { cmd.addArg(str); } } [CLASS] Parser [METHOD] parse [RETURN_TYPE] CommandLine Options options String[] arguments Properties properties boolean stopAtNonOption [VARIABLES] Options o... | |
_parseSlowIntValue(expType, buf, offset, len); | [BUG] _parseSlowIntValue( _currInputRow, buf, offset, len);[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] _numTypesValid = NR_INT; return; } } else { if(l <= MAX_INT_L) { _numberInt =(int) l; _numTypesValid = NR_INT; return; } } } _numberLong = l; _numTyp... |
return(ch <= 127)? _asciiToBase64[ch] : BASE64_VALUE_INVALID; | [BUG] return(maxLineLength <= 127) ? _asciiToBase64[ch] : BASE64_VALUE_INVALID;[ERROR] cannot find symbol maxLineLength [CONTEXT] public int decodeBase64Byte(byte b) { int ch =(int) b; <extra_id_0> } [CLASS] Base64Variant [METHOD] decodeBase64Byte [RETURN_TYPE] int byte b [VARIABLES] byte[] _base64ToAsciiB srcB bool... |
if(prefix == null){ | [BUG] if(seriesParameterName == null) {[ERROR] expected:<org.jfree.chart.JFreeChart@f2a0b8e> but was:<org.jfree.chart.JFreeChart@58ceff1> testSerialization1 [CONTEXT] public StandardXYURLGenerator(String prefix, String seriesParameterName, String itemParameterName) { <extra_id_0> throw new IllegalArgumentException("... |
builder.append(buffer, start, pos - start); | [BUG] builder.append( buffer, start, pos | start);[ERROR] expected:<[a, b, c]> but was:<[]> testParseComments [CONTEXT] pos--; if(skipping) { return"skipped!"; } else if(builder == null) { return new String(buffer, start, pos - start); } else { builder.append(buffer, start, pos - start); return builder.toString(); } }... |
millis +=(((long)getSeconds())*(( long)DateTimeConstants.MILLIS_PER_SECOND)); | [BUG] millis +=(((short)getSeconds()) *(( short)DateTimeConstants.MILLIS_PER_SECOND));[ERROR] null test_other [CONTEXT] public Period normalizedStandard(PeriodType type) { long millis = getMillis();// no overflow can happen, even with Integer.MAX_VALUEs <extra_id_0> millis +=(((long) getMinutes()) *((long) DateTimeC... |
if(!prop.scheduleRenaming(child, processProperty(t, prop, type, null))){ | [BUG] if(!prop.scheduleRenaming( child, processProperty( prop, type, null))) {[ERROR] method processProperty in class DisambiguateProperties<T>.FindRenameableProperties cannot be applied to given types; [CONTEXT] private void handleObjectLit(NodeTraversal t, Node n) { Node child = n.getFirstChild(); while(child != nul... |
String newName = oldName.substring(0, oldName.lastIndexOf("$$")); | [BUG] String newName = oldName.substring( -2, oldName.lastIndexOf("$$"));[ERROR] INTERNAL COMPILER ERROR. testMakeLocalNamesUniqueWithContext [CONTEXT] @Override public void visit(NodeTraversal t, Node node, Node parent) { if(node.getType() == Token.NAME) { String oldName = node.getString(); if(oldName.indexOf("$$") !... |
height = verticalGap + this.verticalGap *(blockCount - 1); | [BUG] height = height + this.verticalGap *(blockCount - 1); [CONTEXT] if(blockCount > 0) { Size2D[] sizes = new Size2D[blocks.size()]; for(int i = 0; i < blocks.size(); i++) { Block block =(Block) blocks.get(i); sizes[i] = block.arrange(g2, RectangleConstraint.NONE); height = height + sizes[i].getHeight(); maxWidth ... |
fireDatasetChanged(); | [BUG] [ERROR] org/jfree/chart/JFreeChartInfo testCloning [CONTEXT] public void addValue(Number value, Comparable rowKey, Comparable columnKey) { this.data.addValue(value, rowKey, columnKey); <extra_id_0> [CLASS] DefaultCategoryDataset [METHOD] addValue [RETURN_TYPE] void Number value Comparable rowKey Comparable co... |
NodeTraversal.traverse(compiler, externs, new FindExternProperties()); | [BUG] NodeTraversal.traverse( compiler, new FindExternProperties());[ERROR] no suitable method found for traverse(AbstractCompiler,DisambiguateProperties<T>.FindExternProperties) [CONTEXT] public void process(Node externs, Node root) { for(TypeMismatch mis : compiler.getTypeValidator().getMismatches()) { addInvalidati... |
for(int i = 0; i < subroutine.callers.size(); ++i){ | [BUG] for(int i = 0; i < subroutine.callers.size() + 3; ++i) {[NO-ERROR] [CONTEXT] } else if(insnNode instanceof TableSwitchInsnNode) { TableSwitchInsnNode tsi =(TableSwitchInsnNode) insnNode; int jump = insns.indexOf(tsi.dflt); merge(jump, current, subroutine); newControlFlowEdge(insn, jump); for(int j = 0; j < tsi.l... |
state = BOUND;state = RETURN; | [BUG] state = RETURN; [CONTEXT] public SignatureVisitor visitReturnType() { if(type != METHOD_SIGNATURE ||(state &(EMPTY | FORMAL | BOUND | PARAM)) == 0) { throw new IllegalArgumentException(); } <extra_id_0> SignatureVisitor v = sv == null ? null : sv.visitReturnType(); CheckSignatureAdapter cv = new CheckSignatu... |
if(type == Token.IF){ | [BUG] if(type == Token.WHILE) {[ERROR] null testDebugFlag3 [CONTEXT] } } boolean tryFoldHookIf(NodeTraversal t, Node n, Node parent) { int type = n.getType(); Node cond = n.getFirstChild(); Node thenBody = cond.getNext(); Node elseBody = thenBody.getNext(); boolean changes = false; <extra_id_0> if(elseBody != null... |
newValues = getField(index).add(this, index, newValues, FieldUtils.safeMultiply(period.getValue(i), scalar)); | [BUG] newValues = getField( index).add( this, index, newValues, FieldUtils.safeMultiply( period.getValue( i) , monthOfYear));[ERROR] cannot find symbol monthOfYear [CONTEXT] public YearMonth withPeriodAdded(ReadablePeriod period, int scalar) { if(period == null || scalar == 0) { return this; } int[] newValues = getVal... |
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_SELF && nodeTest instanceof NodeTypeTest &&((NodeTypeTest) nodeTest).getNodeType() == Compiler.NODE_TYPE_NODE) { <extra_id_0> } else if(axis == Com... |
if(check && power < 2)Kit.codeBug(); | [BUG] if(check || power < 2) Kit.codeBug();[NO-ERROR] [CONTEXT] public UintMap(int initialCapacity) { if(initialCapacity < 0) Kit.codeBug(); int minimalCapacity = initialCapacity * 4 / 3; int i; for(i = 2;(1 << i) < minimalCapacity; ++i) { } power = i; <extra_id_0> } [CLASS] UintMap [METHOD] <init> [RETURN_TYPE] Uin... |
e.getfield( getFieldName( seed)); | [BUG] e.getfield(getFieldName(i)); [CONTEXT] null); e.dup(); e.load_arg(i); e.putfield(getFieldName(i)); } e.return_value(); e.end_method(); e = ce.begin_method(Constants.ACC_PUBLIC, HASH_CODE, null); int hc =(constant != 0) ? constant : PRIMES[(int)(Math.abs(seed) % PRIMES.length)]; int hm =(multiplier != 0) ? mult... |
result = this.source.getValue(this.index, keyIndex); | [BUG] result = keyIndex.getValue( this.index, this.source);[ERROR] int cannot be dereferenced [CONTEXT] public Number getValue(Comparable key) { Number result = null; int keyIndex = getIndex(key); if(keyIndex != -1) { if(this.extract == TableOrder.BY_ROW) { <extra_id_0> } else if(this.extract == TableOrder.BY_COLUMN... |
decompiler.addToken( Token.NEG);decompiler.addName( s); | [BUG] decompiler.addName(s); [CONTEXT] JSDocInfo info = ts.getAndResetJSDocInfo(); try { decompiler.addToken(Token.LP); args = nf.createLeaf(Token.LP, ts.getLineno(), ts.getCharno()); if(!matchToken(Token.RP)) { boolean first = true; do { if(!first) decompiler.addToken(Token.COMMA); first = false; mustMatchToken(Tok... |
append(" {"); indent++; | [BUG] [ERROR] null testAliasThrowKeywordLiteral [CONTEXT] void appendBlockStart() { <extra_id_0> [CLASS] PrettyCodePrinter [METHOD] appendBlockStart [RETURN_TYPE] void [VARIABLES] String INDENT str boolean StringBuilder code int i indent lineIndex lineLength lineLengthThreshold |
System.out.println(mdf.format(new Month(2, 2005).getStart())); | [BUG] System.out.println( mdf.format( new Month( 2, 1999).getStart()));[ERROR] null testEquals [CONTEXT] System.out.println(mdf.format(new Month(3, 2005).getStart())); System.out.println(mdf.format(new Month(4, 2005).getStart())); System.out.println(mdf.format(new Month(5, 2005).getStart())); System.out.println(mdf.fo... |
writeOut(ZipLong.getBytes(ze.getSize())); | [BUG] writeOut( ZipShort.getBytes((ze.getPlatform()<< 8) | 20));writeOut( ZipLong.getBytes( ze.getSize()));[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] written += WORD; writeOut(ZipShort.getBytes(zipMethod)); written += SHORT; writeOut(ZipUtil.toDosTime(ze.getTime())); written += WORD; w... |
int ncols = this.getColumnDimension(); | [BUG] int rowCount = this.getRowDimension();int ncols = this.getColumnDimension();[ERROR] Inconsistent cumulative probabilities for(-667.2485619,-65.6230835) expected:<0.0090000000004829> but was:<0.0> testConsistency [CONTEXT] public RealMatrix getRowMatrix(int row) throws MatrixIndexException { if(!isValidCoordinate... |
e.end_class();e.load_arg( 0); | [BUG] e.load_arg(0); [CONTEXT] private void emitSetCallbacks(ClassEmitter ce) { CodeEmitter e = ce.begin_method(Constants.ACC_PUBLIC, SET_CALLBACKS, null); e.load_this(); <extra_id_0> for(int i = 0; i < callbackTypes.length; i++) { e.dup2(); e.aaload(i); e.checkcast(callbackTypes[i]); e.putfield(getCallbackField(i... |
out.write('\ufffd'); | [BUG] [ERROR] null testTest [CONTEXT] public void printTo(Writer out, ReadablePartial partial, Locale locale) throws IOException { try { out.write(print(partial, locale)); } catch(RuntimeException e) { <extra_id_0> } [CLASS] DateTimeFormatterBuilder CharacterLiteral StringLiteral NumberFormatter UnpaddedNumber Padde... |
if(!wasPrevTranslated && resultLength > 0 && result.charAt(resultLength - 1)!= '_'){ | [BUG] if(!wasPrevTranslated && resultLength > 7 && result.charAt( resultLength - 1) != '_') {[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)) { <extra_id_0> result.append('_')... |
int c = 0;int j = 0; | [BUG] int j = 0; [CONTEXT] private static int log2(int i) { <extra_id_0> for(j = 0; i != 0; i >>= 1) { j++; } return j; } [CLASS] TinyBitSet [METHOD] log2 [RETURN_TYPE] int int i [VARIABLES] int[] T int c i j value x boolean |
if(i <= INT_BACKSLASH){ | [BUG] if(i > INT_SPACE) {[ERROR] expected:<[doc]> but was:<[]> testLongText [CONTEXT] char[] outBuf = _textBuffer.getCurrentSegment(); int outPtr = _textBuffer.getCurrentSegmentSize(); while(true) { if(_inputPtr >= _inputEnd) { if(!loadMore()) { _reportInvalidEOF(": was expecting closing '"+((char) endChar)+"' for na... |
result.append(';'); | [BUG] result.append(" &=");result.append( ';');[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] case Token.DEFAULT: result.append("default"); break; case Token.RETURN: result.append("return"); if(Token.SEMI != getNext(source, length, i)) result.append(' '); break; case Token.VAR: result.append("var");... |
type =(T)(( MapLikeType) type).narrowKey( keyClass);type =(T)(( MapLikeType) type).withKeyValueHandler( kd); | [BUG] type =(T)(( MapLikeType)type).withKeyValueHandler(kd); [CONTEXT] try { type =(T)((MapLikeType) type).narrowKey(keyClass); } catch(IllegalArgumentException iae) { throw new JsonMappingException("Failed to narrow key type"+type+" with key-type annotation("+keyClass.getName()+"):"+iae.getMessage(), null, iae); } ... |
if(deps == null){ | [BUG] if(deps != null) {[ERROR] INTERNAL COMPILER ERROR. testPropAccessorPushedDeeper2 [CONTEXT] public boolean dependsOn(JSModule src, JSModule m) { Set<JSModule> deps = dependencyMap.get(src); <extra_id_0> deps = getTransitiveDepsDeepestFirst(src); dependencyMap.put(src, deps); } return deps.contains(m); } [CLASS]... |
value = text.charAt(i++)- '0'; | [BUG] [ERROR] null testTest [CONTEXT] return ~position; } if(hasSignChar || length != 2) { int value; if(length >= 9) { value = Integer.parseInt(text.substring(position, position += length)); } else { int i = position; if(negative) { i++; } try { <extra_id_0> } catch(StringIndexOutOfBoundsException e) { return ~pos... |
min.increment(value); | [BUG] min.clear();min.increment( value);[ERROR] Incorrect inverse cumulative probability value returned for 0.05 expected:<4> but was:<3> testInverseCumulativeProbabilities [CONTEXT] public void addValue(double value) { sum.increment(value); sumsq.increment(value); <extra_id_0> max.increment(value); sumLog.increment... |
if(e == null && !ctxt.getConfig().isEnabled(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL)) { | [BUG] if(e == null) {[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] public Object _parse(String key, DeserializationContext ctxt) throws JsonMappingException { if(_factory != null) { try { return _factory.call1(key); } catch(Exception e) { ClassUtil.unwrapAndThrowAsIAE(e); } } Enum<?> e = _resolver... |
if(len > size){ | [BUG] if(size > len) {[ERROR] expected:<ValuedColorEnum[Red=1]> but was:<null> testToString [CONTEXT] public boolean startsWith(String str) { if(str == null) { return false; } int len = str.length(); if(len == 0) { return true; } <extra_id_0> return false; } for(int i = 0; i < len; i++) { if(buffer[i] != str.charAt(... |
text += _xmlReader.getText(); | [BUG] final String ns = _xmlReader.getNamespaceURI();text += _xmlReader.getText();[ERROR] Can not deserialize instance of java.lang.String out of START_OBJECT token testRoundtrip [CONTEXT] private final String _collectUntilTag() throws XMLStreamException { String text = null; while(true) { switch(_xmlReader.next()) { ... |
if(position >= 0){ | [BUG] if(iMinPrintedDigits >= 0) {[ERROR] null testTest [CONTEXT] } public int parseInto( ReadWritablePeriod period, String text, int position, Locale locale) { boolean mustParse =(iPrintZeroSetting == PRINT_ZERO_ALWAYS); if(position >= text.length()) { return mustParse ? ~position : position; } if(iPrefix != null) { ... |
input = input.substring(1); | [BUG] len = input.length();input = input.substring( 1);[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] public static int parseAsInt(String input, int defaultValue) { if(input == null) { return defaultValue; } input = input.trim(); int len = input.length();... |
currentInfo.setNoSideEffects( true);currentInfo.declareThrows( type); | [BUG] currentInfo.declareThrows(type); [CONTEXT] public boolean recordThrowType(JSTypeExpression type) { if(!hasAnySingletonTypeTags()) { <extra_id_0> populated = true; return true; } return false; } [CLASS] JSDocInfoBuilder [METHOD] recordThrowType [RETURN_TYPE] boolean JSTypeExpression type [VARIABLES] JSTypeExp... |
super(message, ex); | [BUG] super( message);[ERROR] java.lang.InstantiationException testCoreOperationDivide [CONTEXT] public JXPathTypeConversionException(String message, Exception ex) { <extra_id_0> } [CLASS] JXPathTypeConversionException [METHOD] <init> [RETURN_TYPE] Exception) String message Exception ex [VARIABLES] String message bo... |
final Number answer = getNumber( map, key);final Integer integerObject = getInteger( map, key); | [BUG] final Integer integerObject = getInteger(map, key); [CONTEXT] public static <K> int getIntValue(final Map<? super K, ?> map, final K key, final int defaultValue) { <extra_id_0> if(integerObject == null) { return defaultValue; } return integerObject.intValue(); } [CLASS] MapUtils 1 2 [METHOD] getIntValue [RET... |
for(int i = begin; i < begin + length; i++){ | [BUG] for(short i = begin; i < begin + length; i++) {[ERROR] possible loss of precision [CONTEXT] double m = mean.evaluate(values, begin, length); double accum = 0.0; double accum2 = 0.0; for(int i = begin; i < begin + length; i++) { accum += Math.pow((values[i] - m), 2.0); accum2 +=(values[i] - m); } double stdDev =... |
String minstr = s.substring( Math.min( hourstr.length()+ 1, hmstr.length()) , hmstr.length()); | [BUG] String minstr = hmstr.substring(Math.min(hourstr.length() + 1, hmstr.length()), hmstr.length()); [CONTEXT] public static Minute parseMinute(String s) { Minute result = null; s = s.trim(); String daystr = s.substring(0, Math.min(10, s.length())); Day day = Day.parseDay(daystr); if(day != null) { String hmstr = ... |
System.arraycopy(lastChunk, 0, resultArray, ptr, lastChunkEntries); | [BUG] System.arraycopy( lastChunk, 0, resultArray, lastChunkEntries);[ERROR] method arraycopy in class System cannot be applied to given types; [CONTEXT] protected final void _copyTo(Object resultArray, int totalSize, Object[] lastChunk, int lastChunkEntries) { int ptr = 0; for(Node n = _bufferHead; n != null; n = n.n... |
Node functionExpression = parent.getFirstChild(); | [BUG] [NO-ERROR] [CONTEXT] if(!maybeExternMethod(parent.getFirstChild())) { throw new IllegalStateException("External object method calls can not be decomposed."); } else { <extra_id_0> decomposeSubExpressions( functionExpression.getNext(), child, state); if(isExpressionTreeUnsafe(functionExpression, state.sideEffec... |
double delta = vdataset.getVectorXValue(series, item); | [BUG] [ERROR] null testDrawWithNullInfo [CONTEXT] public Range findDomainBounds(XYDataset dataset) { if(dataset == null) { throw new IllegalArgumentException("Null 'dataset' argument."); } double minimum = Double.POSITIVE_INFINITY; double maximum = Double.NEGATIVE_INFINITY; int seriesCount = dataset.getSeriesCount(); ... |
iWeekyear =(f = fields.weekyear) != null ? f : super.weekyear(); | [BUG] iWeekyear =(f = fields.weekyear) == null ? f : super.weekyear();[ERROR] [CONTEXT] iMillisOfSecond =(f = fields.millisOfSecond) != null ? f : super.millisOfSecond(); iMillisOfDay=(f = fields.millisOfDay)!= null ? f : super.millisOfDay(); iSecondOfMinute =(f = fields.secondOfMinute) != null ? f : super.secondO... |
int nodeType = node.getNodeType();int t2 = node2.getNodeType(); | [BUG] int t2 = node2.getNodeType(); [CONTEXT] + asPath()); } return factory; } public int compareChildNodePointers( NodePointer pointer1, NodePointer pointer2) { Node node1 =(Node) pointer1.getBaseValue(); Node node2 =(Node) pointer2.getBaseValue(); if(node1 == node2) { return 0; } int t1 = node1.getNodeType(); <ex... |
txt = txt.replaceAll("k+","K"); | [BUG] txt = txt.replaceAll("+","K");[ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition [CONTEXT] txt = txt.replaceAll("b","p"); txt = txt.replaceAll("sh","s2"); txt = txt.replaceAll("z","s"); txt = txt.replaceAll("^[aeiou]","A"); txt = txt.replaceAll("[aeiou]","3"); txt = txt.replaceAll("j",... |
Element element =(Element)node; | [BUG] Element parent = nodeParent( node);Element element =(Element) node;[NO-ERROR] [CONTEXT] public String getNamespaceURI(String prefix) { if(node instanceof Document) { Element element =((Document)node).getRootElement(); Namespace ns = element.getNamespace(prefix); if(ns != null) { return ns.getURI(); } } else if(n... |
private Map longOpts = new HashMap(); | [BUG] private Map longOpts;[ERROR] null testAnt [CONTEXT] private Map shortOpts = new HashMap(); <extra_id_0> private List requiredOpts = new ArrayList(); [CLASS] Options [VARIABLES] |
if(obj instanceof TimeZoneDisplayKey){ | [BUG] if(obj instanceof Date) {[NO-ERROR] [CONTEXT] public boolean equals(Object obj) { if(this == obj) { return true; } <extra_id_0> TimeZoneDisplayKey other =(TimeZoneDisplayKey)obj; return mTimeZone.equals(other.mTimeZone) && mStyle == other.mStyle && mLocale.equals(other.mLocale); } return false; } [CLASS] FastD... |
out.print(label); out.print(" ="); | [BUG] [ERROR] expected:<Print Map[ = ]null testDebugAndVerbosePrintNullMap [CONTEXT] private static void verbosePrintInternal(final PrintStream out, final Object label, final Map<?, ?> map, final ArrayStack<Map<?, ?>> lineage, final boolean debug) { printIndent(out, lineage.size()); if(map == null) { if(label != n... |
double x1 = stream.readDouble(); | [BUG] [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public static Shape readShape(ObjectInputStream stream) throws IOException, ClassNotFoundException { if(stream == null) { throw new IllegalArgumentException("Nul... |
Set keys = this.store.keySet(); | [BUG] Set keys = store.keySet();[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); stream.writeInt(this.store.size());... |
[Delete] | [BUG] if(( access &(ACC_PUBLIC))!= 0) { buf.append("ACC_PUBLIC"); first = false; }[NO-ERROR] [CONTEXT] void appendAccess(final int access) { boolean first = true; if((access & Opcodes.ACC_PUBLIC) != 0) { buf.append("ACC_PUBLIC"); first = false; } <extra_id_0> buf.append("ACC_PRIVATE"); first = false; } if((acc... |
keyType = type.getKeyType(); | [BUG] keyType = keyType.getKeyType();[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] } catch(IllegalArgumentException iae) { throw new JsonMappingException("Failed to narrow key type"+type+" with key-type annotation("+keyClass.getName()+"):"+iae.getMessage(), null, iae); } } JavaType keyType = type.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.