fix
stringlengths
2
286
ctx
stringlengths
46
2.15k
mapper._deserializationConfig = mapper._deserializationConfig.withInsertedAnnotationIntrospector( ai);mapper._serializationConfig = mapper._serializationConfig.withAppendedAnnotationIntrospector( ai);
[BUG] None [ERROR] None [CONTEXT] public void appendAnnotationIntrospector(AnnotationIntrospector ai) { mapper._deserializationConfig = mapper._deserializationConfig.withAppendedAnnotationIntrospector(ai); <extra_id_0> }
ret.setTime(readBinaryLong(4, swapHalfWord));
[BUG] None [ERROR] None [CONTEXT] private CpioArchiveEntry readOldBinaryEntry(final boolean swapHalfWord) throws IOException { CpioArchiveEntry ret = new CpioArchiveEntry(FORMAT_OLD_BINARY); ret.setDevice(readBinaryLong(2, swapHalfWord)); ret.setInode(readBinaryLong(2, swapHalfWord)); ret.setMode(readBinaryLong(2, swap...
line = new Line2D.Double(y0, x0, y1, x1);
[BUG] line = new Line2D.Double( x0, y0, x1, y1);line = new Line2D.Double( y0, x0, y1, x1); [ERROR] null testDrawWithNullInfo [CONTEXT] if(column != 0) { Number previousValue = statData.getValue(row, column - 1); if(previousValue != null) { double previous = previousValue.doubleValue(); double x0 = domainAxis.getCategor...
Map unmodifiableMap = Collections.unmodifiableMap( map);
[BUG] None [ERROR] None [CONTEXT] final Map map = new HashMap(); <extra_id_0> final List list = new ArrayList(25);
for(int i = startPropertyIndex; i < count; i++){
[BUG] for(int i = startPropertyIndex; i <= count; i++) { [ERROR] Evaluating <count(*)> expected:<21.0> but was:<22.0> testAxisChild [CONTEXT] } propertyNodePointer.setIndex(index - 1); return true; } private boolean setPositionAllProperties(int position) { this.position = position; if(position < 1) { return false; } in...
i.intVal = argSize;
[BUG] None [ERROR] None [CONTEXT] } else { if(argSize == 0) { argSize = getArgumentsAndReturnSizes(desc); <extra_id_0> } int size; if(opcode == Opcodes.INVOKESTATIC) { size = stackSize -(argSize >> 2) +(argSize & 0x03) + 1; } else { size = stackSize -(argSize >> 2) +(argSize & 0x03); } if(size > maxStackSize) {...
if(( mv) != null) { mv.visitLabel( label); }
[BUG] None [ERROR] None [CONTEXT] public void visitCode() { <extra_id_0> mv.visitCode(); } }
double l = InfoSetUtil.doubleValue(args[0].computeValue(context));
[BUG] double l = InfoSetUtil.doubleValue( args[7].computeValue( context)); [ERROR] Expression toString() for 3>4 expected:<3 [>] 4> but was:<3 [] 4> testCoreOperationGreaterThan [CONTEXT] public Object computeValue(EvalContext context) { <extra_id_0> double r = InfoSetUtil.doubleValue(args[1].computeValue(context)); ...
if(c < a){
[BUG] if(b < a) { [ERROR] Requested array size exceeds VM limit testUnescapeJava [CONTEXT] public static int min(int a, int b, int c) { if(b < a) { a = b; } <extra_id_0> a = c; } return a; }
upper =(upper + lower + minRange)/ 2;
[BUG] lower =(upper + lower - minRange) / 2;upper =(upper + lower + minRange) / 2; [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] expVal = Math.pow(10, expVal);//create multiplier value upper =(expVal > 0.0) ? Math.ceil...
else if(anchor == CategoryAnchor.END){
[BUG] else if(anchor == 2) { [ERROR] bad operand types for binary operator '==' [CONTEXT] public double getCategoryJava2DCoordinate(CategoryAnchor anchor, int category, int categoryCount, Rectangle2D area, RectangleEdge edge) { double result = 0.0; if(anchor == CategoryAnchor.START) { result = getCategoryStart(category...
if(matchToken(Token.NAME)) {
[BUG] if(!matchToken( Token.RC)){ [ERROR] null testFor [CONTEXT] } case Token.FOR: { consumeToken(); boolean isForEach = false; decompiler.addToken(Token.FOR); int lineno = ts.getLineno(); int charno = ts.getCharno(); Node init;// Node init is also foo in 'foo in Object' Node cond;// Node cond is also object in 'foo in...
if(value < 0L){
[BUG] if(value == MIN_VALUE) { [ERROR] cannot find symbol MIN_VALUE [CONTEXT] offset = outputFullTriplet(newValue, buffer, offset); } else { offset = outputLeadingTriplet(newValue, buffer, offset); } offset = outputFullTriplet(thousands, buffer, offset); offset = outputFullTriplet(ones, buffer, offset); return offset; ...
if(extra != null){
[BUG] if(extra == null) { [ERROR] No Archiver found for the stream signature testDetection [CONTEXT] public ZipArchiveEntry(java.util.zip.ZipEntry entry) throws ZipException { super(entry); byte[] extra = entry.getExtra(); <extra_id_0> setExtraFields(ExtraFieldUtils.parse(extra)); } else { setExtra(); } }
e.end_method();
[BUG] None [ERROR] None [CONTEXT] CodeEmitter e = ce.begin_method(Constants.ACC_PUBLIC, NEW_INSTANCE, null); e.new_instance_this(); e.dup(); e.invoke_constructor_this(); e.return_value(); e.end_method(); e = ce.begin_method(Constants.ACC_PUBLIC, ADD_DELEGATE, null); e.load_this(); e.load_arg(0); e.checkcast(Type.getTyp...
this.stack = asList( 1, stack);this.stack = asList( nStack, stack);
[BUG] None [ERROR] None [CONTEXT] { super(-1); this.type = type; switch(type) { case Opcodes.F_NEW: case Opcodes.F_FULL: this.local = asList(nLocal, local); <extra_id_0> break; case Opcodes.F_APPEND: this.local = asList(nLocal, local); break; case Opcodes.F_CHOP: this.local = asList(nLocal, local); break; case Opcode...
throw new org.mockito.asm.tree.analysis.AnalyzerException("Illegal use of DUP_X1");
[BUG] None [ERROR] None [CONTEXT] throw new AnalyzerException("Illegal use of POP2"); } } break; case Opcodes.DUP: value1 = pop(); if(value1.getSize() != 1) { throw new AnalyzerException("Illegal use of DUP"); } push(interpreter.copyOperation(insn, value1)); push(interpreter.copyOperation(insn, value1)); break; case Op...
numToRead =(int)(entrySize - entryOffset);
[BUG] numToRead =(short)(entrySize - entryOffset); [ERROR] No Archiver found for the stream signature testDetection [CONTEXT] public int read(byte[] buf, int offset, int numToRead) throws IOException { int totalRead = 0; if(entryOffset >= entrySize) { return -1; } if((numToRead + entryOffset) > entrySize) { <extra_id_...
if(parent == null){
[BUG] if(pointer == null) { [ERROR] cannot find symbol pointer [CONTEXT] private void prepare() { NodePointer parent = parentContext.getCurrentNodePointer(); <extra_id_0> return; } if(startFromParentLocation) { NodePointer pointer = parent.getParent(); iterator = pointer.childIterator(nodeTest, reverse, parent); } el...
maxRegularValue = Math.max(maxRegularValue, value);
[BUG] maxRegularValue = Math.max( maxRegularValue, q1); [ERROR] expected:<4.0> but was:<1.5> test1593149 [CONTEXT] else if(value < lowerOutlierThreshold) { outliers.add(number); if(value < minOutlier && value >= lowerFaroutThreshold) { minOutlier = value; } } else { minRegularValue = Math.min(minRegularValue, value); ...
computeGenKill(c, gen, kill, conditional);
[BUG] computeGenKill( c, gen, kill); [ERROR] method computeGenKill in class LiveVariablesAnalysis cannot be applied to given types; [CONTEXT] if(NodeUtil.isAssignmentOp(n) && NodeUtil.isName(n.getFirstChild())) { Node lhs = n.getFirstChild(); if(!conditional) { addToSetIfLocal(lhs, kill); } if(!NodeUtil.isAssign(n)) { ...
e.throw_exception("Constructor not found");
[BUG] None [ERROR] None [CONTEXT] public void processDefault() { <extra_id_0> }
_outputBuffer[_outputTail++] = BYTE_QUOTE;
[BUG] None [ERROR] None [CONTEXT] private void _writeQuotedRaw(Object value) throws IOException { if(_outputTail >= _outputEnd) { _flushBuffer(); } <extra_id_0> writeRaw(value.toString()); if(_outputTail >= _outputEnd) { _flushBuffer(); } _outputBuffer[_outputTail++] = BYTE_QUOTE; }
checkLenient();
[BUG] quickPeek();checkLenient(); [ERROR] com.google.gson.stream.MalformedJsonException: Unterminated array near [ testParseComments [CONTEXT] private int nextNonWhitespace() throws IOException { while(pos < limit || fillBuffer(1)) { int c = buffer[pos++]; switch(c) { case '\t': case ' ': case '\n': case '\r': continue...
return base.getDateTimeMillis(year, monthOfYear, dayOfMonth, hourOfDay, minuteOfHour, secondOfMinute, millisOfSecond);
[BUG] return base.getDateTimeMillis( minuteOfHour, monthOfYear, dayOfMonth, hourOfDay, year, secondOfMinute, millisOfSecond); [ERROR] Value 2002 for minuteOfHour must be in the range [0,59] testConstructor_int_int_int_Chronology [CONTEXT] public long getDateTimeMillis( int year, int monthOfYear, int dayOfMonth, int hou...
return arrangeFF(container, g2, constraint);
[BUG] return arrangeFF( g2, constraint); [ERROR] method arrangeFF in class GridArrangement cannot be applied to given types; [CONTEXT] else if(h == LengthConstraintType.FIXED) { throw new RuntimeException("Not yet implemented."); } else if(h == LengthConstraintType.RANGE) { throw new RuntimeException("Not yet implement...
declareNameInScope(informed, left, merged.first);
[BUG] declareNameInScope( informed, merged.first); [ERROR] method declareNameInScope in class ChainableReverseAbstractInterpreter cannot be applied to given types; [CONTEXT] rightIsRefineable = true; } else { rightIsRefineable = false; rightType = right.getJSType(); } Pair<JSType, JSType> merged = merging.apply(Pair.of...
size = stackSize +(c == 'D' || c == 'J' ? -2 : -1);
[BUG] None [ERROR] None [CONTEXT] { Item i = cw.newFieldItem(owner, name, desc); if(currentBlock != null) { if(compute == FRAMES) { currentBlock.frame.execute(opcode, 0, cw, i); } else { int size; char c = desc.charAt(0); switch(opcode) { case Opcodes.GETSTATIC: size = stackSize +(c == 'D' || c == 'J' ? 2 : 1); break; ...
return new JSError(sourceName, n, type, arguments);
[BUG] return new JSError( null,(-1) ,(-1) , type, null, arguments); [ERROR] Missing source file name in warning testTypeMismatch [CONTEXT] public static JSError make(String sourceName, Node n, DiagnosticType type, String... arguments) { <extra_id_0> }
buf.append("ACC_PRIVATE");buf.append( '0');
[BUG] None [ERROR] None [CONTEXT] if((access & Opcodes.ACC_SYNTHETIC) != 0) { if(!first) { buf.append(" +"); } buf.append("ACC_SYNTHETIC"); first = false; } if((access & Opcodes.ACC_DEPRECATED) != 0) { if(!first) { buf.append(" +"); } buf.append("ACC_DEPRECATED"); first = false; } if(first) { <extra_id_0> } } }
_serializerFactory = src._serializerFactory;
[BUG] None [ERROR] None [CONTEXT] protected ObjectMapper(ObjectMapper src) { _jsonFactory = src._jsonFactory.copy(); _jsonFactory.setCodec(this); _subtypeResolver = src._subtypeResolver; _rootNames = new RootNameLookup(); _typeFactory = src._typeFactory; _serializationConfig = src._serializationConfig; HashMap<ClassKey...
Node next = c.getNext();
[BUG] [ERROR] null testDebugFlag3 [CONTEXT] void tryFoldBlock(NodeTraversal t, Node n, Node parent) { for(Node c = n.getFirstChild(); c != null;){ <extra_id_0> if(!NodeUtil.mayHaveSideEffects(c)) { n.removeChild(c);// lazy kids t.getCompiler().reportCodeChange(); } c = next; } if(n.isSyntheticBlock() || parent == nu...
push( type);push( t1);
[BUG] None [ERROR] None [CONTEXT] case Opcodes.IF_ICMPEQ: case Opcodes.IF_ICMPNE: case Opcodes.IF_ICMPLT: case Opcodes.IF_ICMPGE: case Opcodes.IF_ICMPGT: case Opcodes.IF_ICMPLE: case Opcodes.IF_ACMPEQ: case Opcodes.IF_ACMPNE: case Opcodes.LRETURN: case Opcodes.DRETURN: pop(2); break; case Opcodes.DUP: t1 = pop(); push(...
System.arraycopy(readBuf, sz, newBuf, 0, newLen);
[BUG] System.arraycopy( sz, readBuf, newBuf, 0, newLen); [ERROR] method arraycopy in class System cannot be applied to given types; [CONTEXT] numToRead =(int)(entrySize - entryOffset); } if(readBuf != null) { int sz =(numToRead > readBuf.length) ? readBuf.length : numToRead; System.arraycopy(readBuf, 0, buf, offset, sz...
this(function, value,(JavaType)null);
[BUG] this( function,(JavaType) null); [ERROR] recursive constructor invocation [CONTEXT] public JSONPObject(String function, Object value) { <extra_id_0> }
if(templateTypeName != null && parameterType.restrictByNotNullOrUndefined().isTemplateType()){
[BUG] if(templateTypeName == null && parameterType.restrictByNotNullOrUndefined().isTemplateType()) { [ERROR] null testDebugFlag3 [CONTEXT] FunctionParamBuilder builder = new FunctionParamBuilder(typeRegistry); boolean warnedAboutArgList = false; Set<String> allJsDocParams =(info == null) ? Sets.<String>newHashSet() : ...
this.minimumRangeValue.setEnabled(true);
[BUG] this.minimumRangeValue.setEnabled( false); [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] public void toggleAutoRange() { this.autoRange = this.autoRangeCheckBox.isSelected(); if(this.autoRange) { this.minimumRang...
private static final Signature NEW_INSTANCE = new Signature("newInstance", PARALLEL_SORTER, new Type[]{ null });
[BUG] None [ERROR] None [CONTEXT] <extra_id_0>
value = ZipShort.getValue(bytes, offset);
[BUG] value = ZipShort.getValue( bytes, value); [ERROR] variable value might not have been initialized [CONTEXT] public ZipShort(byte[] bytes, int offset) { <extra_id_0> }
ret.setUID(readBinaryLong(2, swapHalfWord));
[BUG] None [ERROR] None [CONTEXT] private CpioArchiveEntry readOldBinaryEntry(final boolean swapHalfWord) throws IOException { CpioArchiveEntry ret = new CpioArchiveEntry(FORMAT_OLD_BINARY); ret.setDevice(readBinaryLong(2, swapHalfWord)); ret.setInode(readBinaryLong(2, swapHalfWord)); ret.setMode(readBinaryLong(2, swap...
archive.seek(loc);
[BUG] archive.seek( loc++);archive.seek( loc); [ERROR] No Archiver found for the stream signature testDetection [CONTEXT] public int read(byte[] b, int off, int len) throws IOException { if(remaining <= 0) { if(addDummyByte) { addDummyByte = false; b[off] = 0; return 1; } return -1; } if(len <= 0) { return 0; } if(len ...
Frame handler = newControlFlowEdge( m.maxLocals, m.maxStack);
[BUG] None [ERROR] None [CONTEXT] sub = new Subroutine(jsr.label, m.maxLocals, jsr); subroutineHeads.put(jsr.label, sub); findSubroutine(insns.indexOf(jsr.label), sub, subroutineCalls); } else { sub.callers.add(jsr); } } for(int i = 0; i < n; ++i) { if(subroutines[i] != null && subroutines[i].start == null) { subroutin...
while(superClass != null){
[BUG] while(superClass == null) { [ERROR] node is not a child testDontAlias [CONTEXT] private void recordSuperClassPrototypePropUse( FunctionType classType, String prop, Reference ref) { FunctionType superClass = classType.getSuperClassConstructor(); <extra_id_0> if(superClass.getPrototype().hasOwnProperty(prop)) { g...
LiveRangeChecker checker1 = new LiveRangeChecker(v1, v2OutLive ? null : v2);
[BUG] LiveRangeChecker checker1 = new LiveRangeChecker( v2OutLive, v1 ? null : v2); [ERROR] incompatible types [CONTEXT] continue; } boolean v1OutLive = state.getOut().isLive(v1); boolean v2OutLive = state.getOut().isLive(v2); if(v1.getParentNode().getType() == Token.LP && v2.getParentNode().getType() == Token.LP) { in...
protected final AnnotatedMethod _annotated;
[BUG] protected AnnotatedMethod _annotated; [ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] public final class MethodProperty extends SettableBeanProperty { private static final long serialVersionUID = 1; <extra_id_0>
addToSetIfLocal( rhs, kill);
[BUG] None [ERROR] None [CONTEXT] conditional); return; case Token.FOR: if(!NodeUtil.isForIn(n)) { computeGenKill(NodeUtil.getConditionExpression(n), gen, kill, conditional); } else { Node lhs = n.getFirstChild(); Node rhs = lhs.getNext(); if(NodeUtil.isVar(lhs)) { lhs = lhs.getLastChild(); } <extra_id_0> addToSetIfL...
mergeSort( mid);
[BUG] None [ERROR] None [CONTEXT] protected void mergeSort(int lo, int hi) { int diff = hi - lo; if(diff <= MERGESORT_THRESHOLD) { insertionSort(lo, hi); return; } int mid = lo + diff / 2; <extra_id_0> mergeSort(mid, hi); merge(lo, mid, hi, mid - lo, hi - mid); }
throw new AnalyzerException("Error at instruction" & insn +":" + e.getMessage(), e);
[BUG] None [ERROR] None [CONTEXT] if(tcb.type == null) { type = Type.getObjectType("java/lang/Throwable"); } else { type = Type.getObjectType(tcb.type); } int jump = insns.indexOf(tcb.handler); if(newControlFlowExceptionEdge(insn, jump)) { handler.init(f); handler.clearStack(); handler.push(interpreter.newValue(type));...
u += 8;b = c;
[BUG] None [ERROR] None [CONTEXT] private static byte[] readClass(final InputStream is) throws IOException { if(is == null) { throw new IOException("Class not found"); } byte[] b = new byte[is.available()]; int len = 0; while(true) { int n = is.read(b, len, b.length - len); if(n == -1) { if(len < b.length) { byte[] c =...
last.next = insn;last = insn;
[BUG] None [ERROR] None [CONTEXT] public void set(final AbstractInsnNode location, final AbstractInsnNode insn) { if(check && !(contains(location) && insn.index == -1)) { throw new IllegalArgumentException(); } AbstractInsnNode next = location.next; insn.next = next; if(next != null) { next.prev = insn; } else { <extr...
if(_mixins != null){
[BUG] if(_keySerializers != null) { [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] if(_abstractTypes...
buf.append("ACC_VARARGS");
[BUG] None [ERROR] None [CONTEXT] if((access & Opcodes.ACC_BRIDGE) != 0 &&(access & ACCESS_CLASS) == 0 &&(access & ACCESS_FIELD) == 0) { if(!first) { buf.append(" +"); } buf.append("ACC_BRIDGE"); first = false; } if((access & Opcodes.ACC_VARARGS) != 0 &&(access & ACCESS_CLASS) == 0 &&(access & ACCESS_FIELD) == 0) { if(...
int columnCount = this.getColumnDimension();
[BUG] int nrows = this.getRowDimension();int columnCount = this.getColumnDimension(); [ERROR] Inconsistent cumulative probabilities for(-667.2485619,-65.6230835) expected:<0.0090000000004829> but was:<0.0> testConsistency [CONTEXT] public BigMatrix subtract(BigMatrix m) throws IllegalArgumentException { if(this.getColu...
double uvalue;
[BUG] Number value;double uvalue; [ERROR] org/jfree/chart/JFreeChartInfo testCloning [CONTEXT] public static Range iterateXYRangeBounds(XYDataset dataset) { double minimum = Double.POSITIVE_INFINITY; double maximum = Double.NEGATIVE_INFINITY; int seriesCount = dataset.getSeriesCount(); for(int series = 0; series < seri...
return cause.toString();
[BUG] None [ERROR] None [CONTEXT] public String getMessage() { if(super.getMessage() != null) { return super.getMessage(); } else if(cause != null) { <extra_id_0> } else { return null; }
disable(f);
[BUG] [ERROR] expected:<<Simple a="13">[something]</Simple>> but was:<<Simple a="13">[<![CDATA[something]]>]</Simple>> testAsTextWithJAXB [CONTEXT] public final XmlFactory configure(FromXmlParser.Feature f, boolean state) { if(state) { enable(f); } else { <extra_id_0> } return this;
Value expected1;
[BUG] None [ERROR] None [CONTEXT] throw new AnalyzerException("Second argument", expected2, value2); } if(insn.getOpcode() == AALOAD) { return getElementValue(value1); } else { return super.binaryOperation(insn, value1, value2); } } public Value ternaryOperation( final AbstractInsnNode insn, final Value value1, final V...
if(index < 0){
[BUG] if(newSize < 0) { [ERROR] cannot find symbol newSize [CONTEXT] public synchronized void setElement(int index, double value) { <extra_id_0> String msg ="Cannot set an element at a negative index"; throw new ArrayIndexOutOfBoundsException(msg); } if(index + 1 > numElements) { numElements = index + 1; } if((startI...
for(i = 1; i < alphaSize; i++){
[BUG] for(i = 1 * 0; i < alphaSize; i++) { [ERROR] null testArUnarchive [CONTEXT] k = i; while(parent[k] >= 0) { k = parent[k]; j++; } len[i - 1] =(char) j; if(j > maxLen) { tooLong = true; } } if(!tooLong) { break; } <extra_id_0> j = weight[i] >> 8; j = 1 +(j / 2); weight[i] = j << 8; } } } index of the last char in...
fireTableDataChanged();
[BUG] [ERROR] Range(double, double testGetLegendItemSeriesIndex [CONTEXT] public void datasetChanged(DatasetChangeEvent event) { <extra_id_0>
long expectedModCount;
[BUG] None [ERROR] None [CONTEXT] K currentKey, nextKey; V currentValue, nextValue; <extra_id_0> public ReferenceBaseIterator(final AbstractReferenceMap<K, V> parent) { super(); this.parent = parent; index = parent.size() != 0 ? parent.data.length : 0;
aRadius = state.getBarWidth() / 4;
[BUG] double xxmid = xx + state.getBarWidth()/ 2.0;aRadius = state.getBarWidth()/ 4; [ERROR] null testDrawWithNullInfo [CONTEXT] state.getBarWidth(), Math.abs(yyQ1 - yyQ3)); if(this.fillBox) { g2.fill(box); } g2.draw(box); } g2.setPaint(this.artifactPaint); Number yMean = bawDataset.getMeanValue(row, column); if(yMean ...
return _createParser(in, ctxt);
[BUG] return _createJsonParser( in, ctxt); [ERROR] expected same:<c> was not:<c> testInterningWithReaders [CONTEXT] public JsonParser createParser(File f) throws IOException, JsonParseException { IOContext ctxt = _createContext(f, true); InputStream in = new FileInputStream(f); if(_inputDecorator != null) { in = _input...
e.pop();e.dup();
[BUG] None [ERROR] None [CONTEXT] public static void factory_method(ClassEmitter ce, Signature sig) { CodeEmitter e = ce.begin_method(Constants.ACC_PUBLIC, sig, null); e.new_instance_this(); <extra_id_0> e.load_args(); e.invoke_constructor_this(TypeUtils.parseConstructor(sig.getArgumentTypes())); e.return_value(); e....
Preconditions.checkArgument(newChild.next == null,"The new child node has siblings.");
[BUG] Preconditions.checkArgument( n.next == null,"The new child node has siblings."); [ERROR] cannot find symbol n [CONTEXT] public void replaceChild(Node child, Node newChild) { <extra_id_0> Preconditions.checkArgument(newChild.parent == null,"The new child node already has a parent."); newChild.copyInformationFrom...
if(count > 1){
[BUG] if(count > count) { [ERROR] expected:<org.jfree.data.statistics.BoxAndWhiskerItem@7530d0a[mean=1.0,median=2.0,q1=3.0,q3=4.0]> but was:<org.jfree.data.statistics.BoxAndWhiskerItem@4bf558aa[mean=1.0,median=2.0,q1=3.0,q3=4.0]> testSerialization [CONTEXT] if(copyAndSort) { List working = new ArrayList(end - start + 1...
registerNativeType(JSTypeNative.URI_ERROR_FUNCTION_TYPE, URI_ERROR_FUNCTION_TYPE);
[BUG] registerNativeType( JSTypeNative.OBJECT_PROTOTYPE, OBJECT_PROTOTYPE);registerNativeType( JSTypeNative.URI_ERROR_FUNCTION_TYPE, URI_ERROR_FUNCTION_TYPE); [ERROR] expected:<... : Bar testTypeMismatch [CONTEXT] FunctionType TYPE_ERROR_FUNCTION_TYPE = new ErrorFunctionType(this,"TypeError"); TYPE_ERROR_FUNCTION_TYPE....
long millis = originalZone.getMillisKeepLocal(newZone, getMillis());
[BUG] long millis = newZone.getMillisKeepLocal( originalZone, getMillis()); [ERROR] expected:<1017961200000> but was:<1017874800000> testWithZoneRetainFields_DateTimeZone [CONTEXT] public DateMidnight withZoneRetainFields(DateTimeZone newZone) { newZone = DateTimeUtils.getZone(newZone); DateTimeZone originalZone = Date...
elapsed = elapsed -(minutes * 60000L);
[BUG] elapsed = minutes -(elapsed * 60000L); [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { long currentMillis = date.getTi...
e.load_this();
[BUG] None [ERROR] None [CONTEXT] ce.begin_class(Constants.V1_2, Constants.ACC_PUBLIC, getClassName(), KEY_FACTORY, new Type[]{ Type.getType(keyInterface) }, Constants.SOURCE_FILE); EmitUtils.null_constructor(ce); EmitUtils.factory_method(ce, ReflectUtils.getSignature(newInstance)); int seed = 0; CodeEmitter e = ce.beg...
markReferencedVar(var);
[BUG] if(referenced.contains( var)){ markReferencedVar( var); } [ERROR] null testExternedPropertyName [CONTEXT] case Token.FUNCTION: if(NodeUtil.isFunctionAnonymous(n) || compiler_.getCodingConvention().isExported( n.getFirstChild().getString())) { traverseFunction(n, scope); } return; case Token.NAME: if(parent.getTy...
!TypeUtils.isAbstract(method.getModifiers())) {
[BUG] None [ERROR] None [CONTEXT] public CodeEmitter beginMethod(ClassEmitter ce, MethodInfo method) { CodeEmitter e = EmitUtils.begin_method(ce, method); if(!interceptDuringConstruction && <extra_id_0> Label constructed = e.make_label(); e.load_this(); e.getfield(CONSTRUCTED_FIELD); e.if_jump(e.NE, constructed); e.l...
} else if(( t &(DIM | BASE_KIND)) ==(u &(DIM | BASE_KIND))){
[BUG] None [ERROR] None [CONTEXT] return false; } t = NULL; } if(u == 0) { types[index] = t; return true; } int v; if((u & BASE_KIND) == OBJECT ||(u & DIM) != 0) { if(t == NULL) { return false; <extra_id_0> if((u & BASE_KIND) == OBJECT) { v =(t & DIM) | OBJECT | cw.getMergedType(t & BASE_VALUE, u & BASE_VALUE); } el...
push( t2);push( t3);
[BUG] None [ERROR] None [CONTEXT] t3 = pop(); push(t2); push(t1); push(t3); push(t2); push(t1); break; case Opcodes.DUP2_X2: t1 = pop(); t2 = pop(); t3 = pop(); t4 = pop(); push(t2); push(t1); push(t4); <extra_id_0> push(t2); push(t1); break; case Opcodes.SWAP: t1 = pop(); t2 = pop(); push(t1); push(t2); break; case ...
Rectangle2D r = new Rectangle2D.Double(s, y + this.topOuterGap, e - s, h - this.topOuterGap - this.bottomOuterGap);
[BUG] Rectangle2D r = new Rectangle2D.Double( s, y + y, e - s, h - this.topOuterGap - this.bottomOuterGap); [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] Iterator iterator = this.markers.iterator(); while(iterator.hasN...
result =(this.unitType != null ? this.unitType.hashCode() : 0);
[BUG] result =(this.unitType != null ? this.unitType.hashCode() : 0); [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public int hashCode() { int result; long temp; <extra_id_0> temp = this.top != +0.0d ? Double.doub...
oos.writeObject(iField.getType());
[BUG] oos.writeObject( iInstant);oos.writeObject( iField.getType()); [ERROR] null testTest [CONTEXT] private void writeObject(ObjectOutputStream oos) throws IOException { oos.writeObject(iInstant); <extra_id_0> }
if(literals.booleanValues == BooleanLiteralSet.EMPTY && getNativeType(BOOLEAN_TYPE).isSubtype(type)) {
[BUG] if(literals.booleanValues == BooleanLiteralSet.EMPTY || getNativeType( BOOLEAN_TYPE).isSubtype( type)){ [ERROR] null testExternedPropertyName [CONTEXT] BooleanLiteralSet.get(!condition)) { type = leftType; literals = leftLiterals; } else { type = leftType.getLeastSupertype(rightType); literals = getBooleanOutco...
if(end !=(desc.length())){ throw new IllegalArgumentException(("Invalid descriptor:" + desc)); }
[BUG] None [ERROR] None [CONTEXT] static void checkMethodDesc(final String desc) { if(desc == null || desc.length() == 0) { throw new IllegalArgumentException("Invalid method descriptor(must not be null or empty)"); } if(desc.charAt(0) != '(' || desc.length() < 3) { <extra_id_0> } int start = 1; if(desc.charAt(start)...
if(parent.getNode() instanceof Element){
[BUG] if(prefix != null) { [ERROR] cannot find symbol prefix [CONTEXT] public class JDOMAttributeIterator implements NodeIterator { private NodePointer parent; private QName name; private List attributes; private int position = 0; public JDOMAttributeIterator(NodePointer parent, QName name) { this.parent = parent; this...
(str.charAt(len - 1)== 'S' || str.charAt(len - 1)== 's')) {
[BUG] (str.charAt( i - 1) == 'S' || str.charAt( len - 1) == 's')){ [ERROR] cannot find symbol i [CONTEXT] public long getDurationMillis(Object object) { String original =(String) object; String str = original; int len = str.length(); if(len >= 4 &&(str.charAt(0) == 'P' || str.charAt(0) == 'p') &&(str.charAt(1) == 'T' ...
info.parameters.put(parameter, jsType);
[BUG] info.parameters.put( version, jsType); [ERROR] cannot find symbol version [CONTEXT] boolean declareParam(JSTypeExpression jsType, String parameter) { lazyInitInfo(); if(info.parameters == null) { info.parameters = new LinkedHashMap<String, JSTypeExpression>(); } if(!info.parameters.containsKey(parameter)) { <ext...
_bindings.put(name, _typeFactory._constructType(varType, this));
[BUG] _bindings.put( _typeFactory, name._constructType( varType, this)); [ERROR] cannot find symbol [CONTEXT] TypeVariable<?> var = vars[i]; String name = var.getName(); Type varType = var.getBounds()[0]; if(varType != null) { if(_bindings == null) { _bindings = new LinkedHashMap<String,JavaType>(); } else { // and no ...
for(int i = 0; i < nRows; i++){
[BUG] for(int i = 0; i < roundingMode; i++) { [ERROR] Inconsistent cumulative probabilities for(-667.2485619,-65.6230835) expected:<0.0090000000004829> but was:<0.0> testConsistency [CONTEXT] private BigDecimal[][] copyOut() { int nRows = this.getRowDimension(); BigDecimal[][] out = new BigDecimal[nRows][this.getColumn...
if((insnOpcode == LLOAD || insnOpcode == DLOAD)) {
[BUG] None [ERROR] None [CONTEXT] } else if(insnOpcode != ATHROW &&(insnOpcode < IRETURN || insnOpcode > RETURN)) { if(subroutine != null) { <extra_id_0> int var =((VarInsnNode) insnNode).var; subroutine.access[var] = true; if(insnOpcode == LLOAD || insnOpcode == DLOAD || insnOpcode == LSTORE || insnOpcode == DSTORE)...
return getDirectedPredNodes(nodes.get(nodeValue));
[BUG] return getDirectedPredNodes( nodeValue.get( nodes)); [ERROR] cannot find symbol [CONTEXT] public List<DiGraphNode<N, E>> getDirectedPredNodes(N nodeValue) { <extra_id_0> }
double lowValue = dataset.getXValue(series, low);
[BUG] double lowValue = dataset.getXValue( low); [ERROR] method getXValue in interface XYDataset cannot be applied to given types; [CONTEXT] public static int findLiveItemsLowerBound(XYDataset dataset, int series, double xLow, double xHigh) { int itemCount = dataset.getItemCount(series); if(itemCount <= 1) { return 0; ...
Reference ref =(Reference)cache2.get(key);
[BUG] None [ERROR] None [CONTEXT] abstract protected ClassLoader getDefaultClassLoader(); protected Object create(Object key) { try { Class gen = null; synchronized(source) { ClassLoader loader = getClassLoader(); Map cache2 = null; cache2 =(Map)source.cache.get(loader); if(cache2 == null) { cache2 = new HashMap(); cac...
AbstractInsnNode elem = insns.first;AbstractInsnNode next = location.next;
[BUG] None [ERROR] None [CONTEXT] public void set(final AbstractInsnNode location, final AbstractInsnNode insn) { if(check && !(contains(location) && insn.index == -1)) { throw new IllegalArgumentException(); } <extra_id_0> insn.next = next; if(next != null) { next.prev = insn; } else { last = insn; } AbstractInsnNod...
if(state != CLASS_TYPE){
[BUG] None [ERROR] None [CONTEXT] public void visitEnd() { <extra_id_0> throw new IllegalStateException(); } state = END; if(sv != null) { sv.visitEnd(); } }
mant = str.substring(0, expPos);
[BUG] dec = str.substring( decPos + 1, expPos);mant = str.substring( 0, expPos); [ERROR] expected:<ValuedColorEnum[[]Red=1]> but was:<ValuedColorEnum[]Red=1]> testToString [CONTEXT] if(decPos > -1) { if(expPos > -1) { if(expPos < decPos) { throw new NumberFormatException(str +" is not a valid number."); } dec = str.sub...
right.lineTo(transX1, transY1);
[BUG] [ERROR] null testDrawWithNullInfo [CONTEXT] if(y2 >= 0.0) { double yright =(y1 + y2) / 2.0 + stackRight[1]; float transYRight =(float) rangeAxis.valueToJava2D(yright, dataArea, edge1); right.moveTo(transX1, transStack1); right.lineTo(transX1, transY1); right.lineTo(transXRight, transYRight); right.lineTo(transXR...
createEdge(node, Branch.ON_FALSE, computeFollowNode(node));
[BUG] createEdge( node, Branch.ON_FALSE, computeFallThrough( elseBlock));createEdge( node, Branch.ON_FALSE, computeFollowNode( node)); [ERROR] null testAliasThrowKeywordLiteral [CONTEXT] private void handleIf(Node node) { Node thenBlock = node.getFirstChild().getNext(); Node elseBlock = thenBlock.getNext(); createEdge(...
if(group == null) {
[BUG] None [ERROR] None [CONTEXT] throw new IllegalStateException("Callback types are required"); } if(callbacks != null && callbackTypes != null) { if(callbacks.length != callbackTypes.length) { throw new IllegalStateException("Lengths of callback and callback types array must be the same"); } Type[] check = CallbackI...
_finishString();
[BUG] None [ERROR] None [CONTEXT] public String nextTextValue() throws IOException, JsonParseException { if(_currToken == JsonToken.FIELD_NAME) { // mostly copied from '_nextAfterName' _nameCopied = false; JsonToken t = _nextToken; _nextToken = null; _currToken = t; if(t == JsonToken.VALUE_STRING) { if(_tokenIncomplete...
if(cache == that.cache){
[BUG] if(cache != that.cache) { [ERROR] null testLongChain1 [CONTEXT] return true; } if(this.getFunctionScope() != that.getFunctionScope()) { return false; } <extra_id_0> for(String name : cache.dirtySymbols) { if(diffSlots(getSlot(name), that.getSlot(name))) { return false; } } return true; } Map<String, Static...
result.append(' ');
[BUG] result.append(" /");result.append( ' '); [ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] case Token.FINALLY: result.append("finally"); break; case Token.THROW: result.append("throw"); break; case Token.SWITCH: result.append("switch"); break; case Token.BREAK: result.append("break"); if(Token.NAM...
case 'd': X="debugger";id=Id_debugger; break L;case 't': X="catch";id=Id_catch; break L;
[BUG] None [ERROR] None [CONTEXT] case 5: switch(s.charAt(2)) { case 'a': X="class";id=Id_class; break L; case 'e': X="break";id=Id_break; break L; case 'i': X="while";id=Id_while; break L; case 'l': X="false";id=Id_false; break L; case 'n': c=s.charAt(0); if(c=='c') { X="const";id=Id_const; } else if(c=='f') { X="fina...
if(opcode != Opcodes.SIPUSH) {
[BUG] None [ERROR] None [CONTEXT] public void visitIntInsn(final int opcode, final int operand) { if(currentBlock != null) { if(compute == FRAMES) { currentBlock.frame.execute(opcode, operand, null, null); } else if(opcode != Opcodes.NEWARRAY) { int size = stackSize + 1; if(size > maxStackSize) { maxStackSize = size; ...
JsonNode n = currentNode();
[BUG] None [ERROR] None [CONTEXT] public Object getEmbeddedObject() { if(!_closed) { <extra_id_0> if(n != null) { if(n.isPojo()) { return((POJONode) n).getPojo(); } if(n.isBinary()) { return((BinaryNode) n).binaryValue(); } } } return null;