nus-yam/ex-repair huggingface dataset:
Program: 129181
Project: 129181
Buggy source:
/** 
 * create technical name.
 * @param name
 * @return
 */
public static String createTechnicalName(String name){
  while (name.endsWith("String_Node_Str")) {
    name=name.substring(0,name.length() - 1);
  }
  if (name != null) {
    name=name.toUpperCase();
    name=name.replace("String_Node_Str","String_Node_Str");
    name=name.replace("String_Node_Str","String_Node_Str");
  }
  return name;
}

Fixed version (ground truth):
/** 
 * create technical name.
 * @param name
 * @return
 */
public static String createTechnicalName(String name){
  while (name.endsWith("String_Node_Str")) {
    name=name.substring(0,name.length() - 1);
  }
  if (name != null) {
    name=name.toUpperCase(Locale.ENGLISH);
    name=name.replace("String_Node_Str","String_Node_Str");
    name=name.replace("String_Node_Str","String_Node_Str");
  }
  return name;
}
Program: 129182
Project: 129182
Buggy source:
public String toString(){
  return getLabel();
}

Fixed version (ground truth):
@Override public String toString(){
  return getLabel();
}
Program: 129185
Project: 129185
Buggy source:
@Override public boolean performFinish(){
  boolean formIsPerformed=false;
  if (page3 == null) {
    formIsPerformed=page1.isPageComplete();
  }
 else {
    formIsPerformed=page3.isPageComplete();
  }
  if (formIsPerformed) {
    IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
    try {
      if (creation) {
        String nextId=factory.getNextId();
        connectionProperty.setId(nextId);
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        factory.create(connectionItem,excelFileWizardPage0.getDestinationPath());
      }
 else {
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        RepositoryUpdateManager.updateFileConnection(connectionItem);
        boolean isModified=excelFileWizardPage0.isNameModifiedByUser();
        if (isModified) {
          if (GlobalServiceRegister.getDefault().isServiceRegistered(IDesignerCoreService.class)) {
            IDesignerCoreService service=(IDesignerCoreService)GlobalServiceRegister.getDefault().getService(IDesignerCoreService.class);
            if (service != null) {
              service.refreshComponentView(connectionItem);
            }
          }
        }
        updateConnectionItem();
      }
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      String detailError=e.toString();
      new ErrorDialogWidthDetailArea(getShell(),PID,Messages.getString("String_Node_Str"),detailError);
      log.error(Messages.getString("String_Node_Str") + "String_Node_Str" + detailError);
      return false;
    }
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
@Override public boolean performFinish(){
  boolean formIsPerformed=false;
  if (page3 == null) {
    formIsPerformed=page1.isPageComplete();
  }
 else {
    formIsPerformed=page3.isPageComplete();
  }
  if (formIsPerformed) {
    IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
    try {
      if (creation) {
        String nextId=factory.getNextId();
        connectionProperty.setId(nextId);
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        factory.create(connectionItem,excelFileWizardPage0.getDestinationPath());
      }
 else {
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        RepositoryUpdateManager.updateFileConnection(connectionItem);
        refreshInFinish(excelFileWizardPage0.isNameModifiedByUser());
        updateConnectionItem();
      }
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      String detailError=e.toString();
      new ErrorDialogWidthDetailArea(getShell(),PID,Messages.getString("String_Node_Str"),detailError);
      log.error(Messages.getString("String_Node_Str") + "String_Node_Str" + detailError);
      return false;
    }
    return true;
  }
 else {
    return false;
  }
}
Program: 129189
Project: 129189
Buggy source:
@Override public boolean performFinish(){
  boolean formIsPerformed=false;
  formIsPerformed=page1.isPageComplete();
  if (formIsPerformed) {
    IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
    try {
      if (creation) {
        String nextId=factory.getNextId();
        connectionProperty.setId(nextId);
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        factory.create(connectionItem,salesforceSchemaWizardPage0.getDestinationPath());
      }
 else {
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        RepositoryUpdateManager.updateFileConnection(connectionItem);
        boolean isModified=salesforceSchemaWizardPage0.isNameModifiedByUser();
        if (isModified) {
          if (GlobalServiceRegister.getDefault().isServiceRegistered(IDesignerCoreService.class)) {
            IDesignerCoreService service=(IDesignerCoreService)GlobalServiceRegister.getDefault().getService(IDesignerCoreService.class);
            if (service != null) {
              service.refreshComponentView(connectionItem);
            }
          }
        }
        updateConnectionItem();
      }
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      String detailError=e.toString();
      new ErrorDialogWidthDetailArea(getShell(),PID,Messages.getString("String_Node_Str"),detailError);
      log.error(Messages.getString("String_Node_Str") + "String_Node_Str" + detailError);
      return false;
    }
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
@Override public boolean performFinish(){
  boolean formIsPerformed=false;
  formIsPerformed=page1.isPageComplete();
  if (formIsPerformed) {
    IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
    try {
      if (creation) {
        String nextId=factory.getNextId();
        connectionProperty.setId(nextId);
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        factory.create(connectionItem,salesforceSchemaWizardPage0.getDestinationPath());
      }
 else {
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        RepositoryUpdateManager.updateFileConnection(connectionItem);
        refreshInFinish(salesforceSchemaWizardPage0.isNameModifiedByUser());
        updateConnectionItem();
      }
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      String detailError=e.toString();
      new ErrorDialogWidthDetailArea(getShell(),PID,Messages.getString("String_Node_Str"),detailError);
      log.error(Messages.getString("String_Node_Str") + "String_Node_Str" + detailError);
      return false;
    }
    return true;
  }
 else {
    return false;
  }
}
Program: 129191
Project: 129191
Buggy source:
@Override public boolean performFinish(){
  if (isSinglePageOnly) {
    return true;
  }
  boolean formIsPerformed;
  if (ldapSchemaWizardPage4 == null) {
    formIsPerformed=ldapSchemaWizardPage3.isPageComplete();
  }
 else {
    formIsPerformed=ldapSchemaWizardPage4.isPageComplete();
  }
  if (formIsPerformed) {
    IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
    try {
      if (creation) {
        String nextId=factory.getNextId();
        connectionProperty.setId(nextId);
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        factory.create(connectionItem,ldapSchemaWizardPage0.getDestinationPath());
      }
 else {
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        RepositoryUpdateManager.updateMultiSchema(connectionItem,oldMetadataTable,oldTableMap);
        boolean isModified=ldapSchemaWizardPage0.isNameModifiedByUser();
        if (isModified) {
          if (GlobalServiceRegister.getDefault().isServiceRegistered(IDesignerCoreService.class)) {
            IDesignerCoreService service=(IDesignerCoreService)GlobalServiceRegister.getDefault().getService(IDesignerCoreService.class);
            if (service != null) {
              service.refreshComponentView(connectionItem);
            }
          }
        }
        updateConnectionItem();
      }
    }
 catch (    Exception e) {
      String detailError=e.toString();
      new ErrorDialogWidthDetailArea(getShell(),PID,Messages.getString("String_Node_Str"),detailError);
      log.error(Messages.getString("String_Node_Str") + "String_Node_Str" + detailError);
      return false;
    }
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
@Override public boolean performFinish(){
  if (isSinglePageOnly) {
    return true;
  }
  boolean formIsPerformed;
  if (ldapSchemaWizardPage4 == null) {
    formIsPerformed=ldapSchemaWizardPage3.isPageComplete();
  }
 else {
    formIsPerformed=ldapSchemaWizardPage4.isPageComplete();
  }
  if (formIsPerformed) {
    IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
    try {
      if (creation) {
        String nextId=factory.getNextId();
        connectionProperty.setId(nextId);
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        factory.create(connectionItem,ldapSchemaWizardPage0.getDestinationPath());
      }
 else {
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        RepositoryUpdateManager.updateMultiSchema(connectionItem,oldMetadataTable,oldTableMap);
        refreshInFinish(ldapSchemaWizardPage0.isNameModifiedByUser());
        updateConnectionItem();
      }
    }
 catch (    Exception e) {
      String detailError=e.toString();
      new ErrorDialogWidthDetailArea(getShell(),PID,Messages.getString("String_Node_Str"),detailError);
      log.error(Messages.getString("String_Node_Str") + "String_Node_Str" + detailError);
      return false;
    }
    return true;
  }
 else {
    return false;
  }
}
Program: 129193
Project: 129193
Buggy source:
@Override public void renameFolder(ERepositoryObjectType type,IPath path,String label) throws PersistenceException {
  this.repositoryFactoryFromProvider.renameFolder(type,path,label);
  if (type == ERepositoryObjectType.PROCESS) {
    fireRepositoryPropertyChange(ERepositoryActionName.FOLDER_RENAME.getName(),path,label);
  }
  if (type == ERepositoryObjectType.JOBLET) {
    fireRepositoryPropertyChange(ERepositoryActionName.JOBLET_FOLDER_RENAME.getName(),path,label);
  }
  this.repositoryFactoryFromProvider.updateItemsPath(type,path.removeLastSegments(1).append(label));
}

Fixed version (ground truth):
@Override public void renameFolder(ERepositoryObjectType type,IPath path,String label) throws PersistenceException {
  if (this.repositoryFactoryFromProvider.isLocalConnectionProvider()) {
    this.repositoryFactoryFromProvider.renameFolderForLocal(type,path,label);
  }
 else {
    this.repositoryFactoryFromProvider.renameFolder(type,path,label);
  }
  if (type == ERepositoryObjectType.PROCESS) {
    fireRepositoryPropertyChange(ERepositoryActionName.FOLDER_RENAME.getName(),path,label);
  }
  if (type == ERepositoryObjectType.JOBLET) {
    fireRepositoryPropertyChange(ERepositoryActionName.JOBLET_FOLDER_RENAME.getName(),path,label);
  }
  this.repositoryFactoryFromProvider.updateItemsPath(type,path.removeLastSegments(1).append(label));
}
Program: 129194
Project: 129194
Buggy source:
@Override public boolean isPathValid(Project project,ERepositoryObjectType type,IPath path,String label) throws PersistenceException {
  if (path == null) {
    return false;
  }
  if (label.equalsIgnoreCase("String_Node_Str")) {
    return false;
  }
 else   if (RepositoryConstants.isSystemFolder(label) || RepositoryConstants.isGeneratedFolder(label) || RepositoryConstants.isJobsFolder(label)|| RepositoryConstants.isJobletsFolder(label)) {
    return false;
  }
 else {
    IProject fsProject=ResourceModelUtils.getProject(project);
    String completePath=null;
    if (type.equals(ERepositoryObjectType.TDQ_PATTERN_REGEX)) {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + label.toString();
    }
 else {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + path.toString();
      completePath=completePath + IPath.SEPARATOR + label;
    }
    IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
    List<String> listExistingObjects=service.getProxyRepositoryFactory().getFolders(type);
    for (    String existName : listExistingObjects) {
      if (existName.equalsIgnoreCase(label)) {
        return false;
      }
    }
    IFolder existingFolder=ResourceUtils.getFolder(fsProject,completePath,false);
    return !existingFolder.exists();
  }
}

Fixed version (ground truth):
@Override public boolean isPathValid(Project project,ERepositoryObjectType type,IPath path,String label) throws PersistenceException {
  if (path == null) {
    return false;
  }
  if (label.equalsIgnoreCase("String_Node_Str")) {
    return false;
  }
 else   if (RepositoryConstants.isSystemFolder(label) || RepositoryConstants.isGeneratedFolder(label) || RepositoryConstants.isJobsFolder(label)|| RepositoryConstants.isJobletsFolder(label)) {
    return false;
  }
 else {
    IProject fsProject=ResourceModelUtils.getProject(project);
    String completePath=null;
    if (type.equals(ERepositoryObjectType.TDQ_PATTERN_REGEX)) {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + label.toString();
    }
 else {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + path.toString();
      completePath=completePath + IPath.SEPARATOR + label;
    }
    IFolder existingFolder=ResourceUtils.getFolder(fsProject,completePath,false);
    return !existingFolder.exists();
  }
}
Program: 129196
Project: 129196
Buggy source:
@Override public void run(){
  if (!debug) {
synchronized (this) {
      try {
        while (!jobIsFinished) {
          sendMessages();
          wait(1000);
        }
      }
 catch (      InterruptedException e) {
        System.out.println("String_Node_Str");
      }
    }
  }
}

Fixed version (ground truth):
public void run(){
  if (!debug) {
synchronized (this) {
      try {
        while (!jobIsFinished) {
          sendMessages();
          wait(1000);
        }
      }
 catch (      InterruptedException e) {
        System.out.println("String_Node_Str");
      }
    }
  }
}
Program: 129197
Project: 129197
Buggy source:
@Override public void run(){
  if (!debug) {
synchronized (this) {
      try {
        while (!jobIsFinished) {
          sendMessages();
          wait(1000);
        }
      }
 catch (      InterruptedException e) {
        System.out.println("String_Node_Str");
      }
    }
  }
}

Fixed version (ground truth):
public void run(){
  if (!debug) {
synchronized (this) {
      try {
        while (!jobIsFinished) {
          sendMessages();
          wait(1000);
        }
      }
 catch (      InterruptedException e) {
        System.out.println("String_Node_Str");
      }
    }
  }
}
Program: 129198
Project: 129198
Buggy source:
public void init(IWorkbench workbench,IStructuredSelection selection){
}

Fixed version (ground truth):
@Override public void init(IWorkbench workbench,IStructuredSelection selection){
}
Program: 129199
Project: 129199
Buggy source:
public void run(IProgressMonitor monitor) throws CoreException {
  try {
    factory.save(connectionItem);
    closeLockStrategy();
  }
 catch (  PersistenceException e) {
    throw new CoreException(new Status(IStatus.ERROR,"String_Node_Str","String_Node_Str",e));
  }
}

Fixed version (ground truth):
@Override public void run(IProgressMonitor monitor) throws CoreException {
  try {
    factory.save(connectionItem);
    closeLockStrategy();
  }
 catch (  PersistenceException e) {
    throw new CoreException(new Status(IStatus.ERROR,"String_Node_Str","String_Node_Str",e));
  }
}
Program: 129201
Project: 129201
Buggy source:
public int getCursorPosition(){
  return content.length();
}

Fixed version (ground truth):
@Override public int getCursorPosition(){
  return content.length();
}
Program: 129203
Project: 129203
Buggy source:
public String getLabel(){
  return label;
}

Fixed version (ground truth):
@Override public String getLabel(){
  return label;
}
Program: 129204
Project: 129204
Buggy source:
public String getContent(){
  return TalendQuoteUtils.addQuotes(content);
}

Fixed version (ground truth):
@Override public String getContent(){
  return TalendQuoteUtils.addQuotes(content);
}
Program: 129205
Project: 129205
Buggy source:
public String getDescription(){
  return description;
}

Fixed version (ground truth):
@Override public String getDescription(){
  return description;
}
Program: 129208
Project: 129208
Buggy source:
public boolean isPathValid(Project project,ERepositoryObjectType type,IPath path,String label) throws PersistenceException {
  if (path == null) {
    return false;
  }
  if (label.equalsIgnoreCase("String_Node_Str")) {
    return false;
  }
 else   if (RepositoryConstants.isSystemFolder(label) || RepositoryConstants.isGeneratedFolder(label) || RepositoryConstants.isJobsFolder(label)|| RepositoryConstants.isJobletsFolder(label)) {
    return false;
  }
 else {
    IProject fsProject=ResourceModelUtils.getProject(project);
    String completePath=null;
    if (type.equals(ERepositoryObjectType.TDQ_PATTERN_REGEX)) {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + label.toString();
    }
 else {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + path.toString();
      completePath=completePath + IPath.SEPARATOR + label;
    }
    IFolder existingFolder=ResourceUtils.getFolder(fsProject,completePath,false);
    return !existingFolder.exists();
  }
}

Fixed version (ground truth):
public boolean isPathValid(Project project,ERepositoryObjectType type,IPath path,String label) throws PersistenceException {
  if (path == null) {
    return false;
  }
  if (label.equalsIgnoreCase("String_Node_Str")) {
    return false;
  }
 else   if (RepositoryConstants.isSystemFolder(label) || RepositoryConstants.isGeneratedFolder(label) || RepositoryConstants.isJobsFolder(label)|| RepositoryConstants.isJobletsFolder(label)) {
    return false;
  }
 else {
    IProject fsProject=ResourceModelUtils.getProject(project);
    String completePath=null;
    if (type.equals(ERepositoryObjectType.TDQ_PATTERN_REGEX)) {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + label.toString();
    }
 else {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + path.toString();
      completePath=completePath + IPath.SEPARATOR + label;
    }
    IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
    List<String> listExistingObjects=service.getProxyRepositoryFactory().getFolders(type);
    for (    String existName : listExistingObjects) {
      if (existName.equalsIgnoreCase(label)) {
        return false;
      }
    }
    IFolder existingFolder=ResourceUtils.getFolder(fsProject,completePath,false);
    return !existingFolder.exists();
  }
}
Program: 129209
Project: 129209
Buggy source:
public int compare(String o1,String o2){
  return o1.replaceAll("String_Node_Str","String_Node_Str").compareToIgnoreCase(o2.replaceAll("String_Node_Str","String_Node_Str"));
}

Fixed version (ground truth):
@Override public int compare(String o1,String o2){
  return o1.replaceAll("String_Node_Str","String_Node_Str").compareToIgnoreCase(o2.replaceAll("String_Node_Str","String_Node_Str"));
}
Program: 129210
Project: 129210
Buggy source:
@Override protected Comparator<String> getComparator(){
  return new Comparator<String>(){
    public int compare(    String o1,    String o2){
      return o1.replaceAll("String_Node_Str","String_Node_Str").compareToIgnoreCase(o2.replaceAll("String_Node_Str","String_Node_Str"));
    }
  }
;
}

Fixed version (ground truth):
@Override protected Comparator<String> getComparator(){
  return new Comparator<String>(){
    @Override public int compare(    String o1,    String o2){
      return o1.replaceAll("String_Node_Str","String_Node_Str").compareToIgnoreCase(o2.replaceAll("String_Node_Str","String_Node_Str"));
    }
  }
;
}
Program: 129212
Project: 129212
Buggy source:
public void setMigrationTasksDone(Project project,List<String> list) throws PersistenceException {
  project.getEmfProject().getMigrationTasks().clear();
  project.getEmfProject().getMigrationTasks().addAll(list);
  saveProject(project);
}

Fixed version (ground truth):
@Override public void setMigrationTasksDone(Project project,List<String> list) throws PersistenceException {
  project.getEmfProject().getMigrationTasks().clear();
  project.getEmfProject().getMigrationTasks().addAll(list);
  saveProject(project);
}
Program: 129213
Project: 129213
Buggy source:
@Override public boolean isPathValid(Project project,ERepositoryObjectType type,IPath path,String label) throws PersistenceException {
  if (path == null) {
    return false;
  }
  if (label.equalsIgnoreCase("String_Node_Str")) {
    return false;
  }
 else   if (RepositoryConstants.isSystemFolder(label) || RepositoryConstants.isGeneratedFolder(label) || RepositoryConstants.isJobsFolder(label)|| RepositoryConstants.isJobletsFolder(label)) {
    return false;
  }
 else {
    IProject fsProject=ResourceModelUtils.getProject(project);
    String completePath=null;
    if (type.equals(ERepositoryObjectType.TDQ_PATTERN_REGEX)) {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + label.toString();
    }
 else {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + path.toString();
      completePath=completePath + IPath.SEPARATOR + label;
    }
    IFolder existingFolder=ResourceUtils.getFolder(fsProject,completePath,false);
    return !existingFolder.exists();
  }
}

Fixed version (ground truth):
@Override public boolean isPathValid(Project project,ERepositoryObjectType type,IPath path,String label) throws PersistenceException {
  if (path == null) {
    return false;
  }
  if (label.equalsIgnoreCase("String_Node_Str")) {
    return false;
  }
 else   if (RepositoryConstants.isSystemFolder(label) || RepositoryConstants.isGeneratedFolder(label) || RepositoryConstants.isJobsFolder(label)|| RepositoryConstants.isJobletsFolder(label)) {
    return false;
  }
 else {
    IProject fsProject=ResourceModelUtils.getProject(project);
    String completePath=null;
    if (type.equals(ERepositoryObjectType.TDQ_PATTERN_REGEX)) {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + label.toString();
    }
 else {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + path.toString();
      completePath=completePath + IPath.SEPARATOR + label;
    }
    IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
    List<String> listExistingObjects=service.getProxyRepositoryFactory().getFolders(type);
    for (    String existName : listExistingObjects) {
      if (existName.equalsIgnoreCase(label)) {
        return false;
      }
    }
    IFolder existingFolder=ResourceUtils.getFolder(fsProject,completePath,false);
    return !existingFolder.exists();
  }
}
Program: 129214
Project: 129214
Buggy source:
/** 
 * We will accept the selection in the workbench to see if we can initialize from it.
 * @see IWorkbenchWizard#init(IWorkbench,IStructuredSelection)
 */
public void init(final IWorkbench workbench,final IStructuredSelection selection2){
  this.selection=selection2;
}

Fixed version (ground truth):
/** 
 * We will accept the selection in the workbench to see if we can initialize from it.
 * @see IWorkbenchWizard#init(IWorkbench,IStructuredSelection)
 */
@Override public void init(final IWorkbench workbench,final IStructuredSelection selection2){
  this.selection=selection2;
}
Program: 129218
Project: 129218
Buggy source:
public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}

Fixed version (ground truth):
@Override public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}
Program: 129219
Project: 129219
Buggy source:
public void init(IWorkbench workbench,IStructuredSelection selection){
  this.selection=selection;
}

Fixed version (ground truth):
@Override public void init(IWorkbench workbench,IStructuredSelection selection){
  this.selection=selection;
}
Program: 129221
Project: 129221
Buggy source:
@Override public boolean performFinish(){
  boolean formIsPerformed=false;
  if (page3 == null) {
    formIsPerformed=page1.isPageComplete();
  }
 else {
    formIsPerformed=page3.isPageComplete();
  }
  if (formIsPerformed) {
    IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
    try {
      if (creation) {
        String nextId=factory.getNextId();
        connectionProperty.setId(nextId);
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        factory.create(connectionItem,excelFileWizardPage0.getDestinationPath());
      }
 else {
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        RepositoryUpdateManager.updateFileConnection(connectionItem);
        updateConnectionItem();
      }
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      String detailError=e.toString();
      new ErrorDialogWidthDetailArea(getShell(),PID,Messages.getString("String_Node_Str"),detailError);
      log.error(Messages.getString("String_Node_Str") + "String_Node_Str" + detailError);
      return false;
    }
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
@Override public boolean performFinish(){
  boolean formIsPerformed=false;
  if (page3 == null) {
    formIsPerformed=page1.isPageComplete();
  }
 else {
    formIsPerformed=page3.isPageComplete();
  }
  if (formIsPerformed) {
    IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
    try {
      if (creation) {
        String nextId=factory.getNextId();
        connectionProperty.setId(nextId);
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        factory.create(connectionItem,excelFileWizardPage0.getDestinationPath());
      }
 else {
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        RepositoryUpdateManager.updateFileConnection(connectionItem);
        boolean isModified=excelFileWizardPage0.isNameModifiedByUser();
        if (isModified) {
          if (GlobalServiceRegister.getDefault().isServiceRegistered(IDesignerCoreService.class)) {
            IDesignerCoreService service=(IDesignerCoreService)GlobalServiceRegister.getDefault().getService(IDesignerCoreService.class);
            if (service != null) {
              service.refreshComponentView(connectionItem);
            }
          }
        }
        updateConnectionItem();
      }
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      String detailError=e.toString();
      new ErrorDialogWidthDetailArea(getShell(),PID,Messages.getString("String_Node_Str"),detailError);
      log.error(Messages.getString("String_Node_Str") + "String_Node_Str" + detailError);
      return false;
    }
    return true;
  }
 else {
    return false;
  }
}
Program: 129222
Project: 129222
Buggy source:
public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}

Fixed version (ground truth):
@Override public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}
Program: 129223
Project: 129223
Buggy source:
/** 
 * We will accept the selection in the workbench to see if we can initialize from it.
 * @see IWorkbenchWizard#init(IWorkbench,IStructuredSelection)
 */
public void init(final IWorkbench workbench,final IStructuredSelection selection2){
  this.selection=selection2;
}

Fixed version (ground truth):
/** 
 * We will accept the selection in the workbench to see if we can initialize from it.
 * @see IWorkbenchWizard#init(IWorkbench,IStructuredSelection)
 */
@Override public void init(final IWorkbench workbench,final IStructuredSelection selection2){
  this.selection=selection2;
}
Program: 129227
Project: 129227
Buggy source:
public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}

Fixed version (ground truth):
@Override public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}
Program: 129228
Project: 129228
Buggy source:
/** 
 * We will accept the selection in the workbench to see if we can initialize from it.
 * @see IWorkbenchWizard#init(IWorkbench,IStructuredSelection)
 */
public void init(final IWorkbench workbench,final IStructuredSelection selection2){
  this.selection=selection2;
}

Fixed version (ground truth):
/** 
 * We will accept the selection in the workbench to see if we can initialize from it.
 * @see IWorkbenchWizard#init(IWorkbench,IStructuredSelection)
 */
@Override public void init(final IWorkbench workbench,final IStructuredSelection selection2){
  this.selection=selection2;
}
Program: 129232
Project: 129232
Buggy source:
public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}

Fixed version (ground truth):
@Override public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}
Program: 129235
Project: 129235
Buggy source:
@Override public boolean isPathValid(Project project,ERepositoryObjectType type,IPath path,String label) throws PersistenceException {
  if (path == null) {
    return false;
  }
  if (label.equalsIgnoreCase("String_Node_Str")) {
    return false;
  }
 else   if (RepositoryConstants.isSystemFolder(label) || RepositoryConstants.isGeneratedFolder(label) || RepositoryConstants.isJobsFolder(label)|| RepositoryConstants.isJobletsFolder(label)) {
    return false;
  }
 else {
    IProject fsProject=ResourceModelUtils.getProject(project);
    String completePath=null;
    if (type.equals(ERepositoryObjectType.TDQ_PATTERN_REGEX)) {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + label.toString();
    }
 else {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + path.toString();
      completePath=completePath + IPath.SEPARATOR + label;
    }
    IFolder existingFolder=ResourceUtils.getFolder(fsProject,completePath,false);
    return !existingFolder.exists();
  }
}

Fixed version (ground truth):
@Override public boolean isPathValid(Project project,ERepositoryObjectType type,IPath path,String label) throws PersistenceException {
  if (path == null) {
    return false;
  }
  if (label.equalsIgnoreCase("String_Node_Str")) {
    return false;
  }
 else   if (RepositoryConstants.isSystemFolder(label) || RepositoryConstants.isGeneratedFolder(label) || RepositoryConstants.isJobsFolder(label)|| RepositoryConstants.isJobletsFolder(label)) {
    return false;
  }
 else {
    IProject fsProject=ResourceModelUtils.getProject(project);
    String completePath=null;
    if (type.equals(ERepositoryObjectType.TDQ_PATTERN_REGEX)) {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + label.toString();
    }
 else {
      completePath=ERepositoryObjectType.getFolderName(type) + IPath.SEPARATOR + path.toString();
      completePath=completePath + IPath.SEPARATOR + label;
    }
    IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
    List<String> listExistingObjects=service.getProxyRepositoryFactory().getFolders(type);
    for (    String existName : listExistingObjects) {
      if (existName.equalsIgnoreCase(label)) {
        return false;
      }
    }
    IFolder existingFolder=ResourceUtils.getFolder(fsProject,completePath,false);
    return !existingFolder.exists();
  }
}
Program: 129237
Project: 129237
Buggy source:
/** 
 * DOC YeXiaowei Comment method "getSAPInputAndOutputValue".
 * @param conn
 * @param value2
 * @param functionLabel
 * @param isInput
 * @return
 */
public static void getSAPInputAndOutputValue(SAPConnection conn,List<Map<String,Object>> value2,String functionLabel,boolean isInput){
  if (conn == null) {
    return;
  }
  SAPFunctionUnit unit=null;
  for (int i=0; i < conn.getFuntions().size(); i++) {
    SAPFunctionUnit tmp=(SAPFunctionUnit)conn.getFuntions().get(i);
    if (tmp.getLabel().equals(functionLabel)) {
      unit=tmp;
      break;
    }
  }
  if (unit == null) {
    return;
  }
  SAPFunctionParameterTable table=isInput ? unit.getTestInputParameterTable() : unit.getOutputParameterTable();
  if (table == null || table.getColumns() == null || table.getColumns().isEmpty()) {
    return;
  }
  value2.clear();
  Map<String,List<Object>> mergedKeyValues=new HashMap<String,List<Object>>();
  for (int i=0; i < table.getColumns().size(); i++) {
    SAPFunctionParameterColumn column=(SAPFunctionParameterColumn)table.getColumns().get(i);
    Map<String,Object> map=new HashMap<String,Object>();
    if (isInput) {
      mergeColumn(map,column,table.getColumns(),mergedKeyValues);
    }
 else {
      map.put("String_Node_Str",column.getParameterType().replace('.','_'));
      map.put("String_Node_Str",TalendQuoteUtils.addQuotes(column.getStructureOrTableName()));
      map.put("String_Node_Str",TalendQuoteUtils.addQuotes(column.getName()));
    }
    if (!map.isEmpty()) {
      value2.add(map);
    }
  }
}

Fixed version (ground truth):
/** 
 * DOC YeXiaowei Comment method "getSAPInputAndOutputValue".
 * @param conn
 * @param value2
 * @param functionLabel
 * @param isInput
 * @return
 */
public static void getSAPInputAndOutputValue(SAPConnection conn,List<Map<String,Object>> value2,String functionLabel,boolean isInput){
  if (conn == null) {
    return;
  }
  SAPFunctionUnit unit=null;
  for (int i=0; i < conn.getFuntions().size(); i++) {
    SAPFunctionUnit tmp=conn.getFuntions().get(i);
    if (tmp.getLabel().equals(functionLabel)) {
      unit=tmp;
      break;
    }
  }
  if (unit == null) {
    return;
  }
  SAPFunctionParameterTable table=isInput ? unit.getTestInputParameterTable() : unit.getOutputParameterTable();
  if (table == null || table.getColumns() == null || table.getColumns().isEmpty()) {
    return;
  }
  value2.clear();
  Map<String,List<Object>> mergedKeyValues=new HashMap<String,List<Object>>();
  for (int i=0; i < table.getColumns().size(); i++) {
    SAPFunctionParameterColumn column=table.getColumns().get(i);
    Map<String,Object> map=new HashMap<String,Object>();
    if (isInput) {
      mergeColumn(map,column,table.getColumns(),mergedKeyValues);
    }
 else {
      map.put("String_Node_Str",column.getParameterType().replace('.','_'));
      map.put("String_Node_Str",TalendQuoteUtils.addQuotes(column.getStructureOrTableName()));
      map.put("String_Node_Str",TalendQuoteUtils.addQuotes(column.getName()));
    }
    if (!map.isEmpty()) {
      value2.add(map);
    }
  }
}
Program: 129238
Project: 129238
Buggy source:
private static Concept getConcept(MDMConnection connection,IMetadataTable table){
  if (table != null) {
    for (    Concept concept : (List<Concept>)connection.getSchemas()) {
      if (concept != null && (concept.getLabel() != null && concept.getLabel().equals(table.getLabel()))) {
        return concept;
      }
    }
  }
  return null;
}

Fixed version (ground truth):
private static Concept getConcept(MDMConnection connection,IMetadataTable table){
  if (table != null) {
    for (    Concept concept : connection.getSchemas()) {
      if (concept != null && (concept.getLabel() != null && concept.getLabel().equals(table.getLabel()))) {
        return concept;
      }
    }
  }
  return null;
}
Program: 129240
Project: 129240
Buggy source:
/** 
 * DOC xye Comment method "getSAPValuesForFunction".
 * @param conn
 * @param functionLabel
 * @param paramterName
 * @return
 */
public static String getSAPValuesForFunction(SAPConnection conn,String functionLabel,String paramterName){
  SAPFunctionUnit unit=null;
  if (conn == null) {
    return null;
  }
  for (int i=0; i < conn.getFuntions().size(); i++) {
    unit=(SAPFunctionUnit)conn.getFuntions().get(i);
    if (unit.getLabel().equals(functionLabel)) {
      break;
    }
  }
  if (unit == null) {
    return null;
  }
  if (paramterName.equals("String_Node_Str")) {
    if (unit.getOutputType() != null) {
      return unit.getOutputType().replace("String_Node_Str","String_Node_Str");
    }
  }
 else   if (paramterName.equals("String_Node_Str")) {
    return TalendQuoteUtils.addQuotes(unit.getOutputTableName());
  }
  return null;
}

Fixed version (ground truth):
/** 
 * DOC xye Comment method "getSAPValuesForFunction".
 * @param conn
 * @param functionLabel
 * @param paramterName
 * @return
 */
public static String getSAPValuesForFunction(SAPConnection conn,String functionLabel,String paramterName){
  SAPFunctionUnit unit=null;
  if (conn == null) {
    return null;
  }
  for (int i=0; i < conn.getFuntions().size(); i++) {
    unit=conn.getFuntions().get(i);
    if (unit.getLabel().equals(functionLabel)) {
      break;
    }
  }
  if (unit == null) {
    return null;
  }
  if (paramterName.equals("String_Node_Str")) {
    if (unit.getOutputType() != null) {
      return unit.getOutputType().replace("String_Node_Str","String_Node_Str");
    }
  }
 else   if (paramterName.equals("String_Node_Str")) {
    return TalendQuoteUtils.addQuotes(unit.getOutputTableName());
  }
  return null;
}
Program: 129247
Project: 129247
Buggy source:
public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}

Fixed version (ground truth):
@Override public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}
Program: 129249
Project: 129249
Buggy source:
@Override public boolean performFinish(){
  boolean formIsPerformed=false;
  if (page3 == null) {
    formIsPerformed=page1.isPageComplete();
  }
 else {
    formIsPerformed=page3.isPageComplete();
  }
  if (formIsPerformed) {
    IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
    try {
      if (creation) {
        String nextId=factory.getNextId();
        connectionProperty.setId(nextId);
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        factory.create(connectionItem,excelFileWizardPage0.getDestinationPath());
      }
 else {
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        RepositoryUpdateManager.updateFileConnection(connectionItem);
        updateConnectionItem();
      }
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      String detailError=e.toString();
      new ErrorDialogWidthDetailArea(getShell(),PID,Messages.getString("String_Node_Str"),detailError);
      log.error(Messages.getString("String_Node_Str") + "String_Node_Str" + detailError);
      return false;
    }
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
@Override public boolean performFinish(){
  boolean formIsPerformed=false;
  if (page3 == null) {
    formIsPerformed=page1.isPageComplete();
  }
 else {
    formIsPerformed=page3.isPageComplete();
  }
  if (formIsPerformed) {
    IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
    try {
      if (creation) {
        String nextId=factory.getNextId();
        connectionProperty.setId(nextId);
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        factory.create(connectionItem,excelFileWizardPage0.getDestinationPath());
      }
 else {
        connectionProperty.setLabel(connectionProperty.getDisplayName());
        RepositoryUpdateManager.updateFileConnection(connectionItem);
        boolean isModified=excelFileWizardPage0.isNameModifiedByUser();
        if (isModified) {
          if (GlobalServiceRegister.getDefault().isServiceRegistered(IDesignerCoreService.class)) {
            IDesignerCoreService service=(IDesignerCoreService)GlobalServiceRegister.getDefault().getService(IDesignerCoreService.class);
            if (service != null) {
              service.refreshComponentView(connectionItem);
            }
          }
        }
        updateConnectionItem();
      }
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      String detailError=e.toString();
      new ErrorDialogWidthDetailArea(getShell(),PID,Messages.getString("String_Node_Str"),detailError);
      log.error(Messages.getString("String_Node_Str") + "String_Node_Str" + detailError);
      return false;
    }
    return true;
  }
 else {
    return false;
  }
}
Program: 129250
Project: 129250
Buggy source:
public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}

Fixed version (ground truth):
@Override public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}
Program: 129254
Project: 129254
Buggy source:
public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}

Fixed version (ground truth):
@Override public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}
Program: 129258
Project: 129258
Buggy source:
public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}

Fixed version (ground truth):
@Override public ConnectionItem getConnectionItem(){
  return this.connectionItem;
}
Program: 129259
Project: 129259
Buggy source:
public static XSDSchema getXSDSchema(String fileName){
  XSDSchema schema=null;
  try {
    String newFilePath;
    try {
      newFilePath=CopyDeleteFileUtilForWizard.copyToTemp(fileName);
    }
 catch (    PersistenceException e1) {
      newFilePath=fileName;
    }
    schema=new XSDPopulationUtil2().getXSDSchema(newFilePath);
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
  return schema;
}

Fixed version (ground truth):
public static XSDSchema getXSDSchema(String fileName){
  XSDSchema schema=null;
  try {
    if (fileName.endsWith("String_Node_Str")) {
      Project project=ProjectManager.getInstance().getCurrentProject();
      IProject fsProject=null;
      try {
        fsProject=ResourceModelUtils.getProject(project);
      }
 catch (      PersistenceException e2) {
        ExceptionHandler.process(e2);
      }
      IPath path=new Path(fsProject.getLocationURI().getPath());
      path=path.append("String_Node_Str").append("String_Node_Str" + new Path(fileName).lastSegment());
      String unzipPath=path.toPortableString();
      File zip=new File(fileName);
      if (zip.exists()) {
        try {
          FilesUtils.unzip(zip.getAbsolutePath(),unzipPath);
        }
 catch (        Exception e) {
          ExceptionHandler.process(e);
        }
      }
      File unzipFile=new File(unzipPath);
      XSDPopulationUtil2 popUtil=new XSDPopulationUtil2();
      if (unzipFile.exists() && unzipFile.isDirectory()) {
        File[] tempXSDFiles=unzipFile.listFiles();
        for (        File tempXSDFile : tempXSDFiles) {
          popUtil.addSchema(tempXSDFile.getAbsolutePath());
        }
        schema=popUtil.getXSDSchema(tempXSDFiles[0].getAbsolutePath());
      }
    }
 else {
      String newFilePath;
      try {
        newFilePath=CopyDeleteFileUtilForWizard.copyToTemp(fileName);
      }
 catch (      PersistenceException e1) {
        newFilePath=fileName;
      }
      schema=new XSDPopulationUtil2().getXSDSchema(newFilePath);
    }
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
  return schema;
}
Program: 129260
Project: 129260
Buggy source:
public void widgetSelected(SelectionEvent e){
  xmlXsdFilePath.setEditable(true);
  String text=xmlXsdFilePath.getText();
  if (isContextMode()) {
    ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection(),true);
    text=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,text));
  }
  getConnection().setXmlFilePath(text);
  updateConnection(text);
  encodingCombo.setEnabled(true);
  commonNodesLimitation.setEditable(true);
  availableXmlTree.setEnabled(true);
  fileContentText.setEnabled(true);
  fileContentText.setEditable(false);
  checkFieldsValue();
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  xmlXsdFilePath.setEditable(true);
  String text=xmlXsdFilePath.getText();
  if (isContextMode()) {
    ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection(),true);
    text=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,text));
  }
  getConnection().setXmlFilePath(text);
  updateConnection(text);
  encodingCombo.setEnabled(true);
  commonNodesLimitation.setEditable(true);
  availableXmlTree.setEnabled(true);
  fileContentText.setEnabled(true);
  fileContentText.setEditable(false);
  checkFieldsValue();
}
Program: 129261
Project: 129261
Buggy source:
@Override protected void addUtilsButtonListeners(){
  noFileButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      xmlXsdFilePath.setEditable(false);
      xmlXsdFilePath.setText("String_Node_Str");
      encodingCombo.setEnabled(false);
      commonNodesLimitation.setEditable(false);
      availableXmlTree.setEnabled(false);
      fileContentText.setEnabled(false);
      getConnection().setXmlFilePath("String_Node_Str");
      ConnectionHelper.getTables(getConnection()).toArray(new MetadataTable[0])[0].getColumns().clear();
      getConnection().getRoot().clear();
      getConnection().getLoop().clear();
      getConnection().getGroup().clear();
      checkFieldsValue();
    }
  }
);
  useFileButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      xmlXsdFilePath.setEditable(true);
      String text=xmlXsdFilePath.getText();
      if (isContextMode()) {
        ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection(),true);
        text=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,text));
      }
      getConnection().setXmlFilePath(text);
      updateConnection(text);
      encodingCombo.setEnabled(true);
      commonNodesLimitation.setEditable(true);
      availableXmlTree.setEnabled(true);
      fileContentText.setEnabled(true);
      fileContentText.setEditable(false);
      checkFieldsValue();
    }
  }
);
}

Fixed version (ground truth):
@Override protected void addUtilsButtonListeners(){
  noFileButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      xmlXsdFilePath.setEditable(false);
      xmlXsdFilePath.setText("String_Node_Str");
      encodingCombo.setEnabled(false);
      commonNodesLimitation.setEditable(false);
      availableXmlTree.setEnabled(false);
      fileContentText.setEnabled(false);
      getConnection().setXmlFilePath("String_Node_Str");
      ConnectionHelper.getTables(getConnection()).toArray(new MetadataTable[0])[0].getColumns().clear();
      getConnection().getRoot().clear();
      getConnection().getLoop().clear();
      getConnection().getGroup().clear();
      checkFieldsValue();
    }
  }
);
  useFileButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      xmlXsdFilePath.setEditable(true);
      String text=xmlXsdFilePath.getText();
      if (isContextMode()) {
        ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection(),true);
        text=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,text));
      }
      getConnection().setXmlFilePath(text);
      updateConnection(text);
      encodingCombo.setEnabled(true);
      commonNodesLimitation.setEditable(true);
      availableXmlTree.setEnabled(true);
      fileContentText.setEnabled(true);
      fileContentText.setEditable(false);
      checkFieldsValue();
    }
  }
);
}