Program: 89540
Project: 89540
Buggy source:
@Override public void requestCrawlStart(){
  File cxmlFile=getHeritrixFiles().getOrderFile();
  File seedsFile=getHeritrixFiles().getSeedsFile();
  JobResult jobResult;
  File jobDir=files.getHeritrixJobDir();
  if (!jobDir.exists()) {
    jobDir.mkdirs();
  }
  try {
    log.info("String_Node_Str",jobDir);
    Heritrix3Wrapper.copyFile(cxmlFile,jobDir);
    Heritrix3Wrapper.copyFileAs(seedsFile,jobDir,"String_Node_Str");
  }
 catch (  IOException e) {
    throw new IOFailure("String_Node_Str",e);
  }
  EngineResult engineResult=null;
  try {
    engineResult=h3wrapper.rescanJobDirectory();
    log.info("String_Node_Str",knownJobsToString(engineResult));
    log.debug("String_Node_Str" + new String(engineResult.response,"String_Node_Str"));
    jobResult=h3wrapper.buildJobConfiguration(jobName);
    log.debug("String_Node_Str" + new String(jobResult.response,"String_Node_Str"));
    if (jobResult.status == ResultStatus.OK) {
      if (jobResult.job.statusDescription.equalsIgnoreCase("String_Node_Str")) {
        throw new HeritrixLaunchException("String_Node_Str" + jobName + "String_Node_Str"+ StringUtils.join(jobResult.job.jobLogTail,"String_Node_Str"));
      }
 else       if (jobResult.job.statusDescription.equalsIgnoreCase("String_Node_Str")) {
        log.info("String_Node_Str",jobName);
      }
 else       if (jobResult.job.statusDescription.startsWith("String_Node_Str")) {
        log.warn("String_Node_Str",jobName,StringUtils.join(jobResult.job.jobLogTail,"String_Node_Str"));
        jobResult=h3wrapper.teardownJob(jobName);
        log.debug("String_Node_Str" + new String(jobResult.response,"String_Node_Str"));
        throw new HeritrixLaunchException("String_Node_Str" + jobName + "String_Node_Str"+ StringUtils.join(jobResult.job.jobLogTail,"String_Node_Str"));
      }
 else {
        throw new IllegalState("String_Node_Str" + jobResult.job.statusDescription);
      }
    }
 else {
      throw new IllegalState("String_Node_Str" + ResultStatus.toString(jobResult.status));
    }
    jobResult=h3wrapper.waitForJobState(jobName,CrawlControllerState.NASCENT,60,1000);
    if (jobResult.job.crawlControllerState.equals(CrawlControllerState.NASCENT)) {
      log.info("String_Node_Str",jobName);
    }
 else {
      log.warn("String_Node_Str",jobResult.job.crawlControllerState);
    }
    jobResult=h3wrapper.launchJob(jobName);
    log.debug("String_Node_Str" + new String(jobResult.response,"String_Node_Str"));
    jobResult=h3wrapper.waitForJobState(jobName,CrawlControllerState.PAUSED,60,1000);
    if (jobResult.job.crawlControllerState.equals(CrawlControllerState.PAUSED)) {
      log.info("String_Node_Str",jobName);
    }
 else {
      log.warn("String_Node_Str",jobResult.job.crawlControllerState);
    }
    jobResult=h3wrapper.unpauseJob(jobName);
    log.info("String_Node_Str",jobName,jobResult.job.crawlControllerState);
    log.debug("String_Node_Str",jobName,new String(jobResult.response,"String_Node_Str"));
  }
 catch (  UnsupportedEncodingException e) {
    throw new IOFailure("String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override public void requestCrawlStart(){
  File cxmlFile=getHeritrixFiles().getOrderFile();
  File seedsFile=getHeritrixFiles().getSeedsFile();
  JobResult jobResult;
  File jobDir=files.getHeritrixJobDir();
  if (!jobDir.exists()) {
    jobDir.mkdirs();
  }
  try {
    log.info("String_Node_Str",jobDir);
    Heritrix3Wrapper.copyFile(cxmlFile,jobDir);
    Heritrix3Wrapper.copyFileAs(seedsFile,jobDir,"String_Node_Str");
  }
 catch (  IOException e) {
    throw new IOFailure("String_Node_Str",e);
  }
  EngineResult engineResult=null;
  try {
    engineResult=h3wrapper.rescanJobDirectory();
    log.info("String_Node_Str",knownJobsToString(engineResult));
    log.debug("String_Node_Str" + new String(engineResult.response,"String_Node_Str"));
    jobResult=h3wrapper.buildJobConfiguration(jobName);
    log.debug("String_Node_Str" + new String(jobResult.response,"String_Node_Str"));
    if (jobResult.status == ResultStatus.OK) {
      if (jobResult.job.statusDescription.equalsIgnoreCase("String_Node_Str")) {
        throw new HeritrixLaunchException("String_Node_Str" + jobName + "String_Node_Str"+ StringUtils.join(jobResult.job.jobLogTail,"String_Node_Str"));
      }
 else       if (jobResult.job.statusDescription.equalsIgnoreCase("String_Node_Str")) {
        log.info("String_Node_Str",jobName);
      }
 else       if (jobResult.job.statusDescription.startsWith("String_Node_Str")) {
        log.warn("String_Node_Str",jobName,StringUtils.join(jobResult.job.jobLogTail,"String_Node_Str"));
        jobResult=h3wrapper.teardownJob(jobName);
        log.debug("String_Node_Str" + new String(jobResult.response,"String_Node_Str"));
        throw new HeritrixLaunchException("String_Node_Str" + jobName + "String_Node_Str"+ StringUtils.join(jobResult.job.jobLogTail,"String_Node_Str"));
      }
 else {
        throw new IllegalState("String_Node_Str" + jobResult.job.statusDescription);
      }
    }
 else {
      throw new IllegalState("String_Node_Str" + ResultStatus.toString(jobResult.status));
    }
    jobResult=h3wrapper.waitForJobState(jobName,CrawlControllerState.NASCENT,60,1000);
    if (jobResult.job.crawlControllerState.equalsIgnoreCase(CrawlControllerState.NASCENT.toString())) {
      log.info("String_Node_Str",jobName);
    }
 else {
      log.warn("String_Node_Str",jobResult.job.crawlControllerState);
    }
    jobResult=h3wrapper.launchJob(jobName);
    log.debug("String_Node_Str" + new String(jobResult.response,"String_Node_Str"));
    jobResult=h3wrapper.waitForJobState(jobName,CrawlControllerState.PAUSED,60,1000);
    if (jobResult.job.crawlControllerState.equalsIgnoreCase(CrawlControllerState.PAUSED.toString())) {
      log.info("String_Node_Str",jobName);
    }
 else {
      log.warn("String_Node_Str",jobResult.job.crawlControllerState);
    }
    jobResult=h3wrapper.unpauseJob(jobName);
    log.info("String_Node_Str",jobName,jobResult.job.crawlControllerState);
    log.debug("String_Node_Str",jobName,new String(jobResult.response,"String_Node_Str"));
  }
 catch (  UnsupportedEncodingException e) {
    throw new IOFailure("String_Node_Str",e);
  }
}