nus-yam/ex-repair huggingface dataset:
Program: 127418
Project: 127418
Buggy source:
public XmiResourceManager(){
  setUseOldProjectFile(false);
  resourceSet.getLoadOptions().put(XMLResource.OPTION_DEFER_ATTACHMENT,Boolean.TRUE);
  resourceSet.getLoadOptions().put(XMLResource.OPTION_DEFER_IDREF_RESOLUTION,Boolean.TRUE);
  resourceSet.getLoadOptions().put(XMLResource.OPTION_USE_PARSER_POOL,new XMLParserPoolImpl());
  resourceSet.getLoadOptions().put(XMLResource.OPTION_USE_XML_NAME_TO_FEATURE_MAP,new HashMap<Object,Object>());
  resourceSet.getLoadOptions().put(XMLResource.OPTION_USE_DEPRECATED_METHODS,Boolean.FALSE);
}

Fixed version (ground truth):
public XmiResourceManager(){
  setUseOldProjectFile(false);
  resetResourceSet();
}
Program: 127419
Project: 127419
Buggy source:
public void resetResourceSet(){
  resourceSet=new ResourceSetImpl();
  resourceSet.getLoadOptions().put(XMLResource.OPTION_DEFER_ATTACHMENT,Boolean.TRUE);
  resourceSet.getLoadOptions().put(XMLResource.OPTION_DEFER_IDREF_RESOLUTION,Boolean.TRUE);
  resourceSet.getLoadOptions().put(XMLResource.OPTION_USE_PARSER_POOL,new XMLParserPoolImpl());
  resourceSet.getLoadOptions().put(XMLResource.OPTION_USE_XML_NAME_TO_FEATURE_MAP,new HashMap<Object,Object>());
  resourceSet.getLoadOptions().put(XMLResource.OPTION_USE_DEPRECATED_METHODS,Boolean.FALSE);
}

Fixed version (ground truth):
public void resetResourceSet(){
  resourceSet=new TalendResourceSet();
  resourceSet.getLoadOptions().put(XMLResource.OPTION_DEFER_ATTACHMENT,Boolean.TRUE);
  resourceSet.getLoadOptions().put(XMLResource.OPTION_DEFER_IDREF_RESOLUTION,Boolean.TRUE);
  resourceSet.getLoadOptions().put(XMLResource.OPTION_USE_PARSER_POOL,new XMLParserPoolImpl());
  resourceSet.getLoadOptions().put(XMLResource.OPTION_USE_XML_NAME_TO_FEATURE_MAP,new HashMap<Object,Object>());
  resourceSet.getLoadOptions().put(XMLResource.OPTION_USE_DEPRECATED_METHODS,Boolean.FALSE);
}
Program: 127422
Project: 127422
Buggy source:
/** 
 * Initialize value, forceFocus first field for right Click (new Table).
 */
@Override public void initialize(){
  getTableInfoParameters().setSqlFiter(sqlFilter.getText());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_TABLE,tableCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_EXTERNAL_TABLE,tableCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_VIEW,viewCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_SYNONYM,synonymCheck.getSelection());
  if (HiveConnectionManager.getInstance().isCDHHive2(metadataconnection)) {
    getTableInfoParameters().changeType(ETableTypes.EXTERNAL_TABLE,tableCheck.getSelection());
    getTableInfoParameters().changeType(ETableTypes.MANAGED_TABLE,tableCheck.getSelection());
  }
  if (isOracle()) {
    getTableInfoParameters().changeType(ETableTypes.TABLETYPE_ALL_SYNONYM,publicSynonymCheck.getSelection());
  }
  switchFilter();
  IDBMetadataProviderObject providerObjectByDbType=ExtractMetaDataFromDataBase.getProviderObjectByDbType(metadataconnection.getDbType());
  if (typeName != null && typeName.isUseProvider() && !providerObjectByDbType.isSupportJDBC()) {
    disableAllJDBCControls();
  }
}

Fixed version (ground truth):
/** 
 * Initialize value, forceFocus first field for right Click (new Table).
 */
@Override public void initialize(){
  getTableInfoParameters().setSqlFiter(sqlFilter.getText());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_TABLE,tableCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_EXTERNAL_TABLE,tableCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_VIEW,viewCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_SYNONYM,synonymCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.EXTERNAL_TABLE,tableCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.MANAGED_TABLE,tableCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.INDEX_TABLE,tableCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.VIRTUAL_VIEW,viewCheck.getSelection());
  if (isOracle()) {
    getTableInfoParameters().changeType(ETableTypes.TABLETYPE_ALL_SYNONYM,publicSynonymCheck.getSelection());
  }
  switchFilter();
  IDBMetadataProviderObject providerObjectByDbType=ExtractMetaDataFromDataBase.getProviderObjectByDbType(metadataconnection.getDbType());
  if (typeName != null && typeName.isUseProvider() && !providerObjectByDbType.isSupportJDBC()) {
    disableAllJDBCControls();
  }
}
Program: 127427
Project: 127427
Buggy source:
/** 
 * Initialize value, forceFocus first field for right Click (new Table).
 */
@Override public void initialize(){
  getTableInfoParameters().setSqlFiter(sqlFilter.getText());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_TABLE,tableCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_EXTERNAL_TABLE,tableCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_VIEW,viewCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_SYNONYM,synonymCheck.getSelection());
  if (HiveConnectionManager.getInstance().isCDHHive2(metadataconnection)) {
    getTableInfoParameters().changeType(ETableTypes.EXTERNAL_TABLE,tableCheck.getSelection());
    getTableInfoParameters().changeType(ETableTypes.MANAGED_TABLE,tableCheck.getSelection());
  }
  if (isOracle()) {
    getTableInfoParameters().changeType(ETableTypes.TABLETYPE_ALL_SYNONYM,publicSynonymCheck.getSelection());
  }
  switchFilter();
  IDBMetadataProviderObject providerObjectByDbType=ExtractMetaDataFromDataBase.getProviderObjectByDbType(metadataconnection.getDbType());
  if (typeName != null && typeName.isUseProvider() && !providerObjectByDbType.isSupportJDBC()) {
    disableAllJDBCControls();
  }
}

Fixed version (ground truth):
/** 
 * Initialize value, forceFocus first field for right Click (new Table).
 */
@Override public void initialize(){
  getTableInfoParameters().setSqlFiter(sqlFilter.getText());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_TABLE,tableCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_EXTERNAL_TABLE,tableCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_VIEW,viewCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.TABLETYPE_SYNONYM,synonymCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.EXTERNAL_TABLE,tableCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.MANAGED_TABLE,tableCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.INDEX_TABLE,tableCheck.getSelection());
  getTableInfoParameters().changeType(ETableTypes.VIRTUAL_VIEW,viewCheck.getSelection());
  if (isOracle()) {
    getTableInfoParameters().changeType(ETableTypes.TABLETYPE_ALL_SYNONYM,publicSynonymCheck.getSelection());
  }
  switchFilter();
  IDBMetadataProviderObject providerObjectByDbType=ExtractMetaDataFromDataBase.getProviderObjectByDbType(metadataconnection.getDbType());
  if (typeName != null && typeName.isUseProvider() && !providerObjectByDbType.isSupportJDBC()) {
    disableAllJDBCControls();
  }
}
Program: 127431
Project: 127431
Buggy source:
@Override public void run() throws PersistenceException {
  try {
    for (    String name : names) {
      String path=new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();
      path=path + File.separatorChar + projectLabel+ File.separatorChar+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS)+ File.separatorChar+ name;
      File libsTargetFile=new File(path);
      File source=null;
      EMap<String,String> jarsToRelative=LibrariesIndexManager.getInstance().getIndex().getJarsToRelativePath();
      String relativePath=jarsToRelative.get(name);
      if (relativePath != null) {
        if (!relativePath.startsWith("String_Node_Str")) {
          relativePath="String_Node_Str" + relativePath;
        }
        try {
          URI uri=new URI(relativePath);
          URL url=FileLocator.toFileURL(uri.toURL());
          source=new File(url.getFile());
        }
 catch (        URISyntaxException e) {
          CommonExceptionHandler.process(e);
        }
      }
      if (source == null) {
        source=new File(PreferencesUtilities.getLibrariesPath(ECodeLanguage.JAVA) + File.separatorChar + name);
      }
      FilesUtils.copyFile(source,libsTargetFile);
      synJavaLibs(source);
    }
    eclipseProject.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
  }
catch (  CoreException e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void run() throws PersistenceException {
  try {
    for (    String name : names) {
      String path=new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();
      path=path + File.separatorChar + projectLabel+ File.separatorChar+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS)+ File.separatorChar+ name;
      File libsTargetFile=new File(path);
      File source=new File(PreferencesUtilities.getLibrariesPath(ECodeLanguage.JAVA) + File.separatorChar + name);
      FilesUtils.copyFile(source,libsTargetFile);
      synJavaLibs(source);
    }
    eclipseProject.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
  }
catch (  CoreException e) {
    ExceptionHandler.process(e);
  }
}
Program: 127435
Project: 127435
Buggy source:
protected boolean isUnderDBConnection(RepositoryNode node){
  if (node == null) {
    return false;
  }
  if (node.getType() == ENodeType.SYSTEM_FOLDER && node.getProperties(EProperties.CONTENT_TYPE) == ERepositoryObjectType.METADATA_CONNECTIONS) {
    return true;
  }
  return isUnderDBConnection(node.getParent());
}

Fixed version (ground truth):
protected boolean isUnderDBConnection(RepositoryNode node){
  if (node == null) {
    return false;
  }
  if ((node.getType() == ENodeType.SYSTEM_FOLDER || node.getType() == ENodeType.STABLE_SYSTEM_FOLDER) && node.getProperties(EProperties.CONTENT_TYPE) == ERepositoryObjectType.METADATA_CONNECTIONS) {
    return true;
  }
  return isUnderDBConnection(node.getParent());
}
Program: 127436
Project: 127436
Buggy source:
public Property loadProperty(IResource iResource){
  Property property=null;
  URIConverter theURIConverter=resourceSet.getURIConverter();
  URI propertyUri=URIHelper.convert(iResource.getFullPath());
  URI itemResourceURI=theURIConverter.normalize(getItemResourceURI(propertyUri));
  URI screenshotResourceURI=theURIConverter.normalize(getScreenshotResourceURI(itemResourceURI));
  List<Resource> resources=resourceSet.getResources();
synchronized (resources) {
    for (    Resource res : new ArrayList<Resource>(resources)) {
      if (res != null && res.isLoaded()) {
        URI normalizedURI=theURIConverter.normalize(res.getURI());
        if (propertyUri.equals(normalizedURI)) {
          res.unload();
        }
        if (itemResourceURI.equals(normalizedURI)) {
          res.unload();
        }
        if (screenshotResourceURI.equals(normalizedURI)) {
          res.unload();
        }
      }
    }
  }
  Resource propertyResource=resourceSet.getResource(propertyUri,true);
  property=(Property)EcoreUtil.getObjectByType(propertyResource.getContents(),PropertiesPackage.eINSTANCE.getProperty());
  return property;
}

Fixed version (ground truth):
public Property loadProperty(IResource iResource){
  Property property=null;
  URIConverter theURIConverter=resourceSet.getURIConverter();
  URI propertyUri=URIHelper.convert(iResource.getFullPath());
  URI itemResourceURI=theURIConverter.normalize(getItemResourceURI(propertyUri));
  URI screenshotResourceURI=theURIConverter.normalize(getScreenshotResourceURI(itemResourceURI));
  List<Resource> resources=resourceSet.getResources();
synchronized (resources) {
    for (    Resource res : new ArrayList<Resource>(resources)) {
      if (res != null && res.isLoaded()) {
        URI normalizedURI=theURIConverter.normalize(res.getURI());
        if (propertyUri.equals(normalizedURI)) {
          res.unload();
          resourceSet.getResources().remove(res);
        }
        if (itemResourceURI.equals(normalizedURI)) {
          res.unload();
          resourceSet.getResources().remove(res);
        }
        if (screenshotResourceURI.equals(normalizedURI)) {
          res.unload();
          resourceSet.getResources().remove(res);
        }
      }
    }
  }
  Resource propertyResource=resourceSet.getResource(propertyUri,true);
  property=(Property)EcoreUtil.getObjectByType(propertyResource.getContents(),PropertiesPackage.eINSTANCE.getProperty());
  return property;
}
Program: 127437
Project: 127437
Buggy source:
/** 
 * return all the referenced projects of current project.
 */
public List<Project> getAllReferencedProjects(){
  allReferencedprojects.clear();
  if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
    if (this.getCurrentProject() == null) {
      return allReferencedprojects;
    }
    IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
    IProxyRepositoryFactory factory=service.getProxyRepositoryFactory();
    if (factory != null) {
      List<org.talend.core.model.properties.Project> rProjects=factory.getReferencedProjects(this.getCurrentProject());
      if (rProjects != null) {
        for (        org.talend.core.model.properties.Project p : rProjects) {
          Project project=new Project(p);
          allReferencedprojects.add(project);
          resolveSubRefProject(p);
        }
      }
    }
  }
  return this.allReferencedprojects;
}

Fixed version (ground truth):
/** 
 * return all the referenced projects of current project.
 */
public List<Project> getAllReferencedProjects(){
  allReferencedprojects.clear();
  if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
    if (this.getCurrentProject() == null) {
      return allReferencedprojects;
    }
    IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
    IProxyRepositoryFactory factory=service.getProxyRepositoryFactory();
    if (factory != null) {
      List<org.talend.core.model.properties.Project> rProjects=factory.getReferencedProjects(this.getCurrentProject());
      if (rProjects != null) {
        for (        org.talend.core.model.properties.Project p : rProjects) {
          Project project=new Project(p);
          allReferencedprojects.add(project);
          resolveSubRefProject(p);
        }
      }
    }
  }
  return new ArrayList<Project>(this.allReferencedprojects);
}
Program: 127438
Project: 127438
Buggy source:
public void cleanTempProLib(){
  IWorkspaceRoot root=ResourcesPlugin.getWorkspace().getRoot();
  IProject prj=root.getProject(JavaUtils.JAVA_PROJECT_NAME);
  IPath libPath=prj.getLocation().append(JavaUtils.JAVA_LIB_DIRECTORY);
  if (libPath.toFile().exists()) {
    FilesUtils.emptyFolder(libPath.toFile());
  }
}

Fixed version (ground truth):
public void cleanTempProLib(){
  IWorkspaceRoot root=ResourcesPlugin.getWorkspace().getRoot();
  IProject prj=root.getProject(JavaUtils.JAVA_PROJECT_NAME);
  if (prj.exists()) {
    IPath libPath=prj.getLocation().append(JavaUtils.JAVA_LIB_DIRECTORY);
    if (libPath.toFile().exists()) {
      FilesUtils.emptyFolder(libPath.toFile());
    }
  }
}
Program: 127440
Project: 127440
Buggy source:
/** 
 * Method "unloadResource" unload and remove the specification resource from the resource set. MOD mzhao
 * @param uriString the uri sting of resource.
 */
public void unloadResource(String uriString){
  List<Resource> resources=new ArrayList<Resource>(getResourceSet().getResources());
  for (  Resource res : resources) {
    if (res != null && uriString.equals(res.getURI().toString())) {
      res.unload();
      getResourceSet().getResources().remove(res);
    }
  }
}

Fixed version (ground truth):
/** 
 * Method "unloadResource" unload and remove the specification resource from the resource set. MOD mzhao
 * @param uriString the uri sting of resource.
 */
public void unloadResource(String uriString){
  List<Resource> resources=getResourceSet().getResources();
synchronized (resources) {
    List<Resource> toRemove=new ArrayList<Resource>();
    for (    Resource res : resources) {
      if (res != null && uriString.equals(res.getURI().toString())) {
        res.unload();
        toRemove.add(res);
      }
    }
    resources.removeAll(toRemove);
  }
}
Program: 127441
Project: 127441
Buggy source:
public Property loadProperty(IResource iResource){
  Property property=null;
  URIConverter theURIConverter=resourceSet.getURIConverter();
  URI propertyUri=URIHelper.convert(iResource.getFullPath());
  URI itemResourceURI=theURIConverter.normalize(getItemResourceURI(propertyUri));
  URI screenshotResourceURI=theURIConverter.normalize(getScreenshotResourceURI(itemResourceURI));
  List<Resource> resources=resourceSet.getResources();
synchronized (resources) {
    for (    Resource res : new ArrayList<Resource>(resources)) {
      if (res != null && res.isLoaded()) {
        URI normalizedURI=theURIConverter.normalize(res.getURI());
        if (propertyUri.equals(normalizedURI)) {
          res.unload();
          resourceSet.getResources().remove(res);
        }
        if (itemResourceURI.equals(normalizedURI)) {
          res.unload();
          resourceSet.getResources().remove(res);
        }
        if (screenshotResourceURI.equals(normalizedURI)) {
          res.unload();
          resourceSet.getResources().remove(res);
        }
      }
    }
  }
  Resource propertyResource=resourceSet.getResource(propertyUri,true);
  property=(Property)EcoreUtil.getObjectByType(propertyResource.getContents(),PropertiesPackage.eINSTANCE.getProperty());
  return property;
}

Fixed version (ground truth):
public Property loadProperty(IResource iResource){
  Property property=null;
  URIConverter theURIConverter=resourceSet.getURIConverter();
  URI propertyUri=URIHelper.convert(iResource.getFullPath());
  URI itemResourceURI=theURIConverter.normalize(getItemResourceURI(propertyUri));
  URI screenshotResourceURI=theURIConverter.normalize(getScreenshotResourceURI(itemResourceURI));
  List<Resource> resources=resourceSet.getResources();
synchronized (resources) {
    for (    Resource res : new ArrayList<Resource>(resources)) {
      if (res != null) {
        URI normalizedURI=theURIConverter.normalize(res.getURI());
        if (propertyUri.equals(normalizedURI)) {
          res.unload();
          resourceSet.getResources().remove(res);
        }
        if (itemResourceURI.equals(normalizedURI)) {
          res.unload();
          resourceSet.getResources().remove(res);
        }
        if (screenshotResourceURI.equals(normalizedURI)) {
          res.unload();
          resourceSet.getResources().remove(res);
        }
      }
    }
  }
  Resource propertyResource=resourceSet.getResource(propertyUri,true);
  property=(Property)EcoreUtil.getObjectByType(propertyResource.getContents(),PropertiesPackage.eINSTANCE.getProperty());
  return property;
}
Program: 127442
Project: 127442
Buggy source:
public void cleanTempProLib(){
  IWorkspaceRoot root=ResourcesPlugin.getWorkspace().getRoot();
  IProject prj=root.getProject(JavaUtils.JAVA_PROJECT_NAME);
  IPath libPath=prj.getLocation().append(JavaUtils.JAVA_LIB_DIRECTORY);
  if (libPath.toFile().exists()) {
    FilesUtils.emptyFolder(libPath.toFile());
  }
}

Fixed version (ground truth):
public void cleanTempProLib(){
  IWorkspaceRoot root=ResourcesPlugin.getWorkspace().getRoot();
  IProject prj=root.getProject(JavaUtils.JAVA_PROJECT_NAME);
  if (prj.exists()) {
    IPath libPath=prj.getLocation().append(JavaUtils.JAVA_LIB_DIRECTORY);
    if (libPath.toFile().exists()) {
      FilesUtils.emptyFolder(libPath.toFile());
    }
  }
}
Program: 127443
Project: 127443
Buggy source:
protected boolean isUnderDBConnection(RepositoryNode node){
  if (node == null) {
    return false;
  }
  if (node.getType() == ENodeType.SYSTEM_FOLDER && node.getProperties(EProperties.CONTENT_TYPE) == ERepositoryObjectType.METADATA_CONNECTIONS) {
    return true;
  }
  return isUnderDBConnection(node.getParent());
}

Fixed version (ground truth):
protected boolean isUnderDBConnection(RepositoryNode node){
  if (node == null) {
    return false;
  }
  if ((node.getType() == ENodeType.SYSTEM_FOLDER || node.getType() == ENodeType.STABLE_SYSTEM_FOLDER) && node.getProperties(EProperties.CONTENT_TYPE) == ERepositoryObjectType.METADATA_CONNECTIONS) {
    return true;
  }
  return isUnderDBConnection(node.getParent());
}
Program: 127445
Project: 127445
Buggy source:
protected void evaluateTextField(){
  if (readOnly) {
    return;
  }
  if (nameText == null || nameText.isDisposed()) {
    return;
  }
  if (nameText.getText().length() == 0) {
    nameStatus=createStatus(IStatus.ERROR,Messages.getString("String_Node_Str"));
  }
 else   if (!Pattern.matches(RepositoryConstants.getPattern(getRepositoryObjectType()),nameText.getText()) || nameText.getText().trim().contains("String_Node_Str")) {
    nameStatus=createStatus(IStatus.ERROR,Messages.getString("String_Node_Str"));
  }
 else   if (isKeywords(nameText.getText()) || "String_Node_Str".equalsIgnoreCase(nameText.getText())) {
    nameStatus=createStatus(IStatus.ERROR,Messages.getString("String_Node_Str"));
  }
 else   if (nameModifiedByUser) {
    if (retrieveNameFinished) {
      if (!isValid(nameText.getText())) {
        nameStatus=createStatus(IStatus.ERROR,Messages.getString("String_Node_Str"));
      }
 else {
        nameStatus=createOkStatus();
      }
    }
 else {
      nameStatus=createStatus(IStatus.ERROR,"String_Node_Str");
    }
  }
 else {
    nameStatus=createOkStatus();
  }
  if (property != null && nameStatus.getSeverity() == IStatus.OK) {
    property.setLabel(getPropertyLabel(StringUtils.trimToNull(nameText.getText())));
    property.setDisplayName(StringUtils.trimToNull(nameText.getText()));
    property.setModificationDate(new Date());
  }
  updatePageStatus();
}

Fixed version (ground truth):
protected void evaluateTextField(){
  if (readOnly) {
    return;
  }
  if (nameText == null || nameText.isDisposed()) {
    return;
  }
  if (nameText.getText().length() == 0) {
    nameStatus=createStatus(IStatus.ERROR,Messages.getString("String_Node_Str"));
  }
 else   if (nameText.getText().startsWith("String_Node_Str") || !Pattern.matches(RepositoryConstants.getPattern(getRepositoryObjectType()),nameText.getText()) || nameText.getText().trim().contains("String_Node_Str")) {
    nameStatus=createStatus(IStatus.ERROR,Messages.getString("String_Node_Str"));
  }
 else   if (isKeywords(nameText.getText()) || "String_Node_Str".equalsIgnoreCase(nameText.getText())) {
    nameStatus=createStatus(IStatus.ERROR,Messages.getString("String_Node_Str"));
  }
 else   if (nameModifiedByUser) {
    if (retrieveNameFinished) {
      if (!isValid(nameText.getText())) {
        nameStatus=createStatus(IStatus.ERROR,Messages.getString("String_Node_Str"));
      }
 else {
        nameStatus=createOkStatus();
      }
    }
 else {
      nameStatus=createStatus(IStatus.ERROR,"String_Node_Str");
    }
  }
 else {
    nameStatus=createOkStatus();
  }
  if (property != null && nameStatus.getSeverity() == IStatus.OK) {
    property.setLabel(getPropertyLabel(StringUtils.trimToNull(nameText.getText())));
    property.setDisplayName(StringUtils.trimToNull(nameText.getText()));
    property.setModificationDate(new Date());
  }
  updatePageStatus();
}
Program: 127446
Project: 127446
Buggy source:
@Override public Folder createFolder(Project project,ERepositoryObjectType type,IPath path,String label,boolean isImportItem) throws PersistenceException {
  if (type.isDQItemType()) {
    checkFileNameAndPath(project,label,RepositoryConstants.TDQ_ALL_ITEM_PATTERN,type,path,true);
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_XML) {
    checkFileNameAndPath(project,label,RepositoryConstants.SIMPLE_FOLDER_PATTERN,type,path,true);
  }
 else   if (type == ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str")) {
    if (org.eclipse.core.runtime.Status.OK_STATUS != ResourcesPlugin.getWorkspace().validateName(label,IResource.FOLDER)) {
      throw new IllegalArgumentException(Messages.getString("String_Node_Str",label));
    }
  }
 else {
    checkFileNameAndPath(project,label,RepositoryConstants.FOLDER_PATTERN,type,path,true);
  }
  Folder createFolder=this.repositoryFactoryFromProvider.createFolder(project,type,path,label,isImportItem);
  fireRepositoryPropertyChange(ERepositoryActionName.FOLDER_CREATE.getName(),path,new Object[]{createFolder,type});
  return createFolder;
}

Fixed version (ground truth):
@Override public Folder createFolder(Project project,ERepositoryObjectType type,IPath path,String label,boolean isImportItem) throws PersistenceException {
  if (type.isDQItemType()) {
    checkFileNameAndPath(project,label,RepositoryConstants.TDQ_ALL_ITEM_PATTERN,type,path,true);
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_XML) {
    checkFileNameAndPath(project,label,RepositoryConstants.SIMPLE_FOLDER_PATTERN,type,path,true);
  }
 else   if (type == ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str")) {
    if (org.eclipse.core.runtime.Status.OK_STATUS != ResourcesPlugin.getWorkspace().validateName(label,IResource.FOLDER)) {
      throw new IllegalArgumentException(Messages.getString("String_Node_Str",label));
    }
  }
 else {
    checkFileNameAndPath(project,label,RepositoryConstants.FOLDER_PATTERN,type,path,true);
  }
  Folder createFolder=this.repositoryFactoryFromProvider.createFolder(project,type,path,label);
  fireRepositoryPropertyChange(ERepositoryActionName.FOLDER_CREATE.getName(),path,new Object[]{createFolder,type});
  return createFolder;
}
Program: 127448
Project: 127448
Buggy source:
@Override public int category(Object element){
  if (element instanceof RepositoryNode) {
    RepositoryNode node=(RepositoryNode)element;
    if (ERepositoryObjectType.METADATA_CON_COLUMN.equals(node.getProperties(EProperties.CONTENT_TYPE))) {
      RepositoryNode parent=node.getParent().getParent();
      if (parent != null && ERepositoryObjectType.METADATA_CON_TABLE.equals(parent.getProperties(EProperties.CONTENT_TYPE)) && parent.getObject() instanceof MetadataTableRepositoryObject) {
        MetadataTableRepositoryObject tableObject=(MetadataTableRepositoryObject)parent.getObject();
        MetadataColumnRepositoryObject columnObject=(MetadataColumnRepositoryObject)((RepositoryNode)element).getObject();
        return tableObject.getTable().getColumns().indexOf(columnObject.getTdColumn());
      }
    }
  }
  return super.category(element);
}

Fixed version (ground truth):
@Override public int category(Object element){
  if (element instanceof RepositoryNode) {
    RepositoryNode node=(RepositoryNode)element;
    if (ERepositoryObjectType.METADATA_CON_COLUMN.equals(node.getProperties(EProperties.CONTENT_TYPE))) {
      RepositoryNode parent=node.getParent().getParent();
      if (parent != null && ERepositoryObjectType.METADATA_CON_TABLE.equals(parent.getProperties(EProperties.CONTENT_TYPE)) && parent.getObject() instanceof MetadataTableRepositoryObject) {
        MetadataTableRepositoryObject tableObject=(MetadataTableRepositoryObject)parent.getObject();
        MetadataColumnRepositoryObject columnObject=(MetadataColumnRepositoryObject)((RepositoryNode)element).getObject();
        MetadataColumn tColumn=columnObject.getTdColumn();
        EList<MetadataColumn> columns=tableObject.getTable().getColumns();
        for (int i=0; i < columns.size(); i++) {
          MetadataColumn column=columns.get(i);
          if (column.getName() != null && column.getName().equals(tColumn.getName())) {
            return i;
          }
        }
      }
    }
  }
  return super.category(element);
}
Program: 127449
Project: 127449
Buggy source:
@Override public void handleEvent(Event event){
  TreeItem treeItem=(TreeItem)event.item;
  boolean needUpdate=treeItem.getChecked();
  boolean firstExpandForSchema=false;
  if (!mapCheckState.isEmpty()) {
    firstExpandForSchema=mapCheckState.get(treeItem.getText());
  }
  for (  TreeItem item : treeItem.getItems()) {
    if (item.getData() != null) {
      TableNode node=(TableNode)item.getData();
      if (useProvider()) {
        if (node.getType() == provider.getRunnableAccessNodeType() || node.getType() == TableNode.COLUMN_FAMILY) {
          if (isExistTable(node)) {
            item.setChecked(true);
          }
 else {
            item.setChecked(false);
          }
        }
      }
 else       if (node.getType() == TableNode.TABLE) {
        if ((firstExpand || firstExpandForSchema) && needUpdate && item.getData() != null) {
          updateItem(item,true,true);
        }
 else         if (isExistTable(node)) {
          item.setChecked(true);
        }
 else {
          item.setChecked(false);
        }
      }
 else       if (firstExpand && needUpdate && node.getType() == TableNode.SCHEMA) {
        item.setChecked(true);
        mapCheckState.put(item.getText(),firstExpand);
      }
 else {
        item.setGrayed(item.getChecked());
      }
    }
  }
  if (firstExpandForSchema) {
    mapCheckState.put(treeItem.getText(),false);
  }
  if (firstExpand) {
    firstExpand=false;
  }
}

Fixed version (ground truth):
@Override public void handleEvent(Event event){
  TreeItem treeItem=(TreeItem)event.item;
  String itemText=treeItem.getText();
  boolean needUpdate=treeItem.getChecked();
  boolean firstExpand=false;
  if (mapCheckState.containsKey(itemText)) {
    firstExpand=mapCheckState.get(itemText);
  }
 else {
    firstExpand=true;
  }
  for (  TreeItem item : treeItem.getItems()) {
    if (item.getData() != null) {
      TableNode node=(TableNode)item.getData();
      if (useProvider()) {
        if (node.getType() == provider.getRunnableAccessNodeType() || node.getType() == TableNode.COLUMN_FAMILY) {
          if (isExistTable(node)) {
            item.setChecked(true);
          }
 else {
            item.setChecked(false);
          }
        }
      }
 else       if (node.getType() == TableNode.TABLE) {
        if (firstExpand && needUpdate && item.getData() != null) {
          updateItem(item,true,true);
        }
 else         if (isExistTable(node)) {
          item.setChecked(true);
        }
 else {
          item.setChecked(false);
        }
      }
 else       if (firstExpand && needUpdate && node.getType() == TableNode.SCHEMA) {
        item.setChecked(true);
        mapCheckState.put(item.getText(),firstExpand);
      }
 else {
        item.setGrayed(item.getChecked());
      }
    }
  }
  if (firstExpand) {
    mapCheckState.put(itemText,false);
  }
}
Program: 127451
Project: 127451
Buggy source:
@Override public void run() throws PersistenceException {
  try {
    for (    String name : names) {
      String path=new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();
      path=path + File.separatorChar + projectLabel+ File.separatorChar+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS)+ File.separatorChar+ name;
      File libsTargetFile=new File(path);
      File source=null;
      EMap<String,String> jarsToRelative=LibrariesIndexManager.getInstance().getIndex().getJarsToRelativePath();
      String relativePath=jarsToRelative.get(name);
      if (relativePath != null) {
        if (relativePath.startsWith("String_Node_Str")) {
          try {
            URI uri=new URI(relativePath);
            URL url=FileLocator.toFileURL(uri.toURL());
            source=new File(url.getFile());
          }
 catch (          URISyntaxException e) {
            CommonExceptionHandler.process(e);
          }
        }
      }
      if (source == null) {
        source=new File(LibrariesManagerUtils.getLibrariesPath(ECodeLanguage.JAVA) + File.separatorChar + name);
      }
      FilesUtils.copyFile(source,libsTargetFile);
      synJavaLibs(source);
    }
    eclipseProject.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
  }
 catch (  IOException e) {
    CommonExceptionHandler.process(e);
  }
catch (  CoreException e) {
    CommonExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void run() throws PersistenceException {
  try {
    for (    String name : names) {
      String path=new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();
      path=path + File.separatorChar + projectLabel+ File.separatorChar+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS)+ File.separatorChar+ name;
      File libsTargetFile=new File(path);
      File source=new File(LibrariesManagerUtils.getLibrariesPath(ECodeLanguage.JAVA) + File.separatorChar + name);
      FilesUtils.copyFile(source,libsTargetFile);
      synJavaLibs(source);
    }
    eclipseProject.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
  }
 catch (  IOException e) {
    CommonExceptionHandler.process(e);
  }
catch (  CoreException e) {
    CommonExceptionHandler.process(e);
  }
}
Program: 127452
Project: 127452
Buggy source:
@Override public int category(Object element){
  if (element instanceof RepositoryNode) {
    RepositoryNode node=(RepositoryNode)element;
    if (ERepositoryObjectType.METADATA_CON_COLUMN.equals(node.getProperties(EProperties.CONTENT_TYPE))) {
      RepositoryNode parent=node.getParent().getParent();
      if (parent != null && ERepositoryObjectType.METADATA_CON_TABLE.equals(parent.getProperties(EProperties.CONTENT_TYPE)) && parent.getObject() instanceof MetadataTableRepositoryObject) {
        MetadataTableRepositoryObject tableObject=(MetadataTableRepositoryObject)parent.getObject();
        MetadataColumnRepositoryObject columnObject=(MetadataColumnRepositoryObject)((RepositoryNode)element).getObject();
        return tableObject.getTable().getColumns().indexOf(columnObject.getTdColumn());
      }
    }
  }
  return super.category(element);
}

Fixed version (ground truth):
@Override public int category(Object element){
  if (element instanceof RepositoryNode) {
    RepositoryNode node=(RepositoryNode)element;
    if (ERepositoryObjectType.METADATA_CON_COLUMN.equals(node.getProperties(EProperties.CONTENT_TYPE))) {
      RepositoryNode parent=node.getParent().getParent();
      if (parent != null && ERepositoryObjectType.METADATA_CON_TABLE.equals(parent.getProperties(EProperties.CONTENT_TYPE)) && parent.getObject() instanceof MetadataTableRepositoryObject) {
        MetadataTableRepositoryObject tableObject=(MetadataTableRepositoryObject)parent.getObject();
        MetadataColumnRepositoryObject columnObject=(MetadataColumnRepositoryObject)((RepositoryNode)element).getObject();
        MetadataColumn tColumn=columnObject.getTdColumn();
        EList<MetadataColumn> columns=tableObject.getTable().getColumns();
        for (int i=0; i < columns.size(); i++) {
          MetadataColumn column=columns.get(i);
          if (column.getName() != null && column.getName().equals(tColumn.getName())) {
            return i;
          }
        }
      }
    }
  }
  return super.category(element);
}
Program: 127453
Project: 127453
Buggy source:
@Override public void handleEvent(Event event){
  TreeItem treeItem=(TreeItem)event.item;
  boolean needUpdate=treeItem.getChecked();
  boolean firstExpandForSchema=false;
  if (!mapCheckState.isEmpty()) {
    firstExpandForSchema=mapCheckState.get(treeItem.getText());
  }
  for (  TreeItem item : treeItem.getItems()) {
    if (item.getData() != null) {
      TableNode node=(TableNode)item.getData();
      if (useProvider()) {
        if (node.getType() == provider.getRunnableAccessNodeType() || node.getType() == TableNode.COLUMN_FAMILY) {
          if (isExistTable(node)) {
            item.setChecked(true);
          }
 else {
            item.setChecked(false);
          }
        }
      }
 else       if (node.getType() == TableNode.TABLE) {
        if ((firstExpand || firstExpandForSchema) && needUpdate && item.getData() != null) {
          updateItem(item,true,true);
        }
 else         if (isExistTable(node)) {
          item.setChecked(true);
        }
 else {
          item.setChecked(false);
        }
      }
 else       if (firstExpand && needUpdate && node.getType() == TableNode.SCHEMA) {
        item.setChecked(true);
        mapCheckState.put(item.getText(),firstExpand);
      }
 else {
        item.setGrayed(item.getChecked());
      }
    }
  }
  if (firstExpandForSchema) {
    mapCheckState.put(treeItem.getText(),false);
  }
  if (firstExpand) {
    firstExpand=false;
  }
}

Fixed version (ground truth):
@Override public void handleEvent(Event event){
  TreeItem treeItem=(TreeItem)event.item;
  String itemText=treeItem.getText();
  boolean needUpdate=treeItem.getChecked();
  boolean firstExpand=false;
  if (mapCheckState.containsKey(itemText)) {
    firstExpand=mapCheckState.get(itemText);
  }
 else {
    firstExpand=true;
  }
  for (  TreeItem item : treeItem.getItems()) {
    if (item.getData() != null) {
      TableNode node=(TableNode)item.getData();
      if (useProvider()) {
        if (node.getType() == provider.getRunnableAccessNodeType() || node.getType() == TableNode.COLUMN_FAMILY) {
          if (isExistTable(node)) {
            item.setChecked(true);
          }
 else {
            item.setChecked(false);
          }
        }
      }
 else       if (node.getType() == TableNode.TABLE) {
        if (firstExpand && needUpdate && item.getData() != null) {
          updateItem(item,true,true);
        }
 else         if (isExistTable(node)) {
          item.setChecked(true);
        }
 else {
          item.setChecked(false);
        }
      }
 else       if (firstExpand && needUpdate && node.getType() == TableNode.SCHEMA) {
        item.setChecked(true);
        mapCheckState.put(item.getText(),firstExpand);
      }
 else {
        item.setGrayed(item.getChecked());
      }
    }
  }
  if (firstExpand) {
    mapCheckState.put(itemText,false);
  }
}
Program: 127455
Project: 127455
Buggy source:
@Override public void run() throws PersistenceException {
  try {
    for (    String name : names) {
      String path=new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();
      path=path + File.separatorChar + projectLabel+ File.separatorChar+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS)+ File.separatorChar+ name;
      File libsTargetFile=new File(path);
      File source=null;
      EMap<String,String> jarsToRelative=LibrariesIndexManager.getInstance().getIndex().getJarsToRelativePath();
      String relativePath=jarsToRelative.get(name);
      if (relativePath != null) {
        if (relativePath.startsWith("String_Node_Str")) {
          try {
            URI uri=new URI(relativePath);
            URL url=FileLocator.toFileURL(uri.toURL());
            source=new File(url.getFile());
          }
 catch (          URISyntaxException e) {
            CommonExceptionHandler.process(e);
          }
        }
      }
      if (source == null) {
        source=new File(LibrariesManagerUtils.getLibrariesPath(ECodeLanguage.JAVA) + File.separatorChar + name);
      }
      FilesUtils.copyFile(source,libsTargetFile);
      synJavaLibs(source);
    }
    eclipseProject.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
  }
 catch (  IOException e) {
    CommonExceptionHandler.process(e);
  }
catch (  CoreException e) {
    CommonExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void run() throws PersistenceException {
  try {
    for (    String name : names) {
      String path=new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();
      path=path + File.separatorChar + projectLabel+ File.separatorChar+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS)+ File.separatorChar+ name;
      File libsTargetFile=new File(path);
      File source=new File(LibrariesManagerUtils.getLibrariesPath(ECodeLanguage.JAVA) + File.separatorChar + name);
      FilesUtils.copyFile(source,libsTargetFile);
      synJavaLibs(source);
    }
    eclipseProject.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
  }
 catch (  IOException e) {
    CommonExceptionHandler.process(e);
  }
catch (  CoreException e) {
    CommonExceptionHandler.process(e);
  }
}
Program: 127463
Project: 127463
Buggy source:
public boolean isSAPNode(final INode node);

Fixed version (ground truth):
public boolean isSAPNode(final RepositoryNode node);
Program: 127465
Project: 127465
Buggy source:
public void setTableName(String tableName){
  this.tableName=tableName;
}

Fixed version (ground truth):
@Override public void setTableName(String tableName){
  this.tableName=tableName;
}
Program: 127466
Project: 127466
Buggy source:
public String getLabel(){
  return label;
}

Fixed version (ground truth):
@Override public String getLabel(){
  return label;
}
Program: 127467
Project: 127467
Buggy source:
public String getId(){
  return id;
}

Fixed version (ground truth):
@Override public String getId(){
  return id;
}
Program: 127468
Project: 127468
Buggy source:
public void sortCustomColumns(){
  List<IMetadataColumn> customColumns=new ArrayList<IMetadataColumn>();
  List<IMetadataColumn> tempCustomColumns=new ArrayList<IMetadataColumn>();
  List<IMetadataColumn> noCustomColumns=new ArrayList<IMetadataColumn>();
  for (int i=0; i < listColumns.size(); i++) {
    IMetadataColumn column=listColumns.get(i);
    if (column.isCustom()) {
      tempCustomColumns.add(column);
    }
  }
  listColumns.removeAll(tempCustomColumns);
  noCustomColumns.addAll(listColumns);
  int nbDone=0;
  while (nbDone < tempCustomColumns.size()) {
    boolean found=false;
    for (int i=0; i < tempCustomColumns.size() && !found; i++) {
      IMetadataColumn column=tempCustomColumns.get(i);
      if (column.getCustomId() == nbDone) {
        customColumns.add(column);
        found=true;
      }
    }
    nbDone++;
  }
  listColumns.clear();
  if (this.readOnlyColumnPosition != null && this.readOnlyColumnPosition.equals(EReadOnlyComlumnPosition.TOP.getName())) {
    listColumns.addAll(customColumns);
    listColumns.addAll(noCustomColumns);
  }
 else {
    listColumns.addAll(noCustomColumns);
    listColumns.addAll(customColumns);
  }
}

Fixed version (ground truth):
@Override public void sortCustomColumns(){
  List<IMetadataColumn> customColumns=new ArrayList<IMetadataColumn>();
  List<IMetadataColumn> tempCustomColumns=new ArrayList<IMetadataColumn>();
  List<IMetadataColumn> noCustomColumns=new ArrayList<IMetadataColumn>();
  for (int i=0; i < listColumns.size(); i++) {
    IMetadataColumn column=listColumns.get(i);
    if (column.isCustom()) {
      tempCustomColumns.add(column);
    }
  }
  listColumns.removeAll(tempCustomColumns);
  noCustomColumns.addAll(listColumns);
  int nbDone=0;
  while (nbDone < tempCustomColumns.size()) {
    boolean found=false;
    for (int i=0; i < tempCustomColumns.size() && !found; i++) {
      IMetadataColumn column=tempCustomColumns.get(i);
      if (column.getCustomId() == nbDone) {
        customColumns.add(column);
        found=true;
      }
    }
    nbDone++;
  }
  listColumns.clear();
  if (this.readOnlyColumnPosition != null && this.readOnlyColumnPosition.equals(EReadOnlyComlumnPosition.TOP.getName())) {
    listColumns.addAll(customColumns);
    listColumns.addAll(noCustomColumns);
  }
 else {
    listColumns.addAll(noCustomColumns);
    listColumns.addAll(customColumns);
  }
}
Program: 127469
Project: 127469
Buggy source:
public boolean isReadOnly(){
  return readOnly;
}

Fixed version (ground truth):
@Override public boolean isReadOnly(){
  return readOnly;
}
Program: 127470
Project: 127470
Buggy source:
public String getReadOnlyColumnPosition(){
  return this.readOnlyColumnPosition;
}

Fixed version (ground truth):
@Override public String getReadOnlyColumnPosition(){
  return this.readOnlyColumnPosition;
}
Program: 127471
Project: 127471
Buggy source:
public List<IMetadataColumn> getListUnusedColumns(){
  return this.unusedColumns;
}

Fixed version (ground truth):
@Override public List<IMetadataColumn> getListUnusedColumns(){
  return this.unusedColumns;
}
Program: 127472
Project: 127472
Buggy source:
public List<IMetadataColumn> getListUsedColumns(){
  return this.listColumns;
}

Fixed version (ground truth):
@Override public List<IMetadataColumn> getListUsedColumns(){
  return this.listColumns;
}
Program: 127473
Project: 127473
Buggy source:
public IMetadataColumn getColumn(String columnName){
  for (int i=0; i < getListColumns(true).size(); i++) {
    IMetadataColumn column=getListColumns(true).get(i);
    if (column.getLabel().equals(columnName)) {
      return column;
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public IMetadataColumn getColumn(String columnName){
  for (int i=0; i < getListColumns(true).size(); i++) {
    IMetadataColumn column=getListColumns(true).get(i);
    if (column.getLabel().equals(columnName)) {
      return column;
    }
  }
  return null;
}
Program: 127474
Project: 127474
Buggy source:
public void setId(String id){
  this.id=id;
}

Fixed version (ground truth):
@Override public void setId(String id){
  this.id=id;
}
Program: 127475
Project: 127475
Buggy source:
public String getComment(){
  return comment;
}

Fixed version (ground truth):
@Override public String getComment(){
  return comment;
}
Program: 127476
Project: 127476
Buggy source:
/** 
 * Sets the parent.
 * @param parent the parent to set
 */
public void setParent(IMetadataConnection parent){
  this.parent=parent;
}

Fixed version (ground truth):
/** 
 * Sets the parent.
 * @param parent the parent to set
 */
@Override public void setParent(IMetadataConnection parent){
  this.parent=parent;
}
Program: 127477
Project: 127477
Buggy source:
public void setAdditionalProperties(Map<String,String> additionalProperties){
  this.additionalProperties=additionalProperties;
}

Fixed version (ground truth):
@Override public void setAdditionalProperties(Map<String,String> additionalProperties){
  this.additionalProperties=additionalProperties;
}
Program: 127478
Project: 127478
Buggy source:
/** 
 * Getter for attachedConnector.
 * @return the attachedConnector
 */
public String getAttachedConnector(){
  return attachedConnector;
}

Fixed version (ground truth):
/** 
 * Getter for attachedConnector.
 * @return the attachedConnector
 */
@Override public String getAttachedConnector(){
  return attachedConnector;
}
Program: 127479
Project: 127479
Buggy source:
public void setUnusedColumns(List<IMetadataColumn> unusedColumns){
  this.unusedColumns=unusedColumns;
}

Fixed version (ground truth):
@Override public void setUnusedColumns(List<IMetadataColumn> unusedColumns){
  this.unusedColumns=unusedColumns;
}
Program: 127480
Project: 127480
Buggy source:
public synchronized List<IMetadataColumn> getListColumns(boolean withUnselected){
  Iterator<IMetadataColumn> it=this.listColumns.iterator();
  while (it.hasNext()) {
    IMetadataColumn column=it.next();
    if (!column.isUsefulColumn()) {
      this.unusedColumns.add(column);
      it.remove();
    }
  }
  Iterator<IMetadataColumn> it2=this.unusedColumns.iterator();
  while (it2.hasNext()) {
    IMetadataColumn column=it2.next();
    if (column.isUsefulColumn()) {
      this.listColumns.add(column);
      it2.remove();
    }
  }
  if (withUnselected) {
    List<IMetadataColumn> temp=new ArrayList<IMetadataColumn>();
    temp.addAll(this.listColumns);
    temp.addAll(this.unusedColumns);
    return temp;
  }
  return this.listColumns;
}

Fixed version (ground truth):
@Override public synchronized List<IMetadataColumn> getListColumns(boolean withUnselected){
  Iterator<IMetadataColumn> it=this.listColumns.iterator();
  while (it.hasNext()) {
    IMetadataColumn column=it.next();
    if (!column.isUsefulColumn()) {
      this.unusedColumns.add(column);
      it.remove();
    }
  }
  Iterator<IMetadataColumn> it2=this.unusedColumns.iterator();
  while (it2.hasNext()) {
    IMetadataColumn column=it2.next();
    if (column.isUsefulColumn()) {
      this.listColumns.add(column);
      it2.remove();
    }
  }
  if (withUnselected) {
    List<IMetadataColumn> temp=new ArrayList<IMetadataColumn>();
    temp.addAll(this.listColumns);
    temp.addAll(this.unusedColumns);
    return temp;
  }
  return this.listColumns;
}