nus-yam/ex-repair huggingface dataset:
Program: 92509
Project: 92509
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public ICommandResult executeCommand(String command,IProgressMonitor monitor,boolean checkReturnValue) throws ExecutionException {
  Map<String,ICommandResult> commands=fScenarioMap.get(fScenario);
  Matcher matcher=LTTNG_LIST_SESSION_PATTERN.matcher(command);
  if (matcher.matches() && !command.matches(LTTNG_LIST_PROVIDER_PATTERN)) {
    String sessionName=matcher.group(1).trim();
    Integer i=fSessionNameMap.get(sessionName);
    if (i != null) {
      i++;
    }
 else {
      i=0;
    }
    fSessionNameMap.put(sessionName,i);
    command+=String.valueOf(i);
  }
  if (commands.containsKey(command)) {
    return commands.get(command);
  }
  String[] output=new String[1];
  output[0]=String.valueOf("String_Node_Str");
  return new CommandResult(1,output);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public synchronized ICommandResult executeCommand(String command,IProgressMonitor monitor,boolean checkReturnValue) throws ExecutionException {
  Map<String,ICommandResult> commands=fScenarioMap.get(fScenario);
  Matcher matcher=LTTNG_LIST_SESSION_PATTERN.matcher(command);
  if (matcher.matches() && !command.matches(LTTNG_LIST_PROVIDER_PATTERN)) {
    String sessionName=matcher.group(1).trim();
    Integer i=fSessionNameMap.get(sessionName);
    if (i != null) {
      i++;
    }
 else {
      i=0;
    }
    fSessionNameMap.put(sessionName,i);
    command+=String.valueOf(i);
  }
  if (commands.containsKey(command)) {
    return commands.get(command);
  }
  String[] output=new String[1];
  output[0]=String.valueOf("String_Node_Str");
  return new CommandResult(1,output);
}
Program: 92510
Project: 92510
Buggy source:
public static Uml2SDTestFacility getInstance(){
  if (fInstance == null) {
    fInstance=new Uml2SDTestFacility();
    fInstance.init();
  }
  return fInstance;
}

Fixed version (ground truth):
public synchronized static Uml2SDTestFacility getInstance(){
  if (fInstance == null) {
    fInstance=new Uml2SDTestFacility();
    fInstance.init();
  }
  return fInstance;
}
Program: 92511
Project: 92511
Buggy source:
@SuppressWarnings("String_Node_Str") public Image getResourceImage(String _name){
  ImageDescriptor img;
  try {
    URL url=new URL(BASIC_URL,(new StringBuilder("String_Node_Str")).append(_name).toString());
    img=ImageDescriptor.createFromURL(url);
    return img.createImage();
  }
 catch (  Exception e) {
    System.err.println(e);
  }
  return null;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public Image getResourceImage(String _name){
  ImageDescriptor img;
  try {
    URL BASIC_URL=new URL("String_Node_Str","String_Node_Str","String_Node_Str");
    URL url=new URL(BASIC_URL,(new StringBuilder("String_Node_Str")).append(_name).toString());
    img=ImageDescriptor.createFromURL(url);
    return img.createImage();
  }
 catch (  Exception e) {
    System.err.println(e);
  }
  return null;
}
Program: 92513
Project: 92513
Buggy source:
@Override public String getEventName(ITimeEvent event,boolean upper,boolean extInfo){
  String name="String_Node_Str";
  name=upper ? name : name;
  if (event instanceof EventImpl) {
    EventImpl devent=(EventImpl)event;
    name=devent.getType().toString();
  }
  return name;
}

Fixed version (ground truth):
@Override public String getEventName(ITimeEvent event,boolean upper,boolean extInfo){
  String name="String_Node_Str";
  if (event instanceof EventImpl) {
    EventImpl devent=(EventImpl)event;
    name=devent.getType().toString();
  }
  return name;
}
Program: 92514
Project: 92514
Buggy source:
/** 
 * 5000 Events per Trace.
 * @param number
 * @return
 */
public TraceImpl[] createLargeTraces(int number){
  TraceImpl trace;
  TraceImpl[] traceArr=new TraceImpl[number];
  for (int i=0; i < traceArr.length; i++) {
    int count=i % 17;
    long sTime=i * (long)1E6;
    trace=new TraceImpl(i,traceNames[count].name,sTime,sTime + 20000,traceNames[count].groupName,traceNames[count].classNmme);
    count=i;
    create5000Events(trace);
    traceArr[i]=trace;
  }
  return traceArr;
}

Fixed version (ground truth):
/** 
 * 5000 Events per Trace.
 * @param number
 * @return
 */
public TraceImpl[] createLargeTraces(int number){
  TraceImpl trace;
  TraceImpl[] traceArr=new TraceImpl[number];
  for (int i=0; i < traceArr.length; i++) {
    int count=i % 17;
    long sTime=i * (long)1E6;
    trace=new TraceImpl(i,traceNames[count].name,sTime,sTime + 20000,traceNames[count].groupName,traceNames[count].classNmme);
    create5000Events(trace);
    traceArr[i]=trace;
  }
  return traceArr;
}
Program: 92515
Project: 92515
Buggy source:
@Override public void componentChanged(final ITraceControlComponent component){
  if (fTreeViewer.getTree().isDisposed()) {
    return;
  }
  UIJob myJob=new UIJob("String_Node_Str"){
    @Override public IStatus runInUIThread(    IProgressMonitor monitor){
      if (fTreeViewer.getTree().isDisposed()) {
        return Status.OK_STATUS;
      }
      fTreeViewer.refresh(component);
      final ISelection sel=fTreeViewer.getSelection();
      fTreeViewer.setSelection(null);
      fTreeViewer.setSelection(sel);
      return Status.OK_STATUS;
    }
  }
;
  myJob.setUser(false);
  myJob.schedule();
}

Fixed version (ground truth):
@Override public void componentChanged(final ITraceControlComponent component){
  if (fTreeViewer.getTree().isDisposed()) {
    return;
  }
  UIJob myJob=new UIJob("String_Node_Str"){
    @Override public IStatus runInUIThread(    IProgressMonitor monitor){
      if (fTreeViewer.getTree().isDisposed()) {
        return Status.OK_STATUS;
      }
      fTreeViewer.refresh(component);
      final ISelection sel=fTreeViewer.getSelection();
      fTreeViewer.setSelection(null);
      fTreeViewer.setSelection(sel);
      fTreeViewer.reveal(component);
      return Status.OK_STATUS;
    }
  }
;
  myJob.setUser(false);
  myJob.schedule();
}
Program: 92516
Project: 92516
Buggy source:
/** 
 * Handle the completion of the request. It is called when there is no more data available either because: - the request completed normally  - the request failed  - the request was canceled As a convenience, handleXXXX methods are provided. They are meant to be overridden by the application if it needs to handle these conditions.
 */
@Override public synchronized void handleCompleted(){
  if (fRequestFailed) {
    handleFailure();
  }
 else   if (fRequestCanceled) {
    handleCancel();
  }
 else {
    handleSuccess();
  }
  if (Tracer.isRequestTraced())   Tracer.traceRequest(this,"String_Node_Str" + fNbRead + "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Handle the completion of the request. It is called when there is no more data available either because: - the request completed normally  - the request failed  - the request was canceled As a convenience, handleXXXX methods are provided. They are meant to be overridden by the application if it needs to handle these conditions.
 */
@Override public void handleCompleted(){
  boolean requestFailed=false;
  boolean requestCanceled=false;
synchronized (this) {
    requestFailed=fRequestFailed;
    requestCanceled=fRequestCanceled;
  }
  if (requestFailed) {
    handleFailure();
  }
 else   if (requestCanceled) {
    handleCancel();
  }
 else {
    handleSuccess();
  }
  if (Tracer.isRequestTraced())   Tracer.traceRequest(this,"String_Node_Str" + fNbRead + "String_Node_Str");
}
Program: 92518
Project: 92518
Buggy source:
private IFolder copyExperiment(String newName){
  IPath oldPath=fExperiment.getResource().getFullPath();
  final IPath newPath=oldPath.append("String_Node_Str" + newName);
  WorkspaceModifyOperation operation=new WorkspaceModifyOperation(){
    @Override public void execute(    IProgressMonitor monitor) throws CoreException {
      try {
        monitor.beginTask("String_Node_Str",1000);
        if (monitor.isCanceled()) {
          throw new OperationCanceledException();
        }
        fExperiment.getResource().copy(newPath,IResource.FORCE | IResource.SHALLOW,null);
        if (monitor.isCanceled()) {
          throw new OperationCanceledException();
        }
      }
  finally {
        monitor.done();
      }
    }
  }
;
  try {
    PlatformUI.getWorkbench().getProgressService().busyCursorWhile(operation);
  }
 catch (  InterruptedException exception) {
    return null;
  }
catch (  InvocationTargetException exception) {
    MessageDialog.openError(getShell(),"String_Node_Str",NLS.bind("String_Node_Str",exception.getTargetException().getMessage()));
    return null;
  }
catch (  RuntimeException exception) {
    return null;
  }
  return fExperiment.getResource();
}

Fixed version (ground truth):
private IFolder copyExperiment(final String newName){
  IPath oldPath=fExperiment.getResource().getFullPath();
  final IPath newPath=oldPath.append("String_Node_Str" + newName);
  WorkspaceModifyOperation operation=new WorkspaceModifyOperation(){
    @Override public void execute(    IProgressMonitor monitor) throws CoreException {
      try {
        monitor.beginTask("String_Node_Str",1000);
        if (monitor.isCanceled()) {
          throw new OperationCanceledException();
        }
        fExperiment.getResource().copy(newPath,IResource.FORCE | IResource.SHALLOW,null);
        IFolder folder=fExperimentFolder.getFolder(newName);
        if (folder.exists()) {
          for (          IResource member : folder.members()) {
            if (TmfExperiment.class.getCanonicalName().equals(member.getPersistentProperty(TmfTraceElement.TRACETYPE))) {
              member.delete(true,null);
            }
          }
        }
        if (monitor.isCanceled()) {
          throw new OperationCanceledException();
        }
      }
  finally {
        monitor.done();
      }
    }
  }
;
  try {
    PlatformUI.getWorkbench().getProgressService().busyCursorWhile(operation);
  }
 catch (  InterruptedException exception) {
    return null;
  }
catch (  InvocationTargetException exception) {
    MessageDialog.openError(getShell(),"String_Node_Str",NLS.bind("String_Node_Str",exception.getTargetException().getMessage()));
    return null;
  }
catch (  RuntimeException exception) {
    return null;
  }
  return fExperiment.getResource();
}
Program: 92519
Project: 92519
Buggy source:
@Override public void execute(IProgressMonitor monitor) throws CoreException {
  try {
    monitor.beginTask("String_Node_Str",1000);
    if (monitor.isCanceled()) {
      throw new OperationCanceledException();
    }
    fExperiment.getResource().copy(newPath,IResource.FORCE | IResource.SHALLOW,null);
    if (monitor.isCanceled()) {
      throw new OperationCanceledException();
    }
  }
  finally {
    monitor.done();
  }
}

Fixed version (ground truth):
@Override public void execute(IProgressMonitor monitor) throws CoreException {
  try {
    monitor.beginTask("String_Node_Str",1000);
    if (monitor.isCanceled()) {
      throw new OperationCanceledException();
    }
    fExperiment.getResource().copy(newPath,IResource.FORCE | IResource.SHALLOW,null);
    IFolder folder=fExperimentFolder.getFolder(newName);
    if (folder.exists()) {
      for (      IResource member : folder.members()) {
        if (TmfExperiment.class.getCanonicalName().equals(member.getPersistentProperty(TmfTraceElement.TRACETYPE))) {
          member.delete(true,null);
        }
      }
    }
    if (monitor.isCanceled()) {
      throw new OperationCanceledException();
    }
  }
  finally {
    monitor.done();
  }
}
Program: 92520
Project: 92520
Buggy source:
private IResource copyTrace(String newName){
  IPath oldPath=fTrace.getResource().getFullPath();
  final IPath newPath=oldPath.append("String_Node_Str" + newName);
  WorkspaceModifyOperation operation=new WorkspaceModifyOperation(){
    @Override public void execute(    IProgressMonitor monitor) throws CoreException {
      try {
        monitor.beginTask("String_Node_Str",1000);
        if (monitor.isCanceled()) {
          throw new OperationCanceledException();
        }
        fTrace.getResource().copy(newPath,IResource.FORCE | IResource.SHALLOW,null);
        if (monitor.isCanceled()) {
          throw new OperationCanceledException();
        }
      }
  finally {
        monitor.done();
      }
    }
  }
;
  try {
    PlatformUI.getWorkbench().getProgressService().busyCursorWhile(operation);
  }
 catch (  InterruptedException exception) {
    return null;
  }
catch (  InvocationTargetException exception) {
    MessageDialog.openError(getShell(),"String_Node_Str",NLS.bind("String_Node_Str",exception.getTargetException().getMessage()));
    return null;
  }
catch (  RuntimeException exception) {
    return null;
  }
  return fTrace.getResource();
}

Fixed version (ground truth):
private IResource copyTrace(final String newName){
  IPath oldPath=fTrace.getResource().getFullPath();
  final IPath newPath=oldPath.append("String_Node_Str" + newName);
  WorkspaceModifyOperation operation=new WorkspaceModifyOperation(){
    @Override public void execute(    IProgressMonitor monitor) throws CoreException {
      try {
        monitor.beginTask("String_Node_Str",1000);
        if (monitor.isCanceled()) {
          throw new OperationCanceledException();
        }
        fTrace.getResource().copy(newPath,IResource.FORCE | IResource.SHALLOW,null);
        IFolder folder=fTraceFolder.getFolder(newName);
        if (folder.exists()) {
          for (          IResource member : folder.members()) {
            if (TmfTrace.class.getCanonicalName().equals(member.getPersistentProperty(TmfTraceElement.TRACETYPE))) {
              member.delete(true,null);
            }
          }
        }
        if (monitor.isCanceled()) {
          throw new OperationCanceledException();
        }
      }
  finally {
        monitor.done();
      }
    }
  }
;
  try {
    PlatformUI.getWorkbench().getProgressService().busyCursorWhile(operation);
  }
 catch (  InterruptedException exception) {
    return null;
  }
catch (  InvocationTargetException exception) {
    MessageDialog.openError(getShell(),"String_Node_Str",NLS.bind("String_Node_Str",exception.getTargetException().getMessage()));
    return null;
  }
catch (  RuntimeException exception) {
    return null;
  }
  return fTrace.getResource();
}
Program: 92521
Project: 92521
Buggy source:
@Override public void execute(IProgressMonitor monitor) throws CoreException {
  try {
    monitor.beginTask("String_Node_Str",1000);
    if (monitor.isCanceled()) {
      throw new OperationCanceledException();
    }
    fTrace.getResource().copy(newPath,IResource.FORCE | IResource.SHALLOW,null);
    if (monitor.isCanceled()) {
      throw new OperationCanceledException();
    }
  }
  finally {
    monitor.done();
  }
}

Fixed version (ground truth):
@Override public void execute(IProgressMonitor monitor) throws CoreException {
  try {
    monitor.beginTask("String_Node_Str",1000);
    if (monitor.isCanceled()) {
      throw new OperationCanceledException();
    }
    fTrace.getResource().copy(newPath,IResource.FORCE | IResource.SHALLOW,null);
    IFolder folder=fTraceFolder.getFolder(newName);
    if (folder.exists()) {
      for (      IResource member : folder.members()) {
        if (TmfTrace.class.getCanonicalName().equals(member.getPersistentProperty(TmfTraceElement.TRACETYPE))) {
          member.delete(true,null);
        }
      }
    }
    if (monitor.isCanceled()) {
      throw new OperationCanceledException();
    }
  }
  finally {
    monitor.done();
  }
}
Program: 92522
Project: 92522
Buggy source:
public CopyTraceDialog(Shell shell,TmfTraceElement trace){
  super(shell);
  fTrace=trace;
  ITmfProjectModelElement parent=trace.getParent();
  fTraceFolder=(IContainer)parent.getResource();
  fProject=trace.getProject();
  setTitle(Messages.CopyTraceDialog_DialogTitle);
  setStatusLineAboveButtons(true);
}

Fixed version (ground truth):
public CopyTraceDialog(Shell shell,TmfTraceElement trace){
  super(shell);
  fTrace=trace;
  TmfTraceFolder folder=(TmfTraceFolder)trace.getParent();
  fTraceFolder=folder.getResource();
  fProject=trace.getProject();
  setTitle(Messages.CopyTraceDialog_DialogTitle);
  setStatusLineAboveButtons(true);
}
Program: 92524
Project: 92524
Buggy source:
public String getLinuxtoolsPath(IProject project){
  if (project == null)   return null;
  ScopedPreferenceStore store=new ScopedPreferenceStore(new ProjectScope(project),Activator.PLUGIN_ID);
  boolean systemPathSelected;
  if (store.contains(LINUXTOOLS_PATH_SYSTEM_NAME))   systemPathSelected=store.getBoolean(LINUXTOOLS_PATH_SYSTEM_NAME);
 else   systemPathSelected=getLinuxtoolsPathSystemDefault();
  if (systemPathSelected)   return getLinuxtoolsPathDefault();
  String path=store.getString(LINUXTOOLS_PATH_NAME);
  if (path == null || path.equals("String_Node_Str"))   return getLinuxtoolsPathDefault();
  return path;
}

Fixed version (ground truth):
public String getLinuxtoolsPath(IProject project){
  if (project == null)   return null;
  ScopedPreferenceStore store=new ScopedPreferenceStore(new ProjectScope(project),Activator.PLUGIN_ID);
  boolean systemPathSelected;
  if (store.contains(LINUXTOOLS_PATH_SYSTEM_NAME))   systemPathSelected=store.getBoolean(LINUXTOOLS_PATH_SYSTEM_NAME);
 else   systemPathSelected=getLinuxtoolsPathSystemDefault();
  if (systemPathSelected)   return "String_Node_Str";
  String path=null;
  if (store.contains(LINUXTOOLS_PATH_NAME))   path=store.getString(LINUXTOOLS_PATH_NAME);
  if (path == null)   return getLinuxtoolsPathDefault();
  return path;
}
Program: 92525
Project: 92525
Buggy source:
@Override public void setFullRange(long startTime,long endTime){
  fZoom.setFullRange(startTime,endTime);
}

Fixed version (ground truth):
public void setFullRange(long startTime,long endTime){
  fZoom.setFullRange(startTime,endTime);
}
Program: 92526
Project: 92526
Buggy source:
@Override public void run(){
  if (!fCanvas.isDisposed()) {
    int canvasWidth=fCanvas.getBounds().width;
    int canvasHeight=fCanvas.getBounds().height;
    if (canvasWidth <= 0 || canvasHeight <= 0)     return;
    fDataModel.setCurrentEvent(fCurrentEventTime);
    fScaledData=fDataModel.scaleTo(canvasWidth,canvasHeight,HISTOGRAM_BAR_WIDTH);
    fCanvas.redraw();
    fTimeRangeStartText.setText(HistogramUtils.nanosecondsToString(fDataModel.getFirstBucketTime()));
    fTimeRangeEndText.setText(HistogramUtils.nanosecondsToString(fDataModel.getEndTime()));
    fMaxNbEventsText.setText(Long.toString(fScaledData.fMaxValue));
    setFullRange(fDataModel.getFirstBucketTime(),fDataModel.getEndTime());
    fMaxNbEventsText.getParent().layout();
  }
}

Fixed version (ground truth):
@Override public void run(){
  if (!fCanvas.isDisposed()) {
    int canvasWidth=fCanvas.getBounds().width;
    int canvasHeight=fCanvas.getBounds().height;
    if (canvasWidth <= 0 || canvasHeight <= 0)     return;
    fDataModel.setCurrentEvent(fCurrentEventTime);
    fScaledData=fDataModel.scaleTo(canvasWidth,canvasHeight,HISTOGRAM_BAR_WIDTH);
    fCanvas.redraw();
    fTimeRangeStartText.setText(HistogramUtils.nanosecondsToString(fDataModel.getFirstBucketTime()));
    fTimeRangeEndText.setText(HistogramUtils.nanosecondsToString(fDataModel.getEndTime()));
    fMaxNbEventsText.setText(Long.toString(fScaledData.fMaxValue));
    fMaxNbEventsText.getParent().layout();
  }
}
Program: 92527
Project: 92527
Buggy source:
/** 
 * Refresh the histogram display
 */
@Override public void modelUpdated(){
  if (!fCanvas.isDisposed() && fCanvas.getDisplay() != null) {
    fCanvas.getDisplay().asyncExec(new Runnable(){
      @Override public void run(){
        if (!fCanvas.isDisposed()) {
          int canvasWidth=fCanvas.getBounds().width;
          int canvasHeight=fCanvas.getBounds().height;
          if (canvasWidth <= 0 || canvasHeight <= 0)           return;
          fDataModel.setCurrentEvent(fCurrentEventTime);
          fScaledData=fDataModel.scaleTo(canvasWidth,canvasHeight,HISTOGRAM_BAR_WIDTH);
          fCanvas.redraw();
          fTimeRangeStartText.setText(HistogramUtils.nanosecondsToString(fDataModel.getFirstBucketTime()));
          fTimeRangeEndText.setText(HistogramUtils.nanosecondsToString(fDataModel.getEndTime()));
          fMaxNbEventsText.setText(Long.toString(fScaledData.fMaxValue));
          setFullRange(fDataModel.getFirstBucketTime(),fDataModel.getEndTime());
          fMaxNbEventsText.getParent().layout();
        }
      }
    }
);
  }
}

Fixed version (ground truth):
/** 
 * Refresh the histogram display
 */
@Override public void modelUpdated(){
  if (!fCanvas.isDisposed() && fCanvas.getDisplay() != null) {
    fCanvas.getDisplay().asyncExec(new Runnable(){
      @Override public void run(){
        if (!fCanvas.isDisposed()) {
          int canvasWidth=fCanvas.getBounds().width;
          int canvasHeight=fCanvas.getBounds().height;
          if (canvasWidth <= 0 || canvasHeight <= 0)           return;
          fDataModel.setCurrentEvent(fCurrentEventTime);
          fScaledData=fDataModel.scaleTo(canvasWidth,canvasHeight,HISTOGRAM_BAR_WIDTH);
          fCanvas.redraw();
          fTimeRangeStartText.setText(HistogramUtils.nanosecondsToString(fDataModel.getFirstBucketTime()));
          fTimeRangeEndText.setText(HistogramUtils.nanosecondsToString(fDataModel.getEndTime()));
          fMaxNbEventsText.setText(Long.toString(fScaledData.fMaxValue));
          fMaxNbEventsText.getParent().layout();
        }
      }
    }
);
  }
}
Program: 92528
Project: 92528
Buggy source:
@Override public void setFullRange(long startTime,long endTime){
  long currentFirstEvent=getStartTime();
  fZoom.setFullRange((currentFirstEvent == 0) ? startTime : currentFirstEvent,endTime);
}

Fixed version (ground truth):
public void setFullRange(long startTime,long endTime){
  long currentFirstEvent=getStartTime();
  fZoom.setFullRange((currentFirstEvent == 0) ? startTime : currentFirstEvent,endTime);
}
Program: 92530
Project: 92530
Buggy source:
@Override protected void okPressed(){
  fChannelInfo=new ChannelInfo(fChannelNameText.getText());
  fChannelInfo.setSubBufferSize(Long.parseLong(fSubBufferSizeText.getText()));
  fChannelInfo.setNumberOfSubBuffers(Integer.parseInt(fNumberOfSubBuffersText.getText()));
  fChannelInfo.setSwitchTimer(Long.parseLong(fSwitchTimerText.getText()));
  fChannelInfo.setReadTimer(Long.parseLong(fReadTimerText.getText()));
  fChannelInfo.setOverwriteMode(fOverwriteModeButton.getSelection());
  if (fKernelButton.getSelection() == true) {
    fIsKernel=true;
  }
 else {
    fIsKernel=false;
  }
  if (!fChannelInfo.getName().matches("String_Node_Str")) {
    MessageDialog.openError(getShell(),Messages.TraceControl_EnableChannelDialogTitle,Messages.TraceControl_InvalidChannelNameError + "String_Node_Str" + fChannelInfo.getName()+ "String_Node_Str");
    return;
  }
  if (fDomain != null && fDomain.containsChild(fChannelInfo.getName())) {
    MessageDialog.openError(getShell(),Messages.TraceControl_EnableChannelDialogTitle,Messages.TraceControl_ChannelAlreadyExistsError + "String_Node_Str" + fChannelInfo.getName()+ "String_Node_Str");
    return;
  }
  super.okPressed();
}

Fixed version (ground truth):
@Override protected void okPressed(){
  fChannelInfo=new ChannelInfo(fChannelNameText.getText());
  fChannelInfo.setSubBufferSize(Long.parseLong(fSubBufferSizeText.getText()));
  fChannelInfo.setNumberOfSubBuffers(Integer.parseInt(fNumberOfSubBuffersText.getText()));
  fChannelInfo.setSwitchTimer(Long.parseLong(fSwitchTimerText.getText()));
  fChannelInfo.setReadTimer(Long.parseLong(fReadTimerText.getText()));
  fChannelInfo.setOverwriteMode(fOverwriteModeButton.getSelection());
  fIsKernel=fKernelButton.getSelection();
  if (!fChannelInfo.getName().matches("String_Node_Str")) {
    MessageDialog.openError(getShell(),Messages.TraceControl_EnableChannelDialogTitle,Messages.TraceControl_InvalidChannelNameError + "String_Node_Str" + fChannelInfo.getName()+ "String_Node_Str");
    return;
  }
  if (fDomain != null && fDomain.containsChild(fChannelInfo.getName())) {
    MessageDialog.openError(getShell(),Messages.TraceControl_EnableChannelDialogTitle,Messages.TraceControl_ChannelAlreadyExistsError + "String_Node_Str" + fChannelInfo.getName()+ "String_Node_Str");
    return;
  }
  super.okPressed();
}
Program: 92531
Project: 92531
Buggy source:
@Override protected void okPressed(){
  if (fKernelButton.getSelection() == true) {
    fIsKernel=true;
  }
 else {
    fIsKernel=false;
  }
  if (fKernelComposite != null && !fKernelComposite.isValid()) {
    return;
  }
  if (fUstComposite != null && !fUstComposite.isValid()) {
    return;
  }
  super.okPressed();
}

Fixed version (ground truth):
@Override protected void okPressed(){
  fIsKernel=fKernelButton.getSelection();
  if (fKernelComposite != null && !fKernelComposite.isValid()) {
    return;
  }
  if (fUstComposite != null && !fUstComposite.isValid()) {
    return;
  }
  super.okPressed();
}
Program: 92534
Project: 92534
Buggy source:
/** 
 * @return create session dialog implementation
 */
public ICreateSessionDialog getCreateSessionDialog(){
  if (null == fCreateSessionDialog) {
    fCreateSessionDialog=new CreateSessionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
  }
  return fCreateSessionDialog;
}

Fixed version (ground truth):
/** 
 * @return create session dialog implementation
 */
public ICreateSessionDialog getCreateSessionDialog(){
  if (fCreateSessionDialog == null) {
    fCreateSessionDialog=new CreateSessionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
  }
  return fCreateSessionDialog;
}
Program: 92535
Project: 92535
Buggy source:
/** 
 * @return get events info dialog implementation.
 */
public IGetEventInfoDialog getGetEventInfoDialog(){
  if (null == fGetEventInfoDialog) {
    fGetEventInfoDialog=new GetEventInfoDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
  }
  return fGetEventInfoDialog;
}

Fixed version (ground truth):
/** 
 * @return get events info dialog implementation.
 */
public IGetEventInfoDialog getGetEventInfoDialog(){
  if (fGetEventInfoDialog == null) {
    fGetEventInfoDialog=new GetEventInfoDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
  }
  return fGetEventInfoDialog;
}
Program: 92536
Project: 92536
Buggy source:
/** 
 * @return the confirmation dialog implementation
 */
public IConfirmDialog getConfirmDialog(){
  if (null == fConfirmDialog) {
    fConfirmDialog=new ConfirmDialog();
  }
  return fConfirmDialog;
}

Fixed version (ground truth):
/** 
 * @return the confirmation dialog implementation
 */
public IConfirmDialog getConfirmDialog(){
  if (fConfirmDialog == null) {
    fConfirmDialog=new ConfirmDialog();
  }
  return fConfirmDialog;
}
Program: 92537
Project: 92537
Buggy source:
/** 
 * @return new connection dialog
 */
public INewConnectionDialog getNewConnectionDialog(){
  if (null == fNewConnectionDialog) {
    fNewConnectionDialog=new NewConnectionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
  }
  return fNewConnectionDialog;
}

Fixed version (ground truth):
/** 
 * @return new connection dialog
 */
public INewConnectionDialog getNewConnectionDialog(){
  if (fNewConnectionDialog == null) {
    fNewConnectionDialog=new NewConnectionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
  }
  return fNewConnectionDialog;
}
Program: 92538
Project: 92538
Buggy source:
/** 
 * @return create channel dialog (on domain level)
 */
public ICreateChannelDialog getCreateChannelDialog(){
  if (null == fCreateChannelDialog) {
    fCreateChannelDialog=new CreateChannelDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
  }
  return fCreateChannelDialog;
}

Fixed version (ground truth):
/** 
 * @return create channel dialog (on domain level)
 */
public ICreateChannelDialog getCreateChannelDialog(){
  if (fCreateChannelDialog == null) {
    fCreateChannelDialog=new CreateChannelDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
  }
  return fCreateChannelDialog;
}
Program: 92539
Project: 92539
Buggy source:
/** 
 * @return enable events dialog implementation.
 */
public IEnableEventsDialog getEnableEventsDialog(){
  if (null == fEnableEventsDialog) {
    fEnableEventsDialog=new EnableEventsDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
  }
  return fEnableEventsDialog;
}

Fixed version (ground truth):
/** 
 * @return enable events dialog implementation.
 */
public IEnableEventsDialog getEnableEventsDialog(){
  if (fEnableEventsDialog == null) {
    fEnableEventsDialog=new EnableEventsDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
  }
  return fEnableEventsDialog;
}
Program: 92540
Project: 92540
Buggy source:
/** 
 * @return TraceControlDialogFactory instance
 */
public static TraceControlDialogFactory getInstance(){
  if (null == fInstance) {
    fInstance=new TraceControlDialogFactory();
  }
  return fInstance;
}

Fixed version (ground truth):
/** 
 * @return TraceControlDialogFactory instance
 */
public synchronized static TraceControlDialogFactory getInstance(){
  if (fInstance == null) {
    fInstance=new TraceControlDialogFactory();
  }
  return fInstance;
}
Program: 92541
Project: 92541
Buggy source:
/** 
 * Initialize the model and view before reloading items
 * @param boundaryRange
 * @param visibleRange
 * @param source
 */
protected void modelUpdateInit(TmfTimeRange boundaryRange,TmfTimeRange visibleRange,Object source){
  if (boundaryRange != null) {
    ItemContainer<?> itemContainer=getItemContainer();
    if (itemContainer != null) {
      itemContainer.clearItems();
      ITmfTimeAnalysisEntry[] itemArr=itemContainer.readItems();
      long startTime=boundaryRange.getStartTime().getValue();
      long endTime=boundaryRange.getEndTime().getValue();
      displayModel(itemArr,startTime,endTime,true,visibleRange.getStartTime().getValue(),visibleRange.getEndTime().getValue(),source);
    }
  }
  if (visibleRange != null) {
    ParamsUpdater updater=getParamsUpdater();
    if (updater != null) {
      updater.setEventsDiscarded(0);
      updater.update(visibleRange.getStartTime().getValue(),visibleRange.getEndTime().getValue());
    }
  }
}

Fixed version (ground truth):
/** 
 * Initialize the model and view before reloading items
 * @param boundaryRange
 * @param visibleRange
 * @param source
 */
protected void modelUpdateInit(TmfTimeRange boundaryRange,TmfTimeRange visibleRange,Object source){
  if (boundaryRange != null) {
    ItemContainer<?> itemContainer=getItemContainer();
    if (itemContainer != null) {
      itemContainer.clearItems();
      ITmfTimeAnalysisEntry[] itemArr=itemContainer.readItems();
      Arrays.sort(itemArr);
      long startTime=boundaryRange.getStartTime().getValue();
      long endTime=boundaryRange.getEndTime().getValue();
      displayModel(itemArr,startTime,endTime,true,visibleRange.getStartTime().getValue(),visibleRange.getEndTime().getValue(),source);
    }
  }
  if (visibleRange != null) {
    ParamsUpdater updater=getParamsUpdater();
    if (updater != null) {
      updater.setEventsDiscarded(0);
      updater.update(visibleRange.getStartTime().getValue(),visibleRange.getEndTime().getValue());
    }
  }
}
Program: 92542
Project: 92542
Buggy source:
/** 
 * View preparation to override the current local information
 * @param timeRange - new total time range e.g. Experiment level
 * @param clearAllData
 */
protected void modelUpdatePrep(TmfTimeRange timeRange,boolean clearAllData){
  ItemContainer<?> itemContainer=getItemContainer();
  if (clearAllData) {
    itemContainer.clearItems();
  }
 else {
    itemContainer.clearChildren();
  }
  ITmfTimeAnalysisEntry[] itemArr=itemContainer.readItems();
  displayModel(itemArr,-1,-1,false,-1,-1,null);
  ParamsUpdater updater=getParamsUpdater();
  if (updater != null) {
    updater.setEventsDiscarded(0);
    if (timeRange != null) {
      updater.update(timeRange.getStartTime().getValue(),timeRange.getEndTime().getValue());
    }
  }
}

Fixed version (ground truth):
/** 
 * View preparation to override the current local information
 * @param timeRange - new total time range e.g. Experiment level
 * @param clearAllData
 */
protected void modelUpdatePrep(TmfTimeRange timeRange,boolean clearAllData){
  ItemContainer<?> itemContainer=getItemContainer();
  if (clearAllData) {
    itemContainer.clearItems();
  }
 else {
    itemContainer.clearChildren();
  }
  ITmfTimeAnalysisEntry[] itemArr=itemContainer.readItems();
  Arrays.sort(itemArr);
  displayModel(itemArr,-1,-1,false,-1,-1,null);
  ParamsUpdater updater=getParamsUpdater();
  if (updater != null) {
    updater.setEventsDiscarded(0);
    if (timeRange != null) {
      updater.update(timeRange.getStartTime().getValue(),timeRange.getEndTime().getValue());
    }
  }
}
Program: 92544
Project: 92544
Buggy source:
/** 
 * Parses a declaration found in a struct.
 * @param declaration A SV_DECLARATION node.
 * @param struct A struct declaration. (I know, little name clash here...)
 * @throws ParseException
 */
private void parseStructDeclaration(CommonTree declaration,StructDeclaration struct) throws ParseException {
  assert(declaration.getType() == CTFParser.SV_DECLARATION);
  List<CommonTree> children=declaration.getChildren();
  assert(children != null);
  CommonTree typeSpecifierListNode=(CommonTree)declaration.getFirstChildWithType(CTFParser.TYPE_SPECIFIER_LIST);
  assert(typeSpecifierListNode != null);
  CommonTree typeDeclaratorListNode=(CommonTree)declaration.getFirstChildWithType(CTFParser.TYPE_DECLARATOR_LIST);
  assert(typeDeclaratorListNode != null);
  List<CommonTree> typeDeclaratorList=typeDeclaratorListNode.getChildren();
  assert(typeDeclaratorList != null);
  for (  CommonTree typeDeclaratorNode : typeDeclaratorList) {
    assert(typeDeclaratorNode.getType() == CTFParser.TYPE_DECLARATOR);
    StringBuilder identifierSB=new StringBuilder();
    IDeclaration decl=parseTypeDeclarator(typeDeclaratorNode,typeSpecifierListNode,identifierSB);
    String fieldName=identifierSB.toString();
    if (identifierSB.charAt(0) == '_') {
      fieldName=identifierSB.substring(1);
    }
    if (struct.hasField(fieldName)) {
      throw new ParseException("String_Node_Str" + fieldName);
    }
    struct.addField(fieldName,decl);
  }
}

Fixed version (ground truth):
/** 
 * Parses a declaration found in a struct.
 * @param declaration A SV_DECLARATION node.
 * @param struct A struct declaration. (I know, little name clash here...)
 * @throws ParseException
 */
private void parseStructDeclaration(CommonTree declaration,StructDeclaration struct) throws ParseException {
  assert(declaration.getType() == CTFParser.SV_DECLARATION);
  List<CommonTree> children=declaration.getChildren();
  assert(children != null);
  CommonTree typeSpecifierListNode=(CommonTree)declaration.getFirstChildWithType(CTFParser.TYPE_SPECIFIER_LIST);
  assert(typeSpecifierListNode != null);
  CommonTree typeDeclaratorListNode=(CommonTree)declaration.getFirstChildWithType(CTFParser.TYPE_DECLARATOR_LIST);
  assert(typeDeclaratorListNode != null);
  List<CommonTree> typeDeclaratorList=typeDeclaratorListNode.getChildren();
  assert(typeDeclaratorList != null);
  for (  CommonTree typeDeclaratorNode : typeDeclaratorList) {
    assert(typeDeclaratorNode.getType() == CTFParser.TYPE_DECLARATOR);
    StringBuilder identifierSB=new StringBuilder();
    IDeclaration decl=parseTypeDeclarator(typeDeclaratorNode,typeSpecifierListNode,identifierSB);
    String fieldName=identifierSB.toString();
    if (struct.hasField(fieldName)) {
      throw new ParseException("String_Node_Str" + fieldName);
    }
    struct.addField(fieldName,decl);
  }
}
Program: 92545
Project: 92545
Buggy source:
public StringDefinition lookupString(String name){
  Definition def=definitions.get(name);
  return (StringDefinition)((def instanceof StringDefinition) ? def : null);
}

Fixed version (ground truth):
public StringDefinition lookupString(String name){
  Definition def=lookupDefinition(name);
  return (StringDefinition)((def instanceof StringDefinition) ? def : null);
}
Program: 92546
Project: 92546
Buggy source:
public ArrayDefinition lookupArray(String name){
  Definition def=definitions.get(name);
  return (ArrayDefinition)((def instanceof ArrayDefinition) ? def : null);
}

Fixed version (ground truth):
public ArrayDefinition lookupArray(String name){
  Definition def=lookupDefinition(name);
  return (ArrayDefinition)((def instanceof ArrayDefinition) ? def : null);
}
Program: 92547
Project: 92547
Buggy source:
public VariantDefinition lookupVariant(String name){
  Definition def=definitions.get(name);
  return (VariantDefinition)((def instanceof VariantDefinition) ? def : null);
}

Fixed version (ground truth):
public VariantDefinition lookupVariant(String name){
  Definition def=lookupDefinition(name);
  return (VariantDefinition)((def instanceof VariantDefinition) ? def : null);
}
Program: 92548
Project: 92548
Buggy source:
public StructDefinition lookupStruct(String name){
  Definition def=definitions.get(name);
  return (StructDefinition)((def instanceof StructDefinition) ? def : null);
}

Fixed version (ground truth):
public StructDefinition lookupStruct(String name){
  Definition def=lookupDefinition(name);
  return (StructDefinition)((def instanceof StructDefinition) ? def : null);
}
Program: 92549
Project: 92549
Buggy source:
public IntegerDefinition lookupInteger(String name){
  Definition def=definitions.get(name);
  return (IntegerDefinition)((def instanceof IntegerDefinition) ? def : null);
}

Fixed version (ground truth):
public IntegerDefinition lookupInteger(String name){
  Definition def=lookupDefinition(name);
  return (IntegerDefinition)((def instanceof IntegerDefinition) ? def : null);
}
Program: 92550
Project: 92550
Buggy source:
public EnumDefinition lookupEnum(String name){
  Definition def=definitions.get(name);
  return (EnumDefinition)((def instanceof EnumDefinition) ? def : null);
}

Fixed version (ground truth):
public EnumDefinition lookupEnum(String name){
  Definition def=lookupDefinition(name);
  return (EnumDefinition)((def instanceof EnumDefinition) ? def : null);
}
Program: 92551
Project: 92551
Buggy source:
public SequenceDefinition lookupSequence(String name){
  Definition def=definitions.get(name);
  return (SequenceDefinition)((def instanceof SequenceDefinition) ? def : null);
}

Fixed version (ground truth):
public SequenceDefinition lookupSequence(String name){
  Definition def=lookupDefinition(name);
  return (SequenceDefinition)((def instanceof SequenceDefinition) ? def : null);
}
Program: 92552
Project: 92552
Buggy source:
@Override public Definition lookupDefinition(String lookupPath){
  return definitions.get(lookupPath);
}

Fixed version (ground truth):
@Override public Definition lookupDefinition(String lookupPath){
  Definition retVal=definitions.get(lookupPath);
  if (retVal == null) {
    retVal=definitions.get("String_Node_Str" + lookupPath);
  }
  return retVal;
}
Program: 92553
Project: 92553
Buggy source:
@Override public String toString(){
  StringBuilder builder=new StringBuilder();
  int size=this.declaration.getFieldsList().size();
  int n=0;
  if (size > 1) {
    builder.append("String_Node_Str");
  }
  ListIterator<String> listIterator=this.declaration.getFieldsList().listIterator();
  while (listIterator.hasNext()) {
    String field=listIterator.next();
    builder.append(definitions.get(field).toString());
    n++;
    if (n != size) {
      builder.append("String_Node_Str");
    }
  }
  if (size > 1) {
    builder.append("String_Node_Str");
  }
  return builder.toString();
}

Fixed version (ground truth):
@Override public String toString(){
  StringBuilder builder=new StringBuilder();
  int size=this.declaration.getFieldsList().size();
  int n=0;
  if (size > 1) {
    builder.append("String_Node_Str");
  }
  ListIterator<String> listIterator=this.declaration.getFieldsList().listIterator();
  while (listIterator.hasNext()) {
    String field=listIterator.next();
    builder.append(lookupDefinition(field).toString());
    n++;
    if (n != size) {
      builder.append("String_Node_Str");
    }
  }
  if (size > 1) {
    builder.append("String_Node_Str");
  }
  return builder.toString();
}
Program: 92555
Project: 92555
Buggy source:
@Override public synchronized LttngEvent getNextEvent(ITmfContext context){
  if (PRINT_DEBUG) {
    System.out.println("String_Node_Str" + context.getLocation());
  }
  LttngEvent returnedEvent=null;
  LttngLocation curLocation=null;
  curLocation=(LttngLocation)context.getLocation();
  if (curLocation == null) {
    curLocation=getCurrentLocation(context);
  }
  if ((!(curLocation.isLastOperationParse())) || (previousLocation.getOperationTimeValue() != curLocation.getOperationTimeValue())) {
    if (previousLocation.getOperationTimeValue() != curLocation.getOperationTimeValue()) {
      if (PRINT_DEBUG) {
        System.out.println("String_Node_Str" + previousLocation.getOperationTimeValue() + "String_Node_Str"+ curLocation.getOperationTimeValue()+ "String_Node_Str");
      }
      seekEvent(curLocation.getOperationTime());
    }
    returnedEvent=readNextEvent(curLocation);
  }
 else {
    returnedEvent=currentLttngEvent;
    previousLocation.resetLocationState();
    curLocation.resetLocationState();
  }
  if (returnedEvent != null) {
    setPreviousAndCurrentTimes(context,returnedEvent,curLocation);
  }
  return returnedEvent;
}

Fixed version (ground truth):
@Override public synchronized LttngEvent getNextEvent(ITmfContext context){
  if (PRINT_DEBUG) {
    System.out.println("String_Node_Str" + context.getLocation());
  }
  LttngEvent returnedEvent=null;
  LttngLocation curLocation=null;
  curLocation=(LttngLocation)context.getLocation();
  if (curLocation == null) {
    curLocation=getCurrentLocation(context);
  }
  if ((!(curLocation.isLastOperationParse())) || (previousLocation.getOperationTimeValue() != curLocation.getOperationTimeValue())) {
    if (previousLocation.getOperationTimeValue() != curLocation.getOperationTimeValue()) {
      if (PRINT_DEBUG) {
        System.out.println("String_Node_Str" + previousLocation.getOperationTimeValue() + "String_Node_Str"+ curLocation.getOperationTimeValue()+ "String_Node_Str");
      }
      seekEvent(curLocation.getOperationTime());
    }
    returnedEvent=readNextEvent(curLocation);
  }
 else {
    returnedEvent=currentLttngEvent;
    previousLocation.setLastOperationReadNext();
    curLocation.setLastOperationReadNext();
  }
  if (returnedEvent != null) {
    setPreviousAndCurrentTimes(context,returnedEvent,curLocation);
  }
  return returnedEvent;
}
Program: 92556
Project: 92556
Buggy source:
/** 
 * Get the resource used for bookmarks on this experiment
 * @return the bookmarks resource or null if none is set
 */
public IResource getResource(){
  return fResource;
}

Fixed version (ground truth):
@Override public IResource getResource(){
  return fResource;
}
Program: 92557
Project: 92557
Buggy source:
/** 
 * Set the resource to be used for bookmarks on this experiment
 * @param resource the bookmarks resource
 */
public void setResource(IResource resource){
  fResource=resource;
}

Fixed version (ground truth):
@Override public void setResource(IResource resource){
  fResource=resource;
}
Program: 92558
Project: 92558
Buggy source:
/** 
 * Get the resource used for bookmarks on this trace
 * @return the bookmarks resource or null if none is set
 */
public IResource getResource(){
  return fResource;
}

Fixed version (ground truth):
@Override public IResource getResource(){
  return fResource;
}
Program: 92559
Project: 92559
Buggy source:
/** 
 * Set the resource to be used for bookmarks on this trace
 * @param resource the bookmarks resource
 */
public void setResource(IResource resource){
  fResource=resource;
}

Fixed version (ground truth):
@Override public void setResource(IResource resource){
  fResource=resource;
}
Program: 92561
Project: 92561
Buggy source:
@Override public int hashCode(){
  final int prime=31;
  int result=1;
  result=prime * result + ((fResource == null) ? 0 : fResource.hashCode());
  result=prime * result + ((fTrace == null) ? 0 : fTrace.hashCode());
  return result;
}

Fixed version (ground truth):
@Override public int hashCode(){
  final int prime=31;
  int result=1;
  result=prime * result + ((fFile == null) ? 0 : fFile.getLocation().hashCode());
  result=prime * result + ((fTrace == null) ? 0 : fTrace.getName().hashCode());
  return result;
}
Program: 92562
Project: 92562
Buggy source:
@Override public boolean equals(Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (obj instanceof TmfEditorInput) {
    return fResource.equals(((TmfEditorInput)obj).fResource);
  }
 else   if (obj instanceof IFileEditorInput) {
    return ((IFileEditorInput)obj).getFile().equals(fResource);
  }
 else   if (obj instanceof FileStoreEditorInput) {
    return ((FileStoreEditorInput)obj).getURI().equals(fResource.getRawLocationURI());
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean equals(Object obj){
  if (this == obj)   return true;
  if (obj == null)   return false;
  if (getClass() != obj.getClass())   return false;
  TmfEditorInput other=(TmfEditorInput)obj;
  if (fFile == null) {
    if (other.fFile != null)     return false;
  }
 else   if (!fFile.getLocation().equals(other.fFile.getLocation()))   return false;
  if (fTrace == null) {
    if (other.fTrace != null)     return false;
  }
 else   if (!fTrace.getName().equals(other.fTrace.getName()))   return false;
  return true;
}
Program: 92563
Project: 92563
Buggy source:
@Override public boolean exists(){
  return fResource.exists();
}

Fixed version (ground truth):
@Override public boolean exists(){
  return fFile.exists();
}
Program: 92564
Project: 92564
Buggy source:
public TmfEditorInput(IResource resource,ITmfTrace<?> trace){
  fResource=resource;
  fTrace=trace;
}

Fixed version (ground truth):
public TmfEditorInput(IFile file,ITmfTrace<?> trace){
  fFile=file;
  fTrace=trace;
}
Program: 92565
Project: 92565
Buggy source:
@Override public ImageDescriptor getImageDescriptor(){
  if (fResource instanceof IFile) {
    IFile file=(IFile)fResource;
    IContentType contentType=IDE.getContentType(file);
    return PlatformUI.getWorkbench().getEditorRegistry().getImageDescriptor(file.getName(),contentType);
  }
  return null;
}

Fixed version (ground truth):
@Override public ImageDescriptor getImageDescriptor(){
  IContentType contentType=IDE.getContentType(fFile);
  return PlatformUI.getWorkbench().getEditorRegistry().getImageDescriptor(fFile.getName(),contentType);
}
Program: 92566
Project: 92566
Buggy source:
@Override public String getToolTipText(){
  return fResource.getFullPath().makeRelative().toString();
}

Fixed version (ground truth):
@Override public String getToolTipText(){
  return fFile.getFullPath().makeRelative().toString();
}
Program: 92567
Project: 92567
Buggy source:
/** 
 * Position on the first event in the tracefile.<p> The function return the read status after the first event.<p> A status different of EOK probably means there is no event associated to this tracefile.
 * @return LTT read status, as defined in Jni_C_Constant
 * @see org.eclipse.linuxtools.lttng.jni.common.Jni_C_Constant
 */
public int positionToFirstEvent(){
  eventState=ltt_positionToFirstEvent(tracefilePtr.getLibraryId(),tracefilePtr.getPointer());
  return eventState;
}

Fixed version (ground truth):
/** 
 * Position on the first event in the tracefile.<p> The function return the read status after the first event.<p> A status different of EOK probably means there is no event associated to this tracefile.
 * @return LTT read status, as defined in Jni_C_Constant
 * @see org.eclipse.linuxtools.lttng.jni.common.Jni_C_Constant
 */
protected int positionToFirstEvent(){
  eventState=ltt_positionToFirstEvent(tracefilePtr.getLibraryId(),tracefilePtr.getPointer());
  return eventState;
}