Program: 81054
Project: 81054
Buggy source:
/** 
 * Starts checking for website updates and listening for commands given through the console.
 */
public static void startCommandLineWebsiteChecking(){
  PAXChecker.continueProgram(new Runnable(){
    @Override public void run(){
      String input;
      while (true) {
        try {
          input=myScanner.nextLine();
        }
 catch (        Exception e) {
          System.out.println("String_Node_Str");
          continue;
        }
switch (input.toLowerCase()) {
case "String_Node_Str":
case "String_Node_Str":
case "String_Node_Str":
          System.exit(0);
        break;
case "String_Node_Str":
case "String_Node_Str":
case "String_Node_Str":
case "String_Node_Str":
      PAXChecker.sendTestEmail();
    break;
case "String_Node_Str":
case "String_Node_Str":
  Audio.playAlarm();
break;
case "String_Node_Str":
case "String_Node_Str":
forceRefresh=true;
break;
case "String_Node_Str":
case "String_Node_Str":
UpdateHandler.autoUpdate();
break;
default :
if (input.toLowerCase().startsWith("String_Node_Str") || input.toLowerCase().startsWith("String_Node_Str")) {
Email.addEmailAddress(input.substring(input.indexOf("String_Node_Str") + 1));
continue;
}
System.out.println("String_Node_Str" + input.toLowerCase());
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
break;
}
}
}
}
);
PAXChecker.continueProgram(new Runnable(){
@Override public void run(){
int seconds=getRefreshTime();
do {
long startMS=System.currentTimeMillis();
if (Paxsite.isPAXWebsiteUpdated()) {
final String link=Paxsite.getCurrentButtonLink();
System.out.println("String_Node_Str" + link);
Email.sendEmailInBackground("String_Node_Str","String_Node_Str" + link);
Browser.openLinkInBrowser(link);
Audio.playAlarm();
break;
}
 else if (Showclix.isShowclixUpdated()) {
final String link=Showclix.getShowclixLink();
System.out.println("String_Node_Str" + link);
Email.sendEmailInBackground("String_Node_Str","String_Node_Str" + link);
Browser.openLinkInBrowser(link);
Audio.playAlarm();
break;
}
System.out.println("String_Node_Str" + DataTracker.getDataUsedMB() + "String_Node_Str");
while (System.currentTimeMillis() - startMS < (seconds * 1000)) {
if (forceRefresh) {
forceRefresh=false;
break;
}
try {
Thread.sleep(100);
}
 catch (InterruptedException iE) {
}
}
}
 while (true);
System.out.println("String_Node_Str");
}
}
);
}

Fixed version (ground truth):
/** 
 * Starts checking for website updates and listening for commands given through the console.
 */
public static void startCommandLineWebsiteChecking(){
  PAXChecker.continueProgram(new Runnable(){
    @Override public void run(){
      String input;
      while (true) {
        try {
          input=myScanner.nextLine();
        }
 catch (        Exception e) {
          System.out.println("String_Node_Str");
          continue;
        }
switch (input.toLowerCase()) {
case "String_Node_Str":
case "String_Node_Str":
case "String_Node_Str":
          System.exit(0);
        break;
case "String_Node_Str":
case "String_Node_Str":
case "String_Node_Str":
case "String_Node_Str":
      PAXChecker.sendTestEmail();
    break;
case "String_Node_Str":
case "String_Node_Str":
  Audio.playAlarm();
break;
case "String_Node_Str":
case "String_Node_Str":
forceRefresh=true;
break;
case "String_Node_Str":
case "String_Node_Str":
UpdateHandler.autoUpdate();
break;
case "String_Node_Str":
case "String_Node_Str":
case "String_Node_Str":
case "String_Node_Str":
case "String_Node_Str":
System.out.println("String_Node_Str");
java.util.Iterator<Email.EmailAddress> it=Email.getAddressList().iterator();
while (it.hasNext()) {
System.out.println(it.next().getCompleteAddress());
}
break;
default :
if (input.toLowerCase().startsWith("String_Node_Str") || input.toLowerCase().startsWith("String_Node_Str")) {
Email.addEmailAddress(input.substring(input.indexOf("String_Node_Str") + 1));
continue;
}
System.out.println("String_Node_Str" + input.toLowerCase());
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
System.out.println("String_Node_Str");
break;
}
}
}
}
);
PAXChecker.continueProgram(new Runnable(){
@Override public void run(){
int seconds=getRefreshTime();
do {
long startMS=System.currentTimeMillis();
if (Paxsite.isPAXWebsiteUpdated()) {
final String link=Paxsite.getCurrentButtonLink();
System.out.println("String_Node_Str" + link);
Email.sendEmailInBackground("String_Node_Str","String_Node_Str" + link);
Browser.openLinkInBrowser(link);
Audio.playAlarm();
break;
}
 else if (Showclix.isShowclixUpdated()) {
final String link=Showclix.getShowclixLink();
System.out.println("String_Node_Str" + link);
Email.sendEmailInBackground("String_Node_Str","String_Node_Str" + link);
Browser.openLinkInBrowser(link);
Audio.playAlarm();
break;
}
System.out.println("String_Node_Str" + DataTracker.getDataUsedMB() + "String_Node_Str");
while (System.currentTimeMillis() - startMS < (seconds * 1000)) {
if (forceRefresh) {
forceRefresh=false;
break;
}
try {
Thread.sleep(100);
}
 catch (InterruptedException iE) {
}
}
}
 while (true);
System.out.println("String_Node_Str");
}
}
);
}