nus-yam/ex-repair huggingface dataset:
Program: 126389
Project: 126389
Buggy source:
@Override public void undo(){
  boolean modified=false;
  if (modelManager.getContextManager() != null) {
    for (    IContext context : modelManager.getContextManager().getListContext()) {
      for (      IContextParameter contextParameter : context.getContextParameterList()) {
        if (newName.equals(contextParameter.getName())) {
          contextParameter.setName(originalName);
          if (contextParameter.getPrompt().equals(newName + "String_Node_Str")) {
            contextParameter.setPrompt(originalName + "String_Node_Str");
          }
          modified=true;
        }
      }
    }
  }
  if (modified) {
    updateRelation();
  }
}

Fixed version (ground truth):
@Override public void undo(){
  boolean modified=false;
  if (modelManager.getContextManager() != null) {
    for (    IContext context : modelManager.getContextManager().getListContext()) {
      for (      IContextParameter contextParameter : context.getContextParameterList()) {
        if (newName.equals(contextParameter.getName())) {
          contextParameter.setName(originalName);
          if (contextParameter.getPrompt().equals(newName + "String_Node_Str")) {
            contextParameter.setPrompt(originalName + "String_Node_Str");
          }
          modified=true;
        }
      }
    }
  }
  if (modified) {
    updateRelation(newName,originalName);
  }
}
Program: 126390
Project: 126390
Buggy source:
private void updateRelation(){
  if (param != null) {
    IContextManager manager=modelManager.getContextManager();
    if (manager != null && manager instanceof JobContextManager) {
      JobContextManager jobContextManager=(JobContextManager)manager;
      if (!modelManager.isRepositoryContext() || modelManager.isRepositoryContext() && jobContextManager.isOriginalParameter(param.getName())) {
        jobContextManager.setModified(true);
        manager.fireContextsChangedEvent();
      }
    }
  }
}

Fixed version (ground truth):
private void updateRelation(String _oldName,String _newName){
  if (param != null) {
    IContextManager manager=modelManager.getContextManager();
    if (manager != null && manager instanceof JobContextManager) {
      JobContextManager jobContextManager=(JobContextManager)manager;
      if (!modelManager.isRepositoryContext() || modelManager.isRepositoryContext() && jobContextManager.isOriginalParameter(param.getName())) {
        jobContextManager.setModified(true);
        manager.fireContextsChangedEvent();
      }
    }
  }
  if (modelManager instanceof ContextComposite) {
    ((ContextComposite)modelManager).switchSettingsView(_oldName,_newName);
    modelManager.refresh();
  }
}
Program: 126391
Project: 126391
Buggy source:
private void setButtonEnableState(){
  boolean enableState=!modelManager.isReadOnly();
  if (this.addButton != null) {
    this.addButton.setEnabled(enableState);
  }
  if (this.removeButton != null) {
    this.removeButton.setEnabled(enableState);
  }
  if (this.moveUpButton != null) {
    this.moveUpButton.setEnabled(enableState);
  }
  if (this.moveDownButton != null) {
    this.moveDownButton.setEnabled(enableState);
  }
  if (contextConfigButton != null) {
    this.contextConfigButton.setEnabled(enableState);
  }
  if (contextsCombo != null) {
    this.contextsCombo.setEnabled(enableState);
  }
}

Fixed version (ground truth):
private void setButtonEnableState(){
  boolean enableState=!modelManager.isReadOnly();
  if (this.addButton != null) {
    this.addButton.setEnabled(enableState);
  }
  if (this.removeButton != null) {
    this.removeButton.setEnabled(enableState);
  }
  if (this.moveUpButton != null) {
    this.moveUpButton.setEnabled(enableState);
  }
  if (this.moveDownButton != null) {
    this.moveDownButton.setEnabled(enableState);
  }
  if (this.selectContextVariablesButton != null) {
    this.selectContextVariablesButton.setEnabled(enableState);
  }
  if (contextConfigButton != null) {
    this.contextConfigButton.setEnabled(enableState);
  }
  if (contextsCombo != null) {
    this.contextsCombo.setEnabled(enableState);
  }
}
Program: 126392
Project: 126392
Buggy source:
private void createButtonsGroup(Composite parentComposite){
  buttonsComp=new Composite(parentComposite,SWT.NULL);
  buttonsComp.setLayout(GridLayoutFactory.swtDefaults().spacing(0,0).margins(0,0).numColumns(7).create());
  GridDataFactory.swtDefaults().align(SWT.FILL,SWT.DOWN).grab(true,false).applyTo(buttonsComp);
  buttonList.clear();
  addButton=createAddPushButton(buttonsComp);
  buttonList.add(addButton);
  removeButton=createRemovePushButton(buttonsComp);
  buttonList.add(removeButton);
  boolean isRepositoryContext=(modelManager instanceof ContextComposite) && ((ContextComposite)modelManager).isRepositoryContext();
  if (!isRepositoryContext) {
    moveUpButton=createMoveUpPushButton(buttonsComp);
    buttonList.add(moveUpButton);
    moveDownButton=createMoveDownPushButton(buttonsComp);
    buttonList.add(moveDownButton);
  }
  if ((modelManager instanceof ContextComposite) && !((ContextComposite)modelManager).isRepositoryContext()) {
    Button selectContextVariablesButton=createSelectContextVariablesPushButton(buttonsComp);
    buttonList.add(selectContextVariablesButton);
  }
  Composite layoutComposite=new Composite(buttonsComp,SWT.NULL);
  layoutComposite.setLayout(GridLayoutFactory.swtDefaults().spacing(0,0).numColumns(1).create());
  GridDataFactory.swtDefaults().align(SWT.CENTER,SWT.DOWN).grab(true,false).applyTo(layoutComposite);
  createContextsGroup(layoutComposite);
}

Fixed version (ground truth):
private void createButtonsGroup(Composite parentComposite){
  buttonsComp=new Composite(parentComposite,SWT.NULL);
  buttonsComp.setLayout(GridLayoutFactory.swtDefaults().spacing(0,0).margins(0,0).numColumns(7).create());
  GridDataFactory.swtDefaults().align(SWT.FILL,SWT.DOWN).grab(true,false).applyTo(buttonsComp);
  buttonList.clear();
  addButton=createAddPushButton(buttonsComp);
  buttonList.add(addButton);
  removeButton=createRemovePushButton(buttonsComp);
  buttonList.add(removeButton);
  boolean isRepositoryContext=(modelManager instanceof ContextComposite) && ((ContextComposite)modelManager).isRepositoryContext();
  if (!isRepositoryContext) {
    moveUpButton=createMoveUpPushButton(buttonsComp);
    buttonList.add(moveUpButton);
    moveDownButton=createMoveDownPushButton(buttonsComp);
    buttonList.add(moveDownButton);
  }
  if ((modelManager instanceof ContextComposite) && !((ContextComposite)modelManager).isRepositoryContext()) {
    selectContextVariablesButton=createSelectContextVariablesPushButton(buttonsComp);
    buttonList.add(selectContextVariablesButton);
  }
  Composite layoutComposite=new Composite(buttonsComp,SWT.NULL);
  layoutComposite.setLayout(GridLayoutFactory.swtDefaults().spacing(0,0).numColumns(1).create());
  GridDataFactory.swtDefaults().align(SWT.CENTER,SWT.DOWN).grab(true,false).applyTo(layoutComposite);
  createContextsGroup(layoutComposite);
}
Program: 126393
Project: 126393
Buggy source:
@Override public List<? extends IElementParameter> getElementParametersWithChildrens(){
  List<IElementParameter> fullListParam=new ArrayList<IElementParameter>(this.elementParameters);
  for (  IElementParameter curParam : elementParameters) {
    if (curParam.getChildParameters() != null) {
      for (      String key : curParam.getChildParameters().keySet()) {
        IElementParameter childParam=curParam.getChildParameters().get(key);
        fullListParam.add(childParam);
      }
    }
  }
  return fullListParam;
}

Fixed version (ground truth):
@Override public List<? extends IElementParameter> getElementParametersWithChildrens(){
  if (this.elementParameters == null) {
    return new ArrayList<IElementParameter>();
  }
  List<IElementParameter> fullListParam=new ArrayList<IElementParameter>(this.elementParameters);
  for (  IElementParameter curParam : elementParameters) {
    if (curParam.getChildParameters() != null) {
      for (      String key : curParam.getChildParameters().keySet()) {
        IElementParameter childParam=curParam.getChildParameters().get(key);
        fullListParam.add(childParam);
      }
    }
  }
  return fullListParam;
}
Program: 126395
Project: 126395
Buggy source:
public static IEditorReference[] getOpenedEditors(){
  final List<IEditorReference> list=new ArrayList<IEditorReference>();
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
      IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
      if (activeWorkbenchWindow != null && activeWorkbenchWindow.getActivePage() != null) {
        IEditorReference[] reference=activeWorkbenchWindow.getActivePage().getEditorReferences();
        list.addAll(Arrays.asList(reference));
      }
    }
  }
);
  return list.toArray(new IEditorReference[0]);
}

Fixed version (ground truth):
public static IEditorReference[] getOpenedEditors(){
  final List<IEditorReference> list=new ArrayList<IEditorReference>();
  Display.getDefault().syncExec(new Runnable(){
    @Override public void run(){
      IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
      if (activeWorkbenchWindow != null && activeWorkbenchWindow.getActivePage() != null) {
        IEditorReference[] reference=activeWorkbenchWindow.getActivePage().getEditorReferences();
        list.addAll(Arrays.asList(reference));
      }
    }
  }
);
  return list.toArray(new IEditorReference[0]);
}
Program: 126396
Project: 126396
Buggy source:
public static IRepositoryView getRepositoryView(){
  if (CommonsPlugin.isHeadless()) {
    return null;
  }
  IViewPart part=null;
  IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
  if (activeWorkbenchWindow != null) {
    IWorkbenchPage page=activeWorkbenchWindow.getActivePage();
    if (page != null) {
      part=findRepositoryView();
      if (part == null) {
        try {
          if (IBrandingConfiguration.PERSPECTIVE_DI_ID.equals(page.getPerspective().getId())) {
            part=page.showView(IRepositoryView.VIEW_ID);
          }
        }
 catch (        Exception e) {
          ExceptionHandler.process(e);
        }
      }
      return (IRepositoryView)part;
    }
  }
  return (IRepositoryView)part;
}

Fixed version (ground truth):
public static IRepositoryView getRepositoryView(){
  if (CommonsPlugin.isHeadless()) {
    return null;
  }
  IViewPart part=null;
  IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
  if (activeWorkbenchWindow != null) {
    IWorkbenchPage page=activeWorkbenchWindow.getActivePage();
    if (page != null) {
      part=findRepositoryView();
      if (part == null) {
        try {
          if (IBrandingConfiguration.PERSPECTIVE_DI_ID.equals(page.getPerspective().getId())) {
            part=page.showView(IRepositoryView.VIEW_ID);
          }
 else           if (IBrandingConfiguration.PERSPECTIVE_DQ_ID.equals(page.getPerspective().getId())) {
            part=page.showView(IRepositoryView.VIEW_ID,null,IWorkbenchPage.VIEW_CREATE);
          }
        }
 catch (        Exception e) {
          ExceptionHandler.process(e);
        }
      }
      return (IRepositoryView)part;
    }
  }
  return (IRepositoryView)part;
}
Program: 126397
Project: 126397
Buggy source:
public void run(){
  IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
  if (activeWorkbenchWindow != null && activeWorkbenchWindow.getActivePage() != null) {
    IEditorReference[] reference=activeWorkbenchWindow.getActivePage().getEditorReferences();
    list.addAll(Arrays.asList(reference));
  }
}

Fixed version (ground truth):
@Override public void run(){
  IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
  if (activeWorkbenchWindow != null && activeWorkbenchWindow.getActivePage() != null) {
    IEditorReference[] reference=activeWorkbenchWindow.getActivePage().getEditorReferences();
    list.addAll(Arrays.asList(reference));
  }
}
Program: 126398
Project: 126398
Buggy source:
public static IEditorReference[] getOpenedEditors(){
  final List<IEditorReference> list=new ArrayList<IEditorReference>();
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
      IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
      if (activeWorkbenchWindow != null && activeWorkbenchWindow.getActivePage() != null) {
        IEditorReference[] reference=activeWorkbenchWindow.getActivePage().getEditorReferences();
        list.addAll(Arrays.asList(reference));
      }
    }
  }
);
  return list.toArray(new IEditorReference[0]);
}

Fixed version (ground truth):
public static IEditorReference[] getOpenedEditors(){
  final List<IEditorReference> list=new ArrayList<IEditorReference>();
  Display.getDefault().syncExec(new Runnable(){
    @Override public void run(){
      IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
      if (activeWorkbenchWindow != null && activeWorkbenchWindow.getActivePage() != null) {
        IEditorReference[] reference=activeWorkbenchWindow.getActivePage().getEditorReferences();
        list.addAll(Arrays.asList(reference));
      }
    }
  }
);
  return list.toArray(new IEditorReference[0]);
}
Program: 126399
Project: 126399
Buggy source:
public static IRepositoryView getRepositoryView(){
  if (CommonsPlugin.isHeadless()) {
    return null;
  }
  IViewPart part=null;
  IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
  if (activeWorkbenchWindow != null) {
    IWorkbenchPage page=activeWorkbenchWindow.getActivePage();
    if (page != null) {
      part=findRepositoryView();
      if (part == null) {
        try {
          if (IBrandingConfiguration.PERSPECTIVE_DI_ID.equals(page.getPerspective().getId())) {
            part=page.showView(IRepositoryView.VIEW_ID);
          }
        }
 catch (        Exception e) {
          ExceptionHandler.process(e);
        }
      }
      return (IRepositoryView)part;
    }
  }
  return (IRepositoryView)part;
}

Fixed version (ground truth):
public static IRepositoryView getRepositoryView(){
  if (CommonsPlugin.isHeadless()) {
    return null;
  }
  IViewPart part=null;
  IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
  if (activeWorkbenchWindow != null) {
    IWorkbenchPage page=activeWorkbenchWindow.getActivePage();
    if (page != null) {
      part=findRepositoryView();
      if (part == null) {
        try {
          if (IBrandingConfiguration.PERSPECTIVE_DI_ID.equals(page.getPerspective().getId())) {
            part=page.showView(IRepositoryView.VIEW_ID);
          }
 else           if (IBrandingConfiguration.PERSPECTIVE_DQ_ID.equals(page.getPerspective().getId())) {
            part=page.showView(IRepositoryView.VIEW_ID,null,IWorkbenchPage.VIEW_CREATE);
          }
        }
 catch (        Exception e) {
          ExceptionHandler.process(e);
        }
      }
      return (IRepositoryView)part;
    }
  }
  return (IRepositoryView)part;
}
Program: 126400
Project: 126400
Buggy source:
public void run(){
  IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
  if (activeWorkbenchWindow != null && activeWorkbenchWindow.getActivePage() != null) {
    IEditorReference[] reference=activeWorkbenchWindow.getActivePage().getEditorReferences();
    list.addAll(Arrays.asList(reference));
  }
}

Fixed version (ground truth):
@Override public void run(){
  IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
  if (activeWorkbenchWindow != null && activeWorkbenchWindow.getActivePage() != null) {
    IEditorReference[] reference=activeWorkbenchWindow.getActivePage().getEditorReferences();
    list.addAll(Arrays.asList(reference));
  }
}
Program: 126401
Project: 126401
Buggy source:
private String getAppArgValue(String arg,String defaultValue){
  String value=defaultValue;
  int index=ArrayUtils.indexOf(Platform.getApplicationArgs(),arg);
  if (index > 0) {
    if (index + 1 < Platform.getApplicationArgs().length) {
      value=Platform.getApplicationArgs()[index + 1];
    }
  }
  return value;
}

Fixed version (ground truth):
private String getAppArgValue(String arg,String defaultValue){
  String value=defaultValue;
  int index=ArrayUtils.indexOf(Platform.getApplicationArgs(),arg);
  if (index > -1) {
    if (index + 1 < Platform.getApplicationArgs().length) {
      value=Platform.getApplicationArgs()[index + 1];
    }
  }
  return value;
}
Program: 126402
Project: 126402
Buggy source:
/** 
 * DOC xqliu Comment method "forceRefreshContextsView".
 */
public static void forceRefreshContextsView(){
  AbstractContextView cxtView=forceGetView(AbstractContextView.CTX_ID_DESIGNER);
  if (cxtView != null) {
    refreshView(cxtView);
  }
}

Fixed version (ground truth):
/** 
 * DOC xqliu Comment method "forceRefreshContextsView".
 */
public static void forceRefreshContextsView(){
  refreshContextsView();
}
Program: 126403
Project: 126403
Buggy source:
public static void refreshContextsView(){
  Set<String> perspIDs=new HashSet<String>();
  perspIDs.add(PERSPECTIVE_DI_ID);
  perspIDs.add(IBrandingConfiguration.PERSPECTIVE_CAMEL_ID);
  AbstractContextView cxtView=getView(perspIDs,AbstractContextView.CTX_ID_DESIGNER);
  if (cxtView != null) {
    refreshView(cxtView);
  }
}

Fixed version (ground truth):
public static void refreshContextsView(){
  Set<String> perspIDs=new HashSet<String>();
  perspIDs.add(PERSPECTIVE_DI_ID);
  perspIDs.add(IBrandingConfiguration.PERSPECTIVE_CAMEL_ID);
  AbstractContextView cxtView=getView(perspIDs,AbstractContextView.CTX_ID_DESIGNER);
  if (cxtView != null) {
    refreshView(cxtView);
  }
 else {
    perspIDs=new HashSet<String>();
    perspIDs.add(IBrandingConfiguration.PERSPECTIVE_DQ_ID);
    cxtView=getView(perspIDs,AbstractContextView.CTX_ID_TDQ);
    if (cxtView != null) {
      refreshView(cxtView);
    }
 else {
      cxtView=forceGetView(AbstractContextView.CTX_ID_DESIGNER);
      if (cxtView != null) {
        refreshView(cxtView);
      }
    }
  }
}
Program: 126404
Project: 126404
Buggy source:
@Override public void removeFromParent(){
  if (table.eContainer() instanceof SAPFunctionUnit) {
    SAPFunctionUnit funUnit=(SAPFunctionUnit)table.eContainer();
    funUnit.getTables().remove(table);
    return;
  }
  if (table.eContainer() instanceof SalesforceModuleUnit) {
    SalesforceModuleUnit moduleUnit=(SalesforceModuleUnit)table.eContainer();
    moduleUnit.getTables().remove(table);
    return;
  }
  if (table.getNamespace() instanceof Package) {
    Package pkg=(Package)table.getNamespace();
    if (pkg.getOwnedElement().contains(table)) {
      pkg.getOwnedElement().remove(table);
    }
  }
  Property property=getProperty();
  if (property == null) {
    return;
  }
  Connection connection=null;
  Item item=property.getItem();
  if (item instanceof ConnectionItem) {
    ConnectionItem cItem=(ConnectionItem)item;
    connection=cItem.getConnection();
  }
  if (connection instanceof MDMConnection) {
    EList schemas=((MDMConnection)connection).getSchemas();
    Iterator iterator2=schemas.iterator();
    while (iterator2.hasNext()) {
      Object object=iterator2.next();
      if (object instanceof Concept) {
        Concept concept=(Concept)object;
        if (concept.getLabel() != null && concept.getLabel().equals(table.getLabel())) {
          iterator2.remove();
          break;
        }
      }
    }
  }
  return;
}

Fixed version (ground truth):
@Override public void removeFromParent(){
  if (table.eContainer() instanceof SAPFunctionUnit) {
    SAPFunctionUnit funUnit=(SAPFunctionUnit)table.eContainer();
    String tableType=table.getTableType();
    if ("String_Node_Str".endsWith(tableType)) {
      funUnit.getInputTables().remove(table);
    }
 else {
      funUnit.getTables().remove(table);
    }
    return;
  }
  if (table.eContainer() instanceof SalesforceModuleUnit) {
    SalesforceModuleUnit moduleUnit=(SalesforceModuleUnit)table.eContainer();
    moduleUnit.getTables().remove(table);
    return;
  }
  if (table.getNamespace() instanceof Package) {
    Package pkg=(Package)table.getNamespace();
    if (pkg.getOwnedElement().contains(table)) {
      pkg.getOwnedElement().remove(table);
    }
  }
  Property property=getProperty();
  if (property == null) {
    return;
  }
  Connection connection=null;
  Item item=property.getItem();
  if (item instanceof ConnectionItem) {
    ConnectionItem cItem=(ConnectionItem)item;
    connection=cItem.getConnection();
  }
  if (connection instanceof MDMConnection) {
    EList schemas=((MDMConnection)connection).getSchemas();
    Iterator iterator2=schemas.iterator();
    while (iterator2.hasNext()) {
      Object object=iterator2.next();
      if (object instanceof Concept) {
        Concept concept=(Concept)object;
        if (concept.getLabel() != null && concept.getLabel().equals(table.getLabel())) {
          iterator2.remove();
          break;
        }
      }
    }
  }
  return;
}
Program: 126405
Project: 126405
Buggy source:
public static ConnectionBean writeFromString(String s){
  ConnectionBean toReturn=new ConnectionBean();
  try {
    String[] st=s.split(FIELDS_SEPARATOR,-1);
    int i=0;
    toReturn.setRepositoryId(st[i++]);
    toReturn.setName(st[i++]);
    toReturn.setDescription(st[i++]);
    toReturn.setUser(st[i++]);
    toReturn.setPassword(st[i++]);
    i++;
    toReturn.setComplete(new Boolean(st[i++]));
    JSONObject dynamicJson=new JSONObject();
    toReturn.getConDetails().put(DYNAMICFIELDS,dynamicJson);
    while (i < st.length) {
      String[] st2=st[i++].split(DYN_FIELDS_SEPARATOR,-1);
      dynamicJson.put(st2[0],st2[1]);
    }
  }
 catch (  ArrayIndexOutOfBoundsException e) {
    ExceptionHandler.process(e);
  }
catch (  JSONException e) {
    ExceptionHandler.process(e);
  }
  return toReturn;
}

Fixed version (ground truth):
public static ConnectionBean writeFromString(String s){
  ConnectionBean toReturn=new ConnectionBean();
  try {
    String[] st=s.split(FIELDS_SEPARATOR,-1);
    int i=0;
    toReturn.setRepositoryId(st[i++]);
    toReturn.setName(st[i++]);
    toReturn.setDescription(st[i++]);
    toReturn.setUser(st[i++]);
    toReturn.setPassword(st[i++]);
    toReturn.setComplete(new Boolean(st[i++]));
    JSONObject dynamicJson=new JSONObject();
    toReturn.getConDetails().put(DYNAMICFIELDS,dynamicJson);
    while (i < st.length) {
      String[] st2=st[i++].split(DYN_FIELDS_SEPARATOR,-1);
      dynamicJson.put(st2[0],st2[1]);
    }
  }
 catch (  ArrayIndexOutOfBoundsException e) {
    ExceptionHandler.process(e);
  }
catch (  JSONException e) {
    ExceptionHandler.process(e);
  }
  return toReturn;
}
Program: 126406
Project: 126406
Buggy source:
@Override public boolean contains(String jarName){
  return jarList.contains(jarName);
}

Fixed version (ground truth):
@Override public boolean contains(String jarName){
  return list().contains(jarName);
}
Program: 126407
Project: 126407
Buggy source:
public static Map<String,ContextItem> getRepositoryContextItemIdMapping(){
  List<ContextItem> contextItemList=getAllContextItem();
  if (checkObject(contextItemList)) {
    return Collections.emptyMap();
  }
  Map<String,ContextItem> itemMap=new HashMap<String,ContextItem>();
  for (  ContextItem item : contextItemList) {
    itemMap.put(item.getProperty().getId(),item);
  }
  return itemMap;
}

Fixed version (ground truth):
public static Map<String,Item> getRepositoryContextItemIdMapping(){
  List<ContextItem> contextItemList=getAllContextItem();
  Map<String,Item> itemMap=new HashMap<String,Item>();
  if (checkObject(contextItemList)) {
    return itemMap;
  }
  for (  ContextItem item : contextItemList) {
    itemMap.put(item.getProperty().getId(),item);
  }
  return itemMap;
}
Program: 126410
Project: 126410
Buggy source:
private void checkVisibleTopMessages(){
  missModulesNeeded.clear();
  boolean allInstalled=true;
  List<String> updatedModules=new ArrayList<String>();
  if (libUiService != null) {
    updatedModules=libUiService.getNeedInstallModuleForBundle(REQUIRE_BUNDLE_NAME);
    allInstalled=libUiService.isModuleInstalledForBundle(REQUIRE_BUNDLE_NAME);
  }
  missModulesNeeded.addAll(updatedModules);
  setVisibleTopMessage(!allInstalled);
}

Fixed version (ground truth):
private void checkVisibleTopMessages(){
  missModulesNeeded.clear();
  boolean allInstalled=true;
  List<String> updatedModules=new ArrayList<String>();
  if (libUiService != null) {
    allInstalled=libUiService.isModuleInstalledForBundle(REQUIRE_BUNDLE_NAME);
    if (!allInstalled) {
      updatedModules=libUiService.getNeedInstallModuleForBundle(REQUIRE_BUNDLE_NAME);
    }
  }
  missModulesNeeded.addAll(updatedModules);
  setVisibleTopMessage(!allInstalled);
}
Program: 126411
Project: 126411
Buggy source:
@Override public List<String> getNeedInstallModuleForBundle(String bundleName){
  List<ModuleNeeded> allModulesNeededExtensionsForPlugin=ModulesNeededProvider.getAllModulesNeededExtensionsForPlugin();
  List<ModuleNeeded> requiredModulesForBundle=ModulesNeededProvider.filterRequiredModulesForBundle(bundleName,allModulesNeededExtensionsForPlugin);
  List<String> requiredJars=new ArrayList<String>(requiredModulesForBundle.size());
  for (  ModuleNeeded module : requiredModulesForBundle) {
    String moduleName=module.getModuleName();
    if (!new File(getLibrariesPath(ECodeLanguage.JAVA),moduleName).exists()) {
      requiredJars.add(moduleName);
    }
  }
  return requiredJars;
}

Fixed version (ground truth):
@Override public List<String> getNeedInstallModuleForBundle(String bundleName){
  List<ModuleNeeded> allModulesNeededExtensionsForPlugin=ModulesNeededProvider.getAllModulesNeededExtensionsForPlugin();
  List<ModuleNeeded> requiredModulesForBundle=ModulesNeededProvider.filterRequiredModulesForBundle(bundleName,allModulesNeededExtensionsForPlugin);
  List<String> requiredJars=new ArrayList<String>(requiredModulesForBundle.size());
  ILibraryManagerService service;
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ILibraryManagerService.class)) {
    service=(ILibraryManagerService)GlobalServiceRegister.getDefault().getService(ILibraryManagerService.class);
    for (    ModuleNeeded module : requiredModulesForBundle) {
      String moduleName=module.getModuleName();
      if (!service.contains(moduleName)) {
        requiredJars.add(moduleName);
      }
    }
  }
  return requiredJars;
}
Program: 126412
Project: 126412
Buggy source:
@Override public boolean isModuleInstalledForBundle(String bundleName){
  if (LibManagerUiPlugin.getDefault().getBundle().getBundleContext().getProperty("String_Node_Str") != null) {
    return true;
  }
  List<ModuleNeeded> allModulesNeededExtensionsForPlugin=ModulesNeededProvider.getAllModulesNeededExtensionsForPlugin();
  List<ModuleNeeded> requiredModulesForBundle=ModulesNeededProvider.filterRequiredModulesForBundle(bundleName,allModulesNeededExtensionsForPlugin);
  for (  ModuleNeeded module : requiredModulesForBundle) {
    String moduleName=module.getModuleName();
    if (!new File(getLibrariesPath(ECodeLanguage.JAVA),moduleName).exists()) {
      return false;
    }
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean isModuleInstalledForBundle(String bundleName){
  if (LibManagerUiPlugin.getDefault().getBundle().getBundleContext().getProperty("String_Node_Str") != null) {
    return true;
  }
  List<ModuleNeeded> allModulesNeededExtensionsForPlugin=ModulesNeededProvider.getAllModulesNeededExtensionsForPlugin();
  List<ModuleNeeded> requiredModulesForBundle=ModulesNeededProvider.filterRequiredModulesForBundle(bundleName,allModulesNeededExtensionsForPlugin);
  ILibraryManagerService service;
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ILibraryManagerService.class)) {
    service=(ILibraryManagerService)GlobalServiceRegister.getDefault().getService(ILibraryManagerService.class);
    for (    ModuleNeeded module : requiredModulesForBundle) {
      String moduleName=module.getModuleName();
      if (!service.contains(moduleName)) {
        return false;
      }
    }
    return true;
  }
  return false;
}
Program: 126413
Project: 126413
Buggy source:
@Override public boolean checkJarInstalledFromPlatform(String uriPath){
  if (uriJarInstalled.containsKey(uriPath)) {
    return uriJarInstalled.get(uriPath) != null;
  }
  String absolutePath=null;
  boolean jarFound=false;
  try {
    if (uriPath.startsWith("String_Node_Str")) {
      String plugin=uriPath.substring(17);
      plugin=plugin.substring(0,plugin.indexOf("String_Node_Str"));
      String path=uriPath.substring(17 + plugin.length());
      URL url=FileLocator.find(Platform.getBundle(plugin),new Path(path),null);
      if (url != null) {
        URL url2=FileLocator.toFileURL(url);
        File file=new File(url2.getFile());
        if (file.exists()) {
          jarFound=true;
          absolutePath=file.getAbsolutePath();
        }
      }
    }
  }
 catch (  Exception e) {
  }
  if (!jarFound) {
    try {
      URI uri=new URI(uriPath);
      URL url=FileLocator.toFileURL(uri.toURL());
      File file=new File(url.getFile());
      if (file.exists()) {
        jarFound=true;
        absolutePath=file.getAbsolutePath();
      }
    }
 catch (    Exception e) {
    }
  }
  uriJarInstalled.put(uriPath,absolutePath);
  return jarFound;
}

Fixed version (ground truth):
@Override public boolean checkJarInstalledFromPlatform(String uriPath){
  if (uriJarInstalled.containsKey(uriPath)) {
    return uriJarInstalled.get(uriPath) != null;
  }
  String absolutePath=null;
  boolean jarFound=false;
  try {
    if (uriPath.startsWith(ExtensionModuleManager.URIPATH_PREFIX)) {
      String plugin=uriPath.substring(17);
      plugin=plugin.substring(0,plugin.indexOf("String_Node_Str"));
      String path=uriPath.substring(17 + plugin.length());
      URL url=FileLocator.find(Platform.getBundle(plugin),new Path(path),null);
      if (url != null) {
        URL url2=FileLocator.toFileURL(url);
        File file=new File(url2.getFile());
        if (file.exists()) {
          jarFound=true;
          absolutePath=file.getAbsolutePath();
        }
      }
    }
  }
 catch (  Exception e) {
  }
  if (!jarFound) {
    try {
      URI uri=new URI(uriPath);
      URL url=FileLocator.toFileURL(uri.toURL());
      File file=new File(url.getFile());
      if (file.exists()) {
        jarFound=true;
        absolutePath=file.getAbsolutePath();
      }
    }
 catch (    Exception e) {
    }
  }
  uriJarInstalled.put(uriPath,absolutePath);
  return jarFound;
}
Program: 126414
Project: 126414
Buggy source:
private void installJarFromPlatformIfExists(String moduleName,String uriPath){
  if (jarsFromExtensions.containsValue(uriPath)) {
    return;
  }
  String jarName=null;
  try {
    if (uriJarInstalled.containsKey(uriPath)) {
      File file=new File(uriJarInstalled.get(uriPath));
      if (file.exists()) {
        jarName=file.getName();
      }
    }
 else {
      URI uri=new URI(uriPath);
      URL url=FileLocator.toFileURL(uri.toURL());
      File file=new File(url.getFile());
      if (file.exists()) {
        jarName=file.getName();
      }
    }
  }
 catch (  Exception e) {
  }
  if (jarName != null) {
    jarsFromExtensions.put(jarName,uriPath);
    jarsFromExtensions.put(moduleName,uriPath);
  }
}

Fixed version (ground truth):
private void installJarFromPlatformIfExists(String moduleName,String uriPath){
  if (jarsFromExtensions.containsValue(uriPath)) {
    return;
  }
  String jarName=null;
  try {
    if (checkJarInstalledFromPlatform(uriPath)) {
      File file=new File(uriJarInstalled.get(uriPath));
      if (file.exists()) {
        jarName=file.getName();
      }
    }
 else {
      URI uri=new URI(uriPath);
      URL url=FileLocator.toFileURL(uri.toURL());
      File file=new File(url.getFile());
      if (file.exists()) {
        jarName=file.getName();
      }
    }
  }
 catch (  Exception e) {
  }
  if (jarName != null) {
    jarsFromExtensions.put(jarName,uriPath);
    jarsFromExtensions.put(moduleName,uriPath);
  }
}
Program: 126417
Project: 126417
Buggy source:
private static void setDatabaseValueForAccess(DatabaseConnection connection,INode node,String repositoryValue){
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      EDatabaseVersion4Drivers version=EDatabaseVersion4Drivers.indexOfByVersion(value);
      if (version != null) {
        connection.setDbVersionString(version.getVersionValue());
      }
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setFileFieldName(value);
    }
  }
}

Fixed version (ground truth):
private static void setDatabaseValueForAccess(DatabaseConnection connection,INode node,IElementParameter param){
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      EDatabaseVersion4Drivers version=EDatabaseVersion4Drivers.indexOfByVersion(value);
      if (version != null) {
        connection.setDbVersionString(version.getVersionValue());
      }
    }
  }
}
Program: 126419
Project: 126419
Buggy source:
private static void setDatabaseValueForNetezza(DatabaseConnection connection,INode node,String repositoryValue){
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setDatasourceName(value);
    }
  }
}

Fixed version (ground truth):
private static void setDatabaseValueForNetezza(DatabaseConnection connection,INode node,IElementParameter param){
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setDatasourceName(value);
    }
  }
}
Program: 126420
Project: 126420
Buggy source:
/** 
 * DOC wzhang Comment method "setDatabaseValueForOracleSid".
 * @param connection
 * @param node
 * @param repositoryValue
 */
private static void setDatabaseValueForOracleSid(DatabaseConnection connection,INode node,String repositoryValue){
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    String dbVersionName=EDatabaseVersion4Drivers.getDbVersionName(EDatabaseTypeName.ORACLEFORSID,value);
    if (value != null) {
      connection.setDbVersionString(dbVersionName);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    IElementParameter param=node.getElementParameter("String_Node_Str");
    if (param != null && "String_Node_Str".equals(param.getValue())) {
      String value=getParameterValue(connection,node,"String_Node_Str");
      if (value != null) {
        connection.setSID(value);
      }
    }
 else {
      String value=getParameterValue(connection,node,"String_Node_Str");
      if (value != null) {
        connection.setSID(value);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * DOC wzhang Comment method "setDatabaseValueForOracleSid".
 * @param connection
 * @param node
 * @param repositoryValue
 */
private static void setDatabaseValueForOracleSid(DatabaseConnection connection,INode node,IElementParameter param){
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    String dbVersionName=EDatabaseVersion4Drivers.getDbVersionName(EDatabaseTypeName.ORACLEFORSID,value);
    if (value != null) {
      connection.setDbVersionString(dbVersionName);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    if (param != null && "String_Node_Str".equals(param.getValue())) {
      String value=getParameterValue(connection,node,node.getElementParameter("String_Node_Str"));
      if (value != null) {
        connection.setSID(value);
      }
    }
 else {
      String value=getParameterValue(connection,node,node.getElementParameter("String_Node_Str"));
      if (value != null) {
        connection.setSID(value);
      }
    }
  }
}
Program: 126421
Project: 126421
Buggy source:
private static void setDatabaseValueForjavadb(DatabaseConnection connection,INode node,String repositoryValue){
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setSID(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setDBRootPath(value);
    }
  }
}

Fixed version (ground truth):
private static void setDatabaseValueForjavadb(DatabaseConnection connection,INode node,IElementParameter param){
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setSID(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setDBRootPath(value);
    }
  }
}
Program: 126422
Project: 126422
Buggy source:
private static void setHL7Value(HL7Connection connection,INode node,String repositoryValue){
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setFilePath(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    final String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setStartChar(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    final String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setEndChar(value);
    }
  }
}

Fixed version (ground truth):
private static void setHL7Value(HL7Connection connection,INode node,IElementParameter param){
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setFilePath(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setStartChar(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setEndChar(value);
    }
  }
}
Program: 126424
Project: 126424
Buggy source:
private static void setDatabaseValueForAs400(DatabaseConnection connection,INode node,String repositoryValue){
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    String dbVersionName=EDatabaseVersion4Drivers.getDbVersionName(EDatabaseTypeName.AS400,value);
    if (value != null) {
      connection.setDbVersionString(dbVersionName);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setAdditionalParams(value);
    }
  }
}

Fixed version (ground truth):
private static void setDatabaseValueForAs400(DatabaseConnection connection,INode node,IElementParameter param){
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    String dbVersionName=EDatabaseVersion4Drivers.getDbVersionName(EDatabaseTypeName.AS400,value);
    if (value != null) {
      connection.setDbVersionString(dbVersionName);
    }
  }
}
Program: 126428
Project: 126428
Buggy source:
private static void setLdifFileValue(LdifFileConnection connection,INode node,String repositoryValue){
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setFilePath(value);
    }
  }
}

Fixed version (ground truth):
private static void setLdifFileValue(LdifFileConnection connection,INode node,IElementParameter param){
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setFilePath(value);
    }
  }
}
Program: 126430
Project: 126430
Buggy source:
private static void setDatabaseValueForVertica(DatabaseConnection connection,INode node,String repositoryValue){
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    String dbVersionName=EDatabaseVersion4Drivers.getDbVersionName(EDatabaseTypeName.VERTICA,value);
    if (value != null) {
      connection.setDbVersionString(dbVersionName);
    }
  }
}

Fixed version (ground truth):
private static void setDatabaseValueForVertica(DatabaseConnection connection,INode node,IElementParameter param){
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    String dbVersionName=EDatabaseVersion4Drivers.getDbVersionName(EDatabaseTypeName.VERTICA,value);
    if (value != null) {
      connection.setDbVersionString(dbVersionName);
    }
  }
}
Program: 126431
Project: 126431
Buggy source:
/** 
 * DOC wzhang Comment method "getParameterValue".
 * @param node
 * @param paramName
 * @return
 */
public static String getParameterValue(Connection connection,INode node,String paramName){
  String originalValue=getParameterOriginalValue(connection,node,paramName);
  if (originalValue != null) {
    return TalendQuoteUtils.removeQuotes(originalValue);
  }
  return null;
}

Fixed version (ground truth):
/** 
 * DOC wzhang Comment method "getParameterValue".
 * @param node
 * @param paramName
 * @return
 */
public static String getParameterValue(Connection connection,INode node,IElementParameter param){
  String originalValue=getParameterOriginalValue(connection,node,param);
  if (originalValue != null) {
    return TalendQuoteUtils.removeQuotes(originalValue);
  }
  return null;
}
Program: 126433
Project: 126433
Buggy source:
private static void setBRMSValue(BRMSConnection connection,INode node,String repositoryValue){
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setXmlField(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setUrlName(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setTacWebappName(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setClassName(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setPackage(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setModuleUsed(value);
    }
  }
}

Fixed version (ground truth):
private static void setBRMSValue(BRMSConnection connection,INode node,IElementParameter param){
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setXmlField(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setUrlName(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setTacWebappName(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setClassName(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setPackage(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setModuleUsed(value);
    }
  }
}
Program: 126435
Project: 126435
Buggy source:
private static void setSAPValue(SAPConnection connection,INode node,String repositoryValue){
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setClient(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setPassword(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setLanguage(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setHost(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setUsername(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setSystemNumber(value);
    }
  }
}

Fixed version (ground truth):
private static void setSAPValue(SAPConnection connection,INode node,IElementParameter param){
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setClient(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setPassword(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setLanguage(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setHost(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setUsername(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setSystemNumber(value);
    }
  }
}