Program: 109390
Project: 109390
Buggy source:
private void generateDataSummary(GraphRewrite event){
  ReportService reportService=new ReportService(event.getGraphContext());
  try {
    Path dataDirectory=reportService.getReportDataDirectory();
    Path issueSummaryJSPath=dataDirectory.resolve(ISSUE_SUMMARIES_JS);
    try (FileWriter issueSummaryWriter=new FileWriter(issueSummaryJSPath.toFile())){
      WindupConfigurationModel windupConfiguration=WindupConfigurationService.getConfigurationModel(event.getGraphContext());
      issueSummaryWriter.write("String_Node_Str" + NEWLINE);
      for (      FileModel inputApplicationFile : windupConfiguration.getInputPaths()) {
        ProjectModel inputApplication=inputApplicationFile.getProjectModel();
        ProjectModelTraversal projectModelTraversal=new ProjectModelTraversal(inputApplication,new OnlyOnceTraversalStrategy());
        MappingJsonFactory jsonFactory=new MappingJsonFactory();
        jsonFactory.disable(JsonGenerator.Feature.AUTO_CLOSE_TARGET);
        ObjectMapper objectMapper=new ObjectMapper(jsonFactory);
        Map<String,List<ProblemSummary>> summariesBySeverity=ProblemSummaryService.getProblemSummaries(event,projectModelTraversal.getAllProjects(true),Collections.emptySet(),Collections.emptySet()).entrySet().stream().collect(Collectors.toMap((e) -> e.getKey().getName(),Map.Entry::getValue));
        issueSummaryWriter.write("String_Node_Str" + inputApplication.asVertex().getId() + "String_Node_Str");
        objectMapper.writeValue(issueSummaryWriter,summariesBySeverity);
        issueSummaryWriter.write("String_Node_Str" + NEWLINE);
      }
      issueSummaryWriter.write("String_Node_Str" + NEWLINE);
      for (      EffortReportService.EffortLevel level : EffortReportService.EffortLevel.values()) {
        issueSummaryWriter.write("String_Node_Str" + level.getPoints() + "String_Node_Str"+ level.getShortDescription()+ "String_Node_Str");
        issueSummaryWriter.write(NEWLINE);
      }
      issueSummaryWriter.write("String_Node_Str");
      String comma="String_Node_Str";
      for (      EffortLevel level : EffortLevel.values()) {
        issueSummaryWriter.write(comma);
        comma="String_Node_Str";
        issueSummaryWriter.write("String_Node_Str");
        issueSummaryWriter.write(level.getShortDescription());
        issueSummaryWriter.write("String_Node_Str");
      }
      issueSummaryWriter.write("String_Node_Str" + NEWLINE);
      issueSummaryWriter.write("String_Node_Str");
      IssueCategoryRegistry issueCategoryRegistry=IssueCategoryRegistry.instance(event.getRewriteContext());
      for (      IssueCategory issueCategory : issueCategoryRegistry.getIssueCategories()) {
        issueSummaryWriter.write("String_Node_Str" + issueCategory.getName() + "String_Node_Str");
      }
      issueSummaryWriter.write("String_Node_Str" + NEWLINE);
    }
   }
 catch (  Exception e) {
    throw new WindupException("String_Node_Str" + e.getMessage(),e);
  }
}

Fixed version (ground truth):
private void generateDataSummary(GraphRewrite event){
  ReportService reportService=new ReportService(event.getGraphContext());
  try {
    Path dataDirectory=reportService.getReportDataDirectory();
    Path issueSummaryJSPath=dataDirectory.resolve(ISSUE_SUMMARIES_JS);
    try (FileWriter issueSummaryWriter=new FileWriter(issueSummaryJSPath.toFile())){
      WindupConfigurationModel windupConfiguration=WindupConfigurationService.getConfigurationModel(event.getGraphContext());
      issueSummaryWriter.write("String_Node_Str" + NEWLINE);
      for (      FileModel inputApplicationFile : windupConfiguration.getInputPaths()) {
        ProjectModel inputApplication=inputApplicationFile.getProjectModel();
        ProjectModelTraversal projectModelTraversal=new ProjectModelTraversal(inputApplication,new OnlyOnceTraversalStrategy());
        MappingJsonFactory jsonFactory=new MappingJsonFactory();
        jsonFactory.disable(JsonGenerator.Feature.AUTO_CLOSE_TARGET);
        ObjectMapper objectMapper=new ObjectMapper(jsonFactory);
        Map<String,List<ProblemSummary>> summariesBySeverity=ProblemSummaryService.getProblemSummaries(event.getGraphContext(),projectModelTraversal.getAllProjects(true),Collections.emptySet(),Collections.emptySet()).entrySet().stream().collect(Collectors.toMap((e) -> e.getKey().getName(),Map.Entry::getValue));
        issueSummaryWriter.write("String_Node_Str" + inputApplication.asVertex().getId() + "String_Node_Str");
        objectMapper.writeValue(issueSummaryWriter,summariesBySeverity);
        issueSummaryWriter.write("String_Node_Str" + NEWLINE);
      }
      issueSummaryWriter.write("String_Node_Str" + NEWLINE);
      for (      EffortReportService.EffortLevel level : EffortReportService.EffortLevel.values()) {
        issueSummaryWriter.write("String_Node_Str" + level.getPoints() + "String_Node_Str"+ level.getShortDescription()+ "String_Node_Str");
        issueSummaryWriter.write(NEWLINE);
      }
      issueSummaryWriter.write("String_Node_Str");
      String comma="String_Node_Str";
      for (      EffortLevel level : EffortLevel.values()) {
        issueSummaryWriter.write(comma);
        comma="String_Node_Str";
        issueSummaryWriter.write("String_Node_Str");
        issueSummaryWriter.write(level.getShortDescription());
        issueSummaryWriter.write("String_Node_Str");
      }
      issueSummaryWriter.write("String_Node_Str" + NEWLINE);
      issueSummaryWriter.write("String_Node_Str");
      IssueCategoryRegistry issueCategoryRegistry=IssueCategoryRegistry.instance(event.getRewriteContext());
      for (      IssueCategory issueCategory : issueCategoryRegistry.getIssueCategories()) {
        issueSummaryWriter.write("String_Node_Str" + issueCategory.getName() + "String_Node_Str");
      }
      issueSummaryWriter.write("String_Node_Str" + NEWLINE);
    }
   }
 catch (  Exception e) {
    throw new WindupException("String_Node_Str" + e.getMessage(),e);
  }
}