Program: 89506
Project: 89506
Buggy source:
public void filter_add(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<MasterTemplateBuilder> masterTplBuilderFactory=TemplateBuilderFactory.getInstance(environment.templateMaster,"String_Node_Str","String_Node_Str",MasterTemplateBuilder.class);
  MasterTemplateBuilder masterTplBuilder=masterTplBuilderFactory.getTemplateBuilder();
  StringBuilder sb=new StringBuilder();
  String regex=req.getParameter("String_Node_Str");
  if (regex == null) {
    regex="String_Node_Str";
  }
  String[] removeIndexes=req.getParameterValues("String_Node_Str");
  if (removeIndexes == null) {
    removeIndexes=new String[0];
  }
  String initials="String_Node_Str";
  if (req.getParameter("String_Node_Str") != null) {
    initials=req.getParameter("String_Node_Str");
  }
 else   if (req.getParameter("String_Node_Str") != null) {
    initials=req.getParameter("String_Node_Str");
  }
  if (initials == null) {
    initials="String_Node_Str";
  }
  String script=environment.NAS_GROOVY_SCRIPT;
  if (regex.length() > 0 && !initials.isEmpty()) {
    String[] lines=regex.split(System.getProperty("String_Node_Str"));
    for (    String line : lines) {
      if (line.endsWith(System.getProperty("String_Node_Str")) || line.endsWith("String_Node_Str") || line.endsWith("String_Node_Str")) {
        line=line.substring(0,line.length() - 1);
      }
      script+="String_Node_Str" + initials + "String_Node_Str";
      script+="String_Node_Str" + line.replace("String_Node_Str","String_Node_Str") + "String_Node_Str";
    }
  }
  if (removeIndexes.length > 0 && !initials.isEmpty()) {
    script+="String_Node_Str" + initials + "String_Node_Str";
    script+="String_Node_Str" + Arrays.toString(removeIndexes) + "String_Node_Str";
  }
  script+="String_Node_Str";
  long jobId=numerics.get(0);
  Heritrix3JobMonitor h3Job=environment.h3JobMonitorThread.getRunningH3Job(jobId);
  if (h3Job != null && h3Job.isReady()) {
    boolean keepRegexTextArea=false;
    if (req.getParameter("String_Node_Str") != null && removeIndexes.length == 0) {
      sb.append("String_Node_Str");
    }
    if (req.getParameter("String_Node_Str") != null && regex.isEmpty()) {
      sb.append("String_Node_Str");
    }
    if ((req.getParameter("String_Node_Str") != null || req.getParameter("String_Node_Str") != null) && initials.isEmpty()) {
      sb.append("String_Node_Str");
      keepRegexTextArea=true;
    }
    sb.append("String_Node_Str");
    sb.append("String_Node_Str");
    sb.append("String_Node_Str");
    sb.append("String_Node_Str");
    if (keepRegexTextArea) {
      sb.append(regex);
    }
    sb.append("String_Node_Str");
    sb.append("String_Node_Str");
    sb.append("String_Node_Str" + initials + "String_Node_Str");
    sb.append("String_Node_Str");
    sb.append("String_Node_Str");
    ScriptResult scriptResult=h3Job.h3wrapper.ExecuteShellScriptInJob(h3Job.jobResult.job.shortName,"String_Node_Str",script);
    if (scriptResult != null && scriptResult.script != null && scriptResult.script.htmlOutput != null) {
      sb.append("String_Node_Str");
      sb.append("String_Node_Str");
      sb.append(scriptResult.script.htmlOutput);
      sb.append("String_Node_Str");
      sb.append("String_Node_Str");
      sb.append("String_Node_Str" + initials + "String_Node_Str");
      sb.append("String_Node_Str");
    }
    sb.append("String_Node_Str");
  }
 else {
    sb.append("String_Node_Str");
    sb.append(jobId);
    sb.append("String_Node_Str");
  }
  StringBuilder menuSb=masterTplBuilder.buildMenu(new StringBuilder(),h3Job);
  masterTplBuilder.insertContent("String_Node_Str" + jobId + "String_Node_Str",menuSb.toString(),environment.generateLanguageLinks(locale),"String_Node_Str" + jobId + "String_Node_Str",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 filter_add(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<MasterTemplateBuilder> masterTplBuilderFactory=TemplateBuilderFactory.getInstance(environment.templateMaster,"String_Node_Str","String_Node_Str",MasterTemplateBuilder.class);
  MasterTemplateBuilder masterTplBuilder=masterTplBuilderFactory.getTemplateBuilder();
  StringBuilder sb=new StringBuilder();
  String regex=req.getParameter("String_Node_Str");
  if (regex == null) {
    regex="String_Node_Str";
  }
  String[] removeIndexes=req.getParameterValues("String_Node_Str");
  if (removeIndexes == null) {
    removeIndexes=new String[0];
  }
  String initials="String_Node_Str";
  if (req.getParameter("String_Node_Str") != null) {
    initials=req.getParameter("String_Node_Str");
  }
 else   if (req.getParameter("String_Node_Str") != null) {
    initials=req.getParameter("String_Node_Str");
  }
  if (initials == null) {
    initials="String_Node_Str";
  }
  String script=environment.NAS_GROOVY_SCRIPT;
  if (regex.length() > 0 && !initials.isEmpty()) {
    String[] lines=regex.split(System.getProperty("String_Node_Str"));
    for (    String line : lines) {
      if (line.endsWith(System.getProperty("String_Node_Str")) || line.endsWith("String_Node_Str") || line.endsWith("String_Node_Str")) {
        line=line.substring(0,line.length() - 1);
      }
      script+="String_Node_Str" + initials + "String_Node_Str";
      script+="String_Node_Str" + line.replace("String_Node_Str","String_Node_Str") + "String_Node_Str";
    }
  }
  if (removeIndexes.length > 0 && !initials.isEmpty()) {
    script+="String_Node_Str" + initials + "String_Node_Str";
    script+="String_Node_Str" + Arrays.toString(removeIndexes) + "String_Node_Str";
  }
  script+="String_Node_Str";
  long jobId=numerics.get(0);
  Heritrix3JobMonitor h3Job=environment.h3JobMonitorThread.getRunningH3Job(jobId);
  if (h3Job != null && h3Job.isReady()) {
    boolean keepRegexTextArea=false;
    if (req.getParameter("String_Node_Str") != null && removeIndexes.length == 0) {
      sb.append("String_Node_Str");
    }
    if (req.getParameter("String_Node_Str") != null && regex.isEmpty()) {
      sb.append("String_Node_Str");
    }
    if ((req.getParameter("String_Node_Str") != null || req.getParameter("String_Node_Str") != null) && initials.isEmpty()) {
      sb.append("String_Node_Str");
      keepRegexTextArea=true;
    }
    sb.append("String_Node_Str");
    sb.append("String_Node_Str");
    sb.append("String_Node_Str");
    sb.append("String_Node_Str");
    if (keepRegexTextArea) {
      sb.append(regex);
    }
    sb.append("String_Node_Str");
    sb.append("String_Node_Str");
    sb.append("String_Node_Str" + initials + "String_Node_Str");
    sb.append("String_Node_Str");
    sb.append("String_Node_Str");
    ScriptResult scriptResult=h3Job.h3wrapper.ExecuteShellScriptInJob(h3Job.jobResult.job.shortName,"String_Node_Str",script);
    if (scriptResult != null && scriptResult.script != null && scriptResult.script.htmlOutput != null) {
      sb.append("String_Node_Str");
      sb.append("String_Node_Str");
      sb.append(scriptResult.script.htmlOutput);
      sb.append("String_Node_Str");
      sb.append("String_Node_Str");
      sb.append("String_Node_Str" + initials + "String_Node_Str");
      sb.append("String_Node_Str");
    }
    sb.append("String_Node_Str");
  }
 else {
    sb.append("String_Node_Str");
    sb.append(jobId);
    sb.append("String_Node_Str");
  }
  StringBuilder menuSb=masterTplBuilder.buildMenu(new StringBuilder(),h3Job);
  masterTplBuilder.insertContent("String_Node_Str" + jobId + "String_Node_Str",menuSb.toString(),environment.generateLanguageLinks(locale),"String_Node_Str" + jobId + "String_Node_Str",sb.toString(),"String_Node_Str").write(out);
  out.flush();
  out.close();
}