Program: 19030
Project: 19030
Buggy source:
ParsedCommand(Player player,Scanner scanner) throws SMSException {
  args=new ArrayList<String>();
  costs=new ArrayList<Cost>();
  elevated=restricted=whisper=macro=console=false;
  commandStopped=macroStopped=false;
  affordable=true;
  command=null;
  status=ReturnStatus.UNKNOWN;
  while (scanner.hasNext()) {
    String token=scanner.next();
    if (token.startsWith("String_Node_Str")) {
      command=token.substring(1);
      macro=true;
    }
 else     if ((token.startsWith("String_Node_Str") || token.startsWith("String_Node_Str")) && command == null) {
      command="String_Node_Str" + token.substring(2);
      elevated=true;
    }
 else     if (token.startsWith("String_Node_Str") && command == null) {
      command=token.substring(2);
      console=true;
    }
 else     if (token.startsWith("String_Node_Str") && command == null) {
      command=token;
    }
 else     if (token.startsWith("String_Node_Str") && command == null) {
      command=token.substring(2);
      whisper=true;
    }
 else     if (token.startsWith("String_Node_Str") && command == null) {
      command=token.substring(1);
    }
 else     if (token.startsWith("String_Node_Str") && command == null) {
      if (restrictionCheck(player,token.substring(2))) {
        restricted=true;
      }
    }
 else     if (token.startsWith("String_Node_Str") && command == null) {
      if (!restrictionCheck(player,token.substring(1))) {
        restricted=true;
      }
    }
 else     if (token.equals("String_Node_Str") && !restricted && affordable) {
      macroStopped=true;
      break;
    }
 else     if (token.equals("String_Node_Str") && !restricted && affordable) {
      commandStopped=true;
      break;
    }
 else     if (token.startsWith("String_Node_Str") && command == null) {
      for (      String c : token.substring(1).split("String_Node_Str")) {
        if (!c.isEmpty()) {
          try {
            costs.add(new Cost(c));
          }
 catch (          IllegalArgumentException e) {
            throw new SMSException(e.getMessage());
          }
        }
      }
      if (!Cost.playerCanAfford(player,getCosts())) {
        affordable=false;
      }
    }
 else     if (token.equals("String_Node_Str")) {
      break;
    }
 else {
      if (command == null)       command=token;
 else       args.add(token);
    }
  }
  if (player == null && command != null && command.startsWith("String_Node_Str")) {
    console=true;
    command=command.substring(1);
  }
}

Fixed version (ground truth):
ParsedCommand(Player player,Scanner scanner) throws SMSException {
  args=new ArrayList<String>();
  costs=new ArrayList<Cost>();
  elevated=restricted=whisper=macro=console=false;
  commandStopped=macroStopped=false;
  affordable=true;
  command=null;
  status=ReturnStatus.UNKNOWN;
  lastError="String_Node_Str";
  while (scanner.hasNext()) {
    String token=scanner.next();
    if (token.startsWith("String_Node_Str")) {
      command=token.substring(1);
      macro=true;
    }
 else     if ((token.startsWith("String_Node_Str") || token.startsWith("String_Node_Str")) && command == null) {
      command="String_Node_Str" + token.substring(2);
      elevated=true;
    }
 else     if (token.startsWith("String_Node_Str") && command == null) {
      command="String_Node_Str" + token.substring(2);
      console=true;
    }
 else     if (token.startsWith("String_Node_Str") && command == null) {
      command=token;
    }
 else     if (token.startsWith("String_Node_Str") && command == null) {
      command=token.substring(2);
      whisper=true;
    }
 else     if (token.startsWith("String_Node_Str") && command == null) {
      command=token.substring(1);
    }
 else     if (token.startsWith("String_Node_Str") && command == null) {
      if (restrictionCheck(player,token.substring(2))) {
        restricted=true;
      }
    }
 else     if (token.startsWith("String_Node_Str") && command == null) {
      if (!restrictionCheck(player,token.substring(1))) {
        restricted=true;
      }
    }
 else     if (token.equals("String_Node_Str") && !restricted && affordable) {
      macroStopped=commandStopped=!restricted && affordable;
      break;
    }
 else     if (token.equals("String_Node_Str")) {
      commandStopped=!restricted && affordable;
      break;
    }
 else     if (token.startsWith("String_Node_Str") && command == null) {
      for (      String c : token.substring(1).split("String_Node_Str")) {
        if (!c.isEmpty()) {
          try {
            costs.add(new Cost(c));
          }
 catch (          IllegalArgumentException e) {
            throw new SMSException(e.getMessage());
          }
        }
      }
      if (!Cost.playerCanAfford(player,getCosts())) {
        affordable=false;
      }
    }
 else     if (token.equals("String_Node_Str")) {
      break;
    }
 else {
      if (command == null)       command=token;
 else       args.add(token);
    }
  }
  if (player == null && command != null && command.startsWith("String_Node_Str")) {
    console=true;
  }
}