Program: 178864
Project: 178864
Buggy source:
/** 
 * Runs an interactive test of the BTree.
 */
public static void testInteractive(BTree<Integer,Integer> tree){
  Scanner stdin=new Scanner(System.in);
  String line;
  String[] components;
  System.out.print("String_Node_Str");
  while (stdin.hasNextLine()) {
    line=stdin.nextLine();
    components=line.split("String_Node_Str");
    try {
      if (components[0].equalsIgnoreCase("String_Node_Str")) {
        if (components.length < 3) {
          System.out.println("String_Node_Str");
          continue;
        }
        Integer retVal=tree.put(new Integer(components[1]),new Integer(components[2]));
        System.out.println(retVal);
      }
 else       if (components[0].equalsIgnoreCase("String_Node_Str")) {
        Integer retVal=tree.get(Integer.parseInt(components[1]));
        System.out.println(retVal);
      }
 else       if (components[0].equalsIgnoreCase("String_Node_Str")) {
        System.out.println(tree);
      }
 else       if (components[0].equalsIgnoreCase("String_Node_Str")) {
      }
 else       if (components[0].equalsIgnoreCase("String_Node_Str")) {
        tree.clear();
      }
 else {
        System.out.println("String_Node_Str" + components[0]);
        System.out.println("String_Node_Str");
      }
    }
 catch (    NumberFormatException nfe) {
      System.out.println("String_Node_Str" + components[1] + "String_Node_Str");
    }
    System.out.print("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Runs an interactive test of the BTree.
 */
public static void testInteractive(BTree<Integer,Integer> tree){
  Scanner stdin=new Scanner(System.in);
  String line;
  String[] components;
  System.out.print("String_Node_Str");
  while (stdin.hasNextLine()) {
    line=stdin.nextLine();
    components=line.split("String_Node_Str");
    try {
      if (components[0].equalsIgnoreCase("String_Node_Str")) {
        if (components.length < 3) {
          System.out.println("String_Node_Str");
          continue;
        }
        Integer retVal=tree.put(new Integer(components[1]),new Integer(components[2]));
        System.out.println(retVal);
      }
 else       if (components[0].equalsIgnoreCase("String_Node_Str")) {
        Integer retVal=tree.get(Integer.parseInt(components[1]));
        System.out.println("String_Node_Str" + retVal);
      }
 else       if (components[0].equalsIgnoreCase("String_Node_Str")) {
        Integer retVal=tree.remove(Integer.parseInt(components[1]));
        System.out.println("String_Node_Str" + retVal);
      }
 else       if (components[0].equalsIgnoreCase("String_Node_Str")) {
        System.out.println(tree);
      }
 else       if (components[0].equalsIgnoreCase("String_Node_Str")) {
        Integer key=Integer.parseInt(components[1]);
        Node<Integer,Integer> node=tree.getRoot();
        while (node instanceof InternalNode) {
          System.out.println(Arrays.toString(node.getKeys()));
          node=node.getChild(key).left();
        }
        System.out.println(Arrays.toString(node.getKeys()));
      }
 else       if (components[0].equalsIgnoreCase("String_Node_Str")) {
        tree.clear();
      }
 else       if (components[0].equalsIgnoreCase("String_Node_Str")) {
        int i=Integer.parseInt(components[1]);
        Node<Integer,Integer> node=tree.getRoot();
        for (int j=0; j < i && node != null; ++j) {
          node=node.getChild(Integer.MIN_VALUE).left();
        }
        if (node != null) {
          System.out.print(Arrays.toString(node.getKeys()));
          node=node.getNext();
          while (node != null) {
            System.out.print("String_Node_Str" + Arrays.toString(node.getKeys()));
            node=node.getNext();
          }
          System.out.println();
        }
 else {
          System.err.println("String_Node_Str");
        }
      }
 else {
        System.err.println("String_Node_Str" + components[0]);
        System.err.println("String_Node_Str");
      }
    }
 catch (    NumberFormatException nfe) {
      System.err.println("String_Node_Str" + components[1] + "String_Node_Str");
    }
    System.out.print("String_Node_Str");
  }
}