Dataset Viewer
Auto-converted to Parquet Duplicate
fix
stringlengths
2
833
ctx
stringlengths
80
394k
if(cnay != null){
[BUG] if(y[0] <= ycycleBound) {[ERROR] null testDrawWithNullInfo [CONTEXT] super.drawItem(g2, state, dataArea, info, plot, domainAxis, rangeAxis, dataset, series, item, crosshairState, pass); return; } OverwriteDataSet newset = new OverwriteDataSet(x, y, dataset); if(cnax != null) { if(xcycleBound == x[0]) { cnax.setB...
sb.append(":");
[BUG] sb.append( str);sb.append(":");[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] private void outputStringUsage() { StringBuilder sb = new StringBuilder("Strings used more than once:\n"); for(String str : stringInfoMap.keySet()) { StringInfo info = stringInfoMap.get(str); if(info.numOccurrences > 1) { sb.appen...
DeserializationConfig cfg = getDeserializationConfig();_deserializationConfig = _deserializationConfig.with( f);
[BUG] _deserializationConfig = _deserializationConfig.with(f); [CONTEXT] public ObjectMapper setTypeFactory(TypeFactory f) { _typeFactory = f; <extra_id_0> _serializationConfig = _serializationConfig.with(f); return this; } [CLASS] ObjectMapper DefaultTyping DefaultTypeResolverBuilder 1 [METHOD] setTypeFactory [RE...
if(_inputStart >= 0){
[BUG] if(start == 0) {[ERROR] expected:<393218> but was:<393217> testLongAppend [CONTEXT] } _resultString = null; _resultArray = null; char[] curr = _currentSegment; if(_currentSize >= curr.length) { expand(1); curr = _currentSegment; } curr[_currentSize++] = c; } public void append(char[] c, int start, int len) { <e...
return delegate.indexOfThrowable(type, 0);
[BUG] return delegate.indexOfThrowable( type, -4);[NO-ERROR] [CONTEXT] public int indexOfThrowable(Class type) { <extra_id_0> } [CLASS] NestableException [METHOD] indexOfThrowable [RETURN_TYPE] int Class type [VARIABLES] Throwable cause Class type boolean NestableDelegate delegate
} else if(length > 1){
[BUG] } else if(accum -(pow( accum2, 2))/(( double)(length))) {[ERROR] cannot find symbol accum [CONTEXT] public double evaluate(final double[] values, final double mean, final int begin, final int length) { double var = Double.NaN; if(test(values, begin, length)) { if(length == 1) { var = 0.0; <extra_id_0> double a...
checkProvides = CheckLevel.OFF;
[BUG] checkProvides = null;[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] checkMethods = CheckLevel.OFF; checkDuplicateMessages = false; allowLegacyJsMessages = false; strictMessageReplacement = false; checkSuspiciousCode = false; checkControlStructures = false; checkUndefinedProperties = CheckLevel.OFF; checkUnu...
return nextToSearch.loadClass(name);
[BUG] return parent.loadClass( name);[ERROR] parent has private access in ClassLoader [CONTEXT] protected Class<?> findClass(String name) throws ClassNotFoundException { if(nextToSearch != null) { <extra_id_0> } else { return super.findClass(name); // will throw ClassNotFoundException } } [CLASS] SearchingClassLoade...
if(( _outputTail + 21)>= _outputEnd){
[BUG] if(( _outputTail + 6) >= _outputEnd) {[NO-ERROR] [CONTEXT] public void writeNumber(long l) throws IOException, JsonGenerationException { _verifyValueWrite("write number"); if(_cfgNumbersAsStrings) { _writeQuotedLong(l); return; } <extra_id_0> _flushBuffer(); } _outputTail = NumberOutput.outputLong(l, _outputBu...
int numChanges = 0;
[BUG] int numStubs = 0;int numChanges = 0;[ERROR] Unexpected error(s testThisJSDoc1 [CONTEXT] private void updateObjLitOrFunctionDeclarationAtVarNode(Name n) { Ref ref = n.declaration; String name = ref.node.getString(); Node rvalue = ref.node.getFirstChild(); Node varNode = ref.node.getParent(); Node gramps = varN...
SerialUtilities.writeShape(this.shape, stream);
[BUG] SerialUtilities.writeShape( stream);[ERROR] method writeShape in class SerialUtilities cannot be applied to given types; [CONTEXT] private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); <extra_id_0> SerialUtilities.writeStroke(this.stroke, stream); SerialUtilities...
int currentBytes = global.name.length() * global.accessorCount;
[BUG] int currentBytes = global.name.length()* requiredUsage;[ERROR] testGlobalAlias [CONTEXT] private void aliasGlobals(Node externs, Node root) { NodeTraversal.traverse(compiler, externs, new GetGlobals()); NodeTraversal.traverse(compiler, root, new GlobalGatherer()); for(Property global : globals.values()) { if(glo...
int newValue = value / 1000;
[BUG] int newValue = value * 1000;[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] offset = outputLeadingTriplet(thousands, buffer, offset); offset = outputFullTriplet(value, buffer, offset); } return offset; } boolean hasBillions =(value >= BILLION); if(ha...
result.append("else");
[BUG] result.append("break");result.append("else");[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] break; case Token.NEW: result.append("new"); break; case Token.DELPROP: result.append("delete"); break; case Token.IF: result.append("if"); break; case Token.ELSE: <extra_id_0> break; case Token.FOR: ...
if(this.runningState != STATE_RUNNING){
[BUG] if( STATE_RUNNING != this.runningState) {[NO-ERROR] [CONTEXT] public void suspend() { <extra_id_0> throw new IllegalStateException("Stopwatch must be running to suspend."); } stopTime = System.currentTimeMillis(); this.runningState = STATE_SUSPENDED; } [CLASS] StopWatch [METHOD] suspend [RETURN_TYPE] void [VAR...
appendDescriptor(-1, attr.type);
[BUG] appendDescriptor( FIELD_DESCRIPTOR,"N");appendDescriptor( -1, attr.type);[NO-ERROR] [CONTEXT] public void visitAttribute(final Attribute attr) { buf.setLength(0); buf.append(tab).append("ATTRIBUTE"); <extra_id_0> if(attr instanceof Traceable) {((Traceable) attr).trace(buf, labelNames); } else { buf.append(" : ...
!NodeUtil.isLhs(name, name.getParent());
[BUG] [ERROR] null testAliasThrowKeywordLiteral [CONTEXT] private static boolean isReadFrom(Var var, Node name) { return name != null && NodeUtil.isName(name) && var.getName().equals(name.getString()) && <extra_id_0> [CLASS] LiveRangeChecker [METHOD] isReadFrom [RETURN_TYPE] boolean Var var Node name [VARIABLES] Va...
x1 = x0 -(f.value(x0)/ derivative.value(x0));
[BUG] x1 = x0 -(f.value( x0) + derivative.value( x0));[ERROR] expected:<0.7071067811865475> but was:<0.7853981633974483> testSinFunction [CONTEXT] public double solve(double min, double max, double startValue) throws ConvergenceException, FunctionEvaluationException { clearResult(); verifySequence(min, startValue, max...
for(int i = 0; i < nRows; i++){
[BUG] for(long i = 0; i < nRows; i++) {[ERROR] possible loss of precision [CONTEXT] private void copyIn(String[][] in) { int nRows = in.length; int nCols = in[0].length; data = new BigDecimal[nRows][nCols]; <extra_id_0> for(int j=0; j < nCols; j++) { data[i][j] = new BigDecimal(in[i][j]); } } lu = null; } [CLASS] Bi...
JsonSerialize ann = a.getAnnotation(JsonSerialize.class);
[BUG] [ERROR] Conflicting getter definitions for property"empty": java.util.AbstractCollection#isEmpty(0 params) vs java.util.List#isEmpty(0 params)(through reference chain: com.fasterxml.jackson.databind.SetterlessWithValue["value_list"]) testWithGetterAsSetter [CONTEXT] public Object findSerializer(Annotated a) { <...
if(a2 == null){
[BUG] if(a2 != null) {[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public static boolean equal(Arc2D a1, Arc2D a2) { if(a1 == null) { return(a2 == null); } <extra_id_0> return false; } if(!a1.getFrame().equals(a2...
if(groupPos == 0){
[BUG] if(minLen == 0) {[ERROR] cannot find symbol minLen [CONTEXT] int minLens_zt = minLens[zt]; while(nextSym != eob) { if((nextSym == RUNA) ||(nextSym == RUNB)) { int s = -1; for(int n = 1; true; n <<= 1) { if(nextSym == RUNA) { s += n; } else if(nextSym == RUNB) { s += n << 1; } else { break; } <extra_id_0> group...
if(candidates == null){
[BUG] if(byNamespace == null) {[ERROR] java.lang.InstantiationException testCoreOperationDivide [CONTEXT] private void prepareCache() { byNamespace = new HashMap(); int count = allFunctions.size(); for(int i = 0; i < count; i++) { Functions funcs =(Functions) allFunctions.get(i); Set namespaces = funcs.getUsedNamespac...
this.xOffset = 0.0;
[BUG] this.xOffset = 2.0d;[ERROR] null testDrawWithNullInfo [CONTEXT] public void setPaintScale(PaintScale scale) { if(scale == null) { throw new IllegalArgumentException("Null 'scale' argument."); } this.paintScale = scale; notifyListeners(new RendererChangeEvent(this)); } private void updateOffsets() { if(this.blo...
map.put("CTT","Asia/Shanghai");
[BUG] map.put("CST","America/Chicago");map.put("CTT","Asia/Shanghai");[ERROR] null testTest [CONTEXT] 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"...
} else if(refCount == firstRefAfterInit){
[BUG] } else if(firstRefAfterInit - 1) {[ERROR] incompatible types [CONTEXT] private void inlineNonConstants( Var v, ReferenceCollection referenceInfo) { int refCount = referenceInfo.references.size(); Reference declaration = referenceInfo.references.get(0); Reference init = referenceInfo.getInitializingReference(); i...
appendListItem(sb, nameLink(jsName.name));
[BUG] [ERROR] node is not a child testDontAlias [CONTEXT] appendListItem(sb,"Total Static Functions:" + countOf(TriState.FALSE, TriState.BOTH)); appendListItem(sb,"Referenced Names:" + countOf(TriState.BOTH, TriState.TRUE)); appendListItem(sb,"Referenced Classes:" + countOf(TriState.TRUE, TriState.TRUE)); appendListIt...
} else if(type == SortedMap.class){
[BUG] } else if(type == LinkedHashMap.class) {[ERROR] null shouldReturnEmptyCollectionsOrNullForNonCollections [CONTEXT] return new TreeSet<Object>(); } else if(type == TreeSet.class) { return new TreeSet<Object>(); } else if(type == LinkedHashSet.class) { return new LinkedHashSet<Object>(); } else if(type == List.cla...
i = 1;
[BUG] i -= 4;i = 1;[NO-ERROR] [CONTEXT] leftright = false; case 4: if(ndigits <= 0) ndigits = 1; ilim = ilim1 = i = ndigits; break; case 3: leftright = false; case 5: i = ndigits + k + 1; ilim = i; ilim1 = i - 1; if(i <= 0) <extra_id_0> } when it turns out that k was computed too high by one. */ boolean fast_failed...
if(!(this.y1 == that.y1)) {
[BUG] if(!( this.y1 <= that.y1)){[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] return false; } if(!(obj instanceof XYBoxAnnotation)) { return false; } XYBoxAnnotation that =(XYBoxAnnotation) obj; if(!(this.x0 == that....
leftType = getJSType(n.getFirstChild());
[BUG] leftType = getJSType( right.getFirstChild());[ERROR] variable right might not have been initialized [CONTEXT] JSType leftTypeRestricted = leftType.restrictByNotNullOrUndefined(); JSType rightTypeRestricted = rightType.restrictByNotNullOrUndefined(); if(!leftTypeRestricted.canTestForShallowEqualityWith( rightType...
throw new IllegalArgumentException("Types array must be in order largest-smallest:" + types[i - 1].getName() +" <" + loopType.getName());
[BUG] throw new IllegalArgumentException("Types array must be in order largest-smallest:" + types[i >> 1].getName()+" <" + loopType.getName());[ERROR] null test_other [CONTEXT] if(types[i - 1].getRangeDurationType() == null) { if(loopType.getRangeDurationType() == null) { throw new IllegalArgumentException("Types arra...
sb.append('\\');
[BUG] [NO-ERROR] [CONTEXT] int chunksBeforeLF = getMaxLineLength() >> 2; int inputPtr = 0; int safeInputEnd = inputEnd-3; // to get only full triplets while(inputPtr <= safeInputEnd) { int b24 =((int) input[inputPtr++]) << 8; b24 |=((int) input[inputPtr++]) & 0xFF; b24 =(b24 << 8) |(((int) input[inputPtr++]) & 0xFF); ...
totalHeight = totalHeight + this.rowHeight[r];
[BUG] totalHeight = totalHeight + rowHeight[r];[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public Dimension minimumLayoutSize(Container parent) { synchronized(parent.getTreeLock()) { Insets insets = parent.getInse...
if(prop.writes == null){
[BUG] if(prop == null) {[ERROR] INTERNAL COMPILER ERROR. testNoWarningForDuckProperty [CONTEXT] private void addWrite(Node nameNode, NodeTraversal t, boolean objLit) { String name = nameNode.getString(); Property prop = getProperty(name); prop.writeCount++; if(prop.readCount == 0 && !isExported(name)) { if(checkWrite...
for(int i=0; i<length; i++){
[BUG] for(int i=5; i<length; i++) {[NO-ERROR] [CONTEXT] entries =(Entry[])entries.clone(); entries[index] = e; <extra_id_0> if(entries[i] == null) { iSelectEntries = entries; return converter; } } int newLength = length << 1; Entry[] newEntries = new Entry[newLength]; for(int i=0; i<length; i++) { e = entries[i...
int value = _parseIntPrimitive(jp, ctxt);
[BUG] short value = _parseIntPrimitive( jp, ctxt);[ERROR] possible loss of precision [CONTEXT] public int[] deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { if(!jp.isExpectedStartArrayToken()) { return handleNonArray(jp, ctxt); } ArrayBuilders.IntBuilder builder = c...
if(that.getItemCount() != count){
[BUG] if(count.getItemCount()!= that) {[ERROR] int cannot be dereferenced [CONTEXT] public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof PieDataset)) { return false; } PieDataset that =(PieDataset) obj; int count = getItemCount(); <extra_id_0> return false; } for(int i = 0; i <...
if(prev == null){
[BUG] if(location == null) {[NO-ERROR] [CONTEXT] public void insertBefore(final AbstractInsnNode location, final InsnList insns) { if(check && !(contains(location)&& insns != this)) { throw new IllegalArgumentException(); } if(insns.size == 0) { return; } size += insns.size; AbstractInsnNode ifirst = insns.first; Abst...
private final AbstractCompiler compiler;
[BUG] private AbstractCompiler compiler;[ERROR] null testDebugFlag3 [CONTEXT] static final class CopySideEffectSubexpressions implements SideEffectAccumulator { <extra_id_0> private final List<Node> replacements; [CLASS] CopySideEffectSubexpressions [METHOD] visit [RETURN_TYPE] void NodeTraversal traversal Node n...
buf.append("ACC_ENUM");
[BUG] buf.append("ACC_NATIVE");buf.append("ACC_ENUM");[NO-ERROR] [CONTEXT] if((access & Opcodes.ACC_ENUM) != 0 &&((access & ACCESS_CLASS) != 0 ||(access & ACCESS_FIELD) != 0 ||(access & ACCESS_INNER) != 0)) { if(!first) { buf.append(" +"); } <extra_id_0> first = false; } [CLASS] ASMifierClassVisitor [METHOD] appendA...
units.add(new DateTickUnit(DateTickUnit.MONTH, 6, DateTickUnit.MONTH, 1, f6));
[BUG] units.add( new DateTickUnit( DateTickUnit.MONTH, 6, DateTickUnit.MONTH, -3, f6));[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] DateTickUnit.HOUR, 1, f5)); units.add(new DateTickUnit(DateTickUnit.DAY, 7, DateTick...
right.lineTo(( float)xxRight, transStackRight);
[BUG] left.lineTo((float) xx1, transStack1);right.lineTo((float) xxRight, transStackRight);[ERROR] null testDrawWithNullInfo [CONTEXT] if(y2 >= 0.0) { right.moveTo((float) xx1, transStack1); right.lineTo((float) xx1, transY1); right.lineTo((float) xxRight, transStackRight); right.closePath(); } else { double yright =(...
int index = propName.hashCode() & _hashMask;
[BUG] int index = _hashMask.hashCode()& propName;[ERROR] int cannot be dereferenced [CONTEXT] public BeanPropertyMap withProperty(SettableBeanProperty newProperty) { final int bcount = _buckets.length; Bucket[] newBuckets = new Bucket[bcount]; System.arraycopy(_buckets, 0, newBuckets, 0, bcount); final String propName...
x1 = x; x2 = x3;
[BUG] x1 = y; x2 = x3;[ERROR] expected:<0.7071067811865475> but was:<0.7853981633974483> testSinFunction [CONTEXT] if(MathUtils.sign(y1) + MathUtils.sign(y) == 0.0) { x2 = x; y2 = y; } else { <extra_id_0> y1 = y; y2 = y3; } [CLASS] RiddersSolver [METHOD] solve [RETURN_TYPE] double double min double max [VARIABLES] b...
if(values == null) {
[BUG] if(values != null){ [CONTEXT] public Object getObject(int key) { if(key < 0) Kit.codeBug(); <extra_id_0> int index = findIndex(key); if(0 <= index) { return values[index]; } } return null; } [CLASS] UintMap [METHOD] getObject [RETURN_TYPE] Object int key [VARIABLES] int[] keys boolean check long serialVersio...
stubbingInProgress = null;
[BUG] stubbingInProgress = new Location();stubbingInProgress = null;[NO-ERROR] [CONTEXT] public void reset() { <extra_id_0> verificationMode = null; getArgumentMatcherStorage().reset(); } [CLASS] MockingProgressImpl [METHOD] reset [RETURN_TYPE] void [VARIABLES] boolean Reporter reporter DebuggingInfo debuggingInfo I...
int inlineBytes =(len - 1)*(refs.size() - 1);
[BUG] int inlineBytes =(refs - 1) *(len.size()- 1);[ERROR] bad operand types for binary operator '-' [CONTEXT] private boolean isStringWorthInlining(Var var, List<Reference> refs) { if(!inlineAllStrings && !var.isDefine()) { int len = var.getInitialValue().getString().length() +"''".length(); int noInlineBytes ="var...
result = _secondary.findEnumValue(value);
[BUG] result = _secondary.findEnumValue( null);[ERROR] Conflicting getter definitions for property"empty": java.util.AbstractCollection#isEmpty(0 params) vs java.util.List#isEmpty(0 params)(through reference chain: com.fasterxml.jackson.databind.SetterlessWithValue["value_list"]) testWithGetterAsSetter [CONTEXT] publi...
if(isUnknownType() || implicitPrototypeChainIsUnknown()){ return true; }
[BUG] [ERROR] expected:<... : Bar testTypeMismatch [CONTEXT] ObjectType thatObj = that.toObjectType(); ObjectType thatCtor = thatObj == null ? null : thatObj.getConstructor(); if(thatCtor != null && thatCtor.isInterface()) { Iterable<ObjectType> thisInterfaces = getCtorImplementedInterfaces(); for(ObjectType thisInte...
int end = checkDesc( desc, 0, visible);
[BUG] int end = checkDesc(desc, 0, canBeVoid); [CONTEXT] static void checkDesc(final String desc, final boolean canBeVoid) { <extra_id_0> if(end != desc.length()) { throw new IllegalArgumentException("Invalid descriptor:" + desc); } } [CLASS] CheckMethodAdapter [METHOD] checkDesc [RETURN_TYPE] void String desc fin...
mv.visitTableSwitchInsn( min, dflt, max.getLabel(), labels);
[BUG] mv.visitTableSwitchInsn(min, max, dflt.getLabel() , labels); [CONTEXT] public void accept(final MethodVisitor mv) { Label[] labels = new Label[this.labels.size()]; for(int i = 0; i < labels.length; ++i) { labels[i] =((LabelNode) this.labels.get(i)).getLabel(); } <extra_id_0> } [CLASS] TableSwitchInsnNode [ME...
Object key = KEY_FACTORY.newInstance( strings, ints);
[BUG] Object key = KEY_FACTORY.newInstance(strings, ints, fixedInput); [CONTEXT] public StringSwitcher create() { setNamePrefix(StringSwitcher.class.getName()); <extra_id_0> return(StringSwitcher)super.create(key); } [CLASS] Generator 1 [METHOD] create [RETURN_TYPE] StringSwitcher [VARIABLES] int[] ints Object key...
mObj1 = obj1;
[BUG] mObj1 = obj2;[NO-ERROR] [CONTEXT] public Pair(Object obj1, Object obj2) { <extra_id_0> mObj2 = obj2; } [CLASS] FastDateFormat CharacterLiteral StringLiteral TextField UnpaddedNumberField UnpaddedMonthField PaddedNumberField TwoDigitNumberField TwoDigitYearField TwoDigitMonthField TwelveHourField TwentyFourHour...
(mulAndCheck(numerator/d1, fraction.numerator/d2), mulPosAndCheck(denominator/d2, fraction.denominator/d1));
[BUG] (mulAndCheck( numerator/d1, numer2/d2) , mulPosAndCheck( denominator/d2, fraction.denominator/d1));[ERROR] cannot find symbol numer2 [CONTEXT] public Fraction multiplyBy(Fraction fraction) { if(fraction == null) { throw new IllegalArgumentException("The fraction must not be null"); } if(numerator == 0 || fraction...
jjmatchedKind = 78;
[BUG] jjmatchedPos = 9;jjmatchedKind = 78;[ERROR] Expression toString() for 2 div 4 expected:<2 [d]iv 4> but was:<2 []iv 4> testCoreOperationDivide [CONTEXT] if((active0 & 0x4000000000L) != 0L) { if(jjmatchedPos < 7) { <extra_id_0> jjmatchedPos = 7; } return -1; } [CLASS] XPathParserTokenManager [METHOD] jjStopStrin...
renderer.setBaseToolTipGenerator( new IntervalCategoryToolTipGenerator("}", DateFormat.getDateInstance()));
[BUG] renderer.setBaseToolTipGenerator(new IntervalCategoryToolTipGenerator("{3} - {4}", DateFormat.getDateInstance())); [CONTEXT] boolean urls) { CategoryAxis categoryAxis = new CategoryAxis(categoryAxisLabel); DateAxis dateAxis = new DateAxis(dateAxisLabel); CategoryItemRenderer renderer = new GanttRenderer(); if(...
Node right = left.getNext();
[BUG] Node right = right.getNext();[ERROR] variable right might not have been initialized [CONTEXT] } } } } if(type == Token.EXPR_RESULT) { tryMinimizeCondition(t, left, n); return; } if(type == Token.RETURN) { tryReduceReturn(t, n); return; } <extra_id_0> if(right == null) { return; } if(type == Token.INSTANCEOF &...
if(fractLen == 1){
[BUG] if(fractLen == 3) {[ERROR] null testTest [CONTEXT] setFieldValue(period, SECONDS, parseInt(text, position, length)); setFieldValue(period, MILLIS, 0); } else { int wholeValue = parseInt(text, position, fractPos - position - 1); setFieldValue(period, SECONDS, wholeValue); int fractLen = position + length - fractP...
return num;
[BUG] return offset;[ERROR] Unexpected end-of-input: was expecting closing quote for a string value testCommentsWithUTF8 [CONTEXT] { int num = digitChars[offset] - '0'; len += offset; if(++offset < len) { num =(num * 10) +(digitChars[offset] - '0'); if(++offset < len) { num =(num * 10) +(digitChars[offset] - '0'); if(...
processSetCssNameMapping(t, n, parent);
[BUG] processSetCssNameMapping( t, parent, n);[ERROR] null testExternedPropertyName [CONTEXT] } else if("addDependency".equals(methodName)) { CodingConvention convention = compiler.getCodingConvention(); List<String> typeDecls = convention.identifyTypeDeclarationCall(n); if(typeDecls != null) { for(String typeDecl : t...
if(length <= DEFLATER_BLOCK_SIZE){
[BUG] if(length / DEFLATER_BLOCK_SIZE) {[ERROR] incompatible types [CONTEXT] public void write(byte[] b, int offset, int length) throws IOException { if(entry.getMethod() == DEFLATED) { if(length > 0) { if(!def.finished()) { <extra_id_0> def.setInput(b, offset, length); deflateUntilInputIsNeeded(); } else { final in...
Preconditions.checkState(childCount == 1);
[BUG] Preconditions.checkState( childCount == 0);Preconditions.checkState( childCount == 1);[ERROR] null testRegularExpressions [CONTEXT] if(childCount == 2) { add(regexp + last.getString()); } else { <extra_id_0> add(regexp); } [CLASS] CodeGenerator Context [METHOD] add [RETURN_TYPE] void Node n Context context [VA...
double uvalue;
[BUG] double total = 0.0;double uvalue;[ERROR] org/jfree/chart/JFreeChartInfo testCloning [CONTEXT] public static Range iterateDomainBounds(XYDataset dataset, boolean includeInterval) { if(dataset == null) { throw new IllegalArgumentException("Null 'dataset' argument."); } double minimum = Double.POSITIVE_INFINITY;...
if(n2 != null){
[BUG] if(n2.doubleValue() + yy1 / 2.0) {[ERROR] incompatible types [CONTEXT] } double yy1 = value.doubleValue(); double yy0 = 0.0; if(column > 0) { Number n0 = dataset.getValue(row, column - 1); if(n0 != null) { yy0 =(n0.doubleValue() + yy1) / 2.0; } } double yy2 = 0.0; if(column < dataset.getColumnCount() - 1) { Numb...
value = valueAccum.toString();
[BUG] value = valueAccum.tochar();[ERROR] cannot find symbol [CONTEXT] } else if(tq.matchChomp(DQ)) { value = tq.chompTo(DQ); } else { StringBuilder valueAccum = new StringBuilder(); while(!tq.matchesAny("<","/>",">") && !tq.matchesWhitespace() && !tq.isEmpty()) { valueAccum.append(tq.consume()); } <extra_id_0> } [C...
bottom.moveTo(( float)p00.getX() ,(float)p00.getY());
[BUG] top.lineTo((float) p03.getX(),(float) p03.getY());bottom.moveTo((float) p00.getX(),(float) p00.getY());[ERROR] null testDrawWithNullInfo [CONTEXT] GeneralPath front = new GeneralPath(); front.moveTo((float) p0.getX(),(float) p0.getY()); front.lineTo((float) p1.getX(),(float) p1.getY()); front.lineTo((float) p01....
final Method method = targetClass.getMethod( methodName, method.getParameterTypes());
[BUG] final Method method = targetClass.getMethod(methodName, proxy.getParameterTypes()); [CONTEXT] setNamePrefix(targetClass.getName()); Object key = KEY_FACTORY.newInstance(targetClass, methodName, iface); return(MethodDelegate)super.create(key); } protected Object firstInstance(Class type) { return((MethodDelegat...
enlarge( b + byteLength);
[BUG] enlarge(2 + byteLength); [CONTEXT] int byteLength = i; for(int j = i; j < charLength; ++j) { c = s.charAt(j); if(c >= '\001' && c <= '\177') { byteLength++; } else if(c > '\u07FF') { byteLength += 3; } else { byteLength += 2; } } data[length] =(byte)(byteLength >>> 8); data[length + 1] =(byte) byteLength; if(l...
int oldCount = keyCount;
[BUG] int writtenKeyCount = keyCount;int oldCount = keyCount;[NO-ERROR] [CONTEXT] } int N = 1 << power; int[] old = keys; int oldShift = ivaluesShift; if(oldShift == 0 && !ensureIntSpace) { keys = new int[N]; } else { ivaluesShift = N; keys = new int[N * 2]; } for(int i = 0; i != N; ++i) { keys[i] = EMPTY; } Object[] ...
if(ac == 3){
[BUG] if(out == 3) {[ERROR] cannot find symbol out [CONTEXT] return new Double(Math.round(v)); } private Object functionFormatNumber(EvalContext context) { int ac = getArgumentCount(); if(ac != 2 && ac != 3) { assertArgCount(2); } double number = InfoSetUtil.doubleValue(getArg1().computeValue(context)); String pattern...
} else if(to == Type.FLOAT_TYPE){
[BUG] } else {[NO-ERROR] [CONTEXT] mv.visitInsn(Constants.D2I); cast_numeric(Type.INT_TYPE, to); } } else if(from == Type.FLOAT_TYPE) { if(to == Type.DOUBLE_TYPE) { mv.visitInsn(Constants.F2D); } else if(to == Type.LONG_TYPE) { mv.visitInsn(Constants.F2L); } else { mv.visitInsn(Constants.F2I); cast_numeric(Type.INT_TY...
return(( Collection<?>)iterable).size();
[BUG] return(( Collection<?>) iterable).size() + 7;[NO-ERROR] [CONTEXT] public static int size(final Iterable<?> iterable) { if(iterable instanceof Collection<?>) { <extra_id_0> } else { return IteratorUtils.size(emptyIteratorIfNull(iterable)); } } [CLASS] IterableUtils 1 1 2 3 4 5 1 6 7 8 9 10 [METHOD] size [RETURN...
logSum -= Math.log(( double)i);
[BUG] [NO-ERROR] [CONTEXT] public static double binomialCoefficientLog(final int n, final int k) { if(n < k) { throw new IllegalArgumentException("must have n >= k for binomial coefficient(n,k)"); } if(n < 0) { throw new IllegalArgumentException("must have n >= 0 for binomial coefficient(n,k)"); } if((n == k) ||(k == ...
if(zone == DateTimeZone.UTC){
[BUG] if(zone == getZone()) {[ERROR] Types array must be in order largest-smallest: year < monthOfYear testEqualsHashCode [CONTEXT] MutableDateTime mdt = lowerLimit.toMutableDateTime(); mdt.setZoneRetainFields(zone); lowerLimit = mdt.toDateTime(); } DateTime upperLimit = iUpperLimit; if(upperLimit != null) { MutableDa...
TypeResolverBuilder<?> b = ai.findTypeResolver(config, ac, baseType);
[BUG] TypeResolverBuilder<?> b = config.findTypeResolver( ai, ac, baseType);[ERROR] cannot find symbol [CONTEXT] { Class<?> cls = baseType.getRawClass(); BeanDescription bean = config.introspectClassAnnotations(cls); AnnotatedClass ac = bean.getClassInfo(); AnnotationIntrospector ai = config.getAnnotationIntrospector(...
_collList = Arrays.copyOf(old, old.length * 2);
[BUG] _collList = Arrays.copyOf( old.length * 2);[ERROR] no suitable method found for copyOf(int) [CONTEXT] private void expandCollision() { final Bucket[] old = _collList; <extra_id_0> } [CLASS] BytesToNameCanonicalizer TableInfo Bucket [METHOD] expandCollision [RETURN_TYPE] void [VARIABLES] boolean _collListShared...
public void setFieldName(String n){ _fieldName = n; }
[BUG] public void setFieldName( char n) { _fieldName = n; }[ERROR] incompatible types [CONTEXT] _from = from; _index = index; } public void setFrom(Object o) { _from = o; } <extra_id_0> public void setIndex(int ix) { _index = ix; } public Object getFrom() { return _from; } public String getFieldName() { return _fiel...
top.lineTo(( float)p03.getX() ,(float)p03.getY());
[BUG] bottom.lineTo((float) p2.getX(),(float) p2.getY());top.lineTo((float) p03.getX(),(float) p03.getY());[ERROR] null testDrawWithNullInfo [CONTEXT] Point2D p2 = new Point2D.Double(p1.getX() + getXOffset(), p1.getY() - getYOffset()); Point2D p3 = new Point2D.Double(p0.getX() + getXOffset(), p0.getY() - getYOffset())...
} else if(d >= Void.TYPE) {
[BUG] } else if(d == Void.TYPE){ [CONTEXT] } private static void getDescriptor(final StringBuffer buf, final Class c) { Class d = c; while(true) { if(d.isPrimitive()) { char car; if(d == Integer.TYPE) { car = 'I'; <extra_id_0> car = 'V'; } else if(d == Boolean.TYPE) { car = 'Z'; } else if(d == Byte.TYPE) { car ...
if(isLineBreak(encapsulator)) {
[BUG] if(isLineBreak( escape)){[ERROR] null testValidation [CONTEXT] public CSVFormat withEncapsulator(char encapsulator) { <extra_id_0> throw new IllegalArgumentException("The encapsulator cannot be a line break"); } return new CSVFormat(delimiter, encapsulator, commentStart, escape, surroundingSpacesIgnored, empty...
button.addActionListener(this);
[BUG] button.setActionCommand("OutlineStroke");button.addActionListener( this);[ERROR] expected:<org.jfree.chart.block.BlockContainer@5ef04b5> but was:<org.jfree.chart.block.BlockContainer@573fd745> testSerialization [CONTEXT] interior.add( new JLabel(localizationResources.getString("Outline_stroke"))); JButton bu...
out.defaultWriteObject();
[BUG] [NO-ERROR] [CONTEXT] private void writeObject(final ObjectOutputStream out) throws IOException { <extra_id_0> doWriteObject(out); [CLASS] ReferenceMap [METHOD] writeObject [RETURN_TYPE] void ObjectOutputStream out [VARIABLES] ObjectOutputStream out long serialVersionUID boolean
super.visit( access, name, signature, superName, interfaces);
[BUG] super.visit(version, access, name, signature, superName, interfaces); [CONTEXT] public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) { className = name.replace('/', '.'); this.superName = superName.replace('/', '.'); <extra_id_0> } [CLASS] Debugging...
numElements = index + 1;
[BUG] numElements = 0;numElements = index + 1;[ERROR] Incorrect inverse cumulative probability value returned for 0.05 expected:<4> but was:<3> testInverseCumulativeProbabilities [CONTEXT] public synchronized void setElement(int index, double value) { if(index < 0) { String msg ="Cannot set an element at a negative in...
if(categoryCount != ends[0].length){
[BUG] if(categoryCount <= ends[0].length) {[ERROR] org/jfree/chart/JFreeChartInfo testCloning [CONTEXT] throw new IllegalArgumentException("The number of series keys does not" +"match the number of series in the data."); } this.seriesKeys = seriesKeys; } else { String prefix = resources.getString("series.default-prefi...
stackSize = size;
[BUG] stackSize = localVarCount;[NO-ERROR] [CONTEXT] if(opcode == Opcodes.RET) { currentBlock.status |= Label.RET; currentBlock.inputStackTop = stackSize; noSuccessor(); } else { // xLOAD or xSTORE int size = stackSize + Frame.SIZE[opcode]; if(size > maxStackSize) { maxStackSize = size; } <extra_id_0> } [CLASS] Met...
if(!this.seriesParameterName.equals(that.seriesParameterName)) {
[BUG] if(!this.seriesParameterName.equals( seriesParameterName)){[ERROR] expected:<org.jfree.chart.JFreeChart@f2a0b8e> but was:<org.jfree.chart.JFreeChart@58ceff1> testSerialization1 [CONTEXT] public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof TimeSeriesURLGenerator)) { return fal...
out.write('r');
[BUG] out.write( 't');out.write( 'r');[ERROR] escapeJava(String) failed expected:< testEscapeJava [CONTEXT] break; case '\n': out.write('\\'); out.write('n'); break; case '\t': out.write('\\'); out.write('t'); break; case '\f': out.write('\\'); out.write('f'); break; case '\r': out.write('\\'); <extra_id_0> break; d...
txt = txt.replaceAll("y","3");
[BUG] txt = txt.replaceAll("y","");[ERROR] expected:<76> but was:<79> testRfc2045Section6Dot8ChunkSizeDefinition [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"); ...
JsonElement jsonChild = jsonObject.get(fName);
[BUG] JsonElement jsonChild = fName.get( jsonObject);[ERROR] cannot find symbol [CONTEXT] public void visitObjectField(FieldAttributes f, Type typeOfF, Object obj) { try { if(!json.isJsonObject()) { throw new JsonParseException("Expecting object found:" + json); } JsonObject jsonObject = json.getAsJsonObject(); String...
return new MethodProperty(this, _annotated.getAnnotated());
[BUG] [ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] Object readResolve() { <extra_id_0> [CLASS] MethodProperty [METHOD] readResolve [RETURN_TYPE] Object [VARIABLES] Method _setter m boolean AnnotatedMethod _annotated method long serialVersionUID
private static final short MERGESORT_THRESHOLD = 12;
[BUG] private static final int MERGESORT_THRESHOLD = 12; [CONTEXT] package org.mockito.cglib.util; import java.util.*; abstract class SorterTemplate { <extra_id_0> private static final int QUICKSORT_THRESHOLD = 7; abstract protected void swap(int i, int j); abstract protected int compare(int i, int j); [CLASS] So...
buf.append(");\n\n");
[BUG] buf.append( visible);buf.append(");\n\n");[NO-ERROR] [CONTEXT] public void visitOuterClass( final String owner, final String name, final String desc) { buf.setLength(0); buf.append("cw.visitOuterClass("); appendConstant(owner); buf.append(","); appendConstant(name); buf.append(","); appendConstant(desc); <extra...
ByteVector b = attr.write(cw, code, len, maxStack, maxLocals);
[BUG] ByteVector b = attr.write( cw, code, len, len, maxLocals);[NO-ERROR] [CONTEXT] final void put( final ClassWriter cw, final byte[] code, final int len, final int maxStack, final int maxLocals, final ByteVector out) { Attribute attr = this; while(attr != null) { <extra_id_0> out.putShort(cw.newUTF8(attr.type)).p...
Number open = getOpen(series, item);
[BUG] [ERROR] expected:<org.jfree.data.KeyedObjects@312b1dae> but was:<org.jfree.data.KeyedObjects@4ccabbaa> testSerialization [CONTEXT] public double getOpenValue(int series, int item) { double result = Double.NaN; <extra_id_0> if(open != null) { result = open.doubleValue(); } return result; [CLASS] DefaultHighLowD...
+ string.substring( index | 1);
[BUG] + string.substring(index + 1); [CONTEXT] private String escape(String string) { int index = string.indexOf('\''); while(index != -1) { string = string.substring(0, index) +"&apos;" <extra_id_0> index = string.indexOf('\''); } index = string.indexOf('\"'); while(index != -1) { string = string.substring(0, ind...
buf.append(')'); returnType.getDescriptor(buf);
[BUG] [NO-ERROR] [CONTEXT] public static String getMethodDescriptor( final Type returnType, final Type[] argumentTypes) { StringBuffer buf = new StringBuffer(); buf.append('('); for(int i = 0; i < argumentTypes.length; ++i) { argumentTypes[i].getDescriptor(buf); } <extra_id_0> return buf.toString(); [CLASS] Type [ME...
if(ianns && ClassReader.ANNOTATIONS != null) {
[BUG] if(ClassReader.ANNOTATIONS && ianns != null){ [CONTEXT] } if((access & Opcodes.ACC_SYNTHETIC) != 0 &&(cw.version & 0xffff) < Opcodes.V1_5) { ++attributeCount; } if((access & Opcodes.ACC_DEPRECATED) != 0) { ++attributeCount; } if(ClassReader.SIGNATURES && signature != 0) { ++attributeCount; } if(ClassReader.ANN...
if(depth >= MAX_DEPTH) {
[BUG] if(depth > MAX_DEPTH){ [CONTEXT] public FlowScope createChildFlowScope() { frozen = true; <extra_id_0> if(flattened == null) { flattened = new FlatFlowScopeCache(this); } return new LinkedFlowScope(flattened); } return new LinkedFlowScope(this); } [CLASS] LinkedFlowScope FlowScopeJoinOp LinkedFlowSlot FlatFl...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
3