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 { _binaryValue = _decodeBase64(b64variant); } catch(IllegalArgumentException iae) { throw _constructError("Failed to decode VALUE_STRING as base64("+b64variant+"):"+iae.getMessage()); } _tokenIncomplete = false; } else { // may actually require conversion... <extra_id_0> @SuppressWarnings("resource") ByteArrayBuilder builder = _getByteArrayBuilder(); _decodeBase64(getText(), builder, b64variant); _binaryValue = builder.toByteArray(); } } return _binaryValue; } [CLASS] UTF8StreamJsonParser [METHOD] getBinaryValue [RETURN_TYPE] byte[] Base64Variant b64variant [VARIABLES] byte[] _inputBuffer buf inputBuffer boolean _bufferRecyclable _tokenIncomplete bufferRecyclable byte BYTE_LF InputStream _inputStream in BytesToNameCanonicalizer _symbols sym Base64Variant b64variant int[] _quadBuffer sInputCodesLatin1 sInputCodesUtf8 ObjectCodec _objectCodec c codec ByteArrayBuilder builder int _quad1 amount count end features minAvailable nameLen origPtr start IllegalArgumentException iae |
} 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(ch)+") as character #"+(bindex+1)+" of 4-char base64 unit: can only used between units"; <extra_id_0> base ="Unexpected padding character('"+b64variant.getPaddingChar()+"') as character #"+(bindex+1)+" of 4-char base64 unit: padding only legal as 3rd or 4th character"; } else if(!Character.isDefined(ch) || Character.isISOControl(ch)) { base ="Illegal character(code 0x"+Integer.toHexString(ch)+") in base64 content"; } else { base ="Illegal character '"+ch+"'(code 0x"+Integer.toHexString(ch)+") in base64 content"; } if(msg != null) { base = base +":" + msg; } throw new JsonParseException(base, JsonLocation.NA); } [CLASS] TextNode [METHOD] _reportInvalidBase64 [RETURN_TYPE] void Base64Variant b64variant char ch int bindex String msg [VARIABLES] char ch Base64Variant b64variant TextNode EMPTY_STRING_NODE String _value base content msg str v boolean int INT_SPACE bindex bits decodedData defaultValue len ptr |
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, pass, series, item, domainAxis, rangeAxis, dataArea); } } else if(isItemPass(pass)) { EntityCollection entities = null; if(info != null) { entities = info.getOwner().getEntityCollection(); } <extra_id_0> } } public boolean equals(Object obj) { if(obj == this) { return true; } [CLASS] DeviationRenderer State [METHOD] drawItem [RETURN_TYPE] void Graphics2D g2 XYItemRendererState state Rectangle2D dataArea PlotRenderingInfo info XYPlot plot ValueAxis domainAxis ValueAxis rangeAxis XYDataset dataset int series int item CrosshairState crosshairState int pass [VARIABLES] PlotOrientation orientation Composite originalComposite GeneralPath area PlotRenderingInfo info double x xx yHigh yLow yyHigh yyLow IntervalXYDataset intervalDataset Rectangle2D dataArea float alpha CrosshairState crosshairState int count i item pass series Graphics2D g2 boolean XYPlot plot double[] coords EntityCollection entities State drState s ValueAxis domainAxis rangeAxis List lowerCoordinates upperCoordinates XYItemRendererState state XYDataset dataset RectangleEdge xAxisLocation yAxisLocation |
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(); @Override public boolean shouldTraverse(NodeTraversal t, Node n, Node parent) { [CLASS] CheckRequiresForConstructors CheckRequiresForConstructorsCallback [VARIABLES] |
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); translatedValue = rangeAxis.valueToJava2D(positiveBase + value, dataArea, location); } else { translatedBase = rangeAxis.valueToJava2D(negativeBase, dataArea, location); translatedValue = rangeAxis.valueToJava2D(negativeBase + value, dataArea, location); } double barL0 = Math.min(translatedBase, translatedValue); <extra_id_0> Rectangle2D bar = null; if(orientation == PlotOrientation.HORIZONTAL) { bar = new Rectangle2D.Double(barL0, barW0, barLength, state.getBarWidth()); } else { bar = new Rectangle2D.Double(barW0, barL0, state.getBarWidth(), barLength); } if(pass == 0) { Paint itemPaint = getItemPaint(row, column); GradientPaintTransformer t = getGradientPaintTransformer(); if(t != null && itemPaint instanceof GradientPaint) { [CLASS] StackedBarRenderer [METHOD] drawItem [RETURN_TYPE] void Graphics2D g2 CategoryItemRendererState state Rectangle2D dataArea CategoryPlot plot CategoryAxis domainAxis ValueAxis rangeAxis CategoryDataset dataset int row int column int pass [VARIABLES] PlotOrientation orientation GradientPaintTransformer t CategoryItemRendererState state double barL0 barLength barW0 d negativeBase positiveBase total translatedBase translatedValue value Rectangle2D bar dataArea CategoryItemLabelGenerator generator Paint itemPaint long serialVersionUID CategoryPlot plot int column i pass row Graphics2D g2 boolean asPercentages renderAsPercentages Number dataValue v CategoryAxis domainAxis EntityCollection entities ValueAxis rangeAxis CategoryDataset dataset RectangleEdge location |
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] getDifferenceAsLong [RETURN_TYPE] long long minuendInstant long subtrahendInstant [VARIABLES] long instant minuendInstant serialVersionUID subtrahendInstant years BasicChronology chronology iChronology boolean |
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 - ybar; <extra_id_0> sumYY += dy * dy *(double) n /(double)(n + 1.0); sumXY += dx * dy *(double) n /(double)(n + 1.0); xbar += dx /(double)(n + 1.0); ybar += dy /(double)(n + 1.0); } sumX += x; sumY += y; n++; } [CLASS] SimpleRegression [METHOD] addData [RETURN_TYPE] void double x double y [VARIABLES] double dx dy sumX sumXX sumXY sumY sumYY x xbar y ybar long n serialVersionUID boolean |
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.BOTTOM_CENTER; <extra_id_0> } else { anchor = TextAnchor.TOP_CENTER; rotationAnchor = TextAnchor.TOP_CENTER; } } [CLASS] SymbolAxis [METHOD] refreshTicksHorizontal [RETURN_TYPE] List Graphics2D g2 Rectangle2D dataArea RectangleEdge edge [VARIABLES] TextAnchor anchor rotationAnchor double angle avgTickLabelLength currentTickValue lowestTickValue previousDrawnTickLabelLength previousDrawnTickLabelPos size tickLabelLength xx Rectangle2D bounds dataArea Paint DEFAULT_GRID_BAND_PAINT gridBandPaint paint String tickLabel long serialVersionUID Font tickLabelFont int count i Graphics2D g2 boolean currentGridBandIsDark firstGridBandIsDark flag gridBandsVisible tickLabelsOverlapping List symbols ticks Tick tick RectangleEdge edge NumberFormat formatter |
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.canInline()) { return; } boolean referenceAdded = false; InliningMode mode = fs.canInlineDirectly() ? InliningMode.DIRECT : InliningMode.BLOCK; referenceAdded = maybeAddReferenceUsingMode( t, fs, callNode, module, mode); if(!referenceAdded && mode == InliningMode.DIRECT && blockFunctionInliningEnabled) { mode = InliningMode.BLOCK; <extra_id_0> } if(!referenceAdded) { fs.setRemove(false); } } [CLASS] FindCandidatesReferences [METHOD] maybeAddReference [RETURN_TYPE] void NodeTraversal t FunctionState fs Node callNode JSModule module [VARIABLES] boolean referenceAdded NodeTraversal t InliningMode mode FunctionState fs Node callNode JSModule module |
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)) { if(lastJump == null) { createEdge(node, Branch.UNCOND, curHandler.getLastChild()); } else { finallyMap.put(lastJump, computeFallThrough(curHandler.getLastChild())); } lastJump = curHandler; } } <extra_id_0> connectToPossibleExceptionHandler(node, node.getFirstChild()); } if(lastJump == null) { createEdge(node, Branch.UNCOND, null); } else { finallyMap.put(lastJump, null); } } [CLASS] ControlFlowAnalysis 1 AstControlFlowGraph 1 2 [METHOD] handleReturn [RETURN_TYPE] void Node node [VARIABLES] Multimap finallyMap AbstractCompiler compiler boolean shouldTraverseFunctions ControlFlowGraph cfg Node body child collection cond cur curHandler deflt elseBlock entry externs forNode init item iter lastJump n next node parent root thenBlock value Iterator iter Map astPosition nodePriorities priorities Deque exceptionHandler int astPositionCounter priorityCounter Comparator priorityComparator |
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, baseType.toString()); } } else { <extra_id_0> } [CLASS] FunctionTypeBuilder [METHOD] inferInheritance [RETURN_TYPE] FunctionTypeBuilder JSDocInfo info [VARIABLES] JSType maybeFunctionType returnType Node currentParam errorRoot parametersNode paramsParent sourceNode FunctionType functionType String fnName sourceName templateTypeName JSDocInfo info ObjectType baseType interType thisType AbstractCompiler compiler JSTypeRegistry typeRegistry boolean isConstructor isInterface warnedAboutArgList Scope scope DiagnosticType EXTENDS_NON_OBJECT EXTENDS_WITHOUT_TYPEDEF IMPLEMENTS_WITHOUT_CONSTRUCTOR INEXISTANT_PARAM OPTIONAL_ARG_AT_END TEMPLATE_TYPE_DUPLICATED TEMPLATE_TYPE_EXPECTED TYPE_REDEFINITION VAR_ARGS_MUST_BE_LAST CodingConvention codingConvention JSTypeExpression t List implementedInterfaces |
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 underestimatedYYYY = 1900 +(nonleapdays / 365); if(underestimatedYYYY == overestimatedYYYY) { this.year = underestimatedYYYY; } else { <extra_id_0> while(ss1 <= this.serial) { underestimatedYYYY = underestimatedYYYY + 1; ss1 = calcSerial(1, 1, underestimatedYYYY); } this.year = underestimatedYYYY - 1; } final int ss2 = calcSerial(1, 1, this.year); int[] daysToEndOfPrecedingMonth = AGGREGATE_DAYS_TO_END_OF_PRECEDING_MONTH; if(isLeapYear(this.year)) { daysToEndOfPrecedingMonth = LEAP_YEAR_AGGREGATE_DAYS_TO_END_OF_PRECEDING_MONTH; [CLASS] SpreadsheetDate [METHOD] <init> [RETURN_TYPE] SpreadsheetDate(int) final int serial [VARIABLES] int[] daysToEndOfPrecedingMonth boolean long serialVersionUID int day days leaps mm month nonleapdays overestimatedYYYY serial ss1 ss2 sss underestimatedYYYY year |
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; } outBuf[outPtr++] =(char) c; } <extra_id_0> return _parseFloatText(outBuf, outPtr, c, negative, intLen); } --_inputPtr; // to push back trailing char(comma etc) _textBuffer.setCurrentLength(outPtr); return resetInt(negative, intLen); } private JsonToken _parserNumber2(char[] outBuf, int outPtr, boolean negative, [CLASS] UTF8StreamJsonParser [METHOD] parseNumberText [RETURN_TYPE] JsonToken int c [VARIABLES] byte[] _inputBuffer b buf buffer inputBuffer nameBytes boolean _bufferRecyclable _tokenIncomplete bufferRecyclable match negative byte BYTE_LF InputStream _inputStream in BytesToNameCanonicalizer _symbols sym int[] _quadBuffer sInputCodesLatin1 sInputCodesUtf8 ObjectCodec _objectCodec c codec int _quad1 amount bits c ch count decodedData defaultValue end features i intLen len minAvailable nameLen offset origPtr outPtr outputCount outputEnd outputPtr ptr start char[] outBuf |
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 AnnotationNode) { AnnotationNode an =(AnnotationNode) value; an.accept(av.visitAnnotation(name, an.desc)); } else if(value instanceof List) { <extra_id_0> List array =(List) value; for(int j = 0; j < array.size(); ++j) { accept(v, null, array.get(j)); } v.visitEnd(); } else { av.visit(name, value); } } } [CLASS] AnnotationNode [METHOD] accept [RETURN_TYPE] void AnnotationVisitor av String name Object value [VARIABLES] boolean AnnotationNode an AnnotationVisitor av v List array values Object value String desc name value String[] typeconst int j |
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] NumberTick [METHOD] <init> [RETURN_TYPE] TextAnchor,double) Number number String label TextAnchor textAnchor TextAnchor rotationAnchor double angle [VARIABLES] TextAnchor rotationAnchor textAnchor String label boolean Number number double angle |
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 AncestorIterable 1 FileLevelJsDocBuilder [METHOD] <init> [RETURN_TYPE] Node,int,int) int nodeType Node left Node right int lineno int charno [VARIABLES] JSType jsType boolean used double number Node child cur current first last left mid mid2 next parent right start PropListItem next propListHead Object objectValue String str long serialVersionUID int ATTRIBUTE_FLAG BOTH BRACELESS_TYPE BREAK_PROP CASEARRAY_PROP CASES_PROP CATCH_SCOPE_PROP CODEOFFSET_PROP COLUMN_BITS COLUMN_MASK CONTINUE_PROP DEBUGSOURCE_PROP DECR_FLAG DEFAULT_PROP DESCENDANTS_FLAG DIRECTCALL_PROP DIRECTIVES EMPTY_BLOCK ENUM_PROP FINALLY_PROP FIXUPS_PROP FUNCTION_PROP INCRDECR_PROP ISNUMBER_PROP IS_CONSTANT_NAME IS_DISPATCHER IS_NAMESPACE IS_OPTIONAL_PARAM IS_VAR_ARGS_PARAM JSDOC_INFO_PROP LABEL_ID_PROP LABEL_PROP LASTUSE_PROP LAST_PROP LEFT LOCALCOUNT_PROP LOCAL_BLOCK_PROP LOCAL_PROP MAX_COLUMN_NUMBER MEMBER_TYPE_PROP NAME_PROP NON_SPECIALCALL NO_SIDE_EFFECTS_CALL OBJECT_IDS_PROP OPT_ARG_NAME ORIGINALNAME_PROP PARENTHESIZED_PROP POST_FLAG PROPERTY_FLAG QUOTED_PROP REGEXP_PROP RIGHT SKIP_INDEXES_PROP SOURCEFILE_PROP SOURCENAME_PROP SPECIALCALL_EVAL SPECIALCALL_PROP SPECIALCALL_WITH SPECIAL_PROP_PROP SYNTHETIC_BLOCK_PROP TARGETBLOCK_PROP TARGET_PROP TEMP_PROP TYPE_PROP USES_PROP VARIABLE_PROP VARS_PROP VAR_ARGS_NAME charno intValue lineno nodeType sourcePosition type |
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.finishCurrentSegment(); outputEnd = outputBuffer.length; outputPtr = 0; } outputBuffer[outputPtr++] =(byte)(0x80 |((c >> 6) & 0x3f)); } else { // yes, surrogate pair if(c > SURR1_LAST) { // must be from first range _illegalSurrogate(c); } if(inputPtr >= inputEnd) { _illegalSurrogate(c); } <extra_id_0> if(c > 0x10FFFF) { // illegal, as per RFC 4627 _illegalSurrogate(c); } outputBuffer[outputPtr++] =(byte)(0xf0 |(c >> 18)); if(outputPtr >= outputEnd) { outputBuffer = byteBuilder.finishCurrentSegment(); outputEnd = outputBuffer.length; outputPtr = 0; } outputBuffer[outputPtr++] =(byte)(0x80 |((c >> 12) & 0x3f)); if(outputPtr >= outputEnd) { outputBuffer = byteBuilder.finishCurrentSegment(); outputEnd = outputBuffer.length; outputPtr = 0; } [CLASS] JsonStringEncoder [METHOD] encodeAsUTF8 [RETURN_TYPE] byte[] String text [VARIABLES] byte[] HEX_BYTES outputBuffer boolean TextBuffer _textBuffer textBuffer ThreadLocal _threadEncoder ByteArrayBuilder _byteBuilder byteBuilder String text int INT_0 INT_BACKSLASH INT_U SURR1_FIRST SURR1_LAST SURR2_FIRST SURR2_LAST c ch escCode escCodeCount escape first inPtr inputEnd inputLen inputPtr length outPtr outputEnd outputPtr second char[] HEX_CHARS _quoteBuffer outputBuffer |
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 PropertySubGraph PropertyGraphNode ProcessExterns ProcessProperties Property JSTypeBitSet [METHOD] getIntForType [RETURN_TYPE] int JSType type [VARIABLES] Set externedNames invalidatingTypes quotedNames JSType type BiMap intForType String SKIP_PREFIX name newName oldName Logger logger Annotation annotation int newInt numOccurrences size long serialVersionUID char[] reservedCharacters Comparator FREQUENCY_COMPARATOR AbstractCompiler compiler boolean skipAmbiguating List stringNodesToRename Map colorMap nodes propertyMap relatedBitsets renamingMap Property p1 p2 prop property JSTypeBitSet relatedTypesSet typesInSet typesRelatedToSet typesSet |
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.length; i++) { if(i < fieldIndex) { types[i] = iTypes[i]; } else if(i > fieldIndex) { types[i - 1] = iTypes[i]; } } int[] indices = new int[8]; <extra_id_0> if(i < indicesIndex) { indices[i] = iIndices[i]; } else if(i > indicesIndex) { indices[i] =(iIndices[i] == -1 ? -1 : iIndices[i] - 1); } else { indices[i] = -1; } } return new PeriodType(getName() + name, types, indices); } [CLASS] PeriodType [METHOD] withFieldRemoved [RETURN_TYPE] PeriodType int indicesIndex String name [VARIABLES] PeriodType cDTime cDays cHours cMillis cMinutes cMonths cSeconds cStandard cTime cWeeks cYD cYDTime cYMD cYMDTime cYWD cYWDTime cYears checkPartType checkedType inPartType type boolean DurationFieldType[] iTypes types int[] iIndices indices values String iName name Map cTypes cache long serialVersionUID int DAY_INDEX HOUR_INDEX MILLI_INDEX MINUTE_INDEX MONTH_INDEX SECOND_INDEX WEEK_INDEX YEAR_INDEX fieldIndex i index indicesIndex isize newValue realIndex valueToAdd |
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_id_0> if(ptr >= len) { if(!usesPadding()) { decodedData >>= 2; builder.appendTwoBytes(decodedData); break; } _reportBase64EOF(); } ch = str.charAt(ptr++); bits = decodeBase64Char(ch); if(bits < 0) { if(bits != Base64Variant.BASE64_VALUE_PADDING) { _reportInvalidBase64(ch, 3, null); [CLASS] Base64Variant [METHOD] decode [RETURN_TYPE] void String str ByteArrayBuilder builder [VARIABLES] byte[] _base64ToAsciiB buffer input srcB boolean _usesPadding addQuotes usesPadding char PADDING_CHAR_NONE _paddingChar alpha c ch paddingChar int[] _asciiToBase64 srcV String _name base64Alphabet input name str ByteArrayBuilder builder int BASE64_VALUE_INVALID BASE64_VALUE_PADDING INT_SPACE _maxLineLength alphaLen b24 bits ch chunksBeforeLF decodedData i inputEnd inputLeft inputPtr len maxLineLength outPtr outputBytes outputLen ptr safeInputEnd value long serialVersionUID char[] _base64ToAsciiC buffer srcC |
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(local.charAt(n + 1)) >= 0)){ break; } if(regionMatch(local, n,"CIA")) { //"CIA" -> X code.append('X'); break; } <extra_id_0> code.append('S'); break; // CI,CE,CY -> S } if(isPreviousChar(local, n, 'S') && isNextChar(local, n, 'H')){ // SCH->sk code.append('K'); break; } if(isNextChar(local, n, 'H')) { // detect CH if((n == 0) &&(wdsz >= 3) && isVowel(local,2)){ // CH consonant -> K consonant code.append('K'); } else { [CLASS] Metaphone [METHOD] metaphone [RETURN_TYPE] String String txt [VARIABLES] char symb StringBuffer code local String FRONTV VARSON VOWELS txt boolean hard int maxCodeLen n wdsz char[] inwd |
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> } [CLASS] SettableAnyProperty [METHOD] deserializeAndSet [RETURN_TYPE] void JsonParser jp DeserializationContext ctxt Object instance String propName [VARIABLES] JavaType _type type boolean DeserializationContext ctxt Object instance Method _setter rawSetter String propName JsonDeserializer _valueDeserializer deser valueDeser BeanProperty _property property JsonParser jp |
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) { ret = false; } } return ret; } [CLASS] Fraction [METHOD] equals [RETURN_TYPE] boolean Object other [VARIABLES] Fraction ONE ZERO other ret rhs Object other boolean ret long serialVersionUID int a0 a1 den denominator maxIterations n num numerator p0 p1 p2 q0 q1 q2 ret 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 DateTimeFieldType fieldType String text Locale locale [VARIABLES] Locale iLocale locale Integer iPivotYear pivotYear boolean iSavedFieldsShared SavedField[] iSavedFields DateTimeFieldType fieldType Object iSavedState Chronology chrono iChrono DateTimeField field iField String iText text long iMillis instantLocal DateTimeZone iZone zone int defaultYear iDefaultYear iOffset iSavedFieldsCount iValue offset value |
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 HashMap(); for(Iterator j = map.keySet().iterator(); j.hasNext();) { key =(String) j.next(); <extra_id_0> } urlGen.addURLs(newMap); newMap = null; } return urlGen; } [CLASS] CustomPieURLGenerator [METHOD] clone [RETURN_TYPE] Object [VARIABLES] boolean CustomPieURLGenerator urlGen ArrayList urls Iterator i j String key Map map newMap long serialVersionUID |
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(), dataArea, xAxisLocation); int seriesCount = getRowCount(); int categoryCount = getColumnCount(); <extra_id_0> double seriesGap = dataArea.getHeight() * getItemMargin() rectY = rectY + row *(state.getBarWidth() + seriesGap); } else { rectY = rectY + row * state.getBarWidth(); } Number meanValue = dataset.getMeanValue(row, column); double value = meanValue.doubleValue(); double base = 0.0; double lclip = getLowerClip(); double uclip = getUpperClip(); [CLASS] StatisticalBarRenderer [METHOD] drawHorizontalItem [RETURN_TYPE] void Graphics2D g2 CategoryItemRendererState state Rectangle2D dataArea CategoryPlot plot CategoryAxis domainAxis ValueAxis rangeAxis StatisticalCategoryDataset dataset int row int column [VARIABLES] CategoryItemRendererState state double base highVal lclip lowVal rectHeight rectWidth rectX rectY seriesGap transY1 transY2 uclip value valueDelta Rectangle2D bar dataArea CategoryItemLabelGenerator generator Paint errorIndicatorPaint paint seriesPaint Line2D line long serialVersionUID CategoryPlot plot int categoryCount column row seriesCount Graphics2D g2 StatisticalCategoryDataset dataset boolean Number meanValue CategoryAxis domainAxis EntityCollection entities ValueAxis rangeAxis RectangleEdge xAxisLocation yAxisLocation |
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_TYPE] void [VARIABLES] int[][] base limit perm InputStream in inShadow char[][] temp_charArray2d Data data int[] cftab minLens tt unzftab int EOF NO_RAND_PART_A_STATE NO_RAND_PART_B_STATE NO_RAND_PART_C_STATE RAND_PART_A_STATE RAND_PART_B_STATE RAND_PART_C_STATE START_BLOCK_STATE b blockSize blockSize100k bsBuff bsLive computedBlockCRC computedCombinedCRC currentChar currentState destOffs hi i last len magic nInUse nInUseShadow offs origPtr retChar storedBlockCRC storedCombinedCRC su_ch2 su_chPrev su_count su_i2 su_j2 su_rNToGo su_rTPos su_tPos char[] getAndMoveToFrontDecode_yy byte[] dest ll8 recvDecodingTables_pos selector selectorMtf seqToUnseq boolean blockRandomised CRC crc char expected magic0 magic1 magic2 magic3 magic4 magic5 su_z boolean[] inUse |
} 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 < escLimit) { escCode = escCodes[c]; if(escCode != 0) { break escape_loop; } <extra_id_0> escCode = CharacterEscapes.ESCAPE_STANDARD; break escape_loop; } else { if((_currentEscape = customEscapes.getEscapeSequence(c)) != null) { escCode = CharacterEscapes.ESCAPE_CUSTOM; break escape_loop; } } if(++_outputTail >= end) { break output_loop; } } int flushLen =(_outputTail - _outputHead); if(flushLen > 0) { _writer.write(_outputBuffer, _outputHead, flushLen); [CLASS] WriterBasedJsonGenerator [METHOD] _writeStringCustom [RETURN_TYPE] void final int len [VARIABLES] SerializableString _currentEscape name sstr text boolean CharacterEscapes customEscapes char c int[] escCodes int SHORT_WRITE _outputEnd _outputHead _outputTail amount bytes dataLength end escCode escLen escLimit features flushLen i len length max maxNonEscaped missing newAmount offset ptr qlen room segmentLen start status textLen Writer _writer w char[] HEX_CHARS _entityBuffer _outputBuffer buf quoted text |
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 { <extra_id_0> throw new MatrixIndexException("invalid row or column index selection"); } BigMatrixImpl subMatrix = new BigMatrixImpl(endRow - startRow+1, endColumn - startColumn+1); BigDecimal[][] subMatrixData = subMatrix.getDataRef(); for(int i = startRow; i <= endRow; i++) { for(int j = startColumn; j <= endColumn; j++) { subMatrixData[i - startRow][j - startColumn] = data[i][j]; } } return subMatrix; } [CLASS] BigMatrixImpl [METHOD] getSubMatrix [RETURN_TYPE] BigMatrix int startRow int endRow int startColumn int endColumn [VARIABLES] boolean BigMatrixImpl subMatrix int[] permutation long serialVersionUID int col columnCount columnDimension endColumn endRow i j nCols nRows nSum parity roundingMode row rowCount rowDimension scale startColumn startRow BigDecimal ONE TOO_SMALL ZERO d maxColSum sum BigDecimal[][] d data lu outData subMatrixData |
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, len); _currentSize += len; return; } if(max > 0) { <extra_id_0> start += max; len -= max; } do { expand(len); int amount = Math.min(_currentSegment.length, len); System.arraycopy(c, start, _currentSegment, 0, amount); _currentSize += amount; start += amount; len -= amount; } while(len > 0); [CLASS] TextBuffer [METHOD] append [RETURN_TYPE] void char[] c int start int len [VARIABLES] boolean _hasSegments BufferRecycler _allocator allocator ArrayList _segments String _resultString value int MAX_SEGMENT_LEN MIN_SEGMENT_LEN _currentSize _inputLen _inputStart _segmentSize amount currLen i len max needed segLen start char[] NO_CHARS _currentSegment _inputBuffer _resultArray buf c curr result |
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 int series int item [VARIABLES] boolean List data TimePeriodAnchor position xPosition TimePeriodValues ts TimePeriodValue dp long serialVersionUID int item series |
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 LinkedDirectedGraphNode NeighborIterator LinkedDirectedGraphEdge [METHOD] getNodes [RETURN_TYPE] List [VARIABLES] DiGraphNode dNode dNode1 dNode2 destNode node sourceNode boolean E edgeValue value Iterator in out List backwardEdges edgeList edges forwardEdges inEdgeList list nodeList outEdgeList Map nodes N destValue n1 n2 nodeValue srcValue value Annotation annotation int id totalNodes totalSize |
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.BOTTOM_CENTER; } else { <extra_id_0> rotationAnchor = TextAnchor.TOP_CENTER; } } Tick tick = new NumberTick(new Double(currentTickValue), tickLabel, anchor, rotationAnchor, angle); ticks.add(tick); } } return ticks; } [CLASS] SymbolAxis [METHOD] refreshTicksHorizontal [RETURN_TYPE] List Graphics2D g2 Rectangle2D dataArea RectangleEdge edge [VARIABLES] TextAnchor anchor rotationAnchor double angle avgTickLabelLength currentTickValue lowestTickValue previousDrawnTickLabelLength previousDrawnTickLabelPos size tickLabelLength xx Rectangle2D bounds dataArea Paint DEFAULT_GRID_BAND_PAINT gridBandPaint paint String tickLabel long serialVersionUID Font tickLabelFont int count i Graphics2D g2 boolean currentGridBandIsDark firstGridBandIsDark flag gridBandsVisible tickLabelsOverlapping List symbols ticks Tick tick RectangleEdge edge NumberFormat formatter |
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> .append(","); appendLabel(dflt); buf.append(", new Label[] {"); for(int i = 0; i < labels.length; ++i) { buf.append(i == 0 ?"" :","); appendLabel(labels[i]); } buf.append(" });\n"); text.add(buf.toString()); } [CLASS] ASMifierMethodVisitor [METHOD] visitTableSwitchInsn [RETURN_TYPE] void final int min final int max Label dflt Label[] labels [VARIABLES] Label[] labels boolean Label dflt int i max min |
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 n = getFirstParameter(); if(hasKnownTypeOfThis && n != null) { b.append(","); } for(int i = 0; n != null; ++i, n = n.getNext()) { String paramName = n.getString(); StaticSlot<ConcreteType> var = getScope().getOwnSlot(paramName); <extra_id_0> getParameterSlot(i).getType(); if(n.getNext() != null) { b.append(","); } } b.append(")"); if(getReturnSlot().getType() != null) { b.append(":"); b.append(getReturnSlot().getType().toString()); } return b.toString(); [CLASS] ConcreteFunctionType [METHOD] toString [RETURN_TYPE] String [VARIABLES] ConcreteInstanceType instanceType prototypeType StaticSlot var boolean hasKnownTypeOfThis StringBuilder b Node declaration n StaticScope bodyScope parentScope Factory factory String CALL_SLOT_NAME RETURN_SLOT_NAME THIS_SLOT_NAME paramName int i |
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)) { return dest.markReference(startModule); } else { <extra_id_0> } } return false; } [CLASS] PropagateReferences [METHOD] traverseEdge [RETURN_TYPE] boolean NameInfo start JSModule edge NameInfo dest [VARIABLES] NameInfo dest start boolean JSModule edge startModule |
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.yearOfEra = convertField(fields.yearOfEra); fields.yearOfCentury = convertField(fields.yearOfCentury); fields.centuryOfEra = convertField(fields.centuryOfEra); fields.era = convertField(fields.era); fields.dayOfWeek = convertField(fields.dayOfWeek); fields.dayOfMonth = convertField(fields.dayOfMonth); fields.dayOfYear = convertField(fields.dayOfYear); fields.monthOfYear = convertField(fields.monthOfYear); fields.weekOfWeekyear = convertField(fields.weekOfWeekyear); fields.weekyear = convertField(fields.weekyear); fields.weekyearOfCentury = convertField(fields.weekyearOfCentury); fields.millisOfSecond = convertField(fields.millisOfSecond); fields.millisOfDay = convertField(fields.millisOfDay); <extra_id_0> fields.secondOfDay = convertField(fields.secondOfDay); fields.minuteOfHour = convertField(fields.minuteOfHour); fields.minuteOfDay = convertField(fields.minuteOfDay); fields.hourOfDay = convertField(fields.hourOfDay); fields.hourOfHalfday = convertField(fields.hourOfHalfday); fields.clockhourOfDay = convertField(fields.clockhourOfDay); fields.clockhourOfHalfday = convertField(fields.clockhourOfHalfday); fields.halfdayOfDay = convertField(fields.halfdayOfDay); } [CLASS] StrictChronology [METHOD] assemble [RETURN_TYPE] void Fields fields [VARIABLES] Chronology base iWithUTC Fields fields boolean long serialVersionUID |
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 [RETURN_TYPE] Element String tagName [VARIABLES] Set classNames Tag tag String tagName boolean Element child |
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); option.setType(type); option.setValueSeparator(valuesep); option.setArgName(argName); OptionBuilder.reset(); return option; } [CLASS] OptionBuilder [METHOD] create [RETURN_TYPE] Option String opt [VARIABLES] boolean hasArg newRequired optionalArg required OptionBuilder instance char opt sep valuesep Object newType type Option option String argName description longopt name newDescription newLongopt opt int num numArgs numberOfArgs |
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] getCurrentLocation [RETURN_TYPE] JsonLocation [VARIABLES] double MAX_INT_D MAX_LONG_D MIN_INT_D MIN_LONG_D _numberDouble ByteArrayBuilder _byteArrayBuilder int INT_0 INT_1 INT_2 INT_3 INT_4 INT_5 INT_6 INT_7 INT_8 INT_9 INT_DECIMAL_POINT INT_E INT_MINUS INT_PLUS INT_e NR_BIGDECIMAL NR_BIGINT NR_DOUBLE NR_INT NR_LONG NR_UNKNOWN _currInputRow _currInputRowStart _expLength _fractLength _inputEnd _inputPtr _intLength _numTypesValid _numberInt _tokenInputCol _tokenInputRow col features long MAX_INT_L MIN_INT_L _currInputProcessed _numberLong _tokenInputTotal BigDecimal BD_MAX_INT BD_MAX_LONG BD_MIN_INT BD_MIN_LONG _numberBigDecimal char[] _nameCopyBuffer JsonReadContext _parsingContext ctxt parent byte[] _binaryValue boolean _closed _nameCopied _numberNegative TextBuffer _textBuffer char CHAR_NULL IOContext _ioContext ctxt BigInteger BI_MAX_INT BI_MAX_LONG BI_MIN_INT BI_MIN_LONG _numberBigInt JsonToken _nextToken |
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 && memberTypeFlags == 0) { if(target == null) { return createName(name, nameLineno, nameCharno); } checkActivationName(name, Token.GETPROP); if(ScriptRuntime.isSpecialProperty(name)) { Node ref = new Node(Token.REF_SPECIAL, target); ref.putProp(Node.NAME_PROP, name); return new Node(Token.GET_REF, ref, dotLineno, dotCharno); } return new Node( Token.GETPROP, target, <extra_id_0> } Node elem = createString(name); memberTypeFlags |= Node.PROPERTY_FLAG; return createMemberRefGet(target, namespace, elem, memberTypeFlags, dotLineno, dotCharno); } [CLASS] IRFactory [METHOD] createPropertyGet [RETURN_TYPE] Node Node target String namespace String name int memberTypeFlags int dotLineno int dotCharno int nameLineno int nameCharno [VARIABLES] String name namespace boolean int dotCharno dotLineno memberTypeFlags nameCharno nameLineno Parser parser Node elem ref target |
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.hasChildren()) { <extra_id_0> parent.addChildAfter(child, previous); previous = child; } parent.removeChild(block); return true; } else if(parent.getType() == Token.LABEL && block.hasOneChild()) { parent.replaceChild(block, block.removeFirstChild()); return true; } else { return false; } } [CLASS] NodeUtil VarCollector MatchNameNode MatchNodeType [METHOD] tryMergeBlock [RETURN_TYPE] boolean Node block [VARIABLES] Set CONSTRUCTORS_WITHOUT_SIDE_EFFECTS defines emptySet knownConstants String CONSTANT_MARKER className name namespaceName boolean Map vars int type Node block child parent previous |
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]; ge--; } <extra_id_0> if(v >= gs && v <= ge) { len[nPart - 1][v] =(char) LESSER_ICOST; } else { len[nPart - 1][v] =(char) GREATER_ICOST; } } nPart--; gs = ge + 1; remF -= aFreq; } } int[][] rfreq = new int[N_GROUPS][MAX_ALPHA_SIZE]; int[] fave = new int[N_GROUPS]; [CLASS] BZip2CompressorOutputStream StackElem [METHOD] sendMTFValues [RETURN_TYPE] void [VARIABLES] boolean blockRandomised closed firstAttempt tooLong int[][] code rfreq CRC mCrc OutputStream bsStream f inStream short[] cost szptr char ll_i tmp tmp2 char[][] len short cost0 cost1 cost2 cost3 cost4 cost5 icv int[] code fave freq ftab heap incs mtfFreq parent quadrant weight zptr boolean[] inUse inUse16 int CLEARMASK DEPTH_THRESH GREATER_ICOST LESSER_ICOST QSORT_STACK_SIZE SETMASK SMALL_THRESH aFreq allowableBlockSize alphaSize b bc blockCRC blockSize100k bsBuff bsLive bt bv bytesOut c ch combinedCRC curr currentChar dd ge gs hh i inBlockSize iter j k last ll maxLen minLen n n1 n2 nBlocksRandomised nGroups nHeap nInUse nMTF nNodes nPart nSelectors numBits origPtr remF runLength selCtr t tFreq tmp totc u v vec workDone workFactor workLimit yy zz char[] block len length pos selector selectorMtf seqToUnseq unseqToSeq |
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.week != FIRST_WEEK_IN_YEAR) { result = new Week(this.week - 1, this.year); } else { if(this.year > 1900) { int yy = this.year - 1; Calendar prevYearCalendar = Calendar.getInstance(); prevYearCalendar.set(yy, Calendar.DECEMBER, 31); <extra_id_0> } else { result = null; } } return result; } [CLASS] Week [METHOD] previous [RETURN_TYPE] RegularTimePeriod [VARIABLES] boolean byte week Calendar prevYearCalendar short year Week result long firstMillisecond lastMillisecond serialVersionUID int FIRST_WEEK_IN_YEAR LAST_WEEK_IN_YEAR tempWeek week year yy yyyy |
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(); float y1 = y0 -(float) Math.abs(this.yOffset); float y3 =(float) dataArea.getMinY(); float y2 = y3 +(float) Math.abs(this.yOffset); GeneralPath clip = new GeneralPath(); clip.moveTo(x0, y0); clip.lineTo(x0, y2); clip.lineTo(x1, y3); <extra_id_0> clip.lineTo(x3, y1); clip.lineTo(x2, y0); clip.closePath(); Stroke outlineStroke = plot.getOutlineStroke(); Paint outlinePaint = plot.getOutlinePaint(); if((outlineStroke != null) &&(outlinePaint != null)) { g2.setStroke(outlineStroke); g2.setPaint(outlinePaint); g2.draw(clip); } } [CLASS] BarRenderer3D [METHOD] drawOutline [RETURN_TYPE] void Graphics2D g2 CategoryPlot plot Rectangle2D dataArea [VARIABLES] Stroke outlineStroke boolean GeneralPath clip double DEFAULT_X_OFFSET DEFAULT_Y_OFFSET xOffset yOffset Rectangle2D dataArea Paint DEFAULT_WALL_PAINT backgroundPaint outlinePaint paint wallPaint float x0 x1 x2 x3 y0 y1 y2 y3 long serialVersionUID CategoryPlot plot Graphics2D g2 |
} 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 propName = jp.getCurrentName(); if("className".equals(propName)) { className = jp.getText(); } else if("fileName".equals(propName)) { fileName = jp.getText(); } else if("lineNumber".equals(propName)) { if(t.isNumeric()) { lineNumber = jp.getIntValue(); } else { throw JsonMappingException.from(jp,"Non-numeric token("+t+") for property 'lineNumber'"); } } else if("methodName".equals(propName)) { methodName = jp.getText(); <extra_id_0> } else { handleUnknownProperty(jp, ctxt, _valueClass, propName); } } return new StackTraceElement(className, methodName, fileName, lineNumber); } throw ctxt.mappingException(_valueClass, t); } [CLASS] StackTraceElementDeserializer [METHOD] deserialize [RETURN_TYPE] StackTraceElement JsonParser jp DeserializationContext ctxt [VARIABLES] StackTraceElementDeserializer instance boolean DeserializationContext ctxt JsonToken t String className fileName methodName propName int lineNumber JsonParser jp |
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 CallbackInfo[] CALLBACKS |
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.setJSType( getPropertyType( objNode.getJSType(), property.getString(), n, scope)); <extra_id_0> } [CLASS] TypeInference BooleanOutcomePair [METHOD] traverseGetProp [RETURN_TYPE] FlowScope Node n FlowScope scope [VARIABLES] ReverseAbstractInterpreter reverseInterpreter AbstractCompiler compiler JSTypeRegistry registry boolean Scope functionScope syntacticScope DiagnosticType TEMPLATE_TYPE_NOT_OBJECT_TYPE TEMPLATE_TYPE_OF_THIS_EXPECTED Node n objNode property BooleanLiteralSet booleanValues toBooleanOutcomes FlowScope bottomScope conditionFlowScope falseScope functionScope informed input joinedScope leftScope newScope output rightScope scope trueScope |
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; archive = new RandomAccessFile(f,"r"); boolean success = false; try { <extra_id_0> resolveLocalFileHeaderData(entriesWithoutEFS); success = true; } finally { if(!success) { try { archive.close(); } catch(IOException e2) { } } } [CLASS] ZipFile OffsetEntry BoundedInputStream NameAndComment [METHOD] <init> [RETURN_TYPE] String,boolean) File f String encoding boolean useUnicodeExtraFields [VARIABLES] byte[] comment name boolean addDummyByte success useUnicodeExtraFields ZipEncoding zipEncoding RandomAccessFile archive String encoding name IOException e2 Map entries entriesWithoutEFS nameMap File f int BYTE_SHIFT CFD_LOCATOR_OFFSET CFH_LEN HASH_SIZE MAX_EOCD_SIZE MIN_EOCD_SIZE NIBLET_MASK POS_0 POS_1 POS_2 POS_3 SHORT WORD long LFH_OFFSET_FOR_FILENAME_LENGTH dataOffset headerOffset loc remaining |
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) != '>') { <extra_id_0> } return pos + 1; } [CLASS] CheckMethodAdapter [METHOD] checkFormalTypeParameters [RETURN_TYPE] int String signature int pos [VARIABLES] int[] TYPE keys boolean canBeVoid endCode endMethod startCode visible String signature Map labels int 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; } if(pointer != null) { int quality = computeQuality(pointer); <extra_id_0> return pointer; } if(quality > bestQuality) { bestMatch =(NodePointer) pointer.clone(); bestQuality = quality; } } } if(bestMatch != null) { return bestMatch; } } else { [CLASS] SimplePathInterpreter [METHOD] doPredicateName [RETURN_TYPE] NodePointer EvalContext context NodePointer parent Step[] steps int currentStep Expression[] predicates int currentPredicate [VARIABLES] boolean Expression predicate QName QNAME_NAME name Expression[] predicates EvalContext context Step[] steps NodePointer bestMatch child found parent pointer valuePointer String key PropertyPointer pointer int PERFECT_MATCH axis bestQuality count currentPredicate currentStep i index quality |
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(Number.class, NUMBER_TYPE_ADAPTER); map.register(Short.class, SHORT_TYPE_ADAPTER); map.register(short.class, SHORT_TYPE_ADAPTER); map.register(String.class, STRING_TYPE_ADAPTER); map.makeUnmodifiable(); return map; } private static ParameterizedTypeHandlerMap<JsonDeserializer<?>> createDefaultDeserializers() { ParameterizedTypeHandlerMap<JsonDeserializer<?>> map = new ParameterizedTypeHandlerMap<JsonDeserializer<?>>(); map.registerForTypeHierarchy(Enum.class, wrapDeserializer(ENUM_TYPE_ADAPTER)); <extra_id_0> map.register(URI.class, wrapDeserializer(URI_TYPE_ADAPTER)); map.register(UUID.class, wrapDeserializer(UUUID_TYPE_ADAPTER)); map.register(Locale.class, wrapDeserializer(LOCALE_TYPE_ADAPTER)); map.registerForTypeHierarchy(Collection.class, wrapDeserializer(COLLECTION_TYPE_ADAPTER)); map.registerForTypeHierarchy(Map.class, wrapDeserializer(MAP_TYPE_ADAPTER)); map.register(Date.class, wrapDeserializer(DATE_TYPE_ADAPTER)); map.register(java.sql.Date.class, wrapDeserializer(JAVA_SQL_DATE_TYPE_ADAPTER)); map.register(Timestamp.class, wrapDeserializer(TIMESTAMP_DESERIALIZER)); map.register(Time.class, wrapDeserializer(TIME_TYPE_ADAPTER)); map.register(Calendar.class, GREGORIAN_CALENDAR_TYPE_ADAPTER); map.register(GregorianCalendar.class, GREGORIAN_CALENDAR_TYPE_ADAPTER); map.register(BigDecimal.class, wrapDeserializer(BIG_DECIMAL_TYPE_ADAPTER)); map.register(BigInteger.class, wrapDeserializer(BIG_INTEGER_TYPE_ADAPTER)); [CLASS] DefaultTypeAdapters DefaultDateTypeAdapter DefaultJavaSqlDateTypeAdapter DefaultTimestampDeserializer DefaultTimeTypeAdapter GregorianCalendarTypeAdapter EnumTypeAdapter UrlTypeAdapter UriTypeAdapter UuidTypeAdapter LocaleTypeAdapter CollectionTypeAdapter PropertiesCreator MapTypeAdapter BigDecimalTypeAdapter BigIntegerTypeAdapter NumberTypeAdapter LongSerializer LongDeserializer IntegerTypeAdapter ShortTypeAdapter ByteTypeAdapter FloatSerializer FloatDeserializer DoubleSerializer DoubleDeserializer CharacterTypeAdapter StringTypeAdapter BooleanTypeAdapter TreeSetCreator HashSetCreator [METHOD] createDefaultDeserializers [RETURN_TYPE] ParameterizedTypeHandlerMap [VARIABLES] LocaleTypeAdapter LOCALE_TYPE_ADAPTER IntegerTypeAdapter INTEGER_TYPE_ADAPTER BigIntegerTypeAdapter BIG_INTEGER_TYPE_ADAPTER TreeSetCreator TREE_SET_CREATOR StringTypeAdapter STRING_TYPE_ADAPTER LongSerializationPolicy longSerializationPolicy String DAY_OF_MONTH HOUR_OF_DAY MINUTE MONTH SECOND YEAR datePattern DefaultDateTypeAdapter DATE_TYPE_ADAPTER UriTypeAdapter URI_TYPE_ADAPTER CollectionTypeAdapter COLLECTION_TYPE_ADAPTER MapTypeAdapter MAP_TYPE_ADAPTER BigDecimalTypeAdapter BIG_DECIMAL_TYPE_ADAPTER DefaultTimeTypeAdapter TIME_TYPE_ADAPTER UuidTypeAdapter UUUID_TYPE_ADAPTER FloatDeserializer FLOAT_TYPE_ADAPTER HashSetCreator HASH_SET_CREATOR ShortTypeAdapter SHORT_TYPE_ADAPTER ByteTypeAdapter BYTE_TYPE_ADAPTER DefaultJavaSqlDateTypeAdapter JAVA_SQL_DATE_TYPE_ADAPTER PropertiesCreator PROPERTIES_CREATOR BooleanTypeAdapter BOOLEAN_TYPE_ADAPTER boolean serializeSpecialDoubleValues serializeSpecialFloatingPointValues LongDeserializer LONG_DESERIALIZER DefaultTimestampDeserializer TIMESTAMP_DESERIALIZER NumberTypeAdapter NUMBER_TYPE_ADAPTER EnumTypeAdapter ENUM_TYPE_ADAPTER DateFormat format GregorianCalendarTypeAdapter GREGORIAN_CALENDAR_TYPE_ADAPTER UrlTypeAdapter URL_TYPE_ADAPTER CharacterTypeAdapter CHARACTER_TYPE_ADAPTER DoubleDeserializer DOUBLE_TYPE_ADAPTER ParameterizedTypeHandlerMap DEFAULT_DESERIALIZERS DEFAULT_INSTANCE_CREATORS DEFAULT_SERIALIZERS map |
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(isVerticalTickLabels()) { anchor = TextAnchor.BOTTOM_CENTER; rotationAnchor = TextAnchor.BOTTOM_CENTER; <extra_id_0> angle = -Math.PI / 2.0; } else { angle = Math.PI / 2.0; } } else { if(edge == RectangleEdge.LEFT) { anchor = TextAnchor.CENTER_RIGHT; rotationAnchor = TextAnchor.CENTER_RIGHT; } else { anchor = TextAnchor.CENTER_LEFT; rotationAnchor = TextAnchor.CENTER_LEFT; } [CLASS] SymbolAxis [METHOD] refreshTicksVertical [RETURN_TYPE] List Graphics2D g2 Rectangle2D dataArea RectangleEdge edge [VARIABLES] TextAnchor anchor rotationAnchor double angle avgTickLabelLength currentTickValue lowestTickValue previousDrawnTickLabelLength previousDrawnTickLabelPos size tickLabelLength yy Rectangle2D bounds dataArea Paint DEFAULT_GRID_BAND_PAINT gridBandPaint paint String tickLabel long serialVersionUID Font tickLabelFont int count i Graphics2D g2 boolean currentGridBandIsDark firstGridBandIsDark flag gridBandsVisible tickLabelsOverlapping List symbols ticks Tick tick RectangleEdge edge NumberFormat formatter |
_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; break; } } if(++ptr >= end) { break; } } int flushLen =(ptr - start); if(flushLen > 0) { <extra_id_0> if(ptr >= end) { break output_loop; } } ++ptr; start = _prependOrWriteCharacterEscape(_outputBuffer, ptr, end, c, escCode); } } private void _writeStringCustom(char[] text, int offset, int len) throws IOException, JsonGenerationException { len += offset; // -> len marks the end from now on final int[] escCodes = _outputEscapes; [CLASS] WriterBasedJsonGenerator [METHOD] _writeSegmentCustom [RETURN_TYPE] void int end [VARIABLES] SerializableString _currentEscape name sstr text boolean CharacterEscapes customEscapes char c int[] escCodes int SHORT_WRITE _outputEnd _outputHead _outputTail amount bytes dataLength end escCode escLen escLimit features flushLen i len length max maxNonEscaped missing newAmount offset ptr qlen room segmentLen start status textLen Writer _writer w char[] HEX_CHARS _entityBuffer _outputBuffer buf quoted text |
[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 != ReferenceStrength.HARD) {((Reference<?>) value).clear(); } else if(parent.purgeValues) { value = null; } } return r; [CLASS] ReferenceEntry [METHOD] purge [RETURN_TYPE] boolean Reference<?> ref [VARIABLES] Reference ref AbstractReferenceMap parent boolean 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 += count; } return n; } [CLASS] CpioArchiveInputStream [METHOD] readFully [RETURN_TYPE] int final byte[] b final int off final int len [VARIABLES] byte[] b magic more_magic singleByteBuf tmp tmpbuf boolean closed entryEOF InputStream in CpioArchiveEntry entry long count crc entryBytesRead skip int count len n off |
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","Pacific/Apia"); map.put("HST","Pacific/Honolulu"); <extra_id_0> map.put("PST","America/Los_Angeles"); map.put("MST","America/Denver"); map.put("PNT","America/Phoenix"); map.put("CST","America/Chicago"); map.put("EST","America/New_York"); map.put("IET","America/Indianapolis"); map.put("PRT","America/Puerto_Rico"); map.put("CNT","America/St_Johns"); map.put("AGT","America/Buenos_Aires"); map.put("BET","America/Sao_Paulo"); map.put("WET","Europe/London"); map.put("ECT","Europe/Paris"); map.put("ART","Africa/Cairo"); map.put("CAT","Africa/Harare"); map.put("EET","Europe/Bucharest"); [CLASS] DateTimeZone 1 Stub [METHOD] getConvertedId [RETURN_TYPE] String String id [VARIABLES] Set cAvailableIDs ids boolean NameProvider cNameProvider nameProvider String convId iID id providerClass DateTimeFormatter cOffsetFormatter Map cZoneIdConversion iFixedOffsetCache map long serialVersionUID DateTimeZone UTC cDefault dtz temp zone Provider cProvider provider |
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 long instant int value [VARIABLES] long instant serialVersionUID int value boolean |
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(_unwrappedPropertyHandler != null) { return deserializeWithUnwrapped(jp, ctxt, bean); } <extra_id_0> return deserializeWithExternalTypeId(jp, ctxt, bean); } JsonToken t = jp.getCurrentToken(); if(t == JsonToken.START_OBJECT) { t = jp.nextToken(); } if(_needViewProcesing) { Class<?> view = ctxt.getActiveView(); if(view != null) { return deserializeWithView(jp, ctxt, bean, view); } } for(; t == JsonToken.FIELD_NAME; t = jp.nextToken()) { String propName = jp.getCurrentName(); [CLASS] BeanDeserializer [METHOD] deserialize [RETURN_TYPE] Object JsonParser jp DeserializationContext ctxt Object bean [VARIABLES] boolean SettableBeanProperty prop DeserializationContext ctxt Object bean JsonToken t Class view String propName long serialVersionUID Exception e JsonParser jp |
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; } case BigDecimal.ROUND_HALF_EVEN : { double fraction = Math.abs(unscaled - Math.floor(unscaled)); if(fraction > 0.5) { unscaled = Math.ceil(unscaled); } else if(fraction < 0.5) { unscaled = Math.floor(unscaled); } else { <extra_id_0> unscaled = Math.floor(unscaled); } else { // odd unscaled = Math.ceil(unscaled); } } break; } case BigDecimal.ROUND_HALF_UP : { double fraction = Math.abs(unscaled - Math.floor(unscaled)); if(fraction >= 0.5) { unscaled = Math.ceil(unscaled); } else { unscaled = Math.floor(unscaled); } [CLASS] MathUtils [METHOD] roundUnscaled [RETURN_TYPE] double double unscaled double sign int roundingMethod [VARIABLES] short NS PS ZS x boolean byte NB PB ZB x double fraction sign unscaled int roundingMethod |
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 [VARIABLES] List data String DEFAULT_DOMAIN_DESCRIPTION DEFAULT_RANGE_DESCRIPTION description domain old range boolean long e end maxEnd maxMiddle maxStart middle minEnd minMiddle minStart s serialVersionUID start int count end i index maxEndIndex maxMiddleIndex maxStartIndex minEndIndex minMiddleIndex minStartIndex result start |
(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]); } } [CLASS] ArrayDataAdapter [METHOD] computeBinStats [RETURN_TYPE] void double min double delta [VARIABLES] SummaryStatistics stats boolean double[] in inputArray double delta min int 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 serialVersionUID startInstant boolean |
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 = getDataItem(this.maxEndIndex).getPeriod().getEnd().getTime(); <extra_id_0> this.maxEndIndex = index; } } else { this.maxEndIndex = index; } } private void recalculateBounds() { this.minStartIndex = -1; this.minMiddleIndex = -1; [CLASS] TimePeriodValues [METHOD] updateBounds [RETURN_TYPE] void TimePeriod period int index [VARIABLES] List data String DEFAULT_DOMAIN_DESCRIPTION DEFAULT_RANGE_DESCRIPTION description domain old range boolean long e end maxEnd maxMiddle maxStart middle minEnd minMiddle minStart s serialVersionUID start int index maxEndIndex maxMiddleIndex maxStartIndex minEndIndex minMiddleIndex minStartIndex TimePeriod period |
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 null; } if(length == 1) { return converters[0]; } for(int i=length; --i>=0;){ converter = converters[i]; Class<?> supportedType = converter.getSupportedType(); for(int j=length; --j>=0;){ if(j != i && converters[j].getSupportedType().isAssignableFrom(supportedType)) { [CLASS] ConverterSet Entry [METHOD] selectSlow [RETURN_TYPE] Converter ConverterSet set Class<?> type [VARIABLES] StringBuffer msg boolean Converter[] converters copy iConverters removed ConverterSet set Converter converter existing iConverter Class iType supportedType type int i j length Entry[] entries iSelectEntries newEntries |
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()) { enhancer.setSuperclass(Object.class); enhancer.setInterfaces(prepend(mockedType, interfaces)); } else { enhancer.setSuperclass(mockedType); enhancer.setInterfaces(interfaces); } <extra_id_0> enhancer.setCallbackFilter(IGNORE_BRIDGE_METHODS); if(mockedType.getSigners() != null) { enhancer.setNamingPolicy(NAMING_POLICY_THAT_ALLOWS_IMPOSTERISATION_OF_CLASSES_IN_SIGNED_PACKAGES); } else { enhancer.setNamingPolicy(MockitoNamingPolicy.INSTANCE); } try { return enhancer.createClass(); } catch(CodeGenerationException e) { if(Modifier.isPrivate(mockedType.getModifiers())) { throw new MockitoException("\n" +"Mockito cannot mock this class:" + mockedType +".\n" +"Most likely it is a private class that is not visible by Mockito"); [CLASS] ClassImposterizer 1 2 3 ClassWithSuperclassToWorkAroundCglibBug [METHOD] createProxyClass [RETURN_TYPE] <T> Class<?> mockedType interfaces [VARIABLES] ObjenesisStd objenesis Class[] interfaces boolean Enhancer enhancer CodeGenerationException e ClassImposterizer INSTANCE Class mockedType sc List constructors CallbackFilter IGNORE_BRIDGE_METHODS NamingPolicy NAMING_POLICY_THAT_ALLOWS_IMPOSTERISATION_OF_CLASSES_IN_SIGNED_PACKAGES |
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> return false; } return true; } [CLASS] ArrayUtils [METHOD] isSameLength [RETURN_TYPE] boolean long[] array1 long[] array2 [VARIABLES] Class[] EMPTY_CLASS_ARRAY long[] EMPTY_LONG_ARRAY array array1 array2 subarray short[] EMPTY_SHORT_ARRAY array subarray Character[] EMPTY_CHARACTER_OBJECT_ARRAY Boolean[] EMPTY_BOOLEAN_OBJECT_ARRAY int[] EMPTY_INT_ARRAY array subarray String[] EMPTY_STRING_ARRAY Integer[] EMPTY_INTEGER_OBJECT_ARRAY int INDEX_NOT_FOUND endIndexExclusive i newSize startIndexInclusive float[] EMPTY_FLOAT_ARRAY array subarray char[] EMPTY_CHAR_ARRAY array subarray Short[] EMPTY_SHORT_OBJECT_ARRAY byte[] EMPTY_BYTE_ARRAY array subarray Double[] EMPTY_DOUBLE_OBJECT_ARRAY boolean double[] EMPTY_DOUBLE_ARRAY array subarray Byte[] EMPTY_BYTE_OBJECT_ARRAY Float[] EMPTY_FLOAT_OBJECT_ARRAY boolean[] EMPTY_BOOLEAN_ARRAY array subarray Object[] EMPTY_OBJECT_ARRAY array array1 array2 entry subarray Long[] EMPTY_LONG_OBJECT_ARRAY |
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.getPathIterator(null); float[] args = new float[6]; stream.writeBoolean(pi.isDone()); while(!pi.isDone()) { int type = pi.currentSegment(args); stream.writeInt(type); for(int i = 0; i < 6; i++) { stream.writeFloat(args[i]); } stream.writeInt(pi.getWindingRule()); pi.next(); <extra_id_0> } } else { stream.writeObject(shape.getClass()); stream.writeObject(shape); } } else { stream.writeBoolean(true); } } [CLASS] SerialUtilities [METHOD] writeShape [RETURN_TYPE] void Shape shape ObjectOutputStream stream [VARIABLES] Shape shape boolean PathIterator pi Rectangle2D rectangle ObjectOutputStream stream Line2D line Arc2D arc Ellipse2D ellipse int i type float[] args |
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, JsonProcessingException { if(!ctxt.isEnabled(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY)) { if((jp.getCurrentToken() == JsonToken.VALUE_STRING) && ctxt.isEnabled(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT)) { String str = jp.getText(); if(str.length() == 0) { return null; } } throw ctxt.mappingException(_valueClass); } <extra_id_0> } [CLASS] StringArrayDeserializer [METHOD] handleNonArray [RETURN_TYPE] String[] JsonParser jp DeserializationContext ctxt [VARIABLES] boolean StringArrayDeserializer instance DeserializationContext ctxt String str JsonDeserializer _elementDeserializer deser long serialVersionUID JsonParser jp |
[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 [VARIABLES] Integer value String fieldName boolean Map _children properties | |
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] InlineCostEstimator CompiledSizeEstimator [VARIABLES] |
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 = null; if(matchToken(Token.ELSE)) { decompiler.addToken(Token.RC); decompiler.addToken(Token.ELSE); <extra_id_0> ifFalse = statement(); } decompiler.addEOL(Token.RC); pn = nf.createIf(cond, ifTrue, ifFalse, lineno, charno); return pn; } case Token.SWITCH: { consumeToken(); decompiler.addToken(Token.SWITCH); int lineno = ts.getLineno(); int charno = ts.getCharno(); mustMatchToken(Token.LP,"msg.no.paren.switch"); decompiler.addToken(Token.LP); [CLASS] Parser ParserException [METHOD] statementHelper [RETURN_TYPE] Node Node statementLabel [VARIABLES] TokenStream ts Decompiler decompiler IRFactory nf Hashtable labelSet savedLabelSet Node block body caseExpression catchCond catchblocks cond expr finallyblock ifFalse ifTrue incr init obj pn retExpr statementLabel tryblock ObjArray loopAndSwitchSet loopSet savedLoopAndSwitchSet savedLoopSet CompilerEnvirons compilerEnv String code error label message messageArg messageId msg name s sourceString sourceURI varName JSDocInfo info int CLEAR_TI_MASK TI_AFTER_EOL TI_CHECK_LABEL baseCharno baseLineno catchCharno catchLineno charno currentFlaggedToken functionEndFlags functionIndex functionSourceEnd functionSourceStart functionType lineno nameCharno nameLineno nestingOfFunction nestingOfWith peek savedFunctionEndFlags savedNestingOfWith sourceEndOffset sourceStartOffset syntaxErrorCount syntheticType toMatch tt ttFlagged long serialVersionUID JSTypeRegistry typeRegistry ErrorReporter errorReporter ScriptOrFnNode currentScriptOrFn root savedScriptOrFn boolean calledByCompileFunction first hasDefault hasReturnValue isForEach nested parseJSDoc savedHasReturnValue sawDefaultCatch |
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.getSourceName(), n, ancestorBlockChild, ancestorBlock)); } if(!endMarkerName.equals(n.getString())) { return; } if(startMarkerStack.isEmpty()) { <extra_id_0> return; } StartMarker startMarker = startMarkerStack.pop(); Node endMarkerAncestorBlockChild = n; for(Node ancestor : n.getAncestors()) { int type = ancestor.getType(); if(type == Token.SCRIPT || type == Token.BLOCK) { if(ancestor != startMarker.ancestorBlock) { compiler.report(JSError.make(t, n, UNMATCHED_END_MARKER, startMarkerName, endMarkerName)); return; [CLASS] Callback [METHOD] visit [RETURN_TYPE] void NodeTraversal t Node n Node parent [VARIABLES] boolean NodeTraversal t Node ancestor ancestorBlock ancestorBlockChild block endMarkerAncestorBlockChild n parent removedNode StartMarker startMarker int type |
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(insn, value1)); break; } } } else { value2 = pop(); if(value2.getSize() == 1) { push(interpreter.copyOperation(insn, value1)); <extra_id_0> 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(value3.getSize() == 1) { value4 = pop(); if(value4.getSize() == 1) { [CLASS] Frame [METHOD] execute [RETURN_TYPE] void AbstractInsnNode insn Interpreter interpreter [VARIABLES] Interpreter interpreter boolean Value[] values Value local value1 value2 value3 value4 List values String desc AbstractInsnNode insn int i locals nLocals nStack top var |
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 = decompiler.markFunctionStart(functionType); String name; Node memberExprNode = null; int nameLineno, nameCharno;// line/char where function name starts if(matchToken(Token.NAME)) { name = ts.getString(); <extra_id_0> nameCharno = ts.getCharno(); decompiler.addName(name); if(!matchToken(Token.LP)) { if(compilerEnv.isAllowMemberExprAsFunctionName()) { Node memberExprHead = nf.createName(name, nameLineno, nameCharno); name =""; memberExprNode = memberExprTail(false, memberExprHead); } mustMatchToken(Token.LP,"msg.no.paren.parms"); } } else { [CLASS] Parser ParserException [METHOD] function [RETURN_TYPE] Node int functionType [VARIABLES] TokenStream ts Decompiler decompiler IRFactory nf Hashtable labelSet savedLabelSet Node args body memberExprHead memberExprNode pn ObjArray loopAndSwitchSet loopSet savedLoopAndSwitchSet savedLoopSet FunctionNode fnNode CompilerEnvirons compilerEnv String code error message messageArg messageId msg name s sourceString sourceURI JSDocInfo info int CLEAR_TI_MASK TI_AFTER_EOL TI_CHECK_LABEL baseCharno baseLineno charno currentFlaggedToken functionEndFlags functionIndex functionSourceEnd functionSourceStart functionType lineno nameCharno nameLineno nestingOfFunction nestingOfWith savedFunctionEndFlags savedNestingOfWith sourceEndOffset sourceStartOffset syntaxErrorCount syntheticType toMatch tt ttFlagged long serialVersionUID JSTypeRegistry typeRegistry ErrorReporter errorReporter ScriptOrFnNode currentScriptOrFn root savedScriptOrFn boolean calledByCompileFunction first hasReturnValue nested parseJSDoc savedHasReturnValue |
[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[Type.getArgumentTypes(descriptor).length]; } aw.next = ipanns[parameter]; ipanns[parameter] = aw; } [CLASS] MethodWriter [METHOD] visitParameterAnnotation [RETURN_TYPE] AnnotationVisitor final int parameter String desc final boolean visible [VARIABLES] Attribute attrs cattrs MethodWriter next AnnotationWriter anns aw ianns Label currentBlock labels previousBlock Handler firstHandler lastHandler int[] exceptions frame previousFrame String desc descriptor name signature int ACC_CONSTRUCTOR APPEND_FRAME CHOP_FRAME FRAMES FULL_FRAME MAXS NOTHING RESERVED SAME_FRAME SAME_FRAME_EXTENDED SAME_LOCALS_1_STACK_ITEM_FRAME SAME_LOCALS_1_STACK_ITEM_FRAME_EXTENDED access classReaderLength classReaderOffset compute desc exceptionCount frameCount frameIndex handlerCount i lineNumberCount localVarCount localVarTypeCount maxLocals maxStack maxStackSize name parameter previousFrameOffset size stackSize subroutines synthetics ClassWriter cw ByteVector annd bv code lineNumber localVar localVarType stackMap AnnotationWriter[] ipanns panns boolean computeFrames computeMaxs resize visible |
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 transX0 = domainAxis.valueToJava2D(x0, dataArea, plot.getDomainAxisEdge()); double transY0 = rangeAxis.valueToJava2D(y0, dataArea, plot.getRangeAxisEdge()); int itemCount = dataset.getItemCount(series); <extra_id_0> double y2 = dataset.getYValue(series, Math.min(item + 1, itemCount - 1)); if(Double.isNaN(y2)) { y2 = 0.0; } double transX2 = domainAxis.valueToJava2D(x2, dataArea, plot.getDomainAxisEdge()); double transY2 = rangeAxis.valueToJava2D(y2, dataArea, plot.getRangeAxisEdge()); double transZero = rangeAxis.valueToJava2D(0.0, dataArea, plot.getRangeAxisEdge()); Polygon hotspot = null; if(plot.getOrientation() == PlotOrientation.HORIZONTAL) { [CLASS] XYAreaRenderer2 [METHOD] drawItem [RETURN_TYPE] void Graphics2D g2 XYItemRendererState state Rectangle2D dataArea PlotRenderingInfo info XYPlot plot ValueAxis domainAxis ValueAxis rangeAxis XYDataset dataset int series int item CrosshairState crosshairState int pass [VARIABLES] PlotOrientation orientation Stroke stroke Shape area legendArea PlotRenderingInfo info double transX0 transX1 transX2 transY0 transY1 transY2 transZero x0 x1 x2 y0 y1 y2 Rectangle2D dataArea Paint paint CrosshairState crosshairState long serialVersionUID int domainAxisIndex item itemCount pass rangeAxisIndex series Graphics2D g2 boolean show showOutline XYPlot plot EntityCollection entities ValueAxis domainAxis rangeAxis XYItemRendererState state XYDataset dataset Polygon hotspot |
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 keyInterface type Customizer CLASS_BY_NAME OBJECT_BY_CLASS customizer Source SOURCE int arg constant hc hm i multiplier seed |
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 >>> 8); data[len++] =(byte) charLength; for(int i = 0; i < charLength; ++i) { char c = s.charAt(i); if(c >= '\001' && c <= '\177') { [CLASS] ByteVector [METHOD] putUTF8 [RETURN_TYPE] ByteVector String s [VARIABLES] byte[] data char c String s boolean int b b1 b2 byteLength charLength i initialSize j len length s |
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: result.append(" !="); break; case Token.LE: result.append(" <="); break; case Token.LT: result.append(" <"); break; case Token.GE: [CLASS] Decompiler [METHOD] decompile [RETURN_TYPE] String String source int flags UintMap properties [VARIABLES] UintMap properties StringBuffer result boolean afterFirstEOL justFunctionBody newLine printSource toSource String pad source tokenname int CASE_GAP_PROP FUNCTION_END INDENT_GAP_PROP INITIAL_INDENT_PROP L ONLY_BODY_FLAG TO_SOURCE_FLAG afterName braceNesting caseGap flags functionStart functionType i indent indentGap j length lengthEncodingSize less minimalCapacity newCapacity nextToken nextTop offset savedOffset sourceTop token topFunctionType char[] sourceBuffer tmp |
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; case Token.SWITCH: <extra_id_0> return; case Token.CASE: handleCase(n); return; case Token.DEFAULT: handleDefault(n); return; case Token.BLOCK: case Token.SCRIPT: handleStmtList(n); return; case Token.FUNCTION: handleFunction(n); return; case Token.EXPR_RESULT: [CLASS] ControlFlowAnalysis 1 AstControlFlowGraph 1 2 [METHOD] visit [RETURN_TYPE] void NodeTraversal t Node n Node parent [VARIABLES] Multimap finallyMap AbstractCompiler compiler boolean shouldTraverseFunctions NodeTraversal t ControlFlowGraph cfg Node entry externs n parent root value Map astPosition nodePriorities priorities Deque exceptionHandler int astPositionCounter priorityCounter Comparator priorityComparator |
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 = 6; return 12; } return -1; case 7: if((active0 & 0xf460ffc400000000L) != 0L ||(active1 & 0x2003L) != 0L) { <extra_id_0> jjmatchedPos = 7; return 12; } if((active0 & 0x802000000000000L) != 0L) return 12; if((active0 & 0x2000000000L) != 0L) { if(jjmatchedPos < 5) { jjmatchedKind = 78; jjmatchedPos = 5; } return -1; } return -1; [CLASS] XPathParserTokenManager [METHOD] jjStopStringLiteralDfa_0 [RETURN_TYPE] int int pos long active0 long active1 [VARIABLES] PrintStream debugStream ds boolean long[] jjbitVec0 jjbitVec10 jjbitVec11 jjbitVec12 jjbitVec13 jjbitVec14 jjbitVec15 jjbitVec16 jjbitVec17 jjbitVec18 jjbitVec19 jjbitVec2 jjbitVec20 jjbitVec21 jjbitVec22 jjbitVec23 jjbitVec24 jjbitVec25 jjbitVec26 jjbitVec27 jjbitVec28 jjbitVec29 jjbitVec3 jjbitVec30 jjbitVec31 jjbitVec32 jjbitVec33 jjbitVec34 jjbitVec35 jjbitVec36 jjbitVec37 jjbitVec38 jjbitVec39 jjbitVec4 jjbitVec40 jjbitVec41 jjbitVec5 jjbitVec6 jjbitVec7 jjbitVec8 jjbitVec9 jjtoSkip jjtoToken SimpleCharStream input_stream stream char curChar int[] jjnextStates jjrounds jjstateSet String[] jjstrLiteralImages lexStateNames int curLexState defaultLexState jjmatchedKind jjmatchedPos jjnewStateCnt jjround lexState pos long active0 active1 |
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 UnpaddedMonthField PaddedNumberField TwoDigitNumberField TwoDigitYearField TwoDigitMonthField TwelveHourField TwentyFourHourField TimeZoneNameRule TimeZoneNumberRule TimeZoneDisplayKey Pair [METHOD] appendTo [RETURN_TYPE] void StringBuffer buffer Calendar calendar [VARIABLES] Locale locale mLocale TimeZoneNumberRule INSTANCE_COLON INSTANCE_NO_COLON Calendar calendar TwoDigitYearField INSTANCE String cDefaultPattern mDaylight mPattern mStandard mValue pattern source sub token value String[] AmPmStrings ERAs mValues months shortMonths shortWeekdays values weekdays UnpaddedNumberField INSTANCE_YEAR int FULL LONG MEDIUM SHORT dateStyle field i len length mField mMaxLengthEstimate mSize mStyle padding size style timeStyle tokenLen total value Rule[] mRules rules TimeZone mTimeZone timeZone tz StringBuffer buffer boolean colon daylight inLiteral mColon mLocaleForced mTimeZoneForced timeZoneForced NumberRule mRule rule char c mValue peek value TwoDigitMonthField INSTANCE UnpaddedMonthField INSTANCE Object key mObj1 mObj2 obj obj1 obj2 Map cDateInstanceCache cDateTimeInstanceCache cInstanceCache cTimeInstanceCache cTimeZoneDisplayCache |
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 || n.getType() == Token.SCRIPT) { sourceName =(String) n.getProp(Node.SOURCENAME_PROP); } <extra_id_0> } [CLASS] TypedScopeCreator AbstractScopeBuilder GlobalScopeBuilder StubDeclaration CollectProperties LocalScopeBuilder [METHOD] shouldTraverse [RETURN_TYPE] boolean NodeTraversal nodeTraversal Node n Node parent [VARIABLES] NodeTraversal nodeTraversal Node firstChild functionNode maybeOwner n node parent root String name ownerName sourceName TypeValidator validator ObjectType fnThisType thisType AbstractCompiler compiler JSTypeRegistry typeRegistry boolean isExtern Scope newScope parent s scope DiagnosticType CONSTRUCTOR_EXPECTED ENUM_INITIALIZER MALFORMED_TYPEDEF CodingConvention codingConvention List nonExternFunctions stubDeclarations Map delegateProxyMap |
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 functionInformationMap_ ErrorManager errorManager StringBuilder debugLog_ sb Node externAndJsRoot externsRoot jsRoot n root scriptNode CompilerInput[] externs externs_ inputs inputs_ PerformanceTracker tracker PassConfig passes String code comment currentPassName externExports_ fileName inputName js name passName passToCheck sourceName str Logger logger_ PassFactory sanityCheck long COMPILER_STACK_SIZE result serialVersionUID TypeValidator typeValidator JSTypeRegistry typeRegistry ErrorReporter defaultErrorReporter oldErrorReporter RecentChange recentChange DiagnosticType DUPLICATE_EXTERN_INPUT DUPLICATE_INPUT DUPLICATE_INPUT_IN_MODULES EMPTY_MODULE_LIST_ERROR EMPTY_ROOT_MODULE_ERROR MODULE_DEPENDENCY_ERROR MOTION_ITERATIONS_ERROR OPTIMIZE_LOOP_ERROR SourceMap sourceMap_ List codeChangeHandlers inputs ReverseAbstractInterpreter abstractInterpreter Tracer currentTracer t tracer SymbolTable symbolTable JSModuleGraph e moduleGraph_ int i index inputSeqNum lineCount numInputs uniqueNameId boolean colorize devMode dumpTraceReport isExtern normalized useThreads State passConfigState state JSModule[] modules modules_ CodingConvention defaultCodingConvention CompilerOptions options options_ Map inputMap inputsByName_ |
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] NodeUtil VarCollector MatchNameNode MatchNodeType [METHOD] functionCallHasSideEffects [RETURN_TYPE] boolean Node callNode [VARIABLES] Set CONSTRUCTORS_WITHOUT_SIDE_EFFECTS defines String CONSTANT_MARKER className name namespaceName boolean Map vars int type Node callNode nameNode |
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(); <extra_id_0> e.load_args(); Signature sig = constructor.getSignature(); seenNull = seenNull || sig.getDescriptor().equals("()V"); e.super_invoke_constructor(sig); e.invoke_static_this(BIND_CALLBACKS); if(!interceptDuringConstruction) { e.load_this(); e.push(1); e.putfield(CONSTRUCTED_FIELD); } e.return_value(); e.end_method(); } if(!classOnly && !seenNull && arguments == null) throw new IllegalArgumentException("Superclass has no null constructors but no arguments were given"); } [CLASS] Enhancer 1 2 3 4 5 6 [METHOD] emitConstructors [RETURN_TYPE] void ClassEmitter ce List constructors [VARIABLES] Callback[] callbacks Class[] argumentTypes callbackTypes interfaces EnhancerKey KEY_FACTORY Type[] callbackTypes check ClassEmitter ce String BOUND_FIELD CONSTRUCTED_FIELD SET_STATIC_CALLBACKS_NAME SET_THREAD_CALLBACKS_NAME STATIC_CALLBACKS_FIELD THREAD_CALLBACKS_FIELD methodName type Source SOURCE CodeEmitter e Type CALLBACK CALLBACK_ARRAY FACTORY ILLEGAL_ARGUMENT_EXCEPTION ILLEGAL_STATE_EXCEPTION THREAD_LOCAL boolean classOnly interceptDuringConstruction seenNull useFactory Signature BIND_CALLBACKS CSTRUCT_NULL GET_CALLBACK GET_CALLBACKS MULTIARG_NEW_INSTANCE NEW_INSTANCE SET_CALLBACK SET_CALLBACKS SET_STATIC_CALLBACKS SET_THREAD_CALLBACKS SINGLE_NEW_INSTANCE THREAD_LOCAL_GET THREAD_LOCAL_SET sig Long sUID serialVersionUID Iterator it Class callbackType generatedClass protoclass sc superclass type List constructors MethodInfo constructor CallbackFilter ALL_ZERO filter Object[] arguments |
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().toString()); e.putfield("eqMethod"); e.return_value(); <extra_id_0> ce.end_class(); } } } [CLASS] Generator [METHOD] generateClass [RETURN_TYPE] void ClassVisitor v [VARIABLES] CodeEmitter e Type METHOD_DELEGATE boolean isStatic Signature NEW_INSTANCE ClassEmitter ce Object instance key target Class iface targetClass type MethodInfo methodInfo proxied String methodName ClassVisitor v Method method proxy Source SOURCE |
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(first) { <extra_id_0> } } } [CLASS] ASMifierClassVisitor [METHOD] appendAccess [RETURN_TYPE] void final int access [VARIABLES] int ACCESS_CLASS ACCESS_FIELD ACCESS_INNER access flags i n version PrintWriter pw boolean first |
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] Stroke borderStroke stroke Plot plot Title title Paint DEFAULT_BACKGROUND_PAINT backgroundPaint borderPaint paint Image DEFAULT_BACKGROUND_IMAGE backgroundImage float DEFAULT_BACKGROUND_IMAGE_ALPHA backgroundImageAlpha long serialVersionUID Font DEFAULT_TITLE_FONT titleFont int DEFAULT_BACKGROUND_IMAGE_ALIGNMENT backgroundImageAlignment index seen RenderingHints renderingHints TextTitle title boolean borderVisible createLegend notify visible ProjectInfo INFO EventListenerList changeListeners progressListeners RectangleInsets padding List subtitles |
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 =(float) rangeAxis.valueToJava2D(0.0, dataArea, edge); g2.setPaint(getItemPaint(row, column)); g2.setStroke(getItemStroke(row, column)); GeneralPath area = new GeneralPath(); if(orientation == PlotOrientation.VERTICAL) { area.moveTo(x0, yz); area.lineTo(x0, y0); <extra_id_0> area.lineTo(x2, y2); area.lineTo(x2, yz); } else if(orientation == PlotOrientation.HORIZONTAL) { area.moveTo(yz, x0); area.lineTo(y0, x0); area.lineTo(y1, x1); area.lineTo(y2, x2); area.lineTo(yz, x2); } area.closePath(); g2.setPaint(getItemPaint(row, column)); g2.fill(area); [CLASS] AreaRenderer [METHOD] drawItem [RETURN_TYPE] void Graphics2D g2 CategoryItemRendererState state Rectangle2D dataArea CategoryPlot plot CategoryAxis domainAxis ValueAxis rangeAxis CategoryDataset dataset int row int column int pass [VARIABLES] PlotOrientation orientation GeneralPath area CategoryItemRendererState state double yy0 yy1 yy2 Rectangle2D dataArea float x0 x1 x2 y0 y1 y2 yz long serialVersionUID CategoryPlot plot int column count pass row Graphics2D g2 boolean Number n0 n2 value CategoryAxis domainAxis EntityCollection entities ValueAxis rangeAxis CategoryDataset dataset AreaRendererEndType endType type RectangleEdge axisEdge edge |
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 =(char)(random.nextInt(gap) + start); } else { ch = chars[random.nextInt(gap) + start]; } if((letters && Character.isLetter(ch)) ||(numbers && Character.isDigit(ch)) ||(!letters && !numbers)) { if(ch >= 56320 && ch <= 57343) { if(count == 0) { count++; } else { buffer[count] = ch; count--; [CLASS] RandomStringUtils [METHOD] random [RETURN_TYPE] String int count int start int end boolean letters boolean numbers char[] chars Random random [VARIABLES] char ch boolean letters numbers Random RANDOM random int count end gap start char[] buffer chars |
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); switch(opcode) { case Opcodes.GETSTATIC: <extra_id_0> break; case Opcodes.PUTSTATIC: size = stackSize +(c == 'D' || c == 'J' ? -2 : -1); break; case Opcodes.GETFIELD: size = stackSize +(c == 'D' || c == 'J' ? 1 : 0); break; default: size = stackSize +(c == 'D' || c == 'J' ? -3 : -2); break; } if(size > maxStackSize) { maxStackSize = size; [CLASS] MethodWriter [METHOD] visitFieldInsn [RETURN_TYPE] void final int opcode String owner String name String desc [VARIABLES] Attribute attr attrs cattrs MethodWriter next AnnotationWriter anns aw ianns Label currentBlock labels previousBlock Handler firstHandler lastHandler int[] exceptions frame previousFrame String desc descriptor name owner signature type int ACC_CONSTRUCTOR APPEND_FRAME CHOP_FRAME FRAMES FULL_FRAME MAXS NOTHING RESERVED SAME_FRAME SAME_FRAME_EXTENDED SAME_LOCALS_1_STACK_ITEM_FRAME SAME_LOCALS_1_STACK_ITEM_FRAME_EXTENDED access classReaderLength classReaderOffset compute delta desc exceptionCount frameCount frameIndex handlerCount i lineNumberCount localVarCount localVarTypeCount maxLocals maxStack maxStackSize n nLocal nStack name opcode operand opt parameter previousFrameOffset size stackSize subroutines synthetics type var ClassWriter cw ByteVector annd bv code lineNumber localVar localVarType stackMap AnnotationWriter[] ipanns panns Item i boolean computeFrames computeMaxs resize visible char c |
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)).newInstance(target); } protected Object nextInstance(Object instance) { return((MethodDelegate)instance).newInstance(target); } public void generateClass(ClassVisitor v) throws NoSuchMethodException { Method proxy = ReflectUtils.findInterfaceMethod(iface); final Method method = targetClass.getMethod(methodName, proxy.getParameterTypes()); <extra_id_0> throw new java.lang.IllegalArgumentException("incompatible return types"); MethodInfo methodInfo = ReflectUtils.getMethodInfo(method); boolean isStatic = TypeUtils.isStatic(methodInfo.getModifiers()); if((target == null) ^ isStatic) { throw new IllegalArgumentException("Static method" +(isStatic ?"not" :"") +"expected"); } ClassEmitter ce = new ClassEmitter(v); CodeEmitter e; ce.begin_class(Constants.V1_2, Constants.ACC_PUBLIC, [CLASS] MethodDelegate Generator [METHOD] generateClass [RETURN_TYPE] void ClassVisitor v [VARIABLES] ClassEmitter ce String eqMethod methodName ClassVisitor v Method method proxy Source SOURCE CodeEmitter e Type METHOD_DELEGATE boolean isStatic Signature NEW_INSTANCE Object instance key obj target Class delegateClass iface targetClass type MethodInfo methodInfo proxied MethodDelegateKey KEY_FACTORY |
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.getColumnDimension() || this.getRowDimension() != m.getRowDimension()) { throw new IllegalArgumentException("matrix dimension mismatch"); } int rowCount = this.getRowDimension(); int columnCount = this.getColumnDimension(); BigDecimal[][] outData = new BigDecimal[rowCount][columnCount]; for(int row = 0; row < rowCount; row++) { <extra_id_0> outData[row][col] = data[row][col].subtract(m.getEntry(row, col)); } } return new BigMatrixImpl(outData); } [CLASS] BigMatrixImpl [METHOD] subtract [RETURN_TYPE] BigMatrix BigMatrix m [VARIABLES] boolean BigMatrix m int[] permutation long serialVersionUID int col columnCount columnDimension nCols nRows parity roundingMode row rowCount rowDimension scale BigDecimal ONE TOO_SMALL ZERO BigDecimal[][] d data lu outData |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 7