nus-yam/ex-repair huggingface dataset:
Program: 148896
Project: 148896
Buggy source:
private void inferXsdFromDataModule(String xmlFile){
  WSDataModel wsObject=(WSDataModel)(getXObject().getWsObject());
  XSDDriver d=new XSDDriver();
  if (d.outputXSD(wsObject.getXsdSchema(),xmlFile) != null) {
    MessageDialog.openInformation(getSite().getShell(),"String_Node_Str","String_Node_Str");
  }
 else {
    MessageDialog.openError(getSite().getShell(),"String_Node_Str","String_Node_Str");
  }
}

Fixed version (ground truth):
private void inferXsdFromDataModule(String xmlFile){
  WSDataModel wsObject=(WSDataModel)(getXObject().getWsObject());
  XSDDriver d=new XSDDriver();
  if (d.outputXSD_UTF_8(wsObject.getXsdSchema(),xmlFile) != null) {
    MessageDialog.openInformation(getSite().getShell(),"String_Node_Str","String_Node_Str");
  }
 else {
    MessageDialog.openError(getSite().getShell(),"String_Node_Str","String_Node_Str");
  }
}
Program: 148898
Project: 148898
Buggy source:
public void setLazySaveStrategy(boolean lazy){
  lazySave=lazy;
}

Fixed version (ground truth):
public void setLazySaveStrategy(boolean lazy,TreeParent parent){
  lazySave=lazy;
  saveDocument(parent);
}
Program: 148901
Project: 148901
Buggy source:
public XSDGetXPathAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.XPATH.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public XSDGetXPathAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.COPY.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148902
Project: 148902
Buggy source:
public XSDSetAnnotationForeignKeyAction(DataModelMainPage page,String dataModelName){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.KEY.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
  this.dataModelName=dataModelName;
}

Fixed version (ground truth):
public XSDSetAnnotationForeignKeyAction(DataModelMainPage page,String dataModelName){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.PRIMARYKEY.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
  this.dataModelName=dataModelName;
}
Program: 148905
Project: 148905
Buggy source:
protected void createTable(){
  table=new Table(mainComposite,SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL| SWT.BORDER| SWT.FULL_SELECTION);
  viewer=new TableViewer(table);
  table.setToolTipText("String_Node_Str");
  for (  ComplexTableViewerColumn column : columns) {
    TableColumn tableColumn=new TableColumn(table,SWT.CENTER);
    tableColumn.setText(column.getName());
    if (!column.isNillable()) {
      tableColumn.setImage(ImageCache.getCreatedImage(EImage.WILDCARD.getPath()));
    }
    if (column.isUnique()) {
      tableColumn.setImage(ImageCache.getCreatedImage(EImage.KEYS.getPath()));
    }
    if (column.getColumnWidth() > 0) {
      tableColumn.setWidth(column.getColumnWidth());
    }
 else {
      tableColumn.setWidth(200);
      tableColumn.pack();
    }
  }
  table.setHeaderVisible(true);
  table.setLinesVisible(true);
  table.addListener(SWT.MeasureItem,new Listener(){
    public void handleEvent(    Event event){
      event.height=event.gc.getFontMetrics().getHeight() + 5;
    }
  }
);
}

Fixed version (ground truth):
protected void createTable(){
  table=new Table(mainComposite,SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL| SWT.BORDER| SWT.FULL_SELECTION);
  viewer=new TableViewer(table);
  table.setToolTipText("String_Node_Str");
  for (  ComplexTableViewerColumn column : columns) {
    TableColumn tableColumn=new TableColumn(table,SWT.CENTER);
    tableColumn.setText(column.getName());
    if (!column.isNillable()) {
      tableColumn.setImage(ImageCache.getCreatedImage(EImage.WILDCARD.getPath()));
    }
    if (column.isUnique()) {
      tableColumn.setImage(ImageCache.getCreatedImage(EImage.UNIQUE.getPath()));
    }
    if (column.getColumnWidth() > 0) {
      tableColumn.setWidth(column.getColumnWidth());
    }
 else {
      tableColumn.setWidth(200);
      tableColumn.pack();
    }
  }
  table.setHeaderVisible(true);
  table.setLinesVisible(true);
  table.addListener(SWT.MeasureItem,new Listener(){
    public void handleEvent(    Event event){
      event.height=event.gc.getFontMetrics().getHeight() + 5;
    }
  }
);
}
Program: 148906
Project: 148906
Buggy source:
private Object[] filterOutDuplicatedElems(List<XSDElementDeclaration> xsdElementDeclarations){
  List<XSDElementDeclaration> list=new ArrayList<XSDElementDeclaration>();
  for (  XSDElementDeclaration el : (XSDElementDeclaration[])xsdElementDeclarations.toArray(new XSDElementDeclaration[xsdElementDeclarations.size()])) {
    boolean exist=false;
    for (    XSDElementDeclaration xsdEl : list) {
      if (xsdEl.getName().equals(el.getName()) && xsdEl.getTargetNamespace() != null && el.getTargetNamespace() != null && xsdEl.getTargetNamespace().equals(el.getTargetNamespace())) {
        exist=true;
        break;
      }
    }
    if (!exist) {
      if ((conceptName != null && el.getName().equals(conceptName)) || conceptName == null)       list.add(el);
    }
  }
  return list.toArray(new Object[]{});
}

Fixed version (ground truth):
private Object[] filterOutDuplicatedElems(List<XSDElementDeclaration> xsdElementDeclarations){
  List<XSDElementDeclaration> list=new ArrayList<XSDElementDeclaration>();
  for (  XSDElementDeclaration el : (XSDElementDeclaration[])xsdElementDeclarations.toArray(new XSDElementDeclaration[xsdElementDeclarations.size()])) {
    boolean exist=false;
    for (    XSDElementDeclaration xsdEl : list) {
      if (xsdEl.getName().equals(el.getName()) && xsdEl.getTargetNamespace() != null && el.getTargetNamespace() != null && xsdEl.getTargetNamespace().equals(el.getTargetNamespace())) {
        exist=true;
        break;
      }
 else       if (xsdEl.getName().equals(el.getName()) && xsdEl.getTargetNamespace() == null && el.getTargetNamespace() == null) {
        exist=true;
        break;
      }
    }
    if (!exist) {
      if ((conceptName != null && el.getName().equals(conceptName)) || (conceptName == null && (el.getTargetNamespace() != null && !el.getTargetNamespace().equals(XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001)) || el.getTargetNamespace() == null))       list.add(el);
    }
  }
  return list.toArray();
}
Program: 148908
Project: 148908
Buggy source:
public void run(){
  IStructuredSelection selection=(IStructuredSelection)page.getTreeViewer().getSelection();
  declList.clear();
  List list=selection.toList();
  for (  Object obj : list) {
    if (obj instanceof XSDElementDeclaration) {
      XSDElementDeclaration declaration=(XSDElementDeclaration)obj;
      if (Util.getParent(obj) == obj)       declList.add(declaration);
    }
  }
  AddBrowseItemsWizard wizard=new AddBrowseItemsWizard(page,declList);
  WizardDialog dialog=new WizardDialog(page.getSite().getShell(),wizard);
  dialog.open();
}

Fixed version (ground truth):
public void run(){
  if (page.isDirty()) {
    boolean save=MessageDialog.openConfirm(page.getSite().getShell(),"String_Node_Str","String_Node_Str" + page.getXObject().getDisplayName() + "String_Node_Str");
    if (save)     page.getEditor().doSave(new NullProgressMonitor());
 else     return;
  }
  IStructuredSelection selection=(IStructuredSelection)page.getTreeViewer().getSelection();
  declList.clear();
  List list=selection.toList();
  for (  Object obj : list) {
    if (obj instanceof XSDElementDeclaration) {
      XSDElementDeclaration declaration=(XSDElementDeclaration)obj;
      if (Util.getParent(obj) == obj)       declList.add(declaration);
    }
  }
  AddBrowseItemsWizard wizard=new AddBrowseItemsWizard(page,declList);
  WizardDialog dialog=new WizardDialog(page.getSite().getShell(),wizard);
  dialog.open();
}
Program: 148912
Project: 148912
Buggy source:
public void doubleClick(DoubleClickEvent event){
  ISelection selection=ServerView.this.getViewer().getSelection();
  TreeObject xo=(TreeObject)((IStructuredSelection)selection).getFirstElement();
  if (xo.getType() == TreeObject._ACTION_) {
    Class<?> actionClass=(Class<?>)xo.getWsKey();
    try {
      AServerViewAction action=(AServerViewAction)actionClass.newInstance();
      action.setServerView(ServerView.this);
      action.run();
    }
 catch (    Exception ex) {
      MessageDialog.openError(viewer.getControl().getShell(),"String_Node_Str","String_Node_Str");
    }
    return;
  }
  if (xo.getType() == TreeObject.WORKFLOW)   return;
  if (xo.getType() == TreeObject.SUBSCRIPTION_ENGINE || xo.getType() == TreeObject.DATA_CLUSTER || xo.getType() == TreeObject.WORKFLOW_PROCESS)   browseViewAction.run();
 else   editXObjectAction.run();
}

Fixed version (ground truth):
public void doubleClick(DoubleClickEvent event){
  ISelection selection=ServerView.this.getViewer().getSelection();
  TreeObject xo=(TreeObject)((IStructuredSelection)selection).getFirstElement();
  if (xo.getType() == TreeObject._ACTION_) {
    Class<?> actionClass=(Class<?>)xo.getWsKey();
    try {
      AServerViewAction action=(AServerViewAction)actionClass.newInstance();
      action.setServerView(ServerView.this);
      action.run();
    }
 catch (    Exception ex) {
      MessageDialog.openError(viewer.getControl().getShell(),"String_Node_Str","String_Node_Str");
    }
    return;
  }
  if (xo.getType() == TreeObject.WORKFLOW)   return;
  if (xo.getType() == TreeObject.SUBSCRIPTION_ENGINE || (xo.getType() == TreeObject.DATA_CLUSTER && xo.isXObject()) || xo.getType() == TreeObject.WORKFLOW_PROCESS)   browseViewAction.run();
 else   editXObjectAction.run();
}
Program: 148913
Project: 148913
Buggy source:
private void hookDoubleClickAction(){
  viewer.addDoubleClickListener(new IDoubleClickListener(){
    public void doubleClick(    DoubleClickEvent event){
      ISelection selection=ServerView.this.getViewer().getSelection();
      TreeObject xo=(TreeObject)((IStructuredSelection)selection).getFirstElement();
      if (xo.getType() == TreeObject._ACTION_) {
        Class<?> actionClass=(Class<?>)xo.getWsKey();
        try {
          AServerViewAction action=(AServerViewAction)actionClass.newInstance();
          action.setServerView(ServerView.this);
          action.run();
        }
 catch (        Exception ex) {
          MessageDialog.openError(viewer.getControl().getShell(),"String_Node_Str","String_Node_Str");
        }
        return;
      }
      if (xo.getType() == TreeObject.WORKFLOW)       return;
      if (xo.getType() == TreeObject.SUBSCRIPTION_ENGINE || xo.getType() == TreeObject.DATA_CLUSTER || xo.getType() == TreeObject.WORKFLOW_PROCESS)       browseViewAction.run();
 else       editXObjectAction.run();
    }
  }
);
}

Fixed version (ground truth):
private void hookDoubleClickAction(){
  viewer.addDoubleClickListener(new IDoubleClickListener(){
    public void doubleClick(    DoubleClickEvent event){
      ISelection selection=ServerView.this.getViewer().getSelection();
      TreeObject xo=(TreeObject)((IStructuredSelection)selection).getFirstElement();
      if (xo.getType() == TreeObject._ACTION_) {
        Class<?> actionClass=(Class<?>)xo.getWsKey();
        try {
          AServerViewAction action=(AServerViewAction)actionClass.newInstance();
          action.setServerView(ServerView.this);
          action.run();
        }
 catch (        Exception ex) {
          MessageDialog.openError(viewer.getControl().getShell(),"String_Node_Str","String_Node_Str");
        }
        return;
      }
      if (xo.getType() == TreeObject.WORKFLOW)       return;
      if (xo.getType() == TreeObject.SUBSCRIPTION_ENGINE || (xo.getType() == TreeObject.DATA_CLUSTER && xo.isXObject()) || xo.getType() == TreeObject.WORKFLOW_PROCESS)       browseViewAction.run();
 else       editXObjectAction.run();
    }
  }
);
}
Program: 148916
Project: 148916
Buggy source:
private void create(){
  GridData gd=new GridData(SWT.RIGHT,SWT.TOP,true,true,1,1);
  if (label.length() > 0) {
    Label label=factory.createLabel(parent,this.label);
    label.setText(this.label);
    label.setLayoutData(gd);
  }
  text=factory.createText(parent,"String_Node_Str",SWT.MULTI | SWT.BORDER);
  if (label.length() > 0) {
    gd=new GridData(SWT.FILL,SWT.FILL,true,true,1,1);
  }
 else {
    gd=new GridData(SWT.FILL,SWT.FILL,true,true,2,1);
  }
  text.setLayoutData(gd);
  text.setText("String_Node_Str");
  button=new Button(parent,SWT.PUSH);
  button.setText("String_Node_Str");
  button.setImage(ImageCache.getCreatedImage(EImage.DOTS_BUTTON.getPath()));
  gd=new GridData(SWT.LEFT,SWT.FILL,false,true,1,1);
  button.setLayoutData(gd);
  button.setToolTipText("String_Node_Str");
  button.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent e){
    }
    public void widgetSelected(    SelectionEvent e){
      if (isFile) {
        FileDialog fileDialog=new FileDialog(parent.getShell(),SWT.OPEN);
        fileDialog.setFilterExtensions(fileExtents);
        fileDialog.setFileName(filename);
        String name=fileDialog.open();
        if (name != null) {
          text.setText(name);
        }
      }
 else {
        DirectoryDialog d=new DirectoryDialog(parent.getShell());
        String name=d.open();
        if (name != null)         text.setText(name);
      }
    }
  }
);
}

Fixed version (ground truth):
private void create(){
  GridData gd=new GridData(SWT.RIGHT,SWT.TOP,true,true,1,1);
  if (label.length() > 0) {
    Label label=factory.createLabel(parent,this.label);
    label.setText(this.label);
    label.setLayoutData(gd);
  }
  text=factory.createText(parent,"String_Node_Str",SWT.MULTI | SWT.BORDER);
  gd=new GridData(SWT.FILL,SWT.TOP,true,false,1,1);
  text.setLayoutData(gd);
  text.setText("String_Node_Str");
  button=new Button(parent,SWT.PUSH);
  button.setText("String_Node_Str");
  button.setImage(ImageCache.getCreatedImage(EImage.DOTS_BUTTON.getPath()));
  gd=new GridData(SWT.RIGHT,SWT.TOP,false,false,1,1);
  button.setLayoutData(gd);
  button.setToolTipText("String_Node_Str");
  button.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent e){
    }
    public void widgetSelected(    SelectionEvent e){
      if (isFile) {
        FileDialog fileDialog=new FileDialog(parent.getShell(),SWT.OPEN);
        fileDialog.setFilterExtensions(fileExtents);
        fileDialog.setFileName(filename);
        String name=fileDialog.open();
        if (name != null) {
          text.setText(name);
        }
      }
 else {
        DirectoryDialog d=new DirectoryDialog(parent.getShell());
        String name=d.open();
        if (name != null)         text.setText(name);
      }
    }
  }
);
}
Program: 148917
Project: 148917
Buggy source:
public FileSelectWidget(Composite parent,String label,String[] fileExtents,String filename,boolean isFile){
  this.label=label;
  this.filename=filename;
  this.fileExtents=fileExtents;
  this.parent=factory.createComposite(parent,0);
  GridLayout layout=new GridLayout();
  layout.numColumns=3;
  this.parent.setLayout(layout);
  this.isFile=isFile;
  create();
}

Fixed version (ground truth):
public FileSelectWidget(Composite parent,String label,String[] fileExtents,String filename,boolean isFile){
  this.label=label;
  this.filename=filename;
  this.fileExtents=fileExtents;
  this.parent=parent;
  GridLayout layout=new GridLayout();
  layout.numColumns=3;
  this.parent.setLayout(layout);
  this.isFile=isFile;
  create();
}
Program: 148920
Project: 148920
Buggy source:
public String isValid(String newText){
  if ((newText == null) || "String_Node_Str".equals(newText))   return "String_Node_Str";
  try {
    if (destPort.existsDataModel(new WSExistsDataModel(new WSDataModelPK(newText))).is_true() || destPort.existsView(new WSExistsView(new WSViewPK(newText))).is_true() || destPort.existsDataCluster(new WSExistsDataCluster(new WSDataClusterPK(newText))).is_true()|| destPort.existsStoredProcedure(new WSExistsStoredProcedure(new WSStoredProcedurePK(newText))).is_true()|| destPort.existsRole(new WSExistsRole(new WSRolePK(newText))).is_true()|| destPort.existsRoutingRule(new WSExistsRoutingRule(new WSRoutingRulePK(newText))).is_true()|| destPort.existsTransformerV2(new WSExistsTransformerV2(new WSTransformerV2PK(newText))).is_true()|| destPort.existsMenu(new WSExistsMenu(new WSMenuPK(newText))).is_true()|| destPort.existsUniverse(new WSExistsUniverse(new WSUniversePK(newText))).is_true()|| destPort.existsSynchronizationPlan(new WSExistsSynchronizationPlan(new WSSynchronizationPlanPK(newText))).is_true())     return "String_Node_Str";
  }
 catch (  RemoteException e) {
    e.printStackTrace();
  }
  return null;
}

Fixed version (ground truth):
public String isValid(String newText){
  if ((newText == null) || "String_Node_Str".equals(newText))   return "String_Node_Str";
  try {
    if ((type == TreeObject.DATA_MODEL && destPort.existsDataModel(new WSExistsDataModel(new WSDataModelPK(newText))).is_true()) || (type == TreeObject.VIEW && destPort.existsView(new WSExistsView(new WSViewPK(newText))).is_true()) || (type == TreeObject.DATA_CLUSTER && destPort.existsDataCluster(new WSExistsDataCluster(new WSDataClusterPK(newText))).is_true())|| (type == TreeObject.STORED_PROCEDURE && destPort.existsStoredProcedure(new WSExistsStoredProcedure(new WSStoredProcedurePK(newText))).is_true())|| (type == TreeObject.ROUTING_RULE && destPort.existsRoutingRule(new WSExistsRoutingRule(new WSRoutingRulePK(newText))).is_true())|| (type == TreeObject.TRANSFORMER && destPort.existsTransformerV2(new WSExistsTransformerV2(new WSTransformerV2PK(newText))).is_true())|| (type == TreeObject.MENU && destPort.existsMenu(new WSExistsMenu(new WSMenuPK(newText))).is_true()))     return "String_Node_Str";
    if (Util.IsEnterPrise() && ((type == TreeObject.ROLE && destPort.existsRole(new WSExistsRole(new WSRolePK(newText))).is_true()) || (type == TreeObject.UNIVERSE && destPort.existsUniverse(new WSExistsUniverse(new WSUniversePK(newText))).is_true()) || (type == TreeObject.SYNCHRONIZATIONPLAN && destPort.existsSynchronizationPlan(new WSExistsSynchronizationPlan(new WSSynchronizationPlanPK(newText))).is_true())))     return "String_Node_Str";
  }
 catch (  RemoteException e) {
    e.printStackTrace();
  }
  return null;
}
Program: 148923
Project: 148923
Buggy source:
public IStatus doAction(){
  try {
    ISelection selection=page.getTreeViewer().getSelection();
    IStructuredContentProvider provider=(IStructuredContentProvider)page.getSchemaContentProvider();
    XSDComplexTypeDefinition decl=(XSDComplexTypeDefinition)((IStructuredSelection)selection).getFirstElement();
    String oldName=decl.getName();
    InputDialog id=new InputDialog(page.getSite().getShell(),"String_Node_Str","String_Node_Str",oldName,new IInputValidator(){
      public String isValid(      String newText){
        if ((newText == null) || "String_Node_Str".equals(newText))         return "String_Node_Str";
        EList list=schema.getTypeDefinitions();
        for (Iterator iter=list.iterator(); iter.hasNext(); ) {
          Object d=iter.next();
          if (d instanceof XSDComplexTypeDefinition) {
            XSDComplexTypeDefinition type=(XSDComplexTypeDefinition)d;
            if (type.getName().equals(newText))             return "String_Node_Str";
          }
        }
        return null;
      }
    }
);
    id.setBlockOnOpen(true);
    int ret=id.open();
    if (ret == Dialog.CANCEL) {
      return Status.CANCEL_STATUS;
    }
    decl.setName(id.getValue());
    Util.updateComplexType(page.getSite(),decl,provider);
    page.refresh();
    page.markDirty();
    page.refreshPage();
  }
 catch (  Exception e) {
    e.printStackTrace();
    MessageDialog.openError(page.getSite().getShell(),"String_Node_Str","String_Node_Str" + e.getLocalizedMessage());
    return Status.CANCEL_STATUS;
  }
  return Status.OK_STATUS;
}

Fixed version (ground truth):
public IStatus doAction(){
  try {
    ISelection selection=page.getTreeViewer().getSelection();
    IStructuredContentProvider provider=(IStructuredContentProvider)page.getSchemaContentProvider();
    XSDComplexTypeDefinition decl=(XSDComplexTypeDefinition)((IStructuredSelection)selection).getFirstElement();
    String oldName=decl.getName();
    InputDialog id=new InputDialog(page.getSite().getShell(),"String_Node_Str","String_Node_Str",oldName,new IInputValidator(){
      public String isValid(      String newText){
        if ((newText == null) || "String_Node_Str".equals(newText))         return "String_Node_Str";
        EList list=schema.getTypeDefinitions();
        for (Iterator iter=list.iterator(); iter.hasNext(); ) {
          Object d=iter.next();
          if (d instanceof XSDComplexTypeDefinition) {
            XSDComplexTypeDefinition type=(XSDComplexTypeDefinition)d;
            if (type.getName().equals(newText))             return "String_Node_Str";
          }
        }
        return null;
      }
    }
);
    id.setBlockOnOpen(true);
    int ret=id.open();
    if (ret == Dialog.CANCEL) {
      return Status.CANCEL_STATUS;
    }
    decl.setName(id.getValue());
    Util.updateComplexType(page.getSite(),decl,provider);
    page.refresh();
    page.markDirty();
  }
 catch (  Exception e) {
    e.printStackTrace();
    MessageDialog.openError(page.getSite().getShell(),"String_Node_Str","String_Node_Str" + e.getLocalizedMessage());
    return Status.CANCEL_STATUS;
  }
  return Status.OK_STATUS;
}
Program: 148932
Project: 148932
Buggy source:
public Button getAddButton(){
  return addNewXpathButton;
}

Fixed version (ground truth):
public Button getAddButton(){
  return addButton;
}
Program: 148934
Project: 148934
Buggy source:
public void doSave(IProgressMonitor monitor){
  this.saveInProgress=true;
  int numPages=formPages.size();
  monitor.beginTask("String_Node_Str" + this.getEditorInput().getName(),numPages + 1);
  for (int i=0; i < numPages; i++) {
    if ((formPages.get(i)) instanceof AFormPage) {
      if (!((AFormPage)(formPages.get(i))).beforeDoSave())       return;
    }
    (formPages.get(i)).doSave(monitor);
    monitor.worked(1);
    if (monitor.isCanceled()) {
      this.saveInProgress=false;
      return;
    }
  }
  SaveXObjectAction action=new SaveXObjectAction(this);
  action.run();
  if (xmlEditor != null && action.getState() == 0) {
    xmlEditor.refresh();
  }
  monitor.done();
}

Fixed version (ground truth):
public void doSave(IProgressMonitor monitor){
  this.saveInProgress=true;
  if (xmlEditor != null && this.getCurrentPage() == 1) {
    xmlEditor.doSave(monitor);
    ((AFormPage)(formPages.get(0))).refreshPage();
    return;
  }
  int numPages=formPages.size();
  monitor.beginTask("String_Node_Str" + this.getEditorInput().getName(),numPages + 1);
  for (int i=0; i < numPages; i++) {
    if ((formPages.get(i)) instanceof AFormPage) {
      if (!((AFormPage)(formPages.get(i))).beforeDoSave())       return;
    }
    (formPages.get(i)).doSave(monitor);
    monitor.worked(1);
    if (monitor.isCanceled()) {
      this.saveInProgress=false;
      return;
    }
  }
  SaveXObjectAction action=new SaveXObjectAction(this);
  action.run();
  if (xmlEditor != null && action.getState() == 0) {
    xmlEditor.refresh();
  }
  monitor.done();
}
Program: 148935
Project: 148935
Buggy source:
private static String getNewName(Shell shell,String displayName,final XtentisPort destPort){
  InputDialog id;
  id=new InputDialog(shell,"String_Node_Str","String_Node_Str",displayName,new IInputValidator(){
    public String isValid(    String newText){
      if ((newText == null) || "String_Node_Str".equals(newText))       return "String_Node_Str";
      try {
        if (destPort.existsDataModel(new WSExistsDataModel(new WSDataModelPK(newText))).is_true() || destPort.existsView(new WSExistsView(new WSViewPK(newText))).is_true() || destPort.existsDataCluster(new WSExistsDataCluster(new WSDataClusterPK(newText))).is_true()|| destPort.existsStoredProcedure(new WSExistsStoredProcedure(new WSStoredProcedurePK(newText))).is_true()|| destPort.existsRole(new WSExistsRole(new WSRolePK(newText))).is_true()|| destPort.existsRoutingRule(new WSExistsRoutingRule(new WSRoutingRulePK(newText))).is_true()|| destPort.existsTransformerV2(new WSExistsTransformerV2(new WSTransformerV2PK(newText))).is_true()|| destPort.existsMenu(new WSExistsMenu(new WSMenuPK(newText))).is_true()|| destPort.existsUniverse(new WSExistsUniverse(new WSUniversePK(newText))).is_true()|| destPort.existsSynchronizationPlan(new WSExistsSynchronizationPlan(new WSSynchronizationPlanPK(newText))).is_true())         return "String_Node_Str";
      }
 catch (      RemoteException e) {
        e.printStackTrace();
      }
      return null;
    }
  }
);
  id.open();
  id.setBlockOnOpen(true);
  return id.getValue();
}

Fixed version (ground truth):
private static String getNewName(Shell shell,String displayName,final XtentisPort destPort){
  InputDialog id;
  id=new InputDialog(shell,"String_Node_Str","String_Node_Str",displayName,new IInputValidator(){
    public String isValid(    String newText){
      if ((newText == null) || "String_Node_Str".equals(newText))       return "String_Node_Str";
      try {
        if (destPort.existsDataModel(new WSExistsDataModel(new WSDataModelPK(newText))).is_true() || destPort.existsView(new WSExistsView(new WSViewPK(newText))).is_true() || destPort.existsDataCluster(new WSExistsDataCluster(new WSDataClusterPK(newText))).is_true()|| destPort.existsStoredProcedure(new WSExistsStoredProcedure(new WSStoredProcedurePK(newText))).is_true()|| destPort.existsRole(new WSExistsRole(new WSRolePK(newText))).is_true()|| destPort.existsRoutingRule(new WSExistsRoutingRule(new WSRoutingRulePK(newText))).is_true()|| destPort.existsTransformerV2(new WSExistsTransformerV2(new WSTransformerV2PK(newText))).is_true()|| destPort.existsMenu(new WSExistsMenu(new WSMenuPK(newText))).is_true()|| destPort.existsUniverse(new WSExistsUniverse(new WSUniversePK(newText))).is_true()|| destPort.existsSynchronizationPlan(new WSExistsSynchronizationPlan(new WSSynchronizationPlanPK(newText))).is_true())         return "String_Node_Str";
      }
 catch (      RemoteException e) {
        e.printStackTrace();
      }
      return null;
    }
  }
);
  id.setBlockOnOpen(true);
  if (id.open() == Window.OK)   return id.getValue();
 else   return null;
}
Program: 148936
Project: 148936
Buggy source:
public DeleteXObjectAction(ServerView view){
  super();
  this.view=view;
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str" + IConstants.TALEND + "String_Node_Str");
}

Fixed version (ground truth):
public DeleteXObjectAction(ServerView view){
  super();
  this.view=view;
  setImageDescriptor(ImageCache.getImage(EImage.DELETE_OBJ.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str" + IConstants.TALEND + "String_Node_Str");
}
Program: 148937
Project: 148937
Buggy source:
public ImportTISJobAction(ServerView serverView){
  super();
  this.server=serverView;
  setImageDescriptor(ImageCache.getImage(EImage.PROCESS.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public ImportTISJobAction(ServerView serverView){
  super();
  this.server=serverView;
  setImageDescriptor(ImageCache.getImage(EImage.WORKFLOW_PROCESS.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148938
Project: 148938
Buggy source:
public ImportWorkflowProcessAction(ServerView serverView){
  super();
  this.server=serverView;
  setImageDescriptor(ImageCache.getImage(EImage.PROCESS.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public ImportWorkflowProcessAction(ServerView serverView){
  super();
  this.server=serverView;
  setImageDescriptor(ImageCache.getImage(EImage.WORKFLOW_PROCESS.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148939
Project: 148939
Buggy source:
public NewUserAction(ServerView view){
  super();
  this.view=view;
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public NewUserAction(ServerView view){
  super();
  this.view=view;
  setImageDescriptor(ImageCache.getImage(EImage.ADD_OBJ.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148940
Project: 148940
Buggy source:
public NewXObjectAction(ServerView view){
  super();
  this.view=view;
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str" + IConstants.TALEND + "String_Node_Str");
}

Fixed version (ground truth):
public NewXObjectAction(ServerView view){
  super();
  this.view=view;
  setImageDescriptor(ImageCache.getImage(EImage.ADD_OBJ.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str" + IConstants.TALEND + "String_Node_Str");
}
Program: 148941
Project: 148941
Buggy source:
private void setDetails(){
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str" + IConstants.TALEND + "String_Node_Str");
}

Fixed version (ground truth):
private void setDetails(){
  setImageDescriptor(ImageCache.getImage(EImage.PASTE.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str" + IConstants.TALEND + "String_Node_Str");
}
Program: 148942
Project: 148942
Buggy source:
public SaveXObjectAction(XObjectEditor editor){
  super();
  this.editor=editor;
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
}

Fixed version (ground truth):
public SaveXObjectAction(XObjectEditor editor){
  super();
  this.editor=editor;
  setImageDescriptor(ImageCache.getImage(EImage.SAVE_EDIT.getPath()));
}
Program: 148943
Project: 148943
Buggy source:
public XSDChangeBaseTypeAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
  setDescription(getToolTipText());
}

Fixed version (ground truth):
public XSDChangeBaseTypeAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.CHANGE_TO_SIMPLE.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
  setDescription(getToolTipText());
}
Program: 148944
Project: 148944
Buggy source:
public XSDDeleteIdentityConstraintAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public XSDDeleteIdentityConstraintAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.DELETE_OBJ.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148945
Project: 148945
Buggy source:
public XSDEditConceptAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public XSDEditConceptAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.EDIT_OBJ.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148946
Project: 148946
Buggy source:
public XSDEditElementAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public XSDEditElementAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.EDIT_OBJ.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148947
Project: 148947
Buggy source:
public XSDEditIdentityConstraintAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public XSDEditIdentityConstraintAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.EDIT_OBJ.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148948
Project: 148948
Buggy source:
public XSDEditParticleAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public XSDEditParticleAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.EDIT_OBJ.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148949
Project: 148949
Buggy source:
public XSDEditXPathAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public XSDEditXPathAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.EDIT_OBJ.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148950
Project: 148950
Buggy source:
public XSDSetAnnotationDescriptionsAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public XSDSetAnnotationDescriptionsAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.ANNOTATION.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148951
Project: 148951
Buggy source:
public XSDSetAnnotationDocumentationAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public XSDSetAnnotationDocumentationAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.ANNOTATION.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148952
Project: 148952
Buggy source:
public XSDSetAnnotationForeignKeyAction(DataModelMainPage page,String dataModelName){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
  this.dataModelName=dataModelName;
}

Fixed version (ground truth):
public XSDSetAnnotationForeignKeyAction(DataModelMainPage page,String dataModelName){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.KEY.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
  this.dataModelName=dataModelName;
}
Program: 148953
Project: 148953
Buggy source:
public XSDSetAnnotationForeignKeyInfoAction(DataModelMainPage page,String dataModelName){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
  this.dataModelName=dataModelName;
}

Fixed version (ground truth):
public XSDSetAnnotationForeignKeyInfoAction(DataModelMainPage page,String dataModelName){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.KEYINFO.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
  this.dataModelName=dataModelName;
}
Program: 148954
Project: 148954
Buggy source:
public XSDSetAnnotationLabelAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public XSDSetAnnotationLabelAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.LABEL.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148955
Project: 148955
Buggy source:
public XSDSetAnnotationNoAction(DataModelMainPage page,String dataModelName){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
  this.dataModelName=dataModelName;
}

Fixed version (ground truth):
public XSDSetAnnotationNoAction(DataModelMainPage page,String dataModelName){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.SECURITYANNOTATION.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
  this.dataModelName=dataModelName;
}
Program: 148956
Project: 148956
Buggy source:
public XSDSetAnnotationSourceSystemAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public XSDSetAnnotationSourceSystemAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.ANNOTATION.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148957
Project: 148957
Buggy source:
public XSDSetAnnotationTargetSystemsAction(DataModelMainPage page,String dataModelName){
  super(page);
  setImageDescriptor(ImageCache.getImage("String_Node_Str"));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
  this.dataModelName=dataModelName;
}

Fixed version (ground truth):
public XSDSetAnnotationTargetSystemsAction(DataModelMainPage page,String dataModelName){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.ANNOTATION.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
  this.dataModelName=dataModelName;
}
Program: 148958
Project: 148958
Buggy source:
public XSDSetAnnotationDescriptionsAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.ANNOTATION.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public XSDSetAnnotationDescriptionsAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.DOCUMENTATION.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148959
Project: 148959
Buggy source:
public XSDSetAnnotationDocumentationAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.ANNOTATION.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public XSDSetAnnotationDocumentationAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.DOCUMENTATION.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148960
Project: 148960
Buggy source:
public XSDSetAnnotationSourceSystemAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.ANNOTATION.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}

Fixed version (ground truth):
public XSDSetAnnotationSourceSystemAction(DataModelMainPage page){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.SOURCESYSTEM.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
}
Program: 148961
Project: 148961
Buggy source:
public XSDSetAnnotationTargetSystemsAction(DataModelMainPage page,String dataModelName){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.ANNOTATION.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
  this.dataModelName=dataModelName;
}

Fixed version (ground truth):
public XSDSetAnnotationTargetSystemsAction(DataModelMainPage page,String dataModelName){
  super(page);
  setImageDescriptor(ImageCache.getImage(EImage.TARGETSYSTEM.getPath()));
  setText("String_Node_Str");
  setToolTipText("String_Node_Str");
  this.dataModelName=dataModelName;
}
Program: 148967
Project: 148967
Buggy source:
private boolean filterRepositoryNode(TreeObject node){
  if (node == null) {
    return false;
  }
  if (node.getType() == TreeObject.SUBSCRIPTION_ENGINE || node.getType() == TreeObject.SERVICE_CONFIGURATION || node.getType() == TreeObject.RESOURCES || node.getType() == TreeObject.WORKFLOW || node.getType() == TreeObject.WORKFLOW_PROCESS || node.getType() == TreeObject.JOB || node.getType() == TreeObject.JOB_REGISTRY) {
    return false;
  }
  if (!Util.IsEnterPrise()) {
    if (node.getType() == TreeObject.ROLE || node.getType() == TreeObject.UNIVERSE) {
      return false;
    }
  }
  return true;
}

Fixed version (ground truth):
private boolean filterRepositoryNode(TreeObject node){
  if (node == null) {
    return false;
  }
  if (node.getType() == TreeObject.SUBSCRIPTION_ENGINE || node.getType() == TreeObject.SERVICE_CONFIGURATION || node.getType() == TreeObject.RESOURCES || node.getType() == TreeObject.WORKFLOW || node.getType() == TreeObject.WORKFLOW_PROCESS || node.getType() == TreeObject.JOB || node.getType() == TreeObject.JOB_REGISTRY) {
    return false;
  }
  if (!Util.IsEnterPrise()) {
    if (node.getType() == TreeObject.ROLE || node.getType() == TreeObject.UNIVERSE || node.getType() == TreeObject.SYNCHRONIZATIONPLAN) {
      return false;
    }
  }
  return true;
}
Program: 148969
Project: 148969
Buggy source:
public static WSWhereOperator fromValue(java.lang.String value) throws java.lang.IllegalStateException {
  if (JOIN.value.equals(value)) {
    return JOIN;
  }
 else   if (CONTAINS.value.equals(value)) {
    return CONTAINS;
  }
 else   if (STARTSWITH.value.equals(value)) {
    return STARTSWITH;
  }
 else   if (STRICTCONTAINS.value.equals(value)) {
    return STRICTCONTAINS;
  }
 else   if (EQUALS.value.equals(value)) {
    return EQUALS;
  }
 else   if (NOT_EQUALS.value.equals(value)) {
    return NOT_EQUALS;
  }
 else   if (GREATER_THAN.value.equals(value)) {
    return GREATER_THAN;
  }
 else   if (GREATER_THAN_OR_EQUAL.value.equals(value)) {
    return GREATER_THAN_OR_EQUAL;
  }
 else   if (LOWER_THAN.value.equals(value)) {
    return LOWER_THAN;
  }
 else   if (LOWER_THAN_OR_EQUAL.value.equals(value)) {
    return LOWER_THAN_OR_EQUAL;
  }
 else   if (NO_OPERATOR.value.equals(value)) {
    return NO_OPERATOR;
  }
  throw new IllegalArgumentException();
}

Fixed version (ground truth):
public static WSWhereOperator fromValue(java.lang.String value) throws java.lang.IllegalStateException {
  if (JOIN.value.equals(value)) {
    return JOIN;
  }
 else   if (CONTAINS.value.equals(value)) {
    return CONTAINS;
  }
 else   if (STARTSWITH.value.equals(value)) {
    return STARTSWITH;
  }
 else   if (STRICTCONTAINS.value.equals(value)) {
    return STRICTCONTAINS;
  }
 else   if (EQUALS.value.equals(value)) {
    return EQUALS;
  }
 else   if (NOT_EQUALS.value.equals(value)) {
    return NOT_EQUALS;
  }
 else   if (GREATER_THAN.value.equals(value)) {
    return GREATER_THAN;
  }
 else   if (GREATER_THAN_OR_EQUAL.value.equals(value)) {
    return GREATER_THAN_OR_EQUAL;
  }
 else   if (LOWER_THAN.value.equals(value)) {
    return LOWER_THAN;
  }
 else   if (LOWER_THAN_OR_EQUAL.value.equals(value)) {
    return LOWER_THAN_OR_EQUAL;
  }
 else   if (NO_OPERATOR.value.equals(value)) {
    return NO_OPERATOR;
  }
 else   if (FULLTEXTSEARCH.value.equals(value)) {
    return FULLTEXTSEARCH;
  }
  throw new IllegalArgumentException();
}
Program: 148970
Project: 148970
Buggy source:
public static WSWhereOperator fromString(String value) throws java.lang.IllegalStateException {
  WSWhereOperator ret=(WSWhereOperator)valueMap.get(value);
  if (ret != null) {
    return ret;
  }
  if (value.equals(_JOINString)) {
    return JOIN;
  }
 else   if (value.equals(_CONTAINSString)) {
    return CONTAINS;
  }
 else   if (value.equals(_STARTSWITHString)) {
    return STARTSWITH;
  }
 else   if (value.equals(_STRICTCONTAINSString)) {
    return STRICTCONTAINS;
  }
 else   if (value.equals(_EQUALSString)) {
    return EQUALS;
  }
 else   if (value.equals(_NOT_EQUALSString)) {
    return NOT_EQUALS;
  }
 else   if (value.equals(_GREATER_THANString)) {
    return GREATER_THAN;
  }
 else   if (value.equals(_GREATER_THAN_OR_EQUALString)) {
    return GREATER_THAN_OR_EQUAL;
  }
 else   if (value.equals(_LOWER_THANString)) {
    return LOWER_THAN;
  }
 else   if (value.equals(_LOWER_THAN_OR_EQUALString)) {
    return LOWER_THAN_OR_EQUAL;
  }
 else   if (value.equals(_NO_OPERATORString)) {
    return NO_OPERATOR;
  }
  throw new IllegalArgumentException();
}

Fixed version (ground truth):
public static WSWhereOperator fromString(String value) throws java.lang.IllegalStateException {
  WSWhereOperator ret=(WSWhereOperator)valueMap.get(value);
  if (ret != null) {
    return ret;
  }
  if (value.equals(_JOINString)) {
    return JOIN;
  }
 else   if (value.equals(_CONTAINSString)) {
    return CONTAINS;
  }
 else   if (value.equals(_STARTSWITHString)) {
    return STARTSWITH;
  }
 else   if (value.equals(_STRICTCONTAINSString)) {
    return STRICTCONTAINS;
  }
 else   if (value.equals(_EQUALSString)) {
    return EQUALS;
  }
 else   if (value.equals(_NOT_EQUALSString)) {
    return NOT_EQUALS;
  }
 else   if (value.equals(_GREATER_THANString)) {
    return GREATER_THAN;
  }
 else   if (value.equals(_GREATER_THAN_OR_EQUALString)) {
    return GREATER_THAN_OR_EQUAL;
  }
 else   if (value.equals(_LOWER_THANString)) {
    return LOWER_THAN;
  }
 else   if (value.equals(_LOWER_THAN_OR_EQUALString)) {
    return LOWER_THAN_OR_EQUAL;
  }
 else   if (value.equals(_NO_OPERATORString)) {
    return NO_OPERATOR;
  }
 else   if (value.equals(_FULLTEXTSEARCHString)) {
    return FULLTEXTSEARCH;
  }
  throw new IllegalArgumentException();
}
Program: 148971
Project: 148971
Buggy source:
private void setAnnotationActions(IMenuManager manager){
  manager.add(setAnnotationLabelAction);
  manager.add(setAnnotationDescriptionsAction);
  manager.add(setAnnotationForeignKeyAction);
  manager.add(setAnnotationForeignKeyInfoAction);
  manager.add(setAnnotationWriteAction);
  manager.add(setAnnotationHiddenAction);
  manager.add(setAnnotationSourceSystemAction);
  manager.add(setAnnotationTargetSystemsAction);
  java.util.List<IAvailableModel> availablemodels=AvailableModelUtil.getAvailableModels();
  for (  IAvailableModel model : availablemodels) {
    model.fillContextMenu(null,manager,this,dataModelName);
  }
}

Fixed version (ground truth):
private void setAnnotationActions(IMenuManager manager){
  manager.add(setAnnotationLabelAction);
  manager.add(setAnnotationDescriptionsAction);
  manager.add(setAnnotationForeignKeyAction);
  manager.add(setAnnotationForeignKeyInfoAction);
  manager.add(setAnnotationWriteAction);
  manager.add(setAnnotationNoAction);
  manager.add(setAnnotationSourceSystemAction);
  manager.add(setAnnotationTargetSystemsAction);
  java.util.List<IAvailableModel> availablemodels=AvailableModelUtil.getAvailableModels();
  for (  IAvailableModel model : availablemodels) {
    model.fillContextMenu(null,manager,this,dataModelName);
  }
}
Program: 148976
Project: 148976
Buggy source:
private void setAnnotationActions2(IMenuManager manager){
  manager.add(setAnnotationLabelAction);
  manager.add(setAnnotationDescriptionsAction);
  manager.add(setAnnotationWriteAction);
  manager.add(setAnnotationHiddenAction);
  manager.add(setAnnotationTargetSystemsAction);
  manager.add(setAnnotationSourceSystemAction);
  java.util.List<IAvailableModel> availablemodels=AvailableModelUtil.getAvailableModels();
  for (  IAvailableModel model : availablemodels) {
    model.fillContextMenu(null,manager,this,dataModelName);
  }
}

Fixed version (ground truth):
private void setAnnotationActions2(IMenuManager manager){
  manager.add(setAnnotationLabelAction);
  manager.add(setAnnotationDescriptionsAction);
  manager.add(setAnnotationWriteAction);
  manager.add(setAnnotationNoAction);
  manager.add(setAnnotationTargetSystemsAction);
  manager.add(setAnnotationSourceSystemAction);
  java.util.List<IAvailableModel> availablemodels=AvailableModelUtil.getAvailableModels();
  for (  IAvailableModel model : availablemodels) {
    model.fillContextMenu(null,manager,this,dataModelName);
  }
}
Program: 148981
Project: 148981
Buggy source:
public void widgetDefaultSelected(SelectionEvent e){
}

Fixed version (ground truth):
public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e){
}