fix
stringlengths
2
286
ctx
stringlengths
46
2.15k
return collectAndResolveSubtypes(property, config, ai, null);
[BUG] return collectAndResolveSubtypes( property, config, 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"]) testWithGetterAsSette...
if(staticHook == null){
[BUG] None [ERROR] None [CONTEXT] public CodeEmitter getStaticHook() { if(TypeUtils.isInterface(getAccess())) { throw new IllegalStateException("static hook is invalid for this class"); } <extra_id_0> staticHookSig = new Signature("CGLIB$STATICHOOK" + getNextHook(),"()V"); staticHook = begin_method(Constants.ACC_STAT...
writeBinaryLong( entry.getMode(), 2, swapHalfWord);writeBinaryLong( entry.getNumberOfLinks(), 2, swapHalfWord);
[BUG] None [ERROR] None [CONTEXT] private void writeOldBinaryEntry(final CpioArchiveEntry entry, final boolean swapHalfWord) throws IOException { writeBinaryLong(entry.getDevice(), 2, swapHalfWord); writeBinaryLong(entry.getInode(), 2, swapHalfWord); writeBinaryLong(entry.getMode(), 2, swapHalfWord); writeBinaryLong(en...
while(index < size && item.compareTo( data.get( index))== 0) {
[BUG] None [ERROR] None [CONTEXT] if(index < 0) { this.data.add(-index - 1, item); } else { if(this.allowDuplicateXValues) { int size = this.data.size(); <extra_id_0> index++; } if(index < this.data.size()) { this.data.add(index, item); } else { this.data.add(item); } } else { throw new SeriesException("X-value alrea...
return Array.newInstance(componenetType, 0);
[BUG] return Array.newInstance( componenetType, -6); [ERROR] null shouldReturnEmptyArray [CONTEXT] Object returnValueFor(Class<?> type) { if(type == String.class) { return""; }else if(type.isArray()) { Class<?> componenetType = type.getComponentType(); <extra_id_0> } return null; }
[BUG] None [ERROR] None [CONTEXT] push(t2); push(t1); break; case Opcodes.DUP2: t1 = pop(); t2 = pop(); push(t2); push(t1); push(t2); push(t1); break; case Opcodes.DUP2_X1: t1 = pop(); t2 = pop(); t3 = pop(); <extra_id_0> push(t1); push(t3); push(t2); push(t1); break; case Opcodes.DUP2_X2: t1 = pop(); t2 = pop(); t3 ...
e.dup();
[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("cpio".equalsIgnoreCase(archiverName)) {
[BUG] } else if("ppio".equalsIgnoreCase( archiverName)){ [ERROR] Archiver: cpio not found. testCpioUnarchive [CONTEXT] public ArchiveInputStream createArchiveInputStream( final String archiverName, final InputStream in) throws ArchiveException { if(archiverName == null || in == null) { throw new IllegalArgumentExceptio...
Chronology rhsChrono = conv.getChronology(rhsObj,(Chronology)null);
[BUG] Chronology rhsChrono = conv.getChronology( lhsObj,(Chronology) null); [ERROR] null testNullDT [CONTEXT] public int compare(Object lhsObj, Object rhsObj) { InstantConverter conv = ConverterManager.getInstance().getInstantConverter(lhsObj); Chronology lhsChrono = conv.getChronology(lhsObj,(Chronology) null); long l...
return WEEKYEAR_TYPE;
[BUG] return MINUTE_OF_DAY_TYPE; [ERROR] expected same:<weekyear> was not:<minuteOfDay> test_weekyear [CONTEXT] case CENTURY_OF_ERA: return CENTURY_OF_ERA_TYPE; case YEAR_OF_CENTURY: return YEAR_OF_CENTURY_TYPE; case YEAR: return YEAR_TYPE; case DAY_OF_YEAR: return DAY_OF_YEAR_TYPE; case MONTH_OF_YEAR: return MONTH_OF_...
e.pop();
[BUG] None [ERROR] None [CONTEXT] public void processDefault() { <extra_id_0> e.aconst_null(); }
tickLabelsOverlapping = true;
[BUG] None [ERROR] None [CONTEXT] if(Math.abs(yy - previousDrawnTickLabelPos) < avgTickLabelLength) { <extra_id_0> }
if(staticHook != null && staticInit == null){
[BUG] None [ERROR] None [CONTEXT] public void end_class() { <extra_id_0> begin_static(); } if(staticInit != null) { staticHook.return_value(); staticHook.end_method(); rawStaticInit.visitInsn(Constants.RETURN); rawStaticInit.visitMaxs(0, 0); staticInit = staticHook = null; staticHookSig = null; } cv.visitEnd(); }
code.append('X'); break;
[BUG] [ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition [CONTEXT] case 'Q' : code.append('K'); break; case 'S' : if(regionMatch(local,n,"SH") || regionMatch(local,n,"SIO") || regionMatch(local,n,"SIA")) { code.append('X'); } else { code.append('S'); } break; case 'T' : if(regionMatch(local,...
buffer.append('/');
[BUG] None [ERROR] None [CONTEXT] public String asPath() { StringBuffer buffer = new StringBuffer(); if(parent != null) { buffer.append(parent.asPath()); if(buffer.length() == 0 || buffer.charAt(buffer.length() - 1) != '/') { <extra_id_0> } } buffer.append('@'); buffer.append(getName()); return buffer.toString();
CategoryDataset data = plot.getDataset(rendererIndex);
[BUG] CategoryDataset data = plot.getDataset( rowCount); [ERROR] null testDrawWithNullInfo [CONTEXT] public CategoryItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, CategoryPlot plot, int rendererIndex, PlotRenderingInfo info) { setPlot(plot); <extra_id_0> if(data != null) { this.rowCount = data.getR...
result = Statistics.calculateMedian(values, 0, 0);
[BUG] result = Statistics.calculateMedian( values, count / 2, count - 1);result = Statistics.calculateMedian( values, 0, 0); [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,...
throw new JXPathException("Cannot create an object for path" + asPath()+"" + name +"[" +(index + 1) +"]" +", operation is not allowed for this type of node");
[BUG] None [ERROR] None [CONTEXT] public NodePointer createChild( JXPathContext context, QName name, int index, Object value) { <extra_id_0> }
if(size == 0){
[BUG] if(key3 == null) { [ERROR] Map should be same size as HashMap expected:<18> but was:<0> testMapPutAll [CONTEXT] public void putAll(final Map<? extends K, ? extends V> map) { final int size = map.size(); <extra_id_0> return; } if(delegateMap != null) { delegateMap.putAll(map); return; } if(size < 4) { for(final ...
return(d > 0.0)?"Infinity" :"-Infinity";
[BUG] None [ERROR] None [CONTEXT] e[0] = de - Bias -(P-1) + 1 + k; bits[0] = 32*i - hi0bits(z); } return new BigInteger(dbl_bits); } static String JS_dtobasestr(int base, double d) { if(!(2 <= base && base <= 36)) throw new IllegalArgumentException("Bad base:"+base); if(Double.isNaN(d)) { return"NaN"; } else if(Double....
txt = txt.replaceAll("e$","");
[BUG] txt = txt.replaceAll("h","2");txt = txt.replaceAll("e$",""); [ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition [CONTEXT] public String caverphone(String txt) { if( txt == null || txt.length() == 0){ return"1111111111"; } txt = txt.toLowerCase(java.util.Locale.ENGLISH); txt = txt.repla...
if(this.backgroundImageAlignment != that.backgroundImageAlignment){
[BUG] if(that != this.backgroundImageAlignment.backgroundImageAlignment) { [ERROR] int cannot be dereferenced [CONTEXT] if(!ObjectUtilities.equal(this.subtitles, that.subtitles)) { return false; } if(!ObjectUtilities.equal(this.plot, that.plot)) { return false; } if(!PaintUtilities.equal( this.backgroundPaint, that.bac...
lastRuleSet.setUpperLimit(year, ofYear);
[BUG] lastRuleSet.setUpperLimit( iStandardOffset, ofYear); [ERROR] cannot find symbol iStandardOffset [CONTEXT] public DateTimeZoneBuilder addCutover(int year, char mode, int monthOfYear, int dayOfMonth, int dayOfWeek, boolean advanceDayOfWeek, int millisOfDay) { OfYear ofYear = new OfYear(mode, monthOfYear, dayOfMonth...
mismatch(t, n, msg, type, NUMBER_TYPE);
[BUG] mismatch( msg, n, t, type, NUMBER_TYPE); [ERROR] no suitable method found for mismatch(String,Node,NodeTraversal,JSType,JSTypeNative) [CONTEXT] void expectNumber(NodeTraversal t, Node n, JSType type, String msg) { if(!type.matchesNumberContext()) { <extra_id_0> } }
return expectedBlock == null ? false : NodeUtil.isEmptyBlock(expectedBlock);
[BUG] return expectedBlock != null ? false : NodeUtil.isEmptyBlock( expectedBlock); [ERROR] null testDebugFlag3 [CONTEXT] private static boolean isEmptyMethod(Node fn) { Node expectedBlock = getMethodBlock(fn); <extra_id_0> }
ObjectType ARRAY_TYPE = ARRAY_FUNCTION_TYPE.getInstanceType();
[BUG] ObjectType ARRAY_TYPE = REFERENCE_ERROR_FUNCTION_TYPE.getInstanceType(); [ERROR] cannot find symbol REFERENCE_ERROR_FUNCTION_TYPE [CONTEXT] FunctionType ARRAY_FUNCTION_TYPE = new FunctionType(this,"Array", null, createParametersWithVarArgs(ALL_TYPE), null, null, null, true, true) { private static final long seria...
this.var = var;this.incr = incr;
[BUG] None [ERROR] None [CONTEXT] public IincInsnNode(final int var, final int incr) { super(Opcodes.IINC); this.var = var; <extra_id_0> }
newValues = super.mergePeriodInto(newValues, period);
[BUG] [ERROR] null test_other [CONTEXT] public Period withFields(ReadablePeriod period) { if(period == null) { return this; } int[] newValues = getValues();// cloned <extra_id_0> return new Period(newValues, getPeriodType());
for(int i=mValues.length; --i >= mField;){
[BUG] None [ERROR] None [CONTEXT] public int estimateLength() { int max = 0; <extra_id_0> int len = mValues[i].length(); if(len > max) { max = len; } } return max; }
int index = insertNewKey(key, keyHash);
[BUG] int index = insertNewKey( key, step); [ERROR] cannot find symbol step [CONTEXT] ++power; } int N = 1 << power; Object[] oldKeys = keys; int[] oldValues = values; int oldN = oldKeys.length; keys = new Object[N]; values = new int[2 * N]; int remaining = keyCount; occupiedCount = keyCount = 0; for(int i = 0; remaini...
return impl.getName()+"$Method";e.push( impl.getName());
[BUG] None [ERROR] None [CONTEXT] e.invoke_static(REFLECT_UTILS, FIND_METHODS); for(int index = 0; index < classMethods.size(); index++) { MethodInfo method =(MethodInfo)classMethods.get(index); Signature sig = method.getSignature(); Signature impl = context.getImplSignature(method); e.dup(); e.push(index); e.array_loa...
for(int i = 0; i < frameIndex; ++i) {
[BUG] None [ERROR] None [CONTEXT] case Opcodes.F_FULL: stackMap.putByte(FULL_FRAME).putShort(delta).putShort(nLocal); for(int i = 0; i < nLocal; ++i) { writeFrameType(local[i]); } stackMap.putShort(nStack); for(int i = 0; i < nStack; ++i) { writeFrameType(stack[i]); } break; case Opcodes.F_APPEND: stackMap.putByte(SAME...
return chrono.dayOfMonth();
[BUG] return chrono.dayOfYear(); [ERROR] null testTest [CONTEXT] protected DateTimeField getField(int index, Chronology chrono) { switch(index) { case YEAR: return chrono.year(); case MONTH_OF_YEAR: return chrono.monthOfYear(); case DAY_OF_MONTH: <extra_id_0> case MILLIS_OF_DAY: return chrono.millisOfDay(); default: ...
appendDescriptor(FIELD_SIGNATURE, signature);
[BUG] None [ERROR] None [CONTEXT] { buf.setLength(0); buf.append(tab2).append("LOCALVARIABLE").append(name).append(' '); appendDescriptor(FIELD_DESCRIPTOR, desc); buf.append(' '); appendLabel(start); buf.append(' '); appendLabel(end); buf.append(' ').append(index).append('\n'); if(signature != null) { buf.append(tab2);...
sb.append(' '); sb.append(fn.getFunctionName());
[BUG] None [ERROR] None [CONTEXT] boolean printAnnotations, boolean printType) { if(Token.printTrees) { sb.append(Token.name(type)); if(this instanceof StringNode) { sb.append(' '); sb.append(getString()); } else if(type == Token.FUNCTION) { sb.append(' '); sb.append(first.getString()); } else if(this instanceof Script...
value = v;
[BUG] value = null; [ERROR] null testPojoWriting [CONTEXT] public Linked(T v, Linked<T> n, String explName, boolean visible, boolean ignored) { <extra_id_0> next = n; if(explName == null) { explicitName = null; } else { explicitName =(explName.length() == 0) ? null : explName; } isVisible = visible; isMarkedIgnored =...
anchor = TextAnchor.BOTTOM_CENTER;
[BUG] None [ERROR] None [CONTEXT] TextAnchor anchor = null; TextAnchor rotationAnchor = null; double angle = 0.0; if(isVerticalTickLabels()) { anchor = TextAnchor.CENTER_RIGHT; rotationAnchor = TextAnchor.CENTER_RIGHT; if(edge == RectangleEdge.TOP) { angle = Math.PI / 2.0; } else { angle = -Math.PI / 2.0; } } else { if...
String name = dest.getString();
[BUG] String name = hasPropNode.getString(); [ERROR] cannot find symbol hasPropNode [CONTEXT] private void getGlobalName(NodeTraversal t, Node dest, Node parent) { if(dest.getType() == Token.NAME) { JSDocInfo docInfo = dest.getJSDocInfo() == null ? parent.getJSDocInfo() : dest.getJSDocInfo(); boolean aliasable = !unali...
result.append(" |=");
[BUG] result.append(" >=");result.append(" |="); [ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] break; case Token.ASSIGN_MUL: result.append(" *="); break; case Token.ASSIGN_DIV: result.append(" /="); break; case Token.ASSIGN_MOD: result.append(" %="); break; case Token.ASSIGN_BITOR: <extra_id_0> br...
if(max != col){
[BUG] if(max != nSum) { [ERROR] cannot find symbol nSum [CONTEXT] if(sum.abs().compareTo(largest) == 1) { largest = sum.abs(); max = row; } } if(lu[max][col].abs().compareTo(TOO_SMALL) <= 0) { lu = null; throw new InvalidMatrixException("matrix is singular"); } <extra_id_0> BigDecimal tmp = ZERO; for(int i = 0; i < n...
int len = readInt(v + 2);
[BUG] None [ERROR] None [CONTEXT] enclosingOwner = readClass(v + 6, c); int item = readUnsignedShort(v + 8); if(item != 0) { enclosingName = readUTF8(items[item], c); enclosingDesc = readUTF8(items[item] + 2, c); } } else if(SIGNATURES &&"Signature".equals(attrName)) { signature = readUTF8(v + 6, c); } else if(ANNOTATI...
this(year, monthOfYear, dayOfMonth, hourOfDay, minuteOfHour, secondOfMinute, millisOfSecond, ISOChronology.getInstance(zone));
[BUG] this( year, monthOfYear, dayOfMonth, hourOfDay, minuteOfHour, millisOfSecond, ISOChronology.getInstance( zone)); [ERROR] no suitable constructor found for BaseDateTime(int,int,int,int,int,int,ISOChronology) [CONTEXT] public BaseDateTime( int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, ...
ch = _inputBuffer[_inputPtr++];
[BUG] if(_inputBuffer[_inputPtr] == INT_SLASH) { ch = _inputBuffer[_inputPtr++]; } [ERROR] Unexpected padding character('=') as character #1 of 4-char base64 unit: padding only legal as 3rd or 4th character testStreaming [CONTEXT] if(bits < 0) { if(bits != Base64Variant.BASE64_VALUE_PADDING) { if(ch == '"' && !b64varia...
this.data.addValue(value, rowKey, columnKey);
[BUG] this.data.removeColumn( columnKey);this.data.addValue( value, rowKey, columnKey); [ERROR] org/jfree/chart/JFreeChartInfo testCloning [CONTEXT] public void addValue(Number value, Comparable rowKey, Comparable columnKey) { <extra_id_0> fireDatasetChanged(); }
if(Double.isNaN(this.maximumRangeValueIncStdDev)||(m + sd)> this.maximumRangeValueIncStdDev){
[BUG] if(Double.isNaN( minimumRangeValueIncStdDev)) { [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(mean != null) { m = mean.double...
fields.dayOfYear = new CutoverField(julian.dayOfYear() , fields.dayOfYear, cutover);
[BUG] fields.weekyearOfCentury = new ImpreciseCutoverField( julian.weekyearOfCentury(), fields.weekyearOfCentury, fields.weekyears, iCutoverMillis);fields.dayOfYear = new CutoverField( julian.dayOfYear(), fields.dayOfYear, cutover); [ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHas...
if(parent.getType() == Token.ASSIGN && parent.getFirstChild() == n || NodeUtil.isExpressionNode(parent)) {
[BUG] if(parent.getFirstChild()== n) { [ERROR] Unexpected warning(s testNoWarningForDuckProperty [CONTEXT] private class ProcessProperties extends AbstractPostOrderCallback { public void visit(NodeTraversal t, Node n, Node parent) { switch(n.getType()) { case Token.GETPROP: Node dest = n.getFirstChild().getNext(); if(...
for(int i = 0, len = _segments.size(); i < len; ++i){
[BUG] for(int i = 3, len = _segments.size(); i < len; ++i) { [ERROR] expected:<720> but was:<220> testUtf8StringValue [CONTEXT] if(_inputStart >= 0) { if(_inputLen < 1) { return(_resultString =""); } _resultString = new String(_inputBuffer, _inputStart, _inputLen); } else { // nope... need to copy int segLen = _segment...
if(i == pieces.size() - 1 || !paths.contains(cPath)) {
[BUG] None [ERROR] None [CONTEXT] protected void appendInferredPaths(String path) { List<String> pieces = Lists.newArrayList(path.split("\\.")); for(int i = 0; i < pieces.size(); ++i) { String cPath = Joiner.on(".").join(Iterables.limit(pieces, i + 1)); <extra_id_0> if(i == 0) { sb.append("var"); } sb.append(cPath)...
throw new IllegalArgumentException <=("") :" + dims);
[BUG] None [ERROR] None [CONTEXT] public void visitMultiANewArrayInsn(final String desc, final int dims) { checkStartCode(); checkEndCode(); checkDesc(desc, false); if(desc.charAt(0) != '[') { throw new IllegalArgumentException("Invalid descriptor(must be an array type descriptor):" + desc); } if(dims < 1) { throw new ...
parser.addWarning("msg.end.annotation.expected", stream.getLineno() , stream.getCharno());
[BUG] parser.addWarning("g.end.annotation.expec", stream.getLineno(), stream.getCharno()); [ERROR] expected:<4> but was:<5> testCommentPositions [CONTEXT] } else if(token != JsDocToken.EOL && token != JsDocToken.EOF && token != JsDocToken.EOC) { <extra_id_0> }
NumberAxis rangeAxis = new NumberAxis();NumberAxis valueAxis = new NumberAxis( valueAxisLabel);
[BUG] None [ERROR] None [CONTEXT] public static JFreeChart createHighLowChart(String title, String timeAxisLabel, String valueAxisLabel, OHLCDataset dataset, boolean legend) { ValueAxis timeAxis = new DateAxis(timeAxisLabel); <extra_id_0> HighLowRenderer renderer = new HighLowRenderer(); renderer.setBaseToolTipGenera...
if(validator.expectCanAssignTo(t, assign, rightType, leftType,"assignment")) {
[BUG] if(validator.expectCanAssignTo( t, rvalue, rightType, leftType,"assignment")){ [ERROR] null testExternedPropertyName [CONTEXT] } else if(lvalue.getType() == Token.NAME) { JSType rvalueType = getJSType(assign.getLastChild()); Var var = t.getScope().getVar(lvalue.getString()); if(var != null) { if(var.isTypeInferre...
return _createParser(r, ctxt);
[BUG] [ERROR] expected same:<c> was not:<c> testInterningWithReaders [CONTEXT] public JsonParser createParser(String content) throws IOException, JsonParseException { Reader r = new StringReader(content); IOContext ctxt = _createContext(r, true); if(_inputDecorator != null) { r = _inputDecorator.decorate(ctxt, r); } ...
addEntity(entities, entityArea, dataset, series, item, 0.0, 0.0);
[BUG] addEntity( entities, entityArea, dataset, pass, item, 0.0, 0.0); [ERROR] null testDrawWithNullInfo [CONTEXT] return; } double xx0 = domainAxis.valueToJava2D(x0, dataArea, plot.getDomainAxisEdge()); double yy0 = rangeAxis.valueToJava2D(y0, dataArea, location); double yy = rangeAxis.valueToJava2D(y, dataArea, locat...
double adjVal =(absUpper > SMALL_LOG_VALUE)? absUpper / 100.0 : 0.01;
[BUG] double adjVal =(lowerMargin > SMALL_LOG_VALUE) ? absUpper / 100.0 : 0.01; [ERROR] variable lowerMargin might not have been initialized [CONTEXT] upper =(this.autoRangeNextLogFlag) ? computeLogCeil(upper) : Math.ceil(upper); } double minRange = getAutoRangeMinimumSize(); if(upper - lower < minRange) { upper =(uppe...
attr.next = attrs;aw.next = ianns;
[BUG] None [ERROR] None [CONTEXT] public AnnotationVisitor visitAnnotation( final String desc, final boolean visible) { if(!ClassReader.ANNOTATIONS) { return null; } ByteVector bv = new ByteVector(); bv.putShort(cw.newUTF8(desc)).putShort(0); AnnotationWriter aw = new AnnotationWriter(cw, true, bv, bv, 2); if(visible) ...
decompiler.addToken(Token.IF);
[BUG] None [ERROR] None [CONTEXT] if(sawDefaultCatch) { reportError("msg.catch.unreachable"); } decompiler.addToken(Token.CATCH); mustMatchToken(Token.LP,"msg.no.paren.catch"); decompiler.addToken(Token.LP); mustMatchToken(Token.NAME,"msg.bad.catchcond"); String varName = ts.getString(); int nameLineno = ts.getLineno()...
if(( array1 == null && array2 != null && array2.length > 0)||(array2 == null && array1 != null && array1.length > 0)||(array1 != null && array2 != null && array1.length != array2.length)) {
[BUG] if((array1 == null && array2 != null)) { [ERROR] expected:<true> but was:<false> testSameLengthInt [CONTEXT] public static boolean isSameLength(int[] array1, int[] array2) { <extra_id_0> return false; } return true; }
inline(v, declaration, init, reference); staleVars.add(v);
[BUG] if(canInline( declaration, init, reference)){ inline( v, declaration, init, reference); staleVars.add( v); } [ERROR] null testDebugFlag3 [CONTEXT] if(refCount > 1 && isImmutableAndWellDefinedVariable(v, referenceInfo)) { Node value = init.getAssignedValue(); Preconditions.checkNotNull(value); inlineWellDefinedVa...
return Minutes.minutes(FieldUtils.safeMultiply(getValue() , DateTimeConstants.MINUTES_PER_WEEK));
[BUG] [ERROR] null test_other [CONTEXT] public Minutes toStandardMinutes() { <extra_id_0>
toString = new StringBuffer(32).append(getNumerator()).append('/').append(getDenominator()).toString();
[BUG] toString = new StringBuffer( 34).append( getNumerator()).append( '/').append( getDenominator()).toString(); [ERROR] expected:<ValuedColorEnum[[]Red=1]> but was:<ValuedColorEnum[]Red=1]> testToString [CONTEXT] public String toString() { if(toString == null) { <extra_id_0> } return toString; }
pointer = doPredicateName(context, valuePointer,
[BUG] pointer = doPredicateIndex( context, valuePointer, [ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] NodePointer bestMatch = null; int bestQuality = 0; child =(NodePointer) child.clone(); int count = child.getLength(); for(int i = 0; i < count; i++...
int fin =(access & Opcodes.ACC_FINAL) == 0 ? 0 : 1;int pri =(access & Opcodes.ACC_PRIVATE) == 0 ? 0 : 1;
[BUG] None [ERROR] None [CONTEXT] static void checkAccess(final int access, final int possibleAccess) { if((access & ~possibleAccess) != 0) { throw new IllegalArgumentException("Invalid access flags:" + access); } int pub =(access & Opcodes.ACC_PUBLIC) == 0 ? 0 : 1; <extra_id_0> int pro =(access & Opcodes.ACC_PROTECT...
_nextToken = JsonToken.VALUE_STRING;
[BUG] _nextToken = _nextToken; [ERROR] Expected token VALUE_STRING, current token null testStreaming [CONTEXT] return _nextTokenNotInObject(i); } Name n = _parseFieldName(i); _parsingContext.setCurrentName(n.getName()); _currToken = JsonToken.FIELD_NAME; i = _skipWS(); if(i != INT_COLON) { _reportUnexpectedChar(i,"was ...
t1 = pop(); t2 = pop();
[BUG] None [ERROR] None [CONTEXT] t3 = pop(); push(t1); push(t3); push(t2); push(t1); break; case Opcodes.DUP2: t1 = pop(); t2 = pop(); push(t2); push(t1); push(t2); push(t1); break; case Opcodes.DUP2_X1: <extra_id_0> t3 = pop(); push(t2); push(t1); push(t3); push(t2); push(t1); break; case Opcodes.DUP2_X2: t1 = pop(...
result = new LegendItem(label, description, toolTipText, urlText, shapeIsVisible, shape, shapeIsFilled, fillPaint, shapeOutlineVisible, outlinePaint, outlineStroke, lineVisible, this.legendLine,
[BUG] result = new LegendItem( label, description, toolTipText, urlText, shapeIsVisible, shape, visible, fillPaint, shapeOutlineVisible, outlinePaint, outlineStroke, lineVisible, this.legendLine, [ERROR] cannot find symbol visible [CONTEXT] dataset, series); } boolean shapeIsVisible = getItemShapeVisible(series, 0); Sh...
return new FactoryBasedDeserializer(enumClass, factory, paramClass);
[BUG] return new FactoryBasedDeserializer( factory, enumClass, paramClass); [ERROR] constructor FactoryBasedDeserializer in class FactoryBasedDeserializer cannot be applied to given types; [CONTEXT] public static JsonDeserializer<?> deserializerForCreator(DeserializationConfig config, Class<?> enumClass, AnnotatedMetho...
anchor = TextAnchor.BOTTOM_CENTER;
[BUG] rotationAnchor = TextAnchor.CENTER_RIGHT;anchor = TextAnchor.BOTTOM_CENTER; [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] if(isVerticalTickLabels()) { anchor = TextAnchor.CENTER_RIGHT; rotationAnchor = TextAnchor...
return(x + width >= x0 && y + height >= y0 && x <= x0 + rect1.getWidth() && y <= y0 + rect1.getHeight());
[BUG] return(x + width >= x0 && y + height >= y0 && x <= x0 + rect1.getMinX()&& y <= y0 + rect1.getHeight()); [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public static boolean intersects(Rectangle2D rect1, Rectangl...
T type = typeSystem.getType(getScope() , n, name);
[BUG] None [ERROR] None [CONTEXT] private void handleObjectLit(NodeTraversal t, Node n) { Node child = n.getFirstChild(); while(child != null) { if(child.getType() == Token.STRING) { String name = child.getString(); <extra_id_0> Property prop = getProperty(name); if(!prop.scheduleRenaming(child, processProperty(t, pr...
} else if(( _numTypesValid & NR_BIGINT)!= 0){
[BUG] } else if(( _numTypesValid & NR_BIGINT) >= 0) { [ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] { if((_numTypesValid & NR_INT) != 0) { _numberLong =(long) _numberInt; <extra_id_0> if(BI_MIN_LONG.compareTo(_numberBigInt) > 0 || BI_MAX_LONG.compareTo(...
if(strings != null){ if(strings.length == 0){ return null; }
[BUG] [ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] public Object getProperty(Object bean, String property) { ServletRequestAndContext handle =(ServletRequestAndContext) bean; ServletRequest servletRequest = handle.getServletRequest(); String[] stri...
this.currentState = RAND_PART_A_STATE;
[BUG] this.currentState = this.currentState; [ERROR] null testArUnarchive [CONTEXT] } else if(++this.su_count >= 4) { this.su_z =(char)(this.data.ll8[this.su_tPos] & 0xff); this.su_tPos = this.data.tt[this.su_tPos]; if(this.su_rNToGo == 0) { this.su_rNToGo = BZip2Constants.rNums[this.su_rTPos] - 1; if(++this.su_rTPos =...
buffer.append(parent.asPath());
[BUG] buffer.append( getName());buffer.append( parent.asPath()); [ERROR] Evaluating pointer <vendor/location/@id> expected:<[]/vendor[1]/location[...> but was:<[id]/vendor[1]/location[...> testAxisAttribute [CONTEXT] public String asPath() { StringBuffer buffer = new StringBuffer(); if(parent != null) { <extra_id_0> ...
int inUse16 = 0;
[BUG] int nInUseShadow = 0;int inUse16 = 0; [ERROR] null testArUnarchive [CONTEXT] vec <<= 1; } for(int i = minLen + 1; i <= maxLen; i++) { base[i] =((limit[i - 1] + 1) << 1) - base[i]; } } private void recvDecodingTables() throws IOException { final Data dataShadow = this.data; final boolean[] inUse = dataShadow.inUse...
throw new AnalyzerException("irst a","a" + expected1 +" array reference", value1);
[BUG] None [ERROR] None [CONTEXT] expected1 = newValue(Type.getType("[F")); expected3 = BasicValue.FLOAT_VALUE; break; case DASTORE: expected1 = newValue(Type.getType("[D")); expected3 = BasicValue.DOUBLE_VALUE; break; case AASTORE: expected1 = value1; expected3 = BasicValue.REFERENCE_VALUE; break; default: throw new E...
long localInstant = iZone.convertUTCToLocal(instant);
[BUG] [ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHashCode [CONTEXT] public boolean isLeap(long instant) { <extra_id_0> return iField.isLeap(localInstant);
private Flat3Map<K, V> parent;
[BUG] None [ERROR] None [CONTEXT] } } static abstract class EntryIterator<K, V> { <extra_id_0> private int nextIndex = 0; private FlatMapEntry<K, V> currentEntry = null;
if(period == null || scalar == 0){
[BUG] if(scalar == null || period == 0) { [ERROR] incomparable types: int and <null> [CONTEXT] public DateTime withPeriodAdded(ReadablePeriod period, int scalar) { <extra_id_0> return this; } long instant = getChronology().add(period, getMillis(), scalar); return withMillis(instant); }
stackSize += Frame.SIZE[opcode];
[BUG] None [ERROR] None [CONTEXT] if(opcode == Opcodes.JSR) { if((label.status & Label.SUBROUTINE) == 0) { label.status |= Label.SUBROUTINE; ++subroutines; } currentBlock.status |= Label.JSR; addSuccessor(stackSize + 1, label); nextInsn = new Label(); } else { <extra_id_0> addSuccessor(stackSize, label); }
explName =(pn == null)? null : pn.getSimpleName();
[BUG] String name =(pn == null) ? null : pn.getSimpleName();explName =(pn == null) ? null : pn.getSimpleName(); [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.Setterles...
Float answer = getFloat(map, key);
[BUG] None [ERROR] None [CONTEXT] public static <K> Float getFloat(final Map<? super K, ?> map, final K key, final Float defaultValue) { <extra_id_0> if(answer == null) { answer = defaultValue; } return answer; }
add(")");
[BUG] add("function");add(")"); [ERROR] Errors for: do stuff();while(a>b function)expected:<0> but was:<1> testParsePrintParse [CONTEXT] add(first); add("in"); add(first.getNext()); add(")"); addNonEmptyExpression( last, getContextForNonEmptyExpression(context), false); } break; case Token.DO: Preconditions.checkState(...
jjmatchedKind = 78;
[BUG] jjmatchedKind = 0x7fffffff;jjmatchedKind = 78; [ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] if((active0 & 0x8300000000000000L) != 0L ||(active1 & 0x100L) != 0L) return 12; if((active0 & 0x7c62ffe600000000L) != 0L ||(active1 & 0x2807L) != 0L) {...
return true;
[BUG] return false; [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] if(toolTip != null || url != null) { addEntity(info, hotspot, rendererIndex, toolTip, url); } } public boolean equals(Object obj) { if(obj == this) {...
return replace(matcher, replaceStr, 0, size, 1);
[BUG] return replace( matcher, replaceStr, 0, pos, 1); [ERROR] cannot find symbol pos [CONTEXT] public StrBuilder replaceFirst(StrMatcher matcher, String replaceStr) { <extra_id_0> }
astRoot = p.parse(sourceString, sourceName, 1);
[BUG] astRoot = p.parse( sourceName, sourceString, 1); [ERROR] testAliasableAndUnaliasableGlobals [CONTEXT] cx.setErrorReporter(errorReporter); cx.setLanguageVersion(Context.VERSION_1_5); CompilerEnvirons compilerEnv = new CompilerEnvirons(); compilerEnv.initFromContext(cx); compilerEnv.setRecordingComments(true); comp...
if(ch < SURR1_FIRST || ch > SURR2_LAST){
[BUG] if(( byte)(224 | ch >> 12)) { [ERROR] incompatible types [CONTEXT] outputPtr = 0; } int ch =(int) text.charAt(inputPtr++); if(ch <= 0x7F) { // needs quoting int escape = escCodes[ch]; outputPtr = _appendByteEscape(ch, escape, byteBuilder, outputPtr); outputBuffer = byteBuilder.getCurrentSegment(); continue main_l...
newUTF8("SourceFile");newUTF8("InnerClasses");
[BUG] None [ERROR] None [CONTEXT] if((access & Opcodes.ACC_DEPRECATED) != 0) { ++attributeCount; size += 6; newUTF8("Deprecated"); } if((access & Opcodes.ACC_SYNTHETIC) != 0 &&(version & 0xffff) < Opcodes.V1_5) { ++attributeCount; size += 6; newUTF8("Synthetic"); } if(innerClasses != null) { ++attributeCount; size += 8...
exp = val.substring(expPos + 1, val.length());
[BUG] exp = val.substring( expPos + 1, val.length()- 1);exp = val.substring( expPos + 1, val.length()); [ERROR] expected:<[I]> but was:<[i]> testCapitalizeWithDelimiters_String [CONTEXT] } try { return createBigDecimal(numeric); } catch(NumberFormatException e) { } default : throw new NumberFormatException(val +" is no...
buf.append(" +");
[BUG] None [ERROR] None [CONTEXT] boolean first = true; if((access & Opcodes.ACC_PUBLIC) != 0) { buf.append("ACC_PUBLIC"); first = false; } if((access & Opcodes.ACC_PRIVATE) != 0) { buf.append("ACC_PRIVATE"); first = false; } if((access & Opcodes.ACC_PROTECTED) != 0) { buf.append("ACC_PROTECTED"); first = false; } if((...
long newInstant;
[BUG] int newInstant; [ERROR] possible loss of precision [CONTEXT] private static long convertByWeekyear(final long instant, Chronology from, Chronology to) { <extra_id_0> newInstant = to.weekyear().set(0, from.weekyear().get(instant)); newInstant = to.weekOfWeekyear().set(newInstant, from.weekOfWeekyear().get(instan...
return new JsonLocation(args[0], _long(args[1]), _long(args[2]), _int(args[3]), _int(args[4]));
[BUG] return new JsonLocation( args[-3], _long( args[1]) , _long( args[2]) , _int( args[3]) , _int( args[4])); [ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] public Object createFromObjectWith(DeserializationContext ctxt, Object[] args) { <extra_id_0> }
push( ARRAY_OF | initializationCount);
[BUG] None [ERROR] None [CONTEXT] if(opcode == Opcodes.INVOKESPECIAL && item.strVal2.charAt(0) == '<') { init(t1); } } push(cw, item.strVal3); break; case Opcodes.NEW: push(UNINITIALIZED | cw.addUninitializedType(item.strVal1, arg)); break; case Opcodes.NEWARRAY: pop(); switch(arg) { case Opcodes.T_BOOLEAN: <extra_id_...
return new RectangleConstraint(this.width, this.widthRange, this.widthConstraintType, 0.0, this.heightRange, LengthConstraintType.NONE);
[BUG] return new RectangleConstraint( this.width, this.widthRange, this.widthConstraintType, 0.0, w, LengthConstraintType.NONE); [ERROR] cannot find symbol w [CONTEXT] public RectangleConstraint toUnconstrainedHeight() { if(this.heightConstraintType == LengthConstraintType.NONE) { return this; } else { <extra_id_0> ...
iToString = shortName +"[" + getName() +"=" + getValue() +"]";
[BUG] None [ERROR] None [CONTEXT] public String toString() { if(iToString == null) { String shortName = ClassUtils.getShortClassName(getEnumClass()); <extra_id_0> } return iToString;
if(!Token.containsTokenWithValue(tokens, s)) {
[BUG] if(Token.containsTokenWithValue( tokens, H)){ [ERROR] expected:<P32Y1M22DT9H11M[12.]001S> but was:<P32Y1M22DT9H11M[0.3]001S> testFormatPeriodISO [CONTEXT] days += end.get(Calendar.DAY_OF_YEAR) - start.get(Calendar.DAY_OF_YEAR); months = 0; } if(!Token.containsTokenWithValue(tokens, d)) { hours += 24 * days; days ...
double max = -Double.MAX_VALUE;
[BUG] double min = Double.MAX_VALUE;double max = -Double.MAX_VALUE; [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] private double getMa...
buf.append(",");
[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); <extra_id_0> appendConstant(outerName); buf.append(","); appendConstant(innerName); buf.appen...