nus-yam/ex-repair huggingface dataset:
Program: 151700
Project: 151700
Buggy source:
/** 
 * Method called to handle details of initializing things to return the very first token.
 */
protected JsonToken _handleStartDoc() throws IOException {
  if (_schema.usesHeader()) {
    _readHeaderLine();
  }
  if (_schema.skipsFirstDataRow()) {
    _reader.skipLine();
  }
  _reader.skipLeadingComments();
  final boolean wrapAsArray=Feature.WRAP_AS_ARRAY.enabledIn(_formatFeatures);
  if (!_reader.hasMoreInput()) {
    _state=STATE_DOC_END;
    if (wrapAsArray) {
      _parsingContext=_reader.childArrayContext(_parsingContext);
      return JsonToken.START_ARRAY;
    }
    return null;
  }
  if (wrapAsArray) {
    _parsingContext=_reader.childArrayContext(_parsingContext);
    _state=STATE_RECORD_START;
    return JsonToken.START_ARRAY;
  }
  return _handleRecordStart();
}

Fixed version (ground truth):
/** 
 * Method called to handle details of initializing things to return the very first token.
 */
protected JsonToken _handleStartDoc() throws IOException {
  _reader.skipLeadingComments();
  if (_schema.usesHeader()) {
    _readHeaderLine();
    _reader.skipLeadingComments();
  }
  if (_schema.skipsFirstDataRow()) {
    _reader.skipLine();
    _reader.skipLeadingComments();
  }
  final boolean wrapAsArray=Feature.WRAP_AS_ARRAY.enabledIn(_formatFeatures);
  if (!_reader.hasMoreInput()) {
    _state=STATE_DOC_END;
    if (wrapAsArray) {
      _parsingContext=_reader.childArrayContext(_parsingContext);
      return JsonToken.START_ARRAY;
    }
    return null;
  }
  if (wrapAsArray) {
    _parsingContext=_reader.childArrayContext(_parsingContext);
    _state=STATE_RECORD_START;
    return JsonToken.START_ARRAY;
  }
  return _handleRecordStart();
}
Program: 151701
Project: 151701
Buggy source:
@Override public double getDoubleValue() throws IOException, JsonParseException {
  return _reader.getDoubleValue();
}

Fixed version (ground truth):
@Override public double getDoubleValue() throws IOException {
  return _reader.getDoubleValue();
}
Program: 151702
Project: 151702
Buggy source:
@Override public int getTextOffset() throws IOException, JsonParseException {
  return 0;
}

Fixed version (ground truth):
@Override public int getTextOffset() throws IOException {
  return 0;
}
Program: 151703
Project: 151703
Buggy source:
@Override public long getLongValue() throws IOException, JsonParseException {
  return _reader.getLongValue();
}

Fixed version (ground truth):
@Override public long getLongValue() throws IOException {
  return _reader.getLongValue();
}
Program: 151704
Project: 151704
Buggy source:
@Override public BigInteger getBigIntegerValue() throws IOException, JsonParseException {
  return _reader.getBigIntegerValue();
}

Fixed version (ground truth):
@Override public BigInteger getBigIntegerValue() throws IOException {
  return _reader.getBigIntegerValue();
}
Program: 151705
Project: 151705
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public byte[] getBinaryValue(Base64Variant variant) throws IOException, JsonParseException {
  if (_binaryValue == null) {
    if (_currToken != JsonToken.VALUE_STRING) {
      _reportError("String_Node_Str" + _currToken + "String_Node_Str");
    }
    ByteArrayBuilder builder=_getByteArrayBuilder();
    _decodeBase64(_currentValue,builder,variant);
    _binaryValue=builder.toByteArray();
  }
  return _binaryValue;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public byte[] getBinaryValue(Base64Variant variant) throws IOException {
  if (_binaryValue == null) {
    if (_currToken != JsonToken.VALUE_STRING) {
      _reportError("String_Node_Str" + _currToken + "String_Node_Str");
    }
    ByteArrayBuilder builder=_getByteArrayBuilder();
    _decodeBase64(_currentValue,builder,variant);
    _binaryValue=builder.toByteArray();
  }
  return _binaryValue;
}
Program: 151706
Project: 151706
Buggy source:
@Override public String getText() throws IOException, JsonParseException {
  if (_currToken == JsonToken.FIELD_NAME) {
    return _currentName;
  }
  return _currentValue;
}

Fixed version (ground truth):
@Override public String getText() throws IOException {
  if (_currToken == JsonToken.FIELD_NAME) {
    return _currentName;
  }
  return _currentValue;
}
Program: 151707
Project: 151707
Buggy source:
protected JsonToken _handleRecordStart() throws IOException, JsonParseException {
  _columnIndex=0;
  if (_columnCount == 0) {
    _state=STATE_UNNAMED_VALUE;
    _parsingContext=_reader.childArrayContext(_parsingContext);
    return JsonToken.START_ARRAY;
  }
  _parsingContext=_reader.childObjectContext(_parsingContext);
  _state=STATE_NEXT_ENTRY;
  return JsonToken.START_OBJECT;
}

Fixed version (ground truth):
protected JsonToken _handleRecordStart() throws IOException {
  _columnIndex=0;
  if (_columnCount == 0) {
    _state=STATE_UNNAMED_VALUE;
    _parsingContext=_reader.childArrayContext(_parsingContext);
    return JsonToken.START_ARRAY;
  }
  _parsingContext=_reader.childObjectContext(_parsingContext);
  _state=STATE_NEXT_ENTRY;
  return JsonToken.START_OBJECT;
}
Program: 151708
Project: 151708
Buggy source:
@Override public int getTextLength() throws IOException, JsonParseException {
  if (_currToken == JsonToken.FIELD_NAME) {
    return _currentName.length();
  }
  return _textBuffer.size();
}

Fixed version (ground truth):
@Override public int getTextLength() throws IOException {
  if (_currToken == JsonToken.FIELD_NAME) {
    return _currentName.length();
  }
  return _textBuffer.size();
}
Program: 151709
Project: 151709
Buggy source:
protected JsonToken _handleNextEntry() throws IOException, JsonParseException {
  String next=_reader.nextString();
  if (next == null) {
    _parsingContext=_parsingContext.getParent();
    if (!_reader.startNewLine()) {
      _state=STATE_DOC_END;
    }
 else {
      _state=STATE_RECORD_START;
    }
    return JsonToken.END_OBJECT;
  }
  _state=STATE_NAMED_VALUE;
  _currentValue=next;
  if (_columnIndex >= _columnCount) {
    _currentName=null;
    if (_columnIndex == _columnCount) {
      next=next.trim();
      if (next.length() == 0) {
        return _handleNextEntry();
      }
    }
    _reportError("String_Node_Str" + _columnCount + "String_Node_Str"+ _columnCount+ "String_Node_Str"+ next.length()+ "String_Node_Str"+ next+ "String_Node_Str");
  }
  _currentName=_schema.column(_columnIndex).getName();
  return JsonToken.FIELD_NAME;
}

Fixed version (ground truth):
protected JsonToken _handleNextEntry() throws IOException {
  String next=_reader.nextString();
  if (next == null) {
    _parsingContext=_parsingContext.getParent();
    if (!_reader.startNewLine()) {
      _state=STATE_DOC_END;
    }
 else {
      _state=STATE_RECORD_START;
    }
    return JsonToken.END_OBJECT;
  }
  _state=STATE_NAMED_VALUE;
  _currentValue=next;
  if (_columnIndex >= _columnCount) {
    _currentName=null;
    if (_columnIndex == _columnCount) {
      next=next.trim();
      if (next.length() == 0) {
        return _handleNextEntryExpectEOL();
      }
    }
    _reportError("String_Node_Str" + _columnCount + "String_Node_Str"+ _columnCount+ "String_Node_Str"+ next.length()+ "String_Node_Str"+ next+ "String_Node_Str");
  }
  _currentName=_schema.column(_columnIndex).getName();
  return JsonToken.FIELD_NAME;
}
Program: 151710
Project: 151710
Buggy source:
@Override public Number getNumberValue() throws IOException, JsonParseException {
  return _reader.getNumberValue();
}

Fixed version (ground truth):
@Override public Number getNumberValue() throws IOException {
  return _reader.getNumberValue();
}
Program: 151711
Project: 151711
Buggy source:
/** 
 * Method called to process the expected header line
 */
protected void _readHeaderLine() throws IOException, JsonParseException {
  if (_schema.size() > 0) {
    while (_reader.nextString() != null) {
    }
    return;
  }
  String name;
  CsvSchema.Builder builder=_schema.rebuild().clearColumns();
  while ((name=_reader.nextString()) != null) {
    name=name.trim();
    CsvSchema.Column prev=_schema.column(name);
    if (prev != null) {
      builder.addColumn(name,prev.getType());
    }
 else {
      builder.addColumn(name);
    }
  }
  CsvSchema newSchema=builder.build();
  int size=newSchema.size();
  if (size < 2) {
    String first=(size == 0) ? "String_Node_Str" : newSchema.column(0).getName().trim();
    if (first.length() == 0) {
      _reportError("String_Node_Str");
    }
  }
  setSchema(builder.build());
}

Fixed version (ground truth):
/** 
 * Method called to process the expected header line
 */
protected void _readHeaderLine() throws IOException {
  if (_schema.size() > 0) {
    while (_reader.nextString() != null) {
    }
    return;
  }
  String name;
  CsvSchema.Builder builder=_schema.rebuild().clearColumns();
  while ((name=_reader.nextString()) != null) {
    name=name.trim();
    CsvSchema.Column prev=_schema.column(name);
    if (prev != null) {
      builder.addColumn(name,prev.getType());
    }
 else {
      builder.addColumn(name);
    }
  }
  CsvSchema newSchema=builder.build();
  int size=newSchema.size();
  if (size < 2) {
    String first=(size == 0) ? "String_Node_Str" : newSchema.column(0).getName().trim();
    if (first.length() == 0) {
      _reportError("String_Node_Str");
    }
  }
  setSchema(builder.build());
}
Program: 151712
Project: 151712
Buggy source:
@Override public int getIntValue() throws IOException, JsonParseException {
  return _reader.getIntValue();
}

Fixed version (ground truth):
@Override public int getIntValue() throws IOException {
  return _reader.getIntValue();
}
Program: 151713
Project: 151713
Buggy source:
@Override public BigDecimal getDecimalValue() throws IOException, JsonParseException {
  return _reader.getDecimalValue();
}

Fixed version (ground truth):
@Override public BigDecimal getDecimalValue() throws IOException {
  return _reader.getDecimalValue();
}
Program: 151714
Project: 151714
Buggy source:
@Override public char[] getTextCharacters() throws IOException, JsonParseException {
  if (_currToken == JsonToken.FIELD_NAME) {
    return _currentName.toCharArray();
  }
  return _textBuffer.contentsAsArray();
}

Fixed version (ground truth):
@Override public char[] getTextCharacters() throws IOException {
  if (_currToken == JsonToken.FIELD_NAME) {
    return _currentName.toCharArray();
  }
  return _textBuffer.contentsAsArray();
}
Program: 151715
Project: 151715
Buggy source:
@Override public Object getEmbeddedObject() throws IOException, JsonParseException {
  return null;
}

Fixed version (ground truth):
@Override public Object getEmbeddedObject() throws IOException {
  return _binaryValue;
}
Program: 151716
Project: 151716
Buggy source:
/** 
 * Method called to handle details of initializing things to return the very first token.
 */
protected JsonToken _handleStartDoc() throws IOException, JsonParseException {
  if (_schema.useHeader()) {
    _readHeaderLine();
  }
  if (_schema.skipFirstDataRow()) {
    _reader.skipLine();
  }
  if (!_reader.hasMoreInput()) {
    _state=STATE_DOC_END;
    if (isEnabled(Feature.WRAP_AS_ARRAY)) {
      _parsingContext=_reader.childArrayContext(_parsingContext);
      return JsonToken.START_ARRAY;
    }
    return null;
  }
  if (isEnabled(Feature.WRAP_AS_ARRAY)) {
    _parsingContext=_reader.childArrayContext(_parsingContext);
    _state=STATE_RECORD_START;
    return JsonToken.START_ARRAY;
  }
  return _handleRecordStart();
}

Fixed version (ground truth):
/** 
 * Method called to handle details of initializing things to return the very first token.
 */
protected JsonToken _handleStartDoc() throws IOException {
  if (_schema.useHeader()) {
    _readHeaderLine();
  }
  if (_schema.skipFirstDataRow()) {
    _reader.skipLine();
  }
  if (!_reader.hasMoreInput()) {
    _state=STATE_DOC_END;
    if (isEnabled(Feature.WRAP_AS_ARRAY)) {
      _parsingContext=_reader.childArrayContext(_parsingContext);
      return JsonToken.START_ARRAY;
    }
    return null;
  }
  if (isEnabled(Feature.WRAP_AS_ARRAY)) {
    _parsingContext=_reader.childArrayContext(_parsingContext);
    _state=STATE_RECORD_START;
    return JsonToken.START_ARRAY;
  }
  return _handleRecordStart();
}
Program: 151717
Project: 151717
Buggy source:
@Override public float getFloatValue() throws IOException, JsonParseException {
  return _reader.getFloatValue();
}

Fixed version (ground truth):
@Override public float getFloatValue() throws IOException {
  return _reader.getFloatValue();
}
Program: 151718
Project: 151718
Buggy source:
protected JsonToken _handleNamedValue() throws IOException, JsonParseException {
  _state=STATE_NEXT_ENTRY;
  ++_columnIndex;
  return JsonToken.VALUE_STRING;
}

Fixed version (ground truth):
protected JsonToken _handleNamedValue() throws IOException {
  _state=STATE_NEXT_ENTRY;
  ++_columnIndex;
  return JsonToken.VALUE_STRING;
}
Program: 151719
Project: 151719
Buggy source:
protected JsonToken _handleUnnamedValue() throws IOException, JsonParseException {
  String next=_reader.nextString();
  if (next == null) {
    _parsingContext=_parsingContext.getParent();
    if (!_reader.startNewLine()) {
      _state=STATE_DOC_END;
    }
 else {
      _state=STATE_RECORD_START;
    }
    return JsonToken.END_ARRAY;
  }
  _currentValue=next;
  ++_columnIndex;
  return JsonToken.VALUE_STRING;
}

Fixed version (ground truth):
protected JsonToken _handleUnnamedValue() throws IOException {
  String next=_reader.nextString();
  if (next == null) {
    _parsingContext=_parsingContext.getParent();
    if (!_reader.startNewLine()) {
      _state=STATE_DOC_END;
    }
 else {
      _state=STATE_RECORD_START;
    }
    return JsonToken.END_ARRAY;
  }
  _currentValue=next;
  ++_columnIndex;
  return JsonToken.VALUE_STRING;
}
Program: 151720
Project: 151720
Buggy source:
@Override public NumberType getNumberType() throws IOException, JsonParseException {
  return _reader.getNumberType();
}

Fixed version (ground truth):
@Override public NumberType getNumberType() throws IOException {
  return _reader.getNumberType();
}
Program: 151721
Project: 151721
Buggy source:
/** 
 * @param lastSegmentEnd End offset in the currently active segment 
 * @param trimTrailingSpaces Whether trailing spaces should be trimmed or not
 */
public String finishAndReturn(int lastSegmentEnd,boolean trimTrailingSpaces){
  if (trimTrailingSpaces) {
    int ptr=lastSegmentEnd - 1;
    if (_currentSegment[ptr] <= 0x0020) {
      return _doTrim(ptr);
    }
  }
  _currentSize=lastSegmentEnd;
  return contentsAsString();
}

Fixed version (ground truth):
/** 
 * @param lastSegmentEnd End offset in the currently active segment,could be 0 in the case of first character is delimiter or end-of-line
 * @param trimTrailingSpaces Whether trailing spaces should be trimmed or not
 */
public String finishAndReturn(int lastSegmentEnd,boolean trimTrailingSpaces){
  if (trimTrailingSpaces) {
    int ptr=lastSegmentEnd - 1;
    if (ptr < 0 || _currentSegment[ptr] <= 0x0020) {
      return _doTrim(ptr);
    }
  }
  _currentSize=lastSegmentEnd;
  return contentsAsString();
}
Program: 151722
Project: 151722
Buggy source:
/** 
 * Helper method used to find a buffer to use, ideally one recycled earlier.
 */
private final char[] findBuffer(int needed){
  if (_allocator != null) {
    return _allocator.allocCharBuffer(BufferRecycler.CharBufferType.TEXT_BUFFER,needed);
  }
  return new char[Math.max(needed,MIN_SEGMENT_LEN)];
}

Fixed version (ground truth):
/** 
 * Helper method used to find a buffer to use, ideally one recycled earlier.
 */
private final char[] findBuffer(int needed){
  if (_allocator != null) {
    return _allocator.allocCharBuffer(BufferRecycler.CHAR_TEXT_BUFFER,needed);
  }
  return new char[Math.max(needed,MIN_SEGMENT_LEN)];
}
Program: 151723
Project: 151723
Buggy source:
public void releaseBuffers(){
  if (_allocator == null) {
    reset();
  }
 else {
    if (_currentSegment != null) {
      reset();
      char[] buf=_currentSegment;
      _currentSegment=null;
      _allocator.releaseCharBuffer(BufferRecycler.CharBufferType.TEXT_BUFFER,buf);
    }
  }
}

Fixed version (ground truth):
public void releaseBuffers(){
  if (_allocator == null) {
    reset();
  }
 else {
    if (_currentSegment != null) {
      reset();
      char[] buf=_currentSegment;
      _currentSegment=null;
      _allocator.releaseCharBuffer(BufferRecycler.CHAR_TEXT_BUFFER,buf);
    }
  }
}
Program: 151724
Project: 151724
Buggy source:
protected CsvSchema _schemaFor(JavaType pojoType,LRUMap<JavaType,CsvSchema> schemas,boolean typed){
synchronized (schemas) {
    CsvSchema s=schemas.get(pojoType);
    if (s != null) {
      return s;
    }
  }
  BeanDescription beanDesc=getSerializationConfig().introspect(pojoType);
  CsvSchema.Builder builder=CsvSchema.builder();
  for (  BeanPropertyDefinition prop : beanDesc.findProperties()) {
    if (prop.couldSerialize()) {
      if (typed) {
        builder.addColumn(prop.getName(),_determineType(prop.getAccessor().getRawType()));
      }
 else {
        builder.addColumn(prop.getName());
      }
    }
  }
  CsvSchema result=builder.build();
synchronized (schemas) {
    schemas.put(pojoType,result);
  }
  return result;
}

Fixed version (ground truth):
protected CsvSchema _schemaFor(JavaType pojoType,LRUMap<JavaType,CsvSchema> schemas,boolean typed){
synchronized (schemas) {
    CsvSchema s=schemas.get(pojoType);
    if (s != null) {
      return s;
    }
  }
  BeanDescription beanDesc=getSerializationConfig().introspect(pojoType);
  CsvSchema.Builder builder=CsvSchema.builder();
  for (  BeanPropertyDefinition prop : beanDesc.findProperties()) {
    if (!prop.couldSerialize()) {
      continue;
    }
    if (typed) {
      builder.addColumn(prop.getName(),_determineType(prop.getAccessor().getRawType()));
    }
 else {
      builder.addColumn(prop.getName());
    }
  }
  CsvSchema result=builder.build();
synchronized (schemas) {
    schemas.put(pojoType,result);
  }
  return result;
}
Program: 151726
Project: 151726
Buggy source:
protected JsonToken _handleNextEntry() throws IOException, JsonParseException {
  String next=_reader.nextString();
  if (next == null) {
    _parsingContext=_parsingContext.getParent();
    if (!_reader.startNewLine()) {
      _state=STATE_DOC_END;
    }
 else {
      _state=STATE_RECORD_START;
    }
    return JsonToken.END_OBJECT;
  }
  _state=STATE_NAMED_VALUE;
  _currentValue=next;
  if (_columnIndex >= _columnCount) {
    _reportError("String_Node_Str" + _columnCount + "String_Node_Str"+ next.length()+ "String_Node_Str"+ next+ "String_Node_Str");
  }
  _currentName=_schema.column(_columnIndex).getName();
  return JsonToken.FIELD_NAME;
}

Fixed version (ground truth):
protected JsonToken _handleNextEntry() throws IOException, JsonParseException {
  String next=_reader.nextString();
  if (next == null) {
    _parsingContext=_parsingContext.getParent();
    if (!_reader.startNewLine()) {
      _state=STATE_DOC_END;
    }
 else {
      _state=STATE_RECORD_START;
    }
    return JsonToken.END_OBJECT;
  }
  _state=STATE_NAMED_VALUE;
  _currentValue=next;
  if (_columnIndex >= _columnCount) {
    _currentName=null;
    if (_columnIndex == _columnCount) {
      next=next.trim();
      if (next.length() == 0) {
        return _handleNextEntry();
      }
    }
    _reportError("String_Node_Str" + _columnCount + "String_Node_Str"+ _columnCount+ "String_Node_Str"+ next.length()+ "String_Node_Str"+ next+ "String_Node_Str");
  }
  _currentName=_schema.column(_columnIndex).getName();
  return JsonToken.FIELD_NAME;
}
Program: 151727
Project: 151727
Buggy source:
public ObjectReader schemaBasedReader(FormatSchema schema){
  return reader(schema);
}

Fixed version (ground truth):
@Override public ObjectReader schemaBasedReader(FormatSchema schema){
  return reader(schema);
}
Program: 151728
Project: 151728
Buggy source:
public ObjectWriter schemaBasedWriter(FormatSchema schema){
  return writer(schema);
}

Fixed version (ground truth):
@Override public ObjectWriter schemaBasedWriter(FormatSchema schema){
  return writer(schema);
}
Program: 151729
Project: 151729
Buggy source:
/** 
 * Method called to handle details of initializing things to return the very first token.
 */
protected JsonToken _handleStartDoc() throws IOException, JsonParseException {
  if (_schema.useHeader()) {
    _readHeaderLine();
  }
  if (!_reader.hasMoreInput()) {
    _state=STATE_DOC_END;
    if (isEnabled(Feature.WRAP_AS_ARRAY)) {
      _parsingContext=_reader.childArrayContext(_parsingContext);
      return JsonToken.START_ARRAY;
    }
    return null;
  }
  if (isEnabled(Feature.WRAP_AS_ARRAY)) {
    _state=STATE_RECORD_START;
    return JsonToken.START_ARRAY;
  }
  return _handleRecordStart();
}

Fixed version (ground truth):
/** 
 * Method called to handle details of initializing things to return the very first token.
 */
protected JsonToken _handleStartDoc() throws IOException, JsonParseException {
  if (_schema.useHeader()) {
    _readHeaderLine();
  }
  if (!_reader.hasMoreInput()) {
    _state=STATE_DOC_END;
    if (isEnabled(Feature.WRAP_AS_ARRAY)) {
      _parsingContext=_reader.childArrayContext(_parsingContext);
      return JsonToken.START_ARRAY;
    }
    return null;
  }
  if (isEnabled(Feature.WRAP_AS_ARRAY)) {
    _parsingContext=_reader.childArrayContext(_parsingContext);
    _state=STATE_RECORD_START;
    return JsonToken.START_ARRAY;
  }
  return _handleRecordStart();
}
Program: 151730
Project: 151730
Buggy source:
protected JsonToken _handleUnnamedValue() throws IOException, JsonParseException {
  String next=_reader.nextString();
  if (next == null) {
    _parsingContext=_parsingContext.getParent();
    if (_reader.reachedEOF()) {
      _state=STATE_DOC_END;
    }
 else {
      _state=STATE_RECORD_START;
    }
    return JsonToken.END_ARRAY;
  }
  _currentValue=next;
  ++_columnIndex;
  return JsonToken.VALUE_STRING;
}

Fixed version (ground truth):
protected JsonToken _handleUnnamedValue() throws IOException, JsonParseException {
  String next=_reader.nextString();
  if (next == null) {
    _parsingContext=_parsingContext.getParent();
    if (!_reader.startNewLine()) {
      _state=STATE_DOC_END;
    }
 else {
      _state=STATE_RECORD_START;
    }
    return JsonToken.END_ARRAY;
  }
  _currentValue=next;
  ++_columnIndex;
  return JsonToken.VALUE_STRING;
}
Program: 151731
Project: 151731
Buggy source:
protected JsonToken _handleNextEntry() throws IOException, JsonParseException {
  String next=_reader.nextString();
  if (next == null) {
    _parsingContext=_parsingContext.getParent();
    if (_reader.reachedEOF()) {
      _state=STATE_DOC_END;
    }
 else {
      _state=STATE_RECORD_START;
    }
    return JsonToken.END_OBJECT;
  }
  _state=STATE_NAMED_VALUE;
  _currentValue=next;
  if (_columnIndex >= _columnCount) {
    _reportError("String_Node_Str" + _columnCount + "String_Node_Str"+ next.length()+ "String_Node_Str"+ next+ "String_Node_Str");
  }
  _currentName=_schema.column(_columnIndex).getName();
  return JsonToken.FIELD_NAME;
}

Fixed version (ground truth):
protected JsonToken _handleNextEntry() throws IOException, JsonParseException {
  String next=_reader.nextString();
  if (next == null) {
    _parsingContext=_parsingContext.getParent();
    if (!_reader.startNewLine()) {
      _state=STATE_DOC_END;
    }
 else {
      _state=STATE_RECORD_START;
    }
    return JsonToken.END_OBJECT;
  }
  _state=STATE_NAMED_VALUE;
  _currentValue=next;
  if (_columnIndex >= _columnCount) {
    _reportError("String_Node_Str" + _columnCount + "String_Node_Str"+ next.length()+ "String_Node_Str"+ next+ "String_Node_Str");
  }
  _currentName=_schema.column(_columnIndex).getName();
  return JsonToken.FIELD_NAME;
}
Program: 151733
Project: 151733
Buggy source:
protected String _nextUnquotedString(char[] outBuf,int outPtr) throws IOException, JsonParseException {
  int c;
  final char[] inputBuffer=_inputBuffer;
  main_loop:   while (true) {
    int ptr=_inputPtr;
    if (ptr >= _inputEnd) {
      if (!loadMore()) {
        _inputPtr=ptr;
        break main_loop;
      }
    }
    if (outPtr >= outBuf.length) {
      outBuf=_textBuffer.finishCurrentSegment();
      outPtr=0;
    }
    final int max=Math.min(_inputEnd,(ptr + (outBuf.length - outPtr)));
    while (ptr < max) {
      c=inputBuffer[ptr++];
      if (c <= _maxSpecialChar) {
        if (c == _separatorChar) {
          _inputPtr=ptr;
          break main_loop;
        }
        if (c == '\r' || c == '\n') {
          _inputPtr=ptr;
          _pendingLF=c;
          break main_loop;
        }
        if (c == _escapeChar) {
          _inputPtr=ptr;
          outBuf[outPtr++]=_unescape();
          continue main_loop;
        }
      }
      outBuf[outPtr++]=(char)c;
    }
    _inputPtr=ptr;
  }
  return _textBuffer.finishAndReturn(outPtr,_trimSpaces);
}

Fixed version (ground truth):
protected String _nextUnquotedString(char[] outBuf,int outPtr) throws IOException, JsonParseException {
  int c;
  final char[] inputBuffer=_inputBuffer;
  main_loop:   while (true) {
    int ptr=_inputPtr;
    if (ptr >= _inputEnd) {
      if (!loadMore()) {
        _inputPtr=ptr;
        break main_loop;
      }
      ptr=_inputPtr;
    }
    if (outPtr >= outBuf.length) {
      outBuf=_textBuffer.finishCurrentSegment();
      outPtr=0;
    }
    final int max=Math.min(_inputEnd,(ptr + (outBuf.length - outPtr)));
    while (ptr < max) {
      c=inputBuffer[ptr++];
      if (c <= _maxSpecialChar) {
        if (c == _separatorChar) {
          _inputPtr=ptr;
          break main_loop;
        }
        if (c == '\r' || c == '\n') {
          _inputPtr=ptr;
          _pendingLF=c;
          break main_loop;
        }
        if (c == _escapeChar) {
          _inputPtr=ptr;
          outBuf[outPtr++]=_unescape();
          continue main_loop;
        }
      }
      outBuf[outPtr++]=(char)c;
    }
    _inputPtr=ptr;
  }
  return _textBuffer.finishAndReturn(outPtr,_trimSpaces);
}
Program: 151734
Project: 151734
Buggy source:
/** 
 * Test using non-wrapped sequence of entries
 */
public void testAsSequence() throws Exception {
  CsvMapper mapper=mapperForCsv();
  mapper.disable(CsvParser.Feature.WRAP_AS_ARRAY);
  MappingIterator<Entry> it=mapper.readerWithSchemaFor(Entry.class).readValues("String_Node_Str");
  Entry entry;
  assertTrue(it.hasNext());
  assertNotNull(entry=it.next());
  assertEquals(1,entry.x);
  assertEquals(2,entry.y);
  assertTrue(it.hasNext());
  assertNotNull(entry=it.next());
  assertEquals(-3,entry.x);
  assertEquals(0,entry.y);
  assertTrue(it.hasNext());
  assertNotNull(entry=it.next());
  assertEquals(5,entry.x);
  assertEquals(6,entry.y);
  assertFalse(it.hasNext());
}

Fixed version (ground truth):
public void testAsSequence() throws Exception {
  CsvMapper mapper=mapperForCsv();
  mapper.disable(CsvParser.Feature.WRAP_AS_ARRAY);
  MappingIterator<Entry> it=mapper.readerWithSchemaFor(Entry.class).readValues("String_Node_Str");
  Entry entry;
  assertTrue(it.hasNext());
  assertNotNull(entry=it.next());
  assertEquals(1,entry.x);
  assertEquals(2,entry.y);
  assertTrue(it.hasNext());
  assertNotNull(entry=it.next());
  assertEquals(-3,entry.x);
  assertEquals(0,entry.y);
  assertTrue(it.hasNext());
  assertNotNull(entry=it.next());
  assertEquals(5,entry.x);
  assertEquals(6,entry.y);
  assertFalse(it.hasNext());
}
Program: 151735
Project: 151735
Buggy source:
/** 
 * Test using sequence of entries wrapped in a logical array.
 */
public void testAsWrappedArray() throws Exception {
  CsvMapper mapper=mapperForCsv();
  mapper.enable(CsvParser.Feature.WRAP_AS_ARRAY);
  Entry[] entries=mapper.readerWithSchemaFor(Entry.class).withType(Entry[].class).readValue("String_Node_Str");
  assertEquals(3,entries.length);
  assertEquals(1,entries[0].x);
  assertEquals(2,entries[0].y);
  assertEquals(0,entries[1].x);
  assertEquals(0,entries[1].y);
  assertEquals(123,entries[2].x);
  assertEquals(123456789,entries[2].y);
}

Fixed version (ground truth):
public void testAsWrappedArray() throws Exception {
  CsvMapper mapper=mapperForCsv();
  mapper.enable(CsvParser.Feature.WRAP_AS_ARRAY);
  Entry[] entries=mapper.readerWithSchemaFor(Entry.class).withType(Entry[].class).readValue("String_Node_Str");
  assertEquals(3,entries.length);
  assertEquals(1,entries[0].x);
  assertEquals(2,entries[0].y);
  assertEquals(0,entries[1].x);
  assertEquals(0,entries[1].y);
  assertEquals(123,entries[2].x);
  assertEquals(123456789,entries[2].y);
}
Program: 151736
Project: 151736
Buggy source:
/** 
 * Method called to process the expected header line
 */
protected void _readHeaderLine() throws IOException, JsonParseException {
  if (_schema.size() > 0) {
    while (_reader.nextString() != null) {
      ;
    }
    return;
  }
  String name;
  CsvSchema.Builder builder=_schema.rebuild().clearColumns();
  while ((name=_reader.nextString()) != null) {
    name=name.trim();
    CsvSchema.Column prev=_schema.column(name);
    if (prev != null) {
      builder.addColumn(name,prev.getType());
    }
 else {
      builder.addColumn(name);
    }
  }
  CsvSchema newSchema=builder.build();
  int size=newSchema.size();
  if (size < 2) {
    String first=(size == 0) ? "String_Node_Str" : newSchema.column(0).getName().trim();
    if (first.length() == 0) {
      _reportError("String_Node_Str");
    }
  }
  setSchema(builder.build());
}

Fixed version (ground truth):
/** 
 * Method called to process the expected header line
 */
protected void _readHeaderLine() throws IOException, JsonParseException {
  if (_schema.size() > 0) {
    while (_reader.nextString() != null) {
    }
    return;
  }
  String name;
  CsvSchema.Builder builder=_schema.rebuild().clearColumns();
  while ((name=_reader.nextString()) != null) {
    name=name.trim();
    CsvSchema.Column prev=_schema.column(name);
    if (prev != null) {
      builder.addColumn(name,prev.getType());
    }
 else {
      builder.addColumn(name);
    }
  }
  CsvSchema newSchema=builder.build();
  int size=newSchema.size();
  if (size < 2) {
    String first=(size == 0) ? "String_Node_Str" : newSchema.column(0).getName().trim();
    if (first.length() == 0) {
      _reportError("String_Node_Str");
    }
  }
  setSchema(builder.build());
}
Program: 151739
Project: 151739
Buggy source:
protected int _skipLeadingSpace() throws IOException, JsonParseException {
  _tokenInputTotal=_currInputProcessed + _inputPtr - 1;
  _tokenInputRow=_currInputRow;
  _tokenInputCol=_inputPtr - _currInputRowStart - 1;
  while (true) {
    if (_inputPtr >= _inputEnd) {
      if (!loadMore()) {
        return -1;
      }
    }
    char ch=_inputBuffer[_inputPtr++];
    if (ch > ' ') {
      return ch;
    }
switch (ch) {
case '\r':
case '\n':
      return ch;
  }
}
}

Fixed version (ground truth):
protected int _skipLeadingSpace() throws IOException, JsonParseException {
  while (true) {
    if (_inputPtr >= _inputEnd) {
      if (!loadMore()) {
        return -1;
      }
    }
    char ch=_inputBuffer[_inputPtr++];
    if (ch > ' ') {
      return ch;
    }
switch (ch) {
case '\r':
case '\n':
      return ch;
  }
}
}
Program: 151740
Project: 151740
Buggy source:
/** 
 * Creates a new rule with a driver running on the specified port.
 * @param port The port on which the driver should listen
 */
public ClientDriverRule(int port){
  clientDriver=new ClientDriverFactory().createClientDriver(port);
}

Fixed version (ground truth):
protected ClientDriverRule(ClientDriver clientDriver){
  this.clientDriver=clientDriver;
}
Program: 151741
Project: 151741
Buggy source:
@Override protected SslContextFactory getSslContextFactory(){
  SslContextFactory sslContextFactoryFactory=new SslContextFactory();
  sslContextFactoryFactory.setKeyStore(keyStore);
  sslContextFactoryFactory.setCertAlias(certificateAlias);
  sslContextFactoryFactory.setKeyStorePassword(password);
  sslContextFactoryFactory.setKeyManagerPassword(password);
  sslContextFactoryFactory.checkKeyStore();
  return sslContextFactoryFactory;
}

Fixed version (ground truth):
@Override protected SslContextFactory getSslContextFactory(){
  SslContextFactory sslContextFactoryFactory=new SslContextFactory();
  sslContextFactoryFactory.setKeyStore(keyStore);
  sslContextFactoryFactory.setCertAlias(certificateAlias);
  sslContextFactoryFactory.setKeyStorePassword(password);
  return sslContextFactoryFactory;
}
Program: 151742
Project: 151742
Buggy source:
public SecureClientDriverFactory certAlias(String certAlias){
  this.certAlias=certAlias;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the certificate alias. Certificate alias may not be null or empty when building.
 * @param certAlias the certificate alias
 * @return the factory object
 */
public SecureClientDriverFactory certAlias(String certAlias){
  this.certAlias=certAlias;
  return this;
}
Program: 151743
Project: 151743
Buggy source:
/** 
 * Sets the password. Password may not be null or empty when building. 
 * @param port the port
 * @return the factory object
 */
public SecureClientDriverFactory password(String password){
  this.password=password;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the password. Password may not be null or empty when building.
 * @param password the certificate's password
 * @return the factory object
 */
public SecureClientDriverFactory password(String password){
  this.password=password;
  return this;
}
Program: 151744
Project: 151744
Buggy source:
public SecureClientDriverFactory keyStore(KeyStore keyStore){
  this.keyStore=keyStore;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the key store. Key store may not be null or empty when building. It has to contain a certificate.
 * @param keyStore the key store
 * @return the factory object
 */
public SecureClientDriverFactory keyStore(KeyStore keyStore){
  this.keyStore=keyStore;
  return this;
}
Program: 151745
Project: 151745
Buggy source:
/** 
 * Creates a new rule which binds the driver to a free port.
 * @param keyStore the key store with the certificate
 * @param password the certificate's password
 * @param certAlias the alias of the certificate
 */
public SecureClientDriverRule(int port,KeyStore keyStore,String password,String certAlias){
  clientDriver=new SecureClientDriverFactory().createClientDriver(port,keyStore,password,certAlias);
}

Fixed version (ground truth):
/** 
 * Creates a new rule which binds the driver to a free port.
 * @param keyStore the key store with the certificate
 * @param password the certificate's password
 * @param certAlias the alias of the certificate
 */
public SecureClientDriverRule(int port,KeyStore keyStore,String password,String certAlias){
  super(new SecureClientDriverFactory().createClientDriver(port,keyStore,password,certAlias));
}
Program: 151746
Project: 151746
Buggy source:
private ClientDriverRequestResponsePair getMatchingRequestPair(HttpServletRequest request){
  int index=0;
  ClientDriverExpectation matchedExpectation=null;
  for (index=0; index < expectations.size(); index++) {
    ClientDriverExpectation thisExpectation=expectations.get(index);
    ClientDriverRequestResponsePair thisPair=thisExpectation.getPair();
    if (matcher.isMatch(new HttpRealRequest(request),thisPair.getRequest())) {
      thisExpectation.match();
      if (matchedExpectation == null) {
        matchedExpectation=thisExpectation;
        break;
      }
    }
  }
  if (matchedExpectation == null) {
    unexpectedRequest=request.getMethod() + "String_Node_Str" + request.getPathInfo();
    String reqQuery=request.getQueryString();
    if (reqQuery != null) {
      unexpectedRequest+="String_Node_Str" + reqQuery;
    }
    throw new ClientDriverInternalException("String_Node_Str" + unexpectedRequest,null);
  }
  if (matchedExpectation.isSatisfied()) {
    expectations.remove(index);
  }
  return matchedExpectation.getPair();
}

Fixed version (ground truth):
private ClientDriverRequestResponsePair getMatchingRequestPair(HttpServletRequest request){
  int index=0;
  ClientDriverExpectation matchedExpectation=null;
  HttpRealRequest realRequest=new HttpRealRequest(request);
  for (index=0; index < expectations.size(); index++) {
    ClientDriverExpectation thisExpectation=expectations.get(index);
    ClientDriverRequestResponsePair thisPair=thisExpectation.getPair();
    if (matcher.isMatch(realRequest,thisPair.getRequest())) {
      thisExpectation.match();
      if (matchedExpectation == null) {
        matchedExpectation=thisExpectation;
        break;
      }
    }
  }
  if (matchedExpectation == null) {
    unexpectedRequest=request.getMethod() + "String_Node_Str" + request.getPathInfo();
    String reqQuery=request.getQueryString();
    if (reqQuery != null) {
      unexpectedRequest+="String_Node_Str" + reqQuery;
    }
    throw new ClientDriverInternalException("String_Node_Str" + unexpectedRequest,null);
  }
  if (matchedExpectation.isSatisfied()) {
    expectations.remove(index);
  }
  return matchedExpectation.getPair();
}
Program: 151747
Project: 151747
Buggy source:
@Override public void describeTo(Description description){
  description.appendText("String_Node_Str" + jsonPath + "String_Node_Str");
  matcher.describeTo(description);
}

Fixed version (ground truth):
@Override public void describeTo(Description description){
  description.appendText("String_Node_Str" + jsonPath + "String_Node_Str");
  if (matcher != null) {
    description.appendText("String_Node_Str");
    matcher.describeTo(description);
  }
}
Program: 151748
Project: 151748
Buggy source:
/** 
 * Add in an expected   {@link ClientDriverRequest}/  {@link ClientDriverResponse} pair.
 * @param request The expected request
 * @param response The response to serve to that request
 */
public void addExpectation(ClientDriverRequest request,ClientDriverResponse response){
  handler.addExpectation(request,response);
}

Fixed version (ground truth):
/** 
 * Add in an expected   {@link ClientDriverRequest}/  {@link ClientDriverResponse} pair.
 * @param request  The expected request
 * @param response The response to serve to that request
 */
public void addExpectation(ClientDriverRequest request,ClientDriverResponse response){
  handler.addExpectation(request,response);
}
Program: 151749
Project: 151749
Buggy source:
/** 
 * Constructor. This will find a free port, bind to it and start the server up before it returns.
 * @param handler The  {@link ClientDriverJettyHandler} to use.
 */
public ClientDriver(ClientDriverJettyHandler handler){
  this.handler=handler;
  try {
    portNum=getFreePort();
  }
 catch (  IOException ioe) {
    throw new ClientDriverSetupException("String_Node_Str",ioe);
  }
  jettyServer=new Server(portNum);
  try {
    jettyServer.setHandler(handler.getJettyHandler());
    jettyServer.start();
  }
 catch (  Exception e) {
    throw new ClientDriverSetupException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * Constructor. This will find a free port, bind to it and start the server up before it returns.
 * @param handler The {@link ClientDriverJettyHandler} to use.
 * @param port    The port to listen on.  Expect startup errors if this port is not free.
 */
public ClientDriver(ClientDriverJettyHandler handler,int port){
  this.portNum=port;
  this.handler=handler;
  jettyServer=new Server(portNum);
  startJetty();
}
Program: 151750
Project: 151750
Buggy source:
/** 
 * Factory method to create and start a   {@link ClientDriver}.
 * @return A new {@link ClientDriver}, which has found a free port, bound to it and started up.
 */
public ClientDriver createClientDriver(){
  return new ClientDriver(new DefaultClientDriverJettyHandler(new DefaultRequestMatcher()));
}

Fixed version (ground truth):
/** 
 * Factory method to create and start a   {@link ClientDriver} on a specific port.
 * @param port The port to listen on.  If this port is not available a runtime exception will be thrown.
 * @return A new {@link ClientDriver}, which has found a free port, bound to it and started up.
 */
public ClientDriver createClientDriver(int port){
  return new ClientDriver(new DefaultClientDriverJettyHandler(new DefaultRequestMatcher()),port);
}
Program: 151751
Project: 151751
Buggy source:
/** 
 * Add a path to a url.  This method will ensure that there is always exactly one "/" character between segments (so you don't have to :).
 * @param path the path, eg "foo/bar"
 * @return The new Url object (for chaining calls)
 */
public Url withPath(String path){
  if (!(url.endsWith("String_Node_Str") || path.startsWith("String_Node_Str"))) {
    url.append("String_Node_Str");
  }
  if (url.endsWith("String_Node_Str") && path.startsWith("String_Node_Str")) {
    path=path.substring(1);
  }
  url.append(path);
  return this;
}

Fixed version (ground truth):
/** 
 * Add a path to a url.  This method will ensure that there is always exactly one "/" character between segments (so you don't have to :).
 * @param path the path, eg "foo/bar"
 * @return The new Url object (for chaining calls)
 */
public final Url withPath(String path){
  if (!(url.endsWith("String_Node_Str") || path.startsWith("String_Node_Str"))) {
    url.append("String_Node_Str");
  }
  if (url.endsWith("String_Node_Str") && path.startsWith("String_Node_Str")) {
    path=path.substring(1);
  }
  url.append(path);
  return this;
}
Program: 151752
Project: 151752
Buggy source:
/** 
 * You can pass this object to all the get/post/put/delete etc methods.
 * @return The Url, correctly formatted.
 */
public String toString(){
  String[] baseParts;
  if (url.toString().contains("String_Node_Str")) {
    baseParts=url.toString().split("String_Node_Str");
  }
 else {
    baseParts=new String[]{"String_Node_Str",url.toString()};
  }
  String scheme, ssp, path, query;
  scheme=baseParts[0];
  if (baseParts[1].contains("String_Node_Str")) {
    ssp=baseParts[1].substring(0,baseParts[1].indexOf("String_Node_Str"));
    path=baseParts[1].substring(baseParts[1].indexOf("String_Node_Str"));
  }
 else {
    ssp=baseParts[1];
    path="String_Node_Str";
  }
  query=StringUtils.trimToNull(StringUtils.join(queryParams,"String_Node_Str"));
  try {
    return new URI(scheme,ssp,path,query,null).toASCIIString();
  }
 catch (  URISyntaxException use) {
    throw new RuntimeUriSyntaxException("String_Node_Str",use);
  }
}

Fixed version (ground truth):
/** 
 * You can pass this object to all the get/post/put/delete etc methods.
 * @return The Url, correctly formatted.
 */
public final String toString(){
  String[] baseParts;
  if (url.toString().contains("String_Node_Str")) {
    baseParts=url.toString().split("String_Node_Str");
  }
 else {
    baseParts=new String[]{"String_Node_Str",url.toString()};
  }
  String scheme, ssp, path, query;
  scheme=baseParts[0];
  if (baseParts[1].contains("String_Node_Str")) {
    ssp=baseParts[1].substring(0,baseParts[1].indexOf("String_Node_Str"));
    path=baseParts[1].substring(baseParts[1].indexOf("String_Node_Str"));
  }
 else {
    ssp=baseParts[1];
    path="String_Node_Str";
  }
  query=StringUtils.trimToNull(StringUtils.join(queryParams,"String_Node_Str"));
  try {
    return new URI(scheme,ssp,path,query,null).toASCIIString();
  }
 catch (  URISyntaxException use) {
    throw new RuntimeUriSyntaxException("String_Node_Str",use);
  }
}
Program: 151753
Project: 151753
Buggy source:
/** 
 * Adds a query-string parameter to the end of the url, like ?key=val.
 * @param key   The key for the query string.
 * @param value The value for the query string.
 * @return The Url with the query string param added (for chaining calls)
 */
public Url withParam(String key,String value){
  queryParams.add(new QueryParam(key,value));
  return this;
}

Fixed version (ground truth):
/** 
 * Adds a query-string parameter to the end of the url, like ?key=val.
 * @param key   The key for the query string.
 * @param value The value for the query string.
 * @return The Url with the query string param added (for chaining calls)
 */
public final Url withParam(String key,String value){
  queryParams.add(new QueryParam(key,value));
  return this;
}
Program: 151754
Project: 151754
Buggy source:
/** 
 * Setup a Url with a base path, like "http://localhost:8080".  You can also supply just "localhost" and the "http" will be
 * @param base the base Url.
 */
public Url(String base){
  this.url=new StrBuilder(base);
  queryParams=new ArrayList<QueryParam>();
}

Fixed version (ground truth):
/** 
 * Setup a Url with a base path, like "http://localhost:8080".  You can also supply just "localhost" and the "http" will be inferred.
 * @param base the base Url.
 */
public Url(String base){
  this.url=new StrBuilder(base);
  queryParams=new ArrayList<QueryParam>();
}
Program: 151755
Project: 151755
Buggy source:
@Override public String toString(){
  StrBuilder httpString=new StrBuilder();
  httpString.append(protocolVersion + "String_Node_Str" + statusCode+ "String_Node_Str"+ statusMessage);
  httpString.appendNewLine();
  httpString.appendWithSeparators(headers,SystemUtils.LINE_SEPARATOR);
  if (StringUtils.isNotEmpty(content)) {
    httpString.appendNewLine();
    httpString.appendNewLine();
    httpString.append(StringUtils.abbreviate(content,Response.MAX_BODY_DISPLAY_LENGTH));
  }
  return httpString.toString();
}

Fixed version (ground truth):
@Override public String toString(){
  StrBuilder httpString=new StrBuilder();
  httpString.append(protocolVersion).append("String_Node_Str").append(statusCode).append("String_Node_Str").append(statusMessage);
  httpString.appendNewLine();
  httpString.appendWithSeparators(headers,SystemUtils.LINE_SEPARATOR);
  if (StringUtils.isNotEmpty(content)) {
    httpString.appendNewLine();
    httpString.appendNewLine();
    httpString.append(StringUtils.abbreviate(content,Response.MAX_BODY_DISPLAY_LENGTH));
  }
  return httpString.toString();
}
Program: 151756
Project: 151756
Buggy source:
@Override public String toString(){
  StrBuilder httpString=new StrBuilder();
  httpString.append(protocolVersion + "String_Node_Str" + statusCode+ "String_Node_Str"+ statusMessage);
  httpString.appendNewLine();
  httpString.appendWithSeparators(headers,SystemUtils.LINE_SEPARATOR);
  if (StringUtils.isNotEmpty(content)) {
    httpString.appendNewLine();
    httpString.append(StringUtils.abbreviate(content,Response.MAX_BODY_DISPLAY_LENGTH));
  }
  return httpString.toString();
}

Fixed version (ground truth):
@Override public String toString(){
  StrBuilder httpString=new StrBuilder();
  httpString.append(protocolVersion + "String_Node_Str" + statusCode+ "String_Node_Str"+ statusMessage);
  httpString.appendNewLine();
  httpString.appendWithSeparators(headers,SystemUtils.LINE_SEPARATOR);
  if (StringUtils.isNotEmpty(content)) {
    httpString.appendNewLine();
    httpString.appendNewLine();
    httpString.append(StringUtils.abbreviate(content,Response.MAX_BODY_DISPLAY_LENGTH));
  }
  return httpString.toString();
}
Program: 151757
Project: 151757
Buggy source:
/** 
 * Given a package name, search the classpath for all classes that extend sundial.job
 * @param pkgname
 * @return
 */
public Set<Class<? extends Job>> getJobClasses(String pkgname){
  Set<Class<? extends Job>> classes=new HashSet<Class<? extends Job>>();
  String relPath=pkgname.replace('.','/');
  URL resource=getResource(relPath);
  if (resource == null) {
    throw new RuntimeException("String_Node_Str" + relPath);
  }
  logger.info("String_Node_Str" + pkgname + "String_Node_Str"+ resource.toString()+ "String_Node_Str");
  if (resource.toString().startsWith("String_Node_Str")) {
    processJarfile(resource,pkgname,classes);
  }
 else {
    processDirectory(new File(resource.getPath()),pkgname,classes);
  }
  return classes;
}

Fixed version (ground truth):
/** 
 * Given a package name, search the classpath for all classes that extend sundial.job
 * @param pkgname
 * @return
 */
public Set<Class<? extends Job>> getJobClasses(String pkgname){
  Set<Class<? extends Job>> classes=new HashSet<Class<? extends Job>>();
  String relPath=pkgname.replace('.','/').replace("String_Node_Str","String_Node_Str");
  URL resource=getResource(relPath);
  if (resource == null) {
    throw new RuntimeException("String_Node_Str" + relPath);
  }
  logger.info("String_Node_Str" + pkgname + "String_Node_Str"+ resource.toString()+ "String_Node_Str");
  if (resource.toString().startsWith("String_Node_Str")) {
    processJarfile(resource,pkgname,classes);
  }
 else {
    processDirectory(new File(resource.getPath()),pkgname,classes);
  }
  return classes;
}
Program: 151760
Project: 151760
Buggy source:
/** 
 * Convenience method to get the Job Name
 * @return
 */
public String getJobName(){
  return getStringValue(KEY_JOB_NAME);
}

Fixed version (ground truth):
/** 
 * Convenience method to get the Job Name
 * @return
 */
public String getJobName(){
  return get(KEY_JOB_NAME);
}