Dataset Viewer
Auto-converted to Parquet Duplicate
id
int64
1
400k
bug
stringlengths
1
1.61k
fix
stringlengths
6
384
ctx
stringlengths
112
394k
353,522
for(int i = -2; i < jpds.length; i++) {
for(int i = 0; i < jpds.length; i++){
[BUG] for(int i = -2; i < jpds.length; i++) { [CONTEXT] public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("BeanInfo [class ="); buffer.append(clazz.getName()); if(isDynamic()) { buffer.append(", dynamic"); } if(isAtomic()) { buffer.append(", atomic"); } buffer.append(", properties ="); PropertyDescriptor[] jpds = getPropertyDescriptors(); <extra_id_0> buffer.append("\n"); buffer.append(jpds[i].getPropertyType()); buffer.append(":"); buffer.append(jpds[i].getName()); } buffer.append("]"); return buffer.toString(); } [CLASS] JXPathBasicBeanInfo 1 [METHOD] toString [RETURN_TYPE] String [ERROR] java.lang.InstantiationException testCoreOperationDivide
218,663
lower = upper - getLowerMargin()* range;
lower = lower - getLowerMargin() * range;
[BUG] lower = upper - getLowerMargin()* range; [CONTEXT] if(getAutoRangeStickyZero()) { if(upper <= 0.0) { upper = Math.min(0.0, upper + getUpperMargin() * range); } else { upper = upper + getUpperMargin() * range; } if(lower >= 0.0) { lower = Math.max(0.0, lower - getLowerMargin() * range); } else { lower = lower - getLowerMargin() * range; } } else { upper = upper + getUpperMargin() * range; <extra_id_0> } [CLASS] NumberAxis [METHOD] autoAdjustRange [RETURN_TYPE] void [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization
3,270
generated = true;isSet = true;
isSet = true;
[BUG] generated = true;isSet = true; [CONTEXT] if(gramps == null || NodeUtil.isFunctionAnonymous(parent)) return; isSet = true; type = Name.Type.FUNCTION; break; } } name = n.getString(); break; case Token.GETPROP: if(parent != null) { switch(parent.getType()) { case Token.ASSIGN: if(parent.getFirstChild() == n) { <extra_id_0> type = getValueType(n.getNext()); isPropAssign = true; } break; case Token.GETPROP: return; } } name = n.getQualifiedName(); if(name == null) return; break; default: return; } [CLASS] GlobalNamespace NodeFilter BuildGlobalNamespace Name Type Ref Type [METHOD] visit [RETURN_TYPE] void NodeTraversal t Node n Node parent [ERROR] expected:<... = function(p1) {}; testExportMultiple
27,921
result.append(" |=");result.append(" -");
result.append(" -");
[BUG] result.append(" |=");result.append(" -"); [CONTEXT] break; case Token.INC: result.append("++"); break; case Token.DEC: result.append("--"); break; case Token.ADD: result.append(" +"); break; case Token.SUB: <extra_id_0> break; case Token.MUL: result.append(" *"); break; case Token.DIV: result.append(" /"); break; case Token.MOD: result.append(" %"); break; case Token.COLONCOLON: [CLASS] Decompiler [METHOD] decompile [RETURN_TYPE] String String source int flags UintMap properties [ERROR] expected:<8> but was:<2> testParseBlockComment2
187,298
posBase = total + v;
posBase = posBase + v;
[BUG] posBase = total + v; [CONTEXT] int seriesCount = dataset.getRowCount(); for(int s = 0; s < seriesCount; s++) { Number n = dataset.getValue(dataset.getRowKey(s), category); if(n == null) { continue; } double v = n.doubleValue(); if(asPercentages) { v = v / total; } if(v >= 0.0) { if(baseIndex < 0) { result.add(new Object[] {null, new Double(base)}); baseIndex = 0; } <extra_id_0> result.add(new Object[] {new Integer(s), new Double(posBase)}); } else if(v < 0.0) { if(baseIndex < 0) { result.add(new Object[] {null, new Double(base)}); baseIndex = 0; } negBase = negBase + v; // '+' because v is negative result.add(0, new Object[] {new Integer(-s), new Double(negBase)}); baseIndex++; } } return result; [CLASS] StackedBarRenderer3D [METHOD] createStackedValueList [RETURN_TYPE] List CategoryDataset dataset Comparable category double base boolean asPercentages [ERROR] null testDrawWithNullInfo
105,560
_delegatee = null;
_delegatee = delegatee;
[BUG] _delegatee = null; [CONTEXT] public DelegatingDeserializer(JsonDeserializer<?> delegatee) { super(_figureType(delegatee)); <extra_id_0> } [CLASS] DelegatingDeserializer [METHOD] <init> [RETURN_TYPE] JsonDeserializer) JsonDeserializer<?> delegatee [ERROR] expected:<...> but was:<null> testMapWithFactory
69,545
FunctionType funType =(FunctionType) node.getJSType();JSType type = node.getJSType();
JSType type = node.getJSType();
[BUG] FunctionType funType =(FunctionType) node.getJSType();JSType type = node.getJSType(); [CONTEXT] private String getTypeAnnotation(Node node) { <extra_id_0> if(type instanceof FunctionType) { return getFunctionAnnotation(node); } else if(type != null && !type.isUnknownType() && !type.isEmptyType() && !type.isVoidType()) { return"/** @type {" + node.getJSType() +"} */\n"; } else { return""; } } [CLASS] TypedCodeGenerator [METHOD] getTypeAnnotation [RETURN_TYPE] String Node node [ERROR] null testExternedPropertyName
80,934
if(dest.getType()== Token.STRING && parent.getType()== Token.ASSIGN) {
if(parent.getType() == Token.ASSIGN && parent.getFirstChild() == n){
[BUG] if(dest.getType()== Token.STRING && parent.getType()== Token.ASSIGN) { [CONTEXT] if(dest.getString().equals("prototype")) { processPrototypeParent(t, parent); } else { <extra_id_0> addPossibleSignature(dest.getString(), n.getNext(), t); } } [CLASS] MethodCompilerPass GetExternMethods GatherSignatures [METHOD] visit [RETURN_TYPE] void NodeTraversal t Node n Node parent [ERROR] node is not a child testDontAlias
173,937
result.append( getVersion());result.append("\n");
result.append("\n");
[BUG] result.append( getVersion());result.append("\n"); [CONTEXT] public String toString() { final StringBuffer result = new StringBuffer(); result.append(getName()); result.append(" version"); result.append(getVersion()); result.append(".\n"); result.append(getCopyright()); result.append(".\n"); result.append("\n"); result.append("For terms of use, see the licence below.\n"); result.append("\n"); result.append("FURTHER INFORMATION:"); result.append(getInfo()); <extra_id_0> result.append("CONTRIBUTORS:"); if(this.contributors != null) { final Iterator iterator = this.contributors.iterator(); while(iterator.hasNext()) { final Contributor contributor =(Contributor) iterator.next(); result.append(contributor.getName()); result.append("("); result.append(contributor.getEmail()); result.append(")."); } } else { result.append("None"); } [CLASS] ProjectInfo [METHOD] toString [RETURN_TYPE] String [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization
395,940
txt = txt.replaceAll("c","k");txt = txt.replaceAll("y","3");
txt = txt.replaceAll("y","3");
[BUG] txt = txt.replaceAll("c","k");txt = txt.replaceAll("y","3"); [CONTEXT] txt = txt.replaceAll("x","k"); txt = txt.replaceAll("v","f"); txt = txt.replaceAll("dg","2g"); txt = txt.replaceAll("tio","sio"); txt = txt.replaceAll("tia","sia"); txt = txt.replaceAll("d","t"); txt = txt.replaceAll("ph","fh"); txt = txt.replaceAll("b","p"); txt = txt.replaceAll("sh","s2"); txt = txt.replaceAll("z","s"); txt = txt.replaceAll("^[aeiou]","A"); txt = txt.replaceAll("[aeiou]","3"); txt = txt.replaceAll("j","y");// 2.0 only txt = txt.replaceAll("^y3","Y3"); // 2.0 only txt = txt.replaceAll("^y","A"); // 2.0 only <extra_id_0> txt = txt.replaceAll("3gh3","3kh3"); txt = txt.replaceAll("gh","22"); txt = txt.replaceAll("g","k"); txt = txt.replaceAll("s+","S"); txt = txt.replaceAll("t+","T"); txt = txt.replaceAll("p+","P"); txt = txt.replaceAll("k+","K"); txt = txt.replaceAll("f+","F"); txt = txt.replaceAll("m+","M"); txt = txt.replaceAll("n+","N"); txt = txt.replaceAll("w3","W3"); txt = txt.replaceAll("wh3","Wh3"); txt = txt.replaceAll("w$","3"); // 2.0 only [CLASS] Caverphone [METHOD] caverphone [RETURN_TYPE] String String txt [ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition
337,022
if(isSupported( f = chrono.days())){
if(isSupported(f = chrono.months())) {
[BUG] if(isSupported( f = chrono.days())){ [CONTEXT] if(isSupported(f = chrono.hours())) { hours = f; } if(isSupported(f = chrono.halfdays())) { halfdays = f; } if(isSupported(f = chrono.days())) { days = f; } if(isSupported(f = chrono.weeks())) { weeks = f; } if(isSupported(f = chrono.weekyears())) { weekyears = f; } <extra_id_0> months = f; } if(isSupported(f = chrono.years())) { years = f; } if(isSupported(f = chrono.centuries())) { centuries = f; } if(isSupported(f = chrono.eras())) { eras = f; } } { DateTimeField f; [CLASS] AssembledChronology Fields [METHOD] copyFieldsFrom [RETURN_TYPE] void Chronology chrono [ERROR] null testFactory_standardPeriodIn_RPeriod
232,181
y0 = getCategoryStart( categoryIndex, ticks.size() + 8 , dataArea, edge);
y0 = getCategoryStart(categoryIndex, ticks.size() , dataArea, edge);
[BUG] y0 = getCategoryStart( categoryIndex, ticks.size() + 8 , dataArea, edge); [CONTEXT] dataArea, edge); x1 = getCategoryEnd(categoryIndex, ticks.size(), dataArea, edge); y1 = state.getCursor() - this.categoryLabelPositionOffset; y0 = y1 - state.getMax(); } else if(edge == RectangleEdge.BOTTOM) { x0 = getCategoryStart(categoryIndex, ticks.size(), dataArea, edge); x1 = getCategoryEnd(categoryIndex, ticks.size(), dataArea, edge); y0 = state.getCursor() + this.categoryLabelPositionOffset; y1 = y0 + state.getMax(); } else if(edge == RectangleEdge.LEFT) { <extra_id_0> y1 = getCategoryEnd(categoryIndex, ticks.size(), dataArea, edge); x1 = state.getCursor() - this.categoryLabelPositionOffset; x0 = x1 - state.getMax(); } else if(edge == RectangleEdge.RIGHT) { y0 = getCategoryStart(categoryIndex, ticks.size(), dataArea, edge); y1 = getCategoryEnd(categoryIndex, ticks.size(), dataArea, edge); x0 = state.getCursor() + this.categoryLabelPositionOffset; x1 = x0 - state.getMax(); } Rectangle2D area = new Rectangle2D.Double(x0, y0,(x1 - x0), [CLASS] CategoryAxis [METHOD] drawCategoryLabels [RETURN_TYPE] AxisState Graphics2D g2 Rectangle2D plotArea Rectangle2D dataArea RectangleEdge edge AxisState state PlotRenderingInfo plotState [ERROR] null testEquals
212,899
if(!ObjectUtilities.equal( this.seriesKey, seriesKey)){
if(!ObjectUtilities.equal(this.seriesKey, that.seriesKey)) {
[BUG] if(!ObjectUtilities.equal( this.seriesKey, seriesKey)){ [CONTEXT] public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof LegendItemEntity)) { return false; } LegendItemEntity that =(LegendItemEntity) obj; <extra_id_0> return false; } if(!ObjectUtilities.equal(this.dataset, that.dataset)) { return false; } return super.equals(obj); } [CLASS] LegendItemEntity [METHOD] equals [RETURN_TYPE] boolean Object obj [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization
210,723
this.tickLabelPaintSample = new PaintSample( axis.getTickLabelPaint());this.tickLabelInsets = axis.getTickLabelInsets();
this.tickLabelInsets = axis.getTickLabelInsets();
[BUG] this.tickLabelPaintSample = new PaintSample( axis.getTickLabelPaint());this.tickLabelInsets = axis.getTickLabelInsets(); [CONTEXT] public DefaultAxisEditor(Axis axis) { this.labelFont = axis.getLabelFont(); this.labelPaintSample = new PaintSample(axis.getLabelPaint()); this.tickLabelFont = axis.getTickLabelFont(); this.tickLabelPaintSample = new PaintSample(axis.getTickLabelPaint()); <extra_id_0> this.labelInsets = axis.getLabelInsets(); setLayout(new BorderLayout()); JPanel general = new JPanel(new BorderLayout()); general.setBorder( BorderFactory.createTitledBorder( BorderFactory.createEtchedBorder(), localizationResources.getString("General"))); JPanel interior = new JPanel(new LCBLayout(5)); interior.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5)); interior.add(new JLabel(localizationResources.getString("Label"))); [CLASS] DefaultAxisEditor [METHOD] <init> [RETURN_TYPE] Axis) Axis axis [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization
11,586
return processFunctionCall( parent);
return processFunctionCall(node);
[BUG] return processFunctionCall( parent); [CONTEXT] if(!NodeUtil.nodeTypeMayHaveSideEffects(node)) { return true; } else { if(node.getType() == Token.CALL) { <extra_id_0> } else if(node.getType() == Token.NEW) { return processConstructorCall(node); } else { accumulator.keepSubTree(node); return false; } } [CLASS] GatherSideEffectSubexpressionsCallback CopySideEffectSubexpressions [METHOD] shouldTraverse [RETURN_TYPE] boolean NodeTraversal traversal Node node Node parent [ERROR] runtime INTERNAL COMPILER ERROR. testDebugFlag3
199,634
l_subtrahendXs.clear(); l_subtrahendYs.clear();
[BUG] [CONTEXT] Collections.reverse(l_subtrahendXs); Collections.reverse(l_subtrahendYs); l_polygonXs.addAll(l_subtrahendXs); l_polygonYs.addAll(l_subtrahendYs); b_positive =(l_subtrahendMaxY <= l_minuendMaxY) &&(l_subtrahendMinY <= l_minuendMinY); createPolygon(x_graphics, x_dataArea, x_plot, x_domainAxis, x_rangeAxis, b_positive, l_polygonXs, l_polygonYs); l_minuendXs.clear(); l_minuendYs.clear(); <extra_id_0> l_polygonXs.clear(); l_polygonYs.clear(); double l_y = l_intersectY.doubleValue(); l_minuendMaxY= l_y; l_subtrahendMaxY = l_y; l_minuendMinY= l_y; l_subtrahendMinY = l_y; l_polygonXs.add(l_intersectX); l_polygonYs.add(l_intersectY); [CLASS] XYDifferenceRenderer [METHOD] drawItemPass0 [RETURN_TYPE] void Graphics2D x_graphics Rectangle2D x_dataArea PlotRenderingInfo x_info XYPlot x_plot ValueAxis x_domainAxis ValueAxis x_rangeAxis XYDataset x_dataset int x_series int x_item CrosshairState x_crosshairState [ERROR] null testDrawWithNullInfo
356,894
buffer.append( target).append("')");buffer.append( getRelativePositionOfPI( target)).append( ']');
buffer.append(getRelativePositionOfPI(target)).append(']');
[BUG] buffer.append( target).append("')");buffer.append( getRelativePositionOfPI( target)).append( ']'); [CONTEXT] } } } break; case Node.TEXT_NODE : case Node.CDATA_SECTION_NODE : buffer.append("/text()"); buffer.append('['); buffer.append(getRelativePositionOfTextNode()).append(']'); break; case Node.PROCESSING_INSTRUCTION_NODE : String target =((ProcessingInstruction) node).getTarget(); buffer.append("/processing-instruction(\'"); buffer.append(target).append("')"); buffer.append('['); <extra_id_0> break; case Node.DOCUMENT_NODE : } return buffer.toString(); } private String escape(String string) { int index = string.indexOf('\''); while(index != -1) { string = string.substring(0, index) +"&apos;" + string.substring(index + 1); index = string.indexOf('\''); [CLASS] DOMNodePointer [METHOD] asPath [RETURN_TYPE] String [ERROR] Evaluating pointer <//product/processing-instruction('report')> expected:<...struction('report')[[]1]> but was:<...struction('report')[[report')]1]> testNodeTypeProcessingInstruction
148,221
if(isQuote( chars, pos, len, quoteStart, start)){
if(isQuote(chars, pos, len, quoteStart, quoteLen)) {
[BUG] if(isQuote( chars, pos, len, quoteStart, start)){ [CONTEXT] trimStart = workArea.size(); } else { int delimLen = getDelimiterMatcher().isMatch(chars, pos, start, len); if(delimLen > 0) { addToken(tokens, workArea.substring(0, trimStart)); return pos + delimLen; } if(quoteLen > 0) { <extra_id_0> quoting = true; pos += quoteLen; continue; } } int ignoredLen = getIgnoredMatcher().isMatch(chars, pos, start, len); if(ignoredLen > 0) { pos += ignoredLen; continue; } [CLASS] StrTokenizer [METHOD] readWithQuotes [RETURN_TYPE] int char[] chars int start int len StrBuilder workArea List tokens int quoteStart int quoteLen [ERROR] expected:<ValuedColorEnum[Red=1]> but was:<null> testToString
327,086
int sum = 0;int length = 0;
int length = 0;
[BUG] int sum = 0;int length = 0; [CONTEXT] if(!mustParse && !isSupported(period.getPeriodType(), iFieldType)) { return position; } int limit; if(suffixPos > 0) { limit = Math.min(iMaxParsedDigits, suffixPos - position); } else { limit = Math.min(iMaxParsedDigits, text.length() - position); } <extra_id_0> int fractPos = -1; boolean hasDigits = false; while(length < limit) { char c = text.charAt(position + length); if(length == 0 &&(c == '-' || c == '+') && !iRejectSignedValues) { boolean negative = c == '-'; if(length + 1 >= limit ||(c = text.charAt(position + length + 1)) < '0' || c > '9') { break; } [CLASS] PeriodFormatterBuilder SimpleAffix PluralAffix CompositeAffix FieldFormatter Literal Separator Composite [METHOD] parseInto [RETURN_TYPE] int ReadWritablePeriod period String text int position Locale locale [ERROR] null testTest
82,181
changeProxy.unregisterListener( listener);changeProxy.registerListener( listener);
changeProxy.registerListener(listener);
[BUG] changeProxy.unregisterListener( listener);changeProxy.registerListener( listener); [CONTEXT] void removeUnreferenced() { RemoveListener listener = new RemoveListener(); <extra_id_0> for(RefNode refNode : refNodes) { JsName name = refNode.name(); if(!name.referenced && !name.externallyDefined) { refNode.remove(); } } changeProxy.unregisterListener(listener); } [CLASS] NameAnalyzer NameInformation JsName JsNameRefNode PrototypeSetNode SpecialReferenceNode ClassDefiningFunctionNode InstanceOfCheckNode ProcessExternals FindDependencyScopes HoistVariableAndFunctionDeclarations FindDeclarationsAndSetters FindReferences NodeAccumulator RemoveListener TriState [METHOD] removeUnreferenced [RETURN_TYPE] void [ERROR] node is not a child testDontAlias
173,786
result.append("OTHER LIBRARIES USED BY");result.append( getVersion());
result.append(getVersion());
[BUG] result.append("OTHER LIBRARIES USED BY");result.append( getVersion()); [CONTEXT] public void setContributors(final List contributors) { this.contributors = contributors; } public String toString() { final StringBuffer result = new StringBuffer(); result.append(getName()); result.append(" version"); <extra_id_0> result.append(".\n"); result.append(getCopyright()); result.append(".\n"); result.append("\n"); result.append("For terms of use, see the licence below.\n"); result.append("\n"); result.append("FURTHER INFORMATION:"); result.append(getInfo()); result.append("\n"); result.append("CONTRIBUTORS:"); if(this.contributors != null) { final Iterator iterator = this.contributors.iterator(); while(iterator.hasNext()) { final Contributor contributor =(Contributor) iterator.next(); result.append(contributor.getName()); [CLASS] ProjectInfo [METHOD] toString [RETURN_TYPE] String [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization
88,033
throw new IllegalStateException("Unexpected node type. != class:" + node.getClass()+" type:" + Token.typeToName( node.getType()));
throw new IllegalStateException("Unexpected node type. class:" + node.getClass() +" type:" + Token.typeToName(node.getType()));
[BUG] throw new IllegalStateException("Unexpected node type. != class:" + node.getClass()+" type:" + Token.typeToName( node.getType())); [CONTEXT] " type:" + Token.typeToName(node.getType())); } case Token.DEBUGGER: case Token.FALSE: case Token.NULL: case Token.THIS: case Token.TRUE: return processKeywordLiteral((KeywordLiteral) node); case Token.FOR: if(node instanceof ForInLoop) { return processForInLoop((ForInLoop) node); } elseif(node instanceof ForLoop) { return processForLoop((ForLoop) node); } else { <extra_id_0> } case Token.FUNCTION: return processFunctionNode((FunctionNode) node); case Token.GETELEM: return processElementGet((ElementGet) node); case Token.GETPROP: return processPropertyGet((PropertyGet) node); case Token.HOOK: return processConditionalExpression((ConditionalExpression) node); case Token.IF: return processIfStatement((IfStatement) node); case Token.LABEL: [CLASS] TypeSafeDispatcher [METHOD] process [RETURN_TYPE] T AstNode node [ERROR] expected:<4> but was:<5> testCommentPositions
32,437
addLeftExpr( n, isArrayOrFunctionArgument ? -7 : 0, lhsContext);
addLeftExpr(n, isArrayOrFunctionArgument ? 1 : 0, lhsContext);
[BUG] addLeftExpr( n, isArrayOrFunctionArgument ? -7 : 0, lhsContext); [CONTEXT] void addList(Node firstInList, boolean isArrayOrFunctionArgument, Context lhsContext) { for(Node n = firstInList; n != null; n = n.getNext()) { boolean isFirst = n == firstInList; if(isFirst) { <extra_id_0> } else { cc.listSeparator(); addExpr(n, isArrayOrFunctionArgument ? 1 : 0); } } } [CLASS] CodeGenerator Context [METHOD] addList [RETURN_TYPE] void Node firstInList boolean isArrayOrFunctionArgument Context lhsContext [ERROR] expected:<foo([(a,b,c)],d)> but was:<foo([a,b,c],d)> testPrint
240,343
if(!this.high.equals( that.high)){
if(!this.date.equals(that.date)) {
[BUG] if(!this.high.equals( that.high)){ [CONTEXT] public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof OHLCDataItem)) { return false; } OHLCDataItem that =(OHLCDataItem) obj; <extra_id_0> return false; } if(!this.high.equals(that.high)) { return false; } if(!this.low.equals(that.low)) { return false; } if(!this.open.equals(that.open)) { return false; } if(!this.close.equals(that.close)) { return false; } return true; } [CLASS] OHLCDataItem [METHOD] equals [RETURN_TYPE] boolean Object obj [ERROR] expected:<org.jfree.data.KeyedObjects@312b1dae> but was:<org.jfree.data.KeyedObjects@4ccabbaa> testSerialization
361,768
return new QName( prefix);
return new QName(prefix, name);
[BUG] return new QName( prefix); [CONTEXT] public Object qname(String prefix, String name) { <extra_id_0> } [CLASS] TreeCompiler [METHOD] qname [RETURN_TYPE] Object String prefix String name [ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide
351,021
if(matchers.size()<= arguments.length) {
if(matchers.size() != arguments.length){
[BUG] if(matchers.size()<= arguments.length) { [CONTEXT] public Integer[] getSuspiciouslyNotMatchingArgsIndexes(List<Matcher> matchers, Object[] arguments) { <extra_id_0> return new Integer[0]; } List<Integer> suspicious = new LinkedList<Integer>(); int i = 0; for(Matcher m : matchers) { if(m instanceof ContainsExtraTypeInformation && !safelyMatches(m, arguments[i]) && toStringEquals(m, arguments[i]) && !((ContainsExtraTypeInformation) m).typeMatches(arguments[i])) { suspicious.add(i); } i++; } return suspicious.toArray(new Integer[0]); } [CLASS] ArgumentMatchingTool [METHOD] getSuspiciouslyNotMatchingArgsIndexes [RETURN_TYPE] Integer[] Matcher> matchers Object[] arguments [ERROR] expected:<1> but was:<0> shouldFindSuspiciousMatchers
116,184
ordered.putAll( all);ordered.put( name, w);
ordered.put(name, w);
[BUG] ordered.putAll( all);ordered.put( name, w); [CONTEXT] if(propertyOrder != null) { for(String name : propertyOrder) { POJOPropertyBuilder w = all.get(name); if(w == null) { // also, as per [JACKSON-268], we will allow use of"implicit" names for(POJOPropertyBuilder prop : _properties.values()) { if(name.equals(prop.getInternalName())) { w = prop; name = prop.getName(); break; } } } if(w != null) { <extra_id_0> } } } if(_creatorProperties != null) { for(POJOPropertyBuilder prop : _creatorProperties) { ordered.put(prop.getName(), prop); } } ordered.putAll(all); _properties.clear(); _properties.putAll(ordered); } [CLASS] POJOPropertiesCollector [METHOD] _sortProperties [RETURN_TYPE] void [ERROR] Conflicting getter definitions for property"empty": java.util.AbstractCollection#isEmpty(0 params) vs java.util.List#isEmpty(0 params)(through reference chain: com.fasterxml.jackson.databind.SetterlessWithValue["value_list"]) testWithGetterAsSetter
174,329
result.append(getName()); result.append(" LICENCE TERMS:");
[BUG] [CONTEXT] if(libraries.length != 0) { for(int i = 0; i < libraries.length; i++) { final Library lib = libraries[i]; result.append(lib.getName()); result.append(""); result.append(lib.getVersion()); result.append("("); result.append(lib.getInfo()); result.append(")."); } } else { result.append("None"); } result.append("\n"); <extra_id_0> result.append("\n"); result.append(getLicenceText()); return result.toString(); } } [CLASS] ProjectInfo [METHOD] toString [RETURN_TYPE] String [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization
4,839
logger.fine("Inlining property accessor:" + callName); inlinePropertyReturn(parent, callNode, returned);
[BUG] [CONTEXT] return; } Node firstDefinition = definitions.iterator().next(); if(definitions.size() == 1 || allDefinitionsEquivalent(definitions)) { if(!argsMayHaveSideEffects(callNode)) { Node returned = returnedExpression(firstDefinition); if(returned != null) { if(isPropertyTree(returned)) { <extra_id_0> } else if(NodeUtil.isLiteralValue(returned) && !NodeUtil.mayHaveSideEffects(callNode.getFirstChild())) { logger.fine("Inlining constant accessor:" + callName); inlineConstReturn(parent, callNode, returned); } } else if(isEmptyMethod(firstDefinition) && !NodeUtil.mayHaveSideEffects(callNode.getFirstChild())) { logger.fine("Inlining empty method:" + callName); inlineEmptyMethod(t, parent, callNode); } } } else { logger.fine("Method '" + callName +"' has conflicting definitions."); [CLASS] InlineGetters InlineTrivialAccessors 1 [METHOD] visit [RETURN_TYPE] void NodeTraversal t Node callNode Node parent String callName [ERROR] null testDebugFlag3
207,445
w[-2] = size.width;
w[3] = size.width;
[BUG] w[-2] = size.width; [CONTEXT] ); w[1] = size.width; h[1] = size.height; } if(this.leftBlock != null) { Size2D size = this.leftBlock.arrange( g2, RectangleConstraint.NONE); w[2] = size.width; h[2] = size.height; } if(this.rightBlock != null) { Size2D size = this.rightBlock.arrange( g2, RectangleConstraint.NONE); <extra_id_0> h[3] = size.height; } h[2] = Math.max(h[2], h[3]); h[3] = h[2]; if(this.centerBlock != null) { Size2D size = this.centerBlock.arrange( g2, RectangleConstraint.NONE); w[4] = size.width; h[4] = size.height; } double width = Math.max(w[0], Math.max(w[1], w[2] + w[4] + w[3])); double centerHeight = Math.max(h[2], Math.max(h[3], h[4])); [CLASS] BorderArrangement [METHOD] arrangeNN [RETURN_TYPE] Size2D BlockContainer container Graphics2D g2 [ERROR] null testEquals
224,777
days = calendar.get( Calendar.DATE);dd = calendar.getTime();
dd = calendar.getTime();
[BUG] days = calendar.get( Calendar.DATE);dd = calendar.getTime(); [CONTEXT] minutes = calendar.get(Calendar.MINUTE); if(this.tickMarkPosition == DateTickMarkPosition.START) { milliseconds = 0; } else if(this.tickMarkPosition == DateTickMarkPosition.MIDDLE) { milliseconds = 500; } else { milliseconds = 999; } calendar.set(Calendar.MILLISECOND, milliseconds); calendar.set(years, months, days, hours, minutes, value); Date dd = calendar.getTime(); if(dd.getTime() >= date.getTime()) { calendar.set(Calendar.SECOND, value - 1); <extra_id_0> } return calendar.getTime(); case(DateTickUnit.MINUTE) : years = calendar.get(Calendar.YEAR); months = calendar.get(Calendar.MONTH); days = calendar.get(Calendar.DATE); hours = calendar.get(Calendar.HOUR_OF_DAY); if(this.tickMarkPosition == DateTickMarkPosition.START) { seconds = 0; } else if(this.tickMarkPosition == DateTickMarkPosition.MIDDLE) { seconds = 30; } else { [CLASS] DateAxis DefaultTimeline [METHOD] previousStandardDate [RETURN_TYPE] Date Date date DateTickUnit unit [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization
25,052
result.append(" /=");result.append(" %=");
result.append(" %=");
[BUG] result.append(" /=");result.append(" %="); [CONTEXT] break; case Token.ASSIGN_SUB: result.append(" -="); break; case Token.ASSIGN_MUL: result.append(" *="); break; case Token.ASSIGN_DIV: result.append(" /="); break; case Token.ASSIGN_MOD: <extra_id_0> break; case Token.ASSIGN_BITOR: result.append(" |="); break; case Token.ASSIGN_BITXOR: result.append(" ^="); break; case Token.ASSIGN_BITAND: result.append(" &="); break; case Token.ASSIGN_LSH: [CLASS] Decompiler [METHOD] decompile [RETURN_TYPE] String String source int flags UintMap properties [ERROR] expected:<8> but was:<2> testParseBlockComment2
323,265
bodtx = new DateTimeFormatterBuilder().append( basicOrdinalDate()).append( basicTimeNoMillis()).toFormatter();
bodtx = new DateTimeFormatterBuilder().append(basicOrdinalDate()).append(basicTTimeNoMillis()).toFormatter();
[BUG] bodtx = new DateTimeFormatterBuilder().append( basicOrdinalDate()).append( basicTimeNoMillis()).toFormatter(); [CONTEXT] public static DateTimeFormatter basicOrdinalDateTimeNoMillis() { if(bodtx == null) { <extra_id_0> } return bodtx; } [CLASS] ISODateTimeFormat [METHOD] basicOrdinalDateTimeNoMillis [RETURN_TYPE] DateTimeFormatter [ERROR] null testTest
152,327
calendar.set( this.year, Calendar.JANUARY, 1, 0, 0, 0);calendar.set( Calendar.MILLISECOND, 0);
calendar.set(Calendar.MILLISECOND, 0);
[BUG] calendar.set( this.year, Calendar.JANUARY, 1, 0, 0, 0);calendar.set( Calendar.MILLISECOND, 0); [CONTEXT] public long getFirstMillisecond(Calendar calendar) { calendar.set(this.year, Calendar.JANUARY, 1, 0, 0, 0); <extra_id_0> return calendar.getTime().getTime(); } [CLASS] Year [METHOD] getFirstMillisecond [RETURN_TYPE] long Calendar calendar [ERROR] expected:<org.jfree.data.time.TimePeriodValuesCollection@4edde6e5> but was:<org.jfree.data.time.TimePeriodValuesCollection@1ed6993a> testSerialization
231,653
double x0 = 0.0;double result = 0.0;
double result = 0.0;
[BUG] double x0 = 0.0;double result = 0.0; [CONTEXT] public double getCategoryJava2DCoordinate(CategoryAnchor anchor, int category, int categoryCount, Rectangle2D area, RectangleEdge edge) { <extra_id_0> if(anchor == CategoryAnchor.START) { result = getCategoryStart(category, categoryCount, area, edge); } else if(anchor == CategoryAnchor.MIDDLE) { result = getCategoryMiddle(category, categoryCount, area, edge); } else if(anchor == CategoryAnchor.END) { result = getCategoryEnd(category, categoryCount, area, edge); } return result; } [CLASS] CategoryAxis [METHOD] getCategoryJava2DCoordinate [RETURN_TYPE] double CategoryAnchor anchor int category int categoryCount Rectangle2D area RectangleEdge edge [ERROR] null testEquals
131,593
dec = val.substring( decPos + 1);
dec = val.substring(decPos + 1, expPos);
[BUG] dec = val.substring( decPos + 1); [CONTEXT] return createInteger(val); } char lastChar = val.charAt(val.length() - 1); String mant; String dec; String exp; int decPos = val.indexOf('.'); int expPos = val.indexOf('e') + val.indexOf('E') + 1; if(decPos > -1) { if(expPos > -1) { if(expPos < decPos) { throw new NumberFormatException(val +" is not a valid number."); } <extra_id_0> } else { dec = val.substring(decPos + 1); } mant = val.substring(0, decPos); } else { if(expPos > -1) { mant = val.substring(0, expPos); } else { mant = val; } dec = null; } if(!Character.isDigit(lastChar)) { if(expPos > -1 && expPos < val.length() - 1) { exp = val.substring(expPos + 1, val.length() - 1); [CLASS] NumberUtils [METHOD] createNumber [RETURN_TYPE] Number String val [ERROR] expected:<[I]> but was:<[i]> testCapitalizeWithDelimiters_String
164,630
p0.lineTo( l + t, -l + t);p0.lineTo( 0.0f, t * SQRT2);
p0.lineTo(0.0f, t * SQRT2);
[BUG] p0.lineTo( l + t, -l + t);p0.lineTo( 0.0f, t * SQRT2); [CONTEXT] public static Shape createDiagonalCross(float l, float t) { GeneralPath p0 = new GeneralPath(); p0.moveTo(-l - t, -l + t); p0.lineTo(-l + t, -l - t); p0.lineTo(0.0f, -t * SQRT2); p0.lineTo(l - t, -l - t); p0.lineTo(l + t, -l + t); p0.lineTo(t * SQRT2, 0.0f); p0.lineTo(l + t, l - t); p0.lineTo(l - t, l + t); <extra_id_0> p0.lineTo(-l + t, l + t); p0.lineTo(-l - t, l - t); p0.lineTo(-t * SQRT2, 0.0f); p0.closePath(); return p0; } [CLASS] ShapeUtilities [METHOD] createDiagonalCross [RETURN_TYPE] Shape float l float t [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization
111,310
node.add( deserializeArray( jp, ctxt, nodeFactory));node.add( deserializeAny( jp, ctxt, nodeFactory));
node.add(deserializeAny(jp, ctxt, nodeFactory));
[BUG] node.add( deserializeArray( jp, ctxt, nodeFactory));node.add( deserializeAny( jp, ctxt, nodeFactory)); [CONTEXT] { ArrayNode node = nodeFactory.arrayNode(); while(true) { JsonToken t = jp.nextToken(); if(t == null) { throw ctxt.mappingException("Unexpected end-of-input when binding data into ArrayNode"); } switch(t) { case START_OBJECT: node.add(deserializeObject(jp, ctxt, nodeFactory)); break; case START_ARRAY: node.add(deserializeArray(jp, ctxt, nodeFactory)); break; case END_ARRAY: return node; case VALUE_STRING: node.add(nodeFactory.textNode(jp.getText())); break; default: <extra_id_0> break; } } } [CLASS] BaseNodeDeserializer [METHOD] deserializeArray [RETURN_TYPE] ArrayNode JsonParser jp DeserializationContext ctxt JsonNodeFactory nodeFactory [ERROR] Can not deserialize instance of com.fasterxml.jackson.databind.JsonNode out of END_ARRAY token testReadingArrayAsTree
285,709
_xmlWriter.close();_xmlWriter.writeEndElement();
_xmlWriter.writeEndElement();
[BUG] _xmlWriter.close();_xmlWriter.writeEndElement(); [CONTEXT] public void writeNumber(long l) throws IOException { _verifyValueWrite("write number"); if(_nextName == null) { handleMissingName(); } try { if(_nextIsAttribute) { _xmlWriter.writeLongAttribute(null, _nextName.getNamespaceURI(), _nextName.getLocalPart(), l); } else if(checkNextIsUnwrapped()) { _xmlWriter.writeLong(l); } else { if(_xmlPrettyPrinter != null) { _xmlPrettyPrinter.writeLeafElement(_xmlWriter, _nextName.getNamespaceURI(), _nextName.getLocalPart(), l); } else { _xmlWriter.writeStartElement(_nextName.getNamespaceURI(), _nextName.getLocalPart()); _xmlWriter.writeLong(l); <extra_id_0> } } } catch(XMLStreamException e) { StaxUtil.throwXmlAsIOException(e); } } [CLASS] ToXmlGenerator Feature [METHOD] writeNumber [RETURN_TYPE] void long l [ERROR] Unexpected IOException(of type java.io.IOException testRoundtrip
207,578
this.rightBlock.setBounds( new Rectangle2D.Double( width - w[3], w[0], w[3], centerHeight));
this.rightBlock.setBounds(new Rectangle2D.Double(width - w[3], h[0], w[3], centerHeight));
[BUG] this.rightBlock.setBounds( new Rectangle2D.Double( width - w[3], w[0], w[3], centerHeight)); [CONTEXT] this.topBlock.setBounds( new Rectangle2D.Double(0.0, 0.0, width, h[0])); } if(this.bottomBlock != null) { this.bottomBlock.setBounds( new Rectangle2D.Double(0.0, height - h[1], width, h[1])); } if(this.leftBlock != null) { this.leftBlock.setBounds( new Rectangle2D.Double(0.0, h[0], w[2], centerHeight)); } if(this.rightBlock != null) { <extra_id_0> } if(this.centerBlock != null) { this.centerBlock.setBounds( new Rectangle2D.Double( w[2], h[0], width - w[2] - w[3], centerHeight)); } return new Size2D(width, height); } [CLASS] BorderArrangement [METHOD] arrangeNN [RETURN_TYPE] Size2D BlockContainer container Graphics2D g2 [ERROR] null testEquals
334,276
fields.monthOfYear = convertField( fields.monthOfYear, converted);fields.seconds = convertField( fields.seconds, converted);
fields.seconds = convertField(fields.seconds, converted);
[BUG] fields.monthOfYear = convertField( fields.monthOfYear, converted);fields.seconds = convertField( fields.seconds, converted); [CONTEXT] HashMap<Object, Object> converted = new HashMap<Object, Object>(); fields.eras = convertField(fields.eras, converted); fields.centuries = convertField(fields.centuries, converted); fields.years = convertField(fields.years, converted); fields.months = convertField(fields.months, converted); fields.weekyears = convertField(fields.weekyears, converted); fields.weeks = convertField(fields.weeks, converted); fields.days = convertField(fields.days, converted); fields.halfdays = convertField(fields.halfdays, converted); fields.hours = convertField(fields.hours, converted); fields.minutes = convertField(fields.minutes, converted); <extra_id_0> fields.millis = convertField(fields.millis, converted); fields.year = convertField(fields.year, converted); fields.yearOfEra = convertField(fields.yearOfEra, converted); fields.yearOfCentury = convertField(fields.yearOfCentury, converted); fields.centuryOfEra = convertField(fields.centuryOfEra, converted); fields.era = convertField(fields.era, converted); fields.dayOfWeek = convertField(fields.dayOfWeek, converted); fields.dayOfMonth = convertField(fields.dayOfMonth, converted); fields.dayOfYear = convertField(fields.dayOfYear, converted); fields.monthOfYear = convertField(fields.monthOfYear, converted); fields.weekOfWeekyear = convertField(fields.weekOfWeekyear, converted); fields.weekyear = convertField(fields.weekyear, converted); [CLASS] ZonedChronology ZonedDurationField ZonedDateTimeField [METHOD] assemble [RETURN_TYPE] void Fields fields [ERROR] expected:<2004-06-[01]T00:00:00.000+01:00> but was:<2004-06-[30]T00:00:00.000+01:00> testPropertyRoundHalfEvenMonthOfYear
55,646
if(!t.canBeCalled()) {
if(t.isNullable()){
[BUG] if(!t.canBeCalled()) { [CONTEXT] public boolean isNullable() { for(JSType t : alternates) { <extra_id_0> return true; } } return false; } [CLASS] UnionType [METHOD] isNullable [RETURN_TYPE] boolean [ERROR] expected:<... : Bar testTypeMismatch
386,731
buf.append(",");
[BUG] [CONTEXT] public String toString() { if(isEmpty()) { return"{}"; } final StringBuilder buf = new StringBuilder(); buf.append('{'); boolean first = true; for(final Map.Entry<K, V> entry : entrySet()) { final K key = entry.getKey(); final V value = entry.getValue(); if(first) { first = false; } else { <extra_id_0> } buf.append(key == this ?"(this Map)" : key); buf.append('='); buf.append(value == this ?"(this Map)" : value); } buf.append('}'); return buf.toString(); [CLASS] ListOrderedMap ValuesView 1 KeySetView 1 EntrySetView ListOrderedIterator ListOrderedMapEntry ListOrderedMapIterator [METHOD] toString [RETURN_TYPE] String [ERROR] null testEmptyMapCompatibility
15,185
if(info.thrownTypes == null) {
if(info.deprecated != null){
[BUG] if(info.thrownTypes == null) { [CONTEXT] boolean setDeprecationReason(String reason) { lazyInitInfo(); <extra_id_0> return false; } info.deprecated = reason; return true; } [CLASS] JSDocInfo Visibility LazilyInitializedInfo LazilyInitializedDocumentation StringPosition TypePosition Marker [METHOD] setDeprecationReason [RETURN_TYPE] boolean String reason [ERROR] Variable f has been deprecated. testNoWarningInGlobalScopeForCall
344,040
fields.dayOfWeek = new GJDayOfWeekDateTimeField( this, fields.days);fields.yearOfEra = new GJYearOfEraDateTimeField( fields.year, this);
fields.yearOfEra = new GJYearOfEraDateTimeField(fields.year, this);
[BUG] fields.dayOfWeek = new GJDayOfWeekDateTimeField( this, fields.days);fields.yearOfEra = new GJYearOfEraDateTimeField( fields.year, this); [CONTEXT] fields.millisOfDay = cMillisOfDayField; fields.secondOfMinute = cSecondOfMinuteField; fields.secondOfDay = cSecondOfDayField; fields.minuteOfHour = cMinuteOfHourField; fields.minuteOfDay = cMinuteOfDayField; fields.hourOfDay = cHourOfDayField; fields.hourOfHalfday = cHourOfHalfdayField; fields.clockhourOfDay = cClockhourOfDayField; fields.clockhourOfHalfday = cClockhourOfHalfdayField; fields.halfdayOfDay = cHalfdayOfDayField; fields.year = new BasicYearDateTimeField(this); <extra_id_0> DateTimeField field = new OffsetDateTimeField( fields.yearOfEra, 99); fields.centuryOfEra = new DividedDateTimeField( field, DateTimeFieldType.centuryOfEra(), 100); field = new RemainderDateTimeField((DividedDateTimeField) fields.centuryOfEra); fields.yearOfCentury = new OffsetDateTimeField( field, DateTimeFieldType.yearOfCentury(), 1); fields.era = new GJEraDateTimeField(this); fields.dayOfWeek = new GJDayOfWeekDateTimeField(this, fields.days); fields.dayOfMonth = new BasicDayOfMonthDateTimeField(this, fields.days); [CLASS] BasicChronology HalfdayField YearInfo [METHOD] assemble [RETURN_TYPE] void Fields fields [ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHashCode
344,144
fields.years = fields.year.getDurationField();fields.months = fields.monthOfYear.getDurationField();
fields.months = fields.monthOfYear.getDurationField();
[BUG] fields.years = fields.year.getDurationField();fields.months = fields.monthOfYear.getDurationField(); [CONTEXT] fields.dayOfYear = new BasicDayOfYearDateTimeField(this, fields.days); fields.monthOfYear = new GJMonthOfYearDateTimeField(this); fields.weekyear = new BasicWeekyearDateTimeField(this); fields.weekOfWeekyear = new BasicWeekOfWeekyearDateTimeField(this, fields.weeks); field = new RemainderDateTimeField( fields.weekyear, DateTimeFieldType.weekyearOfCentury(), 100); fields.weekyearOfCentury = new OffsetDateTimeField( field, DateTimeFieldType.weekyearOfCentury(), 1); fields.years = fields.year.getDurationField(); fields.centuries = fields.centuryOfEra.getDurationField(); <extra_id_0> fields.weekyears = fields.weekyear.getDurationField(); } int getDaysInYearMax() { return 366; } [CLASS] BasicChronology HalfdayField YearInfo [METHOD] assemble [RETURN_TYPE] void Fields fields [ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHashCode
53,974
registerNativeType( JSTypeNative.NULL_TYPE, NULL_TYPE);registerNativeType( JSTypeNative.STRING_OBJECT_TYPE, STRING_OBJECT_TYPE);
registerNativeType(JSTypeNative.STRING_OBJECT_TYPE, STRING_OBJECT_TYPE);
[BUG] registerNativeType( JSTypeNative.NULL_TYPE, NULL_TYPE);registerNativeType( JSTypeNative.STRING_OBJECT_TYPE, STRING_OBJECT_TYPE); [CONTEXT] registerNativeType(JSTypeNative.REGEXP_FUNCTION_TYPE, REGEXP_FUNCTION_TYPE); ObjectType REGEXP_TYPE = REGEXP_FUNCTION_TYPE.getInstanceType(); registerNativeType(JSTypeNative.REGEXP_TYPE, REGEXP_TYPE); FunctionType STRING_OBJECT_FUNCTION_TYPE = new FunctionType(this,"String", null, createParameters(false, ALL_TYPE), STRING_TYPE, null, null, true, true); ObjectType stringPrototype = STRING_OBJECT_FUNCTION_TYPE.getPrototype(); registerNativeType( JSTypeNative.STRING_OBJECT_FUNCTION_TYPE, STRING_OBJECT_FUNCTION_TYPE); ObjectType STRING_OBJECT_TYPE = STRING_OBJECT_FUNCTION_TYPE.getInstanceType(); <extra_id_0> JSType OBJECT_NUMBER_STRING = createUnionType(OBJECT_TYPE, NUMBER_TYPE, STRING_TYPE); registerNativeType(JSTypeNative.OBJECT_NUMBER_STRING, OBJECT_NUMBER_STRING); JSType OBJECT_NUMBER_STRING_BOOLEAN = createUnionType(OBJECT_TYPE, NUMBER_TYPE, STRING_TYPE, BOOLEAN_TYPE); registerNativeType(JSTypeNative.OBJECT_NUMBER_STRING_BOOLEAN, OBJECT_NUMBER_STRING_BOOLEAN); JSType NUMBER_STRING_BOOLEAN = [CLASS] JSTypeRegistry 1 2 3 [METHOD] initializeBuiltInTypes [RETURN_TYPE] void [ERROR] expected:<... : Bar testTypeMismatch
392,287
if((( bigInt.bitLength()% 8) != 0) &&((( bigInt.bitLength()/ 8) + 1) >(bitlen / 8))) {
if(((bigInt.bitLength() % 8)!= 0)&&(((bigInt.bitLength() / 8)+ 1)==(bitlen / 8))){
[BUG] if((( bigInt.bitLength()% 8) != 0) &&((( bigInt.bitLength()/ 8) + 1) >(bitlen / 8))) { [CONTEXT] static byte[] toIntegerBytes(BigInteger bigInt) { int bitlen = bigInt.bitLength(); bitlen =((bitlen + 7) >> 3) << 3; byte[] bigBytes = bigInt.toByteArray(); <extra_id_0> return bigBytes; } int startSrc = 0; int len = bigBytes.length; if((bigInt.bitLength() % 8) == 0) { startSrc = 1; len--; } int startDst = bitlen / 8 - len; // to pad w/ nulls as per spec byte[] resizedBytes = new byte[bitlen / 8]; System.arraycopy(bigBytes, startSrc, resizedBytes, startDst, len); return resizedBytes; } [CLASS] Base64 [METHOD] toIntegerBytes [RETURN_TYPE] byte[] BigInteger bigInt [ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition
119,165
_data = null;
_data = data;
[BUG] _data = null; [CONTEXT] public BinaryNode(byte[] data) { <extra_id_0> } [CLASS] BinaryNode [METHOD] <init> [RETURN_TYPE] BinaryNode(byte[]) byte[] data [ERROR] null testEmbeddedObject
198,791
if(l_x3 <= l_x1) {
if(b_colinear){
[BUG] if(l_x3 <= l_x1) { [CONTEXT] double l_deltaX = l_x1 - l_x3; double l_numeratorA =((l_x4 - l_x3) * l_deltaY) -((l_y4 - l_y3) * l_deltaX); double l_numeratorB =((l_x2 - l_x1) * l_deltaY) -((l_y2 - l_y1) * l_deltaX); if((0 == l_numeratorA) &&(0 == l_numeratorB) &&(0 == l_denominator)) { b_colinear = true; } else { <extra_id_0> l_minuendXs.clear(); l_minuendYs.clear(); l_subtrahendXs.clear(); l_subtrahendYs.clear(); l_polygonXs.clear(); l_polygonYs.clear(); b_colinear = false; boolean b_useMinuend =((l_x3 <= l_x1) &&(l_x1 <= l_x4)); l_polygonXs.add(b_useMinuend ? l_minuendCurX : l_subtrahendCurX); [CLASS] XYDifferenceRenderer [METHOD] drawItemPass0 [RETURN_TYPE] void Graphics2D x_graphics Rectangle2D x_dataArea PlotRenderingInfo x_info XYPlot x_plot ValueAxis x_domainAxis ValueAxis x_rangeAxis XYDataset x_dataset int x_series int x_item CrosshairState x_crosshairState [ERROR] null testDrawWithNullInfo
268,277
if(minLen < 1) {
if(maxLen > 20){
[BUG] if(minLen < 1) { [CONTEXT] int[][] code = new int[N_GROUPS][MAX_ALPHA_SIZE]; for(t = 0; t < nGroups; t++) { minLen = 32; maxLen = 0; for(i = 0; i < alphaSize; i++) { if(len[t][i] > maxLen) { maxLen = len[t][i]; } if(len[t][i] < minLen) { minLen = len[t][i]; } } <extra_id_0> panic(); } if(minLen < 1) { panic(); } hbAssignCodes(code[t], len[t], minLen, maxLen, alphaSize); } { boolean[] inUse16 = new boolean[16]; for(i = 0; i < 16; i++) { inUse16[i] = false; for(j = 0; j < 16; j++) { if(inUse[i * 16 + j]) { [CLASS] BZip2CompressorOutputStream StackElem [METHOD] sendMTFValues [RETURN_TYPE] void [ERROR] null testArUnarchive
264,046
if(nRows == nCols) {
if(nRows != nCols){
[BUG] if(nRows == nCols) { [CONTEXT] public void luDecompose() throws InvalidMatrixException { int nRows = this.getRowDimension(); int nCols = this.getColumnDimension(); <extra_id_0> throw new InvalidMatrixException("LU decomposition requires that the matrix be square."); } lu = this.getData(); permutation = new int[nRows]; for(int row = 0; row < nRows; row++) { permutation[row] = row; } parity = 1; for(int col = 0; col < nCols; col++) { double sum = 0; [CLASS] RealMatrixImpl [METHOD] luDecompose [RETURN_TYPE] void [ERROR] Inconsistent cumulative probabilities for(-667.2485619,-65.6230835) expected:<0.0090000000004829> but was:<0.0> testConsistency
347,160
if(end instanceof BaseLocal) {
if(start instanceof BaseLocal && end instanceof BaseLocal && start.getClass() == end.getClass()){
[BUG] if(end instanceof BaseLocal) { [CONTEXT] protected BasePeriod(ReadablePartial start, ReadablePartial end, PeriodType type) { super(); if(start == null || end == null) { throw new IllegalArgumentException("ReadablePartial objects must not be null"); } <extra_id_0> type = checkPeriodType(type); long startMillis =((BaseLocal) start).getLocalMillis(); long endMillis =((BaseLocal) end).getLocalMillis(); Chronology chrono = start.getChronology(); chrono = DateTimeUtils.getChronology(chrono); iType = type; iValues = chrono.get(this, startMillis, endMillis); } else { if(start.size() != end.size()) { throw new IllegalArgumentException("ReadablePartial objects must have the same set of fields"); } for(int i = 0, isize = start.size(); i < isize; i++) { if(start.getFieldType(i) != end.getFieldType(i)) { throw new IllegalArgumentException("ReadablePartial objects must have the same set of fields"); } } if(DateTimeUtils.isContiguous(start) == false) { throw new IllegalArgumentException("ReadablePartial objects must be contiguous"); } iType = checkPeriodType(type); Chronology chrono = DateTimeUtils.getChronology(start.getChronology()).withUTC(); iValues = chrono.get(this, chrono.set(start, 0L), chrono.set(end, 0L)); } } [CLASS] BasePeriod [METHOD] <init> [RETURN_TYPE] PeriodType) ReadablePartial start ReadablePartial end PeriodType type [ERROR]
174,491
Ellipse2D circle1 = new Ellipse2D.Double( two.getX()- 5, one.getY()- 5, 10, 10);
Ellipse2D circle1 = new Ellipse2D.Double(one.getX() - 5, one.getY() - 5, 10, 10);
[BUG] Ellipse2D circle1 = new Ellipse2D.Double( two.getX()- 5, one.getY()- 5, 10, 10); [CONTEXT] public void paintComponent(Graphics g) { Graphics2D g2 =(Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Dimension size = getSize(); Insets insets = getInsets(); double xx = insets.left; double yy = insets.top; double ww = size.getWidth() - insets.left - insets.right; double hh = size.getHeight() - insets.top - insets.bottom; Point2D one =new Point2D.Double(xx + 6, yy + hh / 2); Point2D two =new Point2D.Double(xx + ww - 6, yy + hh / 2); <extra_id_0> Ellipse2D circle2 = new Ellipse2D.Double(two.getX() - 6, two.getY() - 5, 10, 10); g2.draw(circle1); g2.fill(circle1); g2.draw(circle2); g2.fill(circle2); Line2D line = new Line2D.Double(one, two); if(this.stroke != null) { g2.setStroke(this.stroke); } else { g2.setStroke(new BasicStroke(0.0f)); } [CLASS] StrokeSample [METHOD] paintComponent [RETURN_TYPE] void Graphics g [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization
382,252
writer.beginObject();
[BUG] [CONTEXT] } } else if(element.isJsonArray()) { writer.beginArray(); for(JsonElement e : element.getAsJsonArray()) { if(e.isJsonNull()) { writer.nullValue(); continue; } write(e, serializeNulls, writer); } writer.endArray(); } else if(element.isJsonObject()) { <extra_id_0> for(Map.Entry<String, JsonElement> e : element.getAsJsonObject().entrySet()) { JsonElement value = e.getValue(); if(!serializeNulls && value.isJsonNull()) { continue; } writer.name(e.getKey()); write(value, serializeNulls, writer); } writer.endObject(); } else { throw new IllegalArgumentException("Couldn't write" + element.getClass()); } } [CLASS] Streams AppendableWriter CurrentWrite [METHOD] write [RETURN_TYPE] void JsonElement element boolean serializeNulls JsonWriter writer [ERROR] expected:<[a, b, c]> but was:<[]> testParseComments
110,996
if(rawType == GregorianCalendar.class) {
if(rawType == Timestamp.class){
[BUG] if(rawType == GregorianCalendar.class) { [CONTEXT] { if(!_classNames.contains(clsName)) { return null; } if(rawType == Calendar.class) { return CalendarDeserializer.instance; } if(rawType == java.util.Date.class) { return DateDeserializer.instance; } if(rawType == java.sql.Date.class) { return SqlDateDeserializer.instance; } <extra_id_0> return TimestampDeserializer.instance; } if(rawType == TimeZone.class) { return TimeZoneDeserializer.instance; } if(rawType == GregorianCalendar.class) { return CalendarDeserializer.gregorianInstance; } throw new IllegalArgumentException("Internal error: can't find deserializer for"+clsName); } [CLASS] DateDeserializers DateBasedDeserializer CalendarDeserializer DateDeserializer SqlDateDeserializer TimestampDeserializer TimeZoneDeserializer [METHOD] find [RETURN_TYPE] JsonDeserializer Class<?> rawType String clsName [ERROR] expected:<...> but was:<null> testMapWithFactory
308,835
System.arraycopy( _currentSegment, 6, result, offset, _currentSize);
System.arraycopy(_currentSegment, 0, result, offset, _currentSize);
[BUG] System.arraycopy( _currentSegment, 6, result, offset, _currentSize); [CONTEXT] int size = size(); if(size < 1) { return NO_CHARS; } int offset = 0; final char[] result = _charArray(size); if(_segments != null) { for(int i = 0, len = _segments.size(); i < len; ++i) { char[] curr =(char[]) _segments.get(i); int currLen = curr.length; System.arraycopy(curr, 0, result, offset, currLen); offset += currLen; } } <extra_id_0> return result; } private char[] _charArray(int len) { return new char[len]; } } [CLASS] TextBuffer [METHOD] buildResultArray [RETURN_TYPE] char[] [ERROR] arrays first differed at element [0]; expected:<f> but was:< testQuoteAsString
106,361
if(jp.getCurrentToken()== JsonToken.VALUE_STRING) {
if(( jp.getCurrentToken() == JsonToken.VALUE_STRING)&& ctxt.isEnabled(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT)) {
[BUG] if(jp.getCurrentToken()== JsonToken.VALUE_STRING) { [CONTEXT] private final int[] handleNonArray(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { <extra_id_0> if(jp.getText().length() == 0) { return null; } } if(!ctxt.isEnabled(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY)) { throw ctxt.mappingException(_valueClass); } return new int[] { _parseIntPrimitive(jp, ctxt) }; } [CLASS] IntDeser [METHOD] handleNonArray [RETURN_TYPE] int[] JsonParser jp DeserializationContext ctxt [ERROR] expected:<...> but was:<null> testMapWithFactory
106,459
private final long serialVersionUID = 1;
private static final long serialVersionUID = 1L;
[BUG] private final long serialVersionUID = 1; [CONTEXT] @JacksonStdImpl final static class DoubleDeser extends PrimitiveArrayDeserializers<double[]> { <extra_id_0> public DoubleDeser() { super(double[].class); } @Override public double[] deserialize(JsonParser jp, DeserializationContext ctxt) [CLASS] DoubleDeser [METHOD] handleNonArray [RETURN_TYPE] float[] JsonParser jp DeserializationContext ctxt [ERROR] expected:<...> but was:<null> testMapWithFactory
198,912
l_intersectX = new Double( l_x2);l_intersectY = new Double( l_yi);
l_intersectY = new Double(l_yi);
[BUG] l_intersectX = new Double( l_x2);l_intersectY = new Double( l_yi); [CONTEXT] if((0 < l_slopeA) &&(l_slopeA <= 1) &&(0 < l_slopeB) &&(l_slopeB <= 1)) { double l_xi = l_x1 +(l_slopeA *(l_x2 - l_x1)); double l_yi = l_y1 +(l_slopeA *(l_y2 - l_y1)); l_intersectX= new Double(l_xi); <extra_id_0> b_intersect = true; b_minuendAtIntersect=((l_xi == l_x2) &&(l_yi == l_y2)); b_subtrahendAtIntersect =((l_xi == l_x4) &&(l_yi == l_y4)); l_minuendCurX= l_intersectX; l_minuendCurY= l_intersectY; l_subtrahendCurX = l_intersectX; l_subtrahendCurY = l_intersectY; } [CLASS] XYDifferenceRenderer [METHOD] drawItemPass0 [RETURN_TYPE] void Graphics2D x_graphics Rectangle2D x_dataArea PlotRenderingInfo x_info XYPlot x_plot ValueAxis x_domainAxis ValueAxis x_rangeAxis XYDataset x_dataset int x_series int x_item CrosshairState x_crosshairState [ERROR] null testDrawWithNullInfo
355,226
buffer.append( getRelativePositionOfTextNode());
buffer.append(getRelativePositionOfElement());
[BUG] buffer.append( getRelativePositionOfTextNode()); [CONTEXT] if(equalStrings(nsURI, getNamespaceResolver().getDefaultNamespaceURI())) { buffer.append(ln); buffer.append('['); buffer.append(getRelativePositionByName()).append(']'); } else { String prefix = getNamespaceResolver().getPrefix(nsURI); if(prefix != null) { buffer.append(prefix); buffer.append(':'); buffer.append(ln); buffer.append('['); buffer.append(getRelativePositionByName()); buffer.append(']'); } else { buffer.append("node()"); buffer.append('['); <extra_id_0> buffer.append(']'); } } [CLASS] JDOMNodePointer [METHOD] asPath [RETURN_TYPE] String [ERROR] org.jdom.Element cannot be cast to org.jdom.CDATA testDefaultNamespaceIgnored
291,972
if(ch == INT_0) {
if(ch == 'I'){
[BUG] if(ch == INT_0) { [CONTEXT] { <extra_id_0> if(_inputPtr >= _inputEnd) { if(!loadMore()) { _reportInvalidEOFInValue(); } } ch = _inputBuffer[_inputPtr++]; if(ch == 'N') { String match = negative ?"-INF" :"+INF"; _matchToken(match, 3); if(isEnabled(Feature.ALLOW_NON_NUMERIC_NUMBERS)) { return resetAsNaN(match, negative ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY); } _reportError("Non-standard token '"+match+"': enable JsonParser.Feature.ALLOW_NON_NUMERIC_NUMBERS to allow"); } else if(ch == 'n') { String match = negative ?"-Infinity" :"+Infinity"; _matchToken(match, 3); if(isEnabled(Feature.ALLOW_NON_NUMERIC_NUMBERS)) { return resetAsNaN(match, negative ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY); } _reportError("Non-standard token '"+match+"': enable JsonParser.Feature.ALLOW_NON_NUMERIC_NUMBERS to allow"); } } reportUnexpectedNumberChar(ch,"expected digit(0-9) to follow minus sign, for valid numeric value"); return null; } [CLASS] ReaderBasedJsonParser [METHOD] _handleInvalidNumberStart [RETURN_TYPE] JsonToken int ch boolean negative [ERROR] expected:<[doc]> but was:<[]> testLongText
397,349
private static final String[] ES_EP_EB_EL_EY_IB_IL_IN_IE_EI_ER = {"ES","EP","EB","EL","EY","IB","","IN","IE","EI","ER" };
private static final String[] ES_EP_EB_EL_EY_IB_IL_IN_IE_EI_ER = {"ES","EP","EB","EL","EY","IB","IL","IN","IE","EI","ER" };
[BUG] private static final String[] ES_EP_EB_EL_EY_IB_IL_IN_IE_EI_ER = {"ES","EP","EB","EL","EY","IB","","IN","IE","EI","ER" }; [CONTEXT] <extra_id_0> [CLASS] DoubleMetaphone DoubleMetaphoneResult [ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition
10,551
NodeUtil.removeChild(grandparent, varNode);
[BUG] [CONTEXT] private void removeDeclaration(Reference declaration) { Node varNode = declaration.getParent(); varNode.removeChild(declaration.getNameNode()); if(!varNode.hasChildren()) { Preconditions.checkState(varNode.getType() == Token.VAR); Node grandparent = declaration.getGrandparent(); <extra_id_0> } compiler.reportCodeChange(); [CLASS] InlineVariables Mode IdentifyConstants IdentifyLocals AliasCandidate InliningBehavior [METHOD] removeDeclaration [RETURN_TYPE] void Reference declaration [ERROR] null testDebugFlag3
308,978
if(_rootValueSeparator != null) { _rootValueSeparator = sep; }
_rootValueSeparator = sep;
[BUG] if(_rootValueSeparator != null) { _rootValueSeparator = sep; } [CONTEXT] public void setRootValueSeparator(String sep) { <extra_id_0> } [CLASS] MinimalPrettyPrinter [METHOD] setRootValueSeparator [RETURN_TYPE] void String sep [ERROR] expected same:<c> was not:<c> testInterningWithReaders
172,306
if((this.chartBuffer == null || this.chartBufferWidth != available.getWidth())) {
if(( this.chartBuffer == null)||(this.chartBufferWidth != available.getWidth())||(this.chartBufferHeight != available.getHeight())) {
[BUG] if((this.chartBuffer == null || this.chartBufferWidth != available.getWidth())) { [CONTEXT] scale = true; } else if(drawHeight > this.maximumDrawHeight) { this.scaleY = drawHeight / this.maximumDrawHeight; drawHeight = this.maximumDrawHeight; scale = true; } Rectangle2D chartArea = new Rectangle2D.Double(0.0, 0.0, drawWidth, drawHeight); if(this.useBuffer) { <extra_id_0> this.chartBufferWidth =(int) available.getWidth(); this.chartBufferHeight =(int) available.getHeight(); this.chartBuffer = createImage( this.chartBufferWidth, this.chartBufferHeight); this.refreshBuffer = true; } [CLASS] ChartPanel [METHOD] paintComponent [RETURN_TYPE] void Graphics g [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization
149,940
ensureCapacity( size + 4);ensureCapacity( size + 5);
ensureCapacity(size + 5);
[BUG] ensureCapacity( size + 4);ensureCapacity( size + 5); [CONTEXT] public StrBuilder insert(int index, boolean value) { validateIndex(index); if(value) { ensureCapacity(size + 4); System.arraycopy(buffer, index, buffer, index + 4, size - index); buffer[index++] = 't'; buffer[index++] = 'r'; buffer[index++] = 'u'; buffer[index] = 'e'; size += 4; } else { <extra_id_0> System.arraycopy(buffer, index, buffer, index + 5, size - index); buffer[index++] = 'f'; buffer[index++] = 'a'; buffer[index++] = 'l'; buffer[index++] = 's'; buffer[index] = 'e'; size += 5; } return this; } [CLASS] StrBuilder StrBuilderReader StrBuilderWriter [METHOD] insert [RETURN_TYPE] StrBuilder int index boolean value [ERROR] expected:<ValuedColorEnum[Red=1]> but was:<null> testToString
24,606
result.append(" !=");result.append( ';');
result.append(';');
[BUG] result.append(" !=");result.append( ';'); [CONTEXT] case Token.DEFAULT: result.append("default"); break; case Token.RETURN: result.append("return"); if(Token.SEMI != getNext(source, length, i)) result.append(' '); break; case Token.VAR: result.append("var"); break; case Token.SEMI: <extra_id_0> if(Token.EOL != getNext(source, length, i)) { result.append(' '); } break; case Token.ASSIGN: result.append(" ="); break; case Token.ASSIGN_ADD: result.append(" +="); break; case Token.ASSIGN_SUB: [CLASS] Decompiler [METHOD] decompile [RETURN_TYPE] String String source int flags UintMap properties [ERROR] expected:<8> but was:<2> testParseBlockComment2
35,120
if(parent.getType()== Token.THIS) {
if(n.getType() == Token.THIS){
[BUG] if(parent.getType()== Token.THIS) { [CONTEXT] public void visit(NodeTraversal t, Node n, Node parent) { <extra_id_0> compiler.report( JSError.make(name.declaration.sourceName, n, UNSAFE_THIS, name.fullName())); } } [CLASS] 1 [METHOD] visit [RETURN_TYPE] void NodeTraversal t Node n Node parent [ERROR] Unexpected error(s testThisJSDoc1
217,381
hotspot = new Rectangle2D.Float( tickMarkInsideLength - w / 2.0f, labely - h / 2.0f, w, h);
hotspot = new Rectangle2D.Float(labelx - w / 2.0f, labely - h / 2.0f, w, h);
[BUG] hotspot = new Rectangle2D.Float( tickMarkInsideLength - w / 2.0f, labely - h / 2.0f, w, h); [CONTEXT] AffineTransform t = AffineTransform.getRotateInstance( getLabelAngle() + Math.PI / 2.0, labelBounds.getCenterX(), labelBounds.getCenterY()); Shape rotatedLabelBounds = t.createTransformedShape(labelBounds); labelBounds = rotatedLabelBounds.getBounds2D(); float w =(float) labelBounds.getWidth(); float h =(float) labelBounds.getHeight(); float labelx =(float)(state.getCursor() + insets.getLeft() + w / 2.0); float labely =(float)(dataArea.getY() + dataArea.getHeight() TextUtilities.drawRotatedString(label, g2, labelx, labely, TextAnchor.CENTER, getLabelAngle() + Math.PI / 2.0, TextAnchor.CENTER); <extra_id_0> state.cursorRight(insets.getLeft() + labelBounds.getWidth() + insets.getRight()); } if(plotState != null && hotspot != null) { ChartRenderingInfo owner = plotState.getOwner(); if(owner != null) { EntityCollection entities = owner.getEntityCollection(); if(entities != null) { entities.add(new AxisLabelEntity(this, hotspot, this.labelToolTip, this.labelURL)); } } } [CLASS] Axis [METHOD] drawLabel [RETURN_TYPE] AxisState String label Graphics2D g2 Rectangle2D plotArea Rectangle2D dataArea RectangleEdge edge AxisState state PlotRenderingInfo plotState [ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization
84,384
Node newSecondArgument = parent.getLastChild();
Node newSecondArgument = secondArgument.getLastChild();
[BUG] Node newSecondArgument = parent.getLastChild(); [CONTEXT] Node secondArgument = firstArgument.getNext(); int secondArgumentType = secondArgument.getType(); if(secondArgumentType == Token.GETPROP) { Node newChild = secondArgument.getFirstChild(); secondArgument.removeChild(newChild); n.replaceChild(firstArgument, newChild); n.replaceChild(secondArgument, Node.newString(secondArgument.getFirstChild().getString())); } else if(secondArgumentType == Token.GETELEM) { Node newFirstArgument = secondArgument.getFirstChild(); secondArgument.removeChild(newFirstArgument); <extra_id_0> secondArgument.removeChild(newSecondArgument); n.replaceChild(firstArgument, newFirstArgument); n.replaceChild(secondArgument, newSecondArgument); } else { n.replaceChild(secondArgument, Node.newString(secondArgument.getString())); } compiler.reportCodeChange(); } } } [CLASS] ObjectPropertyStringPostprocess Callback [METHOD] visit [RETURN_TYPE] void NodeTraversal t Node n Node parent [ERROR] node is not a child testDontAlias
293,557
if(( _outputTail + 8) >= _outputEnd) {
if(_outputTail >= _outputEnd){
[BUG] if(( _outputTail + 8) >= _outputEnd) { [CONTEXT] protected void _writePPFieldName(SerializableString name, boolean commaBefore) throws IOException, JsonGenerationException { if(commaBefore) { _cfgPrettyPrinter.writeObjectEntrySeparator(this); } else { _cfgPrettyPrinter.beforeObjectEntries(this); } final char[] quoted = name.asQuotedChars(); if(isEnabled(Feature.QUOTE_FIELD_NAMES)) { // standard if(_outputTail >= _outputEnd) { _flushBuffer(); } _outputBuffer[_outputTail++] = '"'; writeRaw(quoted, 0, quoted.length); <extra_id_0> _flushBuffer(); } _outputBuffer[_outputTail++] = '"'; } else { // non-standard, omit quotes writeRaw(quoted, 0, quoted.length); } } [CLASS] WriterBasedJsonGenerator [METHOD] _writePPFieldName [RETURN_TYPE] void SerializableString name boolean commaBefore [ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8
207,565
if(this.bottomBlock != null) {
if(this.rightBlock != null){
[BUG] if(this.bottomBlock != null) { [CONTEXT] if(this.topBlock != null) { this.topBlock.setBounds( new Rectangle2D.Double(0.0, 0.0, width, h[0])); } if(this.bottomBlock != null) { this.bottomBlock.setBounds( new Rectangle2D.Double(0.0, height - h[1], width, h[1])); } if(this.leftBlock != null) { this.leftBlock.setBounds( new Rectangle2D.Double(0.0, h[0], w[2], centerHeight)); } <extra_id_0> this.rightBlock.setBounds( new Rectangle2D.Double(width - w[3], h[0], w[3], centerHeight)); } if(this.centerBlock != null) { this.centerBlock.setBounds( new Rectangle2D.Double( w[2], h[0], width - w[2] - w[3], centerHeight)); } return new Size2D(width, height); } [CLASS] BorderArrangement [METHOD] arrangeNN [RETURN_TYPE] Size2D BlockContainer container Graphics2D g2 [ERROR] null testEquals
80,746
List<Node> externsAndJs = Lists.newArrayList( externs, externs);
List<Node> externsAndJs = Lists.newArrayList(externs, root);
[BUG] List<Node> externsAndJs = Lists.newArrayList( externs, externs); [CONTEXT] public void process(Node externs, Node root) { externMethods.clear(); externMethodsWithoutSignatures.clear(); getSignatureStore().reset(); methodDefinitions.clear(); if(externs != null) { NodeTraversal.traverse(compiler, externs, new GetExternMethods()); } <extra_id_0> NodeTraversal.traverseRoots( compiler, Lists.newArrayList(externs, root), new GatherSignatures()); NodeTraversal.traverseRoots( compiler, externsAndJs, getActingCallback()); } [CLASS] MethodCompilerPass GetExternMethods GatherSignatures [METHOD] process [RETURN_TYPE] void Node externs Node root [ERROR] node is not a child testDontAlias
356,287
return position >= 1 && position <= attributes.size() + 7;
return position >= 1 && position <= attributes.size();
[BUG] return position >= 1 && position <= attributes.size() + 7; [CONTEXT] public boolean setPosition(int position) { this.position = position; <extra_id_0> } [CLASS] DOMAttributeIterator [METHOD] setPosition [RETURN_TYPE] boolean int position [ERROR] Index: 0, Size: 0 testDoStepPredicatesStandard
317,522
cache.put( yearMonthDayTime(), yearMonthDayTime());cache.put( yearMonthDay(), yearMonthDay());
cache.put(yearMonthDay() , yearMonthDay());
[BUG] cache.put( yearMonthDayTime(), yearMonthDayTime());cache.put( yearMonthDay(), yearMonthDay()); [CONTEXT] public static synchronized PeriodType forFields(DurationFieldType[] types) { if(types == null || types.length == 0) { throw new IllegalArgumentException("Types array must not be null or empty"); } for(int i = 0; i < types.length; i++) { if(types[i] == null) { throw new IllegalArgumentException("Types array must not contain null"); } } Map<PeriodType, Object> cache = cTypes; if(cache.isEmpty()) { cache.put(standard(), standard()); cache.put(yearMonthDayTime(), yearMonthDayTime()); <extra_id_0> cache.put(yearWeekDayTime(), yearWeekDayTime()); cache.put(yearWeekDay(), yearWeekDay()); cache.put(yearDayTime(), yearDayTime()); cache.put(yearDay(), yearDay()); cache.put(dayTime(), dayTime()); cache.put(time(), time()); cache.put(years(), years()); cache.put(months(), months()); cache.put(weeks(), weeks()); cache.put(days(), days()); cache.put(hours(), hours()); cache.put(minutes(), minutes()); cache.put(seconds(), seconds()); cache.put(millis(), millis()); } [CLASS] PeriodType [METHOD] forFields [RETURN_TYPE] PeriodType DurationFieldType[] types [ERROR] null test_other
371,732
return setPosition( position);
return setPosition(position + 1);
[BUG] return setPosition( position); [CONTEXT] public boolean nextNode() { <extra_id_0> } [CLASS] InitialContext [METHOD] nextNode [RETURN_TYPE] boolean [ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide
371,976
return doPredicateName( context, childPointer, steps,
return doPredicate(context, childPointer, steps,
[BUG] return doPredicateName( context, childPointer, steps, [CONTEXT] { Step step = steps[currentStep]; Expression predicates[] = step.getPredicates(); NodePointer childPointer = createChildPointerForStep(parentPointer, step); if(!childPointer.isActual()) { return createNullPointer( context, parentPointer, steps, currentStep); } <extra_id_0> currentStep, predicates, 0); } [CLASS] SimplePathInterpreter [METHOD] doStepPredicatesPropertyOwner [RETURN_TYPE] NodePointer EvalContext context PropertyOwnerPointer parentPointer Step[] steps int currentStep [ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide
173,146
if(this.italic.isSelected()&& this.bold.isSelected()) {
if(this.bold.isSelected() && this.italic.isSelected()){
[BUG] if(this.italic.isSelected()&& this.bold.isSelected()) { [CONTEXT] public int getSelectedStyle() { <extra_id_0> return Font.BOLD + Font.ITALIC; } if(this.bold.isSelected()) { return Font.BOLD; } if(this.italic.isSelected()) { return Font.ITALIC; } else { return Font.PLAIN; } } [CLASS] FontChooserPanel [METHOD] getSelectedStyle [RETURN_TYPE] int [ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization
72,911
Node nameNode = n.getLastChild();Node first = receiver.getFirstChild();
Node first = receiver.getFirstChild();
[BUG] Node nameNode = n.getLastChild();Node first = receiver.getFirstChild(); [CONTEXT] ConcreteType newret = type.toFunction().getReturnSlot().getType().unionWith(retType);((ConcreteScope) type.getScope()).declareSlot( ConcreteFunctionType.RETURN_SLOT_NAME, n, newret); } scope.declareSlot(lhs.getLastChild().getString(), n, type); } else { addActions(createAssignmentActions(lhs, n.getLastChild(), n)); } break; case Token.NEW: case Token.CALL: Node receiver = n.getFirstChild(); if(receiver.getType() == Token.GETPROP) { <extra_id_0> if("call".equals(first.getNext().getString())) { if(first.getType() == Token.GETPROP) { addAction(new FunctionCallBuilder(first, receiver.getNext()).setPropName(first.getFirstChild().getNext().getString()).setIsCallFunction().build()); } else { addAction(new FunctionCallBuilder( first, receiver.getNext()).setIsCallFunction().build()); } } else { [CLASS] TightenTypes ConcreteScope ConcreteSlot Assignment VariableAssignAction PropertyAssignAction FunctionCallBuilder ExternFunctionCall FunctionCall NativeCallFunctionCall CreateScope ConcreteJSTypePair [METHOD] visit [RETURN_TYPE] void NodeTraversal t Node n Node parent [ERROR] null testExternedPropertyName
331,940
buf.append( '.');buf.append( ':');
buf.append(':');
[BUG] buf.append( '.');buf.append( ':'); [CONTEXT] private static String printOffset(int offset) { StringBuffer buf = new StringBuffer(); if(offset >= 0) { buf.append('+'); } else { buf.append('-'); offset = -offset; } int hours = offset / DateTimeConstants.MILLIS_PER_HOUR; FormatUtils.appendPaddedInteger(buf, hours, 2); offset -= hours *(int) DateTimeConstants.MILLIS_PER_HOUR; int minutes = offset / DateTimeConstants.MILLIS_PER_MINUTE; <extra_id_0> FormatUtils.appendPaddedInteger(buf, minutes, 2); offset -= minutes * DateTimeConstants.MILLIS_PER_MINUTE; if(offset == 0) { return buf.toString(); } int seconds = offset / DateTimeConstants.MILLIS_PER_SECOND; buf.append(':'); FormatUtils.appendPaddedInteger(buf, seconds, 2); offset -= seconds * DateTimeConstants.MILLIS_PER_SECOND; if(offset == 0) { return buf.toString(); } buf.append('.'); [CLASS] DateTimeZone 1 Stub [METHOD] printOffset [RETURN_TYPE] String int offset [ERROR] null testTest
204,111
double low = Math.max( start2d, end2d);
double low = Math.min(start2d, end2d);
[BUG] double low = Math.max( start2d, end2d); [CONTEXT] g2.setComposite(originalComposite); } else if(marker instanceof IntervalMarker) { IntervalMarker im =(IntervalMarker) marker; double start = im.getStartValue(); double end = im.getEndValue(); Range range = domainAxis.getRange(); if(!(range.intersects(start, end))) { return; } double start2d = domainAxis.valueToJava2D(start, dataArea, plot.getDomainAxisEdge()); double end2d = domainAxis.valueToJava2D(end, dataArea, plot.getDomainAxisEdge()); <extra_id_0> double high = Math.max(start2d, end2d); PlotOrientation orientation = plot.getOrientation(); Rectangle2D rect = null; if(orientation == PlotOrientation.HORIZONTAL) { low = Math.max(low, dataArea.getMinY()); high = Math.min(high, dataArea.getMaxY()); rect = new Rectangle2D.Double(dataArea.getMinX(), low, dataArea.getWidth(), high - low); } else if(orientation == PlotOrientation.VERTICAL) { low = Math.max(low, dataArea.getMinX()); [CLASS] AbstractXYItemRenderer [METHOD] drawDomainMarker [RETURN_TYPE] void Graphics2D g2 XYPlot plot ValueAxis domainAxis Marker marker Rectangle2D dataArea [ERROR] null testDrawWithNullInfo
369,658
System.arraycopy( bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos);System.arraycopy( bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin);
System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin);
[BUG] System.arraycopy( bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos);System.arraycopy( bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); [CONTEXT] System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); bufline = newbufline; System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); bufcolumn = newbufcolumn; maxNextCharInd =(bufpos +=(bufsize - tokenBegin)); } else { System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); buffer = newbuffer; <extra_id_0> bufline = newbufline; System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); bufcolumn = newbufcolumn; maxNextCharInd =(bufpos -= tokenBegin); } } catch(Throwable t) { throw new Error(t.getMessage()); } bufsize += 2048; [CLASS] SimpleCharStream [METHOD] ExpandBuff [RETURN_TYPE] void boolean wrapAround [ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide
86,564
c2 = getChar();ungetChar( c1);
ungetChar(c1);
[BUG] c2 = getChar();ungetChar( c1); [CONTEXT] int c1 = c; addToString(c); int c2 = getChar(); if(!isJSDocString(c2)) { ungetChar(c2); this.string = getStringFromBuffer(); stringBufferTop = 0; return JsDocToken.STRING; } else { do { c1 = c2; c2 = getChar(); if(c1 == '.' && c2 == '<') { ungetChar(c2); <extra_id_0> this.string = getStringFromBuffer(); stringBufferTop = 0; return JsDocToken.STRING; } else { if(isJSDocString(c2)) { addToString(c1); } else { ungetChar(c2); addToString(c1); this.string = getStringFromBuffer(); stringBufferTop = 0; return JsDocToken.STRING; } } } while(true); [CLASS] JsDocTokenStream [METHOD] getJsDocToken [RETURN_TYPE] JsDocToken [ERROR] unexpected warnings(s testCircularOldTypeDef
192,211
result = new LegendItem( label, description, null, null, shape, paint, outlineStroke, paint);
result = new LegendItem(label, description, null, null, shape, paint, outlineStroke, outlinePaint);
[BUG] result = new LegendItem( label, description, null, null, shape, paint, outlineStroke, paint); [CONTEXT] public LegendItem getLegendItem(int series) { LegendItem result = null; PolarPlot polarPlot = getPlot(); if(polarPlot != null) { XYDataset dataset = polarPlot.getDataset(); if(dataset != null) { String label = dataset.getSeriesKey(series).toString(); String description = label; Shape shape = lookupSeriesShape(series); Paint paint = lookupSeriesPaint(series); Paint outlinePaint = lookupSeriesOutlinePaint(series); Stroke outlineStroke = lookupSeriesOutlineStroke(series); <extra_id_0> result.setDataset(dataset); } } return result; } [CLASS] DefaultPolarItemRenderer [METHOD] getLegendItem [RETURN_TYPE] LegendItem int series [ERROR] null testDrawWithNullInfo
131,672
if(expPos > -1) {
if(expPos > -1 && expPos < val.length() - 1){
[BUG] if(expPos > -1) { [CONTEXT] } try { return createBigDecimal(numeric); } catch(NumberFormatException e) { } default : throw new NumberFormatException(val +" is not a valid number."); } } else { <extra_id_0> exp = val.substring(expPos + 1, val.length()); } else { exp = null; } if(dec == null && exp == null) { try { return createInteger(val); } catch(NumberFormatException nfe) { } try { return createLong(val); } catch(NumberFormatException nfe) { [CLASS] NumberUtils [METHOD] createNumber [RETURN_TYPE] Number String val [ERROR] expected:<[I]> but was:<[i]> testCapitalizeWithDelimiters_String
178,590
negativeBase = d + negativeBase;
negativeBase = negativeBase + d;
[BUG] negativeBase = d + negativeBase; [CONTEXT] if(group.equals(this.seriesToGroupMap.getGroup( dataset.getRowKey(i)))) { Number v = dataset.getValue(i, column); if(v != null) { double d = v.doubleValue(); if(d > 0) { positiveBase = positiveBase + d; } else { <extra_id_0> } } } [CLASS] GroupedStackedBarRenderer [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 [ERROR] null testDrawWithNullInfo
236,653
else if(edge == RectangleEdge.BOTTOM) {
else if(edge.equals(RectangleEdge.BOTTOM)) {
[BUG] else if(edge == RectangleEdge.BOTTOM) { [CONTEXT] } else { xx =(float) area.getCenterX(); yy =(float)(y0 +(i + 0.5) * height); } String label = this.subCategories.get(i).toString(); TextUtilities.drawRotatedString(label, g2, xx, yy, TextAnchor.CENTER, 0.0, TextAnchor.CENTER); } } if(edge.equals(RectangleEdge.TOP)) { double h = maxdim; state.cursorUp(h); } <extra_id_0> double h = maxdim; state.cursorDown(h); } else if(edge == RectangleEdge.LEFT) { double w = maxdim; state.cursorLeft(w); } else if(edge == RectangleEdge.RIGHT) { double w = maxdim; state.cursorRight(w); } return state; } [CLASS] SubCategoryAxis [METHOD] drawSubCategoryLabels [RETURN_TYPE] AxisState Graphics2D g2 Rectangle2D plotArea Rectangle2D dataArea RectangleEdge edge AxisState state PlotRenderingInfo plotState [ERROR] null testCloning
190,751
g2.setPaint(getWallPaint());
[BUG] [CONTEXT] plot.getBackgroundAlpha())); Paint backgroundPaint = plot.getBackgroundPaint(); if(backgroundPaint != null) { g2.setPaint(backgroundPaint); g2.fill(clip); } GeneralPath leftWall = new GeneralPath(); leftWall.moveTo(x0, y0); leftWall.lineTo(x0, y2); leftWall.lineTo(x1, y3); leftWall.lineTo(x1, y1); leftWall.closePath(); <extra_id_0> g2.fill(leftWall); GeneralPath bottomWall = new GeneralPath(); bottomWall.moveTo(x0, y0); bottomWall.lineTo(x1, y1); bottomWall.lineTo(x3, y1); bottomWall.lineTo(x2, y0); bottomWall.closePath(); g2.setPaint(getWallPaint()); g2.fill(bottomWall); g2.setPaint(Color.lightGray); Line2D corner = new Line2D.Double(x0, y0, x1, y1); [CLASS] BarRenderer3D [METHOD] drawBackground [RETURN_TYPE] void Graphics2D g2 CategoryPlot plot Rectangle2D dataArea [ERROR] null testDrawWithNullInfo
7,084
static final DiagnosticType FRACTIONAL_BITWISE_OPERAND = DiagnosticType.error("NAL_BITWISE_OPERAN","Fractional bitwise operand: {0}");
static final DiagnosticType FRACTIONAL_BITWISE_OPERAND = DiagnosticType.error("JSC_FRACTIONAL_BITWISE_OPERAND","Fractional bitwise operand: {0}");
[BUG] static final DiagnosticType FRACTIONAL_BITWISE_OPERAND = DiagnosticType.error("NAL_BITWISE_OPERAN","Fractional bitwise operand: {0}"); [CONTEXT] <extra_id_0> [CLASS] FoldConstants 1 2 [ERROR] null testDebugFlag3
298,298
hash +=(hash >>> 15);_mainHash[ix] =(hash << 8);
_mainHash[ix] =(hash << 8);
[BUG] hash +=(hash >>> 15);_mainHash[ix] =(hash << 8); [CONTEXT] _collEnd = 0; _collListShared = false; int maxColl = 0; Bucket[] oldBuckets = _collList; _collList = new Bucket[oldBuckets.length]; for(int i = 0; i < oldEnd; ++i) { for(Bucket curr = oldBuckets[i]; curr != null; curr = curr._next) { ++symbolsSeen; Name symbol = curr._name; int hash = symbol.hashCode(); int ix =(hash & _mainHashMask); int val = _mainHash[ix]; if(_mainNames[ix] == null) { // no primary entry? <extra_id_0> _mainNames[ix] = symbol; } else { // nope, it's a collision, need to spill over ++_collCount; int bucket = val & 0xFF; if(bucket == 0) { // first spill over? if(_collEnd <= LAST_VALID_BUCKET) { // yup, still unshared bucket bucket = _collEnd; ++_collEnd; if(bucket >= _collList.length) { expandCollision(); } } else { // nope, have to share... let's find shortest? bucket = findBestBucket(); } [CLASS] BytesToNameCanonicalizer TableInfo Bucket [METHOD] rehash [RETURN_TYPE] void [ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8
107,089
fileName = jp.getText();className = jp.getText();
className = jp.getText();
[BUG] fileName = jp.getText();className = jp.getText(); [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)) { <extra_id_0> } 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(); } else if("nativeMethod".equals(propName)) { } 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 [ERROR] expected:<...> but was:<null> testMapWithFactory
23,881
result.append("if");result.append("finally");
result.append("finally");
[BUG] result.append("if");result.append("finally"); [CONTEXT] break; case Token.DO: result.append("do"); break; case Token.TRY: result.append("try"); break; case Token.CATCH: result.append("catch"); break; case Token.FINALLY: <extra_id_0> break; case Token.THROW: result.append("throw"); break; case Token.SWITCH: result.append("switch"); break; case Token.BREAK: result.append("break"); if(Token.NAME == getNext(source, length, i)) result.append(' '); break; [CLASS] Decompiler [METHOD] decompile [RETURN_TYPE] String String source int flags UintMap properties [ERROR] expected:<8> but was:<2> testParseBlockComment2
287,213
sb.append("/");sb.append( '}');
sb.append('}');
[BUG] sb.append("/");sb.append( '}'); [CONTEXT] public final String toString() { StringBuilder sb = new StringBuilder(64); switch(_type) { case TYPE_ROOT: sb.append("/"); break; case TYPE_ARRAY: sb.append('['); sb.append(getCurrentIndex()); sb.append(']'); break; case TYPE_OBJECT: sb.append('{'); if(_currentName != null) { sb.append('"'); CharTypes.appendQuoted(sb, _currentName); sb.append('"'); } else { sb.append('?'); } <extra_id_0> break; } return sb.toString(); } [CLASS] XmlReadContext [METHOD] toString [RETURN_TYPE] String [ERROR] Can not deserialize instance of java.lang.String out of START_OBJECT token testRoundtrip
294,257
_reportError("Too few bytes available: start"+missing+" bytes(out of"+dataLength+")");
_reportError("Too few bytes available: missing"+missing+" bytes(out of"+dataLength+")");
[BUG] _reportError("Too few bytes available: start"+missing+" bytes(out of"+dataLength+")"); [CONTEXT] { _verifyValueWrite("write binary value"); if(_outputTail >= _outputEnd) { _flushBuffer(); } _outputBuffer[_outputTail++] = '"'; byte[] encodingBuffer = _ioContext.allocBase64Buffer(); int bytes; try { if(dataLength < 0) { // length unknown bytes = _writeBinary(b64variant, data, encodingBuffer); } else { int missing = _writeBinary(b64variant, data, encodingBuffer, dataLength); if(missing > 0) { <extra_id_0> } bytes = dataLength; } } finally { _ioContext.releaseBase64Buffer(encodingBuffer); } if(_outputTail >= _outputEnd) { _flushBuffer(); } _outputBuffer[_outputTail++] = '"'; return bytes; } [CLASS] WriterBasedJsonGenerator [METHOD] writeBinary [RETURN_TYPE] int Base64Variant b64variant InputStream data int dataLength [ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8
107,186
} else if("lineNumberine".equals( propName)){
} else if("lineNumber".equals(propName)) {
[BUG] } else if("lineNumberine".equals( propName)){ [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(); <extra_id_0> 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(); } else if("nativeMethod".equals(propName)) { } 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 [ERROR] expected:<...> but was:<null> testMapWithFactory
357,455
for(int i = count; i < startPropertyIndex; i++) {
for(int i = startPropertyIndex; i < count; i++){
[BUG] for(int i = count; i < startPropertyIndex; i++) { [CONTEXT] } propertyNodePointer.setIndex(index - 1); return true; } private boolean setPositionAllProperties(int position) { this.position = position; if(position < 1) { return false; } int offset; int count = propertyNodePointer.getPropertyCount(); if(!reverse) { int index = 1; <extra_id_0> propertyNodePointer.setPropertyIndex(i); int length = getLength(); if(i == startPropertyIndex) { length -= startIndex; if(!includeStart) { length--; } offset = startIndex + position - index; if(!includeStart) { offset++; } } else { offset = position - index; } [CLASS] PropertyIterator [METHOD] setPositionAllProperties [RETURN_TYPE] boolean int position [ERROR] Evaluating pointer <//.[name = 'three']> expected:<[/first/first/second]> but was:<[null()]> testInfiniteDescent
244,912
for(int series = 6; series < seriesCount; series++) {
for(int series = 0; series < seriesCount; series++){
[BUG] for(int series = 6; series < seriesCount; series++) { [CONTEXT] public static Range iterateDomainBounds(XYDataset dataset, boolean includeInterval) { if(dataset == null) { throw new IllegalArgumentException("Null 'dataset' argument."); } double minimum = Double.POSITIVE_INFINITY; double maximum = Double.NEGATIVE_INFINITY; int seriesCount = dataset.getSeriesCount(); double lvalue; double uvalue; if(includeInterval && dataset instanceof IntervalXYDataset) { IntervalXYDataset intervalXYData =(IntervalXYDataset) dataset; <extra_id_0> int itemCount = dataset.getItemCount(series); for(int item = 0; item < itemCount; item++) { lvalue = intervalXYData.getStartXValue(series, item); uvalue = intervalXYData.getEndXValue(series, item); minimum = Math.min(minimum, lvalue); maximum = Math.max(maximum, uvalue); } } } else { for(int series = 0; series < seriesCount; series++) { int itemCount = dataset.getItemCount(series); for(int item = 0; item < itemCount; item++) { lvalue = dataset.getXValue(series, item); uvalue = lvalue; [CLASS] DatasetUtilities [METHOD] iterateDomainBounds [RETURN_TYPE] Range XYDataset dataset boolean includeInterval [ERROR] org/jfree/chart/JFreeChartInfo testCloning
265,000
System.arraycopy( subMatrix[i], 0, data[row + i], column, row);
System.arraycopy(subMatrix[i], 0, data[row + i], column, nCols);
[BUG] System.arraycopy( subMatrix[i], 0, data[row + i], column, row); [CONTEXT] throw new IllegalArgumentException("All input rows must have the same length."); } } if(data == null) { if((row > 0)||(column > 0)) throw new MatrixIndexException("matrix must be initialized to perfom this method"); data = new BigDecimal[nRows][nCols]; System.arraycopy(subMatrix, 0, data, 0, subMatrix.length); } if(((nRows + row) > this.getRowDimension()) ||(nCols + column > this.getColumnDimension())) throw new MatrixIndexException("invalid row or column index selection"); for(int i = 0; i < nRows; i++) { <extra_id_0> } lu = null; } public BigMatrix getRowMatrix(int row) throws MatrixIndexException { if(!isValidCoordinate( row, 0)) { throw new MatrixIndexException("illegal row argument"); [CLASS] BigMatrixImpl [METHOD] setSubMatrix [RETURN_TYPE] void BigDecimal[][] subMatrix int row int column [ERROR] Inconsistent cumulative probabilities for(-667.2485619,-65.6230835) expected:<0.0090000000004829> but was:<0.0> testConsistency
82,943
return false;
return true;
[BUG] return false; [CONTEXT] private boolean isExternallyReferenceable(Scope scope, String name) { if(compiler.getCodingConvention().isExported(name)) { return true; } if(scope.isLocal()) { return false; } for(String s : globalNames) { if(name.startsWith(s)) { <extra_id_0> } } return false; } [CLASS] NameAnalyzer NameInformation JsName JsNameRefNode PrototypeSetNode SpecialReferenceNode ClassDefiningFunctionNode InstanceOfCheckNode ProcessExternals FindDependencyScopes HoistVariableAndFunctionDeclarations FindDeclarationsAndSetters FindReferences NodeAccumulator RemoveListener TriState [METHOD] isExternallyReferenceable [RETURN_TYPE] boolean Scope scope String name [ERROR] node is not a child testDontAlias
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
10