fix
stringlengths
2
833
ctx
stringlengths
80
394k
last = next;last = null;
[BUG] last = null; [CONTEXT] public void remove() { if(last == null) { throw new IllegalStateException(AbstractHashedMap.REMOVE_INVALID); } if(parent.modCount != expectedModCount) { throw new ConcurrentModificationException(); } parent.remove(last.getKey()); <extra_id_0> expectedModCount = parent.modCount; } [CLAS...
_out.write(outBuf, 0, outPtr);
[BUG] _out.write( outBuf, 0);[ERROR] no suitable method found for write(byte[],int) [CONTEXT] } int outPtr = _outPtr; byte[] outBuf = _outBuffer; int outBufLast = _outBufferEnd; // has 4 'spare' bytes len += off; // len will now be the end of input buffer output_loop: for(; off < len;){ if(outPtr >= outBufLast) { <e...
hbAssignCodes(code[t], len[t], minLen, maxLen, alphaSize);
[BUG] hbAssignCodes( code[t][t], minLen, maxLen, alphaSize);[ERROR] method hbAssignCodes in class BZip2CompressorOutputStream cannot be applied to given types; [CONTEXT] maxLen = 0; for(i = 0; i < alphaSize; i++) { if(len[t][i] > maxLen) { maxLen = len[t][i]; } if(len[t][i] < minLen) { minLen = len[t][i]; } } if(maxLe...
if(!hour &&(minute && second ||(minute && !milli)|| second)) {
[BUG] if((minute && second || minute && !milli)) {[ERROR] null testTest [CONTEXT] if(hour && minute && second ||(hour && !second && !milli)) { } else { if(strictISO && datePresent) { throw new IllegalArgumentException("No valid ISO8601 format for fields because Time was truncated:" + fields); } <extra_id_0> } else {...
_currentSize += amount;
[BUG] _currentSize += max;[ERROR] expected:<393218> but was:<262544> testLongAppend [CONTEXT] } if(max > 0) { System.arraycopy(c, start, curr, _currentSize, max); start += max; len -= max; } do { expand(len); int amount = Math.min(_currentSegment.length, len); System.arraycopy(c, start, _currentSegment, 0, amount); ...
private long dataOffset = -1;
[BUG] private long dataOffset = -HASH_SIZE;[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] private final Map nameMap = new HashMap(HASH_SIZE); private static final class OffsetEntry { private long headerOffset = -1; <extra_id_0> } [CLASS] OffsetEntry [METHOD] addDummy [RETURN_TYPE] void ...
decompiler.addToken(Token.RC);
[BUG] decompiler.addToken( Token.DOTQUERY);decompiler.addToken( Token.RC);[NO-ERROR] [CONTEXT] String s = ts.getString(); nf.addChildToBack(args, nf.createName(s, ts.getLineno(), ts.getCharno())); decompiler.addName(s); } while(matchToken(Token.COMMA)); mustMatchToken(Token.RP,"msg.no.paren.after.parms"); } decompiler...
JSType nativePropertyType = nativeType.getPropertyType(propertyName);
[BUG] Property property = properties.get( propertyName);JSType nativePropertyType = nativeType.getPropertyType( propertyName);[ERROR] expected:<... : Bar testTypeMismatch [CONTEXT] private boolean hasOverridenNativeProperty(String propertyName) { if(isNative()) { return false; } JSType propertyType = getPropertyType(p...
"Can not construct instance of"+instClass.getName() +" from String value '"+_valueDesc() +"':"+msg, value, instClass);
[BUG] "Can not construct instance of"+instClass.getName()+" from String value '"+_valueDesc()+"':"+msg, value, null);[ERROR] null testFormatForParsers [CONTEXT] public JsonMappingException weirdStringException(String value, Class<?> instClass, String msg) { return InvalidFormatException.from(_parser, <extra_id_0> } [...
v = items[readUnsignedShort( u + 4) ];String[] implementedItfs = new String[readUnsignedShort( u + 6) ];
[BUG] String[] implementedItfs = new String[readUnsignedShort(u + 6)]; [CONTEXT] int access; String name; String desc; String attrName; String signature; int anns = 0; int ianns = 0; Attribute cattrs = null; u = header; access = readUnsignedShort(u); name = readClass(u + 2, c); v = items[readUnsignedShort(u + 4)]; S...
access = readUnsignedShort(u);
[BUG] i = readUnsignedShort( u);access = readUnsignedShort( u);[NO-ERROR] [CONTEXT] int i, j, k; // loop variables int u, v, w; // indexes in b Attribute attr; int access; String name; String desc; String attrName; String signature; int anns = 0; int ianns = 0; Attribute cattrs = null; u = header; <extra_id_0> name ...
return(( Method)member).getReturnType();
[BUG] return(( Method) member).getParameterTypes();[NO-ERROR] [CONTEXT] public Class getReturnType() { <extra_id_0> } [CLASS] FastMethod [METHOD] getReturnType [RETURN_TYPE] Class [VARIABLES] boolean
} else if(((injectCount + 1) == argCount)){
[BUG] } else if(( namedCount == 0)&&(( injectCount + 1)== argCount)) { [CONTEXT] ++namedCount; properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId); } else if(injectId != null) { ++injectCount; properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId); } else if...
Attr attr =(( Element)aNode).getAttributeNode("xmlns");
[BUG] Attr attr =(( Element) aNode).getAttributeNode("xmlnsmln");[NO-ERROR] [CONTEXT] public String getDefaultNamespaceURI() { if(defaultNamespace == null) { Node aNode = node; if(aNode instanceof Document) { aNode =((Document) aNode).getDocumentElement(); } while(aNode != null) { if(aNode.getNodeType() == Node.ELEMEN...
} else if(uncapitalizeNext){ buffer.append(Character.toLowerCase(ch)); uncapitalizeNext = false; } else { buffer.append(ch); }
[BUG] [ERROR] expected:<[i]> but was:<[]> testUncapitalize_String [CONTEXT] public static String uncapitalize(String str, char[] delimiters) { int delimLen =(delimiters == null ? -1 : delimiters.length); if(str == null || str.length() == 0 || delimLen == 0) { return str; } int strLen = str.length(); StringBuffer buffe...
return this == object || null != object && object.getClass().equals(this.getClass());
[BUG] return this == object || null == object && object.getClass().equals( this.getClass());[ERROR] [CONTEXT] public boolean equals(final Object object) { <extra_id_0> } [CLASS] ComparableComparator [METHOD] equals [RETURN_TYPE] boolean Object object [VARIABLES] Object object ComparableComparator INSTANCE boolean lo...
Math.log(a)- logBeta(a, b, epsilon, maxIterations)) * 1.0 / fraction.evaluate(x, epsilon, maxIterations);
[BUG] Math.exp( a) - logBeta( a, b, epsilon, maxIterations))* 1.0 / fraction.evaluate( x, epsilon, maxIterations);[ERROR] Incorrect inverse cumulative probability value returned for 0.001 expected:<1> but was:<7> testInverseCumulativeProbabilities [CONTEXT] ret =(m *(b - m) * x) /((a +(2 * m) - 1) *(a +(2 * m))); } el...
JavaType t = _typeFactory.constructFromCanonical(id);
[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 JavaType typeFromId(String id) { if(i...
long otherEnd = interval.getEndMillis();
[BUG] long durMillis = toDurationMillis();long otherEnd = interval.getEndMillis();[ERROR] [CONTEXT] public boolean overlaps(ReadableInterval interval) { long thisStart = getStartMillis(); long thisEnd = getEndMillis(); if(interval == null) { long now = DateTimeUtils.currentTimeMillis(); return(thisStart < now && now <...
for(Node currentParam = paramsParent.getFirstChild();
[BUG] for(Node currentParam = sourceNode.getFirstChild();[ERROR] INTERNAL COMPILER ERROR. testExternedPropertyName [CONTEXT] if(paramsParent == null) { parametersNode = oldType.getParametersNode(); if(parametersNode == null) { parametersNode = new FunctionParamBuilder(typeRegistry).build(); } } else { FunctionParamBu...
Node alias = createAliasFunctionNode("TT");
[BUG] Node alias = createAliasFunctionNode("T");[ERROR] The new child node has siblings. testSplitFileLevel [CONTEXT] static int estimateMinOccurrencesRequriedToAlias() { <extra_id_0> return InlineCostEstimator.getCost(alias) / 2 + 1; } [CLASS] ThrowAliasSpecification [METHOD] estimateMinOccurrencesRequriedToAli...
appendFrameTypes( nStack, stack);appendFrameTypes( nLocal, local);
[BUG] appendFrameTypes(nLocal, local); [CONTEXT] public void visitFrame( final int type, final int nLocal, final Object[] local, final int nStack, final Object[] stack) { buf.setLength(0); buf.append(ltab); buf.append("FRAME"); switch(type) { case Opcodes.F_NEW: case Opcodes.F_FULL: buf.append("FULL ["); <extra_id_...
NameInfo info = name.getAnnotation();
[BUG] [ERROR] Unexpected error(s testThisJSDoc1 [CONTEXT] private NameInfo getInfo(Name symbol) { GraphNode<Name, Reference> name = graph.getNode(symbol); <extra_id_0> if(info == null) { info = new NameInfo(); name.setAnnotation(info); } return info; [CLASS] AnalyzeNameReferences PropagateReferences NameInfo [METHOD...
if(_intern){
[BUG] if(!_dirty) {[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] } } if(!_dirty) { //need to do copy-on-write? copyArrays(); _dirty = true; } else if(_size >= _sizeThreshold) { // Need to expand? rehash(); index = _hashToIndex(calcHash(buffer, start, le...
[Delete]
[BUG] if(shape == null) { throw new IllegalArgumentException("Null 'shape' argument."); }[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public static Shape createTranslatedShape(Shape shape, double transX, double tr...
outside = new Line2D.Double(xx0, y0, xx0, y0 + this.minorTickMarkOutsideLength);
[BUG] outside = new Line2D.Double( xx0, y0, xx0, y0 + minorTickMarkInsideLength);[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] while(tt0 < t.getLastMillisecond(this.calendar) && tt0 < lastOnAxis) { double xx0 = valueT...
delegate.writeRaw( text);delegate.writeString( text);
[BUG] delegate.writeString(text); [CONTEXT] public void writeString(SerializableString text) throws IOException, JsonGenerationException { <extra_id_0> } [CLASS] JsonGeneratorDelegate [METHOD] writeString [RETURN_TYPE] void SerializableString text [VARIABLES] JsonGenerator d delegate SerializableString text boolea...
new Assignment(slot, inferConcreteType(scope, expression)));
[BUG] new Assignment( slot, inferConcreteType( scope, jsRoot)));[ERROR] cannot find symbol jsRoot [CONTEXT] public Collection<Assignment> getAssignments(ConcreteScope scope) { return Lists.newArrayList( <extra_id_0> } [CLASS] TightenTypes ConcreteScope ConcreteSlot Assignment VariableAssignAction PropertyAssignActio...
dataset.getColumnKey(column));
[BUG] dataset.getColumnKey( row));[ERROR] null testDrawWithNullInfo [CONTEXT] } } if(state.getInfo() != null) { EntityCollection entities = state.getEntityCollection(); if(entities != null && shape != null) { String tip = null; CategoryToolTipGenerator tipster = getToolTipGenerator(row, column); if(tipster != null) { ...
} else if(( tokenLen = getVarStartMatcher().isMatch(data, getPos() , 0, getLength())) > 0){
[BUG] } else if(( tokenLen = getVarStartMatcher().isMatch( data, getLength(), 0, getLength()))> 0) {[ERROR] expected:<ValuedColorEnum[Red=1]> but was:<null> testToString [CONTEXT] protected FieldPosition nextToken(char[] data) { if(getTokenList().isEmpty()) { if(!hasNext()) { return null; } int startPos = getPos(); i...
Object o = l.get(i);
[BUG] Object o = stack.subList( i);[NO-ERROR] [CONTEXT] private static Object[] asArray(final List l) { Object[] objs = new Object[l.size()]; for(int i = 0; i < objs.length; ++i) { <extra_id_0> if(o instanceof LabelNode) { o =((LabelNode) o).getLabel(); } objs[i] = o; } return objs; } [CLASS] FrameNode [METHOD] asAr...
for(int i = 0; i < names.length; i++){
[BUG] for(int i = 0; i <= names.length; i++) {[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] while(parentContext.nextNode()) { if(setupDynamicPropertyPointer()) { Object pred = nameTestExpression.computeValue(parentContext); String propertyName = Inf...
boolean firstParameter = url.indexOf("?")== -1; url += firstParameter ?"?" :"&amp;";
[BUG] [ERROR] expected:<org.jfree.chart.JFreeChart@f2a0b8e> but was:<org.jfree.chart.JFreeChart@58ceff1> testSerialization1 [CONTEXT] public String generateURL(XYDataset dataset, int series, int item) { String url = this.prefix; <extra_id_0> url += this.seriesParameterName +"=" + series +"&amp;" + this.itemParameter...
if(jgen != null){
[BUG] if(tmpJgen != null) {[ERROR] cannot find symbol tmpJgen [CONTEXT] { Closeable toClose =(Closeable) value; try { if(_rootType == null) { _serializerProvider(cfg).serializeValue(jgen, value); } else { _serializerProvider(cfg).serializeValue(jgen, value, _rootType, _rootSerializer); } JsonGenerator tmpJgen = jgen; ...
bv.put12( 1);
[BUG] bv.put12(".s.IFJDCS".charAt(i.type), i.index); [CONTEXT] } } else if(value instanceof float[]) { float[] v =(float[]) value; bv.put12('[', v.length); for(int i = 0; i < v.length; i++) { bv.put12('F', cw.newFloat(v[i]).index); } } else if(value instanceof double[]) { double[] v =(double[]) value; bv.put12('[', ...
buf.append('}');
[BUG] buf.append(",");buf.append( '}');[NO-ERROR] [CONTEXT] appendFrameTypes(nLocal, local); buf.append("}, 0, null"); break; case Opcodes.F_CHOP: buf.append("mv.visitFrame(Opcodes.F_CHOP,").append(nLocal).append(", null, 0, null"); break; case Opcodes.F_SAME: buf.append("mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null...
double yyMax = rangeAxis.valueToJava2D(yMax.doubleValue() , dataArea, location);
[BUG] double yyMax = location.valueToJava2D( yMax.doubleValue(), dataArea, rangeAxis);[ERROR] cannot find symbol [CONTEXT] BoxAndWhiskerXYDataset boxAndWhiskerData =(BoxAndWhiskerXYDataset) dataset; Number x = boxAndWhiskerData.getX(series, item); Number yMax = boxAndWhiskerData.getMaxRegularValue(series, item); Numbe...
fields.weekyear = new OffsetDateTimeField(new SkipUndoDateTimeField(this, field), BUDDHIST_OFFSET);
[BUG] fields.year = new OffsetDateTimeField( new SkipUndoDateTimeField( this, field) , BUDDHIST_OFFSET);fields.weekyear = new OffsetDateTimeField( new SkipUndoDateTimeField( this, field) , BUDDHIST_OFFSET);[ERROR] [CONTEXT] protected void assemble(Fields fields) { if(getParam() == null) { DateTimeField field = fields....
element.wrap(html);
[BUG] element.html( html);element.wrap( html);[ERROR] expected:<[<img alt="" />]> but was:<[]> testHandlesEmptyAttributes [CONTEXT] public Elements wrap(String html) { Validate.notEmpty(html); for(Element element : contents) { <extra_id_0> } return this; } [CLASS] Elements [METHOD] wrap [RETURN_TYPE] Elements String...
_outBuffer[ptr++] =(byte)(0x80 |(( c >> 6)& 0x3f));
[BUG] _outBuffer[ptr++] =(byte)(0x80 |(( c >> 2) & 0x3f));[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] if(_outPtr >= _outBufferEnd) { // let's require enough room, first _out.write(_outBuffer, 0, _outPtr); _outPtr = 0; } if(c < 0x80) { // ascii _outBuff...
this.maximumDrawHeight = maximumDrawHeight;
[BUG] this.minimumDrawWidth = minimumDrawWidth;this.maximumDrawHeight = maximumDrawHeight;[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] boolean properties, boolean save, boolean print, boolean zoom, boolean tooltips...
file = new File(new File(debugLocation), dirs +".asm");
[BUG] file = new File( new File( debugLocation) , dirs <".asm");[NO-ERROR] [CONTEXT] byte[] b = DebuggingClassWriter.super.toByteArray(); if(debugLocation != null) { String dirs = className.replace('.', File.separatorChar); try { new File(debugLocation + File.separatorChar + dirs).getParentFile().mkdirs(); File file =...
[BUG] series.addChangeListener(this); [CONTEXT] public TimePeriodValuesCollection(TimePeriodValues series) { this.data = new java.util.ArrayList(); this.xPosition = TimePeriodAnchor.MIDDLE; if(series != null) { this.data.add(series); <extra_id_0> } [CLASS] TimePeriodValuesCollection [METHOD] <init> [RETURN_TYPE] T...
outputLocals[local] = type;type = outputLocals[local] = LOCAL | local;
[BUG] type = outputLocals[local] = LOCAL | local; [CONTEXT] private int get(final int local) { if(outputLocals == null || local >= outputLocals.length) { return LOCAL | local; } else { int type = outputLocals[local]; if(type == 0) { <extra_id_0> } return type; } } [CLASS] Frame [METHOD] get [RETURN_TYPE] int fin...
h[2] = size.height;
[BUG] h[1] = size.height;h[2] = size.height;[ERROR] null testEquals [CONTEXT] w[0] = size.width; h[0] = size.height; } if(this.bottomBlock != null) { Size2D size = this.bottomBlock.arrange( g2, RectangleConstraint.NONE); w[1] = size.width; h[1] = size.height; } if(this.leftBlock != null) { Size2D size = this.leftBlock...
static final DiagnosticType TEMPLATE_TYPE_EXPECTED = DiagnosticType.error("JSC_TEMPLATE_TYPE_EXPECTED","The template type must be a parameter type");
[BUG] static final DiagnosticType TEMPLATE_TYPE_EXPECTED = DiagnosticType.warning("JSC_TEMPLATE_TYPE_EXPECTED","The template type must be a parameter type");[ERROR] null testDebugFlag3 [CONTEXT] <extra_id_0> [CLASS] FunctionTypeBuilder [VARIABLES]
denominator /= d;
[BUG] if(denominator == 0) { denominator /= d; }[ERROR] Inconsistent cumulative probabilities for(-667.2485619,-65.6230835) expected:<0.0090000000004829> but was:<0.0> testConsistency [CONTEXT] private void reduce() { int d = MathUtils.gcd(numerator, denominator); if(d > 1) { numerator /= d; <extra_id_0> } if(denomi...
return(RegularTimePeriod)getComparable();
[BUG] [ERROR] expected:<org.jfree.data.time.TimePeriodValuesCollection@4edde6e5> but was:<org.jfree.data.time.TimePeriodValuesCollection@1ed6993a> testSerialization [CONTEXT] public RegularTimePeriod getPeriod() { <extra_id_0> [CLASS] OHLCItem [METHOD] getPeriod [RETURN_TYPE] RegularTimePeriod [VARIABLES] boolean
instant = super.add(instant, amount); FieldUtils.verifyValueBounds(this, get(instant), iMin, iMax);
[BUG] [ERROR] testConstructor_nullObject_nullDateTimeZone [CONTEXT] public long add(long instant, long amount) { <extra_id_0> return instant; [CLASS] OffsetDateTimeField [METHOD] add [RETURN_TYPE] long long instant long amount [VARIABLES] long amount instant serialVersionUID int amount iMax iMin iOffset maxValue min...
g2.draw(new Line2D.Double(minY, x1, maxY, x1)); this.minIcon.paintIcon(null, g2,(int)minY,(int)x1);
[BUG] [ERROR] null testDrawWithNullInfo [CONTEXT] if(orient == PlotOrientation.VERTICAL) { g2.draw(new Line2D.Double(x1, minY, x1, maxY)); this.minIcon.paintIcon(null, g2,(int) x1,(int) minY); this.maxIcon.paintIcon(null, g2,(int) x1,(int) maxY); } else { <extra_id_0> this.maxIcon.paintIcon(null, g2,(int) maxY,(int)...
add(")");
[BUG] add( n, context);add(")");[ERROR] null testLiteralProperty [CONTEXT] break; case Token.EMPTY: Preconditions.checkState(childCount == 0); break; case Token.GETPROP: { Preconditions.checkState(childCount == 2); Preconditions.checkState(last.getType() == Token.STRING); boolean needsParens =(first.getType() == Token...
push(t2);
[BUG] push( cw, s);push( t2);[NO-ERROR] [CONTEXT] t1 = pop(); t2 = pop(); t3 = pop(); t4 = pop(); push(t2); push(t1); push(t4); push(t3); push(t2); push(t1); break; case Opcodes.SWAP: t1 = pop(); t2 = pop(); push(t1); <extra_id_0> break; case Opcodes.IADD: case Opcodes.ISUB: case Opcodes.IMUL: case Opcodes.IDIV: cas...
super(msg);
[BUG] [NO-ERROR] [CONTEXT] protected JsonProcessingException(String msg, JsonLocation loc, Throwable rootCause) { <extra_id_0> if(rootCause != null) { initCause(rootCause); } _location = loc; [CLASS] JsonProcessingException [METHOD] <init> [RETURN_TYPE] Throwable) String msg JsonLocation loc Throwable rootCause [VA...
return 1;
[BUG] return 1 - 1;[ERROR] expected:<org.jfree.data.time.TimePeriodValuesCollection@4edde6e5> but was:<org.jfree.data.time.TimePeriodValuesCollection@1ed6993a> testSerialization [CONTEXT] else if(m0 > m1) { return 1; } else { if(t0 < t2) { return -1; } else if(t0 > t2) { return 1; } else { if(t1 < t3) { return -1; } e...
if(childValue instanceof Map && !lineage.contains(childValue)) {
[BUG] if(debug && childValue != null) {[ERROR] expected:<...{ testVerbosePrint [CONTEXT] return; } if(label != null) { out.print(label); out.println(" ="); } printIndent(out, lineage.size()); out.println("{"); lineage.push(map); for(final Map.Entry<?, ?> entry : map.entrySet()) { final Object childKey = entry.getKey()...
pos = checkFormalTypeParameter(signature, pos);
[BUG] pos = checkTypeArgument( signature, pos);pos = checkFormalTypeParameter( signature, pos);[NO-ERROR] [CONTEXT] private static int checkFormalTypeParameters(final String signature, int pos) { pos = checkChar('<', signature, pos); pos = checkFormalTypeParameter(signature, pos); while(getChar(signature, pos) != '>'...
key = new Pair(key, locale);
[BUG] key = new Pair( key, mLocale);[ERROR] non-static variable mLocale cannot be referenced from a static context [CONTEXT] public static synchronized FastDateFormat getDateInstance(int style, TimeZone timeZone, Locale locale) { Object key = new Integer(style); if(timeZone != null) { key = new Pair(key, timeZone); } ...
if(test == key ||(values[N + index] == hash && test.equals(key))){
[BUG] if(test == key ||(values[N + index] == n && test.equals( key))) {[ERROR] cannot find symbol n [CONTEXT] return((fraction >>> shift) & mask) | 1; } else { return(fraction &(mask >>> -shift)) | 1; } } private int findIndex(Object key) { if(keys != null) { int hash = key.hashCode(); int fraction = hash * A; int ind...
ge = gs + G_SIZE - 1;
[BUG] ge = gs + G_SIZE;[ERROR] null testArUnarchive [CONTEXT] for(t = 0; t < nGroups; t++) { for(v = 0; v < alphaSize; v++) { rfreq[t][v] = 0; } } nSelectors = 0; totc = 0; gs = 0; while(true) { if(gs >= nMTF) { break; } <extra_id_0> if(ge >= nMTF) { ge = nMTF - 1; } Calculate the cost of this group as coded by each...
buffer.append(tmp);
[BUG] [NO-ERROR] [CONTEXT] public static String swapCase(String str) { int strLen; if(str == null ||(strLen = str.length()) == 0) { return str; } StringBuffer buffer = new StringBuffer(strLen); boolean whitespace = true; char ch = 0; char tmp = 0; for(int i = 0; i < strLen; i++) { ch = str.charAt(i); if(Character.isUp...
if(type.isUnionType()){
[BUG] if(type.isFunctionPrototypeType()) {[ERROR] INTERNAL COMPILER ERROR. testTwoSeparateFieldsTwoTypes [CONTEXT] @Override public Iterable<JSType> getTypeAlternatives(JSType type) { <extra_id_0> return((UnionType) type).getAlternates(); } else { ObjectType objType = type.toObjectType(); if(objType != null && objTy...
checkStartCode();
[BUG] checkConstant( cst);checkStartCode();[NO-ERROR] [CONTEXT] public void visitJumpInsn(final int opcode, final Label label) { <extra_id_0> checkEndCode(); checkOpcode(opcode, 6); checkLabel(label, false,"label"); mv.visitJumpInsn(opcode, label); } [CLASS] CheckMethodAdapter [METHOD] visitJumpInsn [RETURN_TYPE] vo...
return(Library[])this.libraries.toArray(new Library[this.libraries.size() ]);
[BUG] return(Library[]) this.libraries.toArray( new Library[this.libraries.size() + 0 ]);[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public Library[] getLibraries() { <extra_id_0> } [CLASS] BasicProjectInfo Opti...
buf.append(name).append('=');
[BUG] buf.append( value);buf.append( name).append( '=');[NO-ERROR] [CONTEXT] public TraceAnnotationVisitor() { } public void visit(final String name, final Object value) { buf.setLength(0); appendComa(valueNumber++); if(name != null) { <extra_id_0> } if(value instanceof String) { visitString((String) value); } el...
Preconditions.checkArgument(left.parent == null);
[BUG] Preconditions.checkArgument( right.parent == null,"second new child has existing parent");Preconditions.checkArgument( left.parent == null);[NO-ERROR] [CONTEXT] public Node(int nodeType, Node left, Node mid, Node mid2, Node right) { <extra_id_0> Preconditions.checkArgument(left.next == null); Preconditions.che...
push(interpreter.copyOperation(insn, value1));
[BUG] push( interpreter.binaryOperation( insn, value3));[NO-ERROR] [CONTEXT] push(interpreter.copyOperation(insn, value1)); break; } } throw new AnalyzerException("Illegal use of DUP2_X1"); case Opcodes.DUP2_X2: value1 = pop(); if(value1.getSize() == 1) { value2 = pop(); if(value2.getSize() == 1) { value3 = pop(); if(...
extraFields.putAll(copy);
[BUG] extraFields.remove( copy);[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] public void addAsFirstExtraField(ZipExtraField ze) { LinkedHashMap copy = extraFields; extraFields = new LinkedHashMap(); extraFields.put(ze.getHeaderId(), ze); if(copy != null) { copy.remove(ze.getHeaderId()); ...
result.append(" version");
[BUG] result.append( getLicenceText());result.append(" version");[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public void setContributors(final List contributors) { this.contributors = contributors; } public Str...
new DeserializationConfig(this, _mapperFeatures, newDeserFeatures);
[BUG] new DeserializationConfig( this, newDeserFeatures);[ERROR] no suitable constructor found for DeserializationConfig(DeserializationConfig,int) [CONTEXT] public DeserializationConfig with(DeserializationFeature feature) { int newDeserFeatures =(_deserFeatures | feature.getMask()); return(newDeserFeatures == _deser...
jjmatchedPos = 4;
[BUG] jjmatchedPos = 20;jjmatchedPos = 4;[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] if(jjmatchedPos < 4) { jjmatchedKind = 78; <extra_id_0> } [CLASS] XPathParserTokenManager [METHOD] jjStopStringLiteralDfa_0 [RETURN_TYPE] int int pos long activ...
[BUG] TypeResolverBuilder<?> b = ai.findTypeResolver(config, ac, baseType); [CONTEXT] { Class<?> cls = baseType.getRawClass(); BeanDescription bean = config.introspectClassAnnotations(cls); AnnotatedClass ac = bean.getClassInfo(); AnnotationIntrospector ai = config.getAnnotationIntrospector(); <extra_id_0> Colle...
s += n << 1;
[BUG] s += n << 8;[ERROR] null testArUnarchive [CONTEXT] int lastShadow = -1; int zt = selector[groupNo] & 0xff; int[] base_zt = base[zt]; int[] limit_zt = limit[zt]; int[] perm_zt = perm[zt]; int minLens_zt = minLens[zt]; while(nextSym != eob) { if((nextSym == RUNA) ||(nextSym == RUNB)) { int s = -1; for(int n = 1; t...
if(( i = ilim) < 0) {
[BUG] if(( j & Bletch)!= 0){ [CONTEXT] boolean fast_failed = false; if(ilim >= 0 && ilim <= Quick_max && try_quick) { i = 0; d2 = d; k0 = k; ilim0 = ilim; ieps = 2; /* conservative */ if(k > 0) { ds = tens[k&0xf]; j = k >> 4; <extra_id_0> j &= Bletch - 1; d /= bigtens[n_bigtens-1]; ieps++; } for(;(j != 0); j >>= ...
[BUG] this.setSize(size); [CONTEXT] public CpioArchiveEntry(final String name, final long size) { this(FORMAT_NEW); this.name = name; <extra_id_0> [CLASS] CpioArchiveEntry [METHOD] <init> [RETURN_TYPE] String,long) String name final long size [VARIABLES] short fileFormat format String name boolean long chksum fil...
} else if(( quad & ~0x00FF0000)== 0){
[BUG] } else if(( quad & ~0x00FF0000) >= 0) {[ERROR] Unsupported UCS-4 endianness(3412) detected testStreaming [CONTEXT] private boolean checkUTF32(int quad) throws IOException { if((quad >> 8) == 0) { // 0x000000?? -> UTF32-BE _bigEndian = true; } else if((quad & 0x00FFFFFF) == 0) { // 0x??000000 -> UTF32-LE _bigEnd...
for(int i = 0; i < len; ++i){
[BUG] for(short i = 0; i < len; ++i) {[NO-ERROR] [CONTEXT] continue; } if(!_properties[i].hasDefaultType()) { throw ctxt.mappingException("Missing external type id property '"+_properties[i].getTypePropertyName()+"'"); } typeId = _properties[i].getDefaultTypeId(); } else if(_tokens[i] == null) { SettableBeanProperty ...
} else if(Constants.TYPE_DOUBLE.equals( type)){
[BUG] } else if(Constants.TYPE_LONG.equals(type)) { [CONTEXT] public static Type getUnboxedType(Type type) { if(Constants.TYPE_INTEGER.equals(type)) { return Type.INT_TYPE; } else if(Constants.TYPE_BOOLEAN.equals(type)) { return Type.BOOLEAN_TYPE; } else if(Constants.TYPE_DOUBLE.equals(type)) { return Type.DOUBLE_TY...
int match = matchParameterTypes(methods[i].getParameterTypes() , arguments);
[BUG] int match = matchParameterTypes( methods[i].getParameterTypes());[ERROR] method matchParameterTypes in class MethodLookupUtils cannot be applied to given types; [CONTEXT] if(!Modifier.isStatic(methods[i].getModifiers()) && methods[i].getName().equals(name)) { <extra_id_0> if(match != NO_MATCH) { if(match > cu...
advance();
[BUG] nextValue();[ERROR] expected:<[a, b, c]> but was:<[]> testParseComments [CONTEXT] public int nextInt() throws IOException { quickPeek(); if(value == null) { throw new IllegalStateException("Expected an int but was" + peek()); } int result; try { result = Integer.parseInt(value); } catch(NumberFormatException ign...
double l_xi = l_x1 +(l_slopeA *(l_x2 - l_x1));
[BUG] double l_xi = l_x1 +(l_slopeA *(l_y4 - l_x1));[ERROR] null testDrawWithNullInfo [CONTEXT] if((0 < l_slopeA) &&(l_slopeA <= 1) &&(0 < l_slopeB) &&(l_slopeB <= 1)) { <extra_id_0> double l_yi = l_y1 +(l_slopeA *(l_y2 - l_y1)); l_intersectX= new Double(l_xi); l_intersectY= new Double(l_yi); b_intersect = true; b_m...
c = val;
[BUG] c = '\n';c = val;[NO-ERROR] [CONTEXT] default: if('0' <= c && c < '8') { int val = c - '0'; c = getChar(); if('0' <= c && c < '8') { val = 8 * val + c - '0'; c = getChar(); if('0' <= c && c < '8' && val <= 037) { val = 8 * val + c - '0'; c = getChar(); } } ungetChar(c); <extra_id_0> } } } addToString(c); c = ...
result = 29 * result +(this.categoryParameterName != null ? this.categoryParameterName.hashCode(): -7);
[BUG] result = 29 * result +(this.categoryParameterName != null ? this.categoryParameterName.hashCode() : 0); [CONTEXT] public int hashCode() { int result; result =(this.prefix != null ? this.prefix.hashCode() : 0); result = 29 * result +(this.seriesParameterName != null ? this.seriesParameterName.hashCode() : 0); ...
_checkInvalidCopy(MappingJsonFactory.class);
[BUG] [ERROR] expected:<{["x":4]}> but was:<{[ testPojoWriting [CONTEXT] public JsonFactory copy() { <extra_id_0> return new MappingJsonFactory(null); [CLASS] MappingJsonFactory [METHOD] copy [RETURN_TYPE] JsonFactory [VARIABLES] long serialVersionUID boolean
double delta;
[BUG] int delta;[ERROR] possible loss of precision [CONTEXT] x1 = x2; x2 = x0; y0 = y1; y1 = y2; y2 = y0; } if(Math.abs(y1) <= functionValueAccuracy) { setResult(x1, i); return result; } if(Math.abs(oldDelta) < Math.max(relativeAccuracy * Math.abs(x1), absoluteAccuracy)) { setResult(x1, i); return result; } <extra_id...
MathUtils.mulAndCheck(denominator/d1, fraction.denominator/d2));
[BUG] MathUtils.mulAndCheck( denominator/d1, q0/d2));[ERROR] cannot find symbol q0 [CONTEXT] BigInteger upv = BigInteger.valueOf(fraction.numerator).multiply(BigInteger.valueOf(denominator/d1)); BigInteger t = isAdd ? uvp.add(upv) : uvp.subtract(upv); int tmodd1 = t.mod(BigInteger.valueOf(d1)).intValue(); int d2 =(tm...
if(code.length() == 0){
[BUG] if(code.length()== 0){[NO-ERROR] [CONTEXT] static class LineNumberingFormatter implements ExcerptFormatter { public String formatLine(String line, int lineNumber) { return line; } public String formatRegion(Region region) { if(region == null) { return null; } String code = region.getSourceExcerpt(); <extra_id...
private final Predicate<? super T> iPredicate1;
[BUG] private Predicate<? super T> iPredicate1;[ERROR] [CONTEXT] private static final long serialVersionUID = -8791518325735182855L; <extra_id_0> private final Predicate<? super T> iPredicate2; [CLASS] OrPredicate [VARIABLES]
srcAndRefPositions = null;
[BUG] srcAndRefPositions = a; [CONTEXT] private void addReference( final int sourcePosition, final int referencePosition) { if(srcAndRefPositions == null) { srcAndRefPositions = new int[6]; } if(referenceCount >= srcAndRefPositions.length) { int[] a = new int[srcAndRefPositions.length + 6]; System.arraycopy(srcAndRe...
format = getInstance(pattern, timeZone, locale);
[BUG] format = getInstance( locale, timeZone, pattern);[ERROR] no suitable method found for getInstance(Locale,TimeZone,String) [CONTEXT] public static synchronized FastDateFormat getTimeInstance(int style, TimeZone timeZone, Locale locale) { Object key = new Integer(style); if(timeZone != null) { key = new Pair(key, ...
if('a' <= c){
[BUG] if('a' <= next) {[ERROR] cannot find symbol next [CONTEXT] public static int xDigitToInt(int c, int accumulator) { check: { if(c <= '9') { c -= '0'; if(0 <= c) { break check; } } else if(c <= 'F') { if('A' <= c) { c -=('A' - 10); break check; } } else if(c <= 'f') { <extra_id_0> c -=('a' - 10); break check; } ...
push( ARRAY_OF | CHAR);push( ARRAY_OF | SHORT);
[BUG] push(ARRAY_OF | SHORT); [CONTEXT] push(UNINITIALIZED | cw.addUninitializedType(item.strVal1, arg)); break; case Opcodes.NEWARRAY: pop(); switch(arg) { case Opcodes.T_BOOLEAN: push(ARRAY_OF | BOOLEAN); break; case Opcodes.T_CHAR: push(ARRAY_OF | CHAR); break; case Opcodes.T_BYTE: push(ARRAY_OF | BYTE); break; c...
if(opcode == Opcodes.GOTO) {
[BUG] if(opcode == Opcodes.INVOKESTATIC){ [CONTEXT] if(argSize == 0) { argSize = getArgumentsAndReturnSizes(desc); i.intVal = argSize; } int size; <extra_id_0> size = stackSize -(argSize >> 2) +(argSize & 0x03) + 1; } else { size = stackSize -(argSize >> 2) +(argSize & 0x03); } if(size > maxStackSize) { maxSt...
fractValue *= 100;
[BUG] fractValue *= 63;[ERROR] null testTest [CONTEXT] if(fractLen <= 0) { fractValue = 0; } else { if(fractLen >= 3) { fractValue = parseInt(text, fractPos, 3); } else { fractValue = parseInt(text, fractPos, fractLen); if(fractLen == 1) { <extra_id_0> } else { fractValue *= 10; } } if(wholeValue < 0) { fractValue =...
av.visit( name, value);: av.visitArray( name) , false);
[BUG] : av.visitArray(name), false); [CONTEXT] public AnnotationVisitor visitArray(final String name) { checkEnd(); checkName(name); return new CheckAnnotationAdapter(av == null ? null <extra_id_0> } [CLASS] CheckAnnotationAdapter [METHOD] visitArray [RETURN_TYPE] AnnotationVisitor String name [VARIABLES] Annotati...
if(NodeUtil.isName(lhs)) { Var var = scope.getVar(lhs.getString()); if(var == null || var.scope != scope){ sideEffectInfo.setTaintsGlobalState(); }
[BUG] com.google.javascript.jscomp.Scope.Var var = scope.getVar(lhs.getString()); if((var == null) ||((var.scope) != scope)) { sideEffectInfo.setTaintsGlobalState();};[ERROR] null testExternedPropertyName [CONTEXT] private void visitAssignmentOrUnaryOperatorLhs( FunctionInformation sideEffectInfo, Scope scope, Node lh...
stringSwitchHelper(e, bucket, callback, def, end, index + 1);
[BUG] stringSwitchHelper( e, bucket, callback, def, end, 0);stringSwitchHelper( e, bucket, callback, def, end, index + 1);[NO-ERROR] [CONTEXT] final int index) throws Exception { final int len =((String)strings.get(0)).length(); final Map buckets = CollectionUtils.bucket(strings, new Transformer() { public Object tran...
add(value.substring(0, index));
[BUG] [ERROR] expected:<Two [Words]> but was:<Two []> test15648 [CONTEXT] if(hasValueSeparator()) { char sep = getValueSeparator(); int index = value.indexOf(sep); while(index != -1) { if(values.size() ==(numberOfArgs - 1)) { break; } <extra_id_0> value = value.substring(index + 1); index = value.indexOf(sep); } ...
return this;
[BUG] return null;[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] Builder setSourceMap(SourceMap sourceMap) { this.sourceMap = sourceMap; <extra_id_0> } [CLASS] Builder [METHOD] setSourceMap [RETURN_TYPE] CodePrinter$Builder SourceMap sourceMap [VARIABLES] Charset outputCharset boolean lineBreak outputTypes pret...
mv.visitFrame(type, local.size() , asArray(local), 0, null);
[BUG] mv.visitFrame( type, stack.size(), FrameNode( local) , 0, null);[NO-ERROR] [CONTEXT] public void accept(final MethodVisitor mv) { switch(type) { case Opcodes.F_NEW: case Opcodes.F_FULL: mv.visitFrame(type, local.size(), asArray(local), stack.size(), asArray(stack)); break; case Opcodes.F_APPEND: mv.visitFrame(ty...
return -1;
[BUG] return -2;[NO-ERROR] [CONTEXT] public static int LCONST(long value) { if(value == 0L) { return Constants.LCONST_0; } else if(value == 1L) { return Constants.LCONST_1; } else { <extra_id_0> } } [CLASS] TypeUtils [METHOD] LCONST [RETURN_TYPE] int long value [VARIABLES] Map rtransforms transforms long value boole...