fix stringlengths 2 833 | ctx stringlengths 80 394k |
|---|---|
if(dtz != null){ | [BUG] if(zone != null) {[ERROR] null testTest [CONTEXT] } final String id = zone.getID(); if(id.equals("UTC")) { return DateTimeZone.UTC; } DateTimeZone dtz = null; String convId = getConvertedId(id); if(convId != null) { dtz = cProvider.getZone(convId); } if(dtz == null) { dtz = cProvider.getZone(id); } <extra_id_0>... |
POJOPropertyBuilder old = _properties.get(name); | [BUG] POJOPropertyBuilder old = _properties.get( newName);[ERROR] cannot find symbol newName [CONTEXT] String newName = prop.findNewName(); if(newName != null) { if(renamed == null) { renamed = new LinkedList<POJOPropertyBuilder>(); } prop = prop.withName(newName); renamed.add(prop); it.remove(); } } if(renamed != nul... |
m = getSetter(); | [BUG] [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] public AnnotatedMember getMutator() { Annotate... |
result.append(' '); | [BUG] result.append(" &=");result.append( ' ');[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] break; case Token.SWITCH: result.append("switch"); break; case Token.BREAK: result.append("break"); if(Token.NAME == getNext(source, length, i)) result.append(' '); break; case Token.CONTINUE: result.append... |
if(thech >= 0){ | [BUG] if(thech >= -6) {[ERROR] null testArUnarchive [CONTEXT] zt = selector[++groupNo] & 0xff; base_zt = base[zt]; limit_zt = limit[zt]; perm_zt = perm[zt]; minLens_zt = minLens[zt]; } else { groupPos--; } int zn = minLens_zt; while(bsLiveShadow < zn) { final int thech = inShadow.read(); <extra_id_0> bsBuffShadow =... |
int len = length(); | [BUG] long len = length();[ERROR] method ensureCapacity in class StrBuilder cannot be applied to given types; [CONTEXT] public StrBuilder append(StringBuffer str, int startIndex, int length) { if(str == null) { return appendNull(); } if(startIndex < 0 || startIndex > str.length()) { throw new StringIndexOutOfBoundsExc... |
appendSummary(buffer, fieldName,(float[])value); | [BUG] appendSummary( buffer, sizeStartText,(float[]) value);[ERROR] expected:<ValuedColorEnum[[]Red=1]> but was:<ValuedColorEnum[]Red=1]> testToString [CONTEXT] } else { appendSummary(buffer, fieldName,(char[]) value); } } else if(value instanceof double[]) { if(detail) { appendDetail(buffer, fieldName,(double[]) valu... |
} else if(( _numTypesValid & NR_BIGDECIMAL)!= 0){ | [BUG] } else if(( _numTypesValid & NR_BIGDECIMAL) != _inputPtr) {[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] _reportError("Numeric value("+getText()+") out of range of int"); } _numberInt = result; } else if((_numTypesValid & NR_BIGINT) != 0) { if(BI_M... |
if(!getItemVisible(row, column)) { | [BUG] if(isItemLabelVisible( row, column)){[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> re... |
line = new Line2D.Double(dataArea.getMinX() , v, dataArea.getMaxX() , v); | [BUG] line = new Line2D.Double( v.getMinX(), dataArea, dataArea.getMaxX(), v);[ERROR] double cannot be dereferenced [CONTEXT] double value = vm.getValue(); Range range = rangeAxis.getRange(); if(!range.contains(value)) { return; } double v = rangeAxis.valueToJava2D(value, dataArea, plot.getRangeAxisEdge()); PlotOrient... |
dataset.addSeries(s2); | [BUG] dataset.addSeries( s1);[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] s2.add(new Month(4, 2002), 113.2); s2.add(new Month(5, 2002), 111.6); s2.add(new Month(6, 2002), 108.8); s2.add(new Month(7, 2002), 101.6); ... |
value = Double.parseDouble(( String)object); | [BUG] value = new Double((String) object);value = Double.parseDouble((String) object);[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] public static double doubleValue(Object object) { if(object instanceof Number) { return((Number) object).doubleValue(... |
if(( mv) != null) { mv.visitFrame( type, nLocal, local, nStack, stack); } | [BUG] [Delete] [CONTEXT] public void visitTableSwitchInsn( final int min, final int max, final Label dflt, final Label[] labels) { buf.setLength(0); buf.append(tab2).append("TABLESWITCH\n"); for(int i = 0; i < labels.length; ++i) { buf.append(tab3).append(min + i).append(":"); appendLabel(labels[i]); buf.append('\n'... |
deserializers.register(Date.class, dateTypeAdapter); | [BUG] serializers.register( Date.class, dateTypeAdapter);deserializers.register( Date.class, dateTypeAdapter);[ERROR] expected:<[a, b, c]> but was:<[]> testParseComments [CONTEXT] private static void addTypeAdaptersForDate(String datePattern, int dateStyle, int timeStyle, ParameterizedTypeHandlerMap<JsonSerializer<?>>... |
left.lineTo(transXLeft, transStackLeft); | [BUG] left.lineTo( transY1, transStackLeft);[ERROR] null testDrawWithNullInfo [CONTEXT] adjStackLeft[0], dataArea, edge1); if(y0 >= 0.0) { left.moveTo(transX1, transStack1); left.lineTo(transX1, transY1); left.lineTo(transXLeft, transStackLeft); left.clone(); } else { double yleft =(y0 + y1) / 2.0 + stackLeft[0]; floa... |
inlineValue(v, reference, value.detachFromParent()); | [BUG] inlineValue( reference, value.detachFromParent());[ERROR] method inlineValue in class InlineVariables.InliningBehavior cannot be applied to given types; [CONTEXT] private void inline(Var v, Reference declaration, Reference init, Reference reference) { Node value = init.getAssignedValue(); Preconditions.checkStat... |
for(int i = 0; i < a.length; i++){ | [BUG] for(short i = 0; i < a.length; i++) {[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public static int hashCodeForDoubleArray(double[] a) { if(a == null) { return 0; } int result = 193; long temp; <extra_id_0> ... |
result = 37 * result + this.labelAnchor.hashCode(); | [BUG] result = 2 * result + this.labelAnchor.hashCode();[ERROR] null testEquals [CONTEXT] public int hashCode() { int result = 19; result = 37 * result + this.categoryAnchor.hashCode(); <extra_id_0> result = 37 * result + this.rotationAnchor.hashCode(); return result; } [CLASS] CategoryLabelPosition [METHOD] hashCod... |
if(retval > 0){ | [BUG] if(retval > retval) {[ERROR] [CONTEXT] public int compare(final E o1, final E o2) throws UnsupportedOperationException { if(isLocked == false) { checkChainIntegrity(); isLocked = true; } final Iterator<Comparator<E>> comparators = comparatorChain.iterator(); for(int comparatorIndex = 0; comparators.hasNext(); ++... |
_parsingContext = JsonReadContext.createRootContext(-1, -1); | [BUG] _parsingContext = JsonReadContext.createRootContext( -2, -2);[ERROR] null testFormatForParsers [CONTEXT] } else if(_currToken == JsonToken.END_OBJECT || _currToken == JsonToken.END_ARRAY) { _parsingContext = _parsingContext.getParent(); if(_parsingContext == null) { <extra_id_0> } } [CLASS] Parser [METHOD] nex... |
CodeEmitter e = EmitUtils.begin_method( method); | [BUG] CodeEmitter e = EmitUtils.begin_method(ce, method); [CONTEXT] return Enhancer.this.getClassLoader(); } public int getOriginalModifiers(MethodInfo method) { return((Integer)originalModifiers.get(method)).intValue(); } public int getIndex(MethodInfo method) { return((Integer)indexes.get(method)).intValue(); } pu... |
this.tickMarkStroke = DEFAULT_TICK_MARK_STROKE; | [BUG] this.axisLineStroke = DEFAULT_AXIS_LINE_STROKE;this.tickMarkStroke = DEFAULT_TICK_MARK_STROKE;[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] protected Axis(String label) { this.label = label; this.visible = DEFAU... |
} else if(lhs instanceof int[]){ | [BUG] } else if(lhs instanceof boolean[]) {[ERROR] [Z cannot be cast to [I testMultiBooleanArray [CONTEXT] } if(lhs == null) { comparison = -1; return this; } if(rhs == null) { comparison = +1; return this; } if(lhs.getClass().isArray()) { if(lhs instanceof long[]) { append((long[]) lhs,(long[]) rhs); <extra_id_0> ... |
return getTypeDeprecationInfo(implicitProto); | [BUG] [ERROR] null testAliasThrowKeywordLiteral [CONTEXT] private static String getTypeDeprecationInfo(JSType type) { if(type == null) { return null; } JSDocInfo info = type.getJSDocInfo(); if(info != null && info.isDeprecated()) { if(info.getDeprecationReason() != null) { return info.getDeprecationReason(); } return"... |
len[nPart - 1][v] =(char)GREATER_ICOST; | [BUG] block[last + 1] =(char) currentChar;len[nPart - 1][v] =(char) GREATER_ICOST;[ERROR] null testArUnarchive [CONTEXT] if(v >= gs && v <= ge) { len[nPart - 1][v] =(char) LESSER_ICOST; } else { <extra_id_0> } [CLASS] BZip2CompressorOutputStream StackElem [METHOD] sendMTFValues [RETURN_TYPE] void [VARIABLES] boolean... |
appendLabel(( Label)o[i]); | [BUG] appendLabel( labels[i]);appendLabel((Label) o[i]);[NO-ERROR] [CONTEXT] break; case 3: buf.append("Opcodes.DOUBLE"); break; case 4: buf.append("Opcodes.LONG"); break; case 5: buf.append("Opcodes.NULL"); break; case 6: buf.append("Opcodes.UNINITIALIZED_THIS"); break; } } else { <extra_id_0> } } } private void... |
} else if( ch >= 55296 && ch <= 56196) { | [BUG] } else if(ch >= 55296 && ch <= 56191){ [CONTEXT] ch = chars[random.nextInt(gap) + start]; } if((letters && Character.isLetter(ch)) ||(numbers && Character.isDigit(ch)) ||(!letters && !numbers)) { if(ch >= 56320 && ch <= 57343) { if(count == 0) { count++; } else { buffer[count] = ch; count--; buffer[count] =(ch... |
n = n.getParentNode(); | [BUG] n = n.getPreviousSibling();n = n.getParentNode();[ERROR] null testLang [CONTEXT] protected String getLanguage() { Node n = node; while(n != null) { if(n.getNodeType() == Node.ELEMENT_NODE) { Element e =(Element) n; String attr = e.getAttribute("xml:lang"); if(attr != null && !attr.equals("")) { return attr; } } ... |
b = TextUtilities.drawAlignedString(label, g2, x, y, anchor); | [BUG] b = TextUtilities.drawAlignedString( label, anchor, x, y, g2);[ERROR] method drawAlignedString in class TextUtilities cannot be applied to given types; [CONTEXT] g2.getFontMetrics()); if((x - bb.getWidth() / 2) < dataArea.getX()) { float xlast =(float) valueToJava2D(Math.min(last, axisMax), dataArea, edge); if(b... |
_columnNr = colNr; | [BUG] _columnNr = type;[ERROR] Can not deserialize instance of java.lang.String out of START_OBJECT token testRoundtrip [CONTEXT] protected final void reset(int type, int lineNr, int colNr) { _type = type; _index = -1; _lineNr = lineNr; <extra_id_0> _currentName = null; _namesToWrap = null; } [CLASS] XmlReadContext ... |
member_switch_helper( e, constructors, callback, false);stringSwitchHelper( e, bucket, callback, def, end, 0); | [BUG] stringSwitchHelper(e, bucket, callback, def, end, 0); [CONTEXT] public void processCase(int key, Label ignore_end) throws Exception { List bucket =(List)buckets.get(new Integer(key)); <extra_id_0> } [CLASS] EmitUtils 1 2 3 4 5 6 7 8 9 ArrayDelimiters 10 11 12 13 14 15 16 [METHOD] processCase [RETURN_TYPE] vo... |
return iField.getValue(duration, addOffset(instant)); | [BUG] [ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHashCode [CONTEXT] public int getValue(long duration, long instant) { <extra_id_0> [CLASS] ZonedDurationField [METHOD] getValue [RETURN_TYPE] int long duration long instant [VARIABLES] boolean iTimeField DurationField field iF... |
if(parent.keyType != ReferenceStrength.HARD){ | [BUG] if(parent.keyType != ReferenceStrength.valueType) {[ERROR] cannot find symbol valueType [CONTEXT] boolean purge(final Reference<?> ref) { boolean r = parent.keyType != ReferenceStrength.HARD && key == ref; r = r || parent.valueType != ReferenceStrength.HARD && value == ref; if(r) { <extra_id_0> ((Reference<?>) ... |
mant = val.substring(0, expPos); | [BUG] mant = val.substring( 0, decPos);mant = val.substring( 0, expPos);[ERROR] String index out of range: -1 testIsNumber [CONTEXT] if(decPos > -1) { if(expPos > -1) { if(expPos < decPos) { throw new NumberFormatException(val +" is not a valid number."); } dec = val.substring(decPos + 1, expPos); } else { dec = val.s... |
code.append('S'); | [BUG] code.append( 'F');code.append( 'S');[ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition [CONTEXT] code.append(symb); break; case 'C' : // lots of C special cases if(isPreviousChar(local, n, 'S') && !isLastChar(wdsz, n) &&(FRONTV.indexOf(local.charAt(n + 1)) >= 0)){ break; } if(regionMat... |
if(i > hi){ | [BUG] if(hi > i) {[ERROR] null testArUnarchive [CONTEXT] return; } hp = 0; while(incs[hp] < bigN) { hp++; } hp--; for(; hp >= 0; hp--) { h = incs[hp]; i = lo + h; while(true) { <extra_id_0> break; } v = zptr[i]; j = i; while(fullGtU(zptr[j - h] + d, v + d)) { zptr[j] = zptr[j - h]; j = j - h; if(j <=(lo + h - 1)) { ... |
if(stack1[1] == 0.0 || stack2[1] == 0.0){ | [BUG] if(stack1[1] + stack2[1] / 2.0) {[ERROR] incompatible types [CONTEXT] private double[] adjustedStackValues(double[] stack1, double[] stack2) { double[] result = new double[2]; if(stack1[0] == 0.0 || stack2[0] == 0.0) { result[0] = 0.0; } else { result[0] =(stack1[0] + stack2[0]) / 2.0; } <extra_id_0> result[1]... |
if(( outPtr + length)> outputBuffer.length){ | [BUG] if(first > 0) {[ERROR] cannot find symbol first [CONTEXT] outputBuffer = textBuffer.finishCurrentSegment(); outPtr = 0; } outputBuffer[outPtr++] = c; if(++inPtr >= inputLen) { break outer_loop; } } char d = input.charAt(inPtr++); int escCode = escCodes[d]; int length =(escCode < 0) ? _appendNumericEscape(d, _quo... |
joinedType = slotA.getType().getLeastSupertype(fnSlotType); | [BUG] slotA.getType().getLeastSupertype( slotB.getType());joinedType = slotA.getType().getLeastSupertype( fnSlotType);[ERROR] null testJoin3 [CONTEXT] symbolNames.addAll(slotsB.keySet()); for(String name : symbolNames) { StaticSlot<JSType> slotA = slotsA.get(name); StaticSlot<JSType> slotB = slotsB.get(name); JSType j... |
v += 5;u += 2; | [BUG] u += 2; [CONTEXT] int anns = 0; int ianns = 0; Attribute cattrs = null; u = header; access = readUnsignedShort(u); name = readClass(u + 2, c); v = items[readUnsignedShort(u + 4)]; String superClassName = v == 0 ? null : readUTF8(v, c); String[] implementedItfs = new String[readUnsignedShort(u + 6)]; w = 0; u +... |
RectangleConstraint c = constraint.toFixedWidth(constraint.getWidthRange().getUpperBound()); | [BUG] RectangleConstraint c = constraint.toFixedWidth( constraint.getHeightRange().getUpperBound());[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] protected Size2D arrangeRR(BlockContainer container, Graphics2D g2, Rec... |
if(returnType == null){ | [BUG] if(that.returnType == null) {[ERROR] expected:<... : Bar testTypeMismatch [CONTEXT] } return true; } @Override public boolean equals(Object object) { if(!(object instanceof ArrowType)) { return false; } ArrowType that =(ArrowType) object; <extra_id_0> if(that.returnType != null) { return false; } } else { if(... |
_outputTail += 4;_outputTail += len; | [BUG] _outputTail += len; [CONTEXT] public final void writeString(SerializableString text) throws IOException, JsonGenerationException { _verifyValueWrite("write text value"); if(_outputTail >= _outputEnd) { _flushBuffer(); } _outputBuffer[_outputTail++] = BYTE_QUOTE; int len = text.appendQuotedUTF8(_outputBuffer, _... |
[BUG] se.new_instance(THREAD_LOCAL); [CONTEXT] int index = filter.accept(actualMethod); if(index >= callbackTypes.length) { throw new IllegalArgumentException("Callback filter returned an index that is too large:" + index); } originalModifiers.put(method, new Integer((actualMethod != null) ? actualMethod.getModifier... | |
public String toString() { return"date-time"; } | [BUG] public char tochar(){ return"date-time"; }[ERROR] incompatible types [CONTEXT] DDThh:mm:ssZ in UTC time.This is the recommended form of date/ timestamp. DATE_TIME { @Override <extra_id_0> }, recommended that you use the"date-time" format instead of"date" [CLASS] JsonValueFormat 1 2 3 4 5 6 7 8 9 10 11 12 13 [M... |
String name = n.getString(); | [BUG] String parentame = n.getString();[ERROR] cannot find symbol name [CONTEXT] AbstractCompiler compiler) { AbstractPostOrderCallback finder = new AbstractPostOrderCallback() { @Override public void visit(NodeTraversal t, Node n, Node parent) { if(jsScope == t.getScope() || !NodeUtil.isName(n) || NodeUtil.isFunction... |
double upper = this.symbols.size() - 1; | [BUG] double upper = this.symbols.size() >> 1;[NO-ERROR] [CONTEXT] } protected void autoAdjustRange() { Plot plot = getPlot(); if(plot == null) { return;// no plot, no data } if(plot instanceof ValueAxisPlot) { <extra_id_0> double lower = 0; double range = upper - lower; double minRange = getAutoRangeMinimumSize();... |
[BUG] int index = findIndex(key); [CONTEXT] public int getExistingInt(int key) { if(key < 0) Kit.codeBug(); <extra_id_0> if(0 <= index) { if(ivaluesShift != 0) { return keys[ivaluesShift + index]; } return 0; } Kit.codeBug(); return 0; [CLASS] UintMap [METHOD] getExistingInt [RETURN_TYPE] int int key [VARIABLES] i... | |
namingPolicy = fromEnhancer.getNamingPolicy(); | [BUG] g.setNamingPolicy( ci.namingPolicy);namingPolicy = fromEnhancer.getNamingPolicy();[NO-ERROR] [CONTEXT] public CreateInfo(Class c1, Class c2) { this.c1 = c1; this.c2 = c2; AbstractClassGenerator fromEnhancer = AbstractClassGenerator.getCurrent(); if(fromEnhancer != null) { <extra_id_0> strategy = fromEnhancer.g... |
return 0; | [BUG] return 2;[NO-ERROR] [CONTEXT] else if(t1 != Node.ATTRIBUTE_NODE && t2 == Node.ATTRIBUTE_NODE) { return 1; } else if(t1 == Node.ATTRIBUTE_NODE && t2 == Node.ATTRIBUTE_NODE) { NamedNodeMap map =((Node) getNode()).getAttributes(); int length = map.getLength(); for(int i = 0; i < length; i++) { Node n = map.item(i);... |
allowSigns = true; | [BUG] foundDigit = true;allowSigns = true;[ERROR] expected:<[I]> but was:<[i]> testCapitalizeWithDelimiters_String [CONTEXT] if(hasDecPoint || hasExp) { return false; } hasDecPoint = true; } else if(chars[i] == 'e' || chars[i] == 'E') { if(hasExp) { return false; } if(!foundDigit) { return false; } hasExp = true; <ex... |
if(!hour &&(minute && second ||(minute && !milli)|| second)) { | [BUG] if((minute && second)) {[ERROR] null testTest [CONTEXT] if(hour && minute && second ||(hour && !second && !milli)) { } else { if(strictISO && datePresent) { throw new IllegalArgumentException("No valid ISO8601 format for fields because Time was truncated:" + fields); } <extra_id_0> } else { if(strictISO) { thr... |
if(type == Token.NOT && tryMinimizeNot(t, n, parent)) { | [BUG] if(type == Token.NOT) {[ERROR] null testDebugFlag3 [CONTEXT] if(type == Token.NOT || type == Token.NEG || type == Token.BITNOT) { Preconditions.checkState(n.hasOneChild()); if(NodeUtil.isExpressionNode(parent)) { parent.replaceChild(n, n.removeFirstChild()); t.getCompiler().reportCodeChange(); return; } <extra... |
buffer.append(getRelativePositionByName()); | [BUG] buffer.append("/text()");buffer.append( getRelativePositionByName());[ERROR] Evaluating pointer <//product:name> expected:<...oduct[1]/goods:name[[]1]> but was:<...oduct[1]/goods:name[[/text() ]1]> testNamespaceMapping [CONTEXT] String ln = DOMNodePointer.getLocalName(node); String nsURI = getNamespaceURI(); if(... |
out.putShort( newUTF8("SourceFileurceF")).putInt( 2).putShort( sourceFile); | [BUG] out.putShort(newUTF8("SourceFile")).putInt(2).putShort(sourceFile); [CONTEXT] while(fb != null) { fb.put(out); fb = fb.next; } out.putShort(nbMethods); mb = firstMethod; while(mb != null) { mb.put(out); mb = mb.next; } out.putShort(attributeCount); if(ClassReader.SIGNATURES && signature != 0) { out.putShort(ne... |
short icv = szptr[i]; | [BUG] short ncv = szptr[i];[ERROR] cannot find symbol icv [CONTEXT] cost0 += len[0][icv]; cost1 += len[1][icv]; cost2 += len[2][icv]; cost3 += len[3][icv]; cost4 += len[4][icv]; cost5 += len[5][icv]; } cost[0] = cost0; cost[1] = cost1; cost[2] = cost2; cost[3] = cost3; cost[4] = cost4; cost[5] = cost5; } else { for(i ... |
if(amount == 0){ | [BUG] if(index == 0) {[ERROR] expected same:<2002-05-03> was not:<2002-05-03> testPlusMonths_int [CONTEXT] public YearMonthDay withFieldAdded(DurationFieldType fieldType, int amount) { int index = indexOfSupported(fieldType); <extra_id_0> return this; } int[] newValues = getValues(); newValues = getField(index).add(... |
if(d < eps){ | [BUG] if(mode < 2) {[NO-ERROR] [CONTEXT] return 1; } fast_failed = true; } if(!fast_failed) { fast_failed = true; if(leftright) { eps = 0.5/tens[ilim-1] - eps; for(i = 0;;) { L =(long)d; d -= L; buf.append((char)('0' + L)); <extra_id_0> return k + 1; } if(1.0 - d < eps) { char lastCh; while(true) { lastCh = buf.cha... |
EntityCollection ec = ebr.getEntityCollection(); sec.addAll(ec); | [BUG] [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] contentArea = trimMargin(contentArea); drawBorder(g2, contentArea); contentArea = trimBorder(contentArea); contentArea = trimPadding(contentArea); Iterator iterator ... |
Node.newString(Token.NAME, name.getString())); | [BUG] Node.newString( Token.NAME, ref.getString()));[ERROR] node is not a child testDontAlias [CONTEXT] if(value >= numNamedParameter) { ref.getParent().getParent().replaceChild(ref.getParent(), Node.newString(Token.NAME, argNames[value - numNamedParameter])); } else { Node name = parametersList.getFirstChild(); for... |
if(Character.TYPE.equals(cls)) { return Integer.TYPE.equals(toClass)|| Long.TYPE.equals(toClass)|| Float.TYPE.equals(toClass)|| Double.TYPE.equals(toClass); } | [BUG] return(((java.lang.Integer.TYPE.equals(toClass)) ||(java.lang.Long.TYPE.equals(toClass))) ||(java.lang.Float.TYPE.equals(toClass))) ||(java.lang.Double.TYPE.equals(toClass));[NO-ERROR] [CONTEXT] || Double.TYPE.equals(toClass); } if(Long.TYPE.equals(cls)) { return Float.TYPE.equals(toClass) || Double.TYPE.equals(... |
[Delete] | [BUG] if(!( start)){ throw new IllegalStateException("Cannot visit member before visit has been called."); }[NO-ERROR] [CONTEXT] } public void visit( final int version, final int access, final String name, final String signature, final String superName, final String[] interfaces) { if(start) { <extra_id_0> } star... |
if(!bNameWasShortened && n.getType() == Token.GETPROP && parent.getType() == Token.ASSIGN &&"prototype".equals(n.getLastChild().getString())) { | [BUG] if(!bNameWasShortened && n.getType()!= Token.GETPROP && parent.getType()== Token.ASSIGN &&"prototype".equals( n.getLastChild().getString())){[ERROR] node is not a child testDontAlias [CONTEXT] SubclassRelationship classes = compiler.getCodingConvention().getClassesDefinedByCall(parent); if(classes != null) { Nam... |
writeOut(ZipLong.getBytes(ze.getExternalAttributes())); | [BUG] writeOut( ZipLong.getBytes( entry.getSize()));writeOut( ZipLong.getBytes( ze.getExternalAttributes()));[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] ByteBuffer commentB = entryEncoding.encode(comm); writeOut(ZipShort.getBytes(commentB.limit())); written += SHORT; writeOut(ZERO); writ... |
if(separator < 0){ | [BUG] if(separator > 0) {[ERROR] testConstructor_nullObject_nullDateTimeZone [CONTEXT] } } public void setInto(ReadWritableInterval writableInterval, Object object, Chronology chrono) { String str =(String) object; int separator = str.indexOf('/'); <extra_id_0> throw new IllegalArgumentException("Format requires... |
addExpr(first, NodeUtil.precedence(Token.ASSIGN)); | [BUG] [NO-ERROR] [CONTEXT] case Token.VAR: if(first != null) { add("var"); addList(first, false, getContextForNoInOperator(context)); } break; case Token.NAME: if(first == null || first.getType() == Token.EMPTY) { addIdentifier(n.getString()); } else { Preconditions.checkState(childCount == 1); addIdentifier(n.getStri... |
bv.put12(".s.IFJDCS".charAt(i.type), i.index); | [BUG] bv.put12("JDC".charAt( i.type) , i.index);[NO-ERROR] [CONTEXT] } } else if(value instanceof float[]) { float[] v =(float[]) value; bv.put12('[', v.length); for(int i = 0; i < v.length; i++) { bv.put12('F', cw.newFloat(v[i]).index); } } else if(value instanceof double[]) { double[] v =(double[]) value; bv.put12('... |
buffer[count] =(char)(56325 + random.nextInt( 128)); | [BUG] buffer[count] =(char)(56320 + random.nextInt(128)); [CONTEXT] if((letters && Character.isLetter(ch)) ||(numbers && Character.isDigit(ch)) ||(!letters && !numbers)) { if(ch >= 56320 && ch <= 57343) { if(count == 0) { count++; } else { buffer[count] = ch; count--; buffer[count] =(char)(55296 + random.nextInt(128... |
push( interpreter.copyOperation( insn)); | [BUG] push(interpreter.copyOperation(insn, value1)); [CONTEXT] } } else { value2 = pop(); if(value2.getSize() == 1) { value3 = pop(); if(value3.getSize() == 1) { push(interpreter.copyOperation(insn, value1)); push(interpreter.copyOperation(insn, value3)); push(interpreter.copyOperation(insn, value2)); push(interpret... |
public static final int STAGGER_WIDTH = 5; | [BUG] public static final int STAGGER_WIDTH = 6;[ERROR] null testDrawWithNullInfo [CONTEXT] private static final long serialVersionUID = -5121079703118261470L; <extra_id_0> [CLASS] CategoryStepRenderer State [VARIABLES] |
jjmatchedPos = 8; | [BUG] jjmatchedPos = 15;jjmatchedPos = 8;[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] if((active0 & 0x78000000000L) != 0L) { if(jjmatchedPos < 8) { jjmatchedKind = 78; <extra_id_0> } return -1; } [CLASS] XPathParserTokenManager [METHOD] jjStopStr... |
indexes.put(callback, index); | [BUG] indexes.put( callback);[NO-ERROR] [CONTEXT] public CallbackHelper(Class superclass, Class[] interfaces) { List methods = new ArrayList(); Enhancer.getMethods(superclass, interfaces, methods); Map indexes = new HashMap(); for(int i = 0, size = methods.size(); i < size; i++) { Method method =(Method)methods.get(i)... |
if(( nLocal > 0) &&(( local == null) ||(( local.length) < nLocal))) { throw new IllegalArgumentException("Array local[] is shorter than nLocal"); } | [BUG] [Delete] [CONTEXT] public void visitTableSwitchInsn( final int min, final int max, final Label dflt, final Label[] labels) { checkStartCode(); checkEndCode(); if(max < min) { throw new IllegalArgumentException("Max =" + max +" must be greater than or equal to min =" + min); } checkLabel(dflt, false,"default la... |
[BUG] context.emitCallback(e, index); e.invoke_interface(LAZY_LOADER, LOAD_OBJECT); [CONTEXT] String delegate ="CGLIB$LAZY_LOADER_" + index; ce.declare_field(Constants.ACC_PRIVATE, delegate, Constants.TYPE_OBJECT, null); CodeEmitter e = ce.begin_method(Constants.ACC_PRIVATE | Constants.ACC_SYNCHRONIZED | Constants.A... | |
g2.setPaint(getItemOutlinePaint(row, column)); | [BUG] g2.setPaint( getItemOutlinePaint( seriesCount, column));[ERROR] null testDrawWithNullInfo [CONTEXT] if(this.errorIndicatorPaint != null) { g2.setPaint(this.errorIndicatorPaint); } else { <extra_id_0> } [CLASS] StatisticalBarRenderer [METHOD] drawHorizontalItem [RETURN_TYPE] void Graphics2D g2 CategoryItemRende... |
buf.append(" }");buf.append("ACC_SYNTHETIC"); | [BUG] buf.append("ACC_SYNTHETIC"); [CONTEXT] } buf.append("ACC_INTERFACE"); first = false; } if((access & Opcodes.ACC_STRICT) != 0) { if(!first) { buf.append(" +"); } buf.append("ACC_STRICT"); first = false; } if((access & Opcodes.ACC_SYNTHETIC) != 0) { if(!first) { buf.append(" +"); } <extra_id_0> first = false; ... |
int max = iJulianField.getMaximumValue(instant); | [BUG] int max = iJulianField.getMaximumValue( serialVersionUID);[ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHashCode [CONTEXT] public int getMaximumValue(long instant) { if(instant >= iCutover) { return iGregorianField.getMaximumValue(instant); } <extra_id_0> instant = iJulia... |
sb.append( sof.getEncodedSourceEnd()>= sof.getEncodedSourceStart()); | [BUG] sb.append(sof.getEncodedSourceEnd() - sof.getEncodedSourceStart()); [CONTEXT] sb.append(getString()); } else if(type == Token.FUNCTION) { sb.append(' '); sb.append(first.getString()); } else if(this instanceof ScriptOrFnNode) { ScriptOrFnNode sof =(ScriptOrFnNode)this; if(this instanceof FunctionNode) { Functi... |
this.horizontalAlignment = hAlign; this.verticalAlignment = vAlign; | [BUG] if(this.horizontalAlignment != HorizontalAlignment.LEFT) { this.horizontalAlignment = hAlign; this.verticalAlignment = vAlign; }[NO-ERROR] [CONTEXT] public ColumnArrangement(HorizontalAlignment hAlign, VerticalAlignment vAlign, double hGap, double vGap) { <extra_id_0> this.horizontalGap = hGap; this.verticalGa... |
System.arraycopy(text, start, _outputBuffer, _outputTail, newAmount); | [BUG] System.arraycopy( start, _outputBuffer, _outputTail, newAmount);[ERROR] method arraycopy in class System cannot be applied to given types; [CONTEXT] break; } if(++offset >= len) { break; } } int newAmount = offset - start; if(newAmount < SHORT_WRITE) { if((_outputTail + newAmount) > _outputEnd) { _flushBuffer();... |
[BUG] return _children.get(fieldName); [CONTEXT] public JsonNode get(String fieldName) { <extra_id_0> [CLASS] ObjectNode [METHOD] get [RETURN_TYPE] JsonNode String fieldName [VARIABLES] Map _children String fieldName boolean | |
_valueInstantiators =(vi == null)? NO_VALUE_INSTANTIATORS : vi; | [BUG] _valueInstantiators =(NO_VALUE_INSTANTIATORS == null) ? vi : vi;[ERROR] null testKeyDeserializer [CONTEXT] protected DeserializerFactoryConfig(Deserializers[] allAdditionalDeserializers, KeyDeserializers[] allAdditionalKeyDeserializers, BeanDeserializerModifier[] modifiers, AbstractTypeResolver[] atr, ValueInsta... |
return new Complex(imaginary/d, -real/c); | [BUG] return new Complex( imaginary/d, -real/q);[ERROR] cannot find symbol q [CONTEXT] if(rhs.isInfinite() && !isInfinite()) { return ZERO; } if(Math.abs(c) < Math.abs(d)) { if(d == 0.0) { return new Complex(real/c, imaginary/c); } double q = c / d; double denominator = c * q + d; return new Complex((real * q + imagin... |
int index = items[item];int n = items.length; | [BUG] int n = items.length; [CONTEXT] public ClassReader(final byte[] b) { this(b, 0, b.length); } public ClassReader(final byte[] b, final int off, final int len) { this.b = b; items = new int[readUnsignedShort(off + 8)]; <extra_id_0> strings = new String[n]; int max = 0; int index = off + 10; for(int i = 1; i... |
b = b.shiftLeft(1); | [BUG] b = b.shiftLeft( 10);[NO-ERROR] [CONTEXT] int j = b.compareTo(mlo); BigInteger delta = s.subtract(mhi); int j1 =(delta.signum() <= 0) ? 1 : b.compareTo(delta); if(j1 == 0 &&((word1 & 1) == 0)) { if(j > 0) digit++; done = true; } else if(j < 0 ||(j == 0 &&((word1 & 1) == 0))) { if(j1 > 0) { Use whichever would pr... |
checkEndCode(); | [BUG] checkOpcode( opcode, 1);checkEndCode();[NO-ERROR] [CONTEXT] public void visitTryCatchBlock( final Label start, final Label end, final Label handler, final String type) { checkStartCode(); <extra_id_0> if(type != null) { checkInternalName(type,"type"); } mv.visitTryCatchBlock(start, end, handler, type); } [CLAS... |
checkState(++count < 10,"Stuck in loop expanding types to skip."); | [BUG] checkState( ++count < 10,"ltuck in loop expanding types to skip.");[NO-ERROR] [CONTEXT] void addTypeToSkip(T type) { for(T skipType : typeSystem.getTypesToSkipForType(type)) { typesToSkip.add(skipType); getTypes().union(skipType, type); } } void expandTypesToSkip() { if(shouldRename()) { int count = 0; while(tr... |
AbstractInsnNode ifirst = insns.first; | [BUG] AbstractInsnNode ifirst = prev;[NO-ERROR] [CONTEXT] public void insert(final AbstractInsnNode location, final InsnList insns) { if(check && !(contains(location) && insns != this)) { throw new IllegalArgumentException(); } if(insns.size == 0) { return; } size += insns.size; <extra_id_0> AbstractInsnNode ilast =... |
ary2 = rangeAxis.valueToJava2D(rary2, plotArea, rangeAxisLocation); | [BUG] [ERROR] null testDrawWithNullInfo [CONTEXT] raly2 = wforce.doubleValue() * Math.sin(aldir) * 0.8; alx2 = domainAxis.valueToJava2D(ralx2, plotArea, domainAxisLocation); aly2 = rangeAxis.valueToJava2D(raly2, plotArea, rangeAxisLocation); line = new Line2D.Double(alx2, aly2, ax2, ay2); g2.draw(line); double ardir =... |
modifiers =(modifiers &(~(Constants.ACC_PROTECTED))) |(Constants.ACC_PUBLIC); | [BUG] if(forcePublic.contains(MethodWrapper.create(method))){ modifiers =(modifiers & ~Constants.ACC_PROTECTED)| Constants.ACC_PUBLIC; } [CONTEXT] public Object transform(Object value) { Method method =(Method)value; int modifiers = Constants.ACC_FINAL |(method.getModifiers() & ~Constants.ACC_ABSTRACT & ~Constants.A... |
String methodName = name.getNext().getString(); | [BUG] char methodName = name.getNext().getchar();[ERROR] cannot find symbol [CONTEXT] public void visit(NodeTraversal t, Node n, Node parent) { switch(n.getType()) { case Token.CALL: boolean isExpr = parent.getType() == Token.EXPR_RESULT; Node left = n.getFirstChild(); if(left.getType() == Token.GETPROP) { Node name ... |
if(canReplaceWithSetProp(propNameNode, n, parent)) { | [BUG] if(canReplaceWithSetProp( n, parent)){[ERROR] method canReplaceWithSetProp in class AliasExternals.PropertyGatherer cannot be applied to given types; [CONTEXT] public void visit(NodeTraversal t, Node n, Node parent) { if(n.getType() == Token.GETPROP) { Node propNameNode = n.getLastChild(); if(canReplaceWithGetPr... |
hours = 0; | [BUG] years -= 1;hours = 0;[ERROR] expected:<[3]6> but was:<[2]6> testFormatPeriod [CONTEXT] days += 365 * years; years = 0; } } if(!Token.containsTokenWithValue(tokens, M)) { days += end.get(Calendar.DAY_OF_YEAR) - start.get(Calendar.DAY_OF_YEAR); months = 0; } if(!Token.containsTokenWithValue(tokens, d)) { hours += ... |
putAll(entry.getKey() ,(Collection<V>)entry.getValue()); | [BUG] [NO-ERROR] [CONTEXT] public void putAll(final Map<? extends K, ?> map) { if(map instanceof MultiMap) { for(final Map.Entry<? extends K, Object> entry :((MultiMap<? extends K, V>) map).entrySet()) { <extra_id_0> } } else { for(final Map.Entry<? extends K, ?> entry : map.entrySet()) { put(entry.getKey(), entry.g... |
temp = new Range(s1 +(e1 - s1)/ 2, s2 +(e2 - s2)/ 2); | [BUG] temp = new Range( s1 +(e1 - s1) / 2, s2 |(e2 - s2) / 2);[ERROR] Range(double, double testGetDomainBoundsWithoutInterval [CONTEXT] if(this.xPosition == TimePeriodAnchor.START) { TimePeriod maxStart = series.getTimePeriod( series.getMaxStartIndex()); temp = new Range(start.getStart().getTime(), maxStart.getStart()... |
lower = lowerMargin - lower; | [BUG] lower = lower - lowerMargin; [CONTEXT] if(lower >= 0.0) { lower = 0.0; } else { <extra_id_0> } [CLASS] SymbolAxis [METHOD] autoAdjustRange [RETURN_TYPE] void [VARIABLES] List symbols ticks boolean currentGridBandIsDark firstGridBandIsDark flag gridBandsVisible Paint DEFAULT_GRID_BAND_PAINT gridBandPaint pain... |
return start == other.start && end == other.end && negated == other.negated; | [BUG] return start == other.start && other.end == end && negated == other.negated;[NO-ERROR] [CONTEXT] public boolean equals(Object obj) { if(obj == this) { return true; } if(obj instanceof CharRange == false) { return false; } CharRange other =(CharRange) obj; <extra_id_0> } [CLASS] CharRange [METHOD] equals [RETUR... |
[BUG] return threadSafely().pullOngoingStubbing(); [CONTEXT] public IOngoingStubbing pullOngoingStubbing() { <extra_id_0> [CLASS] ThreadSafeMockingProgress [METHOD] pullOngoingStubbing [RETURN_TYPE] IOngoingStubbing [VARIABLES] ThreadLocal mockingProgress boolean | |
if(( _numTypesValid & NR_INT)== 0){ | [BUG] if(( _numTypesValid >> NR_INT) == 0) {[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] public int getIntValue() throws IOException, JsonParseException { <extra_id_0> if(_numTypesValid == NR_UNKNOWN) { // not parsed at all _parseNumericValue(NR_INT);... |
if(dt == null){ dt = new DateTimeFormatterBuilder().append(date()).append(tTime()).toFormatter(); } | [BUG] [ERROR] null testTest [CONTEXT] public static DateTimeFormatter dateTime() { <extra_id_0> } return dt; [CLASS] ISODateTimeFormat [METHOD] dateTime [RETURN_TYPE] DateTimeFormatter [VARIABLES] DateTimeFormatter bd bdt bdtx bod bodt bodtx bt btt bttx btx bwd bwdt bwdtx dh dhm dhms dhmsf dhmsl dme dotp dp dpe dt ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.