Program: 75464
Project: 75464
Buggy source:
/** 
 * Convert a MoML file that contains a Ptolemy II specification into a weighted graph representation, and display information about the weighted graph.
 * @param args The name of the MoML file.
 */
public static void main(String[] args){
  if (args.length != 1) {
    throw new RuntimeException("String_Node_Str" + "String_Node_Str");
  }
  NamedObj toplevel;
  try {
    MoMLParser parser=new MoMLParser();
    toplevel=parser.parseFile(args[0]);
  }
 catch (  Exception ex) {
    throw new RuntimeException(ex.getMessage() + "String_Node_Str");
  }
  if (!(toplevel instanceof CompositeActor)) {
    throw new RuntimeException("String_Node_Str" + "String_Node_Str" + ((toplevel == null) ? "String_Node_Str" : toplevel.getClass().getName()) + "String_Node_Str");
  }
  GraphReader graphReader=new GraphReader();
  DirectedGraph graph=(DirectedGraph)(graphReader.convert((CompositeActor)toplevel));
  System.out.println("String_Node_Str");
  System.out.println(graph.toString());
  Collection sourceCollection=graph.sourceNodes();
  System.out.println("String_Node_Str" + sourceCollection.size());
  Iterator sources=sourceCollection.iterator();
  while (sources.hasNext()) {
    int i=0;
    System.out.println("String_Node_Str" + i + "String_Node_Str"+ ((Node)(sources.next())).getWeight());
    System.out.println();
  }
  Collection sinkCollection=graph.sinkNodes();
  System.out.println("String_Node_Str" + sinkCollection.size());
  Iterator sinks=sinkCollection.iterator();
  while (sinks.hasNext()) {
    int i=0;
    System.out.println("String_Node_Str" + i + "String_Node_Str"+ ((Node)(sinks.next())).getWeight());
    System.out.println();
  }
}

Fixed version (ground truth):
/** 
 * Convert a MoML file that contains a Ptolemy II specification into a weighted graph representation, and display information about the weighted graph.
 * @param args The name of the MoML file.
 */
public static void main(String[] args){
  if (args.length != 1) {
    throw new RuntimeException("String_Node_Str" + "String_Node_Str");
  }
  NamedObj toplevel;
  try {
    MoMLParser parser=new MoMLParser();
    toplevel=parser.parseFile(args[0]);
  }
 catch (  Exception ex) {
    throw new RuntimeException(ex.getMessage() + "String_Node_Str");
  }
  if (!(toplevel instanceof CompositeActor)) {
    throw new RuntimeException("String_Node_Str" + "String_Node_Str" + ((toplevel == null) ? "String_Node_Str" : toplevel.getClass().getName()) + "String_Node_Str");
  }
  GraphReader graphReader=new GraphReader();
  DirectedGraph graph=(DirectedGraph)(graphReader.convert((CompositeActor)toplevel));
  System.out.println("String_Node_Str");
  System.out.println(graph.toString());
  Collection sourceCollection=graph.sourceNodes();
  System.out.println("String_Node_Str" + sourceCollection.size());
  Iterator sources=sourceCollection.iterator();
  int sourceNumber=1;
  while (sources.hasNext()) {
    System.out.println("String_Node_Str" + sourceNumber++ + "String_Node_Str"+ ((Node)(sources.next())).getWeight());
    System.out.println();
  }
  Collection sinkCollection=graph.sinkNodes();
  System.out.println("String_Node_Str" + sinkCollection.size());
  Iterator sinks=sinkCollection.iterator();
  int sinkNumber=1;
  while (sinks.hasNext()) {
    System.out.println("String_Node_Str" + sinkNumber++ + "String_Node_Str"+ ((Node)(sinks.next())).getWeight());
    System.out.println();
  }
}