fix
stringlengths
2
286
ctx
stringlengths
46
2.15k
int call = insns.indexOf(( AbstractInsnNode)caller);
[BUG] None [ERROR] None [CONTEXT] int jump = insns.indexOf(tsi.dflt); merge(jump, current, subroutine); newControlFlowEdge(insn, jump); for(int j = 0; j < tsi.labels.size(); ++j) { LabelNode label =(LabelNode) tsi.labels.get(j); jump = insns.indexOf(label); merge(jump, current, subroutine); newControlFlowEdge(insn, jum...
stopTracer(t,"generateReport");
[BUG] stopTracer( t,"runCustomPasses");stopTracer( t,"generateReport"); [ERROR] null testAliasThrowKeywordLiteral [CONTEXT] public Result compile(JSSourceFile[] externs, JSModule[] modules, CompilerOptions options) { Preconditions.checkState(jsRoot == null); try { init(externs, modules, options); if(hasErrors()) { retu...
if(wdtx == null){
[BUG] if(we == null) { [ERROR] null testTest [CONTEXT] public static DateTimeFormatter weekDateTimeNoMillis() { <extra_id_0> wdtx = new DateTimeFormatterBuilder().append(weekDate()).append(tTimeNoMillis()).toFormatter(); } return wdtx; }
buff.append("]");
[BUG] buff.append(",");buff.append("]"); [ERROR] expected:<Two [Words]> but was:<Two []> test15648 [CONTEXT] else { buff.append("--"); buff.append(option.getLongOpt()); } buff.append(""); buff.append(option.getDescription()); if(iter.hasNext()) { buff.append(","); } } <extra_id_0> return buff.toString(); } }
sumXY += dx * dy *(double)n /(double)(n + 1.0);
[BUG] sumXY += dx * dy *(double) serialVersionUID /(double)(n + 1.0); [ERROR] Incorrect inverse cumulative probability value returned for 0.05 expected:<4> but was:<3> testInverseCumulativeProbabilities [CONTEXT] public void addData(double x, double y) { if(n == 0) { xbar = x; ybar = y; } else { double dx = x - xbar; d...
[Delete]
[BUG] None [ERROR] None [CONTEXT] public static double factorialDouble(final int n) { if(n < 0) { <extra_id_0> } return Math.floor(Math.exp(factorialLog(n)) + 0.5); }
||"NaN".equals(name);
[BUG] ||"NaN".equals( CONSTANT_MARKER); [ERROR] testMinimizeWhileConstantCondition [CONTEXT] static boolean isImmutableValue(Node n) { switch(n.getType()) { case Token.STRING: case Token.NUMBER: case Token.NULL: case Token.TRUE: case Token.FALSE: case Token.VOID: return true; case Token.NEG: return isImmutableValue(n.g...
if(varType.equals(getNativeType(UNKNOWN_TYPE)) && var != syntacticScope.getSlot(qualifiedName)) {
[BUG] if(varType.equals( getNativeType( UNKNOWN_TYPE))&& var != syntacticScope.getSlot( propName)){ [ERROR] null testExternedPropertyName [CONTEXT] scope = scope.createChildFlowScope(); redeclare(scope, n.getString(), narrowed); } } return scope; } private JSType getPropertyType(JSType objType, String propName, Node n,...
sb.append(')');
[BUG] None [ERROR] None [CONTEXT] public static Signature parseSignature(String s) { int space = s.indexOf(' '); int lparen = s.indexOf('(', space); int rparen = s.indexOf(')', lparen); String returnType = s.substring(0, space); String methodName = s.substring(space + 1, lparen); StringBuffer sb = new StringBuffer(); s...
cur = info;
[BUG] None [ERROR] None [CONTEXT] private static Type determineType(Class callbackType) { Class cur = null; for(int i = 0; i < CALLBACKS.length; i++) { CallbackInfo info = CALLBACKS[i]; if(info.cls.isAssignableFrom(callbackType)) { if(cur != null) { throw new IllegalStateException("Callback implements both" + cur +" an...
if(node.getType() == Token.NAME){
[BUG] if(node.getType()< Token.NAME) { [ERROR] runtime INTERNAL COMPILER ERROR. testRequiresAreCaughtBeforeProcessed [CONTEXT] private final AbstractCompiler compiler; private Map<Var, String> nameMap = Maps.newHashMap(); private ContextualRenameInverter(AbstractCompiler compiler) { this.compiler = compiler; } public v...
if(!ObjectUtilities.equal(this.date, dt.date)) {
[BUG] if(!ObjectUtilities.equal( dt, this.date.date)){ [ERROR] cannot find symbol date [CONTEXT] public boolean equals(Object obj) { if(obj == this) { return true; } if(obj instanceof DateTick && super.equals(obj)) { DateTick dt =(DateTick) obj; <extra_id_0> return false; } return true; } return false; }
outliers.add(new Outlier(xx + state.getBarWidth() / 2.0, yyOutlier, oRadius));
[BUG] outliers.add( new Outlier( xx + state.getBarWidth()/ 2.0, xxMax, oRadius)); [ERROR] cannot find symbol xxMax [CONTEXT] for(int i = 0; i < yOutliers.size(); i++) { double outlier =((Number) yOutliers.get(i)).doubleValue(); Number minOutlier = bawDataset.getMinOutlier(row, column); Number maxOutlier = bawDataset.ge...
return this.values.getColumnCount();
[BUG] return values.getColumnCount(); [ERROR] expected:<org.jfree.data.time.TimePeriodValuesCollection@4edde6e5> but was:<org.jfree.data.time.TimePeriodValuesCollection@1ed6993a> testSerialization [CONTEXT] public int getSeriesCount() { <extra_id_0> }
q2 = q1 +(b / a * q2);
[BUG] None [ERROR] None [CONTEXT] double q0 = 0.0; double q1 = 1.0; double c = p1 / q1; int n = 0; double relativeError = Double.MAX_VALUE; while(n < maxIterations && relativeError > epsilon) { ++n; double a = getA(n, x); double b = getB(n, x); double p2 = a * p1 + b * p0; double q2 = a * q1 + b * q0; if(Double.isInfin...
for(int i=0; i < classes.length; i++){
[BUG] for(int i=0; i < classes.length.length; i++) { [ERROR] int cannot be dereferenced [CONTEXT] public static Class[] primitivesToWrappers(Class[] classes) { if(classes == null) { return null; } if(classes.length == 0) { return classes; } Class[] convertedClasses = new Class[classes.length]; <extra_id_0> convertedC...
if(offset < Short.MIN_VALUE || offset > Short.MAX_VALUE){
[BUG] None [ERROR] None [CONTEXT] boolean resolve( final MethodWriter owner, final int position, final byte[] data) { boolean needUpdate = false; this.status |= RESOLVED; this.position = position; int i = 0; while(i < referenceCount) { int source = srcAndRefPositions[i++]; int reference = srcAndRefPositions[i++]; int o...
return factory.createCollectionLikeDeserializer(ctxt, clt, beanDesc);
[BUG] return factory.createCollectionLikeDeserializer( beanDesc, clt, ctxt); [ERROR] method createCollectionLikeDeserializer in class DeserializerFactory cannot be applied to given types; [CONTEXT] } return factory.createMapLikeDeserializer(ctxt, mlt, beanDesc); } if(type.isCollectionLikeType()) { JsonFormat.Value fo...
for(int i = listeners.length - 2; i >= 0; i -= 2){
[BUG] for(listenersnt i = i.length - 2; i >= 0; i -= 2) { [ERROR] cannot find symbol [CONTEXT] protected void notifyListeners(ChartProgressEvent event) { Object[] listeners = this.progressListeners.getListenerList(); <extra_id_0> if(listeners[i] == ChartProgressListener.class) {((ChartProgressListener) listeners[i + ...
int call = insns.indexOf(( AbstractInsnNode)caller);
[BUG] None [ERROR] None [CONTEXT] int jump = insns.indexOf(tsi.dflt); merge(jump, current, subroutine); newControlFlowEdge(insn, jump); for(int j = 0; j < tsi.labels.size(); ++j) { LabelNode label =(LabelNode) tsi.labels.get(j); jump = insns.indexOf(label); merge(jump, current, subroutine); newControlFlowEdge(insn, jum...
if(definitions == null){
[BUG] if(definitions != null) { [ERROR] testSecondCallReturnNotThis [CONTEXT] Node callNode = n.getFirstChild(); if(callNode.getType() != Token.CALL) { return; } Node getPropNode = callNode.getFirstChild(); if(getPropNode.getType() != Token.GETPROP) { return; } Node getPropFirstChildNode = getPropNode.getFirstChild(); ...
if(ref.getTwin() == null || !ref.getTwin().isSet()){
[BUG] if(!ref.getTwin().isSet()) { [ERROR] null testExternedPropertyName [CONTEXT] CollectDefines(AbstractCompiler compiler, List<Name> listOfDefines) { this.compiler = compiler; this.allDefines = Maps.newHashMap(); assignableDefines = Maps.newHashMap(); assignAllowed = new ArrayDeque<Integer>(); assignAllowed.push(1);...
value = dataset.getXValue(series, item);
[BUG] [ERROR] org/jfree/chart/JFreeChartInfo testCloning [CONTEXT] } else { double minimum = Double.POSITIVE_INFINITY; int seriesCount = dataset.getSeriesCount(); for(int series = 0; series < seriesCount; series++) { int itemCount = dataset.getItemCount(series); for(int item = 0; item < itemCount; item++) { double val...
} else if(object instanceof Enumeration<?>){
[BUG] } if(object instanceof Enumeration<?>) { [ERROR] [CONTEXT] public static int size(final Object object) { if(object == null) { return 0; } int total = 0; if(object instanceof Map<?,?>) { total =((Map<?, ?>) object).size(); } else if(object instanceof Collection<?>) { total =((Collection<?>) object).size(); } else...
if(weeks == 0){
[BUG] if(monthOfYear == 0) { [ERROR] cannot find symbol monthOfYear [CONTEXT] public LocalDate plusWeeks(int weeks) { <extra_id_0> return this; } long instant = getChronology().weeks().add(getLocalMillis(), weeks); return withLocalMillis(instant); }
map.put("MST","America/Denver");
[BUG] map.put("EET","Europe/Bucharest");map.put("MST","America/Denver"); [ERROR] null testTest [CONTEXT] private static synchronized String getConvertedId(String id) { Map<String, String> map = cZoneIdConversion; if(map == null) { map = new HashMap<String, String>(); map.put("GMT","UTC"); map.put("MIT","Pacific/Apia");...
if(converted.containsKey(field)) {
[BUG] if(converted.containsKey( rangeDurationField)){ [ERROR] cannot find symbol rangeDurationField [CONTEXT] private DurationField convertField(DurationField field, HashMap<Object, Object> converted) { if(field == null || !field.isSupported()) { return field; } <extra_id_0> return(DurationField)converted.get(field);...
Preconditions.checkState(name.length() != 0);
[BUG] None [ERROR] None [CONTEXT] private void visitBreakOrContinue(Node node) { Node nameNode = node.getFirstChild(); if(nameNode != null) { String name = nameNode.getString(); <extra_id_0> LabelInfo li = getLabelInfo(name); if(li != null) { String newName = getNameForId(li.id); li.referenced = true; if(!name.equals...
case ANNOTATION: return"ANNOTATION";
[BUG] None [ERROR] None [CONTEXT] case LOCAL_BLOCK: return"LOCAL_BLOCK"; case SET_REF_OP:return"SET_REF_OP"; case DOTDOT:return"DOTDOT"; case COLONCOLON:return"COLONCOLON"; case XML: return"XML"; case DOTQUERY:return"DOTQUERY"; case XMLATTR: return"XMLATTR"; case XMLEND:return"XMLEND"; case TO_OBJECT: return"TO_OBJECT"...
item.type = propType;
[BUG] None [ERROR] None [CONTEXT] private PropListItem ensureProperty(int propType) { PropListItem item = lookupProperty(propType); if(item == null) { item = new PropListItem(); <extra_id_0> item.next = propListHead; propListHead = item; } return item; }
_addSetterMethod(m, ai);
[BUG] _addSetterMethod( ai, m); [ERROR] method _addSetterMethod in class POJOPropertiesCollector cannot be applied to given types; [CONTEXT] protected void _addMethods() { final AnnotationIntrospector ai = _annotationIntrospector; for(AnnotatedMethod m : _classDef.memberMethods()) { int argCount = m.getParameterCount...
JsonTypeInfo info = ann.getAnnotation(JsonTypeInfo.class);
[BUG] JsonTypeInfo info = ann.getAnnotation( JsonTypeInfo.defaultImpl); [ERROR] cannot find symbol defaultImpl [CONTEXT] protected boolean _isIgnorable(Annotated a) { JsonIgnore ann = a.getAnnotation(JsonIgnore.class); return(ann != null && ann.value()); } protected TypeResolverBuilder<?> _findTypeResolver(MapperConf...
EmitUtils.append_string(e, parameterTypes[i], EmitUtils.DEFAULT_DELIMITERS, customizer);
[BUG] None [ERROR] None [CONTEXT] e.return_value(); e.end_method(); e = ce.begin_method(Constants.ACC_PUBLIC, TO_STRING, null); e.new_instance(Constants.TYPE_STRING_BUFFER); e.dup(); e.invoke_constructor(Constants.TYPE_STRING_BUFFER); for(int i = 0; i < parameterTypes.length; i++) { if(i > 0) { e.push(","); e.invoke_vi...
return jp.getNumberValue();
[BUG] return jp.getDoubleValue(); [ERROR] expected:<[TestBean x=13 y=-900 desc="test" uri=http://foobar.com misc=[xyz, 42, null, true]]> but was:<[TestBean x=13 y=-900 desc="test" uri=http://foobar.com misc=[xyz, 42.0, null, true]]> testSimpleBean [CONTEXT] return mapArray(jp, ctxt); case FIELD_NAME: return mapObject(j...
graph.connect(getNamedContainingFunction() , ref, graph.defineNameIfNotExists(superClass.getReferenceName() +".prototype." + prop, false));
[BUG] graph.connect( getNamedContainingFunction(), ref, graph.defineNameIfNotExists( prop.getReferenceName()+".prototype." + superClass, false)); [ERROR] cannot find symbol [CONTEXT] private void recordSuperClassPrototypePropUse( FunctionType classType, String prop, Reference ref) { FunctionType superClass = classType....
double y = stream.readDouble();
[BUG] double y1 = stream.readDouble();double y = stream.readDouble(); [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] double x = stream.readDouble(); double y = stream.readDouble(); double w = stream.readDouble(); doub...
RegularTimePeriod tminor = RegularTimePeriod.createInstance(this.minorTickTimePeriodClass, new Date(t0), getTimeZone());
[BUG] RegularTimePeriod tminor = RegularTimePeriod.createInstance( majorTickTimePeriodClass, new Date( t0) , getTimeZone()); [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] inside = new Line2D.Double(x0, y0, x0, y0 + ins...
return _createParser(data, 0, data.length, ctxt);
[BUG] [ERROR] expected same:<c> was not:<c> testInterningWithReaders [CONTEXT] public JsonParser createParser(byte[] data) throws IOException, JsonParseException { IOContext ctxt = _createContext(data, true); if(_inputDecorator != null) { InputStream in = _inputDecorator.decorate(ctxt, data, 0, data.length); if(in != ...
if(key.getType() == Token.STRING && isStripName(key.getString())) {
[BUG] if(key.getType()== Token.STRING && qualifiedNameBeginsWithStripType( key.getString())){ [ERROR] null testExternedPropertyName [CONTEXT] void eliminateKeysWithStripNamesFromObjLit(NodeTraversal t, Node n) { Node key = n.getFirstChild(); while(key != null) { <extra_id_0> Node value = key.getNext(); Node next = ...
return false;
[BUG] return true; [ERROR] expected:<org.jfree.data.time.TimePeriodValuesCollection@4edde6e5> but was:<org.jfree.data.time.TimePeriodValuesCollection@1ed6993a> testSerialization [CONTEXT] public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof Second)) { return false; } Second that =(Se...
if(rootNode == null) {
[BUG] None [ERROR] None [CONTEXT] public Locale getLocale() { <extra_id_0> if(parent != null) { locale = parent.getLocale(); } } return locale; }
symbol.addFunctionDeclaration(n);
[BUG] symbol.addAssignmentDeclaration( n);symbol.addFunctionDeclaration( n); [ERROR] node is not a child testDontAlias [CONTEXT] private Name recordClassConstructorOrInterface( String name, FunctionType type, @Nullable Node n, @Nullable Node parent, @Nullable Node gParent, @Nullable Node rhs) { Preconditions.checkArgum...
return processAstRoot(( AstRoot)node);
[BUG] [ERROR] expected:<4> but was:<5> testCommentPositions [CONTEXT] case Token.LP: return processParenthesizedExpression((ParenthesizedExpression) node); case Token.NAME: return processName((Name) node); case Token.NEW: return processNewExpression((NewExpression) node); case Token.NUMBER: return processNumberLiteral...
new FastClassEmitter( v, getClassName());
[BUG] None [ERROR] None [CONTEXT] public void generateClass(ClassVisitor v) throws Exception { <extra_id_0> }
if(bean.getClass() != _beanType.getRawClass()){
[BUG] if(_beanType.getClass()!= bean.getRawClass()) { [ERROR] cannot find symbol [CONTEXT] t = jp.nextToken(); // to move to following FIELD_NAME/END_OBJECT Object bean; try { bean = creator.build(ctxt, buffer); } catch(Exception e) { wrapAndThrow(e, _beanType.getRawClass(), propName, ctxt); continue; // never gets her...
if(_resultArray != null){
[BUG] if(curr != null) { [ERROR] cannot find symbol curr [CONTEXT] } return contentsAsArray(); } public String contentsAsString() { if(_resultString == null) { <extra_id_0> _resultString = new String(_resultArray); } else { if(_inputStart >= 0) { if(_inputLen < 1) { return(_resultString =""); } _resultString = new...
return copyOut();
[BUG] [ERROR] Inconsistent cumulative probabilities for(-667.2485619,-65.6230835) expected:<0.0090000000004829> but was:<0.0> testConsistency [CONTEXT] public double[][] getData() { <extra_id_0>
String fieldName ="CGLIB$load_class$" + TypeUtils.escapeType(typeName);
[BUG] None [ERROR] None [CONTEXT] private static void load_class_helper(CodeEmitter e, final Type type) { if(e.isStaticHook()) { e.push(TypeUtils.emulateClassGetName(type)); e.invoke_static(Constants.TYPE_CLASS, FOR_NAME); } else { ClassEmitter ce = e.getClassEmitter(); String typeName = TypeUtils.emulateClassGetName(t...
addChangeListener(this.intervalDelegate);
[BUG] addChangeListener( intervalDelegate); [ERROR] Range(double, double testGetLegendItemSeriesIndex [CONTEXT] public XYSeriesCollection(XYSeries series) { this.data = new java.util.ArrayList(); this.intervalDelegate = new IntervalXYDelegate(this, false); <extra_id_0> if(series != null) { this.data.add(series); seri...
if(NodeUtil.isAssignmentOp(n)&& NodeUtil.isName(n.getFirstChild())) {
[BUG] if(n.getType()== DEC) { [ERROR] cannot find symbol DEC [CONTEXT] computeMustDef(n.getFirstChild().getNext(), cfgNode, output, true); computeMustDef(n.getLastChild(), cfgNode, output, true); return; case Token.VAR: for(Node c = n.getFirstChild(); c != null; c = c.getNext()) { if(c.hasChildren()) { computeMustDef(c...
if(buffer.length() == 0 || buffer.charAt(buffer.length() - 1)!= '/'){
[BUG] None [ERROR] None [CONTEXT] public String asPath() { StringBuffer buffer = new StringBuffer(); if(parent != null) { buffer.append(parent.asPath()); <extra_id_0> buffer.append('/'); } } buffer.append("namespace::"); buffer.append(prefix); return buffer.toString(); }
result = new Range(this.minimumRangeValueIncStdDev, this.maximumRangeValueIncStdDev);
[BUG] result = new Range( minimumRangeValue, this.maximumRangeValueIncStdDev); [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] public Ra...
index = handleW(value, result, index);
[BUG] index = handleW( value, index, result); [ERROR] method handleW in class DoubleMetaphone cannot be applied to given types; [CONTEXT] break; case 'R': index = handleR(value, result, index, slavoGermanic); break; case 'S': index = handleS(value, result, index, slavoGermanic); break; case 'T': index = handleT(value, ...
if(value == null){
[BUG] if(token == null) { [ERROR] expected:<[a, b, c]> but was:<[]> testParseComments [CONTEXT] public long nextLong() throws IOException { quickPeek(); <extra_id_0> throw new IllegalStateException("Expected a long but was" + peek()); } long result; try { result = Long.parseLong(value); } catch(NumberFormatException ...
if(opcode >= Opcodes.ISTORE && compute == FRAMES && handlerCount > 0){
[BUG] None [ERROR] None [CONTEXT] if(var < 4 && opcode != Opcodes.RET) { int opt; if(opcode < Opcodes.ISTORE) { opt = 26 +((opcode - Opcodes.ILOAD) << 2) + var; } else { opt = 59 +((opcode - Opcodes.ISTORE) << 2) + var; } code.putByte(opt); } else if(var >= 256) { code.putByte(196 /* WIDE */).put12(opcode, var); } else...
f2.setTimeZone(zone);
[BUG] f6.setTimeZone( zone);f2.setTimeZone( zone); [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] if(zone == null) { throw new IllegalArgumentException("Null 'zone' argument."); } TickUnits units = new TickUnits(); Date...
buf.append(']');
[BUG] [ERROR] expected:<ValuedColorEnum[[]Red=1]> but was:<ValuedColorEnum[]Red=1]> testToString [CONTEXT] public String toString() { if(toString == null) { StringBuffer buf = new StringBuffer(32); buf.append("Range["); buf.append(min); buf.append(','); buf.append(max); <extra_id_0> toString = buf.toString(); } retu...
if(( status & VISITED)== 0){
[BUG] None [ERROR] None [CONTEXT] void addToSubroutine(final long id, final int nbSubroutines) { <extra_id_0> status |= VISITED; srcAndRefPositions = new int[(nbSubroutines - 1) / 32 + 1]; } srcAndRefPositions[(int)(id >>> 32)] |=(int) id; }
super(info);
[BUG] [ERROR] null testDrawWithNullInfo [CONTEXT] public State(PlotRenderingInfo info) { <extra_id_0>
inlineValue(v, refSet.get(i), value.cloneTree());
[BUG] inlineValue( v.get( i) , value.cloneTree()); [ERROR] cannot find symbol [CONTEXT] private void inlineWellDefinedVariable(Var v, Node value, List<Reference> refSet) { Reference decl = refSet.get(0); for(int i = 1; i < refSet.size(); i++) { <extra_id_0> } removeDeclaration(decl); }
ny[1] =(y[1] - y[0])*(xcycleBound - x[0])/(x[1] - x[0])+ y[0];
[BUG] ny[1] =(xcycleBound[1] - y[0]) *(y - x[0]) /(x[1] - x[0]) + y[0]; [ERROR] array required, but double found [CONTEXT] cnax =(CyclicNumberAxis) domainAxis; xcycleBound = cnax.getCycleBound(); xBoundMapping = cnax.isBoundMappedToLastCycle(); if((x[0] != x[1]) &&((xcycleBound >= x[0]) &&(xcycleBound <= x[1]) ||(xcyc...
calendar.set(year, month, dom, this.hour, 0, 0);
[BUG] calendar.set( year, month, this.hour, 0, 0); [ERROR] Requires 'lower' < 'upper'. testPreviousStandardDateHourA [CONTEXT] public long getFirstMillisecond(Calendar calendar) { int year = this.day.getYear(); int month = this.day.getMonth() - 1; int dom = this.day.getDayOfMonth(); <extra_id_0> calendar.set(Calendar...
if(length < 0){
[BUG] if(length < size) { [ERROR] expected:<ValuedColorEnum[Red=1]> but was:<null> testToString [CONTEXT] public StrBuilder setLength(int length) { <extra_id_0> throw new StringIndexOutOfBoundsException(length); } if(length < size) { size = length; } else if(length > size) { ensureCapacity(length); int oldEnd = size;...
first = false;
[BUG] None [ERROR] None [CONTEXT] ||(access & ACCESS_FIELD) != 0 ||(access & ACCESS_INNER) != 0)) { if(!first) { buf.append(" +"); } buf.append("ACC_ENUM"); first = false; } if((access & Opcodes.ACC_ANNOTATION) != 0 &&(access & ACCESS_CLASS) != 0) { if(!first) { buf.append(" +"); } buf.append("ACC_ANNOTATION"); <extra...
if &&(length + 2 + byteLength > data.length) {
[BUG] None [ERROR] None [CONTEXT] data[len++] =(byte) c; } else { int byteLength = i; for(int j = i; j < charLength; ++j) { c = s.charAt(j); if(c >= '\001' && c <= '\177') { byteLength++; } else if(c > '\u07FF') { byteLength += 3; } else { byteLength += 2; } } data[length] =(byte)(byteLength >>> 8); data[length + 1] =(...
upperBound = trimToContentWidth(r.getUpperBound());
[BUG] upperBound = trimToContentHeight( r.getUpperBound());upperBound = trimToContentWidth( r.getUpperBound()); [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] private Range trimToContentWidth(Range r) { if(r == null) { ...
dBits =(( long) i << 14) |(dBits & 0x0FFFFFFFFL);
[BUG] None [ERROR] None [CONTEXT] static double setWord0(double d, int i) { long dBits = Double.doubleToLongBits(d); <extra_id_0> return Double.longBitsToDouble(dBits); }
cache.put(millis() , millis());
[BUG] cache.put( days(), days());cache.put( millis(), millis()); [ERROR] null test_other [CONTEXT] cache.put(yearMonthDayTime(), yearMonthDayTime()); cache.put(yearMonthDay(), yearMonthDay()); cache.put(yearWeekDayTime(), yearWeekDayTime()); cache.put(yearWeekDay(), yearWeekDay()); cache.put(yearDayTime(), yearDayTime(...
return createBigInteger(numeric);
[BUG] [ERROR] expected:<ValuedColorEnum[[]Red=1]> but was:<ValuedColorEnum[]Red=1]> testToString [CONTEXT] if(dec == null && exp == null && isDigits(numeric.substring(1)) &&(numeric.charAt(0) == '-' || Character.isDigit(numeric.charAt(0)))) { try { return createLong(numeric); } catch(NumberFormatException nfe) { } <e...
return old;
[BUG] None [ERROR] None [CONTEXT] public V setValue(final V value) { if(canRemove == false) { throw new IllegalStateException(AbstractHashedMap.SETVALUE_INVALID); } final V old = getValue(); switch(nextIndex) { case 3: parent.value3 = value; break; case 2: parent.value2 = value; break; case 1: parent.value1 = value; br...
staticInit = staticHook = null;
[BUG] None [ERROR] None [CONTEXT] public void end_class() { if(staticHook != null && staticInit == null) { begin_static(); } if(staticInit != null) { staticHook.return_value(); staticHook.end_method(); rawStaticInit.visitInsn(Constants.RETURN); rawStaticInit.visitMaxs(0, 0); <extra_id_0> staticHookSig = null; } cv.vi...
return(String[])list.toArray(new String[list.size() ]);
[BUG] None [ERROR] None [CONTEXT] private static String[] toArray(List list) { <extra_id_0> }
Object value = invokeCustomDeserializer(json, pair); target =(T)value;
[BUG] [ERROR] expected:<[a, b, c]> but was:<null> testParseComments [CONTEXT] public final boolean visitUsingCustomHandler(ObjectTypePair objTypePair) { Pair<JsonDeserializer<?>, ObjectTypePair> pair = objTypePair.getMatchingHandler(deserializers); if(pair == null) { return false; } <extra_id_0> constructed = true; ...
declaration.append("float");declaration.append( '<');
[BUG] None [ERROR] None [CONTEXT] public void visitTypeArgument() { if(argumentStack % 2 == 0) { ++argumentStack; <extra_id_0> } else { declaration.append(","); } declaration.append('?'); }
int len = name.length() - 4;
[BUG] None [ERROR] None [CONTEXT] } else if(d == Double.TYPE) { car = 'D'; } else if(d == Float.TYPE) { car = 'F'; } else /* if(d == Long.TYPE) */{ car = 'J'; } buf.append(car); return; } else if(d.isArray()) { buf.append('['); d = d.getComponentType(); } else { buf.append('L'); String name = d.getName(); <extra_id_0>...
if(valueToAdd == 0){
[BUG] if(valueToAdd >= 0) { [ERROR] [CONTEXT] public int[] add(ReadablePartial partial, int fieldIndex, int[] values, int valueToAdd) { <extra_id_0> return values; } if(DateTimeUtils.isContiguous(partial)) { long instant = 0L; for(int i = 0, isize = partial.size(); i < isize; i++) { instant = partial.getFieldType(i...
if(argumentStack % 2 == 0){
[BUG] None [ERROR] None [CONTEXT] public SignatureVisitor visitTypeArgument(final char tag) { <extra_id_0> ++argumentStack; declaration.append('<'); } else { declaration.append(","); } if(tag == EXTENDS) { declaration.append("? extends"); } else if(tag == SUPER) { declaration.append("? super"); } startType(); return ...
if(other.containsKey(key2)== false){
[BUG] if(other.containsKey( key2) == true) { [ERROR] Map should still equal HashMap testMapPut [CONTEXT] if(size != other.size()) { return false; } if(size > 0) { Object otherValue = null; switch(size) {// drop through case 3: if(other.containsKey(key3) == false) { return false; } otherValue = other.get(key3); if(value...
if(mocks == null || mocks.length == 0){
[BUG] if(mocks == null || mocks.length == -5) { [ERROR] Expected exception: org.mockito.exceptions.base.MockitoException shouldRequireArgumentsWhenVerifyingZeroInteractions [CONTEXT] private void assertMocksNotEmpty(Object[] mocks) { <extra_id_0> reporter.mocksHaveToBePassedToVerifyNoMoreInteractions(); } }
map.register(Number.class, wrapDeserializer(NUMBER_TYPE_ADAPTER));
[BUG] map.register( Date.class, wrapDeserializer( DATE_TYPE_ADAPTER));map.register( Number.class, wrapDeserializer( NUMBER_TYPE_ADAPTER)); [ERROR] expected:<[a, b, c]> but was:<[]> testParseComments [CONTEXT] map.register(Boolean.class, wrapDeserializer(BOOLEAN_TYPE_ADAPTER)); map.register(boolean.class, wrapDeserializ...
volumeWidth = Math.max(Math.min(1, this.maxCandleWidth), xxWidth);
[BUG] [ERROR] null testDrawWithNullInfo [CONTEXT] IntervalXYDataset intervalXYData =(IntervalXYDataset) dataset; double startPos = domainAxis.valueToJava2D( intervalXYData.getStartXValue(series, item), dataArea, plot.getDomainAxisEdge()); double endPos = domainAxis.valueToJava2D( intervalXYData.getEndXValue(series, it...
if(concrete != null && !concrete.getPropertyType(prop).isNone()){
[BUG] if(cType != null && !concrete.getPropertyType( prop).isNone()) { [ERROR] INTERNAL COMPILER ERROR. testClosureInherits [CONTEXT] private ConcreteType maybeAddAutoboxes( ConcreteType cType, Node node, String prop) { JSType jsType = node.getJSType(); if(jsType == null) { return cType; } else if(jsType.isUnknownType(...
if(c == '*'){
[BUG] None [ERROR] None [CONTEXT] private static int checkTypeArgument(final String signature, int pos) { char c = getChar(signature, pos); <extra_id_0> return pos + 1; } else if(c == '+' || c == '-') { pos++; } return checkFieldTypeSignature(signature, pos); }
for(int i = 0; i < row; i++){
[BUG] for(paritynt i = 0; i < row; i++) { [ERROR] cannot find symbol [CONTEXT] permutation = new int[nRows]; for(int row = 0; row < nRows; row++) { permutation[row] = row; } parity = 1; for(int col = 0; col < nCols; col++) { double sum = 0; for(int row = 0; row < col; row++) { sum = lu[row][col]; <extra_id_0> sum -= ...
return setCopy(text, null);
[BUG] [ERROR] null test_other [CONTEXT] public LocalDate setCopy(String text) { <extra_id_0>
buffer.bufferProperty(prop, prop.deserialize(jp, ctxt));
[BUG] buffer.bufferProperty( creatorProp, prop.deserialize( jp, ctxt)); [ERROR] (was null)(through reference chain: com.fasterxml.jackson.databind.creators.DeferredFactoryAndPropsBean["ctor"]) testDeferredFactoryAndProps [CONTEXT] if(unknown != null) { // nope, just extra unknown stuff... bean = handleUnknownProperties...
_nullKeySerializer = src._nullKeySerializer;
[BUG] _nullKeySerializer = src; [ERROR] incompatible types [CONTEXT] protected SerializerProvider(SerializerProvider src, SerializationConfig config, SerializerFactory f) { if(config == null) { throw new NullPointerException(); } _serializerFactory = f; _config = config; _serializerCache = src._serializerCache; _unknow...
[BUG] None [ERROR] None [CONTEXT] if(obj == null) { e.aconst_null(); } else { Class type = obj.getClass(); if(type.isArray()) { push_array(e,(Object[])obj); } else if(obj instanceof String) { e.push((String)obj); } else if(obj instanceof Type) { load_class(e,(Type)obj); } else if(obj instanceof Class) { load_class(e, T...
else if(c == '\n' && open != -1 && close != -1 && colon != -1 && open < colon && colon < close){
[BUG] else if(c != '\n' && open != -1 && close != -1 && colon != -1 && open < colon && colon < close) { [ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] CharArrayWriter writer = new CharArrayWriter(); RuntimeException re = new RuntimeException(); re.printStackTrace(new PrintWriter(writer)); String s = ...
return"JSCompiler_inline_result_" + safeNameIdSupplier.get();
[BUG] return"SCompiler_inline_result_" + safeNameIdSupplier.get(); [ERROR] testInlineReferenceInExpression11 [CONTEXT] private String getUniqueResultName() { <extra_id_0> }
return withNext(newNext);
[BUG] [ERROR] Conflicting getter definitions for property"empty": java.util.AbstractCollection#isEmpty(0 params) vs java.util.List#isEmpty(0 params)(through reference chain: com.fasterxml.jackson.databind.SetterlessWithValue["value_list"]) testWithGetterAsSetter [CONTEXT] public Linked<T> trimByVisibility() { if(next ...
if(test == key ||(values[N + index] == hash && test.equals(key))){
[BUG] if(test == key ||(values[N + mask] == hash && test.equals( key))) { [ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] int mask = N - 1; int step = tableLookupStep(fraction, mask, power); int n = 0; for(;;) { if(check) { if(n >= occupiedCount) Kit.codeBug(); ++n; } index =(index + step) & mask; tes...
if(( t.inGlobalScope() && inlineGlobalFunctions)||(!t.inGlobalScope() && inlineLocalFunctions)) {
[BUG] if(( inlineLocalFunctions.inGlobalScope()&& inlineGlobalFunctions) ||(!t.inGlobalScope()&& t)){ [ERROR] boolean cannot be dereferenced [CONTEXT] public void visit(NodeTraversal t, Node n, Node parent) { <extra_id_0> findNamedFunctions(t, n, parent); } if(inlineAnonymousFunctionExpressions) { findAnonymousFuncti...
if(labelAnchor == null){
[BUG] if(categoryAnchor == null) { [ERROR] null testEquals [CONTEXT] float widthRatio) { if(categoryAnchor == null) { throw new IllegalArgumentException("Null 'categoryAnchor' argument."); } <extra_id_0> throw new IllegalArgumentException("Null 'labelAnchor' argument."); } if(rotationAnchor == null) { throw new Illeg...
[BUG] None [ERROR] None [CONTEXT] public String printMethodReturnType() { <extra_id_0>
accept(classVisitor, new Attribute[0], flags);
[BUG] None [ERROR] None [CONTEXT] public void accept(final ClassVisitor classVisitor, final int flags) { <extra_id_0> }
private static final Signature CSTRUCT_STRING = TypeUtils.parseSignature("String");
[BUG] None [ERROR] None [CONTEXT] <extra_id_0>
Preconditions.checkArgument(child.parent == null,"new child has existing parent");
[BUG] Preconditions.checkArgument( start == null,"new child has existing parent"); [ERROR] cannot find symbol start [CONTEXT] public Node(int nodeType, Node child) { <extra_id_0> Preconditions.checkArgument(child.next == null,"new child has existing sibling"); type = nodeType; parent = null; first = last = child; chi...
return mid;
[BUG] None [ERROR] None [CONTEXT] private int upper(int lo, int hi, int val) { int len = hi - lo; while(len > 0) { int half = len / 2; int mid = lo + half; if(compare(val, mid) < 0) { len = half; } else { lo = mid + 1; len = len - half -1; } } <extra_id_0> }
buf.append(");\n\n");
[BUG] None [ERROR] None [CONTEXT] public void visitInnerClass( final String name, final String outerName, final String innerName, final int access) { buf.setLength(0); buf.append("cw.visitInnerClass("); appendConstant(name); buf.append(","); appendConstant(outerName); buf.append(","); appendConstant(innerName); buf.app...