nus-yam/ex-repair huggingface dataset:
Program: 92722
Project: 92722
Buggy source:
public boolean validate(IProject project,String path){
  if (super.validate(project,path)) {
    String traceLibPath=TraceHelper.getTraceLibDirFromProject(project);
    try {
      LTTngTraceVersion version=new LTTngTraceVersion(path,traceLibPath);
      return version.isValidLttngTrace();
    }
 catch (    LttngException e) {
    }
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean validate(IProject project,String path){
  if (super.validate(project,path)) {
    String traceLibPath=TraceHelper.getTraceLibDirFromProject(project);
    try {
      LTTngTraceVersion version=new LTTngTraceVersion(path,traceLibPath);
      return version.isValidLttngTrace();
    }
 catch (    LttngException e) {
    }
  }
  return false;
}
Program: 92724
Project: 92724
Buggy source:
/** 
 * <p> Handles: LTT_EVENT_EXEC </p> Replace C function "after_fs_exec_hook" in eventhooks.c
 * @return
 */
final ILttngEventProcessor getProcessExecHandler(){
  AbsFlowTRangeUpdate handler=new AbsFlowTRangeUpdate(){
    @Override public boolean process(    LttngEvent trcEvent,    LttngTraceState traceSt){
      LttngProcessState process=traceSt.getRunning_process().get(trcEvent.getCpuId());
      if (process != null) {
        TimeRangeEventProcess localProcess=procContainer.findProcess(process.getPid(),process.getCpu(),traceSt.getTraceId(),process.getCreation_time());
        if (localProcess == null) {
          if (process.getPid().equals(0) || !process.getPid().equals(process.getPpid())) {
            TmfTimeRange timeRange=traceSt.getContext().getTraceTimeWindow();
            localProcess=addLocalProcess(process,timeRange.getStartTime().getValue(),timeRange.getEndTime().getValue(),traceSt.getTraceId());
          }
 else {
            TraceDebug.debug("String_Node_Str");
          }
        }
 else {
          localProcess.setName(process.getName());
        }
      }
 else {
        TraceDebug.debug("String_Node_Str");
      }
      return false;
    }
  }
;
  return handler;
}

Fixed version (ground truth):
/** 
 * <p> Handles: LTT_EVENT_EXEC </p> Replace C function "after_fs_exec_hook" in eventhooks.c
 * @return
 */
final ILttngEventProcessor getProcessExecHandler(){
  AbsFlowTRangeUpdate handler=new AbsFlowTRangeUpdate(){
    @Override public boolean process(    LttngEvent trcEvent,    LttngTraceState traceSt){
      LttngProcessState process=traceSt.getRunning_process().get(trcEvent.getCpuId());
      if (process != null) {
        TimeRangeEventProcess localProcess=procContainer.findProcess(process.getPid(),process.getCpu(),traceSt.getTraceId(),process.getCreation_time());
        if (localProcess == null) {
          if (process.getPid() == 0 || !process.getPid().equals(process.getPpid())) {
            TmfTimeRange timeRange=traceSt.getContext().getTraceTimeWindow();
            localProcess=addLocalProcess(process,timeRange.getStartTime().getValue(),timeRange.getEndTime().getValue(),traceSt.getTraceId());
          }
 else {
            TraceDebug.debug("String_Node_Str");
          }
        }
 else {
          localProcess.setName(process.getName());
        }
      }
 else {
        TraceDebug.debug("String_Node_Str");
      }
      return false;
    }
  }
;
  return handler;
}
Program: 92725
Project: 92725
Buggy source:
@Override public boolean process(LttngEvent trcEvent,LttngTraceState traceSt){
  int first_cpu;
  int nb_cpus;
  Long pid_in=getAFieldLong(trcEvent,traceSt,Fields.LTT_FIELD_PID);
  if (pid_in != null) {
    if (pid_in == 0L) {
      first_cpu=0;
      nb_cpus=traceSt.getNumberOfCPUs();
    }
 else {
      first_cpu=ANY_CPU.intValue();
      nb_cpus=ANY_CPU.intValue() + 1;
    }
    for (int cpu=first_cpu; cpu < nb_cpus; cpu++) {
      LttngProcessState process_in=lttv_state_find_process(traceSt,Long.valueOf(cpu),pid_in);
      if (process_in != null) {
        TimeRangeEventProcess localProcess=procContainer.findProcess(process_in.getPid(),process_in.getCpu(),traceSt.getTraceId(),process_in.getCreation_time());
        if (localProcess == null) {
          if (process_in.getPid().equals(0) || !process_in.getPid().equals(process_in.getPpid())) {
            TmfTimeRange timeRange=traceSt.getContext().getTraceTimeWindow();
            localProcess=addLocalProcess(process_in,timeRange.getStartTime().getValue(),timeRange.getEndTime().getValue(),traceSt.getTraceId());
          }
 else {
            TraceDebug.debug("String_Node_Str");
            return false;
          }
        }
        localProcess.setName(process_in.getName());
        localProcess.setPpid(process_in.getPpid());
        localProcess.setTgid(process_in.getTgid());
      }
 else {
        TraceDebug.debug("String_Node_Str");
      }
    }
  }
 else {
    TraceDebug.debug("String_Node_Str");
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean process(LttngEvent trcEvent,LttngTraceState traceSt){
  int first_cpu;
  int nb_cpus;
  Long pid_in=getAFieldLong(trcEvent,traceSt,Fields.LTT_FIELD_PID);
  if (pid_in != null) {
    if (pid_in == 0L) {
      first_cpu=0;
      nb_cpus=traceSt.getNumberOfCPUs();
    }
 else {
      first_cpu=ANY_CPU.intValue();
      nb_cpus=ANY_CPU.intValue() + 1;
    }
    for (int cpu=first_cpu; cpu < nb_cpus; cpu++) {
      LttngProcessState process_in=lttv_state_find_process(traceSt,Long.valueOf(cpu),pid_in);
      if (process_in != null) {
        TimeRangeEventProcess localProcess=procContainer.findProcess(process_in.getPid(),process_in.getCpu(),traceSt.getTraceId(),process_in.getCreation_time());
        if (localProcess == null) {
          if (process_in.getPid() == 0 || !process_in.getPid().equals(process_in.getPpid())) {
            TmfTimeRange timeRange=traceSt.getContext().getTraceTimeWindow();
            localProcess=addLocalProcess(process_in,timeRange.getStartTime().getValue(),timeRange.getEndTime().getValue(),traceSt.getTraceId());
          }
 else {
            TraceDebug.debug("String_Node_Str");
            return false;
          }
        }
        localProcess.setName(process_in.getName());
        localProcess.setPpid(process_in.getPpid());
        localProcess.setTgid(process_in.getTgid());
      }
 else {
        TraceDebug.debug("String_Node_Str");
      }
    }
  }
 else {
    TraceDebug.debug("String_Node_Str");
  }
  return false;
}
Program: 92726
Project: 92726
Buggy source:
/** 
 * <p> LTT_EVENT_THREAD_BRAND </p> Replace C function "after_user_generic_thread_brand_hook" in eventhooks.c
 * @return
 */
final ILttngEventProcessor GetThreadBrandHandler(){
  AbsFlowTRangeUpdate handler=new AbsFlowTRangeUpdate(){
    @Override public boolean process(    LttngEvent trcEvent,    LttngTraceState traceSt){
      LttngProcessState process=traceSt.getRunning_process().get(trcEvent.getCpuId());
      if (process != null) {
        TimeRangeEventProcess localProcess=procContainer.findProcess(process.getPid(),process.getCpu(),traceSt.getTraceId(),process.getCreation_time());
        if (localProcess == null) {
          if (process.getPid().equals(0) || !process.getPid().equals(process.getPpid())) {
            TmfTimeRange timeRange=traceSt.getContext().getTraceTimeWindow();
            localProcess=addLocalProcess(process,timeRange.getStartTime().getValue(),timeRange.getEndTime().getValue(),traceSt.getTraceId());
          }
 else {
            TraceDebug.debug("String_Node_Str");
          }
        }
 else {
          localProcess.setBrand(process.getBrand());
        }
      }
 else {
        TraceDebug.debug("String_Node_Str");
      }
      return false;
    }
  }
;
  return handler;
}

Fixed version (ground truth):
/** 
 * <p> LTT_EVENT_THREAD_BRAND </p> Replace C function "after_user_generic_thread_brand_hook" in eventhooks.c
 * @return
 */
final ILttngEventProcessor GetThreadBrandHandler(){
  AbsFlowTRangeUpdate handler=new AbsFlowTRangeUpdate(){
    @Override public boolean process(    LttngEvent trcEvent,    LttngTraceState traceSt){
      LttngProcessState process=traceSt.getRunning_process().get(trcEvent.getCpuId());
      if (process != null) {
        TimeRangeEventProcess localProcess=procContainer.findProcess(process.getPid(),process.getCpu(),traceSt.getTraceId(),process.getCreation_time());
        if (localProcess == null) {
          if (process.getPid() == 0 || !process.getPid().equals(process.getPpid())) {
            TmfTimeRange timeRange=traceSt.getContext().getTraceTimeWindow();
            localProcess=addLocalProcess(process,timeRange.getStartTime().getValue(),timeRange.getEndTime().getValue(),traceSt.getTraceId());
          }
 else {
            TraceDebug.debug("String_Node_Str");
          }
        }
 else {
          localProcess.setBrand(process.getBrand());
        }
      }
 else {
        TraceDebug.debug("String_Node_Str");
      }
      return false;
    }
  }
;
  return handler;
}
Program: 92727
Project: 92727
Buggy source:
/** 
 * <p> Handles: LTT_EVENT_PROCESS_EXIT </p> Replace C function "after_process_exit_hook" in eventhooks.c
 * @return
 */
final ILttngEventProcessor getProcessExitHandler(){
  AbsFlowTRangeUpdate handler=new AbsFlowTRangeUpdate(){
    @Override public boolean process(    LttngEvent trcEvent,    LttngTraceState traceSt){
      LttngProcessState process=traceSt.getRunning_process().get(trcEvent.getCpuId());
      if (process != null) {
        TimeRangeEventProcess localProcess=procContainer.findProcess(process.getPid(),process.getCpu(),traceSt.getTraceId(),process.getCreation_time());
        if (localProcess == null) {
          if (process.getPid().equals(0) || !process.getPid().equals(process.getPpid())) {
            TmfTimeRange timeRange=traceSt.getContext().getTraceTimeWindow();
            localProcess=addLocalProcess(process,timeRange.getStartTime().getValue(),timeRange.getEndTime().getValue(),traceSt.getTraceId());
          }
 else {
            TraceDebug.debug("String_Node_Str");
          }
        }
      }
 else {
        TraceDebug.debug("String_Node_Str");
      }
      return false;
    }
  }
;
  return handler;
}

Fixed version (ground truth):
/** 
 * <p> Handles: LTT_EVENT_PROCESS_EXIT </p> Replace C function "after_process_exit_hook" in eventhooks.c
 * @return
 */
final ILttngEventProcessor getProcessExitHandler(){
  AbsFlowTRangeUpdate handler=new AbsFlowTRangeUpdate(){
    @Override public boolean process(    LttngEvent trcEvent,    LttngTraceState traceSt){
      LttngProcessState process=traceSt.getRunning_process().get(trcEvent.getCpuId());
      if (process != null) {
        TimeRangeEventProcess localProcess=procContainer.findProcess(process.getPid(),process.getCpu(),traceSt.getTraceId(),process.getCreation_time());
        if (localProcess == null) {
          if (process.getPid() == 0 || !process.getPid().equals(process.getPpid())) {
            TmfTimeRange timeRange=traceSt.getContext().getTraceTimeWindow();
            localProcess=addLocalProcess(process,timeRange.getStartTime().getValue(),timeRange.getEndTime().getValue(),traceSt.getTraceId());
          }
 else {
            TraceDebug.debug("String_Node_Str");
          }
        }
      }
 else {
        TraceDebug.debug("String_Node_Str");
      }
      return false;
    }
  }
;
  return handler;
}
Program: 92729
Project: 92729
Buggy source:
/** 
 * <p> Handles: LTT_EVENT_PROCESS_FORK </p> Replace C function "after_process_fork_hook" in eventhooks.c <p> Fields: LTT_FIELD_CHILD_PID </p>
 * @return
 */
final ILttngEventProcessor getProcessForkHandler(){
  AbsFlowTRangeUpdate handler=new AbsFlowTRangeUpdate(){
    @Override public boolean process(    LttngEvent trcEvent,    LttngTraceState traceSt){
      Long child_pid=getAFieldLong(trcEvent,traceSt,Fields.LTT_FIELD_CHILD_PID);
      LttngProcessState process_child=lttv_state_find_process(traceSt,trcEvent.getCpuId(),child_pid);
      if (process_child != null) {
        TimeRangeEventProcess localProcess=procContainer.findProcess(process_child.getPid(),process_child.getCpu(),traceSt.getTraceId(),process_child.getCreation_time());
        if (localProcess == null) {
          if (child_pid.equals(0) || !child_pid.equals(process_child.getPpid())) {
            TmfTimeRange timeRange=traceSt.getContext().getTraceTimeWindow();
            localProcess=addLocalProcess(process_child,timeRange.getStartTime().getValue(),timeRange.getEndTime().getValue(),traceSt.getTraceId());
          }
 else {
            TraceDebug.debug("String_Node_Str");
          }
        }
 else {
          localProcess.setPpid(process_child.getPpid());
          localProcess.setTgid(process_child.getTgid());
        }
      }
 else {
        TraceDebug.debug("String_Node_Str");
      }
      return false;
    }
  }
;
  return handler;
}

Fixed version (ground truth):
/** 
 * <p> Handles: LTT_EVENT_PROCESS_FORK </p> Replace C function "after_process_fork_hook" in eventhooks.c <p> Fields: LTT_FIELD_CHILD_PID </p>
 * @return
 */
final ILttngEventProcessor getProcessForkHandler(){
  AbsFlowTRangeUpdate handler=new AbsFlowTRangeUpdate(){
    @Override public boolean process(    LttngEvent trcEvent,    LttngTraceState traceSt){
      Long child_pid=getAFieldLong(trcEvent,traceSt,Fields.LTT_FIELD_CHILD_PID);
      LttngProcessState process_child=lttv_state_find_process(traceSt,trcEvent.getCpuId(),child_pid);
      if (process_child != null) {
        TimeRangeEventProcess localProcess=procContainer.findProcess(process_child.getPid(),process_child.getCpu(),traceSt.getTraceId(),process_child.getCreation_time());
        if (localProcess == null) {
          if (child_pid == 0 || !child_pid.equals(process_child.getPpid())) {
            TmfTimeRange timeRange=traceSt.getContext().getTraceTimeWindow();
            localProcess=addLocalProcess(process_child,timeRange.getStartTime().getValue(),timeRange.getEndTime().getValue(),traceSt.getTraceId());
          }
 else {
            TraceDebug.debug("String_Node_Str");
          }
        }
 else {
          localProcess.setPpid(process_child.getPpid());
          localProcess.setTgid(process_child.getTgid());
        }
      }
 else {
        TraceDebug.debug("String_Node_Str");
      }
      return false;
    }
  }
;
  return handler;
}
Program: 92730
Project: 92730
Buggy source:
/** 
 * @param range
 * @param timestamp
 */
private void updateSlider(TmfTimeRange range,ITmfTimestamp timestamp){
  if (fSlider.isDisposed())   return;
  int scale=range.getEndTime().getScale();
  long total=range.getStartTime().getDelta(range.getEndTime()).getValue();
  long relative=range.getStartTime().getDelta(timestamp).getValue();
  final long position=(total > 0) ? (relative * SLIDER_RANGE / total) : 0;
  long current=fSlider.getSelection();
  if (position != current) {
    fSlider.getDisplay().asyncExec(new Runnable(){
      @Override public void run(){
        fSlider.setSelection((int)position);
      }
    }
);
  }
}

Fixed version (ground truth):
/** 
 * @param range
 * @param timestamp
 */
private void updateSlider(TmfTimeRange range,ITmfTimestamp timestamp){
  if (fSlider.isDisposed())   return;
  long total=range.getStartTime().getDelta(range.getEndTime()).getValue();
  long relative=range.getStartTime().getDelta(timestamp).getValue();
  final long position=(total > 0) ? (relative * SLIDER_RANGE / total) : 0;
  long current=fSlider.getSelection();
  if (position != current) {
    fSlider.getDisplay().asyncExec(new Runnable(){
      @Override public void run(){
        fSlider.setSelection((int)position);
      }
    }
);
  }
}
Program: 92732
Project: 92732
Buggy source:
/** 
 * Selects the experiment. 
 * @param wait true to wait for indexing to finish else false
 */
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) public void selectExperiment(boolean wait){
  fTrace=setupTrace(fParser);
  ITmfTrace traces[]=new ITmfTrace[1];
  traces[0]=fTrace;
  fExperiment=new TmfExperiment<TmfEvent>(TmfEvent.class,"String_Node_Str",traces);
  fTrace.broadcast(new TmfExperimentSelectedSignal<TmfEvent>(this,fExperiment));
  if (wait) {
    waitForJobs();
    delay(IUml2SDTestConstants.GUI_REFESH_DELAY);
  }
}

Fixed version (ground truth):
/** 
 * Selects the experiment. 
 * @param wait true to wait for indexing to finish else false
 */
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) public void selectExperiment(boolean wait){
  fTrace=setupTrace(fParser);
  ITmfTrace traces[]=new ITmfTrace[1];
  traces[0]=fTrace;
  fExperiment=new TmfExperiment<TmfEvent>(TmfEvent.class,"String_Node_Str",traces);
  fTrace.broadcast(new TmfExperimentSelectedSignal<TmfEvent>(this,fExperiment));
  if (wait) {
    while (fExperiment.getNbEvents() == 0) {
      delay(IUml2SDTestConstants.GUI_REFESH_DELAY);
    }
    waitForJobs();
    delay(IUml2SDTestConstants.GUI_REFESH_DELAY);
  }
}
Program: 92733
Project: 92733
Buggy source:
@Override public void refresh(){
  Display.getDefault().asyncExec(new Runnable(){
    @Override public void run(){
      IWorkbench wb=PlatformUI.getWorkbench();
      IWorkbenchPage activePage=wb.getActiveWorkbenchWindow().getActivePage();
      for (      IViewReference viewReference : activePage.getViewReferences()) {
        IViewPart viewPart=viewReference.getView(false);
        if (viewPart instanceof CommonNavigator) {
          CommonViewer commonViewer=((CommonNavigator)viewPart).getCommonViewer();
          commonViewer.refresh();
        }
      }
    }
  }
);
}

Fixed version (ground truth):
@Override public void refresh(){
  Display.getDefault().asyncExec(new Runnable(){
    @Override public void run(){
      IWorkbench wb=PlatformUI.getWorkbench();
      IWorkbenchWindow wbWindow=wb.getActiveWorkbenchWindow();
      if (wbWindow == null) {
        return;
      }
      IWorkbenchPage activePage=wbWindow.getActivePage();
      for (      IViewReference viewReference : activePage.getViewReferences()) {
        IViewPart viewPart=viewReference.getView(false);
        if (viewPart instanceof CommonNavigator) {
          CommonViewer commonViewer=((CommonNavigator)viewPart).getCommonViewer();
          commonViewer.refresh();
        }
      }
    }
  }
);
}
Program: 92734
Project: 92734
Buggy source:
@Override public void run(){
  IWorkbench wb=PlatformUI.getWorkbench();
  IWorkbenchPage activePage=wb.getActiveWorkbenchWindow().getActivePage();
  for (  IViewReference viewReference : activePage.getViewReferences()) {
    IViewPart viewPart=viewReference.getView(false);
    if (viewPart instanceof CommonNavigator) {
      CommonViewer commonViewer=((CommonNavigator)viewPart).getCommonViewer();
      commonViewer.refresh();
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  IWorkbench wb=PlatformUI.getWorkbench();
  IWorkbenchWindow wbWindow=wb.getActiveWorkbenchWindow();
  if (wbWindow == null) {
    return;
  }
  IWorkbenchPage activePage=wbWindow.getActivePage();
  for (  IViewReference viewReference : activePage.getViewReferences()) {
    IViewPart viewPart=viewReference.getView(false);
    if (viewPart instanceof CommonNavigator) {
      CommonViewer commonViewer=((CommonNavigator)viewPart).getCommonViewer();
      commonViewer.refresh();
    }
  }
}
Program: 92736
Project: 92736
Buggy source:
@Override public void refresh(){
  try {
    new WorkspaceModifyOperation(){
      @Override protected void execute(      IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
        IProject project=getResource();
        project.touch(null);
      }
    }
.run(null);
  }
 catch (  InvocationTargetException e) {
  }
catch (  InterruptedException e) {
  }
catch (  RuntimeException e) {
  }
}

Fixed version (ground truth):
@Override public void refresh(){
  Display.getDefault().asyncExec(new Runnable(){
    @Override public void run(){
      IWorkbench wb=PlatformUI.getWorkbench();
      IWorkbenchPage activePage=wb.getActiveWorkbenchWindow().getActivePage();
      for (      IViewReference viewReference : activePage.getViewReferences()) {
        IViewPart viewPart=viewReference.getView(false);
        if (viewPart instanceof CommonNavigator) {
          CommonViewer commonViewer=((CommonNavigator)viewPart).getCommonViewer();
          commonViewer.refresh();
        }
      }
    }
  }
);
}
Program: 92740
Project: 92740
Buggy source:
@Override public int hashCode(){
  int result=17;
  result=37 * result + fSource.hashCode();
  result=37 * result + fType.hashCode();
  result=37 * result + fEffectiveTimestamp.hashCode();
  return result;
}

Fixed version (ground truth):
@Override public int hashCode(){
  int result=17;
  result=37 * result + (fSource != null ? fSource.hashCode() : 0);
  result=37 * result + (fType != null ? fType.hashCode() : 0);
  result=37 * result + (fEffectiveTimestamp != null ? fEffectiveTimestamp.hashCode() : 0);
  return result;
}
Program: 92741
Project: 92741
Buggy source:
@Override public boolean equals(Object other){
  if (!(other instanceof TmfEvent))   return false;
  TmfEvent o=(TmfEvent)other;
  return fEffectiveTimestamp.equals(o.fEffectiveTimestamp) && fSource.equals(o.fSource) && fType.equals(o.fType)&& fContent.equals(o.fContent);
}

Fixed version (ground truth):
@Override public boolean equals(Object other){
  if (!(other instanceof TmfEvent))   return false;
  TmfEvent o=(TmfEvent)other;
  if (fEffectiveTimestamp == null) {
    if (o.fEffectiveTimestamp != null) {
      return false;
    }
  }
 else {
    if (!fEffectiveTimestamp.equals(o.fEffectiveTimestamp)) {
      return false;
    }
  }
  if (fSource == null) {
    if (o.fSource != null) {
      return false;
    }
  }
 else {
    if (!fSource.equals(o.fSource)) {
      return false;
    }
  }
  if (fType == null) {
    if (o.fType != null) {
      return false;
    }
  }
 else {
    if (!fType.equals(o.fType)) {
      return false;
    }
  }
  if (fContent == null) {
    if (o.fContent != null) {
      return false;
    }
  }
 else {
    if (!fContent.equals(o.fContent)) {
      return false;
    }
  }
  return true;
}
Program: 92742
Project: 92742
Buggy source:
@Override public TmfEvent clone(){
  TmfEvent clone=null;
  try {
    clone=(TmfEvent)super.clone();
    clone.fParentTrace=fParentTrace;
    clone.fEventRank=fEventRank;
    clone.fOriginalTimestamp=fOriginalTimestamp.clone();
    clone.fEffectiveTimestamp=fEffectiveTimestamp.clone();
    clone.fSource=fSource.clone();
    clone.fType=fType.clone();
    clone.fReference=fReference.clone();
    clone.fContent=fContent.clone();
  }
 catch (  CloneNotSupportedException e) {
    e.printStackTrace();
  }
  return clone;
}

Fixed version (ground truth):
@Override public TmfEvent clone(){
  TmfEvent clone=null;
  try {
    clone=(TmfEvent)super.clone();
    clone.fParentTrace=fParentTrace;
    clone.fEventRank=fEventRank;
    clone.fOriginalTimestamp=fOriginalTimestamp != null ? fOriginalTimestamp.clone() : null;
    clone.fEffectiveTimestamp=fEffectiveTimestamp != null ? fEffectiveTimestamp.clone() : null;
    clone.fSource=fSource != null ? fSource.clone() : null;
    clone.fType=fType != null ? fType.clone() : null;
    clone.fReference=fReference != null ? fReference.clone() : null;
    clone.fContent=fContent != null ? fContent.clone() : null;
  }
 catch (  CloneNotSupportedException e) {
    e.printStackTrace();
  }
  return clone;
}
Program: 92743
Project: 92743
Buggy source:
@Override public boolean equals(Object other){
  if (!(other instanceof TmfEventContent))   return false;
  TmfEventContent o=(TmfEventContent)other;
  return fRawContent.equals(o.fRawContent);
}

Fixed version (ground truth):
@Override public boolean equals(Object other){
  if (!(other instanceof TmfEventContent))   return false;
  TmfEventContent o=(TmfEventContent)other;
  if (fRawContent == null) {
    return o.fRawContent == null;
  }
  return fRawContent.equals(o.fRawContent);
}
Program: 92744
Project: 92744
Buggy source:
@Override public boolean equals(Object other){
  if (!(other instanceof TmfEventReference))   return false;
  TmfEventReference o=(TmfEventReference)other;
  return fReference.equals(o.fReference);
}

Fixed version (ground truth):
@Override public boolean equals(Object other){
  if (!(other instanceof TmfEventReference))   return false;
  TmfEventReference o=(TmfEventReference)other;
  if (fReference == null) {
    return o.fReference == null;
  }
  return fReference.equals(o.fReference);
}
Program: 92745
Project: 92745
Buggy source:
@Override public boolean equals(Object other){
  if (!(other instanceof TmfEventSource))   return false;
  TmfEventSource o=(TmfEventSource)other;
  return fSourceId.equals(o.fSourceId);
}

Fixed version (ground truth):
@Override public boolean equals(Object other){
  if (!(other instanceof TmfEventSource))   return false;
  TmfEventSource o=(TmfEventSource)other;
  if (fSourceId == null) {
    return o.fSourceId == null;
  }
  return fSourceId.equals(o.fSourceId);
}
Program: 92747
Project: 92747
Buggy source:
public void testTmfTraceDefault() throws Exception {
  TmfTraceStub trace=null;
  File testfile=null;
  try {
    URL location=FileLocator.find(TmfCoreTestPlugin.getDefault().getBundle(),new Path(DIRECTORY + File.separator + TEST_STREAM),null);
    testfile=new File(FileLocator.toFileURL(location).toURI());
    trace=new TmfTraceStub(testfile.getPath());
  }
 catch (  URISyntaxException e) {
    fail("String_Node_Str");
  }
catch (  IOException e) {
    fail("String_Node_Str");
  }
  assertTrue("String_Node_Str",trace != null);
  assertEquals("String_Node_Str",TmfEvent.class,trace.getType());
  assertEquals("String_Node_Str",testfile.getPath(),trace.getPath());
  assertEquals("String_Node_Str",TEST_STREAM,trace.getName());
  assertEquals("String_Node_Str",TmfTrace.DEFAULT_INDEX_PAGE_SIZE,trace.getCacheSize());
}

Fixed version (ground truth):
public void testTmfTraceDefault() throws Exception {
  TmfTraceStub trace=null;
  File testfile=null;
  try {
    URL location=FileLocator.find(TmfCoreTestPlugin.getDefault().getBundle(),new Path(DIRECTORY + File.separator + TEST_STREAM),null);
    testfile=new File(FileLocator.toFileURL(location).toURI());
    trace=new TmfTraceStub(testfile.toURI().getPath());
  }
 catch (  URISyntaxException e) {
    fail("String_Node_Str");
  }
catch (  IOException e) {
    fail("String_Node_Str");
  }
  assertTrue("String_Node_Str",trace != null);
  assertEquals("String_Node_Str",TmfEvent.class,trace.getType());
  assertEquals("String_Node_Str",testfile.toURI().getPath(),trace.getPath());
  assertEquals("String_Node_Str",TEST_STREAM,trace.getName());
  assertEquals("String_Node_Str",TmfTrace.DEFAULT_INDEX_PAGE_SIZE,trace.getCacheSize());
}
Program: 92748
Project: 92748
Buggy source:
public void testTmfTraceDefaultCacheSize() throws Exception {
  TmfTraceStub trace=null;
  File testfile=null;
  try {
    URL location=FileLocator.find(TmfCoreTestPlugin.getDefault().getBundle(),new Path(DIRECTORY + File.separator + TEST_STREAM),null);
    testfile=new File(FileLocator.toFileURL(location).toURI());
    trace=new TmfTraceStub(testfile.getPath(),0);
  }
 catch (  URISyntaxException e) {
    fail("String_Node_Str");
  }
catch (  IOException e) {
    fail("String_Node_Str");
  }
  assertTrue("String_Node_Str",trace != null);
  assertEquals("String_Node_Str",TmfEvent.class,trace.getType());
  assertEquals("String_Node_Str",testfile.getPath(),trace.getPath());
  assertEquals("String_Node_Str",TEST_STREAM,trace.getName());
  assertEquals("String_Node_Str",TmfTrace.DEFAULT_INDEX_PAGE_SIZE,trace.getCacheSize());
}

Fixed version (ground truth):
public void testTmfTraceDefaultCacheSize() throws Exception {
  TmfTraceStub trace=null;
  File testfile=null;
  try {
    URL location=FileLocator.find(TmfCoreTestPlugin.getDefault().getBundle(),new Path(DIRECTORY + File.separator + TEST_STREAM),null);
    testfile=new File(FileLocator.toFileURL(location).toURI());
    trace=new TmfTraceStub(testfile.toURI().getPath(),0);
  }
 catch (  URISyntaxException e) {
    fail("String_Node_Str");
  }
catch (  IOException e) {
    fail("String_Node_Str");
  }
  assertTrue("String_Node_Str",trace != null);
  assertEquals("String_Node_Str",TmfEvent.class,trace.getType());
  assertEquals("String_Node_Str",testfile.toURI().getPath(),trace.getPath());
  assertEquals("String_Node_Str",TEST_STREAM,trace.getName());
  assertEquals("String_Node_Str",TmfTrace.DEFAULT_INDEX_PAGE_SIZE,trace.getCacheSize());
}
Program: 92749
Project: 92749
Buggy source:
private TmfTraceStub setupTrace(String path){
  if (fTrace == null) {
    try {
      URL location=FileLocator.find(TmfCoreTestPlugin.getDefault().getBundle(),new Path(path),null);
      File test=new File(FileLocator.toFileURL(location).toURI());
      fTrace=new TmfTraceStub(test.getPath(),BLOCK_SIZE,false);
    }
 catch (    URISyntaxException e) {
      e.printStackTrace();
    }
catch (    IOException e) {
      e.printStackTrace();
    }
  }
  return fTrace;
}

Fixed version (ground truth):
private TmfTraceStub setupTrace(String path){
  if (fTrace == null) {
    try {
      URL location=FileLocator.find(TmfCoreTestPlugin.getDefault().getBundle(),new Path(path),null);
      File test=new File(FileLocator.toFileURL(location).toURI());
      fTrace=new TmfTraceStub(test.toURI().getPath(),BLOCK_SIZE,false);
    }
 catch (    URISyntaxException e) {
      e.printStackTrace();
    }
catch (    IOException e) {
      e.printStackTrace();
    }
  }
  return fTrace;
}
Program: 92750
Project: 92750
Buggy source:
public void createView(final String contentDescription,final String toolID){
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
      try {
        activePage=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
        activePage.showView(ValgrindUIConstants.VIEW_ID,null,IWorkbenchPage.VIEW_CREATE);
        view.createDynamicContent(contentDescription,toolID);
        view.refreshView();
      }
 catch (      PartInitException e) {
        e.printStackTrace();
      }
catch (      CoreException e) {
        e.printStackTrace();
      }
    }
  }
);
}

Fixed version (ground truth):
public void createView(final String contentDescription,final String toolID){
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
      try {
        activePage=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
        activePage.showView(ValgrindUIConstants.VIEW_ID,null,IWorkbenchPage.VIEW_CREATE);
        activePage.showView(ValgrindUIConstants.VIEW_ID);
        view.createDynamicContent(contentDescription,toolID);
        view.refreshView();
      }
 catch (      PartInitException e) {
        e.printStackTrace();
      }
catch (      CoreException e) {
        e.printStackTrace();
      }
    }
  }
);
}
Program: 92751
Project: 92751
Buggy source:
@Override public void dispose(){
  if (dynamicView != null) {
    dynamicView.dispose();
  }
  super.dispose();
}

Fixed version (ground truth):
@Override public void dispose(){
  if (dynamicView != null) {
    dynamicView.dispose();
  }
  ValgrindUIPlugin.getDefault().setView(null);
  super.dispose();
}
Program: 92753
Project: 92753
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public void init(IEditorSite site,IEditorInput input) throws PartInitException {
  if (input instanceof TmfEditorInput) {
    fResource=((TmfEditorInput)input).getResource();
    fTrace=((TmfEditorInput)input).getTrace();
  }
 else   if (input instanceof IFileEditorInput) {
    fResource=((IFileEditorInput)input).getFile();
    try {
      String traceTypeId=fResource.getPersistentProperty(TmfTraceElement.TRACETYPE);
      if (traceTypeId != null) {
        for (        IConfigurationElement ce : TmfTraceType.getTypeElements()) {
          if (traceTypeId.equals(ce.getAttribute(TmfTraceType.ID_ATTR))) {
            fTrace=(ITmfTrace<?>)ce.createExecutableExtension(TmfTraceType.TRACE_TYPE_ATTR);
            TmfEvent event=(TmfEvent)ce.createExecutableExtension(TmfTraceType.EVENT_TYPE_ATTR);
            String path=fResource.getLocation().toOSString();
            fTrace.initTrace(path,event.getClass(),true);
            break;
          }
        }
      }
    }
 catch (    InvalidRegistryObjectException e) {
      e.printStackTrace();
    }
catch (    FileNotFoundException e) {
      e.printStackTrace();
    }
catch (    CoreException e) {
      e.printStackTrace();
    }
    input=new TmfEditorInput(fResource,fTrace);
  }
 else {
    throw new PartInitException("String_Node_Str" + input.getClass());
  }
  if (fTrace == null) {
    throw new PartInitException("String_Node_Str" + fResource.getName());
  }
  super.setSite(site);
  super.setInput(input);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public void init(IEditorSite site,IEditorInput input) throws PartInitException {
  if (input instanceof TmfEditorInput) {
    fResource=((TmfEditorInput)input).getResource();
    fTrace=((TmfEditorInput)input).getTrace();
  }
 else   if (input instanceof IFileEditorInput) {
    fResource=((IFileEditorInput)input).getFile();
    try {
      String traceTypeId=fResource.getPersistentProperty(TmfTraceElement.TRACETYPE);
      if (traceTypeId != null) {
        for (        IConfigurationElement ce : TmfTraceType.getTypeElements()) {
          if (traceTypeId.equals(ce.getAttribute(TmfTraceType.ID_ATTR))) {
            fTrace=(ITmfTrace<?>)ce.createExecutableExtension(TmfTraceType.TRACE_TYPE_ATTR);
            TmfEvent event=(TmfEvent)ce.createExecutableExtension(TmfTraceType.EVENT_TYPE_ATTR);
            String path=fResource.getLocationURI().getPath();
            fTrace.initTrace(path,event.getClass(),true);
            break;
          }
        }
      }
    }
 catch (    InvalidRegistryObjectException e) {
      e.printStackTrace();
    }
catch (    FileNotFoundException e) {
      e.printStackTrace();
    }
catch (    CoreException e) {
      e.printStackTrace();
    }
    input=new TmfEditorInput(fResource,fTrace);
  }
 else {
    throw new PartInitException("String_Node_Str" + input.getClass());
  }
  if (fTrace == null) {
    throw new PartInitException("String_Node_Str" + fResource.getName());
  }
  super.setSite(site);
  super.setInput(input);
}
Program: 92754
Project: 92754
Buggy source:
@SuppressWarnings("String_Node_Str") @TmfSignalHandler public void traceParserUpdated(TmfTraceParserUpdatedSignal signal){
  if (signal.getTraceResource().equals(fResource)) {
    broadcast(new TmfTraceClosedSignal(this,fTrace));
    try {
      fTrace=null;
      String traceTypeId=fResource.getPersistentProperty(TmfTraceElement.TRACETYPE);
      if (traceTypeId != null) {
        for (        IConfigurationElement ce : TmfTraceType.getTypeElements()) {
          if (traceTypeId.equals(ce.getAttribute(TmfTraceType.ID_ATTR))) {
            fTrace=(ITmfTrace<?>)ce.createExecutableExtension(TmfTraceType.TRACE_TYPE_ATTR);
            TmfEvent event=(TmfEvent)ce.createExecutableExtension(TmfTraceType.EVENT_TYPE_ATTR);
            String path=fResource.getLocation().toOSString();
            fTrace.initTrace(path,event.getClass(),true);
            break;
          }
        }
      }
    }
 catch (    InvalidRegistryObjectException e) {
      e.printStackTrace();
    }
catch (    FileNotFoundException e) {
      e.printStackTrace();
    }
catch (    CoreException e) {
      e.printStackTrace();
    }
    fEventsTable.dispose();
    if (fTrace != null) {
      fEventsTable=createEventsTable(fParent,fTrace.getCacheSize());
      fEventsTable.setTrace(fTrace,true);
      broadcast(new TmfTraceOpenedSignal(this,fTrace,fResource,fEventsTable));
    }
 else {
      fEventsTable=new TmfEventsTable(fParent,0);
    }
    fParent.layout();
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @TmfSignalHandler public void traceParserUpdated(TmfTraceParserUpdatedSignal signal){
  if (signal.getTraceResource().equals(fResource)) {
    broadcast(new TmfTraceClosedSignal(this,fTrace));
    try {
      fTrace=null;
      String traceTypeId=fResource.getPersistentProperty(TmfTraceElement.TRACETYPE);
      if (traceTypeId != null) {
        for (        IConfigurationElement ce : TmfTraceType.getTypeElements()) {
          if (traceTypeId.equals(ce.getAttribute(TmfTraceType.ID_ATTR))) {
            fTrace=(ITmfTrace<?>)ce.createExecutableExtension(TmfTraceType.TRACE_TYPE_ATTR);
            TmfEvent event=(TmfEvent)ce.createExecutableExtension(TmfTraceType.EVENT_TYPE_ATTR);
            String path=fResource.getLocationURI().getPath();
            fTrace.initTrace(path,event.getClass(),true);
            break;
          }
        }
      }
    }
 catch (    InvalidRegistryObjectException e) {
      e.printStackTrace();
    }
catch (    FileNotFoundException e) {
      e.printStackTrace();
    }
catch (    CoreException e) {
      e.printStackTrace();
    }
    fEventsTable.dispose();
    if (fTrace != null) {
      fEventsTable=createEventsTable(fParent,fTrace.getCacheSize());
      fEventsTable.setTrace(fTrace,true);
      broadcast(new TmfTraceOpenedSignal(this,fTrace,fResource,fEventsTable));
    }
 else {
      fEventsTable=new TmfEventsTable(fParent,0);
    }
    fParent.layout();
  }
}
Program: 92755
Project: 92755
Buggy source:
@Override public void initTrace(String path,Class<T> eventType,int cacheSize,boolean indexTrace) throws FileNotFoundException {
}

Fixed version (ground truth):
@Override public void initTrace(String path,Class<T> eventType,int cacheSize,boolean indexTrace,String name) throws FileNotFoundException {
}
Program: 92756
Project: 92756
Buggy source:
public void initTrace(String path,Class<T> eventType,int cacheSize,boolean indexTrace) throws FileNotFoundException ;

Fixed version (ground truth):
public void initTrace(String path,Class<T> eventType,int cacheSize,boolean indexTrace,String name) throws FileNotFoundException ;
Program: 92757
Project: 92757
Buggy source:
@Override public void initTrace(String path,Class<T> eventType,int cacheSize,boolean indexTrace) throws FileNotFoundException {
  initTmfTrace(path,eventType,cacheSize,indexTrace);
}

Fixed version (ground truth):
@Override public void initTrace(String path,Class<T> eventType,int cacheSize,boolean indexTrace,String name) throws FileNotFoundException {
  initTmfTrace(path,eventType,cacheSize,indexTrace,name);
}
Program: 92758
Project: 92758
Buggy source:
private void initTmfTrace(String path,Class<T> eventType,int cacheSize,boolean indexTrace) throws FileNotFoundException {
  fPath=path;
  if (fTraceName == null) {
    fTraceName="String_Node_Str";
    if (path != null) {
      int sep=path.lastIndexOf(Path.SEPARATOR);
      fTraceName=(sep >= 0) ? path.substring(sep + 1) : path;
    }
  }
  super.init(fTraceName,eventType);
  fIndexPageSize=(cacheSize > 0) ? cacheSize : DEFAULT_INDEX_PAGE_SIZE;
  if (indexTrace)   indexTrace(false);
}

Fixed version (ground truth):
private void initTmfTrace(String path,Class<T> eventType,int cacheSize,boolean indexTrace,String name) throws FileNotFoundException {
  fPath=path;
  if (name != null) {
    fTraceName=name;
  }
  if (fTraceName == null) {
    fTraceName="String_Node_Str";
    if (path != null) {
      int sep=path.lastIndexOf(Path.SEPARATOR);
      fTraceName=(sep >= 0) ? path.substring(sep + 1) : path;
    }
  }
  super.init(fTraceName,eventType);
  fIndexPageSize=(cacheSize > 0) ? cacheSize : DEFAULT_INDEX_PAGE_SIZE;
  if (indexTrace)   indexTrace(false);
}
Program: 92761
Project: 92761
Buggy source:
@Override public void run(){
  resetTraceEntry(fTimeAnalysisEntry);
  refreshViewer(false);
  decorateTraceEntry(fTimeAnalysisEntry,null);
  refreshViewer(false);
synchronized (fDecorateThreads) {
    fDecorateThreads.remove(this);
  }
}

Fixed version (ground truth):
@Override public void run(){
  resetTraceEntry(fTimeAnalysisEntry);
  refreshViewer(false);
  decorateTraceEntry(fTimeAnalysisEntry,null);
  refreshViewer(false);
synchronized (fDecorateThreads) {
    fDecorateThreads.remove(this);
  }
  if (fContext != null) {
    fContext.dispose();
  }
}
Program: 92762
Project: 92762
Buggy source:
private void initTmfTrace(String path,Class<T> eventType,int cacheSize,boolean indexTrace) throws FileNotFoundException {
  fPath=path;
  if (fTraceName == null) {
    fTraceName="String_Node_Str";
    if (path != null) {
      int sep=path.lastIndexOf(File.separator);
      fTraceName=(sep >= 0) ? path.substring(sep + 1) : path;
    }
  }
  super.init(fTraceName,eventType);
  fIndexPageSize=(cacheSize > 0) ? cacheSize : DEFAULT_INDEX_PAGE_SIZE;
  if (indexTrace)   indexTrace(false);
}

Fixed version (ground truth):
private void initTmfTrace(String path,Class<T> eventType,int cacheSize,boolean indexTrace) throws FileNotFoundException {
  fPath=path;
  if (fTraceName == null) {
    fTraceName="String_Node_Str";
    if (path != null) {
      int sep=path.lastIndexOf(Path.SEPARATOR);
      fTraceName=(sep >= 0) ? path.substring(sep + 1) : path;
    }
  }
  super.init(fTraceName,eventType);
  fIndexPageSize=(cacheSize > 0) ? cacheSize : DEFAULT_INDEX_PAGE_SIZE;
  if (indexTrace)   indexTrace(false);
}
Program: 92763
Project: 92763
Buggy source:
@BeforeClass public static void beforeClass() throws Exception {
  bot=new SWTWorkbenchBot();
  bot.perspectiveByLabel("String_Node_Str").activate();
  bot.activeShell().activate();
  SWTBotMenu menu=bot.menu("String_Node_Str");
  menu.click();
}

Fixed version (ground truth):
@BeforeClass public static void beforeClass() throws Exception {
  bot=new SWTWorkbenchBot();
  bot.perspectiveByLabel("String_Node_Str").activate();
  bot.shells()[0].activate();
  SWTBotMenu menu=bot.menu("String_Node_Str");
  menu.click();
}
Program: 92764
Project: 92764
Buggy source:
@BeforeClass public static void beforeClass() throws Exception {
  bot=new SWTWorkbenchBot();
  bot.perspectiveByLabel("String_Node_Str").activate();
  bot.activeShell().activate();
  SWTBotMenu menu=bot.menu("String_Node_Str");
  menu.click();
}

Fixed version (ground truth):
@BeforeClass public static void beforeClass() throws Exception {
  bot=new SWTWorkbenchBot();
  bot.perspectiveByLabel("String_Node_Str").activate();
  bot.shells()[0].activate();
  SWTBotMenu menu=bot.menu("String_Node_Str");
  menu.click();
}
Program: 92765
Project: 92765
Buggy source:
@BeforeClass public static void beforeClass() throws Exception {
  bot=new SWTWorkbenchBot();
  bot.perspectiveByLabel("String_Node_Str").activate();
  bot.activeShell().activate();
  SWTBotMenu menu=bot.menu("String_Node_Str");
  menu.click();
}

Fixed version (ground truth):
@BeforeClass public static void beforeClass() throws Exception {
  bot=new SWTWorkbenchBot();
  bot.perspectiveByLabel("String_Node_Str").activate();
  bot.shells()[0].activate();
  SWTBotMenu menu=bot.menu("String_Node_Str");
  menu.click();
}
Program: 92766
Project: 92766
Buggy source:
private static void testGcovSummary(SWTWorkbenchBot bot,String projectName,String filename,String binName) throws Exception {
  IPath filePath=new Path(filename);
  IFile file=ResourcesPlugin.getWorkspace().getRoot().getFile(filePath);
  String binPath=file.getProject().getFile(binName).getLocation().toOSString();
  SWTBot viewBot=bot.viewByTitle("String_Node_Str").bot();
  SWTBotShell wbShell=viewBot.shells()[0];
  wbShell.activate();
  SWTBotTree treeBot=viewBot.tree();
  treeBot.setFocus();
  treeBot.expandNode(projectName).select(file.getName());
  treeBot.contextMenu("String_Node_Str").click();
  Matcher<Shell> withText=withText("String_Node_Str");
  waitForShell(withText);
  SWTBotShell shell=bot.shell("String_Node_Str");
  shell.activate();
  bot.textInGroup("String_Node_Str",0).setText(binPath);
  bot.button("String_Node_Str").click();
  wbShell.activate();
  SWTBotView botView=bot.viewByTitle("String_Node_Str");
  botView.toolbarButton("String_Node_Str").click();
  dumpCSV(bot,botView,projectName,"String_Node_Str");
  botView.toolbarButton("String_Node_Str").click();
  dumpCSV(bot,botView,projectName,"String_Node_Str");
  botView.toolbarButton("String_Node_Str").click();
  dumpCSV(bot,botView,projectName,"String_Node_Str");
  botView.close();
}

Fixed version (ground truth):
private static void testGcovSummary(SWTWorkbenchBot bot,String projectName,String filename,String binName,boolean testProducedReference) throws Exception {
  IPath filePath=new Path(filename);
  IFile file=ResourcesPlugin.getWorkspace().getRoot().getFile(filePath);
  String binPath=file.getProject().getFile(binName).getLocation().toOSString();
  SWTBot viewBot=bot.viewByTitle("String_Node_Str").bot();
  SWTBotShell wbShell=viewBot.shells()[0];
  wbShell.activate();
  SWTBotTree treeBot=viewBot.tree();
  treeBot.setFocus();
  treeBot.expandNode(projectName).select(file.getName());
  treeBot.contextMenu("String_Node_Str").click();
  Matcher<Shell> withText=withText("String_Node_Str");
  waitForShell(withText);
  SWTBotShell shell=bot.shell("String_Node_Str");
  shell.activate();
  bot.textInGroup("String_Node_Str",0).setText(binPath);
  bot.button("String_Node_Str").click();
  wbShell.activate();
  SWTBotView botView=bot.viewByTitle("String_Node_Str");
  botView.toolbarButton("String_Node_Str").click();
  dumpCSV(bot,botView,projectName,"String_Node_Str",testProducedReference);
  botView.toolbarButton("String_Node_Str").click();
  dumpCSV(bot,botView,projectName,"String_Node_Str",testProducedReference);
  botView.toolbarButton("String_Node_Str").click();
  dumpCSV(bot,botView,projectName,"String_Node_Str",testProducedReference);
  botView.close();
}
Program: 92767
Project: 92767
Buggy source:
public static void openGcovSummary(SWTWorkbenchBot bot,String projectName,String binName) throws Exception {
  TreeSet<String> ts=getGcovFiles(bot,projectName);
  for (  String string : ts) {
    testGcovSummary(bot,projectName,string,binName);
  }
}

Fixed version (ground truth):
public static void openGcovSummary(SWTWorkbenchBot bot,String projectName,String binName,boolean testProducedReference) throws Exception {
  TreeSet<String> ts=getGcovFiles(bot,projectName);
  for (  String string : ts) {
    testGcovSummary(bot,projectName,string,binName,testProducedReference);
  }
}
Program: 92768
Project: 92768
Buggy source:
private static void dumpCSV(SWTWorkbenchBot bot,SWTBotView botView,String projectName,String type){
  IProject project=ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
  botView.toolbarButton("String_Node_Str").click();
  SWTBotShell shell=bot.shell("String_Node_Str");
  shell.activate();
  String s=project.getLocation() + "String_Node_Str" + type+ "String_Node_Str";
  new File(s).delete();
  bot.text().setText(s);
  bot.button("String_Node_Str").click();
  bot.waitUntil(new JobsRunning(STExportToCSVAction.EXPORT_TO_CSV_JOB_FAMILY),3000);
  String ref=STJunitUtils.getAbsolutePath(Activator.PLUGIN_ID,"String_Node_Str" + projectName + "String_Node_Str"+ type+ "String_Node_Str");
  STJunitUtils.compareIgnoreEOL(project.getLocation() + "String_Node_Str" + type+ "String_Node_Str",ref,false);
}

Fixed version (ground truth):
private static void dumpCSV(SWTWorkbenchBot bot,SWTBotView botView,String projectName,String type,boolean testProducedReference){
  IProject project=ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
  botView.toolbarButton("String_Node_Str").click();
  SWTBotShell shell=bot.shell("String_Node_Str");
  shell.activate();
  String s=project.getLocation() + "String_Node_Str" + type+ "String_Node_Str";
  new File(s).delete();
  bot.text().setText(s);
  bot.button("String_Node_Str").click();
  bot.waitUntil(new JobsRunning(STExportToCSVAction.EXPORT_TO_CSV_JOB_FAMILY),3000);
  if (testProducedReference) {
    String ref=STJunitUtils.getAbsolutePath(Activator.PLUGIN_ID,"String_Node_Str" + projectName + "String_Node_Str"+ type+ "String_Node_Str");
    STJunitUtils.compareIgnoreEOL(project.getLocation() + "String_Node_Str" + type+ "String_Node_Str",ref,false);
  }
}
Program: 92769
Project: 92769
Buggy source:
@Test public void test() throws Exception {
  GcovTest.openGcovSummary(bot,PROJECT_NAME);
}

Fixed version (ground truth):
@Test public void test() throws Exception {
  GcovTest.openGcovSummary(bot,PROJECT_NAME,true);
}
Program: 92770
Project: 92770
Buggy source:
@Test public void test() throws Exception {
  GcovTest.openGcovSummary(bot,PROJECT_NAME,BIN_NAME);
}

Fixed version (ground truth):
@Test public void test() throws Exception {
  GcovTest.openGcovSummary(bot,PROJECT_NAME,BIN_NAME,true);
}
Program: 92771
Project: 92771
Buggy source:
@Test public void test() throws Exception {
  GcovTest.openGcovSummary(bot,PROJECT_NAME);
}

Fixed version (ground truth):
@Test public void test() throws Exception {
  GcovTest.openGcovSummary(bot,PROJECT_NAME,false);
}