Program: 109479
Project: 109479
Buggy source:
private ApplicationReportModel createApplicationReport(GraphContext context,ProjectModel projectModel){
  ApplicationReportModel applicationReportModel=context.getFramed().addVertex(null,ApplicationReportModel.class);
  applicationReportModel.setReportPriority(100);
  applicationReportModel.setDisplayInApplicationReportIndex(true);
  applicationReportModel.setReportName(OVERVIEW);
  applicationReportModel.setReportIconClass("String_Node_Str");
  applicationReportModel.setMainApplicationReport(true);
  applicationReportModel.setProjectModel(projectModel);
  applicationReportModel.setTemplatePath(TEMPLATE_APPLICATION_REPORT);
  applicationReportModel.setTemplateType(TemplateType.FREEMARKER);
  applicationReportModel.setDisplayInApplicationList(true);
  GraphService<OverviewReportLineMessageModel> lineNotesService=new GraphService<OverviewReportLineMessageModel>(context,OverviewReportLineMessageModel.class);
  Iterable<OverviewReportLineMessageModel> findAll=lineNotesService.findAll();
  for (  OverviewReportLineMessageModel find : findAll) {
    String projectPrettyPath=projectModel.getRootFileModel().getPrettyPath();
    if (projectPrettyPath == null) {
      throw new WindupException("String_Node_Str" + projectModel + "String_Node_Str");
    }
    ProjectModel project=find.getProject();
    boolean found=false;
    while (project != null && !found) {
      if (project.getRootFileModel() == null) {
        throw new WindupException("String_Node_Str" + project + "String_Node_Str");
      }
      if (projectPrettyPath.equals(project.getRootFileModel().getPrettyPath())) {
        applicationReportModel.addApplicationReportLine(find);
        found=true;
      }
 else {
        project=project.getParentProject();
      }
    }
  }
  ReportService reportService=new ReportService(context);
  reportService.setUniqueFilename(applicationReportModel,projectModel.getName(),"String_Node_Str");
  return applicationReportModel;
}

Fixed version (ground truth):
private ApplicationReportModel createApplicationReport(GraphContext context,ProjectModel projectModel){
  ApplicationReportModel applicationReportModel=context.getFramed().addVertex(null,ApplicationReportModel.class);
  applicationReportModel.setReportPriority(100);
  applicationReportModel.setDisplayInApplicationReportIndex(true);
  applicationReportModel.setReportName(OVERVIEW);
  applicationReportModel.setReportIconClass("String_Node_Str");
  applicationReportModel.setMainApplicationReport(true);
  applicationReportModel.setProjectModel(projectModel);
  applicationReportModel.setTemplatePath(TEMPLATE_APPLICATION_REPORT);
  applicationReportModel.setTemplateType(TemplateType.FREEMARKER);
  applicationReportModel.setDisplayInApplicationList(true);
  GraphService<OverviewReportLineMessageModel> lineNotesService=new GraphService<>(context,OverviewReportLineMessageModel.class);
  Iterable<OverviewReportLineMessageModel> allLines=lineNotesService.findAll();
  Set<String> dupeCheck=new HashSet<>();
  for (  OverviewReportLineMessageModel line : allLines) {
    if (dupeCheck.contains(line.getMessage()))     continue;
    String projectPrettyPath=projectModel.getRootFileModel().getPrettyPath();
    if (projectPrettyPath == null) {
      throw new WindupException("String_Node_Str" + projectModel + "String_Node_Str");
    }
    ProjectModel project=line.getProject();
    boolean found=false;
    while (project != null && !found) {
      if (project.getRootFileModel() == null) {
        throw new WindupException("String_Node_Str" + project + "String_Node_Str");
      }
      if (projectPrettyPath.equals(project.getRootFileModel().getPrettyPath())) {
        dupeCheck.add(line.getMessage());
        applicationReportModel.addApplicationReportLine(line);
        found=true;
      }
 else {
        project=project.getParentProject();
      }
    }
  }
  ReportService reportService=new ReportService(context);
  reportService.setUniqueFilename(applicationReportModel,projectModel.getName(),"String_Node_Str");
  return applicationReportModel;
}