nus-yam/ex-repair huggingface dataset:
Program: 58241
Project: 58241
Buggy source:
/** 
 * Create a new dataDomain
 * @param dataDomainType the plug-in id of the datadomain
 * @return
 */
public IDataDomain createDataDomain(String dataDomainType){
  IExtensionRegistry reg=Platform.getExtensionRegistry();
  IExtensionPoint ep=reg.getExtensionPoint("String_Node_Str");
  IExtension ext=ep.getExtension(dataDomainType);
  IConfigurationElement[] ce=ext.getConfigurationElements();
  try {
    IDataDomain dataDomain=(IDataDomain)ce[0].createExecutableExtension("String_Node_Str");
    register(dataDomain);
    return dataDomain;
  }
 catch (  Exception ex) {
    throw new RuntimeException("String_Node_Str",ex);
  }
}

Fixed version (ground truth):
/** 
 * Create a new dataDomain
 * @param dataDomainType the plug-in id of the data domain
 * @return
 */
public IDataDomain createDataDomain(String dataDomainType){
  IExtensionRegistry reg=Platform.getExtensionRegistry();
  IExtensionPoint ep=reg.getExtensionPoint("String_Node_Str");
  IExtension ext=ep.getExtension(dataDomainType);
  IConfigurationElement[] ce=ext.getConfigurationElements();
  try {
    IDataDomain dataDomain=(IDataDomain)ce[0].createExecutableExtension("String_Node_Str");
    register(dataDomain);
    return dataDomain;
  }
 catch (  Exception ex) {
    throw new RuntimeException("String_Node_Str",ex);
  }
}
Program: 58242
Project: 58242
Buggy source:
/** 
 * register a concrete datadomain
 * @param dataDomain
 */
public void register(IDataDomain dataDomain){
  registeredDataDomains.put(dataDomain.getDataDomainType(),dataDomain);
}

Fixed version (ground truth):
/** 
 * register a concrete data domain
 * @param dataDomain
 */
public void register(IDataDomain dataDomain){
  registeredDataDomains.put(dataDomain.getDataDomainType(),dataDomain);
}
Program: 58243
Project: 58243
Buggy source:
/** 
 * Constructor.
 */
public PathwayDataDomain(){
  dataDomainType="String_Node_Str";
  icon=EIconTextures.DATA_DOMAIN_PATHWAY;
  PathwayManager.get().triggerParsingPathwayDatabases();
  new PathwayLoadingProgressIndicatorAction().run(null);
  primaryIDType=IDType.getIDType("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Constructor.
 */
public PathwayDataDomain(){
  dataDomainType="String_Node_Str";
  icon=EIconTextures.DATA_DOMAIN_PATHWAY;
  primaryIDType=IDType.getIDType("String_Node_Str");
}
Program: 58245
Project: 58245
Buggy source:
/** 
 * Static method for initializing the Caleydo core. Called when initializing the workbench because XML startup the progress bar is needed
 */
public void initCore(){
  GeneralManager.get().getSWTGUIManager();
  GeneralManager.get().init(new RCPBridge());
  GeneralManager.get().getGUIBridge().init();
  if (startupProcedure == null) {
    Shell shell=new Shell();
    shell.setActive();
    WizardDialog projectWizardDialog=new WizardDialog(shell,new CaleydoProjectWizard(shell));
    if (projectWizardDialog.open() == Window.CANCEL) {
      shutdown();
    }
  }
  startupProcedure.init(appInitData);
  startupProcedure.execute();
  ColorMappingManager.get().initiFromPreferenceStore(EColorMappingType.GENE_EXPRESSION);
}

Fixed version (ground truth):
/** 
 * Static method for initializing the Caleydo core. Called when initializing the workbench because XML startup the progress bar is needed
 */
public void initCore(){
  GeneralManager.get().getSWTGUIManager();
  GeneralManager.get().init(new RCPBridge());
  GeneralManager.get().getGUIBridge().init();
  if (startupProcedure == null) {
    Shell shell=display.getActiveShell();
    WizardDialog projectWizardDialog=new WizardDialog(shell,new CaleydoProjectWizard(shell));
    if (projectWizardDialog.open() == Window.CANCEL) {
      shutdown();
    }
  }
  startupProcedure.init(appInitData);
  startupProcedure.execute();
  ColorMappingManager.get().initiFromPreferenceStore(EColorMappingType.GENE_EXPRESSION);
}
Program: 58246
Project: 58246
Buggy source:
private ISelectionDelta createExternalSelectionDelta(ISelectionDelta selectionDelta){
  ISelectionDelta newSelectionDelta=new SelectionDelta(EIDType.EXPRESSION_INDEX);
  for (  SelectionDeltaItem item : selectionDelta) {
    for (    int iExpressionIndex : getExpressionIndicesFromPathwayVertexGraphItemRep(item.getPrimaryID())) {
      SelectionDeltaItem newItem=newSelectionDelta.addSelection(iExpressionIndex,item.getSelectionType(),item.getPrimaryID());
      newItem.setRemove(item.isRemove());
      for (      Integer iConnectionID : item.getConnectionIDs()) {
        newSelectionDelta.addConnectionID(iExpressionIndex,iConnectionID);
      }
    }
  }
  return newSelectionDelta;
}

Fixed version (ground truth):
private ISelectionDelta createExternalSelectionDelta(ISelectionDelta selectionDelta){
  ISelectionDelta newSelectionDelta=new SelectionDelta(mappingDataDomain.getContentIDType());
  for (  SelectionDeltaItem item : selectionDelta) {
    for (    int iExpressionIndex : getExpressionIndicesFromPathwayVertexGraphItemRep(item.getPrimaryID())) {
      SelectionDeltaItem newItem=newSelectionDelta.addSelection(iExpressionIndex,item.getSelectionType(),item.getPrimaryID());
      newItem.setRemove(item.isRemove());
      for (      Integer iConnectionID : item.getConnectionIDs()) {
        newSelectionDelta.addConnectionID(iExpressionIndex,iConnectionID);
      }
    }
  }
  return newSelectionDelta;
}
Program: 58248
Project: 58248
Buggy source:
private ArrayList<Integer> getExpressionIndicesFromPathwayVertexGraphItemRep(int iPathwayVertexGraphItemRepID){
  ArrayList<Integer> alExpressionIndex=new ArrayList<Integer>();
  for (  IGraphItem pathwayVertexGraphItem : pathwayItemManager.getItem(iPathwayVertexGraphItemRepID).getAllItemsByProp(EGraphItemProperty.ALIAS_PARENT)) {
    int iDavidID=pathwayItemManager.getDavidIdByPathwayVertexGraphItem((PathwayVertexGraphItem)pathwayVertexGraphItem);
    if (iDavidID == -1) {
      continue;
    }
    Set<Integer> iSetRefSeq=idMappingManager.getID(EIDType.DAVID,EIDType.REFSEQ_MRNA_INT,iDavidID);
    if (iSetRefSeq == null) {
      generalManager.getLogger().log(new Status(IStatus.ERROR,IGeneralManager.PLUGIN_ID,"String_Node_Str" + iDavidID));
      continue;
    }
    for (    Integer iRefSeqID : iSetRefSeq) {
      Set<Integer> iSetExpressionIndex=idMappingManager.getIDAsSet(EIDType.REFSEQ_MRNA_INT,EIDType.EXPRESSION_INDEX,iRefSeqID);
      if (iSetExpressionIndex == null)       continue;
      alExpressionIndex.addAll(iSetExpressionIndex);
    }
  }
  return alExpressionIndex;
}

Fixed version (ground truth):
private ArrayList<Integer> getExpressionIndicesFromPathwayVertexGraphItemRep(int iPathwayVertexGraphItemRepID){
  ArrayList<Integer> alExpressionIndex=new ArrayList<Integer>();
  for (  IGraphItem pathwayVertexGraphItem : pathwayItemManager.getItem(iPathwayVertexGraphItemRepID).getAllItemsByProp(EGraphItemProperty.ALIAS_PARENT)) {
    int davidID=pathwayItemManager.getDavidIdByPathwayVertexGraphItem((PathwayVertexGraphItem)pathwayVertexGraphItem);
    if (davidID == -1) {
      continue;
    }
    Set<Integer> iSetExpressionIndex=idMappingManager.getIDAsSet(IDType.getIDType("String_Node_Str"),mappingDataDomain.getContentIDType(),davidID);
    if (iSetExpressionIndex == null)     continue;
    alExpressionIndex.addAll(iSetExpressionIndex);
  }
  return alExpressionIndex;
}
Program: 58249
Project: 58249
Buggy source:
@Override public void initData(){
  connectedElementRepresentationManager.clear(EIDType.EXPRESSION_INDEX);
  iCurrentStorageIndex=-1;
  super.initData();
}

Fixed version (ground truth):
@Override public void initData(){
  connectedElementRepresentationManager.clear(mappingDataDomain.getContentIDType());
  iCurrentStorageIndex=-1;
  super.initData();
}
Program: 58250
Project: 58250
Buggy source:
@Override public void handleSelectionCommand(EIDCategory category,SelectionCommand selectionCommand){
  if (EIDCategory.GENE == category)   selectionManager.executeSelectionCommand(selectionCommand);
}

Fixed version (ground truth):
@Override public void handleSelectionCommand(IDCategory category,SelectionCommand selectionCommand){
  if (mappingDataDomain.getContentIDCategory() == category)   selectionManager.executeSelectionCommand(selectionCommand);
}
Program: 58251
Project: 58251
Buggy source:
@Override public void setDataDomain(IDataDomain dataDomain){
  this.dataDomain=dataDomain;
}

Fixed version (ground truth):
@Override public void setDataDomain(PathwayDataDomain dataDomain){
  this.dataDomain=dataDomain;
}
Program: 58252
Project: 58252
Buggy source:
private void createConnectionLines(SelectionType SelectionType,int iConnectionID){
  PathwayVertexGraphItemRep tmpPathwayVertexGraphItemRep;
  int iPathwayHeight=pathway.getHeight();
  int iViewID=iUniqueID;
  for (  int iVertexRepID : selectionManager.getElements(SelectionType)) {
    tmpPathwayVertexGraphItemRep=pathwayItemManager.getPathwayVertexRep(iVertexRepID);
    SelectedElementRep elementRep=new SelectedElementRep(EIDType.EXPRESSION_INDEX,iViewID,tmpPathwayVertexGraphItemRep.getXOrigin() * PathwayRenderStyle.SCALING_FACTOR_X * vecScaling.x() + vecTranslation.x(),(iPathwayHeight - tmpPathwayVertexGraphItemRep.getYOrigin()) * PathwayRenderStyle.SCALING_FACTOR_Y * vecScaling.y() + vecTranslation.y(),0);
    connectedElementRepresentationManager.addSelection(iConnectionID,elementRep);
  }
}

Fixed version (ground truth):
private void createConnectionLines(SelectionType SelectionType,int iConnectionID){
  PathwayVertexGraphItemRep tmpPathwayVertexGraphItemRep;
  int iPathwayHeight=pathway.getHeight();
  int iViewID=iUniqueID;
  for (  int iVertexRepID : selectionManager.getElements(SelectionType)) {
    tmpPathwayVertexGraphItemRep=pathwayItemManager.getPathwayVertexRep(iVertexRepID);
    SelectedElementRep elementRep=new SelectedElementRep(mappingDataDomain.getContentIDType(),iViewID,tmpPathwayVertexGraphItemRep.getXOrigin() * PathwayRenderStyle.SCALING_FACTOR_X * vecScaling.x() + vecTranslation.x(),(iPathwayHeight - tmpPathwayVertexGraphItemRep.getYOrigin()) * PathwayRenderStyle.SCALING_FACTOR_Y * vecScaling.y() + vecTranslation.y(),0);
    connectedElementRepresentationManager.addSelection(iConnectionID,elementRep);
  }
}
Program: 58253
Project: 58253
Buggy source:
@Override public IDataDomain getDataDomain(){
  return dataDomain;
}

Fixed version (ground truth):
@Override public PathwayDataDomain getDataDomain(){
  return dataDomain;
}
Program: 58254
Project: 58254
Buggy source:
private void handleDataDomainSelection(int externalPickingID){
  HistoryNode historyNode=(HistoryNode)historyPath.getLastNode();
  if (historyNode != null) {
    for (int i=0; i < MAX_HISTORY_DATA_DOMAINS; i++) {
      String dataDomainType=historyNode.getDataDomainType();
      String interfaceType=historyNode.getInterfaceType(externalPickingID);
      if (interfaceType == null) {
        if (historyPath.getPrecedingNode(historyNode) != null && historyPath.getPrecedingNode(historyNode).size() < 1)         break;
        historyNode=(HistoryNode)historyPath.getPrecedingNode(historyNode).get(0);
        if (historyNode == null)         break;
        continue;
      }
      lastSelectedDataDomainNode=historyNode;
      if (interfaceType.contains("String_Node_Str")) {
        addView(historyNode,interfaceType);
      }
 else       triggerAnalyticalInterface(dataDomainType,interfaceType);
      if (!interfaceType.equals("String_Node_Str"))       closeBrowserOverlay();
      if (interfaceType.equals("String_Node_Str")) {
        currentGuidanceNode=(GuidanceNode)guidancePath.getFollowingNodes(currentGuidanceNode).get(0);
      }
      currentGuidanceNode.setInterfaceVisited(interfaceType);
      break;
    }
  }
}

Fixed version (ground truth):
private void handleDataDomainSelection(int externalPickingID){
  HistoryNode historyNode=(HistoryNode)historyPath.getLastNode();
  if (historyNode != null) {
    for (int i=0; i < MAX_HISTORY_DATA_DOMAINS; i++) {
      String dataDomainType=historyNode.getDataDomainType();
      String interfaceType=historyNode.getInterfaceType(externalPickingID);
      if (interfaceType == null) {
        if (historyPath.getPrecedingNode(historyNode) != null && historyPath.getPrecedingNode(historyNode).size() < 1)         break;
        historyNode=(HistoryNode)historyPath.getPrecedingNode(historyNode).get(0);
        if (historyNode == null)         break;
        continue;
      }
      lastSelectedDataDomainNode=historyNode;
      if (interfaceType.contains("String_Node_Str")) {
        addView(historyNode,interfaceType);
      }
 else       triggerAnalyticalInterface(dataDomainType,interfaceType);
      if (!interfaceType.equals("String_Node_Str"))       closeBrowserOverlay();
      if (interfaceType.equals("String_Node_Str") || (interfaceType.equals("String_Node_Str") && dataDomainType.equals("String_Node_Str"))) {
        currentGuidanceNode=(GuidanceNode)guidancePath.getFollowingNodes(currentGuidanceNode).get(0);
      }
      currentGuidanceNode.setInterfaceVisited(interfaceType);
      break;
    }
  }
}
Program: 58256
Project: 58256
Buggy source:
/** 
 * checks if the given views should be ignored by the toolbar. this means that the toolbar should stay as it is, e.g. when activating a help view like histogramm
 * @param viewIDs list of view-ids as used by IViewManager
 * @return true if the views should be ignored by the toolbar, false otherwise
 */
public boolean isIgnored(List<IView> views){
  boolean ignored=false;
  for (  IView view : views) {
    ToolBarInfo info;
    try {
      info=toolBarInfos.get(view.getViewType());
      if (info != null) {
        ignored|=info.ignored;
      }
    }
 catch (    IllegalArgumentException ex) {
      ignored=true;
    }
  }
  return ignored;
}

Fixed version (ground truth):
/** 
 * checks if the given views should be ignored by the toolbar. this means that the toolbar should stay as it is, e.g. when activating a help view like histogramm
 * @param viewIDs list of view-ids as used by IViewManager
 * @return true if the views should be ignored by the toolbar, false otherwise
 */
public boolean isIgnored(List<IView> views){
  boolean ignored=false;
  for (  IView view : views) {
    if (view == null)     return ignored;
    ToolBarInfo info;
    try {
      info=toolBarInfos.get(view.getViewType());
      if (info != null) {
        ignored|=info.ignored;
      }
    }
 catch (    IllegalArgumentException ex) {
      ignored=true;
    }
catch (    NullPointerException ex) {
      ex.printStackTrace();
    }
  }
  return ignored;
}
Program: 58257
Project: 58257
Buggy source:
public ContentSelectionManager(EIDType idType){
  super(idType);
}

Fixed version (ground truth):
public ContentSelectionManager(IDType idType){
  super(idType);
}
Program: 58258
Project: 58258
Buggy source:
/** 
 * Returns the type which the representation belongs to. Examples are gene expression values, expression experiments. See   {@link EIDType} for details.
 * @return the type of the id
 */
public EIDType getIDType(){
  return idType;
}

Fixed version (ground truth):
/** 
 * Returns the type which the representation belongs to. Examples are gene expression values, expression experiments. See   {@link EIDType} for details.
 * @return the type of the id
 */
public IDType getIDType(){
  return idType;
}
Program: 58259
Project: 58259
Buggy source:
/** 
 * Constructor. Use this constructor for a list of points
 * @param containingViewID the unique id of the view
 * @param remoteViewID the unique id of the view the coordinates are related to
 * @param points3d the list of connection points
 */
public SelectedElementRep(EIDType idType,final int sourceViewID,int remoteViewID,final ArrayList<Vec3f> points3d){
  this.idType=idType;
  this.sourceViewID=sourceViewID;
  this.remoteViewID=remoteViewID;
  this.points=points3d;
}

Fixed version (ground truth):
/** 
 * Constructor. Use this constructor for a list of points
 * @param containingViewID the unique id of the view
 * @param remoteViewID the unique id of the view the coordinates are related to
 * @param points3d the list of connection points
 */
public SelectedElementRep(IDType idType,final int sourceViewID,int remoteViewID,final ArrayList<Vec3f> points3d){
  this.idType=idType;
  this.sourceViewID=sourceViewID;
  this.remoteViewID=remoteViewID;
  this.points=points3d;
}
Program: 58260
Project: 58260
Buggy source:
/** 
 * Constructor
 */
public SelectionManager(EIDType idType){
  this.iDType=idType;
  selectionTypes=new ArrayList<SelectionType>(SelectionType.getDefaultTypes());
  hashSelectionTypes=new HashMap<SelectionType,HashMap<Integer,Integer>>();
  hashConnectionToElementID=new HashMap<Integer,ArrayList<Integer>>();
  deltaBlackList=new HashMap<SelectionType,Boolean>(2);
  selectionDelta=new SelectionDelta(iDType);
  for (  SelectionType selectionType : selectionTypes) {
    if (selectionType != SelectionType.NORMAL)     hashSelectionTypes.put(selectionType,new HashMap<Integer,Integer>());
  }
  registerEventListeners();
}

Fixed version (ground truth):
/** 
 * Constructor
 */
public SelectionManager(IDType idType){
  this.iDType=idType;
  selectionTypes=new ArrayList<SelectionType>(SelectionType.getDefaultTypes());
  hashSelectionTypes=new HashMap<SelectionType,HashMap<Integer,Integer>>();
  hashConnectionToElementID=new HashMap<Integer,ArrayList<Integer>>();
  deltaBlackList=new HashMap<SelectionType,Boolean>(2);
  selectionDelta=new SelectionDelta(iDType);
  for (  SelectionType selectionType : selectionTypes) {
    if (selectionType != SelectionType.NORMAL)     hashSelectionTypes.put(selectionType,new HashMap<Integer,Integer>());
  }
  registerEventListeners();
}
Program: 58261
Project: 58261
Buggy source:
/** 
 * Returns the id type the storage is handling.
 * @return
 */
public EIDType getIDType(){
  return iDType;
}

Fixed version (ground truth):
/** 
 * Returns the id type the storage is handling.
 * @return
 */
public IDType getIDType(){
  return iDType;
}
Program: 58262
Project: 58262
Buggy source:
public StorageSelectionManager(EIDType idType){
  super(idType);
}

Fixed version (ground truth):
public StorageSelectionManager(IDType idType){
  super(idType);
}
Program: 58263
Project: 58263
Buggy source:
/** 
 * Constructor
 */
public VABasedSelectionManager(EIDType idType){
  super(idType);
}

Fixed version (ground truth):
/** 
 * Constructor
 */
public VABasedSelectionManager(IDType idType){
  super(idType);
}
Program: 58264
Project: 58264
Buggy source:
public ContentVADelta(ContentVAType vaType,EIDType idType,EIDType secondaryIDType){
  super(vaType,idType,secondaryIDType);
}

Fixed version (ground truth):
public ContentVADelta(ContentVAType vaType,IDType idType,IDType secondaryIDType){
  super(vaType,idType,secondaryIDType);
}
Program: 58265
Project: 58265
Buggy source:
/** 
 * Convert method. TODO: only DAVID_2_EXPRESSION_INDEX is supported ATM
 * @param < T > the type of the delta, an implementation of  {@link IDelta}
 * @param targetType the target type of the id conversion
 * @param delta the src delta containing the src type
 * @return the new delta, which can be longer than the original
 */
@SuppressWarnings("String_Node_Str") public static <T extends IDelta>T convertDelta(EIDType targetType,T delta){
  T newDelta=null;
  if (delta instanceof SelectionDelta) {
    newDelta=(T)new SelectionDelta(targetType,delta.getIDType());
  }
 else   if (delta instanceof VirtualArrayDelta) {
    VirtualArrayDelta vaDelta=(VirtualArrayDelta)delta;
    VirtualArrayDelta newVADelta=vaDelta.getInstance();
    newVADelta.setIDType(targetType);
    newVADelta.setVAType(vaDelta.getVAType());
    newDelta=(T)newVADelta;
  }
 else   throw new IllegalStateException("String_Node_Str");
  for (  Object tempItem : delta) {
    IDeltaItem item=(IDeltaItem)tempItem;
    Set<Integer> setIDs=GeneralManager.get().getIDMappingManager().getIDAsSet(delta.getIDType(),targetType,item.getPrimaryID());
    if (setIDs == null) {
      continue;
    }
    for (    Integer id : setIDs) {
      IDeltaItem clonedItem=(IDeltaItem)item.clone();
      clonedItem.setPrimaryID(id);
      clonedItem.setSecondaryID(item.getPrimaryID());
      newDelta.add(clonedItem);
    }
  }
  return newDelta;
}

Fixed version (ground truth):
/** 
 * Convert method. TODO: only DAVID_2_EXPRESSION_INDEX is supported ATM
 * @param < T > the type of the delta, an implementation of  {@link IDelta}
 * @param targetType the target type of the id conversion
 * @param delta the src delta containing the src type
 * @return the new delta, which can be longer than the original
 */
@SuppressWarnings("String_Node_Str") public static <T extends IDelta>T convertDelta(IDType targetType,T delta){
  T newDelta=null;
  if (delta instanceof SelectionDelta) {
    newDelta=(T)new SelectionDelta(targetType,delta.getIDType());
  }
 else   if (delta instanceof VirtualArrayDelta) {
    VirtualArrayDelta vaDelta=(VirtualArrayDelta)delta;
    VirtualArrayDelta newVADelta=vaDelta.getInstance();
    newVADelta.setIDType(targetType);
    newVADelta.setVAType(vaDelta.getVAType());
    newDelta=(T)newVADelta;
  }
 else   throw new IllegalStateException("String_Node_Str");
  for (  Object tempItem : delta) {
    IDeltaItem item=(IDeltaItem)tempItem;
    Set<Integer> setIDs=GeneralManager.get().getIDMappingManager().getIDAsSet(delta.getIDType(),targetType,item.getPrimaryID());
    if (setIDs == null) {
      continue;
    }
    for (    Integer id : setIDs) {
      IDeltaItem clonedItem=(IDeltaItem)item.clone();
      clonedItem.setPrimaryID(id);
      clonedItem.setSecondaryID(item.getPrimaryID());
      newDelta.add(clonedItem);
    }
  }
  return newDelta;
}
Program: 58266
Project: 58266
Buggy source:
/** 
 * Get the type of the id, which has to be listed in   {@link EIDType}
 * @return the type of the id
 */
public EIDType getIDType();

Fixed version (ground truth):
/** 
 * Get the type of the id, which has to be listed in   {@link EIDType}
 * @return the type of the id
 */
public IDType getIDType();
Program: 58267
Project: 58267
Buggy source:
/** 
 * Set the id type of the delta 
 */
public void setIDType(EIDType idType);

Fixed version (ground truth):
/** 
 * Set the id type of the delta 
 */
public void setIDType(IDType idType);
Program: 58268
Project: 58268
Buggy source:
/** 
 * Get the type of the secondary ID, which has to be listed in   {@link EIDType}. Returns null if no internal ID type was set
 * @return the type of the internal id
 */
public EIDType getSecondaryIDType();

Fixed version (ground truth):
/** 
 * Get the type of the secondary ID, which has to be listed in   {@link EIDType}. Returns null if no internal ID type was set
 * @return the type of the internal id
 */
public IDType getSecondaryIDType();
Program: 58269
Project: 58269
Buggy source:
@Override public EIDType getIDType(){
  return idType;
}

Fixed version (ground truth):
@Override public IDType getIDType(){
  return idType;
}
Program: 58270
Project: 58270
Buggy source:
public void setIDType(EIDType idType){
  this.idType=idType;
}

Fixed version (ground truth):
public void setIDType(IDType idType){
  this.idType=idType;
}
Program: 58271
Project: 58271
Buggy source:
public void setSecondaryIDType(EIDType secondaryIDType){
  this.secondaryIDType=secondaryIDType;
}

Fixed version (ground truth):
public void setSecondaryIDType(IDType secondaryIDType){
  this.secondaryIDType=secondaryIDType;
}
Program: 58272
Project: 58272
Buggy source:
@Override public EIDType getSecondaryIDType(){
  return secondaryIDType;
}

Fixed version (ground truth):
@Override public IDType getSecondaryIDType(){
  return secondaryIDType;
}
Program: 58273
Project: 58273
Buggy source:
public SelectionDelta(EIDType idType,EIDType internalIDType){
  this(idType);
  this.secondaryIDType=internalIDType;
}

Fixed version (ground truth):
public SelectionDelta(IDType idType,IDType internalIDType){
  this(idType);
  this.secondaryIDType=internalIDType;
}
Program: 58274
Project: 58274
Buggy source:
public StorageVADelta(StorageVAType vaType,EIDType idType,EIDType secondaryIDType){
  super(vaType,idType,secondaryIDType);
}

Fixed version (ground truth):
public StorageVADelta(StorageVAType vaType,IDType idType,IDType secondaryIDType){
  super(vaType,idType,secondaryIDType);
}
Program: 58276
Project: 58276
Buggy source:
/** 
 * Unregister view from event system. Remove view from GL render loop.
 */
public void removeView(AGLView glEventListener){
  if (glEventListener != null) {
    glEventListener.destroy();
  }
}

Fixed version (ground truth):
/** 
 * Unregister view from event system. Remove view from GL render loop.
 */
public void removeView(AGLView glEventListener){
}
Program: 58278
Project: 58278
Buggy source:
/** 
 * Sets the attributes of this command according to the given serialized form. Inherited classes should override this method to set the view depended attributes.
 * @param serView serialized form of the view to create
 */
public void setAttributesFromSerializedForm(ASerializedView serView){
  setViewFrustum(serView.getViewFrustum());
}

Fixed version (ground truth):
/** 
 * Sets the attributes of this command according to the given serialized form. Inherited classes should override this method to set the view depended attributes.
 * @param serView serialized form of the view to create
 */
public void setAttributesFromSerializedForm(ASerializedView serView){
  setViewFrustum(serView.getViewFrustum());
  dataDomainType=serView.getDataDomainType();
}
Program: 58279
Project: 58279
Buggy source:
public void setAttributes(final EProjectionMode eProjectionMode,final float fLeft,final float fRight,final float fBottom,final float fTop,final float fNear,final float fFar,final int iParentCanvasID,final float fCamOriginX,final float fCamOriginY,final float fCamOriginZ,final float fCamRotationX,final float fCamRotationY,final float fCamRotationZ,final float fCamRotationAngle){
  setAttributes(eProjectionMode,fLeft,fRight,fBottom,fTop,fNear,fFar,iParentCanvasID);
  cameraOrigin.set(fCamOriginX,fCamOriginY,fCamOriginZ);
  cameraRotation.set(new Vec3f(fCamRotationX,fCamRotationY,fCamRotationZ),(float)Math.toRadians(fCamRotationAngle));
}

Fixed version (ground truth):
/** 
 * Set attributes of the view, including camera parameters.
 * @param eProjectionMode
 * @param fLeft
 * @param fRight
 * @param fBottom
 * @param fTop
 * @param fNear
 * @param fFar
 * @param iParentCanvasID
 * @param fCamOriginX
 * @param fCamOriginY
 * @param fCamOriginZ
 * @param fCamRotationX
 * @param fCamRotationY
 * @param fCamRotationZ
 * @param fCamRotationAngle
 */
public void setAttributes(final EProjectionMode eProjectionMode,final float fLeft,final float fRight,final float fBottom,final float fTop,final float fNear,final float fFar,final int iParentCanvasID,final float fCamOriginX,final float fCamOriginY,final float fCamOriginZ,final float fCamRotationX,final float fCamRotationY,final float fCamRotationZ,final float fCamRotationAngle){
  setAttributes(eProjectionMode,fLeft,fRight,fBottom,fTop,fNear,fFar,iParentCanvasID);
  cameraOrigin.set(fCamOriginX,fCamOriginY,fCamOriginZ);
  cameraRotation.set(new Vec3f(fCamRotationX,fCamRotationY,fCamRotationZ),(float)Math.toRadians(fCamRotationAngle));
}
Program: 58280
Project: 58280
Buggy source:
@Override public void doCommand(){
  IViewManager glCanvasManager=generalManager.getViewGLCanvasManager();
  if (iExternalID != -1 && iParentContainerId != -1) {
    iParentContainerId=generalManager.getIDManager().getInternalFromExternalID(iParentContainerId);
  }
  GLCaleydoCanvas glCanvas=generalManager.getViewGLCanvasManager().getCanvas(iParentContainerId);
  createdObject=glCanvasManager.createGLView(viewID,glCanvas,sLabel,viewFrustum);
  if (iExternalID != -1) {
    generalManager.getIDManager().mapInternalToExternalID(createdObject.getID(),iExternalID);
  }
  createdObject.getViewCamera().setCameraPosition(cameraOrigin);
  createdObject.getViewCamera().setCameraRotation(cameraRotation);
  commandManager.runDoCommand(this);
}

Fixed version (ground truth):
@Override public void doCommand(){
  IViewManager glCanvasManager=generalManager.getViewGLCanvasManager();
  if (iExternalID != -1 && iParentContainerId != -1) {
    iParentContainerId=generalManager.getIDManager().getInternalFromExternalID(iParentContainerId);
  }
  GLCaleydoCanvas glCanvas=generalManager.getViewGLCanvasManager().getCanvas(iParentContainerId);
  createdObject=glCanvasManager.createGLView(viewID,glCanvas,sLabel,viewFrustum);
  if (iExternalID != -1) {
    generalManager.getIDManager().mapInternalToExternalID(createdObject.getID(),iExternalID);
  }
  createdObject.getViewCamera().setCameraPosition(cameraOrigin);
  createdObject.getViewCamera().setCameraRotation(cameraRotation);
  if (createdObject instanceof IDataDomainBasedView<?>) {
    if (dataDomainType == null)     throw new IllegalStateException("String_Node_Str" + viewID);
    IDataDomain dataDomain=DataDomainManager.getInstance().getDataDomain(dataDomainType);
    IDataDomainBasedView<IDataDomain> dataDomainBasedView=(IDataDomainBasedView<IDataDomain>)createdObject;
    dataDomainBasedView.setDataDomain(dataDomain);
  }
  createdObject.initialize();
  commandManager.runDoCommand(this);
}
Program: 58281
Project: 58281
Buggy source:
@Override public ContentData getContentData(ContentVAType vaType){
  return hashContentData.get(vaType);
}

Fixed version (ground truth):
@Override public ContentData getContentData(ContentVAType vaType){
  ContentData contentData=hashContentData.get(vaType);
  if (contentData == null) {
    contentData=createContentData(vaType);
    hashContentData.put(vaType,contentData);
  }
  return contentData;
}
Program: 58282
Project: 58282
Buggy source:
public void setStorageVA(StorageVAType vaType,StorageVirtualArray virtualArray){
  StorageData storageData=hashStorageData.get(vaType);
  if (storageData == null)   storageData=defaultStorageData.clone();
  hashStorageData.put(vaType,storageData);
}

Fixed version (ground truth):
public void setStorageVA(StorageVAType vaType,StorageVirtualArray virtualArray){
  StorageData storageData=hashStorageData.get(vaType);
  if (storageData == null)   storageData=defaultStorageData.clone();
  storageData.setStorageVA(virtualArray);
  hashStorageData.put(vaType,storageData);
}
Program: 58283
Project: 58283
Buggy source:
public void replaceContentVA(EIDCategory idCategory,ContentVAType vaType,ContentVirtualArray virtualArray);

Fixed version (ground truth):
/** 
 * Replaces the content virtua
 * @param dataDomainType
 * @param vaType
 * @param virtualArray
 */
public void replaceContentVA(String dataDomainType,ContentVAType vaType,ContentVirtualArray virtualArray);
Program: 58284
Project: 58284
Buggy source:
/** 
 * Replaces the virtual array of that id category with the virtual array specified
 * @param idCategory the type of id
 * @param the type of the virtual array
 * @param virtualArray the new virtual array
 */
public void replaceStorageVA(EIDCategory idCategory,StorageVAType vaType,StorageVirtualArray virtualArray);

Fixed version (ground truth):
/** 
 * Replaces the storage virtual array with the virtual array specified, if the dataDomain matches. If the dataDomain doesn't match, the method  {@link #handleContentVAUpdateForForeignDataDomain(int,String,ContentVAType,ContentVirtualArray)} iscalled.
 * @param idCategory the type of id
 * @param the type of the virtual array
 * @param virtualArray the new virtual array
 */
public void replaceStorageVA(String dataDomainType,StorageVAType vaType,StorageVirtualArray virtualArray);
Program: 58285
Project: 58285
Buggy source:
/** 
 * Returns clustered Tree for experiments
 * @return Tree
 */
public Tree<ClusterNode> getStorageTree();

Fixed version (ground truth):
/** 
 * Returns clustered Tree for experiments
 * @return Tree
 */
@Deprecated public Tree<ClusterNode> getStorageTree();
Program: 58286
Project: 58286
Buggy source:
public ContentGroupList getContentGroupList();

Fixed version (ground truth):
@Deprecated public ContentGroupList getContentGroupList();
Program: 58287
Project: 58287
Buggy source:
public ContentVirtualArray getContentVA(ContentVAType vaType);

Fixed version (ground truth):
@Deprecated public ContentVirtualArray getContentVA(ContentVAType vaType);
Program: 58288
Project: 58288
Buggy source:
/** 
 * Returns the root node of the storage tree
 * @return
 */
public ClusterNode getStorageTreeRoot();

Fixed version (ground truth):
/** 
 * Returns the root node of the storage tree
 * @return
 */
@Deprecated public ClusterNode getStorageTreeRoot();
Program: 58289
Project: 58289
Buggy source:
/** 
 * Set the root of the storage tree. This is only necessary if you want the root to be different from the original root of the tree (which is typically the case in meta-sets)
 * @param storageTreeRoot the root node of the storage tree
 */
public void setStorageTreeRoot(ClusterNode storageTreeRoot);

Fixed version (ground truth):
/** 
 * Set the root of the storage tree. This is only necessary if you want the root to be different from the original root of the tree (which is typically the case in meta-sets)
 * @param storageTreeRoot the root node of the storage tree
 */
@Deprecated public void setStorageTreeRoot(ClusterNode storageTreeRoot);
Program: 58290
Project: 58290
Buggy source:
public StorageGroupList getStorageGroupList();

Fixed version (ground truth):
@Deprecated public StorageGroupList getStorageGroupList();
Program: 58291
Project: 58291
Buggy source:
/** 
 * Sets clustered Tree for experiments
 * @param Tree
 */
public void setStorageTree(Tree<ClusterNode> clusteredTree);

Fixed version (ground truth):
/** 
 * Sets clustered Tree for experiments
 * @param Tree
 */
@Deprecated public void setStorageTree(Tree<ClusterNode> clusteredTree);
Program: 58292
Project: 58292
Buggy source:
/** 
 * Returns clustered Tree for genes
 * @return Tree
 */
public Tree<ClusterNode> getContentTree();

Fixed version (ground truth):
/** 
 * Returns clustered Tree for genes
 * @return Tree
 */
@Deprecated public Tree<ClusterNode> getContentTree();
Program: 58293
Project: 58293
Buggy source:
public void setStorageGroupList(StorageGroupList groupList);

Fixed version (ground truth):
@Deprecated public void setStorageGroupList(StorageGroupList groupList);
Program: 58294
Project: 58294
Buggy source:
/** 
 * Creates a virtual array based on the list of indices supplied for the storages in the set, aka content
 * @param iAlSelections a list of indices
 * @return the id of the newly created VA
 */
public StorageVirtualArray getStorageVA(StorageVAType vaType);

Fixed version (ground truth):
/** 
 * Creates a virtual array based on the list of indices supplied for the storages in the set, aka content
 * @param iAlSelections a list of indices
 * @return the id of the newly created VA
 */
@Deprecated public StorageVirtualArray getStorageVA(StorageVAType vaType);
Program: 58295
Project: 58295
Buggy source:
/** 
 * Sets clustered Tree for genes
 * @param Tree
 */
public void setContentTree(Tree<ClusterNode> clusteredTree);

Fixed version (ground truth):
/** 
 * Sets clustered Tree for genes
 * @param Tree
 */
@Deprecated public void setContentTree(Tree<ClusterNode> clusteredTree);
Program: 58296
Project: 58296
Buggy source:
public void setContentGroupList(ContentGroupList groupList);

Fixed version (ground truth):
@Deprecated public void setContentGroupList(ContentGroupList groupList);
Program: 58297
Project: 58297
Buggy source:
private void runStorageClustering(AClusterer clusterer,ClusterState clusterState,ClusterResult result,int progressBarOffset,int progressBarMulti){
  clusterer.setClusterState(clusterState);
  TempResult tempResult=clusterer.getSortedVA(set,clusterState,progressBarOffset,progressBarMulti);
  result.storageResult=new StorageData();
  result.storageResult.storageVA=new StorageVirtualArray(clusterState.getStorageVAType(),tempResult.indices);
  result.storageResult.storageClusterSizes=tempResult.clusterSizes;
  result.storageResult.storageSampleElements=tempResult.sampleElements;
  result.storageResult.storageTree=tempResult.tree;
}

Fixed version (ground truth):
private void runStorageClustering(AClusterer clusterer,ClusterState clusterState,ClusterResult result,int progressBarOffset,int progressBarMulti){
  clusterer.setClusterState(clusterState);
  TempResult tempResult=clusterer.getSortedVA(set,clusterState,progressBarOffset,progressBarMulti);
  result.storageResult=new StorageData();
  result.storageResult.storageVA=new StorageVirtualArray(clusterState.getStorageVAType(),tempResult.indices);
  result.storageResult.storageClusterSizes=tempResult.clusterSizes;
  result.storageResult.storageSampleElements=tempResult.sampleElements;
  if (tempResult.tree == null) {
    result.storageResult.setDefaultTree(true);
  }
 else {
    result.storageResult.storageTree=tempResult.tree;
    result.storageResult.setDefaultTree(false);
  }
}
Program: 58298
Project: 58298
Buggy source:
void finish(){
  if (contentVA != null && contentClusterSizes != null && contentSampleElements != null) {
    ContentGroupList contentGroupList=new ContentGroupList();
    int cnt=0;
    contentTree=new Tree<ClusterNode>();
    contentTree.setUseDefaultComparator(false);
    int clusterNr=0;
    ClusterNode root=new ClusterNode(contentTree,"String_Node_Str",clusterNr++,true,-1);
    contentTree.setRootNode(root);
    ClusterNode node;
    int from=0;
    int to=0;
    for (    Integer clusterSize : contentClusterSizes) {
      node=new ClusterNode(contentTree,"String_Node_Str" + clusterNr,clusterNr++,true,-1);
      Group temp=new Group(clusterSize,false,contentSampleElements.get(cnt),SelectionType.NORMAL,node);
      contentTree.addChild(root,node);
      contentGroupList.append(temp);
      cnt++;
      to+=clusterSize;
      ClusterNode leaf;
      for (int vaIndex=from; vaIndex < to; vaIndex++) {
        Integer contentID=contentVA.get(vaIndex);
        leaf=new ClusterNode(contentTree,"String_Node_Str" + contentID,clusterNr++,true,contentID);
        contentTree.addChild(node,leaf);
      }
      from=to;
    }
    contentVA.setGroupList(contentGroupList);
  }
 else   if (contentVA != null && contentTree != null) {
    contentVA.buildNewGroupList(contentTree.getRoot().getChildren());
  }
  contentTree.setUseDefaultComparator(false);
}

Fixed version (ground truth):
void finish(){
  if (contentVA != null && contentClusterSizes != null && contentSampleElements != null) {
    isPartitionallyClustered=true;
    ContentGroupList contentGroupList=new ContentGroupList();
    int cnt=0;
    contentTree=new Tree<ClusterNode>();
    contentTree.setUseDefaultComparator(false);
    int clusterNr=0;
    ClusterNode root=new ClusterNode(contentTree,"String_Node_Str",clusterNr++,true,-1);
    contentTree.setRootNode(root);
    ClusterNode node;
    int from=0;
    int to=0;
    for (    Integer clusterSize : contentClusterSizes) {
      node=new ClusterNode(contentTree,"String_Node_Str" + clusterNr,clusterNr++,true,-1);
      Group temp=new Group(clusterSize,false,contentSampleElements.get(cnt),SelectionType.NORMAL,node);
      contentTree.addChild(root,node);
      contentGroupList.append(temp);
      cnt++;
      to+=clusterSize;
      ClusterNode leaf;
      for (int vaIndex=from; vaIndex < to; vaIndex++) {
        Integer contentID=contentVA.get(vaIndex);
        leaf=new ClusterNode(contentTree,"String_Node_Str" + contentID,clusterNr++,true,contentID);
        contentTree.addChild(node,leaf);
      }
      from=to;
    }
    contentVA.setGroupList(contentGroupList);
  }
 else   if (contentVA != null && contentTree != null) {
    contentVA.buildNewGroupList(contentTree.getRoot().getChildren());
  }
  contentTree.setUseDefaultComparator(false);
}
Program: 58300
Project: 58300
Buggy source:
@Override public void initData(){
  super.initData();
  initHierarchy();
  calculateTextures();
  initPosCursorLevel1();
  if (bSkipLevel2 == false) {
    initPosCursorLevel2();
  }
  if (set.getContentTree() != null) {
    bGeneDendrogramActive=true;
    bGeneDendrogramRenderCut=false;
    bFirstStartGeneDendrogram=true;
    renderStyle.setWidthGeneDendrogram(1.6f);
  }
 else {
    bGeneDendrogramActive=false;
    bGeneDendrogramRenderCut=false;
  }
  if (set.getStorageTree() != null) {
    bExperimentDendrogramActive=true;
    bExperimentDendrogramRenderCut=false;
    bFirstStartExperimentDendrogram=true;
    renderStyle.setHeightExperimentDendrogram(1.45f);
  }
 else {
    bExperimentDendrogramActive=false;
    bExperimentDendrogramRenderCut=false;
  }
  if (bSkipLevel2 == false)   bRedrawTextures=true;
}

Fixed version (ground truth):
@Override public void initData(){
  super.initData();
  initHierarchy();
  calculateTextures();
  initPosCursorLevel1();
  if (bSkipLevel2 == false) {
    initPosCursorLevel2();
  }
  if (set.getContentTree() != null) {
    bGeneDendrogramActive=true;
    bGeneDendrogramRenderCut=false;
    bFirstStartGeneDendrogram=true;
    renderStyle.setWidthGeneDendrogram(1.6f);
  }
 else {
    bGeneDendrogramActive=false;
    bGeneDendrogramRenderCut=false;
  }
  if (!set.getStorageData(StorageVAType.STORAGE).isDefaultTree()) {
    bExperimentDendrogramActive=true;
    bExperimentDendrogramRenderCut=false;
    bFirstStartExperimentDendrogram=true;
    renderStyle.setHeightExperimentDendrogram(1.45f);
  }
 else {
    bExperimentDendrogramActive=false;
    bExperimentDendrogramRenderCut=false;
  }
  if (bSkipLevel2 == false)   bRedrawTextures=true;
}
Program: 58302
Project: 58302
Buggy source:
private void makeScreenshot(){
  Image screenshot=new Image(browser.getShell().getDisplay(),browser.getShell().getBounds());
  GC gc=new GC(browser.getShell().getDisplay());
  gc.copyArea(screenshot,730,150);
  gc.dispose();
  ImageLoader loader=new ImageLoader();
  loader.data=new ImageData[]{screenshot.getImageData()};
  loader.save(GeneralManager.CALEYDO_HOME_PATH + "String_Node_Str",SWT.IMAGE_PNG);
  screenshot.dispose();
}

Fixed version (ground truth):
private void makeScreenshot(){
  Image screenshot=new Image(browser.getShell().getDisplay(),browser.getShell().getBounds());
  GC gc=new GC(browser.getShell().getDisplay());
  gc.copyArea(screenshot,743,143);
  gc.dispose();
  ImageLoader loader=new ImageLoader();
  loader.data=new ImageData[]{screenshot.getImageData()};
  loader.save(GeneralManager.CALEYDO_HOME_PATH + "String_Node_Str",SWT.IMAGE_PNG);
  screenshot.dispose();
}
Program: 58303
Project: 58303
Buggy source:
private void triggerEvents(AEvent event,Collection<AEventListener<?>> listeners){
  if (listeners != null) {
    for (    AEventListener<?> receiver : listeners) {
      if (!(event.getDataDomainType() == null && receiver.isOnlyDataDomain()))       receiver.queueEvent(event);
    }
  }
}

Fixed version (ground truth):
private void triggerEvents(AEvent event,Collection<AEventListener<?>> listeners){
  if (listeners != null) {
    for (    AEventListener<?> receiver : listeners) {
      if (!(event.getDataDomainType() == null && receiver.isExclusiveDataDomain()))       receiver.queueEvent(event);
    }
  }
}
Program: 58306
Project: 58306
Buggy source:
/** 
 * Constructor.
 */
public GenomeHTMLBrowser(int iParentContainerID,String sLabel){
  super(iParentContainerID,sLabel,GeneralManager.get().getIDManager().createID(EManagedObjectType.VIEW_SWT_BROWSER_GENOME));
  urlGenerator=new URLGenerator();
  iAlDavidID=new ArrayList<Integer>();
}

Fixed version (ground truth):
/** 
 * Constructor.
 */
public GenomeHTMLBrowser(int iParentContainerID,String sLabel){
  super(iParentContainerID,sLabel,GeneralManager.get().getIDManager().createID(EManagedObjectType.VIEW_SWT_BROWSER_GENOME));
  registerEventListeners();
  urlGenerator=new URLGenerator();
  iAlDavidID=new ArrayList<Integer>();
}
Program: 58307
Project: 58307
Buggy source:
@Override public void registerEventListeners(){
  super.registerEventListeners();
  selectionUpdateListener=new SelectionUpdateListener();
  selectionUpdateListener.setHandler(this);
  eventPublisher.addListener(SelectionUpdateEvent.class,selectionUpdateListener);
}

Fixed version (ground truth):
@Override public void registerEventListeners(){
  super.registerEventListeners();
  selectionUpdateListener=new SelectionUpdateListener();
  selectionUpdateListener.setHandler(this);
  selectionUpdateListener.setExclusiveDataDomainType("String_Node_Str");
  eventPublisher.addListener(SelectionUpdateEvent.class,selectionUpdateListener);
}
Program: 58309
Project: 58309
Buggy source:
public void displayDetailLevels(){
  gl.glLineWidth(1);
}

Fixed version (ground truth):
public void displayDetailLevels(){
}
Program: 58310
Project: 58310
Buggy source:
public PoincareNode processEyeTrackerAction(float[] normedEyePosition,ArrayList<NodeSlerp> arSlerpActions){
  PoincareNode returnNode=null;
  if (this.distanceFromOrigin(normedEyePosition) < this.levelOfDetailLimits[0]) {
    returnNode=findNodeByCoordinate(normedEyePosition,10);
  }
  if (returnNode != null) {
    float[] emptyPoint=new float[2];
    emptyPoint[0]=0;
    emptyPoint[1]=0;
    arSlerpActions.add(new NodeSlerp(4,returnNode.getPosition(),emptyPoint));
  }
  return returnNode;
}

Fixed version (ground truth):
public PoincareNode processEyeTrackerAction(float[] normedEyePosition,ArrayList<NodeSlerp> arSlerpActions,boolean mouseControlled){
  PoincareNode returnNode=null;
  if (mouseControlled) {
    returnNode=findNodeByCoordinate(normedEyePosition,0);
    if (returnNode != null) {
      float[] emptyPoint=new float[2];
      emptyPoint[0]=0;
      emptyPoint[1]=0;
      arSlerpActions.add(new NodeSlerp(4,returnNode.getPosition(),emptyPoint));
    }
    return returnNode;
  }
  returnNode=findNodeByCoordinate(normedEyePosition,1f);
  if (this.eyeTrackableNodes.contains(returnNode)) {
    System.out.println("String_Node_Str" + normedEyePosition[0]);
    float[] emptyPoint=new float[2];
    emptyPoint[0]=0;
    emptyPoint[1]=0;
    arSlerpActions.add(new NodeSlerp(4,returnNode.getPosition(),emptyPoint));
    return returnNode;
  }
 else {
    return null;
  }
}
Program: 58313
Project: 58313
Buggy source:
/** 
 * /** Constructor.
 * @param glCanvas
 * @param sLabel
 * @param viewFrustum
 */
public GLDataWindows(GLCaleydoCanvas glCanvas,final String sLabel,final IViewFrustum viewFrustum){
  super(glCanvas,sLabel,viewFrustum,true);
  canvas=glCanvas;
  viewType=GLDataWindows.VIEW_ID;
  containedGLViews=new ArrayList<AGLView>();
  newViews=new ArrayList<ASerializedView>();
  defaultLayoutHotSpot=new float[2];
  layoutHotSpot=new float[2];
  selectedInput=inputType.MOUSE_ONLY;
  viewport=new int[4];
  pixelDimensions=new int[2];
  eyeTracker=new eyeTracking(true,"String_Node_Str");
  if (selectedInput == inputType.EYETRACKER_ONLY) {
    eyeTracker.startTracking();
  }
  viewSlerpStartPoint=new float[2];
  viewSlerpTargetPoint=new float[2];
  simpleSlerpActions=new ArrayList<SimpleSlerp>();
  zoomPointHyperbolic=new float[2];
  zoomPointHyperbolic[0]=1.5f;
  zoomPointHyperbolic[1]=1;
  zoomPointHeatmap=new float[2];
  zoomPointHeatmap[0]=0.5f;
  zoomPointHeatmap[1]=0.5f;
  zoomPointParCoord=new float[2];
  zoomPointParCoord[0]=0.5f;
  zoomPointParCoord[1]=1.5f;
  CmdDataCreateDataDomain cmd=new CmdDataCreateDataDomain(ECommandType.CREATE_DATA_DOMAIN);
  cmd.setAttributes("String_Node_Str");
  cmd.doCommand();
  getParentGLCanvas().getParentComposite().getDisplay().asyncExec(new Runnable(){
    @Override public void run(){
      upperLeftScreenPos=getParentGLCanvas().getParentComposite().toDisplay(1,1);
    }
  }
);
}

Fixed version (ground truth):
/** 
 * /** Constructor.
 * @param glCanvas
 * @param sLabel
 * @param viewFrustum
 */
public GLDataWindows(GLCaleydoCanvas glCanvas,final String sLabel,final IViewFrustum viewFrustum){
  super(glCanvas,sLabel,viewFrustum,true);
  canvas=glCanvas;
  viewType=GLDataWindows.VIEW_ID;
  containedGLViews=new ArrayList<AGLView>();
  newViews=new ArrayList<ASerializedView>();
  defaultLayoutHotSpot=new float[2];
  layoutHotSpot=new float[2];
  selectedInput=inputType.EYETRACKER_SIMULATED;
  viewport=new int[4];
  pixelDimensions=new int[2];
  eyeTracker=new eyeTracking(true,"String_Node_Str");
  if (selectedInput == inputType.EYETRACKER_ONLY) {
    eyeTracker.startTracking();
  }
  viewSlerpStartPoint=new float[2];
  viewSlerpTargetPoint=new float[2];
  simpleSlerpActions=new ArrayList<SimpleSlerp>();
  zoomPointHyperbolic=new float[2];
  zoomPointHyperbolic[0]=1.5f;
  zoomPointHyperbolic[1]=1;
  zoomPointHeatmap=new float[2];
  zoomPointHeatmap[0]=0.5f;
  zoomPointHeatmap[1]=0.5f;
  zoomPointParCoord=new float[2];
  zoomPointParCoord[0]=0.5f;
  zoomPointParCoord[1]=1.5f;
  CmdDataCreateDataDomain cmd=new CmdDataCreateDataDomain(ECommandType.CREATE_DATA_DOMAIN);
  cmd.setAttributes("String_Node_Str");
  cmd.doCommand();
  getParentGLCanvas().getParentComposite().getDisplay().asyncExec(new Runnable(){
    @Override public void run(){
      upperLeftScreenPos=getParentGLCanvas().getParentComposite().toDisplay(1,1);
    }
  }
);
}