nus-yam/ex-repair huggingface dataset:
Program: 91587
Project: 91587
Buggy source:
public Object execute(ExecutionEvent event) throws ExecutionException {
  final List<RefNode> nodes=getSelectedNodes(event);
  RefNode refNode=nodes.get(0);
  Shell shell=getShell(event);
  String oldName=refNode.getObject().getName();
  String prefix;
  if (oldName.startsWith(Constants.R_HEADS))   prefix=Constants.R_HEADS;
 else   if (oldName.startsWith(Constants.R_REMOTES))   prefix=Constants.R_REMOTES;
 else   throw new ExecutionException(NLS.bind(UIText.RenameBranchCommand_WrongNameMessage,oldName));
  Repository db=refNode.getRepository();
  IInputValidator inputValidator=ValidationUtils.getRefNameInputValidator(db,prefix,true);
  String defaultValue=db.shortenRefName(oldName);
  InputDialog newNameDialog=new InputDialog(shell,UIText.RepositoriesView_RenameBranchTitle,NLS.bind(UIText.RepositoriesView_RenameBranchMessage,defaultValue),defaultValue,inputValidator);
  if (newNameDialog.open() == Window.OK) {
    try {
      String newName=newNameDialog.getValue();
      new RenameBranchOperation(db,refNode.getObject(),newName).execute(null);
    }
 catch (    CoreException e) {
      Activator.handleError(UIText.RepositoriesView_RenameBranchFailure,e,true);
    }
  }
  return null;
}

Fixed version (ground truth):
public Object execute(ExecutionEvent event) throws ExecutionException {
  final List<RefNode> nodes=getSelectedNodes(event);
  RefNode refNode=nodes.get(0);
  Shell shell=getShell(event);
  String oldName=refNode.getObject().getName();
  String prefix;
  if (oldName.startsWith(Constants.R_HEADS))   prefix=Constants.R_HEADS;
 else   if (oldName.startsWith(Constants.R_REMOTES))   prefix=Constants.R_REMOTES;
 else   throw new ExecutionException(NLS.bind(UIText.RenameBranchCommand_WrongNameMessage,oldName));
  Repository db=refNode.getRepository();
  IInputValidator inputValidator=ValidationUtils.getRefNameInputValidator(db,prefix,true);
  String defaultValue=Repository.shortenRefName(oldName);
  InputDialog newNameDialog=new InputDialog(shell,UIText.RepositoriesView_RenameBranchTitle,NLS.bind(UIText.RepositoriesView_RenameBranchMessage,defaultValue),defaultValue,inputValidator);
  if (newNameDialog.open() == Window.OK) {
    try {
      String newName=newNameDialog.getValue();
      new RenameBranchOperation(db,refNode.getObject(),newName).execute(null);
    }
 catch (    CoreException e) {
      Activator.handleError(UIText.RepositoriesView_RenameBranchFailure,e,true);
    }
  }
  return null;
}
Program: 91588
Project: 91588
Buggy source:
private List<IPath> getPathList() throws IOException {
  List<IPath> result=new ArrayList<IPath>();
  Set<String> children=getRepository().getRefDatabase().getRefs(getObject().toPortableString()).keySet();
  for (  String pathEntry : children) {
    result.add(getObject().append(new Path(pathEntry)));
  }
  return result;
}

Fixed version (ground truth):
private List<IPath> getPathList() throws IOException {
  List<IPath> result=new ArrayList<IPath>();
  Map<String,Ref> refsMap=getRepository().getRefDatabase().getRefs(getObject().toPortableString());
  for (  Map.Entry<String,Ref> entry : refsMap.entrySet()) {
    if (entry.getValue().isSymbolic())     continue;
    result.add(getObject().append(new Path(entry.getKey())));
  }
  return result;
}
Program: 91590
Project: 91590
Buggy source:
public void run(){
  commit[0]=(RevCommit)table.widget.getSelection()[0].getData();
}

Fixed version (ground truth):
public void run(){
  TableItem tableItem=table.widget.getSelection()[0];
  ensureTableItemLoaded(tableItem);
  commit[0]=(RevCommit)tableItem.getData();
}
Program: 91591
Project: 91591
Buggy source:
@Test public void testAddTag() throws Exception {
  Repository repo=lookupRepository(repoFile);
  assertNull(repo.resolve(Constants.R_TAGS + "String_Node_Str"));
  final SWTBotTable table=getHistoryViewTable(PROJ1);
  table.getTableItem(0).select();
  final RevCommit[] commit=new RevCommit[1];
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
      commit[0]=(RevCommit)table.widget.getSelection()[0].getData();
    }
  }
);
  ContextMenuHelper.clickContextMenu(table,UIText.GitHistoryPage_CreateTagMenuLabel);
  SWTBotShell dialog=bot.shell(UIText.CreateTagDialog_NewTag);
  dialog.bot().textWithLabel(UIText.CreateTagDialog_tagName).setText("String_Node_Str");
  dialog.bot().textWithLabel(UIText.CreateTagDialog_tagMessage).setText("String_Node_Str");
  dialog.bot().button(IDialogConstants.OK_LABEL).click();
  waitInUI();
  assertNotNull(repo.resolve(Constants.R_TAGS + "String_Node_Str"));
}

Fixed version (ground truth):
@Test public void testAddTag() throws Exception {
  Repository repo=lookupRepository(repoFile);
  assertNull(repo.resolve(Constants.R_TAGS + "String_Node_Str"));
  final SWTBotTable table=getHistoryViewTable(PROJ1);
  table.getTableItem(0).select();
  final RevCommit[] commit=new RevCommit[1];
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
      TableItem tableItem=table.widget.getSelection()[0];
      ensureTableItemLoaded(tableItem);
      commit[0]=(RevCommit)tableItem.getData();
    }
  }
);
  ContextMenuHelper.clickContextMenu(table,UIText.GitHistoryPage_CreateTagMenuLabel);
  SWTBotShell dialog=bot.shell(UIText.CreateTagDialog_NewTag);
  dialog.bot().textWithLabel(UIText.CreateTagDialog_tagName).setText("String_Node_Str");
  dialog.bot().textWithLabel(UIText.CreateTagDialog_tagMessage).setText("String_Node_Str");
  dialog.bot().button(IDialogConstants.OK_LABEL).click();
  waitInUI();
  assertNotNull(repo.resolve(Constants.R_TAGS + "String_Node_Str"));
}
Program: 91592
Project: 91592
Buggy source:
@Test public void testCheckOut() throws Exception {
  Repository repo=lookupRepository(repoFile);
  assertEquals(Constants.MASTER,repo.getBranch());
  final SWTBotTable table=getHistoryViewTable(PROJ1);
  table.getTableItem(1).select();
  final RevCommit[] commit=new RevCommit[1];
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
      commit[0]=(RevCommit)table.widget.getSelection()[0].getData();
    }
  }
);
  ContextMenuHelper.clickContextMenu(table,UIText.GitHistoryPage_CheckoutMenuLabel);
  waitInUI();
  assertEquals(commit[0].getId().name(),repo.getBranch());
}

Fixed version (ground truth):
@Test public void testCheckOut() throws Exception {
  Repository repo=lookupRepository(repoFile);
  assertEquals(Constants.MASTER,repo.getBranch());
  final SWTBotTable table=getHistoryViewTable(PROJ1);
  table.getTableItem(1).select();
  final RevCommit[] commit=new RevCommit[1];
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
      TableItem tableItem=table.widget.getSelection()[0];
      ensureTableItemLoaded(tableItem);
      commit[0]=(RevCommit)tableItem.getData();
    }
  }
);
  ContextMenuHelper.clickContextMenu(table,UIText.GitHistoryPage_CheckoutMenuLabel);
  waitInUI();
  assertEquals(commit[0].getId().name(),repo.getBranch());
}
Program: 91595
Project: 91595
Buggy source:
private List<IPath> getPathList() throws IOException {
  List<IPath> result=new ArrayList<IPath>();
  Set<String> children=getRepository().getRefDatabase().getRefs(getObject().toPortableString()).keySet();
  for (  String pathEntry : children) {
    result.add(getObject().append(new Path(pathEntry)));
  }
  return result;
}

Fixed version (ground truth):
private List<IPath> getPathList() throws IOException {
  List<IPath> result=new ArrayList<IPath>();
  Map<String,Ref> refsMap=getRepository().getRefDatabase().getRefs(getObject().toPortableString());
  for (  Map.Entry<String,Ref> entry : refsMap.entrySet()) {
    if (entry.getValue().isSymbolic())     continue;
    result.add(getObject().append(new Path(entry.getKey())));
  }
  return result;
}
Program: 91596
Project: 91596
Buggy source:
@Test @Ignore public void testPushToPushDestination() throws Exception {
  pushTo("String_Node_Str",true);
  pushTo("String_Node_Str",false);
}

Fixed version (ground truth):
@Test public void testPushToPushDestination() throws Exception {
  pushTo("String_Node_Str",true);
  pushTo("String_Node_Str",false);
}
Program: 91598
Project: 91598
Buggy source:
/** 
 * @return list of all selected URIs - either the one specified as customURI or all URIs from selected configuration. May be null in case of no valid selection.
 */
public List<URIish> getPushURIs(){
  if (isURISelected())   return Collections.singletonList(uri);
  if (isConfigSelected())   return config.getPushURIs();
  return null;
}

Fixed version (ground truth):
/** 
 * @return list of all push URIs - either the one specified as custom URI orall push URIs of the selected configuration; if not push URIs were specified, the first URI is returned
 */
public List<URIish> getPushURIs(){
  if (isURISelected())   return Collections.singletonList(uri);
  if (isConfigSelected()) {
    List<URIish> pushUris=new ArrayList<URIish>();
    pushUris.addAll(config.getPushURIs());
    if (pushUris.isEmpty())     pushUris.add(config.getURIs().get(0));
    return pushUris;
  }
  return null;
}
Program: 91599
Project: 91599
Buggy source:
/** 
 * @return the selected URI (if specified by user as valid custom URI) orfirst URI from selected configuration (if specified by user as May be null if there is no valid selection.
 */
public URIish getURI(){
  if (isConfigSelected())   return config.getURIs().get(0);
  return uri;
}

Fixed version (ground truth):
/** 
 * @return the selected URI, <code>null</code> if a configuration wasselected
 */
public URIish getURI(){
  if (isConfigSelected())   return null;
  return uri;
}
Program: 91600
Project: 91600
Buggy source:
private String getSourceString(){
  final RepositorySelection repoSelection=repoPage.getSelection();
  if (repoSelection.isConfigSelected())   return repoSelection.getConfigName();
  return repoSelection.getURI().toString();
}

Fixed version (ground truth):
private String getSourceString(){
  final RepositorySelection repoSelection=repoPage.getSelection();
  if (repoSelection.isConfigSelected())   return repoSelection.getConfigName();
  return repoSelection.getURI(false).toString();
}
Program: 91601
Project: 91601
Buggy source:
@Override public boolean performFinish(){
  if (repoPage.getSelection().isConfigSelected() && refSpecPage.isSaveRequested())   saveConfig();
  final Transport transport;
  final RepositorySelection repoSelection=repoPage.getSelection();
  try {
    if (repoSelection.isConfigSelected())     transport=Transport.open(localDb,repoSelection.getConfig());
 else     transport=Transport.open(localDb,repoSelection.getURI());
  }
 catch (  final NotSupportedException e) {
    ErrorDialog.openError(getShell(),UIText.FetchWizard_transportNotSupportedTitle,UIText.FetchWizard_transportNotSupportedMessage,new Status(IStatus.ERROR,org.eclipse.egit.ui.Activator.getPluginId(),e.getMessage(),e));
    return false;
  }
  transport.setTagOpt(refSpecPage.getTagOpt());
  final Job fetchJob=new FetchJob(transport,refSpecPage.getRefSpecs(),getSourceString());
  fetchJob.setUser(true);
  fetchJob.schedule();
  repoPage.saveUriInPrefs();
  return true;
}

Fixed version (ground truth):
@Override public boolean performFinish(){
  if (repoPage.getSelection().isConfigSelected() && refSpecPage.isSaveRequested())   saveConfig();
  final Transport transport;
  final RepositorySelection repoSelection=repoPage.getSelection();
  try {
    if (repoSelection.isConfigSelected())     transport=Transport.open(localDb,repoSelection.getConfig());
 else     transport=Transport.open(localDb,repoSelection.getURI(false));
  }
 catch (  final NotSupportedException e) {
    ErrorDialog.openError(getShell(),UIText.FetchWizard_transportNotSupportedTitle,UIText.FetchWizard_transportNotSupportedMessage,new Status(IStatus.ERROR,org.eclipse.egit.ui.Activator.getPluginId(),e.getMessage(),e));
    return false;
  }
  transport.setTagOpt(refSpecPage.getTagOpt());
  final Job fetchJob=new FetchJob(transport,refSpecPage.getRefSpecs(),getSourceString());
  fetchJob.setUser(true);
  fetchJob.schedule();
  repoPage.saveUriInPrefs();
  return true;
}
Program: 91603
Project: 91603
Buggy source:
private String getDestinationString(){
  final RepositorySelection repoSelection=repoPage.getSelection();
  final String destination;
  if (repoSelection.isConfigSelected())   destination=repoSelection.getConfigName();
 else   destination=repoSelection.getURI().toString();
  return destination;
}

Fixed version (ground truth):
private String getDestinationString(){
  final RepositorySelection repoSelection=repoPage.getSelection();
  final String destination;
  if (repoSelection.isConfigSelected())   destination=repoSelection.getConfigName();
 else   destination=repoSelection.getURI(true).toString();
  return destination;
}
Program: 91604
Project: 91604
Buggy source:
private PushOperation createPushOperation(){
  try {
    final PushOperationSpecification spec;
    final RemoteConfig config=repoPage.getSelection().getConfig();
    if (confirmPage.isConfirmed()) {
      final PushOperationResult confirmedResult=confirmPage.getConfirmedResult();
      spec=confirmedResult.deriveSpecification(confirmPage.isRequireUnchangedSelected());
    }
 else {
      final Collection<RefSpec> fetchSpecs;
      if (config != null)       fetchSpecs=config.getPushRefSpecs();
 else       fetchSpecs=null;
      final Collection<RemoteRefUpdate> updates=Transport.findRemoteRefUpdatesFor(localDb,refSpecPage.getRefSpecs(),fetchSpecs);
      if (updates.isEmpty()) {
        ErrorDialog.openError(getShell(),UIText.PushWizard_missingRefsTitle,null,new Status(IStatus.ERROR,Activator.getPluginId(),UIText.PushWizard_missingRefsMessage));
        return null;
      }
      spec=new PushOperationSpecification();
      for (      final URIish uri : repoPage.getSelection().getAllURIs())       spec.addURIRefUpdates(uri,ConfirmationPage.copyUpdates(updates));
    }
    return new PushOperation(localDb,spec,false,config);
  }
 catch (  final IOException e) {
    ErrorDialog.openError(getShell(),UIText.PushWizard_cantPrepareUpdatesTitle,UIText.PushWizard_cantPrepareUpdatesMessage,new Status(IStatus.ERROR,Activator.getPluginId(),e.getMessage(),e));
    return null;
  }
}

Fixed version (ground truth):
private PushOperation createPushOperation(){
  try {
    final PushOperationSpecification spec;
    final RemoteConfig config=repoPage.getSelection().getConfig();
    if (confirmPage.isConfirmed()) {
      final PushOperationResult confirmedResult=confirmPage.getConfirmedResult();
      spec=confirmedResult.deriveSpecification(confirmPage.isRequireUnchangedSelected());
    }
 else {
      final Collection<RefSpec> fetchSpecs;
      if (config != null)       fetchSpecs=config.getPushRefSpecs();
 else       fetchSpecs=null;
      final Collection<RemoteRefUpdate> updates=Transport.findRemoteRefUpdatesFor(localDb,refSpecPage.getRefSpecs(),fetchSpecs);
      if (updates.isEmpty()) {
        ErrorDialog.openError(getShell(),UIText.PushWizard_missingRefsTitle,null,new Status(IStatus.ERROR,Activator.getPluginId(),UIText.PushWizard_missingRefsMessage));
        return null;
      }
      spec=new PushOperationSpecification();
      for (      final URIish uri : repoPage.getSelection().getPushURIs())       spec.addURIRefUpdates(uri,ConfirmationPage.copyUpdates(updates));
    }
    return new PushOperation(localDb,spec,false,config);
  }
 catch (  final IOException e) {
    ErrorDialog.openError(getShell(),UIText.PushWizard_cantPrepareUpdatesTitle,UIText.PushWizard_cantPrepareUpdatesMessage,new Status(IStatus.ERROR,Activator.getPluginId(),e.getMessage(),e));
    return null;
  }
}
Program: 91605
Project: 91605
Buggy source:
@Test @Ignore public void testPushToPushDestination() throws Exception {
  pushTo("String_Node_Str",true);
  pushTo("String_Node_Str",false);
}

Fixed version (ground truth):
@Test public void testPushToPushDestination() throws Exception {
  pushTo("String_Node_Str",true);
  pushTo("String_Node_Str",false);
}
Program: 91607
Project: 91607
Buggy source:
/** 
 * @return list of all selected URIs - either the one specified as customURI or all URIs from selected configuration. May be null in case of no valid selection.
 */
public List<URIish> getPushURIs(){
  if (isURISelected())   return Collections.singletonList(uri);
  if (isConfigSelected())   return config.getPushURIs();
  return null;
}

Fixed version (ground truth):
/** 
 * @return list of all push URIs - either the one specified as custom URI orall push URIs of the selected configuration; if not push URIs were specified, the first URI is returned
 */
public List<URIish> getPushURIs(){
  if (isURISelected())   return Collections.singletonList(uri);
  if (isConfigSelected()) {
    List<URIish> pushUris=new ArrayList<URIish>();
    pushUris.addAll(config.getPushURIs());
    if (pushUris.isEmpty())     pushUris.add(config.getURIs().get(0));
    return pushUris;
  }
  return null;
}
Program: 91608
Project: 91608
Buggy source:
/** 
 * @return the selected URI (if specified by user as valid custom URI) orfirst URI from selected configuration (if specified by user as May be null if there is no valid selection.
 */
public URIish getURI(){
  if (isConfigSelected())   return config.getURIs().get(0);
  return uri;
}

Fixed version (ground truth):
/** 
 * @return the selected URI, <code>null</code> if a configuration wasselected
 */
public URIish getURI(){
  if (isConfigSelected())   return null;
  return uri;
}
Program: 91609
Project: 91609
Buggy source:
private String getSourceString(){
  final RepositorySelection repoSelection=repoPage.getSelection();
  if (repoSelection.isConfigSelected())   return repoSelection.getConfigName();
  return repoSelection.getURI().toString();
}

Fixed version (ground truth):
private String getSourceString(){
  final RepositorySelection repoSelection=repoPage.getSelection();
  if (repoSelection.isConfigSelected())   return repoSelection.getConfigName();
  return repoSelection.getURI(false).toString();
}
Program: 91610
Project: 91610
Buggy source:
@Override public boolean performFinish(){
  if (repoPage.getSelection().isConfigSelected() && refSpecPage.isSaveRequested())   saveConfig();
  final Transport transport;
  final RepositorySelection repoSelection=repoPage.getSelection();
  try {
    if (repoSelection.isConfigSelected())     transport=Transport.open(localDb,repoSelection.getConfig());
 else     transport=Transport.open(localDb,repoSelection.getURI());
  }
 catch (  final NotSupportedException e) {
    ErrorDialog.openError(getShell(),UIText.FetchWizard_transportNotSupportedTitle,UIText.FetchWizard_transportNotSupportedMessage,new Status(IStatus.ERROR,org.eclipse.egit.ui.Activator.getPluginId(),e.getMessage(),e));
    return false;
  }
  transport.setTagOpt(refSpecPage.getTagOpt());
  final Job fetchJob=new FetchJob(transport,refSpecPage.getRefSpecs(),getSourceString());
  fetchJob.setUser(true);
  fetchJob.schedule();
  repoPage.saveUriInPrefs();
  return true;
}

Fixed version (ground truth):
@Override public boolean performFinish(){
  if (repoPage.getSelection().isConfigSelected() && refSpecPage.isSaveRequested())   saveConfig();
  final Transport transport;
  final RepositorySelection repoSelection=repoPage.getSelection();
  try {
    if (repoSelection.isConfigSelected())     transport=Transport.open(localDb,repoSelection.getConfig());
 else     transport=Transport.open(localDb,repoSelection.getURI(false));
  }
 catch (  final NotSupportedException e) {
    ErrorDialog.openError(getShell(),UIText.FetchWizard_transportNotSupportedTitle,UIText.FetchWizard_transportNotSupportedMessage,new Status(IStatus.ERROR,org.eclipse.egit.ui.Activator.getPluginId(),e.getMessage(),e));
    return false;
  }
  transport.setTagOpt(refSpecPage.getTagOpt());
  final Job fetchJob=new FetchJob(transport,refSpecPage.getRefSpecs(),getSourceString());
  fetchJob.setUser(true);
  fetchJob.schedule();
  repoPage.saveUriInPrefs();
  return true;
}
Program: 91612
Project: 91612
Buggy source:
private String getDestinationString(){
  final RepositorySelection repoSelection=repoPage.getSelection();
  final String destination;
  if (repoSelection.isConfigSelected())   destination=repoSelection.getConfigName();
 else   destination=repoSelection.getURI().toString();
  return destination;
}

Fixed version (ground truth):
private String getDestinationString(){
  final RepositorySelection repoSelection=repoPage.getSelection();
  final String destination;
  if (repoSelection.isConfigSelected())   destination=repoSelection.getConfigName();
 else   destination=repoSelection.getURI(true).toString();
  return destination;
}
Program: 91613
Project: 91613
Buggy source:
private PushOperation createPushOperation(){
  try {
    final PushOperationSpecification spec;
    final RemoteConfig config=repoPage.getSelection().getConfig();
    if (confirmPage.isConfirmed()) {
      final PushOperationResult confirmedResult=confirmPage.getConfirmedResult();
      spec=confirmedResult.deriveSpecification(confirmPage.isRequireUnchangedSelected());
    }
 else {
      final Collection<RefSpec> fetchSpecs;
      if (config != null)       fetchSpecs=config.getPushRefSpecs();
 else       fetchSpecs=null;
      final Collection<RemoteRefUpdate> updates=Transport.findRemoteRefUpdatesFor(localDb,refSpecPage.getRefSpecs(),fetchSpecs);
      if (updates.isEmpty()) {
        ErrorDialog.openError(getShell(),UIText.PushWizard_missingRefsTitle,null,new Status(IStatus.ERROR,Activator.getPluginId(),UIText.PushWizard_missingRefsMessage));
        return null;
      }
      spec=new PushOperationSpecification();
      for (      final URIish uri : repoPage.getSelection().getAllURIs())       spec.addURIRefUpdates(uri,ConfirmationPage.copyUpdates(updates));
    }
    return new PushOperation(localDb,spec,false,config);
  }
 catch (  final IOException e) {
    ErrorDialog.openError(getShell(),UIText.PushWizard_cantPrepareUpdatesTitle,UIText.PushWizard_cantPrepareUpdatesMessage,new Status(IStatus.ERROR,Activator.getPluginId(),e.getMessage(),e));
    return null;
  }
}

Fixed version (ground truth):
private PushOperation createPushOperation(){
  try {
    final PushOperationSpecification spec;
    final RemoteConfig config=repoPage.getSelection().getConfig();
    if (confirmPage.isConfirmed()) {
      final PushOperationResult confirmedResult=confirmPage.getConfirmedResult();
      spec=confirmedResult.deriveSpecification(confirmPage.isRequireUnchangedSelected());
    }
 else {
      final Collection<RefSpec> fetchSpecs;
      if (config != null)       fetchSpecs=config.getPushRefSpecs();
 else       fetchSpecs=null;
      final Collection<RemoteRefUpdate> updates=Transport.findRemoteRefUpdatesFor(localDb,refSpecPage.getRefSpecs(),fetchSpecs);
      if (updates.isEmpty()) {
        ErrorDialog.openError(getShell(),UIText.PushWizard_missingRefsTitle,null,new Status(IStatus.ERROR,Activator.getPluginId(),UIText.PushWizard_missingRefsMessage));
        return null;
      }
      spec=new PushOperationSpecification();
      for (      final URIish uri : repoPage.getSelection().getPushURIs())       spec.addURIRefUpdates(uri,ConfirmationPage.copyUpdates(updates));
    }
    return new PushOperation(localDb,spec,false,config);
  }
 catch (  final IOException e) {
    ErrorDialog.openError(getShell(),UIText.PushWizard_cantPrepareUpdatesTitle,UIText.PushWizard_cantPrepareUpdatesMessage,new Status(IStatus.ERROR,Activator.getPluginId(),e.getMessage(),e));
    return null;
  }
}
Program: 91614
Project: 91614
Buggy source:
public void run(){
  try {
    MessageDialog.openInformation(getActiveShell(event),UIText.MergeAction_MergeResultTitle,op.getResult().toString());
  }
 catch (  ExecutionException e) {
    Activator.handleError(op.getResult().toString(),null,true);
  }
}

Fixed version (ground truth):
public void run(){
  Shell shell=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
  MessageDialog.openInformation(shell,UIText.MergeAction_MergeResultTitle,op.getResult().toString());
}
Program: 91616
Project: 91616
Buggy source:
@Override public void done(IJobChangeEvent jobEvent){
  IStatus result=jobEvent.getJob().getResult();
  if (result.getSeverity() == IStatus.CANCEL) {
    Display.getDefault().asyncExec(new Runnable(){
      public void run(){
        try {
          MessageDialog.openInformation(getActiveShell(event),UIText.MergeAction_MergeCanceledTitle,UIText.MergeAction_MergeCanceledMessage);
        }
 catch (        ExecutionException e) {
          Activator.handleError(UIText.MergeAction_MergeCanceledMessage,null,true);
        }
      }
    }
);
  }
 else   if (!result.isOK()) {
    Activator.handleError(result.getMessage(),result.getException(),true);
  }
 else {
    Display.getDefault().asyncExec(new Runnable(){
      public void run(){
        try {
          MessageDialog.openInformation(getActiveShell(event),UIText.MergeAction_MergeResultTitle,op.getResult().toString());
        }
 catch (        ExecutionException e) {
          Activator.handleError(op.getResult().toString(),null,true);
        }
      }
    }
);
  }
}

Fixed version (ground truth):
@Override public void done(IJobChangeEvent jobEvent){
  IStatus result=jobEvent.getJob().getResult();
  if (result.getSeverity() == IStatus.CANCEL) {
    Display.getDefault().asyncExec(new Runnable(){
      public void run(){
        Shell shell=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
        MessageDialog.openInformation(shell,UIText.MergeAction_MergeCanceledTitle,UIText.MergeAction_MergeCanceledMessage);
      }
    }
);
  }
 else   if (!result.isOK()) {
    Activator.handleError(result.getMessage(),result.getException(),true);
  }
 else {
    Display.getDefault().asyncExec(new Runnable(){
      public void run(){
        Shell shell=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
        MessageDialog.openInformation(shell,UIText.MergeAction_MergeResultTitle,op.getResult().toString());
      }
    }
);
  }
}
Program: 91617
Project: 91617
Buggy source:
public void run(){
  try {
    MessageDialog.openInformation(getShell(event),UIText.MergeAction_MergeResultTitle,op.getResult().toString());
  }
 catch (  ExecutionException e) {
    Activator.handleError(op.getResult().toString(),null,true);
  }
}

Fixed version (ground truth):
public void run(){
  Shell shell=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
  MessageDialog.openInformation(shell,UIText.MergeAction_MergeResultTitle,op.getResult().toString());
}
Program: 91619
Project: 91619
Buggy source:
@Override public void done(IJobChangeEvent cevent){
  IStatus result=cevent.getJob().getResult();
  if (result.getSeverity() == IStatus.CANCEL) {
    Display.getDefault().asyncExec(new Runnable(){
      public void run(){
        try {
          MessageDialog.openInformation(getShell(event),UIText.MergeAction_MergeCanceledTitle,UIText.MergeAction_MergeCanceledMessage);
        }
 catch (        ExecutionException e) {
          Activator.handleError(UIText.MergeAction_MergeCanceledMessage,null,true);
        }
      }
    }
);
  }
 else   if (!result.isOK()) {
    Activator.handleError(result.getMessage(),result.getException(),true);
  }
 else {
    Display.getDefault().asyncExec(new Runnable(){
      public void run(){
        try {
          MessageDialog.openInformation(getShell(event),UIText.MergeAction_MergeResultTitle,op.getResult().toString());
        }
 catch (        ExecutionException e) {
          Activator.handleError(op.getResult().toString(),null,true);
        }
      }
    }
);
  }
}

Fixed version (ground truth):
@Override public void done(IJobChangeEvent cevent){
  IStatus result=cevent.getJob().getResult();
  if (result.getSeverity() == IStatus.CANCEL) {
    Display.getDefault().asyncExec(new Runnable(){
      public void run(){
        Shell shell=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
        MessageDialog.openInformation(shell,UIText.MergeAction_MergeCanceledTitle,UIText.MergeAction_MergeCanceledMessage);
      }
    }
);
  }
 else   if (!result.isOK()) {
    Activator.handleError(result.getMessage(),result.getException(),true);
  }
 else {
    Display.getDefault().asyncExec(new Runnable(){
      public void run(){
        Shell shell=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
        MessageDialog.openInformation(shell,UIText.MergeAction_MergeResultTitle,op.getResult().toString());
      }
    }
);
  }
}
Program: 91621
Project: 91621
Buggy source:
private void openFileInEditor(FileDiff d){
  try {
    IWorkbenchWindow window=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    IWorkbenchPage page=window.getActivePage();
    IFileRevision rev=CompareUtils.getFileRevision(d.path,d.commit,db,d.blobs[1]);
    if (rev != null)     EgitUiEditorUtils.openEditor(page,rev,new NullProgressMonitor());
 else {
      String message=NLS.bind(UIText.CommitFileDiffViewer_notContainedInCommit,d.path,d.commit.getId().getName());
      Activator.showError(message,null);
    }
  }
 catch (  IOException e) {
    Activator.logError(UIText.GitHistoryPage_openFailed,e);
    Activator.showError(UIText.GitHistoryPage_openFailed,null);
  }
catch (  CoreException e) {
    Activator.logError(UIText.GitHistoryPage_openFailed,e);
    Activator.showError(UIText.GitHistoryPage_openFailed,null);
  }
}

Fixed version (ground truth):
private void openFileInEditor(FileDiff d){
  try {
    IWorkbenchWindow window=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    IWorkbenchPage page=window.getActivePage();
    IFileRevision rev=CompareUtils.getFileRevision(d.path,d.change.equals("String_Node_Str") ? d.commit.getParent(0) : d.commit,db,d.change.equals("String_Node_Str") ? d.blobs[0] : d.blobs[1]);
    if (rev != null)     EgitUiEditorUtils.openEditor(page,rev,new NullProgressMonitor());
 else {
      String message=NLS.bind(UIText.CommitFileDiffViewer_notContainedInCommit,d.path,d.commit.getId().getName());
      Activator.showError(message,null);
    }
  }
 catch (  IOException e) {
    Activator.logError(UIText.GitHistoryPage_openFailed,e);
    Activator.showError(UIText.GitHistoryPage_openFailed,null);
  }
catch (  CoreException e) {
    Activator.logError(UIText.GitHistoryPage_openFailed,e);
    Activator.showError(UIText.GitHistoryPage_openFailed,null);
  }
}
Program: 91622
Project: 91622
Buggy source:
private void openFileInEditor(FileDiff d){
  try {
    IWorkbenchWindow window=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    IWorkbenchPage page=window.getActivePage();
    IFileRevision rev=CompareUtils.getFileRevision(d.path,d.commit,db,d.blobs[1]);
    if (rev != null)     EgitUiEditorUtils.openEditor(page,rev,new NullProgressMonitor());
 else {
      String message=NLS.bind(UIText.CommitFileDiffViewer_notContainedInCommit,d.path,d.commit.getId().getName());
      Activator.showError(message,null);
    }
  }
 catch (  IOException e) {
    Activator.logError(UIText.GitHistoryPage_openFailed,e);
    Activator.showError(UIText.GitHistoryPage_openFailed,null);
  }
catch (  CoreException e) {
    Activator.logError(UIText.GitHistoryPage_openFailed,e);
    Activator.showError(UIText.GitHistoryPage_openFailed,null);
  }
}

Fixed version (ground truth):
private void openFileInEditor(FileDiff d){
  try {
    IWorkbenchWindow window=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    IWorkbenchPage page=window.getActivePage();
    IFileRevision rev=CompareUtils.getFileRevision(d.path,d.change.equals("String_Node_Str") ? d.commit.getParent(0) : d.commit,db,d.change.equals("String_Node_Str") ? d.blobs[0] : d.blobs[1]);
    if (rev != null)     EgitUiEditorUtils.openEditor(page,rev,new NullProgressMonitor());
 else {
      String message=NLS.bind(UIText.CommitFileDiffViewer_notContainedInCommit,d.path,d.commit.getId().getName());
      Activator.showError(message,null);
    }
  }
 catch (  IOException e) {
    Activator.logError(UIText.GitHistoryPage_openFailed,e);
    Activator.showError(UIText.GitHistoryPage_openFailed,null);
  }
catch (  CoreException e) {
    Activator.logError(UIText.GitHistoryPage_openFailed,e);
    Activator.showError(UIText.GitHistoryPage_openFailed,null);
  }
}
Program: 91623
Project: 91623
Buggy source:
/** 
 * Comparing two folders that have different path should return false.
 * @throws Exception
 */
@Test @SuppressWarnings("String_Node_Str") public void shouldReturnFalseWhenComparingContainerAndContainer() throws Exception {
  GitResourceVariantComparator grvc=new GitResourceVariantComparator(null);
  IPath localPath=createMock(IPath.class);
  replay(localPath);
  IContainer local=createMock(IContainer.class);
  expect(local.exists()).andReturn(true);
  expect(local.getFullPath()).andReturn(localPath);
  replay(local);
  File file=testRepo.createFile(iProject,"String_Node_Str" + File.separator + "String_Node_Str");
  RevCommit commit=testRepo.addAndCommit(iProject,file,"String_Node_Str");
  String path=Repository.stripWorkDir(repo.getWorkTree(),file);
  GitFolderResourceVariant remote=new GitFolderResourceVariant(repo,commit.getTree(),path);
  assertFalse(grvc.compare(local,remote));
  verify(local,localPath);
}

Fixed version (ground truth):
/** 
 * Comparing two folders that have different path should return false.
 * @throws Exception
 */
@Test @SuppressWarnings("String_Node_Str") public void shouldReturnFalseWhenComparingContainerAndContainer() throws Exception {
  GitResourceVariantComparator grvc=new GitResourceVariantComparator(null);
  IPath localPath=createMock(IPath.class);
  replay(localPath);
  IContainer local=createMock(IContainer.class);
  expect(local.exists()).andReturn(true).times(2);
  expect(local.getFullPath()).andReturn(localPath);
  replay(local);
  File file=testRepo.createFile(iProject,"String_Node_Str" + File.separator + "String_Node_Str");
  RevCommit commit=testRepo.addAndCommit(iProject,file,"String_Node_Str");
  String path=Repository.stripWorkDir(repo.getWorkTree(),file);
  GitFolderResourceVariant remote=new GitFolderResourceVariant(repo,commit.getTree(),path);
  assertFalse(grvc.compare(local,remote));
  verify(local,localPath);
}
Program: 91624
Project: 91624
Buggy source:
/** 
 * When comparing two folders that have same path, compare() method should return true.
 * @throws Exception
 */
@Test @SuppressWarnings("String_Node_Str") public void shouldReturnTrueWhenComparingContainerAndContainer() throws Exception {
  GitResourceVariantComparator grvc=new GitResourceVariantComparator(null);
  File file=testRepo.createFile(iProject,"String_Node_Str" + File.separator + "String_Node_Str");
  RevCommit commit=testRepo.addAndCommit(iProject,file,"String_Node_Str");
  String path=Repository.stripWorkDir(repo.getWorkTree(),file);
  IPath iPath=new Path(File.separator + path);
  IContainer local=createMock(IContainer.class);
  expect(local.exists()).andReturn(true);
  expect(local.getFullPath()).andReturn(iPath).anyTimes();
  replay(local);
  GitFolderResourceVariant remote=new GitFolderResourceVariant(repo,commit.getTree(),path);
  assertTrue(grvc.compare(local,remote));
  verify(local);
}

Fixed version (ground truth):
/** 
 * When comparing two folders that have same path, compare() method should return true.
 * @throws Exception
 */
@Test @SuppressWarnings("String_Node_Str") public void shouldReturnTrueWhenComparingContainerAndContainer() throws Exception {
  GitResourceVariantComparator grvc=new GitResourceVariantComparator(null);
  File file=testRepo.createFile(iProject,"String_Node_Str" + File.separator + "String_Node_Str");
  RevCommit commit=testRepo.addAndCommit(iProject,file,"String_Node_Str");
  String path=Repository.stripWorkDir(repo.getWorkTree(),file);
  IPath iPath=new Path(File.separator + path);
  IContainer local=createMock(IContainer.class);
  expect(local.exists()).andReturn(true).times(2);
  expect(local.getFullPath()).andReturn(iPath).anyTimes();
  replay(local);
  GitFolderResourceVariant remote=new GitFolderResourceVariant(repo,commit.getTree(),path);
  assertTrue(grvc.compare(local,remote));
  verify(local);
}
Program: 91626
Project: 91626
Buggy source:
public void createControl(Composite parent){
  initializeDialogUnits(parent);
  Composite workArea=new Composite(parent,SWT.NONE);
  setControl(workArea);
  workArea.setLayout(new GridLayout(2,false));
  workArea.setLayoutData(new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL));
  new Label(workArea,SWT.NONE).setText(UIText.GitCreateGeneralProjectPage_ProjectNameLabel);
  projectText=new Text(workArea,SWT.BORDER);
  GridDataFactory.fillDefaults().grab(true,false).applyTo(projectText);
  projectText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      checkPage();
    }
  }
);
  new Label(workArea,SWT.NONE).setText(UIText.GitCreateGeneralProjectPage_DirLabel);
  directoryText=new Text(workArea,SWT.BORDER);
  directoryText.setEnabled(false);
  GridDataFactory.fillDefaults().grab(true,false).applyTo(directoryText);
  Dialog.applyDialogFont(workArea);
}

Fixed version (ground truth):
public void createControl(Composite parent){
  initializeDialogUnits(parent);
  Composite workArea=new Composite(parent,SWT.NONE);
  setControl(workArea);
  workArea.setLayout(new GridLayout(2,false));
  workArea.setLayoutData(new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL));
  new Label(workArea,SWT.NONE).setText(UIText.GitCreateGeneralProjectPage_ProjectNameLabel);
  projectText=new Text(workArea,SWT.BORDER);
  GridDataFactory.fillDefaults().grab(true,false).applyTo(projectText);
  if (defaultLocation)   projectText.setEnabled(false);
 else   projectText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      checkPage();
    }
  }
);
  new Label(workArea,SWT.NONE).setText(UIText.GitCreateGeneralProjectPage_DirLabel);
  directoryText=new Text(workArea,SWT.BORDER);
  directoryText.setEnabled(false);
  GridDataFactory.fillDefaults().grab(true,false).applyTo(directoryText);
  Dialog.applyDialogFont(workArea);
}
Program: 91627
Project: 91627
Buggy source:
/** 
 */
public void importProjects(){
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
switch (mySelectionPage.getWizardSelection()) {
case GitSelectWizardPage.EXISTING_PROJECTS_WIZARD:
        myProjectsImportPage.createProjects();
      break;
case GitSelectWizardPage.NEW_WIZARD:
    new NewWizardAction(PlatformUI.getWorkbench().getActiveWorkbenchWindow()).run();
  break;
case GitSelectWizardPage.GENERAL_WIZARD:
try {
  final String projectName=myCreateGeneralProjectPage.getProjectName();
  getContainer().run(true,false,new WorkspaceModifyOperation(){
    @Override protected void execute(    IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
      final IProjectDescription desc=ResourcesPlugin.getWorkspace().newProjectDescription(projectName);
      desc.setLocation(new Path(myGitDir));
      IProject prj=ResourcesPlugin.getWorkspace().getRoot().getProject(desc.getName());
      prj.create(desc,monitor);
      prj.open(monitor);
      ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_ONE,monitor);
    }
  }
);
}
 catch (InvocationTargetException e1) {
  Activator.handleError(e1.getMessage(),e1.getTargetException(),true);
}
catch (InterruptedException e1) {
  Activator.handleError(e1.getMessage(),e1,true);
}
break;
}
}
}
);
}

Fixed version (ground truth):
/** 
 */
public void importProjects(){
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
switch (mySelectionPage.getWizardSelection()) {
case GitSelectWizardPage.EXISTING_PROJECTS_WIZARD:
        myProjectsImportPage.createProjects();
      break;
case GitSelectWizardPage.NEW_WIZARD:
    new NewWizardAction(PlatformUI.getWorkbench().getActiveWorkbenchWindow()).run();
  break;
case GitSelectWizardPage.GENERAL_WIZARD:
try {
  final String projectName=myCreateGeneralProjectPage.getProjectName();
  final boolean defaultLocation=myCreateGeneralProjectPage.isDefaultLocation();
  getContainer().run(true,false,new WorkspaceModifyOperation(){
    @Override protected void execute(    IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
      final IProjectDescription desc=ResourcesPlugin.getWorkspace().newProjectDescription(projectName);
      if (!defaultLocation)       desc.setLocation(new Path(myGitDir));
      IProject prj=ResourcesPlugin.getWorkspace().getRoot().getProject(desc.getName());
      prj.create(desc,monitor);
      prj.open(monitor);
      ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_ONE,monitor);
    }
  }
);
}
 catch (InvocationTargetException e1) {
  Activator.handleError(e1.getMessage(),e1.getTargetException(),true);
}
catch (InterruptedException e1) {
  Activator.handleError(e1.getMessage(),e1,true);
}
break;
}
}
}
);
}
Program: 91628
Project: 91628
Buggy source:
public void run(){
switch (mySelectionPage.getWizardSelection()) {
case GitSelectWizardPage.EXISTING_PROJECTS_WIZARD:
    myProjectsImportPage.createProjects();
  break;
case GitSelectWizardPage.NEW_WIZARD:
new NewWizardAction(PlatformUI.getWorkbench().getActiveWorkbenchWindow()).run();
break;
case GitSelectWizardPage.GENERAL_WIZARD:
try {
final String projectName=myCreateGeneralProjectPage.getProjectName();
getContainer().run(true,false,new WorkspaceModifyOperation(){
@Override protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
  final IProjectDescription desc=ResourcesPlugin.getWorkspace().newProjectDescription(projectName);
  desc.setLocation(new Path(myGitDir));
  IProject prj=ResourcesPlugin.getWorkspace().getRoot().getProject(desc.getName());
  prj.create(desc,monitor);
  prj.open(monitor);
  ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_ONE,monitor);
}
}
);
}
 catch (InvocationTargetException e1) {
Activator.handleError(e1.getMessage(),e1.getTargetException(),true);
}
catch (InterruptedException e1) {
Activator.handleError(e1.getMessage(),e1,true);
}
break;
}
}

Fixed version (ground truth):
public void run(){
switch (mySelectionPage.getWizardSelection()) {
case GitSelectWizardPage.EXISTING_PROJECTS_WIZARD:
    myProjectsImportPage.createProjects();
  break;
case GitSelectWizardPage.NEW_WIZARD:
new NewWizardAction(PlatformUI.getWorkbench().getActiveWorkbenchWindow()).run();
break;
case GitSelectWizardPage.GENERAL_WIZARD:
try {
final String projectName=myCreateGeneralProjectPage.getProjectName();
final boolean defaultLocation=myCreateGeneralProjectPage.isDefaultLocation();
getContainer().run(true,false,new WorkspaceModifyOperation(){
@Override protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
  final IProjectDescription desc=ResourcesPlugin.getWorkspace().newProjectDescription(projectName);
  if (!defaultLocation)   desc.setLocation(new Path(myGitDir));
  IProject prj=ResourcesPlugin.getWorkspace().getRoot().getProject(desc.getName());
  prj.create(desc,monitor);
  prj.open(monitor);
  ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_ONE,monitor);
}
}
);
}
 catch (InvocationTargetException e1) {
Activator.handleError(e1.getMessage(),e1.getTargetException(),true);
}
catch (InterruptedException e1) {
Activator.handleError(e1.getMessage(),e1,true);
}
break;
}
}
Program: 91629
Project: 91629
Buggy source:
@Override protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
  final IProjectDescription desc=ResourcesPlugin.getWorkspace().newProjectDescription(projectName);
  desc.setLocation(new Path(myGitDir));
  IProject prj=ResourcesPlugin.getWorkspace().getRoot().getProject(desc.getName());
  prj.create(desc,monitor);
  prj.open(monitor);
  ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_ONE,monitor);
}

Fixed version (ground truth):
@Override protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
  final IProjectDescription desc=ResourcesPlugin.getWorkspace().newProjectDescription(projectName);
  if (!defaultLocation)   desc.setLocation(new Path(myGitDir));
  IProject prj=ResourcesPlugin.getWorkspace().getRoot().getProject(desc.getName());
  prj.create(desc,monitor);
  prj.open(monitor);
  ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_ONE,monitor);
}
Program: 91630
Project: 91630
Buggy source:
/** 
 * Returns a status that represents the exceptions collected. If the collector is empty <code>IStatus.OK</code> is returned. Otherwise a MultiStatus containing all collected exceptions is returned.
 * @return a multistatus containing the exceptions collected or IStatus.OKif the collector is empty.
 */
public IStatus getStatus(){
  if (statuses.isEmpty()) {
    return Status.OK_STATUS;
  }
 else {
    final MultiStatus multiStatus=new MultiStatus(pluginId,severity,message,null);
    final Iterator it=statuses.iterator();
    while (it.hasNext()) {
      final IStatus status=(IStatus)it.next();
      multiStatus.merge(status);
    }
    return multiStatus;
  }
}

Fixed version (ground truth):
/** 
 * Returns a status that represents the exceptions collected. If the collector is empty <code>IStatus.OK</code> is returned. Otherwise a MultiStatus containing all collected exceptions is returned.
 * @return a multistatus containing the exceptions collected or IStatus.OKif the collector is empty.
 */
public IStatus getStatus(){
  if (statuses != null && statuses.isEmpty()) {
    return Status.OK_STATUS;
  }
 else {
    final MultiStatus multiStatus=new MultiStatus(pluginId,severity,message,null);
    final Iterator it=statuses.iterator();
    while (it.hasNext()) {
      final IStatus status=(IStatus)it.next();
      multiStatus.merge(status);
    }
    return multiStatus;
  }
}
Program: 91631
Project: 91631
Buggy source:
/** 
 * @return destination {@link Tree}
 * @throws IOException
 */
public Tree mapDstTree() throws IOException {
  return mapTree(dstRev);
}

Fixed version (ground truth):
/** 
 * @return destination Tree
 * @throws IOException
 */
public Tree mapDstTree() throws IOException {
  return mapTree(dstRev);
}
Program: 91632
Project: 91632
Buggy source:
/** 
 * @return source {@link Tree}
 * @throws IOException
 */
public Tree mapSrcTree() throws IOException {
  return mapTree(srcRev);
}

Fixed version (ground truth):
/** 
 * @return source Tree
 * @throws IOException
 */
public Tree mapSrcTree() throws IOException {
  return mapTree(srcRev);
}
Program: 91633
Project: 91633
Buggy source:
/** 
 * Construct a resource not for a   {@link TreeEntry}
 * @param e The {@link TreeEntry}
 */
public GitResourceNode(TreeEntry e){
  entry=e;
}

Fixed version (ground truth):
/** 
 * Construct a resource not for a TreeEntry
 * @param e The TreeEntry
 */
public GitResourceNode(TreeEntry e){
  entry=e;
}
Program: 91634
Project: 91634
Buggy source:
/** 
 * @return destination {@link Tree}
 * @throws IOException
 */
public Tree mapDstTree() throws IOException {
  return mapTree(dstRev);
}

Fixed version (ground truth):
/** 
 * @return destination Tree
 * @throws IOException
 */
public Tree mapDstTree() throws IOException {
  return mapTree(dstRev);
}
Program: 91635
Project: 91635
Buggy source:
/** 
 * @return source {@link Tree}
 * @throws IOException
 */
public Tree mapSrcTree() throws IOException {
  return mapTree(srcRev);
}

Fixed version (ground truth):
/** 
 * @return source Tree
 * @throws IOException
 */
public Tree mapSrcTree() throws IOException {
  return mapTree(srcRev);
}
Program: 91636
Project: 91636
Buggy source:
/** 
 * Construct a resource not for a   {@link TreeEntry}
 * @param e The {@link TreeEntry}
 */
public GitResourceNode(TreeEntry e){
  entry=e;
}

Fixed version (ground truth):
/** 
 * Construct a resource not for a TreeEntry
 * @param e The TreeEntry
 */
public GitResourceNode(TreeEntry e){
  entry=e;
}