Program: 86383
Project: 86383
Buggy source:
public static void main(String[] args) throws InterruptedException {
  String version=System.getProperty("String_Node_Str");
  String vmVendor=System.getProperty("String_Node_Str");
  String osName=System.getProperty("String_Node_Str");
  setSystemProperties(osName);
  setScHomeDir(osName);
  File f=new File(System.getProperty(PNAME_SC_HOME_DIR_LOCATION),System.getProperty(PNAME_SC_HOME_DIR_NAME) + File.separator + "String_Node_Str");
  if (f.exists()) {
    System.setProperty("String_Node_Str","String_Node_Str");
  }
  if (version.startsWith("String_Node_Str") || vmVendor.startsWith("String_Node_Str") || vmVendor.startsWith("String_Node_Str")) {
    String os="String_Node_Str";
    if (osName.startsWith("String_Node_Str"))     os=ChangeJVMFrame.MAC_OSX;
 else     if (osName.startsWith("String_Node_Str"))     os=ChangeJVMFrame.LINUX;
 else     if (osName.startsWith("String_Node_Str"))     os=ChangeJVMFrame.WINDOWS;
    ChangeJVMFrame changeJVMFrame=new ChangeJVMFrame(os);
    Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();
    changeJVMFrame.setLocation(screenSize.width / 2 - changeJVMFrame.getWidth() / 2,screenSize.height / 2 - changeJVMFrame.getHeight() / 2);
    changeJVMFrame.setVisible(true);
    return;
  }
  CmdLineArguments infoCLI=new CmdLineArguments();
  CmdLineParser parser=new CmdLineParser(infoCLI);
  try {
    parser.parseArgument(args);
  }
 catch (  CmdLineException e) {
    if (infoCLI.getHelpOption()) {
      System.out.println("String_Node_Str");
      System.out.println("String_Node_Str");
    }
 else {
      System.out.println(e.getMessage() + '\n');
    }
    System.out.println("String_Node_Str");
    parser.printUsage(System.out);
    System.exit(1);
  }
  if (infoCLI.getHelpOption()) {
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str");
    parser.printUsage(System.out);
    System.exit(1);
  }
  Hammer.init();
  HostInfo hostInfo=infoCLI.getHostInfoFromArguments();
  MediaDeviceChooser mdc=infoCLI.getMediaDeviceChooser();
  int numberOfFakeUsers=infoCLI.getNumberOfFakeUsers();
  List<Credential> credentials=infoCLI.getCredentialsList();
  if (credentials.size() > 0)   numberOfFakeUsers=credentials.size();
  final Hammer hammer=new Hammer(hostInfo,mdc,"String_Node_Str",numberOfFakeUsers);
  Runtime.getRuntime().addShutdownHook(new Thread(new Runnable(){
    public void run(){
      System.out.println("String_Node_Str");
      hammer.stop();
      System.out.println("String_Node_Str");
    }
  }
));
  if (credentials.size() > 0) {
    hammer.start(2000,credentials,infoCLI.getOverallStats(),infoCLI.getAllStats(),infoCLI.getSummaryStats(),infoCLI.getStatsPolling());
  }
 else {
    hammer.start(2000,infoCLI.getOverallStats(),infoCLI.getAllStats(),infoCLI.getSummaryStats(),infoCLI.getStatsPolling());
  }
  if (infoCLI.getRunLength() > 0) {
    Thread.sleep(infoCLI.getRunLength() * 1000);
  }
 else {
    while (true)     Thread.sleep(3600000);
  }
}

Fixed version (ground truth):
public static void main(String[] args) throws InterruptedException {
  String version=System.getProperty("String_Node_Str");
  String vmVendor=System.getProperty("String_Node_Str");
  String osName=System.getProperty("String_Node_Str");
  setSystemProperties(osName);
  setScHomeDir(osName);
  File f=new File(System.getProperty(PNAME_SC_HOME_DIR_LOCATION),System.getProperty(PNAME_SC_HOME_DIR_NAME) + File.separator + "String_Node_Str");
  if (f.exists()) {
    System.setProperty("String_Node_Str","String_Node_Str");
  }
  if (version.startsWith("String_Node_Str") || vmVendor.startsWith("String_Node_Str") || vmVendor.startsWith("String_Node_Str")) {
    String os="String_Node_Str";
    if (osName.startsWith("String_Node_Str"))     os=ChangeJVMFrame.MAC_OSX;
 else     if (osName.startsWith("String_Node_Str"))     os=ChangeJVMFrame.LINUX;
 else     if (osName.startsWith("String_Node_Str"))     os=ChangeJVMFrame.WINDOWS;
    ChangeJVMFrame changeJVMFrame=new ChangeJVMFrame(os);
    Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();
    changeJVMFrame.setLocation(screenSize.width / 2 - changeJVMFrame.getWidth() / 2,screenSize.height / 2 - changeJVMFrame.getHeight() / 2);
    changeJVMFrame.setVisible(true);
    return;
  }
  CmdLineArguments infoCLI=new CmdLineArguments();
  CmdLineParser parser=new CmdLineParser(infoCLI);
  try {
    parser.parseArgument(args);
  }
 catch (  CmdLineException e) {
    if (infoCLI.getHelpOption()) {
      System.out.println("String_Node_Str");
      System.out.println("String_Node_Str");
    }
 else {
      System.out.println(e.getMessage() + '\n');
    }
    System.out.println("String_Node_Str");
    parser.printUsage(System.out);
    System.exit(1);
  }
  if (infoCLI.getHelpOption()) {
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str");
    parser.printUsage(System.out);
    System.exit(1);
  }
  Hammer.init();
  HostInfo hostInfo=infoCLI.getHostInfoFromArguments();
  MediaDeviceChooser mdc=infoCLI.getMediaDeviceChooser();
  int numberOfFakeUsers=infoCLI.getNumberOfFakeUsers();
  List<Credential> credentials=infoCLI.getCredentialsList();
  if (credentials.size() > 0)   numberOfFakeUsers=credentials.size();
  final Hammer hammer=new Hammer(hostInfo,mdc,"String_Node_Str",numberOfFakeUsers);
  Runtime.getRuntime().addShutdownHook(new Thread(new Runnable(){
    public void run(){
      System.out.println("String_Node_Str");
      hammer.stop();
      System.out.println("String_Node_Str");
    }
  }
));
  if (credentials.size() > 0) {
    hammer.start(2000,credentials,infoCLI.getOverallStats(),infoCLI.getAllStats(),infoCLI.getSummaryStats(),infoCLI.getStatsPolling());
  }
 else {
    hammer.start(2000,infoCLI.getOverallStats(),infoCLI.getAllStats(),infoCLI.getSummaryStats(),infoCLI.getStatsPolling());
  }
  if (infoCLI.getRunLength() > 0) {
    Thread.sleep(infoCLI.getRunLength() * 1000);
  }
 else {
    while (true)     Thread.sleep(3600000);
  }
  System.exit(0);
}