nus-yam/ex-repair huggingface dataset:
Program: 122950
Project: 122950
Buggy source:
protected void loadFields(com.sforce.ws.parser.XmlInputStream __in,com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
  __in.peekTag();
  if (__typeMapper.verifyElement(__in,cascadeDelete__typeInfo)) {
    setCascadeDelete((boolean)__typeMapper.readBoolean(__in,cascadeDelete__typeInfo,boolean.class));
  }
  __in.peekTag();
  if (__typeMapper.verifyElement(__in,childSObject__typeInfo)) {
    setChildSObject((java.lang.String)__typeMapper.readString(__in,childSObject__typeInfo,java.lang.String.class));
  }
  __in.peekTag();
  if (__typeMapper.verifyElement(__in,deprecatedAndHidden__typeInfo)) {
    setDeprecatedAndHidden((boolean)__typeMapper.readBoolean(__in,deprecatedAndHidden__typeInfo,boolean.class));
  }
  __in.peekTag();
  if (__typeMapper.verifyElement(__in,field__typeInfo)) {
    setField((java.lang.String)__typeMapper.readString(__in,field__typeInfo,java.lang.String.class));
  }
  __in.peekTag();
  if (__typeMapper.isElement(__in,relationshipName__typeInfo)) {
    setRelationshipName((java.lang.String)__typeMapper.readString(__in,relationshipName__typeInfo,java.lang.String.class));
  }
}

Fixed version (ground truth):
protected void loadFields(com.sforce.ws.parser.XmlInputStream __in,com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
  __in.peekTag();
  if (__typeMapper.verifyElement(__in,cascadeDelete__typeInfo)) {
    setCascadeDelete((boolean)__typeMapper.readBoolean(__in,cascadeDelete__typeInfo,boolean.class));
  }
  __in.peekTag();
  if (__typeMapper.verifyElement(__in,childSObject__typeInfo)) {
    setChildSObject((java.lang.String)__typeMapper.readString(__in,childSObject__typeInfo,java.lang.String.class));
  }
  __in.peekTag();
  if (__typeMapper.verifyElement(__in,deprecatedAndHidden__typeInfo)) {
    setDeprecatedAndHidden((boolean)__typeMapper.readBoolean(__in,deprecatedAndHidden__typeInfo,boolean.class));
  }
  __in.peekTag();
  if (__typeMapper.verifyElement(__in,field__typeInfo)) {
    setField((java.lang.String)__typeMapper.readString(__in,field__typeInfo,java.lang.String.class));
  }
  __in.peekTag();
  if (__typeMapper.isElement(__in,relationshipName__typeInfo)) {
    setRelationshipName((java.lang.String)__typeMapper.readString(__in,relationshipName__typeInfo,java.lang.String.class));
  }
  __in.peekTag();
  if (__typeMapper.isElement(__in,restrictedDelete__typeInfo)) {
    setRestrictedDelete((boolean)__typeMapper.readBoolean(__in,restrictedDelete__typeInfo,boolean.class));
  }
}
Program: 122951
Project: 122951
Buggy source:
public String toString(){
  java.lang.StringBuilder sb=new java.lang.StringBuilder();
  sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  sb.append("String_Node_Str" + com.sforce.ws.util.Verbose.toString(cascadeDelete) + "String_Node_Str");
  sb.append("String_Node_Str");
  sb.append("String_Node_Str" + com.sforce.ws.util.Verbose.toString(childSObject) + "String_Node_Str");
  sb.append("String_Node_Str");
  sb.append("String_Node_Str" + com.sforce.ws.util.Verbose.toString(deprecatedAndHidden) + "String_Node_Str");
  sb.append("String_Node_Str");
  sb.append("String_Node_Str" + com.sforce.ws.util.Verbose.toString(field) + "String_Node_Str");
  sb.append("String_Node_Str");
  sb.append("String_Node_Str" + com.sforce.ws.util.Verbose.toString(relationshipName) + "String_Node_Str");
  sb.append("String_Node_Str");
  return sb.toString();
}

Fixed version (ground truth):
public String toString(){
  java.lang.StringBuilder sb=new java.lang.StringBuilder();
  sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  sb.append("String_Node_Str" + com.sforce.ws.util.Verbose.toString(cascadeDelete) + "String_Node_Str");
  sb.append("String_Node_Str");
  sb.append("String_Node_Str" + com.sforce.ws.util.Verbose.toString(childSObject) + "String_Node_Str");
  sb.append("String_Node_Str");
  sb.append("String_Node_Str" + com.sforce.ws.util.Verbose.toString(deprecatedAndHidden) + "String_Node_Str");
  sb.append("String_Node_Str");
  sb.append("String_Node_Str" + com.sforce.ws.util.Verbose.toString(field) + "String_Node_Str");
  sb.append("String_Node_Str");
  sb.append("String_Node_Str" + com.sforce.ws.util.Verbose.toString(relationshipName) + "String_Node_Str");
  sb.append("String_Node_Str");
  sb.append("String_Node_Str" + com.sforce.ws.util.Verbose.toString(restrictedDelete) + "String_Node_Str");
  sb.append("String_Node_Str");
  return sb.toString();
}
Program: 122954
Project: 122954
Buggy source:
protected ProcessItem getProcessItem(){
  if ((processItem == null) && (nodes != null) && (nodes.length >= 1)) {
    IRepositoryViewObject repositoryObject=nodes[0].getObject();
    List<IRepositoryNode> nodesChildren=(List<IRepositoryNode>)nodes[0].getChildren();
    IRepositoryViewObject childObject=null;
    if ((nodesChildren != null) && (nodesChildren.size() >= 1)) {
      childObject=nodesChildren.get(0).getObject();
    }
    if (repositoryObject == null && childObject != null && childObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)childObject.getProperty().getItem();
    }
    if (repositoryObject != null && repositoryObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)repositoryObject.getProperty().getItem();
    }
  }
  return processItem;
}

Fixed version (ground truth):
protected ProcessItem getProcessItem(){
  if ((processItem == null) && (nodes != null) && (nodes.length >= 1)) {
    IRepositoryViewObject repositoryObject=nodes[0].getObject();
    List<IRepositoryNode> nodesChildren=(List<IRepositoryNode>)nodes[0].getChildren();
    IRepositoryViewObject childObject=null;
    if ((nodesChildren != null) && (nodesChildren.size() >= 1)) {
      childObject=nodesChildren.get(0).getObject();
    }
    if (repositoryObject == null && childObject != null && childObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)childObject.getProperty().getItem();
    }
    if (repositoryObject != null && repositoryObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)repositoryObject.getProperty().getItem();
    }
 else     if (repositoryObject != null && repositoryObject.getProperty().getItem() instanceof FolderItem) {
      processItem=getProcessItemIfSelectFolder(repositoryObject);
    }
  }
  return processItem;
}
Program: 122955
Project: 122955
Buggy source:
protected ProcessItem getProcessItem(){
  if ((processItem == null) && (nodes != null) && (nodes.length >= 1)) {
    IRepositoryViewObject repositoryObject=nodes[0].getObject();
    List<IRepositoryNode> nodesChildren=nodes[0].getChildren();
    IRepositoryViewObject childObject=null;
    if ((nodesChildren != null) && (nodesChildren.size() >= 1)) {
      childObject=nodesChildren.get(0).getObject();
    }
    if (repositoryObject == null && childObject != null && childObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)childObject.getProperty().getItem();
    }
    if (repositoryObject != null && repositoryObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)repositoryObject.getProperty().getItem();
    }
  }
  return processItem;
}

Fixed version (ground truth):
protected ProcessItem getProcessItem(){
  if ((processItem == null) && (nodes != null) && (nodes.length >= 1)) {
    IRepositoryViewObject repositoryObject=nodes[0].getObject();
    List<IRepositoryNode> nodesChildren=nodes[0].getChildren();
    IRepositoryViewObject childObject=null;
    if ((nodesChildren != null) && (nodesChildren.size() >= 1)) {
      childObject=nodesChildren.get(0).getObject();
    }
    if (repositoryObject == null && childObject != null && childObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)childObject.getProperty().getItem();
    }
    if (repositoryObject != null && repositoryObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)repositoryObject.getProperty().getItem();
    }
 else     if (repositoryObject != null && repositoryObject.getProperty().getItem() instanceof FolderItem) {
      processItem=getProcessItemIfSelectFolder(repositoryObject);
    }
  }
  return processItem;
}
Program: 122956
Project: 122956
Buggy source:
/** 
 * Open an appropriate destination browser so that the user can specify a source to import from.
 */
@Override protected void handleDestinationBrowseButtonPressed(){
  FileDialog dialog=new FileDialog(getContainer().getShell(),SWT.SAVE);
  dialog.setFilterExtensions(new String[]{"String_Node_Str","String_Node_Str"});
  dialog.setText("String_Node_Str");
  dialog.setFileName(this.getDefaultFileName().get(0));
  String currentSourceString=getDestinationValue();
  int lastSeparatorIndex=currentSourceString.lastIndexOf(File.separator);
  if (lastSeparatorIndex != -1) {
    dialog.setFilterPath(currentSourceString.substring(0,lastSeparatorIndex));
  }
  String selectedFileName=dialog.open();
  if (selectedFileName != null && !selectedFileName.endsWith(this.getOutputSuffix()))   selectedFileName+=this.getOutputSuffix();
  if (selectedFileName != null && !selectedFileName.endsWith(this.getSelectedJobVersion() + this.getOutputSuffix())) {
    String b=selectedFileName.substring(0,(selectedFileName.length() - 4));
    File file=new File(b);
    String str=file.getName();
    String s=this.getDefaultFileName().get(0);
    if (str.equals(s)) {
      selectedFileName=b + "String_Node_Str" + this.getDefaultFileName().get(1)+ this.getOutputSuffix();
    }
 else {
      selectedFileName=b + this.getOutputSuffix();
    }
  }
  if (selectedFileName != null) {
    setErrorMessage(null);
    setDestinationValue(selectedFileName);
  }
}

Fixed version (ground truth):
/** 
 * Open an appropriate destination browser so that the user can specify a source to import from.
 */
@Override protected void handleDestinationBrowseButtonPressed(){
  FileDialog dialog=new FileDialog(getContainer().getShell(),SWT.SAVE);
  dialog.setFilterExtensions(new String[]{"String_Node_Str","String_Node_Str"});
  dialog.setText("String_Node_Str");
  dialog.setFileName(this.getDefaultFileName().get(0));
  String currentSourceString=getDestinationValue();
  int lastSeparatorIndex=currentSourceString.lastIndexOf(File.separator);
  if (lastSeparatorIndex != -1) {
    dialog.setFilterPath(currentSourceString.substring(0,lastSeparatorIndex));
  }
  String selectedFileName=dialog.open();
  if (selectedFileName != null && !selectedFileName.endsWith(this.getOutputSuffix())) {
    selectedFileName+=this.getOutputSuffix();
  }
  if (selectedFileName != null && !selectedFileName.endsWith(this.getSelectedJobVersion() + this.getOutputSuffix())) {
    String b=selectedFileName.substring(0,(selectedFileName.length() - 4));
    File file=new File(b);
    String str=file.getName();
    String s=this.getDefaultFileName().get(0);
    if (str.equals(s)) {
      selectedFileName=b + "String_Node_Str" + this.getDefaultFileName().get(1)+ this.getOutputSuffix();
    }
 else {
      selectedFileName=b + this.getOutputSuffix();
    }
  }
  if (selectedFileName != null) {
    setErrorMessage(null);
    setDestinationValue(selectedFileName);
  }
}
Program: 122960
Project: 122960
Buggy source:
private static void importProject(Shell shell,IImportStructureProvider provider,Object source,IPath path,boolean overwriteResources,boolean createContainerStructure,IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask(Messages.getString("String_Node_Str"),1);
  ArrayList fileSystemObjects=new ArrayList();
  ImportProjectsUtilities.getFilesForProject(fileSystemObjects,provider,source);
  ImportOperation operation=new ImportOperation(path,source,provider,new MyOverwriteQuery(),fileSystemObjects);
  operation.setContext(shell);
  operation.setOverwriteResources(overwriteResources);
  operation.setCreateContainerStructure(createContainerStructure);
  operation.run(new SubProgressMonitor(monitor,1));
  monitor.done();
}

Fixed version (ground truth):
private static void importProject(Shell shell,IImportStructureProvider provider,Object source,IPath path,boolean overwriteResources,boolean createContainerStructure,IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask(Messages.getString("String_Node_Str"),100);
  ArrayList fileSystemObjects=new ArrayList();
  ImportProjectsUtilities.getFilesForProject(fileSystemObjects,provider,source);
  ImportOperation operation=new ImportOperation(path,source,provider,new MyOverwriteQuery(),fileSystemObjects);
  operation.setContext(shell);
  operation.setOverwriteResources(overwriteResources);
  operation.setCreateContainerStructure(createContainerStructure);
  operation.run(new SubProgressMonitor(monitor,95));
  monitor.worked(5);
  monitor.done();
}
Program: 122963
Project: 122963
Buggy source:
public String getName(){
  return nameText.getText();
}

Fixed version (ground truth):
@Override public String getName(){
  return nameText.getText();
}
Program: 122964
Project: 122964
Buggy source:
public String getDescription(){
  return descriptionText.getText();
}

Fixed version (ground truth):
@Override public String getDescription(){
  return descriptionText.getText();
}
Program: 122967
Project: 122967
Buggy source:
protected ProcessItem getProcessItem(){
  if ((processItem == null) && (nodes != null) && (nodes.length >= 1)) {
    IRepositoryViewObject repositoryObject=nodes[0].getObject();
    List<IRepositoryNode> nodesChildren=nodes[0].getChildren();
    IRepositoryViewObject childObject=null;
    if ((nodesChildren != null) && (nodesChildren.size() >= 1)) {
      childObject=nodesChildren.get(0).getObject();
    }
    if (repositoryObject == null && childObject != null && childObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)childObject.getProperty().getItem();
    }
    if (repositoryObject != null && repositoryObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)repositoryObject.getProperty().getItem();
    }
  }
  return processItem;
}

Fixed version (ground truth):
protected ProcessItem getProcessItem(){
  if ((processItem == null) && (nodes != null) && (nodes.length >= 1)) {
    IRepositoryViewObject repositoryObject=nodes[0].getObject();
    List<IRepositoryNode> nodesChildren=nodes[0].getChildren();
    IRepositoryViewObject childObject=null;
    if ((nodesChildren != null) && (nodesChildren.size() >= 1)) {
      childObject=nodesChildren.get(0).getObject();
    }
    if (repositoryObject == null && childObject != null && childObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)childObject.getProperty().getItem();
    }
    if (repositoryObject != null && repositoryObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)repositoryObject.getProperty().getItem();
    }
 else     if (repositoryObject != null && repositoryObject.getProperty().getItem() instanceof FolderItem) {
      processItem=getProcessItemIfSelectFolder(repositoryObject);
    }
  }
  return processItem;
}
Program: 122968
Project: 122968
Buggy source:
public void selectTab(final EComponentCategory category){
  if (tabFactory.getSelection().getCategory().equals(category)) {
    return;
  }
  List<TalendPropertyTabDescriptor> allTabs=tabFactory.getInput();
  final List<TalendPropertyTabDescriptor> selection=new ArrayList<TalendPropertyTabDescriptor>();
  for (  TalendPropertyTabDescriptor talendPropertyTabDescriptor : allTabs) {
    if (talendPropertyTabDescriptor.getCategory().equals(category)) {
      selection.add(talendPropertyTabDescriptor);
    }
  }
  tabFactory.setSelection(new StructuredSelection(){
    public List toList(){
      return selection;
    }
  }
);
}

Fixed version (ground truth):
public void selectTab(final EComponentCategory category){
  if (tabFactory.getSelection().getCategory().equals(category)) {
    return;
  }
  List<TalendPropertyTabDescriptor> allTabs=tabFactory.getInput();
  final List<TalendPropertyTabDescriptor> selection=new ArrayList<TalendPropertyTabDescriptor>();
  for (  TalendPropertyTabDescriptor talendPropertyTabDescriptor : allTabs) {
    if (talendPropertyTabDescriptor.getCategory().equals(category)) {
      selection.add(talendPropertyTabDescriptor);
    }
  }
  tabFactory.setSelection(new StructuredSelection(){
    @Override public List toList(){
      return selection;
    }
  }
);
}
Program: 122969
Project: 122969
Buggy source:
public List toList(){
  return selection;
}

Fixed version (ground truth):
@Override public List toList(){
  return selection;
}
Program: 122970
Project: 122970
Buggy source:
public void cleanDisplay(){
  tabFactory.setInput(null);
  tabFactory.setTitle(null,null);
  tabFactory.getTabbedPropertyComposite().getComposite().setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
  tabFactory.getTabbedPropertyComposite().getCompactButton().setVisible(false);
  tabFactory.getTabbedPropertyComposite().getTableButton().setVisible(false);
  if (tabFactory.getTabComposite() != null) {
    for (    Control curControl : tabFactory.getTabComposite().getChildren()) {
      curControl.dispose();
    }
  }
  this.element=null;
  cleaned=true;
  selectedPrimary=true;
}

Fixed version (ground truth):
@Override public void cleanDisplay(){
  tabFactory.setInput(null);
  tabFactory.setTitle(null,null);
  tabFactory.getTabbedPropertyComposite().getComposite().setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
  tabFactory.getTabbedPropertyComposite().getCompactButton().setVisible(false);
  tabFactory.getTabbedPropertyComposite().getTableButton().setVisible(false);
  if (tabFactory.getTabComposite() != null) {
    for (    Control curControl : tabFactory.getTabComposite().getChildren()) {
      curControl.dispose();
    }
  }
  this.element=null;
  cleaned=true;
  selectedPrimary=true;
}
Program: 122971
Project: 122971
Buggy source:
public void widgetDefaultSelected(SelectionEvent e){
}

Fixed version (ground truth):
@Override public void widgetDefaultSelected(SelectionEvent e){
}
Program: 122972
Project: 122972
Buggy source:
public Iterator iterator(){
  return null;
}

Fixed version (ground truth):
@Override public Iterator iterator(){
  return null;
}
Program: 122974
Project: 122974
Buggy source:
public Object[] toArray(){
  return null;
}

Fixed version (ground truth):
@Override public Object[] toArray(){
  return null;
}
Program: 122975
Project: 122975
Buggy source:
public void setElement(Element elem){
  if (currentSelectedTab != null && currentSelectedTab.getData().equals(elem) && !cleaned) {
    return;
  }
  EComponentCategory[] categories=getCategories(elem);
  final List<TalendPropertyTabDescriptor> descriptors=new ArrayList<TalendPropertyTabDescriptor>();
  for (  EComponentCategory category : categories) {
    TalendPropertyTabDescriptor d=new TalendPropertyTabDescriptor(category);
    d.setData(elem);
    descriptors.add(d);
  }
  tabFactory.setInput(descriptors);
  setPropertiesViewerTitle(elem);
  cleaned=false;
  tabFactory.setSelection(new IStructuredSelection(){
    public Object getFirstElement(){
      return null;
    }
    public Iterator iterator(){
      return null;
    }
    public int size(){
      return 0;
    }
    public Object[] toArray(){
      return null;
    }
    public List toList(){
      List<TalendPropertyTabDescriptor> d=new ArrayList<TalendPropertyTabDescriptor>();
      if (descriptors.size() > 0) {
        if (currentSelectedTab != null) {
          for (          TalendPropertyTabDescriptor ds : descriptors) {
            if (ds.getCategory() == currentSelectedTab.getCategory()) {
              d.add(ds);
              return d;
            }
          }
        }
        d.add(descriptors.get(0));
      }
      return d;
    }
    public boolean isEmpty(){
      return false;
    }
  }
);
}

Fixed version (ground truth):
@Override public void setElement(Element elem){
  if (currentSelectedTab != null && currentSelectedTab.getData().equals(elem) && !cleaned) {
    return;
  }
  EComponentCategory[] categories=getCategories(elem);
  final List<TalendPropertyTabDescriptor> descriptors=new ArrayList<TalendPropertyTabDescriptor>();
  for (  EComponentCategory category : categories) {
    TalendPropertyTabDescriptor d=new TalendPropertyTabDescriptor(category);
    d.setData(elem);
    descriptors.add(d);
  }
  tabFactory.setInput(descriptors);
  setPropertiesViewerTitle(elem);
  cleaned=false;
  tabFactory.setSelection(new IStructuredSelection(){
    @Override public Object getFirstElement(){
      return null;
    }
    @Override public Iterator iterator(){
      return null;
    }
    @Override public int size(){
      return 0;
    }
    @Override public Object[] toArray(){
      return null;
    }
    @Override public List toList(){
      List<TalendPropertyTabDescriptor> d=new ArrayList<TalendPropertyTabDescriptor>();
      if (descriptors.size() > 0) {
        if (currentSelectedTab != null) {
          for (          TalendPropertyTabDescriptor ds : descriptors) {
            if (ds.getCategory() == currentSelectedTab.getCategory()) {
              d.add(ds);
              return d;
            }
          }
        }
        d.add(descriptors.get(0));
      }
      return d;
    }
    @Override public boolean isEmpty(){
      return false;
    }
  }
);
}
Program: 122976
Project: 122976
Buggy source:
public void widgetSelected(SelectionEvent e){
  tabFactory.getTabbedPropertyComposite().setCompactView(false);
  getPreference().setValue(TalendDesignerPrefConstants.VIEW_OPTIONS,ComponentSettingsView.TABLEVIEW);
  tabFactory.getTabbedPropertyComposite().getCompactButton().setImage(ImageProvider.getImage(EImage.NO_COMPACT_VIEW));
  tabFactory.getTabbedPropertyComposite().getTableButton().setImage(ImageProvider.getImage(EImage.TABLE_VIEW));
  if (getDc() != null) {
    getDc().dispose();
    if (getParentMap().get(ComponentSettingsView.PARENT) != null && getCategoryMap().get(ComponentSettingsView.CATEGORY) != null) {
      dc=new MultipleThreadDynamicComposite(getParentMap().get(ComponentSettingsView.PARENT),SWT.H_SCROLL | SWT.V_SCROLL | SWT.NO_FOCUS,getCategoryMap().get(ComponentSettingsView.CATEGORY),element,false);
      dc.refresh();
    }
  }
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  tabFactory.getTabbedPropertyComposite().setCompactView(false);
  getPreference().setValue(TalendDesignerPrefConstants.VIEW_OPTIONS,ComponentSettingsView.TABLEVIEW);
  tabFactory.getTabbedPropertyComposite().getCompactButton().setImage(ImageProvider.getImage(EImage.NO_COMPACT_VIEW));
  tabFactory.getTabbedPropertyComposite().getTableButton().setImage(ImageProvider.getImage(EImage.TABLE_VIEW));
  if (getDc() != null) {
    getDc().dispose();
    if (getParentMap().get(ComponentSettingsView.PARENT) != null && getCategoryMap().get(ComponentSettingsView.CATEGORY) != null) {
      dc=new MultipleThreadDynamicComposite(getParentMap().get(ComponentSettingsView.PARENT),SWT.H_SCROLL | SWT.V_SCROLL | SWT.NO_FOCUS,getCategoryMap().get(ComponentSettingsView.CATEGORY),element,false);
      dc.refresh();
    }
  }
}
Program: 122977
Project: 122977
Buggy source:
public boolean isEmpty(){
  return false;
}

Fixed version (ground truth):
@Override public boolean isEmpty(){
  return false;
}
Program: 122979
Project: 122979
Buggy source:
public int size(){
  return 0;
}

Fixed version (ground truth):
@Override public int size(){
  return 0;
}
Program: 122980
Project: 122980
Buggy source:
public void selectionChanged(SelectionChangedEvent event){
  IStructuredSelection selection=(IStructuredSelection)event.getSelection();
  TalendPropertyTabDescriptor descriptor=(TalendPropertyTabDescriptor)selection.getFirstElement();
  if (descriptor == null) {
    return;
  }
  if (currentSelectedTab != null && (!currentSelectedTab.getData().equals(descriptor.getData()) || currentSelectedTab.getCategory() != descriptor.getCategory())) {
    for (    Control curControl : tabFactory.getTabComposite().getChildren()) {
      curControl.dispose();
    }
  }
  if (element == null || !element.equals(descriptor.getData()) || currentSelectedTab == null || currentSelectedTab.getCategory() != descriptor.getCategory() || selectedPrimary) {
    element=(Element)descriptor.getData();
    currentSelectedTab=descriptor;
    createDynamicComposite(tabFactory.getTabComposite(),(Element)descriptor.getData(),descriptor.getCategory());
    selectedPrimary=false;
  }
}

Fixed version (ground truth):
@Override public void selectionChanged(SelectionChangedEvent event){
  IStructuredSelection selection=(IStructuredSelection)event.getSelection();
  TalendPropertyTabDescriptor descriptor=(TalendPropertyTabDescriptor)selection.getFirstElement();
  if (descriptor == null) {
    return;
  }
  if (currentSelectedTab != null && (!currentSelectedTab.getData().equals(descriptor.getData()) || currentSelectedTab.getCategory() != descriptor.getCategory())) {
    for (    Control curControl : tabFactory.getTabComposite().getChildren()) {
      curControl.dispose();
    }
  }
  if (element == null || !element.equals(descriptor.getData()) || currentSelectedTab == null || currentSelectedTab.getCategory() != descriptor.getCategory() || selectedPrimary) {
    element=(Element)descriptor.getData();
    currentSelectedTab=descriptor;
    createDynamicComposite(tabFactory.getTabComposite(),(Element)descriptor.getData(),descriptor.getCategory());
    selectedPrimary=false;
  }
}
Program: 122981
Project: 122981
Buggy source:
@Override public void createPartControl(Composite parent){
  this.parent=parent;
  tabFactory.initComposite(parent,true);
  tabFactory.addSelectionChangedListener(new ISelectionChangedListener(){
    public void selectionChanged(    SelectionChangedEvent event){
      IStructuredSelection selection=(IStructuredSelection)event.getSelection();
      TalendPropertyTabDescriptor descriptor=(TalendPropertyTabDescriptor)selection.getFirstElement();
      if (descriptor == null) {
        return;
      }
      if (currentSelectedTab != null && (!currentSelectedTab.getData().equals(descriptor.getData()) || currentSelectedTab.getCategory() != descriptor.getCategory())) {
        for (        Control curControl : tabFactory.getTabComposite().getChildren()) {
          curControl.dispose();
        }
      }
      if (element == null || !element.equals(descriptor.getData()) || currentSelectedTab == null || currentSelectedTab.getCategory() != descriptor.getCategory() || selectedPrimary) {
        element=(Element)descriptor.getData();
        currentSelectedTab=descriptor;
        createDynamicComposite(tabFactory.getTabComposite(),(Element)descriptor.getData(),descriptor.getCategory());
        selectedPrimary=false;
      }
    }
  }
);
}

Fixed version (ground truth):
@Override public void createPartControl(Composite parent){
  this.parent=parent;
  tabFactory.initComposite(parent,true);
  tabFactory.addSelectionChangedListener(new ISelectionChangedListener(){
    @Override public void selectionChanged(    SelectionChangedEvent event){
      IStructuredSelection selection=(IStructuredSelection)event.getSelection();
      TalendPropertyTabDescriptor descriptor=(TalendPropertyTabDescriptor)selection.getFirstElement();
      if (descriptor == null) {
        return;
      }
      if (currentSelectedTab != null && (!currentSelectedTab.getData().equals(descriptor.getData()) || currentSelectedTab.getCategory() != descriptor.getCategory())) {
        for (        Control curControl : tabFactory.getTabComposite().getChildren()) {
          curControl.dispose();
        }
      }
      if (element == null || !element.equals(descriptor.getData()) || currentSelectedTab == null || currentSelectedTab.getCategory() != descriptor.getCategory() || selectedPrimary) {
        element=(Element)descriptor.getData();
        currentSelectedTab=descriptor;
        createDynamicComposite(tabFactory.getTabComposite(),(Element)descriptor.getData(),descriptor.getCategory());
        selectedPrimary=false;
      }
    }
  }
);
}
Program: 122982
Project: 122982
Buggy source:
public Object getFirstElement(){
  return null;
}

Fixed version (ground truth):
@Override public Object getFirstElement(){
  return null;
}
Program: 122984
Project: 122984
Buggy source:
public void widgetSelected(SelectionEvent e){
  Command cmd=createCommand(e);
  if (cmd instanceof ChangeMetadataCommand) {
    ((ChangeMetadataCommand)cmd).setConnection(getConnection());
  }
  executeCommand(cmd);
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  Command cmd=createCommand(e);
  if (cmd instanceof ChangeMetadataCommand) {
    ((ChangeMetadataCommand)cmd).setConnection(getConnection());
  }
  executeCommand(cmd);
}
Program: 122985
Project: 122985
Buggy source:
public void widgetDefaultSelected(SelectionEvent e){
}

Fixed version (ground truth):
@Override public void widgetDefaultSelected(SelectionEvent e){
}
Program: 122986
Project: 122986
Buggy source:
public void propertyChange(PropertyChangeEvent evt){
}

Fixed version (ground truth):
@Override public void propertyChange(PropertyChangeEvent evt){
}
Program: 122989
Project: 122989
Buggy source:
/** 
 * qzhang Comment method "createCommand".
 * @param button
 * @return
 */
protected void createListTablesCommand(Button button,IContextManager manager){
  initConnectionParameters();
  if (this.connParameters != null) {
    if (isUseExistingConnection()) {
      initConnectionParametersWithContext(connectionNode,manager.getDefaultContext());
    }
 else {
      initConnectionParametersWithContext(elem,manager.getDefaultContext());
    }
    openDbTableSelectorJob(button);
  }
 else {
    MessageDialog.openWarning(button.getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
  }
}

Fixed version (ground truth):
/** 
 * qzhang Comment method "createCommand".
 * @param button
 * @return
 */
protected void createListTablesCommand(Button button,IContextManager manager){
  initConnectionParameters();
  if (this.connParameters != null) {
    if (isUseExistingConnection() && !isConnectionExist()) {
      initConnectionParametersWithContext(connectionNode,manager.getDefaultContext());
    }
 else {
      initConnectionParametersWithContext(elem,manager.getDefaultContext());
    }
    openDbTableSelectorJob(button);
  }
 else {
    MessageDialog.openWarning(button.getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
  }
}
Program: 122991
Project: 122991
Buggy source:
/** 
 * DOC Administrator Comment method "saveDocumentation".
 * @param item
 */
protected void saveDocumentation(Item item){
  if (item instanceof ProcessItem || item instanceof JobletProcessItem) {
    boolean isAutoSaveDocumentation=CorePlugin.getDefault().getPreferenceStore().getBoolean(ITalendCorePrefConstants.DOC_GENERATION);
    if (isAutoSaveDocumentation) {
      IDocumentationService service=(IDocumentationService)GlobalServiceRegister.getDefault().getService(IDocumentationService.class);
      try {
        service.createNodeDocumentationItemFromItem(item);
      }
 catch (      Exception e) {
        ExceptionHandler.process(e);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * DOC Administrator Comment method "saveDocumentation".
 * @param item
 */
protected void saveDocumentation(Item item){
  if (item instanceof ProcessItem || item instanceof JobletProcessItem) {
    boolean isAutoSaveDocumentation=CorePlugin.getDefault().getPreferenceStore().getBoolean(ITalendCorePrefConstants.DOC_GENERATION);
    if (isAutoSaveDocumentation) {
      if (GlobalServiceRegister.getDefault() != null && GlobalServiceRegister.getDefault().isServiceRegistered(IDocumentationService.class)) {
        IDocumentationService service=(IDocumentationService)GlobalServiceRegister.getDefault().getService(IDocumentationService.class);
        try {
          service.createNodeDocumentationItemFromItem(item);
        }
 catch (        Exception e) {
          ExceptionHandler.process(e);
        }
      }
    }
  }
}
Program: 122993
Project: 122993
Buggy source:
/** 
 * DOC Administrator Comment method "saveDocumentation".
 * @param item
 */
protected void saveDocumentation(Item item){
  if (item instanceof ProcessItem || item instanceof JobletProcessItem) {
    boolean isAutoSaveDocumentation=CorePlugin.getDefault().getPreferenceStore().getBoolean(ITalendCorePrefConstants.DOC_GENERATION);
    if (isAutoSaveDocumentation) {
      IDocumentationService service=(IDocumentationService)GlobalServiceRegister.getDefault().getService(IDocumentationService.class);
      try {
        service.createNodeDocumentationItemFromItem(item);
      }
 catch (      Exception e) {
        ExceptionHandler.process(e);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * DOC Administrator Comment method "saveDocumentation".
 * @param item
 */
protected void saveDocumentation(Item item){
  if (item instanceof ProcessItem || item instanceof JobletProcessItem) {
    boolean isAutoSaveDocumentation=CorePlugin.getDefault().getPreferenceStore().getBoolean(ITalendCorePrefConstants.DOC_GENERATION);
    if (isAutoSaveDocumentation) {
      if (GlobalServiceRegister.getDefault() != null && GlobalServiceRegister.getDefault().isServiceRegistered(IDocumentationService.class)) {
        IDocumentationService service=(IDocumentationService)GlobalServiceRegister.getDefault().getService(IDocumentationService.class);
        try {
          service.createNodeDocumentationItemFromItem(item);
        }
 catch (        Exception e) {
          ExceptionHandler.process(e);
        }
      }
    }
  }
}
Program: 122996
Project: 122996
Buggy source:
protected void addListeners(){
  clearTracePerfBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (processContext == null) {
        clearTracePerfBtn.setEnabled(false);
        return;
      }
      ClearPerformanceAction clearPerfAction=new ClearPerformanceAction();
      clearPerfAction.setProcess(processContext.getProcess());
      clearPerfAction.run();
      ClearTraceAction clearTraceAction=new ClearTraceAction();
      clearTraceAction.setProcess(processContext.getProcess());
      clearTraceAction.run();
    }
  }
);
  killBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent e){
      kill();
    }
  }
);
}

Fixed version (ground truth):
protected void addListeners(){
  clearTracePerfBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (processContext == null) {
        clearTracePerfBtn.setEnabled(false);
        return;
      }
      ClearPerformanceAction clearPerfAction=new ClearPerformanceAction();
      clearPerfAction.setProcess(processContext.getProcess());
      clearPerfAction.run();
      ClearTraceAction clearTraceAction=new ClearTraceAction();
      clearTraceAction.setProcess(processContext.getProcess());
      clearTraceAction.run();
      consoleText.setText("String_Node_Str");
      processContext.clearMessages();
    }
  }
);
  killBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent e){
      kill();
    }
  }
);
}
Program: 122998
Project: 122998
Buggy source:
/** 
 * DOC Administrator Comment method "saveDocumention".
 * @param item
 */
private void saveDocumention(Item item){
  if (item instanceof ProcessItem || item instanceof JobletProcessItem) {
    boolean isAutoSaveDocumentation=CorePlugin.getDefault().getPreferenceStore().getBoolean(ITalendCorePrefConstants.DOC_GENERATION);
    if (isAutoSaveDocumentation) {
      IDocumentationService service=(IDocumentationService)GlobalServiceRegister.getDefault().getService(IDocumentationService.class);
      try {
        service.createNodeDocumentationItemFromItem(item);
      }
 catch (      Exception e) {
        ExceptionHandler.process(e);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * DOC Administrator Comment method "saveDocumention".
 * @param item
 */
private void saveDocumention(Item item){
  if (item instanceof ProcessItem || item instanceof JobletProcessItem) {
    boolean isAutoSaveDocumentation=CorePlugin.getDefault().getPreferenceStore().getBoolean(ITalendCorePrefConstants.DOC_GENERATION);
    if (isAutoSaveDocumentation) {
      if (GlobalServiceRegister.getDefault() != null && GlobalServiceRegister.getDefault().isServiceRegistered(IDocumentationService.class)) {
        IDocumentationService service=(IDocumentationService)GlobalServiceRegister.getDefault().getService(IDocumentationService.class);
        try {
          service.createNodeDocumentationItemFromItem(item);
        }
 catch (        Exception e) {
          ExceptionHandler.process(e);
        }
      }
    }
  }
}
Program: 123000
Project: 123000
Buggy source:
public int getCurRowSize(){
  return 0;
}

Fixed version (ground truth):
@Override public int getCurRowSize(){
  return 0;
}
Program: 123002
Project: 123002
Buggy source:
public void refreshProgress(IProcessMessage psMess,Node node,String nodeUniqueName){
  String mess="String_Node_Str";
  String uniqueName="String_Node_Str";
  String[] message=psMess.getContent().split("String_Node_Str");
  for (int i=0; i < message.length; i++) {
    if (isPattern(message[i])) {
      int firIndex=message[i].indexOf("String_Node_Str");
      int secIndex=message[i].indexOf("String_Node_Str");
      uniqueName=message[i].substring(0,firIndex);
      mess=message[i].substring(firIndex + 1,secIndex);
    }
    Double extentPro=new Double(0);
    if ((!"String_Node_Str".equals(mess)) && mess != null) {
      extentPro=Double.parseDouble(mess);
    }
    if (((extend != extentPro) && nodeUniqueName.equals(uniqueName))) {
      node.getNodeProgressBar().updateState("String_Node_Str",extentPro);
      extend=extentPro;
    }
  }
}

Fixed version (ground truth):
public void refreshProgress(IProcessMessage psMess,Node node,String nodeUniqueName){
  String mess="String_Node_Str";
  String uniqueName="String_Node_Str";
  String[] message=psMess.getContent().split("String_Node_Str");
  for (  String element : message) {
    if (isPattern(element)) {
      int firIndex=element.indexOf("String_Node_Str");
      int secIndex=element.indexOf("String_Node_Str");
      uniqueName=element.substring(0,firIndex);
      mess=element.substring(firIndex + 1,secIndex);
    }
    Double extentPro=new Double(0);
    if ((!"String_Node_Str".equals(mess)) && mess != null) {
      extentPro=Double.parseDouble(mess);
    }
    if (((extend != extentPro) && nodeUniqueName.equals(uniqueName))) {
      node.getNodeProgressBar().updateState("String_Node_Str",extentPro);
      extend=extentPro;
    }
  }
}
Program: 123003
Project: 123003
Buggy source:
public EComponentCategory getSection(){
  return EComponentCategory.BASICRUN;
}

Fixed version (ground truth):
@Override public EComponentCategory getSection(){
  return EComponentCategory.BASICRUN;
}
Program: 123004
Project: 123004
Buggy source:
public void propertyChange(PropertyChangeEvent evt){
  runProcessContextChanged(evt);
}

Fixed version (ground truth):
@Override public void propertyChange(PropertyChangeEvent evt){
  runProcessContextChanged(evt);
}
Program: 123005
Project: 123005
Buggy source:
protected void setRunnable(boolean runnable){
  if (clearTracePerfBtn != null && !clearTracePerfBtn.isDisposed())   clearTracePerfBtn.setEnabled(runnable);
  setExecBtn(runnable);
  if (enableLineLimitButton != null && !enableLineLimitButton.isDisposed())   enableLineLimitButton.setEnabled(runnable);
  if (lineLimitText != null && !lineLimitText.isDisposed())   lineLimitText.setEnabled(runnable);
  if (wrapButton != null && !wrapButton.isDisposed()) {
    wrapButton.setEnabled(runnable);
  }
}

Fixed version (ground truth):
protected void setRunnable(boolean runnable){
  if (clearTracePerfBtn != null && !clearTracePerfBtn.isDisposed()) {
    clearTracePerfBtn.setEnabled(runnable);
  }
  setExecBtn(runnable);
  if (enableLineLimitButton != null && !enableLineLimitButton.isDisposed()) {
    enableLineLimitButton.setEnabled(runnable);
  }
  if (lineLimitText != null && !lineLimitText.isDisposed()) {
    lineLimitText.setEnabled(runnable);
  }
  if (wrapButton != null && !wrapButton.isDisposed()) {
    wrapButton.setEnabled(runnable);
  }
}
Program: 123006
Project: 123006
Buggy source:
public void keyPressed(KeyEvent evt){
  if ((evt.stateMask == SWT.CTRL) && (evt.keyCode == 'a')) {
    if (consoleText.getText().length() > 0)     consoleText.setSelection(0,(consoleText.getText().length() - 1));
  }
 else   if ((evt.stateMask == SWT.CTRL) && (evt.keyCode == 'f')) {
    FindDialog td=new FindDialog(Display.getCurrent().getActiveShell());
    td.setConsoleText(consoleText);
    td.setBlockOnOpen(true);
    td.open();
  }
}

Fixed version (ground truth):
@Override public void keyPressed(KeyEvent evt){
  if ((evt.stateMask == SWT.CTRL) && (evt.keyCode == 'a')) {
    if (consoleText.getText().length() > 0) {
      consoleText.setSelection(0,(consoleText.getText().length() - 1));
    }
  }
 else   if ((evt.stateMask == SWT.CTRL) && (evt.keyCode == 'f')) {
    FindDialog td=new FindDialog(Display.getCurrent().getActiveShell());
    td.setConsoleText(consoleText);
    td.setBlockOnOpen(true);
    td.open();
  }
}
Program: 123007
Project: 123007
Buggy source:
public void setCurRowSize(int i){
}

Fixed version (ground truth):
@Override public void setCurRowSize(int i){
}
Program: 123008
Project: 123008
Buggy source:
public Composite getComposite(){
  return composite;
}

Fixed version (ground truth):
@Override public Composite getComposite(){
  return composite;
}
Program: 123010
Project: 123010
Buggy source:
public void modifyText(ModifyEvent e){
  RunProcessPlugin.getDefault().getPluginPreferences().setValue(RunprocessConstants.CONSOLE_LINE_LIMIT_COUNT,lineLimitText.getText());
}

Fixed version (ground truth):
@Override public void modifyText(ModifyEvent e){
  RunProcessPlugin.getDefault().getPluginPreferences().setValue(RunprocessConstants.CONSOLE_LINE_LIMIT_COUNT,lineLimitText.getText());
}
Program: 123012
Project: 123012
Buggy source:
protected void addListeners(){
  clearTracePerfBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (processContext == null) {
        clearTracePerfBtn.setEnabled(false);
        return;
      }
      ClearPerformanceAction clearPerfAction=new ClearPerformanceAction();
      clearPerfAction.setProcess(processContext.getProcess());
      clearPerfAction.run();
      ClearTraceAction clearTraceAction=new ClearTraceAction();
      clearTraceAction.setProcess(processContext.getProcess());
      clearTraceAction.run();
    }
  }
);
  killBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent e){
      kill();
    }
  }
);
}

Fixed version (ground truth):
protected void addListeners(){
  clearTracePerfBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (processContext == null) {
        clearTracePerfBtn.setEnabled(false);
        return;
      }
      ClearPerformanceAction clearPerfAction=new ClearPerformanceAction();
      clearPerfAction.setProcess(processContext.getProcess());
      clearPerfAction.run();
      ClearTraceAction clearTraceAction=new ClearTraceAction();
      clearTraceAction.setProcess(processContext.getProcess());
      clearTraceAction.run();
      consoleText.setText("String_Node_Str");
      processContext.clearMessages();
    }
  }
);
  killBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent e){
      kill();
    }
  }
);
}
Program: 123014
Project: 123014
Buggy source:
public void handleEvent(Event e){
  String s=e.text;
  if (!s.equals("String_Node_Str")) {
    try {
      Integer.parseInt(s);
      RunProcessPlugin.getDefault().getPluginPreferences().setValue(RunprocessConstants.CONSOLE_LINE_LIMIT_COUNT,lineLimitText.getText() + s);
    }
 catch (    Exception ex) {
      e.doit=false;
    }
  }
}

Fixed version (ground truth):
@Override public void handleEvent(Event e){
  String s=e.text;
  if (!s.equals("String_Node_Str")) {
    try {
      Integer.parseInt(s);
      RunProcessPlugin.getDefault().getPluginPreferences().setValue(RunprocessConstants.CONSOLE_LINE_LIMIT_COUNT,lineLimitText.getText() + s);
    }
 catch (    Exception ex) {
      e.doit=false;
    }
  }
}
Program: 123015
Project: 123015
Buggy source:
public Map<String,String> getTableIdAndDbTypeMap(){
  return null;
}

Fixed version (ground truth):
@Override public Map<String,String> getTableIdAndDbTypeMap(){
  return null;
}
Program: 123016
Project: 123016
Buggy source:
private void runProcessContextChanged(final PropertyChangeEvent evt){
  String propName=evt.getPropertyName();
  if (ProcessMessageManager.PROP_MESSAGE_ADD.equals(propName) || ProcessMessageManager.PROP_DEBUG_MESSAGE_ADD.equals(propName)) {
    IProcessMessage psMess=(IProcessMessage)evt.getNewValue();
    if (errorMessMap.size() <= CorePlugin.getDefault().getPreferenceStore().getInt(ITalendCorePrefConstants.PREVIEW_LIMIT)) {
      if (!(LanguageManager.getCurrentLanguage().equals(ECodeLanguage.PERL))) {
        getAllErrorMess(psMess);
      }
 else {
        addPerlMark(psMess);
      }
    }
    appendToConsole(psMess);
  }
 else   if (ProcessMessageManager.PROP_MESSAGE_CLEAR.equals(propName)) {
    getDisplay().asyncExec(new Runnable(){
      public void run(){
        if (!consoleText.isDisposed()) {
          consoleText.setText("String_Node_Str");
        }
      }
    }
);
  }
 else   if (RunProcessContext.PROP_MONITOR.equals(propName)) {
  }
 else   if (RunProcessContext.TRACE_MONITOR.equals(propName)) {
  }
 else   if (RunProcessContext.PROP_RUNNING.equals(propName)) {
    getDisplay().asyncExec(new Runnable(){
      public void run(){
        if (isDisposed()) {
          return;
        }
        boolean running=((Boolean)evt.getNewValue()).booleanValue();
        setRunnable(!running);
        killBtn.setEnabled(running);
      }
    }
);
  }
}

Fixed version (ground truth):
private void runProcessContextChanged(final PropertyChangeEvent evt){
  String propName=evt.getPropertyName();
  if (ProcessMessageManager.PROP_MESSAGE_ADD.equals(propName) || ProcessMessageManager.PROP_DEBUG_MESSAGE_ADD.equals(propName)) {
    IProcessMessage psMess=(IProcessMessage)evt.getNewValue();
    if (errorMessMap.size() <= CorePlugin.getDefault().getPreferenceStore().getInt(ITalendCorePrefConstants.PREVIEW_LIMIT)) {
      if (!(LanguageManager.getCurrentLanguage().equals(ECodeLanguage.PERL))) {
        getAllErrorMess(psMess);
      }
 else {
        addPerlMark(psMess);
      }
    }
    appendToConsole(psMess);
  }
 else   if (ProcessMessageManager.PROP_MESSAGE_CLEAR.equals(propName)) {
    getDisplay().asyncExec(new Runnable(){
      @Override public void run(){
        if (!consoleText.isDisposed()) {
          consoleText.setText("String_Node_Str");
        }
      }
    }
);
  }
 else   if (RunProcessContext.PROP_MONITOR.equals(propName)) {
  }
 else   if (RunProcessContext.TRACE_MONITOR.equals(propName)) {
  }
 else   if (RunProcessContext.PROP_RUNNING.equals(propName)) {
    getDisplay().asyncExec(new Runnable(){
      @Override public void run(){
        if (isDisposed()) {
          return;
        }
        boolean running=((Boolean)evt.getNewValue()).booleanValue();
        setRunnable(!running);
        killBtn.setEnabled(running);
      }
    }
);
  }
}
Program: 123017
Project: 123017
Buggy source:
public void streamAppended(String text,IStreamMonitor monitor){
  IProcessMessage message=new ProcessMessage(ProcessMessage.MsgType.STD_OUT,text);
  processContext.addDebugResultToConsole(message);
}

Fixed version (ground truth):
@Override public void streamAppended(String text,IStreamMonitor monitor){
  IProcessMessage message=new ProcessMessage(ProcessMessage.MsgType.STD_OUT,text);
  processContext.addDebugResultToConsole(message);
}
Program: 123018
Project: 123018
Buggy source:
public void keyReleased(KeyEvent arg0){
}

Fixed version (ground truth):
@Override public void keyReleased(KeyEvent arg0){
}
Program: 123020
Project: 123020
Buggy source:
public void refresh(){
  if (!isDisposed()) {
    getParent().layout();
  }
}

Fixed version (ground truth):
@Override public void refresh(){
  if (!isDisposed()) {
    getParent().layout();
  }
}