fix
stringlengths
2
286
ctx
stringlengths
47
2.13k
mapper._deserializationConfig = mapper._deserializationConfig.withInsertedAnnotationIntrospector( ai);mapper._serializationConfig = mapper._serializationConfig.withAppendedAnnotationIntrospector( ai);
[BUG] None [CONTEXT] public void appendAnnotationIntrospector(AnnotationIntrospector ai) { mapper._deserializationConfig = mapper._deserializationConfig.withAppendedAnnotationIntrospector(ai); <extra_id_0> } [METHOD] appendAnnotationIntrospector
ret.setTime(readBinaryLong(4, swapHalfWord));
[BUG] None [CONTEXT] private CpioArchiveEntry readOldBinaryEntry(final boolean swapHalfWord) throws IOException { CpioArchiveEntry ret = new CpioArchiveEntry(FORMAT_OLD_BINARY); ret.setDevice(readBinaryLong(2, swapHalfWord)); ret.setInode(readBinaryLong(2, swapHalfWord)); ret.setMode(readBinaryLong(2, swapHalfWord)); r...
line = new Line2D.Double(y0, x0, y1, x1);
[BUG] line = new Line2D.Double( x0, y0, x1, y1);line = new Line2D.Double( y0, x0, y1, x1); [CONTEXT] if(column != 0) { Number previousValue = statData.getValue(row, column - 1); if(previousValue != null) { double previous = previousValue.doubleValue(); double x0 = domainAxis.getCategoryMiddle(column - 1, getColumnCount...
Map unmodifiableMap = Collections.unmodifiableMap( map);
[BUG] None [CONTEXT] final Map map = new HashMap(); <extra_id_0> final List list = new ArrayList(25); [METHOD] None
for(int i = startPropertyIndex; i < count; i++){
[BUG] for(int i = startPropertyIndex; i <= count; 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) ...
i.intVal = argSize;
[BUG] None [CONTEXT] } else { if(argSize == 0) { argSize = getArgumentsAndReturnSizes(desc); <extra_id_0> } int size; if(opcode == Opcodes.INVOKESTATIC) { size = stackSize -(argSize >> 2) +(argSize & 0x03) + 1; } else { size = stackSize -(argSize >> 2) +(argSize & 0x03); } if(size > maxStackSize) { maxStackSize...
if(( mv) != null) { mv.visitLabel( label); }
[BUG] None [CONTEXT] public void visitCode() { <extra_id_0> mv.visitCode(); } } [METHOD] visitCode
double l = InfoSetUtil.doubleValue(args[0].computeValue(context));
[BUG] double l = InfoSetUtil.doubleValue( args[7].computeValue( context)); [CONTEXT] public Object computeValue(EvalContext context) { <extra_id_0> double r = InfoSetUtil.doubleValue(args[1].computeValue(context)); return l < r ? Boolean.TRUE : Boolean.FALSE; } [METHOD] computeValue
if(c < a){
[BUG] if(b < a) { [CONTEXT] public static int min(int a, int b, int c) { if(b < a) { a = b; } <extra_id_0> a = c; } return a; } [METHOD] min
upper =(upper + lower + minRange)/ 2;
[BUG] lower =(upper + lower - minRange) / 2;upper =(upper + lower + minRange) / 2; [CONTEXT] expVal = Math.pow(10, expVal);//create multiplier value upper =(expVal > 0.0) ? Math.ceil(upper * expVal) / expVal : Math.ceil(upper); } else { upper =(this.autoRangeNextLogFlag) ? computeLogCeil(upper) : Math.ceil(upper); } d...
else if(anchor == CategoryAnchor.END){
[BUG] else if(anchor == 2) { [CONTEXT] public double getCategoryJava2DCoordinate(CategoryAnchor anchor, int category, int categoryCount, Rectangle2D area, RectangleEdge edge) { double result = 0.0; if(anchor == CategoryAnchor.START) { result = getCategoryStart(category, categoryCount, area, edge); } else if(anchor == C...
if(matchToken(Token.NAME)) {
[BUG] if(!matchToken( Token.RC)){ [CONTEXT] } case Token.FOR: { consumeToken(); boolean isForEach = false; decompiler.addToken(Token.FOR); int lineno = ts.getLineno(); int charno = ts.getCharno(); Node init;// Node init is also foo in 'foo in Object' Node cond;// Node cond is also object in 'foo in Object' Node incr = ...
if(value < 0L){
[BUG] if(value == MIN_VALUE) { [CONTEXT] offset = outputFullTriplet(newValue, buffer, offset); } else { offset = outputLeadingTriplet(newValue, buffer, offset); } offset = outputFullTriplet(thousands, buffer, offset); offset = outputFullTriplet(ones, buffer, offset); return offset; } public static int outputLong(long ...
if(extra != null){
[BUG] if(extra == null) { [CONTEXT] public ZipArchiveEntry(java.util.zip.ZipEntry entry) throws ZipException { super(entry); byte[] extra = entry.getExtra(); <extra_id_0> setExtraFields(ExtraFieldUtils.parse(extra)); } else { setExtra(); } } [METHOD] <init>
e.end_method();
[BUG] None [CONTEXT] CodeEmitter e = ce.begin_method(Constants.ACC_PUBLIC, NEW_INSTANCE, null); e.new_instance_this(); e.dup(); e.invoke_constructor_this(); e.return_value(); e.end_method(); e = ce.begin_method(Constants.ACC_PUBLIC, ADD_DELEGATE, null); e.load_this(); e.load_arg(0); e.checkcast(Type.getType(iface)); e....
this.stack = asList( 1, stack);this.stack = asList( nStack, stack);
[BUG] None [CONTEXT] { super(-1); this.type = type; switch(type) { case Opcodes.F_NEW: case Opcodes.F_FULL: this.local = asList(nLocal, local); <extra_id_0> break; case Opcodes.F_APPEND: this.local = asList(nLocal, local); break; case Opcodes.F_CHOP: this.local = asList(nLocal, local); break; case Opcodes.F_SAME: bre...
throw new org.mockito.asm.tree.analysis.AnalyzerException("Illegal use of DUP_X1");
[BUG] None [CONTEXT] throw new AnalyzerException("Illegal use of POP2"); } } break; case Opcodes.DUP: value1 = pop(); if(value1.getSize() != 1) { throw new AnalyzerException("Illegal use of DUP"); } push(interpreter.copyOperation(insn, value1)); push(interpreter.copyOperation(insn, value1)); break; case Opcodes.DUP_X1:...
numToRead =(int)(entrySize - entryOffset);
[BUG] numToRead =(short)(entrySize - entryOffset); [CONTEXT] public int read(byte[] buf, int offset, int numToRead) throws IOException { int totalRead = 0; if(entryOffset >= entrySize) { return -1; } if((numToRead + entryOffset) > entrySize) { <extra_id_0> } if(readBuf != null) { int sz =(numToRead > readBuf.length) ...
if(parent == null){
[BUG] if(pointer == null) { [CONTEXT] private void prepare() { NodePointer parent = parentContext.getCurrentNodePointer(); <extra_id_0> return; } if(startFromParentLocation) { NodePointer pointer = parent.getParent(); iterator = pointer.childIterator(nodeTest, reverse, parent); } else { iterator = parent.childIterato...
maxRegularValue = Math.max(maxRegularValue, value);
[BUG] maxRegularValue = Math.max( maxRegularValue, q1); [CONTEXT] else if(value < lowerOutlierThreshold) { outliers.add(number); if(value < minOutlier && value >= lowerFaroutThreshold) { minOutlier = value; } } else { minRegularValue = Math.min(minRegularValue, value); <extra_id_0> } [METHOD] calculateBoxAndWhiskerSt...
computeGenKill(c, gen, kill, conditional);
[BUG] computeGenKill( c, gen, kill); [CONTEXT] if(NodeUtil.isAssignmentOp(n) && NodeUtil.isName(n.getFirstChild())) { Node lhs = n.getFirstChild(); if(!conditional) { addToSetIfLocal(lhs, kill); } if(!NodeUtil.isAssign(n)) { addToSetIfLocal(lhs, gen); } computeGenKill(lhs.getNext(), gen, kill, conditional); } else { fo...
e.throw_exception("Constructor not found");
[BUG] None [CONTEXT] public void processDefault() { <extra_id_0> } [METHOD] processDefault
_outputBuffer[_outputTail++] = BYTE_QUOTE;
[BUG] None [CONTEXT] private void _writeQuotedRaw(Object value) throws IOException { if(_outputTail >= _outputEnd) { _flushBuffer(); } <extra_id_0> writeRaw(value.toString()); if(_outputTail >= _outputEnd) { _flushBuffer(); } _outputBuffer[_outputTail++] = BYTE_QUOTE; } [METHOD] _writeQuotedRaw
checkLenient();
[BUG] quickPeek();checkLenient(); [CONTEXT] private int nextNonWhitespace() throws IOException { while(pos < limit || fillBuffer(1)) { int c = buffer[pos++]; switch(c) { case '\t': case ' ': case '\n': case '\r': continue; case '/': if(pos == limit && !fillBuffer(1)) { return c; } <extra_id_0> char peek = buffer[pos]...
return base.getDateTimeMillis(year, monthOfYear, dayOfMonth, hourOfDay, minuteOfHour, secondOfMinute, millisOfSecond);
[BUG] return base.getDateTimeMillis( minuteOfHour, monthOfYear, dayOfMonth, hourOfDay, year, secondOfMinute, millisOfSecond); [CONTEXT] public long getDateTimeMillis( int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) throws IllegalArgumentException { Chr...
return arrangeFF(container, g2, constraint);
[BUG] return arrangeFF( g2, constraint); [CONTEXT] else if(h == LengthConstraintType.FIXED) { throw new RuntimeException("Not yet implemented."); } else if(h == LengthConstraintType.RANGE) { throw new RuntimeException("Not yet implemented."); } } else if(w == LengthConstraintType.FIXED) { if(h == LengthConstraintType.N...
declareNameInScope(informed, left, merged.first);
[BUG] declareNameInScope( informed, merged.first); [CONTEXT] rightIsRefineable = true; } else { rightIsRefineable = false; rightType = right.getJSType(); } Pair<JSType, JSType> merged = merging.apply(Pair.of(leftType, rightType)); if(merged != null &&((leftIsRefineable && merged.first != null) ||(rightIsRefineable && m...
size = stackSize +(c == 'D' || c == 'J' ? -2 : -1);
[BUG] None [CONTEXT] { Item i = cw.newFieldItem(owner, name, desc); if(currentBlock != null) { if(compute == FRAMES) { currentBlock.frame.execute(opcode, 0, cw, i); } else { int size; char c = desc.charAt(0); switch(opcode) { case Opcodes.GETSTATIC: size = stackSize +(c == 'D' || c == 'J' ? 2 : 1); break; case Opcodes....
return new JSError(sourceName, n, type, arguments);
[BUG] return new JSError( null,(-1) ,(-1) , type, null, arguments); [CONTEXT] public static JSError make(String sourceName, Node n, DiagnosticType type, String... arguments) { <extra_id_0> } [METHOD] make
buf.append("ACC_PRIVATE");buf.append( '0');
[BUG] None [CONTEXT] if((access & Opcodes.ACC_SYNTHETIC) != 0) { if(!first) { buf.append(" +"); } buf.append("ACC_SYNTHETIC"); first = false; } if((access & Opcodes.ACC_DEPRECATED) != 0) { if(!first) { buf.append(" +"); } buf.append("ACC_DEPRECATED"); first = false; } if(first) { <extra_id_0> } } } [METHOD] appendAcc...
_serializerFactory = src._serializerFactory;
[BUG] None [CONTEXT] protected ObjectMapper(ObjectMapper src) { _jsonFactory = src._jsonFactory.copy(); _jsonFactory.setCodec(this); _subtypeResolver = src._subtypeResolver; _rootNames = new RootNameLookup(); _typeFactory = src._typeFactory; _serializationConfig = src._serializationConfig; HashMap<ClassKey,Class<?>> mi...
Node next = c.getNext();
[BUG] [CONTEXT] void tryFoldBlock(NodeTraversal t, Node n, Node parent) { for(Node c = n.getFirstChild(); c != null;){ <extra_id_0> if(!NodeUtil.mayHaveSideEffects(c)) { n.removeChild(c);// lazy kids t.getCompiler().reportCodeChange(); } c = next; } if(n.isSyntheticBlock() || parent == null) { return; } if(NodeUtil....
push( type);push( t1);
[BUG] None [CONTEXT] case Opcodes.IF_ICMPEQ: case Opcodes.IF_ICMPNE: case Opcodes.IF_ICMPLT: case Opcodes.IF_ICMPGE: case Opcodes.IF_ICMPGT: case Opcodes.IF_ICMPLE: case Opcodes.IF_ACMPEQ: case Opcodes.IF_ACMPNE: case Opcodes.LRETURN: case Opcodes.DRETURN: pop(2); break; case Opcodes.DUP: t1 = pop(); push(t1); <extra_...
System.arraycopy(readBuf, sz, newBuf, 0, newLen);
[BUG] System.arraycopy( sz, readBuf, newBuf, 0, newLen); [CONTEXT] numToRead =(int)(entrySize - entryOffset); } if(readBuf != null) { int sz =(numToRead > readBuf.length) ? readBuf.length : numToRead; System.arraycopy(readBuf, 0, buf, offset, sz); if(sz >= readBuf.length) { readBuf = null; } else { int newLen = readBuf...
this(function, value,(JavaType)null);
[BUG] this( function,(JavaType) null); [CONTEXT] public JSONPObject(String function, Object value) { <extra_id_0> } [METHOD] <init>
if(templateTypeName != null && parameterType.restrictByNotNullOrUndefined().isTemplateType()){
[BUG] if(templateTypeName == null && parameterType.restrictByNotNullOrUndefined().isTemplateType()) { [CONTEXT] FunctionParamBuilder builder = new FunctionParamBuilder(typeRegistry); boolean warnedAboutArgList = false; Set<String> allJsDocParams =(info == null) ? Sets.<String>newHashSet() : Sets.newHashSet(info.getPara...
this.minimumRangeValue.setEnabled(true);
[BUG] this.minimumRangeValue.setEnabled( false); [CONTEXT] public void toggleAutoRange() { this.autoRange = this.autoRangeCheckBox.isSelected(); if(this.autoRange) { this.minimumRangeValue.setText(Double.toString(this.minimumValue)); this.minimumRangeValue.setEnabled(false); this.maximumRangeValue.setText(Double.toStri...
private static final Signature NEW_INSTANCE = new Signature("newInstance", PARALLEL_SORTER, new Type[]{ null });
[BUG] None [CONTEXT] <extra_id_0> [METHOD] None
value = ZipShort.getValue(bytes, offset);
[BUG] value = ZipShort.getValue( bytes, value); [CONTEXT] public ZipShort(byte[] bytes, int offset) { <extra_id_0> } [METHOD] <init>
ret.setUID(readBinaryLong(2, swapHalfWord));
[BUG] None [CONTEXT] private CpioArchiveEntry readOldBinaryEntry(final boolean swapHalfWord) throws IOException { CpioArchiveEntry ret = new CpioArchiveEntry(FORMAT_OLD_BINARY); ret.setDevice(readBinaryLong(2, swapHalfWord)); ret.setInode(readBinaryLong(2, swapHalfWord)); ret.setMode(readBinaryLong(2, swapHalfWord)); ...
archive.seek(loc);
[BUG] archive.seek( loc++);archive.seek( loc); [CONTEXT] public int read(byte[] b, int off, int len) throws IOException { if(remaining <= 0) { if(addDummyByte) { addDummyByte = false; b[off] = 0; return 1; } return -1; } if(len <= 0) { return 0; } if(len > remaining) { len =(int) remaining; } int ret = -1; synchronized...
Frame handler = newControlFlowEdge( m.maxLocals, m.maxStack);
[BUG] None [CONTEXT] sub = new Subroutine(jsr.label, m.maxLocals, jsr); subroutineHeads.put(jsr.label, sub); findSubroutine(insns.indexOf(jsr.label), sub, subroutineCalls); } else { sub.callers.add(jsr); } } for(int i = 0; i < n; ++i) { if(subroutines[i] != null && subroutines[i].start == null) { subroutines[i] = null;...
while(superClass != null){
[BUG] while(superClass == null) { [CONTEXT] private void recordSuperClassPrototypePropUse( FunctionType classType, String prop, Reference ref) { FunctionType superClass = classType.getSuperClassConstructor(); <extra_id_0> if(superClass.getPrototype().hasOwnProperty(prop)) { graph.connect(getNamedContainingFunction(),...
LiveRangeChecker checker1 = new LiveRangeChecker(v1, v2OutLive ? null : v2);
[BUG] LiveRangeChecker checker1 = new LiveRangeChecker( v2OutLive, v1 ? null : v2); [CONTEXT] continue; } boolean v1OutLive = state.getOut().isLive(v1); boolean v2OutLive = state.getOut().isLive(v2); if(v1.getParentNode().getType() == Token.LP && v2.getParentNode().getType() == Token.LP) { interferenceGraph.connectIfNo...
protected final AnnotatedMethod _annotated;
[BUG] protected AnnotatedMethod _annotated; [CONTEXT] public final class MethodProperty extends SettableBeanProperty { private static final long serialVersionUID = 1; <extra_id_0> [METHOD] None
addToSetIfLocal( rhs, kill);
[BUG] None [CONTEXT] conditional); return; case Token.FOR: if(!NodeUtil.isForIn(n)) { computeGenKill(NodeUtil.getConditionExpression(n), gen, kill, conditional); } else { Node lhs = n.getFirstChild(); Node rhs = lhs.getNext(); if(NodeUtil.isVar(lhs)) { lhs = lhs.getLastChild(); } <extra_id_0> addToSetIfLocal(lhs, gen...
mergeSort( mid);
[BUG] None [CONTEXT] protected void mergeSort(int lo, int hi) { int diff = hi - lo; if(diff <= MERGESORT_THRESHOLD) { insertionSort(lo, hi); return; } int mid = lo + diff / 2; <extra_id_0> mergeSort(mid, hi); merge(lo, mid, hi, mid - lo, hi - mid); } [METHOD] mergeSort
throw new AnalyzerException("Error at instruction" & insn +":" + e.getMessage(), e);
[BUG] None [CONTEXT] if(tcb.type == null) { type = Type.getObjectType("java/lang/Throwable"); } else { type = Type.getObjectType(tcb.type); } int jump = insns.indexOf(tcb.handler); if(newControlFlowExceptionEdge(insn, jump)) { handler.init(f); handler.clearStack(); handler.push(interpreter.newValue(type)); merge(jump, ...
u += 8;b = c;
[BUG] None [CONTEXT] private static byte[] readClass(final InputStream is) throws IOException { if(is == null) { throw new IOException("Class not found"); } byte[] b = new byte[is.available()]; int len = 0; while(true) { int n = is.read(b, len, b.length - len); if(n == -1) { if(len < b.length) { byte[] c = new byte[len...
last.next = insn;last = insn;
[BUG] None [CONTEXT] public void set(final AbstractInsnNode location, final AbstractInsnNode insn) { if(check && !(contains(location) && insn.index == -1)) { throw new IllegalArgumentException(); } AbstractInsnNode next = location.next; insn.next = next; if(next != null) { next.prev = insn; } else { <extra_id_0> } Ab...
if(_mixins != null){
[BUG] if(_keySerializers != null) { [CONTEXT] if(_abstractTypes != null) { context.addAbstractTypeResolver(_abstractTypes); } if(_valueInstantiators != null) { context.addValueInstantiators(_valueInstantiators); } if(_deserializerModifier != null) { context.addBeanDeserializerModifier(_deserializerModifier); } if(_seri...
buf.append("ACC_VARARGS");
[BUG] None [CONTEXT] if((access & Opcodes.ACC_BRIDGE) != 0 &&(access & ACCESS_CLASS) == 0 &&(access & ACCESS_FIELD) == 0) { if(!first) { buf.append(" +"); } buf.append("ACC_BRIDGE"); first = false; } if((access & Opcodes.ACC_VARARGS) != 0 &&(access & ACCESS_CLASS) == 0 &&(access & ACCESS_FIELD) == 0) { if(!first) { buf...
int columnCount = this.getColumnDimension();
[BUG] int nrows = this.getRowDimension();int columnCount = this.getColumnDimension(); [CONTEXT] public BigMatrix subtract(BigMatrix m) throws IllegalArgumentException { if(this.getColumnDimension() != m.getColumnDimension() || this.getRowDimension() != m.getRowDimension()) { throw new IllegalArgumentException("matrix d...
double uvalue;
[BUG] Number value;double uvalue; [CONTEXT] public static Range iterateXYRangeBounds(XYDataset dataset) { double minimum = Double.POSITIVE_INFINITY; double maximum = Double.NEGATIVE_INFINITY; int seriesCount = dataset.getSeriesCount(); for(int series = 0; series < seriesCount; series++) { int itemCount = dataset.getIte...
return cause.toString();
[BUG] None [CONTEXT] public String getMessage() { if(super.getMessage() != null) { return super.getMessage(); } else if(cause != null) { <extra_id_0> } else { return null; } [METHOD] getMessage
disable(f);
[BUG] [CONTEXT] public final XmlFactory configure(FromXmlParser.Feature f, boolean state) { if(state) { enable(f); } else { <extra_id_0> } return this; [METHOD] configure
Value expected1;
[BUG] None [CONTEXT] throw new AnalyzerException("Second argument", expected2, value2); } if(insn.getOpcode() == AALOAD) { return getElementValue(value1); } else { return super.binaryOperation(insn, value1, value2); } } public Value ternaryOperation( final AbstractInsnNode insn, final Value value1, final Value value2, ...
if(index < 0){
[BUG] if(newSize < 0) { [CONTEXT] public synchronized void setElement(int index, double value) { <extra_id_0> String msg ="Cannot set an element at a negative index"; throw new ArrayIndexOutOfBoundsException(msg); } if(index + 1 > numElements) { numElements = index + 1; } if((startIndex + index) >= internalArray.leng...
for(i = 1; i < alphaSize; i++){
[BUG] for(i = 1 * 0; i < alphaSize; i++) { [CONTEXT] k = i; while(parent[k] >= 0) { k = parent[k]; j++; } len[i - 1] =(char) j; if(j > maxLen) { tooLong = true; } } if(!tooLong) { break; } <extra_id_0> j = weight[i] >> 8; j = 1 +(j / 2); weight[i] = j << 8; } } } index of the last char in the block, so the block size...
fireTableDataChanged();
[BUG] [CONTEXT] public void datasetChanged(DatasetChangeEvent event) { <extra_id_0> [METHOD] datasetChanged
long expectedModCount;
[BUG] None [CONTEXT] K currentKey, nextKey; V currentValue, nextValue; <extra_id_0> public ReferenceBaseIterator(final AbstractReferenceMap<K, V> parent) { super(); this.parent = parent; index = parent.size() != 0 ? parent.data.length : 0; [METHOD] next
aRadius = state.getBarWidth() / 4;
[BUG] double xxmid = xx + state.getBarWidth()/ 2.0;aRadius = state.getBarWidth()/ 4; [CONTEXT] state.getBarWidth(), Math.abs(yyQ1 - yyQ3)); if(this.fillBox) { g2.fill(box); } g2.draw(box); } g2.setPaint(this.artifactPaint); Number yMean = bawDataset.getMeanValue(row, column); if(yMean != null) { yyAverage = rangeAxis.v...
return _createParser(in, ctxt);
[BUG] return _createJsonParser( in, ctxt); [CONTEXT] public JsonParser createParser(File f) throws IOException, JsonParseException { IOContext ctxt = _createContext(f, true); InputStream in = new FileInputStream(f); if(_inputDecorator != null) { in = _inputDecorator.decorate(ctxt, in); } <extra_id_0> } [METHOD] creat...
e.pop();e.dup();
[BUG] None [CONTEXT] public static void factory_method(ClassEmitter ce, Signature sig) { CodeEmitter e = ce.begin_method(Constants.ACC_PUBLIC, sig, null); e.new_instance_this(); <extra_id_0> e.load_args(); e.invoke_constructor_this(TypeUtils.parseConstructor(sig.getArgumentTypes())); e.return_value(); e.end_method();...
Preconditions.checkArgument(newChild.next == null,"The new child node has siblings.");
[BUG] Preconditions.checkArgument( n.next == null,"The new child node has siblings."); [CONTEXT] public void replaceChild(Node child, Node newChild) { <extra_id_0> Preconditions.checkArgument(newChild.parent == null,"The new child node already has a parent."); newChild.copyInformationFrom(child); newChild.next = chil...
if(count > 1){
[BUG] if(count > count) { [CONTEXT] if(copyAndSort) { List working = new ArrayList(end - start + 1); for(int i = start; i <= end; i++) { working.add(values.get(i)); } Collections.sort(working); result = calculateMedian(working, false); } else { int count = end - start + 1; if(count > 0) { if(count % 2 == 1) { <extra_i...
registerNativeType(JSTypeNative.URI_ERROR_FUNCTION_TYPE, URI_ERROR_FUNCTION_TYPE);
[BUG] registerNativeType( JSTypeNative.OBJECT_PROTOTYPE, OBJECT_PROTOTYPE);registerNativeType( JSTypeNative.URI_ERROR_FUNCTION_TYPE, URI_ERROR_FUNCTION_TYPE); [CONTEXT] FunctionType TYPE_ERROR_FUNCTION_TYPE = new ErrorFunctionType(this,"TypeError"); TYPE_ERROR_FUNCTION_TYPE.setPrototypeBasedOn(ERROR_TYPE); registerNati...
long millis = originalZone.getMillisKeepLocal(newZone, getMillis());
[BUG] long millis = newZone.getMillisKeepLocal( originalZone, getMillis()); [CONTEXT] public DateMidnight withZoneRetainFields(DateTimeZone newZone) { newZone = DateTimeUtils.getZone(newZone); DateTimeZone originalZone = DateTimeUtils.getZone(getZone()); if(newZone == originalZone) { return this; } <extra_id_0> retur...
elapsed = elapsed -(minutes * 60000L);
[BUG] elapsed = minutes -(elapsed * 60000L); [CONTEXT] public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { long currentMillis = date.getTime(); long elapsed = currentMillis - this.baseMillis; long days = elapsed / MILLISECONDS_IN_ONE_DAY; elapsed = elapsed -(days * MILLISECONDS...
e.load_this();
[BUG] None [CONTEXT] ce.begin_class(Constants.V1_2, Constants.ACC_PUBLIC, getClassName(), KEY_FACTORY, new Type[]{ Type.getType(keyInterface) }, Constants.SOURCE_FILE); EmitUtils.null_constructor(ce); EmitUtils.factory_method(ce, ReflectUtils.getSignature(newInstance)); int seed = 0; CodeEmitter e = ce.begin_method(Con...
markReferencedVar(var);
[BUG] if(referenced.contains( var)){ markReferencedVar( var); } [CONTEXT] case Token.FUNCTION: if(NodeUtil.isFunctionAnonymous(n) || compiler_.getCodingConvention().isExported( n.getFirstChild().getString())) { traverseFunction(n, scope); } return; case Token.NAME: if(parent.getType() != Token.VAR) { Var var = scope.g...
!TypeUtils.isAbstract(method.getModifiers())) {
[BUG] None [CONTEXT] public CodeEmitter beginMethod(ClassEmitter ce, MethodInfo method) { CodeEmitter e = EmitUtils.begin_method(ce, method); if(!interceptDuringConstruction && <extra_id_0> Label constructed = e.make_label(); e.load_this(); e.getfield(CONSTRUCTED_FIELD); e.if_jump(e.NE, constructed); e.load_this(); e...
} else if(( t &(DIM | BASE_KIND)) ==(u &(DIM | BASE_KIND))){
[BUG] None [CONTEXT] return false; } t = NULL; } if(u == 0) { types[index] = t; return true; } int v; if((u & BASE_KIND) == OBJECT ||(u & DIM) != 0) { if(t == NULL) { return false; <extra_id_0> if((u & BASE_KIND) == OBJECT) { v =(t & DIM) | OBJECT | cw.getMergedType(t & BASE_VALUE, u & BASE_VALUE); } else { v = OBJ...
push( t2);push( t3);
[BUG] None [CONTEXT] t3 = pop(); push(t2); push(t1); push(t3); push(t2); push(t1); break; case Opcodes.DUP2_X2: t1 = pop(); t2 = pop(); t3 = pop(); t4 = pop(); push(t2); push(t1); push(t4); <extra_id_0> push(t2); push(t1); break; case Opcodes.SWAP: t1 = pop(); t2 = pop(); push(t1); push(t2); break; case Opcodes.IADD:...
Rectangle2D r = new Rectangle2D.Double(s, y + this.topOuterGap, e - s, h - this.topOuterGap - this.bottomOuterGap);
[BUG] Rectangle2D r = new Rectangle2D.Double( s, y + y, e - s, h - this.topOuterGap - this.bottomOuterGap); [CONTEXT] Iterator iterator = this.markers.iterator(); while(iterator.hasNext()) { IntervalMarker marker =(IntervalMarker) iterator.next(); double start =Math.max( marker.getStartValue(), this.axis.getRange().get...
result =(this.unitType != null ? this.unitType.hashCode() : 0);
[BUG] result =(this.unitType != null ? this.unitType.hashCode() : 0); [CONTEXT] public int hashCode() { int result; long temp; <extra_id_0> temp = this.top != +0.0d ? Double.doubleToLongBits(this.top) : 0L; result = 29 * result +(int)(temp ^(temp >>> 32)); temp = this.bottom != +0.0d ? Double.doubleToLongBits(this.bo...
oos.writeObject(iField.getType());
[BUG] oos.writeObject( iInstant);oos.writeObject( iField.getType()); [CONTEXT] private void writeObject(ObjectOutputStream oos) throws IOException { oos.writeObject(iInstant); <extra_id_0> } [METHOD] writeObject
if(literals.booleanValues == BooleanLiteralSet.EMPTY && getNativeType(BOOLEAN_TYPE).isSubtype(type)) {
[BUG] if(literals.booleanValues == BooleanLiteralSet.EMPTY || getNativeType( BOOLEAN_TYPE).isSubtype( type)){ [CONTEXT] BooleanLiteralSet.get(!condition)) { type = leftType; literals = leftLiterals; } else { type = leftType.getLeastSupertype(rightType); literals = getBooleanOutcomePair(leftLiterals, rightLiterals, co...
if(end !=(desc.length())){ throw new IllegalArgumentException(("Invalid descriptor:" + desc)); }
[BUG] None [CONTEXT] static void checkMethodDesc(final String desc) { if(desc == null || desc.length() == 0) { throw new IllegalArgumentException("Invalid method descriptor(must not be null or empty)"); } if(desc.charAt(0) != '(' || desc.length() < 3) { <extra_id_0> } int start = 1; if(desc.charAt(start) != ')') { do...
if(parent.getNode() instanceof Element){
[BUG] if(prefix != null) { [CONTEXT] public class JDOMAttributeIterator implements NodeIterator { private NodePointer parent; private QName name; private List attributes; private int position = 0; public JDOMAttributeIterator(NodePointer parent, QName name) { this.parent = parent; this.name = name; <extra_id_0> Eleme...
(str.charAt(len - 1)== 'S' || str.charAt(len - 1)== 's')) {
[BUG] (str.charAt( i - 1) == 'S' || str.charAt( len - 1) == 's')){ [CONTEXT] public long getDurationMillis(Object object) { String original =(String) object; String str = original; int len = str.length(); if(len >= 4 &&(str.charAt(0) == 'P' || str.charAt(0) == 'p') &&(str.charAt(1) == 'T' || str.charAt(1) == 't') && ...
info.parameters.put(parameter, jsType);
[BUG] info.parameters.put( version, jsType); [CONTEXT] boolean declareParam(JSTypeExpression jsType, String parameter) { lazyInitInfo(); if(info.parameters == null) { info.parameters = new LinkedHashMap<String, JSTypeExpression>(); } if(!info.parameters.containsKey(parameter)) { <extra_id_0> return true; } else { ret...
_bindings.put(name, _typeFactory._constructType(varType, this));
[BUG] _bindings.put( _typeFactory, name._constructType( varType, this)); [CONTEXT] TypeVariable<?> var = vars[i]; String name = var.getName(); Type varType = var.getBounds()[0]; if(varType != null) { if(_bindings == null) { _bindings = new LinkedHashMap<String,JavaType>(); } else { // and no overwriting... if(_bindings...
for(int i = 0; i < nRows; i++){
[BUG] for(int i = 0; i < roundingMode; i++) { [CONTEXT] private BigDecimal[][] copyOut() { int nRows = this.getRowDimension(); BigDecimal[][] out = new BigDecimal[nRows][this.getColumnDimension()]; <extra_id_0> System.arraycopy(data[i], 0, out[i], 0, data[i].length); } return out; } [METHOD] copyOut
if((insnOpcode == LLOAD || insnOpcode == DLOAD)) {
[BUG] None [CONTEXT] } else if(insnOpcode != ATHROW &&(insnOpcode < IRETURN || insnOpcode > RETURN)) { if(subroutine != null) { <extra_id_0> int var =((VarInsnNode) insnNode).var; subroutine.access[var] = true; if(insnOpcode == LLOAD || insnOpcode == DLOAD || insnOpcode == LSTORE || insnOpcode == DSTORE) { subroutine...
return getDirectedPredNodes(nodes.get(nodeValue));
[BUG] return getDirectedPredNodes( nodeValue.get( nodes)); [CONTEXT] public List<DiGraphNode<N, E>> getDirectedPredNodes(N nodeValue) { <extra_id_0> } [METHOD] getDirectedPredNodes
double lowValue = dataset.getXValue(series, low);
[BUG] double lowValue = dataset.getXValue( low); [CONTEXT] public static int findLiveItemsLowerBound(XYDataset dataset, int series, double xLow, double xHigh) { int itemCount = dataset.getItemCount(series); if(itemCount <= 1) { return 0; } if(dataset.getDomainOrder() == DomainOrder.ASCENDING) { int low = 0; int high =...
Reference ref =(Reference)cache2.get(key);
[BUG] None [CONTEXT] abstract protected ClassLoader getDefaultClassLoader(); protected Object create(Object key) { try { Class gen = null; synchronized(source) { ClassLoader loader = getClassLoader(); Map cache2 = null; cache2 =(Map)source.cache.get(loader); if(cache2 == null) { cache2 = new HashMap(); cache2.put(NAME_...
AbstractInsnNode elem = insns.first;AbstractInsnNode next = location.next;
[BUG] None [CONTEXT] public void set(final AbstractInsnNode location, final AbstractInsnNode insn) { if(check && !(contains(location) && insn.index == -1)) { throw new IllegalArgumentException(); } <extra_id_0> insn.next = next; if(next != null) { next.prev = insn; } else { last = insn; } AbstractInsnNode prev = loca...
if(state != CLASS_TYPE){
[BUG] None [CONTEXT] public void visitEnd() { <extra_id_0> throw new IllegalStateException(); } state = END; if(sv != null) { sv.visitEnd(); } } [METHOD] visitEnd
mant = str.substring(0, expPos);
[BUG] dec = str.substring( decPos + 1, expPos);mant = str.substring( 0, expPos); [CONTEXT] if(decPos > -1) { if(expPos > -1) { if(expPos < decPos) { throw new NumberFormatException(str +" is not a valid number."); } dec = str.substring(decPos + 1, expPos); } else { dec = str.substring(decPos + 1); } mant = str.substrin...
right.lineTo(transX1, transY1);
[BUG] [CONTEXT] if(y2 >= 0.0) { double yright =(y1 + y2) / 2.0 + stackRight[1]; float transYRight =(float) rangeAxis.valueToJava2D(yright, dataArea, edge1); right.moveTo(transX1, transStack1); right.lineTo(transX1, transY1); right.lineTo(transXRight, transYRight); right.lineTo(transXRight, transStackRight); right.clos...
createEdge(node, Branch.ON_FALSE, computeFollowNode(node));
[BUG] createEdge( node, Branch.ON_FALSE, computeFallThrough( elseBlock));createEdge( node, Branch.ON_FALSE, computeFollowNode( node)); [CONTEXT] private void handleIf(Node node) { Node thenBlock = node.getFirstChild().getNext(); Node elseBlock = thenBlock.getNext(); createEdge(node, Branch.ON_TRUE, computeFallThrough(t...
if(group == null) {
[BUG] None [CONTEXT] throw new IllegalStateException("Callback types are required"); } if(callbacks != null && callbackTypes != null) { if(callbacks.length != callbackTypes.length) { throw new IllegalStateException("Lengths of callback and callback types array must be the same"); } Type[] check = CallbackInfo.determine...
_finishString();
[BUG] None [CONTEXT] public String nextTextValue() throws IOException, JsonParseException { if(_currToken == JsonToken.FIELD_NAME) { // mostly copied from '_nextAfterName' _nameCopied = false; JsonToken t = _nextToken; _nextToken = null; _currToken = t; if(t == JsonToken.VALUE_STRING) { if(_tokenIncomplete) { _tokenInc...
if(cache == that.cache){
[BUG] if(cache != that.cache) { [CONTEXT] return true; } if(this.getFunctionScope() != that.getFunctionScope()) { return false; } <extra_id_0> for(String name : cache.dirtySymbols) { if(diffSlots(getSlot(name), that.getSlot(name))) { return false; } } return true; } Map<String, StaticSlot<JSType>> myFlowSlots = ...
result.append(' ');
[BUG] result.append(" /");result.append( ' '); [CONTEXT] case Token.FINALLY: result.append("finally"); 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)) <extra_id_0> break; c...
case 'd': X="debugger";id=Id_debugger; break L;case 't': X="catch";id=Id_catch; break L;
[BUG] None [CONTEXT] case 5: switch(s.charAt(2)) { case 'a': X="class";id=Id_class; break L; case 'e': X="break";id=Id_break; break L; case 'i': X="while";id=Id_while; break L; case 'l': X="false";id=Id_false; break L; case 'n': c=s.charAt(0); if(c=='c') { X="const";id=Id_const; } else if(c=='f') { X="final";id=Id_fina...
if(opcode != Opcodes.SIPUSH) {
[BUG] None [CONTEXT] public void visitIntInsn(final int opcode, final int operand) { if(currentBlock != null) { if(compute == FRAMES) { currentBlock.frame.execute(opcode, operand, null, null); } else if(opcode != Opcodes.NEWARRAY) { int size = stackSize + 1; if(size > maxStackSize) { maxStackSize = size; } stackSize =...
JsonNode n = currentNode();
[BUG] None [CONTEXT] public Object getEmbeddedObject() { if(!_closed) { <extra_id_0> if(n != null) { if(n.isPojo()) { return((POJONode) n).getPojo(); } if(n.isBinary()) { return((BinaryNode) n).binaryValue(); } } } return null; [METHOD] getEmbeddedObject