nus-yam/ex-repair huggingface dataset:
Program: 131908
Project: 131908
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) {
        final ODatabaseDocumentTx db=super.pipeline.getDocumentDatabase();
        if (db == null)         throw new OETLProcessHaltedException("String_Node_Str");
        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 {
        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 OTransformException("String_Node_Str");
        db.save(doc);
      }
    }
  }
  return input;
}
Program: 131909
Project: 131909
Buggy source:
@Override public void execute(){
  if (!skip(null))   executeBlock();
}

Fixed version (ground truth):
@Override public Object execute(){
  if (!skip(null))   return executeBlock();
  return null;
}
Program: 131910
Project: 131910
Buggy source:
protected abstract void executeBlock();

Fixed version (ground truth):
protected abstract Object executeBlock();
Program: 131911
Project: 131911
Buggy source:
void execute();

Fixed version (ground truth):
Object execute();
Program: 131912
Project: 131912
Buggy source:
@Override public void executeBlock(){
  cmd.executeInContext(context,params);
}

Fixed version (ground truth):
@Override public Object executeBlock(){
  return cmd.executeInContext(context,params);
}
Program: 131913
Project: 131913
Buggy source:
@Override public void executeBlock(){
  console.run();
}

Fixed version (ground truth):
@Override public Object executeBlock(){
  return console.run();
}
Program: 131914
Project: 131914
Buggy source:
@Override public void executeBlock(){
  if (expression != null)   context.setVariable(name,expression.evaluate(null,null,context));
 else   context.setVariable(name,resolve(value));
}

Fixed version (ground truth):
@Override public Object executeBlock(){
  final Object v=expression != null ? expression.evaluate(null,null,context) : resolve(value);
  context.setVariable(name,v);
  return v;
}
Program: 131915
Project: 131915
Buggy source:
@Override protected Object executeTransform(final Object input){
  context.setVariable("String_Node_Str",input);
  block.execute();
  return input;
}

Fixed version (ground truth):
@Override protected Object executeTransform(final Object input){
  context.setVariable("String_Node_Str",input);
  return block.execute();
}
Program: 131916
Project: 131916
Buggy source:
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  final String[] fieldNames=iConfiguration.fieldNames();
  if (fieldNames.length != 1)   throw new OConfigurationException("String_Node_Str");
  try {
    block=processor.getFactory().getBlock(fieldNames[0]);
    block.configure(processor,(ODocument)iConfiguration.field(fieldNames[0]),context);
  }
 catch (  Exception e) {
    throw new OConfigurationException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  final String[] fieldNames=iConfiguration.fieldNames();
  try {
    block=processor.getFactory().getBlock(fieldNames[0]);
    block.configure(processor,(ODocument)iConfiguration.field(fieldNames[0]),context);
  }
 catch (  Exception e) {
    throw new OConfigurationException("String_Node_Str",e);
  }
}
Program: 131919
Project: 131919
Buggy source:
@Override public void begin(){
  if (!wal)   OGlobalConfiguration.USE_WAL.setValue(wal);
  ODatabaseDocumentTx documentDatabase=init();
  final OrientBaseGraph graphDatabase;
  if (documentDatabase == null) {
switch (dbType) {
case DOCUMENT:
      documentDatabase=new ODatabaseDocumentTx(dbURL);
    documentDatabase.open(dbUser,dbPassword);
  break;
case GRAPH:
final OrientGraphFactory factory=new OrientGraphFactory(dbURL);
graphDatabase=factory.setTransactional(false).get();
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();
documentDatabase=graphDatabase.getRawGraph();
pipeline.setGraphDatabase(graphDatabase);
break;
}
pipeline.setDocumentDatabase(documentDatabase);
}
documentDatabase.declareIntent(new OIntentMassiveInsert());
}
Program: 131920
Project: 131920
Buggy source:
public OETLComponentFactory(){
  registerSource(OFileSource.class);
  registerSource(OHttpSource.class);
  registerSource(OInputSource.class);
  registerBlock(OCodeBlock.class);
  registerBlock(OLetBlock.class);
  registerBlock(OConsoleBlock.class);
  registerExtractor(OJDBCExtractor.class);
  registerExtractor(ORowExtractor.class);
  registerExtractor(OJsonExtractor.class);
  registerTransformer(OBlockTransformer.class);
  registerTransformer(OCodeTransformer.class);
  registerTransformer(OCSVTransformer.class);
  registerTransformer(OCommandTransformer.class);
  registerTransformer(OEdgeTransformer.class);
  registerTransformer(OFieldTransformer.class);
  registerTransformer(OJSONTransformer.class);
  registerTransformer(OLinkTransformer.class);
  registerTransformer(OLogTransformer.class);
  registerTransformer(OMergeTransformer.class);
  registerTransformer(OFlowTransformer.class);
  registerTransformer(OVertexTransformer.class);
  registerLoader(OOrientDBLoader.class);
  registerLoader(OOutputLoader.class);
}

Fixed version (ground truth):
public OETLComponentFactory(){
  registerSource(OFileSource.class);
  registerSource(OHttpSource.class);
  registerSource(OInputSource.class);
  registerSource(OContentSource.class);
  registerBlock(OCodeBlock.class);
  registerBlock(OLetBlock.class);
  registerBlock(OConsoleBlock.class);
  registerExtractor(OJDBCExtractor.class);
  registerExtractor(ORowExtractor.class);
  registerExtractor(OJsonExtractor.class);
  registerTransformer(OBlockTransformer.class);
  registerTransformer(OCodeTransformer.class);
  registerTransformer(OCSVTransformer.class);
  registerTransformer(OCommandTransformer.class);
  registerTransformer(OEdgeTransformer.class);
  registerTransformer(OFieldTransformer.class);
  registerTransformer(OJSONTransformer.class);
  registerTransformer(OLinkTransformer.class);
  registerTransformer(OLogTransformer.class);
  registerTransformer(OMergeTransformer.class);
  registerTransformer(OFlowTransformer.class);
  registerTransformer(OVertexTransformer.class);
  registerLoader(OOrientDBLoader.class);
  registerLoader(OOutputLoader.class);
}
Program: 131921
Project: 131921
Buggy source:
public static void main(final String[] args){
  ODocument cfgGlobal=null;
  Collection<ODocument> cfgBegin=null;
  ODocument cfgSource=null;
  ODocument cfgExtract=null;
  Collection<ODocument> cfgTransformers=null;
  ODocument cfgLoader=null;
  Collection<ODocument> cfgEnd=null;
  System.out.println("String_Node_Str" + OConstants.getVersion() + "String_Node_Str"+ OConstants.ORIENT_URL);
  if (args.length == 0) {
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str");
    System.exit(1);
  }
  final OBasicCommandContext context=createDefaultContext();
  for (int i=0; i < args.length; ++i) {
    final String arg=args[i];
    if (arg.charAt(0) == '-') {
      final String[] parts=arg.substring(1).split("String_Node_Str");
      context.setVariable(parts[0].toUpperCase(),parts[1]);
    }
 else {
      try {
        final String config=OIOUtils.readFileAsString(new File(arg));
        final ODocument cfg=new ODocument().fromJSON(config,"String_Node_Str");
        cfgGlobal=cfg.field("String_Node_Str");
        cfgBegin=cfg.field("String_Node_Str");
        cfgSource=cfg.field("String_Node_Str");
        cfgExtract=cfg.field("String_Node_Str");
        cfgTransformers=cfg.field("String_Node_Str");
        cfgLoader=cfg.field("String_Node_Str");
        cfgEnd=cfg.field("String_Node_Str");
      }
 catch (      IOException e) {
        throw new OConfigurationException("String_Node_Str" + arg);
      }
    }
  }
  if (cfgExtract == null)   throw new IllegalArgumentException("String_Node_Str");
  if (cfgGlobal != null) {
    for (    String f : cfgGlobal.fieldNames()) {
      context.setVariable(f,cfgGlobal.field(f));
    }
  }
  final OETLProcessor processor=new OETLProcessor(cfgBegin,cfgSource,cfgExtract,cfgTransformers,cfgLoader,cfgEnd,context);
  processor.execute();
}

Fixed version (ground truth):
public static void main(final String[] args){
  ODocument cfgGlobal=null;
  System.out.println("String_Node_Str" + OConstants.getVersion() + "String_Node_Str"+ OConstants.ORIENT_URL);
  if (args.length == 0) {
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str");
    System.exit(1);
  }
  final OBasicCommandContext context=createDefaultContext();
  ODocument configuration=null;
  for (int i=0; i < args.length; ++i) {
    final String arg=args[i];
    if (arg.charAt(0) == '-') {
      final String[] parts=arg.substring(1).split("String_Node_Str");
      context.setVariable(parts[0].toUpperCase(),parts[1]);
    }
 else {
      try {
        final String config=OIOUtils.readFileAsString(new File(arg));
        configuration=new ODocument().fromJSON(config,"String_Node_Str");
        cfgGlobal=configuration.field("String_Node_Str");
      }
 catch (      IOException e) {
        throw new OConfigurationException("String_Node_Str" + arg);
      }
    }
  }
  if (cfgGlobal != null) {
    for (    String f : cfgGlobal.fieldNames()) {
      context.setVariable(f,cfgGlobal.field(f));
    }
  }
  new OETLProcessor().parse(configuration,context).execute();
}
Program: 131922
Project: 131922
Buggy source:
@Override public void end(){
  for (  OTransformer t : transformers)   t.end();
  if (source != null)   source.end();
  extractor.end();
  loader.end();
  for (  OBlock t : endBlocks) {
    t.begin();
    t.execute();
    t.end();
  }
  elapsed=System.currentTimeMillis() - startTime;
  if (dumpTask != null) {
    dumpTask.cancel();
  }
  out(LOG_LEVELS.INFO,"String_Node_Str");
  dumpProgress();
}

Fixed version (ground truth):
protected void end(){
  for (  OTransformer t : transformers)   t.end();
  if (source != null)   source.end();
  extractor.end();
  loader.end();
  for (  OBlock t : endBlocks) {
    t.begin();
    t.execute();
    t.end();
  }
  elapsed=System.currentTimeMillis() - startTime;
  if (dumpTask != null) {
    dumpTask.cancel();
  }
  out(LOG_LEVELS.INFO,"String_Node_Str");
  dumpProgress();
}
Program: 131923
Project: 131923
Buggy source:
public void execute(){
  if (parallel)   executeParallel();
 else   executeSequentially();
}

Fixed version (ground truth):
public OETLProcessor execute(){
  if (parallel)   executeParallel();
 else   executeSequentially();
  return this;
}
Program: 131925
Project: 131925
Buggy source:
@Override public void begin(){
  out(LOG_LEVELS.INFO,"String_Node_Str");
  final Integer cfgMaxRetries=(Integer)context.getVariable("String_Node_Str");
  if (cfgMaxRetries != null)   maxRetries=cfgMaxRetries;
  final int dumpEveryMs=(Integer)context.getVariable("String_Node_Str");
  if (dumpEveryMs > 0) {
    dumpTask=new TimerTask(){
      @Override public void run(){
        dumpProgress();
      }
    }
;
    Orient.instance().getTimer().schedule(dumpTask,dumpEveryMs,dumpEveryMs);
    startTime=System.currentTimeMillis();
  }
  for (  OBlock t : beginBlocks) {
    t.begin();
    t.execute();
    t.end();
  }
  if (source != null)   source.begin();
  extractor.begin();
}

Fixed version (ground truth):
protected void begin(){
  out(LOG_LEVELS.INFO,"String_Node_Str");
  final Integer cfgMaxRetries=(Integer)context.getVariable("String_Node_Str");
  if (cfgMaxRetries != null)   maxRetries=cfgMaxRetries;
  final int dumpEveryMs=(Integer)context.getVariable("String_Node_Str");
  if (dumpEveryMs > 0) {
    dumpTask=new TimerTask(){
      @Override public void run(){
        dumpProgress();
      }
    }
;
    Orient.instance().getTimer().schedule(dumpTask,dumpEveryMs,dumpEveryMs);
    startTime=System.currentTimeMillis();
  }
  for (  OBlock t : beginBlocks) {
    t.begin();
    t.execute();
    t.end();
  }
  if (source != null)   source.begin();
  extractor.begin();
}
Program: 131926
Project: 131926
Buggy source:
public OETLProcessor(final Collection<ODocument> iBeginBlocks,final ODocument iSource,final ODocument iExtractor,final Collection<ODocument> iTransformers,final ODocument iLoader,final Collection<ODocument> iEndBlocks,final OBasicCommandContext iContext){
  context=iContext;
  init();
  try {
    String name;
    beginBlocks=new ArrayList<OBlock>();
    if (iBeginBlocks != null)     for (    ODocument block : iBeginBlocks) {
      name=block.fieldNames()[0];
      final OBlock b=factory.getBlock(name);
      beginBlocks.add(b);
      configureComponent(b,(ODocument)block.field(name),iContext);
      b.execute();
    }
    if (iSource != null) {
      name=iSource.fieldNames()[0];
      source=factory.getSource(name);
      configureComponent(source,(ODocument)iSource.field(name),iContext);
    }
 else     source=factory.getSource("String_Node_Str");
    name=iExtractor.fieldNames()[0];
    extractor=factory.getExtractor(name);
    configureComponent(extractor,(ODocument)iExtractor.field(name),iContext);
    if (iLoader != null) {
      name=iLoader.fieldNames()[0];
      loader=factory.getLoader(name);
      configureComponent(loader,(ODocument)iLoader.field(name),iContext);
    }
 else     loader=factory.getLoader("String_Node_Str");
    transformers=new ArrayList<OTransformer>();
    if (iTransformers != null)     for (    ODocument t : iTransformers) {
      name=t.fieldNames()[0];
      final OTransformer tr=factory.getTransformer(name);
      transformers.add(tr);
      configureComponent(tr,(ODocument)t.field(name),iContext);
    }
    endBlocks=new ArrayList<OBlock>();
    if (iEndBlocks != null)     for (    ODocument block : iEndBlocks) {
      name=block.fieldNames()[0];
      final OBlock b=factory.getBlock(name);
      endBlocks.add(b);
      configureComponent(b,(ODocument)block.field(name),iContext);
    }
  }
 catch (  Exception e) {
    throw new OConfigurationException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
public OETLProcessor(){
}
Program: 131928
Project: 131928
Buggy source:
@Override public ODocument getConfiguration(){
  return new ODocument().fromJSON("String_Node_Str" + "String_Node_Str");
}

Fixed version (ground truth):
@Override public ODocument getConfiguration(){
  return new ODocument().fromJSON("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
}
Program: 131929
Project: 131929
Buggy source:
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  name=iConfiguration.field("String_Node_Str");
  expression=new OSQLFilter((String)iConfiguration.field("String_Node_Str"),iContext,null);
}

Fixed version (ground truth):
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,final OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  name=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str")) {
    value=iConfiguration.field("String_Node_Str");
  }
 else   expression=new OSQLFilter((String)iConfiguration.field("String_Node_Str"),iContext,null);
  if (value == null && expression == null)   throw new IllegalArgumentException("String_Node_Str");
}
Program: 131930
Project: 131930
Buggy source:
@Override public void executeBlock(){
  context.setVariable(name,expression.evaluate(null,null,context));
}

Fixed version (ground truth):
@Override public void executeBlock(){
  if (expression != null)   context.setVariable(name,expression.evaluate(null,null,context));
 else   context.setVariable(name,resolve(value));
}
Program: 131932
Project: 131932
Buggy source:
@Override public Object executeTransform(final Object input){
  if (input == null)   return null;
  params.put("String_Node_Str",input);
  Object result=cmd.executeInContext(context,params);
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",cmd,result);
  return result;
}

Fixed version (ground truth):
@Override public Object executeTransform(final Object input){
  if (input == null)   return null;
  params.put("String_Node_Str",input);
  if (input instanceof OIdentifiable)   params.put("String_Node_Str",((OIdentifiable)input).getRecord());
  Object result=cmd.executeInContext(context,params);
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",cmd,result);
  return result;
}
Program: 131933
Project: 131933
Buggy source:
public OETLComponentFactory(){
  registerSource(OFileSource.class);
  registerSource(OHttpSource.class);
  registerSource(OInputSource.class);
  registerBlock(OCodeBlock.class);
  registerBlock(OLetBlock.class);
  registerBlock(OConsoleBlock.class);
  registerExtractor(OJDBCExtractor.class);
  registerExtractor(ORowExtractor.class);
  registerExtractor(OJsonExtractor.class);
  registerTransformer(OBlockTransformer.class);
  registerTransformer(OCodeTransformer.class);
  registerTransformer(OCSVTransformer.class);
  registerTransformer(OEdgeTransformer.class);
  registerTransformer(OFieldTransformer.class);
  registerTransformer(OJSONTransformer.class);
  registerTransformer(OLinkTransformer.class);
  registerTransformer(OLogTransformer.class);
  registerTransformer(OMergeTransformer.class);
  registerTransformer(OSkipTransformer.class);
  registerTransformer(OVertexTransformer.class);
  registerLoader(OOrientDBLoader.class);
  registerLoader(OOutputLoader.class);
}

Fixed version (ground truth):
public OETLComponentFactory(){
  registerSource(OFileSource.class);
  registerSource(OHttpSource.class);
  registerSource(OInputSource.class);
  registerBlock(OCodeBlock.class);
  registerBlock(OLetBlock.class);
  registerBlock(OConsoleBlock.class);
  registerExtractor(OJDBCExtractor.class);
  registerExtractor(ORowExtractor.class);
  registerExtractor(OJsonExtractor.class);
  registerTransformer(OBlockTransformer.class);
  registerTransformer(OCodeTransformer.class);
  registerTransformer(OCSVTransformer.class);
  registerTransformer(OCommandTransformer.class);
  registerTransformer(OEdgeTransformer.class);
  registerTransformer(OFieldTransformer.class);
  registerTransformer(OJSONTransformer.class);
  registerTransformer(OLinkTransformer.class);
  registerTransformer(OLogTransformer.class);
  registerTransformer(OMergeTransformer.class);
  registerTransformer(OSkipTransformer.class);
  registerTransformer(OVertexTransformer.class);
  registerLoader(OOrientDBLoader.class);
  registerLoader(OOutputLoader.class);
}
Program: 131935
Project: 131935
Buggy source:
@Override public Object executeTransform(final Object input){
  final OrientVertex vertex;
  if (input instanceof OIdentifiable)   vertex=graph.getVertex(input);
 else   if (input instanceof OrientVertex)   vertex=(OrientVertex)input;
 else   throw new OTransformException("String_Node_Str" + input + "String_Node_Str");
  Object joinValue=vertex.getProperty(joinFieldName);
  Object result=lookup(joinValue);
  if (result == null) {
switch (unresolvedLinkAction) {
case CREATE:
      if (lookup != null) {
        final String[] lookupParts=lookup.split("String_Node_Str");
        final OrientVertex linkedV=graph.addTemporaryVertex(lookupParts[0]);
        linkedV.setProperty(lookupParts[1],joinValue);
        linkedV.save();
        result=linkedV;
      }
 else       throw new OConfigurationException("String_Node_Str");
    break;
case ERROR:
  processor.getStats().incrementErrors();
log("String_Node_Str",getName(),joinValue);
break;
case WARNING:
processor.getStats().incrementWarnings();
log("String_Node_Str",getName(),joinValue);
break;
case SKIP:
return null;
case HALT:
throw new OETLProcessHaltedException("String_Node_Str" + joinValue + "String_Node_Str");
}
if (result != null) {
final OrientVertex targetVertex=graph.getVertex(result);
if (directionOut) vertex.addEdge(edgeClass,targetVertex);
 else targetVertex.addEdge(edgeClass,vertex);
}
}
return input;
}

Fixed version (ground truth):
@Override public Object executeTransform(final Object input){
  final OrientVertex vertex;
  if (input instanceof OIdentifiable)   vertex=graph.getVertex(input);
 else   if (input instanceof OrientVertex)   vertex=(OrientVertex)input;
 else   throw new OTransformException(getName() + "String_Node_Str" + input+ "String_Node_Str");
  Object joinValue=vertex.getProperty(joinFieldName);
  Object result=lookup(joinValue);
  if (result == null) {
switch (unresolvedLinkAction) {
case CREATE:
      if (lookup != null) {
        final String[] lookupParts=lookup.split("String_Node_Str");
        final OrientVertex linkedV=graph.addTemporaryVertex(lookupParts[0]);
        linkedV.setProperty(lookupParts[1],joinValue);
        linkedV.save();
        result=linkedV;
      }
 else       throw new OConfigurationException("String_Node_Str");
    break;
case ERROR:
  processor.getStats().incrementErrors();
log("String_Node_Str",getName(),joinValue);
break;
case WARNING:
processor.getStats().incrementWarnings();
log("String_Node_Str",getName(),joinValue);
break;
case SKIP:
return null;
case HALT:
throw new OETLProcessHaltedException("String_Node_Str" + joinValue + "String_Node_Str");
}
if (result != null) {
final OrientVertex targetVertex=graph.getVertex(result);
if (directionOut) vertex.addEdge(edgeClass,targetVertex);
 else targetVertex.addEdge(edgeClass,vertex);
}
}
return input;
}
Program: 131936
Project: 131936
Buggy source:
@Override public Object executeTransform(final Object input){
  if (input instanceof ODocument)   return input;
 else   if (input instanceof String)   return new ODocument((String)input);
 else   throw new OTransformException("String_Node_Str" + input + "String_Node_Str"+ input.getClass()+ "String_Node_Str");
}

Fixed version (ground truth):
@Override public Object executeTransform(final Object input){
  if (input instanceof ODocument)   return input;
 else   if (input instanceof String)   return new ODocument((String)input);
 else   throw new OTransformException(getName() + "String_Node_Str" + input+ "String_Node_Str"+ input.getClass()+ "String_Node_Str");
}
Program: 131937
Project: 131937
Buggy source:
public OETLPipeline(final OETLProcessor iProcessor,final List<OTransformer> iTransformers,final OLoader iLoader,final OETLProcessor.LOG_LEVELS iLogLevel,final int iMaxRetries){
  logLevel=iLogLevel;
  processor=iProcessor;
  context=(OBasicCommandContext)new OBasicCommandContext(iProcessor.getContext());
  transformers=iTransformers;
  loader=iLoader;
  for (  OTransformer t : transformers)   t.setPipeline(this);
  loader.setPipeline(this);
  maxRetries=iMaxRetries;
}

Fixed version (ground truth):
public OETLPipeline(final OETLProcessor iProcessor,final List<OTransformer> iTransformers,final OLoader iLoader,final OETLProcessor.LOG_LEVELS iLogLevel,final int iMaxRetries){
  logLevel=iLogLevel;
  processor=iProcessor;
  context=new OBasicCommandContext();
  transformers=iTransformers;
  loader=iLoader;
  for (  OTransformer t : transformers)   t.setPipeline(this);
  loader.setPipeline(this);
  maxRetries=iMaxRetries;
}
Program: 131938
Project: 131938
Buggy source:
@Override public void configure(final OETLProcessor iProcessor,final ODocument iConfiguration,final OBasicCommandContext iContext){
  processor=iProcessor;
  context=iContext;
  final String ifExpression=(String)resolve(iConfiguration.field("String_Node_Str"));
  if (ifExpression != null)   ifFilter=new OSQLFilter(ifExpression,iContext,null);
  if (iConfiguration.containsField("String_Node_Str"))   logLevel=OETLProcessor.LOG_LEVELS.valueOf(iConfiguration.field("String_Node_Str").toString().toUpperCase());
 else   logLevel=iProcessor.getLogLevel();
  if (iConfiguration.containsField("String_Node_Str"))   output=(String)iConfiguration.field("String_Node_Str");
}

Fixed version (ground truth):
@Override public void configure(final OETLProcessor iProcessor,final ODocument iConfiguration,final OBasicCommandContext iContext){
  processor=iProcessor;
  context=iContext;
  ifExpression=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   logLevel=OETLProcessor.LOG_LEVELS.valueOf(iConfiguration.field("String_Node_Str").toString().toUpperCase());
 else   logLevel=iProcessor.getLogLevel();
  if (iConfiguration.containsField("String_Node_Str"))   output=(String)iConfiguration.field("String_Node_Str");
}
Program: 131939
Project: 131939
Buggy source:
@Override public void execute(){
  if (!skip())   executeBlock();
}

Fixed version (ground truth):
@Override public void execute(){
  if (!skip(null))   executeBlock();
}
Program: 131940
Project: 131940
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);
    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);
    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);
  }
}
Program: 131942
Project: 131942
Buggy source:
@Override public void configure(final OETLProcessor iProcessor,final ODocument iConfiguration,final OBasicCommandContext iContext){
  processor=iProcessor;
  context=iContext;
  final String ifExpression=(String)resolve(iConfiguration.field("String_Node_Str"));
  if (ifExpression != null)   ifFilter=new OSQLFilter(ifExpression,iContext,null);
  if (iConfiguration.containsField("String_Node_Str"))   logLevel=OETLProcessor.LOG_LEVELS.valueOf((String)iConfiguration.field("String_Node_Str"));
 else   logLevel=iProcessor.getLogLevel();
  if (iConfiguration.containsField("String_Node_Str"))   output=(String)iConfiguration.field("String_Node_Str");
}

Fixed version (ground truth):
@Override public void configure(final OETLProcessor iProcessor,final ODocument iConfiguration,final OBasicCommandContext iContext){
  processor=iProcessor;
  context=iContext;
  final String ifExpression=(String)resolve(iConfiguration.field("String_Node_Str"));
  if (ifExpression != null)   ifFilter=new OSQLFilter(ifExpression,iContext,null);
  if (iConfiguration.containsField("String_Node_Str"))   logLevel=OETLProcessor.LOG_LEVELS.valueOf(iConfiguration.field("String_Node_Str").toString().toUpperCase());
 else   logLevel=iProcessor.getLogLevel();
  if (iConfiguration.containsField("String_Node_Str"))   output=(String)iConfiguration.field("String_Node_Str");
}
Program: 131943
Project: 131943
Buggy source:
@Override public Object executeTransform(final Object input){
  if (input instanceof ODocument) {
    if (setOperation) {
      if (sqlFilter == null)       sqlFilter=new OSQLFilter(expression,context,null);
      final Object newValue=sqlFilter.evaluate((ODocument)input,null,context);
      ((ODocument)input).field(fieldName,newValue);
      log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",fieldName,newValue,input);
    }
 else {
      final Object prev=((ODocument)input).removeField(fieldName);
      log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",fieldName,prev,input);
    }
  }
  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) {
        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;
}
Program: 131944
Project: 131944
Buggy source:
@Override public Object executeTransform(final Object input){
  OCommandRequest cmd=null;
  if (language.equals("String_Node_Str")) {
    cmd=new OCommandSQL(command);
    log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",command);
  }
 else   if (language.equals("String_Node_Str")) {
    cmd=new OCommandGremlin(command);
  }
 else   throw new OTransformException(getName() + "String_Node_Str" + language+ "String_Node_Str");
  Object result=pipeline.getDocumentDatabase().command(cmd).execute();
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",cmd,result);
  return result;
}

Fixed version (ground truth):
@Override public Object executeTransform(final Object input){
  OCommandRequest cmd=null;
  if (language.equals("String_Node_Str")) {
    cmd=new OCommandSQL(command);
    log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",command);
  }
 else   if (language.equals("String_Node_Str")) {
    cmd=new OCommandGremlin(command);
  }
 else   throw new OTransformException(getName() + "String_Node_Str" + language+ "String_Node_Str");
  cmd.setContext(context);
  Object result=pipeline.getDocumentDatabase().command(cmd).execute();
  log(OETLProcessor.LOG_LEVELS.DEBUG,"String_Node_Str",cmd,result);
  return result;
}
Program: 131946
Project: 131946
Buggy source:
public void load(final Object input,OCommandContext context){
  if (input == null)   return;
  if (input instanceof OrientVertex) {
    final OrientVertex v=(OrientVertex)input;
    if (clusterName != null)     v.save(clusterName);
 else     v.save();
  }
 else   if (input instanceof ODocument) {
    final ODocument doc=(ODocument)input;
    if (className != null)     doc.setClassName(className);
    if (clusterName != null)     doc.save(clusterName);
 else     doc.save();
  }
  progress++;
  if (batchCommit > 0) {
    if (batchCounter > batchCommit) {
      if (dbType == DB_TYPE.DOCUMENT) {
        final ODatabaseDocumentTx documentDatabase=pipeline.getDocumentDatabase();
        documentDatabase.commit();
        documentDatabase.begin();
      }
 else {
        pipeline.getGraphDatabase().commit();
      }
    }
    batchCounter++;
  }
}

Fixed version (ground truth):
public void load(final Object input,OCommandContext context){
  if (input == null)   return;
  if (input instanceof OrientVertex) {
    final OrientVertex v=(OrientVertex)input;
    if (clusterName != null)     v.save(clusterName);
 else     v.save();
  }
 else   if (input instanceof ODocument) {
    final ODocument doc=(ODocument)input;
    if (className != null)     doc.setClassName(className);
    if (clusterName != null)     doc.save(clusterName);
 else     doc.save();
  }
  progress.incrementAndGet();
  if (batchCommit > 0) {
    if (batchCounter > batchCommit) {
      if (dbType == DB_TYPE.DOCUMENT) {
        final ODatabaseDocumentTx documentDatabase=pipeline.getDocumentDatabase();
        documentDatabase.commit();
        documentDatabase.begin();
      }
 else {
        pipeline.getGraphDatabase().commit();
      }
    }
    batchCounter++;
  }
}
Program: 131947
Project: 131947
Buggy source:
@Override public void load(final Object input,final OCommandContext context){
  progress++;
  System.out.println(input);
}

Fixed version (ground truth):
@Override public void load(final Object input,final OCommandContext context){
  progress.incrementAndGet();
  System.out.println(input);
}
Program: 131949
Project: 131949
Buggy source:
protected void log(final String iText,Object... iArgs){
  if (verbose)   System.out.println(getName() + "String_Node_Str" + String.format(iText,iArgs));
}

Fixed version (ground truth):
protected void log(final String iText,final Object... iArgs){
  if (verbose)   System.out.println(getName() + "String_Node_Str" + String.format(iText,iArgs));
}
Program: 131950
Project: 131950
Buggy source:
@Override public void configure(final OETLProcessor iProcessor,final ODocument iConfiguration,final OBasicCommandContext iContext){
  processor=iProcessor;
  context=iContext;
  final String ifExpression=(String)resolve(iConfiguration.field("String_Node_Str"));
  if (ifExpression != null)   ifFilter=new OSQLFilter(ifExpression,iContext,null);
  if (iConfiguration.containsField("String_Node_Str"))   verbose=(Boolean)iConfiguration.field("String_Node_Str");
}

Fixed version (ground truth):
@Override public void configure(final OETLProcessor iProcessor,final ODocument iConfiguration,final OBasicCommandContext iContext){
  processor=iProcessor;
  context=iContext;
  final String ifExpression=(String)resolve(iConfiguration.field("String_Node_Str"));
  if (ifExpression != null)   ifFilter=new OSQLFilter(ifExpression,iContext,null);
  if (iConfiguration.containsField("String_Node_Str"))   verbose=(Boolean)iConfiguration.field("String_Node_Str");
 else   verbose=iProcessor.isVerbose();
}
Program: 131951
Project: 131951
Buggy source:
protected void checkTypeCompatibility(final OETLComponent iCurrentComponent,final OETLComponent iLastComponent){
  final String out;
  final List<String> ins;
  try {
    out=iLastComponent.getConfiguration().field("String_Node_Str");
    final Class outClass=getClassByName(iLastComponent,out);
    ins=iCurrentComponent.getConfiguration().field("String_Node_Str");
    for (    String in : ins) {
      final Class inClass=getClassByName(iCurrentComponent,in);
      if (inClass.isAssignableFrom(outClass)) {
        return;
      }
    }
  }
 catch (  Exception e) {
    throw new OConfigurationException("String_Node_Str" + iLastComponent.getName() + "String_Node_Str"+ iCurrentComponent.getName()+ "String_Node_Str",e);
  }
  throw new OConfigurationException("String_Node_Str" + iCurrentComponent.getName() + "String_Node_Str"+ ins+ "String_Node_Str"+ iLastComponent.getName()+ "String_Node_Str"+ out);
}

Fixed version (ground truth):
protected void checkTypeCompatibility(final OETLComponent iCurrentComponent,final OETLComponent iLastComponent){
  final String out;
  final List<String> ins;
  try {
    out=iLastComponent.getConfiguration().field("String_Node_Str");
    if (out == null)     return;
    ins=iCurrentComponent.getConfiguration().field("String_Node_Str");
    if (ins == null)     return;
    final Class outClass=getClassByName(iLastComponent,out);
    for (    String in : ins) {
      final Class inClass=getClassByName(iCurrentComponent,in);
      if (inClass.isAssignableFrom(outClass)) {
        return;
      }
    }
  }
 catch (  Exception e) {
    throw new OConfigurationException("String_Node_Str" + iLastComponent.getName() + "String_Node_Str"+ iCurrentComponent.getName()+ "String_Node_Str",e);
  }
  throw new OConfigurationException("String_Node_Str" + iCurrentComponent.getName() + "String_Node_Str"+ ins+ "String_Node_Str"+ iLastComponent.getName()+ "String_Node_Str"+ out);
}
Program: 131952
Project: 131952
Buggy source:
@Override public void end(){
  for (  OTransformer t : transformers)   t.end();
  source.end();
  extractor.end();
  loader.end();
  for (  OBlock t : endBlocks) {
    t.begin();
    t.execute();
    t.end();
  }
  elapsed=System.currentTimeMillis() - startTime;
  if (dumpTask != null) {
    dumpTask.cancel();
  }
  out(false,"String_Node_Str");
  dumpProgress(false);
}

Fixed version (ground truth):
@Override public void end(){
  for (  OTransformer t : transformers)   t.end();
  if (source != null)   source.end();
  extractor.end();
  loader.end();
  for (  OBlock t : endBlocks) {
    t.begin();
    t.execute();
    t.end();
  }
  elapsed=System.currentTimeMillis() - startTime;
  if (dumpTask != null) {
    dumpTask.cancel();
  }
  out(false,"String_Node_Str");
  dumpProgress(false);
}
Program: 131953
Project: 131953
Buggy source:
@Override public void begin(){
  out(false,"String_Node_Str");
  final int dumpEveryMs=(Integer)context.getVariable("String_Node_Str");
  if (dumpEveryMs > 0) {
    dumpTask=new TimerTask(){
      @Override public void run(){
        dumpProgress(true);
      }
    }
;
    Orient.instance().getTimer().schedule(dumpTask,dumpEveryMs,dumpEveryMs);
    startTime=System.currentTimeMillis();
  }
  for (  OBlock t : beginBlocks) {
    t.begin();
    t.execute();
    t.end();
  }
  source.begin();
  extractor.begin();
  loader.begin();
  for (  OTransformer t : transformers)   t.begin();
}

Fixed version (ground truth):
@Override public void begin(){
  out(false,"String_Node_Str");
  final int dumpEveryMs=(Integer)context.getVariable("String_Node_Str");
  if (dumpEveryMs > 0) {
    dumpTask=new TimerTask(){
      @Override public void run(){
        dumpProgress(true);
      }
    }
;
    Orient.instance().getTimer().schedule(dumpTask,dumpEveryMs,dumpEveryMs);
    startTime=System.currentTimeMillis();
  }
  for (  OBlock t : beginBlocks) {
    t.begin();
    t.execute();
    t.end();
  }
  if (source != null)   source.begin();
  extractor.begin();
  loader.begin();
  for (  OTransformer t : transformers)   t.begin();
}
Program: 131955
Project: 131955
Buggy source:
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  name=iConfiguration.field("String_Node_Str");
  expression=new OSQLFilter((String)iConfiguration.field("String_Node_Str"),iContext,null);
  executeBlock();
}

Fixed version (ground truth):
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  name=iConfiguration.field("String_Node_Str");
  expression=new OSQLFilter((String)iConfiguration.field("String_Node_Str"),iContext,null);
}
Program: 131956
Project: 131956
Buggy source:
@Override public void configure(OETLProcessor iProcessor,ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  driverClass=resolveVariable((String)iConfiguration.field("String_Node_Str"));
  url=resolveVariable((String)iConfiguration.field("String_Node_Str"));
  userName=resolveVariable((String)iConfiguration.field("String_Node_Str"));
  userPassword=resolveVariable((String)iConfiguration.field("String_Node_Str"));
  query=resolveVariable((String)iConfiguration.field("String_Node_Str"));
  queryCount=resolveVariable((String)iConfiguration.field("String_Node_Str"));
  try {
    Class.forName(driverClass).newInstance();
  }
 catch (  Exception e) {
    throw new OConfigurationException("String_Node_Str" + driverClass + "String_Node_Str",e);
  }
  try {
    conn=DriverManager.getConnection(url,userName,userPassword);
  }
 catch (  Exception e) {
    throw new OConfigurationException("String_Node_Str" + url + "String_Node_Str"+ userName+ "String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override public void configure(OETLProcessor iProcessor,ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  driverClass=(String)resolve(iConfiguration.field("String_Node_Str"));
  url=(String)resolve(iConfiguration.field("String_Node_Str"));
  userName=(String)resolve(iConfiguration.field("String_Node_Str"));
  userPassword=(String)resolve(iConfiguration.field("String_Node_Str"));
  query=(String)resolve(iConfiguration.field("String_Node_Str"));
  queryCount=(String)resolve(iConfiguration.field("String_Node_Str"));
  try {
    Class.forName(driverClass).newInstance();
  }
 catch (  Exception e) {
    throw new OConfigurationException("String_Node_Str" + driverClass + "String_Node_Str",e);
  }
  try {
    conn=DriverManager.getConnection(url,userName,userPassword);
  }
 catch (  Exception e) {
    throw new OConfigurationException("String_Node_Str" + url + "String_Node_Str"+ userName+ "String_Node_Str",e);
  }
}
Program: 131957
Project: 131957
Buggy source:
@Override public Object next(){
  if (!hasNext())   throw new NoSuchElementException("String_Node_Str");
  try {
    final String line=bReader.readLine();
    current+=line.length();
    currentRow++;
    if (bReader.ready())     current++;
    return line;
  }
 catch (  IOException e) {
    throw new OExtractorException(e);
  }
}

Fixed version (ground truth):
@Override public Object next(){
  if (!hasNext())   throw new NoSuchElementException("String_Node_Str");
  try {
    final String line=bReader.readLine();
    current++;
    return line;
  }
 catch (  IOException e) {
    throw new OExtractorException(e);
  }
}
Program: 131958
Project: 131958
Buggy source:
public void configure(OETLProcessor iProcessor,ODocument iConfiguration,OBasicCommandContext iContext){
  path=resolveVariable((String)iConfiguration.field("String_Node_Str"));
  if (iConfiguration.containsField("String_Node_Str"))   lockFile=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   skipFirst=Long.parseLong((String)iConfiguration.field("String_Node_Str"));
  if (iConfiguration.containsField("String_Node_Str"))   skipLast=Long.parseLong((String)iConfiguration.field("String_Node_Str"));
  if (path instanceof String)   path=new File((String)path);
  if (path instanceof File) {
    final File file=(File)path;
    fileName=file.getName();
  }
}

Fixed version (ground truth):
public void configure(OETLProcessor iProcessor,ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  path=resolve(iConfiguration.field("String_Node_Str"));
  if (iConfiguration.containsField("String_Node_Str"))   lockFile=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   skipFirst=Long.parseLong((String)iConfiguration.field("String_Node_Str"));
  if (iConfiguration.containsField("String_Node_Str"))   skipLast=Long.parseLong((String)iConfiguration.field("String_Node_Str"));
  if (path instanceof String)   path=new File((String)path);
  if (path instanceof File) {
    final File file=(File)path;
    fileName=file.getName();
  }
}
Program: 131959
Project: 131959
Buggy source:
@Override public Object transform(final Object input){
  if (input == null)   return null;
  if (skip(input))   return input;
 else   return executeTransform(input);
}

Fixed version (ground truth):
@Override public Object transform(final Object input){
  if (input == null)   return null;
  if (skip(input))   return input;
 else {
    context.setVariable("String_Node_Str",input);
    return executeTransform(input);
  }
}
Program: 131960
Project: 131960
Buggy source:
@Override protected Object executeTransform(final Object input){
  block.execute();
  return input;
}

Fixed version (ground truth):
@Override protected Object executeTransform(final Object input){
  context.setVariable("String_Node_Str",input);
  block.execute();
  return input;
}
Program: 131961
Project: 131961
Buggy source:
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  fieldName=resolveVariable((String)iConfiguration.field("String_Node_Str"));
  expression=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");
}
Program: 131962
Project: 131962
Buggy source:
@Override public ODocument getConfiguration(){
  return new ODocument().fromJSON("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" + "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: 131964
Project: 131964
Buggy source:
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  joinFieldName=iConfiguration.field("String_Node_Str");
  linkFieldName=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   linkFieldType=OType.valueOf((String)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());
  db=processor.getDocumentDatabase();
}

Fixed version (ground truth):
@Override public void configure(OETLProcessor iProcessor,final ODocument iConfiguration,OBasicCommandContext iContext){
  super.configure(iProcessor,iConfiguration,iContext);
  joinFieldName=iConfiguration.field("String_Node_Str");
  joinValue=iConfiguration.field("String_Node_Str");
  linkFieldName=iConfiguration.field("String_Node_Str");
  if (iConfiguration.containsField("String_Node_Str"))   linkFieldType=OType.valueOf((String)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());
  db=processor.getDocumentDatabase();
}