nus-yam/ex-repair huggingface dataset:
Program: 131850
Project: 131850
Buggy source:
public void modify(double activationDegree,TNorm activation){
  for (  Proposition proposition : conclusions) {
    double threshold=activationDegree;
    for (    Hedge hedge : proposition.getHedges()) {
      threshold=hedge.hedge(threshold);
    }
    Thresholded term=new Thresholded();
    term.setTerm(proposition.getTerm());
    term.setThreshold(threshold);
    term.setActivation(activation);
    OutputVariable outputVariable=(OutputVariable)proposition.getVariable();
    outputVariable.output().getTerms().add(term);
    FuzzyLite.logger().fine(String.format("String_Node_Str",term.toString()));
  }
}

Fixed version (ground truth):
public void modify(double activationDegree,TNorm activation){
  for (  Proposition proposition : conclusions) {
    if (!proposition.variable.isEnabled()) {
      continue;
    }
    double threshold=activationDegree;
    for (    Hedge hedge : proposition.getHedges()) {
      threshold=hedge.hedge(threshold);
    }
    Thresholded term=new Thresholded();
    term.setTerm(proposition.getTerm());
    term.setThreshold(threshold);
    term.setActivation(activation);
    OutputVariable outputVariable=(OutputVariable)proposition.getVariable();
    outputVariable.output().getTerms().add(term);
    FuzzyLite.logger().fine(String.format("String_Node_Str",term.toString()));
  }
}
Program: 131851
Project: 131851
Buggy source:
@Override public String toString(){
  String result=variable.getName() + "String_Node_Str" + Rule.FL_IS+ "String_Node_Str";
  for (  Hedge hedge : hedges) {
    result+=hedge.getName() + "String_Node_Str";
  }
  result+=term.getName();
  return result;
}

Fixed version (ground truth):
@Override public String toString(){
  String result=variable.getName() + "String_Node_Str" + Rule.FL_IS+ "String_Node_Str";
  for (  Hedge hedge : hedges) {
    result+=hedge.getName() + "String_Node_Str";
  }
  if (term != null) {
    result+=term.getName();
  }
  return result;
}
Program: 131852
Project: 131852
Buggy source:
public double defuzzify(){
  double result;
  boolean isValid=this.output.getTerms().size() > 0;
  if (isValid) {
    result=this.defuzzifier.defuzzify(output,minimum,maximum);
  }
 else {
    if (this.lockValidOutput && !Double.isNaN(this.lastValidOutput)) {
      result=this.lastValidOutput;
    }
 else {
      result=this.defaultValue;
    }
  }
  if (this.lockOutputRange) {
    if (Op.isLt(result,minimum)) {
      result=minimum;
    }
    if (Op.isGt(result,maximum)) {
      result=maximum;
    }
  }
  if (this.lockValidOutput && isValid) {
    this.lastValidOutput=result;
  }
  return result;
}

Fixed version (ground truth):
public double defuzzify(){
  double result;
  boolean isValid=this.enabled && !this.output.getTerms().isEmpty();
  if (isValid) {
    result=this.defuzzifier.defuzzify(output,minimum,maximum);
  }
 else {
    if (this.lockValidOutput && !Double.isNaN(this.lastValidOutput)) {
      result=this.lastValidOutput;
    }
 else {
      result=this.defaultValue;
    }
  }
  if (this.lockOutputRange) {
    if (Op.isLt(result,minimum)) {
      result=minimum;
    }
    if (Op.isGt(result,maximum)) {
      result=maximum;
    }
  }
  if (this.lockValidOutput && isValid) {
    this.lastValidOutput=result;
  }
  return result;
}
Program: 131853
Project: 131853
Buggy source:
public double defuzzifyNoLocks(){
  double result;
  boolean isValid=output.getTerms().size() > 0;
  if (isValid) {
    result=this.defuzzifier.defuzzify(output,minimum,maximum);
  }
 else {
    result=this.defaultValue;
  }
  return result;
}

Fixed version (ground truth):
public double defuzzifyNoLocks(){
  double result;
  boolean isValid=this.enabled && !output.getTerms().isEmpty();
  if (isValid) {
    result=this.defuzzifier.defuzzify(output,minimum,maximum);
  }
 else {
    result=this.defaultValue;
  }
  return result;
}
Program: 131854
Project: 131854
Buggy source:
public Variable(String name,double minimum,double maximum){
  this.name=name;
  this.minimum=minimum;
  this.maximum=maximum;
  this.terms=new ArrayList<>();
}

Fixed version (ground truth):
public Variable(String name,double minimum,double maximum){
  this.name=name;
  this.minimum=minimum;
  this.maximum=maximum;
  this.terms=new ArrayList<>();
  this.enabled=true;
}
Program: 131855
Project: 131855
Buggy source:
protected void executeSequentially(){
  try {
    begin();
    if (source != null) {
      final Reader reader=source.read();
      if (reader != null)       extractor.extract(reader);
    }
    final OETLPipeline pipeline=new OETLPipeline(this,transformers,loader,logLevel,maxRetries,haltOnError);
    pipeline.begin();
    while (extractor.hasNext()) {
      final OExtractedItem current=extractor.next();
      pipeline.execute(current);
    }
    end();
  }
 catch (  OETLProcessHaltedException e) {
    out(LOG_LEVELS.ERROR,"String_Node_Str",e);
  }
}

Fixed version (ground truth):
protected void executeSequentially(){
  try {
    begin();
    if (source != null) {
      final Reader reader=source.read();
      if (reader != null)       extractor.extract(reader);
    }
    final OETLPipeline pipeline=new OETLPipeline(this,transformers,loader,logLevel,maxRetries,haltOnError);
    pipeline.begin();
    while (extractor.hasNext()) {
      final OExtractedItem current=extractor.next();
      pipeline.execute(current);
    }
    end();
  }
 catch (  OETLProcessHaltedException e) {
    out(LOG_LEVELS.ERROR,"String_Node_Str",e);
    throw e;
  }
}
Program: 131857
Project: 131857
Buggy source:
@Override public ODocument getConfiguration(){
  return new ODocument().fromJSON("String_Node_Str" + getCommonConfigurationParameters() + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ stringArray2Json(ACTION.values())+ "String_Node_Str"+ "String_Node_Str");
}

Fixed version (ground truth):
@Override public ODocument getConfiguration(){
  return new ODocument().fromJSON("String_Node_Str" + getCommonConfigurationParameters() + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ stringArray2Json(ACTION.values())+ "String_Node_Str"+ "String_Node_Str");
}
Program: 131858
Project: 131858
Buggy source:
@Override public Object executeTransform(final Object input){
  final OrientVertex vertex;
  if (input instanceof OrientVertex)   vertex=(OrientVertex)input;
 else   if (input instanceof OIdentifiable)   vertex=pipeline.getGraphDatabase().getVertex(input);
 else   throw new OTransformException(getName() + "String_Node_Str" + input+ "String_Node_Str");
  final Object joinCurrentValue=joinValue != null ? joinValue : vertex.getProperty(joinFieldName);
  if (OMultiValue.isMultiValue(joinCurrentValue)) {
    for (    Object o : OMultiValue.getMultiValueIterable(joinCurrentValue)) {
      final Object r=lookup(o,false);
      if (createEdge(vertex,o,r) == null) {
        if (unresolvedLinkAction == ACTION.SKIP)         return null;
      }
    }
  }
 else {
    final Object result=lookup(joinCurrentValue,false);
    if (createEdge(vertex,joinCurrentValue,result) == null) {
      if (unresolvedLinkAction == ACTION.SKIP)       return null;
    }
  }
  return input;
}

Fixed version (ground truth):
@Override public Object executeTransform(final Object input){
  for (  Object o : OMultiValue.getMultiValueIterable(input)) {
    final OrientVertex vertex;
    if (o instanceof OrientVertex)     vertex=(OrientVertex)o;
 else     if (o instanceof OIdentifiable)     vertex=pipeline.getGraphDatabase().getVertex(o);
 else     throw new OTransformException(getName() + "String_Node_Str" + o+ "String_Node_Str");
    final Object joinCurrentValue=joinValue != null ? joinValue : vertex.getProperty(joinFieldName);
    if (OMultiValue.isMultiValue(joinCurrentValue)) {
      for (      Object ob : OMultiValue.getMultiValueIterable(joinCurrentValue)) {
        final Object r=lookup(ob,false);
        if (createEdge(vertex,ob,r) == null) {
          if (unresolvedLinkAction == ACTION.SKIP)           return null;
        }
      }
    }
 else {
      final Object result=lookup(joinCurrentValue,false);
      if (createEdge(vertex,joinCurrentValue,result) == null) {
        if (unresolvedLinkAction == ACTION.SKIP)         return null;
      }
    }
  }
  return input;
}
Program: 131859
Project: 131859
Buggy source:
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,final OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  edgeClass=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str")) {
    final String direction=iConfiguration.field("String_Node_Str");
    if ("String_Node_Str".equalsIgnoreCase(direction))     directionOut=true;
 else     if ("String_Node_Str".equalsIgnoreCase(direction))     directionOut=false;
 else     throw new OConfigurationException("String_Node_Str" + direction);
  }
  if (iConfiguration.containsField("String_Node_Str"))   targetVertexFields=(ODocument)iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   edgeFields=(ODocument)iConfiguration.field("String_Node_Str");
}

Fixed version (ground truth):
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,final OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  edgeClass=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str")) {
    final String direction=iConfiguration.field("String_Node_Str");
    if ("String_Node_Str".equalsIgnoreCase(direction))     directionOut=true;
 else     if ("String_Node_Str".equalsIgnoreCase(direction))     directionOut=false;
 else     throw new OConfigurationException("String_Node_Str" + direction);
  }
  if (iConfiguration.containsField("String_Node_Str"))   targetVertexFields=(ODocument)iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   edgeFields=(ODocument)iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   skipDuplicates=(Boolean)resolve(iConfiguration.field("String_Node_Str"));
}
Program: 131861
Project: 131861
Buggy source:
@Override public Object executeTransform(final Object input){
  Object joinValue=((ODocument)((OIdentifiable)input).getRecord()).field(joinFieldName);
  final Object result=lookup(joinValue,false);
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",joinValue,result);
  if (result == null) {
switch (unresolvedLinkAction) {
case NOTHING:
      break;
case ERROR:
    processor.getStats().incrementErrors();
  log(OETLProcessor.LOG_LEVELS.ERROR,"String_Node_Str",getName(),joinValue);
break;
case WARNING:
processor.getStats().incrementWarnings();
log(OETLProcessor.LOG_LEVELS.INFO,"String_Node_Str",getName(),joinValue);
break;
case SKIP:
return null;
case HALT:
throw new OETLProcessHaltedException("String_Node_Str" + joinValue + "String_Node_Str");
}
}
 else {
((ODocument)result).merge((ODocument)input,true,false);
log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",result,input);
return result;
}
return input;
}

Fixed version (ground truth):
@Override public Object executeTransform(final Object input){
  Object joinValue=((ODocument)((OIdentifiable)input).getRecord()).field(joinFieldName);
  final Object result=lookup(joinValue,false);
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",joinValue,result);
  if (result == null || OMultiValue.getSize(result) == 0) {
switch (unresolvedLinkAction) {
case NOTHING:
      break;
case ERROR:
    processor.getStats().incrementErrors();
  log(OETLProcessor.LOG_LEVELS.ERROR,"String_Node_Str",getName(),joinValue);
break;
case WARNING:
processor.getStats().incrementWarnings();
log(OETLProcessor.LOG_LEVELS.INFO,"String_Node_Str",getName(),joinValue);
break;
case SKIP:
return null;
case HALT:
throw new OETLProcessHaltedException("String_Node_Str" + joinValue + "String_Node_Str");
}
}
 else if (OMultiValue.getSize(result) > 1) throw new OETLProcessHaltedException("String_Node_Str" + joinValue + "String_Node_Str");
 else {
final Object o=OMultiValue.getFirstValue(result);
((ODocument)o).merge((ODocument)((OIdentifiable)input).getRecord(),true,false);
log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",result,input);
return o;
}
return input;
}
Program: 131862
Project: 131862
Buggy source:
@Override public void setUp(){
  super.setUp();
  graph.createVertexType("String_Node_Str");
  graph.createVertexType("String_Node_Str");
  graph.createEdgeType("String_Node_Str");
  graph.addVertex("String_Node_Str").setProperty("String_Node_Str","String_Node_Str");
  graph.commit();
}

Fixed version (ground truth):
@Override public void setUp(){
  super.setUp();
  final OrientVertexType v1=graph.createVertexType("String_Node_Str");
  final OrientVertexType v2=graph.createVertexType("String_Node_Str");
  final OrientEdgeType edgeType=graph.createEdgeType("String_Node_Str");
  edgeType.createProperty("String_Node_Str",OType.LINK,v2);
  edgeType.createProperty("String_Node_Str",OType.LINK,v1);
  edgeType.createIndex("String_Node_Str",OClass.INDEX_TYPE.UNIQUE,"String_Node_Str","String_Node_Str");
  graph.addVertex("String_Node_Str").setProperty("String_Node_Str","String_Node_Str");
  graph.commit();
}
Program: 131863
Project: 131863
Buggy source:
@Test public void testErrorOnDuplicateVertex(){
  process("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  assertEquals(1,graph.countVertices("String_Node_Str"));
}

Fixed version (ground truth):
@Test public void testErrorOnDuplicateVertex(){
  try {
    process("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    Assert.fail();
  }
 catch (  OETLProcessHaltedException e) {
    Assert.assertTrue(true);
  }
}
Program: 131864
Project: 131864
Buggy source:
public ODatabaseDocumentTx getDocumentDatabase(){
  return db;
}

Fixed version (ground truth):
public ODatabaseDocumentTx getDocumentDatabase(){
  if (db != null)   db.activateOnCurrentThread();
  return db;
}
Program: 131865
Project: 131865
Buggy source:
public OrientBaseGraph getGraphDatabase(){
  return graph;
}

Fixed version (ground truth):
public OrientBaseGraph getGraphDatabase(){
  if (graph != null)   graph.makeActive();
  return graph;
}
Program: 131868
Project: 131868
Buggy source:
@Override public void begin(){
  if (!wal)   OGlobalConfiguration.USE_WAL.setValue(wal);
  ODatabaseDocumentTx documentDatabase=init();
  if (documentDatabase == null) {
switch (dbType) {
case DOCUMENT:
      documentDatabase=new ODatabaseDocumentTx(dbURL);
    documentDatabase.open(dbUser,dbPassword);
  break;
case GRAPH:
final OrientGraphFactory factory=new OrientGraphFactory(dbURL);
final OrientBaseGraph graphDatabase=tx ? factory.getTx() : factory.getNoTx();
graphDatabase.setUseLightweightEdges(useLightweightEdges);
graphDatabase.setStandardElementConstraints(standardElementConstraints);
documentDatabase=graphDatabase.getRawGraph();
pipeline.setGraphDatabase(graphDatabase);
break;
}
pipeline.setDocumentDatabase(documentDatabase);
}
documentDatabase.declareIntent(new OIntentMassiveInsert());
}

Fixed version (ground truth):
@Override public void begin(){
  if (!wal)   OGlobalConfiguration.USE_WAL.setValue(wal);
  ODatabaseDocumentTx documentDatabase=init();
  if (documentDatabase == null) {
switch (dbType) {
case DOCUMENT:
      documentDatabase=new ODatabaseDocumentTx(dbURL);
    documentDatabase.open(dbUser,dbPassword);
  break;
case GRAPH:
final OrientGraphFactory factory=new OrientGraphFactory(dbURL,dbUser,dbPassword);
final OrientBaseGraph graphDatabase=tx ? factory.getTx() : factory.getNoTx();
graphDatabase.setUseLightweightEdges(useLightweightEdges);
graphDatabase.setStandardElementConstraints(standardElementConstraints);
documentDatabase=graphDatabase.getRawGraph();
pipeline.setGraphDatabase(graphDatabase);
break;
}
pipeline.setDocumentDatabase(documentDatabase);
}
documentDatabase.declareIntent(new OIntentMassiveInsert());
}
Program: 131869
Project: 131869
Buggy source:
@Override public Object executeTransform(final Object input){
  Object joinValue=((ODocument)input).field(joinFieldName);
  final Object result=lookup(joinValue,false);
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",joinValue,result);
  if (result == null) {
switch (unresolvedLinkAction) {
case NOTHING:
      break;
case ERROR:
    processor.getStats().incrementErrors();
  log(OETLProcessor.LOG_LEVELS.ERROR,"String_Node_Str",getName(),joinValue);
break;
case WARNING:
processor.getStats().incrementWarnings();
log(OETLProcessor.LOG_LEVELS.INFO,"String_Node_Str",getName(),joinValue);
break;
case SKIP:
return null;
case HALT:
throw new OETLProcessHaltedException("String_Node_Str" + joinValue + "String_Node_Str");
}
}
 else {
((ODocument)result).merge((ODocument)input,true,false);
log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",result,input);
return result;
}
return input;
}

Fixed version (ground truth):
@Override public Object executeTransform(final Object input){
  Object joinValue=((ODocument)((OIdentifiable)input).getRecord()).field(joinFieldName);
  final Object result=lookup(joinValue,false);
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",joinValue,result);
  if (result == null) {
switch (unresolvedLinkAction) {
case NOTHING:
      break;
case ERROR:
    processor.getStats().incrementErrors();
  log(OETLProcessor.LOG_LEVELS.ERROR,"String_Node_Str",getName(),joinValue);
break;
case WARNING:
processor.getStats().incrementWarnings();
log(OETLProcessor.LOG_LEVELS.INFO,"String_Node_Str",getName(),joinValue);
break;
case SKIP:
return null;
case HALT:
throw new OETLProcessHaltedException("String_Node_Str" + joinValue + "String_Node_Str");
}
}
 else {
((ODocument)result).merge((ODocument)input,true,false);
log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",result,input);
return result;
}
return input;
}
Program: 131872
Project: 131872
Buggy source:
@Override public void begin(){
  if (!wal)   OGlobalConfiguration.USE_WAL.setValue(wal);
  ODatabaseDocumentTx documentDatabase=init();
  if (documentDatabase == null) {
switch (dbType) {
case DOCUMENT:
      documentDatabase=new ODatabaseDocumentTx(dbURL);
    documentDatabase.open(dbUser,dbPassword);
  break;
case GRAPH:
final OrientGraphFactory factory=new OrientGraphFactory(dbURL);
final OrientBaseGraph graphDatabase=tx ? factory.getTx() : factory.getNoTx();
graphDatabase.setUseLightweightEdges(useLightweightEdges);
graphDatabase.setStandardElementConstraints(standardElementConstraints);
documentDatabase=graphDatabase.getRawGraph();
pipeline.setGraphDatabase(graphDatabase);
break;
}
pipeline.setDocumentDatabase(documentDatabase);
}
documentDatabase.declareIntent(new OIntentMassiveInsert());
}

Fixed version (ground truth):
@Override public void begin(){
  if (!wal)   OGlobalConfiguration.USE_WAL.setValue(wal);
  ODatabaseDocumentTx documentDatabase=init();
  if (documentDatabase == null) {
switch (dbType) {
case DOCUMENT:
      documentDatabase=new ODatabaseDocumentTx(dbURL);
    documentDatabase.open(dbUser,dbPassword);
  break;
case GRAPH:
final OrientGraphFactory factory=new OrientGraphFactory(dbURL,dbUser,dbPassword);
final OrientBaseGraph graphDatabase=tx ? factory.getTx() : factory.getNoTx();
graphDatabase.setUseLightweightEdges(useLightweightEdges);
graphDatabase.setStandardElementConstraints(standardElementConstraints);
documentDatabase=graphDatabase.getRawGraph();
pipeline.setGraphDatabase(graphDatabase);
break;
}
pipeline.setDocumentDatabase(documentDatabase);
}
documentDatabase.declareIntent(new OIntentMassiveInsert());
}
Program: 131875
Project: 131875
Buggy source:
/** 
 * Backport copy of   {@link Float#isFinite()} method that was introduced since Java 1.8 but we must support 1.6TODO replace after choosing Java 1.8 as minimal supported
 */
protected boolean isFinite(Float f){
  return Math.abs(f) <= FloatConsts.MAX_VALUE;
}

Fixed version (ground truth):
/** 
 * Backport copy of Float.isFinite() method that was introduced since Java 1.8 but we must support 1.6. TODO replace after choosing Java 1.8 as minimal supported
 */
protected boolean isFinite(Float f){
  return Math.abs(f) <= FloatConsts.MAX_VALUE;
}
Program: 131876
Project: 131876
Buggy source:
@Override public Object executeTransform(final Object input){
  if (skipTransform())   return null;
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",input);
  final List<String> fields=OStringSerializerHelper.smartSplit(input.toString(),new char[]{separator},0,-1,false,false,false,false);
  if (!isColumnNamesCorrect(fields))   return null;
  final ODocument doc=new ODocument();
  for (int i=0; i < columnNames.size() && i < fields.size(); ++i) {
    final String fieldName=columnNames.get(i);
    Object fieldValue=null;
    try {
      final String fieldStringValue=getCellContent(fields.get(i));
      final OType fieldType=columnTypes != null ? columnTypes.get(i) : null;
      if (fieldType != null && fieldType != OType.ANY) {
        fieldValue=getCellContent(fieldStringValue);
        try {
          fieldValue=OType.convert(fieldValue,fieldType.getDefaultJavaType());
          doc.field(fieldName,fieldValue);
        }
 catch (        Exception e) {
          processor.getStats().incrementErrors();
          log(OETLProcessor.LOG_LEVELS.ERROR,"String_Node_Str",processor.getExtractor().getProgress(),fieldName,i,fieldValue,fieldValue.getClass().getName(),fieldType);
        }
      }
 else       if (fieldStringValue != null && !fieldStringValue.isEmpty()) {
        fieldValue=determineTheType(fieldStringValue);
        if (nullValue != null && nullValue.equals(fieldValue))         continue;
        doc.field(fieldName,fieldValue);
      }
    }
 catch (    Exception e) {
      processor.getStats().incrementErrors();
      log(OETLProcessor.LOG_LEVELS.ERROR,"String_Node_Str",fieldName,fieldValue,e.toString());
    }
  }
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",doc);
  return doc;
}

Fixed version (ground truth):
@Override public Object executeTransform(final Object input){
  if (skipTransform())   return null;
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",input);
  final List<String> fields=OStringSerializerHelper.smartSplit(input.toString(),new char[]{separator},0,-1,false,false,false,false);
  if (!isColumnNamesCorrect(fields))   return null;
  final ODocument doc=new ODocument();
  for (int i=0; i < columnNames.size() && i < fields.size(); ++i) {
    final String fieldName=columnNames.get(i);
    Object fieldValue=null;
    try {
      final String fieldStringValue=getCellContent(fields.get(i));
      final OType fieldType=columnTypes != null ? columnTypes.get(i) : null;
      if (fieldType != null && fieldType != OType.ANY) {
        fieldValue=processKnownType(doc,i,fieldName,fieldStringValue,fieldType);
      }
 else {
        if (fieldStringValue == null)         fieldValue=null;
 else         fieldValue=determineTheType(fieldStringValue);
      }
      doc.field(fieldName,fieldValue);
    }
 catch (    Exception e) {
      processor.getStats().incrementErrors();
      log(OETLProcessor.LOG_LEVELS.ERROR,"String_Node_Str",fieldName,fieldValue,e.toString());
    }
  }
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",doc);
  return doc;
}
Program: 131877
Project: 131877
Buggy source:
public String getCellContent(String iValue){
  if (iValue == null)   return null;
  if (iValue.length() > 1 && (iValue.charAt(0) == stringCharacter && iValue.charAt(iValue.length() - 1) == stringCharacter))   return iValue.substring(1,iValue.length() - 1);
  return iValue;
}

Fixed version (ground truth):
public String getCellContent(String iValue){
  if (iValue == null || iValue.length() == 0 || "String_Node_Str".equals(iValue))   return null;
  if (iValue.length() > 1 && (iValue.charAt(0) == stringCharacter && iValue.charAt(iValue.length() - 1) == stringCharacter))   return iValue.substring(1,iValue.length() - 1);
  return iValue;
}
Program: 131878
Project: 131878
Buggy source:
@Test public void testNullCell(){
  String cfgJson="String_Node_Str";
  process(cfgJson);
  List<ODocument> res=getResult();
  ODocument doc=res.get(0);
  assertEquals(new Integer(1),(Integer)doc.field("String_Node_Str"));
  assertNull((Integer)doc.field("String_Node_Str"));
  assertEquals("String_Node_Str",(String)doc.field("String_Node_Str"));
}

Fixed version (ground truth):
@Test public void testNullCell(){
  String cfgJson="String_Node_Str";
  process(cfgJson);
  List<ODocument> res=getResult();
  ODocument doc=res.get(0);
  assertEquals(new Integer(1),(Integer)doc.field("String_Node_Str"));
  assertNull(doc.field("String_Node_Str"));
  assertEquals("String_Node_Str",(String)doc.field("String_Node_Str"));
}
Program: 131879
Project: 131879
Buggy source:
@Test public void testNullValueInCell(){
  String cfgJson="String_Node_Str";
  process(cfgJson);
  List<ODocument> res=getResult();
  ODocument doc=res.get(0);
  assertEquals(new Integer(1),(Integer)doc.field("String_Node_Str"));
  assertNull((Integer)doc.field("String_Node_Str"));
  assertEquals("String_Node_Str",(String)doc.field("String_Node_Str"));
}

Fixed version (ground truth):
@Test public void testNullValueInCell(){
  String cfgJson="String_Node_Str";
  process(cfgJson);
  List<ODocument> res=getResult();
  ODocument doc=res.get(0);
  assertEquals(new Integer(1),(Integer)doc.field("String_Node_Str"));
  assertNull(doc.field("String_Node_Str"));
  assertEquals("String_Node_Str",(String)doc.field("String_Node_Str"));
}
Program: 131880
Project: 131880
Buggy source:
@Override public ODocument getConfiguration(){
  return new ODocument().fromJSON("String_Node_Str" + getCommonConfigurationParameters() + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ stringArray2Json(ACTION.values())+ "String_Node_Str"+ "String_Node_Str");
}

Fixed version (ground truth):
@Override public ODocument getConfiguration(){
  return new ODocument().fromJSON("String_Node_Str" + getCommonConfigurationParameters() + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ stringArray2Json(ACTION.values())+ "String_Node_Str"+ "String_Node_Str");
}
Program: 131881
Project: 131881
Buggy source:
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,final OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  edgeClass=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str")) {
    final String direction=iConfiguration.field("String_Node_Str");
    if ("String_Node_Str".equalsIgnoreCase(direction))     directionOut=true;
 else     if ("String_Node_Str".equalsIgnoreCase(direction))     directionOut=false;
 else     throw new OConfigurationException("String_Node_Str" + direction);
  }
}

Fixed version (ground truth):
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,final OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  edgeClass=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str")) {
    final String direction=iConfiguration.field("String_Node_Str");
    if ("String_Node_Str".equalsIgnoreCase(direction))     directionOut=true;
 else     if ("String_Node_Str".equalsIgnoreCase(direction))     directionOut=false;
 else     throw new OConfigurationException("String_Node_Str" + direction);
  }
  if (iConfiguration.containsField("String_Node_Str"))   targetVertexFields=(ODocument)iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   edgeFields=(ODocument)iConfiguration.field("String_Node_Str");
}
Program: 131883
Project: 131883
Buggy source:
@Override public ODocument getConfiguration(){
  return new ODocument().fromJSON("String_Node_Str" + getCommonConfigurationParameters() + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
}

Fixed version (ground truth):
@Override public ODocument getConfiguration(){
  return new ODocument().fromJSON("String_Node_Str" + getCommonConfigurationParameters() + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
}
Program: 131884
Project: 131884
Buggy source:
@Override public Object executeTransform(final Object input){
  if (input instanceof OIdentifiable) {
    final ORecord rec=((OIdentifiable)input).getRecord();
    if (rec instanceof ODocument) {
      final ODocument doc=(ODocument)rec;
      if (setOperation) {
        final Object newValue;
        if (expression != null) {
          if (sqlFilter == null)           sqlFilter=new OSQLFilter(expression,context,null);
          newValue=sqlFilter.evaluate(doc,null,context);
        }
 else         newValue=value;
        doc.field(fieldName,newValue);
        log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",fieldName,newValue,doc);
      }
 else {
        final Object prev=doc.removeField(fieldName);
        log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",fieldName,prev,doc);
      }
      if (save) {
        log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",doc);
        final ODatabaseDocumentTx db=super.pipeline.getDocumentDatabase();
        db.save(doc);
      }
    }
  }
  return input;
}

Fixed version (ground truth):
@Override public Object executeTransform(final Object input){
  if (input instanceof OIdentifiable) {
    final ORecord rec=((OIdentifiable)input).getRecord();
    if (rec instanceof ODocument) {
      final ODocument doc=(ODocument)rec;
      if (setOperation) {
        final Object newValue;
        if (expression != null) {
          if (sqlFilter == null)           sqlFilter=new OSQLFilter(expression,context,null);
          newValue=sqlFilter.evaluate(doc,null,context);
        }
 else         newValue=value;
        doc.field(fieldName,newValue);
        log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",fieldName,newValue,doc);
      }
 else {
        if (fieldName != null) {
          final Object prev=doc.removeField(fieldName);
          log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",fieldName,prev,doc);
        }
 else {
          for (          String f : fieldNames) {
            final Object prev=doc.removeField(f);
            log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",f,prev,doc);
          }
        }
      }
      if (save) {
        log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",doc);
        final ODatabaseDocumentTx db=super.pipeline.getDocumentDatabase();
        db.save(doc);
      }
    }
  }
  return input;
}
Program: 131885
Project: 131885
Buggy source:
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  fieldName=(String)resolve(iConfiguration.field("String_Node_Str"));
  expression=iConfiguration.field("String_Node_Str");
  value=iConfiguration.field("String_Node_Str");
  if (expression != null && value != null)   throw new IllegalArgumentException("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   save=(Boolean)iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   setOperation="String_Node_Str".equalsIgnoreCase((String)iConfiguration.field("String_Node_Str"));
}

Fixed version (ground truth):
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  fieldName=(String)resolve(iConfiguration.field("String_Node_Str"));
  fieldNames=(List<String>)resolve(iConfiguration.field("String_Node_Str"));
  if (fieldNames == null && fieldName == null)   throw new IllegalArgumentException("String_Node_Str");
  expression=iConfiguration.field("String_Node_Str");
  value=iConfiguration.field("String_Node_Str");
  if (expression != null && value != null)   throw new IllegalArgumentException("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   save=(Boolean)iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   setOperation="String_Node_Str".equalsIgnoreCase((String)iConfiguration.field("String_Node_Str"));
}
Program: 131886
Project: 131886
Buggy source:
public String getCellContent(String iValue){
  if (iValue == null || iValue.length() == 0 || "String_Node_Str".equals(iValue))   return null;
  if (iValue.length() > 1 && (iValue.charAt(0) == stringCharacter && iValue.charAt(iValue.length() - 1) == stringCharacter))   return iValue.substring(1,iValue.length() - 1);
  return iValue;
}

Fixed version (ground truth):
public String getCellContent(String iValue){
  if (iValue == null || iValue.isEmpty() || "String_Node_Str".equals(iValue))   return null;
  if (iValue.length() > 1 && (iValue.charAt(0) == stringCharacter && iValue.charAt(iValue.length() - 1) == stringCharacter))   return iValue.substring(1,iValue.length() - 1);
  return iValue;
}
Program: 131888
Project: 131888
Buggy source:
@Override protected Object executeTransform(final Object input){
  context.setVariable("String_Node_Str",input);
  return block.execute();
}

Fixed version (ground truth):
@Override protected Object executeTransform(final Object input){
  context.setVariable("String_Node_Str",input);
  block.execute();
  return input;
}
Program: 131889
Project: 131889
Buggy source:
protected OExtractedItem fetchNext() throws IOException, ParseException {
  if (!reader.ready())   return null;
  String value=jsonReader.readString(new char[]{'}',']'},true);
  if (first != null) {
    value=first + value;
    first=null;
  }
  if (total == 1 && jsonReader.lastChar() == '}') {
    jsonReader=null;
  }
 else   if (total != 1 && jsonReader.lastChar() == ']') {
    if (!value.isEmpty())     value=value.substring(0,value.length() - 1);
    jsonReader=null;
  }
 else {
    jsonReader.readNext(OJSONReader.NEXT_IN_ARRAY);
    if (jsonReader.lastChar() == ']')     jsonReader=null;
  }
  value=value.trim();
  if (value.isEmpty())   return null;
  return new OExtractedItem(current++,new ODocument().fromJSON(value));
}

Fixed version (ground truth):
protected OExtractedItem fetchNext() throws IOException, ParseException {
  if (!jsonReader.hasNext())   return null;
  String value=jsonReader.readString(new char[]{'}',']'},true);
  if (first != null) {
    value=first + value;
    first=null;
  }
  if (total == 1 && jsonReader.lastChar() == '}') {
    jsonReader=null;
  }
 else   if (total != 1 && jsonReader.lastChar() == ']') {
    if (!value.isEmpty())     value=value.substring(0,value.length() - 1);
    jsonReader=null;
  }
 else {
    jsonReader.readNext(OJSONReader.NEXT_IN_ARRAY);
    if (jsonReader.lastChar() == ']')     jsonReader=null;
  }
  value=value.trim();
  if (value.isEmpty())   return null;
  return new OExtractedItem(current++,new ODocument().fromJSON(value));
}
Program: 131890
Project: 131890
Buggy source:
@Override public void configure(final OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  joinFieldName=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   lookup=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   unresolvedLinkAction=ACTION.valueOf(iConfiguration.field("String_Node_Str").toString().toUpperCase());
}

Fixed version (ground truth):
@Override public void configure(final OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  joinFieldName=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   joinValue=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   lookup=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   unresolvedLinkAction=ACTION.valueOf(iConfiguration.field("String_Node_Str").toString().toUpperCase());
}
Program: 131891
Project: 131891
Buggy source:
@Override public ODocument getConfiguration(){
  return new ODocument().fromJSON("String_Node_Str" + getCommonConfigurationParameters() + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ stringArray2Json(ACTION.values())+ "String_Node_Str"+ "String_Node_Str");
}

Fixed version (ground truth):
@Override public ODocument getConfiguration(){
  return new ODocument().fromJSON("String_Node_Str" + getCommonConfigurationParameters() + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ stringArray2Json(ACTION.values())+ "String_Node_Str"+ "String_Node_Str");
}
Program: 131893
Project: 131893
Buggy source:
protected OExtractedItem fetchNext() throws IOException {
  if (!reader.ready())   return null;
  final String line=bReader.readLine();
  if (line == null)   return null;
  return new OExtractedItem(current++,line);
}

Fixed version (ground truth):
protected OExtractedItem fetchNext() throws IOException {
  if (!bReader.ready())   return null;
  final String line=bReader.readLine();
  if (line == null || line.isEmpty())   return null;
  return new OExtractedItem(current++,line);
}
Program: 131895
Project: 131895
Buggy source:
@Override public Object transform(final Object input){
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str" + input);
  if (input == null)   return null;
  if (!skip(input)) {
    context.setVariable("String_Node_Str",input);
    final Object result=executeTransform(input);
    if (output == null) {
      log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str" + result);
      return result;
    }
    context.setVariable(output,result);
  }
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str" + input);
  return input;
}

Fixed version (ground truth):
@Override public Object transform(final Object input){
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",input);
  if (input == null)   return null;
  if (!skip(input)) {
    context.setVariable("String_Node_Str",input);
    final Object result=executeTransform(input);
    if (output == null) {
      log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",result);
      return result;
    }
    context.setVariable(output,result);
  }
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",input);
  return input;
}
Program: 131897
Project: 131897
Buggy source:
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  if (iConfiguration.containsField("String_Node_Str"))   file=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   commands=iConfiguration.field("String_Node_Str");
  if (file == null && commands == null)   throw new OConfigurationException("String_Node_Str");
  console=new OConsoleDatabaseApp(new String[]{file});
}

Fixed version (ground truth):
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  if (iConfiguration.containsField("String_Node_Str"))   file=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   commands=iConfiguration.field("String_Node_Str");
  if (file == null && commands == null)   throw new OConfigurationException("String_Node_Str");
  if (file != null)   console=new OConsoleDatabaseApp(new String[]{file});
 else   console=new OConsoleDatabaseApp(commands.toArray(new String[commands.size()]));
}
Program: 131898
Project: 131898
Buggy source:
@Override public Object executeTransform(final Object input){
  if (graph == null)   graph=pipeline.getGraphDatabase();
  if (graph == null)   throw new OETLProcessHaltedException("String_Node_Str");
  vertexClass=(String)resolve(vertexClass);
  if (vertexClass != null) {
    final OClass cls=graph.getVertexType(vertexClass);
    if (cls == null)     try {
      graph.createVertexType(vertexClass);
    }
 catch (    OSchemaException e) {
    }
  }
  final OrientVertex v=graph.getVertex(input);
  if (v == null)   return null;
  if (vertexClass != null)   v.setProperty("String_Node_Str",vertexClass);
  return v;
}

Fixed version (ground truth):
@Override public Object executeTransform(final Object input){
  if (graph == null)   graph=pipeline.getGraphDatabase();
  if (graph == null)   throw new OETLProcessHaltedException("String_Node_Str");
  vertexClass=(String)resolve(vertexClass);
  if (vertexClass != null) {
    final OClass cls=graph.getVertexType(vertexClass);
    if (cls == null)     try {
      graph.createVertexType(vertexClass);
    }
 catch (    OSchemaException e) {
    }
  }
  final OrientVertex v=graph.getVertex(input);
  if (v == null)   return null;
  if (vertexClass != null && !vertexClass.equals(v.getRecord().getClassName()))   v.setProperty("String_Node_Str",vertexClass);
  return v;
}
Program: 131900
Project: 131900
Buggy source:
@Override public ODocument getConfiguration(){
  return new ODocument().fromJSON("String_Node_Str" + getCommonConfigurationParameters() + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
}

Fixed version (ground truth):
@Override public ODocument getConfiguration(){
  return new ODocument().fromJSON("String_Node_Str" + getCommonConfigurationParameters() + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
}
Program: 131901
Project: 131901
Buggy source:
@Override public Object executeTransform(final Object input){
  if (input instanceof OIdentifiable) {
    final ORecord rec=((OIdentifiable)input).getRecord();
    if (rec instanceof ODocument) {
      final ODocument doc=(ODocument)rec;
      if (setOperation) {
        if (sqlFilter == null)         sqlFilter=new OSQLFilter(expression,context,null);
        final Object newValue=sqlFilter.evaluate(doc,null,context);
        doc.field(fieldName,newValue);
        log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",fieldName,newValue,doc);
      }
 else {
        final Object prev=doc.removeField(fieldName);
        log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",fieldName,prev,doc);
      }
    }
  }
  return input;
}

Fixed version (ground truth):
@Override public Object executeTransform(final Object input){
  if (input instanceof OIdentifiable) {
    final ORecord rec=((OIdentifiable)input).getRecord();
    if (rec instanceof ODocument) {
      final ODocument doc=(ODocument)rec;
      if (setOperation) {
        final Object newValue;
        if (expression != null) {
          if (sqlFilter == null)           sqlFilter=new OSQLFilter(expression,context,null);
          newValue=sqlFilter.evaluate(doc,null,context);
        }
 else         newValue=value;
        doc.field(fieldName,newValue);
        log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",fieldName,newValue,doc);
      }
 else {
        final Object prev=doc.removeField(fieldName);
        log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",fieldName,prev,doc);
      }
      if (save) {
        final ODatabaseDocumentTx db=super.pipeline.getDocumentDatabase();
        if (db == null)         throw new OETLProcessHaltedException("String_Node_Str");
        db.save(doc);
      }
    }
  }
  return input;
}
Program: 131902
Project: 131902
Buggy source:
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  fieldName=(String)resolve(iConfiguration.field("String_Node_Str"));
  expression=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   setOperation="String_Node_Str".equalsIgnoreCase((String)iConfiguration.field("String_Node_Str"));
}

Fixed version (ground truth):
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  fieldName=(String)resolve(iConfiguration.field("String_Node_Str"));
  expression=iConfiguration.field("String_Node_Str");
  value=iConfiguration.field("String_Node_Str");
  if (expression != null && value != null)   throw new IllegalArgumentException("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   save=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   setOperation="String_Node_Str".equalsIgnoreCase((String)iConfiguration.field("String_Node_Str"));
}
Program: 131903
Project: 131903
Buggy source:
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  fieldName=(String)resolve(iConfiguration.field("String_Node_Str"));
  expression=iConfiguration.field("String_Node_Str");
  value=iConfiguration.field("String_Node_Str");
  if (expression != null && value != null)   throw new IllegalArgumentException("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   save=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   setOperation="String_Node_Str".equalsIgnoreCase((String)iConfiguration.field("String_Node_Str"));
}

Fixed version (ground truth):
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  fieldName=(String)resolve(iConfiguration.field("String_Node_Str"));
  expression=iConfiguration.field("String_Node_Str");
  value=iConfiguration.field("String_Node_Str");
  if (expression != null && value != null)   throw new IllegalArgumentException("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   save=(Boolean)iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   setOperation="String_Node_Str".equalsIgnoreCase((String)iConfiguration.field("String_Node_Str"));
}
Program: 131906
Project: 131906
Buggy source:
@Override public void begin(){
  if (!wal)   OGlobalConfiguration.USE_WAL.setValue(wal);
  ODatabaseDocumentTx documentDatabase=init();
  if (documentDatabase == null) {
switch (dbType) {
case DOCUMENT:
      documentDatabase=new ODatabaseDocumentTx(dbURL);
    documentDatabase.open(dbUser,dbPassword);
  break;
case GRAPH:
final OrientGraphFactory factory=new OrientGraphFactory(dbURL);
final OrientBaseGraph graphDatabase=tx ? factory.getTx() : factory.getNoTx();
documentDatabase=graphDatabase.getRawGraph();
pipeline.setGraphDatabase(graphDatabase);
break;
}
pipeline.setDocumentDatabase(documentDatabase);
}
documentDatabase.declareIntent(new OIntentMassiveInsert());
}

Fixed version (ground truth):
@Override public void begin(){
  if (!wal)   OGlobalConfiguration.USE_WAL.setValue(wal);
  ODatabaseDocumentTx documentDatabase=init();
  if (documentDatabase == null) {
switch (dbType) {
case DOCUMENT:
      documentDatabase=new ODatabaseDocumentTx(dbURL);
    documentDatabase.open(dbUser,dbPassword);
  break;
case GRAPH:
final OrientGraphFactory factory=new OrientGraphFactory(dbURL);
final OrientBaseGraph graphDatabase=tx ? factory.getTx() : factory.getNoTx();
graphDatabase.setUseLightweightEdges(useLightweightEdges);
documentDatabase=graphDatabase.getRawGraph();
pipeline.setGraphDatabase(graphDatabase);
break;
}
pipeline.setDocumentDatabase(documentDatabase);
}
documentDatabase.declareIntent(new OIntentMassiveInsert());
}
Program: 131907
Project: 131907
Buggy source:
@Override public void begin(){
  if (graph == null) {
    graph=pipeline.getGraphDatabase();
    final OClass cls=graph.getEdgeType(edgeClass);
    if (cls == null)     graph.createEdgeType(edgeClass);
  }
  super.begin();
}

Fixed version (ground truth):
@Override public void begin(){
  if (graph == null) {
    graph=pipeline.getGraphDatabase();
    if (graph == null)     throw new OTransformException(getName() + "String_Node_Str");
    final OClass cls=graph.getEdgeType(edgeClass);
    if (cls == null)     graph.createEdgeType(edgeClass);
  }
  super.begin();
}