fix stringlengths 2 496 | ctx stringlengths 80 394k |
|---|---|
if(_inputStream == null) { | [BUG] if(_binaryValue == null){ [CONTEXT] { if(_currToken != JsonToken.VALUE_STRING &&(_currToken != JsonToken.VALUE_EMBEDDED_OBJECT || _binaryValue == null)) { _reportError("Current token("+_currToken+") not VALUE_STRING or VALUE_EMBEDDED_OBJECT, can not access as binary"); } if(_tokenIncomplete) { try { _binaryVa... |
} else if(b64variant.usesPaddingChar(ch)) { | [BUG] } else if(ch.usesPaddingChar( b64variant)){[ERROR] char cannot be dereferenced [CONTEXT] protected void _reportInvalidBase64(Base64Variant b64variant, char ch, int bindex, String msg) throws JsonParseException { String base; if(ch <= INT_SPACE) { base ="Illegal white space character(code 0x"+Integer.toHexString(... |
drawSecondaryPass(g2, plot, dataset, pass, series, item, domainAxis, dataArea, rangeAxis, crosshairState, entities); | [BUG] drawSecondaryPass( g2, plot, dataset, pass, series, item, domainAxis, entities, rangeAxis, crosshairState, dataArea);[ERROR] method drawSecondaryPass in class XYLineAndShapeRenderer cannot be applied to given types; [CONTEXT] if(getItemLineVisible(series, item)) { drawPrimaryLineAsPath(state, g2, plot, dataset, ... |
private final List<String> constructors = Lists.newArrayList(); | [BUG] private List<String> constructors = Lists.newArrayList();[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] private class CheckRequiresForConstructorsCallback implements Callback { <extra_id_0> private final List<String> requires = Lists.newArrayList(); private final List<Node> newNodes = Lists.newArrayList... |
double barLength = Math.max(Math.abs(translatedValue - translatedBase), getMinimumBarLength()); | [BUG] double barLength = Math.max( Math.abs( translatedBase - translatedValue) , getMinimumBarLength());[ERROR] null testDrawWithNullInfo [CONTEXT] double translatedValue; RectangleEdge location = plot.getRangeAxisEdge(); if(value >= 0.0) { translatedBase = rangeAxis.valueToJava2D(positiveBase, dataArea, location); tr... |
return getWrappedField().getDifferenceAsLong(minuendInstant, subtrahendInstant); | [BUG] return getWrappedField().getDifferenceAsLong( minuendInstant);[ERROR] method getDifferenceAsLong in class DateTimeField cannot be applied to given types; [CONTEXT] public long getDifferenceAsLong(long minuendInstant, long subtrahendInstant) { <extra_id_0> } [CLASS] GJYearOfEraDateTimeField [METHOD] getDifferen... |
sumXX += dx * dx *(double)n /(double)(n + 1.0); | [BUG] sumXX += n * dx *(double) dx /(double)(n + 1.0);[ERROR] Incorrect inverse cumulative probability value returned for 0.05 expected:<4> but was:<3> testInverseCumulativeProbabilities [CONTEXT] public void addData(double x, double y) { if(n == 0) { xbar = x; ybar = y; } else { double dx = x - xbar; double dy = y - ... |
rotationAnchor = rotationAnchor; | [BUG] rotationAnchor = TextAnchor.BOTTOM_CENTER; [CONTEXT] 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(edge == RectangleEdge.TOP) { anchor = TextAnchor.BO... |
referenceAdded = maybeAddReferenceUsingMode(t, fs, callNode, module, mode); | [BUG] referenceAdded = maybeAddReferenceUsingMode( t, module, callNode, fs, mode);[ERROR] method maybeAddReferenceUsingMode in class InlineFunctions.FindCandidatesReferences cannot be applied to given types; [CONTEXT] void maybeAddReference(NodeTraversal t, FunctionState fs, Node callNode, JSModule module) { if(!fs.ca... |
if(node.hasChildren()){ | [BUG] if(init.hasChildren()) {[ERROR] cannot find symbol init [CONTEXT] private void handleReturn(Node node) { Node lastJump = null; for(Iterator<Node> iter = exceptionHandler.iterator(); iter.hasNext();) { Node curHandler = iter.next(); if(NodeUtil.isFunction(curHandler)) { break; } if(NodeUtil.hasFinally(curHandler)... |
return ListUtil.filter(new LinkedList<Invocation>(invocations), new RemoveToString()); | [BUG] return ListUtil.filter( new Set <Invocation>( invocations) , new RemoveToString());[ERROR] cannot find symbol [CONTEXT] public List<Invocation> getAll() { <extra_id_0> } [CLASS] RegisteredInvocations RemoveToString [METHOD] getAll [RETURN_TYPE] List [VARIABLES] List invocations boolean |
reportWarning(EXTENDS_WITHOUT_TYPEDEF, fnName); | [BUG] reportWarning( fnName, EXTENDS_WITHOUT_TYPEDEF);[ERROR] method reportWarning in class FunctionTypeBuilder cannot be applied to given types; [CONTEXT] if(isConstructor || isInterface) { baseType = ObjectType.cast(info.getBaseType().evaluate(scope)); if(baseType == null) { reportWarning(EXTENDS_NON_OBJECT, fnName,... |
int ss1 = calcSerial(1, 1, underestimatedYYYY); | [BUG] short ss1 = calcSerial( 1, 1, underestimatedYYYY);[ERROR] possible loss of precision [CONTEXT] final int days = this.serial - SERIAL_LOWER_BOUND; final int overestimatedYYYY = 1900 +(days / 365); final int leaps = SerialDate.leapYearCount(overestimatedYYYY); final int nonleapdays = days - leaps; int underestima... |
if((c == '.' || c == 'e')) { | [BUG] if(c == '.' || c == 'e' || c == 'E'){ [CONTEXT] if(_inputPtr >= end) { return _parserNumber2(outBuf, outPtr, negative, intLen); } c =(int) _inputBuffer[_inputPtr++] & 0xFF; if(c < INT_0 || c > INT_9) { break; } ++intLen; if(outPtr >= outBuf.length) { outBuf = _textBuffer.finishCurrentSegment(); outPtr = 0; } o... |
AnnotationVisitor v = v.visitAnnotation( name); | [BUG] AnnotationVisitor v = av.visitArray(name); [CONTEXT] static void accept( final AnnotationVisitor av, final String name, final Object value) { if(av != null) { if(value instanceof String[]) { String[] typeconst =(String[]) value; av.visitEnum(name, typeconst[0], typeconst[1]); } else if(value instanceof Annotat... |
super(number.doubleValue() , label, textAnchor, rotationAnchor, angle); | [BUG] super( number.doubleValue(), label, textAnchor, angle);[ERROR] constructor ValueTick in class ValueTick cannot be applied to given types; [CONTEXT] public NumberTick(Number number, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle) { <extra_id_0> this.number = number; } [CLASS] Numbe... |
private static final Signature NEW_INSTANCE = new Signature("newInstanceInst", MULTICAST_DELEGATE, new Type[0]); | [BUG] private static final Signature NEW_INSTANCE = new Signature("newInstance", MULTICAST_DELEGATE, new Type[0]); [CONTEXT] <extra_id_0> [CLASS] MulticastDelegate Generator 1 [VARIABLES] |
sourcePosition = mergeLineCharNo(lineno, charno); | [BUG] sourcePosition = mergeLineCharNo( LOCAL_PROP, charno);[ERROR] expected:<0> but was:<7> testLinenoCharnoBinaryOr [CONTEXT] public Node(int nodeType, Node left, Node right, int lineno, int charno) { this(nodeType, left, right); <extra_id_0> } [CLASS] Node NumberNode StringNode PropListItem SiblingNodeIterable An... |
c = _convertSurrogate(c, text.charAt(inputPtr++)); | [BUG] int ch =(int) text.charAt( inputPtr++);c = _convertSurrogate( c, text.charAt( inputPtr++));[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] outputBuffer[outputPtr++] =(byte)(0xe0 |(c >> 12)); if(outputPtr >= outputEnd) { outputBuffer = byteBuilder.fin... |
int newInt = intForType.size() + 1; | [BUG] short newInt = intForType.size()+ 1;[ERROR] possible loss of precision [CONTEXT] private int getIntForType(JSType type) { if(intForType.containsKey(type)) { return intForType.get(type).intValue(); } <extra_id_0> intForType.put(type, newInt); return newInt; } [CLASS] AmbiguateProperties 1 PropertyGraph Property... |
for(int i = 0; i < indices.length; i++){ | [BUG] for(int i = 0; i <= indices.length; i++) {[ERROR] null test_other [CONTEXT] private PeriodType withFieldRemoved(int indicesIndex, String name) { int fieldIndex = iIndices[indicesIndex]; if(fieldIndex == -1) { return this; } DurationFieldType[] types = new DurationFieldType[size() - 1]; for(int i = 0; i < iTypes.... |
decodedData =(decodedData << 6)| bits; | [BUG] decodedData =(decodedData << decodedData) | bits;[NO-ERROR] [CONTEXT] } if(ptr >= len) { _reportBase64EOF(); } ch = str.charAt(ptr++); if(!usesPaddingChar(ch)) { _reportInvalidBase64(ch, 3,"expected padding character '"+getPaddingChar()+"'"); } decodedData >>= 4; builder.append(decodedData); continue; } <extra_... |
if(!isLastChar(wdsz, n)&&(FRONTV.indexOf(local.charAt(n + 1)) >= 0)) { | [BUG] if(!isLastChar( wdsz, n) &&( FRONTV.indexOf( local.charAt( n + 1))== 0)){[ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition [CONTEXT] break; } code.append(symb); break; case 'C' : // lots of C special cases if(isPreviousChar(local, n, 'S') && !isLastChar(wdsz, n) &&(FRONTV.indexOf(loca... |
set(instance, propName, deserialize(jp, ctxt)); | [BUG] set( propName, instance, deserialize( jp, ctxt));[ERROR] method set in class SettableAnyProperty cannot be applied to given types; [CONTEXT] public final void deserializeAndSet(JsonParser jp, DeserializationContext ctxt, Object instance, String propName) throws IOException, JsonProcessingException { <extra_id_0... |
ret =(numerator == rhs.numerator)&&(denominator == rhs.denominator); | [BUG] ret =(numerator == rhs.numerator) &&( denominator == p0);[ERROR] cannot find symbol p0 [CONTEXT] public boolean equals(Object other) { boolean ret; if(this == other) { ret = true; } else if(other == null) { ret = false; } else { try { Fraction rhs =(Fraction)other; <extra_id_0> } catch(ClassCastException ex) ... |
saveField(new SavedField(fieldType.getField(iChrono), text, locale)); | [BUG] saveField( new SavedField( iChrono.getField( fieldType) , text, locale));[ERROR] cannot find symbol [CONTEXT] public void saveField(DateTimeFieldType fieldType, String text, Locale locale) { <extra_id_0> } [CLASS] DateTimeParserBucket SavedState SavedField [METHOD] saveField [RETURN_TYPE] void DateTimeFieldTyp... |
newMap.put(key, map.get(key)); | [BUG] newMap.put( map, key.get( key));[ERROR] cannot find symbol [CONTEXT] public Object clone() throws CloneNotSupportedException { CustomPieURLGenerator urlGen = new CustomPieURLGenerator(); Map map; Map newMap; String key; for(Iterator i = this.urls.iterator(); i.hasNext();) { map =(Map) i.next(); newMap = new Hash... |
if(seriesCount > 1){ | [BUG] if(seriesCount > 0) {[ERROR] null testDrawWithNullInfo [CONTEXT] CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, StatisticalCategoryDataset dataset, int row, int column) { RectangleEdge xAxisLocation = plot.getDomainAxisEdge(); double rectY = domainAxis.getCategoryStart(column, getColumnCount(),... |
InputStream inShadow = this.in; | [BUG] InputStream inShadow = in;[ERROR] null testArUnarchive [CONTEXT] public void close() throws IOException { <extra_id_0> if(inShadow != null) { try { if(inShadow != System.in) { inShadow.close(); } } finally { this.data = null; this.in = null; } } } [CLASS] BZip2CompressorInputStream Data [METHOD] close [RETURN_... |
} else if(c > maxNonEscaped){ | [BUG] } if(c > len) {[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] int escCode = 0; final CharacterEscapes customEscapes = _characterEscapes; output_loop: while(_outputTail < end) { char c; escape_loop: while(true) { c = _outputBuffer[_outputTail]; if(c ... |
if(startRow < 0 || startRow > endRow || endRow > data.length || startColumn < 0 || startColumn > endColumn || endColumn > data[0].length){ | [BUG] if(data < 0 || startRow > endRow || endRow > startRow.length || startColumn < 0 || startColumn > endColumn || endColumn > data[0].length){[ERROR] bad operand types for binary operator '<' [CONTEXT] public BigMatrix getSubMatrix(int startRow, int endRow, int startColumn, int endColumn) throws MatrixIndexException... |
System.arraycopy(c, start, curr, _currentSize, max); | [BUG] System.arraycopy( start, curr, _currentSize, max);[ERROR] method arraycopy in class System cannot be applied to given types; [CONTEXT] } _resultString = null; _resultArray = null; char[] curr = _currentSegment; int max = curr.length - _currentSize; if(max >= len) { System.arraycopy(c, start, curr, _currentSize, ... |
TimePeriodValues ts =(TimePeriodValues) this.data.iterator(); | [BUG] TimePeriodValues ts =(TimePeriodValues)this.data.get(series); [CONTEXT] public Number getStartX(int series, int item) { <extra_id_0> TimePeriodValue dp = ts.getDataItem(item); return new Long(dp.getPeriod().getStart().getTime()); } [CLASS] TimePeriodValuesCollection [METHOD] getStartX [RETURN_TYPE] Number in... |
List<GraphNode<N, E>> list = Lists.newArrayList(); | [BUG] List<GraphvizEdge> edgeList = Lists.newArrayList();List<GraphNode<N, E>> list = Lists.newArrayList();[ERROR] expected:<4> but was:<5> testCommentPositions [CONTEXT] public List<GraphNode<N, E>> getNodes() { <extra_id_0> list.addAll(nodes.values()); return list; } [CLASS] LinkedDirectedGraph LinkedDirectedGraph... |
rotationAnchor = TextAnchor.CENTER_LEFT;anchor = TextAnchor.TOP_CENTER; | [BUG] anchor = TextAnchor.TOP_CENTER; [CONTEXT] 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(edge == RectangleEdge.TOP) { anchor = TextAnchor.BOTTOM_CENTER; rotationAnchor = TextAnchor... |
buf.append("mv.visitTableSwitchInsn(").append( min).append(", ,").append( max) | [BUG] buf.append("mv.visitTableSwitchInsn(").append(min).append(",").append(max) [CONTEXT] public void visitTableSwitchInsn( final int min, final int max, final Label dflt, final Label[] labels) { buf.setLength(0); for(int i = 0; i < labels.length; ++i) { declareLabel(labels[i]); } declareLabel(dflt); <extra_id_0> ... |
private static final long serialVersionUID = 1L; | [BUG] private static final long serialVersionUID = 1;[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] public abstract class CharacterEscapes implements java.io.Serializable // since 2.1 { <extra_id_0> [CLASS] CharacterEscapes [VARIABLES] |
b.append(var.getType()); | [BUG] [ERROR] null testAliasThrowKeywordLiteral [CONTEXT] @Override public String toString() { StringBuilder b = new StringBuilder(32); b.append("function("); boolean hasKnownTypeOfThis = !getThisSlot().getType().isNone(); if(hasKnownTypeOfThis) { b.append("this:"); b.append(getThisSlot().getType().toString()); } Node... |
return dest.markReference(edge); | [BUG] return start.markReference( edge);[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] public boolean traverseEdge(NameInfo start, JSModule edge, NameInfo dest) { if(start.isReferenced()) { JSModule startModule = start.getDeepestCommonModuleRef(); if(startModule != null && moduleGraph.dependsOn(startModule, edge)... |
fields.secondOfMinute = convertField(fields.secondOfMinute); | [BUG] fields.monthOfYear = convertField( fields.monthOfYear);fields.secondOfMinute = convertField( fields.secondOfMinute);[ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHashCode [CONTEXT] protected void assemble(Fields fields) { fields.year = convertField(fields.year); fields.yearO... |
prependChild(child); | [BUG] Validate.notNull( child);prependChild( child);[ERROR] expected:<[<img alt="" />]> but was:<[]> testHandlesEmptyAttributes [CONTEXT] public Element prependElement(String tagName) { Element child = new Element(Tag.valueOf(tagName), baseUri()); <extra_id_0> return child; } [CLASS] Element [METHOD] prependElement ... |
option.setLongOpt(longopt); | [BUG] option.setLongOpt( newLongopt);[ERROR] cannot find symbol newLongopt [CONTEXT] public static Option create(String opt) throws IllegalArgumentException { Option option = new Option(opt, description); <extra_id_0> option.setRequired(required); option.setOptionalArg(optionalArg); option.setArgs(numberOfArgs); op... |
return new JsonLocation(_ioContext.getSourceReference() , _currInputProcessed + _inputPtr - 1, _currInputRow, col); | [BUG] return new JsonLocation( _ioContext.getSourceReference()+ _inputPtr - 1, _currInputRow, col);[ERROR] bad operand types for binary operator '+' [CONTEXT] public JsonLocation getCurrentLocation() { int col = _inputPtr - _currInputRowStart + 1; // 1-based <extra_id_0> } [CLASS] ParserBase [METHOD] getCurrentLocat... |
createString(name, nameLineno, nameCharno), dotLineno, dotCharno); | [BUG] createString( name, nameLineno) , dotLineno, dotCharno);[ERROR] no suitable method found for createString(String,int) [CONTEXT] Node createPropertyGet(Node target, String namespace, String name, int memberTypeFlags, int dotLineno, int dotCharno, int nameLineno, int nameCharno) { if(namespace == null && memberTyp... |
Node child = block.removeFirstChild(); | [BUG] Node child = previous.getFirstChild();[ERROR] runtime INTERNAL COMPILER ERROR. testDebugFlag3 [CONTEXT] static boolean tryMergeBlock(Node block) { Preconditions.checkState(block.getType() == Token.BLOCK); Node parent = block.getParent(); if(NodeUtil.isStatementBlock(parent)) { Node previous = block; while(block... |
for(v = 0; v < alphaSize; v++){ | [BUG] for(v = -9; v < alphaSize; v++) {[ERROR] null testArUnarchive [CONTEXT] while(nPart > 0) { tFreq = remF / nPart; ge = gs - 1; aFreq = 0; while(aFreq < tFreq && ge < alphaSize - 1) { ge++; aFreq += mtfFreq[ge]; } if(ge > gs && nPart != nGroups && nPart != 1 &&((nGroups - nPart) % 2 != 0)) { aFreq -= mtfFreq[ge]; ... |
result = new Week(prevYearCalendar.getActualMaximum(Calendar.WEEK_OF_YEAR), yy); | [BUG] result = new Week( prevYearCalendar.getActualMaximum( Calendar.WEEK_OF_YEAR) , week);[ERROR] expected:<org.jfree.data.time.TimePeriodValuesCollection@4edde6e5> but was:<org.jfree.data.time.TimePeriodValuesCollection@1ed6993a> testSerialization [CONTEXT] public RegularTimePeriod previous() { Week result; if(this.... |
clip.lineTo(x3, y3); | [BUG] clip.lineTo( x1, y3);clip.lineTo( x3, y3);[ERROR] null testDrawWithNullInfo [CONTEXT] Rectangle2D dataArea) { float x0 =(float) dataArea.getX(); float x1 = x0 +(float) Math.abs(this.xOffset); float x3 =(float) dataArea.getMaxX(); float x2 = x3 -(float) Math.abs(this.xOffset); float y0 =(float) dataArea.getMaxY()... |
} else if("nativeMethod".equals(propName)) { | [BUG] } if("nativeMethod".equals( methodName)){[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] { JsonToken t = jp.getCurrentToken(); if(t == JsonToken.START_OBJECT) { String className ="", methodName ="", fileName =""; int lineNumber = -1; while((t = jp.nextValue()) != JsonToken.END_OBJECT) { String... |
if(callback == null){ throw new IllegalStateException(""); } | [BUG] [NO-ERROR] [CONTEXT] private static Type determineType(Callback callback) { <extra_id_0> return determineType(callback.getClass()); [CLASS] CallbackInfo [METHOD] determineType [RETURN_TYPE] Type Callback callback [VARIABLES] Type type Class cls CallbackGenerator generator Callback callback boolean CallbackInf... |
return dereferencePointer(n.getFirstChild() , scope); | [BUG] return dereferencePointer( n.getFirstChild());[ERROR] method dereferencePointer in class TypeInference cannot be applied to given types; [CONTEXT] private FlowScope traverseGetProp(Node n, FlowScope scope) { Node objNode = n.getFirstChild(); Node property = n.getLastChild(); scope = traverseChildren(n, scope); n... |
Map entriesWithoutEFS = populateFromCentralDirectory(); | [BUG] [ERROR] No Archiver found for the stream signature testDetection [CONTEXT] public ZipFile(File f, String encoding, boolean useUnicodeExtraFields) throws IOException { this.encoding = encoding; this.zipEncoding = ZipEncodingHelper.getZipEncoding(encoding); this.useUnicodeExtraFields = useUnicodeExtraFields; archi... |
pos = checkFormalTypeParameter(signature, pos); | [BUG] pos = checkTypeSignature( 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) != '>... |
if(quality == PERFECT_MATCH){ | [BUG] if(quality == i) {[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] else if(isNameAttributeEqual(valuePointer, key)) { pointer = doPredicate( context, valuePointer, steps, currentStep, predicates, currentPredicate + 1); } else { pointer = null; } ... |
map.register(URL.class, wrapDeserializer(URL_TYPE_ADAPTER)); | [BUG] map.register( Double.class, wrapDeserializer( DOUBLE_TYPE_ADAPTER));map.register( URL.class, wrapDeserializer( URL_TYPE_ADAPTER));[ERROR] expected:<[a, b, c]> but was:<[]> testParseComments [CONTEXT] map.register(Integer.class, INTEGER_TYPE_ADAPTER); map.register(int.class, INTEGER_TYPE_ADAPTER); map.register(Nu... |
return this.values.getRowCount(); | [BUG] return this.values.getColumnCount();[ERROR] Range(double, double testGetLegendItemSeriesIndex [CONTEXT] public int getItemCount() { <extra_id_0> } [CLASS] CategoryTableXYDataset [METHOD] getItemCount [RETURN_TYPE] int [VARIABLES] DefaultKeyedValues2D values IntervalXYDelegate intervalDelegate boolean |
if(edge == RectangleEdge.LEFT){ | [BUG] if(edge != RectangleEdge.LEFT) {[NO-ERROR] [CONTEXT] if(tickLabelsOverlapping) { tickLabel =""; // don't draw this tick label } else { previousDrawnTickLabelPos = yy; previousDrawnTickLabelLength = tickLabelLength; } TextAnchor anchor = null; TextAnchor rotationAnchor = null; double angle = 0.0; if(isVerticalTic... |
_writer.write(_outputBuffer, start, flushLen); | [BUG] [ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] } else if(c > maxNonEscaped) { escCode = CharacterEscapes.ESCAPE_STANDARD; break; } else { if((_currentEscape = customEscapes.getEscapeSequence(c)) != null) { escCode = CharacterEscapes.ESCAPE_CUSTOM; b... |
[BUG] if(r){ if(parent.keyType != ReferenceStrength.HARD){(( Reference<?>)key).clear(); } [CONTEXT] boolean purge(final Reference<?> ref) { boolean r = parent.keyType != ReferenceStrength.HARD && key == ref; r = r || parent.valueType != ReferenceStrength.HARD && value == ref; <extra_id_0> if(parent.valueType != R... | |
if(count < 0){ | [BUG] if(count < count) {[NO-ERROR] [CONTEXT] private final int readFully(final byte[] b, final int off, final int len) throws IOException { if(len < 0) { throw new IndexOutOfBoundsException(); } int n = 0; while(n < len) { int count = this.in.read(b, off + n, len - n); <extra_id_0> throw new EOFException(); } n += ... |
map.put("AST","America/Anchorage"); | [BUG] map.put("PST","America/Los_Angeles");map.put("AST","America/Anchorage");[ERROR] null testTest [CONTEXT] private static synchronized String getConvertedId(String id) { Map<String, String> map = cZoneIdConversion; if(map == null) { map = new HashMap<String, String>(); map.put("GMT","UTC"); map.put("MIT","Pacifi... |
FieldUtils.verifyValueBounds(this, value, getMinimumValue(instant), getMaximumValue(instant)); | [BUG] FieldUtils.verifyValueBounds( this, value, getMinimumValue( instant) , getMinimumValue( instant));[ERROR] testConstructor_nullObject_nullDateTimeZone [CONTEXT] public long set(long instant, int value) { <extra_id_0> return super.set(instant, value); } [CLASS] StrictDateTimeField [METHOD] set [RETURN_TYPE] long... |
if(_externalTypeIdHandler != null){ | [BUG] if(_objectIdReader != null) {[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] @Override public Object deserialize(JsonParser jp, DeserializationContext ctxt, Object bean) throws IOException, JsonProcessingException { if(_injectables != null) { injectValues(ctxt, bean); } if(_unwrappedProperty... |
if(Math.floor(unscaled)/ 2.0 == Math.floor(Math.floor(unscaled)/ 2.0)) { | [BUG] if(Math.floor( unscaled) * 2.0 == Math.floor( Math.floor( unscaled) * 2.0)){[ERROR] expected:<1.236> but was:<1.235> testRoundDouble [CONTEXT] double fraction = Math.abs(unscaled - Math.floor(unscaled)); if(fraction > 0.5) { unscaled = Math.ceil(unscaled); } else { unscaled = Math.floor(unscaled); } break; } cas... |
return this.maxStartIndex; | [BUG] return minEndIndex;[ERROR] expected:<org.jfree.data.time.TimePeriodValuesCollection@4edde6e5> but was:<org.jfree.data.time.TimePeriodValuesCollection@1ed6993a> testSerialization [CONTEXT] public int getMaxStartIndex() { <extra_id_0> } [CLASS] TimePeriodValues [METHOD] getMaxStartIndex [RETURN_TYPE] int [VARIAB... |
(SummaryStatistics)binStats.get(findBin(min, inputArray[i], delta)); | [BUG] (SummaryStatistics) binStats.get( findBin( i, minnputArray[i], delta));[ERROR] cannot find symbol minnputArray [CONTEXT] public void computeBinStats(double min, double delta) throws IOException { for(int i = 0; i < inputArray.length; i++) { SummaryStatistics stats = <extra_id_0> stats.addValue(inputArray[i]); }... |
super(startInstant, endInstant, null, null); | [BUG] super( startInstant, serialVersionUID, null, null);[ERROR] null test_other [CONTEXT] public MutablePeriod(long startInstant, long endInstant) { <extra_id_0> } [CLASS] MutablePeriod [METHOD] <init> [RETURN_TYPE] MutablePeriod(long,long) long startInstant long endInstant [VARIABLES] long duration endInstant seri... |
if(end > maxEnd){ | [BUG] if(maxEnd > end) {[ERROR] expected:<3> but was:<2> testDateConstructor1 [CONTEXT] if(this.minEndIndex >= 0) { long minEnd = getDataItem(this.minEndIndex).getPeriod().getEnd().getTime(); if(end < minEnd) { this.minEndIndex = index; } } else { this.minEndIndex = index; } if(this.maxEndIndex >= 0) { long maxEnd = g... |
if(type == null || length == 0){ | [BUG] if(type == null || j == 0) {[ERROR] cannot find symbol j [CONTEXT] if(supportedType == type) { return converter; } if(supportedType == null ||(type != null && !supportedType.isAssignableFrom(type))) { set = set.remove(i, null); converters = set.iConverters; length = converters.length; } } <extra_id_0> return ... |
enhancer.setCallbackTypes(new Class[]{MethodInterceptor.class, NoOp.class}); | [BUG] enhancer.setCallbackFilter( IGNORE_BRIDGE_METHODS);[ERROR] [CONTEXT] @Override @SuppressWarnings("unchecked") protected void filterConstructors(Class sc, List constructors) { } }; enhancer.setClassLoader(SearchingClassLoader.combineLoadersOf(mockedType)); enhancer.setUseFactory(true); if(mockedType.isInterface()... |
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 && newSize > 0) ||( array2 == null && array1 != null && array1.length > 0) ||( array1 != null && array2 != null && array1.length != array2.length)){[ERROR] cannot find symbol newSize [CONTEXT] public static boolean isSameLength(long[] array1, long[] array2) { <extra_id_0> ... |
endFunction(false); | [BUG] endBlock( false);endFunction( false);[ERROR] Unexpected error(s testThisJSDoc1 [CONTEXT] void endFunction() { <extra_id_0> } [CLASS] CodeConsumer [METHOD] endFunction [RETURN_TYPE] void [VARIABLES] boolean needSemiColon sawFunction statementContext statementNeedsEnded statementStarted |
stream.writeBoolean(pi.isDone()); | [BUG] stream.writeObject( shape);stream.writeBoolean( pi.isDone());[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] else if(shape instanceof GeneralPath) { stream.writeObject(GeneralPath.class); PathIterator pi = shape... |
return new String[] {(jp.getCurrentToken() == JsonToken.VALUE_NULL)? null : _parseString(jp, ctxt)}; | [BUG] return new String[] {(jp.getCurrentToken()== JsonToken.VALUE_NULL) ? null : _parseString( jp) };[ERROR] method _parseString in class StdDeserializer<T> cannot be applied to given types; [CONTEXT] private final String[] handleNonArray(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingE... |
[BUG] _children.put(fieldName, nullNode()); [CONTEXT] public ObjectNode put(String fieldName, Integer value) { if(value == null) { <extra_id_0> } else { _children.put(fieldName, numberNode(value.intValue())); } return this; [CLASS] ObjectNode [METHOD] put [RETURN_TYPE] ObjectNode String fieldName Integer value [VA... | |
private int cost = 0; | [BUG] private int cost = -2;[ERROR] testReplaceSetter1 [CONTEXT] private static class CompiledSizeEstimator extends CodeConsumer { private int maxCost; <extra_id_0> private char last = '\0'; private boolean continueProcessing = true; CompiledSizeEstimator(int costThreshhold) { this.maxCost = costThreshhold; [CLASS]... |
decompiler.addEOL(Token.LC); | [BUG] decompiler.addToken( Token.SCRIPT);decompiler.addEOL( Token.LC);[NO-ERROR] [CONTEXT] switch(tt) { case Token.IF: { consumeToken(); decompiler.addToken(Token.IF); int lineno = ts.getLineno(); int charno = ts.getCharno(); Node cond = condition(); decompiler.addEOL(Token.LC); Node ifTrue = statement(); Node ifFalse... |
compiler.report(JSError.make(t, n, UNMATCHED_END_MARKER, startMarkerName, endMarkerName)); | [BUG] compiler.report( JSError.make( t, startMarkerName, UNMATCHED_END_MARKER, n, endMarkerName));[ERROR] no suitable method found for make(NodeTraversal,String,DiagnosticType,Node,String) [CONTEXT] ancestorBlock = ancestor; break; } ancestorBlockChild = ancestor; } startMarkerStack.push(new StartMarker(t.getSourceNam... |
push(interpreter.copyOperation(insn, value2)); push(interpreter.copyOperation(insn, value1)); | [BUG] [NO-ERROR] [CONTEXT] if(value2.getSize() == 1) { value3 = pop(); if(value3.getSize() == 1) { push(interpreter.copyOperation(insn, value2)); push(interpreter.copyOperation(insn, value1)); push(interpreter.copyOperation(insn, value3)); push(interpreter.copyOperation(insn, value2)); push(interpreter.copyOperation(i... |
String varName = ts.getString();nameLineno = ts.getLineno(); | [BUG] nameLineno = ts.getLineno(); [CONTEXT] } private Node function(int functionType) throws IOException, ParserException { int syntheticType = functionType; int baseLineno = ts.getLineno();// line number where source starts int baseCharno = ts.getCharno();// char number where source starts int functionSourceStart ... |
[Delete] | [BUG] if(( panns) == null) { panns = new getArgumentTypes( descriptor).length]; }[NO-ERROR] [CONTEXT] if(visible) { if(panns == null) { panns = new AnnotationWriter[Type.getArgumentTypes(descriptor).length]; } aw.next = panns[parameter]; panns[parameter] = aw; } else { <extra_id_0> ipanns = new AnnotationWriter[Typ... |
double x2 = dataset.getXValue(series, Math.min(item + 1, itemCount - 1)); | [BUG] double x2 = dataset.getXValue( item, Math.min( series + 1, itemCount - 1));[ERROR] null testDrawWithNullInfo [CONTEXT] plot.getRangeAxisEdge()); double x0 = dataset.getXValue(series, Math.max(item - 1, 0)); double y0 = dataset.getYValue(series, Math.max(item - 1, 0)); if(Double.isNaN(y0)) { y0 = 0.0; } double t... |
return"FIELD_" + arg; | [BUG] return"FIELD_" | arg;[NO-ERROR] [CONTEXT] private String getFieldName(int arg) { <extra_id_0> } [CLASS] KeyFactory 1 2 Generator [METHOD] getFieldName [RETURN_TYPE] String int arg [VARIABLES] Type KEY_FACTORY type boolean Signature APPEND_STRING EQUALS GET_CLASS GET_NAME HASH_CODE TO_STRING int[] PRIMES Class ... |
if(( length + 2) >(data.length)){ enlarge( 2); } | [BUG] [Delete] [CONTEXT] data[length++] =(byte)(i >>> 8); data[length++] =(byte) i; this.length = length; return this; } public ByteVector putUTF8(final String s) { int charLength = s.length(); <extra_id_0> enlarge(2 + charLength); } int len = length; byte[] data = this.data; data[len++] =(byte)(charLength >... |
result.append(" =="); | [BUG] result.append("finally");result.append(" ==");[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] break; case Token.BITAND: result.append(" &"); break; case Token.SHEQ: result.append(" ==="); break; case Token.SHNE: result.append(" !=="); break; case Token.EQ: <extra_id_0> break; case Token.NE: r... |
handleSwitch(n); | [BUG] handleDo( n);handleSwitch( n);[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] public void visit(NodeTraversal t, Node n, Node parent) { switch(n.getType()) { case Token.IF: handleIf(n); return; case Token.WHILE: handleWhile(n); return; case Token.DO: handleDo(n); return; case Token.FOR: handleFor(n); return;... |
jjmatchedKind = 78; | [BUG] jjmatchedPos = 16;jjmatchedKind = 78;[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] jjmatchedKind = 78; jjmatchedPos = 4; } return -1; } if((active0 & 0xfc62ffc400000000L) != 0L ||(active1 & 0x2003L) != 0L) { jjmatchedKind = 78; jjmatchedPos = ... |
buffer.append(mValue); | [BUG] buffer.append( '+');buffer.append( mValue);[ERROR] expected:<2005[-01-01T12:00]:00> but was:<2005[+-01+-01+T12+:00+]:00> testFormatUTC [CONTEXT] public void appendTo(StringBuffer buffer, Calendar calendar) { <extra_id_0> } [CLASS] FastDateFormat CharacterLiteral StringLiteral TextField UnpaddedNumberField Unpa... |
return parent == null || parent.getType() != Token.FUNCTION || n == parent.getFirstChild() || parent == scope.getRootNode(); | [BUG] return parent == null && parent.getType()!= Token.FUNCTION || n == parent.getFirstChild()|| parent == scope.getRootNode();[ERROR] INTERNAL COMPILER ERROR. testExternedPropertyName [CONTEXT] public final boolean shouldTraverse(NodeTraversal nodeTraversal, Node n, Node parent) { if(n.getType() == Token.FUNCTION ||... |
return sb.length(); | [BUG] return debugLog_.length();[ERROR] non-static variable debugLog_ cannot be referenced from a static context [CONTEXT] public int getLength() { <extra_id_0> } [CLASS] Compiler 2 3 1 4 5 6 7 8 9 CodeBuilder IntermediateState [METHOD] getLength [RETURN_TYPE] int [VARIABLES] FunctionInformationMap functionInformati... |
String namespaceName = nameNode.getFirstChild().getString(); | [BUG] String namespaceName = nameNode.getLastChild().getString();[ERROR] Circular dependency involving module: mod1 testSortJsModules [CONTEXT] if(nameNode.getType() == Token.GETPROP && nameNode.getFirstChild().getType() == Token.NAME) { <extra_id_0> if(namespaceName.equals("Math")) { return false; } } [CLASS] NodeU... |
e.mark( end);e.dup(); | [BUG] e.dup(); [CONTEXT] private void emitConstructors(ClassEmitter ce, List constructors) { boolean seenNull = false; for(Iterator it = constructors.iterator(); it.hasNext();) { MethodInfo constructor =(MethodInfo)it.next(); CodeEmitter e = EmitUtils.begin_method(ce, constructor, Constants.ACC_PUBLIC); e.load_this(... |
e.load_this();e.end_method(); | [BUG] e.end_method(); [CONTEXT] e.dup(); e.dup2(); e.invoke_constructor_this(); e.getfield("eqMethod"); e.super_putfield("eqMethod", Constants.TYPE_STRING); e.load_arg(0); e.super_putfield("target", Constants.TYPE_OBJECT); e.return_value(); e.end_method(); e = ce.begin_static(); e.push(methodInfo.getSignature().toSt... |
buf.append('0'); | [BUG] buf.append("ACC_SUPER");buf.append( '0');[NO-ERROR] [CONTEXT] if((access & Opcodes.ACC_SYNTHETIC) != 0) { if(!first) { buf.append(" +"); } buf.append("ACC_SYNTHETIC"); first = false; } if((access & Opcodes.ACC_DEPRECATED) != 0) { if(!first) { buf.append(" +"); } buf.append("ACC_DEPRECATED"); first = false; } if(... |
this.subtitles.remove(title); | [BUG] [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public void removeSubtitle(Title title) { <extra_id_0> fireChartChanged(); [CLASS] JFreeChart [METHOD] removeSubtitle [RETURN_TYPE] void Title title [VARIABLES] ... |
area.lineTo(x1, y1); | [BUG] area.lineTo( yz, y1);[ERROR] null testDrawWithNullInfo [CONTEXT] RectangleEdge edge = plot.getRangeAxisEdge(); float y0 =(float) rangeAxis.valueToJava2D(yy0, dataArea, edge); float y1 =(float) rangeAxis.valueToJava2D(yy1, dataArea, edge); float y2 =(float) rangeAxis.valueToJava2D(yy2, dataArea, edge); float yz =... |
if(chars == null){ | [BUG] if(( char)(random.nextInt( gap) + start)) {[ERROR] incompatible types [CONTEXT] } if((start == 0) &&(end == 0)) { end = 'z' + 1; start = ' '; if(!letters && !numbers) { start = 0; end = Integer.MAX_VALUE; } } char[] buffer = new char[count]; int gap = end - start; while(count-- != 0) { char ch; <extra_id_0> ch... |
size = stackSize +(1); | [BUG] size = stackSize +(c == 'D' || c == 'J' ? 2 : 1); [CONTEXT] final String owner, final String name, final String desc) { Item i = cw.newFieldItem(owner, name, desc); if(currentBlock != null) { if(compute == FRAMES) { currentBlock.frame.execute(opcode, 0, cw, i); } else { int size; char c = desc.charAt(0); switc... |
if(!proxy.getReturnType().isAssignableFrom(method.getReturnType())) { throw new IllegalArgumentException(""); } | [BUG] throw new java.lang.IllegalArgumentException("incompatible return types");[NO-ERROR] [CONTEXT] Object key = KEY_FACTORY.newInstance(targetClass, methodName, iface); return(MethodDelegate)super.create(key); } protected Object firstInstance(Class type) { return((MethodDelegate)ReflectUtils.newInstance(type)).newIn... |
for(int col = 0; col < columnCount; col++){ | [BUG] for(int col = 7; col < columnCount; col++) {[ERROR] Inconsistent cumulative probabilities for(-667.2485619,-65.6230835) expected:<0.0090000000004829> but was:<0.0> testConsistency [CONTEXT] public BigMatrix subtract(BigMatrix m) throws IllegalArgumentException { if(this.getColumnDimension() != m.getColumnDimensi... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3