Program: 79394
Project: 79394
Buggy source:
private List<String> installLinuxFromPackageUrl(String expandedInstallDir){
  DynamicTasks.queueIfPossible(SshTasks.dontRequireTtyForSudo(getMachine(),SshTasks.OnFailingTask.WARN_OR_IF_DYNAMIC_FAIL_MARKING_INESSENTIAL)).orSubmitAndBlock();
  String installBin=Urls.mergePaths(expandedInstallDir,"String_Node_Str");
  String saveAsYum="String_Node_Str";
  String saveAsApt="String_Node_Str";
  OsDetails osDetails=getMachine().getOsDetails();
  String downloadUrl;
  String osReleaseCmd;
  if ("String_Node_Str".equalsIgnoreCase(osDetails.getName())) {
    downloadUrl=(String)entity.getAttribute(RiakNode.DOWNLOAD_URL_DEBIAN);
    osReleaseCmd=osDetails.getVersion().substring(0,osDetails.getVersion().indexOf("String_Node_Str"));
  }
 else {
    downloadUrl=(String)entity.getAttribute(RiakNode.DOWNLOAD_URL_UBUNTU);
    osReleaseCmd="String_Node_Str" + "String_Node_Str";
  }
  String apt=chainGroup("String_Node_Str","String_Node_Str",ok(sudo("String_Node_Str")),"String_Node_Str" + Strings.toLowerCase(osDetails.getName()),"String_Node_Str" + osReleaseCmd,String.format("String_Node_Str",saveAsApt,downloadUrl),sudo(String.format("String_Node_Str",saveAsApt)));
  String yum=chainGroup("String_Node_Str",ok(sudo("String_Node_Str")),String.format("String_Node_Str",saveAsYum,entity.getAttribute(RiakNode.DOWNLOAD_URL_RHEL_CENTOS)),sudo(String.format("String_Node_Str",saveAsYum)));
  return ImmutableList.<String>builder().add("String_Node_Str" + installBin).add(INSTALL_CURL).add(alternatives(apt,yum)).add("String_Node_Str" + Urls.mergePaths(installBin,"String_Node_Str")).add("String_Node_Str" + Urls.mergePaths(installBin,"String_Node_Str")).build();
}

Fixed version (ground truth):
private List<String> installLinuxFromPackageUrl(){
  DynamicTasks.queueIfPossible(SshTasks.dontRequireTtyForSudo(getMachine(),SshTasks.OnFailingTask.WARN_OR_IF_DYNAMIC_FAIL_MARKING_INESSENTIAL)).orSubmitAndBlock();
  String expandedInstallDir=getExpandedInstallDir();
  String installBin=Urls.mergePaths(expandedInstallDir,"String_Node_Str");
  String saveAsYum="String_Node_Str";
  String saveAsApt="String_Node_Str";
  OsDetails osDetails=getMachine().getOsDetails();
  String downloadUrl;
  String osReleaseCmd;
  if ("String_Node_Str".equalsIgnoreCase(osDetails.getName())) {
    downloadUrl=(String)entity.getAttribute(RiakNode.DOWNLOAD_URL_DEBIAN);
    osReleaseCmd=osDetails.getVersion().substring(0,osDetails.getVersion().indexOf("String_Node_Str"));
  }
 else {
    downloadUrl=(String)entity.getAttribute(RiakNode.DOWNLOAD_URL_UBUNTU);
    osReleaseCmd="String_Node_Str" + "String_Node_Str";
  }
  String apt=chainGroup("String_Node_Str" + sbinPath,"String_Node_Str",ok(sudo("String_Node_Str")),"String_Node_Str" + Strings.toLowerCase(osDetails.getName()),"String_Node_Str" + osReleaseCmd,String.format("String_Node_Str",saveAsApt,downloadUrl),sudo(String.format("String_Node_Str",saveAsApt)));
  String yum=chainGroup("String_Node_Str",ok(sudo("String_Node_Str")),String.format("String_Node_Str",saveAsYum,entity.getAttribute(RiakNode.DOWNLOAD_URL_RHEL_CENTOS)),sudo(String.format("String_Node_Str",saveAsYum)));
  return ImmutableList.<String>builder().add("String_Node_Str" + installBin).add(INSTALL_CURL).add(alternatives(apt,yum)).add("String_Node_Str" + Urls.mergePaths(installBin,"String_Node_Str")).add("String_Node_Str" + Urls.mergePaths(installBin,"String_Node_Str")).build();
}