nus-yam/ex-repair huggingface dataset:
Program: 92623
Project: 92623
Buggy source:
@Override public void run(){
  IWorkbenchWindow window=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
  IFileStore fileStore=getFileStore();
  if (fileStore != null && !fileStore.fetchInfo().isDirectory() && fileStore.fetchInfo().exists()) {
    long timeStamp=fileStore.fetchInfo().getLastModified();
    if (timeStamp > ts) {
      MessageBox msg=new MessageBox(window.getShell(),SWT.ICON_WARNING | SWT.APPLICATION_MODAL | SWT.YES| SWT.NO);
      msg.setText(fileStore.toString());
      msg.setMessage("String_Node_Str" + fileStore + "String_Node_Str"+ "String_Node_Str");
    }
    try {
      IWorkbenchPage page=window.getActivePage();
      if (page != null) {
        IFileStore fs=EFS.getStore(fileStore.toURI());
        IEditorInput input=getInput(fs);
        page.openEditor(input,EDITOR_ID,false);
      }
    }
 catch (    Exception e) {
      Status s=new Status(IStatus.ERROR,STAnnotatedSourceEditorActivator.getUniqueIdentifier(),IStatus.ERROR,"String_Node_Str",e);
      STAnnotatedSourceEditorActivator.getDefault().getLog().log(s);
    }
  }
 else {
    if (!fileStore.fetchInfo().exists()) {
      showMessage("String_Node_Str" + fileStore,window.getShell());
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  IWorkbenchWindow window=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
  IFileStore fileStore=getFileStore();
  if (fileStore != null && !fileStore.fetchInfo().isDirectory()) {
    if (fileStore.fetchInfo().exists()) {
      long timeStamp=fileStore.fetchInfo().getLastModified();
      if (timeStamp > ts) {
        MessageBox msg=new MessageBox(window.getShell(),SWT.ICON_WARNING | SWT.APPLICATION_MODAL | SWT.YES| SWT.NO);
        msg.setText(fileStore.toString());
        msg.setMessage("String_Node_Str" + fileStore + "String_Node_Str"+ "String_Node_Str");
      }
      try {
        IWorkbenchPage page=window.getActivePage();
        if (page != null) {
          IFileStore fs=EFS.getStore(fileStore.toURI());
          IEditorInput input=getInput(fs);
          page.openEditor(input,EDITOR_ID,false);
        }
      }
 catch (      Exception e) {
        Status s=new Status(IStatus.ERROR,STAnnotatedSourceEditorActivator.getUniqueIdentifier(),IStatus.ERROR,"String_Node_Str",e);
        STAnnotatedSourceEditorActivator.getDefault().getLog().log(s);
      }
    }
 else {
      showMessage("String_Node_Str" + fileStore,window.getShell());
    }
  }
}
Program: 92624
Project: 92624
Buggy source:
public void run(){
  String path=dialog.open();
  if (path == null) {
    return;
  }
  Serializer serializer=null;
  final File chartFile=new File(path);
  try {
    serializer=SerializerImpl.instance();
    if (chartFile.exists()) {
      chart=serializer.read(new FileInputStream(chartFile));
      chartView.getChartViewer().setBuffer(null);
      chartView.setChart(chart);
    }
  }
 catch (  Exception e) {
    WizardBase.displayException(e);
  }
}

Fixed version (ground truth):
public void run(){
  String path=dialog.open();
  if (path == null) {
    return;
  }
  File chartFile=new File(path);
  try {
    Serializer serializer=SerializerImpl.instance();
    if (chartFile.exists()) {
      chart=serializer.read(new FileInputStream(chartFile));
      chartView.getChartViewer().setBuffer(null);
      chartView.setChart(chart);
    }
  }
 catch (  Exception e) {
    WizardBase.displayException(e);
  }
}
Program: 92625
Project: 92625
Buggy source:
/** 
 * Create and open a new chart view <br/> <br/><u><b>Note</b></u>: this method uses the UI thread to open the view and then it sets the input chart. The UI thread execution is synchronized on internal Integer SEC_ID which is the secondary id of the chart view. Each new chart view has a secondary id equal to SEC_ID++. 
 * @param chart
 */
public static void createChartView(final Chart chart){
  PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable(){
    public void run(){
      try {
synchronized (SEC_ID) {
          ChartView view=(ChartView)PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(VIEW_ID,"String_Node_Str" + (SEC_ID++),IWorkbenchPage.VIEW_ACTIVATE);
          view.setChart(chart);
        }
      }
 catch (      PartInitException e) {
        Status s=new Status(Status.ERROR,Activator.PLUGIN_ID,Status.ERROR,e.getMessage(),e);
        Activator.getDefault().getLog().log(s);
      }
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Create and open a new chart view <br/> <br/><u><b>Note</b></u>: this method uses the UI thread to open the view and then it sets the input chart. The UI thread execution is synchronized on internal Integer SEC_ID which is the secondary id of the chart view. Each new chart view has a secondary id equal to SEC_ID++. 
 * @param chart
 */
public static void createChartView(final Chart chart){
  PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable(){
    public void run(){
      try {
synchronized (lock) {
          ChartView view=(ChartView)PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(VIEW_ID,"String_Node_Str" + (SEC_ID++),IWorkbenchPage.VIEW_ACTIVATE);
          view.setChart(chart);
        }
      }
 catch (      PartInitException e) {
        Status s=new Status(Status.ERROR,Activator.PLUGIN_ID,Status.ERROR,e.getMessage(),e);
        Activator.getDefault().getLog().log(s);
      }
    }
  }
);
}
Program: 92626
Project: 92626
Buggy source:
public void setContent(LttngEventContent newContent){
  fContent=newContent;
}

Fixed version (ground truth):
public void setContent(LttngEventContent newContent){
  super.setContent(newContent);
}
Program: 92627
Project: 92627
Buggy source:
@Override public LttngEventContent getContent(){
  return (LttngEventContent)fContent;
}

Fixed version (ground truth):
@Override public LttngEventContent getContent(){
  return (LttngEventContent)super.getContent();
}
Program: 92628
Project: 92628
Buggy source:
public void setType(LttngEventType newType){
  fType=newType;
}

Fixed version (ground truth):
public void setType(LttngEventType newType){
  super.setType(newType);
}
Program: 92629
Project: 92629
Buggy source:
@Override public void setReference(String reference){
  fReference=reference;
}

Fixed version (ground truth):
@Override public void setReference(String reference){
  super.setReference(reference);
}
Program: 92630
Project: 92630
Buggy source:
@Override public LttngEventType getType(){
  return (LttngEventType)fType;
}

Fixed version (ground truth):
@Override public LttngEventType getType(){
  return (LttngEventType)super.getType();
}
Program: 92631
Project: 92631
Buggy source:
/** 
 * Set a new parent trace for this event
 * @param parentTrace The new parent
 */
public void setParentTrace(TmfTrace<LttngEvent> parentTrace){
  fTrace=parentTrace;
}

Fixed version (ground truth):
/** 
 * Set a new parent trace for this event
 * @param parentTrace The new parent
 */
public void setParentTrace(TmfTrace<LttngEvent> parentTrace){
  super.setTrace(parentTrace);
}
Program: 92632
Project: 92632
Buggy source:
public void testSetContent(){
  TmfEvent event=new TmfEvent(fEvent1);
  assertEquals("String_Node_Str",fContent1,event.getContent());
  event.setContent(fContent2);
  assertEquals("String_Node_Str",fContent2,event.getContent());
  event.setContent(null);
  assertNull("String_Node_Str",event.getContent());
  event.setContent(fContent1);
  assertEquals("String_Node_Str",fContent1,event.getContent());
}

Fixed version (ground truth):
public void testSetContent(){
  TestEvent event=new TestEvent(fEvent1);
  assertEquals("String_Node_Str",fContent1,event.getContent());
  event.setContent(fContent2);
  assertEquals("String_Node_Str",fContent2,event.getContent());
  event.setContent(null);
  assertNull("String_Node_Str",event.getContent());
  event.setContent(fContent1);
  assertEquals("String_Node_Str",fContent1,event.getContent());
}
Program: 92633
Project: 92633
Buggy source:
public void testSetType(){
  TmfEvent event=new TmfEvent(fEvent1);
  assertEquals("String_Node_Str",fType,event.getType());
  String typeId="String_Node_Str";
  String[] labels=new String[]{fLabel2,fLabel1};
  TmfEventType newType=new TmfEventType(fContext,typeId,TmfEventField.makeRoot(labels));
  event.setType(newType);
  assertEquals("String_Node_Str",newType,event.getType());
  event.setType(null);
  assertNull("String_Node_Str",event.getType());
  event.setType(fType);
  assertEquals("String_Node_Str",fType,event.getType());
}

Fixed version (ground truth):
public void testSetType(){
  TestEvent event=new TestEvent(fEvent1);
  assertEquals("String_Node_Str",fType,event.getType());
  String typeId="String_Node_Str";
  String[] labels=new String[]{fLabel2,fLabel1};
  TmfEventType newType=new TmfEventType(fContext,typeId,TmfEventField.makeRoot(labels));
  event.setType(newType);
  assertEquals("String_Node_Str",newType,event.getType());
  event.setType(null);
  assertNull("String_Node_Str",event.getType());
  event.setType(fType);
  assertEquals("String_Node_Str",fType,event.getType());
}
Program: 92634
Project: 92634
Buggy source:
public void testSetReference(){
  TmfEvent event=new TmfEvent(fEvent1);
  assertEquals("String_Node_Str",fReference1,event.getReference());
  event.setReference(fReference2);
  assertEquals("String_Node_Str",fReference2,event.getReference());
  event.setReference(null);
  assertNull("String_Node_Str",event.getReference());
  event.setReference(fReference1);
  assertEquals("String_Node_Str",fReference1,event.getReference());
}

Fixed version (ground truth):
public void testSetReference(){
  TestEvent event=new TestEvent(fEvent1);
  assertEquals("String_Node_Str",fReference1,event.getReference());
  event.setReference(fReference2);
  assertEquals("String_Node_Str",fReference2,event.getReference());
  event.setReference(null);
  assertNull("String_Node_Str",event.getReference());
  event.setReference(fReference1);
  assertEquals("String_Node_Str",fReference1,event.getReference());
}
Program: 92635
Project: 92635
Buggy source:
public void testSetSource(){
  TmfEvent event=new TmfEvent(fEvent1);
  assertEquals("String_Node_Str",fSource,event.getSource());
  String source2="String_Node_Str";
  event.setSource(source2);
  assertEquals("String_Node_Str",source2,event.getSource());
  event.setSource(null);
  assertNull("String_Node_Str",event.getSource());
  event.setSource(fSource);
  assertEquals("String_Node_Str",fSource,event.getSource());
}

Fixed version (ground truth):
public void testSetSource(){
  TestEvent event=new TestEvent(fEvent1);
  assertEquals("String_Node_Str",fSource,event.getSource());
  String source2="String_Node_Str";
  event.setSource(source2);
  assertEquals("String_Node_Str",source2,event.getSource());
  event.setSource(null);
  assertNull("String_Node_Str",event.getSource());
  event.setSource(fSource);
  assertEquals("String_Node_Str",fSource,event.getSource());
}
Program: 92636
Project: 92636
Buggy source:
public void testSetTimestamp(){
  TmfEvent event=new TmfEvent(fEvent1);
  assertEquals("String_Node_Str",fTimestamp1,event.getTimestamp());
  event.setTimestamp(fTimestamp2);
  assertEquals("String_Node_Str",fTimestamp2,event.getTimestamp());
  event.setTimestamp(null);
  assertNull("String_Node_Str",event.getTimestamp());
  event.setTimestamp(fTimestamp1);
  assertEquals("String_Node_Str",fTimestamp1,event.getTimestamp());
}

Fixed version (ground truth):
public void testSetTimestamp(){
  TestEvent event=new TestEvent(fEvent1);
  assertEquals("String_Node_Str",fTimestamp1,event.getTimestamp());
  event.setTimestamp(fTimestamp2);
  assertEquals("String_Node_Str",fTimestamp2,event.getTimestamp());
  event.setTimestamp(null);
  assertNull("String_Node_Str",event.getTimestamp());
  event.setTimestamp(fTimestamp1);
  assertEquals("String_Node_Str",fTimestamp1,event.getTimestamp());
}
Program: 92637
Project: 92637
Buggy source:
/** 
 * @param source the new event source
 */
public void setSource(String source){
  fSource=source;
}

Fixed version (ground truth):
/** 
 * @param source the new event source
 */
protected void setSource(String source){
  fSource=source;
}
Program: 92638
Project: 92638
Buggy source:
/** 
 * @param content the event new content
 */
public void setContent(ITmfEventField content){
  fContent=content;
}

Fixed version (ground truth):
/** 
 * @param content the event new content
 */
protected void setContent(ITmfEventField content){
  fContent=content;
}
Program: 92639
Project: 92639
Buggy source:
/** 
 * @param type the new event type
 */
public void setType(ITmfEventType type){
  fType=type;
}

Fixed version (ground truth):
/** 
 * @param type the new event type
 */
protected void setType(ITmfEventType type){
  fType=type;
}
Program: 92640
Project: 92640
Buggy source:
/** 
 * @param reference the new event reference
 */
public void setReference(String reference){
  fReference=reference;
}

Fixed version (ground truth):
/** 
 * @param reference the new event reference
 */
protected void setReference(String reference){
  fReference=reference;
}
Program: 92641
Project: 92641
Buggy source:
/** 
 * @param timestamp the new event timestamp
 */
public void setTimestamp(ITmfTimestamp timestamp){
  fTimestamp=timestamp;
}

Fixed version (ground truth):
/** 
 * @param timestamp the new event timestamp
 */
protected void setTimestamp(ITmfTimestamp timestamp){
  fTimestamp=timestamp;
}
Program: 92642
Project: 92642
Buggy source:
public TmfBaseColumnDataProviderTest(final String name){
  super(name);
  fTestName=name;
  fEvent1=new TmfEvent(fTimestamp1,fSource,fType1,fReference);
  fContent1=new TmfEventField(ITmfEventField.ROOT_ID,"String_Node_Str");
  fEvent1.setContent(fContent1);
  fEvent2=new TmfEvent(fTimestamp2,fSource,fType2,fReference);
  fContent2=new TmfEventField(ITmfEventField.ROOT_ID,"String_Node_Str");
  fEvent2.setContent(fContent2);
  fEvent3=new TmfEvent(fTimestamp3,fSource,fType3,fReference);
  fContent3=new TmfEventField(ITmfEventField.ROOT_ID,"String_Node_Str");
  fEvent3.setContent(fContent3);
  fStatsData=new TmfBaseStatisticsTree();
  fExtraInfo=new ITmfExtraEventInfo(){
    @Override public String getTraceName(){
      return name;
    }
  }
;
  fStatsData.getOrCreate(new TmfFixedArray<String>(fTestName,Messages.TmfStatisticsData_EventTypes));
  fStatsData.registerEvent(fEvent1,fExtraInfo);
  fStatsData.registerEvent(fEvent2,fExtraInfo);
  fStatsData.registerEvent(fEvent3,fExtraInfo);
  provider=new TmfBaseColumnDataProvider();
}

Fixed version (ground truth):
public TmfBaseColumnDataProviderTest(final String name){
  super(name);
  fTestName=name;
  fContent1=new TmfEventField(ITmfEventField.ROOT_ID,"String_Node_Str");
  fEvent1=new TmfEvent(null,fTimestamp1,fSource,fType1,fContent1,fReference);
  fContent2=new TmfEventField(ITmfEventField.ROOT_ID,"String_Node_Str");
  fEvent2=new TmfEvent(null,fTimestamp2,fSource,fType2,fContent2,fReference);
  fContent3=new TmfEventField(ITmfEventField.ROOT_ID,"String_Node_Str");
  fEvent3=new TmfEvent(null,fTimestamp3,fSource,fType3,fContent3,fReference);
  fStatsData=new TmfBaseStatisticsTree();
  fExtraInfo=new ITmfExtraEventInfo(){
    @Override public String getTraceName(){
      return name;
    }
  }
;
  fStatsData.getOrCreate(new TmfFixedArray<String>(fTestName,Messages.TmfStatisticsData_EventTypes));
  fStatsData.registerEvent(fEvent1,fExtraInfo);
  fStatsData.registerEvent(fEvent2,fExtraInfo);
  fStatsData.registerEvent(fEvent3,fExtraInfo);
  provider=new TmfBaseColumnDataProvider();
}
Program: 92643
Project: 92643
Buggy source:
/** 
 * @param name of the test
 */
public TmfBaseStatisticsDataTest(final String name){
  super(name);
  fTestName=name;
  fEvent1=new TmfEvent(fTimestamp1,fSource,fType1,fReference);
  fContent1=new TmfEventField(ITmfEventField.ROOT_ID,"String_Node_Str");
  fEvent1.setContent(fContent1);
  fEvent2=new TmfEvent(fTimestamp2,fSource,fType2,fReference);
  fContent2=new TmfEventField(ITmfEventField.ROOT_ID,"String_Node_Str");
  fEvent2.setContent(fContent2);
  fEvent3=new TmfEvent(fTimestamp3,fSource,fType3,fReference);
  fContent3=new TmfEventField(ITmfEventField.ROOT_ID,"String_Node_Str");
  fEvent3.setContent(fContent3);
  fStatsData=new TmfBaseStatisticsTree();
  fExtraInfo=new ITmfExtraEventInfo(){
    @Override public String getTraceName(){
      return name;
    }
  }
;
  fStatsData.registerEvent(fEvent1,fExtraInfo);
  fStatsData.registerEvent(fEvent2,fExtraInfo);
  fStatsData.registerEvent(fEvent3,fExtraInfo);
}

Fixed version (ground truth):
/** 
 * @param name of the test
 */
public TmfBaseStatisticsDataTest(final String name){
  super(name);
  fTestName=name;
  fContent1=new TmfEventField(ITmfEventField.ROOT_ID,"String_Node_Str");
  fEvent1=new TmfEvent(null,fTimestamp1,fSource,fType1,fContent1,fReference);
  fContent2=new TmfEventField(ITmfEventField.ROOT_ID,"String_Node_Str");
  fEvent2=new TmfEvent(null,fTimestamp2,fSource,fType2,fContent2,fReference);
  fContent3=new TmfEventField(ITmfEventField.ROOT_ID,"String_Node_Str");
  fEvent3=new TmfEvent(null,fTimestamp3,fSource,fType3,fContent3,fReference);
  fStatsData=new TmfBaseStatisticsTree();
  fExtraInfo=new ITmfExtraEventInfo(){
    @Override public String getTraceName(){
      return name;
    }
  }
;
  fStatsData.registerEvent(fEvent1,fExtraInfo);
  fStatsData.registerEvent(fEvent2,fExtraInfo);
  fStatsData.registerEvent(fEvent3,fExtraInfo);
}
Program: 92645
Project: 92645
Buggy source:
@Override public void handleCompleted(){
  System.out.println("String_Node_Str" + startIdx + "String_Node_Str"+ feventCount);
}

Fixed version (ground truth):
@Override public void handleCompleted(){
}
Program: 92648
Project: 92648
Buggy source:
public void testSyntheticEventRequest(){
  System.out.println("String_Node_Str");
}

Fixed version (ground truth):
public void testSyntheticEventRequest(){
}
Program: 92649
Project: 92649
Buggy source:
public void testConstructors(){
  LttngEvent testEvent=null;
  LttngEventContent testContent=null;
  @SuppressWarnings("String_Node_Str") LttngEventContent testContent2=null;
  LttngEventField[] testFields=new LttngEventField[1];
  testFields[0]=new LttngEventField("String_Node_Str");
  try {
    testContent=new LttngEventContent();
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    testContent=new LttngEventContent(testEvent);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    HashMap<String,LttngEventField> parsedContent=new HashMap<String,LttngEventField>();
    testContent=new LttngEventContent(testEvent,parsedContent);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    testContent=new LttngEventContent(testEvent);
    testContent2=new LttngEventContent(testContent);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
public void testConstructors(){
  LttngEvent testEvent=null;
  LttngEventContent testContent=null;
  LttngEventField[] testFields=new LttngEventField[1];
  testFields[0]=new LttngEventField("String_Node_Str");
  try {
    testContent=new LttngEventContent();
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    testContent=new LttngEventContent(testEvent);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    HashMap<String,LttngEventField> parsedContent=new HashMap<String,LttngEventField>();
    testContent=new LttngEventContent(testEvent,parsedContent);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    testContent=new LttngEventContent(testEvent);
    new LttngEventContent(testContent);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
}
Program: 92650
Project: 92650
Buggy source:
public void testConstructors(){
  LttngEventField testField=null;
  @SuppressWarnings("String_Node_Str") LttngEventField testField2=null;
  try {
    testField=new LttngEventField("String_Node_Str","String_Node_Str");
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    testField=new LttngEventField("String_Node_Str","String_Node_Str");
    testField2=new LttngEventField(testField);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
public void testConstructors(){
  LttngEventField testField=null;
  try {
    testField=new LttngEventField("String_Node_Str","String_Node_Str");
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    testField=new LttngEventField("String_Node_Str","String_Node_Str");
    new LttngEventField(testField);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
}
Program: 92651
Project: 92651
Buggy source:
public void testConstructors(){
  LttngEvent testEvent=null;
  LTTngTrace testTrace=null;
  @SuppressWarnings("String_Node_Str") LttngEvent testAnotherEvent=null;
  LttngTimestamp testTime=null;
  String testSource=null;
  LttngEventType testType=null;
  LttngEventContent testContent=null;
  String testReference=null;
  JniEvent testJniEvent=null;
  String[] testMarkerFields=null;
  try {
    testMarkerFields=new String[]{"String_Node_Str"};
    testEvent=null;
    testTime=new LttngTimestamp(0L);
    testSource="String_Node_Str";
    testType=new LttngEventType("String_Node_Str",0L,"String_Node_Str",0,testMarkerFields);
    testContent=new LttngEventContent(testEvent);
    testReference="String_Node_Str";
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    testEvent=new LttngEvent(testTrace,testTime,testSource,testType,testContent,testReference,testJniEvent);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    testAnotherEvent=new LttngEvent(null);
    fail("String_Node_Str");
  }
 catch (  Exception e) {
  }
  testEvent=prepareToTest();
  try {
    testAnotherEvent=new LttngEvent(testEvent);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
public void testConstructors(){
  LttngEvent testEvent=null;
  LTTngTrace testTrace=null;
  LttngTimestamp testTime=null;
  String testSource=null;
  LttngEventType testType=null;
  LttngEventContent testContent=null;
  String testReference=null;
  JniEvent testJniEvent=null;
  String[] testMarkerFields=null;
  try {
    testMarkerFields=new String[]{"String_Node_Str"};
    testEvent=null;
    testTime=new LttngTimestamp(0L);
    testSource="String_Node_Str";
    testType=new LttngEventType("String_Node_Str",0L,"String_Node_Str",0,testMarkerFields);
    testContent=new LttngEventContent(testEvent);
    testReference="String_Node_Str";
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    testEvent=new LttngEvent(testTrace,testTime,testSource,testType,testContent,testReference,testJniEvent);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    new LttngEvent(null);
    fail("String_Node_Str");
  }
 catch (  Exception e) {
  }
  testEvent=prepareToTest();
  try {
    new LttngEvent(testEvent);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
}
Program: 92652
Project: 92652
Buggy source:
public void testConstructors(){
  LttngEventType tmpEventType=null;
  @SuppressWarnings("String_Node_Str") LttngEventType tmpEventType2=null;
  try {
    tmpEventType=new LttngEventType();
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    tmpEventType=new LttngEventType("String_Node_Str",0L,"String_Node_Str",0,new String[]{"String_Node_Str"});
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    tmpEventType=new LttngEventType("String_Node_Str",0L,"String_Node_Str",0,new String[]{"String_Node_Str"});
    tmpEventType2=new LttngEventType(tmpEventType);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
public void testConstructors(){
  LttngEventType tmpEventType=null;
  try {
    tmpEventType=new LttngEventType();
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    tmpEventType=new LttngEventType("String_Node_Str",0L,"String_Node_Str",0,new String[]{"String_Node_Str"});
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    tmpEventType=new LttngEventType("String_Node_Str",0L,"String_Node_Str",0,new String[]{"String_Node_Str"});
    new LttngEventType(tmpEventType);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
}
Program: 92653
Project: 92653
Buggy source:
public void testConstructors(){
  LttngTimestamp tmpTime=null;
  @SuppressWarnings("String_Node_Str") LttngTimestamp tmpTime2=null;
  try {
    tmpTime=new LttngTimestamp();
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    tmpTime=new LttngTimestamp(1);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    tmpTime=new LttngTimestamp(1);
    tmpTime2=new LttngTimestamp(tmpTime);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
public void testConstructors(){
  LttngTimestamp tmpTime=null;
  try {
    tmpTime=new LttngTimestamp();
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    tmpTime=new LttngTimestamp(1);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  try {
    tmpTime=new LttngTimestamp(1);
    new LttngTimestamp(tmpTime);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
}
Program: 92655
Project: 92655
Buggy source:
public void testEventConstructors(){
  JniTracefile testTracefile=null;
  @SuppressWarnings("String_Node_Str") JniEvent testEvent1=null;
  @SuppressWarnings("String_Node_Str") JniEvent testEvent2=null;
  try {
    testTracefile=JniTraceFactory.getJniTrace(tracepath,null,printLttDebug).requestTracefileByName(eventName);
  }
 catch (  JniException e) {
  }
  try {
    testEvent1=testTracefile.allocateNewJniEvent(testTracefile.getCurrentEvent().getEventPtr(),null,testTracefile);
    fail("String_Node_Str");
  }
 catch (  JniException e) {
  }
  try {
    testEvent1=testTracefile.allocateNewJniEvent(testTracefile.getCurrentEvent().getEventPtr(),testTracefile.getTracefileMarkersMap(),null);
    fail("String_Node_Str");
  }
 catch (  JniException e) {
  }
  try {
    testEvent1=testTracefile.allocateNewJniEvent(testTracefile.getCurrentEvent().getEventPtr(),testTracefile.getTracefileMarkersMap(),testTracefile);
  }
 catch (  JniException e) {
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
public void testEventConstructors(){
  JniTracefile testTracefile=null;
  try {
    testTracefile=JniTraceFactory.getJniTrace(tracepath,null,printLttDebug).requestTracefileByName(eventName);
  }
 catch (  JniException e) {
    fail("String_Node_Str");
  }
  try {
    testTracefile.allocateNewJniEvent(testTracefile.getCurrentEvent().getEventPtr(),null,testTracefile);
    fail("String_Node_Str");
  }
 catch (  JniException e) {
  }
  try {
    testTracefile.allocateNewJniEvent(testTracefile.getCurrentEvent().getEventPtr(),testTracefile.getTracefileMarkersMap(),null);
    fail("String_Node_Str");
  }
 catch (  JniException e) {
  }
  try {
    testTracefile.allocateNewJniEvent(testTracefile.getCurrentEvent().getEventPtr(),testTracefile.getTracefileMarkersMap(),testTracefile);
  }
 catch (  JniException e) {
    fail("String_Node_Str");
  }
}
Program: 92656
Project: 92656
Buggy source:
public void testEventConstructors(){
  JniMarker tmpMarker=null;
  @SuppressWarnings("String_Node_Str") JniMarkerField tmpMarkerField1=null;
  @SuppressWarnings("String_Node_Str") JniMarkerField tmpMarkerField2=null;
  try {
    tmpMarker=JniTraceFactory.getJniTrace(tracepath,null,printLttDebug).requestEventByName(eventName).requestEventMarker();
  }
 catch (  JniException e) {
  }
  try {
    tmpMarkerField1=tmpMarker.allocateNewJniMarkerField(tmpMarker.getMarkerFieldsArrayList().get(0).getMarkerFieldPtr());
  }
 catch (  JniException e) {
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
public void testEventConstructors(){
  JniMarker tmpMarker=null;
  try {
    tmpMarker=JniTraceFactory.getJniTrace(tracepath,null,printLttDebug).requestEventByName(eventName).requestEventMarker();
  }
 catch (  JniException e) {
    fail("String_Node_Str");
  }
  try {
    tmpMarker.allocateNewJniMarkerField(tmpMarker.getMarkerFieldsArrayList().get(0).getMarkerFieldPtr());
  }
 catch (  JniException e) {
    fail("String_Node_Str");
  }
}
Program: 92657
Project: 92657
Buggy source:
public void testEventConstructors(){
  JniEvent tmpEvent=null;
  @SuppressWarnings("String_Node_Str") JniMarker testMarker1=null;
  @SuppressWarnings("String_Node_Str") JniMarker testMarker2=null;
  try {
    tmpEvent=JniTraceFactory.getJniTrace(tracepath,null,printLttDebug).requestEventByName(eventName);
  }
 catch (  JniException e) {
  }
  try {
    testMarker1=tmpEvent.getParentTracefile().allocateNewJniMarker(tmpEvent.requestEventMarker().getMarkerPtr());
  }
 catch (  JniException e) {
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
public void testEventConstructors(){
  JniEvent tmpEvent=null;
  try {
    tmpEvent=JniTraceFactory.getJniTrace(tracepath,null,printLttDebug).requestEventByName(eventName);
  }
 catch (  JniException e) {
    fail("String_Node_Str");
  }
  try {
    tmpEvent.getParentTracefile().allocateNewJniMarker(tmpEvent.requestEventMarker().getMarkerPtr());
  }
 catch (  JniException e) {
    fail("String_Node_Str");
  }
}
Program: 92658
Project: 92658
Buggy source:
public void init(String name,Class<T> eventType){
  super.init(name,eventType);
}

Fixed version (ground truth):
@Override public void init(String name,Class<T> eventType){
  super.init(name,eventType);
}
Program: 92661
Project: 92661
Buggy source:
protected LTTngTrace prepareStreamToTest(){
  if (frealStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(ftracepath_T1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTrace tmpStream=new LTTngTrace(testfile.getPath(),false);
      frealStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + ftracepath_T1);
      frealStream=null;
    }
  }
 else {
    frealStream.seekEvent(0L);
  }
  return frealStream;
}

Fixed version (ground truth):
protected LTTngTrace prepareStreamToTest(){
  if (frealStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(ftracepath_T1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTrace tmpStream=new LTTngTrace(testfile.getName(),testfile.getPath(),false);
      frealStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + ftracepath_T1);
      frealStream=null;
    }
  }
 else {
    frealStream.seekEvent(0L);
  }
  return frealStream;
}
Program: 92662
Project: 92662
Buggy source:
protected LTTngTextTrace prepareTextStreamToTest(){
  if (ftextStream_T1 == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(fTextTracepath_T1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTextTrace tmpStream=new LTTngTextTrace(testfile.getPath());
      ftextStream_T1=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + fTextTracepath_T1);
      ftextStream_T1=null;
    }
  }
 else {
    ftextStream_T1.seekEvent(0);
  }
  return ftextStream_T1;
}

Fixed version (ground truth):
protected LTTngTextTrace prepareTextStreamToTest(){
  if (ftextStream_T1 == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(fTextTracepath_T1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTextTrace tmpStream=new LTTngTextTrace(testfile.getName(),testfile.getPath());
      ftextStream_T1=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + fTextTracepath_T1);
      ftextStream_T1=null;
    }
  }
 else {
    ftextStream_T1.seekEvent(0);
  }
  return ftextStream_T1;
}
Program: 92663
Project: 92663
Buggy source:
private LTTngTextTrace initializeEventStream(){
  if (testStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTextTrace tmpStream=new LTTngTextTrace(testfile.getPath());
      testStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + tracepath1);
      testStream=null;
    }
  }
 else {
    testStream.seekEvent(0);
  }
  return testStream;
}

Fixed version (ground truth):
private LTTngTextTrace initializeEventStream(){
  if (testStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTextTrace tmpStream=new LTTngTextTrace(testfile.getName(),testfile.getPath());
      testStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + tracepath1);
      testStream=null;
    }
  }
 else {
    testStream.seekEvent(0);
  }
  return testStream;
}
Program: 92664
Project: 92664
Buggy source:
private LTTngTextTrace initializeEventStream(){
  if (testStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTextTrace tmpStream=new LTTngTextTrace(testfile.getPath(),skipIndexing);
      testStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + tracepath1);
      testStream=null;
    }
  }
 else {
    testStream.seekEvent(0);
  }
  return testStream;
}

Fixed version (ground truth):
private LTTngTextTrace initializeEventStream(){
  if (testStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTextTrace tmpStream=new LTTngTextTrace(testfile.getName(),testfile.getPath(),skipIndexing);
      testStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + tracepath1);
      testStream=null;
    }
  }
 else {
    testStream.seekEvent(0);
  }
  return testStream;
}
Program: 92665
Project: 92665
Buggy source:
private LTTngTextTrace initializeEventStream(){
  if (testStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTextTrace tmpStream=new LTTngTextTrace(testfile.getPath(),skipIndexing);
      testStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + tracepath1);
      testStream=null;
    }
  }
 else {
    testStream.seekEvent(0);
  }
  return testStream;
}

Fixed version (ground truth):
private LTTngTextTrace initializeEventStream(){
  if (testStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTextTrace tmpStream=new LTTngTextTrace(testfile.getName(),testfile.getPath(),skipIndexing);
      testStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + tracepath1);
      testStream=null;
    }
  }
 else {
    testStream.seekEvent(0);
  }
  return testStream;
}
Program: 92666
Project: 92666
Buggy source:
private LTTngTextTrace initializeEventStream(){
  if (testStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTextTrace tmpStream=new LTTngTextTrace(testfile.getPath(),skipIndexing);
      testStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + tracepath1);
      testStream=null;
    }
  }
 else {
    testStream.seekEvent(0);
  }
  return testStream;
}

Fixed version (ground truth):
private LTTngTextTrace initializeEventStream(){
  if (testStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTextTrace tmpStream=new LTTngTextTrace(testfile.getName(),testfile.getPath(),skipIndexing);
      testStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + tracepath1);
      testStream=null;
    }
  }
 else {
    testStream.seekEvent(0);
  }
  return testStream;
}
Program: 92667
Project: 92667
Buggy source:
private LTTngTextTrace initializeEventStream(){
  if (testStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTextTrace tmpStream=new LTTngTextTrace(testfile.getPath(),skipIndexing);
      testStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + tracepath1);
      testStream=null;
    }
  }
  return testStream;
}

Fixed version (ground truth):
private LTTngTextTrace initializeEventStream(){
  if (testStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTextTrace tmpStream=new LTTngTextTrace(testfile.getName(),testfile.getPath(),skipIndexing);
      testStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + tracepath1);
      testStream=null;
    }
  }
  return testStream;
}
Program: 92668
Project: 92668
Buggy source:
/** 
 * @param args
 */
public static void main(String[] args){
  final String TRACE_PATH="String_Node_Str";
  final boolean USE_TEXT_TRACE=false;
  final int NB_OF_PASS=1;
  final boolean PARSE_EVENTS=true;
  TmfTrace<LttngEvent> tmptrace=null;
  LttngEvent tmpevent=null;
  TmfContext tmpContext=null;
  Long nbEvent=0L;
  try {
    if (USE_TEXT_TRACE) {
      tmptrace=new LTTngTextTrace(TRACE_PATH,true);
    }
 else {
      tmptrace=new LTTngTrace(TRACE_PATH,null,true,true);
    }
    LttngTimestamp tmpTime=new LttngTimestamp(0L);
    tmpContext=new TmfContext(new LttngLocation(0L),0);
    long startTime=System.nanoTime();
    System.out.println("String_Node_Str" + startTime);
    for (int nb=0; nb < NB_OF_PASS; nb++) {
      tmpContext=tmptrace.seekEvent(tmpTime);
      tmpevent=(LttngEvent)tmptrace.getNextEvent(tmpContext);
      while (tmpevent != null) {
        tmpevent=(LttngEvent)tmptrace.getNextEvent(tmpContext);
        if ((tmpevent != null) && (PARSE_EVENTS)) {
          tmpevent.getContent().getFields();
        }
        nbEvent++;
      }
    }
    System.out.println("String_Node_Str" + nbEvent);
    long endTime=System.nanoTime();
    long elapsed=endTime - startTime;
    System.out.println("String_Node_Str" + endTime);
    System.out.println("String_Node_Str" + elapsed + "String_Node_Str"+ (elapsed / nbEvent)+ "String_Node_Str");
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
/** 
 * @param args
 */
public static void main(String[] args){
  final String TRACE_PATH="String_Node_Str";
  final String TRACE_NAME="String_Node_Str";
  final boolean USE_TEXT_TRACE=false;
  final int NB_OF_PASS=1;
  final boolean PARSE_EVENTS=true;
  TmfTrace<LttngEvent> tmptrace=null;
  LttngEvent tmpevent=null;
  TmfContext tmpContext=null;
  Long nbEvent=0L;
  try {
    if (USE_TEXT_TRACE) {
      tmptrace=new LTTngTextTrace(TRACE_NAME,TRACE_PATH,true);
    }
 else {
      tmptrace=new LTTngTrace(TRACE_NAME,TRACE_PATH,null,true,true);
    }
    LttngTimestamp tmpTime=new LttngTimestamp(0L);
    tmpContext=new TmfContext(new LttngLocation(0L),0);
    long startTime=System.nanoTime();
    System.out.println("String_Node_Str" + startTime);
    for (int nb=0; nb < NB_OF_PASS; nb++) {
      tmpContext=tmptrace.seekEvent(tmpTime);
      tmpevent=(LttngEvent)tmptrace.getNextEvent(tmpContext);
      while (tmpevent != null) {
        tmpevent=(LttngEvent)tmptrace.getNextEvent(tmpContext);
        if ((tmpevent != null) && (PARSE_EVENTS)) {
          tmpevent.getContent().getFields();
        }
        nbEvent++;
      }
    }
    System.out.println("String_Node_Str" + nbEvent);
    long endTime=System.nanoTime();
    long elapsed=endTime - startTime;
    System.out.println("String_Node_Str" + endTime);
    System.out.println("String_Node_Str" + elapsed + "String_Node_Str"+ (elapsed / nbEvent)+ "String_Node_Str");
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}
Program: 92669
Project: 92669
Buggy source:
public static void main(String[] args){
  try {
    @SuppressWarnings("String_Node_Str") ITmfTrace<LttngEvent>[] traces=new ITmfTrace[1];
    traces[0]=new LTTngTrace(TRACE_PATH);
    fExperiment=new TmfExperiment<LttngEvent>(LttngEvent.class,"String_Node_Str",traces);
    LttngTimestamp ts1=new LttngTimestamp(Long.MIN_VALUE);
    LttngTimestamp ts2=new LttngTimestamp(Long.MAX_VALUE);
    TmfTimeRange tmpRange=new TmfTimeRange(ts1,ts2);
    TmfTraceTest request=null;
    for (int x=0; x < NB_OF_PASS; x++) {
      request=new TmfTraceTest(LttngEvent.class,tmpRange,Integer.MAX_VALUE);
      fExperiment.sendRequest(request);
      nbPassDone++;
    }
  }
 catch (  NullPointerException e) {
  }
catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public static void main(String[] args){
  try {
    @SuppressWarnings("String_Node_Str") ITmfTrace<LttngEvent>[] traces=new ITmfTrace[1];
    traces[0]=new LTTngTrace("String_Node_Str",TRACE_PATH);
    fExperiment=new TmfExperiment<LttngEvent>(LttngEvent.class,"String_Node_Str",traces);
    LttngTimestamp ts1=new LttngTimestamp(Long.MIN_VALUE);
    LttngTimestamp ts2=new LttngTimestamp(Long.MAX_VALUE);
    TmfTimeRange tmpRange=new TmfTimeRange(ts1,ts2);
    TmfTraceTest request=null;
    for (int x=0; x < NB_OF_PASS; x++) {
      request=new TmfTraceTest(LttngEvent.class,tmpRange,Integer.MAX_VALUE);
      fExperiment.sendRequest(request);
      nbPassDone++;
    }
  }
 catch (  NullPointerException e) {
  }
catch (  Exception e) {
    e.printStackTrace();
  }
}
Program: 92670
Project: 92670
Buggy source:
@SuppressWarnings("String_Node_Str") private synchronized static ITmfTrace<LttngEvent>[] setupTrace(String path){
  if (fTraces == null) {
    fTraces=new ITmfTrace[1];
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(path),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTrace trace=new LTTngTrace(testfile.getPath(),false);
      fTraces[0]=trace;
    }
 catch (    URISyntaxException e) {
      e.printStackTrace();
    }
catch (    IOException e) {
      e.printStackTrace();
    }
catch (    Exception e) {
      e.printStackTrace();
    }
  }
  return fTraces;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private synchronized static ITmfTrace<LttngEvent>[] setupTrace(String path){
  if (fTraces == null) {
    fTraces=new ITmfTrace[1];
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(path),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTrace trace=new LTTngTrace(testfile.getName(),testfile.getPath(),false);
      fTraces[0]=trace;
    }
 catch (    URISyntaxException e) {
      e.printStackTrace();
    }
catch (    IOException e) {
      e.printStackTrace();
    }
catch (    Exception e) {
      e.printStackTrace();
    }
  }
  return fTraces;
}
Program: 92671
Project: 92671
Buggy source:
public void testTraceConstructorFailure(){
  try {
    LTTngTextTrace testStream=new LTTngTextTrace(wrongTracePath,skipIndexing);
    fail("String_Node_Str");
    testStream.dispose();
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
public void testTraceConstructorFailure(){
  try {
    LTTngTextTrace testStream=new LTTngTextTrace("String_Node_Str",wrongTracePath,skipIndexing);
    fail("String_Node_Str");
    testStream.dispose();
  }
 catch (  Exception e) {
  }
}
Program: 92672
Project: 92672
Buggy source:
private synchronized LTTngTextTrace prepareStreamToTest(){
  if (testStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTextTrace tmpStream=new LTTngTextTrace(testfile.getPath());
      testStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + tracepath1);
      testStream=null;
    }
  }
 else {
    testStream.seekEvent(0);
  }
  return testStream;
}

Fixed version (ground truth):
private synchronized LTTngTextTrace prepareStreamToTest(){
  if (testStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTextTrace tmpStream=new LTTngTextTrace(testfile.getName(),testfile.getPath());
      testStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + tracepath1);
      testStream=null;
    }
  }
 else {
    testStream.seekEvent(0);
  }
  return testStream;
}
Program: 92673
Project: 92673
Buggy source:
public void testTraceConstructors(){
  @SuppressWarnings("String_Node_Str") LTTngTrace testStream1=null;
  try {
    testStream1=new LTTngTrace(wrongTracePath,skipIndexing);
    fail("String_Node_Str");
  }
 catch (  Exception e) {
  }
  try {
    URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
    File testfile=new File(FileLocator.toFileURL(location).toURI());
    testStream1=new LTTngTrace(testfile.getPath(),skipIndexing);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  System.out.println("String_Node_Str");
}

Fixed version (ground truth):
public void testTraceConstructors(){
  @SuppressWarnings("String_Node_Str") LTTngTrace testStream1=null;
  try {
    testStream1=new LTTngTrace("String_Node_Str",wrongTracePath,skipIndexing);
    fail("String_Node_Str");
  }
 catch (  Exception e) {
  }
  try {
    URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
    File testfile=new File(FileLocator.toFileURL(location).toURI());
    testStream1=new LTTngTrace(testfile.getName(),testfile.getPath(),skipIndexing);
  }
 catch (  Exception e) {
    fail("String_Node_Str");
  }
  System.out.println("String_Node_Str");
}
Program: 92674
Project: 92674
Buggy source:
private LTTngTrace prepareStreamToTest(){
  if (testStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTrace tmpStream=new LTTngTrace(testfile.getPath(),false);
      testStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + tracepath1);
      testStream=null;
    }
  }
 else {
    testStream.seekEvent(0L);
  }
  return testStream;
}

Fixed version (ground truth):
private LTTngTrace prepareStreamToTest(){
  if (testStream == null) {
    try {
      URL location=FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),new Path(tracepath1),null);
      File testfile=new File(FileLocator.toFileURL(location).toURI());
      LTTngTrace tmpStream=new LTTngTrace(testfile.getName(),testfile.getPath(),false);
      testStream=tmpStream;
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + tracepath1);
      testStream=null;
    }
  }
 else {
    testStream.seekEvent(0L);
  }
  return testStream;
}
Program: 92675
Project: 92675
Buggy source:
public LTTngTextTrace(LTTngTextTrace oldTrace) throws Exception {
  this(oldTrace.getPath(),true);
  fCheckpoints=oldTrace.fCheckpoints;
}

Fixed version (ground truth):
public LTTngTextTrace(LTTngTextTrace oldTrace) throws Exception {
  this(oldTrace.getName(),oldTrace.getPath(),true);
  fCheckpoints=oldTrace.fCheckpoints;
}