nus-yam/ex-repair huggingface dataset:
Program: 119308
Project: 119308
Buggy source:
@Override protected List<IRepositoryViewObject> loadRepViewObjectWithOtherTypes() throws PersistenceException {
  List<IRepositoryViewObject> list=new ArrayList<IRepositoryViewObject>();
  list.addAll(loadRepViewObjectWithOtherTypes(ERepositoryObjectType.PROCESS));
  ERepositoryObjectType mrRepObjType=ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str");
  list.addAll(loadRepViewObjectWithOtherTypes(mrRepObjType));
  list.addAll(loadRepViewObjectWithOtherTypes(ERepositoryObjectType.PIG_UDF));
  ERepositoryObjectType routeType=ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str");
  if (routeType != null) {
    list.addAll(loadRepViewObjectWithOtherTypes(routeType));
  }
  return list;
}

Fixed version (ground truth):
@Override protected List<IRepositoryViewObject> loadRepViewObjectWithOtherTypes() throws PersistenceException {
  List<IRepositoryViewObject> list=new ArrayList<IRepositoryViewObject>();
  list.addAll(loadRepViewObjectWithOtherTypes(ERepositoryObjectType.PROCESS));
  ERepositoryObjectType mrRepObjType=ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str");
  list.addAll(loadRepViewObjectWithOtherTypes(mrRepObjType));
  list.addAll(loadRepViewObjectWithOtherTypes(ERepositoryObjectType.PIG_UDF));
  ERepositoryObjectType routeType=ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str");
  if (routeType != null) {
    list.addAll(loadRepViewObjectWithOtherTypes(routeType));
  }
  list.addAll(loadRepViewObjectWithOtherTypes(ERepositoryObjectType.JOB_SCRIPT));
  return list;
}
Program: 119310
Project: 119310
Buggy source:
@Override public void paint(Graphics graphics){
  graphics.setAlpha(255);
  if (errorFigure.isVisible()) {
    errorFigure.setLocation(jobletContainer.getErrorLocation());
  }
  if (warningFigure.isVisible()) {
    warningFigure.setLocation(jobletContainer.getWarningLocation());
  }
  Iterator it=getChildren().iterator();
  if (!jobletContainer.getNode().isJoblet()) {
    while (it.hasNext()) {
      Figure fig=(Figure)it.next();
      if (mrFigures.isEmpty() && (fig instanceof GreenRectangle || fig instanceof RoundedRectangle)) {
        it.remove();
        continue;
      }
    }
  }
  refreshNodes(false);
  super.paint(graphics);
}

Fixed version (ground truth):
@Override public void paint(Graphics graphics){
  graphics.setAlpha(255);
  if (errorFigure.isVisible()) {
    errorFigure.setLocation(jobletContainer.getErrorLocation());
  }
  if (warningFigure.isVisible()) {
    warningFigure.setLocation(jobletContainer.getWarningLocation());
  }
  Iterator it=getChildren().iterator();
  if (!jobletContainer.getNode().isJoblet()) {
    while (it.hasNext()) {
      Figure fig=(Figure)it.next();
      if (mrFigures.isEmpty() && (fig instanceof GreenRectangle || fig instanceof RoundedRectangle)) {
        it.remove();
        continue;
      }
    }
  }
  if (this.jobletContainer.getNode().isJoblet()) {
    refreshForJoblet();
  }
  initializejobletContainer(getBounds());
  super.paint(graphics);
}
Program: 119313
Project: 119313
Buggy source:
@Override public ExecutionResult execute(Item item){
  if (item instanceof ContextItem) {
    List<ContextType> contextTypeList=((ContextItem)item).getContext();
    boolean modify=false;
    if (contextTypeList != null) {
      for (      ContextType type : contextTypeList) {
        List<ContextParameterType> paramTypes=type.getContextParameter();
        if (paramTypes != null) {
          for (          ContextParameterType param : paramTypes) {
            try {
              String value=param.getValue();
              if (value != null && PasswordEncryptUtil.isPasswordType(param.getType())) {
                String rawPassword=PasswordEncryptUtil.decryptPassword(value);
                param.setRawValue(rawPassword);
                modify=true;
              }
            }
 catch (            Exception e) {
              ExceptionHandler.process(e);
              return ExecutionResult.FAILURE;
            }
          }
        }
      }
    }
    if (modify) {
      try {
        factory.save(item,true);
      }
 catch (      PersistenceException e) {
        ExceptionHandler.process(e);
        return ExecutionResult.FAILURE;
      }
    }
  }
  return ExecutionResult.SUCCESS_NO_ALERT;
}

Fixed version (ground truth):
@Override public ExecutionResult execute(Item item){
  if (item instanceof ContextItem) {
    List<ContextType> contextTypeList=((ContextItem)item).getContext();
    boolean modify=false;
    if (contextTypeList != null) {
      for (      ContextType type : contextTypeList) {
        List<ContextParameterType> paramTypes=type.getContextParameter();
        if (paramTypes != null) {
          for (          ContextParameterType param : paramTypes) {
            try {
              String value=param.getValue();
              if (value != null && PasswordEncryptUtil.isPasswordType(param.getType())) {
                String rawPassword=PasswordEncryptUtil.decryptPassword(value);
                param.setRawValue(rawPassword);
                modify=true;
              }
            }
 catch (            Exception e) {
              ExceptionHandler.process(e);
              return ExecutionResult.FAILURE;
            }
          }
        }
      }
    }
    if (modify) {
      try {
        factory.save(item,true);
        return ExecutionResult.SUCCESS_NO_ALERT;
      }
 catch (      PersistenceException e) {
        ExceptionHandler.process(e);
        return ExecutionResult.FAILURE;
      }
    }
  }
  return ExecutionResult.NOTHING_TO_DO;
}
Program: 119314
Project: 119314
Buggy source:
@Override public ExecutionResult execute(Item item){
  if (item instanceof DatabaseConnectionItem) {
    Connection connection=((DatabaseConnectionItem)item).getConnection();
    if (connection instanceof DatabaseConnection) {
      DatabaseConnection dbConn=(DatabaseConnection)connection;
      try {
        if (!dbConn.isContextMode()) {
          String pass=dbConn.getPassword();
          String rawPass=PasswordEncryptUtil.decryptPassword(pass);
          dbConn.setRawPassword(rawPass);
          factory.save(item,true);
        }
      }
 catch (      Exception e) {
        ExceptionHandler.process(e);
        return ExecutionResult.FAILURE;
      }
    }
  }
  return ExecutionResult.SUCCESS_NO_ALERT;
}

Fixed version (ground truth):
@Override public ExecutionResult execute(Item item){
  if (item instanceof DatabaseConnectionItem) {
    Connection connection=((DatabaseConnectionItem)item).getConnection();
    if (connection instanceof DatabaseConnection) {
      DatabaseConnection dbConn=(DatabaseConnection)connection;
      try {
        if (!dbConn.isContextMode()) {
          String pass=dbConn.getPassword();
          String rawPass=PasswordEncryptUtil.decryptPassword(pass);
          dbConn.setRawPassword(rawPass);
          factory.save(item,true);
          return ExecutionResult.SUCCESS_NO_ALERT;
        }
      }
 catch (      Exception e) {
        ExceptionHandler.process(e);
        return ExecutionResult.FAILURE;
      }
    }
  }
  return ExecutionResult.NOTHING_TO_DO;
}
Program: 119315
Project: 119315
Buggy source:
@Override protected Command getResizeCommand(ChangeBoundsRequest request){
  Object parent=getHost().getParent().getModel();
  if (!(parent instanceof NodeContainer)) {
    return null;
  }
  Node node=(Node)getHost().getModel();
  if (node.isReadOnly()) {
    return null;
  }
  return new ResizeNodeCommand(node,new Dimension(node.getSize().width + request.getSizeDelta().width,node.getSize().height + request.getSizeDelta().height));
}

Fixed version (ground truth):
@Override protected Command getResizeCommand(ChangeBoundsRequest request){
  Object parent=getHost().getParent().getModel();
  if (!(parent instanceof NodeContainer)) {
    return null;
  }
  Node node=(Node)getHost().getModel();
  if (node.isReadOnly()) {
    return null;
  }
  TalendScalableFreeformRootEditPart rootEditPart=(TalendScalableFreeformRootEditPart)getHost().getRoot();
  double scale=1 / rootEditPart.getZoomManager().getZoom();
  return new ResizeNodeCommand(node,new Dimension(node.getSize().width + request.getSizeDelta().getScaled(scale).width,node.getSize().height + request.getSizeDelta().getScaled(scale).height));
}
Program: 119316
Project: 119316
Buggy source:
@Override protected Command getResizeCommand(ChangeBoundsRequest request){
  Object parent=getHost().getParent().getModel();
  if (!(parent instanceof Process)) {
    return null;
  }
  Note note=(Note)getHost().getModel();
  if (note.isReadOnly()) {
    return null;
  }
  return new ResizeNoteCommand(note,new Dimension(note.getSize().width + request.getSizeDelta().width,note.getSize().height + request.getSizeDelta().height));
}

Fixed version (ground truth):
@Override protected Command getResizeCommand(ChangeBoundsRequest request){
  Object parent=getHost().getParent().getModel();
  if (!(parent instanceof Process)) {
    return null;
  }
  Note note=(Note)getHost().getModel();
  if (note.isReadOnly()) {
    return null;
  }
  TalendScalableFreeformRootEditPart rootEditPart=(TalendScalableFreeformRootEditPart)getHost().getRoot();
  double scale=1 / rootEditPart.getZoomManager().getZoom();
  return new ResizeNoteCommand(note,new Dimension(note.getSize().width + request.getSizeDelta().getScaled(scale).width,note.getSize().height + request.getSizeDelta().getScaled(scale).height));
}
Program: 119318
Project: 119318
Buggy source:
@Override public void handleTableRelevantParameters(Connection connection,IElement ele,IMetadataTable metadataTable){
  if (ele == null || metadataTable == null) {
    return;
  }
  IElementParameter fileNameParameter=ele.getElementParameter(EJSONRepositoryToComponent.FILENAME.getParameterName());
  if (fileNameParameter != null) {
    String JSONPath="String_Node_Str";
    if (JSONPath != null) {
      fileNameParameter.setValue(TalendQuoteUtils.addQuotesIfNotExist(JSONPath));
    }
  }
}

Fixed version (ground truth):
@Override public void handleTableRelevantParameters(Connection connection,IElement ele,IMetadataTable metadataTable){
  if (ele == null || metadataTable == null) {
    return;
  }
  IElementParameter fileNameParameter=ele.getElementParameter(EJSONRepositoryToComponent.FILENAME.getParameterName());
  if (fileNameParameter != null) {
    Object pValue=fileNameParameter.getValue();
    String JSONPath;
    if (pValue == null || pValue.toString().trim().isEmpty()) {
      JSONPath=TalendQuoteUtils.addQuotesIfNotExist("String_Node_Str");
    }
 else {
      JSONPath=TalendQuoteUtils.addQuotesIfNotExist(pValue.toString());
    }
    fileNameParameter.setValue(JSONPath);
  }
}
Program: 119319
Project: 119319
Buggy source:
@Override protected void switchSettingsView(String oldName,String newName){
  if (UpdateContextVariablesHelper.updateProcessForRenamed(getProcess(),oldName,newName)) {
    JobSettings.switchToCurJobSettingsView();
    ComponentSettings.switchToCurComponentSettingsView();
  }
}

Fixed version (ground truth):
@Override public void switchSettingsView(String oldName,String newName){
  if (UpdateContextVariablesHelper.updateProcessForRenamed(getProcess(),oldName,newName)) {
    JobSettings.switchToCurJobSettingsView();
    ComponentSettings.switchToCurComponentSettingsView();
  }
}
Program: 119320
Project: 119320
Buggy source:
@Override public void setValueToDefault(List<? extends IElementParameter> listParam){
  if (defaultValues == null) {
    return;
  }
  int size=defaultValues.size();
  for (int i=size - 1; 0 <= i; i--) {
    IElementParameterDefaultValue defaultValue=defaultValues.get(i);
    boolean setDefaultValue=false;
    String conditionIf=defaultValue.getIfCondition();
    String conditionNotIf=defaultValue.getNotIfCondition();
    if ((conditionIf != null) || (conditionNotIf != null)) {
      if (conditionIf != null) {
        setDefaultValue=Expression.evaluate(conditionIf,listParam);
      }
 else {
        setDefaultValue=!Expression.evaluate(conditionNotIf,listParam);
      }
    }
    if (setDefaultValue) {
      if (this.field.equals(EParameterFieldType.CHECK) || this.field.equals(EParameterFieldType.RADIO)) {
        setValue(new Boolean(defaultValue.getDefaultValue().toString()));
      }
 else {
        setValue(defaultValue.getDefaultValue());
      }
      break;
    }
  }
}

Fixed version (ground truth):
@Override public void setValueToDefault(List<? extends IElementParameter> listParam){
  if (defaultValues == null) {
    return;
  }
  int size=defaultValues.size();
  for (int i=size - 1; 0 <= i; i--) {
    IElementParameterDefaultValue iDefaultValue=defaultValues.get(i);
    boolean setDefaultValue=false;
    String conditionIf=iDefaultValue.getIfCondition();
    String conditionNotIf=iDefaultValue.getNotIfCondition();
    if ((conditionIf != null) || (conditionNotIf != null)) {
      if (conditionIf != null) {
        setDefaultValue=Expression.evaluate(conditionIf,listParam);
      }
 else {
        setDefaultValue=!Expression.evaluate(conditionNotIf,listParam);
      }
    }
    if (setDefaultValue) {
      if (this.field.equals(EParameterFieldType.CHECK) || this.field.equals(EParameterFieldType.RADIO)) {
        setValue(new Boolean(iDefaultValue.getDefaultValue().toString()));
      }
 else {
        setValue(iDefaultValue.getDefaultValue());
      }
      break;
    }
  }
}
Program: 119322
Project: 119322
Buggy source:
@Override public ViewerFilter makeFilter(){
  return new ViewerFilter(){
    @Override public boolean select(    Viewer viewer,    Object parentElement,    Object element){
      if (parentElement instanceof TreePath) {
        parentElement=((TreePath)parentElement).getFirstSegment();
      }
      if (element instanceof RepositoryNode) {
        RepositoryNode repNode=(RepositoryNode)element;
        if (repNode.getParent() instanceof ProjectRepositoryNode) {
          ERepositoryObjectType type=(ERepositoryObjectType)repNode.getProperties(EProperties.CONTENT_TYPE);
          if (!getShowRootTypes().contains(type)) {
            return false;
          }
 else {
            return true;
          }
        }
      }
      return selectRepositoryNode(viewer,(RepositoryNode)parentElement,(RepositoryNode)element);
    }
  }
;
}

Fixed version (ground truth):
@Override public ViewerFilter makeFilter(){
  return new ViewerFilter(){
    @Override public boolean select(    Viewer viewer,    Object parentElement,    Object element){
      if (parentElement instanceof TreePath) {
        parentElement=((TreePath)parentElement).getFirstSegment();
      }
      if (parentElement instanceof RepositoryNode && element instanceof RepositoryNode) {
        RepositoryNode repNode=(RepositoryNode)element;
        if (repNode.getParent() instanceof ProjectRepositoryNode) {
          ERepositoryObjectType type=(ERepositoryObjectType)repNode.getProperties(EProperties.CONTENT_TYPE);
          if (!getShowRootTypes().contains(type)) {
            return false;
          }
 else {
            return true;
          }
        }
        return selectRepositoryNode(viewer,(RepositoryNode)parentElement,(RepositoryNode)element);
      }
 else {
        return false;
      }
    }
  }
;
}
Program: 119323
Project: 119323
Buggy source:
@Override public boolean select(Viewer viewer,Object parentElement,Object element){
  if (parentElement instanceof TreePath) {
    parentElement=((TreePath)parentElement).getFirstSegment();
  }
  if (element instanceof RepositoryNode) {
    RepositoryNode repNode=(RepositoryNode)element;
    if (repNode.getParent() instanceof ProjectRepositoryNode) {
      ERepositoryObjectType type=(ERepositoryObjectType)repNode.getProperties(EProperties.CONTENT_TYPE);
      if (!getShowRootTypes().contains(type)) {
        return false;
      }
 else {
        return true;
      }
    }
  }
  return selectRepositoryNode(viewer,(RepositoryNode)parentElement,(RepositoryNode)element);
}

Fixed version (ground truth):
@Override public boolean select(Viewer viewer,Object parentElement,Object element){
  if (parentElement instanceof TreePath) {
    parentElement=((TreePath)parentElement).getFirstSegment();
  }
  if (parentElement instanceof RepositoryNode && element instanceof RepositoryNode) {
    RepositoryNode repNode=(RepositoryNode)element;
    if (repNode.getParent() instanceof ProjectRepositoryNode) {
      ERepositoryObjectType type=(ERepositoryObjectType)repNode.getProperties(EProperties.CONTENT_TYPE);
      if (!getShowRootTypes().contains(type)) {
        return false;
      }
 else {
        return true;
      }
    }
    return selectRepositoryNode(viewer,(RepositoryNode)parentElement,(RepositoryNode)element);
  }
 else {
    return false;
  }
}
Program: 119325
Project: 119325
Buggy source:
@Override protected List<ERepositoryObjectType> getTypes(){
  List<ERepositoryObjectType> list=new ArrayList<ERepositoryObjectType>(50);
  list.add(ERepositoryObjectType.PROCESS);
  return list;
}

Fixed version (ground truth):
@Override protected List<ERepositoryObjectType> getTypes(){
  List<ERepositoryObjectType> list=new ArrayList<ERepositoryObjectType>(50);
  list.add(ERepositoryObjectType.PROCESS);
  list.add(ERepositoryObjectType.PROCESS_MR);
  return list;
}
Program: 119326
Project: 119326
Buggy source:
@Override public void setValueToDefault(List<? extends IElementParameter> listParam){
  for (  IElementParameterDefaultValue defaultValue : defaultValues) {
    boolean setDefaultValue=false;
    String conditionIf=defaultValue.getIfCondition();
    String conditionNotIf=defaultValue.getNotIfCondition();
    if ((conditionIf != null) || (conditionNotIf != null)) {
      if (conditionIf != null) {
        setDefaultValue=Expression.evaluate(conditionIf,listParam);
      }
 else {
        setDefaultValue=!Expression.evaluate(conditionNotIf,listParam);
      }
    }
    if (setDefaultValue) {
      if (this.field.equals(EParameterFieldType.CHECK) || this.field.equals(EParameterFieldType.RADIO)) {
        setValue(new Boolean(defaultValue.getDefaultValue().toString()));
      }
 else {
        setValue(defaultValue.getDefaultValue());
      }
    }
  }
}

Fixed version (ground truth):
@Override public void setValueToDefault(List<? extends IElementParameter> listParam){
  if (defaultValues == null) {
    return;
  }
  int size=defaultValues.size();
  for (int i=size - 1; 0 <= i; i--) {
    IElementParameterDefaultValue defaultValue=defaultValues.get(i);
    boolean setDefaultValue=false;
    String conditionIf=defaultValue.getIfCondition();
    String conditionNotIf=defaultValue.getNotIfCondition();
    if ((conditionIf != null) || (conditionNotIf != null)) {
      if (conditionIf != null) {
        setDefaultValue=Expression.evaluate(conditionIf,listParam);
      }
 else {
        setDefaultValue=!Expression.evaluate(conditionNotIf,listParam);
      }
    }
    if (setDefaultValue) {
      if (this.field.equals(EParameterFieldType.CHECK) || this.field.equals(EParameterFieldType.RADIO)) {
        setValue(new Boolean(defaultValue.getDefaultValue().toString()));
      }
 else {
        setValue(defaultValue.getDefaultValue());
      }
      break;
    }
  }
}
Program: 119330
Project: 119330
Buggy source:
public Object getAdapter(Class adapter){
  return null;
}

Fixed version (ground truth):
@Override public Object getAdapter(Class adapter){
  return null;
}
Program: 119331
Project: 119331
Buggy source:
public void doSave(IProgressMonitor monitor){
}

Fixed version (ground truth):
@Override public void doSave(IProgressMonitor monitor){
}
Program: 119332
Project: 119332
Buggy source:
public void init(IEditorSite site,IEditorInput input) throws PartInitException {
}

Fixed version (ground truth):
@Override public void init(IEditorSite site,IEditorInput input) throws PartInitException {
}
Program: 119333
Project: 119333
Buggy source:
public int compare(Object arg0,Object arg1){
  if (arg1 instanceof TalendCompletionProposal && (!(arg0 instanceof TalendCompletionProposal))) {
    return 1;
  }
 else   if (arg1 instanceof TalendCompletionProposal && (arg0 instanceof TalendCompletionProposal)) {
    TalendCompletionProposal a=(TalendCompletionProposal)arg0;
    TalendCompletionProposal b=(TalendCompletionProposal)arg1;
    return a.getType().compareTo(b.getType());
  }
  return 0;
}

Fixed version (ground truth):
@Override public int compare(ICompletionProposal arg0,ICompletionProposal arg1){
  if (arg1 instanceof TalendCompletionProposal && (!(arg0 instanceof TalendCompletionProposal))) {
    return 1;
  }
 else   if (arg1 instanceof TalendCompletionProposal && (arg0 instanceof TalendCompletionProposal)) {
    TalendCompletionProposal a=(TalendCompletionProposal)arg0;
    TalendCompletionProposal b=(TalendCompletionProposal)arg1;
    return a.getType().compareTo(b.getType());
  }
  return 0;
}
Program: 119334
Project: 119334
Buggy source:
public void doSaveAs(){
}

Fixed version (ground truth):
@Override public void doSaveAs(){
}
Program: 119335
Project: 119335
Buggy source:
public boolean isSaveOnCloseNeeded(){
  return false;
}

Fixed version (ground truth):
@Override public boolean isSaveOnCloseNeeded(){
  return false;
}
Program: 119336
Project: 119336
Buggy source:
public IEditorInput getEditorInput(){
  return null;
}

Fixed version (ground truth):
@Override public IEditorInput getEditorInput(){
  return null;
}
Program: 119337
Project: 119337
Buggy source:
public void setFocus(){
}

Fixed version (ground truth):
@Override public void setFocus(){
}
Program: 119338
Project: 119338
Buggy source:
public Image getTitleImage(){
  return null;
}

Fixed version (ground truth):
@Override public Image getTitleImage(){
  return null;
}
Program: 119339
Project: 119339
Buggy source:
public IEditorSite getEditorSite(){
  return null;
}

Fixed version (ground truth):
@Override public IEditorSite getEditorSite(){
  return null;
}
Program: 119340
Project: 119340
Buggy source:
public String getTitle(){
  return null;
}

Fixed version (ground truth):
@Override public String getTitle(){
  return null;
}
Program: 119341
Project: 119341
Buggy source:
public void removePropertyListener(IPropertyListener listener){
}

Fixed version (ground truth):
@Override public void removePropertyListener(IPropertyListener listener){
}
Program: 119342
Project: 119342
Buggy source:
public boolean isDirty(){
  return false;
}

Fixed version (ground truth):
@Override public boolean isDirty(){
  return false;
}
Program: 119343
Project: 119343
Buggy source:
public boolean isSaveAsAllowed(){
  return false;
}

Fixed version (ground truth):
@Override public boolean isSaveAsAllowed(){
  return false;
}
Program: 119344
Project: 119344
Buggy source:
public void addPropertyListener(IPropertyListener listener){
}

Fixed version (ground truth):
@Override public void addPropertyListener(IPropertyListener listener){
}
Program: 119345
Project: 119345
Buggy source:
public IWorkbenchPartSite getSite(){
  return null;
}

Fixed version (ground truth):
@Override public IWorkbenchPartSite getSite(){
  return null;
}
Program: 119346
Project: 119346
Buggy source:
public void dispose(){
}

Fixed version (ground truth):
@Override public void dispose(){
}
Program: 119347
Project: 119347
Buggy source:
public void createPartControl(Composite parent){
}

Fixed version (ground truth):
@Override public void createPartControl(Composite parent){
}
Program: 119348
Project: 119348
Buggy source:
public String getTitleToolTip(){
  return null;
}

Fixed version (ground truth):
@Override public String getTitleToolTip(){
  return null;
}
Program: 119349
Project: 119349
Buggy source:
public Tuple2<List<Object>,List<Object>> call(List<Object> d){
  List<Object> key=null;
  if (colsId != null && colsId.size() > 0) {
    key=new ArrayList<Object>(colsId.size());
    for (int i=0; i < colsId.size(); i++) {
      key.add(i,d.get(colsId.get(i)));
    }
  }
  List<Object> values=new ArrayList<Object>(d.size());
  int valId=0;
  for (Integer i=0; i < d.size(); i++) {
    values.add(valId,d.get(i));
    valId++;
  }
  return new Tuple2<List<Object>,List<Object>>(key,values);
}

Fixed version (ground truth):
public Tuple2<List<Object>,List<Object>> call(List<Object> d){
  List<Object> key=null;
  if (colsId != null && colsId.size() > 0) {
    key=new ArrayList<Object>(colsId.size());
    for (int i=0; i < colsId.size(); i++) {
      Object tmp=d.get(colsId.get(i));
      key.add(i,tmp != null ? String.valueOf(tmp) : tmp);
    }
  }
  List<Object> values=new ArrayList<Object>(d.size());
  int valId=0;
  for (Integer i=0; i < d.size(); i++) {
    values.add(valId,d.get(i));
    valId++;
  }
  return new Tuple2<List<Object>,List<Object>>(key,values);
}
Program: 119351
Project: 119351
Buggy source:
private void removeUniqueNodeNamesInJoblet(JobletContainer jobletContainer){
  List<NodeContainer> nodeContainers=jobletContainer.getNodeContainers();
  if (nodeContainers == null) {
    return;
  }
  Iterator<NodeContainer> iter=nodeContainers.iterator();
  while (iter.hasNext()) {
    NodeContainer nodeContainer=iter.next();
    if (nodeContainer instanceof JobletContainer) {
      removeUniqueNodeNamesInJoblet((JobletContainer)nodeContainer);
    }
 else {
      String uniqueName=nodeContainer.getNode().getUniqueName();
      removeUniqueNodeName(uniqueName);
    }
  }
}

Fixed version (ground truth):
private void removeUniqueNodeNamesInJoblet(JobletContainer jobletContainer,Set<NodeContainer> readedContainers){
  List<NodeContainer> nodeContainers=jobletContainer.getNodeContainers();
  if (nodeContainers == null) {
    return;
  }
  Iterator<NodeContainer> iter=nodeContainers.iterator();
  readedContainers.add(jobletContainer);
  while (iter.hasNext()) {
    NodeContainer nodeContainer=iter.next();
    if (nodeContainer instanceof JobletContainer) {
      if (!readedContainers.contains(nodeContainer)) {
        removeUniqueNodeNamesInJoblet((JobletContainer)nodeContainer,readedContainers);
      }
    }
 else {
      String uniqueName=nodeContainer.getNode().getUniqueName();
      removeUniqueNodeName(uniqueName);
    }
  }
}
Program: 119352
Project: 119352
Buggy source:
/** 
 * Remove a node to the diagram.
 * @param node
 */
public void removeNodeContainer(final NodeContainer nodeContainer){
  String uniqueName=nodeContainer.getNode().getUniqueName();
  removeUniqueNodeName(uniqueName);
  if (nodeContainer instanceof JobletContainer) {
    removeUniqueNodeNamesInJoblet((JobletContainer)nodeContainer);
  }
  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);
}

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);
  if (nodeContainer instanceof JobletContainer) {
    Set<NodeContainer> readedContainers=new HashSet<NodeContainer>();
    removeUniqueNodeNamesInJoblet((JobletContainer)nodeContainer,readedContainers);
  }
  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: 119353
Project: 119353
Buggy source:
@Override public IComponent get(String name,String paletteType){
  if (componentList == null) {
    init(false);
  }
  for (  IComponent comp : componentList) {
    if (comp != null && comp.getName().equals(name) && paletteType.equals(comp.getPaletteType())) {
      return comp;
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public synchronized IComponent get(String name,String paletteType){
  if (componentList == null) {
    init(false);
  }
  for (  IComponent comp : componentList) {
    if (comp != null && comp.getName().equals(name) && paletteType.equals(comp.getPaletteType())) {
      return comp;
    }
  }
  return null;
}
Program: 119354
Project: 119354
Buggy source:
@Override public int size(){
  if (componentList == null) {
    init(false);
  }
  return componentList.size();
}

Fixed version (ground truth):
@Override public synchronized int size(){
  if (componentList == null) {
    init(false);
  }
  return componentList.size();
}
Program: 119359
Project: 119359
Buggy source:
/** 
 * 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);
}

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);
  if (nodeContainer instanceof JobletContainer) {
    removeUniqueNodeNamesInJoblet((JobletContainer)nodeContainer);
  }
  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: 119360
Project: 119360
Buggy source:
@Override public void setComponentValue(Connection connection,INode node,String repositoryValue){
  if (node != null && canHandle(connection)) {
    setJSONRepositoryValue((JSONFileConnection)connection,node,repositoryValue);
  }
}

Fixed version (ground truth):
@Override public void setComponentValue(Connection connection,INode node,IElementParameter param){
  if (node != null && canHandle(connection)) {
    setJSONRepositoryValue((JSONFileConnection)connection,node,param);
  }
}
Program: 119361
Project: 119361
Buggy source:
private void setJSONRepositoryValue(JSONFileConnection connection,INode node,String repositoryValue){
}

Fixed version (ground truth):
private void setJSONRepositoryValue(JSONFileConnection connection,INode node,IElementParameter param){
}
Program: 119362
Project: 119362
Buggy source:
public void setVisible(boolean visible){
  super.setVisible(visible);
  checkFieldsValue();
}

Fixed version (ground truth):
@Override public void setVisible(boolean visible){
  super.setVisible(visible);
  checkFieldsValue();
}
Program: 119363
Project: 119363
Buggy source:
public void widgetSelected(SelectionEvent e){
  boolean show=useSocksBut.getSelection();
  proxyHostText.setVisible(show);
  proxyPortText.setVisible(show);
  proxyUsernameText.setVisible(show);
  proxyPasswordText.setVisible(show);
  getConnection().setUsesocks(show);
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  boolean show=useSocksBut.getSelection();
  proxyHostText.setVisible(show);
  proxyPortText.setVisible(show);
  proxyUsernameText.setVisible(show);
  proxyPasswordText.setVisible(show);
  getConnection().setUsesocks(show);
}
Program: 119364
Project: 119364
Buggy source:
public boolean checkFieldsValue(){
  if (ftpHostText.getCharCount() == 0) {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (ftpPortText.getCharCount() == 0) {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (ftpUsernameText.getCharCount() == 0) {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (ftpPasswordText.getCharCount() == 0) {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  updateStatus(IStatus.OK,null);
  return true;
}

Fixed version (ground truth):
@Override public boolean checkFieldsValue(){
  if (ftpHostText.getCharCount() == 0) {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (ftpPortText.getCharCount() == 0) {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (ftpUsernameText.getCharCount() == 0) {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (sftpSuppBut.getSelection() && methodCombo != null && "String_Node_Str".equals(methodCombo.getText())) {
    if (ftpPasswordText.getCharCount() == 0) {
      updateStatus(IStatus.ERROR,"String_Node_Str");
      return false;
    }
  }
  updateStatus(IStatus.OK,null);
  return true;
}
Program: 119366
Project: 119366
Buggy source:
protected void addUtilsButtonListeners(){
  sftpSuppBut.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      boolean show=sftpSuppBut.getSelection();
      ftpsSuppBut.setVisible(!show);
      methodCombo.setVisible(show);
      connModelCombo.setVisible(!show);
      getConnection().setSFTP(show);
    }
  }
);
  ftpsSuppBut.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      boolean show=ftpsSuppBut.getSelection();
      sftpSuppBut.setVisible(!show);
      keyFileText.setVisible(show);
      keyPasswordText.setVisible(show);
      connModelCombo.setVisible(!show);
      getConnection().setFTPS(show);
    }
  }
);
  useSocksBut.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      boolean show=useSocksBut.getSelection();
      proxyHostText.setVisible(show);
      proxyPortText.setVisible(show);
      proxyUsernameText.setVisible(show);
      proxyPasswordText.setVisible(show);
      getConnection().setUsesocks(show);
    }
  }
);
}

Fixed version (ground truth):
@Override protected void addUtilsButtonListeners(){
  sftpSuppBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=sftpSuppBut.getSelection();
      ftpsSuppBut.setVisible(!show);
      if ("String_Node_Str".equals(methodCombo.getText())) {
        privatekeyText.setVisible(show);
        passphraseText.setVisible(show);
      }
      methodCombo.setVisible(show);
      connModelCombo.setVisible(!show);
      getConnection().setSFTP(show);
      checkFieldsValue();
    }
  }
);
  ftpsSuppBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=ftpsSuppBut.getSelection();
      sftpSuppBut.setVisible(!show);
      keyFileText.setVisible(show);
      keyPasswordText.setVisible(show);
      connModelCombo.setVisible(!show);
      getConnection().setFTPS(show);
    }
  }
);
  useSocksBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=useSocksBut.getSelection();
      proxyHostText.setVisible(show);
      proxyPortText.setVisible(show);
      proxyUsernameText.setVisible(show);
      proxyPasswordText.setVisible(show);
      getConnection().setUsesocks(show);
    }
  }
);
}
Program: 119368
Project: 119368
Buggy source:
public void modifyText(ModifyEvent e){
  getConnection().setMethod(methodCombo.getText());
}

Fixed version (ground truth):
@Override public void modifyText(ModifyEvent e){
  getConnection().setMethod(methodCombo.getText());
  if (getConnection().getMethod().equals("String_Node_Str")) {
    privatekeyText.setVisible(true);
    passphraseText.setVisible(true);
    privatekeyText.setText(getConnection().getPrivatekey() != null ? getConnection().getPrivatekey() : "String_Node_Str");
    passphraseText.setText(getConnection().getPassphrase() != null ? getConnection().getPassphrase() : "String_Node_Str");
    getConnection().setPrivatekey(privatekeyText.getText());
    getConnection().setPassphrase(passphraseText.getText());
  }
 else {
    getConnection().setPrivatekey(getConnection().getPrivatekey());
    getConnection().setPassphrase(getConnection().getPassphrase());
    privatekeyText.setVisible(false);
    passphraseText.setVisible(false);
  }
  checkFieldsValue();
}
Program: 119370
Project: 119370
Buggy source:
protected void adaptFormToReadOnly(){
}

Fixed version (ground truth):
@Override protected void adaptFormToReadOnly(){
}
Program: 119371
Project: 119371
Buggy source:
@Override public boolean checkFieldsValue(){
  if (ftpHostText.getCharCount() == 0) {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (ftpPortText.getCharCount() == 0) {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (ftpUsernameText.getCharCount() == 0) {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (sftpSuppBut.getSelection() && methodCombo != null && "String_Node_Str".equals(methodCombo.getText())) {
    if (ftpPasswordText.getCharCount() == 0) {
      updateStatus(IStatus.ERROR,"String_Node_Str");
      return false;
    }
  }
  updateStatus(IStatus.OK,null);
  return true;
}

Fixed version (ground truth):
@Override public boolean checkFieldsValue(){
  if (ftpHostText.getCharCount() == 0) {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (ftpPortText.getCharCount() == 0) {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (ftpUsernameText.getCharCount() == 0) {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (sftpSuppBut.getSelection() && methodCombo != null && PASSWORD.equals(methodCombo.getText())) {
    if (ftpPasswordText.getCharCount() == 0) {
      updateStatus(IStatus.ERROR,"String_Node_Str");
      return false;
    }
  }
  updateStatus(IStatus.OK,null);
  return true;
}
Program: 119373
Project: 119373
Buggy source:
@Override protected void addUtilsButtonListeners(){
  sftpSuppBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=sftpSuppBut.getSelection();
      ftpsSuppBut.setVisible(!show);
      if ("String_Node_Str".equals(methodCombo.getText())) {
        privatekeyText.setVisible(show);
        passphraseText.setVisible(show);
      }
      methodCombo.setVisible(show);
      connModelCombo.setVisible(!show);
      getConnection().setSFTP(show);
      checkFieldsValue();
    }
  }
);
  ftpsSuppBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=ftpsSuppBut.getSelection();
      sftpSuppBut.setVisible(!show);
      keyFileText.setVisible(show);
      keyPasswordText.setVisible(show);
      connModelCombo.setVisible(!show);
      getConnection().setFTPS(show);
    }
  }
);
  useSocksBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=useSocksBut.getSelection();
      proxyHostText.setVisible(show);
      proxyPortText.setVisible(show);
      proxyUsernameText.setVisible(show);
      proxyPasswordText.setVisible(show);
      getConnection().setUsesocks(show);
    }
  }
);
}

Fixed version (ground truth):
@Override protected void addUtilsButtonListeners(){
  sftpSuppBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=sftpSuppBut.getSelection();
      ftpsSuppBut.setVisible(!show);
      if (PUBLIC_KEY.equals(methodCombo.getText())) {
        privatekeyText.setVisible(show);
        passphraseText.setVisible(show);
      }
      methodCombo.setVisible(show);
      connModelCombo.setVisible(!show);
      getConnection().setSFTP(show);
      checkFieldsValue();
    }
  }
);
  ftpsSuppBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=ftpsSuppBut.getSelection();
      sftpSuppBut.setVisible(!show);
      keyFileText.setVisible(show);
      keyPasswordText.setVisible(show);
      connModelCombo.setVisible(!show);
      getConnection().setFTPS(show);
    }
  }
);
  useSocksBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=useSocksBut.getSelection();
      proxyHostText.setVisible(show);
      proxyPortText.setVisible(show);
      proxyUsernameText.setVisible(show);
      proxyPasswordText.setVisible(show);
      getConnection().setUsesocks(show);
    }
  }
);
}
Program: 119375
Project: 119375
Buggy source:
@Override public void modifyText(ModifyEvent e){
  getConnection().setMethod(methodCombo.getText());
  if (getConnection().getMethod().equals("String_Node_Str")) {
    privatekeyText.setVisible(true);
    passphraseText.setVisible(true);
    privatekeyText.setText(getConnection().getPrivatekey() != null ? getConnection().getPrivatekey() : "String_Node_Str");
    passphraseText.setText(getConnection().getPassphrase() != null ? getConnection().getPassphrase() : "String_Node_Str");
    getConnection().setPrivatekey(privatekeyText.getText());
    getConnection().setPassphrase(passphraseText.getText());
  }
 else {
    getConnection().setPrivatekey(getConnection().getPrivatekey());
    getConnection().setPassphrase(getConnection().getPassphrase());
    privatekeyText.setVisible(false);
    passphraseText.setVisible(false);
  }
  checkFieldsValue();
}

Fixed version (ground truth):
@Override public void modifyText(ModifyEvent e){
  getConnection().setPassphrase(passphraseText.getText());
}
Program: 119377
Project: 119377
Buggy source:
public void removeHideValue(){
  if (!connModelCombo.getCombo().isVisible()) {
    getConnection().setMode("String_Node_Str");
  }
  if (!sftpSuppBut.isVisible()) {
    getConnection().setSFTP(false);
  }
  if (!ftpsSuppBut.isVisible()) {
    getConnection().setFTPS(false);
  }
  if (!useSocksBut.isVisible()) {
    getConnection().setUsesocks(false);
  }
  if (!methodCombo.getCombo().isVisible()) {
    getConnection().setMethod("String_Node_Str");
  }
  if (!keyPasswordText.getTextControl().isVisible()) {
    getConnection().setKeystorePassword("String_Node_Str");
  }
  if (!keyFileText.getTextControl().isVisible()) {
    getConnection().setKeystoreFile("String_Node_Str");
  }
  if (!proxyHostText.getTextControl().isVisible()) {
    getConnection().setProxyhost("String_Node_Str");
  }
  if (!proxyPortText.getTextControl().isVisible()) {
    getConnection().setProxyport("String_Node_Str");
  }
  if (!proxyPasswordText.getTextControl().isVisible()) {
    getConnection().setProxypassword("String_Node_Str");
  }
  if (!proxyUsernameText.getTextControl().isVisible()) {
    getConnection().setProxyuser("String_Node_Str");
  }
  if (!customText.isVisible()) {
    getConnection().setCustomEncode("String_Node_Str");
  }
  if (getConnection().getCustomEncode() == null || "String_Node_Str".equals(getConnection().getCustomEncode())) {
    getConnection().setCustomEncode("String_Node_Str");
  }
}

Fixed version (ground truth):
public void removeHideValue(){
  if (!connModelCombo.getCombo().isVisible()) {
    getConnection().setMode("String_Node_Str");
  }
  if (!sftpSuppBut.isVisible()) {
    getConnection().setSFTP(false);
  }
  if (!ftpsSuppBut.isVisible()) {
    getConnection().setFTPS(false);
  }
  if (!useSocksBut.isVisible()) {
    getConnection().setUsesocks(false);
  }
  if (!methodCombo.getCombo().isVisible()) {
    getConnection().setMethod("String_Node_Str");
  }
  if (!keyPasswordText.getTextControl().isVisible()) {
    getConnection().setKeystorePassword("String_Node_Str");
  }
  if (!keyFileText.getTextControl().isVisible()) {
    getConnection().setKeystoreFile("String_Node_Str");
  }
  if (!proxyHostText.getTextControl().isVisible()) {
    getConnection().setProxyhost("String_Node_Str");
  }
  if (!proxyPortText.getTextControl().isVisible()) {
    getConnection().setProxyport("String_Node_Str");
  }
  if (!proxyPasswordText.getTextControl().isVisible()) {
    getConnection().setProxypassword("String_Node_Str");
  }
  if (!proxyUsernameText.getTextControl().isVisible()) {
    getConnection().setProxyuser("String_Node_Str");
  }
  if (!customText.isVisible()) {
    getConnection().setCustomEncode(ENCODING);
  }
  if (getConnection().getCustomEncode() == null || "String_Node_Str".equals(getConnection().getCustomEncode())) {
    getConnection().setCustomEncode(ENCODING);
  }
}
Program: 119378
Project: 119378
Buggy source:
@Override protected List<ERepositoryObjectType> getTypes(){
  List<ERepositoryObjectType> list=new ArrayList<ERepositoryObjectType>(50);
  list.add(ERepositoryObjectType.PROCESS);
  list.add(ERepositoryObjectType.PROCESS_MR);
  return list;
}

Fixed version (ground truth):
@Override protected List<ERepositoryObjectType> getTypes(){
  List<ERepositoryObjectType> list=new ArrayList<ERepositoryObjectType>(50);
  list.add(ERepositoryObjectType.PROCESS);
  return list;
}
Program: 119380
Project: 119380
Buggy source:
public String getText(Object element){
  if (element != null) {
    return element.toString();
  }
  return null;
}

Fixed version (ground truth):
@Override public String getText(Object element){
  if (element != null) {
    return element.toString();
  }
  return null;
}
Program: 119381
Project: 119381
Buggy source:
private void refresh(){
  ProxyRepositoryFactory repositoryFactory=ProxyRepositoryFactory.getInstance();
  Project[] projects=null;
  try {
    projects=repositoryFactory.readProject();
  }
 catch (  PersistenceException e1) {
    ExceptionHandler.process(e1);
  }
catch (  BusinessException e1) {
    ExceptionHandler.process(e1);
  }
  this.projectListViewer.getList().removeAll();
  projectsMap.clear();
  if (projects != null) {
    for (    Project pro : projects) {
      convertorMapper.put(pro.getTechnicalLabel(),pro.getLabel());
      projectsMap.put(pro.getTechnicalLabel(),pro);
      enableOpenAndDelete(true);
    }
    this.projectListViewer.setInput(new ArrayList(convertorMapper.values()));
  }
  try {
    setStatusArea();
  }
 catch (  PersistenceException e1) {
    ExceptionHandler.process(e1);
  }
}

Fixed version (ground truth):
private void refresh(){
  ProxyRepositoryFactory repositoryFactory=ProxyRepositoryFactory.getInstance();
  Project[] projects=null;
  try {
    projects=repositoryFactory.readProject();
  }
 catch (  PersistenceException e1) {
    ExceptionHandler.process(e1);
  }
catch (  BusinessException e1) {
    ExceptionHandler.process(e1);
  }
  this.projectListViewer.getList().removeAll();
  projectsMap.clear();
  convertorMapper.clear();
  if (projects != null) {
    for (    Project pro : projects) {
      convertorMapper.put(pro.getTechnicalLabel(),pro.getLabel());
      projectsMap.put(pro.getTechnicalLabel(),pro);
      enableOpenAndDelete(true);
    }
    this.projectListViewer.setInput(new ArrayList(convertorMapper.values()));
  }
  try {
    setStatusArea();
  }
 catch (  PersistenceException e1) {
    ExceptionHandler.process(e1);
  }
}
Program: 119382
Project: 119382
Buggy source:
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  try {
    ProxyRepositoryFactory.getInstance().initialize();
  }
 catch (  PersistenceException e) {
    throw new InvocationTargetException(e);
  }
}

Fixed version (ground truth):
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  try {
    ProxyRepositoryFactory.getInstance().initialize();
  }
 catch (  PersistenceException e) {
    throw new InvocationTargetException(e);
  }
}
Program: 119383
Project: 119383
Buggy source:
public void removeListener(ILabelProviderListener listener){
}

Fixed version (ground truth):
@Override public void removeListener(ILabelProviderListener listener){
}