nus-yam/ex-repair huggingface dataset:
Program: 7856
Project: 7856
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: 7857
Project: 7857
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: 7858
Project: 7858
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: 7859
Project: 7859
Buggy source:
@Override public void setFocus(){
}

Fixed version (ground truth):
@Override public void setFocus(){
  tv.getTree().setFocus();
}
Program: 7860
Project: 7860
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: 7863
Project: 7863
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: 7864
Project: 7864
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: 7865
Project: 7865
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: 7868
Project: 7868
Buggy source:
@Override public void setFocus(){
}

Fixed version (ground truth):
@Override public void setFocus(){
  tv.getTree().setFocus();
}
Program: 7869
Project: 7869
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: 7872
Project: 7872
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: 7875
Project: 7875
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: 7876
Project: 7876
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: 7877
Project: 7877
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: 7878
Project: 7878
Buggy source:
@Override public CoordinatesMonitor mouseCoordinatesMonitor(){
  return new CoordinatesMonitor(){
    @Override protected float readY(){
      return (float)mouseInput.getPosition().getX();
    }
    @Override protected float readX(){
      return (float)mouseInput.getPosition().getY();
    }
  }
;
}

Fixed version (ground truth):
@Override public CoordinatesMonitor mouseCoordinatesMonitor(){
  return new CoordinatesMonitor(){
    @Override protected float readY(){
      return (float)mouseInput.getPosition().getY();
    }
    @Override protected float readX(){
      return (float)mouseInput.getPosition().getX();
    }
  }
;
}
Program: 7879
Project: 7879
Buggy source:
public ClosureProperty(PropertiesHolder propertiesHolder,Closure closure){
  this.closure=closure;
  closure.setProperty("String_Node_Str",propertiesHolder);
}

Fixed version (ground truth):
public ClosureProperty(final PropertiesHolder propertiesHolder,Closure closure){
  this.closure=closure;
  closure.setDelegate(new Object(){
    public PropertiesHolder getEntity(){
      return propertiesHolder;
    }
  }
);
  closure.setResolveStrategy(Closure.DELEGATE_FIRST);
}
Program: 7880
Project: 7880
Buggy source:
public ConnectionImpl(ConnectionHandler handler,TradeHandler tradeHandler,String host,int port){
  this.host=host;
  this.port=port;
  this.handler=handler;
  connection=new EClientSocket(this.handler);
  this.handler.setHandler(tradeHandler);
}

Fixed version (ground truth):
public ConnectionImpl(ConnectionHandler handler,String host,int port){
  this.host=host;
  this.port=port;
  this.handler=handler;
  connection=new EClientSocket(this.handler);
}
Program: 7881
Project: 7881
Buggy source:
@Override public void historicalData(int reqId,String date,double open,double high,double low,double close,int volume,int count,double wap,boolean hasGaps){
  handler.handleHistoricalData(reqId,new MarketData(date,open,high,low,close,volume,count,wap,hasGaps));
}

Fixed version (ground truth):
@Override public void historicalData(int reqId,String date,double open,double high,double low,double close,int volume,int count,double wap,boolean hasGaps){
  for (  TradeHandler handler : handlers) {
    handler.handleHistoricalData(reqId,new MarketData(date,open,high,low,close,volume,count,wap,hasGaps));
  }
}
Program: 7882
Project: 7882
Buggy source:
@Override public void error(int i,int i1,String s){
  logger.log(Level.SEVERE,"String_Node_Str" + i + "String_Node_Str"+ i1+ "String_Node_Str"+ s);
  handler.handleError(i,i1,s);
}

Fixed version (ground truth):
@Override public void error(int i,int i1,String s){
  logger.log(Level.SEVERE,"String_Node_Str" + i + "String_Node_Str"+ i1+ "String_Node_Str"+ s);
  for (  TradeHandler handler : handlers) {
    handler.handleError(i,i1,s);
  }
}
Program: 7883
Project: 7883
Buggy source:
@Override public void updateMktDepthL2(int requestId,int rowId,String marketMaker,int operation,int side,double price,int size){
  handler.updateDepth(requestId,new DepthMarketData(Side.valueOf(side),Operation.valueOf(operation),rowId,price,size,marketMaker));
}

Fixed version (ground truth):
@Override public void updateMktDepthL2(int requestId,int rowId,String marketMaker,int operation,int side,double price,int size){
  for (  TradeHandler handler : handlers) {
    handler.updateDepth(requestId,new DepthMarketData(Side.valueOf(side),Operation.valueOf(operation),rowId,price,size,marketMaker));
  }
}
Program: 7884
Project: 7884
Buggy source:
@Override public void contractDetails(int requestId,ContractDetails contractDetails){
  handler.contractDetails(requestId,contractDetails);
}

Fixed version (ground truth):
@Override public void contractDetails(int requestId,ContractDetails contractDetails){
  for (  TradeHandler handler : handlers) {
    handler.contractDetails(requestId,contractDetails);
  }
}
Program: 7885
Project: 7885
Buggy source:
@Override public void contractDetailsEnd(int requestId){
  handler.contractDetailsEnd(requestId);
}

Fixed version (ground truth):
@Override public void contractDetailsEnd(int requestId){
  for (  TradeHandler handler : handlers) {
    handler.contractDetailsEnd(requestId);
  }
}
Program: 7886
Project: 7886
Buggy source:
@Override public void updateMktDepth(int requestId,int rowId,int operation,int side,double price,int size){
  handler.updateDepth(requestId,new DepthMarketData(Side.valueOf(side),Operation.valueOf(operation),rowId,price,size,null));
}

Fixed version (ground truth):
@Override public void updateMktDepth(int requestId,int rowId,int operation,int side,double price,int size){
  for (  TradeHandler handler : handlers) {
    handler.updateDepth(requestId,new DepthMarketData(Side.valueOf(side),Operation.valueOf(operation),rowId,price,size,null));
  }
}
Program: 7887
Project: 7887
Buggy source:
public BaseStrategy(RequestIdGenerator requestIdGenerator,ConnectionFactory connectionFactory){
  this.requestIdGenerator=requestIdGenerator;
  this.connectionFactory=connectionFactory;
  ;
}

Fixed version (ground truth):
public BaseStrategy(RequestIdGenerator requestIdGenerator,ConnectionFactory connectionFactory){
  this.requestIdGenerator=requestIdGenerator;
  this.connectionFactory=connectionFactory;
}
Program: 7888
Project: 7888
Buggy source:
public void setControlValue(int index,int value){
  if (index < controls.length)   controls[index].setValue((value / MAX_VALUE) * (controls[index].getMaximum() - controls[index].getMinimum()) + controls[index].getMinimum());
}

Fixed version (ground truth):
public void setControlValue(int index,int value){
  if (index < controls.length)   controls[index].setValue((value / MAX_FLOAT_VALUE) * (controls[index].getMaximum() - controls[index].getMinimum()) + controls[index].getMinimum());
}
Program: 7889
Project: 7889
Buggy source:
public int getControlValue(int index){
  if (index < controls.length)   return (int)((controls[index].getValue() - controls[index].getMinimum()) / (controls[index].getMaximum() - controls[index].getMinimum()) * MAX_VALUE);
  return 0;
}

Fixed version (ground truth):
public int getControlValue(int index){
  if (index < controls.length)   return (int)((controls[index].getValue() - controls[index].getMinimum()) / (controls[index].getMaximum() - controls[index].getMinimum()) * MAX_FLOAT_VALUE);
  return 0;
}
Program: 7890
Project: 7890
Buggy source:
public void openLine(float sampleRate,int buffersize) throws Exception {
  AudioFormat format=getAudioFormat(sampleRate);
  System.out.println("String_Node_Str" + format);
  DataLine.Info info=new DataLine.Info(SourceDataLine.class,format);
  line=(SourceDataLine)AudioSystem.getLine(info);
  line.open(format,buffersize);
  AudioFormat[] formats=info.getFormats();
  for (int k=0; k < formats.length; ++k)   System.out.println("String_Node_Str" + formats[k]);
  List list=new ArrayList();
  Control[] cs=line.getControls();
  for (int i=0; i < cs.length; ++i) {
    System.out.println("String_Node_Str" + cs[i].getType());
    if (cs[i] instanceof FloatControl)     list.add(cs[i]);
  }
  controls=new FloatControl[list.size()];
  list.toArray(controls);
  Mixer.Info[] minfos=AudioSystem.getMixerInfo();
  for (int i=0; i < minfos.length; ++i) {
    System.out.println("String_Node_Str" + minfos[i]);
    Mixer mixer=AudioSystem.getMixer(minfos[i]);
    Line.Info[] linfos=mixer.getSourceLineInfo();
    for (int j=0; j < linfos.length; ++j) {
      System.out.println("String_Node_Str" + linfos[j]);
      if (linfos[j] instanceof DataLine.Info) {
        info=(DataLine.Info)linfos[i];
        formats=info.getFormats();
        for (int k=0; k < formats.length; ++k)         System.out.println("String_Node_Str" + formats[k]);
      }
    }
  }
  line.start();
}

Fixed version (ground truth):
public void openLine(float sampleRate,int buffersize) throws Exception {
  AudioFormat format=getAudioFormat(sampleRate);
  System.out.println("String_Node_Str" + format);
  DataLine.Info info=new DataLine.Info(SourceDataLine.class,format);
  line=(SourceDataLine)AudioSystem.getLine(info);
  line.open(format,buffersize);
  List list=new ArrayList();
  Control[] cs=line.getControls();
  for (int i=0; i < cs.length; ++i) {
    System.out.println("String_Node_Str" + cs[i].getType());
    if (cs[i] instanceof FloatControl)     list.add(cs[i]);
  }
  controls=new FloatControl[list.size()];
  list.toArray(controls);
  line.start();
  dump();
}
Program: 7891
Project: 7891
Buggy source:
public void setSampleRate(int samplerate){
  samplerateControl.setValue(((float)samplerate) * (samplerateControl.getMaximum() - samplerateControl.getMinimum()) / 127.0f + samplerateControl.getMinimum());
}

Fixed version (ground truth):
public void setSampleRate(int samplerate){
  samplerateControl.setValue(((float)samplerate) * (samplerateControl.getMaximum() - samplerateControl.getMinimum()) / 127.0f + samplerateControl.getMinimum());
  System.out.println("String_Node_Str" + samplerateControl.getValue());
}
Program: 7893
Project: 7893
Buggy source:
public AudioOutput(int samples) throws Exception {
  float sampleRate=16000.0f;
  AudioFormat format=new AudioFormat(sampleRate,8,1,true,true);
  DataLine.Info info=new DataLine.Info(SourceDataLine.class,format);
  line=(SourceDataLine)AudioSystem.getLine(info);
  line.open(format,samples * 10);
  samplerateControl=(FloatControl)line.getControl(FloatControl.Type.SAMPLE_RATE);
  line.start();
  databuffer=new byte[samples];
}

Fixed version (ground truth):
public AudioOutput(int samples) throws Exception {
  float sampleRate=44100.0f;
  AudioFormat format=new AudioFormat(sampleRate,8,1,true,true);
  DataLine.Info info=new DataLine.Info(SourceDataLine.class,format);
  line=(SourceDataLine)AudioSystem.getLine(info);
  line.open(format,samples * 10);
  samplerateControl=(FloatControl)line.getControl(FloatControl.Type.SAMPLE_RATE);
  line.start();
  databuffer=new byte[samples];
}
Program: 7894
Project: 7894
Buggy source:
public void updateControlValues(){
  double arySum;
  double aryFact;
  for (int i=0; i < controlvalues.length; ++i) {
    if (controlvalues[i] >= 99)     rawCn[i]=0;
 else     rawCn[i]=(double)(100 - controlvalues[i] / 100);
  }
  normalizeAmplitudes();
}

Fixed version (ground truth):
public void updateControlValues(){
  double arySum;
  double aryFact;
  for (int i=0; i < controlvalues.length; ++i) {
    if (controlvalues[i] == 100)     rawCn[i]=0;
 else     rawCn[i]=(double)(100 - controlvalues[i]) / 100;
  }
  normalizeAmplitudes();
}
Program: 7895
Project: 7895
Buggy source:
public void stateChanged(ChangeEvent event){
  JSlider source=(JSlider)event.getSource();
  double value=(double)source.getValue();
  output.setScale(value);
}

Fixed version (ground truth):
public void stateChanged(ChangeEvent event){
  JSlider source=(JSlider)event.getSource();
  int value=(int)source.getValue();
  osc.setTimeDelta(0.001 * value);
}
Program: 7896
Project: 7896
Buggy source:
public void updateControlValues(){
  double arySum;
  double aryFact;
  for (int i=0; i < controlvalues.length; ++i) {
    if (controlvalues[i] <= 100)     rawCn[i]=0;
 else     rawCn[i]=100.0d - (double)controlvalues[i] / 100.0d;
  }
  normalize();
}

Fixed version (ground truth):
public void updateControlValues(){
  double arySum;
  double aryFact;
  for (int i=0; i < controlvalues.length; ++i) {
    if (controlvalues[i] == 99)     rawCn[i]=0;
 else     rawCn[i]=(double)(100 - controlvalues[i] / 100);
  }
  normalizeAmplitudes();
}
Program: 7897
Project: 7897
Buggy source:
public double[] calculate(){
  int x, y, sx, sy;
  PSI(t,0,0);
  x=0;
  y=(int)(wtx);
  values=new double[samples];
  values[0]=wtx;
  for (int i=1; i < samples; ++i) {
    sx=x;
    sy=y;
    PSI(t,(i) / HalfSize - HALFd,i);
    x=i;
    y=(int)(wtx);
    values[i]=wtx;
  }
  return values;
}

Fixed version (ground truth):
public double[] calculate(){
  PSI(t,0,0);
  values=new double[samples];
  values[0]=wtx;
  for (int i=1; i < samples; ++i) {
    PSI(t,(i) / HalfSize - HALFd,i);
    values[i]=wtx;
  }
  return values;
}
Program: 7898
Project: 7898
Buggy source:
public void setSingleState(int Nvalue){
  System.out.println("String_Node_Str" + Nvalue);
  double arySum;
  double aryFact;
  for (int i=0; i < controls; ++i) {
    rawCn[i]=0.0;
    aryCn[i]=0.0;
  }
  rawCn[Nvalue]=1.0;
  normalize();
  for (int i=0; i < controlvalues.length; ++i) {
    rawCn[i]=100.0d * aryCn[i];
    controlvalues[i]=100 - (int)rawCn[i];
  }
}

Fixed version (ground truth):
public void setSingleState(int Nvalue){
  System.out.println("String_Node_Str" + Nvalue);
  double arySum;
  double aryFact;
  for (int i=0; i < controls; ++i)   rawCn[i]=0.0;
  rawCn[Nvalue]=1.0;
  for (int i=0; i < Nstate; ++i)   aryCn[i]=0.0;
  normalizeAmplitudes();
  for (int i=0; i < controls; ++i) {
    rawCn[i]=100.0d * aryCn[i];
    controlvalues[i]=100 - (int)rawCn[i];
  }
}
Program: 7899
Project: 7899
Buggy source:
public void setGlauberState(int Nvalue){
  System.out.println("String_Node_Str" + Nvalue);
  energyControl=Nvalue;
  double arySum;
  double aryFact;
  double Xx;
  double Xx2;
  AverageEnerg=EnergyConstant + 0.0001 + (10.0 - 0.1 * (double)Nvalue);
  Xx=Math.sqrt(AverageEnerg - EnergyConstant);
  for (int ist=0; ist < Nstate; ist++) {
    Xx2=0.5 * Math.pow(Xx,2);
    aryCn[ist]=Math.pow(Xx,ist) / Math.sqrt(nfact[ist]) * Math.exp(-Xx2);
  }
  for (int i=0; i < controls; i++)   rawCn[i]=aryCn[i];
  for (int i=0; i < controls; ++i) {
    rawCn[i]=100 * aryCn[i];
    controlvalues[i]=100 - (int)rawCn[i];
  }
}

Fixed version (ground truth):
public void setGlauberState(int Nvalue){
  System.out.println("String_Node_Str" + Nvalue);
  energyControl=Nvalue;
  double arySum;
  double aryFact;
  double Xx;
  double Xx2;
  AverageEnerg=EnergyConstant + 0.0001 + (10.0 - 0.1 * (double)Nvalue);
  Xx=Math.sqrt(AverageEnerg - EnergyConstant);
  for (int i=0; i < Nstate; ++i) {
    Xx2=0.5d * Math.pow(Xx,2);
    aryCn[i]=Math.pow(Xx,i) / Math.sqrt(nfact[i]) * Math.exp(-Xx2);
  }
  for (int i=0; i < controls; i++)   rawCn[i]=aryCn[i];
  for (int i=0; i < controls; ++i) {
    rawCn[i]=100 * aryCn[i];
    controlvalues[i]=100 - (int)rawCn[i];
  }
}
Program: 7902
Project: 7902
Buggy source:
private void buildCashStream(){
  stream=new CashStream();
  TimePoint ref=DateRoller.NEXT_BUZ_DAY.roll(timestamp);
  TimePoint payday=DateRoller.MOD_NEXT_BUZ_DAY.roll(ref.plus(maturity));
  stream.add(CashFlow.create(1 / rateType.disFactorAfter(rate,payday.minus(ref))),payday);
}

Fixed version (ground truth):
private void buildCashStream(){
  stream=new CashStream();
  TimePoint ref=DateRoller.NEXT_BUZ_DAY.roll(timestamp);
  TimePoint payday=DateRoller.MOD_NEXT_BUZ_DAY.roll(ref.plus(maturity));
  if (maturity.equals(new TimeSpan(0,0,1)) || maturity.equals(new TimeSpan(0,0,2)))   payday=DateRoller.NEXT_BUZ_DAY.roll(ref.plus(maturity));
  stream.add(CashFlow.create(1 / rateType.disFactorAfter(rate,payday.minus(ref))),payday);
}
Program: 7903
Project: 7903
Buggy source:
public TestDataSet(TimePoint time){
  this.time=time;
  cash_on=buildCash("String_Node_Str",new TimeSpan(0,0,1),3.20);
  cash_tn=buildCash("String_Node_Str",new TimeSpan(0,0,2),3.25);
  cash_1w=buildCash("String_Node_Str",new TimeSpan(0,0,7),3.40);
  cash_2w=buildCash("String_Node_Str",new TimeSpan(0,0,14),3.45);
  cash_1m=buildCash("String_Node_Str",new TimeSpan(0,1,0),3.50);
  cash_2m=buildCash("String_Node_Str",new TimeSpan(0,2,0),3.60);
  cash_3m=buildCash("String_Node_Str",new TimeSpan(0,3,0),3.65);
  fra_1x4=buildFRA("String_Node_Str",new TimeSpan(0,1,0),new TimeSpan(0,4,0),3.85);
  fra_2x5=buildFRA("String_Node_Str",new TimeSpan(0,2,0),new TimeSpan(0,5,0),4.00);
  fra_3x6=buildFRA("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(0,6,0),4.15);
  fra_6x9=buildFRA("String_Node_Str",new TimeSpan(0,6,0),new TimeSpan(0,9,0),4.40);
  swap_1y=buildSwap("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(1,0,0),4.40);
  swap_2y=buildSwap("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(2,0,0),4.65);
  swap_3y=buildSwap("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(3,0,0),4.90);
  pool.debug();
}

Fixed version (ground truth):
public TestDataSet(TimePoint time){
  this.time=time;
  cash_on=buildCash("String_Node_Str",new TimeSpan(0,0,1),3.20);
  cash_tn=buildCash("String_Node_Str",new TimeSpan(0,0,2),3.25);
  cash_1w=buildCash("String_Node_Str",new TimeSpan(0,0,7),3.40);
  cash_2w=buildCash("String_Node_Str",new TimeSpan(0,0,14),3.45);
  cash_1m=buildCash("String_Node_Str",new TimeSpan(0,1,0),3.50);
  cash_2m=buildCash("String_Node_Str",new TimeSpan(0,2,0),3.60);
  cash_3m=buildCash("String_Node_Str",new TimeSpan(0,3,0),3.65);
  fra_1x4=buildFRA("String_Node_Str",new TimeSpan(0,1,0),new TimeSpan(0,4,0),3.85);
  fra_2x5=buildFRA("String_Node_Str",new TimeSpan(0,2,0),new TimeSpan(0,5,0),4.00);
  fra_3x6=buildFRA("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(0,6,0),4.15);
  fra_6x9=buildFRA("String_Node_Str",new TimeSpan(0,6,0),new TimeSpan(0,9,0),4.40);
  swap_1y=buildSwap("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(1,0,0),4.40);
  swap_2y=buildSwap("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(2,0,0),4.65);
  swap_3y=buildSwap("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(3,0,0),4.90);
}
Program: 7904
Project: 7904
Buggy source:
private void bootstrap(){
  ReverseSolver solver=new ReverseSolver(curve);
  boolean stable=false;
  Iterator<MarketData> it=null;
  while (!stable) {
    it=data.iterator();
    stable=true;
    while (it.hasNext()) {
      MarketData entry=it.next();
      if (entry.getInst() instanceof InterestRateInstrument) {
        InterestRateInstrument inst=(InterestRateInstrument)entry.getInst();
        inst.valueWith(solver);
        if (solver.solve(entry.getPrice())) {
          curve.addDataPoint(solver.getSolutionTime(),solver.getSolutionDf());
          it.remove();
          stable=false;
        }
      }
 else {
        it.remove();
        continue;
      }
    }
  }
}

Fixed version (ground truth):
private void bootstrap(){
  ReverseSolver solver=new ReverseSolver(curve);
  boolean stable=false;
  Iterator<MarketData> it=null;
  while (!stable) {
    it=data.iterator();
    stable=true;
    while (it.hasNext()) {
      MarketData entry=it.next();
      if (entry.getInst() instanceof InterestRateInstrument) {
        InterestRateInstrument inst=(InterestRateInstrument)entry.getInst();
        CashFlow value=inst.valueWith(solver);
        if (value != null) {
          if (!entry.getPrice().equals(value))           System.err.println("String_Node_Str" + inst.getName() + "String_Node_Str"+ entry.getPrice()+ "String_Node_Str"+ value);
          it.remove();
        }
 else         if (solver.solve(entry.getPrice())) {
          curve.addDataPoint(solver.getSolutionTime(),solver.getSolutionDf());
          it.remove();
          stable=false;
        }
      }
 else {
        it.remove();
        continue;
      }
    }
  }
}
Program: 7905
Project: 7905
Buggy source:
@Override public CashFlow getValue(){
  return null;
}

Fixed version (ground truth):
@Override public CashFlow getValue(){
  if (eva.pendingFlow == null)   return eva.presentValue;
 else   return null;
}
Program: 7906
Project: 7906
Buggy source:
@Override public void visit(CashFlow cf,TimePoint tp){
  if (presentValue == null)   return;
  try {
    presentValue=presentValue.plus(cf.multiply(curve.disFactorAt(tp)));
  }
 catch (  OutOfRangeException e) {
    if (pendingFlow == null) {
      pendingFlow=cf;
      pendingTime=tp;
    }
 else {
      failed=true;
    }
  }
}

Fixed version (ground truth):
@Override public void visit(CashFlow cf,TimePoint tp){
  if (failed || presentValue == null)   return;
  try {
    presentValue=presentValue.plus(cf.multiply(curve.disFactorAt(tp)));
  }
 catch (  OutOfRangeException e) {
    if (pendingFlow == null) {
      pendingFlow=cf;
      pendingTime=tp;
    }
 else {
      failed=true;
    }
  }
}
Program: 7907
Project: 7907
Buggy source:
private void buildCashStream(){
  stream=new CashStream();
  TimePoint ref=DateRoller.NEXT_BUZ_DAY.roll(timestamp);
  TimePoint payday=DateRoller.MOD_NEXT_BUZ_DAY.roll(ref.plus(maturity));
  if (maturity.equals(new TimeSpan(0,0,1)) || maturity.equals(new TimeSpan(0,0,2)))   payday=DateRoller.NEXT_BUZ_DAY.roll(ref.plus(maturity));
  stream.add(CashFlow.create(1 / rateType.disFactorAfter(rate,payday.minus(ref))),payday);
}

Fixed version (ground truth):
private void buildCashStream(){
  stream=new CashStream();
  TimePoint ref=DateRoller.NEXT_BUZ_DAY.roll(timestamp);
  TimePoint payday=DateRoller.MOD_NEXT_BUZ_DAY.roll(ref.plus(maturity));
  if (payday.minus(ref).getDay() <= 0)   payday=DateRoller.NEXT_BUZ_DAY.roll(ref.plus(maturity));
  stream.add(CashFlow.create(1 / rateType.disFactorAfter(rate,payday.minus(ref))),payday);
}
Program: 7908
Project: 7908
Buggy source:
private void buildCashStream(){
  stream=new CashStream();
  TimePoint ref=DateRoller.NEXT_BUZ_DAY.roll(timestamp);
  TimePoint effday=DateRoller.MOD_NEXT_BUZ_DAY.roll(ref.plus(effective));
  stream.add(CashFlow.create(-1),effday);
  TimePoint termday=DateRoller.MOD_NEXT_BUZ_DAY.roll(ref.plus(termination));
  stream.add(CashFlow.create(1 / rateType.disFactorAfter(rate,termday.minus(effday))),termday);
}

Fixed version (ground truth):
private void buildCashStream(){
  stream=new CashStream();
  TimePoint ref=DateRoller.NEXT_BUZ_DAY.roll(timestamp);
  TimePoint effday=DateRoller.MOD_NEXT_BUZ_DAY.roll(ref.plus(effective));
  if (effday.minus(ref).getDay() <= 0)   effday=DateRoller.NEXT_BUZ_DAY.roll(ref.plus(effective));
  stream.add(CashFlow.create(-1),effday);
  TimePoint termday=DateRoller.MOD_NEXT_BUZ_DAY.roll(ref.plus(termination));
  if (termday.minus(effday).getDay() <= 0)   termday=DateRoller.NEXT_BUZ_DAY.roll(effday.plus(TimeSpan.NEXTDAY));
  stream.add(CashFlow.create(1 / rateType.disFactorAfter(rate,termday.minus(effday))),termday);
}
Program: 7909
Project: 7909
Buggy source:
public TestDataSet(TimePoint time){
  this.time=time;
  cash_on=buildCash("String_Node_Str",new TimeSpan(0,0,1),3.20);
  cash_tn=buildCash("String_Node_Str",new TimeSpan(0,0,2),3.25);
  cash_1w=buildCash("String_Node_Str",new TimeSpan(0,0,7),3.40);
  cash_2w=buildCash("String_Node_Str",new TimeSpan(0,0,14),3.45);
  cash_1m=buildCash("String_Node_Str",new TimeSpan(0,1,0),3.50);
  cash_2m=buildCash("String_Node_Str",new TimeSpan(0,2,0),3.60);
  cash_3m=buildCash("String_Node_Str",new TimeSpan(0,3,0),3.65);
  fra_1x4=buildFRA("String_Node_Str",new TimeSpan(0,1,0),new TimeSpan(0,4,0),3.85);
  fra_2x5=buildFRA("String_Node_Str",new TimeSpan(0,2,0),new TimeSpan(0,5,0),4.00);
  fra_3x6=buildFRA("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(0,6,0),4.15);
  fra_6x9=buildFRA("String_Node_Str",new TimeSpan(0,6,0),new TimeSpan(0,9,0),4.40);
  swap_1y=buildSwap("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(1,0,0),4.40);
  swap_2y=buildSwap("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(2,0,0),4.65);
  swap_3y=buildSwap("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(3,0,0),4.90);
}

Fixed version (ground truth):
public TestDataSet(TimePoint time){
  this.time=time;
  cash_on=buildCash("String_Node_Str",new TimeSpan(0,0,1),3.20);
  cash_tn=buildFRA("String_Node_Str",new TimeSpan(0,0,1),new TimeSpan(0,0,2),3.25);
  cash_1w=buildCash("String_Node_Str",new TimeSpan(0,0,7),3.40);
  cash_2w=buildCash("String_Node_Str",new TimeSpan(0,0,14),3.45);
  cash_1m=buildCash("String_Node_Str",new TimeSpan(0,1,0),3.50);
  cash_2m=buildCash("String_Node_Str",new TimeSpan(0,2,0),3.60);
  cash_3m=buildCash("String_Node_Str",new TimeSpan(0,3,0),3.65);
  fra_1x4=buildFRA("String_Node_Str",new TimeSpan(0,1,0),new TimeSpan(0,4,0),3.85);
  fra_2x5=buildFRA("String_Node_Str",new TimeSpan(0,2,0),new TimeSpan(0,5,0),4.00);
  fra_3x6=buildFRA("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(0,6,0),4.15);
  fra_6x9=buildFRA("String_Node_Str",new TimeSpan(0,6,0),new TimeSpan(0,9,0),4.40);
  swap_1y=buildSwap("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(1,0,0),4.40);
  swap_2y=buildSwap("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(2,0,0),4.65);
  swap_3y=buildSwap("String_Node_Str",new TimeSpan(0,3,0),new TimeSpan(3,0,0),4.90);
}
Program: 7911
Project: 7911
Buggy source:
private void calcBtnMinusActions(){
  uint64Instance=uint64Instance_SaveValue.subtract(uint64Instance);
}

Fixed version (ground truth):
private void calcBtnMinusActions(){
  btnClear.setText("String_Node_Str");
  btnPlus.setVisibility(View.VISIBLE);
  btnMinus.setVisibility(View.VISIBLE);
  btnTimes.setVisibility(View.VISIBLE);
  btnDivide.setVisibility(View.VISIBLE);
  btnAND.setVisibility(View.VISIBLE);
  btnOR.setVisibility(View.VISIBLE);
  btnNOT.setVisibility(View.VISIBLE);
  btnXOR.setVisibility(View.VISIBLE);
  btnShiftL.setVisibility(View.VISIBLE);
  btnShiftR.setVisibility(View.VISIBLE);
  btnEquals.setVisibility(View.INVISIBLE);
  btnEquals.setEnabled(false);
  btnMinus.setEnabled(true);
  uint64Instance=uint64Instance_SaveValue.subtract(uint64Instance);
}
Program: 7912
Project: 7912
Buggy source:
private void calcBtnTimesActions(){
  uint64Instance=uint64Instance_SaveValue.multiply(uint64Instance);
}

Fixed version (ground truth):
private void calcBtnTimesActions(){
  btnClear.setText("String_Node_Str");
  btnPlus.setVisibility(View.VISIBLE);
  btnMinus.setVisibility(View.VISIBLE);
  btnTimes.setVisibility(View.VISIBLE);
  btnDivide.setVisibility(View.VISIBLE);
  btnAND.setVisibility(View.VISIBLE);
  btnOR.setVisibility(View.VISIBLE);
  btnNOT.setVisibility(View.VISIBLE);
  btnXOR.setVisibility(View.VISIBLE);
  btnShiftL.setVisibility(View.VISIBLE);
  btnShiftR.setVisibility(View.VISIBLE);
  btnEquals.setVisibility(View.INVISIBLE);
  btnEquals.setEnabled(false);
  btnTimes.setEnabled(true);
  uint64Instance=uint64Instance_SaveValue.multiply(uint64Instance);
}
Program: 7913
Project: 7913
Buggy source:
private void calcBtnShiftRActions(){
  uint64Instance=uint64Instance_SaveValue.shiftRight(1);
}

Fixed version (ground truth):
private void calcBtnShiftRActions(){
  btnClear.setText("String_Node_Str");
  btnPlus.setVisibility(View.VISIBLE);
  btnMinus.setVisibility(View.VISIBLE);
  btnTimes.setVisibility(View.VISIBLE);
  btnDivide.setVisibility(View.VISIBLE);
  btnAND.setVisibility(View.VISIBLE);
  btnOR.setVisibility(View.VISIBLE);
  btnNOT.setVisibility(View.VISIBLE);
  btnXOR.setVisibility(View.VISIBLE);
  btnShiftL.setVisibility(View.VISIBLE);
  btnShiftR.setVisibility(View.VISIBLE);
  btnEquals.setVisibility(View.INVISIBLE);
  btnEquals.setEnabled(false);
  btnShiftR.setEnabled(true);
  uint64Instance=uint64Instance_SaveValue.shiftRight(1);
}