Program: 142482
Project: 142482
Buggy source:
public static void store(File file,List<P4ChangeEntry> changes){
  try {
    FileOutputStream o=new FileOutputStream(file);
    BufferedOutputStream b=new BufferedOutputStream(o);
    Charset c=Charset.forName("String_Node_Str");
    OutputStreamWriter w=new OutputStreamWriter(b,c);
    WriterOutputStream s=new WriterOutputStream(w);
    PrintStream stream=new PrintStream(s);
    stream.println("String_Node_Str");
    stream.println("String_Node_Str");
    for (    P4ChangeEntry cl : changes) {
      stream.println("String_Node_Str");
      stream.println("String_Node_Str" + cl.getId() + "String_Node_Str");
      stream.println("String_Node_Str" + cl.getClientId() + "String_Node_Str");
      stream.println("String_Node_Str" + StringEscapeUtils.escapeXml(cl.getMsg()) + "String_Node_Str");
      stream.println("String_Node_Str" + StringEscapeUtils.escapeXml(cl.getAuthor().getDisplayName()) + "String_Node_Str");
      stream.println("String_Node_Str" + StringEscapeUtils.escapeXml(cl.getChangeTime()) + "String_Node_Str");
      stream.println("String_Node_Str" + cl.isShelved() + "String_Node_Str");
      stream.println("String_Node_Str");
      for (      IFileSpec filespec : cl.getFiles()) {
        FileAction action=filespec.getAction();
        int revision=filespec.getEndRevision();
        String depotPath=filespec.getDepotPathString();
        String safePath=URLEncoder.encode(depotPath,"String_Node_Str");
        stream.println("String_Node_Str" + revision + "String_Node_Str"+ action.name()+ "String_Node_Str"+ safePath+ "String_Node_Str");
      }
      stream.println("String_Node_Str");
      stream.println("String_Node_Str");
      List<IFix> jobs=cl.getJobs();
      if (jobs != null) {
        for (        IFix job : jobs) {
          String id=job.getJobId();
          String status=job.getStatus();
          stream.println("String_Node_Str" + id + "String_Node_Str"+ status+ "String_Node_Str");
        }
      }
      stream.println("String_Node_Str");
      stream.println("String_Node_Str");
      stream.println("String_Node_Str");
    }
    stream.println("String_Node_Str");
    stream.close();
  }
 catch (  FileNotFoundException e) {
    e.printStackTrace();
  }
catch (  UnsupportedEncodingException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public static void store(File file,List<P4ChangeEntry> changes){
  try {
    FileOutputStream o=new FileOutputStream(file);
    BufferedOutputStream b=new BufferedOutputStream(o);
    Charset c=Charset.forName("String_Node_Str");
    OutputStreamWriter w=new OutputStreamWriter(b,c);
    WriterOutputStream s=new WriterOutputStream(w);
    PrintStream stream=new PrintStream(s,true,"String_Node_Str");
    stream.println("String_Node_Str");
    stream.println("String_Node_Str");
    for (    P4ChangeEntry cl : changes) {
      stream.println("String_Node_Str");
      stream.println("String_Node_Str" + cl.getId() + "String_Node_Str");
      stream.println("String_Node_Str" + cl.getClientId() + "String_Node_Str");
      stream.println("String_Node_Str" + StringEscapeUtils.escapeXml(cl.getMsg()) + "String_Node_Str");
      stream.println("String_Node_Str" + StringEscapeUtils.escapeXml(cl.getAuthor().getDisplayName()) + "String_Node_Str");
      stream.println("String_Node_Str" + StringEscapeUtils.escapeXml(cl.getChangeTime()) + "String_Node_Str");
      stream.println("String_Node_Str" + cl.isShelved() + "String_Node_Str");
      stream.println("String_Node_Str");
      for (      IFileSpec filespec : cl.getFiles()) {
        FileAction action=filespec.getAction();
        int revision=filespec.getEndRevision();
        String depotPath=filespec.getDepotPathString();
        String safePath=URLEncoder.encode(depotPath,"String_Node_Str");
        stream.println("String_Node_Str" + revision + "String_Node_Str"+ action.name()+ "String_Node_Str"+ safePath+ "String_Node_Str");
      }
      stream.println("String_Node_Str");
      stream.println("String_Node_Str");
      List<IFix> jobs=cl.getJobs();
      if (jobs != null) {
        for (        IFix job : jobs) {
          String id=job.getJobId();
          String status=job.getStatus();
          stream.println("String_Node_Str" + id + "String_Node_Str"+ status+ "String_Node_Str");
        }
      }
      stream.println("String_Node_Str");
      stream.println("String_Node_Str");
      stream.println("String_Node_Str");
    }
    stream.println("String_Node_Str");
    stream.close();
  }
 catch (  FileNotFoundException e) {
    e.printStackTrace();
  }
catch (  UnsupportedEncodingException e) {
    e.printStackTrace();
  }
}