Program: 89509
Project: 89509
Buggy source:
public void script(HttpServletRequest req,HttpServletResponse resp,List<Integer> numerics) throws IOException {
  Locale locale=resp.getLocale();
  resp.setContentType("String_Node_Str");
  ServletOutputStream out=resp.getOutputStream();
  Caching.caching_disable_headers(resp);
  TemplateBuilderFactory<H3ScriptTemplateBuilder> scriptTplBuilderFactory=TemplateBuilderFactory.getInstance(environment.templateMaster,"String_Node_Str","String_Node_Str",H3ScriptTemplateBuilder.class);
  H3ScriptTemplateBuilder scriptTplBuilder=scriptTplBuilderFactory.getTemplateBuilder();
  String engineStr=req.getParameter("String_Node_Str");
  String scriptStr=req.getParameter("String_Node_Str");
  if (scriptStr == null) {
    scriptStr="String_Node_Str";
  }
  StringBuilder sb=new StringBuilder();
  long jobId=numerics.get(0);
  Heritrix3JobMonitor h3Job=environment.h3JobMonitorThread.getRunningH3Job(jobId);
  if (h3Job != null && h3Job.isReady()) {
    if (engineStr != null && engineStr.length() > 0 && scriptStr != null && scriptStr.length() > 0) {
      ScriptResult scriptResult=h3Job.h3wrapper.ExecuteShellScriptInJob(h3Job.jobResult.job.shortName,engineStr,scriptStr);
      if (scriptResult != null && scriptResult.script != null) {
        if (scriptResult.script.failure) {
          if (scriptResult.script.stackTrace != null) {
            sb.append("String_Node_Str");
            sb.append("String_Node_Str");
            sb.append(StringEscapeUtils.escapeHtml(scriptResult.script.stackTrace));
            sb.append("String_Node_Str");
          }
 else           if (scriptResult.script.exception != null) {
            sb.append("String_Node_Str");
            sb.append("String_Node_Str");
            sb.append(StringEscapeUtils.escapeHtml(scriptResult.script.exception));
            sb.append("String_Node_Str");
          }
 else {
            sb.append("String_Node_Str");
          }
          sb.append("String_Node_Str");
          sb.append("String_Node_Str");
          sb.append(StringEscapeUtils.escapeHtml(new String(scriptResult.response,"String_Node_Str")));
          sb.append("String_Node_Str");
        }
 else {
          if (scriptResult.script.htmlOutput != null) {
            sb.append(scriptResult.script.htmlOutput);
          }
          if (scriptResult.script.rawOutput != null) {
            sb.append("String_Node_Str");
            sb.append(scriptResult.script.rawOutput);
            sb.append("String_Node_Str");
          }
          sb.append("String_Node_Str");
          sb.append(new String(scriptResult.response,"String_Node_Str"));
          sb.append("String_Node_Str");
        }
      }
 else {
        sb.append("String_Node_Str");
      }
    }
  }
  StringBuilder menuSb=scriptTplBuilder.buildMenu(new StringBuilder(),h3Job);
  scriptTplBuilder.insertContent("String_Node_Str",menuSb.toString(),environment.generateLanguageLinks(locale),"String_Node_Str",scriptStr,sb.toString(),"String_Node_Str" + Settings.get(HarvesterSettings.HARVEST_MONITOR_REFRESH_INTERVAL) + "String_Node_Str").write(out);
  out.flush();
  out.close();
}

Fixed version (ground truth):
public void script(HttpServletRequest req,HttpServletResponse resp,List<Integer> numerics) throws IOException {
  Locale locale=resp.getLocale();
  resp.setContentType("String_Node_Str");
  ServletOutputStream out=resp.getOutputStream();
  Caching.caching_disable_headers(resp);
  TemplateBuilderFactory<H3ScriptTemplateBuilder> scriptTplBuilderFactory=TemplateBuilderFactory.getInstance(environment.templateMaster,"String_Node_Str","String_Node_Str",H3ScriptTemplateBuilder.class);
  H3ScriptTemplateBuilder scriptTplBuilder=scriptTplBuilderFactory.getTemplateBuilder();
  String engineStr=req.getParameter("String_Node_Str");
  String scriptStr=req.getParameter("String_Node_Str");
  if (scriptStr == null) {
    scriptStr="String_Node_Str";
  }
  StringBuilder sb=new StringBuilder();
  long jobId=numerics.get(0);
  Heritrix3JobMonitor h3Job=environment.h3JobMonitorThread.getRunningH3Job(jobId);
  if (h3Job != null && h3Job.isReady()) {
    if (engineStr != null && engineStr.length() > 0 && scriptStr != null && scriptStr.length() > 0) {
      ScriptResult scriptResult=h3Job.h3wrapper.ExecuteShellScriptInJob(h3Job.jobResult.job.shortName,engineStr,scriptStr);
      if (scriptResult != null && scriptResult.script != null) {
        if (scriptResult.script.failure) {
          if (scriptResult.script.stackTrace != null) {
            sb.append("String_Node_Str");
            sb.append("String_Node_Str");
            sb.append(StringEscapeUtils.escapeHtml(scriptResult.script.stackTrace));
            sb.append("String_Node_Str");
          }
 else           if (scriptResult.script.exception != null) {
            sb.append("String_Node_Str");
            sb.append("String_Node_Str");
            sb.append(StringEscapeUtils.escapeHtml(scriptResult.script.exception));
            sb.append("String_Node_Str");
          }
 else {
            sb.append("String_Node_Str");
          }
          sb.append("String_Node_Str");
          sb.append("String_Node_Str");
          sb.append(StringEscapeUtils.escapeHtml(new String(scriptResult.response,"String_Node_Str")));
          sb.append("String_Node_Str");
        }
 else {
          if (scriptResult.script.htmlOutput != null) {
            sb.append(scriptResult.script.htmlOutput);
          }
          if (scriptResult.script.rawOutput != null) {
            sb.append("String_Node_Str");
            sb.append(scriptResult.script.rawOutput);
            sb.append("String_Node_Str");
          }
          sb.append("String_Node_Str");
          sb.append(new String(scriptResult.response,"String_Node_Str"));
          sb.append("String_Node_Str");
        }
      }
 else {
        sb.append("String_Node_Str");
      }
    }
  }
  StringBuilder menuSb=scriptTplBuilder.buildMenu(new StringBuilder(),h3Job);
  scriptTplBuilder.insertContent("String_Node_Str",menuSb.toString(),environment.generateLanguageLinks(locale),"String_Node_Str",scriptStr,sb.toString(),"String_Node_Str").write(out);
  out.flush();
  out.close();
}