Program: 81057
Project: 81057
Buggy source:
public static void startProgram(String[] args){
  boolean doUpdate=true;
  boolean checkPax=true;
  boolean checkShowclix=true;
  boolean autoStart=false;
  boolean commandLine=false;
  if (args.length > 0) {
    System.out.println("String_Node_Str");
    argsCycle:     for (int a=0; a < args.length; a++) {
      System.out.println("String_Node_Str" + a + "String_Node_Str"+ args[a]);
switch (args[a].toLowerCase()) {
case "String_Node_Str":
        doUpdate=false;
      break;
case "String_Node_Str":
    KeyboardHandler.setTypeLink(true);
  break;
case "String_Node_Str":
Email.setUsername(args[a + 1]);
System.out.println("String_Node_Str" + Email.getUsername());
break;
case "String_Node_Str":
Email.setPassword(args[a + 1]);
System.out.println("String_Node_Str");
break;
case "String_Node_Str":
for (int b=a + 1; b < args.length; b++) {
if (args[b].startsWith("String_Node_Str")) {
a=b - 1;
continue argsCycle;
}
System.out.println("String_Node_Str" + args[b]);
Email.addEmailAddress(args[b]);
}
break;
case "String_Node_Str":
Browser.setExpo(args[a + 1]);
System.out.println("String_Node_Str" + Browser.getExpo());
break;
case "String_Node_Str":
if (!checkShowclix) {
System.out.println("String_Node_Str");
break;
}
System.out.println("String_Node_Str");
checkPax=false;
break;
case "String_Node_Str":
if (!checkPax) {
System.out.println("String_Node_Str");
break;
}
System.out.println("String_Node_Str");
checkShowclix=false;
break;
case "String_Node_Str":
System.out.println("String_Node_Str");
Audio.setPlayAlarm(true);
break;
case "String_Node_Str":
Checker.setRefreshTime(Integer.getInteger(args[a + 1],15));
System.out.println("String_Node_Str" + Checker.getRefreshTime());
break;
case "String_Node_Str":
autoStart=true;
break;
case "String_Node_Str":
commandLine=true;
break;
case "String_Node_Str":
try {
String key=args[a + 1];
String value=args[a + 2];
Email.setProperty(key,value);
}
 catch (Exception e) {
ErrorHandler.showErrorWindow("String_Node_Str","String_Node_Str",e);
}
default :
if (args[a].startsWith("String_Node_Str")) {
System.out.println("String_Node_Str" + args[a]);
}
break;
}
}
if (autoStart && !Paxsite.isCheckingPaxWebsite() && !Showclix.isCheckingShowclix()) {
System.out.println("String_Node_Str");
System.exit(0);
}
}
System.out.println("String_Node_Str");
Paxsite.setCheckPax(checkPax);
Showclix.setCheckShowclix(checkShowclix);
if (commandLine) {
ErrorHandler.setCommandLine(true);
if (doUpdate) {
UpdateHandler.loadVersionNotes();
UpdateHandler.autoUpdate(args);
}
 else {
startBackgroundThread(new Runnable(){
@Override public void run(){
UpdateHandler.loadVersionNotes();
}
}
,"String_Node_Str");
}
if (!autoStart) {
Checker.commandLineSettingsInput();
}
Checker.startCommandLineWebsiteChecking();
return;
}
KeyboardHandler.init();
if (doUpdate) {
UpdateHandler.loadVersionNotes();
UpdateHandler.checkUpdate(args);
}
 else {
startBackgroundThread(new Runnable(){
@Override public void run(){
UpdateHandler.loadVersionNotes();
}
}
,"String_Node_Str");
}
if (autoStart) {
Checker.startCheckingWebsites();
}
 else {
setup=new Setup();
}
Checker.loadAlertIcon();
}

Fixed version (ground truth):
public static void startProgram(String[] args){
  boolean doUpdate=true;
  boolean checkPax=true;
  boolean checkShowclix=true;
  boolean autoStart=false;
  boolean commandLine=false;
  boolean savePrefs=false;
  if (args.length > 0) {
    System.out.println("String_Node_Str");
    argsCycle:     for (int a=0; a < args.length; a++) {
      System.out.println("String_Node_Str" + a + "String_Node_Str"+ args[a]);
switch (args[a].toLowerCase()) {
case "String_Node_Str":
        doUpdate=false;
      break;
case "String_Node_Str":
    KeyboardHandler.setTypeLink(true);
  break;
case "String_Node_Str":
Email.setUsername(args[a + 1]);
System.out.println("String_Node_Str" + Email.getUsername());
break;
case "String_Node_Str":
Email.setPassword(args[a + 1]);
System.out.println("String_Node_Str");
break;
case "String_Node_Str":
for (int b=a + 1; b < args.length; b++) {
if (args[b].startsWith("String_Node_Str")) {
a=b - 1;
continue argsCycle;
}
System.out.println("String_Node_Str" + args[b]);
Email.addEmailAddress(args[b]);
}
break;
case "String_Node_Str":
Browser.setExpo(args[a + 1]);
System.out.println("String_Node_Str" + Browser.getExpo());
break;
case "String_Node_Str":
if (!checkShowclix) {
System.out.println("String_Node_Str");
break;
}
System.out.println("String_Node_Str");
checkPax=false;
break;
case "String_Node_Str":
if (!checkPax) {
System.out.println("String_Node_Str");
break;
}
System.out.println("String_Node_Str");
checkShowclix=false;
break;
case "String_Node_Str":
System.out.println("String_Node_Str");
Audio.setPlayAlarm(true);
break;
case "String_Node_Str":
Checker.setRefreshTime(Integer.getInteger(args[a + 1],15));
System.out.println("String_Node_Str" + Checker.getRefreshTime());
break;
case "String_Node_Str":
autoStart=true;
break;
case "String_Node_Str":
commandLine=true;
break;
case "String_Node_Str":
try {
String key=args[a + 1];
String value=args[a + 2];
Email.setProperty(key,value);
}
 catch (Exception e) {
ErrorHandler.showErrorWindow("String_Node_Str","String_Node_Str",e);
}
break;
case "String_Node_Str":
savePrefs=true;
break;
default :
if (args[a].startsWith("String_Node_Str")) {
System.out.println("String_Node_Str" + args[a]);
}
break;
}
}
if (autoStart && !Paxsite.isCheckingPaxWebsite() && !Showclix.isCheckingShowclix()) {
System.out.println("String_Node_Str");
System.exit(0);
}
}
System.out.println("String_Node_Str");
Paxsite.setCheckPax(checkPax);
Showclix.setCheckShowclix(checkShowclix);
if (commandLine) {
ErrorHandler.setCommandLine(true);
if (doUpdate) {
UpdateHandler.loadVersionNotes();
UpdateHandler.autoUpdate(args);
}
 else {
startBackgroundThread(new Runnable(){
@Override public void run(){
UpdateHandler.loadVersionNotes();
}
}
,"String_Node_Str");
}
if (!autoStart) {
Checker.commandLineSettingsInput();
}
if (savePrefs) {
SettingsHandler.setSaveAll(true,true,true,true,true,true,true);
SettingsHandler.saveAllPrefs();
}
Checker.startCommandLineWebsiteChecking();
return;
}
KeyboardHandler.init();
if (doUpdate) {
UpdateHandler.loadVersionNotes();
UpdateHandler.checkUpdate(args);
}
 else {
startBackgroundThread(new Runnable(){
@Override public void run(){
UpdateHandler.loadVersionNotes();
}
}
,"String_Node_Str");
}
if (autoStart) {
Checker.startCheckingWebsites();
}
 else {
setup=new Setup();
}
Checker.loadAlertIcon();
}