nus-yam/ex-repair huggingface dataset:
Program: 122135
Project: 122135
Buggy source:
/** 
 * Remove a node to the diagram.
 * @param node
 */
public void removeNodeContainer(final NodeContainer nodeContainer){
  removeUniqueNodeName(nodeContainer.getNode().getUniqueName());
  nodes.remove(nodeContainer.getNode());
  Element toRemove=nodeContainer;
  List<Element> toAdd=new ArrayList<Element>();
  for (  Object o : elem) {
    if (o instanceof SubjobContainer) {
      SubjobContainer sjc=(SubjobContainer)o;
      if (sjc.deleteNodeContainer(nodeContainer)) {
        if (nodeContainer.getNode().isDesignSubjobStartNode()) {
          subjobContainers.remove(sjc);
          toAdd.addAll(sjc.getNodeContainers());
          toRemove=sjc;
          break;
        }
      }
    }
  }
  elem.remove(toRemove);
  elem.addAll(toAdd);
}

Fixed version (ground truth):
/** 
 * Remove a node to the diagram.
 * @param node
 */
public void removeNodeContainer(final NodeContainer nodeContainer){
  String uniqueName=nodeContainer.getNode().getUniqueName();
  removeUniqueNodeName(uniqueName);
  removeNode(uniqueName);
  nodes.remove(nodeContainer.getNode());
  Element toRemove=nodeContainer;
  List<Element> toAdd=new ArrayList<Element>();
  for (  Object o : elem) {
    if (o instanceof SubjobContainer) {
      SubjobContainer sjc=(SubjobContainer)o;
      if (sjc.deleteNodeContainer(uniqueName)) {
        if (nodeContainer.getNode().isDesignSubjobStartNode()) {
          subjobContainers.remove(sjc);
          toAdd.addAll(sjc.getNodeContainers());
          toRemove=sjc;
          break;
        }
      }
    }
  }
  elem.remove(toRemove);
  elem.addAll(toAdd);
}
Program: 122136
Project: 122136
Buggy source:
/** 
 * if delete a process item , should remove the problems of this .
 */
public void removeProblems4ProcessDeleted(){
  if (isActivate()) {
    Problems.removeProblemsByProcess(this,true);
    Problems.refreshProblemTreeView();
  }
}

Fixed version (ground truth):
/** 
 * if delete a process item , should remove the problems of this .
 */
@Override public void removeProblems4ProcessDeleted(){
  if (isActivate()) {
    Problems.removeProblemsByProcess(this,true);
    Problems.refreshProblemTreeView();
  }
}
Program: 122137
Project: 122137
Buggy source:
public boolean deleteNodeContainer(NodeContainer nodeContainer){
  if (getNodeContainers().contains(nodeContainer)) {
    getNodeContainers().remove(nodeContainer);
    updateSubjobContainer();
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * DOC ycbai Comment method "deleteNodeContainer".
 * @param nodeUniqueName
 * @return
 */
public boolean deleteNodeContainer(String nodeUniqueName){
  boolean deleted=false;
  if (nodeUniqueName == null) {
    return deleted;
  }
  List<NodeContainer> nContainers=getNodeContainers();
  Iterator<NodeContainer> nodeContainerIter=nContainers.iterator();
  while (nodeContainerIter.hasNext()) {
    NodeContainer nc=nodeContainerIter.next();
    if (nodeUniqueName.equals(nc.getNode().getUniqueName())) {
      nodeContainerIter.remove();
      deleted=true;
    }
  }
  if (deleted) {
    updateSubjobContainer();
  }
  return deleted;
}
Program: 122138
Project: 122138
Buggy source:
@Override public void undo(){
  if (connection == null) {
    return;
  }
  connection.disconnect();
  INodeConnector nodeConnectorSource, nodeConnectorTarget;
  nodeConnectorSource=connection.getSourceNodeConnector();
  if (nodeConnectorSource != null) {
    nodeConnectorSource.setCurLinkNbOutput(nodeConnectorSource.getCurLinkNbOutput() - 1);
  }
  nodeConnectorTarget=connection.getTargetNodeConnector();
  if (nodeConnectorTarget != null) {
    nodeConnectorTarget.setCurLinkNbInput(nodeConnectorTarget.getCurLinkNbInput() - 1);
  }
  if (newMetadata != null) {
    source.getMetadataList().remove(newMetadata);
  }
  ((Process)source.getProcess()).checkStartNodes();
  source.checkAndRefreshNode();
  target.checkAndRefreshNode();
  connection=null;
}

Fixed version (ground truth):
@Override public void undo(){
  if (connection == null) {
    return;
  }
  connection.disconnect();
  INodeConnector nodeConnectorSource, nodeConnectorTarget;
  nodeConnectorSource=connection.getSourceNodeConnector();
  if (nodeConnectorSource != null) {
    nodeConnectorSource.setCurLinkNbOutput(nodeConnectorSource.getCurLinkNbOutput() - 1);
  }
  nodeConnectorTarget=connection.getTargetNodeConnector();
  if (nodeConnectorTarget != null) {
    nodeConnectorTarget.setCurLinkNbInput(nodeConnectorTarget.getCurLinkNbInput() - 1);
  }
  if (newMetadata != null) {
    source.getMetadataList().remove(newMetadata);
  }
  ((Process)source.getProcess()).checkStartNodes();
  source.checkAndRefreshNode();
  target.checkAndRefreshNode();
}
Program: 122140
Project: 122140
Buggy source:
/** 
 * Remove a node to the diagram.
 * @param node
 */
public void removeNodeContainer(final NodeContainer nodeContainer){
  removeUniqueNodeName(nodeContainer.getNode().getUniqueName());
  nodes.remove(nodeContainer.getNode());
  Element toRemove=nodeContainer;
  List<Element> toAdd=new ArrayList<Element>();
  for (  Object o : elem) {
    if (o instanceof SubjobContainer) {
      SubjobContainer sjc=(SubjobContainer)o;
      if (sjc.deleteNodeContainer(nodeContainer)) {
        if (nodeContainer.getNode().isDesignSubjobStartNode()) {
          subjobContainers.remove(sjc);
          toAdd.addAll(sjc.getNodeContainers());
          toRemove=sjc;
          break;
        }
      }
    }
  }
  elem.remove(toRemove);
  elem.addAll(toAdd);
}

Fixed version (ground truth):
/** 
 * Remove a node to the diagram.
 * @param node
 */
public void removeNodeContainer(final NodeContainer nodeContainer){
  String uniqueName=nodeContainer.getNode().getUniqueName();
  removeUniqueNodeName(uniqueName);
  removeNode(uniqueName);
  Element toRemove=nodeContainer;
  List<Element> toAdd=new ArrayList<Element>();
  for (  Object o : elem) {
    if (o instanceof SubjobContainer) {
      SubjobContainer sjc=(SubjobContainer)o;
      if (sjc.deleteNodeContainer(uniqueName)) {
        if (nodeContainer.getNode().isDesignSubjobStartNode()) {
          subjobContainers.remove(sjc);
          toAdd.addAll(sjc.getNodeContainers());
          toRemove=sjc;
          break;
        }
      }
    }
  }
  elem.remove(toRemove);
  elem.addAll(toAdd);
}
Program: 122141
Project: 122141
Buggy source:
public boolean deleteNodeContainer(NodeContainer nodeContainer){
  if (getNodeContainers().contains(nodeContainer)) {
    getNodeContainers().remove(nodeContainer);
    updateSubjobContainer();
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * DOC ycbai Comment method "deleteNodeContainer".
 * @param nodeUniqueName
 * @return
 */
public boolean deleteNodeContainer(String nodeUniqueName){
  boolean deleted=false;
  if (nodeUniqueName == null) {
    return deleted;
  }
  List<NodeContainer> nContainers=getNodeContainers();
  Iterator<NodeContainer> nodeContainerIter=nContainers.iterator();
  while (nodeContainerIter.hasNext()) {
    NodeContainer nc=nodeContainerIter.next();
    if (nodeUniqueName.equals(nc.getNode().getUniqueName())) {
      nodeContainerIter.remove();
      deleted=true;
    }
  }
  if (deleted) {
    updateSubjobContainer();
  }
  return deleted;
}
Program: 122143
Project: 122143
Buggy source:
public void setConnectionsFormComposite(ConnectionFormComposite connectionsFormComposite){
  this.connectionsFormComposite=connectionsFormComposite;
  table.getTableViewerCreator().getSelectionHelper().addAfterSelectionListener(new ILineSelectionListener(){
    public void handle(    LineSelectionEvent e){
      ISelection sel=e.source.getTableViewer().getSelection();
      IStructuredSelection sel2=(IStructuredSelection)sel;
      ConnectionBean selected=(ConnectionBean)sel2.getFirstElement();
      setSelectedConnection(selected);
    }
  }
);
  if (!list.isEmpty()) {
    setSelectedConnection(list.get(0));
  }
}

Fixed version (ground truth):
public void setConnectionsFormComposite(ConnectionFormComposite connectionsFormComposite){
  this.connectionsFormComposite=connectionsFormComposite;
  table.getTableViewerCreator().getSelectionHelper().addAfterSelectionListener(new ILineSelectionListener(){
    public void handle(    LineSelectionEvent e){
      ISelection sel=e.source.getTableViewer().getSelection();
      IStructuredSelection sel2=(IStructuredSelection)sel;
      ConnectionBean selected=(ConnectionBean)sel2.getFirstElement();
      setSelectedConnection(selected);
    }
  }
);
  if (!list.isEmpty()) {
    for (int i=0; i < list.size(); i++) {
      setSelectedConnection(list.get(i));
    }
    setSelectedConnection(list.get(0));
  }
}
Program: 122144
Project: 122144
Buggy source:
public void init(TreeViewer viewer,IStructuredSelection selection){
  boolean canWork=!selection.isEmpty() && selection.size() == 1;
  if (canWork) {
    Object o=selection.getFirstElement();
    repositoryNode=(RepositoryNode)o;
switch (repositoryNode.getType()) {
case REPOSITORY_ELEMENT:
      if (repositoryNode.getObject().getRepositoryStatus() == ERepositoryStatus.DELETED) {
        canWork=false;
      }
    if (repositoryNode.getObjectType() != ERepositoryObjectType.METADATA_CONNECTIONS && repositoryNode.getObjectType() != ERepositoryObjectType.METADATA_CON_QUERY) {
      canWork=false;
    }
  break;
default :
canWork=false;
}
if (canWork && !isLastVersion(repositoryNode)) {
canWork=false;
}
}
setEnabled(canWork);
}

Fixed version (ground truth):
@Override public void init(TreeViewer viewer,IStructuredSelection selection){
  boolean canWork=!selection.isEmpty() && selection.size() == 1;
  if (canWork) {
    Object o=selection.getFirstElement();
    repositoryNode=(RepositoryNode)o;
switch (repositoryNode.getType()) {
case REPOSITORY_ELEMENT:
      if (repositoryNode.getObject().getRepositoryStatus() == ERepositoryStatus.DELETED) {
        canWork=false;
      }
    if (repositoryNode.getObjectType() != ERepositoryObjectType.METADATA_CONNECTIONS && repositoryNode.getObjectType() != ERepositoryObjectType.METADATA_CON_QUERY) {
      canWork=false;
    }
  break;
default :
canWork=false;
}
if (canWork && !isLastVersion(repositoryNode)) {
canWork=false;
}
}
setEnabled(canWork);
}
Program: 122146
Project: 122146
Buggy source:
public IAction getCreateBeanAction(boolean isToolbar){
  return new CreateRoutineAction(isToolbar);
}

Fixed version (ground truth):
@Override public IAction getCreateBeanAction(boolean isToolbar){
  return new CreateRoutineAction(isToolbar);
}
Program: 122147
Project: 122147
Buggy source:
public void switchToCurComponentSettingsView(){
  ComponentSettings.switchToCurComponentSettingsView();
}

Fixed version (ground truth):
@Override public void switchToCurComponentSettingsView(){
  ComponentSettings.switchToCurComponentSettingsView();
}
Program: 122148
Project: 122148
Buggy source:
public void renameJobLaunch(IRepositoryViewObject obj,String originalName){
  JobLaunchShortcutManager.renameJobLaunch(obj,originalName);
}

Fixed version (ground truth):
@Override public void renameJobLaunch(IRepositoryViewObject obj,String originalName){
  JobLaunchShortcutManager.renameJobLaunch(obj,originalName);
}
Program: 122149
Project: 122149
Buggy source:
public List<PaletteEntry> createJobletEtnry(){
  List<PaletteEntry> list=new ArrayList<PaletteEntry>();
  for (  AbstractProcessProvider provider : AbstractProcessProvider.findAllProcessProviders()) {
    list.addAll(provider.addJobletEntry());
  }
  return list;
}

Fixed version (ground truth):
@Override public List<PaletteEntry> createJobletEtnry(){
  List<PaletteEntry> list=new ArrayList<PaletteEntry>();
  for (  AbstractProcessProvider provider : AbstractProcessProvider.findAllProcessProviders()) {
    list.addAll(provider.addJobletEntry());
  }
  return list;
}
Program: 122150
Project: 122150
Buggy source:
public void setPaletteFilter(String filter){
  TalendEditorPaletteFactory.setFilter(filter);
}

Fixed version (ground truth):
@Override public void setPaletteFilter(String filter){
  TalendEditorPaletteFactory.setFilter(filter);
}
Program: 122151
Project: 122151
Buggy source:
public void addProblems(Problem problem){
  Problems.add(problem);
  Problems.refreshProblemTreeView();
}

Fixed version (ground truth):
@Override public void addProblems(Problem problem){
  Problems.add(problem);
  Problems.refreshProblemTreeView();
}
Program: 122152
Project: 122152
Buggy source:
public IProcess getCurrentProcess(){
  IEditorPart editor=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
  if (!(editor instanceof AbstractMultiPageTalendEditor)) {
    return null;
  }
  IProcess process=((AbstractMultiPageTalendEditor)editor).getProcess();
  return process;
}

Fixed version (ground truth):
@Override public IProcess getCurrentProcess(){
  IEditorPart editor=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
  if (!(editor instanceof AbstractMultiPageTalendEditor)) {
    return null;
  }
  IProcess process=((AbstractMultiPageTalendEditor)editor).getProcess();
  return process;
}
Program: 122153
Project: 122153
Buggy source:
public void switchToCurContextsView(){
  Contexts.switchToCurContextsView();
}

Fixed version (ground truth):
@Override public void switchToCurContextsView(){
  Contexts.switchToCurContextsView();
}
Program: 122154
Project: 122154
Buggy source:
public Item getProcessItem(MultiPageEditorPart talendEditor){
  ProcessEditorInput processEditorInput=(ProcessEditorInput)talendEditor.getEditorInput();
  Item item=processEditorInput.getItem();
  return item;
}

Fixed version (ground truth):
@Override public Item getProcessItem(MultiPageEditorPart talendEditor){
  ProcessEditorInput processEditorInput=(ProcessEditorInput)talendEditor.getEditorInput();
  Item item=processEditorInput.getItem();
  return item;
}
Program: 122155
Project: 122155
Buggy source:
public List<Map> getMaps(){
  if (repositoryValueUtils == null) {
    repositoryValueUtils=new RepositoryValueUtils();
  }
  List<Map> list=new ArrayList<Map>();
  list.add(repositoryValueUtils.getRepositoryConnectionItemMap());
  list.add(repositoryValueUtils.getRepositoryDBIdAndNameMap());
  return list;
}

Fixed version (ground truth):
@Override public List<Map> getMaps(){
  if (repositoryValueUtils == null) {
    repositoryValueUtils=new RepositoryValueUtils();
  }
  List<Map> list=new ArrayList<Map>();
  list.add(repositoryValueUtils.getRepositoryConnectionItemMap());
  list.add(repositoryValueUtils.getRepositoryDBIdAndNameMap());
  return list;
}
Program: 122156
Project: 122156
Buggy source:
public INode getRefrenceNode(String componentName){
  if (componentName == null) {
    return null;
  }
  IComponentsFactory compFac=CorePlugin.getDefault().getRepositoryService().getComponentsFactory();
  IComponent salesforceComponent=compFac.get(componentName);
  return new DataNode(salesforceComponent,componentName);
}

Fixed version (ground truth):
@Override public INode getRefrenceNode(String componentName){
  if (componentName == null) {
    return null;
  }
  IComponentsFactory compFac=CorePlugin.getDefault().getRepositoryService().getComponentsFactory();
  IComponent salesforceComponent=compFac.get(componentName);
  return new DataNode(salesforceComponent,componentName);
}
Program: 122157
Project: 122157
Buggy source:
public boolean isTalendEditor(IEditorPart activeEditor){
  if (activeEditor == null) {
    return false;
  }
  return activeEditor.getSite().getId().equals(MultiPageTalendEditor.ID);
}

Fixed version (ground truth):
@Override public boolean isTalendEditor(IEditorPart activeEditor){
  if (activeEditor == null) {
    return false;
  }
  return activeEditor.getSite().getId().equals(MultiPageTalendEditor.ID);
}
Program: 122158
Project: 122158
Buggy source:
public IConnection getConnection(List<? extends IConnection> connections,IMetadataTable table){
  return TracesConnectionUtils.getConnection(connections,table);
}

Fixed version (ground truth):
@Override public IConnection getConnection(List<? extends IConnection> connections,IMetadataTable table){
  return TracesConnectionUtils.getConnection(connections,table);
}
Program: 122159
Project: 122159
Buggy source:
public IProcess getProcessFromProcessItem(ProcessItem processItem,boolean loadScreenshots){
  Process process=null;
  process=new Process(processItem.getProperty());
  process.loadXmlFile(loadScreenshots);
  return process;
}

Fixed version (ground truth):
@Override public IProcess getProcessFromProcessItem(ProcessItem processItem,boolean loadScreenshots){
  Process process=null;
  process=new Process(processItem.getProperty());
  process.loadXmlFile(loadScreenshots);
  return process;
}
Program: 122160
Project: 122160
Buggy source:
public boolean isDummyComponent(IComponent component){
  if (component == null) {
    return false;
  }
  if (component instanceof DummyComponent) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean isDummyComponent(IComponent component){
  if (component == null) {
    return false;
  }
  if (component instanceof DummyComponent) {
    return true;
  }
  return false;
}
Program: 122161
Project: 122161
Buggy source:
public void reloadParamFromProjectSettings(ParametersType processType,String paramName){
  if (EParameterName.STATANDLOG_USE_PROJECT_SETTINGS.getName().equals(paramName)) {
    ProjectSettingManager.reloadStatsAndLogFromProjectSettings(processType,ProjectManager.getInstance().getCurrentProject());
  }
 else   if (EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS.getName().equals(paramName)) {
    ProjectSettingManager.reloadImplicitValuesFromProjectSettings(processType,ProjectManager.getInstance().getCurrentProject());
  }
}

Fixed version (ground truth):
@Override public void reloadParamFromProjectSettings(ParametersType processType,String paramName){
  if (EParameterName.STATANDLOG_USE_PROJECT_SETTINGS.getName().equals(paramName)) {
    ProjectSettingManager.reloadStatsAndLogFromProjectSettings(processType,ProjectManager.getInstance().getCurrentProject());
  }
 else   if (EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS.getName().equals(paramName)) {
    ProjectSettingManager.reloadImplicitValuesFromProjectSettings(processType,ProjectManager.getInstance().getCurrentProject());
  }
}
Program: 122162
Project: 122162
Buggy source:
public PaletteRoot createPalette(IComponentsFactory compFac,PaletteRoot root,boolean isFavorite){
  return TalendEditorPaletteFactory.createPalette(compFac,root,isFavorite);
}

Fixed version (ground truth):
@Override public PaletteRoot createPalette(IComponentsFactory compFac,PaletteRoot root,boolean isFavorite){
  return TalendEditorPaletteFactory.createPalette(compFac,root,isFavorite);
}
Program: 122163
Project: 122163
Buggy source:
public PaletteRoot createEmptyPalette(){
  return TalendEditorPaletteFactory.createEmptyPalette();
}

Fixed version (ground truth):
@Override public PaletteRoot createEmptyPalette(){
  return TalendEditorPaletteFactory.createEmptyPalette();
}
Program: 122164
Project: 122164
Buggy source:
public void removeJobLaunch(IRepositoryViewObject objToDelete){
  JobLaunchShortcutManager.removeJobLaunch(objToDelete);
}

Fixed version (ground truth):
@Override public void removeJobLaunch(IRepositoryViewObject objToDelete){
  JobLaunchShortcutManager.removeJobLaunch(objToDelete);
}
Program: 122165
Project: 122165
Buggy source:
public Set<ModuleNeeded> getNeededLibrariesForProcess(IProcess process,boolean withChildrens){
  return JavaProcessUtil.getNeededModules(process,withChildrens);
}

Fixed version (ground truth):
@Override public Set<ModuleNeeded> getNeededLibrariesForProcess(IProcess process,boolean withChildrens){
  return JavaProcessUtil.getNeededModules(process,withChildrens);
}
Program: 122166
Project: 122166
Buggy source:
public void synchronizeDesignerUI(PropertyChangeEvent evt){
  ComponentUtilities.updatePalette();
  for (  IEditorPart editor : ProcessorUtilities.getOpenedEditors()) {
    AbstractTalendEditor abstractTalendEditor=((AbstractTalendEditor)editor);
    IProcess2 process=abstractTalendEditor.getProcess();
    process.getUpdateManager().addNodesPropertyChanger(evt);
  }
}

Fixed version (ground truth):
@Override public void synchronizeDesignerUI(PropertyChangeEvent evt){
  ComponentUtilities.updatePalette();
  for (  IEditorPart editor : ProcessorUtilities.getOpenedEditors()) {
    AbstractTalendEditor abstractTalendEditor=((AbstractTalendEditor)editor);
    IProcess2 process=abstractTalendEditor.getProcess();
    process.getUpdateManager().addNodesPropertyChanger(evt);
  }
}
Program: 122167
Project: 122167
Buggy source:
public IPreferenceStore getDesignerCorePreferenceStore(){
  return DesignerPlugin.getDefault().getPreferenceStore();
}

Fixed version (ground truth):
@Override public IPreferenceStore getDesignerCorePreferenceStore(){
  return DesignerPlugin.getDefault().getPreferenceStore();
}
Program: 122168
Project: 122168
Buggy source:
public PaletteDrawer createTalendPaletteDrawer(String family){
  return new TalendPaletteDrawer(family);
}

Fixed version (ground truth):
@Override public PaletteDrawer createTalendPaletteDrawer(String family){
  return new TalendPaletteDrawer(family);
}
Program: 122169
Project: 122169
Buggy source:
public Map<String,java.util.Date> getLastGeneratedJobsDateMap(){
  return lastGeneratedJobs;
}

Fixed version (ground truth):
@Override public Map<String,java.util.Date> getLastGeneratedJobsDateMap(){
  return lastGeneratedJobs;
}
Program: 122170
Project: 122170
Buggy source:
public ILabelProvider getGEFEditorNodeLabelProvider(){
  return new GefEditorLabelProvider();
}

Fixed version (ground truth):
@Override public ILabelProvider getGEFEditorNodeLabelProvider(){
  return new GefEditorLabelProvider();
}
Program: 122171
Project: 122171
Buggy source:
public void saveJobBeforeRun(IProcess activeProcess){
  new SaveJobBeforeRunAction(activeProcess).run();
}

Fixed version (ground truth):
@Override public void saveJobBeforeRun(IProcess activeProcess){
  new SaveJobBeforeRunAction(activeProcess).run();
}
Program: 122172
Project: 122172
Buggy source:
public void setTraceFilterParameters(INode node,IMetadataTable table,Set<String> preColumnSet,Map<String,String> changedNameColumns){
  TracesConnectionUtils.setTraceFilterParameters(node,table,preColumnSet,changedNameColumns);
}

Fixed version (ground truth):
@Override public void setTraceFilterParameters(INode node,IMetadataTable table,Set<String> preColumnSet,Map<String,String> changedNameColumns){
  TracesConnectionUtils.setTraceFilterParameters(node,table,preColumnSet,changedNameColumns);
}
Program: 122173
Project: 122173
Buggy source:
public void switchToCurJobSettingsView(){
  JobSettings.switchToCurJobSettingsView();
}

Fixed version (ground truth):
@Override public void switchToCurJobSettingsView(){
  JobSettings.switchToCurJobSettingsView();
}
Program: 122174
Project: 122174
Buggy source:
public String getPreferenceStore(String key){
  return DesignerPlugin.getDefault().getPreferenceStore().getString(key);
}

Fixed version (ground truth):
@Override public String getPreferenceStore(String key){
  return DesignerPlugin.getDefault().getPreferenceStore().getString(key);
}
Program: 122175
Project: 122175
Buggy source:
public void createStatsLogAndImplicitParamter(Project project){
  ProjectSettingManager.createStatsAndLogsElement(project);
  ProjectSettingManager.createImplicitContextLoadElement(project);
}

Fixed version (ground truth):
@Override public void createStatsLogAndImplicitParamter(Project project){
  ProjectSettingManager.createStatsAndLogsElement(project);
  ProjectSettingManager.createImplicitContextLoadElement(project);
}
Program: 122176
Project: 122176
Buggy source:
/** 
 * DOC YeXiaowei Comment method "getDisplayForProcessParameterFromName".
 * @param name
 * @return
 */
public String getDisplayForProcessParameterFromName(final String name){
  for (  EParameterName param : EParameterName.values()) {
    String keyName=name;
    String suffix="String_Node_Str";
    if (name.endsWith("String_Node_Str")) {
      keyName=name.substring(0,name.indexOf("String_Node_Str"));
      suffix="String_Node_Str";
    }
    if (param.name().equals(keyName)) {
      return param.getDisplayName() + suffix;
    }
  }
  if (name.equals(IJobSettingConstants.PROPERTY_TYPE_IMPLICIT_CONTEXT_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
 else   if (name.equals(IJobSettingConstants.PROPERTY_TYPE_IMPLICIT_CONTEXT_REPOSITORY_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
 else   if (name.equals(IJobSettingConstants.PROPERTY_TYPE_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
 else   if (name.equals(IJobSettingConstants.PROPERTY_TYPE_REPOSITORY_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
  return name;
}

Fixed version (ground truth):
/** 
 * DOC YeXiaowei Comment method "getDisplayForProcessParameterFromName".
 * @param name
 * @return
 */
@Override public String getDisplayForProcessParameterFromName(final String name){
  for (  EParameterName param : EParameterName.values()) {
    String keyName=name;
    String suffix="String_Node_Str";
    if (name.endsWith("String_Node_Str")) {
      keyName=name.substring(0,name.indexOf("String_Node_Str"));
      suffix="String_Node_Str";
    }
    if (param.name().equals(keyName)) {
      return param.getDisplayName() + suffix;
    }
  }
  if (name.equals(IJobSettingConstants.PROPERTY_TYPE_IMPLICIT_CONTEXT_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
 else   if (name.equals(IJobSettingConstants.PROPERTY_TYPE_IMPLICIT_CONTEXT_REPOSITORY_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
 else   if (name.equals(IJobSettingConstants.PROPERTY_TYPE_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
 else   if (name.equals(IJobSettingConstants.PROPERTY_TYPE_REPOSITORY_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
  return name;
}
Program: 122177
Project: 122177
Buggy source:
public String getRepositoryAliasName(ConnectionItem connectionItem){
  return repositoryValueUtils.getRepositoryAliasName(connectionItem);
}

Fixed version (ground truth):
@Override public String getRepositoryAliasName(ConnectionItem connectionItem){
  return repositoryValueUtils.getRepositoryAliasName(connectionItem);
}
Program: 122178
Project: 122178
Buggy source:
public IProcess getProcessFromItem(Item item){
  if (item instanceof ProcessItem) {
    return getProcessFromProcessItem((ProcessItem)item);
  }
 else   if (item instanceof JobletProcessItem) {
    AbstractProcessProvider processProvider=AbstractProcessProvider.findProcessProviderFromPID(IComponent.JOBLET_PID);
    if (processProvider != null) {
      return processProvider.buildNewGraphicProcess(item);
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public IProcess getProcessFromItem(Item item){
  if (item instanceof ProcessItem) {
    return getProcessFromProcessItem((ProcessItem)item);
  }
 else   if (item instanceof JobletProcessItem) {
    AbstractProcessProvider processProvider=AbstractProcessProvider.findProcessProviderFromPID(IComponent.JOBLET_PID);
    if (processProvider != null) {
      return processProvider.buildNewGraphicProcess(item);
    }
  }
  return null;
}
Program: 122179
Project: 122179
Buggy source:
public CsvArray convertNode(ConnectionItem connectionItem,String tableName) throws ProcessorException {
  ConvertRepositoryNodeToProcessNode convertMove=new ConvertRepositoryNodeToProcessNode(connectionItem,tableName);
  CsvArray array=null;
  array=convertMove.runMockProcess();
  return array;
}

Fixed version (ground truth):
@Override public CsvArray convertNode(ConnectionItem connectionItem,IMetadataConnection convertedConnection,String tableName) throws ProcessorException {
  ConvertRepositoryNodeToProcessNode convertMove=new ConvertRepositoryNodeToProcessNode(connectionItem,convertedConnection,tableName);
  CsvArray array=null;
  array=convertMove.runMockProcess();
  return array;
}
Program: 122180
Project: 122180
Buggy source:
public IAction getCreateProcessAction(boolean isToolbar){
  return new CreateProcess(isToolbar);
}

Fixed version (ground truth):
@Override public IAction getCreateProcessAction(boolean isToolbar){
  return new CreateProcess(isToolbar);
}
Program: 122181
Project: 122181
Buggy source:
/** 
 * nrousseau Comment method "removeConnection".
 */
public void removeConnection(INode node,String schemaName){
  for (  IConnection connection : (List<IConnection>)node.getOutgoingConnections()) {
    if (connection.getMetaName().equals(schemaName)) {
      connection.disconnect();
      INode prevNode=connection.getSource();
      INodeConnector nodeConnectorSource, nodeConnectorTarget;
      nodeConnectorSource=prevNode.getConnectorFromType(connection.getLineStyle());
      nodeConnectorSource.setCurLinkNbOutput(nodeConnectorSource.getCurLinkNbOutput() - 1);
      INode nextNode=connection.getTarget();
      nodeConnectorTarget=nextNode.getConnectorFromType(connection.getLineStyle());
      nodeConnectorTarget.setCurLinkNbInput(nodeConnectorTarget.getCurLinkNbInput() - 1);
      break;
    }
  }
  node.getProcess().removeUniqueConnectionName(schemaName);
}

Fixed version (ground truth):
/** 
 * nrousseau Comment method "removeConnection".
 */
@Override public void removeConnection(INode node,String schemaName){
  for (  IConnection connection : (List<IConnection>)node.getOutgoingConnections()) {
    if (connection.getMetaName().equals(schemaName)) {
      connection.disconnect();
      INode prevNode=connection.getSource();
      INodeConnector nodeConnectorSource, nodeConnectorTarget;
      nodeConnectorSource=prevNode.getConnectorFromType(connection.getLineStyle());
      nodeConnectorSource.setCurLinkNbOutput(nodeConnectorSource.getCurLinkNbOutput() - 1);
      INode nextNode=connection.getTarget();
      nodeConnectorTarget=nextNode.getConnectorFromType(connection.getLineStyle());
      nodeConnectorTarget.setCurLinkNbInput(nodeConnectorTarget.getCurLinkNbInput() - 1);
      break;
    }
  }
  node.getProcess().removeUniqueConnectionName(schemaName);
}
Program: 122182
Project: 122182
Buggy source:
public PaletteRoot getAllNodeStructure(IComponentsFactory factory){
  return TalendEditorPaletteFactory.getAllNodeStructure(factory);
}

Fixed version (ground truth):
@Override public PaletteRoot getAllNodeStructure(IComponentsFactory factory){
  return TalendEditorPaletteFactory.getAllNodeStructure(factory);
}
Program: 122183
Project: 122183
Buggy source:
public IProcess getProcessFromJobletProcessItem(JobletProcessItem jobletProcessItem){
  AbstractProcessProvider processProvider=AbstractProcessProvider.findProcessProviderFromPID(IComponent.JOBLET_PID);
  if (processProvider != null) {
    return processProvider.getProcessFromJobletProcessItem(jobletProcessItem);
  }
  return null;
}

Fixed version (ground truth):
@Override public IProcess getProcessFromJobletProcessItem(JobletProcessItem jobletProcessItem){
  AbstractProcessProvider processProvider=AbstractProcessProvider.findProcessProviderFromPID(IComponent.JOBLET_PID);
  if (processProvider != null) {
    return processProvider.getProcessFromJobletProcessItem(jobletProcessItem);
  }
  return null;
}
Program: 122184
Project: 122184
Buggy source:
public void refreshComponentView(Item item){
  try {
    IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    IWorkbenchPage activePage=activeWorkbenchWindow.getActivePage();
    IEditorReference[] editors=activePage.getEditorReferences();
    for (    IEditorReference er : editors) {
      IEditorPart part=er.getEditor(false);
      if (part instanceof AbstractMultiPageTalendEditor) {
        AbstractMultiPageTalendEditor editor=(AbstractMultiPageTalendEditor)part;
        CommandStack stack=(CommandStack)editor.getTalendEditor().getAdapter(CommandStack.class);
        if (stack != null) {
          IProcess process=editor.getProcess();
          for (          final INode processNode : process.getGraphicalNodes()) {
            if (processNode instanceof Node) {
              checkRepository((Node)processNode,item,stack);
            }
          }
        }
      }
    }
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void refreshComponentView(Item item){
  try {
    IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    IWorkbenchPage activePage=activeWorkbenchWindow.getActivePage();
    IEditorReference[] editors=activePage.getEditorReferences();
    for (    IEditorReference er : editors) {
      IEditorPart part=er.getEditor(false);
      if (part instanceof AbstractMultiPageTalendEditor) {
        AbstractMultiPageTalendEditor editor=(AbstractMultiPageTalendEditor)part;
        CommandStack stack=(CommandStack)editor.getTalendEditor().getAdapter(CommandStack.class);
        if (stack != null) {
          IProcess process=editor.getProcess();
          for (          final INode processNode : process.getGraphicalNodes()) {
            if (processNode instanceof Node) {
              checkRepository((Node)processNode,item,stack);
            }
          }
        }
      }
    }
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 122185
Project: 122185
Buggy source:
public void updateTraceColumnValues(IConnection conn,Map<String,String> changedNameColumns,Set<String> addedColumns){
  if (changedNameColumns == null) {
    for (    String curColumnName : addedColumns) {
      TracesConnectionUtils.setTraceColumnValues(conn,curColumnName,null,true);
    }
    return;
  }
 else {
    List<Map<String,Object>> traceFilterValues=TracesConnectionUtils.getTraceConnectionFilterValues(conn);
    if (traceFilterValues != null) {
      for (      String newName : changedNameColumns.keySet()) {
        String oldName=changedNameColumns.get(newName);
        if (oldName != null) {
          Map<String,Object> foundLine=null;
          for (          Map<String,Object> line : traceFilterValues) {
            Object column=line.get(IConnection.TRACE_SCHEMA_COLUMN);
            if (oldName.equals(column)) {
              foundLine=line;
              break;
            }
          }
          if (foundLine != null) {
            foundLine.put(IConnection.TRACE_SCHEMA_COLUMN,newName);
          }
        }
      }
    }
    for (    String colName : addedColumns) {
      TracesConnectionUtils.setTraceColumnValues(conn,colName,null,true);
    }
  }
}

Fixed version (ground truth):
@Override public void updateTraceColumnValues(IConnection conn,Map<String,String> changedNameColumns,Set<String> addedColumns){
  if (changedNameColumns == null) {
    for (    String curColumnName : addedColumns) {
      TracesConnectionUtils.setTraceColumnValues(conn,curColumnName,null,true);
    }
    return;
  }
 else {
    List<Map<String,Object>> traceFilterValues=TracesConnectionUtils.getTraceConnectionFilterValues(conn);
    if (traceFilterValues != null) {
      for (      String newName : changedNameColumns.keySet()) {
        String oldName=changedNameColumns.get(newName);
        if (oldName != null) {
          Map<String,Object> foundLine=null;
          for (          Map<String,Object> line : traceFilterValues) {
            Object column=line.get(IConnection.TRACE_SCHEMA_COLUMN);
            if (oldName.equals(column)) {
              foundLine=line;
              break;
            }
          }
          if (foundLine != null) {
            foundLine.put(IConnection.TRACE_SCHEMA_COLUMN,newName);
          }
        }
      }
    }
    for (    String colName : addedColumns) {
      TracesConnectionUtils.setTraceColumnValues(conn,colName,null,true);
    }
  }
}
Program: 122186
Project: 122186
Buggy source:
public List<IProcess2> getOpenedProcess(IEditorReference[] reference){
  return RepositoryManagerHelper.getOpenedProcess(reference);
}

Fixed version (ground truth):
@Override public List<IProcess2> getOpenedProcess(IEditorReference[] reference){
  return RepositoryManagerHelper.getOpenedProcess(reference);
}
Program: 122187
Project: 122187
Buggy source:
public List<IProcess> getProcessForJobTemplate(){
  if (JobTemplateViewsAndProcessUtil.getInstance().getHelpProcess() != null) {
    List<IProcess> result=new ArrayList<IProcess>();
    result.add(JobTemplateViewsAndProcessUtil.getInstance().getHelpProcess());
    return result;
  }
  return null;
}

Fixed version (ground truth):
@Override public List<IProcess> getProcessForJobTemplate(){
  if (JobTemplateViewsAndProcessUtil.getInstance().getHelpProcess() != null) {
    List<IProcess> result=new ArrayList<IProcess>();
    result.add(JobTemplateViewsAndProcessUtil.getInstance().getHelpProcess());
    return result;
  }
  return null;
}
Program: 122188
Project: 122188
Buggy source:
public boolean evaluate(final String string,List<? extends IElementParameter> listParam){
  return Expression.evaluate(string,listParam);
}

Fixed version (ground truth):
@Override public boolean evaluate(final String string,List<? extends IElementParameter> listParam){
  return Expression.evaluate(string,listParam);
}
Program: 122189
Project: 122189
Buggy source:
public ConvertRepositoryNodeToProcessNode(ConnectionItem connectionItem,String tableName){
  databaseConnection=(DatabaseConnection)connectionItem.getConnection();
  IMetadataConnection iMetadataConnection=null;
  iMetadataConnection=ConvertionHelper.convert(databaseConnection);
  String dbType=iMetadataConnection.getDbType();
  String username=iMetadataConnection.getUsername();
  String pwd=iMetadataConnection.getPassword();
  String dbVersion=iMetadataConnection.getDbVersionString();
  String url=iMetadataConnection.getUrl();
  String additionalParams=iMetadataConnection.getAdditionalParams();
  if (EDatabaseTypeName.GENERAL_JDBC.getDisplayName().equals(dbType)) {
    info=new DbInfo(dbType,username,pwd,dbVersion,url,iMetadataConnection.getDriverClass(),iMetadataConnection.getDriverJarPath(),additionalParams);
  }
 else {
    info=new DbInfo(dbType,username,pwd,dbVersion,url,additionalParams);
  }
  try {
    convertToProcessNode(connectionItem,tableName);
  }
 catch (  ProcessorException e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
public ConvertRepositoryNodeToProcessNode(ConnectionItem connectionItem,IMetadataConnection convertedConnection,String tableName){
  databaseConnection=(DatabaseConnection)connectionItem.getConnection();
  IMetadataConnection iMetadataConnection=convertedConnection;
  String dbType=iMetadataConnection.getDbType();
  String username=iMetadataConnection.getUsername();
  String pwd=iMetadataConnection.getPassword();
  String dbVersion=iMetadataConnection.getDbVersionString();
  String url=iMetadataConnection.getUrl();
  String additionalParams=iMetadataConnection.getAdditionalParams();
  if (EDatabaseTypeName.GENERAL_JDBC.getDisplayName().equals(dbType)) {
    info=new DbInfo(dbType,username,pwd,dbVersion,url,iMetadataConnection.getDriverClass(),iMetadataConnection.getDriverJarPath(),additionalParams);
  }
 else {
    info=new DbInfo(dbType,username,pwd,dbVersion,url,additionalParams);
  }
  try {
    convertToProcessNode(connectionItem,tableName);
  }
 catch (  ProcessorException e) {
    ExceptionHandler.process(e);
  }
}
Program: 122192
Project: 122192
Buggy source:
/** 
 * DOC ycbai Comment method "getJobScriptsUncompressed".
 * @param resource
 * @param process
 * @throws IOException
 */
private void getJobScriptsUncompressed(ExportFileResource resource,ProcessItem process) throws IOException {
  String projectName=getCorrespondingProjectName(process);
  final URI classRootURI=classesLocation.toURI();
  List<String> jobFolderNames=getRelatedJobFolderNames(process);
  try {
    final String classRootLocation=getClassRootLocation() + projectName + File.separator;
    for (    String jobFolderName : jobFolderNames) {
      String classRoot=classRootLocation + jobFolderName;
      String targetPath=classesLocation + File.separator + projectName+ File.separator+ jobFolderName;
      File sourceFile=new File(classRoot);
      File targetFile=new File(targetPath);
      FilesUtils.copyFolder(sourceFile,targetFile,true,null,null,true,false);
      List<URL> fileURLs=FilesUtils.getFileURLs(targetFile);
      for (      URL url : fileURLs) {
        resource.addResource(classRootURI.relativize(new File(url.toURI()).getParentFile().toURI()).toString(),url);
      }
    }
  }
 catch (  IOException e) {
    throw e;
  }
catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
/** 
 * DOC ycbai Comment method "getJobScriptsUncompressed".
 * @param resource
 * @param process
 * @throws IOException
 */
private void getJobScriptsUncompressed(ExportFileResource resource,ProcessItem process) throws IOException {
  String projectName=getCorrespondingProjectName(process);
  final URI classRootURI=classesLocation.toURI();
  List<String> jobFolderNames=getRelatedJobFolderNames(process);
  try {
    final String classRootLocation=getClassRootLocation() + projectName + File.separator;
    for (    String jobFolderName : jobFolderNames) {
      String classRoot=FilesUtils.getFileRealPath(classRootLocation + jobFolderName);
      String targetPath=FilesUtils.getFileRealPath(classesLocation + File.separator + projectName+ File.separator+ jobFolderName);
      File sourceFile=new File(classRoot);
      File targetFile=new File(targetPath);
      FilesUtils.copyFolder(sourceFile,targetFile,true,null,null,true,false);
      List<URL> fileURLs=FilesUtils.getFileURLs(targetFile);
      for (      URL url : fileURLs) {
        resource.addResource(classRootURI.relativize(new File(url.toURI()).getParentFile().toURI()).toString(),url);
      }
    }
  }
 catch (  IOException e) {
    throw e;
  }
catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 122194
Project: 122194
Buggy source:
private void createTisProjectArea(Composite parent){
  createBasicTisProjectArea(parent);
  FormData data;
  svnBranchLabel.setText("String_Node_Str");
  data=new FormData();
  data.top=new FormAttachment(fillProjectsBtn,HORIZONTAL_SPACE,SWT.BOTTOM);
  data.left=new FormAttachment(0,HORIZONTAL_TWO_SPACE);
  data.right=new FormAttachment(0,LEFTSPACE);
  svnBranchLabel.setLayoutData(data);
  data=new FormData();
  data.top=new FormAttachment(svnBranchLabel,0,SWT.CENTER);
  data.left=new FormAttachment(svnBranchLabel,HORIZONTAL_SPACE);
  data.right=new FormAttachment(50,0);
  branchesViewer.getControl().setLayoutData(data);
}

Fixed version (ground truth):
private void createTisProjectArea(Composite parent){
  createBasicTisProjectArea(parent);
  FormData data;
  svnBranchLabel.setText("String_Node_Str");
  data=new FormData();
  data.top=new FormAttachment(fillProjectsBtn,HORIZONTAL_SPACE,SWT.BOTTOM);
  data.left=new FormAttachment(0,HORIZONTAL_TWO_SPACE);
  data.right=new FormAttachment(0,LEFTSPACE);
  svnBranchLabel.setLayoutData(data);
  data=new FormData();
  data.top=new FormAttachment(svnBranchLabel,0,SWT.CENTER);
  data.left=new FormAttachment(svnBranchLabel,HORIZONTAL_SPACE);
  data.right=new FormAttachment(openProjectBtn,-40,SWT.LEFT);
  branchesViewer.getControl().setLayoutData(data);
}
Program: 122195
Project: 122195
Buggy source:
public void initialize(){
}

Fixed version (ground truth):
public void initialize(){
  List<Object> listNames=getVertionColumnNames();
  if (listNames.isEmpty()) {
    return;
  }
  int customId=0;
  List<IMetadataTable> listTables=getScdNodeMetadataList();
  for (  IMetadataTable table : listTables) {
    if (table instanceof MetadataTable) {
      MetadataTable metable=(MetadataTable)table;
      List<IMetadataColumn> metColumns=metable.getListColumns();
      for (      IMetadataColumn column : metColumns) {
        if (listNames.contains(column.getLabel())) {
          column.setCustomId(customId);
          column.setCustom(true);
          column.setReadOnly(true);
          customId++;
        }
      }
    }
  }
}
Program: 122196
Project: 122196
Buggy source:
public AdvancedMemoryHashFile(MATCHING_MODE matchingMode){
  this.matchingMode=matchingMode;
  if (matchingMode == MATCHING_MODE.KEEP_ALL) {
    allList=new ArrayList<V>();
  }
 else   if (matchingMode == MATCHING_MODE.KEEP_FIRST) {
    firstHash=new HashMap<V,V>();
  }
}

Fixed version (ground truth):
public AdvancedMemoryHashFile(MATCHING_MODE matchingMode){
  this.matchingMode=matchingMode;
  if (matchingMode == MATCHING_MODE.KEEP_ALL) {
    allList=Collections.synchronizedList(new ArrayList<V>());
  }
 else   if (matchingMode == MATCHING_MODE.KEEP_FIRST) {
    firstHash=Collections.synchronizedMap(new HashMap<V,V>());
  }
}
Program: 122198
Project: 122198
Buggy source:
public IAction getCreateBeanAction(boolean isToolbar){
  return new CreateRoutineAction(isToolbar);
}

Fixed version (ground truth):
@Override public IAction getCreateBeanAction(boolean isToolbar){
  return new CreateRoutineAction(isToolbar);
}
Program: 122199
Project: 122199
Buggy source:
public void switchToCurComponentSettingsView(){
  ComponentSettings.switchToCurComponentSettingsView();
}

Fixed version (ground truth):
@Override public void switchToCurComponentSettingsView(){
  ComponentSettings.switchToCurComponentSettingsView();
}
Program: 122200
Project: 122200
Buggy source:
public void renameJobLaunch(IRepositoryViewObject obj,String originalName){
  JobLaunchShortcutManager.renameJobLaunch(obj,originalName);
}

Fixed version (ground truth):
@Override public void renameJobLaunch(IRepositoryViewObject obj,String originalName){
  JobLaunchShortcutManager.renameJobLaunch(obj,originalName);
}
Program: 122201
Project: 122201
Buggy source:
public List<PaletteEntry> createJobletEtnry(){
  List<PaletteEntry> list=new ArrayList<PaletteEntry>();
  for (  AbstractProcessProvider provider : AbstractProcessProvider.findAllProcessProviders()) {
    list.addAll(provider.addJobletEntry());
  }
  return list;
}

Fixed version (ground truth):
@Override public List<PaletteEntry> createJobletEtnry(){
  List<PaletteEntry> list=new ArrayList<PaletteEntry>();
  for (  AbstractProcessProvider provider : AbstractProcessProvider.findAllProcessProviders()) {
    list.addAll(provider.addJobletEntry());
  }
  return list;
}
Program: 122202
Project: 122202
Buggy source:
public void setPaletteFilter(String filter){
  TalendEditorPaletteFactory.setFilter(filter);
}

Fixed version (ground truth):
@Override public void setPaletteFilter(String filter){
  TalendEditorPaletteFactory.setFilter(filter);
}
Program: 122203
Project: 122203
Buggy source:
public void addProblems(Problem problem){
  Problems.add(problem);
  Problems.refreshProblemTreeView();
}

Fixed version (ground truth):
@Override public void addProblems(Problem problem){
  Problems.add(problem);
  Problems.refreshProblemTreeView();
}
Program: 122204
Project: 122204
Buggy source:
public IProcess getCurrentProcess(){
  IEditorPart editor=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
  if (!(editor instanceof AbstractMultiPageTalendEditor)) {
    return null;
  }
  IProcess process=((AbstractMultiPageTalendEditor)editor).getProcess();
  return process;
}

Fixed version (ground truth):
@Override public IProcess getCurrentProcess(){
  IEditorPart editor=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
  if (!(editor instanceof AbstractMultiPageTalendEditor)) {
    return null;
  }
  IProcess process=((AbstractMultiPageTalendEditor)editor).getProcess();
  return process;
}
Program: 122205
Project: 122205
Buggy source:
public void switchToCurContextsView(){
  Contexts.switchToCurContextsView();
}

Fixed version (ground truth):
@Override public void switchToCurContextsView(){
  Contexts.switchToCurContextsView();
}
Program: 122206
Project: 122206
Buggy source:
public Item getProcessItem(MultiPageEditorPart talendEditor){
  ProcessEditorInput processEditorInput=(ProcessEditorInput)talendEditor.getEditorInput();
  Item item=processEditorInput.getItem();
  return item;
}

Fixed version (ground truth):
@Override public Item getProcessItem(MultiPageEditorPart talendEditor){
  ProcessEditorInput processEditorInput=(ProcessEditorInput)talendEditor.getEditorInput();
  Item item=processEditorInput.getItem();
  return item;
}