nus-yam/ex-repair huggingface dataset:
Program: 125219
Project: 125219
Buggy source:
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  coreService.createStatsLogAndImplicitParamter(ProjectManager.getInstance().getCurrentProject());
  IRunProcessService runProcessService=getRunProcessService();
  if (runProcessService != null) {
    runProcessService.initializeRootPoms(monitor);
  }
}

Fixed version (ground truth):
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  coreService.createStatsLogAndImplicitParamter(ProjectManager.getInstance().getCurrentProject());
}
Program: 125221
Project: 125221
Buggy source:
protected IFile getRoutineFile(RoutineItem routineItem,boolean currentProject) throws SystemException {
  Project project;
  if (currentProject) {
    project=ProjectManager.getInstance().getCurrentProject();
  }
 else {
    String projectTechName=ProjectManager.getInstance().getProject(routineItem).getTechnicalLabel();
    project=ProjectManager.getInstance().getProjectFromProjectTechLabel(projectTechName);
  }
  ITalendProcessJavaProject talendProcessJavaProject=getRunProcessService().getTalendCodeJavaProject(ERepositoryObjectType.getItemType(routineItem),project);
  if (talendProcessJavaProject == null) {
    return null;
  }
  IFolder routineFolder=talendProcessJavaProject.getSrcSubFolder(null,routineItem.getPackageType());
  IFile file=routineFolder.getFile(routineItem.getProperty().getLabel() + JavaUtils.JAVA_EXTENSION);
  return file;
}

Fixed version (ground truth):
protected IFile getRoutineFile(RoutineItem routineItem,boolean currentProject) throws SystemException {
  String projectTechName;
  if (currentProject) {
    projectTechName=ProjectManager.getInstance().getCurrentProject().getTechnicalLabel();
  }
 else {
    projectTechName=ProjectManager.getInstance().getProject(routineItem).getTechnicalLabel();
  }
  ITalendProcessJavaProject talendProcessJavaProject=getRunProcessService().getTalendCodeJavaProject(ERepositoryObjectType.getItemType(routineItem),projectTechName);
  if (talendProcessJavaProject == null) {
    return null;
  }
  IFolder routineFolder=talendProcessJavaProject.getSrcSubFolder(null,routineItem.getPackageType());
  IFile file=routineFolder.getFile(routineItem.getProperty().getLabel() + JavaUtils.JAVA_EXTENSION);
  return file;
}
Program: 125222
Project: 125222
Buggy source:
@Override public void syncAllBeansForLogOn() throws SystemException {
  for (  RoutineItem beanItem : getBeans(needSyncRefProject())) {
    syncRoutine(beanItem,true,true,true);
  }
}

Fixed version (ground truth):
@Override public void syncAllBeansForLogOn() throws SystemException {
  for (  RoutineItem beanItem : getBeans(true)) {
    syncRoutine(beanItem,true,true,true);
  }
}
Program: 125223
Project: 125223
Buggy source:
ITalendProcessJavaProject getTalendCodeJavaProject(ERepositoryObjectType type,Project project);

Fixed version (ground truth):
ITalendProcessJavaProject getTalendCodeJavaProject(ERepositoryObjectType type,String projectTechName);
Program: 125224
Project: 125224
Buggy source:
private static void build(ERepositoryObjectType codeType,boolean install,IProgressMonitor monitor) throws Exception {
  ITalendProcessJavaProject codeProject=getCodesProject(codeType);
  codeProject.buildModules(monitor,null,null);
  if (install) {
    Map<String,Object> argumentsMap=new HashMap<>();
    argumentsMap.put(TalendProcessArgumentConstant.ARG_GOAL,TalendMavenConstants.GOAL_INSTALL);
    argumentsMap.put(TalendProcessArgumentConstant.ARG_PROGRAM_ARGUMENTS,"String_Node_Str");
    codeProject.buildModules(monitor,null,argumentsMap);
    BuildCacheManager.getInstance().updateCodeLastBuildDate(codeType);
  }
}

Fixed version (ground truth):
private static void build(ERepositoryObjectType codeType,boolean install,IProgressMonitor monitor) throws Exception {
  ITalendProcessJavaProject codeProject=getCodesProject(codeType);
  codeProject.buildWholeCodeProject();
  if (install) {
    Map<String,Object> argumentsMap=new HashMap<>();
    argumentsMap.put(TalendProcessArgumentConstant.ARG_GOAL,TalendMavenConstants.GOAL_INSTALL);
    argumentsMap.put(TalendProcessArgumentConstant.ARG_PROGRAM_ARGUMENTS,"String_Node_Str");
    codeProject.buildModules(monitor,null,argumentsMap);
    BuildCacheManager.getInstance().updateCodeLastBuildDate(codeType);
  }
}
Program: 125226
Project: 125226
Buggy source:
private static void generatePigudfInfor(JobInfo jobInfo,ProcessItem selectedProcessItem,IProcess currentProcess,IProcessor processor,Set<ModuleNeeded> neededLibraries) throws ProcessorException {
  Set<ModuleNeeded> neededModules=LastGenerationInfo.getInstance().getModulesNeededWithSubjobPerJob(jobInfo.getJobId(),jobInfo.getJobVersion());
  Set<String> pigudfNeededWithSubjobPerJob=LastGenerationInfo.getInstance().getPigudfNeededWithSubjobPerJob(jobInfo.getJobId(),jobInfo.getJobVersion());
  String pigModuleName=null;
  if (selectedProcessItem != null && !pigudfNeededWithSubjobPerJob.isEmpty()) {
    CorePlugin.getDefault().getRunProcessService().updateLibraries(neededModules,currentProcess);
    IRepositoryService service=CorePlugin.getDefault().getRepositoryService();
    pigModuleName=service.exportPigudf(processor,selectedProcessItem.getProperty(),exportConfig);
  }
  Set<ModuleNeeded> test=LastGenerationInfo.getInstance().getModulesNeededWithSubjobPerJob(jobInfo.getJobId(),jobInfo.getJobVersion());
  if (test != null && pigModuleName != null) {
    test.add(new ModuleNeeded(null,pigModuleName,null,true));
  }
}

Fixed version (ground truth):
private static void generatePigudfInfor(JobInfo jobInfo,ProcessItem selectedProcessItem,IProcess currentProcess,IProcessor processor) throws ProcessorException {
  Set<ModuleNeeded> neededModules=LastGenerationInfo.getInstance().getModulesNeededWithSubjobPerJob(jobInfo.getJobId(),jobInfo.getJobVersion());
  Set<String> pigudfNeededWithSubjobPerJob=LastGenerationInfo.getInstance().getPigudfNeededWithSubjobPerJob(jobInfo.getJobId(),jobInfo.getJobVersion());
  String pigModuleName=null;
  if (selectedProcessItem != null && !pigudfNeededWithSubjobPerJob.isEmpty()) {
    CorePlugin.getDefault().getRunProcessService().updateLibraries(neededModules,currentProcess);
    IRepositoryService service=CorePlugin.getDefault().getRepositoryService();
    pigModuleName=service.exportPigudf(processor,selectedProcessItem.getProperty(),exportConfig);
  }
  Set<ModuleNeeded> test=LastGenerationInfo.getInstance().getModulesNeededWithSubjobPerJob(jobInfo.getJobId(),jobInfo.getJobVersion());
  if (test != null && pigModuleName != null) {
    test.add(new ModuleNeeded(null,pigModuleName,null,true));
  }
}
Program: 125228
Project: 125228
Buggy source:
protected void addDependencies(Model model){
  try {
    getProcessorDependenciesManager().updateDependencies(null,model);
    final List<Dependency> dependencies=model.getDependencies();
    String projectTechName=ProjectManager.getInstance().getProject(getJobProcessor().getProperty()).getTechnicalLabel();
    String codeVersion=PomIdsHelper.getCodesVersion(projectTechName);
    String routinesGroupId=PomIdsHelper.getCodesGroupId(projectTechName,TalendMavenConstants.DEFAULT_CODE);
    String routinesArtifactId=TalendMavenConstants.DEFAULT_ROUTINES_ARTIFACT_ID;
    Dependency routinesDependency=PomUtil.createDependency(routinesGroupId,routinesArtifactId,codeVersion,null);
    dependencies.add(routinesDependency);
    if (ProcessUtils.isRequiredPigUDFs(jobProcessor.getProcess())) {
      String pigudfsGroupId=PomIdsHelper.getCodesGroupId(projectTechName,TalendMavenConstants.DEFAULT_PIGUDF);
      String pigudfsArtifactId=TalendMavenConstants.DEFAULT_PIGUDFS_ARTIFACT_ID;
      Dependency pigudfsDependency=PomUtil.createDependency(pigudfsGroupId,pigudfsArtifactId,codeVersion,null);
      dependencies.add(pigudfsDependency);
    }
    if (ProcessUtils.isRequiredBeans(jobProcessor.getProcess())) {
      String beansGroupId=PomIdsHelper.getCodesGroupId(projectTechName,TalendMavenConstants.DEFAULT_BEAN);
      String beansArtifactId=TalendMavenConstants.DEFAULT_BEANS_ARTIFACT_ID;
      Dependency beansDependency=PomUtil.createDependency(beansGroupId,beansArtifactId,codeVersion,null);
      dependencies.add(beansDependency);
    }
    addChildrenDependencies(dependencies);
  }
 catch (  ProcessorException e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
protected void addDependencies(Model model){
  try {
    getProcessorDependenciesManager().updateDependencies(null,model);
    final List<Dependency> dependencies=model.getDependencies();
    addCodesDependencies(dependencies);
    addChildrenDependencies(dependencies);
  }
 catch (  ProcessorException e) {
    ExceptionHandler.process(e);
  }
}
Program: 125231
Project: 125231
Buggy source:
/** 
 * Constructor.
 * @param compositeParent used to initialize <code>Table</code>.
 */
public TableViewerCreatorNotModifiable(Composite compositeParent){
  super();
  this.compositeParent=compositeParent;
  this.emptyZoneColor=compositeParent.getDisplay().getSystemColor(SWT.COLOR_WHITE);
}

Fixed version (ground truth):
/** 
 * Constructor.
 * @param compositeParent used to initialize <code>Table</code>.
 */
public TableViewerCreatorNotModifiable(Composite compositeParent){
  super();
  this.compositeParent=compositeParent;
  this.emptyZoneColor=compositeParent.getDisplay().getSystemColor(SWT.COLOR_WHITE);
  initLazyLoad();
}
Program: 125232
Project: 125232
Buggy source:
public void setLazyLoad(boolean lazyLoad){
  if (!Boolean.getBoolean("String_Node_Str")) {
    this.lazyLoad=lazyLoad;
  }
}

Fixed version (ground truth):
public void setLazyLoad(boolean lazyLoad){
  if (isLazyLoadingDisabled()) {
    this.lazyLoad=false;
  }
 else {
    this.lazyLoad=lazyLoad;
  }
}
Program: 125233
Project: 125233
Buggy source:
public String getPlatformURLFromIndex(String mavenURI);

Fixed version (ground truth):
public String getPlatformURLFromIndex(String jarName);
Program: 125234
Project: 125234
Buggy source:
public String getMavenUri(){
  return getMavenUri(true);
}

Fixed version (ground truth):
/** 
 * Get the maven URI with priority:custom URI ,URI from configuration, generated by default
 * @return
 */
public String getMavenUri(){
  if (getCustomMavenUri() != null) {
    return getCustomMavenUri();
  }
  mavenUri=initURI();
  return mavenUri;
}
Program: 125235
Project: 125235
Buggy source:
public String getModuleLocaion(){
  if (this.moduleLocaion == null) {
    if (moduleLocaionFromConfiguration != null && moduleLocaionFromConfiguration.startsWith("String_Node_Str")) {
      moduleLocaion=moduleLocaionFromConfiguration;
    }
 else {
      boolean checkCustomURI=false;
      moduleLocaion=libManagerService.getPlatformURLFromIndex(getMavenUri(checkCustomURI));
    }
    if (moduleLocaion != null && ELibraryInstallStatus.NOT_INSTALLED == ModuleStatusProvider.getStatus(getMavenUri())) {
      ModuleStatusProvider.resetStatus(getMavenUri());
    }
  }
  return moduleLocaion;
}

Fixed version (ground truth):
public String getModuleLocaion(){
  if (this.moduleLocaion == null) {
    moduleLocaion=libManagerService.getPlatformURLFromIndex(moduleName);
    if (moduleLocaion != null && ELibraryInstallStatus.NOT_INSTALLED == ModuleStatusProvider.getStatus(getMavenUri())) {
      ModuleStatusProvider.resetStatus(getMavenUri());
    }
  }
  return moduleLocaion;
}
Program: 125236
Project: 125236
Buggy source:
@Override public ModuleNeeded clone(){
  ModuleNeeded cloned=new ModuleNeeded(context,moduleName,informationMsg,mrRequired,installURL,requiredIf,mavenUri);
  cloned.bundleName=bundleName;
  cloned.bundleVersion=bundleVersion;
  cloned.context=context;
  cloned.dynamic=dynamic;
  cloned.excludeDependencies=cloned.excludeDependencies;
  if (extraAttributes != null && !extraAttributes.isEmpty()) {
    cloned.extraAttributes=new HashMap<>(extraAttributes);
  }
  cloned.id=id;
  cloned.informationMsg=informationMsg;
  cloned.installStatus=installStatus;
  if (installURL != null && !installURL.isEmpty()) {
    cloned.installURL=new ArrayList<>(installURL);
  }
  cloned.isShow=isShow;
  cloned.libManagerService=libManagerService;
  cloned.mavenUri=mavenUri;
  cloned.mavenUriFromConfiguration=mavenUriFromConfiguration;
  cloned.moduleLocaionFromConfiguration=moduleLocaionFromConfiguration;
  cloned.moduleName=moduleName;
  cloned.mrRequired=mrRequired;
  cloned.required=required;
  cloned.requiredIf=requiredIf;
  cloned.status=status;
  return cloned;
}

Fixed version (ground truth):
@Override public ModuleNeeded clone(){
  ModuleNeeded cloned=new ModuleNeeded(context,moduleName,informationMsg,mrRequired,installURL,requiredIf,mavenUri);
  cloned.bundleName=bundleName;
  cloned.bundleVersion=bundleVersion;
  cloned.context=context;
  cloned.dynamic=dynamic;
  cloned.excludeDependencies=cloned.excludeDependencies;
  if (extraAttributes != null && !extraAttributes.isEmpty()) {
    cloned.extraAttributes=new HashMap<>(extraAttributes);
  }
  cloned.id=id;
  cloned.informationMsg=informationMsg;
  cloned.installStatus=installStatus;
  if (installURL != null && !installURL.isEmpty()) {
    cloned.installURL=new ArrayList<>(installURL);
  }
  cloned.isShow=isShow;
  cloned.libManagerService=libManagerService;
  cloned.mavenUri=mavenUri;
  cloned.mavenUriFromConfiguration=mavenUriFromConfiguration;
  cloned.moduleLocaion=moduleLocaion;
  cloned.moduleName=moduleName;
  cloned.mrRequired=mrRequired;
  cloned.required=required;
  cloned.requiredIf=requiredIf;
  cloned.status=status;
  return cloned;
}
Program: 125237
Project: 125237
Buggy source:
public void setModuleLocaion(String moduleLocaion){
  if (moduleLocaion != null && ELibraryInstallStatus.NOT_INSTALLED == ModuleStatusProvider.getStatus(getMavenUri())) {
    ModuleStatusProvider.resetStatus(getMavenUri());
  }
  this.moduleLocaionFromConfiguration=moduleLocaion;
}

Fixed version (ground truth):
public void setModuleLocaion(String moduleLocaion){
  if (moduleLocaion != null && ELibraryInstallStatus.NOT_INSTALLED == ModuleStatusProvider.getStatus(getMavenUri())) {
    ModuleStatusProvider.resetStatus(getMavenUri());
  }
  this.moduleLocaion=moduleLocaion;
}
Program: 125238
Project: 125238
Buggy source:
public static Set<String> getAllModuleNamesFromIndex(){
  Set<String> moduleNames=new HashSet<String>();
  moduleNames.addAll(LibrariesIndexManager.getInstance().getMavenLibIndex().getJarsToRelativePath().keySet());
  for (  String platformURL : LibrariesIndexManager.getInstance().getStudioLibIndex().getJarsToRelativePath().values()) {
    try {
      File file=new File(platformURL);
      moduleNames.add(file.getName());
    }
 catch (    Exception e) {
      continue;
    }
  }
  return moduleNames;
}

Fixed version (ground truth):
public static Set<String> getAllModuleNamesFromIndex(){
  Set<String> moduleNames=new HashSet<String>();
  moduleNames.addAll(LibrariesIndexManager.getInstance().getMavenLibIndex().getJarsToRelativePath().keySet());
  moduleNames.addAll(LibrariesIndexManager.getInstance().getStudioLibIndex().getJarsToRelativePath().keySet());
  return moduleNames;
}
Program: 125239
Project: 125239
Buggy source:
public String getPlatformURLFromIndex(String jarName);

Fixed version (ground truth):
public String getPlatformURLFromIndex(String mavenURI);
Program: 125240
Project: 125240
Buggy source:
/** 
 * Get the maven URI with priority:custom URI ,URI from configuration, generated by default
 * @return
 */
public String getMavenUri(){
  if (getCustomMavenUri() != null) {
    return getCustomMavenUri();
  }
  mavenUri=initURI();
  return mavenUri;
}

Fixed version (ground truth):
public String getMavenUri(){
  return getMavenUri(true);
}
Program: 125241
Project: 125241
Buggy source:
public String getModuleLocaion(){
  if (this.moduleLocaion == null) {
    moduleLocaion=libManagerService.getPlatformURLFromIndex(moduleName);
    if (moduleLocaion != null && ELibraryInstallStatus.NOT_INSTALLED == ModuleStatusProvider.getStatus(getMavenUri())) {
      ModuleStatusProvider.resetStatus(getMavenUri());
    }
  }
  return moduleLocaion;
}

Fixed version (ground truth):
public String getModuleLocaion(){
  if (this.moduleLocaion == null) {
    if (moduleLocaionFromConfiguration != null && moduleLocaionFromConfiguration.startsWith("String_Node_Str")) {
      moduleLocaion=moduleLocaionFromConfiguration;
    }
 else {
      boolean checkCustomURI=false;
      moduleLocaion=libManagerService.getPlatformURLFromIndex(getMavenUri(checkCustomURI));
    }
    if (moduleLocaion != null && ELibraryInstallStatus.NOT_INSTALLED == ModuleStatusProvider.getStatus(getMavenUri())) {
      ModuleStatusProvider.resetStatus(getMavenUri());
    }
  }
  return moduleLocaion;
}
Program: 125242
Project: 125242
Buggy source:
@Override public ModuleNeeded clone(){
  ModuleNeeded cloned=new ModuleNeeded(context,moduleName,informationMsg,mrRequired,installURL,requiredIf,mavenUri);
  cloned.bundleName=bundleName;
  cloned.bundleVersion=bundleVersion;
  cloned.context=context;
  cloned.dynamic=dynamic;
  cloned.excludeDependencies=cloned.excludeDependencies;
  if (extraAttributes != null && !extraAttributes.isEmpty()) {
    cloned.extraAttributes=new HashMap<>(extraAttributes);
  }
  cloned.id=id;
  cloned.informationMsg=informationMsg;
  cloned.installStatus=installStatus;
  if (installURL != null && !installURL.isEmpty()) {
    cloned.installURL=new ArrayList<>(installURL);
  }
  cloned.isShow=isShow;
  cloned.libManagerService=libManagerService;
  cloned.mavenUri=mavenUri;
  cloned.mavenUriFromConfiguration=mavenUriFromConfiguration;
  cloned.moduleLocaion=moduleLocaion;
  cloned.moduleName=moduleName;
  cloned.mrRequired=mrRequired;
  cloned.required=required;
  cloned.requiredIf=requiredIf;
  cloned.status=status;
  return cloned;
}

Fixed version (ground truth):
@Override public ModuleNeeded clone(){
  ModuleNeeded cloned=new ModuleNeeded(context,moduleName,informationMsg,mrRequired,installURL,requiredIf,mavenUri);
  cloned.bundleName=bundleName;
  cloned.bundleVersion=bundleVersion;
  cloned.context=context;
  cloned.dynamic=dynamic;
  cloned.excludeDependencies=cloned.excludeDependencies;
  if (extraAttributes != null && !extraAttributes.isEmpty()) {
    cloned.extraAttributes=new HashMap<>(extraAttributes);
  }
  cloned.id=id;
  cloned.informationMsg=informationMsg;
  cloned.installStatus=installStatus;
  if (installURL != null && !installURL.isEmpty()) {
    cloned.installURL=new ArrayList<>(installURL);
  }
  cloned.isShow=isShow;
  cloned.libManagerService=libManagerService;
  cloned.mavenUri=mavenUri;
  cloned.mavenUriFromConfiguration=mavenUriFromConfiguration;
  cloned.moduleLocaionFromConfiguration=moduleLocaionFromConfiguration;
  cloned.moduleName=moduleName;
  cloned.mrRequired=mrRequired;
  cloned.required=required;
  cloned.requiredIf=requiredIf;
  cloned.status=status;
  return cloned;
}
Program: 125243
Project: 125243
Buggy source:
public void setModuleLocaion(String moduleLocaion){
  if (moduleLocaion != null && ELibraryInstallStatus.NOT_INSTALLED == ModuleStatusProvider.getStatus(getMavenUri())) {
    ModuleStatusProvider.resetStatus(getMavenUri());
  }
  this.moduleLocaion=moduleLocaion;
}

Fixed version (ground truth):
public void setModuleLocaion(String moduleLocaion){
  if (moduleLocaion != null && ELibraryInstallStatus.NOT_INSTALLED == ModuleStatusProvider.getStatus(getMavenUri())) {
    ModuleStatusProvider.resetStatus(getMavenUri());
  }
  this.moduleLocaionFromConfiguration=moduleLocaion;
}
Program: 125244
Project: 125244
Buggy source:
public static Set<String> getAllModuleNamesFromIndex(){
  Set<String> moduleNames=new HashSet<String>();
  moduleNames.addAll(LibrariesIndexManager.getInstance().getMavenLibIndex().getJarsToRelativePath().keySet());
  moduleNames.addAll(LibrariesIndexManager.getInstance().getStudioLibIndex().getJarsToRelativePath().keySet());
  return moduleNames;
}

Fixed version (ground truth):
public static Set<String> getAllModuleNamesFromIndex(){
  Set<String> moduleNames=new HashSet<String>();
  moduleNames.addAll(LibrariesIndexManager.getInstance().getMavenLibIndex().getJarsToRelativePath().keySet());
  for (  String platformURL : LibrariesIndexManager.getInstance().getStudioLibIndex().getJarsToRelativePath().values()) {
    try {
      File file=new File(platformURL);
      moduleNames.add(file.getName());
    }
 catch (    Exception e) {
      continue;
    }
  }
  return moduleNames;
}
Program: 125245
Project: 125245
Buggy source:
/** 
 * Constructor.
 * @param compositeParent used to initialize <code>Table</code>.
 */
public TableViewerCreatorNotModifiable(Composite compositeParent){
  super();
  this.compositeParent=compositeParent;
  this.emptyZoneColor=compositeParent.getDisplay().getSystemColor(SWT.COLOR_WHITE);
  initLazyLoad();
}

Fixed version (ground truth):
/** 
 * Constructor.
 * @param compositeParent used to initialize <code>Table</code>.
 */
public TableViewerCreatorNotModifiable(Composite compositeParent){
  super();
  this.compositeParent=compositeParent;
  this.emptyZoneColor=compositeParent.getDisplay().getSystemColor(SWT.COLOR_WHITE);
}
Program: 125246
Project: 125246
Buggy source:
private boolean isLazyLoadingDisabled(){
  return Boolean.getBoolean("String_Node_Str");
}

Fixed version (ground truth):
public static boolean isLazyLoadingDisabled(){
  return Boolean.getBoolean("String_Node_Str");
}
Program: 125247
Project: 125247
Buggy source:
/** 
 * .
 * @param newTableViewerCreator
 */
protected void setTableViewerCreatorOptions(TableViewerCreator<B> newTableViewerCreator){
  newTableViewerCreator.setLayoutMode(LAYOUT_MODE.CONTINUOUS);
  newTableViewerCreator.setColumnsResizableByDefault(true);
  newTableViewerCreator.setBorderVisible(true);
  newTableViewerCreator.setFirstColumnMasked(true);
  newTableViewerCreator.setFirstVisibleColumnIsSelection(false);
  newTableViewerCreator.setCheckboxInFirstColumn(false);
  newTableViewerCreator.setBgColorForEmptyArea(getParentComposite().getDisplay().getSystemColor(SWT.COLOR_WHITE));
}

Fixed version (ground truth):
/** 
 * .
 * @param newTableViewerCreator
 */
protected void setTableViewerCreatorOptions(TableViewerCreator<B> newTableViewerCreator){
  newTableViewerCreator.setLayoutMode(LAYOUT_MODE.CONTINUOUS);
  newTableViewerCreator.setColumnsResizableByDefault(true);
  newTableViewerCreator.setBorderVisible(true);
  newTableViewerCreator.setFirstColumnMasked(true);
  newTableViewerCreator.setLazyLoad(TableViewerCreator.getRecommandLazyLoad());
  newTableViewerCreator.setFirstVisibleColumnIsSelection(false);
  newTableViewerCreator.setCheckboxInFirstColumn(false);
  newTableViewerCreator.setBgColorForEmptyArea(getParentComposite().getDisplay().getSystemColor(SWT.COLOR_WHITE));
}
Program: 125249
Project: 125249
Buggy source:
private void addModulesToCache(List<MavenArtifact> searchResults,Map<String,ModuleToInstall> theCache){
  for (  MavenArtifact artifact : searchResults) {
    String artifactId=artifact.getArtifactId();
    String packageName=artifact.getType();
    if (packageName == null) {
      packageName=MavenConstants.TYPE_JAR;
    }
    String version=artifact.getVersion();
    String description=artifact.getDescription();
    String license=artifact.getLicense();
    String license_url=artifact.getLicenseUrl();
    String url=null;
    if (artifact.getUrl() != null && !"String_Node_Str".equals(artifact.getUrl())) {
      url=artifact.getUrl();
    }
    ModuleToInstall m=new ModuleToInstall();
    m.setName(artifactId + "String_Node_Str" + packageName);
    String mvnUri=MavenUrlHelper.generateMvnUrl(artifact.getGroupId(),artifactId,version,packageName,artifact.getClassifier());
    m.setMavenUri(mvnUri);
    m.setLicenseType(license);
    m.setLicenseUrl(license_url);
    m.setDescription(description);
    m.setUrl_description(url);
    m.setUrl_download(url);
    if (MavenConstants.PACKAGING_POM.equals(artifact.getType())) {
      m.setDistribution(MavenConstants.DOWNLOAD_MANUAL);
    }
    if (theCache == localCache) {
      m.setFromCustomNexus(true);
    }
    theCache.put(mvnUri,m);
  }
}

Fixed version (ground truth):
private void addModulesToCache(List<MavenArtifact> searchResults,Map<String,ModuleToInstall> theCache){
  for (  MavenArtifact artifact : searchResults) {
    String artifactId=artifact.getArtifactId();
    String packageName=artifact.getType();
    if (packageName == null) {
      packageName=MavenConstants.TYPE_JAR;
    }
    String version=artifact.getVersion();
    String description=artifact.getDescription();
    String license=artifact.getLicense();
    String license_url=artifact.getLicenseUrl();
    String url=null;
    if (artifact.getUrl() != null && !"String_Node_Str".equals(artifact.getUrl())) {
      url=artifact.getUrl();
    }
    ModuleToInstall m=new ModuleToInstall();
    m.setName(artifactId + "String_Node_Str" + packageName);
    String mvnUri=MavenUrlHelper.generateMvnUrl(artifact.getGroupId(),artifactId,version,packageName,artifact.getClassifier());
    m.setMavenUri(mvnUri);
    m.setLicenseType(license);
    m.setLicenseUrl(license_url);
    m.setDescription(description);
    m.setUrl_description(url);
    m.setUrl_download(url);
    if (StringUtils.isEmpty(artifact.getType()) || MavenConstants.PACKAGING_POM.equals(artifact.getType())) {
      m.setDistribution(MavenConstants.DOWNLOAD_MANUAL);
    }
    if (theCache == localCache) {
      m.setFromCustomNexus(true);
    }
    theCache.put(mvnUri,m);
  }
}
Program: 125251
Project: 125251
Buggy source:
public static void addToParentModules(IFile pomFile,Property property) throws Exception {
  if (property != null) {
    List<Relation> relations=RelationshipItemBuilder.getInstance().getItemsRelatedTo(property.getId(),property.getVersion(),RelationshipItemBuilder.JOB_RELATION);
    for (    Relation relation : relations) {
      if (RelationshipItemBuilder.SERVICES_RELATION.equals(relation.getType())) {
        return;
      }
    }
  }
  if (GlobalServiceRegister.getDefault().isServiceRegistered(IFilterService.class)) {
    IFilterService filterService=(IFilterService)GlobalServiceRegister.getDefault().getService(IFilterService.class);
    if (property != null && !filterService.isFilterAccepted(property.getItem(),PomIdsHelper.getPomFilter())) {
      return;
    }
  }
  IFile parentPom=getParentModulePomFile(pomFile);
  if (parentPom != null) {
    IPath relativePath=pomFile.getParent().getLocation().makeRelativeTo(parentPom.getParent().getLocation());
    Model model=MavenPlugin.getMaven().readModel(parentPom.getContents());
    List<String> modules=model.getModules();
    if (modules == null) {
      modules=new ArrayList<>();
      model.setModules(modules);
    }
    if (!modules.contains(relativePath.toPortableString())) {
      modules.add(relativePath.toPortableString());
      PomUtil.savePom(null,model,parentPom);
    }
  }
}

Fixed version (ground truth):
public static void addToParentModules(IFile pomFile,Property property) throws Exception {
  if (property != null) {
    List<Relation> relations=RelationshipItemBuilder.getInstance().getItemsRelatedTo(property.getId(),property.getVersion(),RelationshipItemBuilder.JOB_RELATION);
    for (    Relation relation : relations) {
      if (RelationshipItemBuilder.SERVICES_RELATION.equals(relation.getType())) {
        return;
      }
    }
  }
  if (GlobalServiceRegister.getDefault().isServiceRegistered(IFilterService.class)) {
    IFilterService filterService=(IFilterService)GlobalServiceRegister.getDefault().getService(IFilterService.class);
    if (property != null && !filterService.isFilterAccepted(property.getItem(),PomIdsHelper.getPomFilter())) {
      return;
    }
  }
  IFile parentPom=getParentModulePomFile(pomFile);
  if (parentPom != null) {
    if (!parentPom.isSynchronized(IResource.DEPTH_ZERO)) {
      parentPom.refreshLocal(IResource.DEPTH_ZERO,null);
    }
    IPath relativePath=pomFile.getParent().getLocation().makeRelativeTo(parentPom.getParent().getLocation());
    Model model=MavenPlugin.getMaven().readModel(parentPom.getContents());
    List<String> modules=model.getModules();
    if (modules == null) {
      modules=new ArrayList<>();
      model.setModules(modules);
    }
    if (!modules.contains(relativePath.toPortableString())) {
      modules.add(relativePath.toPortableString());
      PomUtil.savePom(null,model,parentPom);
    }
  }
}
Program: 125253
Project: 125253
Buggy source:
public void installPom(IFile pomFile,boolean current) throws Exception {
  Model model=MavenPlugin.getMaven().readModel(pomFile.getLocation().toFile());
  if (!isPomInstalled(model.getGroupId(),model.getArtifactId(),model.getVersion())) {
    MavenPomCommandLauncher launcher=new MavenPomCommandLauncher(pomFile,TalendMavenConstants.GOAL_INSTALL);
    if (current) {
      Map<String,Object> argumentsMap=new HashMap<>();
      argumentsMap.put(TalendProcessArgumentConstant.ARG_PROGRAM_ARGUMENTS,"String_Node_Str");
      launcher.setArgumentsMap(argumentsMap);
    }
    launcher.execute(new NullProgressMonitor());
  }
}

Fixed version (ground truth):
public void installPom(IFile pomFile,boolean current) throws Exception {
  if (!pomFile.exists()) {
    return;
  }
  Model model=MavenPlugin.getMaven().readModel(pomFile.getLocation().toFile());
  if (!isPomInstalled(model.getGroupId(),model.getArtifactId(),model.getVersion())) {
    MavenPomCommandLauncher launcher=new MavenPomCommandLauncher(pomFile,TalendMavenConstants.GOAL_INSTALL);
    if (current) {
      Map<String,Object> argumentsMap=new HashMap<>();
      argumentsMap.put(TalendProcessArgumentConstant.ARG_PROGRAM_ARGUMENTS,"String_Node_Str");
      launcher.setArgumentsMap(argumentsMap);
    }
    launcher.execute(new NullProgressMonitor());
  }
}
Program: 125254
Project: 125254
Buggy source:
private Set<Relation> getItemsJobRelatedTo(Map<Relation,Set<Relation>> itemsRelations,String itemId,String version,String relationType){
  Relation itemToTest=new Relation();
  Set<Relation> jobRelations=new HashSet<Relation>();
  itemToTest.setId(itemId);
  itemToTest.setType(relationType);
  itemToTest.setVersion(version);
  if (!itemsRelations.containsKey(itemToTest)) {
    try {
      Item item=proxyRepositoryFactory.getLastVersion(itemId).getProperty().getItem();
      addOrUpdateItem(item,false);
    }
 catch (    PersistenceException e) {
      log.error(e.getMessage());
    }
  }
  if (itemsRelations.containsKey(itemToTest)) {
    Set<Relation> relations=itemsRelations.get(itemToTest);
    for (    Relation relatedItem : relations) {
      if (relatedItem.getType().equals(relationType)) {
        jobRelations.add(relatedItem);
      }
    }
    return jobRelations;
  }
  return jobRelations;
}

Fixed version (ground truth):
private Set<Relation> getItemsJobRelatedTo(Map<Relation,Set<Relation>> itemsRelations,String itemId,String version,String relationType,String relationTypeTofind){
  Relation itemToTest=new Relation();
  Set<Relation> jobRelations=new HashSet<Relation>();
  itemToTest.setId(itemId);
  itemToTest.setType(relationType);
  itemToTest.setVersion(version);
  if (!itemsRelations.containsKey(itemToTest)) {
    try {
      Item item=proxyRepositoryFactory.getLastVersion(itemId).getProperty().getItem();
      addOrUpdateItem(item,false);
    }
 catch (    PersistenceException e) {
      log.error(e.getMessage());
    }
  }
  if (itemsRelations.containsKey(itemToTest)) {
    Set<Relation> relations=itemsRelations.get(itemToTest);
    for (    Relation relatedItem : relations) {
      if (relatedItem.getType().equals(relationTypeTofind)) {
        jobRelations.add(relatedItem);
      }
    }
    return jobRelations;
  }
  return jobRelations;
}
Program: 125255
Project: 125255
Buggy source:
/** 
 * @deprecated use {@link IRunProcessService#getTalendJobJavaProject(Property)} instead
 */
ITalendProcessJavaProject getTalendProcessJavaProject();

Fixed version (ground truth):
/** 
 * @deprecated use {@link IRunProcessService#getTalendJobJavaProject(Property)} instead
 */
@Deprecated ITalendProcessJavaProject getTalendProcessJavaProject();
Program: 125257
Project: 125257
Buggy source:
@Override public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask(Messages.getString("String_Node_Str"),libsNeedDeploy.size());
  try {
    for (    URI jar : libsNeedDeploy) {
      monitor.subTask(jar.toURL().getPath());
      librairesService.deploy(jar,monitor);
      monitor.worked(1);
    }
    if (PluginChecker.isSVNProviderPluginLoaded()) {
      ISVNProviderServiceInCoreRuntime svnService=(ISVNProviderServiceInCoreRuntime)GlobalServiceRegister.getDefault().getService(ISVNProviderServiceInCoreRuntime.class);
      if (svnService != null && svnService.isSvnLibSetupOnTAC()) {
        svnService.syncLibs(null);
      }
    }
  }
 catch (  MalformedURLException e) {
  }
 finally {
    monitor.done();
  }
}

Fixed version (ground truth):
@Override public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask(Messages.getString("String_Node_Str"),libsNeedDeploy.size());
  try {
    for (    URI jar : libsNeedDeploy) {
      monitor.subTask(jar.toURL().getPath());
      librairesService.deploy(jar,monitor);
      monitor.worked(1);
    }
  }
 catch (  MalformedURLException e) {
  }
 finally {
    monitor.done();
  }
}
Program: 125258
Project: 125258
Buggy source:
private void doDeployLibs(){
  if (libsNeedDeploy.size() == 0) {
    return;
  }
  IRunnableWithProgress runnableWithProgress=new IRunnableWithProgress(){
    @Override public void run(    final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
      monitor.beginTask(Messages.getString("String_Node_Str"),libsNeedDeploy.size());
      try {
        for (        URI jar : libsNeedDeploy) {
          monitor.subTask(jar.toURL().getPath());
          librairesService.deploy(jar,monitor);
          monitor.worked(1);
        }
        if (PluginChecker.isSVNProviderPluginLoaded()) {
          ISVNProviderServiceInCoreRuntime svnService=(ISVNProviderServiceInCoreRuntime)GlobalServiceRegister.getDefault().getService(ISVNProviderServiceInCoreRuntime.class);
          if (svnService != null && svnService.isSvnLibSetupOnTAC()) {
            svnService.syncLibs(null);
          }
        }
      }
 catch (      MalformedURLException e) {
      }
 finally {
        monitor.done();
      }
    }
  }
;
  ProgressMonitorDialog dialog=new ProgressMonitorDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
  try {
    dialog.run(true,true,runnableWithProgress);
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
private void doDeployLibs(){
  if (libsNeedDeploy.size() == 0) {
    return;
  }
  IRunnableWithProgress runnableWithProgress=new IRunnableWithProgress(){
    @Override public void run(    final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
      monitor.beginTask(Messages.getString("String_Node_Str"),libsNeedDeploy.size());
      try {
        for (        URI jar : libsNeedDeploy) {
          monitor.subTask(jar.toURL().getPath());
          librairesService.deploy(jar,monitor);
          monitor.worked(1);
        }
      }
 catch (      MalformedURLException e) {
      }
 finally {
        monitor.done();
      }
    }
  }
;
  ProgressMonitorDialog dialog=new ProgressMonitorDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
  try {
    dialog.run(true,true,runnableWithProgress);
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 125261
Project: 125261
Buggy source:
private void refreshLocal(final String names[]){
  Project currentProject=ProjectManager.getInstance().getCurrentProject();
  final String projectLabel=currentProject.getTechnicalLabel();
  try {
    for (    String name : names) {
      String jarPath=localLibraryManager.getJarPath(name);
      if (jarPath != null) {
        File source=new File(jarPath);
        if (source.exists()) {
          synJavaLibs(source);
        }
      }
    }
  }
 catch (  IOException e) {
    CommonExceptionHandler.process(e);
  }
  if (PluginChecker.isSVNProviderPluginLoaded()) {
    ISVNProviderServiceInCoreRuntime service=(ISVNProviderServiceInCoreRuntime)GlobalServiceRegister.getDefault().getService(ISVNProviderServiceInCoreRuntime.class);
    if (service != null) {
      File libFile=new File(LibrariesManagerUtils.getLibrariesPath(ECodeLanguage.JAVA));
      boolean localConnectionProvider=true;
      IProxyRepositoryFactory proxyRepositoryFactory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
      if (proxyRepositoryFactory != null) {
        try {
          localConnectionProvider=proxyRepositoryFactory.isLocalConnectionProvider();
        }
 catch (        PersistenceException e) {
        }
      }
      if (!localConnectionProvider && service.isSvnLibSetupOnTAC() && service.isInSvn(libFile.getAbsolutePath())&& !getRepositoryContext().isOffline()) {
        List<String> jars=new ArrayList<String>();
        for (        String name : names) {
          jars.add(libFile.getAbsolutePath() + File.separatorChar + name);
        }
        service.deployNewJar(jars);
        return;
      }
    }
  }
}

Fixed version (ground truth):
private void refreshLocal(final String names[]){
  Project currentProject=ProjectManager.getInstance().getCurrentProject();
  try {
    for (    String name : names) {
      String jarPath=localLibraryManager.getJarPath(name);
      if (jarPath != null) {
        File source=new File(jarPath);
        if (source.exists()) {
          synJavaLibs(source);
        }
      }
    }
  }
 catch (  IOException e) {
    CommonExceptionHandler.process(e);
  }
}
Program: 125262
Project: 125262
Buggy source:
/** 
 * DOC nrousseau Comment method "resolveJar".
 * @param jarNeeded
 * @param jarFile
 * @param customNexusServer
 * @param uri
 * @return
 * @throws Exception
 * @throws IOException
 */
@Override public File resolveJar(final NexusServerBean customNexusServer,String uri) throws Exception, IOException {
  File resolvedFile=null;
  NexusDownloader nexusDownloader=new NexusDownloader();
  nexusDownloader.setTalendlibServer(customNexusServer);
  nexusDownloader.download(new URL(null,uri,new Handler()),null);
  resolvedFile=TalendMavenResolver.resolve(uri);
  if (resolvedFile != null) {
    ModuleStatusProvider.putStatus(uri,ELibraryInstallStatus.INSTALLED);
    ModuleStatusProvider.putDeployStatus(uri,ELibraryInstallStatus.DEPLOYED);
    mavenJarInstalled.put(uri,resolvedFile.getAbsolutePath());
  }
  updateLastResolveDate(uri);
  if (resolvedFile != null) {
    try {
      String pomPath=resolvedFile.getParent();
      String name=resolvedFile.getName();
      int indexOf=name.lastIndexOf("String_Node_Str");
      if (indexOf != -1) {
        pomPath=pomPath + "String_Node_Str" + name.substring(0,indexOf)+ "String_Node_Str"+ MavenConstants.PACKAGING_POM;
      }
 else {
        pomPath=pomPath + name + "String_Node_Str"+ MavenConstants.PACKAGING_POM;
      }
      File pomFile=new File(pomPath);
      if (!pomFile.exists()) {
        MavenArtifact parseMvnUrl=MavenUrlHelper.parseMvnUrl(uri);
        File generatedPom=new File(PomUtil.generatePom(parseMvnUrl));
        FilesUtils.copyFile(generatedPom,pomFile);
      }
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  return resolvedFile;
}

Fixed version (ground truth):
/** 
 * DOC nrousseau Comment method "resolveJar".
 * @param jarNeeded
 * @param jarFile
 * @param customNexusServer
 * @param uri
 * @return
 * @throws Exception
 * @throws IOException
 */
@Override public File resolveJar(final NexusServerBean customNexusServer,String uri) throws Exception, IOException {
  File resolvedFile=TalendMavenResolver.resolve(uri);
  if (resolvedFile != null) {
    ModuleStatusProvider.putStatus(uri,ELibraryInstallStatus.INSTALLED);
    ModuleStatusProvider.putDeployStatus(uri,ELibraryInstallStatus.DEPLOYED);
    mavenJarInstalled.put(uri,resolvedFile.getAbsolutePath());
  }
  updateLastResolveDate(uri);
  if (resolvedFile != null) {
    try {
      String pomPath=resolvedFile.getParent();
      String name=resolvedFile.getName();
      int indexOf=name.lastIndexOf("String_Node_Str");
      if (indexOf != -1) {
        pomPath=pomPath + "String_Node_Str" + name.substring(0,indexOf)+ "String_Node_Str"+ MavenConstants.PACKAGING_POM;
      }
 else {
        pomPath=pomPath + name + "String_Node_Str"+ MavenConstants.PACKAGING_POM;
      }
      File pomFile=new File(pomPath);
      if (!pomFile.exists()) {
        MavenArtifact parseMvnUrl=MavenUrlHelper.parseMvnUrl(uri);
        File generatedPom=new File(PomUtil.generatePom(parseMvnUrl));
        FilesUtils.copyFile(generatedPom,pomFile);
      }
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  return resolvedFile;
}
Program: 125264
Project: 125264
Buggy source:
public org.talend.core.model.properties.Project getProject(Project project,EObject object){
  if (object != null) {
    if (object instanceof org.talend.core.model.properties.Project) {
      return (org.talend.core.model.properties.Project)object;
    }
    if (object instanceof Property) {
      return getProject(project,((Property)object).getItem());
    }
    if (object instanceof Item) {
      if (((Item)object).getParent() == null) {
        Item jobItem=getTestCaseParentItem((Item)object);
        if (jobItem != null) {
          return getProject(project,jobItem.getParent());
        }
      }
      return getProject(project,((Item)object).getParent());
    }
  }
  if (project != null) {
    return project.getEmfProject();
  }
  return null;
}

Fixed version (ground truth):
public org.talend.core.model.properties.Project getProject(Project project,EObject object){
  if (object != null) {
    if (object instanceof org.talend.core.model.properties.Project) {
      return (org.talend.core.model.properties.Project)object;
    }
    if (object instanceof Property) {
      return getProject(project,((Property)object).getItem());
    }
    if (object instanceof Item) {
      return getProject(project,((Item)object).getParent());
    }
  }
  if (project != null) {
    return project.getEmfProject();
  }
  return null;
}
Program: 125265
Project: 125265
Buggy source:
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  TimeMeasure.display=CommonsPlugin.isDebugMode();
  TimeMeasure.displaySteps=CommonsPlugin.isDebugMode();
  TimeMeasure.measureActive=CommonsPlugin.isDebugMode();
  TimeMeasure.begin("String_Node_Str");
  SubMonitor subMonitor=SubMonitor.convert(monitor,1);
  SubMonitor currentMonitor=subMonitor.newChild(1,SubMonitor.SUPPRESS_NONE);
  currentMonitor.beginTask(Messages.getString("String_Node_Str"),1);
  coreService.syncLibraries(currentMonitor);
  TimeMeasure.step("String_Node_Str","String_Node_Str");
  if (monitor != null && monitor.isCanceled()) {
    throw new OperationCanceledException("String_Node_Str");
  }
  IWorkspace workspace=ResourcesPlugin.getWorkspace();
  IWorkspaceDescription description=workspace.getDescription();
  description.setAutoBuilding(false);
  try {
    workspace.setDescription(description);
  }
 catch (  CoreException e) {
  }
  coreService.createStatsLogAndImplicitParamter(ProjectManager.getInstance().getCurrentProject());
  if (monitor != null && monitor.isCanceled()) {
    throw new OperationCanceledException("String_Node_Str");
  }
  if (monitor != null && monitor.isCanceled()) {
    throw new OperationCanceledException("String_Node_Str");
  }
  TimeMeasure.end("String_Node_Str");
  TimeMeasure.display=false;
  TimeMeasure.displaySteps=false;
  TimeMeasure.measureActive=false;
}

Fixed version (ground truth):
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  TimeMeasure.display=CommonsPlugin.isDebugMode();
  TimeMeasure.displaySteps=CommonsPlugin.isDebugMode();
  TimeMeasure.measureActive=CommonsPlugin.isDebugMode();
  TimeMeasure.begin("String_Node_Str");
  SubMonitor subMonitor=SubMonitor.convert(monitor,1);
  SubMonitor currentMonitor=subMonitor.newChild(1,SubMonitor.SUPPRESS_NONE);
  currentMonitor.beginTask(Messages.getString("String_Node_Str"),1);
  coreService.syncLibraries(currentMonitor);
  TimeMeasure.step("String_Node_Str","String_Node_Str");
  if (monitor != null && monitor.isCanceled()) {
    throw new OperationCanceledException("String_Node_Str");
  }
  IWorkspace workspace=ResourcesPlugin.getWorkspace();
  IWorkspaceDescription description=workspace.getDescription();
  description.setAutoBuilding(false);
  try {
    workspace.setDescription(description);
  }
 catch (  CoreException e) {
  }
  coreService.createStatsLogAndImplicitParamter(ProjectManager.getInstance().getCurrentProject());
  if (monitor != null && monitor.isCanceled()) {
    throw new OperationCanceledException("String_Node_Str");
  }
  if (monitor != null && monitor.isCanceled()) {
    throw new OperationCanceledException("String_Node_Str");
  }
  IRunProcessService runProcessService=getRunProcessService();
  if (runProcessService != null) {
    runProcessService.initializeRootPoms();
  }
  TimeMeasure.end("String_Node_Str");
  TimeMeasure.display=false;
  TimeMeasure.displaySteps=false;
  TimeMeasure.measureActive=false;
}
Program: 125266
Project: 125266
Buggy source:
public static void updateCodeProjects(IProgressMonitor monitor){
  RepositoryWorkUnit workUnit=new RepositoryWorkUnit<Object>("String_Node_Str"){
    @Override protected void run(){
      updateCodeProject(monitor,ERepositoryObjectType.ROUTINES);
      if (ProcessUtils.isRequiredPigUDFs(null)) {
        updateCodeProject(monitor,ERepositoryObjectType.PIG_UDF);
      }
      if (ProcessUtils.isRequiredBeans(null)) {
        updateCodeProject(monitor,ERepositoryObjectType.valueOf("String_Node_Str"));
      }
    }
  }
;
  workUnit.setAvoidUnloadResources(true);
  ProxyRepositoryFactory.getInstance().executeRepositoryWorkUnit(workUnit);
}

Fixed version (ground truth):
public static void updateCodeProjects(IProgressMonitor monitor,boolean forceBuild){
  RepositoryWorkUnit workUnit=new RepositoryWorkUnit<Object>("String_Node_Str"){
    @Override protected void run(){
      updateCodeProject(monitor,ERepositoryObjectType.ROUTINES,forceBuild);
      if (ProcessUtils.isRequiredPigUDFs(null)) {
        updateCodeProject(monitor,ERepositoryObjectType.PIG_UDF,forceBuild);
      }
      if (ProcessUtils.isRequiredBeans(null)) {
        updateCodeProject(monitor,ERepositoryObjectType.valueOf("String_Node_Str"),forceBuild);
      }
    }
  }
;
  workUnit.setAvoidUnloadResources(true);
  ProxyRepositoryFactory.getInstance().executeRepositoryWorkUnit(workUnit);
}
Program: 125267
Project: 125267
Buggy source:
private static void updateCodeProject(IProgressMonitor monitor,ERepositoryObjectType codeType){
  try {
    ITalendProcessJavaProject codeProject=getCodesProject(codeType);
    updateCodeProjectPom(monitor,codeType,codeProject.getProjectPom());
    buildAndInstallCodesProject(monitor,codeType);
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
private static void updateCodeProject(IProgressMonitor monitor,ERepositoryObjectType codeType,boolean forceBuild){
  try {
    ITalendProcessJavaProject codeProject=getCodesProject(codeType);
    updateCodeProjectPom(monitor,codeType,codeProject.getProjectPom());
    buildAndInstallCodesProject(monitor,codeType,true,forceBuild);
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 125269
Project: 125269
Buggy source:
public void logOffProject(){
  repositoryFactoryFromProvider.logOffProject();
  if (!CommonsPlugin.isHeadless()) {
    ProjectRepositoryNode root=ProjectRepositoryNode.getInstance();
    if (root != null) {
      root.setEnableDisposed(true);
      root.dispose();
    }
  }
  getRunProcessService().deleteEclipseProjects();
  ReferenceProjectProvider.clearTacReferenceList();
  ReferenceProjectProblemManager.getInstance().clearAll();
  fullLogonFinished=false;
}

Fixed version (ground truth):
public void logOffProject(){
  repositoryFactoryFromProvider.logOffProject();
  if (!CommonsPlugin.isHeadless()) {
    ProjectRepositoryNode root=ProjectRepositoryNode.getInstance();
    if (root != null) {
      root.setEnableDisposed(true);
      root.dispose();
    }
  }
  IRunProcessService runProcessService=getRunProcessService();
  if (runProcessService != null) {
    runProcessService.deleteEclipseProjects();
  }
  ReferenceProjectProvider.clearTacReferenceList();
  ReferenceProjectProblemManager.getInstance().clearAll();
  fullLogonFinished=false;
}