nus-yam/ex-repair huggingface dataset:
Program: 91637
Project: 91637
Buggy source:
public void execute(IAction action) throws InvocationTargetException {
  final IResource resource=getSelectedResources()[0];
  final RepositoryMapping mapping=RepositoryMapping.getMapping(resource.getProject());
  final Repository repository=mapping.getRepository();
  final String gitPath=mapping.getRepoRelativePath(resource);
  final IFile baseFile=(IFile)resource;
  final ITypedElement base=SaveableCompareEditorInput.createFileElement(baseFile);
  ITypedElement next;
  try {
    Ref head=repository.getRef(Constants.HEAD);
    RevWalk rw=new RevWalk(repository);
    RevCommit commit=rw.parseCommit(head.getObjectId());
    next=new GitCompareFileRevisionEditorInput.EmptyTypedElement(NLS.bind(UIText.GitHistoryPage_FileNotInCommit,resource.getName(),commit));
    TreeWalk w=TreeWalk.forPath(repository,gitPath,commit.getTree());
    if (w != null) {
      final IFileRevision nextFile=GitFileRevision.inCommit(repository,commit,gitPath,null);
      next=new FileRevisionTypedElement(nextFile);
    }
  }
 catch (  IOException e) {
    throw new InvocationTargetException(e);
  }
  final GitCompareFileRevisionEditorInput in=new GitCompareFileRevisionEditorInput(base,next,null);
  CompareUI.openCompareEditor(in);
}

Fixed version (ground truth):
public void execute(IAction action) throws InvocationTargetException {
  final IResource resource=getSelectedResources()[0];
  final RepositoryMapping mapping=RepositoryMapping.getMapping(resource.getProject());
  final Repository repository=mapping.getRepository();
  final String gitPath=mapping.getRepoRelativePath(resource);
  final IFile baseFile=(IFile)resource;
  final ITypedElement base=SaveableCompareEditorInput.createFileElement(baseFile);
  ITypedElement next;
  try {
    Ref head=repository.getRef(Constants.HEAD);
    RevWalk rw=new RevWalk(repository);
    RevCommit commit=rw.parseCommit(head.getObjectId());
    next=CompareUtils.getFileRevisionTypedElement(gitPath,commit,repository);
  }
 catch (  IOException e) {
    throw new InvocationTargetException(e);
  }
  final GitCompareFileRevisionEditorInput in=new GitCompareFileRevisionEditorInput(base,next,null);
  CompareUI.openCompareEditor(in);
}
Program: 91638
Project: 91638
Buggy source:
private void discardChange(IResource res) throws IOException {
  IProject[] proj=new IProject[]{res.getProject()};
  Repository repository=getRepositoriesFor(proj)[0];
  String resRelPath=RepositoryMapping.getMapping(res).getRepoRelativePath(res);
  Entry e=repository.getIndex().getEntry(resRelPath);
  if (e != null && e.getStage() == 0 && e.isModified(repository.getWorkDir())) {
    repository.getIndex().checkoutEntry(repository.getWorkDir(),e);
    try {
      res.refreshLocal(0,new NullProgressMonitor());
    }
 catch (    CoreException e1) {
      MessageDialog.openError(getShell(),UIText.DiscardChangesAction_refreshErrorTitle,UIText.DiscardChangesAction_refreshErrorMessage);
    }
    repository.getIndex().write();
  }
}

Fixed version (ground truth):
private void discardChange(IResource res) throws IOException {
  IProject[] proj=new IProject[]{res.getProject()};
  Repository repository=getRepositoriesFor(proj)[0];
  String resRelPath=RepositoryMapping.getMapping(res).getRepoRelativePath(res);
  Entry e=repository.getIndex().getEntry(resRelPath);
  if (e != null && e.getStage() == 0 && e.isModified(repository.getWorkDir())) {
    repository.getIndex().checkoutEntry(repository.getWorkDir(),e);
    try {
      res.refreshLocal(0,new NullProgressMonitor());
    }
 catch (    CoreException e1) {
      Activator.handleError(UIText.DiscardChangesAction_refreshErrorMessage,e1,true);
    }
    repository.getIndex().write();
  }
}
Program: 91639
Project: 91639
Buggy source:
private void performDiscardChanges(){
  ArrayList<IResource> allFiles=new ArrayList<IResource>();
  for (  IResource res : getSelectedResources()) {
    allFiles.addAll(getAllMembers(res));
  }
  for (  IResource res : allFiles) {
    try {
      discardChange(res);
    }
 catch (    IOException e1) {
      MessageDialog.openError(getShell(),UIText.DiscardChangesAction_unexpectedErrorTitle,UIText.DiscardChangesAction_unexpectedErrorMessage);
    }
catch (    RuntimeException e2) {
      MessageDialog.openError(getShell(),UIText.DiscardChangesAction_unexpectedErrorTitle,UIText.DiscardChangesAction_unexpectedIndexErrorMessage);
    }
  }
}

Fixed version (ground truth):
private void performDiscardChanges(){
  ArrayList<IResource> allFiles=new ArrayList<IResource>();
  for (  IResource res : getSelectedResources()) {
    allFiles.addAll(getAllMembers(res));
  }
  for (  IResource res : allFiles) {
    try {
      discardChange(res);
    }
 catch (    IOException e1) {
      Activator.handleError(UIText.DiscardChangesAction_unexpectedErrorMessage,e1,true);
    }
catch (    RuntimeException e2) {
      Activator.handleError(UIText.DiscardChangesAction_unexpectedIndexErrorMessage,e2,true);
    }
  }
}
Program: 91640
Project: 91640
Buggy source:
@Override public void execute(IAction action){
  final Repository repository=getRepository(true);
  if (repository == null)   return;
  if (!repository.getRepositoryState().canResetHead()) {
    MessageDialog.openError(getShell(),UIText.ResetAction_errorResettingHead,NLS.bind(UIText.ResetAction_repositoryState,repository.getRepositoryState().getDescription()));
    return;
  }
  BranchSelectionDialog branchSelectionDialog=new BranchSelectionDialog(getShell(),repository,true);
  if (branchSelectionDialog.open() == IDialogConstants.OK_ID) {
    final String refName=branchSelectionDialog.getRefName();
    final ResetType type=branchSelectionDialog.getResetType();
    try {
      getTargetPart().getSite().getWorkbenchWindow().run(true,false,new IRunnableWithProgress(){
        public void run(        final IProgressMonitor monitor) throws InvocationTargetException {
          try {
            new ResetOperation(repository,refName,type).run(monitor);
            GitLightweightDecorator.refresh();
          }
 catch (          CoreException e) {
            if (GitTraceLocation.UI.isActive())             GitTraceLocation.getTrace().trace(GitTraceLocation.UI.getLocation(),e.getMessage(),e);
            throw new InvocationTargetException(e);
          }
        }
      }
);
    }
 catch (    InvocationTargetException e) {
      MessageDialog.openError(getShell(),UIText.ResetAction_resetFailed,e.getMessage());
    }
catch (    InterruptedException e) {
      MessageDialog.openError(getShell(),UIText.ResetAction_resetFailed,e.getMessage());
    }
  }
}

Fixed version (ground truth):
@Override public void execute(IAction action){
  final Repository repository=getRepository(true);
  if (repository == null)   return;
  if (!repository.getRepositoryState().canResetHead()) {
    MessageDialog.openError(getShell(),UIText.ResetAction_errorResettingHead,NLS.bind(UIText.ResetAction_repositoryState,repository.getRepositoryState().getDescription()));
    return;
  }
  BranchSelectionDialog branchSelectionDialog=new BranchSelectionDialog(getShell(),repository,true);
  if (branchSelectionDialog.open() == IDialogConstants.OK_ID) {
    final String refName=branchSelectionDialog.getRefName();
    final ResetType type=branchSelectionDialog.getResetType();
    try {
      getTargetPart().getSite().getWorkbenchWindow().run(true,false,new IRunnableWithProgress(){
        public void run(        final IProgressMonitor monitor) throws InvocationTargetException {
          try {
            new ResetOperation(repository,refName,type).run(monitor);
            GitLightweightDecorator.refresh();
          }
 catch (          CoreException e) {
            if (GitTraceLocation.UI.isActive())             GitTraceLocation.getTrace().trace(GitTraceLocation.UI.getLocation(),e.getMessage(),e);
            throw new InvocationTargetException(e);
          }
        }
      }
);
    }
 catch (    InvocationTargetException e) {
      Activator.handleError(UIText.ResetAction_resetFailed,e,true);
    }
catch (    InterruptedException e) {
      Activator.handleError(UIText.ResetAction_resetFailed,e,true);
    }
  }
}
Program: 91641
Project: 91641
Buggy source:
@Override public void execute(IAction action){
  try {
    final TrackOperation op=new TrackOperation(Arrays.asList(getSelectedResources()));
    getTargetPart().getSite().getWorkbenchWindow().run(true,false,new IRunnableWithProgress(){
      public void run(      IProgressMonitor arg0) throws InvocationTargetException, InterruptedException {
        try {
          op.run(arg0);
        }
 catch (        CoreException e) {
          throw new InvocationTargetException(e);
        }
      }
    }
);
  }
 catch (  InvocationTargetException e) {
    Activator.logError(UIText.Track_error,e);
    MessageDialog.openError(getShell(),UIText.Track_error,UIText.Track_see_log);
  }
catch (  InterruptedException e) {
    MessageDialog.openError(getShell(),UIText.Track_error,e.getMessage());
  }
}

Fixed version (ground truth):
@Override public void execute(IAction action){
  try {
    final TrackOperation op=new TrackOperation(Arrays.asList(getSelectedResources()));
    getTargetPart().getSite().getWorkbenchWindow().run(true,false,new IRunnableWithProgress(){
      public void run(      IProgressMonitor arg0) throws InvocationTargetException, InterruptedException {
        try {
          op.run(arg0);
        }
 catch (        CoreException e) {
          throw new InvocationTargetException(e);
        }
      }
    }
);
  }
 catch (  InvocationTargetException e) {
    Activator.handleError(UIText.Track_error,e,true);
  }
catch (  InterruptedException e) {
    Activator.handleError(UIText.Track_error,e,true);
  }
}
Program: 91642
Project: 91642
Buggy source:
@Override public void setFocus(){
}

Fixed version (ground truth):
@Override public void setFocus(){
  tv.getTree().setFocus();
}
Program: 91643
Project: 91643
Buggy source:
/** 
 * Create the selection buttons in the listComposite.
 * @param listComposite
 */
private void createSelectionButtons(Composite listComposite){
  Composite buttonsComposite=new Composite(listComposite,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.marginWidth=0;
  layout.marginHeight=0;
  buttonsComposite.setLayout(layout);
  buttonsComposite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
  Button selectAll=new Button(buttonsComposite,SWT.PUSH);
  selectAll.setText(UIText.WizardProjectsImportPage_selectAll);
  selectAll.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      checkedItems.clear();
      for (      final TreeItem item : projectsList.getTree().getItems()) {
        item.setChecked(true);
        checkedItems.add(item.getData());
      }
      setPageComplete(true);
    }
  }
);
  Dialog.applyDialogFont(selectAll);
  setButtonLayoutData(selectAll);
  Button deselectAll=new Button(buttonsComposite,SWT.PUSH);
  deselectAll.setText(UIText.WizardProjectsImportPage_deselectAll);
  deselectAll.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      checkedItems.clear();
      for (      final TreeItem item : projectsList.getTree().getItems()) {
        item.setChecked(false);
      }
      projectsList.setInput(this);
      setPageComplete(false);
    }
  }
);
  Dialog.applyDialogFont(deselectAll);
  setButtonLayoutData(deselectAll);
}

Fixed version (ground truth):
/** 
 * Create the selection buttons in the listComposite.
 * @param listComposite
 */
private void createSelectionButtons(Composite listComposite){
  Composite buttonsComposite=new Composite(listComposite,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.marginWidth=0;
  layout.marginHeight=0;
  buttonsComposite.setLayout(layout);
  buttonsComposite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
  selectAll=new Button(buttonsComposite,SWT.PUSH);
  selectAll.setText(UIText.WizardProjectsImportPage_selectAll);
  selectAll.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      checkedItems.clear();
      for (      final TreeItem item : projectsList.getTree().getItems()) {
        item.setChecked(true);
        checkedItems.add(item.getData());
      }
      setPageComplete(true);
    }
  }
);
  Dialog.applyDialogFont(selectAll);
  setButtonLayoutData(selectAll);
  deselectAll=new Button(buttonsComposite,SWT.PUSH);
  deselectAll.setText(UIText.WizardProjectsImportPage_deselectAll);
  deselectAll.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      checkedItems.clear();
      for (      final TreeItem item : projectsList.getTree().getItems()) {
        item.setChecked(false);
      }
      projectsList.setInput(this);
      setPageComplete(false);
    }
  }
);
  Dialog.applyDialogFont(deselectAll);
  setButtonLayoutData(deselectAll);
}
Program: 91646
Project: 91646
Buggy source:
@Override public void setFocus(){
}

Fixed version (ground truth):
@Override public void setFocus(){
  tv.getTree().setFocus();
}
Program: 91647
Project: 91647
Buggy source:
/** 
 * Create the selection buttons in the listComposite.
 * @param listComposite
 */
private void createSelectionButtons(Composite listComposite){
  Composite buttonsComposite=new Composite(listComposite,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.marginWidth=0;
  layout.marginHeight=0;
  buttonsComposite.setLayout(layout);
  buttonsComposite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
  Button selectAll=new Button(buttonsComposite,SWT.PUSH);
  selectAll.setText(UIText.WizardProjectsImportPage_selectAll);
  selectAll.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      checkedItems.clear();
      for (      final TreeItem item : projectsList.getTree().getItems()) {
        item.setChecked(true);
        checkedItems.add(item.getData());
      }
      setPageComplete(true);
    }
  }
);
  Dialog.applyDialogFont(selectAll);
  setButtonLayoutData(selectAll);
  Button deselectAll=new Button(buttonsComposite,SWT.PUSH);
  deselectAll.setText(UIText.WizardProjectsImportPage_deselectAll);
  deselectAll.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      checkedItems.clear();
      for (      final TreeItem item : projectsList.getTree().getItems()) {
        item.setChecked(false);
      }
      projectsList.setInput(this);
      setPageComplete(false);
    }
  }
);
  Dialog.applyDialogFont(deselectAll);
  setButtonLayoutData(deselectAll);
}

Fixed version (ground truth):
/** 
 * Create the selection buttons in the listComposite.
 * @param listComposite
 */
private void createSelectionButtons(Composite listComposite){
  Composite buttonsComposite=new Composite(listComposite,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.marginWidth=0;
  layout.marginHeight=0;
  buttonsComposite.setLayout(layout);
  buttonsComposite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
  selectAll=new Button(buttonsComposite,SWT.PUSH);
  selectAll.setText(UIText.WizardProjectsImportPage_selectAll);
  selectAll.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      checkedItems.clear();
      for (      final TreeItem item : projectsList.getTree().getItems()) {
        item.setChecked(true);
        checkedItems.add(item.getData());
      }
      setPageComplete(true);
    }
  }
);
  Dialog.applyDialogFont(selectAll);
  setButtonLayoutData(selectAll);
  deselectAll=new Button(buttonsComposite,SWT.PUSH);
  deselectAll.setText(UIText.WizardProjectsImportPage_deselectAll);
  deselectAll.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      checkedItems.clear();
      for (      final TreeItem item : projectsList.getTree().getItems()) {
        item.setChecked(false);
      }
      projectsList.setInput(this);
      setPageComplete(false);
    }
  }
);
  Dialog.applyDialogFont(deselectAll);
  setButtonLayoutData(deselectAll);
}
Program: 91650
Project: 91650
Buggy source:
public void run(){
  handle(e,UIText.BranchAction_errorSwitchingBranches,UIText.BranchAction_unableToSwitchBranches);
}

Fixed version (ground truth):
public void run(){
  handle(new TeamException(e.getStatus()),UIText.BranchAction_errorSwitchingBranches,UIText.BranchAction_unableToSwitchBranches);
}
Program: 91653
Project: 91653
Buggy source:
public void contentChanged(IContentChangeNotifier source){
  final byte[] newContent=next.getModifiedContent();
  try {
    final GitIndex index=repository.getIndex();
    final File file=new File(baseFile.getLocation().toString());
    index.add(mapping.getWorkDir(),file,newContent);
    index.write();
  }
 catch (  IOException e) {
    Utils.handleError(getTargetPart().getSite().getShell(),e,UIText.CompareWithIndexAction_errorOnAddToIndex,UIText.CompareWithIndexAction_errorOnAddToIndex);
    return;
  }
}

Fixed version (ground truth):
public void contentChanged(IContentChangeNotifier source){
  final byte[] newContent=next.getModifiedContent();
  try {
    final GitIndex index=repository.getIndex();
    final File file=new File(baseFile.getLocation().toString());
    index.add(mapping.getWorkDir(),file,newContent);
    index.write();
  }
 catch (  IOException e) {
    handle(new TeamException(UIText.CompareWithIndexAction_errorOnAddToIndex,e),UIText.CompareWithIndexAction_errorOnAddToIndex,UIText.CompareWithIndexAction_errorOnAddToIndex);
    return;
  }
}
Program: 91654
Project: 91654
Buggy source:
@Override public void execute(IAction action){
  final IResource resource=getSelectedResources()[0];
  final RepositoryMapping mapping=RepositoryMapping.getMapping(resource.getProject());
  final Repository repository=mapping.getRepository();
  final String gitPath=mapping.getRepoRelativePath(resource);
  final IFileRevision nextFile=GitFileRevision.inIndex(repository,gitPath);
  final IFile baseFile=(IFile)resource;
  final ITypedElement base=SaveableCompareEditorInput.createFileElement(baseFile);
  final EditableRevision next=new EditableRevision(nextFile);
  IContentChangeListener listener=new IContentChangeListener(){
    public void contentChanged(    IContentChangeNotifier source){
      final byte[] newContent=next.getModifiedContent();
      try {
        final GitIndex index=repository.getIndex();
        final File file=new File(baseFile.getLocation().toString());
        index.add(mapping.getWorkDir(),file,newContent);
        index.write();
      }
 catch (      IOException e) {
        Utils.handleError(getTargetPart().getSite().getShell(),e,UIText.CompareWithIndexAction_errorOnAddToIndex,UIText.CompareWithIndexAction_errorOnAddToIndex);
        return;
      }
    }
  }
;
  next.addContentChangeListener(listener);
  final GitCompareFileRevisionEditorInput in=new GitCompareFileRevisionEditorInput(base,next,null);
  CompareUI.openCompareEditor(in);
}

Fixed version (ground truth):
@Override public void execute(IAction action){
  final IResource resource=getSelectedResources()[0];
  final RepositoryMapping mapping=RepositoryMapping.getMapping(resource.getProject());
  final Repository repository=mapping.getRepository();
  final String gitPath=mapping.getRepoRelativePath(resource);
  final IFileRevision nextFile=GitFileRevision.inIndex(repository,gitPath);
  final IFile baseFile=(IFile)resource;
  final ITypedElement base=SaveableCompareEditorInput.createFileElement(baseFile);
  final EditableRevision next=new EditableRevision(nextFile);
  IContentChangeListener listener=new IContentChangeListener(){
    public void contentChanged(    IContentChangeNotifier source){
      final byte[] newContent=next.getModifiedContent();
      try {
        final GitIndex index=repository.getIndex();
        final File file=new File(baseFile.getLocation().toString());
        index.add(mapping.getWorkDir(),file,newContent);
        index.write();
      }
 catch (      IOException e) {
        handle(new TeamException(UIText.CompareWithIndexAction_errorOnAddToIndex,e),UIText.CompareWithIndexAction_errorOnAddToIndex,UIText.CompareWithIndexAction_errorOnAddToIndex);
        return;
      }
    }
  }
;
  next.addContentChangeListener(listener);
  final GitCompareFileRevisionEditorInput in=new GitCompareFileRevisionEditorInput(base,next,null);
  CompareUI.openCompareEditor(in);
}
Program: 91655
Project: 91655
Buggy source:
public void run(){
  handle(e,UIText.BranchAction_errorSwitchingBranches,UIText.BranchAction_unableToSwitchBranches);
}

Fixed version (ground truth):
public void run(){
  handle(new TeamException(e.getStatus()),UIText.BranchAction_errorSwitchingBranches,UIText.BranchAction_unableToSwitchBranches);
}
Program: 91658
Project: 91658
Buggy source:
public void contentChanged(IContentChangeNotifier source){
  final byte[] newContent=next.getModifiedContent();
  try {
    final GitIndex index=repository.getIndex();
    final File file=new File(baseFile.getLocation().toString());
    index.add(mapping.getWorkDir(),file,newContent);
    index.write();
  }
 catch (  IOException e) {
    Utils.handleError(getTargetPart().getSite().getShell(),e,UIText.CompareWithIndexAction_errorOnAddToIndex,UIText.CompareWithIndexAction_errorOnAddToIndex);
    return;
  }
}

Fixed version (ground truth):
public void contentChanged(IContentChangeNotifier source){
  final byte[] newContent=next.getModifiedContent();
  try {
    final GitIndex index=repository.getIndex();
    final File file=new File(baseFile.getLocation().toString());
    index.add(mapping.getWorkDir(),file,newContent);
    index.write();
  }
 catch (  IOException e) {
    handle(new TeamException(UIText.CompareWithIndexAction_errorOnAddToIndex,e),UIText.CompareWithIndexAction_errorOnAddToIndex,UIText.CompareWithIndexAction_errorOnAddToIndex);
    return;
  }
}
Program: 91659
Project: 91659
Buggy source:
@Override public void execute(IAction action){
  final IResource resource=getSelectedResources()[0];
  final RepositoryMapping mapping=RepositoryMapping.getMapping(resource.getProject());
  final Repository repository=mapping.getRepository();
  final String gitPath=mapping.getRepoRelativePath(resource);
  final IFileRevision nextFile=GitFileRevision.inIndex(repository,gitPath);
  final IFile baseFile=(IFile)resource;
  final ITypedElement base=SaveableCompareEditorInput.createFileElement(baseFile);
  final EditableRevision next=new EditableRevision(nextFile);
  IContentChangeListener listener=new IContentChangeListener(){
    public void contentChanged(    IContentChangeNotifier source){
      final byte[] newContent=next.getModifiedContent();
      try {
        final GitIndex index=repository.getIndex();
        final File file=new File(baseFile.getLocation().toString());
        index.add(mapping.getWorkDir(),file,newContent);
        index.write();
      }
 catch (      IOException e) {
        Utils.handleError(getTargetPart().getSite().getShell(),e,UIText.CompareWithIndexAction_errorOnAddToIndex,UIText.CompareWithIndexAction_errorOnAddToIndex);
        return;
      }
    }
  }
;
  next.addContentChangeListener(listener);
  final GitCompareFileRevisionEditorInput in=new GitCompareFileRevisionEditorInput(base,next,null);
  CompareUI.openCompareEditor(in);
}

Fixed version (ground truth):
@Override public void execute(IAction action){
  final IResource resource=getSelectedResources()[0];
  final RepositoryMapping mapping=RepositoryMapping.getMapping(resource.getProject());
  final Repository repository=mapping.getRepository();
  final String gitPath=mapping.getRepoRelativePath(resource);
  final IFileRevision nextFile=GitFileRevision.inIndex(repository,gitPath);
  final IFile baseFile=(IFile)resource;
  final ITypedElement base=SaveableCompareEditorInput.createFileElement(baseFile);
  final EditableRevision next=new EditableRevision(nextFile);
  IContentChangeListener listener=new IContentChangeListener(){
    public void contentChanged(    IContentChangeNotifier source){
      final byte[] newContent=next.getModifiedContent();
      try {
        final GitIndex index=repository.getIndex();
        final File file=new File(baseFile.getLocation().toString());
        index.add(mapping.getWorkDir(),file,newContent);
        index.write();
      }
 catch (      IOException e) {
        handle(new TeamException(UIText.CompareWithIndexAction_errorOnAddToIndex,e),UIText.CompareWithIndexAction_errorOnAddToIndex,UIText.CompareWithIndexAction_errorOnAddToIndex);
        return;
      }
    }
  }
;
  next.addContentChangeListener(listener);
  final GitCompareFileRevisionEditorInput in=new GitCompareFileRevisionEditorInput(base,next,null);
  CompareUI.openCompareEditor(in);
}
Program: 91660
Project: 91660
Buggy source:
public void run(IProgressMonitor arg0) throws InvocationTargetException, InterruptedException {
  try {
    op.run(arg0);
  }
 catch (  CoreException e) {
    MessageDialog.openError(getShell(),"String_Node_Str",e.getMessage());
  }
}

Fixed version (ground truth):
public void run(IProgressMonitor arg0) throws InvocationTargetException, InterruptedException {
  try {
    op.run(arg0);
  }
 catch (  CoreException e) {
    throw new InvocationTargetException(e);
  }
}
Program: 91662
Project: 91662
Buggy source:
protected int getArtifactScope(ILaunchConfiguration configuration) throws CoreException {
  String typeid=configuration.getType().getAttribute("String_Node_Str");
  if (JDT_JAVA_APPLICATION.equals(typeid)) {
    IResource[] resources=configuration.getMappedResources();
    if (resources == null || resources.length == 0) {
      return IClasspathManager.CLASSPATH_RUNTIME;
    }
    final Set<IPath> testSources=new HashSet<IPath>();
    IJavaProject javaProject=JavaRuntime.getJavaProject(configuration);
    IMavenProjectFacade facade=projectManager.create(javaProject.getProject(),new NullProgressMonitor());
    if (facade == null) {
      return IClasspathManager.CLASSPATH_RUNTIME;
    }
    testSources.addAll(Arrays.asList(facade.getTestCompileSourceLocations()));
    for (int i=0; i < resources.length; i++) {
      for (      IPath testPath : testSources) {
        if (testPath.isPrefixOf(resources[i].getProjectRelativePath())) {
          return IClasspathManager.CLASSPATH_TEST;
        }
      }
    }
    return IClasspathManager.CLASSPATH_RUNTIME;
  }
 else   if (JDT_JUNIT_TEST.equals(typeid) || JDT_TESTNG_TEST.equals(typeid)) {
    return IClasspathManager.CLASSPATH_TEST;
  }
 else {
    throw new CoreException(new Status(IStatus.ERROR,IMavenConstants.PLUGIN_ID,0,NLS.bind(Messages.MavenRuntimeClasspathProvider_error_unsupported,typeid),null));
  }
}

Fixed version (ground truth):
protected int getArtifactScope(ILaunchConfiguration configuration) throws CoreException {
  String typeid=configuration.getType().getAttribute("String_Node_Str");
  if (JDT_JAVA_APPLICATION.equals(typeid)) {
    IResource[] resources=configuration.getMappedResources();
    if (resources == null || resources.length == 0) {
      return IClasspathManager.CLASSPATH_RUNTIME;
    }
    final Set<IPath> testSources=new HashSet<IPath>();
    IJavaProject javaProject=JavaRuntime.getJavaProject(configuration);
    IMavenProjectFacade facade=projectManager.create(javaProject.getProject(),new NullProgressMonitor());
    if (facade == null) {
      return IClasspathManager.CLASSPATH_RUNTIME;
    }
    testSources.addAll(Arrays.asList(facade.getTestCompileSourceLocations()));
    testSources.addAll(getEclipseTestSources(javaProject));
    for (int i=0; i < resources.length; i++) {
      for (      IPath testPath : testSources) {
        if (testPath.isPrefixOf(resources[i].getProjectRelativePath())) {
          return IClasspathManager.CLASSPATH_TEST;
        }
      }
    }
    return IClasspathManager.CLASSPATH_RUNTIME;
  }
 else   if (JDT_JUNIT_TEST.equals(typeid) || JDT_TESTNG_TEST.equals(typeid)) {
    return IClasspathManager.CLASSPATH_TEST;
  }
 else {
    throw new CoreException(new Status(IStatus.ERROR,IMavenConstants.PLUGIN_ID,0,NLS.bind(Messages.MavenRuntimeClasspathProvider_error_unsupported,typeid),null));
  }
}
Program: 91663
Project: 91663
Buggy source:
@Override public void addErrorMarker(IResource resource,String type,MavenProblemInfo problem){
  IMarker marker=addMarker(resource,type,problem.getMessage(),problem.getLocation().getLineNumber(),problem.getSeverity());
  try {
    problem.processMarker(marker);
  }
 catch (  CoreException ex) {
    log.error(ex.getMessage(),ex);
  }
  MarkerUtils.decorateMarker(marker);
}

Fixed version (ground truth):
@Override public void addErrorMarker(IResource resource,String type,MavenProblemInfo problem){
  IMarker marker=addMarker(resource,type,problem.getMessage(),problem.getLocation().getLineNumber(),problem.getSeverity());
  if (marker == null) {
    return;
  }
  try {
    problem.processMarker(marker);
  }
 catch (  CoreException ex) {
    log.error(ex.getMessage(),ex);
  }
  MarkerUtils.decorateMarker(marker);
}
Program: 91664
Project: 91664
Buggy source:
public String getMavenText(){
  if (element instanceof LifecycleStrategyMappingRequirement) {
    return NLS.bind("String_Node_Str",((LifecycleStrategyMappingRequirement)element).getLifecycleMappingId());
  }
 else   if (element instanceof MojoExecutionMappingRequirement) {
    MojoExecutionKey exec=((MojoExecutionMappingRequirement)element).getExecution();
    return NLS.bind("String_Node_Str",new String[]{exec.getArtifactId(),exec.getVersion(),exec.getGoal(),String.valueOf(content.size())});
  }
 else   if (element instanceof PackagingTypeMappingRequirement) {
    return NLS.bind("String_Node_Str",((PackagingTypeMappingRequirement)element).getPackaging());
  }
 else   if (element instanceof ProjectConfiguratorMappingRequirement) {
    return NLS.bind("String_Node_Str",((ProjectConfiguratorMappingRequirement)element).getProjectConfiguratorId());
  }
  throw new IllegalStateException();
}

Fixed version (ground truth):
public String getMavenText(){
  if (element instanceof LifecycleStrategyMappingRequirement) {
    return NLS.bind("String_Node_Str",((LifecycleStrategyMappingRequirement)element).getLifecycleMappingId());
  }
 else   if (element instanceof MojoExecutionMappingRequirement) {
    MojoExecutionKey exec=((MojoExecutionMappingRequirement)element).getExecution();
    return NLS.bind("String_Node_Str",new String[]{exec.getArtifactId(),exec.getVersion(),exec.getGoal(),String.valueOf(content.size())});
  }
 else   if (element instanceof PackagingTypeMappingRequirement) {
    return NLS.bind("String_Node_Str",((PackagingTypeMappingRequirement)element).getPackaging());
  }
 else   if (element instanceof ProjectConfiguratorMappingRequirement) {
    MojoExecutionKey exec=((ProjectConfiguratorMappingRequirement)element).getExecution();
    return NLS.bind("String_Node_Str",new String[]{exec.getArtifactId(),exec.getVersion(),exec.getGoal(),String.valueOf(content.size())});
  }
  throw new IllegalStateException();
}
Program: 91665
Project: 91665
Buggy source:
private static ILifecycleMappingRequirement toLifecycleMappingRequirement(IMarker marker,String packagingType){
  String type=marker.getAttribute(IMavenConstants.MARKER_ATTR_EDITOR_HINT,null);
  if (type == null) {
    return null;
  }
  ILifecycleMappingRequirement requirement=null;
  if (IMavenConstants.EDITOR_HINT_NOT_COVERED_MOJO_EXECUTION.equals(type)) {
    MojoExecutionKey mek=MarkerUtils.getMojoExecution(marker);
    if (mek != null) {
      requirement=new MojoExecutionMappingRequirement(mek,packagingType);
    }
  }
 else   if (IMavenConstants.EDITOR_HINT_UNKNOWN_LIFECYCLE_ID.equals(type)) {
    String lifecycleId=getLifecycleId(marker);
    if (lifecycleId != null) {
      requirement=new LifecycleStrategyMappingRequirement(null,lifecycleId);
    }
  }
 else   if (IMavenConstants.EDITOR_HINT_MISSING_CONFIGURATOR.equals(type)) {
    String configuratorId=getConfiguratorId(marker);
    if (configuratorId != null) {
      requirement=new ProjectConfiguratorMappingRequirement(null,configuratorId);
    }
  }
  return requirement;
}

Fixed version (ground truth):
private static ILifecycleMappingRequirement toLifecycleMappingRequirement(IMarker marker,String packagingType){
  String type=marker.getAttribute(IMavenConstants.MARKER_ATTR_EDITOR_HINT,null);
  if (type == null) {
    return null;
  }
  ILifecycleMappingRequirement requirement=null;
  if (IMavenConstants.EDITOR_HINT_NOT_COVERED_MOJO_EXECUTION.equals(type)) {
    MojoExecutionKey mek=MarkerUtils.getMojoExecution(marker);
    if (mek != null) {
      requirement=new MojoExecutionMappingRequirement(mek,packagingType);
    }
  }
 else   if (IMavenConstants.EDITOR_HINT_UNKNOWN_LIFECYCLE_ID.equals(type)) {
    String lifecycleId=getLifecycleId(marker);
    if (lifecycleId != null) {
      requirement=new LifecycleStrategyMappingRequirement(null,lifecycleId);
    }
  }
 else   if (IMavenConstants.EDITOR_HINT_MISSING_CONFIGURATOR.equals(type)) {
    String configuratorId=getConfiguratorId(marker);
    MojoExecutionKey mek=MarkerUtils.getMojoExecution(marker);
    if (configuratorId != null) {
      requirement=new ProjectConfiguratorMappingRequirement(mek,configuratorId);
    }
  }
  return requirement;
}
Program: 91667
Project: 91667
Buggy source:
public String getMavenText(){
  if (requirement instanceof MojoExecutionMappingRequirement) {
    String executionId=((MojoExecutionMappingRequirement)requirement).getExecutionId();
    if ("String_Node_Str".equals(executionId)) {
      return NLS.bind("String_Node_Str",relPath);
    }
    return NLS.bind("String_Node_Str",executionId,relPath);
  }
  return null;
}

Fixed version (ground truth):
public String getMavenText(){
  String executionId=null;
  if (requirement instanceof MojoExecutionMappingRequirement) {
    executionId=((MojoExecutionMappingRequirement)requirement).getExecutionId();
  }
 else   if (requirement instanceof ProjectConfiguratorMappingRequirement) {
    executionId=((ProjectConfiguratorMappingRequirement)requirement).getExecution().getExecutionId();
  }
  if (executionId != null) {
    if ("String_Node_Str".equals(executionId)) {
      return NLS.bind("String_Node_Str",relPath);
    }
    return NLS.bind("String_Node_Str",executionId,relPath);
  }
  return null;
}
Program: 91670
Project: 91670
Buggy source:
public MissingConfiguratorProblemInfo(String configuratorId,SourceLocation markerLocation){
  super(NLS.bind(Messages.ProjectConfiguratorNotAvailable,configuratorId),markerLocation);
  this.configuratorId=configuratorId;
}

Fixed version (ground truth):
public MissingConfiguratorProblemInfo(String configuratorId,MojoExecutionKey mojoExecutionKey,int severity,SourceLocation markerLocation){
  super(NLS.bind(Messages.ProjectConfiguratorNotAvailable,configuratorId,mojoExecutionKey.toString()),severity,mojoExecutionKey,markerLocation);
  this.configuratorId=configuratorId;
}
Program: 91671
Project: 91671
Buggy source:
private int computeOutOfDateProjectsCount(){
  int outOfDateProjectsCount=0;
  for (  IProject p : projects) {
    if (requiresUpdate(p) && !codebaseViewer.getChecked(p)) {
      outOfDateProjectsCount++;
    }
  }
  return outOfDateProjectsCount;
}

Fixed version (ground truth):
private int computeOutOfDateProjectsCount(){
  int outOfDateProjectsCount=0;
  for (  IProject p : projectPaths.values()) {
    if (requiresUpdate(p) && !codebaseViewer.getChecked(p)) {
      outOfDateProjectsCount++;
    }
  }
  return outOfDateProjectsCount;
}
Program: 91672
Project: 91672
Buggy source:
private void includeOutOfDateProjects(){
  for (  IProject project : projects) {
    if (requiresUpdate(project)) {
      codebaseViewer.setSubtreeChecked(project,true);
    }
  }
  updateSelectedProjects();
}

Fixed version (ground truth):
private void includeOutOfDateProjects(){
  for (  IProject project : projectPaths.values()) {
    if (requiresUpdate(project)) {
      codebaseViewer.setChecked(project,true);
    }
  }
  updateSelectedProjects();
}
Program: 91673
Project: 91673
Buggy source:
void addErrorMarker(IProject project,Exception e){
  String msg=e.getMessage();
  String rootCause=M2EUtils.getRootCauseMessage(e);
  if (!e.equals(msg)) {
    msg=msg + "String_Node_Str" + rootCause;
  }
  markerManager.addMarker(project,IMavenConstants.MARKER_BUILD_ID,msg,1,IMarker.SEVERITY_ERROR);
}

Fixed version (ground truth):
void addErrorMarker(IProject project,Exception e){
  String msg=e.getMessage();
  String rootCause=M2EUtils.getRootCauseMessage(e);
  if (msg != null && !msg.equals(rootCause)) {
    msg=msg + "String_Node_Str" + rootCause;
  }
  markerManager.addMarker(project,IMavenConstants.MARKER_BUILD_ID,msg,1,IMarker.SEVERITY_ERROR);
}
Program: 91674
Project: 91674
Buggy source:
public Void call(IMavenExecutionContext context,IProgressMonitor monitor) throws CoreException {
  if (projectFacade.getMavenProject(monitor) == null) {
    return null;
  }
  ILifecycleMapping lifecycleMapping=configurationManager.getLifecycleMapping(projectFacade);
  if (lifecycleMapping == null) {
    return null;
  }
  Map<MojoExecutionKey,List<AbstractBuildParticipant>> buildParticipantsByMojoExecutionKey=lifecycleMapping.getBuildParticipants(projectFacade,monitor);
  MavenProject mavenProject=null;
  try {
    mavenProject=projectFacade.getMavenProject(monitor);
  }
 catch (  CoreException ce) {
    addErrorMarker(project,ce);
    return null;
  }
  builder.clean(context.getSession(),projectFacade,buildParticipantsByMojoExecutionKey,monitor);
  return null;
}

Fixed version (ground truth):
public T call(IMavenExecutionContext context,IProgressMonitor monitor) throws CoreException {
  ILifecycleMapping lifecycleMapping=configurationManager.getLifecycleMapping(projectFacade);
  if (lifecycleMapping == null) {
    return null;
  }
  Map<MojoExecutionKey,List<AbstractBuildParticipant>> buildParticipantsByMojoExecutionKey=lifecycleMapping.getBuildParticipants(projectFacade,monitor);
  return method(context,projectFacade,buildParticipantsByMojoExecutionKey,kind,args,monitor);
}
Program: 91675
Project: 91675
Buggy source:
protected IProject[] build(final int kind,final Map<String,String> args,final IProgressMonitor monitor) throws CoreException {
  final IProject project=getProject();
  log.debug("String_Node_Str",project.getName());
  final long start=System.currentTimeMillis();
  markerManager.deleteMarkers(project,kind == FULL_BUILD,IMavenConstants.MARKER_BUILD_ID);
  if (!project.hasNature(IMavenConstants.NATURE_ID)) {
    return null;
  }
  final IFile pomResource=project.getFile(IMavenConstants.POM_FILE_NAME);
  if (pomResource == null) {
    log.error("String_Node_Str",project.getName());
    return null;
  }
  return maven.execute(new ICallable<IProject[]>(){
    public IProject[] call(    IMavenExecutionContext context,    IProgressMonitor monitor) throws CoreException {
      final IMavenProjectFacade projectFacade=getProjectFacade(pomResource,project,monitor);
      if (projectFacade == null) {
        return null;
      }
      return projectManager.execute(projectFacade,new ICallable<IProject[]>(){
        public IProject[] call(        IMavenExecutionContext context,        IProgressMonitor monitor) throws CoreException {
          try {
            projectFacade.getMavenProject(monitor);
          }
 catch (          CoreException ce) {
            addErrorMarker(project,ce);
            monitor.done();
            return null;
          }
          ILifecycleMapping lifecycleMapping=configurationManager.getLifecycleMapping(projectFacade);
          if (lifecycleMapping == null) {
            return null;
          }
          Map<MojoExecutionKey,List<AbstractBuildParticipant>> buildParticipantsByMojoExecutionKey=lifecycleMapping.getBuildParticipants(projectFacade,monitor);
          Set<IProject> dependencies=builder.build(context.getSession(),projectFacade,kind,args,buildParticipantsByMojoExecutionKey,monitor);
          log.debug("String_Node_Str",project.getName(),System.currentTimeMillis() - start);
          if (dependencies.isEmpty()) {
            return null;
          }
          return dependencies.toArray(new IProject[dependencies.size()]);
        }
      }
,monitor);
    }
  }
,monitor);
}

Fixed version (ground truth):
protected IProject[] build(final int kind,final Map<String,String> args,final IProgressMonitor monitor) throws CoreException {
  log.debug("String_Node_Str",getProject().getName());
  final long start=System.currentTimeMillis();
  try {
    return methodBuild.execute(kind,args,monitor);
  }
  finally {
    log.debug("String_Node_Str",getProject().getName(),System.currentTimeMillis() - start);
  }
}
Program: 91676
Project: 91676
Buggy source:
void addErrorMarker(IProject project,Exception e){
  String msg=e.getMessage();
  String rootCause=M2EUtils.getRootCauseMessage(e);
  if (!e.equals(msg)) {
    msg=msg + "String_Node_Str" + rootCause;
  }
  IMavenMarkerManager markerManager=MavenPluginActivator.getDefault().getMavenMarkerManager();
  markerManager.addMarker(project,IMavenConstants.MARKER_BUILD_ID,msg,1,IMarker.SEVERITY_ERROR);
}

Fixed version (ground truth):
void addErrorMarker(IProject project,Exception e){
  String msg=e.getMessage();
  String rootCause=M2EUtils.getRootCauseMessage(e);
  if (!e.equals(msg)) {
    msg=msg + "String_Node_Str" + rootCause;
  }
  markerManager.addMarker(project,IMavenConstants.MARKER_BUILD_ID,msg,1,IMarker.SEVERITY_ERROR);
}
Program: 91677
Project: 91677
Buggy source:
protected void clean(final IProgressMonitor monitor) throws CoreException {
  final IProject project=getProject();
  markerManager.deleteMarkers(project,IMavenConstants.MARKER_BUILD_ID);
  if (!project.hasNature(IMavenConstants.NATURE_ID)) {
    return;
  }
  final IFile pomResource=project.getFile(IMavenConstants.POM_FILE_NAME);
  if (pomResource == null) {
    return;
  }
  maven.execute(new ICallable<Void>(){
    public Void call(    IMavenExecutionContext context,    IProgressMonitor monitor) throws CoreException {
      final IMavenProjectFacade projectFacade=projectManager.create(getProject(),monitor);
      if (projectFacade == null) {
        return null;
      }
      return projectManager.execute(projectFacade,new ICallable<Void>(){
        public Void call(        IMavenExecutionContext context,        IProgressMonitor monitor) throws CoreException {
          if (projectFacade.getMavenProject(monitor) == null) {
            return null;
          }
          ILifecycleMapping lifecycleMapping=configurationManager.getLifecycleMapping(projectFacade);
          if (lifecycleMapping == null) {
            return null;
          }
          Map<MojoExecutionKey,List<AbstractBuildParticipant>> buildParticipantsByMojoExecutionKey=lifecycleMapping.getBuildParticipants(projectFacade,monitor);
          MavenProject mavenProject=null;
          try {
            mavenProject=projectFacade.getMavenProject(monitor);
          }
 catch (          CoreException ce) {
            addErrorMarker(project,ce);
            return null;
          }
          builder.clean(context.getSession(),projectFacade,buildParticipantsByMojoExecutionKey,monitor);
          return null;
        }
      }
,monitor);
    }
  }
,monitor);
}

Fixed version (ground truth):
protected void clean(final IProgressMonitor monitor) throws CoreException {
  log.debug("String_Node_Str",getProject().getName());
  final long start=System.currentTimeMillis();
  try {
    methodClean.execute(CLEAN_BUILD,Collections.<String,String>emptyMap(),monitor);
  }
  finally {
    log.debug("String_Node_Str",getProject().getName(),System.currentTimeMillis() - start);
  }
}
Program: 91678
Project: 91678
Buggy source:
IMavenProjectFacade getProjectFacade(final IFile pomResource,final IProject project,final IProgressMonitor monitor) throws CoreException {
  boolean force=false;
  IResourceDelta delta=getDelta(project);
  if (delta != null) {
    delta=delta.findMember(pomResource.getFullPath());
    force=delta != null && delta.getKind() == IResourceDelta.CHANGED;
  }
  IMavenProjectFacade projectFacade=projectManager.create(getProject(),monitor);
  if (force || projectFacade == null || projectFacade.isStale()) {
    projectManager.refresh(Collections.singleton(pomResource),monitor);
    projectFacade=projectManager.create(project,monitor);
    if (projectFacade == null) {
      return null;
    }
  }
  return projectFacade;
}

Fixed version (ground truth):
IMavenProjectFacade getProjectFacade(final IProject project,final IProgressMonitor monitor) throws CoreException {
  final IFile pomResource=project.getFile(IMavenConstants.POM_FILE_NAME);
  boolean force=false;
  IResourceDelta delta=getDelta(project);
  if (delta != null) {
    delta=delta.findMember(pomResource.getFullPath());
    force=delta != null && delta.getKind() == IResourceDelta.CHANGED;
  }
  IMavenProjectFacade projectFacade=projectManager.getProject(project);
  if (force || projectFacade == null || projectFacade.isStale()) {
    projectManager.refresh(Collections.singleton(pomResource),monitor);
    projectFacade=projectManager.getProject(project);
    if (projectFacade == null) {
      return null;
    }
  }
  return projectFacade;
}
Program: 91679
Project: 91679
Buggy source:
public MavenExecutionResult readMavenProject(File pomFile,ProjectBuildingRequest configuration) throws CoreException {
  long start=System.currentTimeMillis();
  log.debug("String_Node_Str",pomFile.getAbsoluteFile());
  MavenExecutionResult result=new DefaultMavenExecutionResult();
  try {
    configuration.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL);
    ProjectBuildingResult projectBuildingResult=lookup(ProjectBuilder.class).build(pomFile,configuration);
    result.setProject(projectBuildingResult.getProject());
    result.setDependencyResolutionResult(projectBuildingResult.getDependencyResolutionResult());
  }
 catch (  ProjectBuildingException ex) {
    if (ex.getResults() != null && ex.getResults().size() == 1) {
      ProjectBuildingResult projectBuildingResult=ex.getResults().get(0);
      result.setProject(projectBuildingResult.getProject());
      result.setDependencyResolutionResult(projectBuildingResult.getDependencyResolutionResult());
    }
    result.addException(ex);
  }
 finally {
    log.debug("String_Node_Str",pomFile.getAbsoluteFile(),System.currentTimeMillis() - start);
  }
  return result;
}

Fixed version (ground truth):
public MavenExecutionResult readMavenProject(File pomFile,ProjectBuildingRequest configuration) throws CoreException {
  long start=System.currentTimeMillis();
  log.debug("String_Node_Str",pomFile.getAbsoluteFile());
  MavenExecutionResult result=new DefaultMavenExecutionResult();
  try {
    configuration.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL);
    ProjectBuildingResult projectBuildingResult=lookup(ProjectBuilder.class).build(pomFile,configuration);
    result.setProject(projectBuildingResult.getProject());
    result.setDependencyResolutionResult(projectBuildingResult.getDependencyResolutionResult());
  }
 catch (  ProjectBuildingException ex) {
    if (ex.getResults() != null && ex.getResults().size() == 1) {
      ProjectBuildingResult projectBuildingResult=ex.getResults().get(0);
      result.setProject(projectBuildingResult.getProject());
      result.setDependencyResolutionResult(projectBuildingResult.getDependencyResolutionResult());
    }
    result.addException(ex);
  }
catch (  RuntimeException e) {
    result.addException(e);
  }
 finally {
    log.debug("String_Node_Str",pomFile.getAbsoluteFile(),System.currentTimeMillis() - start);
  }
  return result;
}