nus-yam/ex-repair huggingface dataset:
Program: 96754
Project: 96754
Buggy source:
private void handleCachesForDeletedPurged(EventBasicGuidArtifact guidArt) throws OseeCoreException {
  if (guidArt.is(AtsArtifactTypes.Task) && guidArt.is(EventModType.Deleted)) {
    Artifact artifact=ArtifactCache.getActive(guidArt);
    if (artifact != null && !artifact.isDeleted()) {
      AtsTaskCache.decache(((TaskArtifact)artifact).getParentAWA());
    }
  }
  if (guidArt.is(AtsArtifactTypes.ReviewArtifact) && guidArt.is(EventModType.Deleted)) {
    Artifact artifact=ArtifactCache.getActive(guidArt);
    if (artifact != null && !artifact.isDeleted()) {
      AtsReviewCache.decache(((AbstractReviewArtifact)artifact).getParentAWA());
    }
  }
  Artifact artifact=ArtifactCache.getActive(guidArt);
  if (artifact instanceof TeamWorkFlowArtifact) {
    AtsTaskCache.decache(artifact);
  }
  if (artifact instanceof AbstractReviewArtifact) {
    AtsReviewCache.decache(artifact);
  }
}

Fixed version (ground truth):
private void handleCachesForDeletedPurged(EventBasicGuidArtifact guidArt) throws OseeCoreException {
  if (guidArt.is(AtsArtifactTypes.Task) && guidArt.is(EventModType.Deleted,EventModType.Purged)) {
    Artifact artifact=ArtifactCache.getActive(guidArt);
    if (artifact != null && !artifact.isDeleted()) {
      AtsTaskCache.decache(((TaskArtifact)artifact).getParentAWA());
    }
  }
  if (guidArt.is(AtsArtifactTypes.ReviewArtifact) && guidArt.is(EventModType.Deleted,EventModType.Purged)) {
    Artifact artifact=ArtifactCache.getActive(guidArt);
    if (artifact != null && !artifact.isDeleted()) {
      AtsReviewCache.decache(((AbstractReviewArtifact)artifact).getParentAWA());
    }
  }
  Artifact artifact=ArtifactCache.getActive(guidArt);
  if (artifact instanceof TeamWorkFlowArtifact) {
    AtsTaskCache.decache(artifact);
  }
  if (artifact instanceof AbstractReviewArtifact) {
    AtsReviewCache.decache(artifact);
  }
}
Program: 96755
Project: 96755
Buggy source:
@Override public void reloadWorkDefinitionCache(boolean pend) throws OseeCoreException {
  Runnable reload=new Runnable(){
    @Override public void run(){
      workDefCache.invalidate();
      workDefCache.getAllWorkDefinitions();
    }
  }
;
  if (pend) {
    reload.run();
  }
 else {
    new Thread(reload).start();
  }
}

Fixed version (ground truth):
@Override public void reloadWorkDefinitionCache(boolean pend) throws OseeCoreException {
  Runnable reload=new Runnable(){
    @Override public void run(){
      workDefCache.invalidate();
      XResultData resultData=new XResultData();
      try {
        for (        IAtsWorkDefinition workDef : workDefService.getAllWorkDefinitions(resultData)) {
          workDefCache.cache(workDef.getId(),workDef);
        }
      }
 catch (      Exception ex) {
      }
    }
  }
;
  if (pend) {
    reload.run();
  }
 else {
    new Thread(reload).start();
  }
}
Program: 96756
Project: 96756
Buggy source:
private void processForEvents(NewTaskData newTaskData,Response response,List<IAtsTask> tasks){
  Artifact teamWf=atsClient.getArtifact(newTaskData.getTeamWfUuid());
  JaxAtsTasks jaxTasks=response.readEntity(JaxAtsTasks.class);
  ArtifactEvent artifactEvent=new ArtifactEvent(AtsClientService.get().getAtsBranch());
  List<Long> artUuids=new LinkedList<>();
  teamWf.reloadAttributesAndRelations();
  AtsTaskCache.decache((TeamWorkFlowArtifact)teamWf);
  for (  JaxAtsTask task : jaxTasks.getTasks()) {
    String guid=ArtifactQuery.getGuidFromUuid(task.getUuid(),AtsClientService.get().getAtsBranch());
    artifactEvent.getArtifacts().add(new EventBasicGuidArtifact(EventModType.Added,AtsClientService.get().getAtsBranch(),AtsArtifactTypes.Task,guid));
    artUuids.add(task.getUuid());
    RelationLink relation=getRelation(teamWf,task);
    relation=getRelation(teamWf,task);
    if (relation != null) {
      Artifact taskArt=atsClient.getArtifact(task.getUuid());
      DefaultBasicUuidRelation guidRelation=new DefaultBasicUuidRelation(AtsClientService.get().getAtsBranch(),AtsRelationTypes.TeamWfToTask_Task.getGuid(),relation.getId(),relation.getGammaId(),teamWf.getBasicGuidArtifact(),taskArt.getBasicGuidArtifact());
      artifactEvent.getRelations().add(new EventBasicGuidRelation(RelationEventType.Added,newTaskData.getTeamWfUuid().intValue(),new Long(task.getUuid()).intValue(),guidRelation));
    }
  }
  for (  Long uuid : artUuids) {
    tasks.add(AtsClientService.get().getWorkItemFactory().getTask(AtsClientService.get().getArtifact(uuid)));
  }
}

Fixed version (ground truth):
private void processForEvents(NewTaskData newTaskData,Response response,List<IAtsTask> tasks,ArtifactEvent artifactEvent){
  Artifact teamWf=atsClient.getArtifact(newTaskData.getTeamWfUuid());
  JaxAtsTasks jaxTasks=response.readEntity(JaxAtsTasks.class);
  List<Long> artUuids=new LinkedList<>();
  teamWf.reloadAttributesAndRelations();
  AtsTaskCache.decache((TeamWorkFlowArtifact)teamWf);
  for (  JaxAtsTask task : jaxTasks.getTasks()) {
    String guid=ArtifactQuery.getGuidFromUuid(task.getUuid(),AtsClientService.get().getAtsBranch());
    artifactEvent.getArtifacts().add(new EventBasicGuidArtifact(EventModType.Added,AtsClientService.get().getAtsBranch(),AtsArtifactTypes.Task,guid));
    artUuids.add(task.getUuid());
    RelationLink relation=getRelation(teamWf,task);
    if (relation != null) {
      Artifact taskArt=atsClient.getArtifact(task.getUuid());
      DefaultBasicUuidRelation guidRelation=new DefaultBasicUuidRelation(AtsClientService.get().getAtsBranch(),AtsRelationTypes.TeamWfToTask_Task.getGuid(),relation.getId(),relation.getGammaId(),teamWf.getBasicGuidArtifact(),taskArt.getBasicGuidArtifact());
      artifactEvent.getRelations().add(new EventBasicGuidRelation(RelationEventType.Added,newTaskData.getTeamWfUuid().intValue(),new Long(task.getUuid()).intValue(),guidRelation));
    }
  }
  for (  Long uuid : artUuids) {
    tasks.add(AtsClientService.get().getWorkItemFactory().getTask(AtsClientService.get().getArtifact(uuid)));
  }
}
Program: 96757
Project: 96757
Buggy source:
@Override public void addWorkDefinition(IAtsWorkDefinition workDef) throws OseeCoreException {
  WorkDefinitionMatch match=new WorkDefinitionMatch(workDef.getId(),"String_Node_Str");
  match.setWorkDefinition(workDef);
  getCache().cache(workDef,match);
}

Fixed version (ground truth):
@Override public void addWorkDefinition(IAtsWorkDefinition workDef) throws OseeCoreException {
  WorkDefinitionMatch match=new WorkDefinitionMatch(workDef.getId(),"String_Node_Str" + getClass() + "String_Node_Str");
  match.setWorkDefinition(workDef);
  getCache().cache(workDef,match);
}
Program: 96758
Project: 96758
Buggy source:
@Override public void removedFromCollector(Collection<? extends Artifact> removed){
  worldComposite.removeItems(removed);
  worldComposite.getXViewer().remove(removed);
  worldComposite.getXViewer().refresh(provider.getArtifact());
}

Fixed version (ground truth):
@Override public void removedFromCollector(Collection<? extends Artifact> removed){
  worldComposite.getXViewer().setInput(provider.getMembers());
}
Program: 96759
Project: 96759
Buggy source:
private void createActions(){
  setCollectorOrderAction=new SetCollectorOrderAction(provider,(CollectorArtifact)editor.getAwa(),this);
  RemovedFromCollectorHandler handler=new RemovedFromCollectorHandler(){
    @Override public void removedFromCollector(    Collection<? extends Artifact> removed){
      worldComposite.removeItems(removed);
      worldComposite.getXViewer().remove(removed);
      worldComposite.getXViewer().refresh(provider.getArtifact());
    }
  }
;
  removeFromCollectorAction=new RemoveFromCollectorAction(provider,(CollectorArtifact)editor.getAwa(),this,handler);
  newActionToGoalAction=new NewActionToGoalAction(provider,(CollectorArtifact)editor.getAwa(),this);
}

Fixed version (ground truth):
private void createActions(){
  setCollectorOrderAction=new SetCollectorOrderAction(provider,(CollectorArtifact)editor.getAwa(),this);
  RemovedFromCollectorHandler handler=new RemovedFromCollectorHandler(){
    @Override public void removedFromCollector(    Collection<? extends Artifact> removed){
      worldComposite.getXViewer().setInput(provider.getMembers());
    }
  }
;
  removeFromCollectorAction=new RemoveFromCollectorAction(provider,(CollectorArtifact)editor.getAwa(),this,handler);
  newActionToGoalAction=new NewActionToGoalAction(provider,(CollectorArtifact)editor.getAwa(),this);
}
Program: 96760
Project: 96760
Buggy source:
public void refresh(){
  Displays.ensureInDisplayThread(new Runnable(){
    @Override public void run(){
      if (Widgets.isAccessible(worldComposite)) {
        updateShown();
        worldComposite.update();
        worldComposite.getXViewer().refresh();
      }
    }
  }
);
}

Fixed version (ground truth):
public void refresh(){
  Displays.ensureInDisplayThread(new Runnable(){
    @Override public void run(){
      if (Widgets.isAccessible(worldComposite)) {
        worldComposite.getXViewer().setInput(provider.getMembers());
      }
    }
  }
);
}
Program: 96761
Project: 96761
Buggy source:
public void refresh(){
  Displays.ensureInDisplayThread(new Runnable(){
    @Override public void run(){
      if (Widgets.isAccessible(taskComposite)) {
        updateShown();
        taskComposite.update();
        taskComposite.getXViewer().refresh();
      }
    }
  }
);
}

Fixed version (ground truth):
public void refresh(){
  Displays.ensureInDisplayThread(new Runnable(){
    @Override public void run(){
      if (Widgets.isAccessible(taskComposite)) {
        taskComposite.getXViewer().setInput(getTaskArtifacts());
      }
    }
  }
);
}
Program: 96763
Project: 96763
Buggy source:
@Override protected void handleTxFinally(IProgressMonitor monitor) throws OseeCoreException {
  if (success) {
    Set<EventBasicGuidArtifact> artifactChanges=new HashSet<>();
    for (    Artifact artifact : artifactsToPurge) {
      artifactChanges.add(new EventBasicGuidArtifact(EventModType.Purged,artifact));
    }
    ArtifactEvent artifactEvent=new ArtifactEvent(artifactsToPurge.iterator().next().getBranch());
    for (    EventBasicGuidArtifact guidArt : artifactChanges) {
      artifactEvent.getArtifacts().add(guidArt);
    }
    OseeEventManager.kickPersistEvent(PurgeArtifacts.class,artifactEvent);
  }
}

Fixed version (ground truth):
@Override protected void handleTxFinally(IProgressMonitor monitor) throws OseeCoreException {
  if (success) {
    OseeEventManager.kickPersistEvent(PurgeArtifacts.class,artifactEvent);
  }
}
Program: 96764
Project: 96764
Buggy source:
@Override public int compare(Viewer viewer,Object e1,Object e2){
  if (e1 == null || e2 == null) {
    return 0;
  }
  TransactionId tx1=(TransactionId)e1;
  TransactionId tx2=(TransactionId)e2;
  return (int)(tx1.getId() - tx2.getId());
}

Fixed version (ground truth):
@Override public int compare(Viewer viewer,Object e1,Object e2){
  if (e1 == null || e2 == null) {
    return 0;
  }
  Long b1=((IOseeBranch)e1).getId();
  Long b2=((IOseeBranch)e1).getId();
  if (b1 > b2) {
    return -1;
  }
  if (b2 > b1) {
    return 1;
  }
  return 0;
}
Program: 96766
Project: 96766
Buggy source:
/** 
 * Display change report associated with the branch, if exists, or transaction, if branch has been committed.
 */
public static void showChangeReport(TeamWorkFlowArtifact teamArt){
  try {
    if (AtsClientService.get().getBranchService().isWorkingBranchInWork(teamArt)) {
      BranchId parentBranch=AtsClientService.get().getBranchService().getConfiguredBranchForWorkflow(teamArt);
      Conditions.assertNotNull(parentBranch,"String_Node_Str");
      IOseeBranch workingBranch=AtsClientService.get().getBranchService().getWorkingBranch(teamArt);
      ChangeReportEditorInput input=ChangeUiUtil.createInput(workingBranch,parentBranch,true);
      ChangeUiUtil.open(input);
    }
 else     if (AtsClientService.get().getBranchService().isCommittedBranchExists(teamArt)) {
      TransactionToken transactionId=getTransactionIdOrPopupChoose(teamArt,"String_Node_Str",false);
      if (transactionId == null) {
        return;
      }
      ChangeUiUtil.open(transactionId);
    }
 else {
      AWorkbench.popup("String_Node_Str","String_Node_Str");
    }
  }
 catch (  Exception ex) {
    OseeLog.log(Activator.class,OseeLevel.SEVERE_POPUP,"String_Node_Str",ex);
  }
}

Fixed version (ground truth):
/** 
 * Display change report associated with the branch, if exists, or transaction, if branch has been committed.
 */
public static void showChangeReport(TeamWorkFlowArtifact teamArt){
  try {
    if (AtsClientService.get().getBranchService().isWorkingBranchInWork(teamArt)) {
      BranchId parentBranch=AtsClientService.get().getBranchService().getConfiguredBranchForWorkflow(teamArt);
      Conditions.assertNotNull(parentBranch,"String_Node_Str");
      IOseeBranch workingBranch=AtsClientService.get().getBranchService().getWorkingBranch(teamArt);
      ChangeReportEditorInput input=ChangeUiUtil.createInput(workingBranch,parentBranch,true);
      ChangeUiUtil.open(input);
    }
 else     if (AtsClientService.get().getBranchService().isCommittedBranchExists(teamArt)) {
      TransactionToken transactionId=getTransactionIdOrPopupChoose(teamArt,"String_Node_Str",false);
      if (TransactionToken.SENTINEL.equals(transactionId)) {
        return;
      }
      ChangeUiUtil.open(transactionId);
    }
 else {
      AWorkbench.popup("String_Node_Str","String_Node_Str");
    }
  }
 catch (  Exception ex) {
    OseeLog.log(Activator.class,OseeLevel.SEVERE_POPUP,"String_Node_Str",ex);
  }
}
Program: 96767
Project: 96767
Buggy source:
@Override public BranchId getBranch(IAtsVersion version){
  return services.getAttributeResolver().getSoleAttributeValue(version,AtsAttributeTypes.BaselineBranchUuid,BranchId.SENTINEL);
}

Fixed version (ground truth):
@Override public BranchId getBranch(IAtsVersion version){
  String branchId=services.getAttributeResolver().getSoleAttributeValue(version,AtsAttributeTypes.BaselineBranchUuid,"String_Node_Str");
  if (branchId == null || branchId.isEmpty()) {
    return BranchId.SENTINEL;
  }
  return BranchId.valueOf(branchId);
}
Program: 96768
Project: 96768
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public Result isDirty() throws OseeCoreException {
  if (isEditable()) {
    for (    XStackedWidgetPage page : stackedControl.getPages()) {
      if (page.getObjectId() == null) {
        return new Result(true,String.format("String_Node_Str" + getAttributeType() + "String_Node_Str"));
      }
 else       if (page instanceof XStackedWidgetAttrPage) {
        XStackedWidgetAttrPage attrPage=(XStackedWidgetAttrPage)page;
        if (attrPage.getAttribute().isDirty()) {
          return new Result(true,String.format("String_Node_Str" + getAttributeType() + "String_Node_Str"));
        }
      }
 else       if (artifact.isDirty()) {
        for (        Attribute<?> attr : artifact.getAttributes(attributeType)) {
          if (attr.isDeleted()) {
            return new Result(true,String.format("String_Node_Str" + getAttributeType() + "String_Node_Str"));
          }
        }
      }
    }
  }
  return Result.FalseResult;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public Result isDirty() throws OseeCoreException {
  if (isEditable()) {
    for (    XStackedWidgetPage page : stackedControl.getPages()) {
      if (page.getObjectId() == null) {
        return new Result(true,String.format("String_Node_Str" + getAttributeType() + "String_Node_Str"));
      }
 else       if (page instanceof XStackedWidgetAttrPage) {
        XStackedWidgetAttrPage attrPage=(XStackedWidgetAttrPage)page;
        Object enteredValue=attrPage.getWidget().getData();
        Object storedValue=attrPage.getValue();
        if (!enteredValue.equals(storedValue)) {
          return new Result(true,String.format("String_Node_Str" + getAttributeType() + "String_Node_Str"));
        }
      }
 else       if (artifact.isDirty()) {
        for (        Attribute<?> attr : artifact.getAttributes(attributeType)) {
          if (attr.isDeleted()) {
            return new Result(true,String.format("String_Node_Str" + getAttributeType() + "String_Node_Str"));
          }
        }
      }
    }
  }
  return Result.FalseResult;
}
Program: 96769
Project: 96769
Buggy source:
@Override @Nullable public <T extends IAtsConfigObject>T getOneOrNull(Class<T> clazz){
  Collection<T> items=getItems(clazz);
  if (!items.isEmpty()) {
    return items.iterator().next();
  }
  return null;
}

Fixed version (ground truth):
@Override public <T extends IAtsConfigObject>T getOneOrNull(Class<T> clazz){
  Collection<T> items=getItems(clazz);
  if (!items.isEmpty()) {
    return items.iterator().next();
  }
  return null;
}
Program: 96770
Project: 96770
Buggy source:
@Override public int getApplicabilityRating(PresentationType presentationType,Artifact artifact,Object... objects) throws OseeCoreException {
  if (artifact.isOfType(AtsArtifactTypes.WorkDefinition) && presentationType != GENERALIZED_EDIT) {
    return ARTIFACT_TYPE_MATCH;
  }
  return NO_MATCH;
}

Fixed version (ground truth):
@Override public int getApplicabilityRating(PresentationType presentationType,Artifact artifact,Object... objects) throws OseeCoreException {
  if (artifact.isOfType(AtsArtifactTypes.WorkDefinition) && !presentationType.matches(GENERALIZED_EDIT,GENERAL_REQUESTED)) {
    return SUBTYPE_TYPE_MATCH;
  }
  return NO_MATCH;
}
Program: 96772
Project: 96772
Buggy source:
@Override public List<ApplicabilityToken> getViewApplicabilityTokens(ArtifactId artId,BranchId branch){
  List<ApplicabilityToken> result=new ArrayList<>();
  BiConsumer<Long,String> consumer=(id,name) -> result.add(new ApplicabilityToken(id,name));
  tupleQuery.getTuple2KeyValuePair(CoreTupleTypes.ViewApplicability,branch,consumer);
  return result;
}

Fixed version (ground truth):
@Override public List<ApplicabilityToken> getViewApplicabilityTokens(ArtifactId artId,BranchId branch){
  List<ApplicabilityToken> result=new ArrayList<>();
  BiConsumer<Long,String> consumer=(id,name) -> result.add(new ApplicabilityToken(id,name));
  tupleQuery.getTuple2KeyValuePair(CoreTupleTypes.ViewApplicability,artId,branch,consumer);
  return result;
}
Program: 96773
Project: 96773
Buggy source:
@Override public HashCollection<String,String> getBranchViewFeatureValues(BranchId branch){
  HashCollection<String,String> toReturn=new HashCollection<>();
  List<ApplicabilityToken> result=new ArrayList<>();
  BiConsumer<Long,String> consumer=(id,name) -> result.add(new ApplicabilityToken(id,name));
  tupleQuery.getTuple2KeyValuePair(CoreTupleTypes.ViewApplicability,branch,consumer);
  for (  ApplicabilityToken app : result) {
    if (!app.getName().equals("String_Node_Str")) {
      String[] nameValue=app.getName().split("String_Node_Str");
      toReturn.put(nameValue[0].trim(),nameValue[1].trim());
    }
  }
  return toReturn;
}

Fixed version (ground truth):
@Override public HashCollection<String,String> getBranchViewFeatureValues(BranchId branch,ArtifactId viewId){
  HashCollection<String,String> toReturn=new HashCollection<>();
  List<ApplicabilityToken> result=getViewApplicabilityTokens(viewId,branch);
  for (  ApplicabilityToken app : result) {
    if (!app.getName().equals("String_Node_Str")) {
      String[] nameValue=app.getName().split("String_Node_Str");
      toReturn.put(nameValue[0].trim(),nameValue[1].trim());
    }
  }
  return toReturn;
}
Program: 96774
Project: 96774
Buggy source:
@Override public <E1,E2>void getTuple2KeyValuePair(Tuple2Type<E1,E2> tupleType,BranchId branch,BiConsumer<Long,String> consumer){
  runQuery(consumer,SELECT_KEY_VALUE_FROM_BRANCH_VIEW,"String_Node_Str",branch.getViewId(),tupleType,branch);
}

Fixed version (ground truth):
@Override public <E1,E2>void getTuple2KeyValuePair(Tuple2Type<E1,E2> tupleType,E1 e1,BranchId branch,BiConsumer<Long,String> consumer){
  runQuery(consumer,SELECT_KEY_VALUE_FROM_BRANCH_VIEW,"String_Node_Str",e1,tupleType,branch);
}
Program: 96775
Project: 96775
Buggy source:
@Test public void testGetTupleType2() throws OseeCoreException {
  ResultSet<ArtifactReadable> branchViewArts=orcsApi.getQueryFactory().fromBranch(DemoBranches.SAW_Bld_1).andTypeEquals(CoreArtifactTypes.BranchView).getResults();
  List<ApplicabilityToken> result=new ArrayList<>();
  BiConsumer<Long,String> consumer=(id,name) -> result.add(new ApplicabilityToken(id,name));
  orcsApi.getQueryFactory().tupleQuery().getTuple2KeyValuePair(CoreTupleTypes.ViewApplicability,DemoBranches.SAW_Bld_1,consumer);
  Assert.assertEquals(5,result.size());
}

Fixed version (ground truth):
@Test public void testGetTupleType2() throws OseeCoreException {
  ResultSet<ArtifactReadable> branchViewArts=orcsApi.getQueryFactory().fromBranch(DemoBranches.SAW_Bld_1).andTypeEquals(CoreArtifactTypes.BranchView).getResults();
  List<ApplicabilityToken> result=new ArrayList<>();
  BiConsumer<Long,String> consumer=(id,name) -> result.add(new ApplicabilityToken(id,name));
  orcsApi.getQueryFactory().tupleQuery().getTuple2KeyValuePair(CoreTupleTypes.ViewApplicability,branchViewArts.getList().get(0),DemoBranches.SAW_Bld_1,consumer);
  Assert.assertEquals(5,result.size());
}
Program: 96776
Project: 96776
Buggy source:
HashCollection<String,String> getBranchViewFeatureValues(BranchId branch);

Fixed version (ground truth):
HashCollection<String,String> getBranchViewFeatureValues(BranchId branch,ArtifactId viewId);
Program: 96777
Project: 96777
Buggy source:
<E1,E2>void getTuple2KeyValuePair(Tuple2Type<E1,E2> tupleType,BranchId branch,BiConsumer<Long,String> consumer);

Fixed version (ground truth):
<E1,E2>void getTuple2KeyValuePair(Tuple2Type<E1,E2> tupleType,E1 e1,BranchId branch,BiConsumer<Long,String> consumer);
Program: 96778
Project: 96778
Buggy source:
protected abstract void writeCellText(Object data,int cellIndex) throws IOException ;

Fixed version (ground truth):
protected abstract void writeCellText(Object data,int cellIndex,int rowLength) throws IOException ;
Program: 96779
Project: 96779
Buggy source:
@Override public void writeCellText(Object cellData,int cellIndex) throws IOException {
  if (cellIndex >= numColumns) {
    throw new OseeCoreException("String_Node_Str",numColumns,cellIndex);
  }
 else   if (cellData == null) {
    rowBuffer[cellIndex]=null;
  }
 else {
    StringBuilder sb=new StringBuilder();
    sb.append("String_Node_Str");
    if (cellData instanceof Date) {
      sb.append("String_Node_Str");
    }
 else     if (applyStyle) {
      applyStyleToCell(sb,cellIndex);
    }
    if (previouslyWrittenCellIndex + 1 != cellIndex) {
      sb.append("String_Node_Str" + (cellIndex + 1) + "String_Node_Str");
    }
    previouslyWrittenCellIndex=cellIndex;
    if (cellData instanceof String) {
      String cellDataStr=(String)cellData;
      if (!cellDataStr.equals("String_Node_Str") && cellDataStr.charAt(0) == '=') {
        String value=cellDataStr.replaceAll("String_Node_Str","String_Node_Str");
        sb.append("String_Node_Str" + value + "String_Node_Str");
      }
 else {
        boolean isRichText=richTextCell == cellIndex;
        if (isRichText) {
          sb.append("String_Node_Str");
        }
 else {
          sb.append("String_Node_Str");
        }
        if (cellDataStr.equals("String_Node_Str")) {
          sb.append(emptyStringRepresentation);
        }
 else {
          if (cellDataStr.length() > 32767) {
            sb.append(blobMessage);
          }
 else           if (isRichText) {
            Xml.writeData(sb,cellDataStr);
          }
 else {
            Xml.writeWhileHandlingCdata(sb,cellDataStr);
          }
        }
        if (isRichText) {
          richTextCell=-1;
          sb.append("String_Node_Str");
        }
 else {
          sb.append("String_Node_Str");
        }
        if (cellDataStr.length() > 32767) {
          sb.append("String_Node_Str");
          Xml.writeWhileHandlingCdata(sb,cellDataStr);
          sb.append("String_Node_Str");
        }
      }
    }
 else     if (cellData instanceof Number) {
      Number cellDataNum=(Number)cellData;
      sb.append("String_Node_Str");
      Xml.writeWhileHandlingCdata(sb,cellDataNum.toString());
      sb.append("String_Node_Str");
    }
 else     if (cellData instanceof Date) {
      Date cellDataDate=(Date)cellData;
      sb.append("String_Node_Str");
      String dateString=DateUtil.get(cellDataDate,"String_Node_Str") + "String_Node_Str";
      Xml.writeWhileHandlingCdata(sb,dateString);
      sb.append("String_Node_Str");
    }
 else {
      sb.append("String_Node_Str");
      Xml.writeWhileHandlingCdata(sb,cellData.toString());
      sb.append("String_Node_Str");
    }
    sb.append("String_Node_Str");
    rowBuffer[cellIndex]=sb.toString();
  }
}

Fixed version (ground truth):
@Override protected void writeCellText(Object data,int cellIndex,int rowLength) throws IOException {
  writeCellText(data,cellIndex);
}
Program: 96780
Project: 96780
Buggy source:
@Override protected void writeCellText(Object data,int cellIndex) throws IOException {
  if (data instanceof String) {
    String dataStr=(String)data;
    if (Strings.isValid(dataStr)) {
      currentStream.append(dataStr);
    }
    currentStream.append("String_Node_Str");
    wasDataAdded=true;
  }
}

Fixed version (ground truth):
@Override protected void writeCellText(Object data,int cellIndex,int rowLength) throws IOException {
  if (data instanceof String) {
    String dataStr=(String)data;
    if (Strings.isValid(dataStr)) {
      currentStream.append(dataStr);
    }
    if (cellIndex < rowLength) {
      currentStream.append("String_Node_Str");
    }
    wasDataAdded=true;
  }
}
Program: 96781
Project: 96781
Buggy source:
@Override public void writeCellText(Object cellData,int cellIndex) throws IOException {
  if (cellData instanceof String) {
    String cellDataStr=(String)cellData;
    str.append(CELL_STRART);
    str.append(cellDataStr);
    str.append(CELL_END);
  }
}

Fixed version (ground truth):
@Override protected void writeCellText(Object data,int cellIndex,int rowLength) throws IOException {
  writeCellText(data,cellIndex);
}
Program: 96782
Project: 96782
Buggy source:
@Override public boolean setValue(Object value) throws OseeCoreException {
  boolean response=false;
  Object currentValue=getValue();
  if (currentValue == value || currentValue != null && currentValue.equals(value)) {
    response=false;
  }
 else {
    storeValue(value);
    response=true;
  }
  return response;
}

Fixed version (ground truth):
@Override public boolean setValue(Object value) throws OseeCoreException {
  boolean response=false;
  Object currentValue;
  if (value instanceof String) {
    currentValue=getValueAsString();
  }
 else {
    currentValue=getValue();
  }
  if (currentValue == value || currentValue != null && currentValue.equals(value)) {
    response=false;
  }
 else {
    storeValue(value);
    response=true;
  }
  return response;
}
Program: 96785
Project: 96785
Buggy source:
private void outputCommonCells(ArtifactReadable systemRequirement,ISheetWriter writer) throws IOException {
  writer.writeCell(systemRequirement.getSoleAttributeAsString(CoreAttributeTypes.LegacyId));
  writer.writeCell(systemRequirement.getSoleAttributeAsString(CoreAttributeTypes.ParagraphNumber));
  writer.writeCell(systemRequirement.getName());
}

Fixed version (ground truth):
private void outputCommonCells(ArtifactReadable systemRequirement,ISheetWriter writer) throws IOException {
  writer.writeCell(systemRequirement.getIdString());
  writer.writeCell(systemRequirement.getSoleAttributeAsString(CoreAttributeTypes.ParagraphNumber));
  writer.writeCell(systemRequirement.getName());
}
Program: 96786
Project: 96786
Buggy source:
public static Options createOptions(){
  Options options=new Options();
  setIncludeCache(options,false);
  setIncludeDeletedArtifacts(options,false);
  setIncludeDeletedAttributes(options,false);
  setIncludeDeletedRelations(options,false);
  setHeadTransaction(options);
  setLoadLevel(options,LoadLevel.ALL);
  return options;
}

Fixed version (ground truth):
public static Options createOptions(){
  Options options=new Options();
  setIncludeCache(options,false);
  setIncludeDeletedArtifacts(options,false);
  setIncludeDeletedAttributes(options,false);
  setIncludeDeletedRelations(options,false);
  setHeadTransaction(options);
  setLoadLevel(options,LoadLevel.ALL);
  setFromBranchView(options,ArtifactId.SENTINEL);
  return options;
}
Program: 96787
Project: 96787
Buggy source:
@Override public <T extends RelationNode>Iterable<T> loadNodes(OrcsSession session,final GraphData graph,Collection<Integer> ids,LoadLevel level) throws OseeCoreException {
  GraphBuilder builder=graphBuilderFactory.createBuilderForGraph(graph);
  DataLoader loader=dataLoaderFactory.newDataLoaderFromIds(session,graph.getBranch(),ids);
  loader.withLoadLevel(level);
  loader.fromTransaction(graph.getTransaction());
  loader.includeDeletedArtifacts();
  loader.load(null,builder);
  return getResults(builder);
}

Fixed version (ground truth):
@Override public <T extends RelationNode>Iterable<T> loadNodes(OrcsSession session,final GraphData graph,Collection<Integer> ids,LoadLevel level) throws OseeCoreException {
  GraphBuilder builder=graphBuilderFactory.createBuilderForGraph(graph);
  DataLoader loader=dataLoaderFactory.newDataLoaderFromIds(session,graph.getBranch(),ids);
  loader.withLoadLevel(level);
  loader.fromTransaction(graph.getTransaction());
  loader.fromBranchView(graph.getBranch().getViewId());
  loader.includeDeletedArtifacts();
  loader.load(null,builder);
  return getResults(builder);
}
Program: 96788
Project: 96788
Buggy source:
@Override public ResultSet<Artifact> loadArtifacts(OrcsSession session,GraphData graph,Collection<ArtifactId> artifactIds) throws OseeCoreException {
  DataLoader loader=createLoader(session,graph.getBranch(),artifactIds);
  loader.fromTransaction(graph.getTransaction());
  GraphBuilder handler=graphBuilderFactory.createBuilderForGraph(graph);
  loader.load(null,handler);
  return ResultSets.newResultSet(handler.getArtifacts());
}

Fixed version (ground truth):
@Override public ResultSet<Artifact> loadArtifacts(OrcsSession session,GraphData graph,Collection<ArtifactId> artifactIds) throws OseeCoreException {
  DataLoader loader=createLoader(session,graph.getBranch(),artifactIds);
  loader.fromTransaction(graph.getTransaction());
  loader.fromBranchView(graph.getBranch().getViewId());
  GraphBuilder handler=graphBuilderFactory.createBuilderForGraph(graph);
  loader.load(null,handler);
  return ResultSets.newResultSet(handler.getArtifacts());
}
Program: 96789
Project: 96789
Buggy source:
@Nullable <T extends IAtsConfigObject>T getOneOrNull(Class<T> clazz);

Fixed version (ground truth):
<T extends IAtsConfigObject>T getOneOrNull(Class<T> clazz);
Program: 96790
Project: 96790
Buggy source:
private ArtifactDelta asArtifactDelta(Object selectionA,Object selectionB) throws OseeCoreException {
  ArtifactDelta toReturn=null;
  if (selectionA instanceof Change && selectionB instanceof Change) {
    Change changeA=(Change)selectionA;
    Change changeB=(Change)selectionB;
    Conditions.checkExpressionFailOnTrue(changeA.getArtId() != changeB.getArtId(),"String_Node_Str",changeA.getArtId(),changeB.getArtId());
    int artId=changeA.getArtId().getId().intValue();
    TransactionDelta txDelta=asTxDelta(changeA,changeB);
    Artifact startArtifact=ArtifactQuery.getHistoricalArtifactFromId(artId,txDelta.getStartTx(),DeletionFlag.INCLUDE_DELETED);
    Artifact endArtifact=ArtifactQuery.getHistoricalArtifactFromId(artId,txDelta.getEndTx(),DeletionFlag.INCLUDE_DELETED);
    toReturn=new ArtifactDelta(txDelta,startArtifact,endArtifact);
  }
  return toReturn;
}

Fixed version (ground truth):
private ArtifactDelta asArtifactDelta(Object selectionA,Object selectionB) throws OseeCoreException {
  ArtifactDelta toReturn=null;
  if (selectionA instanceof Change && selectionB instanceof Change) {
    Change changeA=(Change)selectionA;
    Change changeB=(Change)selectionB;
    Conditions.checkExpressionFailOnTrue(!changeA.getArtId().equals(changeB.getArtId()),"String_Node_Str",changeA.getArtId(),changeB.getArtId());
    int artId=changeA.getArtId().getId().intValue();
    TransactionDelta txDelta=asTxDelta(changeA,changeB);
    Artifact startArtifact=ArtifactQuery.getHistoricalArtifactFromId(artId,txDelta.getStartTx(),DeletionFlag.INCLUDE_DELETED);
    Artifact endArtifact=ArtifactQuery.getHistoricalArtifactFromId(artId,txDelta.getEndTx(),DeletionFlag.INCLUDE_DELETED);
    toReturn=new ArtifactDelta(txDelta,startArtifact,endArtifact);
  }
  return toReturn;
}
Program: 96791
Project: 96791
Buggy source:
@Override public String getDisplayableString() throws OseeCoreException {
  String toReturn=null;
  InputStream inputStream=null;
  try {
    inputStream=new XmlTextInputStream(getValue());
    toReturn=Lib.inputStreamToString(inputStream);
  }
 catch (  Exception ex) {
    OseeCoreException.wrapAndThrow(ex);
  }
 finally {
    Lib.close(inputStream);
  }
  return toReturn;
}

Fixed version (ground truth):
@Override public String getDisplayableString() throws OseeCoreException {
  String toReturn=null;
  InputStream inputStream=null;
  try {
    if (getAttributeType().equals(CoreAttributeTypes.WordTemplateContent)) {
      inputStream=new XmlTextInputStream(getValue());
      toReturn=Lib.inputStreamToString(inputStream);
    }
 else {
      toReturn=getValue();
    }
  }
 catch (  Exception ex) {
    OseeCoreException.wrapAndThrow(ex);
  }
 finally {
    Lib.close(inputStream);
  }
  return toReturn;
}
Program: 96792
Project: 96792
Buggy source:
@Override public IOperation createOperation(VariableMap variableMap,OperationLogger logger) throws Exception {
  IOseeBranch branch=variableMap.getBranch(SELECT_BRANCH_LABEL);
  boolean commitChangesBool=variableMap.getBoolean(COMMIT_CHANGES_LABEL);
  Display display=new FixAttributesUIReport();
  return new FixAttributeOperation(logger,display,branch,commitChangesBool);
}

Fixed version (ground truth):
@Override public IOperation createOperation(VariableMap variableMap,OperationLogger logger) throws Exception {
  BranchId branch=variableMap.getBranch(SELECT_BRANCH_LABEL);
  boolean commitChangesBool=variableMap.getBoolean(COMMIT_CHANGES_LABEL);
  Display display=new FixAttributesUIReport();
  return new FixAttributeOperation(logger,display,BranchManager.getBranchToken(branch),commitChangesBool);
}
Program: 96793
Project: 96793
Buggy source:
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws Exception {
  IOseeBranch branch=variableMap.getBranch(BRANCH);
  QueryBuilderArtifact queryBuilder=ArtifactQuery.createQueryBuilder(branch);
  queryBuilder.andExists(CoreAttributeTypes.WholeWordContent);
  SkynetTransaction tx=TransactionManager.createTransaction(branch,"String_Node_Str");
  LinkType linkType=LinkType.OSEE_SERVER_LINK;
  for (  Artifact artifact : queryBuilder.getResults()) {
    if (artifact.isAttributeTypeValid(CoreAttributeTypes.WholeWordContent)) {
      String content=artifact.getSoleAttributeValueAsString(CoreAttributeTypes.WholeWordContent,"String_Node_Str");
      if (Strings.isValid(content)) {
        Set<String> unknownGuids=new HashSet<>();
        content=WordMlLinkHandler.link(linkType,artifact,content,unknownGuids);
        artifact.setSoleAttributeFromString(CoreAttributeTypes.WholeWordContent,content);
        artifact.persist(tx);
        if (!unknownGuids.isEmpty()) {
          log(String.format("String_Node_Str",artifact,org.eclipse.osee.framework.jdk.core.util.Collections.toString("String_Node_Str",unknownGuids)));
        }
      }
    }
  }
  tx.execute();
}

Fixed version (ground truth):
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws Exception {
  BranchId branch=variableMap.getBranch(BRANCH);
  QueryBuilderArtifact queryBuilder=ArtifactQuery.createQueryBuilder(branch);
  queryBuilder.andExists(CoreAttributeTypes.WholeWordContent);
  SkynetTransaction tx=TransactionManager.createTransaction(branch,"String_Node_Str");
  LinkType linkType=LinkType.OSEE_SERVER_LINK;
  for (  Artifact artifact : queryBuilder.getResults()) {
    if (artifact.isAttributeTypeValid(CoreAttributeTypes.WholeWordContent)) {
      String content=artifact.getSoleAttributeValueAsString(CoreAttributeTypes.WholeWordContent,"String_Node_Str");
      if (Strings.isValid(content)) {
        Set<String> unknownGuids=new HashSet<>();
        content=WordMlLinkHandler.link(linkType,artifact,content,unknownGuids);
        artifact.setSoleAttributeFromString(CoreAttributeTypes.WholeWordContent,content);
        artifact.persist(tx);
        if (!unknownGuids.isEmpty()) {
          log(String.format("String_Node_Str",artifact,org.eclipse.osee.framework.jdk.core.util.Collections.toString("String_Node_Str",unknownGuids)));
        }
      }
    }
  }
  tx.execute();
}
Program: 96794
Project: 96794
Buggy source:
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws Exception {
  monitor.beginTask("String_Node_Str",100);
  IOseeBranch branch=variableMap.getBranch("String_Node_Str");
  init();
  monitor.subTask("String_Node_Str");
  ArtifactQuery.getArtifactListFromType(CoreArtifactTypes.Component,branch);
  monitor.subTask("String_Node_Str");
  ArtifactQuery.getArtifactListFromType(CoreArtifactTypes.SystemRequirementMSWord,branch);
  monitor.subTask("String_Node_Str");
  ArtifactQuery.getArtifactListFromType(CoreArtifactTypes.SubsystemRequirementMSWord,branch);
  Artifact root=OseeSystemArtifacts.getDefaultHierarchyRootArtifact(branch);
  Artifact subsysTopFolder=root.getChild(Requirements.SUBSYSTEM_REQUIREMENTS);
  sysReqs=root.getChild(Requirements.SYSTEM_REQUIREMENTS).getDescendants();
  monitor.subTask("String_Node_Str");
  generateMetrics(getProductComponent(root),subsysTopFolder);
  monitor.subTask("String_Node_Str");
  generatePerSubsystemTables();
  excelWriter.endWorkbook();
  IFile iFile=OseeData.getIFile("String_Node_Str" + Lib.getDateTimeString() + "String_Node_Str");
  AIFile.writeToFile(iFile,charBak);
  Program.launch(iFile.getLocation().toOSString());
}

Fixed version (ground truth):
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws Exception {
  monitor.beginTask("String_Node_Str",100);
  BranchId branch=variableMap.getBranch("String_Node_Str");
  init();
  monitor.subTask("String_Node_Str");
  ArtifactQuery.getArtifactListFromType(CoreArtifactTypes.Component,branch);
  monitor.subTask("String_Node_Str");
  ArtifactQuery.getArtifactListFromType(CoreArtifactTypes.SystemRequirementMSWord,branch);
  monitor.subTask("String_Node_Str");
  ArtifactQuery.getArtifactListFromType(CoreArtifactTypes.SubsystemRequirementMSWord,branch);
  Artifact root=OseeSystemArtifacts.getDefaultHierarchyRootArtifact(branch);
  Artifact subsysTopFolder=root.getChild(Requirements.SUBSYSTEM_REQUIREMENTS);
  sysReqs=root.getChild(Requirements.SYSTEM_REQUIREMENTS).getDescendants();
  monitor.subTask("String_Node_Str");
  generateMetrics(getProductComponent(root),subsysTopFolder);
  monitor.subTask("String_Node_Str");
  generatePerSubsystemTables();
  excelWriter.endWorkbook();
  IFile iFile=OseeData.getIFile("String_Node_Str" + Lib.getDateTimeString() + "String_Node_Str");
  AIFile.writeToFile(iFile,charBak);
  Program.launch(iFile.getLocation().toOSString());
}
Program: 96797
Project: 96797
Buggy source:
public IOseeBranch getBranch(String parameterName) throws OseeArgumentException {
  return getValue(IOseeBranch.class,parameterName);
}

Fixed version (ground truth):
public BranchId getBranch(String parameterName) throws OseeArgumentException {
  return getValue(BranchId.class,parameterName);
}
Program: 96799
Project: 96799
Buggy source:
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws Exception {
  IOseeBranch branch=variableMap.getBranch("String_Node_Str");
  IArtifactType artifactType=variableMap.getArtifactType("String_Node_Str");
  List<Artifact> artifacts=ArtifactQuery.getArtifactListFromType(artifactType,branch,EXCLUDE_DELETED);
  for (  Artifact artifact : artifacts) {
    try {
      if (!artifact.hasParent()) {
        logf("String_Node_Str" + artifact.getGuid() + "String_Node_Str");
      }
    }
 catch (    MultipleArtifactsExist ex) {
      logf("String_Node_Str" + ex.getLocalizedMessage());
    }
  }
}

Fixed version (ground truth):
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws Exception {
  BranchId branch=variableMap.getBranch("String_Node_Str");
  IArtifactType artifactType=variableMap.getArtifactType("String_Node_Str");
  List<Artifact> artifacts=ArtifactQuery.getArtifactListFromType(artifactType,branch,EXCLUDE_DELETED);
  for (  Artifact artifact : artifacts) {
    try {
      if (!artifact.hasParent()) {
        logf("String_Node_Str" + artifact.getGuid() + "String_Node_Str");
      }
    }
 catch (    MultipleArtifactsExist ex) {
      logf("String_Node_Str" + ex.getLocalizedMessage());
    }
  }
}
Program: 96800
Project: 96800
Buggy source:
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws OseeCoreException {
  IOseeBranch branch=variableMap.getBranch("String_Node_Str");
  List<AttributeType> attributeTypes=variableMap.getAttributeTypes("String_Node_Str");
  String input=variableMap.getString(ARTIFACT_IDS_WIDGET_NAME);
  Conditions.checkNotNullOrEmpty(input,ARTIFACT_IDS_WIDGET_NAME);
  List<String> inputGuids=Arrays.asList(input.split("String_Node_Str"));
  List<Artifact> arts=ArtifactQuery.getArtifactListFromIds(inputGuids,branch);
  if (arts != null && !arts.isEmpty()) {
    SkynetTransaction transaction=TransactionManager.createTransaction(branch,"String_Node_Str");
    for (    AttributeType attrType : attributeTypes) {
      deleteInvalidAttributeType(arts,attrType,transaction);
    }
    transaction.execute();
  }
}

Fixed version (ground truth):
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws OseeCoreException {
  BranchId branch=variableMap.getBranch("String_Node_Str");
  List<AttributeType> attributeTypes=variableMap.getAttributeTypes("String_Node_Str");
  String input=variableMap.getString(ARTIFACT_IDS_WIDGET_NAME);
  Conditions.checkNotNullOrEmpty(input,ARTIFACT_IDS_WIDGET_NAME);
  List<String> inputGuids=Arrays.asList(input.split("String_Node_Str"));
  List<Artifact> arts=ArtifactQuery.getArtifactListFromIds(inputGuids,branch);
  if (arts != null && !arts.isEmpty()) {
    SkynetTransaction transaction=TransactionManager.createTransaction(branch,"String_Node_Str");
    for (    AttributeType attrType : attributeTypes) {
      deleteInvalidAttributeType(arts,attrType,transaction);
    }
    transaction.execute();
  }
}
Program: 96801
Project: 96801
Buggy source:
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws Exception {
  IOseeBranch branch=variableMap.getBranch("String_Node_Str");
  AttributeType attributeType=variableMap.getAttributeType("String_Node_Str");
  List<Artifact> artifacts=ArtifactQuery.getArtifactListFromAttribute(attributeType,AttributeId.UNSPECIFIED,branch);
  SkynetTransaction transaction=TransactionManager.createTransaction(branch,"String_Node_Str");
  for (  Artifact artifact : artifacts) {
    Collection<Attribute<String>> attributes=artifact.getAttributes(attributeType);
    for (    Attribute<String> attribute1 : attributes) {
      if (!attribute1.getValue().equals(AttributeId.UNSPECIFIED)) {
        for (        Attribute<String> attribute : attributes) {
          if (attribute.getValue().equals(AttributeId.UNSPECIFIED)) {
            attribute.delete();
          }
        }
        artifact.persist(transaction);
        break;
      }
    }
  }
  transaction.execute();
}

Fixed version (ground truth):
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws Exception {
  BranchId branch=variableMap.getBranch("String_Node_Str");
  AttributeType attributeType=variableMap.getAttributeType("String_Node_Str");
  List<Artifact> artifacts=ArtifactQuery.getArtifactListFromAttribute(attributeType,AttributeId.UNSPECIFIED,branch);
  SkynetTransaction transaction=TransactionManager.createTransaction(branch,"String_Node_Str");
  for (  Artifact artifact : artifacts) {
    Collection<Attribute<String>> attributes=artifact.getAttributes(attributeType);
    for (    Attribute<String> attribute1 : attributes) {
      if (!attribute1.getValue().equals(AttributeId.UNSPECIFIED)) {
        for (        Attribute<String> attribute : attributes) {
          if (attribute.getValue().equals(AttributeId.UNSPECIFIED)) {
            attribute.delete();
          }
        }
        artifact.persist(transaction);
        break;
      }
    }
  }
  transaction.execute();
}
Program: 96802
Project: 96802
Buggy source:
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws Exception {
  IOseeBranch branch=variableMap.getBranch("String_Node_Str");
  ArtifactQuery.getArtifactListFromBranch(branch,EXCLUDE_DELETED);
}

Fixed version (ground truth):
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws Exception {
  BranchId branch=variableMap.getBranch("String_Node_Str");
  ArtifactQuery.getArtifactListFromBranch(branch,EXCLUDE_DELETED);
}
Program: 96803
Project: 96803
Buggy source:
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws Exception {
  monitor.beginTask("String_Node_Str",IProgressMonitor.UNKNOWN);
  XResultData xResultData=new XResultData();
  IOseeBranch branch=variableMap.getBranch("String_Node_Str");
  xResultData.log(getName() + "String_Node_Str" + branch.getName());
  xResultData.addRaw(AHTML.beginMultiColumnTable(100,1));
  xResultData.addRaw(AHTML.addHeaderRowMultiColumnTable(new String[]{"String_Node_Str","String_Node_Str"}));
  for (  AttributeType attributeType : AttributeTypeManager.getAllTypes()) {
    Collection<Artifact> arts=ArtifactQuery.getArtifactListFromAttributeType(attributeType,branch);
    xResultData.addRaw(AHTML.addRowMultiColumnTable(attributeType.getName(),String.valueOf(arts.size())));
  }
  xResultData.addRaw(AHTML.endMultiColumnTable());
  XResultDataUI.report(xResultData,getName() + "String_Node_Str" + branch.getName());
}

Fixed version (ground truth):
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws Exception {
  monitor.beginTask("String_Node_Str",IProgressMonitor.UNKNOWN);
  XResultData xResultData=new XResultData();
  BranchId branch=variableMap.getBranch("String_Node_Str");
  xResultData.log(getName() + "String_Node_Str" + BranchManager.getBranchName(branch));
  xResultData.addRaw(AHTML.beginMultiColumnTable(100,1));
  xResultData.addRaw(AHTML.addHeaderRowMultiColumnTable(new String[]{"String_Node_Str","String_Node_Str"}));
  for (  AttributeType attributeType : AttributeTypeManager.getAllTypes()) {
    Collection<Artifact> arts=ArtifactQuery.getArtifactListFromAttributeType(attributeType,branch);
    xResultData.addRaw(AHTML.addRowMultiColumnTable(attributeType.getName(),String.valueOf(arts.size())));
  }
  xResultData.addRaw(AHTML.endMultiColumnTable());
  XResultDataUI.report(xResultData,getName() + "String_Node_Str" + BranchManager.getBranchName(branch));
}
Program: 96804
Project: 96804
Buggy source:
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws Exception {
  IOseeBranch branch=variableMap.getBranch("String_Node_Str");
  ConnectionHandler.runPreparedUpdate(UPDATE_PARENT_BRANCHES + variableMap.getString("String_Node_Str") + "String_Node_Str",branch.getUuid());
}

Fixed version (ground truth):
@Override public void runOperation(VariableMap variableMap,IProgressMonitor monitor) throws Exception {
  BranchId branch=variableMap.getBranch("String_Node_Str");
  ConnectionHandler.runPreparedUpdate(UPDATE_PARENT_BRANCHES + variableMap.getString("String_Node_Str") + "String_Node_Str",branch.getUuid());
}
Program: 96805
Project: 96805
Buggy source:
@Override public IOseeBranch getBranchOption(String key) throws OseeArgumentException {
  return options.getBranch(key);
}

Fixed version (ground truth):
@Override public BranchId getBranchOption(String key) throws OseeArgumentException {
  return options.getBranch(key);
}
Program: 96806
Project: 96806
Buggy source:
public IOseeBranch getBranchOption(String key) throws OseeArgumentException ;

Fixed version (ground truth):
public BranchId getBranchOption(String key) throws OseeArgumentException ;