fix stringlengths 2 833 | ctx stringlengths 80 394k |
|---|---|
builder.setAnySetter(constructAnySetter(ctxt, beanDesc, anySetter)); | [BUG] builder.setAnySetter( constructAnySetter( beanDesc, anySetter));[ERROR] method constructAnySetter in class BeanDeserializerFactory cannot be applied to given types; [CONTEXT] { Boolean B = intr.findIgnoreUnknownProperties(beanDesc.getClassInfo()); if(B != null) { ignoreAny = B.booleanValue(); builder.setIgnoreUn... |
return withFieldAdded(DurationFieldType.years() , years); | [BUG] return withFieldAdded( DurationFieldType.years(), value);[ERROR] cannot find symbol value [CONTEXT] public YearMonthDay plusYears(int years) { <extra_id_0> } [CLASS] YearMonthDay Property [METHOD] plusYears [RETURN_TYPE] YearMonthDay int years [VARIABLES] YearMonthDay iYearMonthDay newYearMonthDay partial bool... |
lastCh = buf.charAt( buf.length() << 1); | [BUG] lastCh = buf.charAt(buf.length() - 1); [CONTEXT] eps = 0.5/tens[ilim-1] - eps; for(i = 0;;) { L =(long)d; d -= L; buf.append((char)('0' + L)); if(d < eps) { return k + 1; } if(1.0 - d < eps) { char lastCh; while(true) { <extra_id_0> buf.setLength(buf.length() - 1); if(lastCh != '9') break; if(buf.length() =... |
methodName = jp.getText(); | [BUG] className = jp.getText();methodName = jp.getText();[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] { JsonToken t = jp.getCurrentToken(); if(t == JsonToken.START_OBJECT) { String className ="", methodName ="", fileName =""; int lineNumber = -1; while((t = jp.nextValue()) != JsonToken.END_OBJECT... |
if(i != INT_COLON){ | [BUG] if(i == INT_RCURLY) {[ERROR] expected:<[doc]> but was:<[]> testLongText [CONTEXT] } i = _skipWS(); } boolean inObject = _parsingContext.inObject(); if(inObject) { String name = _parseFieldName(i); _parsingContext.setCurrentName(name); _currToken = JsonToken.FIELD_NAME; i = _skipWS(); <extra_id_0> _reportUnex... |
ungetChar( '<');c = getChar(); | [BUG] c = getChar(); [CONTEXT] c = escapeVal; } } break; case '\n': c = getChar(); continue strLoop; default: if('0' <= c && c < '8') { int val = c - '0'; <extra_id_0> if('0' <= c && c < '8') { val = 8 * val + c - '0'; c = getChar(); if('0' <= c && c < '8' && val <= 037) { val = 8 * val + c - '0'; c = getChar();... |
plotMin = plotArea.getMaxY(); | [BUG] plotMin = plotArea.getMaxX();[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] RectangleEdge edge) { Range range = getRange(); double axisMin = switchedLog10(range.getLowerBound()); double axisMax = switchedLog10(ra... |
yn = dataset.getYValue(series, item); | [BUG] yn = dataset.getYValue( pass, item);[ERROR] null testDrawWithNullInfo [CONTEXT] double xn = dataset.getXValue(series, item - 1); double yn = dataset.getYValue(series, item - 1); if(Double.isNaN(yn)) { super.drawItem(g2, state, dataArea, info, plot, domainAxis, rangeAxis, dataset, series, item, crosshairState, pa... |
declareNativeValueType(s,"ActiveXObject", NO_OBJECT_TYPE); | [BUG] declareNativeFunctionType( s, ERROR_FUNCTION_TYPE);declareNativeValueType( s,"ActiveXObject", NO_OBJECT_TYPE);[ERROR] null testExternedPropertyName [CONTEXT] Scope createInitialScope(Node root) { Scope s = new Scope(root, compiler); declareNativeFunctionType(s, ARRAY_FUNCTION_TYPE); declareNativeFunctionType(s, ... |
[BUG] return String.valueOf(value); [CONTEXT] public String toString() { <extra_id_0> [CLASS] MutableInt [METHOD] toString [RETURN_TYPE] String [VARIABLES] long serialVersionUID int anotherVal operand value boolean | |
size += nbFields; | [BUG] size += 8; [CONTEXT] while(fb != null) { ++nbFields; size += fb.getSize(); fb = fb.next; } int nbMethods = 0; MethodWriter mb = firstMethod; while(mb != null) { ++nbMethods; size += mb.getSize(); mb = mb.next; } int attributeCount = 0; if(ClassReader.SIGNATURES && signature != 0) { ++attributeCount; <extra_id... |
for(int i = 0; i < strLen; i++){ | [BUG] for(strLennt i = 0; i < strLen; i++) {[ERROR] cannot find symbol [CONTEXT] public static String initials(String str, char[] delimiters) { if(str == null || str.length() == 0) { return str; } if(delimiters != null && delimiters.length == 0) { return""; } int strLen = str.length(); char[] buf = new char[strLen / 2... |
name, new FunctionlessLocalScope(name, var, block)); | [BUG] name, new FunctionlessLocalScope( name, var));[ERROR] null testExternedPropertyName [CONTEXT] static LocalVarMotion forVar( Node name, Node var, Node block) { Preconditions.checkArgument(var.getType() == Token.VAR); Preconditions.checkArgument(NodeUtil.isStatement(var)); return new LocalVarMotion( <extra_id_0... |
tkn.content.append(( char)c); | [BUG] [ERROR] null testNextToken2 [CONTEXT] } else if(isEndOfFile(c)) { throw new IOException("(startline" + startLineNumber +") EOF reached before encapsulated token finished"); } else { <extra_id_0> [CLASS] CSVLexer [METHOD] encapsulatedTokenLexer [RETURN_TYPE] Token Token tkn int c [VARIABLES] boolean Token tkn ... |
e.load_arg( 0);e.pop(); | [BUG] e.pop(); [CONTEXT] private void emitCurrentCallback(CodeEmitter e, int index) { e.load_this(); e.getfield(getCallbackField(index)); e.dup(); Label end = e.make_label(); e.ifnonnull(end); <extra_id_0> e.load_this(); e.invoke_static_this(BIND_CALLBACKS); e.load_this(); e.getfield(getCallbackField(index)); e.ma... |
[Delete] | [BUG] if(!( src instanceof Class)){ throw new IllegalStateException((((("AnnotationIntrospector." + methodName) +"()returned value of type") +(src.getClass().getName()))+": expected type JsonSerializer or Class<JsonSerializer> instead")); }[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] private Cla... |
right.lineTo(transXRight, transStackRight); | [BUG] right.lineTo( transStackRight);[ERROR] no suitable method found for lineTo(float) [CONTEXT] if(y2 >= 0.0) { right.moveTo(transX1, transStack1); right.lineTo(transX1, transY1); right.lineTo(transXRight, transStackRight); right.closePath(); } else { double yright =(y1 + y2) / 2.0 + stackRight[0]; float transYRight... |
result = new Minute(FIRST_MINUTE_IN_HOUR, nextHour); | [BUG] result = new Minute( FIRST_MINUTE_IN_HOUR, null);[NO-ERROR] [CONTEXT] public RegularTimePeriod next() { Minute result; if(this.minute != LAST_MINUTE_IN_HOUR) { result = new Minute(this.minute + 1, getHour()); } else { // we are at the last minute in the hour... Hour nextHour =(Hour) getHour().next(); if(nextHour... |
FieldVisitor av = desc.visitField( access, name, cv, signature, value); | [BUG] FieldVisitor av = cv.visitField(access, name, desc, signature, value); [CONTEXT] public FieldVisitor visitField( final int access, final String name, final String desc, final String signature, final Object value) { checkState(); checkAccess(access, Opcodes.ACC_PUBLIC + Opcodes.ACC_PRIVATE + Opcodes.ACC_PROTECT... |
set(arg, t1); | [BUG] set( arg + 1, TOP);set( arg, t1);[NO-ERROR] [CONTEXT] case Opcodes.DALOAD: case Opcodes.L2D: pop(2); push(DOUBLE); push(TOP); break; case Opcodes.AALOAD: pop(1); t1 = pop(); push(ELEMENT_OF + t1); break; case Opcodes.ISTORE: case Opcodes.FSTORE: case Opcodes.ASTORE: t1 = pop(); <extra_id_0> if(arg > 0) { t2 = ... |
return UnsupportedDurationField.getInstance(DurationFieldType.millis()); | [BUG] return UnsupportedDurationField.getInstance( DurationFieldType.minutes());[ERROR] [CONTEXT] public DurationField millis() { <extra_id_0> } [CLASS] BaseChronology [METHOD] millis [RETURN_TYPE] DurationField [VARIABLES] long add current duration endInstant instant serialVersionUID startInstant value boolean |
return compareTo(duration)< 0; | [BUG] [ERROR] [CONTEXT] public boolean isShorterThan(ReadableDuration duration) { if(duration == null) { duration = Duration.ZERO; } <extra_id_0> [CLASS] AbstractDuration [METHOD] isShorterThan [RETURN_TYPE] boolean ReadableDuration duration [VARIABLES] boolean ReadableDuration duration |
System.arraycopy(this.composite, i + 1, temp, i, size - i - 1); | [BUG] System.arraycopy( this.composite, i + size, temp, i, size - i - size);[ERROR] null testRemoveComposited [CONTEXT] public synchronized Map<K, V> removeComposited(final Map<K, V> map) { final int size = this.composite.length; for(int i = 0; i < size; ++i) { if(this.composite[i].equals(map)) { final Map<K, V>[] tem... |
return text == null ?"" : text.trim(); | [BUG] return text != null ?"" : text.trim();[ERROR] No value for xpath: //product/text()[. != ''] testNodeTypeText [CONTEXT] else if(nodeType == Node.TEXT_NODE || nodeType == Node.CDATA_SECTION_NODE) { String text = node.getNodeValue(); <extra_id_0> } else if(nodeType == Node.PROCESSING_INSTRUCTION_NODE) { String te... |
JavaType[] pt; | [BUG] JavaType result;JavaType[] pt;[ERROR] null testFormatForParsers [CONTEXT] protected JavaType _fromParamType(ParameterizedType type, TypeBindings context) { Class<?> rawType =(Class<?>) type.getRawType(); Type[] args = type.getActualTypeArguments(); int paramCount =(args == null) ? 0 : args.length; <extra_id... |
min = area.getMaxY(); | [BUG] double maxX = area.getMaxX();min = area.getMaxY();[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] RectangleEdge edge) { double result = Double.NaN; double min = 0.0; double max = 0.0; double axisMin = this.first.g... |
append( INTERNAL_NAME, type); | [BUG] appendDescriptor(INTERNAL_NAME, type); [CONTEXT] public void visitTryCatchBlock( final Label start, final Label end, final Label handler, final String type) { buf.setLength(0); buf.append(tab2).append("TRYCATCHBLOCK"); appendLabel(start); buf.append(' '); appendLabel(end); buf.append(' '); appendLabel(handler)... |
if(_outputTail >= _outputEnd){ | [BUG] if(_outputTail > _outputEnd) {[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] private void _writeQuotedRaw(Object value) throws IOException { if(_outputTail >= _outputEnd) { _flushBuffer(); } _outputBuffer[_outputTail++] = '"'; writeRaw(value.toStrin... |
} else if(SIGNATURES &&"Signature".equals(attrName)) { | [BUG] } else if(SIGNATURES &&"Signature".equals( attrNameName)){[NO-ERROR] [CONTEXT] for(; i > 0; --i) { attrName = readUTF8(v, c); if("SourceFile".equals(attrName)) { sourceFile = readUTF8(v + 6, c); } else if("InnerClasses".equals(attrName)) { w = v + 6; } else if("EnclosingMethod".equals(attrName)) { enclosingOwne... |
acc = getSetter(); | [BUG] acc = getGetter();[ERROR] null testFormatForParsers [CONTEXT] public AnnotatedMember getMutator() { AnnotatedMember acc = getConstructorParameter(); if(acc == null) { <extra_id_0> if(acc == null) { acc = getField(); } } return acc; } [CLASS] SimpleBeanPropertyDefinition [METHOD] getMutator [RETURN_TYPE] Annota... |
currentTickValue = 0.0; | [BUG] currentTickValue = 3.0d;[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] if(Math.abs(currentTickValue - 1.0) < 0.0001 && lowerBoundVal <= 0.0 && upperBoundVal >= 0.0) { <extra_id_0> zeroTickFlag = true;//indicate... |
if(transformed.startsWith(prefix)) { | [BUG] if(prefix.startsWith( transformed)){[ERROR] null testFormatForParsers [CONTEXT] public String reverse(String transformed) { <extra_id_0> return transformed.substring(prefix.length()); } return null; } [CLASS] NameTransformer 1 2 3 4 Chained [METHOD] reverse [RETURN_TYPE] String String transformed [VARIABLES] N... |
[Delete] | [BUG] if(( type ==(LONG))||(type ==(DOUBLE))) { push( TOP); }[NO-ERROR] [CONTEXT] set(arg, t1); if(arg > 0) { t2 = get(arg - 1); if(t2 == LONG || t2 == DOUBLE) { set(arg - 1, TOP); } } break; case Opcodes.LSTORE: case Opcodes.DSTORE: pop(1); t1 = pop(); set(arg, t1); set(arg + 1, TOP); <extra_id_0> t2 = get(arg - 1... |
buf.append("fv = cw.visitField("); | [BUG] buf.append("ACC_VOLATILE");buf.append("fv = cw.visitField(");[NO-ERROR] [CONTEXT] public FieldVisitor visitField( final int access, final String name, final String desc, final String signature, final Object value) { buf.setLength(0); buf.append("{\n"); <extra_id_0> appendAccess(access | ACCESS_FIELD); buf.appe... |
final static int SPACE_COUNT = 64; | [BUG] final static short SPACE_COUNT = 64;[ERROR] expected same:<c> was not:<c> testInterningWithReaders [CONTEXT] lf = System.getProperty("line.separator"); } catch(Throwable t) { } // access exception? SYS_LF =(lf == null) ?"\n" : lf; } <extra_id_0> final static char[] SPACES = new char[SPACE_COUNT]; static { Arra... |
Rectangle2D bounds = TextUtilities.getTextBounds(label, g2, fm); | [BUG] Rectangle2D bounds = TextUtilities.getTextBounds( label, fm);[ERROR] method getTextBounds in class TextUtilities cannot be applied to given types; [CONTEXT] private double getMaxDim(Graphics2D g2, RectangleEdge edge) { double result = 0.0; g2.setFont(this.subLabelFont); FontMetrics fm = g2.getFontMetrics(); Iter... |
e.invoke_interface(FIXED_VALUE, LOAD_OBJECT); | [BUG] e.unbox_or_zero();[NO-ERROR] [CONTEXT] public void generate(ClassEmitter ce, Context context, List methods) { for(Iterator it = methods.iterator(); it.hasNext();) { MethodInfo method =(MethodInfo)it.next(); CodeEmitter e = context.beginMethod(ce, method); context.emitCallback(e, context.getIndex(method)); <extr... |
writer.close(); | [BUG] [ERROR] null testExternedPropertyName [CONTEXT] public byte[] toBytes() { ByteArrayOutputStream baos = new ByteArrayOutputStream(); Writer writer = new OutputStreamWriter(baos, Charsets.UTF_8); try { for(Map.Entry<String, String> entry : map.entrySet()) { writer.write(entry.getKey()); writer.write(SEPARATOR); wr... |
Comparable columnKey =(Comparable)this.columnKeys.get(column); | [BUG] [ERROR] expected:<org.jfree.data.KeyedObjects@312b1dae> but was:<org.jfree.data.KeyedObjects@4ccabbaa> testSerialization [CONTEXT] public Object getObject(int row, int column) { Object result = null; KeyedObjects rowData =(KeyedObjects) this.rows.get(row); if(rowData != null) { <extra_id_0> if(columnKey != nul... |
cc.endStatement(); | [BUG] cc.beginCaseBody();cc.endStatement();[ERROR] Errors for: do stuff();while(a>b testParsePrintParse [CONTEXT] add("in"); add(first.getNext()); add(")"); addNonEmptyExpression( last, getContextForNonEmptyExpression(context), false); } break; case Token.DO: Preconditions.checkState(childCount == 2); add("do"); addNo... |
int missing = _writeBinary(b64variant, data, encodingBuffer, dataLength); | [BUG] [NO-ERROR] [CONTEXT] if(dataLength < 0) { // length unknown bytes = _writeBinary(b64variant, data, encodingBuffer); } else { <extra_id_0> if(missing > 0) { _reportError("Too few bytes available: missing"+missing+" bytes(out of"+dataLength+")"); } bytes = dataLength; [CLASS] UTF8JsonGenerator [METHOD] writeBina... |
_initWithRootName(xgen, rootName); | [BUG] _startRootArray( xgen, rootName);_initWithRootName( xgen, rootName);[ERROR] No element/attribute name specified when trying to output element testRoundTripWithJacksonExample [CONTEXT] if(xgen == null) { // called by convertValue() asArray = false; } else { QName rootName = _rootNameFromConfig(); if(rootName == n... |
return toString(); | [BUG] [ERROR] null testTest [CONTEXT] public String toString(String pattern, Locale locale) throws IllegalArgumentException { if(pattern == null) { <extra_id_0> } return DateTimeFormat.forPattern(pattern).withLocale(locale).print(this); [CLASS] MonthDay Property [METHOD] toString [RETURN_TYPE] String String pattern ... |
if(rawType == Float.TYPE){ | [BUG] if(rawType == Byte.TYPE) {[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] if(rawType == Long.TYPE) { return LongDeserializer.primitiveInstance; } if(rawType == Double.TYPE) { return DoubleDeserializer.primitiveInstance; } if(rawType == Character.TYPE) { return CharacterDeserializer.primitiveIn... |
this.type = type; | [BUG] this.type = null;[NO-ERROR] [CONTEXT] public void setType(Class type) { <extra_id_0> } [CLASS] FastClass Generator [METHOD] setType [RETURN_TYPE] void Class type [VARIABLES] Class type Source SOURCE boolean |
return c != 0xA0 || Character.getType((char) c) == Character.SPACE_SEPARATOR; | [BUG] return c == 0xA0 || Character.getType(( char)c)== Character.SPACE_SEPARATOR; [CONTEXT] static boolean isJSSpace(int c) { if(c <= 127) { return c == 0x20 || c == 0x9 || c == 0xC || c == 0xB; } else { <extra_id_0> } } [CLASS] JsDocTokenStream [METHOD] isJSSpace [RETURN_TYPE] boolean int c [VARIABLES] int[] ung... |
merge( insn + insnOpcode, current, subroutine); | [BUG] merge(insn + 1, current, subroutine); [CONTEXT] } else if(insnOpcode != ATHROW &&(insnOpcode < IRETURN || insnOpcode > RETURN)) { if(subroutine != null) { if(insnNode instanceof VarInsnNode) { int var =((VarInsnNode) insnNode).var; subroutine.access[var] = true; if(insnOpcode == LLOAD || insnOpcode == DLOAD ||... |
throw JsonMappingException.from(jp,"Can not instantiate abstract type"+_beanType +"(need to add/enable type information?)"); | [BUG] throw JsonMappingException.from( jp,"Can not instantiate abstract type"+_beanType +" >(need to add/enable type information?)");[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] @Override public Object deserializeFromObject(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProce... |
String pattern = getPattern(locale); | [BUG] char pattern = getPattern( locale);[ERROR] incompatible types [CONTEXT] private DateTimeFormatter getFormatter(Locale locale) { locale =(locale == null ? Locale.getDefault() : locale); String key = Integer.toString(iType +(iDateStyle << 4) +(iTimeStyle << 8)) + locale.toString(); DateTimeFormatter f = null; sync... |
if(volume > this.maxVolume){ | [BUG] if(volume < this.maxVolume) {[ERROR] null testDrawWithNullInfo [CONTEXT] for(int item = 0; item < highLowDataset.getItemCount(series); item++) { double volume = highLowDataset.getVolumeValue(series, item); <extra_id_0> this.maxVolume = volume; } } [CLASS] CandlestickRenderer [METHOD] initialise [RETURN_TYPE] X... |
label.status |= Label.SUBROUTINE; | [BUG] if(( label.status & Label.SUBROUTINE) == 0) { label.status |= Label.SUBROUTINE; }[NO-ERROR] [CONTEXT] if(currentBlock != null) { if(compute == FRAMES) { currentBlock.frame.execute(opcode, 0, null, null); label.getFirst().status |= Label.TARGET; addSuccessor(Edge.NORMAL, label); if(opcode != Opcodes.GOTO) { nextI... |
} else if(qualifiedName != null){ | [BUG] } else if(type instanceof FunctionType) {[ERROR] null testExternedPropertyName [CONTEXT] } JSType type = getJSType(n); if(dereference) { ObjectType dereferenced = type.dereference(); if(dereferenced != null) { type = dereferenced; } } String qualifiedName = n.getQualifiedName(); if(type.isFunctionPrototypeType()... |
if(!ObjectUtilities.equal(this.bottomBlock, that.bottomBlock)) { | [BUG] if(!ObjectUtilities.equal( that.bottomBlock)){[ERROR] method equal in class ObjectUtilities cannot be applied to given types; [CONTEXT] public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof BorderArrangement)) { return false; } BorderArrangement that =(BorderArrangement) obj; i... |
} else if(p == 1){ | [BUG] } else if(p == 0) {[ERROR] Incorrect inverse cumulative probability value returned for 1.0 expected:<Infinity> but was:<3.429560264171028E16> testInverseCumulativeProbabilityExtremes [CONTEXT] public double inverseCumulativeProbability(double p) { double ret; if(p < 0.0 || p > 1.0) { throw new IllegalArgumentExc... |
clone( this.labels, labels));clone( dflt, labels) , clone( this.labels, labels)); | [BUG] clone(dflt, labels), clone(this.labels, labels)); [CONTEXT] public AbstractInsnNode clone(final Map labels) { return new TableSwitchInsnNode(min, max, <extra_id_0> } [CLASS] TableSwitchInsnNode [METHOD] clone [RETURN_TYPE] AbstractInsnNode Map labels [VARIABLES] LabelNode dflt List labels boolean Map labels ... |
code.append('X'); | [BUG] code.append( inwd , n , maxCodeLen);[ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition [CONTEXT](FRONTV.indexOf(local.charAt(n + 1)) >= 0)) { code.append('S'); break; // CI,CE,CY -> S } if(isPreviousChar(local, n, 'S') && isNextChar(local, n, 'H')){ // SCH->sk code.append('K'); break; ... |
if(_anyGetterWriter != null){ | [BUG] if(_objectIdWriter != null) {[ERROR] Can not deserialize instance of java.lang.String out of START_OBJECT token testRoundtrip [CONTEXT] if(prop != null) { // can have nulls in filtered list if((cdata != null) && cdata.get(i)) { xgen.setNextIsCData(true); prop.serializeAsField(bean, xgen, provider); xgen.setNextI... |
buf.append("ACC_ENUM");buf.append("cw.visit("); | [BUG] buf.append("cw.visit("); [CONTEXT] text.add("package asm." + name.substring(0, n).replace('/', '.') +";\n"); simpleName = name.substring(n + 1); } text.add("import java.util.*;\n"); text.add("import org.mockito.asm.*;\n"); text.add("import org.mockito.asm.attrs.*;\n"); text.add("public class" + simpleName +"Du... |
private final String message; | [BUG] private final char message;[ERROR] incompatible types: String cannot be converted to char [CONTEXT] public class ArgumentsAreDifferent extends ComparisonFailure { private static final long serialVersionUID = 1L; <extra_id_0> private StackTraceElement[] unfilteredStackTrace; public ArgumentsAreDifferent(String ... |
this.chart.addChangeListener(this); | [BUG] this.chart.setNotify( true);this.chart.addChangeListener( this);[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public void setChart(JFreeChart chart) { if(this.chart != null) { this.chart.removeChangeListener... |
final URL url = getResourceRelative(name, context); | [BUG] final URL url = getResourceRelative( context, name);[ERROR] method getResourceRelative in class ObjectUtilities cannot be applied to given types; [CONTEXT] public static InputStream getResourceRelativeAsStream(final String name, final Class context) { <extra_id_0> if(url == null) { return null; } try { return ... |
this.notify = true; | [BUG] this.notify = false;[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public JFreeChart(String title, Font titleFont, Plot plot, boolean createLegend) { if(plot == null) { throw new NullPointerException("Null 'p... |
int chunksBeforeLF = b64variant.getMaxLineLength() >> 2; | [BUG] int chunksBeforeLF = b64variant.getMaxLineLength()>> -4;[ERROR] expected:<["U29t[ZSBjb250ZW50IHNvIHRoYXQgd2UgY2FuIHRlc3QgZW5jb2Rpbmcgb2YgYmFzZTY0IGRhdGE7 testStreamingWrites [CONTEXT] _outputTail = b64variant.encodeBase64Partial(b24, inputLeft, _outputBuffer, _outputTail); } } protected int _writeBinary(Base64Va... |
} else if(( !leftIsUnknown && leftType.isString())||(!rightIsUnknown && rightType.isString())) { | [BUG] } else if(( !leftIsUnknown && leftType.isString()) ||( !rightIsUnknown && type.isString())){[ERROR] null testExternedPropertyName [CONTEXT] private FlowScope traverseAdd(Node n, FlowScope scope) { Node left = n.getFirstChild(); Node right = left.getNext(); scope = traverseChildren(n, scope); JSType leftType = le... |
if(lhs < rhs){ | [BUG] if(rhs < lhs) {[ERROR] null testCompareDouble [CONTEXT] public static int compare(double lhs, double rhs) { <extra_id_0> return -1; } if(lhs > rhs) { return +1; } long lhsBits = Double.doubleToLongBits(lhs); long rhsBits = Double.doubleToLongBits(rhs); if(lhsBits == rhsBits) { return 0; } if(lhsBits < rhs... |
if(currentBlock != null){ | [BUG] if(compute == FRAMES) {[NO-ERROR] [CONTEXT] if(itf) { if(argSize == 0) { argSize = getArgumentsAndReturnSizes(desc); i.intVal = argSize; } code.put12(Opcodes.INVOKEINTERFACE, i.index).put11(argSize >> 2, 0); } else { code.put12(opcode, i.index); } } public void visitJumpInsn(final int opcode, final Label label) ... |
for(interfacesnt i = 0; i < i.length; ++i) { | [BUG] for(int i = 0; i < interfaces.length; ++i){ [CONTEXT] buf.append("@interface"); } else if((access & Opcodes.ACC_INTERFACE) != 0) { buf.append("interface"); } else if((access & Opcodes.ACC_ENUM) == 0) { buf.append("class"); } appendDescriptor(INTERNAL_NAME, name); if(superName != null && !"java/lang/Object".equ... |
createEdge(node, Branch.UNCOND, node.getFirstChild()); | [BUG] createEdge( iter, Branch.UNCOND, node.getFirstChild());[ERROR] cannot find symbol iter [CONTEXT] private void handleTry(Node node) { <extra_id_0> } [CLASS] ControlFlowAnalysis 1 AstControlFlowGraph 1 2 [METHOD] handleTry [RETURN_TYPE] void Node node [VARIABLES] Multimap finallyMap AbstractCompiler compiler boo... |
[BUG] super(); [CONTEXT] protected ReadablePartialConverter() { <extra_id_0> [CLASS] ReadablePartialConverter [METHOD] <init> [RETURN_TYPE] ReadablePartialConverter() [VARIABLES] ReadablePartialConverter INSTANCE boolean | |
state = drawCategoryLabels(g2, plotArea, dataArea, edge, state, plotState); | [BUG] state = drawLabel( getLabel(), g2, plotArea, dataArea, edge, state, plotState);state = drawCategoryLabels( g2, plotArea, dataArea, edge, state, plotState);[ERROR] null testEquals [CONTEXT] public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRend... |
msg.append(", problem:").append(origMsg); | [BUG] msg.append(",").append( origMsg);[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] protected void _throwAsIOE(Exception e, Object value) throws IOException { if(e instanceof IllegalArgumentException) { String actType =(value == null) ?"[NULL]" : value.getClass().getName(); StringBuilder msg = ne... |
} else if(( namedCount == 0)&&(( injectCount + 1)== argCount)) { | [BUG] } else if("Argument #" + nonAnnotatedParam.getIndex()) {[ERROR] incompatible types [CONTEXT] ++namedCount; properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId); } else if(injectId != null) { ++injectCount; properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, inje... |
public final NullNode nullNode() { return _nodeFactory.nullNode(); } | [BUG] public final NullNode nullNode(){ return nc.nullNode(); }[ERROR] cannot find symbol nc [CONTEXT] public final ObjectNode objectNode() { return _nodeFactory.objectNode(); } <extra_id_0> public final BooleanNode booleanNode(boolean v) { return _nodeFactory.booleanNode(v); } public final NumericNode numberNode(b... |
return(ParallelSorter) super.create( a)(ClassesKey | [BUG] return(ParallelSorter)super.create(ClassesKey.create(arrays)); [CONTEXT] public ParallelSorter create() { <extra_id_0> } [CLASS] ParallelSorter ComparatorComparer ObjectComparer IntComparer LongComparer FloatComparer DoubleComparer ShortComparer ByteComparer Generator [METHOD] create [RETURN_TYPE] ParallelSo... |
int lastIndexOfDot = qName.lastIndexOf('.'); | [BUG] short lastIndexOfDot = qName.lastIndexOf( '.');[ERROR] possible loss of precision [CONTEXT] public String getPropertyName() { <extra_id_0> if(lastIndexOfDot == -1) { return null; } else { return qName.substring(lastIndexOfDot + 1); } } [CLASS] Name [METHOD] getPropertyName [RETURN_TYPE] String [VARIABLES] List... |
e.goTo(def); | [BUG] e.swap();e.goTo( def);[NO-ERROR] [CONTEXT] public void processDefault() { <extra_id_0> } [CLASS] EmitUtils 1 2 3 4 5 6 7 8 9 ArrayDelimiters 10 11 12 13 14 15 16 [METHOD] processDefault [RETURN_TYPE] void [VARIABLES] String after before inside boolean ArrayDelimiters DEFAULT_DELIMITERS Signature APPEND_BOOLEAN... |
static final DiagnosticType OBJECTLIT_EXPECTED = DiagnosticType.warning("JSC_REFLECT_OBJECTLIT_EXPECTED","Object literal expected as second argument"); | [BUG] static final DiagnosticType OBJECTLIT_EXPECTED = DiagnosticType.warning("JSC_REFLECT_OBJECTLIT_EXPECTED","Object literal expected as second argumentect literal expected as second argumen");[ERROR] Unexpected error(s testThisJSDoc1 [CONTEXT] <extra_id_0> [CLASS] ClosureCodingConvention [VARIABLES] |
right.lineTo(( float)p02.getX() ,(float)p02.getY()); | [BUG] left.lineTo((float) p1.getX(),(float) p1.getY());right.lineTo((float) p02.getX(),(float) p02.getY());[ERROR] null testDrawWithNullInfo [CONTEXT] front.lineTo((float) p1.getX(),(float) p1.getY()); front.lineTo((float) p01.getX(),(float) p01.getY()); front.lineTo((float) p00.getX(),(float) p00.getY()); front.close... |
ensureCapacity(size + length); | [BUG] ensureCapacity( size + 1);ensureCapacity( size + length);[ERROR] expected:<ValuedColorEnum[Red=1]> but was:<null> testToString [CONTEXT] public StrBuilder insert(int index, char chars[], int offset, int length) { validateIndex(index); if(chars == null) { return insert(index, nullText); } if(offset < 0 || offset ... |
outputEnd = outputBuffer.length; | [BUG] outputEnd = outputPtr;[ERROR] 2531 testEncodeAsUTF8 [CONTEXT] if(outputPtr >= outputEnd) { outputBuffer = byteBuilder.finishCurrentSegment(); outputEnd = outputBuffer.length; outputPtr = 0; } if(c < 0x800) { // 2-byte outputBuffer[outputPtr++] =(byte)(0xc0 |(c >> 6)); } else { // 3 or 4 bytes if(c < SURR1_FIRST ... |
sb.append(" * @constructor\n"); | [BUG] sb.append(" * @return {" + retType +"}\n");sb.append(" * @constructor\n");[ERROR] null testExternedPropertyName [CONTEXT] } if(funType.isConstructor() || funType.isInterface()) { ObjectType superInstance = funType.getSuperClassConstructor().getInstanceType(); if(!superInstance.toString().equals("Object")) { sb.a... |
final LinkEntry<K, V> current = currentEntry(); | [BUG] final LinkEntry<K, V> previous = next.before;final LinkEntry<K, V> current = currentEntry();[NO-ERROR] [CONTEXT] public V setValue(final V value) { <extra_id_0> if(current == null) { throw new IllegalStateException(AbstractHashedMap.SETVALUE_INVALID); } return current.setValue(value); } [CLASS] AbstractLinkedM... |
jjmatchedPos = 3; | [BUG] jjmatchedPos = 6;jjmatchedPos = 3;[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] if((active0 & 0xff26fefe00000000L) != 0L ||(active1 & 0x3d27L) != 0L) { if(jjmatchedPos != 3) { jjmatchedKind = 78; <extra_id_0> } return 12; } [CLASS] XPathPars... |
newChild.next = first;newChild.parent = this; | [BUG] newChild.parent = this; [CONTEXT] public void addChildBefore(Node newChild, Node node) { Preconditions.checkArgument(node != null,"The existing child node of the parent should not be null."); Preconditions.checkArgument(newChild.next == null,"The new child node has siblings."); Preconditions.checkArgument(newC... |
currentBlock.status |=(label.status << Label.TARGET); | [BUG] currentBlock.status |=(label.status & Label.TARGET); [CONTEXT] } } } public void visitLabel(final Label label) { resize |= label.resolve(this, code.length, code.data); if((label.status & Label.DEBUG) != 0) { return; } if(compute == FRAMES) { if(currentBlock != null) { if(label.position == currentBlock.position... |
return other == value ||(value != null && value.equals( other)); | [BUG] return value == other ||(value != null && value.equals(other)); [CONTEXT] public boolean equals(Object obj) { if(obj instanceof MutableObject) { Object other =((MutableObject) obj).value; <extra_id_0> } return false; } [CLASS] MutableObject [METHOD] equals [RETURN_TYPE] boolean Object obj [VARIABLES] Object ... |
parser.addWarning("msg.jsdoc.incompat.type", stream.getLineno() , stream.getCharno()); | [BUG] parser.addWarning("msg.jsdoc.visibility.protected", stream.getLineno(), stream.getCharno());parser.addWarning("msg.jsdoc.incompat.type", stream.getLineno(), stream.getCharno());[ERROR] expected:<4> but was:<5> testCommentPositions [CONTEXT] if(jsdocBuilder.isConstructorRecorded()) { parser.addWarning("msg.jsdoc.... |
FastClassInfo fci = new FastClassInfo(); | [BUG] FastClassInfo fci = fastClassInfo;FastClassInfo fci = new FastClassInfo();[NO-ERROR] [CONTEXT] if(fastClassInfo == null) { synchronized(initLock) { if(fastClassInfo == null) { CreateInfo ci = createInfo; <extra_id_0> fci.f1 = helper(ci, ci.c1); fci.f2 = helper(ci, ci.c2); fci.i1 = fci.f1.getIndex(sig1); fci.i2... |
int newCapacity = oldCapacity * 2 + 1; | [BUG] int newCapacity = threshold * 2 + 1;[ERROR] [CONTEXT] protected void rehash() { int oldCapacity = table.length; Entry oldMap[] = table; <extra_id_0> Entry newMap[] = new Entry[newCapacity]; threshold =(int)(newCapacity * loadFactor); table = newMap; for(int i = oldCapacity; i-- > 0;) { for(Entry old = oldMap[i... |
return getBinaryValue(Base64Variants.getDefaultVariant()); | [BUG] [ERROR] expected same:<c> was not:<c> testInterningWithReaders [CONTEXT] public byte[] getBinaryValue() throws IOException, JsonParseException { <extra_id_0> [CLASS] JsonParser NumberType Feature [METHOD] getBinaryValue [RETURN_TYPE] byte[] [VARIABLES] NumberType BIG_DECIMAL BIG_INTEGER DOUBLE FLOAT INT LONG ... |
Preconditions.checkArgument(child.parent == null); | [BUG] Preconditions.checkArgument( child.parent == null,"new child has existing parent");Preconditions.checkArgument( child.parent == null);[NO-ERROR] [CONTEXT] public void addChildrenToFront(Node children) { for(Node child = children; child != null; child = child.next) { <extra_id_0> child.parent = this; } Node las... |
key1 = key2;key1 = key3; | [BUG] key1 = key3; [CONTEXT] } if(hash2 == hashCode && key.equals(key2)) { final V old = value2; hash2 = hash3; key2 = key3; value2 = value3; hash3 = 0; key3 = null; value3 = null; size = 2; return old; } if(hash1 == hashCode && key.equals(key1)) { final V old = value1; hash1 = hash3; <extra_id_0> value1 = value3;... |
int var =(( VarInsnNode) insnNode).var;int var =(( IincInsnNode) insnNode).var; | [BUG] int var =(( IincInsnNode)insnNode).var; [CONTEXT] } else if(insnOpcode != ATHROW &&(insnOpcode < IRETURN || insnOpcode > RETURN)) { if(subroutine != null) { if(insnNode instanceof VarInsnNode) { int var =((VarInsnNode) insnNode).var; subroutine.access[var] = true; if(insnOpcode == LLOAD || insnOpcode == DLOAD ... |
Object item = iter.next(); | [BUG] Object item = iter.hasNext();[ERROR] [CONTEXT] List helpOptions() { List opts = new ArrayList(shortOpts.values()); Iterator iter = longOpts.values().iterator(); while(iter.hasNext()) { <extra_id_0> if(!opts.contains(item)) { opts.add(item); } } return new ArrayList(opts); } [CLASS] Options [METHOD] helpOption... |
List superInterfaces = getAllInterfaces(interfaces[i]); | [BUG] LinkedHashSet superInterfaces = getAllInterfaces( interfaces[i]);[ERROR] cannot find symbol [CONTEXT] public static List getAllInterfaces(Class cls) { if(cls == null) { return null; } List list = new ArrayList(); while(cls != null) { Class[] interfaces = cls.getInterfaces(); for(int i = 0; i < interfaces.length;... |
type = new PeriodType("Hours", new DurationFieldType[] { DurationFieldType.hours() }, new int[] { -1, -1, -1, -1, 0, -1, -1, -1, } | [BUG] type = new PeriodType("Hours", new DurationFieldType[] { DurationFieldType.hours()}, new int[] { -WEEK_INDEX, -WEEK_INDEX, -WEEK_INDEX, -WEEK_INDEX, 0, -WEEK_INDEX, -WEEK_INDEX, -WEEK_INDEX, }[ERROR] null test_other [CONTEXT] public static PeriodType hours() { PeriodType type = cHours; if(type == null) { <extra... |
if(contains(value, index, 3,"CIO","CIE","CIA")) { | [BUG] if(contains( value, index, 3,"CIO","CI","CIA")){[ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition [CONTEXT] result.append('S', 'X'); index += 2; } else if(contains(value, index + 1, 3,"CIA")) { result.append('X'); index += 3; } else if(contains(value, index, 2,"CC") && !(index == 1 &&... |
out.putShort(attributeCount); | [BUG] out.putInt( SHORT_INSN);[NO-ERROR] [CONTEXT] for(int i = 0; i < interfaceCount; ++i) { out.putShort(interfaces[i]); } out.putShort(nbFields); fb = firstField; while(fb != null) { fb.put(out); fb = fb.next; } out.putShort(nbMethods); mb = firstMethod; while(mb != null) { mb.put(out); mb = mb.next; } <extra_id_0>... |
this.owner = owner;this.name = name; | [BUG] this.name = name; [CONTEXT] public FieldInsnNode( final int opcode, final String owner, final String name, final String desc) { super(opcode); this.owner = owner; <extra_id_0> this.desc = desc; } [CLASS] FieldInsnNode [METHOD] <init> [RETURN_TYPE] String) final int opcode String owner String name String desc... |
if(index == WHOLE_COLLECTION){ | [BUG] if(WHOLE_COLLECTION == index) {[ERROR] Evaluating pointer <//.[name = 'three']> expected:<[/first/first/second]> but was:<[null()]> testInfiniteDescent [CONTEXT] public void setValue(Object value) { <extra_id_0> parent.setValue(value); } else { ValueUtils.setValue(collection, index, value); } } [CLASS] Collect... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.