Program: 97594
Project: 97594
Buggy source:
public void runIt(IProgressMonitor monitor,XResultData xResultData) throws OseeCoreException {
  SevereLoggingMonitor monitorLog=new SevereLoggingMonitor();
  OseeLog.registerLoggerListener(monitorLog);
  AtsBulkLoad.loadConfig(true);
  int count=0;
  List<Collection<Integer>> artIdLists=null;
  ElapsedTime elapsedTime=new ElapsedTime("String_Node_Str");
  artIdLists=loadAtsBranchArtifactIds(xResultData,monitor);
  elapsedTime.end();
  if (monitor != null) {
    monitor.beginTask(getName(),artIdLists.size());
  }
  OseeEventManager.setDisableEvents(true);
  try {
    testNameToResultsMap=new HashCollection<String,String>();
    hrids.clear();
    legacyPcrIdToParentHrid.clear();
    for (    Collection<Integer> artIdList : artIdLists) {
      Collection<Artifact> allArtifacts=ArtifactQuery.getArtifactListFromIds(artIdList,AtsUtil.getAtsBranch());
      List<Artifact> artifacts=new ArrayList<Artifact>(allArtifacts.size());
      for (      Artifact artifact : allArtifacts) {
        if (!artifact.isDeleted()) {
          artifacts.add(artifact);
        }
      }
      count+=artifacts.size();
      testCompletedCancelledStateAttributesSetWithPersist(artifacts);
      testStateAttributeDuplications(artifacts);
      testArtifactIds(artifacts);
      testAtsAttributevaluesWithPersist(artifacts);
      testStateInWorkDefinition(artifacts);
      testAttributeSetWorkDefinitionsExist(artifacts);
      testAtsActionsHaveTeamWorkflow(artifacts);
      testAtsWorkflowsHaveAction(artifacts);
      testAtsWorkflowsHaveZeroOrOneVersion(artifacts);
      testAtsWorkflowsValidVersion(artifacts);
      testTasksHaveParentWorkflow(artifacts);
      testReviewsHaveParentWorkflowOrActionableItems(artifacts);
      testReviewsHaveValidDefectAndRoleXml(artifacts);
      testTeamWorkflows(artifacts);
      testAtsBranchManager(artifacts);
      testTeamDefinitions(artifacts);
      testVersionArtifacts(artifacts);
      testStateMachineAssignees(artifacts);
      testAtsLogs(artifacts);
      testActionableItemToTeamDefinition(artifacts);
      for (      IAtsHealthCheck atsHealthCheck : AtsHealthCheck.getAtsHealthCheckItems()) {
        atsHealthCheck.validateAtsDatabase(artifacts,testNameToResultsMap,testNameToTimeSpentMap);
      }
      if (monitor != null) {
        monitor.worked(1);
      }
    }
    addResultsMapToResultData(xResultData,testNameToResultsMap);
    addTestTimeMapToResultData(xResultData);
  }
  finally {
    OseeEventManager.setDisableEvents(false);
  }
  xResultData.reportSevereLoggingMonitor(monitorLog);
  if (monitor != null) {
    xResultData.log(monitor,"String_Node_Str" + count + "String_Node_Str");
  }
}

Fixed version (ground truth):
public void runIt(IProgressMonitor monitor,XResultData xResultData) throws OseeCoreException {
  SevereLoggingMonitor monitorLog=new SevereLoggingMonitor();
  OseeLog.registerLoggerListener(monitorLog);
  AtsBulkLoad.loadConfig(true);
  int count=0;
  List<Collection<Integer>> artIdLists=null;
  ElapsedTime elapsedTime=new ElapsedTime("String_Node_Str");
  artIdLists=loadAtsBranchArtifactIds(xResultData,monitor);
  elapsedTime.end();
  if (monitor != null) {
    monitor.beginTask(getName(),artIdLists.size());
  }
  OseeEventManager.setDisableEvents(true);
  try {
    testNameToResultsMap=new HashCollection<String,String>();
    hrids.clear();
    legacyPcrIdToParentHrid.clear();
    for (    Collection<Integer> artIdList : artIdLists) {
      Collection<Artifact> allArtifacts=ArtifactQuery.getArtifactListFromIds(artIdList,AtsUtil.getAtsBranch());
      List<Artifact> artifacts=new ArrayList<Artifact>(allArtifacts.size());
      for (      Artifact artifact : allArtifacts) {
        if (!artifact.isDeleted()) {
          artifacts.add(artifact);
        }
      }
      count+=artifacts.size();
      testAtsAttributevaluesWithPersist(artifacts);
      if (monitor != null) {
        monitor.worked(1);
      }
    }
    addResultsMapToResultData(xResultData,testNameToResultsMap);
    addTestTimeMapToResultData(xResultData);
  }
  finally {
    OseeEventManager.setDisableEvents(false);
  }
  xResultData.reportSevereLoggingMonitor(monitorLog);
  if (monitor != null) {
    xResultData.log(monitor,"String_Node_Str" + count + "String_Node_Str");
  }
}