Program: 50988
Project: 50988
Buggy source:
private void moduleOutput(Module module) throws IOException {
  File file=new File(root,ReporterTools.safe(module.name()) + "String_Node_Str");
  CSVWriter writer=new CSVWriter(new BufferedWriter(new FileWriter(file)));
  Set<Input> allUniverse=new HashSet<Input>();
  for (  ModuleInstance instance : module.instances()) {
    allUniverse.addAll(instance.universe().keySet());
  }
  List<Input> universeKeys=new ArrayList<Input>(allUniverse);
  Comparator<Input> inputNameComparator=new Comparator<Input>(){
    @Override public int compare(    Input o1,    Input o2){
      return (o1.module().name() + o1.name()).compareTo(o2.module().name() + o2.name());
    }
  }
;
  Collections.sort(universeKeys,inputNameComparator);
  int n=universeKeys.size() + module.inputs().size() + module.outputs().size()+ 2;
  String[] line=new String[n];
  int i=0;
  for (  Input universeKey : universeKeys) {
    line[i++]=universeKey.module().name() + "String_Node_Str" + universeKey.name();
  }
  line[i++]="String_Node_Str";
  for (  Input input : module.inputs())   line[i++]=input.name();
  line[i++]="String_Node_Str";
  for (  Output output : module.outputs())   line[i++]=output.name();
  writer.writeNext(line);
  for (  ModuleInstance instance : module.instances()) {
    i=0;
    for (    Input universeKey : universeKeys) {
      if (instance.universe().containsKey(universeKey))       line[i++]=instance.universe().get(universeKey).value().toString();
 else       line[i++]="String_Node_Str";
    }
    line[i++]="String_Node_Str";
    for (    InstanceInput input : instance.inputs())     line[i++]=input.value().toString();
    line[i++]="String_Node_Str";
    for (    InstanceOutput output : instance.outputs())     line[i++]=output.value().toString();
    writer.writeNext(line);
  }
  writer.close();
}

Fixed version (ground truth):
private void moduleOutput(Module module) throws IOException {
  File file=new File(root,ReporterTools.safe(module.name()) + "String_Node_Str");
  CSVWriter writer=new CSVWriter(new BufferedWriter(new FileWriter(file)));
  Set<Input> allUniverse=new HashSet<Input>();
  for (  ModuleInstance instance : module.instances()) {
    allUniverse.addAll(instance.universe().keySet());
  }
  List<Input> universeKeys=new ArrayList<Input>(allUniverse);
  Comparator<Input> inputNameComparator=new Comparator<Input>(){
    @Override public int compare(    Input o1,    Input o2){
      return (o1.module().name() + o1.name()).compareTo(o2.module().name() + o2.name());
    }
  }
;
  Collections.sort(universeKeys,inputNameComparator);
  int n=universeKeys.size() + module.inputs().size() + module.outputs().size()+ 2;
  String[] line=new String[n];
  int i=0;
  for (  Input universeKey : universeKeys) {
    line[i++]=universeKey.module().name() + "String_Node_Str" + universeKey.name();
  }
  line[i++]="String_Node_Str";
  for (  Input input : module.inputs())   line[i++]=input.name();
  line[i++]="String_Node_Str";
  for (  Output output : module.outputs())   line[i++]=output.name();
  writer.writeNext(line);
  for (  ModuleInstance instance : module.instances()) {
    i=0;
    for (    Input universeKey : universeKeys) {
      if (instance.universe().containsKey(universeKey))       line[i++]=instance.universe().get(universeKey).value().toString();
 else       line[i++]="String_Node_Str";
    }
    line[i++]="String_Node_Str";
    for (    InstanceInput input : instance.inputs())     line[i++]=input.value().toString();
    line[i++]="String_Node_Str";
    for (    InstanceOutput output : instance.outputs())     line[i++]=Functions.toString(output.value());
    writer.writeNext(line);
  }
  writer.close();
}