nus-yam/ex-repair huggingface dataset:
Program: 119042
Project: 119042
Buggy source:
/** 
 * Return an array of Objects representing the valid content proposals for a field.
 * @param contents the current contents of the field (only consulted if filtering is set to <code>true</code>)
 * @param position the current cursor position within the field (ignored)
 * @return the array of Objects that represent valid proposals for the field given its current content.
 */
public IContentProposal[] getProposals(String contents,int position){
  contents=contents.toLowerCase();
  boolean hasStarChar=contents.indexOf('*') == -1 ? false : true;
  if (hasStarChar) {
    contents="String_Node_Str" + contents.replace("String_Node_Str","String_Node_Str") + "String_Node_Str";
  }
  ArrayList<IContentProposal> list=new ArrayList<IContentProposal>();
  for (  String proposal : proposals) {
    if (proposal == null) {
      continue;
    }
    String tmp=proposal.toLowerCase();
    if (!hasStarChar) {
      if (tmp.contains(contents) && components.get(proposal) != null) {
        list.add(new ContentProposal(proposal,components.get(proposal).getLongName()));
      }
    }
 else     if (Pattern.matches(contents,tmp) && components.get(proposal) != null) {
      list.add(new ContentProposal(proposal,components.get(proposal).getLongName()));
    }
  }
  return list.toArray(new IContentProposal[0]);
}

Fixed version (ground truth):
/** 
 * Return an array of Objects representing the valid content proposals for a field.
 * @param contents the current contents of the field (only consulted if filtering is set to <code>true</code>)
 * @param position the current cursor position within the field (ignored)
 * @return the array of Objects that represent valid proposals for the field given its current content.
 */
@Override public IContentProposal[] getProposals(String contents,int position){
  List<IComponent> relatedComponent=TalendEditorPaletteFactory.getRelatedComponents(componentsFactory,contents);
  if (componentAssistant != null) {
    relatedComponent=componentAssistant.filterComponents(relatedComponent);
  }
  proposalList.clear();
  if (relatedComponent != null && !relatedComponent.isEmpty()) {
    Iterator<IComponent> iter=relatedComponent.iterator();
    while (iter.hasNext()) {
      IComponent component=iter.next();
      proposalList.add(new ComponentContentProposal(component));
    }
  }
  DummyComponent noteComponent=new DummyComponent("String_Node_Str");
  noteComponent.setIcon16(ImageProvider.getImageDesc(ECoreImage.NOTE_SMALL_ICON));
  noteComponent.setOriginalFamilyName("String_Node_Str");
  proposalList.add(new ComponentContentProposal(noteComponent));
  return proposalList.toArray(new IContentProposal[0]);
}
Program: 119043
Project: 119043
Buggy source:
/** 
 * Construct a TalendEditorComponentProposalProvider whose content proposals are always the specified set of Component.
 * @param components the Map of Components to be returned whenever proposals are requested.
 */
public TalendEditorComponentProposalProvider(Map<String,IComponent> components){
  super();
  this.components=components;
  this.proposals=components.keySet();
}

Fixed version (ground truth):
/** 
 * Construct a TalendEditorComponentProposalProvider whose content proposals are always the specified set of Component.
 * @param components the Map of Components to be returned whenever proposals are requested.
 */
public TalendEditorComponentProposalProvider(TalendEditorComponentCreationAssist componentAssist,List<IContentProposal> proposalList){
  super();
  this.componentAssistant=componentAssist;
  this.proposalList=proposalList;
}
Program: 119044
Project: 119044
Buggy source:
public TalendEditorConnectionTargetAssist(String categoryName,GraphicalViewer viewer,CommandStack commandStack,IProcess2 process){
  super(categoryName,viewer,commandStack,process);
  this.components=TalendEditorComponentCreationUtil.getComponentsInType(categoryName,null);
}

Fixed version (ground truth):
public TalendEditorConnectionTargetAssist(String categoryName,GraphicalViewer viewer,CommandStack commandStack,IProcess2 process){
  super(categoryName,viewer,commandStack,process);
  connectionType=ConnectionManager.getNewConnectionType();
}
Program: 119045
Project: 119045
Buggy source:
@Override public AbstractActionPage getNextPage(){
  AbstractActionPage iNextPage=super.getNextPage();
  if (iNextPage == null) {
    Project[] projects=LoginHelper.getInstance().getProjects(LoginHelper.createDefaultLocalConnection());
    if (projects == null || projects.length == 0) {
      List<ConnectionBean> storedConnections=LoginHelper.getInstance().getStoredConnections();
      if (storedConnections == null || storedConnections.isEmpty() || (storedConnections.size() == 1 && !LoginHelper.isRemoteConnection(storedConnections.get(0)))) {
        iNextPage=new LoginFirstTimeStartupActionPage(getParent(),loginDialog,SWT.NONE);
      }
    }
    if (iNextPage == null) {
      iNextPage=new LoginProjectPage(getParent(),loginDialog,SWT.NONE);
    }
    setNextPage(iNextPage);
  }
  return iNextPage;
}

Fixed version (ground truth):
@Override public AbstractActionPage getNextPage(){
  AbstractActionPage iNextPage=super.getNextPage();
  if (iNextPage == null) {
    iNextPage=loginDialog.getFirstTimeStartupPageIfNeeded();
    if (iNextPage == null) {
      iNextPage=new LoginProjectPage(getParent(),loginDialog,SWT.NONE);
    }
    setNextPage(iNextPage);
  }
  return iNextPage;
}
Program: 119046
Project: 119046
Buggy source:
protected void showFirstPage(){
  AbstractLoginActionPage loginPage=null;
  boolean isAcceptAgreement=LicenseManagement.isLicenseValidated();
  if (LoginHelper.isTalendLogonFirstTimeStartup()) {
    Project[] projects=LoginHelper.getInstance().getProjects(LoginHelper.createDefaultLocalConnection());
    boolean hasProjects=false;
    if (projects != null && 0 < projects.length) {
      hasProjects=true;
    }
    if (isAcceptAgreement && !hasProjects) {
      if (PluginChecker.isSVNProviderPluginLoaded()) {
        List<ConnectionBean> storedConnections=LoginHelper.getInstance().getStoredConnections();
        if (storedConnections == null || storedConnections.isEmpty() || (storedConnections.size() == 1 && !LoginHelper.isRemoteConnection(storedConnections.get(0)))) {
          loginPage=new LoginFirstTimeStartupActionPage(base,this,SWT.NONE);
        }
      }
 else {
        loginPage=new LoginFirstTimeStartupActionPage(base,this,SWT.NONE);
      }
    }
  }
  if (!isAcceptAgreement) {
    loginPage=new LoginAgreementPage(base,this,SWT.NONE);
  }
  if (loginPage == null) {
    loginPage=new LoginProjectPage(base,this,SWT.NONE);
  }
  try {
    loginPage.preShowPage();
  }
 catch (  Throwable e) {
    CommonExceptionHandler.process(e);
  }
  loginPage.showPage();
}

Fixed version (ground truth):
protected void showFirstPage(){
  AbstractLoginActionPage loginPage=null;
  boolean isAcceptAgreement=LicenseManagement.isLicenseValidated();
  if (!isAcceptAgreement) {
    loginPage=new LoginAgreementPage(base,this,SWT.NONE);
  }
 else   if (LoginHelper.isTalendLogonFirstTimeStartup()) {
    loginPage=getFirstTimeStartupPageIfNeeded();
  }
  if (loginPage == null) {
    loginPage=new LoginProjectPage(base,this,SWT.NONE);
  }
  try {
    loginPage.preShowPage();
  }
 catch (  Throwable e) {
    CommonExceptionHandler.process(e);
  }
  loginPage.showPage();
}
Program: 119048
Project: 119048
Buggy source:
@Override public boolean close(){
  if (!LicenseManagement.isLicenseValidated()) {
    System.exit(0);
  }
  return super.close();
}

Fixed version (ground truth):
@Override public boolean close(){
  return super.close();
}
Program: 119049
Project: 119049
Buggy source:
private void mavenBuildCodeProjectPom(String goals,String module,String programArgs,IProgressMonitor monitor) throws Exception {
  IFile childModulePomFile;
  if (TalendMavenConstants.CURRENT_PATH.equals(module)) {
    childModulePomFile=this.getProject().getFile(TalendMavenConstants.POM_FILE_NAME);
  }
 else {
    IFolder moduleFolder=this.getProject().getFolder(module);
    childModulePomFile=moduleFolder.getFile(TalendMavenConstants.POM_FILE_NAME);
  }
  if (childModulePomFile.getLocation().toFile().exists()) {
    MavenPomCommandLauncher mavenLauncher=null;
    if (goals == null || goals.trim().length() == 0 || goals.equals(TalendMavenConstants.GOAL_COMPILE)) {
    }
 else {
      mavenLauncher=new MavenPomCommandLauncher(childModulePomFile,goals);
      mavenLauncher.setProgramArguments(programArgs);
      mavenLauncher.execute(monitor);
    }
    buildWholeCodeProject();
    buildWholeCodeProject();
  }
 else {
    throw new RuntimeException("String_Node_Str" + module);
  }
}

Fixed version (ground truth):
private void mavenBuildCodeProjectPom(String goals,String module,Map<String,Object> argumentsMap,IProgressMonitor monitor) throws Exception {
  IFile childModulePomFile;
  if (TalendMavenConstants.CURRENT_PATH.equals(module)) {
    childModulePomFile=this.getProject().getFile(TalendMavenConstants.POM_FILE_NAME);
  }
 else {
    IFolder moduleFolder=this.getProject().getFolder(module);
    childModulePomFile=moduleFolder.getFile(TalendMavenConstants.POM_FILE_NAME);
  }
  if (childModulePomFile.getLocation().toFile().exists()) {
    MavenPomCommandLauncher mavenLauncher=null;
    if (goals == null || goals.trim().length() == 0 || goals.equals(TalendMavenConstants.GOAL_COMPILE)) {
    }
 else {
      mavenLauncher=new MavenPomCommandLauncher(childModulePomFile,goals);
      mavenLauncher.setArgumentsMap(argumentsMap);
      mavenLauncher.execute(monitor);
    }
    buildWholeCodeProject();
    buildWholeCodeProject();
  }
 else {
    throw new RuntimeException("String_Node_Str" + module);
  }
}
Program: 119050
Project: 119050
Buggy source:
@Override public void buildModules(IProgressMonitor monitor,String[] childrenModules,Map<String,Object> argumentsMap) throws Exception {
  String goals=null;
  String programArgs=null;
  if (argumentsMap != null) {
    goals=(String)argumentsMap.get(ARG_GOAL);
    programArgs=(String)argumentsMap.get(ARG_PROGRAM_ARGUMENTS);
  }
  if (childrenModules == null) {
    if (goals != null && goals.trim().length() > 0) {
      mavenBuildCodeProjectPom(goals,TalendMavenConstants.CURRENT_PATH,programArgs,monitor);
    }
 else {
      buildWholeCodeProject();
    }
  }
 else   if (childrenModules.length > 0) {
    for (    String module : childrenModules) {
      IPath modulePath=new Path(module);
      if (modulePath.lastSegment().equals(TalendMavenConstants.POM_FILE_NAME)) {
        modulePath=modulePath.removeLastSegments(1);
      }
      String newModule=modulePath.toString();
      mavenBuildCodeProjectPom(goals,newModule,programArgs,monitor);
    }
  }
 else {
  }
}

Fixed version (ground truth):
@Override public void buildModules(IProgressMonitor monitor,String[] childrenModules,Map<String,Object> argumentsMap) throws Exception {
  String goals=null;
  if (argumentsMap != null) {
    goals=(String)argumentsMap.get(TalendProcessArgumentConstant.ARG_GOAL);
  }
  if (childrenModules == null) {
    if (goals != null && goals.trim().length() > 0) {
      mavenBuildCodeProjectPom(goals,TalendMavenConstants.CURRENT_PATH,argumentsMap,monitor);
    }
 else {
      buildWholeCodeProject();
    }
  }
 else   if (childrenModules.length > 0) {
    for (    String module : childrenModules) {
      IPath modulePath=new Path(module);
      if (modulePath.lastSegment().equals(TalendMavenConstants.POM_FILE_NAME)) {
        modulePath=modulePath.removeLastSegments(1);
      }
      String newModule=modulePath.toString();
      mavenBuildCodeProjectPom(goals,newModule,argumentsMap,monitor);
    }
  }
 else {
  }
}
Program: 119051
Project: 119051
Buggy source:
protected CreateMavenBundleTemplatePom createMavenTemplatePom(){
  boolean isTestContainer=false;
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ITestContainerProviderService.class)) {
    ITestContainerProviderService testContainerService=(ITestContainerProviderService)GlobalServiceRegister.getDefault().getService(ITestContainerProviderService.class);
    if (testContainerService != null) {
      isTestContainer=testContainerService.isTestContainerItem(this.getProperty().getItem());
    }
  }
  CreateMavenBundleTemplatePom createMavenPom=null;
  if (!isTestContainer) {
    CreateMavenJobPom createTemplatePom=new CreateMavenJobPom(this,getPomFile());
    createTemplatePom.setAddStat(false);
    createTemplatePom.setApplyContextToChild(false);
    createTemplatePom.setUnixClasspath(this.unixClasspath);
    createTemplatePom.setWindowsClasspath(this.windowsClasspath);
    createTemplatePom.setAssemblyFile(getAssemblyFile());
    IPath itemLocationPath=ItemResourceUtil.getItemLocationPath(this.getProperty());
    IFolder objectTypeFolder=ItemResourceUtil.getObjectTypeFolder(this.getProperty());
    if (itemLocationPath != null && objectTypeFolder != null) {
      IPath itemRelativePath=itemLocationPath.removeLastSegments(1).makeRelativeTo(objectTypeFolder.getLocation());
      createTemplatePom.setObjectTypeFolder(objectTypeFolder);
      createTemplatePom.setItemRelativePath(itemRelativePath);
    }
    createMavenPom=createTemplatePom;
  }
 else {
    createMavenPom=new CreateMavenTestPom(this,getPomFile());
  }
  return createMavenPom;
}

Fixed version (ground truth):
protected CreateMavenBundleTemplatePom createMavenTemplatePom(){
  boolean isTestContainer=false;
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ITestContainerProviderService.class)) {
    ITestContainerProviderService testContainerService=(ITestContainerProviderService)GlobalServiceRegister.getDefault().getService(ITestContainerProviderService.class);
    if (testContainerService != null) {
      isTestContainer=testContainerService.isTestContainerItem(this.getProperty().getItem());
    }
  }
  CreateMavenBundleTemplatePom createMavenPom=null;
  if (!isTestContainer) {
    CreateMavenJobPom createTemplatePom=new CreateMavenJobPom(this,getPomFile());
    createTemplatePom.setUnixClasspath(this.unixClasspath);
    createTemplatePom.setWindowsClasspath(this.windowsClasspath);
    createTemplatePom.setAssemblyFile(getAssemblyFile());
    IPath itemLocationPath=ItemResourceUtil.getItemLocationPath(this.getProperty());
    IFolder objectTypeFolder=ItemResourceUtil.getObjectTypeFolder(this.getProperty());
    if (itemLocationPath != null && objectTypeFolder != null) {
      IPath itemRelativePath=itemLocationPath.removeLastSegments(1).makeRelativeTo(objectTypeFolder.getLocation());
      createTemplatePom.setObjectTypeFolder(objectTypeFolder);
      createTemplatePom.setItemRelativePath(itemRelativePath);
    }
    createMavenPom=createTemplatePom;
  }
 else {
    createMavenPom=new CreateMavenTestPom(this,getPomFile());
  }
  createMavenPom.setArgumentsMap(getArguments());
  return createMavenPom;
}
Program: 119052
Project: 119052
Buggy source:
@Override public void build(IProgressMonitor monitor) throws Exception {
  final ITalendProcessJavaProject talendJavaProject=getTalendJavaProject();
  final Map<String,Object> argumentsMap=new HashMap<String,Object>();
  argumentsMap.put(ITalendProcessJavaProject.ARG_GOAL,getGoals());
  talendJavaProject.buildModules(monitor,null,argumentsMap);
}

Fixed version (ground truth):
@Override public void build(IProgressMonitor monitor) throws Exception {
  final ITalendProcessJavaProject talendJavaProject=getTalendJavaProject();
  final Map<String,Object> argumentsMap=new HashMap<String,Object>();
  argumentsMap.put(TalendProcessArgumentConstant.ARG_GOAL,getGoals());
  talendJavaProject.buildModules(monitor,null,argumentsMap);
}
Program: 119053
Project: 119053
Buggy source:
@Override protected void buildJob(String destinationPath,ProcessItem processItem,String version,String ctx,Map<ExportChoice,Object> exportChoiceMap,JobExportType jobExportType,IProgressMonitor monitor) throws Exception {
  boolean stats=SparkJavaProcessorUtil.isStatistics();
  BuildJobManager.getInstance().buildJob(destinationPath,processItem,processItem.getProperty().getVersion(),processItem.getProcess().getDefaultContext(),exportChoiceMap,JobExportType.POJO,monitor,stats,false);
}

Fixed version (ground truth):
@Override protected void buildJob(String destinationPath,ProcessItem processItem,String version,String ctx,Map<ExportChoice,Object> exportChoiceMap,JobExportType jobExportType,IProgressMonitor monitor) throws Exception {
  exportChoiceMap.put(ExportChoice.addStatistics,SparkJavaProcessorUtil.isStatistics());
  BuildJobManager.getInstance().buildJob(destinationPath,processItem,processItem.getProperty().getVersion(),processItem.getProcess().getDefaultContext(),exportChoiceMap,JobExportType.POJO,monitor);
}
Program: 119054
Project: 119054
Buggy source:
@Override public void generateJobFiles(IProgressMonitor monitor,boolean stats,boolean trace) throws Exception {
  LastGenerationInfo.getInstance().getUseDynamicMap().clear();
  int generationOption=(isOptionChoosed(ExportChoice.includeTestSource) || isOptionChoosed(ExportChoice.executeTests)) ? ProcessorUtilities.GENERATE_ALL_CHILDS | ProcessorUtilities.GENERATE_TESTS : ProcessorUtilities.GENERATE_ALL_CHILDS;
  ProcessorUtilities.generateCode(processItem,contextName,version,stats,false,isOptionChoosed(ExportChoice.applyToChildren),isOptionChoosed(ExportChoice.needContext),generationOption,monitor);
}

Fixed version (ground truth):
@Override public void generateJobFiles(IProgressMonitor monitor) throws Exception {
  LastGenerationInfo.getInstance().getUseDynamicMap().clear();
  int generationOption=(isOptionChoosed(ExportChoice.includeTestSource) || isOptionChoosed(ExportChoice.executeTests)) ? ProcessorUtilities.GENERATE_ALL_CHILDS | ProcessorUtilities.GENERATE_TESTS : ProcessorUtilities.GENERATE_ALL_CHILDS;
  ProcessorUtilities.generateCode(processItem,contextName,version,isOptionChoosed(ExportChoice.addStatistics),false,isOptionChoosed(ExportChoice.applyToChildren),isOptionChoosed(ExportChoice.needContext),generationOption,monitor);
}
Program: 119055
Project: 119055
Buggy source:
protected void buildDelegate(IProgressMonitor monitor) throws Exception {
  final Map<String,Object> argumentsMap=new HashMap<String,Object>();
  argumentsMap.put(ITalendProcessJavaProject.ARG_GOAL,TalendMavenConstants.GOAL_CLEAN + ' ' + TalendMavenConstants.GOAL_PACKAGE);
  argumentsMap.put(ITalendProcessJavaProject.ARG_PROGRAM_ARGUMENTS,getProgramArgs());
  talendProcessJavaProject.buildModules(monitor,null,argumentsMap);
}

Fixed version (ground truth):
protected void buildDelegate(IProgressMonitor monitor) throws Exception {
  final Map<String,Object> argumentsMap=new HashMap<String,Object>();
  argumentsMap.put(TalendProcessArgumentConstant.ARG_GOAL,TalendMavenConstants.GOAL_CLEAN + ' ' + TalendMavenConstants.GOAL_PACKAGE);
  argumentsMap.put(TalendProcessArgumentConstant.ARG_PROGRAM_ARGUMENTS,getProgramArgs());
  talendProcessJavaProject.buildModules(monitor,null,argumentsMap);
}
Program: 119057
Project: 119057
Buggy source:
@Override public void widgetSelected(SelectionEvent e){
  AbstractActionPage iNextPage=getNextPage();
  if (iNextPage == null) {
    return;
  }
  try {
    gotoNextPage();
  }
 catch (  Throwable e1) {
    CommonExceptionHandler.process(e1);
  }
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent event){
  try {
    LicenseManagement.acceptLicense();
  }
 catch (  BusinessException e) {
    ErrorDialogWidthDetailArea errorDialog=new ErrorDialogWidthDetailArea(getShell(),RegistrationPlugin.PLUGIN_ID,"String_Node_Str",e.getMessage());
    System.exit(0);
  }
  AbstractActionPage iNextPage=getNextPage();
  if (iNextPage == null) {
    return;
  }
  try {
    gotoNextPage();
  }
 catch (  Throwable e1) {
    CommonExceptionHandler.process(e1);
  }
}
Program: 119058
Project: 119058
Buggy source:
@Override public void addListeners(){
  acceptButton.addSelectionListener(new SelectionListener(){
    @Override public void widgetSelected(    SelectionEvent e){
      AbstractActionPage iNextPage=getNextPage();
      if (iNextPage == null) {
        return;
      }
      try {
        gotoNextPage();
      }
 catch (      Throwable e1) {
        CommonExceptionHandler.process(e1);
      }
    }
    @Override public void widgetDefaultSelected(    SelectionEvent e){
    }
  }
);
}

Fixed version (ground truth):
@Override public void addListeners(){
  acceptButton.addSelectionListener(new SelectionListener(){
    @Override public void widgetSelected(    SelectionEvent event){
      try {
        LicenseManagement.acceptLicense();
      }
 catch (      BusinessException e) {
        ErrorDialogWidthDetailArea errorDialog=new ErrorDialogWidthDetailArea(getShell(),RegistrationPlugin.PLUGIN_ID,"String_Node_Str",e.getMessage());
        System.exit(0);
      }
      AbstractActionPage iNextPage=getNextPage();
      if (iNextPage == null) {
        return;
      }
      try {
        gotoNextPage();
      }
 catch (      Throwable e1) {
        CommonExceptionHandler.process(e1);
      }
    }
    @Override public void widgetDefaultSelected(    SelectionEvent e){
    }
  }
);
}
Program: 119059
Project: 119059
Buggy source:
protected void showFirstPage(){
  AbstractLoginActionPage loginPage=null;
  if (LoginHelper.isTalendLogonFirstTimeStartup()) {
    Project[] projects=LoginHelper.getInstance().getProjects(LoginHelper.createDefaultLocalConnection());
    boolean hasProjects=false;
    if (projects != null && 0 < projects.length) {
      hasProjects=true;
    }
    if (!hasProjects) {
      if (PluginChecker.isSVNProviderPluginLoaded()) {
        List<ConnectionBean> storedConnections=LoginHelper.getInstance().getStoredConnections();
        if (storedConnections == null || storedConnections.isEmpty() || (storedConnections.size() == 1 && !LoginHelper.isRemoteConnection(storedConnections.get(0)))) {
          loginPage=new LoginFirstTimeStartupActionPage(base,this,SWT.NONE);
        }
      }
 else {
        loginPage=new LoginAgreementPage(base,this,SWT.NONE);
      }
    }
  }
  if (loginPage == null) {
    loginPage=new LoginProjectPage(base,this,SWT.NONE);
  }
  try {
    loginPage.preShowPage();
  }
 catch (  Throwable e) {
    CommonExceptionHandler.process(e);
  }
  loginPage.showPage();
}

Fixed version (ground truth):
protected void showFirstPage(){
  AbstractLoginActionPage loginPage=null;
  if (LoginHelper.isTalendLogonFirstTimeStartup()) {
    Project[] projects=LoginHelper.getInstance().getProjects(LoginHelper.createDefaultLocalConnection());
    boolean hasProjects=false;
    if (projects != null && 0 < projects.length) {
      hasProjects=true;
    }
    if (!hasProjects) {
      if (PluginChecker.isSVNProviderPluginLoaded()) {
        List<ConnectionBean> storedConnections=LoginHelper.getInstance().getStoredConnections();
        if (storedConnections == null || storedConnections.isEmpty() || (storedConnections.size() == 1 && !LoginHelper.isRemoteConnection(storedConnections.get(0)))) {
          loginPage=new LoginFirstTimeStartupActionPage(base,this,SWT.NONE);
        }
      }
 else {
        if (LicenseManagement.isLicenseValidated()) {
          loginPage=new LoginFirstTimeStartupActionPage(base,this,SWT.NONE);
        }
 else {
          loginPage=new LoginAgreementPage(base,this,SWT.NONE);
        }
      }
    }
  }
  if (loginPage == null) {
    loginPage=new LoginProjectPage(base,this,SWT.NONE);
  }
  try {
    loginPage.preShowPage();
  }
 catch (  Throwable e) {
    CommonExceptionHandler.process(e);
  }
  loginPage.showPage();
}
Program: 119060
Project: 119060
Buggy source:
public void importProjects(){
  ImportProjectAsAction.getInstance().run();
  fillUIProjectListWithBusyCursor();
  String newProject=ImportProjectAsAction.getInstance().getProjectName();
  if (newProject != null) {
    resetProjectOperationSelection();
    selectProject(newProject);
  }
 else   if (ImportProjectAsAction.getInstance().isImportedSeveralProjects()) {
    resetProjectOperationSelection();
  }
  validateProject();
}

Fixed version (ground truth):
public void importProjects(){
  ImportProjectAsAction.getInstance().run();
  fillUIProjectListWithBusyCursor();
  String newProject=ImportProjectAsAction.getInstance().getProjectName();
  if (newProject != null) {
    resetProjectOperationSelectionWithBusyCursor();
    selectProject(newProject);
  }
 else   if (ImportProjectAsAction.getInstance().isImportedSeveralProjects()) {
    resetProjectOperationSelectionWithBusyCursor();
  }
  validateProject();
}
Program: 119061
Project: 119061
Buggy source:
protected void resetProjectOperationSelection(){
  selectExistingProject.setSelection(true);
  importDemoProject.setSelection(false);
  executeImportDemoProject.setVisible(false);
  importLocalProject.setSelection(false);
  executeImportLocalProject.setVisible(false);
  createSandBoxProject.setSelection(false);
  executeCreateSandBoxProject.setVisible(false);
  createNewProject.setSelection(false);
  createNewProject.setText(Messages.getString("String_Node_Str"));
  newProjectName.setVisible(false);
  executeCreateNewProject.setVisible(false);
  changeFinishButtonAction();
  refreshUIFinishButtonEnable();
  finishButton.getShell().setDefaultButton(finishButton);
}

Fixed version (ground truth):
protected void resetProjectOperationSelection(){
  selectExistingProject.setSelection(true);
  refreshProjectListAreaEnable(selectExistingProject.isEnabled());
  importDemoProject.setSelection(false);
  executeImportDemoProject.setVisible(false);
  importLocalProject.setSelection(false);
  executeImportLocalProject.setVisible(false);
  createSandBoxProject.setSelection(false);
  executeCreateSandBoxProject.setVisible(false);
  createNewProject.setSelection(false);
  createNewProject.setText(Messages.getString("String_Node_Str"));
  newProjectName.setVisible(false);
  executeCreateNewProject.setVisible(false);
  changeFinishButtonAction();
  refreshUIFinishButtonEnable();
  finishButton.getShell().setDefaultButton(finishButton);
}
Program: 119062
Project: 119062
Buggy source:
protected void createNewProject(){
  IProxyRepositoryFactory repositoryFactory=ProxyRepositoryFactory.getInstance();
  Context ctx=CorePlugin.getContext();
  RepositoryContext repositoryContext=(RepositoryContext)ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);
  try {
    Project projectInfor=ProjectHelper.createProject(newProjectName.getText().trim().replace(' ','_'),"String_Node_Str",ECodeLanguage.JAVA.getName(),repositoryContext.getUser());
    Project project=repositoryFactory.createProject(projectInfor);
    resetProjectOperationSelection();
    fillUIProjectListWithBusyCursor();
    selectProject(project.getLabel());
    checkErrors();
    newProjectName.setText("String_Node_Str");
  }
 catch (  PersistenceException e) {
    MessageDialog.openError(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
    MessageBoxExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
protected void createNewProject(){
  IProxyRepositoryFactory repositoryFactory=ProxyRepositoryFactory.getInstance();
  Context ctx=CorePlugin.getContext();
  RepositoryContext repositoryContext=(RepositoryContext)ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);
  try {
    Project projectInfor=ProjectHelper.createProject(newProjectName.getText().trim().replace(' ','_'),"String_Node_Str",ECodeLanguage.JAVA.getName(),repositoryContext.getUser());
    Project project=repositoryFactory.createProject(projectInfor);
    resetProjectOperationSelectionWithBusyCursor();
    fillUIProjectListWithBusyCursor();
    selectProject(project.getLabel());
    checkErrors();
    newProjectName.setText("String_Node_Str");
  }
 catch (  PersistenceException e) {
    MessageDialog.openError(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
    MessageBoxExceptionHandler.process(e);
  }
}
Program: 119064
Project: 119064
Buggy source:
public void importDemoProject(){
  ImportDemoProjectAction.getInstance().setShell(getShell());
  ImportDemoProjectAction.getInstance().run();
  fillUIProjectListWithBusyCursor();
  String newProject=ImportDemoProjectAction.getInstance().getProjectName();
  if (newProject != null) {
    resetProjectOperationSelection();
    selectProject(newProject);
  }
  validateProject();
}

Fixed version (ground truth):
public void importDemoProject(){
  ImportDemoProjectAction.getInstance().setShell(getShell());
  ImportDemoProjectAction.getInstance().run();
  fillUIProjectListWithBusyCursor();
  String newProject=ImportDemoProjectAction.getInstance().getProjectName();
  if (newProject != null) {
    resetProjectOperationSelectionWithBusyCursor();
    selectProject(newProject);
  }
  validateProject();
}
Program: 119065
Project: 119065
Buggy source:
@Override public void afterCreateControl(){
  resetProjectOperationSelection();
  alwaysAsk.setSelection(LoginHelper.isAlwaysAskAtStartup());
  previousButton.setVisible(false);
}

Fixed version (ground truth):
@Override public void afterCreateControl(){
  resetProjectOperationSelectionWithBusyCursor();
  alwaysAsk.setSelection(LoginHelper.isAlwaysAskAtStartup());
  previousButton.setVisible(false);
}
Program: 119066
Project: 119066
Buggy source:
protected void restartStudio(){
  isRestart=true;
  ConnectionBean iBean=getConnection();
  loginHelper.saveLastConnectionBean(iBean);
  EclipseCommandLine.updateOrCreateExitDataPropertyWithCommand("String_Node_Str",iBean.getWorkSpace(),false);
  ChooseWorkspaceData workspaceData=new ChooseWorkspaceData("String_Node_Str");
  workspaceData.workspaceSelected(iBean.getWorkSpace());
  workspaceData.writePersistedData();
  finishPressed();
}

Fixed version (ground truth):
protected void restartStudio(){
  isRestart=true;
  ConnectionBean iBean=getConnection();
  loginHelper.saveLastConnectionBean(iBean);
  String workspace=iBean.getWorkSpace();
  if (workspace != null) {
    workspace=workspace.replaceAll("String_Node_Str","String_Node_Str");
  }
  EclipseCommandLine.updateOrCreateExitDataPropertyWithCommand("String_Node_Str",workspace,false);
  ChooseWorkspaceData workspaceData=new ChooseWorkspaceData("String_Node_Str");
  workspaceData.workspaceSelected(iBean.getWorkSpace());
  workspaceData.writePersistedData();
  finishPressed();
}
Program: 119067
Project: 119067
Buggy source:
private void checkWindowStates(){
  Boolean isThereATWindow=false;
  IElementParameter windowDuration=nodeContainer.getNode().getElementParameter(EParameterName.WINDOW_DURATION.getName());
  if (windowDuration == null) {
    removeStatus(Process.WINDOW_STATUS);
    return;
  }
 else {
    removeStatus(Process.WINDOW_STATUS);
    addStatus(Process.WINDOW_STATUS);
  }
}

Fixed version (ground truth):
private void checkWindowStates(){
  Boolean isThereATWindow=false;
  Node node=null;
  if (nodeContainer != null) {
    node=nodeContainer.getNode();
    if (node != null) {
      isThereATWindow=true;
    }
  }
  if (!isThereATWindow) {
    return;
  }
  IElementParameter windowDuration=node.getElementParameter(EParameterName.WINDOW_DURATION.getName());
  if (windowDuration == null) {
    removeStatus(Process.WINDOW_STATUS);
    return;
  }
 else {
    removeStatus(Process.WINDOW_STATUS);
    addStatus(Process.WINDOW_STATUS);
  }
}
Program: 119068
Project: 119068
Buggy source:
@Override protected String getExportJarsStr(){
  if (isOldBuildJob()) {
    return super.getExportJarsStr();
  }
  final String libPrefixPath=getLibPrefixPath(true);
  final String classPathSeparator=extractClassPathSeparator();
  String jarName=JavaResourcesHelper.getJobJarName(process.getName(),process.getVersion());
  if (PomIdsHelper.FLAG_VERSION_WITH_CLASSIFIER) {
    jarName=JavaResourcesHelper.escapeFileName(process.getName());
  }
  String exportJar=libPrefixPath + jarName + FileExtensions.JAR_FILE_SUFFIX;
  Set<JobInfo> infos=getBuildChildrenJobs();
  for (  JobInfo jobInfo : infos) {
    String childJarName=JavaResourcesHelper.getJobJarName(jobInfo.getJobName(),jobInfo.getJobVersion());
    if (PomIdsHelper.FLAG_VERSION_WITH_CLASSIFIER) {
      childJarName=JavaResourcesHelper.escapeFileName(jobInfo.getJobName());
    }
    exportJar+=classPathSeparator + libPrefixPath + childJarName+ FileExtensions.JAR_FILE_SUFFIX;
  }
  return exportJar;
}

Fixed version (ground truth):
@Override protected String getExportJarsStr(){
  if (isOldBuildJob()) {
    return super.getExportJarsStr();
  }
  final String libPrefixPath=getLibPrefixPath(true);
  final String classPathSeparator=extractClassPathSeparator();
  String jarName=JavaResourcesHelper.getJobJarName(process.getName(),process.getVersion());
  if (PomIdsHelper.FLAG_VERSION_WITH_CLASSIFIER) {
    jarName=JavaResourcesHelper.escapeFileName(process.getName());
  }
  String exportJar=libPrefixPath + jarName + FileExtensions.JAR_FILE_SUFFIX;
  Set<JobInfo> infos=getBuildChildrenJobs();
  for (  JobInfo jobInfo : infos) {
    if (jobInfo.isTestContainer()) {
      continue;
    }
    String childJarName=JavaResourcesHelper.getJobJarName(jobInfo.getJobName(),jobInfo.getJobVersion());
    if (PomIdsHelper.FLAG_VERSION_WITH_CLASSIFIER) {
      childJarName=JavaResourcesHelper.escapeFileName(jobInfo.getJobName());
    }
    exportJar+=classPathSeparator + libPrefixPath + childJarName+ FileExtensions.JAR_FILE_SUFFIX;
  }
  return exportJar;
}
Program: 119070
Project: 119070
Buggy source:
public ConnectionsDialog(Shell parentShell){
  super(parentShell);
  setShellStyle(getShellStyle() | SWT.RESIZE);
  setTitleImage();
}

Fixed version (ground truth):
public ConnectionsDialog(Shell parentShell){
  super(parentShell);
  setShellStyle(getShellStyle() | SWT.RESIZE);
  setTitleImage();
  setTitleAreaColor(new RGB(255,255,255));
}
Program: 119074
Project: 119074
Buggy source:
protected StringBuffer getProfileArgs(){
  StringBuffer profileBuffer=new StringBuffer();
  profileBuffer.append(TalendMavenConstants.PREFIX_PROFILE);
  profileBuffer.append(SPACE);
  addArg(profileBuffer,true,isOptionChoosed(ExportChoice.binaries),TalendMavenConstants.PROFILE_INCLUDE_BINARIES);
  addArg(profileBuffer,false,isOptionChoosed(ExportChoice.needJobItem),TalendMavenConstants.PROFILE_INCLUDE_ITEMS);
  addArg(profileBuffer,false,isOptionChoosed(ExportChoice.needSourceCode),TalendMavenConstants.PROFILE_INCLUDE_JAVA_SOURCES);
  addArg(profileBuffer,false,isOptionChoosed(ExportChoice.includeTestSource),TalendMavenConstants.PROFILE_INCLUDE_TEST_SOURCES);
  addArg(profileBuffer,false,isOptionChoosed(ExportChoice.includeLibs),TalendMavenConstants.PROFILE_INCLUDE_LIBS);
  addArg(profileBuffer,false,isOptionChoosed(ExportChoice.needContext),TalendMavenConstants.PROFILE_INCLUDE_CONTEXTS);
  return profileBuffer;
}

Fixed version (ground truth):
protected StringBuffer getProfileArgs(){
  StringBuffer profileBuffer=new StringBuffer();
  profileBuffer.append(TalendMavenConstants.PREFIX_PROFILE);
  profileBuffer.append(SPACE);
  addArg(profileBuffer,true,isOptionChoosed(ExportChoice.binaries),TalendMavenConstants.PROFILE_INCLUDE_BINARIES);
  addArg(profileBuffer,false,isOptionChoosed(ExportChoice.binaries) && isOptionChoosed(ExportChoice.needContext),TalendMavenConstants.PROFILE_INCLUDE_CONTEXTS);
  addArg(profileBuffer,false,!isOptionChoosed(ExportChoice.binaries),TalendMavenConstants.PROFILE_INCLUDE_MAVEN_RESOURCES);
  addArg(profileBuffer,false,isOptionChoosed(ExportChoice.needJobItem),TalendMavenConstants.PROFILE_INCLUDE_ITEMS);
  addArg(profileBuffer,false,isOptionChoosed(ExportChoice.needSourceCode),TalendMavenConstants.PROFILE_INCLUDE_JAVA_SOURCES);
  addArg(profileBuffer,false,isOptionChoosed(ExportChoice.includeTestSource),TalendMavenConstants.PROFILE_INCLUDE_TEST_SOURCES);
  addArg(profileBuffer,false,isOptionChoosed(ExportChoice.includeLibs),TalendMavenConstants.PROFILE_INCLUDE_LIBS);
  return profileBuffer;
}
Program: 119075
Project: 119075
Buggy source:
@Override public void buildJavaProject(){
  ITalendProcessJavaProject talendProcessJavaProject=getTalendProcessJavaProject();
  if (talendProcessJavaProject != null) {
    talendProcessJavaProject.buildModules(null,null);
  }
}

Fixed version (ground truth):
@Override public void buildJavaProject(){
  ITalendProcessJavaProject talendProcessJavaProject=getTalendProcessJavaProject();
  if (talendProcessJavaProject != null) {
    try {
      talendProcessJavaProject.buildModules(null,null,new NullProgressMonitor());
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
}
Program: 119076
Project: 119076
Buggy source:
@Override public void build(){
  getTalendJavaProject().buildModules(null,null);
}

Fixed version (ground truth):
@Override public void build(IProgressMonitor monitor) throws Exception {
  getTalendJavaProject().buildModules(null,null,monitor);
}
Program: 119077
Project: 119077
Buggy source:
private void mavenBuildCodeProjectPom(String goals,String module,String programArgs){
  IFile childModulePomFile;
  if (TalendMavenConstants.CURRENT_PATH.equals(module)) {
    childModulePomFile=this.getProject().getFile(TalendMavenConstants.POM_FILE_NAME);
  }
 else {
    IFolder moduleFolder=this.getProject().getFolder(module);
    childModulePomFile=moduleFolder.getFile(TalendMavenConstants.POM_FILE_NAME);
  }
  if (childModulePomFile.getLocation().toFile().exists()) {
    MavenPomCommandLauncher mavenLauncher=null;
    if (goals == null || goals.trim().length() == 0 || goals.equals(TalendMavenConstants.GOAL_COMPILE)) {
    }
 else {
      mavenLauncher=new MavenPomCommandLauncher(childModulePomFile,goals);
      mavenLauncher.setProgramArguments(programArgs);
      mavenLauncher.execute();
    }
    buildWholeCodeProject();
    buildWholeCodeProject();
  }
 else {
    throw new RuntimeException("String_Node_Str" + module);
  }
}

Fixed version (ground truth):
private void mavenBuildCodeProjectPom(String goals,String module,String programArgs,IProgressMonitor monitor) throws Exception {
  IFile childModulePomFile;
  if (TalendMavenConstants.CURRENT_PATH.equals(module)) {
    childModulePomFile=this.getProject().getFile(TalendMavenConstants.POM_FILE_NAME);
  }
 else {
    IFolder moduleFolder=this.getProject().getFolder(module);
    childModulePomFile=moduleFolder.getFile(TalendMavenConstants.POM_FILE_NAME);
  }
  if (childModulePomFile.getLocation().toFile().exists()) {
    MavenPomCommandLauncher mavenLauncher=null;
    if (goals == null || goals.trim().length() == 0 || goals.equals(TalendMavenConstants.GOAL_COMPILE)) {
    }
 else {
      mavenLauncher=new MavenPomCommandLauncher(childModulePomFile,goals);
      mavenLauncher.setProgramArguments(programArgs);
      mavenLauncher.execute(monitor);
    }
    buildWholeCodeProject();
    buildWholeCodeProject();
  }
 else {
    throw new RuntimeException("String_Node_Str" + module);
  }
}
Program: 119078
Project: 119078
Buggy source:
@Override public void buildModules(String goals,String[] childrenModules,String programArgs){
  if (childrenModules == null) {
    if (goals != null && goals.trim().length() > 0) {
      mavenBuildCodeProjectPom(goals,TalendMavenConstants.CURRENT_PATH,programArgs);
    }
 else {
      buildWholeCodeProject();
    }
  }
 else   if (childrenModules.length > 0) {
    for (    String module : childrenModules) {
      IPath modulePath=new Path(module);
      if (modulePath.lastSegment().equals(TalendMavenConstants.POM_FILE_NAME)) {
        modulePath=modulePath.removeLastSegments(1);
      }
      String newModule=modulePath.toString();
      mavenBuildCodeProjectPom(goals,newModule,programArgs);
    }
  }
 else {
  }
}

Fixed version (ground truth):
@Override public void buildModules(String goals,String[] childrenModules,String programArgs,IProgressMonitor monitor) throws Exception {
  if (childrenModules == null) {
    if (goals != null && goals.trim().length() > 0) {
      mavenBuildCodeProjectPom(goals,TalendMavenConstants.CURRENT_PATH,programArgs,monitor);
    }
 else {
      buildWholeCodeProject();
    }
  }
 else   if (childrenModules.length > 0) {
    for (    String module : childrenModules) {
      IPath modulePath=new Path(module);
      if (modulePath.lastSegment().equals(TalendMavenConstants.POM_FILE_NAME)) {
        modulePath=modulePath.removeLastSegments(1);
      }
      String newModule=modulePath.toString();
      mavenBuildCodeProjectPom(goals,newModule,programArgs,monitor);
    }
  }
 else {
  }
}
Program: 119079
Project: 119079
Buggy source:
@Override public void updateRoutinesPom(final boolean withBuild,boolean inBackgroud){
  if (true) {
    return;
  }
  if (inBackgroud) {
    Job job=new Job("String_Node_Str"){
      @Override public IStatus run(      IProgressMonitor monitor){
        return processRoutinesPom(withBuild);
      }
    }
;
    job.schedule();
  }
 else {
    processRoutinesPom(withBuild);
  }
}

Fixed version (ground truth):
@Override public void updateRoutinesPom(final boolean withBuild,boolean inBackgroud){
  return;
}
Program: 119080
Project: 119080
Buggy source:
private IStatus processRoutinesPom(boolean withBuild){
  if (true) {
    return Status.OK_STATUS;
  }
  try {
    this.synchronizer.syncRoutinesPom(true);
    if (withBuild) {
      List<String> modules=new ArrayList<String>();
      Set<ModuleNeeded> runningModules=ModulesNeededProvider.getRunningModules();
      for (      ModuleNeeded m : runningModules) {
        modules.add(m.getModuleName());
      }
      File libDir=JavaProcessorUtilities.getJavaProjectLibFolder();
      ILibraryManagerService repositoryBundleService=CorePlugin.getDefault().getRepositoryBundleService();
      repositoryBundleService.retrieve(modules,libDir.getAbsolutePath());
      IFolder routinesSrcFolder=getSrcFolder().getFolder(JavaUtils.JAVA_ROUTINES_DIRECTORY);
      if (routinesSrcFolder.getLocation().toFile().exists()) {
        String routineModule=routinesSrcFolder.getProjectRelativePath().toString();
        buildModules(TalendMavenConstants.GOAL_INSTALL,new String[]{routineModule});
      }
    }
    return Status.OK_STATUS;
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
    return new Status(Status.ERROR,FrameworkUtil.getBundle(getClass()).getSymbolicName(),Status.ERROR,e.getMessage(),e);
  }
}

Fixed version (ground truth):
private IStatus processRoutinesPom(boolean withBuild){
  return Status.OK_STATUS;
}
Program: 119081
Project: 119081
Buggy source:
@Override public void build(){
  final ITalendProcessJavaProject talendJavaProject=getTalendJavaProject();
  talendJavaProject.buildModules(getGoals(),null);
}

Fixed version (ground truth):
@Override public void build(IProgressMonitor monitor) throws Exception {
  final ITalendProcessJavaProject talendJavaProject=getTalendJavaProject();
  talendJavaProject.buildModules(getGoals(),null,monitor);
}
Program: 119082
Project: 119082
Buggy source:
@Override public void generateJobFiles(IProgressMonitor monitor) throws Exception {
  if (!isOptionChoosed(ExportChoice.needSourceCode)) {
    return;
  }
  LastGenerationInfo.getInstance().getUseDynamicMap().clear();
  int generationOption=(isOptionChoosed(ExportChoice.includeTestSource) || isOptionChoosed(ExportChoice.executeTests)) ? ProcessorUtilities.GENERATE_ALL_CHILDS | ProcessorUtilities.GENERATE_TESTS : ProcessorUtilities.GENERATE_ALL_CHILDS;
  ProcessorUtilities.generateCode(processItem,contextName,version,false,false,isOptionChoosed(ExportChoice.applyToChildren),isOptionChoosed(ExportChoice.needContext),generationOption,monitor);
}

Fixed version (ground truth):
@Override public void generateJobFiles(IProgressMonitor monitor) throws Exception {
  LastGenerationInfo.getInstance().getUseDynamicMap().clear();
  int generationOption=(isOptionChoosed(ExportChoice.includeTestSource) || isOptionChoosed(ExportChoice.executeTests)) ? ProcessorUtilities.GENERATE_ALL_CHILDS | ProcessorUtilities.GENERATE_TESTS : ProcessorUtilities.GENERATE_ALL_CHILDS;
  ProcessorUtilities.generateCode(processItem,contextName,version,false,false,isOptionChoosed(ExportChoice.applyToChildren),isOptionChoosed(ExportChoice.needContext),generationOption,monitor);
}
Program: 119083
Project: 119083
Buggy source:
@Override public void build(String destinationPath) throws Exception {
  talendProcessJavaProject.buildModules(TalendMavenConstants.GOAL_CLEAN + "String_Node_Str" + TalendMavenConstants.GOAL_PACKAGE,null,getProgramArgs());
  IFile jobTargetFile=getJobTargetFile();
  if (jobTargetFile.exists()) {
    File jobFileSource=new File(jobTargetFile.getLocation().toFile().getAbsolutePath());
    File jobFileTarget=new File(destinationPath);
    FilesUtils.copyFile(jobFileSource,jobFileTarget);
  }
}

Fixed version (ground truth):
@Override public void build(String destinationPath,IProgressMonitor monitor) throws Exception {
  talendProcessJavaProject.buildModules(TalendMavenConstants.GOAL_CLEAN + "String_Node_Str" + TalendMavenConstants.GOAL_PACKAGE,null,getProgramArgs(),monitor);
  IFile jobTargetFile=getJobTargetFile();
  if (jobTargetFile.exists()) {
    File jobFileSource=new File(jobTargetFile.getLocation().toFile().getAbsolutePath());
    File jobFileTarget=new File(destinationPath);
    FilesUtils.copyFile(jobFileSource,jobFileTarget);
  }
}
Program: 119084
Project: 119084
Buggy source:
public void buildJob(String destinationPath,ProcessItem processItem,String version,String context,Map<ExportChoice,Object> exportChoiceMap,JobExportType jobExportType) throws Exception {
  IBuildJobHandler buildJobHandler=BuildJobFactory.createBuildJobHandler(processItem,context,version,exportChoiceMap,jobExportType);
  buildJobHandler.generateItemFiles(true,new NullProgressMonitor());
  buildJobHandler.generateJobFiles(new NullProgressMonitor());
  buildJobHandler.build(destinationPath);
}

Fixed version (ground truth):
public void buildJob(String destinationPath,ProcessItem processItem,String version,String context,Map<ExportChoice,Object> exportChoiceMap,JobExportType jobExportType) throws Exception {
  IBuildJobHandler buildJobHandler=BuildJobFactory.createBuildJobHandler(processItem,context,version,exportChoiceMap,jobExportType);
  buildJobHandler.generateItemFiles(true,new NullProgressMonitor());
  buildJobHandler.generateJobFiles(new NullProgressMonitor());
  buildJobHandler.build(destinationPath,new NullProgressMonitor());
}
Program: 119087
Project: 119087
Buggy source:
@Override public void build(String destinationPath,IProgressMonitor monitor) throws Exception {
  talendProcessJavaProject.buildModules(TalendMavenConstants.GOAL_CLEAN + "String_Node_Str" + TalendMavenConstants.GOAL_PACKAGE,null,getProgramArgs(),monitor);
  IFile jobTargetFile=getJobTargetFile();
  if (jobTargetFile.exists()) {
    File jobFileSource=new File(jobTargetFile.getLocation().toFile().getAbsolutePath());
    File jobFileTarget=new File(destinationPath);
    FilesUtils.copyFile(jobFileSource,jobFileTarget);
  }
}

Fixed version (ground truth):
@Override public void build(String destinationPath,IProgressMonitor monitor) throws Exception {
  talendProcessJavaProject.buildModules(TalendMavenConstants.GOAL_CLEAN + "String_Node_Str" + TalendMavenConstants.GOAL_PACKAGE,null,getProgramArgs(),monitor);
  IFile jobTargetFile=getJobTargetFile();
  if (jobTargetFile.exists()) {
    File jobFileSource=new File(jobTargetFile.getLocation().toFile().getAbsolutePath());
    File jobFileTarget=new File(destinationPath);
    if (jobFileTarget.isDirectory()) {
      jobFileTarget=new File(destinationPath,jobFileSource.getName());
    }
    FilesUtils.copyFile(jobFileSource,jobFileTarget);
  }
}
Program: 119088
Project: 119088
Buggy source:
protected StringBuffer getOtherArgs(){
  StringBuffer otherArgsBuffer=new StringBuffer();
  if (!isOptionChoosed(ExportChoice.executeTests)) {
    otherArgsBuffer.append(TalendMavenConstants.ARG_SKIPTESTS);
  }
  return otherArgsBuffer;
}

Fixed version (ground truth):
protected StringBuffer getOtherArgs(){
  StringBuffer otherArgsBuffer=new StringBuffer();
  if (!isOptionChoosed(ExportChoice.executeTests)) {
    otherArgsBuffer.append(TalendMavenConstants.ARG_SKIPTESTS);
  }
 else {
    otherArgsBuffer.append("String_Node_Str");
  }
  return otherArgsBuffer;
}