nus-yam/ex-repair huggingface dataset:
Program: 96809
Project: 96809
Buggy source:
private static ISelectionProvider getSelectionProvider(){
  ISelectionProvider selectionProvider=null;
  IWorkbench workbench=PlatformUI.getWorkbench();
  if (!workbench.isStarting() && !workbench.isClosing()) {
    IWorkbenchPage page=AWorkbench.getActivePage();
    if (page != null) {
      IWorkbenchPart part=page.getActivePart();
      if (part != null) {
        IWorkbenchSite site=part.getSite();
        if (site != null) {
          selectionProvider=site.getSelectionProvider();
        }
      }
    }
  }
  return selectionProvider;
}

Fixed version (ground truth):
protected static ISelectionProvider getSelectionProvider(){
  ISelectionProvider selectionProvider=null;
  IWorkbench workbench=PlatformUI.getWorkbench();
  if (!workbench.isStarting() && !workbench.isClosing()) {
    IWorkbenchPage page=AWorkbench.getActivePage();
    if (page != null) {
      IWorkbenchPart part=page.getActivePart();
      if (part != null) {
        IWorkbenchSite site=part.getSite();
        if (site != null) {
          selectionProvider=site.getSelectionProvider();
        }
      }
    }
  }
  return selectionProvider;
}
Program: 96810
Project: 96810
Buggy source:
public static boolean isEnabledStatic(){
  if (PlatformUI.getWorkbench().isClosing()) {
    return false;
  }
  boolean isEnabled=false;
  ISelectionProvider selectionProvider=getSelectionProvider();
  if (selectionProvider != null) {
    ISelection selection=selectionProvider.getSelection();
    if (selection instanceof IStructuredSelection) {
      isEnabled=((IStructuredSelection)selection).size() == 1;
    }
  }
  return isEnabled;
}

Fixed version (ground truth):
public static boolean isEnabledStatic(){
  if (PlatformUI.getWorkbench().isClosing()) {
    return false;
  }
  boolean isEnabled=false;
  ISelectionProvider selectionProvider=getSelectionProvider();
  if (selectionProvider != null) {
    ISelection selection=selectionProvider.getSelection();
    if (selection instanceof IStructuredSelection) {
      IStructuredSelection structuredSelection=(IStructuredSelection)selection;
      isEnabled=structuredSelection.size() == 1;
      if (isEnabled) {
        List<Change> localChanges=Handlers.getArtifactChangesFromStructuredSelection(structuredSelection);
        if (localChanges.isEmpty() || localChanges.size() > 1) {
          isEnabled=false;
        }
 else {
          Change change=localChanges.iterator().next();
          if (change instanceof AttributeChange) {
            isEnabled=true;
          }
 else {
            isEnabled=false;
          }
        }
      }
    }
  }
  return isEnabled;
}
Program: 96812
Project: 96812
Buggy source:
private String loadAttributeValue(int attrId,TransactionId transactionId,Artifact artifact){
  String appServer=OseeClientProperties.getOseeApplicationServer();
  URI uri=UriBuilder.fromUri(appServer).path("String_Node_Str").path("String_Node_Str").path(String.valueOf(artifact.getBranchId())).path("String_Node_Str").path(artifact.getUuid().toString()).path("String_Node_Str").path(String.valueOf(attrId)).path("String_Node_Str").path(String.valueOf(transactionId)).build();
  try {
    return JaxRsClient.newClient().target(uri).request(MediaType.TEXT_PLAIN).get(String.class);
  }
 catch (  Exception ex) {
    throw JaxRsExceptions.asOseeException(ex);
  }
}

Fixed version (ground truth):
protected String loadAttributeValue(int attrId,TransactionId transactionId,Artifact artifact){
  String appServer=OseeClientProperties.getOseeApplicationServer();
  URI uri=UriBuilder.fromUri(appServer).path("String_Node_Str").path("String_Node_Str").path(String.valueOf(artifact.getBranchId())).path("String_Node_Str").path(artifact.getUuid().toString()).path("String_Node_Str").path(String.valueOf(attrId)).path(String.valueOf(transactionId)).build();
  try {
    return JaxRsClient.newClient().target(uri).request(MediaType.TEXT_PLAIN).get(String.class);
  }
 catch (  Exception ex) {
    throw JaxRsExceptions.asOseeException(ex);
  }
}
Program: 96813
Project: 96813
Buggy source:
@Override public Object execute(ExecutionEvent event){
  new WasIsCompareEditorAction().run();
  return null;
}

Fixed version (ground truth):
@Override public Object execute(ExecutionEvent event){
  new WasIsCompareEditorChangeAction().run();
  return null;
}
Program: 96814
Project: 96814
Buggy source:
private void setupMenus(){
  Menu popupMenu=new Menu(xHistoryWidget.getXViewer().getTree().getParent());
  OpenOnShowListener openListener=new OpenOnShowListener();
  popupMenu.addMenuListener(openListener);
  OpenContributionItem contributionItem=new OpenContributionItem(getClass().getSimpleName() + "String_Node_Str");
  contributionItem.fill(popupMenu,-1);
  openListener.add(popupMenu.getItem(0));
  new MenuItem(popupMenu,SWT.SEPARATOR);
  createChangeReportMenuItem(popupMenu);
  new MenuItem(popupMenu,SWT.SEPARATOR);
  createReplaceAttributeWithVersionMenuItem(popupMenu);
  IAction action=new CompareArtifactAction("String_Node_Str",xHistoryWidget.getXViewer());
  new ActionContributionItem(action).fill(popupMenu,3);
  new ActionContributionItem(new EditTransactionComment(this)).fill(popupMenu,3);
  new ActionContributionItem(new WasIsCompareEditorAction()).fill(popupMenu,3);
  XViewerCustomMenu xMenu=new XViewerCustomMenu(xHistoryWidget.getXViewer());
  new MenuItem(popupMenu,SWT.SEPARATOR);
  xMenu.createTableCustomizationMenuItem(popupMenu);
  xMenu.createViewTableReportMenuItem(popupMenu);
  new MenuItem(popupMenu,SWT.SEPARATOR);
  xMenu.addCopyViewMenuBlock(popupMenu);
  new MenuItem(popupMenu,SWT.SEPARATOR);
  xMenu.addFilterMenuBlock(popupMenu);
  new MenuItem(popupMenu,SWT.SEPARATOR);
  xHistoryWidget.getXViewer().getTree().setMenu(popupMenu);
}

Fixed version (ground truth):
private void setupMenus(){
  Menu popupMenu=new Menu(xHistoryWidget.getXViewer().getTree().getParent());
  OpenOnShowListener openListener=new OpenOnShowListener();
  popupMenu.addMenuListener(openListener);
  OpenContributionItem contributionItem=new OpenContributionItem(getClass().getSimpleName() + "String_Node_Str");
  contributionItem.fill(popupMenu,-1);
  openListener.add(popupMenu.getItem(0));
  new MenuItem(popupMenu,SWT.SEPARATOR);
  createChangeReportMenuItem(popupMenu);
  new MenuItem(popupMenu,SWT.SEPARATOR);
  createReplaceAttributeWithVersionMenuItem(popupMenu);
  IAction action=new CompareArtifactAction("String_Node_Str",xHistoryWidget.getXViewer());
  new ActionContributionItem(action).fill(popupMenu,3);
  new ActionContributionItem(new EditTransactionComment(this)).fill(popupMenu,3);
  new ActionContributionItem(new WasIsCompareEditorAction()).fill(popupMenu,3);
  openListener.add(popupMenu.getItem(3));
  XViewerCustomMenu xMenu=new XViewerCustomMenu(xHistoryWidget.getXViewer());
  new MenuItem(popupMenu,SWT.SEPARATOR);
  xMenu.createTableCustomizationMenuItem(popupMenu);
  xMenu.createViewTableReportMenuItem(popupMenu);
  new MenuItem(popupMenu,SWT.SEPARATOR);
  xMenu.addCopyViewMenuBlock(popupMenu);
  new MenuItem(popupMenu,SWT.SEPARATOR);
  xMenu.addFilterMenuBlock(popupMenu);
  new MenuItem(popupMenu,SWT.SEPARATOR);
  xHistoryWidget.getXViewer().getTree().setMenu(popupMenu);
}
Program: 96816
Project: 96816
Buggy source:
@GET @Produces(MediaType.TEXT_HTML) @Path("String_Node_Str") public AttributeResource getAttributeWithGamma(@PathParam("String_Node_Str") int attributeId,@PathParam("String_Node_Str") TransactionId transactionId){
  return new AttributeResource(uriInfo,request,branchUuid,artifactUuid,attributeId,transactionId);
}

Fixed version (ground truth):
@Path("String_Node_Str") public AttributeResource getAttributeWithGamma(@PathParam("String_Node_Str") int attributeId,@PathParam("String_Node_Str") TransactionId transactionId){
  return new AttributeResource(uriInfo,request,branchUuid,artifactUuid,attributeId,transactionId);
}
Program: 96817
Project: 96817
Buggy source:
@Override public ApplicabilityToken getApplicabilityToken(ArtifactId artId,BranchId branch){
  List<ApplicabilityToken> result=new ArrayList<>();
  BiConsumer<Long,String> consumer=(id,name) -> result.add(new ApplicabilityToken(id,name));
  tupleQuery.getTupleType2ForArtifactId(artId,branch,consumer);
  return result.get(0);
}

Fixed version (ground truth):
@Override public ApplicabilityToken getApplicabilityToken(ArtifactId artId,BranchId branch){
  List<ApplicabilityToken> result=new ArrayList<>();
  BiConsumer<Long,String> consumer=(id,name) -> result.add(new ApplicabilityToken(id,name));
  tupleQuery.getTupleType2ForArtifactId(artId,branch,consumer);
  if (result.size() == 0) {
    result.add(ApplicabilityToken.BASE);
  }
  return result.get(0);
}
Program: 96818
Project: 96818
Buggy source:
private void addExtensionPointItems(XNavigateItem parentItem,List<XNavigateItem> items){
  IExtensionPoint point=Platform.getExtensionRegistry().getExtensionPoint("String_Node_Str");
  if (point == null) {
    OseeLog.log(Activator.class,OseeLevel.SEVERE_POPUP,"String_Node_Str");
    return;
  }
  IExtension[] extensions=point.getExtensions();
  Map<String,XNavigateItem> nameToNavItem=new TreeMap<>();
  for (  IExtension extension : extensions) {
    IConfigurationElement[] elements=extension.getConfigurationElements();
    String classname=null;
    String bundleName=null;
    for (    IConfigurationElement el : elements) {
      if (el.getName().equals("String_Node_Str")) {
        classname=el.getAttribute("String_Node_Str");
        bundleName=el.getContributor().getName();
      }
    }
    if (classname != null && bundleName != null) {
      Bundle bundle=Platform.getBundle(bundleName);
      try {
        Object obj=bundle.loadClass(classname).newInstance();
        IAtsNavigateItem task=(IAtsNavigateItem)obj;
        for (        XNavigateItem navItem : task.getNavigateItems(parentItem)) {
          nameToNavItem.put(navItem.getName(),navItem);
        }
      }
 catch (      Exception ex) {
        OseeLog.log(Activator.class,Level.SEVERE,"String_Node_Str",ex);
      }
    }
  }
  items.addAll(nameToNavItem.values());
}

Fixed version (ground truth):
private void addExtensionPointItems(XNavigateItem parentItem,List<XNavigateItem> items){
  IExtensionPoint point=Platform.getExtensionRegistry().getExtensionPoint("String_Node_Str");
  if (point == null) {
    OseeLog.log(Activator.class,OseeLevel.SEVERE_POPUP,"String_Node_Str");
    return;
  }
  IExtension[] extensions=point.getExtensions();
  Map<String,XNavigateItem> nameToNavItem=new TreeMap<>();
  for (  IExtension extension : extensions) {
    IConfigurationElement[] elements=extension.getConfigurationElements();
    String classname=null;
    String bundleName=null;
    for (    IConfigurationElement el : elements) {
      if (el.getName().equals("String_Node_Str")) {
        classname=el.getAttribute("String_Node_Str");
        bundleName=el.getContributor().getName();
      }
    }
    if (classname != null && bundleName != null) {
      Bundle bundle=Platform.getBundle(bundleName);
      try {
        Object obj=bundle.loadClass(classname).newInstance();
        IAtsNavigateItem task=(IAtsNavigateItem)obj;
        if (task != null) {
          for (          XNavigateItem navItem : task.getNavigateItems(parentItem)) {
            nameToNavItem.put(navItem.getName(),navItem);
          }
        }
      }
 catch (      Exception ex) {
        OseeLog.log(Activator.class,Level.SEVERE,"String_Node_Str",ex);
      }
    }
  }
  items.addAll(nameToNavItem.values());
}
Program: 96819
Project: 96819
Buggy source:
@Override public boolean canExecute(){
  if (source.equals(target)) {
    return false;
  }
  for (Iterator<?> iter=source.getSourceConnections().iterator(); iter.hasNext(); ) {
    Connection conn=(Connection)iter.next();
    if (conn.getTarget().equals(target)) {
      return false;
    }
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean canExecute(){
  if (source.equals(target)) {
    return false;
  }
  for (Iterator<?> iter=source.getSourceConnections().iterator(); iter.hasNext(); ) {
    Connection conn=(Connection)iter.next();
    if (conn != null && conn.getTarget().equals(target)) {
      return false;
    }
  }
  return true;
}
Program: 96820
Project: 96820
Buggy source:
/** 
 * Return true, if reconnecting the connection-instance to newSource is allowed.
 */
private boolean checkSourceReconnection(){
  if (newSource.equals(oldTarget)) {
    return false;
  }
  for (Iterator<?> iter=newSource.getSourceConnections().iterator(); iter.hasNext(); ) {
    Connection conn=(Connection)iter.next();
    if (conn.getTarget().equals(oldTarget) && !conn.equals(connection)) {
      return false;
    }
  }
  return true;
}

Fixed version (ground truth):
/** 
 * Return true, if reconnecting the connection-instance to newSource is allowed.
 */
private boolean checkSourceReconnection(){
  if (newSource.equals(oldTarget)) {
    return false;
  }
  for (Iterator<?> iter=newSource.getSourceConnections().iterator(); iter.hasNext(); ) {
    Connection conn=(Connection)iter.next();
    if (conn != null && conn.getTarget().equals(oldTarget) && !conn.equals(connection)) {
      return false;
    }
  }
  return true;
}
Program: 96821
Project: 96821
Buggy source:
/** 
 * Return true, if reconnecting the connection-instance to newTarget is allowed.
 */
private boolean checkTargetReconnection(){
  if (newTarget.equals(oldSource)) {
    return false;
  }
  for (Iterator<?> iter=newTarget.getTargetConnections().iterator(); iter.hasNext(); ) {
    Connection conn=(Connection)iter.next();
    if (conn.getSource().equals(oldSource) && !conn.equals(connection)) {
      return false;
    }
  }
  return true;
}

Fixed version (ground truth):
/** 
 * Return true, if reconnecting the connection-instance to newTarget is allowed.
 */
private boolean checkTargetReconnection(){
  if (newTarget.equals(oldSource)) {
    return false;
  }
  for (Iterator<?> iter=newTarget.getTargetConnections().iterator(); iter.hasNext(); ) {
    Connection conn=(Connection)iter.next();
    if (conn != null && conn.getSource().equals(oldSource) && !conn.equals(connection)) {
      return false;
    }
  }
  return true;
}
Program: 96822
Project: 96822
Buggy source:
@Test public void testLocalIdOnSide() throws OseeCoreException {
  when(relation.isDeleted()).thenReturn(false);
  when(relation.getLocalIdForSide(RelationSide.SIDE_A)).thenReturn(11);
  when(relation.getLocalIdForSide(RelationSide.SIDE_B)).thenReturn(22);
  collection.add(TYPE_1.getGuid(),relation);
  when(localId.getLocalId()).thenReturn(22);
  Relation actual=collection.getResultSet(TYPE_1,DeletionFlag.EXCLUDE_DELETED,localId,RelationSide.SIDE_A).getOneOrNull();
  assertNull(actual);
  actual=collection.getResultSet(TYPE_1,DeletionFlag.EXCLUDE_DELETED,localId,RelationSide.SIDE_B).getOneOrNull();
  assertEquals(relation,actual);
  when(localId.getLocalId()).thenReturn(11);
  actual=collection.getResultSet(TYPE_1,DeletionFlag.EXCLUDE_DELETED,localId,RelationSide.SIDE_A).getOneOrNull();
  assertEquals(relation,actual);
  actual=collection.getResultSet(TYPE_1,DeletionFlag.EXCLUDE_DELETED,localId,RelationSide.SIDE_B).getOneOrNull();
  assertNull(actual);
}

Fixed version (ground truth):
@Test public void testLocalIdOnSide() throws OseeCoreException {
  when(relation.isDeleted()).thenReturn(false);
  when(relation.getLocalIdForSide(RelationSide.SIDE_A)).thenReturn(11);
  when(relation.getLocalIdForSide(RelationSide.SIDE_B)).thenReturn(22);
  collection.add(TYPE_1.getGuid(),relation);
  when(localId.getLocalId()).thenReturn(22);
  Relation actual=(Relation)collection.getResultSet(TYPE_1,DeletionFlag.EXCLUDE_DELETED,localId,RelationSide.SIDE_A).getOneOrNull();
  assertNull(actual);
  actual=(Relation)collection.getResultSet(TYPE_1,DeletionFlag.EXCLUDE_DELETED,localId,RelationSide.SIDE_B).getOneOrNull();
  assertEquals(relation,actual);
  when(localId.getLocalId()).thenReturn(11);
  actual=(Relation)collection.getResultSet(TYPE_1,DeletionFlag.EXCLUDE_DELETED,localId,RelationSide.SIDE_A).getOneOrNull();
  assertEquals(relation,actual);
  actual=(Relation)collection.getResultSet(TYPE_1,DeletionFlag.EXCLUDE_DELETED,localId,RelationSide.SIDE_B).getOneOrNull();
  assertNull(actual);
}
Program: 96823
Project: 96823
Buggy source:
/** 
 * Adds all of the items in the Collection values to the collection for the specified key.
 * @param key The key to add the values to
 * @param values The values to be added
 * @return The collection for the key, containing all values.
 */
public Collection<V> put(K key,Collection<V> values){
  Collection<V> items=null;
  for (  V value : values) {
    if (items == null) {
      items=this.put(key,value);
    }
 else {
      items.add(value);
    }
  }
  return items;
}

Fixed version (ground truth):
/** 
 * Adds all of the items in the Collection values to the collection for the specified key.
 * @param key The key to add the values to
 * @param values The values to be added. Null or empty values will insert empty list in map
 * @return The collection for the key, containing all values.
 */
public Collection<V> put(K key,Collection<V> values){
  Collection<V> items=null;
  if (values == null || values.isEmpty()) {
    Collection<V> values2=this.getValues(key);
    if (values2 == null) {
      map.put(key,new LinkedList<>());
    }
  }
  for (  V value : values) {
    if (items == null) {
      items=this.put(key,value);
    }
 else {
      items.add(value);
    }
  }
  return items;
}
Program: 96824
Project: 96824
Buggy source:
public synchronized static Collection<TransactionRecord> getCommittedArtifactTransactionIds(ArtifactId artifact) throws OseeCoreException {
  if (!commitArtifactIdMap.containsKey(artifact)) {
    ConnectionHandler.getJdbcClient().runQuery(stmt -> commitArtifactIdMap.put(artifact,loadTransaction(stmt)),SELECT_COMMIT_TRANSACTIONS,artifact);
  }
  Collection<TransactionRecord> transactions=commitArtifactIdMap.getValues(artifact);
  return transactions == null ? Collections.emptyList() : transactions;
}

Fixed version (ground truth):
public synchronized static Collection<TransactionRecord> getCommittedArtifactTransactionIds(ArtifactId artifact) throws OseeCoreException {
  if (!commitArtifactIdMap.containsKey(artifact)) {
    ConnectionHandler.getJdbcClient().runQuery(stmt -> commitArtifactIdMap.put(artifact,loadTransaction(stmt)),SELECT_COMMIT_TRANSACTIONS,artifact);
  }
  Collection<TransactionRecord> transactions=commitArtifactIdMap.getValues(artifact);
  if (transactions == null) {
    transactions=Collections.emptyList();
    commitArtifactIdMap.put(artifact,transactions);
  }
  return transactions;
}
Program: 96825
Project: 96825
Buggy source:
@Test public void testDeCache() throws OseeCoreException {
  RelationCache relCache=new RelationCache();
  Branch testBranch=TestUtil.createBranch(777,777);
  IArtifact artifactA=createArtifact(54,testBranch);
  IArtifact artifactB=createArtifact(55,testBranch);
  RelationType type=new RelationType(0x00L,"String_Node_Str",artifactA.getName(),artifactB.getName(),CoreArtifactTypes.Artifact,CoreArtifactTypes.Artifact,RelationTypeMultiplicity.MANY_TO_MANY,"String_Node_Str");
  RelationLink link=new RelationLink(new MockLinker("String_Node_Str"),artifactA.getArtId(),artifactB.getArtId(),testBranch,type,77,88,"String_Node_Str",ModificationType.MODIFIED);
  relCache.cache(artifactA,link);
  relCache.cache(artifactB,link);
  List<RelationLink> artARels=relCache.getAll(artifactA);
  Assert.assertEquals(1,artARels.size());
  relCache.deCache(artifactA);
  artARels=relCache.getAll(artifactA);
  Assert.assertEquals(0,artARels.size());
  List<RelationLink> artBRels=relCache.getAll(artifactB);
  Assert.assertEquals(0,artBRels.size());
}

Fixed version (ground truth):
@Test public void testDeCache() throws OseeCoreException {
  RelationCache relCache=new RelationCache();
  Branch testBranch=TestUtil.createBranch(777,777);
  IArtifact artifactA=createArtifact(54,testBranch);
  IArtifact artifactB=createArtifact(55,testBranch);
  RelationType type=new RelationType(0x00L,"String_Node_Str",artifactA.getName(),artifactB.getName(),CoreArtifactTypes.Artifact,CoreArtifactTypes.Artifact,RelationTypeMultiplicity.MANY_TO_MANY,"String_Node_Str");
  RelationLink link=new RelationLink(new MockLinker("String_Node_Str"),artifactA.getArtId(),artifactB.getArtId(),testBranch,type,77,88,"String_Node_Str",ModificationType.MODIFIED,ApplicabilityId.BASE);
  relCache.cache(artifactA,link);
  relCache.cache(artifactB,link);
  List<RelationLink> artARels=relCache.getAll(artifactA);
  Assert.assertEquals(1,artARels.size());
  relCache.deCache(artifactA);
  artARels=relCache.getAll(artifactA);
  Assert.assertEquals(0,artARels.size());
  List<RelationLink> artBRels=relCache.getAll(artifactB);
  Assert.assertEquals(0,artBRels.size());
}
Program: 96826
Project: 96826
Buggy source:
public static RelationLink createRelationLink(int relationId,int artA,int artB,Branch branch,RelationType relationType){
  return new RelationLink(new MockLinker("String_Node_Str"),artA,artB,branch,relationType,relationId,0,"String_Node_Str" + relationId,ModificationType.MODIFIED);
}

Fixed version (ground truth):
public static RelationLink createRelationLink(int relationId,int artA,int artB,Branch branch,RelationType relationType){
  return new RelationLink(new MockLinker("String_Node_Str"),artA,artB,branch,relationType,relationId,0,"String_Node_Str" + relationId,ModificationType.MODIFIED,ApplicabilityId.BASE);
}
Program: 96827
Project: 96827
Buggy source:
private <T>Attribute<T> initializeAttribute(IAttributeType attributeType,ModificationType modificationType,boolean markDirty,boolean setDefaultValue) throws OseeCoreException {
  Attribute<T> attribute=createAttribute(attributeType);
  attribute.internalInitialize(attributeType,this,modificationType,markDirty,setDefaultValue);
  return attribute;
}

Fixed version (ground truth):
private <T>Attribute<T> initializeAttribute(IAttributeType attributeType,ModificationType modificationType,boolean markDirty,boolean setDefaultValue) throws OseeCoreException {
  Attribute<T> attribute=createAttribute(attributeType);
  attribute.internalInitialize(attributeType,this,modificationType,ApplicabilityId.BASE,markDirty,setDefaultValue);
  return attribute;
}
Program: 96828
Project: 96828
Buggy source:
public final <T>Attribute<T> internalInitializeAttribute(IAttributeType attributeType,int attributeId,int gammaId,ModificationType modificationType,boolean markDirty,Object... data) throws OseeCoreException {
  Attribute<T> attribute=createAttribute(attributeType);
  attribute.internalInitialize(attributeType,this,modificationType,attributeId,gammaId,markDirty,false);
  attribute.getAttributeDataProvider().loadData(data);
  return attribute;
}

Fixed version (ground truth):
public final <T>Attribute<T> internalInitializeAttribute(IAttributeType attributeType,int attributeId,int gammaId,ModificationType modificationType,ApplicabilityId applicabilityId,boolean markDirty,Object... data) throws OseeCoreException {
  Attribute<T> attribute=createAttribute(attributeType);
  attribute.internalInitialize(attributeType,this,modificationType,applicabilityId,attributeId,gammaId,markDirty,false);
  attribute.getAttributeDataProvider().loadData(data);
  return attribute;
}
Program: 96829
Project: 96829
Buggy source:
public void internalInitialize(IAttributeType attributeType,Artifact artifact,ModificationType modificationType,int attributeId,int gammaId,boolean markDirty,boolean setDefaultValue) throws OseeCoreException {
  internalInitialize(attributeType,artifact,modificationType,markDirty,setDefaultValue);
  this.attrId=attributeId;
  this.gammaId=gammaId;
}

Fixed version (ground truth):
public void internalInitialize(IAttributeType attributeType,Artifact artifact,ModificationType modificationType,ApplicabilityId applicabilityId,int attributeId,int gammaId,boolean markDirty,boolean setDefaultValue) throws OseeCoreException {
  internalInitialize(attributeType,artifact,modificationType,applicabilityId,markDirty,setDefaultValue);
  this.attrId=attributeId;
  this.gammaId=gammaId;
}
Program: 96830
Project: 96830
Buggy source:
public AttrData(JdbcStatement chStmt,boolean historical) throws OseeCoreException {
  artifactId=chStmt.getInt("String_Node_Str");
  branchUuid=chStmt.getLong("String_Node_Str");
  attrId=chStmt.getInt("String_Node_Str");
  gammaId=chStmt.getInt("String_Node_Str");
  modType=chStmt.getInt("String_Node_Str");
  transactionId=chStmt.getLong("String_Node_Str");
  attrTypeId=chStmt.getLong("String_Node_Str");
  value=chStmt.getString("String_Node_Str");
  if (historical) {
    stripeId=chStmt.getInt("String_Node_Str");
  }
  uri=chStmt.getString("String_Node_Str");
}

Fixed version (ground truth):
public AttrData(JdbcStatement chStmt,boolean historical) throws OseeCoreException {
  artifactId=chStmt.getInt("String_Node_Str");
  branchUuid=chStmt.getLong("String_Node_Str");
  attrId=chStmt.getInt("String_Node_Str");
  gammaId=chStmt.getInt("String_Node_Str");
  modType=chStmt.getInt("String_Node_Str");
  transactionId=chStmt.getLong("String_Node_Str");
  attrTypeId=chStmt.getLong("String_Node_Str");
  value=chStmt.getString("String_Node_Str");
  if (historical) {
    stripeId=chStmt.getInt("String_Node_Str");
  }
  uri=chStmt.getString("String_Node_Str");
  applicabilityId=ApplicabilityId.valueOf(chStmt.getLong("String_Node_Str"));
}
Program: 96831
Project: 96831
Buggy source:
private static void loadAttribute(Artifact artifact,AttrData current,AttrData previous) throws OseeCoreException {
  IAttributeType attributeType=AttributeTypeManager.getTypeByGuid(current.attrTypeId);
  String value=current.value;
  if (isEnumOrBoolean(attributeType)) {
    value=Strings.intern(value);
  }
  boolean markDirty=false;
  artifact.internalInitializeAttribute(attributeType,current.attrId,current.gammaId,ModificationType.getMod(current.modType),markDirty,value,current.uri);
}

Fixed version (ground truth):
private static void loadAttribute(Artifact artifact,AttrData current,AttrData previous) throws OseeCoreException {
  IAttributeType attributeType=AttributeTypeManager.getTypeByGuid(current.attrTypeId);
  String value=current.value;
  if (isEnumOrBoolean(attributeType)) {
    value=Strings.intern(value);
  }
  boolean markDirty=false;
  artifact.internalInitializeAttribute(attributeType,current.attrId,current.gammaId,ModificationType.getMod(current.modType),current.applicabilityId,markDirty,value,current.uri);
}
Program: 96832
Project: 96832
Buggy source:
private void introduceAttribute(Attribute<?> sourceAttribute,Artifact destinationArtifact) throws OseeDataStoreException, OseeCoreException {
  if (sourceAttribute.isDirty()) {
    throw new OseeArgumentException("String_Node_Str",sourceAttribute);
  }
 else   if (sourceAttribute.isInDb()) {
    Attribute<?> destinationAttribute=destinationArtifact.getAttributeById(sourceAttribute.getId(),true);
    if (destinationAttribute == null) {
      destinationArtifact.internalInitializeAttribute(sourceAttribute.getAttributeType(),sourceAttribute.getId(),sourceAttribute.getGammaId(),sourceAttribute.getModificationType(),true,sourceAttribute.getAttributeDataProvider().getData()).internalSetModType(sourceAttribute.getModificationType(),true,true);
    }
 else {
      destinationAttribute.introduce(sourceAttribute);
    }
  }
}

Fixed version (ground truth):
private void introduceAttribute(Attribute<?> sourceAttribute,Artifact destinationArtifact) throws OseeDataStoreException, OseeCoreException {
  if (sourceAttribute.isDirty()) {
    throw new OseeArgumentException("String_Node_Str",sourceAttribute);
  }
 else   if (sourceAttribute.isInDb()) {
    Attribute<?> destinationAttribute=destinationArtifact.getAttributeById(sourceAttribute.getId(),true);
    if (destinationAttribute == null) {
      destinationArtifact.internalInitializeAttribute(sourceAttribute.getAttributeType(),sourceAttribute.getId(),sourceAttribute.getGammaId(),sourceAttribute.getModificationType(),sourceAttribute.getApplicabilityId(),true,sourceAttribute.getAttributeDataProvider().getData()).internalSetModType(sourceAttribute.getModificationType(),true,true);
    }
 else {
      destinationAttribute.introduce(sourceAttribute);
    }
  }
}
Program: 96833
Project: 96833
Buggy source:
private void introduceRelation(RelationLink sourceRelation,Artifact destinationArtifact) throws OseeDataStoreException, OseeCoreException {
  if (sourceRelation.isDirty()) {
    throw new OseeArgumentException("String_Node_Str",sourceRelation);
  }
 else   if (sourceRelation.isInDb()) {
    RelationLink destinationRelation=RelationManager.getLoadedRelationById(sourceRelation.getId(),sourceRelation.getAArtifactId(),sourceRelation.getBArtifactId(),destinationBranch);
    if (destinationRelation == null) {
      int aArtifactId=sourceRelation.getAArtifactId();
      int bArtifactId=sourceRelation.getBArtifactId();
      if (doesRelatedArtifactExist(destinationArtifact,aArtifactId,bArtifactId)) {
        ModificationType modType=sourceRelation.getModificationType();
        destinationRelation=RelationManager.getOrCreate(aArtifactId,bArtifactId,destinationBranch,sourceRelation.getRelationType(),sourceRelation.getId(),sourceRelation.getGammaId(),sourceRelation.getRationale(),modType);
        destinationRelation.internalSetModType(modType,true,true);
      }
    }
 else {
      destinationRelation.introduce(sourceRelation.getGammaId(),sourceRelation.getModificationType());
    }
  }
}

Fixed version (ground truth):
private void introduceRelation(RelationLink sourceRelation,Artifact destinationArtifact) throws OseeDataStoreException, OseeCoreException {
  if (sourceRelation.isDirty()) {
    throw new OseeArgumentException("String_Node_Str",sourceRelation);
  }
 else   if (sourceRelation.isInDb()) {
    RelationLink destinationRelation=RelationManager.getLoadedRelationById(sourceRelation.getId(),sourceRelation.getAArtifactId(),sourceRelation.getBArtifactId(),destinationBranch);
    if (destinationRelation == null) {
      int aArtifactId=sourceRelation.getAArtifactId();
      int bArtifactId=sourceRelation.getBArtifactId();
      if (doesRelatedArtifactExist(destinationArtifact,aArtifactId,bArtifactId)) {
        ModificationType modType=sourceRelation.getModificationType();
        destinationRelation=RelationManager.getOrCreate(aArtifactId,bArtifactId,destinationBranch,sourceRelation.getRelationType(),sourceRelation.getId(),sourceRelation.getGammaId(),sourceRelation.getRationale(),modType,sourceRelation.getApplicabilityId());
        destinationRelation.internalSetModType(modType,true,true);
      }
    }
 else {
      destinationRelation.introduce(sourceRelation.getGammaId(),sourceRelation.getModificationType());
    }
  }
}
Program: 96834
Project: 96834
Buggy source:
public static void loadRelationData(int joinQueryId,Collection<Artifact> artifacts,boolean historical,LoadLevel loadLevel) throws OseeCoreException {
  if (loadLevel == ARTIFACT_DATA || loadLevel == ARTIFACT_AND_ATTRIBUTE_DATA) {
    return;
  }
  if (historical) {
    return;
  }
  JdbcStatement chStmt=ConnectionHandler.getStatement();
  try {
    String sqlQuery=ServiceUtil.getSql(OseeSql.LOAD_RELATIONS);
    chStmt.runPreparedQuery(artifacts.size() * 8,sqlQuery,joinQueryId);
    while (chStmt.next()) {
      int relationId=chStmt.getInt("String_Node_Str");
      int aArtifactId=chStmt.getInt("String_Node_Str");
      int bArtifactId=chStmt.getInt("String_Node_Str");
      BranchId branch=TokenFactory.createBranch(chStmt.getLong("String_Node_Str"));
      RelationType relationType=RelationTypeManager.getTypeByGuid(chStmt.getLong("String_Node_Str"));
      int gammaId=chStmt.getInt("String_Node_Str");
      String rationale=chStmt.getString("String_Node_Str");
      ModificationType modificationType=ModificationType.getMod(chStmt.getInt("String_Node_Str"));
      RelationManager.getOrCreate(aArtifactId,bArtifactId,branch,relationType,relationId,gammaId,rationale,modificationType);
    }
  }
  finally {
    chStmt.close();
  }
  for (  Artifact artifact : artifacts) {
    artifact.setLinksLoaded(true);
  }
}

Fixed version (ground truth):
public static void loadRelationData(int joinQueryId,Collection<Artifact> artifacts,boolean historical,LoadLevel loadLevel) throws OseeCoreException {
  if (loadLevel == ARTIFACT_DATA || loadLevel == ARTIFACT_AND_ATTRIBUTE_DATA) {
    return;
  }
  if (historical) {
    return;
  }
  JdbcStatement chStmt=ConnectionHandler.getStatement();
  try {
    String sqlQuery=ServiceUtil.getSql(OseeSql.LOAD_RELATIONS);
    chStmt.runPreparedQuery(artifacts.size() * 8,sqlQuery,joinQueryId);
    while (chStmt.next()) {
      int relationId=chStmt.getInt("String_Node_Str");
      int aArtifactId=chStmt.getInt("String_Node_Str");
      int bArtifactId=chStmt.getInt("String_Node_Str");
      BranchId branch=TokenFactory.createBranch(chStmt.getLong("String_Node_Str"));
      RelationType relationType=RelationTypeManager.getTypeByGuid(chStmt.getLong("String_Node_Str"));
      int gammaId=chStmt.getInt("String_Node_Str");
      String rationale=chStmt.getString("String_Node_Str");
      ModificationType modificationType=ModificationType.getMod(chStmt.getInt("String_Node_Str"));
      ApplicabilityId applicabilityId=ApplicabilityId.valueOf(chStmt.getLong("String_Node_Str"));
      RelationManager.getOrCreate(aArtifactId,bArtifactId,branch,relationType,relationId,gammaId,rationale,modificationType,applicabilityId);
    }
  }
  finally {
    chStmt.close();
  }
  for (  Artifact artifact : artifacts) {
    artifact.setLinksLoaded(true);
  }
}
Program: 96835
Project: 96835
Buggy source:
@Override protected ApplicabilityId getApplicabilityId(){
  return ApplicabilityId.BASE;
}

Fixed version (ground truth):
@Override protected ApplicabilityId getApplicabilityId() throws OseeCoreException {
  return attribute.getApplicabilityId();
}
Program: 96836
Project: 96836
Buggy source:
private void createDispoItems(DispoProgram program,String setId,List<DispoItem> dispoItems){
  DispoSet parentSet=getQuery().findDispoSetsById(program,setId);
  if (parentSet != null) {
    ArtifactReadable author=getQuery().findUser();
    getWriter().createDispoItems(author,program,parentSet,dispoItems,"String_Node_Str");
  }
}

Fixed version (ground truth):
private void createDispoItems(DispoProgram program,String setId,List<DispoItem> dispoItems){
  DispoSet parentSet=getQuery().findDispoSetsById(program,setId);
  if (parentSet != null) {
    ArtifactReadable author=getQuery().findUser();
    getWriter().createDispoItems(author,program,parentSet,dispoItems);
  }
}
Program: 96837
Project: 96837
Buggy source:
public void initDispoItem(DispoItemData itemToInit){
  if (itemToInit.getAnnotationsList() == null) {
    itemToInit.setAnnotationsList(new ArrayList<DispoAnnotationData>());
  }
  if (itemToInit.getDiscrepanciesList() == null) {
    itemToInit.setDiscrepanciesList(new HashMap<String,Discrepancy>());
  }
  if (itemToInit.getDiscrepanciesList().size() == 0) {
    itemToInit.setStatus(DispoStrings.Item_Pass);
  }
 else {
    itemToInit.setStatus(DispoStrings.Item_InComplete);
  }
}

Fixed version (ground truth):
public void initDispoItem(DispoItemData itemToInit){
  if (itemToInit.getAnnotationsList() == null) {
    itemToInit.setAnnotationsList(new ArrayList<DispoAnnotationData>());
  }
  if (itemToInit.getDiscrepanciesList() == null) {
    itemToInit.setDiscrepanciesList(new HashMap<String,Discrepancy>());
  }
  if (itemToInit.getDiscrepanciesList().size() == 0) {
    itemToInit.setStatus(DispoStrings.Item_Pass);
  }
 else {
    itemToInit.setStatus(DispoStrings.Item_InComplete);
  }
  if (!Strings.isValid(itemToInit.getAssignee())) {
    itemToInit.setAssignee("String_Node_Str");
  }
  itemToInit.setAborted(false);
  itemToInit.setNeedsRerun(false);
  itemToInit.setNeedsReview(false);
}
Program: 96838
Project: 96838
Buggy source:
void createDispoItems(ArtifactReadable author,DispoProgram program,DispoSet parentSet,List<DispoItem> data,String assignee);

Fixed version (ground truth):
void createDispoItems(ArtifactReadable author,DispoProgram program,DispoSet parentSet,List<DispoItem> data);
Program: 96840
Project: 96840
Buggy source:
Artifact introduceShallowArtifact(BranchId destinationBranch) throws OseeCoreException {
  Artifact shallowArt=ArtifactTypeManager.getFactory(getArtifactType()).reflectExisitingArtifact(artId,getGuid(),getArtifactType(),gammaId,destinationBranch,modType);
  return shallowArt;
}

Fixed version (ground truth):
Artifact introduceShallowArtifact(BranchId destinationBranch) throws OseeCoreException {
  Artifact shallowArt=ArtifactTypeManager.getFactory(getArtifactType()).reflectExisitingArtifact(artId,getGuid(),getArtifactType(),gammaId,destinationBranch,modType,applicabilityId);
  return shallowArt;
}
Program: 96841
Project: 96841
Buggy source:
public Artifact(String guid,BranchId branch,IArtifactType artifactType) throws OseeCoreException {
  super(GUID.checkOrCreate(guid),"String_Node_Str");
  this.artifactTypeToken=artifactType;
  objectEditState=EditState.NO_CHANGE;
  internalSetModType(ModificationType.NEW,false);
  this.branch=branch;
}

Fixed version (ground truth):
public Artifact(String guid,BranchId branch,IArtifactType artifactType) throws OseeCoreException {
  super(GUID.checkOrCreate(guid),"String_Node_Str");
  this.artifactTypeToken=artifactType;
  objectEditState=EditState.NO_CHANGE;
  internalSetModType(ModificationType.NEW,false);
  internalSetApplicablityId(ApplicabilityId.BASE);
  this.branch=branch;
}
Program: 96842
Project: 96842
Buggy source:
/** 
 * This method should never be called from outside the OSEE Application Framework
 */
void internalSetPersistenceData(int gammaId,TransactionToken transactionId,ModificationType modType,boolean historical,boolean useBackingData){
  this.gammaId=gammaId;
  this.transaction=transactionId;
  this.historical=historical;
  internalSetModType(modType,useBackingData);
  this.objectEditState=EditState.NO_CHANGE;
}

Fixed version (ground truth):
/** 
 * This method should never be called from outside the OSEE Application Framework
 */
void internalSetPersistenceData(int gammaId,TransactionToken transactionId,ModificationType modType,ApplicabilityId applicabilityId,boolean historical,boolean useBackingData){
  this.gammaId=gammaId;
  this.transaction=transactionId;
  this.historical=historical;
  internalSetApplicablityId(applicabilityId);
  internalSetModType(modType,useBackingData);
  this.objectEditState=EditState.NO_CHANGE;
}
Program: 96843
Project: 96843
Buggy source:
/** 
 * @return Returns the gammaId.
 */
public final int getGammaId(){
  return gammaId;
}

Fixed version (ground truth):
public final int getGammaId(){
  return gammaId;
}
Program: 96844
Project: 96844
Buggy source:
/** 
 * This method does not cache the artifact, ArtifactLoader will cache existing artifacts
 */
private Artifact internalExistingArtifact(int artId,String guid,IArtifactType artifactType,int gammaId,BranchId branch,ModificationType modType,boolean historical,TransactionToken transactionId,boolean useBackingData) throws OseeCoreException {
  Artifact artifact=getArtifactInstance(guid,branch,artifactType,true);
  artifact.setArtId(artId);
  artifact.internalSetPersistenceData(gammaId,transactionId,modType,historical,useBackingData);
  return artifact;
}

Fixed version (ground truth):
/** 
 * This method does not cache the artifact, ArtifactLoader will cache existing artifacts
 */
private Artifact internalExistingArtifact(int artId,String guid,IArtifactType artifactType,int gammaId,BranchId branch,ModificationType modType,ApplicabilityId applicabilityId,boolean historical,TransactionToken transactionId,boolean useBackingData) throws OseeCoreException {
  Artifact artifact=getArtifactInstance(guid,branch,artifactType,true);
  artifact.setArtId(artId);
  artifact.internalSetPersistenceData(gammaId,transactionId,modType,applicabilityId,historical,useBackingData);
  return artifact;
}
Program: 96845
Project: 96845
Buggy source:
/** 
 * This method does not cache the artifact, ArtifactLoader will cache existing artifacts
 */
public synchronized Artifact loadExisitingArtifact(int artId,String guid,IArtifactType artifactType,int gammaId,BranchId branch,TransactionToken transactionId,ModificationType modType,boolean historical) throws OseeCoreException {
  return internalExistingArtifact(artId,guid,artifactType,gammaId,branch,modType,historical,transactionId,false);
}

Fixed version (ground truth):
/** 
 * This method does not cache the artifact, ArtifactLoader will cache existing artifacts
 */
public synchronized Artifact loadExisitingArtifact(int artId,String guid,IArtifactType artifactType,int gammaId,BranchId branch,TransactionToken transactionId,ModificationType modType,ApplicabilityId applicabilityId,boolean historical) throws OseeCoreException {
  return internalExistingArtifact(artId,guid,artifactType,gammaId,branch,modType,applicabilityId,historical,transactionId,false);
}
Program: 96846
Project: 96846
Buggy source:
public synchronized Artifact reflectExisitingArtifact(int artId,String guid,IArtifactType artifactType,int gammaId,BranchId branch,ModificationType modificationType) throws OseeCoreException {
  Artifact toReturn=internalExistingArtifact(artId,guid,artifactType,gammaId,branch,modificationType,false,TransactionToken.SENTINEL,true);
  ArtifactCache.cache(toReturn);
  return toReturn;
}

Fixed version (ground truth):
public synchronized Artifact reflectExisitingArtifact(int artId,String guid,IArtifactType artifactType,int gammaId,BranchId branch,ModificationType modificationType,ApplicabilityId applicabilityId) throws OseeCoreException {
  Artifact toReturn=internalExistingArtifact(artId,guid,artifactType,gammaId,branch,modificationType,applicabilityId,false,TransactionToken.SENTINEL,true);
  ArtifactCache.cache(toReturn);
  return toReturn;
}
Program: 96847
Project: 96847
Buggy source:
void copyDispoSetCoverage(long sourceBranch,String sourceCoverageGuid,DispoProgram destDispProgram,DispoSet destination,CopySetParams params);

Fixed version (ground truth):
void copyDispoSetCoverage(long sourceBranch,Long sourceCoverageUuid,DispoProgram destDispProgram,DispoSet destination,CopySetParams params);
Program: 96850
Project: 96850
Buggy source:
@Override public void copyDispoSetCoverage(long sourceBranch,String sourceCoverageGuid,DispoProgram destDispProgram,DispoSet destination,CopySetParams params){
  Map<String,ArtifactReadable> coverageUnits=getQuery().getCoverageUnits(sourceBranch,sourceCoverageGuid);
  List<DispoItem> destItems=getDispoItems(destDispProgram,destination.getGuid());
  OperationReport report=new OperationReport();
  CoverageAdapter coverageAdapter=new CoverageAdapter(dispoConnector);
  List<DispoItem> copyData=coverageAdapter.copyData(coverageUnits,destItems,report);
  String operation=String.format("String_Node_Str",sourceBranch,sourceCoverageGuid);
  if (!copyData.isEmpty()) {
    editDispoItems(destDispProgram,copyData,false,operation);
  }
  storageProvider.get().updateOperationSummary(null,destDispProgram,destination,report);
}

Fixed version (ground truth):
@Override public void copyDispoSetCoverage(long sourceBranch,Long sourceCoverageUuid,DispoProgram destDispProgram,DispoSet destination,CopySetParams params){
  Map<String,ArtifactReadable> coverageUnits=getQuery().getCoverageUnits(sourceBranch,sourceCoverageUuid);
  List<DispoItem> destItems=getDispoItems(destDispProgram,destination.getGuid());
  OperationReport report=new OperationReport();
  CoverageAdapter coverageAdapter=new CoverageAdapter(dispoConnector);
  List<DispoItem> copyData=coverageAdapter.copyData(coverageUnits,destItems,report);
  String operation=String.format("String_Node_Str",sourceBranch,sourceCoverageUuid);
  if (!copyData.isEmpty()) {
    editDispoItems(destDispProgram,copyData,false,operation);
    storageProvider.get().updateOperationSummary(getQuery().findUser(),destDispProgram,destination,report);
  }
}
Program: 96851
Project: 96851
Buggy source:
Map<String,ArtifactReadable> getCoverageUnits(long branchUuid,String artifactUuid);

Fixed version (ground truth):
Map<String,ArtifactReadable> getCoverageUnits(long branchUuid,Long artifactUuid);
Program: 96852
Project: 96852
Buggy source:
@Override public Map<String,ArtifactReadable> getCoverageUnits(long branchUuid,String artifactUuid){
  ArtifactReadable coveragePackage=getQuery().fromBranch(branchUuid).andGuid(artifactUuid).getResults().getOneOrNull();
  List<ArtifactReadable> descendants=coveragePackage.getDescendants();
  return getChildrenRecurse(descendants);
}

Fixed version (ground truth):
@Override public Map<String,ArtifactReadable> getCoverageUnits(long branchUuid,Long artifactUuid){
  ArtifactReadable coveragePackage=getQuery().fromBranch(branchUuid).andUuid(artifactUuid).getResults().getOneOrNull();
  List<ArtifactReadable> descendants=coveragePackage.getDescendants();
  return getChildrenRecurse(descendants);
}
Program: 96853
Project: 96853
Buggy source:
@Override public void updateOperationSummary(ArtifactReadable author,DispoProgram program,DispoSet set,OperationReport summary){
  ArtifactReadable dispoSet=findDispoArtifact(program,set.getGuid(),DispoConstants.DispoSet);
  TransactionBuilder tx=getTxFactory().createTransaction(program.getUuid(),author,"String_Node_Str");
  tx.setSoleAttributeFromString(dispoSet,DispoConstants.ImportState,summary.getStatus().getName());
  tx.setSoleAttributeFromString(dispoSet,DispoConstants.OperationSummary,DispoUtil.operationReportToString(summary));
  tx.commit();
}

Fixed version (ground truth):
@Override public void updateOperationSummary(ArtifactReadable author,DispoProgram program,DispoSet set,OperationReport summary){
  OperationReport newReport=DispoUtil.cleanOperationReport(summary);
  ArtifactReadable dispoSet=findDispoArtifact(program,set.getGuid(),DispoConstants.DispoSet);
  TransactionBuilder tx=getTxFactory().createTransaction(program.getUuid(),author,"String_Node_Str");
  tx.setSoleAttributeFromString(dispoSet,DispoConstants.ImportState,newReport.getStatus().getName());
  tx.setSoleAttributeFromString(dispoSet,DispoConstants.OperationSummary,DispoUtil.operationReportToString(newReport));
  tx.commit();
}