fix stringlengths 2 286 | ctx stringlengths 47 2.13k |
|---|---|
xAxis.setAutoRangeIncludesZero(false); | [BUG] None [CONTEXT] public static JFreeChart createScatterPlot(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) { if(orientation == null) { throw new IllegalArgumentException("Null 'orientation' argument."); } NumberAxis... |
e.getfield( type); | [BUG] None [CONTEXT] public int getIndex(MethodInfo method) { return((Integer)indexes.get(method)).intValue(); } public void emitCallback(CodeEmitter e, int index) { emitCurrentCallback(e, index); } public Signature getImplSignature(MethodInfo method) { return rename(method.getSignature(),((Integer)positions.get(method... |
[BUG] None [CONTEXT] { if(jf == null) { _jsonFactory = new MappingJsonFactory(this); } else { _jsonFactory = jf; if(jf.getCodec() == null) { // as per [JACKSON-741] <extra_id_0> } } _subtypeResolver = new StdSubtypeResolver(); _rootNames = new RootNameLookup(); _typeFactory = TypeFactory.defaultInstance(); _serial... | |
Node iArgument = n.getChildAtIndex(i + 1); | [BUG] Node nArgument = i.getChildAtIndex( i + 1); [CONTEXT] if(fnType.getTemplateTypeName() == null) { return; } int i = 0; for(Node iParameter : fnType.getParameters()) { JSType iParameterType = getJSType(iParameter); iParameterType = iParameterType.restrictByNotNullOrUndefined(); if(iParameterType.isTemplateType()) {... |
if(bttx == null){ | [BUG] if(dp == null) { [CONTEXT] public static DateTimeFormatter basicTTimeNoMillis() { <extra_id_0> bttx = new DateTimeFormatterBuilder().append(literalTElement()).append(basicTimeNoMillis()).toFormatter(); } return bttx; } [METHOD] basicTTimeNoMillis |
if(offset < 0){ | [BUG] None [CONTEXT] public void appendTo(StringBuffer buffer, Calendar calendar) { int offset = calendar.get(Calendar.ZONE_OFFSET) + calendar.get(Calendar.DST_OFFSET); <extra_id_0> buffer.append('-'); offset = -offset; } else { buffer.append('+'); } int hours = offset /(60 * 60 * 1000); buffer.append((char)(hours / ... |
if(insns != this) { | [BUG] None [CONTEXT] public void insert(final AbstractInsnNode location, final InsnList insns) { <extra_id_0> throw new IllegalArgumentException(); } if(insns.size == 0) { return; } size += insns.size; AbstractInsnNode ifirst = insns.first; AbstractInsnNode ilast = insns.last; AbstractInsnNode next = location.next; i... |
throw new IllegalArgumentException("Invalid" + msg +"(must be a valid Java identifier):" + name); | [BUG] None [CONTEXT] static void checkIdentifier( final String name, final int start, final int end, final String msg) { if(name == null ||(end == -1 ? name.length() <= start : end <= start)) { throw new IllegalArgumentException("Invalid" + msg +"(must not be null or empty)"); } if(!Character.isJavaIdentifierStart(name... |
return computeValue(context); | [BUG] return compute( context); [CONTEXT] public Object compute(EvalContext context) { <extra_id_0> } [METHOD] compute |
else if(!(node1 instanceof Attribute)&&(node2 instanceof Attribute)) { | [BUG] else if(!( node2ode1 instanceof Attribute) &&(node2 instanceof Attribute)){ [CONTEXT] } public int compareChildNodePointers( NodePointer pointer1, NodePointer pointer2) { Object node1 = pointer1.getBaseValue(); Object node2 = pointer2.getBaseValue(); if(node1 == node2) { return 0; } if((node1 instanceof Attribute... |
return new Signature("CGLIB$" + SET_THREAD_CALLBACKS.getName()+"$" + index, sig.getDescriptor()); | [BUG] None [CONTEXT] private Signature rename(Signature sig, int index) { <extra_id_0> } [METHOD] rename |
return this; | [BUG] None [CONTEXT] public ObjectMapper setTimeZone(TimeZone tz) { _deserializationConfig = _deserializationConfig.with(tz); _serializationConfig = _serializationConfig.with(tz); <extra_id_0> } [METHOD] setTimeZone |
addEntity(entities, hotspot, dataset, series, item, 0.0, 0.0); | [BUG] addEntity( entities, hotspot, dataset, item, series, 0.0, 0.0); [CONTEXT] if(isOutline()) { g2.setStroke(getItemOutlineStroke(series, item)); g2.setPaint(getItemOutlinePaint(series, item)); g2.draw(areaState.area); } } int domainAxisIndex = plot.getDomainAxisIndex(domainAxis); int rangeAxisIndex = plot.getRangeAx... |
if(iFieldType != SECONDS_MILLIS && iFieldType != SECONDS_OPTIONAL_MILLIS){ | [BUG] if(fractPos - position - 1) { [CONTEXT] length++; } if(!hasDigits) { return ~position; } if(suffixPos >= 0 && position + length != suffixPos) { return position; } <extra_id_0> setFieldValue(period, iFieldType, parseInt(text, position, length)); } else if(fractPos < 0) { setFieldValue(period, SECONDS, parseInt... |
Preconditions.checkState(childCount == 0); | [BUG] None [CONTEXT] last, getContextForNonEmptyExpression(context), false); } else { addNonEmptyExpression(first.getNext(), Context.OTHER, false); Preconditions.checkState(childCount == 2); } if(ambiguousElseClause) { cc.endBlock(); } break; case Token.NULL: case Token.THIS: case Token.FALSE: case Token.TRUE: <extra_... |
TextUtilities.drawAlignedString(tick.getText() , g2, x, y, TextAnchor.CENTER); | [BUG] TextUtilities.drawAlignedString( g2.getText(), tick, x, y, TextAnchor.CENTER); [CONTEXT] Rectangle2D dataArea) { g2.setFont(plot.getAngleLabelFont()); g2.setStroke(plot.getAngleGridlineStroke()); g2.setPaint(plot.getAngleGridlinePaint()); double axisMin = plot.getAxis().getLowerBound(); double maxRadius = plot.ge... |
throw new IllegalStateException("NPE, entry=" + entry +" entryIsHeader=" +(entry==header)+" key=" + key +" value=" + value +" size=" + size +" maxSize=" + maxSize +" Please check that your keys are immutable, and that you have used synchronization properly." + | [BUG] None [CONTEXT] } if(loop == null) { throw new IllegalStateException("Entry.next=null, data[removeIndex]=" + data[removeIndex] +" previous=" + previous +" key=" + key +" value=" + value +" size=" + size +" maxSize=" + maxSize +" Please check that your keys are immutable, and that you have used synchronization prop... |
c += T[w & 255]; | [BUG] None [CONTEXT] public int cardinality() { int w = value; int c = 0; while(w != 0) { <extra_id_0> w >>= 8; } return c; } [METHOD] cardinality |
ASMifierAbstractVisitor.appendConstant(buf, name); | [BUG] None [CONTEXT] public void visitEnum( final String name, final String desc, final String value) { buf.setLength(0); buf.append("av").append(id).append(".visitEnum("); <extra_id_0> buf.append(","); ASMifierAbstractVisitor.appendConstant(buf, desc); buf.append(","); ASMifierAbstractVisitor.appendConstant(buf, val... |
archive.seek(loc); | [BUG] archive.seek( origCRC32); [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(archive) { <e... |
nextSym = perm_zt[zvec - base_zt[zn]]; | [BUG] nextSym = perm[zvec - base_zt[zn]]; [CONTEXT] while(bsLiveShadow < 1) { final int thech = inShadow.read(); if(thech >= 0) { bsBuffShadow =(bsBuffShadow << 8) | thech; bsLiveShadow += 8; continue; } else { throw new IOException("unexpected end of stream"); } } bsLiveShadow--; zvec =(zvec << 1) |((bsBuffShadow >> b... |
final Label def = e.make_label(); | [BUG] None [CONTEXT] private static void string_switch_trie(final CodeEmitter e, String[] strings, final ObjectSwitchCallback callback) throws Exception { <extra_id_0> final Label end = e.make_label(); final Map buckets = CollectionUtils.bucket(Arrays.asList(strings), new Transformer() { public Object transform(Objec... |
if(res.length() * 6 > out.remaining()){ | [BUG] if(res.length() + 9 * 6 > out.remaining()) { [CONTEXT] enc.onMalformedInput(CodingErrorAction.REPORT); enc.onUnmappableCharacter(CodingErrorAction.REPORT); CharBuffer cb = CharBuffer.wrap(name); ByteBuffer out = ByteBuffer.allocate(name.length() +(name.length() + 1) / 2); while(cb.remaining() > 0) { CoderResult r... |
bld.appendDayOfWeek(1); | [BUG] bld.append( yearElement());bld.appendDayOfWeek( 1); [CONTEXT] if(fields.remove(DateTimeFieldType.dayOfWeek())) { appendSeparator(bld, extended); bld.appendDayOfWeek(1); } else { reducedPrec = true; } } else { if(fields.remove(DateTimeFieldType.dayOfWeek())) { checkNotStrictISO(fields, strictISO); appendSeparator(... |
XYToolTipGenerator generator =(XYToolTipGenerator)this.toolTipGeneratorList.get(series); | [BUG] XYToolTipGenerator generator =(XYToolTipGenerator) series.get( this.toolTipGeneratorList); [CONTEXT] public XYToolTipGenerator getToolTipGenerator(int series, int item) { <extra_id_0> if(generator == null) { generator = this.baseToolTipGenerator; } return generator; } [METHOD] getToolTipGenerator |
if(Double.isNaN(x)|| Double.isNaN(a)|| Double.isNaN(b)||(x < 0)||(x > 1)||(a <= 0.0)||(b <= 0.0)) { | [BUG] if(Double.isNaN( x) || Double.isNaN( a) || Double.isNaN( b) ||(x < 0) ||( x > 1) ||(a <= 0.0) ||(b < 0.0)){ [CONTEXT] public static double regularizedBeta(double x, final double a, final double b, double epsilon, int maxIterations) throws MathException { double ret; <extra_id_0> ret = Double.NaN; } else if(x >(... |
[Delete] | [BUG] if(columnKey == null) { throw new IllegalArgumentException("Null 'columnKey' argument."); } [CONTEXT] public Number getValue(Comparable rowKey, Comparable columnKey) { if(rowKey == null) { <extra_id_0> } if(columnKey == null) { throw new IllegalArgumentException("Null 'columnKey' argument."); } if(!(this.colum... |
lvalue = intervalXYData.getStartYValue(series, item); | [BUG] [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.getItemCount(series); for(int ite... |
_acceptDouble =(cls == Double.TYPE)|| cls.isAssignableFrom(Double.class); | [BUG] _acceptDouble =(cls == Double.TYPE) && cls.isAssignableFrom( Double.class); [CONTEXT] public AbstractDeserializer(BeanDeserializerBuilder builder, BeanDescription beanDesc, Map<String, SettableBeanProperty> backRefProps) { _baseType = beanDesc.getType(); _objectIdReader = builder.getObjectIdReader(); _backRefProp... |
temp[temp.length - 1] = map; | [BUG] temp[i - 1] = map; [CONTEXT] public synchronized void addComposited(final Map<K, V> map) throws IllegalArgumentException { for(int i = composite.length - 1; i >= 0; --i) { final Collection<K> intersect = CollectionUtils.intersection(this.composite[i].keySet(), map.keySet()); if(intersect.size() != 0) { if(this.mu... |
return iChronology.getDaysInYearMonth(year, month); | [BUG] [CONTEXT] public int getMaximumValue(ReadablePartial partial, int[] values) { int size = partial.size(); for(int i = 0; i < size; i++) { if(partial.getFieldType(i) == DateTimeFieldType.monthOfYear()) { int month = values[i]; for(int j = 0; j < size; j++) { if(partial.getFieldType(j) == DateTimeFieldType.year()) ... |
String inputName = var.input != null ? var.input.getName() :"<unknown>"; | [BUG] String inputName = var.input != null ? var.input.getName():"<unknown>nkno"; [CONTEXT] NodeUtil.isFunctionAnonymous(toRemove)) { if(!preserveAnonymousFunctionNames) { toRemove.getFirstChild().setString(""); compiler_.reportCodeChange(); } } else if(parent != null && parent.getType() == Token.FOR && parent.getChild... |
for(int i = 0; i < source.getSeriesCount(); i++){ | [BUG] for(sourcent i = 0; i < i.getSeriesCount(); i++) { [CONTEXT] public static XYDataset createMovingAverage(XYDataset source, String suffix, double period, double skip) { if(source == null) { throw new IllegalArgumentException("Null source(XYDataset)."); } XYSeriesCollection result = new XYSeriesCollection(); <extr... |
return noInlineBytes >= inlineBytes; | [BUG] return noInlineBytes >= len; [CONTEXT] private boolean isStringWorthInlining(Var var, List<Reference> refs) { if(!inlineAllStrings && !var.isDefine()) { int len = var.getInitialValue().getString().length() +"''".length(); int noInlineBytes ="var xx=;".length() + len + 4 *(refs.size() - 1); int inlineBytes =(l... |
return System.getProperty(property); | [BUG] return System.getProperty( JAVA_VERSION_TRIMMED); [CONTEXT] private static String getSystemProperty(String property) { try { <extra_id_0> } catch(SecurityException ex) { System.err.println("Caught a SecurityException reading the system property '" + property +"'; the SystemUtils property value will default to n... |
exportedVariables.add(arg.getString().substring(0, dot)); | [BUG] exportedVariables.add( arg.getString().substring( 7, dot)); [CONTEXT] if(dot == -1) { exportedVariables.add(arg.getString()); } else { <extra_id_0> } [METHOD] visit |
float x1 = stream.readFloat(); | [BUG] boolean hasNext = stream.readBoolean();float x1 = stream.readFloat(); [CONTEXT] throws IOException, ClassNotFoundException { if(stream == null) { throw new IllegalArgumentException("Null 'stream' argument."); } Paint result = null; boolean isNull = stream.readBoolean(); if(!isNull) { Class c =(Class) stream.readO... |
drawItemLabel(g2, orientation, dataset, row, column, x, y,(value < 0.0)); | [BUG] drawItemLabel( g2, orientation, dataset, row, column, y,( value < 0.0)); [CONTEXT] else { x = barW0 + state.getBarWidth() / 2.0; y = barL; line = new Line2D.Double(barW0, barL, barW0 + state.getBarWidth(), barL); } Stroke itemStroke = getItemStroke(row, column); Paint itemPaint = getItemPaint(row, column); g2.set... |
return"[method"+getFullName() +"]"; | [BUG] [CONTEXT] public String toString() { <extra_id_0> [METHOD] toString |
int arraySize = array.length; | [BUG] int arraySize = pos; [CONTEXT] public static String join(Object[] array, String separator) { if(array == null) { return null; } if(separator == null) { separator = EMPTY; } <extra_id_0> int bufSize =((arraySize == 0) ? 0 : arraySize + separator.length())); StringBuffer buf = new StringBuffer(bufSize); for(int... |
[BUG] None [CONTEXT] protected final Object _deserialize(JsonParser jp, DeserializationContext ctxt, int index, String typeId) throws IOException, JsonProcessingException { @SuppressWarnings("resource") TokenBuffer merged = new TokenBuffer(jp.getCodec()); merged.writeStartArray(); merged.writeString(typeId); JsonParser... | |
if(codes[i] == 4) { | [BUG] None [CONTEXT] } final byte[] input = _inputBuffer; final int[] codes = sInputCodesLatin1; int q = input[_inputPtr++] & 0xFF; if(codes[q] == 0) { i = input[_inputPtr++] & 0xFF; <extra_id_0> q =(q << 8) | i; i = input[_inputPtr++] & 0xFF; if(codes[i] == 0) { q =(q << 8) | i; i = input[_inputPtr++] & 0xFF; if(... |
if(this.negativeArrowVisible != that.negativeArrowVisible){ | [BUG] if(this.positiveArrowVisible != that.positiveArrowVisible) { [CONTEXT] public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof ValueAxis)) { return false; } ValueAxis that =(ValueAxis) obj; if(this.positiveArrowVisible != that.positiveArrowVisible) { return false; } <extra_id_0> ... |
return negFlag ?(-res): res; | [BUG] return negFlag ?(-res) : val; [CONTEXT] public double adjustedPow10(double val) { boolean negFlag =(val < 0.0); if(negFlag) { val = -val; // if negative then set flag and make positive } double res; if(val < 1.0) { res =(Math.pow(10, val + 1.0) - 10.0) / 9.0; //invert adjustLog10 } else { res = Math.pow(10, val);... |
SettableBeanProperty prop = _beanProperties.find(propName); | [BUG] [CONTEXT] JsonToken t = jp.getCurrentToken(); if(t == JsonToken.START_OBJECT) { t = jp.nextToken(); } if(_needViewProcesing) { Class<?> view = ctxt.getActiveView(); if(view != null) { return deserializeWithView(jp, ctxt, bean, view); } } for(; t == JsonToken.FIELD_NAME; t = jp.nextToken()) { String propName = jp... |
index = indexOf(entry.getKey())+ 1; | [BUG] index = indexOf( entry.getValue()) + 1; [CONTEXT] public void putAll(int index, final Map<? extends K, ? extends V> map) { if(index < 0 || index > insertOrder.size()) { throw new IndexOutOfBoundsException("Index:" + index +", Size:" + insertOrder.size()); } for(final Map.Entry<? extends K, ? extends V> entry : ma... |
s = outputLocals[dim]; | [BUG] None [CONTEXT] boolean merge(final ClassWriter cw, final Frame frame, final int edge) { boolean changed = false; int i, s, dim, kind, t; int nLocal = inputLocals.length; int nStack = inputStack.length; if(frame.inputLocals == null) { frame.inputLocals = new int[nLocal]; changed = true; } for(i = 0; i < nLocal; ++... |
enclosing.iSavedFieldsShared = true; | [BUG] enclosing.iSavedFieldsCount = this.iSavedFieldsCount;enclosing.iSavedFieldsShared = true; [CONTEXT] boolean restoreState(DateTimeParserBucket enclosing) { if(enclosing != DateTimeParserBucket.this) { return false; } enclosing.iZone = this.iZone; enclosing.iOffset = this.iOffset; enclosing.iSavedFields = this.iSav... |
labels.put( new Integer( labels.size())); | [BUG] None [CONTEXT] public void visitLabel(final Label label) { checkStartCode(); checkEndCode(); checkLabel(label, false,"label"); if(labels.get(label) != null) { throw new IllegalArgumentException("Already visited label"); } <extra_id_0> mv.visitLabel(label); } [METHOD] visitLabel |
max =(optBuf.length() > max) ? optBuf.length() : max; | [BUG] max = optBuf.length(); [CONTEXT] } if(option.hasArg()) { if(option.hasArgName()) { optBuf.append(" <").append(option.getArgName()).append(">"); } else { optBuf.append(' '); } } prefixList.add(optBuf); <extra_id_0> } int x = 0; for(Iterator i = optList.iterator(); i.hasNext();) { option =(Option) i.next(); optBu... |
map.register(char.class, wrapDeserializer(CHARACTER_TYPE_ADAPTER)); | [BUG] map.register( URL.class, wrapDeserializer( URL_TYPE_ADAPTER));map.register( char.class, wrapDeserializer( CHARACTER_TYPE_ADAPTER)); [CONTEXT] map.register(Date.class, wrapDeserializer(DATE_TYPE_ADAPTER)); map.register(java.sql.Date.class, wrapDeserializer(JAVA_SQL_DATE_TYPE_ADAPTER)); map.register(Timestamp.class... |
if(entities != null){ | [BUG] if(entities == null) { [CONTEXT] if(outlierListCollection.isHighFarOut()) { drawHighFarOut(aRadius / 2.0, g2, xx + state.getBarWidth() / 2.0, maxAxisValue); } if(outlierListCollection.isLowFarOut()) { drawLowFarOut(aRadius / 2.0, g2, xx + state.getBarWidth() / 2.0, minAxisValue); } } if(state.getInfo() != null &&... |
return code; | [BUG] return str; [CONTEXT] private static String toSource(Node root, Format outputFormat, boolean lineBreak,int lineLengthThreshold, SourceMap sourceMap, Charset outputCharset, boolean validation) { boolean createSourceMap =(sourceMap != null); CodeConsumer cp = outputFormat == Format.COMPACT ? new CompactCodePrinter(... |
this.secondLevel = extractSecondLevelType(actualType, rawClass); | [BUG] this.secondLevel = extractSecondLevelType( actualType); [CONTEXT] TypeInfoArray(Type type) { super(type); Class<?> rootComponentType = rawClass; while(rootComponentType.isArray()) { rootComponentType = rootComponentType.getComponentType(); } this.componentRawType = rootComponentType; <extra_id_0> } [METHOD] <in... |
if(( mv) != null) { mv.visitLineNumber( line, start); } | [BUG] None [CONTEXT] public void visitTableSwitchInsn( final int min, final int max, final Label dflt, final Label[] labels) { buf.setLength(0); buf.append(tab2).append("TABLESWITCH\n"); for(int i = 0; i < labels.length; ++i) { buf.append(tab3).append(min + i).append(":"); appendLabel(labels[i]); buf.append('\n'); } bu... |
return Days.days(getValue() / divisor); | [BUG] return Days.days( getValue()+ divisor); [CONTEXT] public Days dividedBy(int divisor) { if(divisor == 1) { return this; } <extra_id_0> } [METHOD] dividedBy |
cache = null; | [BUG] None [CONTEXT] public int indexOf(final AbstractInsnNode insn) { if(check && !contains(insn)) { throw new IllegalArgumentException(); } if(cache == null) { <extra_id_0> } return insn.index; } [METHOD] indexOf |
expectedConst = true; | [BUG] expectedConst = false;expectedConst = true; [CONTEXT] if(NodeUtil.isConstantName(n) || compiler.getCodingConvention().isConstant(n.getString())) { expectedConst = true; } else { expectedConst = false; JSDocInfo info = null; Var var = t.getScope().getVar(n.getString()); if(var != null) { info = var.getJSDocInfo();... |
newStatement = NodeUtil.newExpr(init); | [BUG] [CONTEXT] if(!NodeUtil.isForIn(c) && c.getFirstChild().getType() != Token.EMPTY) { Node init = c.getFirstChild(); c.replaceChild(init, new Node(Token.EMPTY)); Node newStatement; if(init.getType() == Token.VAR) { newStatement = init; } else { <extra_id_0> } insertBeforeParent.addChildBefore(newStatement, inser... |
this.autoWidthMethod = autoWidthMethod; | [BUG] this.autoWidthMethod = WIDTHMETHOD_SMALLEST; [CONTEXT] public void setAutoWidthMethod(int autoWidthMethod) { if(this.autoWidthMethod != autoWidthMethod) { <extra_id_0> notifyListeners(new RendererChangeEvent(this)); } } [METHOD] setAutoWidthMethod |
df =(DateFormat)df.clone(); | [BUG] df =(( StdDateFormat) df).withTimeZone( tz);df =(DateFormat) df.clone(); [CONTEXT] if(df.getClass() == StdDateFormat.class) { df =((StdDateFormat) df).withTimeZone(tz); } else { <extra_id_0> df.setTimeZone(tz); } [METHOD] createContextual |
if(ycycleBound == y[3]){ | [BUG] if(yn == y[3 - 3]) { [CONTEXT] newset, series, 2, crosshairState, pass); if(x.length == 4) { if(cnax != null) { if(xcycleBound == x[2]) { cnax.setBoundMappedToLastCycle(x[3] <= xcycleBound); } if(xcycleBound == x[3]) { cnax.setBoundMappedToLastCycle(x[2] <= xcycleBound); } } if(cnay != null) { if(ycycleBound == y... |
return UnsupportedDateTimeField.getInstance(DateTimeFieldType.clockhourOfHalfday() , hours()); | [BUG] return UnsupportedDateTimeField.getInstance( DateTimeFieldType.clockhourOfHalfday(), years()); [CONTEXT] public DateTimeField clockhourOfHalfday() { <extra_id_0> } [METHOD] clockhourOfHalfday |
if(subroutine != null){ | [BUG] None [CONTEXT] } else if(insnOpcode != ATHROW &&(insnOpcode < IRETURN || insnOpcode > RETURN)) { <extra_id_0> if(insnNode instanceof VarInsnNode) { int var =((VarInsnNode) insnNode).var; subroutine.access[var] = true; if(insnOpcode == LLOAD || insnOpcode == DLOAD || insnOpcode == LSTORE || insnOpcode == DSTORE)... |
for(int i = 0; i < fullblocks; i++){ | [BUG] for(int i = 0; i < WORD; i++) { [CONTEXT] if(length <= DEFLATER_BLOCK_SIZE) { def.setInput(b, offset, length); deflateUntilInputIsNeeded(); } else { final int fullblocks = length / DEFLATER_BLOCK_SIZE; <extra_id_0> def.setInput(b, offset + i * DEFLATER_BLOCK_SIZE, DEFLATER_BLOCK_SIZE); deflateUntilInputIsNeeded... |
if(length[i] == n){ | [BUG] if(unseqToSeq[i] == n) { [CONTEXT] private void hbAssignCodes(int[] code, char[] length, int minLen, int maxLen, int alphaSize) { int n, vec, i; vec = 0; for(n = minLen; n <= maxLen; n++) { for(i = 0; i < alphaSize; i++) { <extra_id_0> code[i] = vec; vec++; } } vec <<= 1; } } [METHOD] hbAssignCodes |
[Delete] | [BUG] None [CONTEXT] public void visitIincInsn(final int var, final int increment) { buf.setLength(0); buf.append(tab2).append("IINC").append(var).append(' ').append(increment).append('\n'); text.add(buf.toString()); <extra_id_0> mv.visitIincInsn(var, increment); } } [METHOD] visitIincInsn |
if(tokenLen >= 4){ | [BUG] if(tokenLen > 0) { [CONTEXT] break; case 'E': // dayOfWeek(text) if(tokenLen >= 4) { builder.appendDayOfWeekText(); } else { builder.appendDayOfWeekShortText(); } break; case 'D': // day of year(number) builder.appendDayOfYear(tokenLen); break; case 'w': // week of weekyear(number) builder.appendWeekOfWeekyear(to... |
recordSet(ns.name, nameNode); | [BUG] recordSet( ns.name, n); [CONTEXT] if(ns.isPrototype) { JsName name = getName(ns.prototypeClass, false); if(name != null) { name.prototypeNames.add(ns.prototypeProperty); refNodes.add(new PrototypeSetNode(name, n)); } } else { <extra_id_0> } [METHOD] visit |
merge(jump, current, subroutine); | [BUG] None [CONTEXT] newControlFlowEdge(insn, jump); } else if(insnNode instanceof LookupSwitchInsnNode) { LookupSwitchInsnNode lsi =(LookupSwitchInsnNode) insnNode; int jump = insns.indexOf(lsi.dflt); merge(jump, current, subroutine); newControlFlowEdge(insn, jump); for(int j = 0; j < lsi.labels.size(); ++j) { LabelNo... |
jjmatchedPos = 16; | [BUG] jjmatchedKind = 62;jjmatchedPos = 16; [CONTEXT] if((active0 & 0x600000000000L) != 0L) { if(jjmatchedPos < 16) { jjmatchedKind = 78; <extra_id_0> } return -1; } [METHOD] jjStopStringLiteralDfa_0 |
return BooleanTypeAdapter.class.getSimpleName(); | [BUG] [CONTEXT] public String toString() { <extra_id_0> [METHOD] toString |
buffer.append(padWithZeros ? StringUtils.leftPad(Integer.toString(days), count, '0'): Integer.toString(days)); | [BUG] buffer.append( padWithZeros ? StringUtils.leftPad( Integer.toString( days) , seconds, '0') : Integer.toString( days)); [CONTEXT] Token token = tokens[i]; Object value = token.getValue(); int count = token.getCount(); if(value instanceof StringBuffer) { buffer.append(value.toString()); } else { if(value == y) { bu... |
jjmatchedPos = 4; | [BUG] jjmatchedKind = 78;jjmatchedPos = 4; [CONTEXT] if((active0 & 0xff62fff600000000L) != 0L ||(active1 & 0x2907L) != 0L) { jjmatchedKind = 78; <extra_id_0> return 12; } [METHOD] jjStopStringLiteralDfa_0 |
checkInternalName(owner,"owner"); | [BUG] None [CONTEXT] public void visitMethodInsn( final int opcode, final String owner, final String name, final String desc) { checkStartCode(); checkEndCode(); checkOpcode(opcode, 5); checkMethodIdentifier(name,"name"); <extra_id_0> checkMethodDesc(desc); mv.visitMethodInsn(opcode, owner, name, desc); } [METHOD] vi... |
TextUtilities.drawRotatedString(label, g2, labelx, labely, TextAnchor.CENTER, getLabelAngle() - Math.PI / 2.0, TextAnchor.CENTER); | [BUG] TextUtilities.drawRotatedString( g2, label, labelx, labely, TextAnchor.CENTER, getLabelAngle()- Math.PI / 2.0, TextAnchor.CENTER); [CONTEXT] labely - h / 2.0f, w, h); state.cursorDown(insets.getTop() + labelBounds.getHeight() + insets.getBottom()); } else if(edge == RectangleEdge.LEFT) { AffineTransform t = Affin... |
if(pos > startPos){ | [BUG] None [CONTEXT] } pos = startPos + width; char c; while((pos >= startPos) &&((c = text.charAt(pos)) != ' ') &&(c != '\n') &&(c != '\r')) { --pos; } <extra_id_0> return pos; } pos = startPos + width; while((pos <= text.length()) &&((c = text.charAt(pos)) != ' ') &&(c != '\n') &&(c != '\r')) { ++pos; } return(po... |
invalidate(); | [BUG] shouldRename(); [CONTEXT] boolean scheduleRenaming(Node node, T type) { if(!skipRenaming) { if(typeSystem.isInvalidatingType(type)) { <extra_id_0> return false; } renameNodes.add(node); rootTypes.put(node, type); } return true; } [METHOD] scheduleRenaming |
System.arraycopy(array, startIndexInclusive, subarray, 0, newSize); | [BUG] System.arraycopy( array, startIndexInclusive, subarray, 0, i); [CONTEXT] public static Object[] subarray(Object[] array, int startIndexInclusive, int endIndexExclusive) { if(array == null) { return null; } if(startIndexInclusive < 0) { startIndexInclusive = 0; } if(endIndexExclusive > array.length) { endIndexExcl... |
instant = field.set(instant, values[i]); | [BUG] instant = instant.set( field, values[i]); [CONTEXT] public int getMaximumValue(ReadablePartial partial, int[] values) { Chronology chrono = GJChronology.getInstanceUTC(); long instant = 0L; for(int i = 0, isize = partial.size(); i < isize; i++) { DateTimeField field = partial.getFieldType(i).getField(chrono); if(... |
System.arraycopy(old, 0, paramAnns, 1, old.length); | [BUG] System.arraycopy( old, 4, paramAnns, 1, old.length); [CONTEXT] Class<?> dc = ctor.getDeclaringClass(); if(dc.isEnum() &&(paramCount == paramAnns.length + 2)) { Annotation[][] old = paramAnns; paramAnns = new Annotation[old.length+2][]; System.arraycopy(old, 0, paramAnns, 2, old.length); resolvedAnnotations = _col... |
e.push(0); | [BUG] None [CONTEXT] private void emitNewInstanceCallback(ClassEmitter ce) { CodeEmitter e = ce.begin_method(Constants.ACC_PUBLIC, SINGLE_NEW_INSTANCE, null); switch(callbackTypes.length) { case 0: break; case 1: e.push(1); e.newarray(CALLBACK); e.dup(); <extra_id_0> e.load_arg(0); e.aastore(); e.invoke_static_this(S... |
} else if(kind == STACK){ | [BUG] None [CONTEXT] if(frame.inputLocals == null) { frame.inputLocals = new int[nLocal]; changed = true; } for(i = 0; i < nLocal; ++i) { if(outputLocals != null && i < outputLocals.length) { s = outputLocals[i]; if(s == 0) { t = inputLocals[i]; } else { dim = s & DIM; kind = s & KIND; if(kind == LOCAL) { t = dim + inp... |
newValues = getField(index).set(this, index, newValues, value); | [BUG] newValues = getField( value).set( this, index, newValues, index); [CONTEXT] public YearMonth withField(DateTimeFieldType fieldType, int value) { int index = indexOfSupported(fieldType); if(value == getValue(index)) { return this; } int[] newValues = getValues(); <extra_id_0> return new YearMonth(this, newValues... |
result = Math.min(result, x - prev); | [BUG] result = Math.min( result - prev); [CONTEXT] private double calculateIntervalForSeries(int series) { double result = Double.POSITIVE_INFINITY; int itemCount = this.dataset.getItemCount(series); if(itemCount > 1) { double prev = this.dataset.getXValue(series, 0); for(int item = 1; item < itemCount; item++) { doubl... |
if(jsScope == t.getScope() || !NodeUtil.isName(n)|| NodeUtil.isFunction(parent)) { | [BUG] if(jsScope == t.getScope()&& !NodeUtil.isName( n) || NodeUtil.isFunction( parent)){ [CONTEXT] public void visit(NodeTraversal t, Node n, Node parent) { <extra_id_0> return; } String name = n.getString(); Var var = t.getScope().getVar(name); if(var != null && var.scope == jsScope) { escaped.add(jsScope.getVar(na... |
l_x1 = x_dataset.getXValue(0, l_minuendItem); | [BUG] l_x4 = x_dataset.getXValue( 1, l_subtrahendItem + 1);l_x1 = x_dataset.getXValue( 0, l_minuendItem); [CONTEXT] boolean b_subtrahendFastForward = false; boolean b_colinear= false; boolean b_positive; double l_x1 = 0.0, l_y1 = 0.0; // current minuend point double l_x2 = 0.0, l_y2 = 0.0; // next minuend point double ... |
str ="java.util.ArrayList"; | [BUG] str ="j"; [CONTEXT] } else if(value instanceof EnumMap<?,?>) { Class<?> enumClass = ClassUtil.findEnumType((EnumMap<?,?>) value); Class<?> valueClass = Object.class; str = TypeFactory.defaultInstance().constructMapType(EnumMap.class, enumClass, valueClass).toCanonical(); } else { String end = str.substring(9); if... |
tightenTypes = false; | [BUG] ambiguateProperties = false;tightenTypes = false; [CONTEXT] nameAnonymousFunctionsOnly = false; devMode = DevMode.OFF; checkSymbols = false; checkShadowVars = CheckLevel.OFF; aggressiveVarCheck = CheckLevel.OFF; checkFunctions = CheckLevel.OFF; checkMethods = CheckLevel.OFF; checkDuplicateMessages = false; allowL... |
int next = s.indexOf(',', mark); | [BUG] None [CONTEXT] private static List parseTypes(String s, int mark, int end) { List types = new ArrayList(5); for(;;) { <extra_id_0> if(next < 0) { break; } types.add(map(s.substring(mark, next).trim())); mark = next + 1; } types.add(map(s.substring(mark, end).trim())); return types; } [METHOD] parseTypes |
n.replaceChild(cond, notCond); | [BUG] n.removeChild( cond);n.replaceChild( cond, notCond); [CONTEXT] if(type == Token.IF) { if(elseBody != null && !NodeUtil.mayHaveSideEffects(elseBody)) { n.removeChild(elseBody); elseBody = null; t.getCompiler().reportCodeChange(); changes = true; } if(!NodeUtil.mayHaveSideEffects(thenBody) && elseBody != null) { n.... |
this.startWith = startWith; | [BUG] this.startWith = null; [CONTEXT] protected CollectionNodeIterator( CollectionPointer pointer, boolean reverse, NodePointer startWith) { this.pointer = pointer; this.reverse = reverse; <extra_id_0> } [METHOD] <init> |
int[] newValues = iPartial.getValues(); | [BUG] int[] newValues = partial.getValues(); [CONTEXT] public Partial setCopy(int value) { <extra_id_0> newValues = getField().set(iPartial, iFieldIndex, newValues, value); return new Partial(iPartial, newValues); } [METHOD] setCopy |
Object cdDef = intr.findContentDeserializer(a); | [BUG] [CONTEXT] } } Class<?> cc = intr.findDeserializationContentType(a, type.getContentType()); if(cc != null) { try { type = type.narrowContentsBy(cc); } catch(IllegalArgumentException iae) { throw new JsonMappingException("Failed to narrow content type"+type+" with content-type annotation("+cc.getName()+"):"+iae.ge... |
if(node1 == n) { | [BUG] None [CONTEXT] } if((node1 instanceof Attribute) && !(node2 instanceof Attribute)) { return -1; } else if(!(node1 instanceof Attribute) &&(node2 instanceof Attribute)) { return 1; } else if((node1 instanceof Attribute) &&(node2 instanceof Attribute)) { List list =((Element) getNode()).getAttributes(); int length ... |
buffer.append(( char)(value / 10 + '0')); | [BUG] None [CONTEXT] public final void appendTo(StringBuffer buffer, int value) { <extra_id_0> buffer.append((char)(value % 10 + '0')); } [METHOD] appendTo |
int index = fraction >>>(32 - power); | [BUG] None [CONTEXT] private int insertNewKey(int key) { if(check && occupiedCount != keyCount) Kit.codeBug(); if(check && keyCount == 1 << power) Kit.codeBug(); int[] keys = this.keys; int fraction = key * A; <extra_id_0> if(keys[index] != EMPTY) { int mask =(1 << power) - 1; int step = tableLookupStep(fraction, mas... |
pop( arg);push( TOP); | [BUG] None [CONTEXT] break; case Opcodes.ALOAD: push(get(arg)); break; case Opcodes.IALOAD: case Opcodes.BALOAD: case Opcodes.CALOAD: case Opcodes.SALOAD: pop(2); push(INTEGER); break; case Opcodes.LALOAD: case Opcodes.D2L: pop(2); push(LONG); <extra_id_0> break; case Opcodes.FALOAD: pop(2); push(FLOAT); break; case ... |
jjmatchedKind = 78; | [BUG] jjmatchedPos = 10;jjmatchedKind = 78; [CONTEXT] if((active0 & 0xe00400000000L) != 0L) { <extra_id_0> jjmatchedPos = 16; return 12; } [METHOD] jjStopStringLiteralDfa_0 |
df =(DateFormat)df.clone(); | [BUG] df =(( StdDateFormat) df).withTimeZone( tz);df =(DateFormat) df.clone(); [CONTEXT] SimpleDateFormat df = new SimpleDateFormat(pattern, loc); if(tz == null) { tz = ctxt.getTimeZone(); } df.setTimeZone(tz); return withDateFormat(df, pattern); } if(tz != null) { DateFormat df = ctxt.getConfig().getDateFormat(); if(d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.