Program: 23173
Project: 23173
Buggy source:
private void processWarnings(boolean showOnlyErrors) throws Exception {
  String xslt=Utilities.path(page.getFolders().rootDir,"String_Node_Str","String_Node_Str","String_Node_Str");
  OutputStreamWriter s=new OutputStreamWriter(new FileOutputStream(page.getFolders().dstDir + "String_Node_Str"),"String_Node_Str");
  s.write("String_Node_Str");
  for (  WorkGroup wg : page.getDefinitions().getWorkgroups().values()) {
    s.write("String_Node_Str" + wg.getCode() + "String_Node_Str"+ wg.getName()+ "String_Node_Str"+ wg.getUrl()+ "String_Node_Str");
  }
  for (  PageInformation pn : page.getDefinitions().getPageInfo().values()) {
    s.write("String_Node_Str" + pn.getName() + "String_Node_Str"+ pn.getWgCode()+ "String_Node_Str"+ pn.getFmm()+ "String_Node_Str");
  }
  try {
    s.write(new String(Utilities.saxonTransform(page.getFolders().dstDir + "String_Node_Str",xslt)));
    s.write(new String(Utilities.saxonTransform(page.getFolders().dstDir + "String_Node_Str",xslt)));
    s.write(new String(Utilities.saxonTransform(page.getFolders().dstDir + "String_Node_Str",xslt)));
  }
 catch (  Exception e) {
    System.out.println(e.toString());
    for (    ValidationMessage err : page.getValidationErrors()) {
      if (!page.getSuppressedMessages().contains(err.getDisplay()))       System.out.println(err.summary());
    }
    throw new Exception("String_Node_Str");
  }
  for (  ValidationMessage e : page.getValidationErrors()) {
    if (!page.getSuppressedMessages().contains(e.getDisplay()))     s.write(e.toXML());
  }
  s.write("String_Node_Str");
  s.flush();
  s.close();
  String xslt2=Utilities.path(page.getFolders().rootDir,"String_Node_Str","String_Node_Str","String_Node_Str");
  FileOutputStream s2=new FileOutputStream(page.getFolders().dstDir + "String_Node_Str");
  s2.write(Utilities.saxonTransform(page.getFolders().dstDir + "String_Node_Str",xslt2).getBytes("String_Node_Str"));
  s2.flush();
  s2.close();
  String xslt3=Utilities.path(page.getFolders().rootDir,"String_Node_Str","String_Node_Str","String_Node_Str");
  String hw=Utilities.saxonTransform(page.getFolders().dstDir + "String_Node_Str",xslt3);
  if (!showOnlyErrors)   page.log(hw,LogMessageType.Process);
  int i=0;
  int w=0;
  int ee=0;
  for (  ValidationMessage e : page.getValidationErrors()) {
    if (e.getLevel() == IssueSeverity.ERROR || e.getLevel() == IssueSeverity.FATAL) {
      ee++;
      page.log(e.summary(),LogMessageType.Hint);
    }
 else     if (e.getLevel() == IssueSeverity.WARNING) {
      w++;
    }
 else     if (e.getLevel() == IssueSeverity.INFORMATION) {
      i++;
    }
  }
  page.getQa().setCounts(ee,w,i);
}

Fixed version (ground truth):
private void processWarnings(boolean showOnlyErrors) throws Exception {
  String xslt=Utilities.path(page.getFolders().rootDir,"String_Node_Str","String_Node_Str","String_Node_Str");
  OutputStreamWriter s=new OutputStreamWriter(new FileOutputStream(page.getFolders().dstDir + "String_Node_Str"),"String_Node_Str");
  s.write("String_Node_Str");
  for (  WorkGroup wg : page.getDefinitions().getWorkgroups().values()) {
    s.write("String_Node_Str" + wg.getCode() + "String_Node_Str"+ wg.getName()+ "String_Node_Str"+ wg.getUrl()+ "String_Node_Str");
  }
  for (  PageInformation pn : page.getDefinitions().getPageInfo().values()) {
    s.write("String_Node_Str" + pn.getName() + "String_Node_Str"+ pn.getWgCode()+ "String_Node_Str"+ pn.getFmm()+ "String_Node_Str");
  }
  try {
    s.write(new String(Utilities.saxonTransform(page.getFolders().dstDir + "String_Node_Str",xslt)));
    s.write(new String(Utilities.saxonTransform(page.getFolders().dstDir + "String_Node_Str",xslt)));
    s.write(new String(Utilities.saxonTransform(page.getFolders().dstDir + "String_Node_Str",xslt)));
  }
 catch (  Exception e) {
    System.out.println(e.toString());
    for (    ValidationMessage err : page.getValidationErrors()) {
      if (!page.getSuppressedMessages().contains(err.getDisplay()))       System.out.println(err.summary());
    }
    System.out.println("String_Node_Str");
  }
  for (  ValidationMessage e : page.getValidationErrors()) {
    if (!page.getSuppressedMessages().contains(e.getDisplay()))     s.write(e.toXML());
  }
  s.write("String_Node_Str");
  s.flush();
  s.close();
  String xslt2=Utilities.path(page.getFolders().rootDir,"String_Node_Str","String_Node_Str","String_Node_Str");
  FileOutputStream s2=new FileOutputStream(page.getFolders().dstDir + "String_Node_Str");
  s2.write(Utilities.saxonTransform(page.getFolders().dstDir + "String_Node_Str",xslt2).getBytes("String_Node_Str"));
  s2.flush();
  s2.close();
  String xslt3=Utilities.path(page.getFolders().rootDir,"String_Node_Str","String_Node_Str","String_Node_Str");
  String hw=Utilities.saxonTransform(page.getFolders().dstDir + "String_Node_Str",xslt3);
  if (!showOnlyErrors)   page.log(hw,LogMessageType.Process);
  int i=0;
  int w=0;
  int ee=0;
  for (  ValidationMessage e : page.getValidationErrors()) {
    if (e.getLevel() == IssueSeverity.ERROR || e.getLevel() == IssueSeverity.FATAL) {
      ee++;
      page.log(e.summary(),LogMessageType.Hint);
    }
 else     if (e.getLevel() == IssueSeverity.WARNING) {
      w++;
    }
 else     if (e.getLevel() == IssueSeverity.INFORMATION) {
      i++;
    }
  }
  page.getQa().setCounts(ee,w,i);
}