Program: 79702
Project: 79702
Buggy source:
protected ScriptHelper newScript(Map flags,String phase){
  ScriptHelper s=new ScriptHelper(this,phase + "String_Node_Str" + elvis(entity,this));
  if (!truth(flags.get("String_Node_Str"))) {
    if (phase == INSTALLING) {
      s.useMutex(getLocation(),getInstallDir(),"String_Node_Str" + elvis(entity,this));
      s.header.append("String_Node_Str" + getInstallDir() + "String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str").footer.append("String_Node_Str");
    }
    if (ImmutableSet.of(CUSTOMIZING,LAUNCHING,CHECK_RUNNING,STOPPING,RESTARTING).contains(phase)) {
      s.header.append("String_Node_Str" + getRunDir() + "String_Node_Str","String_Node_Str","String_Node_Str");
    }
  }
  if (ImmutableSet.of(CUSTOMIZING).contains(phase))   s.skipIfBodyEmpty();
  if (ImmutableSet.of(CHECK_RUNNING,LAUNCHING,STOPPING,RESTARTING).contains(phase))   s.failIfBodyEmpty();
  if (ImmutableSet.of(INSTALLING,LAUNCHING).contains(phase))   s.failOnNonZeroResultCode();
  if (truth(flags.get("String_Node_Str"))) {
    String pidFile=(flags.get("String_Node_Str") instanceof CharSequence ? flags.get("String_Node_Str") : getRunDir() + "String_Node_Str" + PID_FILENAME).toString();
    if (LAUNCHING.equals(phase))     s.footer.prepend("String_Node_Str" + pidFile);
 else     if (CHECK_RUNNING.equals(phase))     s.body.append("String_Node_Str" + pidFile + "String_Node_Str","String_Node_Str" + pidFile + "String_Node_Str").requireResultCode(Predicates.or(Predicates.equalTo(0),Predicates.equalTo(1)));
 else     if (STOPPING.equals(phase))     s.body.append("String_Node_Str" + pidFile + "String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str" + pidFile);
 else     if (RESTARTING.equals(phase))     s.footer.prepend("String_Node_Str" + pidFile + "String_Node_Str","String_Node_Str" + pidFile + "String_Node_Str");
 else     log.warn("String_Node_Str" + s.summary);
  }
  return s;
}

Fixed version (ground truth):
protected ScriptHelper newScript(Map flags,String phase){
  ScriptHelper s=new ScriptHelper(this,phase + "String_Node_Str" + elvis(entity,this));
  if (!truth(flags.get("String_Node_Str"))) {
    if (INSTALLING.equals(phase)) {
      s.useMutex(getLocation(),getInstallDir(),"String_Node_Str" + elvis(entity,this));
      s.header.append("String_Node_Str" + getInstallDir() + "String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str").footer.append("String_Node_Str");
    }
    if (ImmutableSet.of(CUSTOMIZING,LAUNCHING,CHECK_RUNNING,STOPPING,RESTARTING).contains(phase)) {
      s.header.append("String_Node_Str" + getRunDir() + "String_Node_Str","String_Node_Str","String_Node_Str");
    }
  }
  if (ImmutableSet.of(CUSTOMIZING).contains(phase))   s.skipIfBodyEmpty();
  if (ImmutableSet.of(CHECK_RUNNING,LAUNCHING,STOPPING,RESTARTING).contains(phase))   s.failIfBodyEmpty();
  if (ImmutableSet.of(INSTALLING,LAUNCHING).contains(phase))   s.failOnNonZeroResultCode();
  if (truth(flags.get("String_Node_Str"))) {
    String pidFile=(flags.get("String_Node_Str") instanceof CharSequence ? flags.get("String_Node_Str") : getRunDir() + "String_Node_Str" + PID_FILENAME).toString();
    if (LAUNCHING.equals(phase))     s.footer.prepend("String_Node_Str" + pidFile);
 else     if (CHECK_RUNNING.equals(phase))     s.body.append("String_Node_Str" + pidFile + "String_Node_Str","String_Node_Str" + pidFile + "String_Node_Str").requireResultCode(Predicates.or(Predicates.equalTo(0),Predicates.equalTo(1)));
 else     if (STOPPING.equals(phase))     s.body.append("String_Node_Str" + pidFile + "String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str" + pidFile);
 else     if (RESTARTING.equals(phase))     s.footer.prepend("String_Node_Str" + pidFile + "String_Node_Str","String_Node_Str" + pidFile + "String_Node_Str");
 else     log.warn("String_Node_Str" + s.summary);
  }
  return s;
}