fix
stringlengths
2
833
ctx
stringlengths
80
394k
buf.setLength( i);
[BUG] buf.append(","); [CONTEXT] public FieldVisitor visitField( final int access, final String name, final String desc, final String signature, final Object value) { buf.setLength(0); buf.append("{\n"); buf.append("fv = cw.visitField("); appendAccess(access | ACCESS_FIELD); <extra_id_0> appendConstant(name); buf....
int g =(int)(( value - this.lowerBound)/(this.upperBound - this.lowerBound)* 255.0);
[BUG] int g =(int)(( value - this.lowerBound) +(this.upperBound - this.lowerBound) * 255.0);[ERROR] null testDrawWithNullInfo [CONTEXT] public Paint getPaint(double value) { double v = Math.max(value, this.lowerBound); v = Math.min(v, this.upperBound); <extra_id_0> return new Color(g, g, g); } [CLASS] GrayPaintScale...
lower =(upper + lower - adjVal)/ 2;
[BUG] lower =(upper + lower - res) / 2;[ERROR] cannot find symbol res [CONTEXT] : Math.ceil(upper); } double minRange = getAutoRangeMinimumSize(); if(upper - lower < minRange) { upper =(upper + lower + minRange) / 2; lower =(upper + lower - minRange) / 2; if(upper - lower < minRange) { double absUpper = Math.abs(uppe...
if(bodtx == null){
[BUG] if(ww == null) {[ERROR] null testTest [CONTEXT] public static DateTimeFormatter basicOrdinalDateTimeNoMillis() { <extra_id_0> bodtx = new DateTimeFormatterBuilder().append(basicOrdinalDate()).append(basicTTimeNoMillis()).toFormatter(); } return bodtx; } [CLASS] ISODateTimeFormat [METHOD] basicOrdinalDateTimeNo...
&& strVal3.equals( strVal2);
[BUG] && i.strVal2.equals(strVal2); [CONTEXT] boolean isEqualTo(final Item i) { if(i.type == type) { switch(type) { case ClassWriter.INT: case ClassWriter.FLOAT: return i.intVal == intVal; case ClassWriter.TYPE_MERGED: case ClassWriter.LONG: case ClassWriter.DOUBLE: return i.longVal == longVal; case ClassWriter.UTF8...
this.categoryParameterName = categoryParameterName;this.seriesParameterName = seriesParameterName;
[BUG] this.seriesParameterName = seriesParameterName; [CONTEXT] public StandardCategoryURLGenerator(String prefix, String seriesParameterName, String categoryParameterName) { if(prefix == null) { throw new IllegalArgumentException("Null 'prefix' argument."); } if(seriesParameterName == null) { throw new IllegalArgum...
return builder.substring(0, builder.length() - 1);
[BUG] return builder.substring( 0, builder.length() - 3 - 1);[ERROR] expected:< [7| ]> but was:< []> testTwoEmptyLines [CONTEXT] int numberLength = Integer.toString(region.getEndingLineNumber()).length(); StringBuilder builder = new StringBuilder(code.length() * 2); int start = 0; int end = code.indexOf('\n', start); ...
long e = getDataItem(this.minMiddleIndex).getPeriod().getEnd().getTime();
[BUG] long maxStart = getDataItem( this.maxStartIndex).getPeriod().getStart().getTime();long e = getDataItem( this.minMiddleIndex).getPeriod().getEnd().getTime();[ERROR] expected:<3> but was:<2> testDateConstructor1 [CONTEXT].getTime(); long e = getDataItem(this.minMiddleIndex).getPeriod().getEnd().getTime(); long min...
type = new PeriodType("Days", new DurationFieldType[] { DurationFieldType.days() }, new int[] { -1, -1, -1, 0, -1, -1, -1, -1, }
[BUG] type = new PeriodType("Days", new DurationFieldType[] { DurationFieldType.days()}, new int[] { -4, -4, -4, 0, -4, -4, -4, -4, }[ERROR] null test_other [CONTEXT] public static PeriodType days() { PeriodType type = cDays; if(type == null) { <extra_id_0> ); cDays = type; } return type; } [CLASS] PeriodType [METHO...
imageEncoder.encode(image, outputStream);
[BUG] imageEncoder.encode( outputStream);[ERROR] no suitable method found for encode(OutputStream) [CONTEXT] public static void writeBufferedImage(BufferedImage image, String format, OutputStream outputStream, float quality) throws IOException { ImageEncoder imageEncoder = ImageEncoderFactory.newInstance(format, quali...
fireSeriesChanged();
[BUG] [ERROR] Range(double, double testGetLegendItemSeriesIndex [CONTEXT] public void update(Number x, Number y) { int index = indexOf(x); if(index < 0) { throw new SeriesException("No observation for x =" + x); } else { XYDataItem item = getDataItem(index); item.setY(y); <extra_id_0> } [CLASS] XYSeries [METHOD] upd...
LabelNode label =(LabelNode)lsi.labels.get(j);
[BUG] LabelNode label =(LabelNode) lsi.labels.get( var);[NO-ERROR] [CONTEXT] int jump = insns.indexOf(j.label); if(insnOpcode == JSR) { merge(jump, current, new Subroutine(j.label, m.maxLocals, j)); } else { merge(jump, current, subroutine); } newControlFlowEdge(insn, jump); } else if(insnNode instanceof LookupSwitchI...
isNativeUnknownType = isNativeUnknownType || isAlternateUnknown;
[BUG] isNativeUnknownType = isAllType || isAlternateUnknown;[ERROR] expected:<... : Bar testTypeMismatch [CONTEXT] UnionTypeBuilder addAlternate(JSType alternate) { if(alternate.isNoType()) { return this; } isAllType = isAllType || alternate.isAllType(); boolean isAlternateUnknown = alternate instanceof UnknownType...
drawPrimaryLine(state, g2, plot, dataset, pass, series, item, domainAxis, rangeAxis, dataArea);
[BUG] drawPrimaryLine( state, g2, dataset, pass, series, item, domainAxis, rangeAxis, dataArea);[ERROR] method drawPrimaryLine in class XYLineAndShapeRenderer cannot be applied to given types; [CONTEXT] if(this.drawSeriesLineAsPath) { drawPrimaryLineAsPath(state, g2, plot, dataset, pass, series, item, domainAxis, rang...
hc = 17 *(hc + buf[i]);
[BUG] hc = 4 *(hc + buf[i]);[NO-ERROR] [CONTEXT] public int hashCode() { int hc = 13 * sort; if(sort == OBJECT || sort == ARRAY) { for(int i = off, end = i + len; i < end; i++) { <extra_id_0> } } return hc; } [CLASS] Type [METHOD] hashCode [RETURN_TYPE] int [VARIABLES] Type BOOLEAN_TYPE BYTE_TYPE CHAR_TYPE DOUBLE_TY...
this.rotationAnchor = DEFAULT_ROTATION_ANCHOR;
[BUG] this.rotationAnchor = this.rotationAnchor;[ERROR] null testSerialization [CONTEXT] public XYTextAnnotation(String text, double x, double y) { if(text == null) { throw new IllegalArgumentException("Null 'text' argument."); } this.text = text; this.font = DEFAULT_FONT; this.paint = DEFAULT_PAINT; this.x = x; this....
} else if(contains(value, index + 1, 3,"CIA")) {
[BUG] } else if(contains( index, value + 1, 3,"CIA")){[ERROR] no suitable method found for contains(int,String,int,String) [CONTEXT] DoubleMetaphoneResult result, int index) { if(conditionC0(value, index)) {// very confusing, moved out result.append('K'); index += 2; } else if(index == 0 && contains(value, index, 6,"C...
e.checkcast(callbackTypes[i]);
[BUG] e.throw_exception( types[i]);[NO-ERROR] [CONTEXT] e.getfield(STATIC_CALLBACKS_FIELD); e.dup(); e.ifnonnull(found_callback); e.pop(); e.goTo(end); e.mark(found_callback); e.checkcast(CALLBACK_ARRAY); e.load_local(me); e.swap(); for(int i = callbackTypes.length - 1; i >= 0; i--) { if(i != 0) { e.dup2(); } e.aaload...
add("for(");
[BUG] add("continue");add("for(");[ERROR] Errors for: continue for(var i in a)b+=i expected:<0> but was:<1> testParsePrintParse [CONTEXT] if(childCount == 4) { add("for("); if(first.getType() == Token.VAR) { add(first, Context.IN_FOR_INIT_CLAUSE); } else { addExpr(first, 0, Context.IN_FOR_INIT_CLAUSE); } add(";"); add...
parent.replaceChild(n, new Node(Token.TRUE));
[BUG] parent.replaceChild( n, left);parent.replaceChild( n, new Node( Token.TRUE));[ERROR] null testDebugFlag3 [CONTEXT] if(right.getType() == Token.NAME &&"Object".equals(right.getString())) { <extra_id_0> t.getCompiler().reportCodeChange(); return; } [CLASS] FoldConstants 1 2 [METHOD] visit [RETURN_TYPE] void Node...
long hours = millis / DateTimeConstants.MILLIS_PER_HOUR;
[BUG] short hours = millis / DateTimeConstants.MILLIS_PER_HOUR;[ERROR] possible loss of precision [CONTEXT] public Hours toStandardHours() { checkYearsAndMonths("Hours"); long millis = getMillis();// assign to a long millis +=((long) getSeconds()) * DateTimeConstants.MILLIS_PER_SECOND; millis +=((long) getMinutes()) *...
if(jjmatchedPos < 7){
[BUG] if(pos < 2) {[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] return -1; case 9: if((active0 & 0x20000000000000L) != 0L) return 12; if((active0 & 0x78000000000L) != 0L) { if(jjmatchedPos < 8) { jjmatchedKind = 78; jjmatchedPos = 8; } return -1; }...
double transY1 = rangeAxis.valueToJava2D(y1, dataArea, yAxisLocation);
[BUG] double transY1 = rangeAxis.valueToJava2D( y1, dataArea);[ERROR] method valueToJava2D in class ValueAxis cannot be applied to given types; [CONTEXT] } double x0 = dataset.getXValue(series, item - 1); double y0 = dataset.getYValue(series, item - 1); if(Double.isNaN(y0) || Double.isNaN(x0)) { return; } RectangleEdg...
if(containsName(child, name)) {
[BUG] if(containsName( child)){[ERROR] method containsName in class CollapseAnonymousFunctions.Callback cannot be applied to given types; [CONTEXT] private boolean containsName(Node n, String name) { if(n.getType() == Token.NAME && n.getString().equals(name)) { return true; } for(Node child : n.children()) { <extra_i...
expected = newValue(Type.getObjectType(((FieldInsnNode)insn).owner));
[BUG] expected1 = newValue( Type.getType("[S"));expected = newValue( Type.getObjectType((( FieldInsnNode) insn).owner));[NO-ERROR] [CONTEXT] case LNEG: case L2I: case L2F: case L2D: case LRETURN: expected = BasicValue.LONG_VALUE; break; case DNEG: case D2I: case D2F: case D2L: case DRETURN: expected = BasicValue.DOUBL...
k += 2;i = 1;
[BUG] i = 1; [CONTEXT] if((y = d1) != 0) { dbl_bits = new byte[8]; k = lo0bits(y); y >>>= k; if(k != 0) { stuffBits(dbl_bits, 4, y | z <<(32 - k)); z >>= k; } else stuffBits(dbl_bits, 4, y); stuffBits(dbl_bits, 0, z); i =(z != 0) ? 2 : 1; } else { dbl_bits = new byte[4]; k = lo0bits(z); z >>>= k; stuffBits(dbl_bits,...
expected1 = BasicValue.LONG_VALUE;
[BUG] expected2 = BasicValue.REFERENCE_VALUE;expected1 = BasicValue.LONG_VALUE;[NO-ERROR] [CONTEXT] case LADD: case LSUB: case LMUL: case LDIV: case LREM: case LAND: case LOR: case LXOR: case LCMP: expected1 = BasicValue.LONG_VALUE; expected2 = BasicValue.LONG_VALUE; break; case LSHL: case LSHR: case LUSHR: <extra_id...
values[N + index] = hash;
[BUG] values[( 1 << power) + index] = hash;values[N + index] = hash;[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] private int insertNewKey(Object key, int hash) { if(check && occupiedCount != keyCount) Kit.codeBug(); if(check && keyCount == 1 << power) Kit.codeBug(); int fraction = hash * A; int in...
if(rt == null || rt.isArray()){
[BUG] if(rt.isArray()) {[ERROR] null testFormatForParsers [CONTEXT] protected static boolean isGroovyMetaClassGetter(AnnotatedMethod am) { Class<?> rt = am.getRawType(); <extra_id_0> return false; } Package pkg = rt.getPackage(); if(pkg != null && pkg.getName().startsWith("groovy.lang")) { return true; } return fals...
ArrayList<BeanPropertyDefinition> result = new ArrayList<BeanPropertyDefinition>(Math.max(4, propDefsIn.size()));
[BUG] ArrayList<BeanPropertyDefinition> result = new ArrayList<BeanPropertyDefinition>( Math.max( 3, propDefsIn.size()));[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] { <extra_id_0> HashMap<Class<?>,Boolean> ignoredTypes = new HashMap<Class<?>,Boolean>(); for(BeanPropertyDefinition property : pr...
buf.append("av0 = cw.visitAnnotation(");buf.append("cw.visit(");
[BUG] buf.append("cw.visit("); [CONTEXT] text.add("package asm." + name.substring(0, n).replace('/', '.') +";\n"); simpleName = name.substring(n + 1); } text.add("import java.util.*;\n"); text.add("import org.mockito.asm.*;\n"); text.add("import org.mockito.asm.attrs.*;\n"); text.add("public class" + simpleName +"Du...
for(int j = i; j < len; ++j) {
[BUG] for(int j = i; j < charLength; ++j){ [CONTEXT] if(c >= '\001' && c <= '\177') { byteLength++; } else if(c > '\u07FF') { byteLength += 3; } else { byteLength += 2; } } data[length] =(byte)(byteLength >>> 8); data[length + 1] =(byte) byteLength; if(length + 2 + byteLength > data.length) { length = len; enlarge(2...
return null;
[BUG] return true;[NO-ERROR] [CONTEXT] { if(_currToken == JsonToken.FIELD_NAME) { // mostly copied from '_nextAfterName' _nameCopied = false; JsonToken t = _nextToken; _nextToken = null; _currToken = t; if(t == JsonToken.VALUE_TRUE) { return Boolean.TRUE; } if(t == JsonToken.VALUE_FALSE) { return Boolean.FALSE; } if(t...
delegate.writeRawUTF8String(text, offset, length);
[BUG] delegate.writeUTF8String( text , offset , offset);[NO-ERROR] [CONTEXT] public void writeRawUTF8String(byte[] text, int offset, int length) throws IOException, JsonGenerationException { <extra_id_0> } [CLASS] JsonGeneratorDelegate [METHOD] writeRawUTF8String [RETURN_TYPE] void byte[] text int offset int length ...
e.mark( checkloop);e.goTo( checkloop);
[BUG] e.goTo(checkloop); [CONTEXT] public static void process_array(CodeEmitter e, Type type, ProcessArrayCallback callback) { Type componentType = TypeUtils.getComponentType(type); Local array = e.make_local(); Local loopvar = e.make_local(Type.INT_TYPE); Label loopbody = e.make_label(); Label checkloop = e.make_la...
l_subtrahendMinY = l_subtrahendCurY.doubleValue();
[BUG] l_y4 = l_subtrahendNextY.doubleValue();l_subtrahendMinY = l_subtrahendCurY.doubleValue();[ERROR] null testDrawWithNullInfo [CONTEXT] if((l_x1 < l_x3) &&(l_x3 < l_x2)) { double l_slope =(l_y2 - l_y1) /(l_x2 - l_x1); l_minuendCurX= l_subtrahendCurX; l_minuendCurY= new Double((l_slope * l_x3) +(l_y1 -(l_slope * l_x...
this.iterator = values.iterator();
[BUG] Iterator<? extends V> it = values.iterator();this.iterator = values.iterator();[ERROR] [CONTEXT] public ValuesIterator(final Object key) { this.key = key; this.values = getMap().get(key); <extra_id_0> } [CLASS] AbstractMultiValuedMap WrappedCollection KeysBag 1 1 EntryValues 1 1 MultiValuedMapEntry MultiValued...
offset = fill(offset, 58, ' ');
[BUG] offset = fill( offset, 48, ' ');offset = fill( offset, 58, ' ');[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] offset = fill(offset, 40, ' '); final String fm ="" + Integer.toString(pEntry.getMode(), 8); if(fm.length() > 8) { throw new IOException("filemode too long"); } offset += wri...
Tick tick = new NumberTick(new Double(currentTickValue), tickLabel, anchor, rotationAnchor, angle);
[BUG] Tick tick = new NumberTick( new Double( currentTickValue) , tickLabel, anchor, rotationAnchor, size);[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] else { angle = -Math.PI / 2.0; } } else { if(edge == RectangleEd...
setCallbacks( type, callbacks);
[BUG] setThreadCallbacks(type, callbacks); [CONTEXT] private Object createUsingReflection(Class type) { <extra_id_0> try{ if(argumentTypes != null) { return ReflectUtils.newInstance(type, argumentTypes, arguments); } else { return ReflectUtils.newInstance(type); } }finally{ setThreadCallbacks(type, null); } } [CLA...
itemsInColumn.add(block);
[BUG] itemsInColumn.clear();itemsInColumn.add( block);[NO-ERROR] [CONTEXT] if(itemsInColumn.isEmpty()) { block.setBounds( new Rectangle2D.Double( x, y, size.width, Math.min(size.height, height - y))); y = 0.0; x = x + size.width + this.horizontalGap; } else { itemsInColumn.clear(); x = x + maxWidth + this.horizontalGa...
if(lu[max][col].abs().compareTo(TOO_SMALL)<= 0){
[BUG] if(sum.abs().compareTo( largest) == 1) {[ERROR] Inconsistent cumulative probabilities for(-667.2485619,-65.6230835) expected:<0.0090000000004829> but was:<0.0> testConsistency [CONTEXT] for(int row = col; row < nRows; row++) { sum = lu[row][col]; for(int i = 0; i < col; i++) { sum = sum.subtract(lu[row][i].multi...
result.append('N');
[BUG] result.append( 'A');result.append( 'N');[ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition [CONTEXT] index = charAt(value, index + 1) == 'K' ? index + 2 : index + 1; break; case 'L': index = handleL(value, result, index); break; case 'M': result.append('M'); index = conditionM0(value, ...
if(skipping){
[BUG] if(lenient) {[ERROR] expected:<[a, b, c]> but was:<[]> testParseComments [CONTEXT] case '=': checkLenient(); // fall-through case '{': case '}': case '[': case ']': case ':': case ',': case ' ': case '\t': case '\f': case '\r': case '\n': pos--; <extra_id_0> return"skipped!"; } else if(builder == null) { retur...
if(!isSubTypeOf(value1, expected1)) {
[BUG] if("a" + expected1) {[NO-ERROR] [CONTEXT] case FASTORE: 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...
return new String(buffer, size - length, length);
[BUG] return new String( buffer, size << length, length);[ERROR] expected:<ValuedColorEnum[Red=1]> but was:<null> testToString [CONTEXT] public String rightString(int length) { if(length <= 0) { return""; } else if(length >= size) { return new String(buffer, 0, size); } else { <extra_id_0> } } [CLASS] StrBuilder Str...
for(int i = 0, len = _segments.size(); i < len; ++i){
[BUG] for(currLennt i = 0, len = _segments.size(); i < len; ++i) {[ERROR] cannot find symbol [CONTEXT] if(segLen == 0) { // yup _resultString =(currLen == 0) ?"" : new String(_currentSegment, 0, currLen); } else { // no, need to combine StringBuilder sb = new StringBuilder(segLen + currLen); if(_segments != null) { <...
this.categoryKeys = generateKeys(categoryCount, prefix);
[BUG] this.categoryKeys = generateKeys( seriesCount, prefix);[ERROR] org/jfree/chart/JFreeChartInfo testCloning [CONTEXT] +"dataset does not match the number of" +"categories in the end value dataset."; throw new IllegalArgumentException(errMsg); } if(categoryKeys != null) { if(categoryKeys.length != categoryCount) { ...
x >>>= 8;
[BUG] x >>>= 4;x >>>= 8;[NO-ERROR] [CONTEXT] if((x & 7) != 0) { if((x & 1) != 0) return 0; if((x & 2) != 0) { return 1; } return 2; } k = 0; if((x & 0xffff) == 0) { k = 16; x >>>= 16; } if((x & 0xff) == 0) { k += 8; <extra_id_0> } if((x & 0xf) == 0) { k += 4; x >>>= 4; } if((x & 0x3) == 0) { k += 2; x >>>= 2; } if((...
ret = 0.0;
[BUG] ret = 2.0d;[ERROR] null testDfAccessors [CONTEXT] public double cumulativeProbability(int x) throws MathException { double ret; if(x < 0) { <extra_id_0> } else { ret = Beta.regularizedBeta( getProbabilityOfSuccess(), getNumberOfSuccesses(), x + 1); } return ret; } [CLASS] PascalDistributionImpl [METHOD] cumula...
Item i = cw.newClassItem( type);Item i = cw.newConstItem( cst);
[BUG] Item i = cw.newConstItem(cst); [CONTEXT] } currentBlock = label; stackSize = 0; maxStackSize = 0; if(previousBlock != null) { previousBlock.successor = label; } previousBlock = label; } } public void visitLdcInsn(final Object cst) { <extra_id_0> if(currentBlock != null) { if(compute == FRAMES) { currentBlock...
return getScope().getOwnSlot(getParameterName(index));
[BUG] [ERROR] null testAliasThrowKeywordLiteral [CONTEXT] StaticSlot<ConcreteType> getParameterSlot(int index) { <extra_id_0> [CLASS] ConcreteFunctionType [METHOD] getParameterSlot [RETURN_TYPE] StaticSlot int index [VARIABLES] ConcreteInstanceType instanceType prototypeType boolean Node declaration StaticScope bod...
AbstractInsnNode result = next;AbstractInsnNode result = prev;
[BUG] AbstractInsnNode result = prev; [CONTEXT] public Object previous() { <extra_id_0> next = result; prev = result.prev; return result; } [CLASS] InsnListIterator [METHOD] previous [RETURN_TYPE] Object [VARIABLES] AbstractInsnNode next prev result boolean
int startLine = Math.max(1, lineNumber -(SOURCE_EXCERPT_REGION_LENGTH + 1)/ 2 + 1);
[BUG] int startLine = Math.max( 1, lineNumber -(SOURCE_EXCERPT_REGION_LENGTH + 1) * 2 + 1);[ERROR] null testExternedPropertyName [CONTEXT] public Region getRegion(int lineNumber) { String js =""; try { js = getCode(); } catch(IOException e) { return null; } int pos = 0; <extra_id_0> for(int n = 1; n < startLine; ...
buf.append("Opcodes.INTEGER");
[BUG] buf.append(" });\n");buf.append("Opcodes.INTEGER");[NO-ERROR] [CONTEXT] } private void appendFrameTypes(final int n, final Object[] o) { for(int i = 0; i < n; ++i) { if(i > 0) { buf.append(","); } if(o[i] instanceof String) { appendConstant(o[i]); } else if(o[i] instanceof Integer) { switch(((Integer) o[i]).intV...
for(int i = 0; i < lhs.length && isEquals; ++i){
[BUG] for(lhs.lengthnt i = 0; i < i && isEquals; ++i) {[ERROR] package lhs does not exist [CONTEXT] public EqualsBuilder append(boolean[] lhs, boolean[] rhs) { if(isEquals == false) { return this; } if(lhs == rhs) { return this; } if(lhs == null || rhs == null) { this.setEquals(false); return this; } if(lhs.length != ...
reportError("msg.no.paren.for");reportError("msg.catch.unreachable");
[BUG] reportError("msg.catch.unreachable"); [CONTEXT] decompiler.addEOL(Token.LC); tryblock = statement(); decompiler.addEOL(Token.RC); catchblocks = nf.createLeaf(Token.BLOCK, ts.getLineno(), ts.getCharno()); boolean sawDefaultCatch = false; int peek = peekToken(); if(peek == Token.CATCH) { while(matchToken(Token.C...
if(_outputTail >= _outputEnd){
[BUG] if(( _outputTail + 3) >= _outputEnd) {[NO-ERROR] [CONTEXT] private void _writeLongString(char[] text, int offset, int len) throws IOException, JsonGenerationException { <extra_id_0> _flushBuffer(); } _outputBuffer[_outputTail++] = BYTE_QUOTE; _writeStringSegments(_charBuffer, 0, len); if(_outputTail >= _output...
right.lineTo(transX1, transY1);
[BUG] right.lineTo( transX1);[ERROR] no suitable method found for lineTo(float) [CONTEXT] if(y2 >= 0.0) { right.moveTo(transX1, transStack1); right.lineTo(transX1, transY1); right.lineTo(transXRight, transStackRight); right.closePath(); } else { double yright =(y1 + y2) / 2.0 + stackRight[0]; float transYRight =(float...
System.out.println(rdf.format(c1.getTime()));
[BUG] System.out.println( c1.format( rdf.getTime()));[ERROR] cannot find symbol [CONTEXT] public static void main(String[] args) { GregorianCalendar c0 = new GregorianCalendar(2006, 10, 1, 0, 0, 0); GregorianCalendar c1 = new GregorianCalendar(2006, 10, 1, 11, 37, 43); c1.set(Calendar.MILLISECOND, 123); System.out.pri...
buf.append("V1_3");buf.append(",");
[BUG] buf.append(","); [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); <extra_id_0> appendConstant(innerName); buf.app...
this.maximumRangeValue.setText(Double.toString(this.maximumValue));
[BUG] this.maximumRangeValue.addActionListener( this);this.maximumRangeValue.setText( Double.toString( this.maximumValue));[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] public void validateMaximum() { double newMax; t...
if(signature[6] != 0x78){
[BUG] if(signature[2] != 0x73) {[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] if(signature[1] != 0x65) { return false; } if(signature[2] != 0x73) { return false; } if(signature[3] != 0x74) { return false; } if(signature[4] != 0x31) { return false; } if(signature[5] != 0x2e) { return false;...
if(NodeUtil.isThis(lhs.getFirstChild())) {
[BUG] if(NodeUtil.isThis( gramp.getFirstChild())){[ERROR] cannot find symbol gramp [CONTEXT] private void visitAssignmentOrUnaryOperatorLhs( FunctionInformation sideEffectInfo, Scope scope, Node lhs) { if(NodeUtil.isName(lhs)) { Var var = scope.getVar(lhs.getString()); if(var == null || var.scope != scope) { sideEffec...
ret += probability(n, m, k, x0);
[BUG] ret += probability( m, n, k, x0);[ERROR] null testDfAccessors [CONTEXT] private double innerCumulativeProbability( int x0, int x1, int dx, int n, int m, int k) { double ret = probability(n, m, k, x0); while(x0 != x1) { x0 += dx; <extra_id_0> } return ret; } [CLASS] HypergeometricDistributionImpl [METHOD] inner...
if(exceptions != null){
[BUG] if(exceptions == null) {[NO-ERROR] [CONTEXT] { checkState(); checkAccess(access, Opcodes.ACC_PUBLIC + Opcodes.ACC_PRIVATE + Opcodes.ACC_PROTECTED + Opcodes.ACC_STATIC + Opcodes.ACC_FINAL + Opcodes.ACC_SYNCHRONIZED + Opcodes.ACC_BRIDGE + Opcodes.ACC_VARARGS + Opcodes.ACC_NATIVE + Opcodes.ACC_ABSTRACT + Opcodes.AC...
leftWall.lineTo(x1, y3);
[BUG] leftWall.lineTo( x1, y1);leftWall.lineTo( x1, y3);[ERROR] null testDrawWithNullInfo [CONTEXT] Composite originalComposite = g2.getComposite(); g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, plot.getBackgroundAlpha())); Paint backgroundPaint = plot.getBackgroundPaint(); if(backgroundPaint != ...
result.append(' ');
[BUG] result.setLength( 0);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.NA...
jjmatchedKind = 78;
[BUG] jjmatchedKind = 1;[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] if(jjmatchedPos < 8) { <extra_id_0> jjmatchedPos = 8; } [CLASS] XPathParserTokenManager [METHOD] jjStopStringLiteralDfa_0 [RETURN_TYPE] int int pos long active0 long active1 [VA...
JPanel interior = new JPanel(new LCBLayout(5));
[BUG] JPanel interior = new JPanel( new LCBLayout( 12));[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] this.tickLabelInsets = axis.getTickLabelInsets(); this.labelInsets = axis.getLabelInsets(); setLayout(new BorderLay...
if(newControlFlowExceptionEdge(insn, jump)) {
[BUG] if(newControlFlowEdge( j, jump)){[NO-ERROR] [CONTEXT] newControlFlowEdge(insn, insn + 1); } } List insnHandlers = handlers[insn]; if(insnHandlers != null) { for(int i = 0; i < insnHandlers.size(); ++i) { TryCatchBlockNode tcb =(TryCatchBlockNode) insnHandlers.get(i); Type type; if(tcb.type == null) { type = Type...
System.arraycopy( 0, c, 0, len);
[BUG] System.arraycopy(b, 0, c, 0, len); [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....
return Lists.<Action>newArrayList(createExternFunctionCall(arg, thisType,(FunctionType)paramType));
[BUG] return Lists.<Action>newArrayList( getImplicitActionsFromArgument( arg, thisType,(FunctionType) paramType));[ERROR] null testExternedPropertyName [CONTEXT] private Collection<Action> getImplicitActionsFromArgument( Node arg, ObjectType thisType, JSType paramType) { if(paramType instanceof UnionType) { List<Actio...
drawFirstPassShape(g2, pass, series, item, state.workingLine);
[BUG] [ERROR] null testDrawWithNullInfo [CONTEXT] if(Double.isNaN(transX0) || Double.isNaN(transY0) || Double.isNaN(transX1) || Double.isNaN(transY1)) { return; } PlotOrientation orientation = plot.getOrientation(); if(orientation == PlotOrientation.HORIZONTAL) { state.workingLine.setLine(transY0, transX0, transY1, tr...
return(index >= types.length)? null : types[index];
[BUG] return(index >= types.length.length) ? null : types[index];[ERROR] int cannot be dereferenced [CONTEXT] public Class<?> getRawParameterType(int index) { Class<?>[] types = _constructor.getParameterTypes(); <extra_id_0> } [CLASS] AnnotatedConstructor Serialization [METHOD] getRawParameterType [RETURN_TYPE] Clas...
result.append(" instanceof");
[BUG] result.append("do");result.append(" instanceof");[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] break; case Token.LT: result.append(" <"); break; case Token.GE: result.append(" >="); break; case Token.GT: result.append(" >"); break; case Token.INSTANCEOF: <extra_id_0> break; case Token.LSH: ...
if(objectType != null){
[BUG] if(n != objectTypeull) {[ERROR] cannot find symbol objectTypeull [CONTEXT] String getReadableJSTypeName(Node n, boolean dereference) { if(n.getType() == Token.GETPROP) { ObjectType objectType = getJSType(n.getFirstChild()).dereference(); <extra_id_0> String propName = n.getLastChild().getString(); while(o...
buf.append(");\n");
[BUG] buf.append(" });\n");buf.append(");\n");[NO-ERROR] [CONTEXT] public void visitLineNumber(final int line, final Label start) { buf.setLength(0); buf.append("mv.visitLineNumber(").append(line).append(","); appendLabel(start); <extra_id_0> text.add(buf.toString()); } [CLASS] ASMifierMethodVisitor [METHOD] visitLi...
ret.setNumberOfLinks(readAsciiLong(6, 8));
[BUG] ret.setDevice( readAsciiLong( 6, 8));ret.setNumberOfLinks( readAsciiLong( 6, 8));[NO-ERROR] [CONTEXT] private CpioArchiveEntry readOldAsciiEntry() throws IOException { CpioArchiveEntry ret = new CpioArchiveEntry(FORMAT_OLD_ASCII); ret.setDevice(readAsciiLong(6, 8)); ret.setInode(readAsciiLong(6, 8)); ret.setMode...
ensureTyped(t, n, parent.getJSType());
[BUG] ensureTyped( t, n, right.getJSType());[ERROR] variable right might not have been initialized [CONTEXT] case Token.WHILE: typeable = false; break; case Token.AND: case Token.HOOK: case Token.OBJECTLIT: case Token.OR: if(n.getJSType() != null) { // If we didn't run type inference. ensureTyped(t, n); } else { if((n...
double r = InfoSetUtil.doubleValue(args[1].computeValue(context));
[BUG] double r = InfoSetUtil.doubleValue( args[3].computeValue( context));[ERROR] Expression toString() for 3>4 expected:<3 [>] 4> but was:<3 [] 4> testCoreOperationGreaterThan [CONTEXT] public Object computeValue(EvalContext context) { double l = InfoSetUtil.doubleValue(args[0].computeValue(context)); <extra_id_0> ...
buf.append("new String[] {");buf.append(",");
[BUG] buf.append(","); [CONTEXT] public FieldVisitor visitField( final int access, final String name, final String desc, final String signature, final Object value) { buf.setLength(0); buf.append("{\n"); buf.append("fv = cw.visitField("); appendAccess(access | ACCESS_FIELD); buf.append(","); appendConstant(name); <...
bits = _decodeBase64Escape( b64variant, ch, outputCount);
[BUG] bits = _decodeBase64Escape(b64variant, ch, 3); [CONTEXT] if(_inputPtr >= _inputEnd) { loadMoreGuaranteed(); } ch = _inputBuffer[_inputPtr++] & 0xFF; bits = b64variant.decodeBase64Char(ch); if(bits < 0) { if(bits != Base64Variant.BASE64_VALUE_PADDING) { if(ch == '"' && !b64variant.usesPadding()) { decodedData >...
this.data.add(series);
[BUG] if(this.data.contains( series)){ this.data.add( series); }[ERROR] org/jfree/chart/JFreeChartInfo testCloning [CONTEXT] public void add(TaskSeries series) { if(series == null) { throw new IllegalArgumentException("Null 'series' argument."); } <extra_id_0> series.addChangeListener(this); Iterator iterator = seri...
parser.parse(in, handler); result = handler.getDataset();
[BUG] [ERROR] expected:<org.jfree.data.KeyedObjects@312b1dae> but was:<org.jfree.data.KeyedObjects@4ccabbaa> testSerialization [CONTEXT] public static CategoryDataset readCategoryDatasetFromXML(InputStream in) throws IOException { CategoryDataset result = null; SAXParserFactory factory = SAXParserFactory.newInstance()...
offset = TarUtils.getLongOctalBytes(modTime, outbuf, offset, MODTIMELEN);
[BUG] offset = TarUtils.getLongOctalBytes( modTime, outbuf, groupId, MODTIMELEN);[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] } public void writeEntryHeader(byte[] outbuf) { int offset = 0; offset = TarUtils.getNameBytes(name, outbuf, offset, NAMELEN); offset = TarUtils.getOctalBytes(mo...
} else if(length > 1){
[BUG] } else if(( double)(length - 1)) {[ERROR] incompatible types [CONTEXT] public double evaluate(final double[] values, final double mean, final int begin, final int length) { double var = Double.NaN; if(test(values, begin, length)) { if(length == 1) { var = 0.0; <extra_id_0> double accum = 0.0; double accum2 = 0...
if(alloc == required) {
[BUG] if(alloc < required){ [CONTEXT] { int required = minimalCapacity - FIELDS_STORE_SIZE; if(required <= 0) throw new IllegalArgumentException(); if(data == null) { int alloc = FIELDS_STORE_SIZE * 2; <extra_id_0> alloc = required; } data = new Object[alloc]; } else { int alloc = data.length; if(alloc < required)...
_textBuffer.resetWithCopy(_inputBuffer, _inputPtr,(ptr-_inputPtr));
[BUG] _textBuffer.resetWithCopy( _inputBuffer,(ptr-_inputPtr));[ERROR] method resetWithCopy in class TextBuffer cannot be applied to given types; [CONTEXT] if(ch == '"') { _textBuffer.resetWithShared(_inputBuffer, _inputPtr,(ptr-_inputPtr)); _inputPtr = ptr+1; return; } break; } ++ptr; } while(ptr < inputLen); } <ex...
if(maxSize < expectedTokenSequences[i].length){
[BUG] if(maxSize <= expectedTokenSequences[i].length) {[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] public String getMessage() { if(!specialConstructor) { return super.getMessage(); } String expected =""; int maxSize = 0; for(int i = 0; i < exp...
double used = 0.0;
[BUG] double labelWidth = 0.0;double used = 0.0;[ERROR] null testCloning [CONTEXT] else if(edge == RectangleEdge.RIGHT) { mark = new Line2D.Double(cursor + ol, xx, cursor - il, xx); } else if(edge == RectangleEdge.TOP) { mark = new Line2D.Double(xx, cursor - ol, xx, cursor + il); } else if(edge == RectangleEdge.BOTTOM...
mant = val.substring(0, decPos);
[BUG] mant = val.substring( 0, expPos);[ERROR] String index out of range: -1 testCreateNumber [CONTEXT] String dec; String exp; int decPos = val.indexOf('.'); int expPos = val.indexOf('e') + val.indexOf('E') + 1; if(decPos > -1) { if(expPos > -1) { if(expPos < decPos) { throw new NumberFormatException(val +" is not a ...
} else if(result.length() == 0){
[BUG] } else if(result.length() + 4 == 0) {[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 St...
offset = TarUtils.getLongOctalBytes(size, outbuf, offset, SIZELEN);
[BUG] offset = TarUtils.getNameBytes( userName, outbuf, offset, UNAMELEN);offset = TarUtils.getLongOctalBytes( size, outbuf, offset, SIZELEN);[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] return result; } public void writeEntryHeader(byte[] outbuf) { int offset = 0; offset = TarUtils.get...
throw throw new IllegalArgumentException((("Invalid" + msg) +"(must be visited first)"))");
[BUG] throw new IllegalArgumentException("Invalid" + msg +"(must not be null or empty)"); [CONTEXT] static void checkIdentifier( final String name, final int start, final int end, final String msg) { if(name == null ||(end == -1 ? name.length() <= start : end <= start)) { <extra_id_0> } if(!Character.isJavaIdentif...
this.labels = new ArrayList(labels == null ? 0 : labels.length);
[BUG] this.labels = new List(labels == null ? 0 : labels.length);[NO-ERROR] [CONTEXT] public LookupSwitchInsnNode( final LabelNode dflt, final int[] keys, final LabelNode[] labels) { super(Opcodes.LOOKUPSWITCH); this.dflt = dflt; this.keys = new ArrayList(keys == null ? 0 : keys.length); <extra_id_0> if(keys != null...
validator.expectObject(t, n, rightType,"'in' requires an object");
[BUG] validator.expectObject( rightType, n, t,"'in' requires an object");[ERROR] method expectObject in class TypeValidator cannot be applied to given types; [CONTEXT] validator.expectNotVoid( t, n, leftType, message, getNativeType(STRING_TYPE)); message ="right side of comparison"; validator.expectString(t, n, rightT...