Program: 96338
Project: 96338
Buggy source:
/** 
 * @param trayType LINUX_GTK = 1; LINUX_APP_INDICATOR = 2; SWING_INDICATOR = 3;
 */
public static void determineIconSize(int trayType){
  int scalingFactor=0;
  if (SystemTray.AUTO_TRAY_SIZE) {
    if (OS.isWindows()) {
      String windowsVersion="String_Node_Str";
      try {
        ByteArrayOutputStream byteArrayOutputStream=new ByteArrayOutputStream(8196);
        PrintStream outputStream=new PrintStream(byteArrayOutputStream);
        final ShellProcessBuilder shellVersion=new ShellProcessBuilder(outputStream);
        shellVersion.setExecutable("String_Node_Str");
        shellVersion.addArgument("String_Node_Str");
        shellVersion.addArgument("String_Node_Str");
        shellVersion.start();
        String output=ShellProcessBuilder.getOutput(byteArrayOutputStream);
        if (!output.isEmpty()) {
          if (SystemTray.DEBUG) {
            SystemTray.logger.debug("String_Node_Str",output);
          }
          if (output.contains("String_Node_Str")) {
            int beginIndex=output.indexOf("String_Node_Str") + 7;
            windowsVersion=output.substring(beginIndex,beginIndex + 6);
          }
        }
      }
 catch (      Throwable e) {
        if (SystemTray.DEBUG) {
          SystemTray.logger.error("String_Node_Str",e);
        }
      }
      if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=1;
      }
 else       if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=1;
      }
 else       if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=1;
      }
 else       if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=2;
      }
 else       if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=2;
      }
 else       if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=4;
      }
 else       if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=4;
      }
 else       if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=8;
      }
 else {
        scalingFactor=8;
      }
      if (SystemTray.DEBUG) {
        SystemTray.logger.error("String_Node_Str",windowsVersion);
      }
    }
 else {
      try {
        ByteArrayOutputStream byteArrayOutputStream=new ByteArrayOutputStream(8196);
        PrintStream outputStream=new PrintStream(byteArrayOutputStream);
        final ShellProcessBuilder shellVersion=new ShellProcessBuilder(outputStream);
        shellVersion.setExecutable("String_Node_Str");
        shellVersion.addArgument("String_Node_Str");
        shellVersion.addArgument("String_Node_Str");
        shellVersion.addArgument("String_Node_Str");
        shellVersion.start();
        String output=ShellProcessBuilder.getOutput(byteArrayOutputStream);
        if (!output.isEmpty()) {
          if (SystemTray.DEBUG) {
            SystemTray.logger.debug("String_Node_Str",output);
          }
          if (output.contains("String_Node_Str")) {
            String value=output.substring(output.indexOf("String_Node_Str") + 7,output.length() - 1);
            scalingFactor=Integer.parseInt(value);
          }
        }
      }
 catch (      Throwable e) {
        if (SystemTray.DEBUG) {
          SystemTray.logger.error("String_Node_Str",e);
        }
      }
    }
  }
  if (scalingFactor > 1) {
    TRAY_SIZE=SystemTray.DEFAULT_TRAY_SIZE * scalingFactor;
    ENTRY_SIZE=SystemTray.DEFAULT_MENU_SIZE;
    if (SystemTray.DEBUG) {
      SystemTray.logger.debug("String_Node_Str",scalingFactor,TRAY_SIZE);
    }
  }
 else {
    TRAY_SIZE=SystemTray.DEFAULT_TRAY_SIZE;
    ENTRY_SIZE=SystemTray.DEFAULT_MENU_SIZE;
  }
}

Fixed version (ground truth):
public static void determineIconSize(){
  int scalingFactor=0;
  if (SystemTray.AUTO_TRAY_SIZE) {
    if (OS.isWindows()) {
      String windowsVersion="String_Node_Str";
      try {
        ByteArrayOutputStream byteArrayOutputStream=new ByteArrayOutputStream(8196);
        PrintStream outputStream=new PrintStream(byteArrayOutputStream);
        final ShellProcessBuilder shellVersion=new ShellProcessBuilder(outputStream);
        shellVersion.setExecutable("String_Node_Str");
        shellVersion.addArgument("String_Node_Str");
        shellVersion.addArgument("String_Node_Str");
        shellVersion.start();
        String output=ShellProcessBuilder.getOutput(byteArrayOutputStream);
        if (!output.isEmpty()) {
          if (SystemTray.DEBUG) {
            SystemTray.logger.debug("String_Node_Str",output);
          }
          if (output.contains("String_Node_Str")) {
            int beginIndex=output.indexOf("String_Node_Str") + 7;
            windowsVersion=output.substring(beginIndex,beginIndex + 6);
          }
        }
      }
 catch (      Throwable e) {
        if (SystemTray.DEBUG) {
          SystemTray.logger.error("String_Node_Str",e);
        }
      }
      if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=1;
      }
 else       if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=1;
      }
 else       if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=1;
      }
 else       if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=2;
      }
 else       if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=2;
      }
 else       if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=4;
      }
 else       if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=4;
      }
 else       if (windowsVersion.startsWith("String_Node_Str")) {
        scalingFactor=8;
      }
 else {
        scalingFactor=8;
      }
      if (SystemTray.DEBUG) {
        SystemTray.logger.error("String_Node_Str",windowsVersion);
      }
    }
 else     if (OS.isLinux()) {
      try {
        ByteArrayOutputStream byteArrayOutputStream=new ByteArrayOutputStream(8196);
        PrintStream outputStream=new PrintStream(byteArrayOutputStream);
        final ShellProcessBuilder shellVersion=new ShellProcessBuilder(outputStream);
        shellVersion.setExecutable("String_Node_Str");
        shellVersion.addArgument("String_Node_Str");
        shellVersion.addArgument("String_Node_Str");
        shellVersion.addArgument("String_Node_Str");
        shellVersion.start();
        String output=ShellProcessBuilder.getOutput(byteArrayOutputStream);
        if (!output.isEmpty()) {
          if (SystemTray.DEBUG) {
            SystemTray.logger.debug("String_Node_Str",output);
          }
          if (output.contains("String_Node_Str")) {
            String value=output.substring(output.indexOf("String_Node_Str") + 7,output.length() - 1);
            scalingFactor=Integer.parseInt(value);
          }
        }
      }
 catch (      Throwable e) {
        if (SystemTray.DEBUG) {
          SystemTray.logger.error("String_Node_Str",e);
        }
      }
    }
 else     if (OS.isMacOsX()) {
      scalingFactor=8;
    }
  }
  if (scalingFactor > 1) {
    TRAY_SIZE=SystemTray.DEFAULT_TRAY_SIZE * scalingFactor;
    ENTRY_SIZE=SystemTray.DEFAULT_MENU_SIZE;
    if (SystemTray.DEBUG) {
      SystemTray.logger.debug("String_Node_Str",scalingFactor,TRAY_SIZE);
    }
  }
 else {
    TRAY_SIZE=SystemTray.DEFAULT_TRAY_SIZE;
    ENTRY_SIZE=SystemTray.DEFAULT_MENU_SIZE;
  }
}