Program: 26441
Project: 26441
Buggy source:
private void writeRawData(Interval interval){
  System.out.println("String_Node_Str" + TimeFormatCache.formatInterval(interval));
  File rawDirectory=createSubdirectory("String_Node_Str",interval);
  System.out.println("String_Node_Str" + rawDirectory.getAbsolutePath());
  for (  DataSet data : getDataSets()) {
    if (data.getRecordCount(interval) == 0) {
      System.out.println("String_Node_Str" + data.getHostname() + "String_Node_Str");
      continue;
    }
    System.out.print("String_Node_Str" + data.getHostname() + "String_Node_Str");
    System.out.flush();
    File dataFile=new File(rawDirectory,data.getHostname() + "String_Node_Str");
    FileWriter writer=null;
    try {
      writer=new FileWriter(dataFile);
      CSVWriter.write(data,interval,writer);
      System.out.println("String_Node_Str");
    }
 catch (    IOException ioe) {
      System.err.println("String_Node_Str" + dataFile.getName());
    }
 finally {
      if (writer != null) {
        try {
          writer.close();
        }
 catch (        IOException ioe) {
        }
      }
    }
    if (data instanceof ProcessDataSet) {
      ProcessDataSet processData=(ProcessDataSet)data;
      if (processData.getProcessCount() == 0) {
        continue;
      }
      dataFile=new File(rawDirectory,data.getHostname() + "String_Node_Str" + "String_Node_Str");
      writer=null;
      try {
        writer=new FileWriter(dataFile);
        CSVWriter.writeProcesses(data,writer);
        System.out.println("String_Node_Str");
      }
 catch (      IOException ioe) {
        System.err.println("String_Node_Str" + dataFile.getName());
      }
 finally {
        if (writer != null) {
          try {
            writer.close();
          }
 catch (          IOException ioe) {
          }
        }
      }
    }
  }
}

Fixed version (ground truth):
private void writeRawData(Interval interval){
  System.out.println("String_Node_Str" + TimeFormatCache.formatInterval(interval));
  File rawDirectory=createSubdirectory("String_Node_Str",interval);
  System.out.println("String_Node_Str" + rawDirectory.getAbsolutePath());
  for (  DataSet data : getDataSets()) {
    if (data.getRecordCount(interval) == 0) {
      System.out.println("String_Node_Str" + data.getHostname() + "String_Node_Str");
      continue;
    }
    System.out.print("String_Node_Str" + data.getHostname() + "String_Node_Str");
    System.out.flush();
    File dataFile=new File(rawDirectory,data.getHostname() + "String_Node_Str");
    FileWriter writer=null;
    try {
      writer=new FileWriter(dataFile);
      CSVWriter.write(data,interval,writer);
      System.out.println("String_Node_Str");
    }
 catch (    IOException ioe) {
      System.err.println("String_Node_Str" + dataFile.getName());
    }
 finally {
      if (writer != null) {
        try {
          writer.close();
        }
 catch (        IOException ioe) {
        }
      }
    }
    if (data instanceof ProcessDataSet) {
      ProcessDataSet processData=(ProcessDataSet)data;
      if (processData.getProcessCount() == 0) {
        continue;
      }
      dataFile=new File(rawDirectory,data.getHostname() + "String_Node_Str" + "String_Node_Str");
      writer=null;
      try {
        writer=new FileWriter(dataFile);
        CSVWriter.writeProcesses(data,writer);
        System.out.println("String_Node_Str");
      }
 catch (      IOException ioe) {
        System.err.println("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ dataFile.getName());
      }
 finally {
        if (writer != null) {
          try {
            writer.close();
          }
 catch (          IOException ioe) {
          }
        }
      }
    }
  }
}