Program: 14465
Project: 14465
Buggy source:
public void render(ReportArtEntity report,OutputStream os,Units units) throws IOException {
  Writer writer=new OutputStreamWriter(os);
  writer.write("String_Node_Str");
  writer.write("String_Node_Str");
  writer.write("String_Node_Str" + ms2Date(report.getBeginMs()) + "String_Node_Str");
  writer.write("String_Node_Str" + ms2Date(report.getEndMs()) + "String_Node_Str");
  writer.write("String_Node_Str");
  writer.write((new Row()).addEmptyCols(6,LABEL_WIDTH).addEmptyCols(3,VALUE_WIDTH).addCol("String_Node_Str" + units.getSizeUnit(),VALUE_WIDTH,3,"String_Node_Str").addCol("String_Node_Str" + units.getSizeUnit(),VALUE_WIDTH,3,"String_Node_Str").toString());
  writer.write((new Row()).addEmptyCols(6,LABEL_WIDTH).addCol("String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").toString());
  for (  String zoneName : report.getZones().keySet()) {
    AvailabilityZoneArtEntity zone=report.getZones().get(zoneName);
    writer.write((new InsRow()).addCol("String_Node_Str" + zoneName,LABEL_WIDTH,3,"String_Node_Str").addEmptyCols(3,LABEL_WIDTH).addCol("String_Node_Str").addCol("String_Node_Str").addUsageCols(zone.getUsageTotals().getInstanceTotals(),units).toString());
    for (    String clusterName : zone.getClusters().keySet()) {
      ClusterArtEntity cluster=zone.getClusters().get(clusterName);
      writer.write((new InsRow()).addEmptyCols(1,LABEL_WIDTH).addCol("String_Node_Str" + clusterName,LABEL_WIDTH,3,"String_Node_Str").addEmptyCols(2,LABEL_WIDTH).addCol("String_Node_Str").addCol("String_Node_Str").addUsageCols(zone.getUsageTotals().getInstanceTotals(),units).toString());
      for (      String accountName : cluster.getAccounts().keySet()) {
        AccountArtEntity account=cluster.getAccounts().get(accountName);
        writer.write((new InsRow()).addEmptyCols(2,LABEL_WIDTH).addCol("String_Node_Str" + accountName,LABEL_WIDTH,3,"String_Node_Str").addEmptyCols(1,LABEL_WIDTH).addCol("String_Node_Str").addCol("String_Node_Str").addUsageCols(zone.getUsageTotals().getInstanceTotals(),units).toString());
        for (        String userName : account.getUsers().keySet()) {
          UserArtEntity user=account.getUsers().get(userName);
          writer.write((new InsRow()).addEmptyCols(3,LABEL_WIDTH).addCol("String_Node_Str" + userName,LABEL_WIDTH,3,"String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").addUsageCols(zone.getUsageTotals().getInstanceTotals(),units).toString());
          for (          String instanceUuid : user.getInstances().keySet()) {
            InstanceArtEntity instance=user.getInstances().get(instanceUuid);
            writer.write((new InsRow()).addEmptyCols(6,LABEL_WIDTH).addCol(instance.getInstanceId()).addCol(instance.getInstanceType()).addUsageCols(zone.getUsageTotals().getInstanceTotals(),units).toString());
          }
        }
      }
    }
  }
  writer.write("String_Node_Str");
  writer.write("String_Node_Str");
  writer.flush();
}

Fixed version (ground truth):
public void render(ReportArtEntity report,OutputStream os,Units units) throws IOException {
  Writer writer=new OutputStreamWriter(os);
  writer.write("String_Node_Str");
  writer.write("String_Node_Str");
  writer.write("String_Node_Str" + ms2Date(report.getBeginMs()) + "String_Node_Str");
  writer.write("String_Node_Str" + ms2Date(report.getEndMs()) + "String_Node_Str");
  writer.write("String_Node_Str");
  writer.write((new Row()).addEmptyCols(6,LABEL_WIDTH).addEmptyCols(3,VALUE_WIDTH).addCol("String_Node_Str" + units.getSizeUnit(),VALUE_WIDTH,3,"String_Node_Str").addCol("String_Node_Str" + units.getSizeUnit(),VALUE_WIDTH,3,"String_Node_Str").toString());
  writer.write((new Row()).addEmptyCols(6,LABEL_WIDTH).addCol("String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").toString());
  for (  String zoneName : report.getZones().keySet()) {
    AvailabilityZoneArtEntity zone=report.getZones().get(zoneName);
    writer.write((new InsRow()).addCol("String_Node_Str" + zoneName,LABEL_WIDTH,3,"String_Node_Str").addEmptyCols(3,LABEL_WIDTH).addCol("String_Node_Str").addCol("String_Node_Str").addUsageCols(zone.getUsageTotals().getInstanceTotals(),units).toString());
    for (    String clusterName : zone.getClusters().keySet()) {
      ClusterArtEntity cluster=zone.getClusters().get(clusterName);
      writer.write((new InsRow()).addEmptyCols(1,LABEL_WIDTH).addCol("String_Node_Str" + clusterName,LABEL_WIDTH,3,"String_Node_Str").addEmptyCols(2,LABEL_WIDTH).addCol("String_Node_Str").addCol("String_Node_Str").addUsageCols(cluster.getUsageTotals().getInstanceTotals(),units).toString());
      for (      String accountName : cluster.getAccounts().keySet()) {
        AccountArtEntity account=cluster.getAccounts().get(accountName);
        writer.write((new InsRow()).addEmptyCols(2,LABEL_WIDTH).addCol("String_Node_Str" + accountName,LABEL_WIDTH,3,"String_Node_Str").addEmptyCols(1,LABEL_WIDTH).addCol("String_Node_Str").addCol("String_Node_Str").addUsageCols(account.getUsageTotals().getInstanceTotals(),units).toString());
        for (        String userName : account.getUsers().keySet()) {
          UserArtEntity user=account.getUsers().get(userName);
          writer.write((new InsRow()).addEmptyCols(3,LABEL_WIDTH).addCol("String_Node_Str" + userName,LABEL_WIDTH,3,"String_Node_Str").addCol("String_Node_Str").addCol("String_Node_Str").addUsageCols(user.getUsageTotals().getInstanceTotals(),units).toString());
          for (          String instanceUuid : user.getInstances().keySet()) {
            InstanceArtEntity instance=user.getInstances().get(instanceUuid);
            writer.write((new InsRow()).addEmptyCols(6,LABEL_WIDTH).addCol(instance.getInstanceId()).addCol(instance.getInstanceType()).addUsageCols(instance.getUsage(),units).toString());
          }
        }
      }
    }
  }
  writer.write("String_Node_Str");
  writer.write("String_Node_Str");
  writer.flush();
}