fix
stringlengths
2
833
ctx
stringlengths
80
394k
buffer[count] =(char)(56320 + random.nextInt(128));
[BUG] buffer[count] =(char)(56320 >> random.nextInt( 128));[ERROR] differs at 47(dabf,3f) expected:<?> but was:<?> testLang100 [CONTEXT] if(count == 0) { count++; } else { <extra_id_0> count--; buffer[count] = ch; } [CLASS] RandomStringUtils [METHOD] random [RETURN_TYPE] String int count int start int end boolean le...
return setPosition(getCurrentPosition() + 1);
[BUG] return setPosition( getCurrentPosition()+ 2);[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] public boolean nextNode() { <extra_id_0> } [CLASS] ChildContext [METHOD] nextNode [RETURN_TYPE] boolean [VARIABLES] NodeIterator iterator boolean reve...
n = getNodeFactory().nullNode();
[BUG] [NO-ERROR] [CONTEXT] public <T extends TreeNode> T readTree(JsonParser jp) throws IOException, JsonProcessingException { DeserializationConfig cfg = getDeserializationConfig(); JsonToken t = jp.getCurrentToken(); if(t == null) { t = jp.nextToken(); if(t == null) { return null; } } JsonNode n =(JsonNode) _read...
if(prop.reads == null) { prop.reads = null; }
[BUG] prop.reads = null; [CONTEXT] private void addRead(Node nameNode, NodeTraversal t) { String name = nameNode.getString(); Property prop = getProperty(name); prop.readCount++; if(prop.writeCount == 0 && !isExternallyDefined(name)) { if(checkReads.isOn()) { if(prop.reads == null) { prop.reads = new ArrayList<Node>...
} else if(kind == STACK){
[BUG] } else {[NO-ERROR] [CONTEXT] if(frame.inputLocals == null) { frame.inputLocals = new int[nLocal]; changed = true; } for(i = 0; i < nLocal; ++i) { if(outputLocals != null && i < outputLocals.length) { s = outputLocals[i]; if(s == 0) { t = inputLocals[i]; } else { dim = s & DIM; kind = s & KIND; if(kind == LOCAL) ...
if(opcode == Opcodes.GOTO){
[BUG] if(localVarTypeCount == Opcodes.GOTO) {[NO-ERROR] [CONTEXT] code.putByte(opcode); label.put(this, code, code.length - 1, false); } if(currentBlock != null) { if(nextInsn != null) { visitLabel(nextInsn); } <extra_id_0> noSuccessor(); } } } public void visitLabel(final Label label) { resize |= label.resolve(...
if(c == n.getLastChild()){
[BUG] if(tryBlock == n.getLastChild()) {[ERROR] cannot find symbol tryBlock [CONTEXT] trueBlock = ifTree.getFirstChild().getNext(); falseBlock = trueBlock.getNext(); tryMinimizeIfBlockExits(trueBlock, falseBlock, ifTree, exitType, labelName); trueBlock = ifTree.getFirstChild().getNext(); falseBlock = trueBlock.getNex...
if(valuePointer != null && valuePointer == this) {
[BUG] if(valuePointer != null && valuePointer != this){ [CONTEXT] public NodeIterator attributeIterator(QName qname) { NodePointer valuePointer = getValuePointer(); <extra_id_0> return valuePointer.attributeIterator(qname); } return null; } [CLASS] NodePointer [METHOD] attributeIterator [RETURN_TYPE] NodeIterator ...
if(nextParent == null){
[BUG] if(lookAhead == null) {[ERROR] null testExternedPropertyName [CONTEXT] if(!iterator.hasNext()) { lookAhead = null; return; } Node nextNode = iterator.next(); Node nextParent = iterator.currentParent(); int type = nextNode.getType(); if(valueHasSideEffects) { if(type == Token.NAME && !varName.equals(nextNode.get...
throw new JXPathException("Cannot create an object for path" + asPath()+"/" + name +"[" +(index | 1) +"]" +", operation is not allowed for this type of node");
[BUG] throw new JXPathException("Cannot create an object for path" + asPath() +"/" + name +"[" +(index + 1)+"]" +", operation is not allowed for this type of node"); [CONTEXT] public NodePointer createChild(JXPathContext context, QName name, int index) { <extra_id_0> } [CLASS] NodePointer [METHOD] createChild [RET...
stream.writeObject(s.getDashArray());
[BUG] stream.writeInt( s.getLineJoin());stream.writeObject( s.getDashArray());[ERROR] expected:<org.jfree.chart.annotations.CategoryLineAnnotation@af96f152> but was:<null> testSerialization [CONTEXT] throws IOException { if(stream == null) { throw new IllegalArgumentException("Null 'stream' argument."); } if(stroke !=...
return new TimeOfDay(iTimeOfDay, newValues);
[BUG] return new TimeOfDay( iTimeOfDay);[ERROR] null test_other [CONTEXT] public TimeOfDay addToCopy(int valueToAdd) { int[] newValues = iTimeOfDay.getValues(); newValues = getField().addWrapPartial(iTimeOfDay, iFieldIndex, newValues, valueToAdd); <extra_id_0> } [CLASS] Property [METHOD] addToCopy [RETURN_TYPE] Time...
builder.append(line);
[BUG] builder.append("|");builder.append( line);[ERROR] expected:< 7| [hello world testThreeLineRegionEmptyLine [CONTEXT] if(end < 0) { builder.append(line); start = -1; } else { <extra_id_0> builder.append('\n'); start = end + 1; end = code.indexOf('\n', start); lineNumber++; } [CLASS] LightweightMessageFormatter L...
return _value.toString();
[BUG] return v.toString();[ERROR] cannot find symbol v [CONTEXT] public String asText() { <extra_id_0> } [CLASS] BigIntegerNode [METHOD] asText [RETURN_TYPE] String [VARIABLES] BigInteger MAX_INTEGER MAX_LONG MIN_INTEGER MIN_LONG _value v boolean
result[i] = array[i].shortValue();
[BUG] result[i] = EMPTY_SHORT_OBJECT_ARRAY[i].shortValue();[ERROR] 0 testToPrimitive_short [CONTEXT] public static short[] toPrimitive(Short[] array) { if(array == null) { return null; } else if(array.length == 0) { return EMPTY_SHORT_ARRAY; } final short[] result = new short[array.length]; for(int i = 0; i < array.le...
if(isDigit(c)||(c == '.' && isDigit(peekChar()))){
[BUG] if(c == '.') {[ERROR] null testFor [CONTEXT] { return result; } else { parser.addWarning("msg.reserved.keyword", str); } } } this.string =(String)allStrings.intern(str); return Token.NAME; } <extra_id_0> stringBufferTop = 0; int base = 10; if(c == '0') { c = getChar(); if(c == 'x' || c == 'X') { base = 16; c ...
this.autoWidthMethod = autoWidthMethod;
[BUG] this.autoWidthFactor = autoWidthFactor;this.autoWidthMethod = autoWidthMethod;[ERROR] null testDrawWithNullInfo [CONTEXT] public void setAutoWidthMethod(int autoWidthMethod) { if(this.autoWidthMethod != autoWidthMethod) { <extra_id_0> notifyListeners(new RendererChangeEvent(this)); } } [CLASS] CandlestickRende...
addAction(new FunctionCallBuilder(first, receiver.getNext()).setIsCallFunction().build());
[BUG] addAction( new FunctionCallBuilder( jsRoot, receiver.getNext()).setIsCallFunction().build());[ERROR] cannot find symbol jsRoot [CONTEXT] case Token.NEW: case Token.CALL: Node receiver = n.getFirstChild(); if(receiver.getType() == Token.GETPROP) { Node first = receiver.getFirstChild(); if("call".equals(first.getN...
for(int i = 0; i < arrays.length; i++){
[BUG] for(arrays.lengthnt i = 0; i < i; i++) {[NO-ERROR] [CONTEXT] private void generateConstructor(Object[] arrays) { CodeEmitter e = begin_method(Constants.ACC_PUBLIC, CSTRUCT_OBJECT_ARRAY, null); e.load_this(); e.super_invoke_constructor(); e.load_this(); e.load_arg(0); e.super_putfield("a", Constants.TYPE_OBJECT_A...
result = JsonStringEncoder.getInstance().encodeAsUTF8(_value);
[BUG] result = JsonStringEncoder.getInstance().quoteAsUTF8( _jdkSerializeValue);[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] public int writeUnquotedUTF8(OutputStream out) throws IOException { byte[] result = _unquotedUTF8Ref; if(result == null) { <ext...
String qualifiedName = n.getFirstChild().getQualifiedName();
[BUG] String qualifiedName = parent.getFirstChild().getQualifiedName();[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] private final List<Node> newNodes = Lists.newArrayList(); @Override public boolean shouldTraverse(NodeTraversal t, Node n, Node parent) { return parent == null || parent.getType() != Token.SCRIPT ...
if(windowSize != INFINITE_WINDOW){
[BUG] if(getN() < windowSize) {[ERROR] Incorrect inverse cumulative probability value returned for 0.05 expected:<4> but was:<3> testInverseCumulativeProbabilities [CONTEXT] public void addValue(double v) { <extra_id_0> if(getN() == windowSize) { eDA.addElementRolling(v); } else if(getN() < windowSize) { eDA.addElem...
builder = new StringBuilder();
[BUG] builder = null;[ERROR] expected:<[a, b, c]> but was:<[]> testParseComments [CONTEXT] case '\r': case '\n': 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(); } } } if(b...
_outputStream.flush();
[BUG] _outputStream.close();[ERROR] null testNoAutoCloseOutputStream [CONTEXT] } } _flushBuffer(); if(_outputStream != null) { if(_ioContext.isResourceManaged() || isEnabled(Feature.AUTO_CLOSE_TARGET)) { _outputStream.close(); } elseif(isEnabled(Feature.FLUSH_PASSED_TO_STREAM)) { <extra_id_0> } } _releaseBuffers(...
if(preds.length == 1){
[BUG] if(preds.length != 1) {[ERROR] [CONTEXT] public static <T> Predicate<T> anyPredicate(final Collection<? extends Predicate<? super T>> predicates) { final Predicate<? super T>[] preds = FunctorUtils.validate(predicates); if(preds.length == 0) { return FalsePredicate.<T>falsePredicate(); } <extra_id_0> return(Pr...
if(edge == RectangleEdge.LEFT){
[BUG] if(cursor - il) {[ERROR] incompatible types [CONTEXT] if(isVerticalTickLabels()) { ol = fm.getMaxAdvance(); } else { ol = fm.getHeight(); } double il = 0; if(isTickMarksVisible()) { float xx =(float) valueToJava2D( getRange().getUpperBound(), dataArea, edge); Line2D mark = null; g2.setStroke(getTickMarkStroke())...
n.setJSType(getNativeType(UNKNOWN_TYPE));
[BUG] n.setJSType( getNativeType( ARRAY_TYPE));n.setJSType( getNativeType( UNKNOWN_TYPE));[ERROR] null testExternedPropertyName [CONTEXT] for(Node name = n.getFirstChild(); name != null; name = name.getNext().getNext()) { Node value = name.getNext(); scope = traverse(name, scope); scope = traverse(value, scope); Strin...
for(int i = 0, len = name.length(); i < len; ++i){
[BUG] for(int i = 0, len = name.length() + 0; i < len; ++i) {[NO-ERROR] [CONTEXT] if(name.endsWith("[]")) { do { name = name.substring(0, name.length() - 2); ++changes; } while(name.endsWith("[]")); sb = new StringBuilder(name); if(name.endsWith("s")) { sb.append("es"); } else { sb.append('s'); } } else { sb = new Str...
return round(( Date)date, field);
[BUG] return round((Date) date, amount);[ERROR] cannot find symbol amount [CONTEXT] public static Date round(Object date, int field) { if(date == null) { throw new IllegalArgumentException("The date must not be null"); } if(date instanceof Date) { <extra_id_0> } else if(date instanceof Calendar) { return round((Cale...
[Delete]
[BUG] if(( result.length()) == 0) { String str2 = _secondary.findDeserializationName( am); if(str2 != null) { result = str2; } }[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.jack...
mv.visitIntInsn( Constants.BIPUSH, i);mv.visitInsn( Constants.I2F);
[BUG] mv.visitInsn(Constants.I2F); [CONTEXT] mv.visitInsn(Constants.L2D); } else if(to == Type.FLOAT_TYPE) { mv.visitInsn(Constants.L2F); } else { mv.visitInsn(Constants.L2I); cast_numeric(Type.INT_TYPE, to); } } else { if(to == Type.BYTE_TYPE) { mv.visitInsn(Constants.I2B); } else if(to == Type.CHAR_TYPE) { mv.visi...
return element == null ? JsonNull.createJsonNull() : element;
[BUG] [ERROR] circular reference error testUserDefinedExclusionPolicies [CONTEXT] private JsonElement findAndInvokeCustomSerializer(ObjectTypePair objTypePair) { Pair<JsonSerializer<?>,ObjectTypePair> pair = objTypePair.getMatchingHandler(serializers); if(pair == null) { return null; } JsonSerializer serializer = pair...
Property global = globals.get(name);
[BUG] Property global = globals.get( unaliasableGlobals);[ERROR] testGlobalAlias [CONTEXT] private final class GlobalGatherer extends AbstractPostOrderCallback { public void visit(NodeTraversal t, Node n, Node parent) { if(n.getType() == Token.NAME) { String name = n.getString(); Scope.Var var = t.getScope().getVar(n...
lower = lower - lowerMargin;
[BUG] lower = upper - upperMargin;[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] if(lower >= 0.0) { lower = 0.0; } else { <extra_id_0> } [CLASS] SymbolAxis [METHOD] autoAdjustRange [RETURN_TYPE] void [VARIABLES] List...
jp.nextToken();
[BUG] t = jp.nextToken();jp.nextToken();[ERROR] expected:<[foobar]> but was:<[test]> testUpdatingWithViews [CONTEXT] protected final Object deserializeWithView(JsonParser jp, DeserializationContext ctxt, Object bean, Class<?> activeView) throws IOException, JsonProcessingException { JsonToken t = jp.getCurrentToken...
while(len > 0){
[BUG] while(len > SURR1_FIRST) {[NO-ERROR] [CONTEXT] public void writeRaw(String text, int offset, int len) throws IOException, JsonGenerationException { <extra_id_0> char[] buf = _charBuffer; final int blen = buf.length; final int len2 =(len < blen) ? len : blen; text.getChars(offset, offset+len2, buf, 0); writeRaw...
Paint paint = getItemOutlinePaint(row, column);
[BUG] [ERROR] null testDrawWithNullInfo [CONTEXT] if(isDrawBarOutline() && state.getBarWidth() > BAR_OUTLINE_WIDTH_THRESHOLD) { Stroke stroke = getItemOutlineStroke(row, column); <extra_id_0> if(stroke != null && paint != null) { g2.setStroke(stroke); g2.setPaint(paint); g2.draw(bar); } [CLASS] LayeredBarRenderer [M...
if(isDrawBarOutline() && state.getBarWidth() > BAR_OUTLINE_WIDTH_THRESHOLD){
[BUG] if(stroke != null) {[ERROR] cannot find symbol stroke [CONTEXT] seriesPaint = getPositiveBarPaint(); } else { seriesPaint = getLastBarPaint(); } } if(getGradientPaintTransformer() != null && seriesPaint instanceof GradientPaint) { GradientPaint gp =(GradientPaint) seriesPaint; seriesPaint = getGradientPaintTrans...
if(other == null){
[BUG] if(getValue() < 0) {[ERROR] null test_other [CONTEXT] public boolean isLessThan(Months other) { <extra_id_0> return getValue() < 0; } return getValue() < other.getValue(); } [CLASS] Months [METHOD] isLessThan [RETURN_TYPE] boolean Months other [VARIABLES] boolean PeriodFormatter PARSER Months EIGHT ELEVEN FIVE...
if(column == 0){
[BUG] if(column <= 0) {[ERROR] expected:<org.jfree.data.time.TimePeriodValuesCollection@4edde6e5> but was:<org.jfree.data.time.TimePeriodValuesCollection@1ed6993a> testSerialization [CONTEXT] if(row < this.series.getItemCount()) { if(column == 0) { return this.series.getTimePeriod(row); } else { if(column == 1) { retu...
if(index < 0){
[BUG] if(index < 6) {[NO-ERROR] [CONTEXT] private static int helper(FastClass fc, Method method) { int index = fc.getIndex(method.getName(), method.getParameterTypes()); <extra_id_0> Class[] types = method.getParameterTypes(); System.err.println("hash=" + method.getName().hashCode() +" size=" + types.length); for(in...
button.setActionCommand("OutlineStroke");
[BUG] button.setActionCommand("ineStrutlineStroke");[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] interior.add( new JLabel(localizationResources.getString("Outline_stroke"))); JButton button = new JButton(localiz...
buf.append(Integer.toString(c, 16));
[BUG] buf.append( Integer.toString( c, 22));[NO-ERROR] [CONTEXT] public static void appendString(final StringBuffer buf, final String s) { buf.append('\"'); for(int i = 0; i < s.length(); ++i) { char c = s.charAt(i); if(c == '\n') { buf.append("\\n"); } else if(c == '\r') { buf.append("\\r"); } else if(c == '\\') { bu...
writeEndArray();
[BUG] writeEndObject();writeEndArray();[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] if(_outputBuffer != null && isEnabled(Feature.AUTO_CLOSE_JSON_CONTENT)) { while(true) { JsonStreamContext ctxt = getOutputContext(); if(ctxt.inArray()) { <extra_id_0> ...
comparison =(lhs.length < rhs.length)? -1 : +1;
[BUG] comparison =(lhs.length.length < rhs.length) ? -1 : +1;[ERROR] int cannot be dereferenced [CONTEXT] public CompareToBuilder append(byte[] lhs, byte[] rhs) { if(comparison != 0) { return this; } if(lhs == rhs) { return this; } if(lhs == null) { comparison = -1; return this; } if(rhs == null) { comparison = +1; re...
units.add(new DateTickUnit(DateTickUnit.HOUR, 2, DateTickUnit.MINUTE, 10, f3));
[BUG] units.add( new DateTickUnit( DateTickUnit.MINUTE, 2, DateTickUnit.HOUR, 10, f3));[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] DateTickUnit.SECOND, 10, f3)); units.add(new DateTickUnit(DateTickUnit.MINUTE, 5, Da...
if(curNode.getType() == Token.NAME && varName.equals(curNode.getString())) {
[BUG] if(curNode.getType()> Token.NAME && varName.equals( curNode.getString())){[ERROR] null testExternedPropertyName [CONTEXT] @Override public void remove() { throw new UnsupportedOperationException("Not implemented"); } private void advanceLookAhead(boolean atStart) { if(!atStart) { if(lookAhead == null) { return; ...
logger.fine("Inlining property accessor:" + callName);
[BUG] logger.fine("Inlining property accessor: property acce" + callName);[ERROR] null testDebugFlag3 [CONTEXT] return; } Node firstDefinition = definitions.iterator().next(); if(definitions.size() == 1 || allDefinitionsEquivalent(definitions)) { if(!argsMayHaveSideEffects(callNode)) { Node returned = returnedExpress...
_parentBindings = parent;
[BUG] _parentBindings = null;[ERROR] null testFormatForParsers [CONTEXT] private TypeBindings(TypeFactory tf, TypeBindings parent, Class<?> cc, JavaType type) { _typeFactory = tf; <extra_id_0> _contextClass = cc; _contextType = type; } [CLASS] TypeBindings [METHOD] <init> [RETURN_TYPE] JavaType) TypeFactory tf TypeB...
int d =(( value + 1)* 13421772)>> 27;
[BUG] int d =(( value + 1) * 13421774) >> 27;[ERROR] null testTest [CONTEXT] return; } } if(value < 10) { for(; size > 1; size--) { out.write('0'); } out.write(value + '0'); } else if(value < 100) { for(; size > 2; size--) { out.write('0'); } <extra_id_0> out.write(d + '0'); out.write(value -(d << 3) -(d << 1) + '0...
return defaultOptPrefix;
[BUG] return this.defaultArgName; [CONTEXT] public String getArgName() { <extra_id_0> } [CLASS] HelpFormatter OptionComparator [METHOD] getArgName [RETURN_TYPE] String [VARIABLES] int DEFAULT_DESC_PAD DEFAULT_LEFT_PAD DEFAULT_WIDTH defaultDescPad defaultLeftPad defaultWidth padding width String DEFAULT_ARG_NAME DE...
return Context.IN_FOR_INIT_CLAUSE;
[BUG] return(context == Context.IN_FOR_INIT_CLAUSE ? Context.IN_FOR_INIT_CLAUSE : Context.OTHER); [CONTEXT] privateContext getContextForNoInOperator(Context context) { <extra_id_0> } [CLASS] CodeGenerator Context [METHOD] getContextForNoInOperator [RETURN_TYPE] CodeGenerator$Context Context context [VARIABLES] Con...
open = close = colon = -1;
[BUG] open = close = colon = -FEATURE_E4X;[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] { String fileStr = s.substring(open + 1, colon); if(!fileStr.endsWith(".java")) { String lineStr = s.substring(colon + 1, close); try { linep[0] = Integer.parseInt(lineStr); if(linep[0] < 0) { linep[0] = 0; } re...
result.append(" <<");
[BUG] result.append("case");result.append(" <<");[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] break; case Token.GE: result.append(" >="); break; case Token.GT: result.append(" >"); break; case Token.INSTANCEOF: result.append(" instanceof"); break; case Token.LSH: <extra_id_0> break; case Token.R...
fields.millisOfDay = new CutoverField(julian.millisOfDay() , fields.millisOfDay, iCutoverMillis);
[BUG] fields.millisOfDay = new CutoverField( iJulianChronology.millisOfDay(), fields.millisOfDay, iCutoverMillis);[ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHashCode [CONTEXT] fields.copyFieldsFrom(gregorian); if(gregorian.millisOfDay().get(iCutoverMillis) == 0) { fields.mi...
b_subtrahendAtIntersect =(( l_xi == l_x4)&&(l_yi == l_y4));
[BUG] b_subtrahendAtIntersect =(( l_xi == l_x4) ||(l_yi == l_y4));[ERROR] null testDrawWithNullInfo [CONTEXT] double l_slopeA = l_numeratorA / l_denominator; double l_slopeB = l_numeratorB / l_denominator; if((0 < l_slopeA) &&(l_slopeA <= 1) &&(0 < l_slopeB) &&(l_slopeB <= 1)) { double l_xi = l_x1 +(l_slopeA *(l_x2 - ...
type = getNativeType(NUMBER_TYPE);
[BUG] n.setJSType( getNativeType( UNKNOWN_TYPE));type = getNativeType( NUMBER_TYPE);[ERROR] null testExternedPropertyName [CONTEXT] JSType leftType = left.getJSType(); JSType rightType = right.getJSType(); JSType type = getNativeType(UNKNOWN_TYPE); if(leftType != null && rightType != null) { boolean leftIsUnknown = le...
if(zone == getZone()){
[BUG] if(zone != getZone()) {[ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHashCode [CONTEXT] public Chronology withZone(DateTimeZone zone) { if(zone == null) { zone = DateTimeZone.getDefault(); } <extra_id_0> return this; } return getInstance(zone); } [CLASS] JulianChronology [...
if(sig.equals(Constants.SIG_STATIC)&& !TypeUtils.isInterface(getAccess())) {
[BUG] if(insn != Constants.RETURN) {[NO-ERROR] [CONTEXT] rawStaticInit.visitMaxs(0, 0); staticInit = staticHook = null; staticHookSig = null; } cv.visitEnd(); } public CodeEmitter begin_method(int access, Signature sig, Type[] exceptions) { if(classInfo == null) throw new IllegalStateException("classInfo is null!" + t...
for(int i = 0; i < stack.size(); ++i){
[BUG] for(int i = 0; i < stack.size() + 3; ++i) {[NO-ERROR] [CONTEXT] public AbstractInsnNode clone(final Map labels) { FrameNode clone = new FrameNode(); clone.type = type; if(local != null) { clone.local = new ArrayList(); for(int i = 0; i < local.size(); ++i) { Object l = local.get(i); if(l instanceof LabelNode) { ...
if(_formatRFC1123 == null){
[BUG] if(df == null) {[ERROR] cannot find symbol df [CONTEXT] protected Date parseAsRFC1123(String dateStr, ParsePosition pos) { <extra_id_0> _formatRFC1123 = _cloneFormat(DATE_FORMAT_RFC1123); } return _formatRFC1123.parse(dateStr, pos); } [CLASS] StdDateFormat [METHOD] parseAsRFC1123 [RETURN_TYPE] Date String date...
if(!isVisible()){
[BUG] if(!isAxisLineVisible()) {[ERROR] null testEquals [CONTEXT] public AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space) { if(space == null) { space = new AxisSpace(); } <extra_id_0> return space; } double tickLabelHeight = 0.0; double tickLabelWidth = 0....
if(iNextInfo == null || millis < iNextInfo.iPeriodStart){
[BUG] if(iNextInfo == null || millis < periodStart) {[ERROR] cannot find symbol periodStart [CONTEXT] public String getNameKey(long millis) { <extra_id_0> if(iNameKey == null) { iNameKey = iZoneRef.getNameKey(iPeriodStart); } return iNameKey; } return iNextInfo.getNameKey(millis); } [CLASS] Info [METHOD] getNameKey ...
if(sb.length() > MAX_DESC_LENGTH){
[BUG] if(sb.length() - 8 > MAX_DESC_LENGTH) {[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] { String suffix = _propertiesAsString; if(suffix == null && _propertyIds != null) { StringBuilder sb = new StringBuilder(100); int len = _propertyIds.size(); if(len == 1) { sb.append("(one known property: \"...
_parsingContext = _parsingContext.createChildObjectContext(_tokenInputRow, _tokenInputCol);
[BUG] _parsingContext = _parsingContext.createChildObjectContext( 0, _tokenInputCol);[NO-ERROR] [CONTEXT] { if(_currToken == JsonToken.FIELD_NAME) { // mostly copied from '_nextAfterName' _nameCopied = false; JsonToken t = _nextToken; _nextToken = null; _currToken = t; if(t == JsonToken.VALUE_TRUE) { return Boolean.TR...
[Delete]
[BUG] if(pos !=(signature.length())){ throw new IllegalArgumentException((( signature +": error at index") + pos)); }[NO-ERROR] [CONTEXT] public void visitLabel(final Label label) { checkStartCode(); checkEndCode(); checkLabel(label, false,"label"); <extra_id_0> throw new IllegalArgumentException("Already visited l...
String elementData = element.data();
[BUG] [ERROR] expected:<[<img alt="" />]> but was:<[]> testHandlesEmptyAttributes [CONTEXT] public String data() { StringBuilder sb = new StringBuilder(); for(Node childNode : childNodes) { if(childNode instanceof DataNode) { DataNode data =(DataNode) childNode; sb.append(data.getWholeData()); } else if(childNode inst...
minLens_zt = minLens[zt];
[BUG] minLens_minLens_zt = minLens[zt];[ERROR] cannot find symbol minLens_minLens_zt [CONTEXT] for(int j = nextSym - 1; j > 0;) { yy[j] = yy[--j]; } } else { System.arraycopy(yy, 0, yy, 1, nextSym - 1); } yy[0] = tmp; if(groupPos == 0) { groupPos = G_SIZE - 1; zt = selector[++groupNo] & 0xff; base_zt = base[zt]; limit...
_name = newName;
[BUG] _name = internalName;[ERROR] cannot find symbol internalName [CONTEXT] public POJOPropertyBuilder(POJOPropertyBuilder src, String newName) { _internalName = src._internalName; <extra_id_0> _annotationIntrospector = src._annotationIntrospector; _fields = src._fields; _ctorParameters = src._ctorParameters; _gett...
_outputTail = NumberOutput.outputInt(s, _outputBuffer, _outputTail);
[BUG] _outputTail = NumberOutput.outputInt( s, _outputTail, _outputBuffer);[ERROR] no suitable method found for outputInt(short,int,byte[]) [CONTEXT] public void writeNumber(short s) throws IOException, JsonGenerationException { _verifyValueWrite("write number"); if((_outputTail + 6) >= _outputEnd) { _flushBuffer(); }...
createEdge(node, Branch.UNCOND, next);
[BUG] createEdge( n, Branch.UNCOND, next);[ERROR] cannot find symbol n [CONTEXT] private void handleSwitch(Node node) { Node next = getNextSiblingOfType( node.getFirstChild().getNext(), Token.CASE, Token.EMPTY); if(next != null) { // Has at least one CASE or EMPTY <extra_id_0> } else { // Has no CASE but possibly a...
readInt( item + 2) , c, -1, null);
[BUG] readInt(v + 2), c, -1, null); [CONTEXT] } else if(ANNOTATIONS &&"RuntimeVisibleAnnotations".equals(attrName)) { anns = v + 6; } else if("Deprecated".equals(attrName)) { access |= Opcodes.ACC_DEPRECATED; } else if("Synthetic".equals(attrName)) { access |= Opcodes.ACC_SYNTHETIC; } else if("SourceDebugExtension"....
private double ybar = 0;
[BUG] private double ybar = 0L;[ERROR] Incorrect inverse cumulative probability value returned for 0.05 expected:<4> but was:<3> testInverseCumulativeProbabilities [CONTEXT] private double xbar = 0; <extra_id_0> [CLASS] SimpleRegression [VARIABLES]
tmp = Character.toTitleCase( ch);whitespace = Character.isWhitespace( ch);
[BUG] whitespace = Character.isWhitespace(ch); [CONTEXT] public static String swapCase(String str) { int strLen; if(str == null ||(strLen = str.length()) == 0) { return str; } StringBuffer buffer = new StringBuffer(strLen); boolean whitespace = true; char ch = 0; char tmp = 0; for(int i = 0; i < strLen; i++) { ch = ...
if(rowKeys == null){
[BUG] if(rowKeys != null) {[ERROR] org/jfree/chart/JFreeChartInfo testCloning [CONTEXT] public static CategoryDataset createCategoryDataset(Comparable[] rowKeys, Comparable[] columnKeys, double[][] data) { <extra_id_0> throw new IllegalArgumentException("Null 'rowKeys' argument."); } if(columnKeys == null) { th...
out.writeObject(map);
[BUG] [NO-ERROR] [CONTEXT] private void writeObject(final ObjectOutputStream out) throws IOException { out.defaultWriteObject(); <extra_id_0> [CLASS] UnmodifiableMap [METHOD] writeObject [RETURN_TYPE] void ObjectOutputStream out [VARIABLES] ObjectOutputStream out long serialVersionUID boolean
open = close = colon = -1;
[BUG] open = close = colon = -1 << 4;[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] { String fileStr = s.substring(open + 1, colon); if(!fileStr.endsWith(".java")) { String lineStr = s.substring(colon + 1, close); try { linep[0] = Integer.parseInt(lineStr); if(linep[0] < 0) { linep[0] = 0; } return ...
if(jjmatchedPos < 9){
[BUG] if(jjmatchedPos != 3) {[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] } return -1; } if((active0 & 0xb440f80400000000L) != 0L ||(active1 & 0x2001L) != 0L) { jjmatchedKind = 78; jjmatchedPos = 9; return 12; } return -1; case 10: if((active0 & 0x...
_index += token.length();
[BUG] _index += token.length() - 6;[ERROR] null testFormatForParsers [CONTEXT] public String nextToken() { String token; if(_pushbackToken != null) { token = _pushbackToken; _pushbackToken = null; } else { token = super.nextToken(); } <extra_id_0> return token; } [CLASS] TypeParser MyTokenizer [METHOD] nextToken [RE...
RegularTimePeriod last = getTimePeriod(getItemCount() - 1);
[BUG] RegularTimePeriod last = getTimePeriod( getItemCount() & 1);[ERROR] Index: 1, Size: 1 testSerialization4 [CONTEXT] b.append(item.getPeriod().getClass().getName()); b.append(", but the TimeSeries is expecting an instance of"); b.append(this.timePeriodClass.getName()); b.append("."); throw new SeriesException(b.to...
g2.fill(left);
[BUG] [ERROR] null testDrawWithNullInfo [CONTEXT] right.moveTo((float) xx1, transStack1); right.lineTo((float) xx1, transY1); right.lineTo((float) xxRight, transYRight); right.lineTo((float) xxRight, transStackRight); right.closePath(); } } g2.setPaint(getItemPaint(row, column)); g2.setStroke(getItemStroke(row, column...
if(names == null){
[BUG] if(types == null) {[NO-ERROR] [CONTEXT] public static Type[] fromInternalNames(String[] names) { <extra_id_0> return null; } Type[] types = new Type[names.length]; for(int i = 0; i < names.length; i++) { types[i] = fromInternalName(names[i]); } return types; } [CLASS] TypeUtils [METHOD] fromInternalNames [RETU...
if(column > 0){
[BUG] if(row > 0) {[ERROR] null testDrawWithNullInfo [CONTEXT] x1 = Math.round(x1); x2 = Math.round(x2); if(this.endType == AreaRendererEndType.TRUNCATE) { if(column == 0) { x0 = x1; } else if(column == getColumnCount() - 1) { x2 = x1; } } double yy1 = value.doubleValue(); double yy0 = 0.0; <extra_id_0> Number n0 = ...
push(JsonScope.EMPTY_OBJECT);
[BUG] push( JsonScope.EMPTY_ARRAY);push( JsonScope.EMPTY_OBJECT);[ERROR] expected:<[a, b, c]> but was:<[]> testParseComments [CONTEXT] private JsonToken nextValue() throws IOException { int c = nextNonWhitespace(); switch(c) { case '{': <extra_id_0> hasToken = true; return token = JsonToken.BEGIN_OBJECT; case '[': p...
if(_objectIdReader != null){
[BUG] if(r != null) {[ERROR] cannot find symbol r [CONTEXT] Collection<SettableBeanProperty> props = _properties.values(); BeanPropertyMap propertyMap = new BeanPropertyMap(props); propertyMap.assignIndexes(); boolean anyViews = !_defaultViewInclusion; if(!anyViews) { for(SettableBeanProperty prop : props) { if(prop.h...
mv.visitFrame(type, local.size() , asArray(local), 0, null);
[BUG] mv.visitFrame( type.size(), asArray( local) , 0, null);[NO-ERROR] [CONTEXT] public void accept(final MethodVisitor mv) { switch(type) { case Opcodes.F_NEW: case Opcodes.F_FULL: mv.visitFrame(type, local.size(), asArray(local), stack.size(), asArray(stack)); break; case Opcodes.F_APPEND: <extra_id_0> break; cas...
double yHigh = intervalDataset.getEndYValue(series, item);
[BUG] double yHigh = intervalDataset.getEndYValue( series, pass);[ERROR] null testDrawWithNullInfo [CONTEXT] CrosshairState crosshairState, int pass) { if(!getItemVisible(series, item)) { return; } if(pass == 0) { IntervalXYDataset intervalDataset =(IntervalXYDataset) dataset; State drState =(State) state; double x = ...
System.arraycopy(buffer, index, buffer, index + 4, size - index);
[BUG] System.arraycopy( buffer, index, buffer, index + 4, pos - index);[ERROR] cannot find symbol pos [CONTEXT] public StrBuilder insert(int index, boolean value) { validateIndex(index); if(value) { ensureCapacity(size + 4); <extra_id_0> buffer[index++] = 't'; buffer[index++] = 'r'; buffer[index++] = 'u'; buffer[ind...
parser.addWarning("msg.jsdoc.preservertry", stream.getLineno() , stream.getCharno());
[BUG] parser.addWarning("msg.jsdoc.desc.extra", stream.getLineno(), stream.getCharno());parser.addWarning("msg.jsdoc.preservertry", stream.getLineno(), stream.getCharno());[ERROR] expected:<4> but was:<5> testCommentPositions [CONTEXT] ExtractionInfo paramDescriptionInfo = extractMultilineTextualBlock(token); String p...
if(parent != null && parent.getType() == Token.ASSIGN){
[BUG] if(rhs != null && parent.getType()== Token.ASSIGN) {[ERROR] cannot find symbol rhs [CONTEXT] public boolean shouldTraverse(NodeTraversal t, Node n, Node parent) { if(n.getType() == Token.FUNCTION) { JSDocInfo jsDoc = getFunctionJsDocInfo(n); if(jsDoc != null &&(jsDoc.isConstructor() || jsDoc.hasThisType())) {...
result |= remove(name);
[BUG] result |= remove( null);[ERROR] Full collection removeAll should return false for other elements testCollectionRemoveAll [CONTEXT] public boolean removeAll(final Collection<?> coll) { boolean result = false; for(final Object name : coll) { <extra_id_0> } return result; } [CLASS] ListOrderedSet OrderedSetIterat...
e = ce.begin_method( Constants.ACC_PUBLIC, null);
[BUG] e = ce.begin_method(Constants.ACC_PUBLIC, EQUALS, null); [CONTEXT] 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) ? multiplier : PRIMES[(int)(Math.abs(seed * 13) % PRIMES.length)]; e.push(...
return iInstant.withLocalMillis(iField.set(iInstant.getLocalMillis() , value));
[BUG] return iInstant.withLocalMillis( iField.set( iInstant.getLocalMillis(), second));[ERROR] cannot find symbol second [CONTEXT] public LocalDateTime setCopy(int value) { <extra_id_0> } [CLASS] LocalDateTime Property [METHOD] setCopy [RETURN_TYPE] LocalDateTime int value [VARIABLES] LocalDateTime check iInstant in...
res.append("RealMatrixImpl{");
[BUG] res.append("}");res.append("RealMatrixImpl{");[ERROR] Inconsistent cumulative probabilities for(-667.2485619,-65.6230835) expected:<0.0090000000004829> but was:<0.0> testConsistency [CONTEXT] public String toString() { StringBuffer res = new StringBuffer(); <extra_id_0> if(data != null) { for(int i = 0; i < da...
[BUG] optimizationLevel = cx.getOptimizationLevel(); [CONTEXT] public void initFromContext(Context cx) { setErrorReporter(cx.getErrorReporter()); this.languageVersion = cx.getLanguageVersion(); useDynamicScope = cx.compileFunctionsWithDynamicScopeFlag; generateDebugInfo =(!cx.isGeneratingDebugChanged() || cx.isGener...
StringBuilder builder = new StringBuilder(code.length() * 2);
[BUG] StringBuilder builder = new StringBuilder( code.length() + 1 * 2);[NO-ERROR] [CONTEXT] public String formatRegion(Region region) { if(region == null) { return null; } String code = region.getSourceExcerpt(); if(code.length() == 0) { return null; } int numberLength = Integer.toString(region.getEndingLineNumber())...
if(next != null) {
[BUG] if(prev == null){ [CONTEXT] public void remove(final AbstractInsnNode insn) { if(check && !contains(insn)) { throw new IllegalArgumentException(); } --size; AbstractInsnNode next = insn.next; AbstractInsnNode prev = insn.prev; if(next == null) { if(prev == null) { first = null; last = null; } else { prev.next ...
} else if(( _numTypesValid & NR_BIGDECIMAL)!= 0){
[BUG] } else if(( _numTypesValid & _expLength) != 0) {[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] { if((_numTypesValid & NR_INT) != 0) { _numberLong =(long) _numberInt; } else if((_numTypesValid & NR_BIGINT) != 0) { if(BI_MIN_LONG.compareTo(_numberBigI...
double java2dValue0 = rangeAxis.valueToJava2D(value0.doubleValue() , dataArea, rangeAxisLocation);
[BUG] double java2dValue0 = rangeAxis.valueToJava2D( value0.doubleValue(), dataArea);[ERROR] method valueToJava2D in class ValueAxis cannot be applied to given types; [CONTEXT] CategoryAxis domainAxis, ValueAxis rangeAxis, GanttCategoryDataset dataset, int row, int column) { PlotOrientation orientation = plot.getOrien...
return String.format("%s=\"%s\"", key, StringEscapeUtils.escapeHtml(value));
[BUG] return String.format("%s=\"%s\"", key, StringEscapeUtils.unescapeHtml( key));[ERROR] expected:<...d><body><div title="[Tags &amp;c."><img src="foo.png]" /><p><!-- comment...> but was:<...d><body><div title="[title"><img src="src]" /><p><!-- comment...> testOuterHtml [CONTEXT] public String html() { <extra_id_0>...