nus-yam/ex-repair huggingface dataset:
Program: 133401
Project: 133401
Buggy source:
/** 
 * This method returns an IRemoteConnection stored in the Remote Preferences that corresponds to the provided hostname.
 * @param host
 * @return
 */
protected IRemoteConnection getRemoteConnection(String host){
  IRemoteServicesManager remoteManager=getService(IRemoteServicesManager.class);
  IRemoteConnection connection=null;
  IRemoteConnectionType connectionType=remoteManager.getRemoteConnectionTypes().get(0);
  if (connectionType != null) {
    try {
      for (      IRemoteConnection c : connectionType.getConnections()) {
        String connectionHost=c.getService(IRemoteConnectionHostService.class).getHostname();
        if (InetAddress.getByName(host).getHostAddress().equals(InetAddress.getByName(connectionHost).getHostAddress())) {
          connection=c;
          break;
        }
      }
    }
 catch (    UnknownHostException e) {
      logger.error(getClass().getName() + "String_Node_Str",e);
    }
  }
  return connection;
}

Fixed version (ground truth):
/** 
 * This method returns an IRemoteConnection stored in the Remote Preferences that corresponds to the provided hostname.
 * @param host
 * @return
 */
protected IRemoteConnection getRemoteConnection(String host){
  IRemoteServicesManager remoteManager=getService(IRemoteServicesManager.class);
  IRemoteConnection connection=null;
  if (remoteManager != null) {
    IRemoteConnectionType connectionType=remoteManager.getRemoteConnectionTypes().get(0);
    if (connectionType != null) {
      try {
        for (        IRemoteConnection c : connectionType.getConnections()) {
          String connectionHost=c.getService(IRemoteConnectionHostService.class).getHostname();
          if (InetAddress.getByName(host).getHostAddress().equals(InetAddress.getByName(connectionHost).getHostAddress())) {
            connection=c;
            break;
          }
        }
      }
 catch (      UnknownHostException e) {
        logger.error(getClass().getName() + "String_Node_Str",e);
      }
    }
  }
  return connection;
}
Program: 133402
Project: 133402
Buggy source:
/** 
 * Return the OSGi service with the given service interface.
 * @param service service interface
 * @return the specified service or null if it's not registered
 */
private <T>T getService(Class<T> service){
  BundleContext context=FrameworkUtil.getBundle(getClass()).getBundleContext();
  ServiceReference<T> ref=context.getServiceReference(service);
  return ref != null ? context.getService(ref) : null;
}

Fixed version (ground truth):
/** 
 * Return the OSGi service with the given service interface.
 * @param service service interface
 * @return the specified service or null if it's not registered
 */
private <T>T getService(Class<T> service){
  BundleContext context=FrameworkUtil.getBundle(getClass()).getBundleContext();
  if (context != null) {
    ServiceReference<T> ref=context.getServiceReference(service);
    return ref != null ? context.getService(ref) : null;
  }
 else {
    return null;
  }
}
Program: 133407
Project: 133407
Buggy source:
/** 
 * This private method add the necessary components  to the Form. 
 */
private void addComponents(){
  for (  Component c : mooseModel.getForm().getComponents()) {
    if (c.getName().equals("String_Node_Str")) {
      c.setName("String_Node_Str");
    }
    form.addComponent(c);
  }
  modelFiles=(DataComponent)form.getComponent(1);
  form.addComponent(mooseLauncher.getForm().getComponent(3));
  modelTree=(TreeComposite)form.getComponent(2);
  postProcessorsData=new DataComponent();
  postProcessorsData.setName("String_Node_Str");
  postProcessorsData.setDescription("String_Node_Str" + "String_Node_Str");
  postProcessorsData.setId(MOOSE.ppDataId);
  form.addComponent(postProcessorsData);
  TreeComposite ppTree;
  if ((ppTree=getTopLevelTreeByName("String_Node_Str")) != null) {
    setupPostprocessorData(ppTree);
  }
}

Fixed version (ground truth):
/** 
 * This private method add the necessary components to the Form.
 */
private void addComponents(){
  for (  Component c : mooseModel.getForm().getComponents()) {
    if (c.getName().equals("String_Node_Str")) {
      c.setName("String_Node_Str");
    }
    form.addComponent(c);
  }
  modelFiles=(DataComponent)form.getComponent(1);
  form.addComponent(mooseLauncher.getForm().getComponent(3));
  modelTree=(TreeComposite)form.getComponent(2);
  postProcessorsData=new DataComponent();
  postProcessorsData.setName("String_Node_Str");
  postProcessorsData.setDescription("String_Node_Str" + "String_Node_Str");
  postProcessorsData.setId(MOOSE.ppDataId);
  form.addComponent(postProcessorsData);
  TreeComposite ppTree;
  if ((ppTree=getTopLevelTreeByName("String_Node_Str")) != null) {
    setupPostprocessorData(ppTree);
  }
}
Program: 133408
Project: 133408
Buggy source:
/** 
 * Overriding the default behavior here because  the overall process output should be in the  to-be-created local job folder. 
 */
@Override protected void setupOutputFile(){
  return;
}

Fixed version (ground truth):
/** 
 * Overriding the default behavior here because the overall process output should be in the to-be-created local job folder.
 */
@Override protected void setupOutputFile(){
  return;
}
Program: 133410
Project: 133410
Buggy source:
/** 
 * This operation creates a set of ICEFormPages for ListComponents that are stored in the component map.
 * @return The pages.
 * @throws CoreException 
 */
private ArrayList<IFormPage> createListSectionPages(){
  ArrayList<IFormPage> pages=new ArrayList<IFormPage>();
  try {
    IListPageProvider[] listPageProviders=IListPageProvider.getProviders();
    if (listPageProviders != null && listPageProviders.length > 0) {
      String providerNameToUse=DefaultListPageProvider.PROVIDER_NAME;
      for (      IListPageProvider currentProvider : listPageProviders) {
        if (providerNameToUse.equals(currentProvider.getName())) {
          pages.addAll(currentProvider.getPages(this,componentMap));
          break;
        }
      }
    }
 else {
      logger.error("String_Node_Str");
    }
  }
 catch (  CoreException e) {
    logger.error("String_Node_Str",e);
  }
  return pages;
}

Fixed version (ground truth):
/** 
 * This operation creates a set of ICEFormPages for ListComponents that are stored in the component map.
 * @return The pages.
 * @throws CoreException
 */
private ArrayList<IFormPage> createListSectionPages(){
  ArrayList<IFormPage> pages=new ArrayList<IFormPage>();
  try {
    IListPageProvider[] listPageProviders=IListPageProvider.getProviders();
    if (listPageProviders != null && listPageProviders.length > 0) {
      String providerNameToUse=DefaultListPageProvider.PROVIDER_NAME;
      for (      IListPageProvider currentProvider : listPageProviders) {
        if (providerNameToUse.equals(currentProvider.getName())) {
          pages.addAll(currentProvider.getPages(this,componentMap));
          break;
        }
      }
    }
 else {
      logger.error("String_Node_Str");
    }
  }
 catch (  CoreException e) {
    logger.error("String_Node_Str",e);
  }
  return pages;
}
Program: 133411
Project: 133411
Buggy source:
/** 
 * An operation that tests xml persistence on JobLauncherForm.
 * @throws IOException 
 * @throws JAXBException 
 * @throws NullPointerException 
 */
@Test public void checkXMLPersistence() throws NullPointerException, JAXBException, IOException {
  JobLauncherForm jobForm=new JobLauncherForm();
  JobLauncherForm loadedForm=new JobLauncherForm();
  ArrayList<String> actions=new ArrayList<String>();
  ICEJAXBHandler xmlHandler=new ICEJAXBHandler();
  ArrayList<Class> classList=new ArrayList<Class>();
  classList.add(JobLauncherForm.class);
  classList.addAll(new ICEJAXBClassProvider().getClasses());
  jobForm.setName("String_Node_Str");
  jobForm.setDescription("String_Node_Str");
  jobForm.setId(3);
  jobForm.enableMPI(2,4,2);
  jobForm.enableOpenMP(2,4,3);
  actions.add("String_Node_Str");
  jobForm.setActionList(actions);
  jobForm.setInputFiles("String_Node_Str","String_Node_Str",new ArrayList<String>());
  ByteArrayOutputStream outputStream=new ByteArrayOutputStream();
  xmlHandler.write(jobForm,classList,outputStream);
  loadedForm=(JobLauncherForm)xmlHandler.read(classList,new ByteArrayInputStream(outputStream.toByteArray()));
  assertTrue(jobForm.equals(loadedForm));
}

Fixed version (ground truth):
/** 
 * An operation that tests xml persistence on JobLauncherForm.
 * @throws IOException 
 * @throws JAXBException 
 * @throws NullPointerException 
 */
@Test public void checkXMLPersistence() throws NullPointerException, JAXBException, IOException {
  JobLauncherForm jobForm=new JobLauncherForm();
  Form loadedForm=new JobLauncherForm();
  ArrayList<String> actions=new ArrayList<String>();
  ICEJAXBHandler xmlHandler=new ICEJAXBHandler();
  ArrayList<Class> classList=new ArrayList<Class>();
  classList.add(JobLauncherForm.class);
  classList.addAll(new ICEJAXBClassProvider().getClasses());
  jobForm.setName("String_Node_Str");
  jobForm.setDescription("String_Node_Str");
  jobForm.setId(3);
  jobForm.enableMPI(2,4,2);
  jobForm.enableOpenMP(2,4,3);
  actions.add("String_Node_Str");
  jobForm.setActionList(actions);
  jobForm.setInputFiles("String_Node_Str","String_Node_Str",new ArrayList<String>());
  ByteArrayOutputStream outputStream=new ByteArrayOutputStream();
  xmlHandler.write(jobForm,classList,outputStream);
  loadedForm=(Form)xmlHandler.read(classList,new ByteArrayInputStream(outputStream.toByteArray()));
  assertTrue(jobForm.equals(loadedForm));
}
Program: 133412
Project: 133412
Buggy source:
@Override public void resourceChanged(IResourceChangeEvent event){
  if (event.getType() == IResourceChangeEvent.POST_CHANGE) {
    try {
      event.getDelta().accept(new IResourceDeltaVisitor(){
        public boolean visit(        IResourceDelta delta) throws CoreException {
          for (          ICEResource r : ICEResourcePage.this.resourceComponent.getResources()) {
            if (delta.getResource().getName().equals(r.getName())) {
              ICEResourcePage.this.update(r);
            }
          }
          return true;
        }
      }
);
    }
 catch (    CoreException e) {
      e.printStackTrace();
    }
  }
}

Fixed version (ground truth):
@Override public void resourceChanged(IResourceChangeEvent event){
  if (event.getType() == IResourceChangeEvent.POST_CHANGE) {
    try {
      event.getDelta().accept(new IResourceDeltaVisitor(){
        public boolean visit(        IResourceDelta delta) throws CoreException {
          for (          ICEResource r : ICEResourcePage.this.resourceComponent.getResources()) {
            if (delta.getResource().getName().equals((new File(r.getPath()).getName()))) {
              ICEResourcePage.this.update(r);
            }
          }
          return true;
        }
      }
);
    }
 catch (    CoreException e) {
      e.printStackTrace();
    }
  }
}
Program: 133413
Project: 133413
Buggy source:
public boolean visit(IResourceDelta delta) throws CoreException {
  for (  ICEResource r : ICEResourcePage.this.resourceComponent.getResources()) {
    if (delta.getResource().getName().equals(r.getName())) {
      ICEResourcePage.this.update(r);
    }
  }
  return true;
}

Fixed version (ground truth):
public boolean visit(IResourceDelta delta) throws CoreException {
  for (  ICEResource r : ICEResourcePage.this.resourceComponent.getResources()) {
    if (delta.getResource().getName().equals((new File(r.getPath()).getName()))) {
      ICEResourcePage.this.update(r);
    }
  }
  return true;
}
Program: 133414
Project: 133414
Buggy source:
/** 
 * Adds the components of the model to the reflectivity page.
 * @see org.eclipse.ice.client.widgets.ICEFormEditor#addPages()
 */
@Override protected void addPages(){
  for (  Component i : iceDataForm.getComponents()) {
    logger.info("String_Node_Str" + i.getName() + "String_Node_Str"+ i.getId());
    i.accept(this);
  }
  if (!(componentMap.get("String_Node_Str").isEmpty()) && !(componentMap.get("String_Node_Str").isEmpty()) && !(componentMap.get("String_Node_Str").isEmpty())) {
    DataComponent dataComp=(DataComponent)componentMap.get("String_Node_Str").get(0);
    DataComponent outputComp=(DataComponent)componentMap.get("String_Node_Str").get(1);
    ListComponent listComp=(ListComponent)componentMap.get("String_Node_Str").get(0);
    ResourceComponent resComp=(ResourceComponent)componentMap.get("String_Node_Str").get(0);
    ReflectivityPage page=new ReflectivityPage(this,dataComp.getName() + listComp.getName() + resComp.getName()+ outputComp.getName(),"String_Node_Str");
    super.resourceComponentPage=page;
    page.setResourceComponent(resComp);
    page.setDataComponent(dataComp);
    page.setList(listComp);
    page.setOutputComponent(outputComp);
    try {
      addPage(page);
    }
 catch (    PartInitException e) {
      e.printStackTrace();
    }
    reflectPage=page;
  }
}

Fixed version (ground truth):
/** 
 * Adds the components of the model to the reflectivity page.
 * @see org.eclipse.ice.client.widgets.ICEFormEditor#addPages()
 */
@Override protected void addPages(){
  for (  Component i : iceDataForm.getComponents()) {
    logger.info("String_Node_Str" + i.getName() + "String_Node_Str"+ i.getId());
    i.accept(this);
  }
  if (!(componentMap.get("String_Node_Str").isEmpty()) && !(componentMap.get("String_Node_Str").isEmpty()) && !(componentMap.get("String_Node_Str").isEmpty())) {
    DataComponent dataComp=(DataComponent)componentMap.get("String_Node_Str").get(0);
    DataComponent outputComp=(DataComponent)componentMap.get("String_Node_Str").get(1);
    ListComponent listComp=(ListComponent)componentMap.get("String_Node_Str").get(0);
    ResourceComponent resComp=(ResourceComponent)componentMap.get("String_Node_Str").get(0);
    ReflectivityPage page=new ReflectivityPage(this,dataComp.getName() + listComp.getName() + resComp.getName()+ outputComp.getName(),"String_Node_Str");
    page.setResourceComponent(resComp);
    page.setDataComponent(dataComp);
    page.setList(listComp);
    page.setOutputComponent(outputComp);
    resourceComponentPage=page;
    try {
      addPage(page);
    }
 catch (    PartInitException e) {
      e.printStackTrace();
    }
    reflectPage=page;
  }
}
Program: 133415
Project: 133415
Buggy source:
@Override public void setParent(Shape parent){
  List<AbstractController> parentList=model.getEntitiesByCategory("String_Node_Str");
  if (!parentList.isEmpty()) {
    ((Group)parentList.get(0).getRepresentation()).getChildren().remove(view.getRepresentation());
  }
  String operator=parent.getProperty("String_Node_Str");
  if (operator != null && OperatorType.valueOf(parent.getProperty("String_Node_Str")) == OperatorType.Union) {
    ((Group)parent.getRepresentation()).getChildren().add((Group)view.getRepresentation());
  }
  super.setParent(parent);
}

Fixed version (ground truth):
@Override public void setParent(Shape parent){
  List<AbstractController> parentList=model.getEntitiesByCategory("String_Node_Str");
  if (!parentList.isEmpty() && !"String_Node_Str".equals(parent.getProperty("String_Node_Str"))) {
    ((Group)parentList.get(0).getRepresentation()).getChildren().remove(view.getRepresentation());
  }
  String operator=parent.getProperty("String_Node_Str");
  if (operator != null && OperatorType.valueOf(parent.getProperty("String_Node_Str")) == OperatorType.Union) {
    ((Group)parent.getRepresentation()).getChildren().add((Group)view.getRepresentation());
  }
  super.setParent(parent);
}
Program: 133416
Project: 133416
Buggy source:
@Override public void copy(AbstractController source){
  super.copy(source);
  List<AbstractController> parentList=model.getEntitiesByCategory("String_Node_Str");
  if (!parentList.isEmpty()) {
    parentList.get(0).addEntity(this);
  }
}

Fixed version (ground truth):
@Override public void copy(AbstractController source){
  model=new ShapeComponent();
  model.setController(this);
  if (source.getProperty("String_Node_Str") == null) {
    model.copy(source.getModel());
    view=new FXShapeView((ShapeComponent)model);
    view.copy(source.getView());
  }
 else {
    view=new FXShapeView();
    model.copy(source.getModel());
    view.copy(source.getView());
  }
  model.register(this);
  view.register(this);
}
Program: 133417
Project: 133417
Buggy source:
@Override public void refresh(AbstractMeshComponent model){
  if (model.getProperty("String_Node_Str") == null) {
    createShape(ShapeType.valueOf(model.getProperty("String_Node_Str")));
    Boolean newSelected="String_Node_Str".equals(model.getProperty("String_Node_Str"));
    if (selected != newSelected) {
      selected=newSelected;
      if (selected) {
        shape.setMaterial(selectedMaterial);
        gizmo.setVisible(true);
      }
 else {
        shape.setMaterial(defaultMaterial);
        gizmo.setVisible(false);
      }
    }
  }
}

Fixed version (ground truth):
@Override public void refresh(AbstractMeshComponent model){
  node.getTransforms().setAll(Util.convertTransformation(transformation));
  if (model.getProperty("String_Node_Str") == null) {
    createShape(ShapeType.valueOf(model.getProperty("String_Node_Str")));
    Boolean newSelected="String_Node_Str".equals(model.getProperty("String_Node_Str"));
    if (selected != newSelected) {
      selected=newSelected;
      if (selected) {
        shape.setMaterial(selectedMaterial);
        gizmo.setVisible(true);
      }
 else {
        shape.setMaterial(defaultMaterial);
        gizmo.setVisible(false);
      }
    }
  }
}
Program: 133419
Project: 133419
Buggy source:
@Override public IFormPage[] getPages(Map<String,ArrayList<Component>> componentMap){
  return null;
}

Fixed version (ground truth):
@Override public ArrayList<IFormPage> getPages(FormEditor formEditor,Map<String,ArrayList<Component>> componentMap){
  return null;
}
Program: 133420
Project: 133420
Buggy source:
public void addShapesToNode(Group parentNode,List<AbstractController> shapes){
  for (  AbstractController nativeShape : shapes) {
    if (nativeShape.getProperty("String_Node_Str") != null) {
      ShapeType shapeType=ShapeType.None;
      Mesh mesh=null;
      shapeType=ShapeType.valueOf(nativeShape.getProperty("String_Node_Str"));
      FXShape shape=new FXShape(shapeType);
      shape.getProperties().put(Shape.class,nativeShape);
      shape.getTransforms().setAll(Util.convertTransformation(nativeShape.getTransformation()));
      parentNode.getChildren().add(shape);
    }
 else {
      if (OperatorType.valueOf(nativeShape.getProperty("String_Node_Str")) == OperatorType.Union) {
        Group complexShapeNode=new Group();
        complexShapeNode.setId(nativeShape.getProperty("String_Node_Str"));
        complexShapeNode.getProperties().put(IShape.class,nativeShape);
        complexShapeNode.getTransforms().setAll(Util.convertTransformation(nativeShape.getTransformation()));
        List<AbstractController> childShapes=nativeShape.getEntitiesByCategory("String_Node_Str");
        addShapesToNode(complexShapeNode,childShapes);
        parentNode.getChildren().add(complexShapeNode);
      }
    }
  }
}

Fixed version (ground truth):
public void addShapesToNode(Group parentNode,List<AbstractController> shapes){
  for (  AbstractController nativeShape : shapes) {
    if (nativeShape.getProperty("String_Node_Str") == null) {
      ShapeType shapeType=ShapeType.None;
      Mesh mesh=null;
      shapeType=ShapeType.valueOf(nativeShape.getProperty("String_Node_Str"));
      FXShape shape=new FXShape(shapeType);
      shape.getProperties().put(Shape.class,nativeShape);
      shape.getTransforms().setAll(Util.convertTransformation(nativeShape.getTransformation()));
      parentNode.getChildren().add(shape);
    }
 else {
      if (OperatorType.valueOf(nativeShape.getProperty("String_Node_Str")) == OperatorType.Union) {
        Group complexShapeNode=new Group();
        complexShapeNode.setId(nativeShape.getProperty("String_Node_Str"));
        complexShapeNode.getProperties().put(IShape.class,nativeShape);
        complexShapeNode.getTransforms().setAll(Util.convertTransformation(nativeShape.getTransformation()));
        List<AbstractController> childShapes=nativeShape.getEntitiesByCategory("String_Node_Str");
        addShapesToNode(complexShapeNode,childShapes);
        parentNode.getChildren().add(complexShapeNode);
      }
    }
  }
}
Program: 133421
Project: 133421
Buggy source:
@Override public void addGeometry(Shape geom){
  super.addGeometry(geom);
  if (fxAttachmentNode == null) {
    fxAttachmentNode=new Group();
  }
  if (knownGeometry == null) {
    knownGeometry=new ArrayList<>();
  }
  if (!knownGeometry.contains(geom)) {
    geom.register(new IVizUpdateableListener(){
      @Override public void update(      IVizUpdateable component){
        ArrayList<Shape> primitiveShapes=new ArrayList<Shape>();
        ArrayList<Shape> complexShapes=new ArrayList<Shape>();
        for (        AbstractController shape : geom.getEntitiesByCategory("String_Node_Str")) {
          if (shape.getProperty("String_Node_Str") != null) {
            primitiveShapes.add((Shape)shape);
          }
 else {
            complexShapes.add((Shape)shape);
          }
        }
        javafx.application.Platform.runLater(new Runnable(){
          @Override public void run(){
            syncShapes(fxAttachmentNode,primitiveShapes,complexShapes);
          }
        }
);
      }
    }
);
    knownGeometry.add(geom);
  }
}

Fixed version (ground truth):
@Override public void addGeometry(Shape geom){
  super.addGeometry(geom);
  if (fxAttachmentNode == null) {
    fxAttachmentNode=new Group();
  }
  if (knownGeometry == null) {
    knownGeometry=new ArrayList<>();
  }
  if (!knownGeometry.contains(geom)) {
    geom.register(new IVizUpdateableListener(){
      @Override public void update(      IVizUpdateable component){
        ArrayList<Shape> primitiveShapes=new ArrayList<Shape>();
        ArrayList<Shape> complexShapes=new ArrayList<Shape>();
        javafx.application.Platform.runLater(new Runnable(){
          @Override public void run(){
            syncShapes(fxAttachmentNode,geom.getEntitiesByCategory("String_Node_Str"));
          }
        }
);
      }
    }
);
    knownGeometry.add(geom);
  }
}
Program: 133423
Project: 133423
Buggy source:
@Override public void update(IVizUpdateable component){
  ArrayList<Shape> primitiveShapes=new ArrayList<Shape>();
  ArrayList<Shape> complexShapes=new ArrayList<Shape>();
  for (  AbstractController shape : geom.getEntitiesByCategory("String_Node_Str")) {
    if (shape.getProperty("String_Node_Str") != null) {
      primitiveShapes.add((Shape)shape);
    }
 else {
      complexShapes.add((Shape)shape);
    }
  }
  javafx.application.Platform.runLater(new Runnable(){
    @Override public void run(){
      syncShapes(fxAttachmentNode,primitiveShapes,complexShapes);
    }
  }
);
}

Fixed version (ground truth):
@Override public void update(IVizUpdateable component){
  ArrayList<Shape> primitiveShapes=new ArrayList<Shape>();
  ArrayList<Shape> complexShapes=new ArrayList<Shape>();
  javafx.application.Platform.runLater(new Runnable(){
    @Override public void run(){
      syncShapes(fxAttachmentNode,geom.getEntitiesByCategory("String_Node_Str"));
    }
  }
);
}
Program: 133424
Project: 133424
Buggy source:
@Override public void run(){
  syncShapes(fxAttachmentNode,primitiveShapes,complexShapes);
}

Fixed version (ground truth):
@Override public void run(){
  syncShapes(fxAttachmentNode,geom.getEntitiesByCategory("String_Node_Str"));
}
Program: 133426
Project: 133426
Buggy source:
/** 
 * <p> This is an alternative constructor that allows the ICEFormEditor to be injected. It is primarily used for testing but may have other uses. </p>
 * @param editor <p> The instance of ICEFormEditor that should be used by the Widget. </p>
 */
public EclipseFormWidget(ICEFormEditor editor){
  this();
  ICEFormEditor=editor;
}

Fixed version (ground truth):
/** 
 * <p> This is an alternative constructor that allows the ICEFormEditor to be injected. It is primarily used for testing but may have other uses. </p>
 * @param editor <p> The instance of ICEFormEditor that should be used by the Widget. </p>
 */
public EclipseFormWidget(ICEFormEditor editor){
  this();
  ICEFormEditor=editor;
  IEditorInput input=ICEFormEditor.getEditorInput();
  if (input instanceof ICEFormInput) {
    ICEFormInput formInput=(ICEFormInput)input;
    widgetForm=formInput.getForm();
  }
}
Program: 133428
Project: 133428
Buggy source:
/** 
 * Mutator method for the held geometry
 * @param newGeometry the new Geometry to hold
 */
public void setGeometry(Shape newGeometry){
  geometry=newGeometry;
  geometry.register(this);
  notifyListeners();
}

Fixed version (ground truth):
/** 
 * Mutator method for the held geometry
 * @param newGeometry the new Geometry to hold
 */
public void setGeometry(Shape newGeometry){
  geometry=newGeometry;
  geometry.setProperty("String_Node_Str","String_Node_Str");
  geometry.register(this);
  notifyListeners();
}
Program: 133429
Project: 133429
Buggy source:
@Override public void setParent(Shape parent){
  List<AbstractController> parentList=model.getEntitiesByCategory("String_Node_Str");
  if (!parentList.isEmpty()) {
    ((Group)parentList.get(0).getRepresentation()).getChildren().remove(view.getRepresentation());
  }
  String operator=parent.getProperty("String_Node_Str");
  if (operator != null && OperatorType.valueOf(parent.getProperty("String_Node_Str")) == OperatorType.Union) {
    ((Group)parent.getRepresentation()).getChildren().remove(view.getRepresentation());
  }
  super.setParent(parent);
}

Fixed version (ground truth):
@Override public void setParent(Shape parent){
  List<AbstractController> parentList=model.getEntitiesByCategory("String_Node_Str");
  if (!parentList.isEmpty()) {
    ((Group)parentList.get(0).getRepresentation()).getChildren().remove(view.getRepresentation());
  }
  String operator=parent.getProperty("String_Node_Str");
  if (operator != null && OperatorType.valueOf(parent.getProperty("String_Node_Str")) == OperatorType.Union) {
    ((Group)parent.getRepresentation()).getChildren().add((Group)view.getRepresentation());
  }
  super.setParent(parent);
}
Program: 133430
Project: 133430
Buggy source:
/** 
 * Sets the representation to the appropriate type of Shape3D.
 * @param type The type of shape to display
 */
private void createShape(ShapeType type){
  if (type == null) {
    return;
  }
  boolean initial=(shape == null ? true : false);
  Shape3D prevShape=null;
switch (type) {
case Cone:
    return;
case Cube:
  if (!(shape instanceof Box)) {
    prevShape=shape;
    node.getChildren().remove(shape);
    Box box=new Box(50,50,50);
    defaultMaterial=new PhongMaterial(Color.rgb(50,50,255));
    defaultMaterial.setSpecularColor(Color.WHITE);
    shape=box;
  }
break;
case Cylinder:
if (!(shape instanceof Cylinder)) {
prevShape=shape;
Cylinder cyl=new Cylinder(50,50);
defaultMaterial=new PhongMaterial(Color.rgb(0,181,255));
defaultMaterial.setSpecularColor(Color.WHITE);
cyl.setMaterial(defaultMaterial);
shape=cyl;
}
break;
case None:
return;
case Sphere:
if (!(shape instanceof Sphere)) {
prevShape=shape;
Sphere sphere=new Sphere(50,50);
defaultMaterial=new PhongMaterial(Color.rgb(131,0,157));
defaultMaterial.setSpecularColor(Color.WHITE);
sphere.setMaterial(defaultMaterial);
shape=sphere;
}
break;
case Tube:
if (!(shape instanceof Cylinder)) {
prevShape=shape;
Cylinder tube=new Cylinder(50,50);
defaultMaterial=new PhongMaterial(Color.rgb(0,131,157));
defaultMaterial.setSpecularColor(Color.WHITE);
shape=tube;
}
break;
default :
return;
}
if (prevShape != null) {
node.getChildren().remove(prevShape);
node.getChildren().add(shape);
}
 else if (initial) {
node.getChildren().add(shape);
}
}

Fixed version (ground truth):
/** 
 * Sets the representation to the appropriate type of Shape3D.
 * @param type The type of shape to display
 */
private void createShape(ShapeType type){
  if (type == null) {
    return;
  }
  boolean initial=(shape == null ? true : false);
  Shape3D prevShape=null;
switch (type) {
case Cone:
    return;
case Cube:
  if (!(shape instanceof Box)) {
    prevShape=shape;
    node.getChildren().remove(shape);
    Box box=new Box(50,50,50);
    defaultMaterial=new PhongMaterial(Color.rgb(50,50,255));
    defaultMaterial.setSpecularColor(Color.WHITE);
    box.setMaterial(defaultMaterial);
    shape=box;
  }
break;
case Cylinder:
if (!(shape instanceof Cylinder)) {
prevShape=shape;
Cylinder cyl=new Cylinder(50,50);
defaultMaterial=new PhongMaterial(Color.rgb(0,181,255));
defaultMaterial.setSpecularColor(Color.WHITE);
cyl.setMaterial(defaultMaterial);
shape=cyl;
}
break;
case None:
return;
case Sphere:
if (!(shape instanceof Sphere)) {
prevShape=shape;
Sphere sphere=new Sphere(50,50);
defaultMaterial=new PhongMaterial(Color.rgb(131,0,157));
defaultMaterial.setSpecularColor(Color.WHITE);
sphere.setMaterial(defaultMaterial);
shape=sphere;
}
break;
case Tube:
if (!(shape instanceof Cylinder)) {
prevShape=shape;
Cylinder tube=new Cylinder(50,50);
defaultMaterial=new PhongMaterial(Color.rgb(0,131,157));
defaultMaterial.setSpecularColor(Color.WHITE);
tube.setMaterial(defaultMaterial);
shape=tube;
}
break;
default :
return;
}
if (prevShape != null) {
node.getChildren().remove(prevShape);
node.getChildren().add(shape);
}
 else if (initial) {
node.getChildren().add(shape);
}
}
Program: 133431
Project: 133431
Buggy source:
/** 
 * The default constructor.
 * @param model The model which this view will display
 */
public FXShapeView(ShapeComponent model){
  super();
  gizmo=new TransformGizmo(100);
  gizmo.showHandles(false);
  gizmo.setVisible(false);
  node=new Group();
  node.setId(model.getProperty("String_Node_Str"));
  node.getTransforms().setAll(Util.convertTransformation(transformation));
  createShape(ShapeType.valueOf(model.getProperty("String_Node_Str")));
  node.getChildren().add(gizmo);
}

Fixed version (ground truth):
/** 
 * The default constructor.
 * @param model The model which this view will display
 */
public FXShapeView(ShapeComponent model){
  super();
  node=new Group();
  node.setId(model.getProperty("String_Node_Str"));
  node.getTransforms().setAll(Util.convertTransformation(transformation));
  if ("String_Node_Str".equals(model.getProperty("String_Node_Str"))) {
    gizmo=new TransformGizmo(100);
    gizmo.showHandles(false);
  }
 else {
    gizmo=new TransformGizmo(0);
  }
  gizmo.setVisible(false);
  node.getChildren().add(gizmo);
  createShape(ShapeType.valueOf(model.getProperty("String_Node_Str")));
}
Program: 133432
Project: 133432
Buggy source:
@Override public void addGeometry(Shape geom){
  super.addGeometry(geom);
  if (fxAttachmentNode == null) {
    fxAttachmentNode=new Group();
  }
  if (knownGeometry == null) {
    knownGeometry=new ArrayList<>();
  }
  if (!knownGeometry.contains(geom)) {
    geom.register(new IVizUpdateableListener(){
      @Override public void update(      IVizUpdateable component){
        javafx.application.Platform.runLater(new Runnable(){
          @Override public void run(){
            fxAttachmentNode.getChildren().clear();
            for (            AbstractController child : geom.getEntities()) {
              if (!fxAttachmentNode.getChildren().contains(child)) {
                fxAttachmentNode.getChildren().add((Group)child.getRepresentation());
              }
            }
          }
        }
);
      }
    }
);
    knownGeometry.add(geom);
  }
}

Fixed version (ground truth):
@Override public void addGeometry(Shape geom){
  super.addGeometry(geom);
  if (fxAttachmentNode == null) {
    fxAttachmentNode=new Group();
  }
  if (knownGeometry == null) {
    knownGeometry=new ArrayList<>();
  }
  if (!knownGeometry.contains(geom)) {
    geom.register(new IVizUpdateableListener(){
      @Override public void update(      IVizUpdateable component){
        javafx.application.Platform.runLater(new Runnable(){
          @Override public void run(){
            fxAttachmentNode.getChildren().clear();
            for (            AbstractController child : geom.getEntities()) {
              fxAttachmentNode.getChildren().add((Group)child.getRepresentation());
            }
          }
        }
);
      }
    }
);
    knownGeometry.add(geom);
  }
}
Program: 133433
Project: 133433
Buggy source:
@Override public void update(IVizUpdateable component){
  javafx.application.Platform.runLater(new Runnable(){
    @Override public void run(){
      fxAttachmentNode.getChildren().clear();
      for (      AbstractController child : geom.getEntities()) {
        if (!fxAttachmentNode.getChildren().contains(child)) {
          fxAttachmentNode.getChildren().add((Group)child.getRepresentation());
        }
      }
    }
  }
);
}

Fixed version (ground truth):
@Override public void update(IVizUpdateable component){
  javafx.application.Platform.runLater(new Runnable(){
    @Override public void run(){
      fxAttachmentNode.getChildren().clear();
      for (      AbstractController child : geom.getEntities()) {
        fxAttachmentNode.getChildren().add((Group)child.getRepresentation());
      }
    }
  }
);
}
Program: 133434
Project: 133434
Buggy source:
@Override public void run(){
  fxAttachmentNode.getChildren().clear();
  for (  AbstractController child : geom.getEntities()) {
    if (!fxAttachmentNode.getChildren().contains(child)) {
      fxAttachmentNode.getChildren().add((Group)child.getRepresentation());
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  fxAttachmentNode.getChildren().clear();
  for (  AbstractController child : geom.getEntities()) {
    fxAttachmentNode.getChildren().add((Group)child.getRepresentation());
  }
}
Program: 133436
Project: 133436
Buggy source:
/** 
 * Setter function for the part's transformation.
 * @param newTransformation The transformation to apply to this part.
 */
public void setTransformation(Transformation newTransformation){
  transformation=newTransformation;
  notifyListeners();
}

Fixed version (ground truth):
/** 
 * Setter function for the part's transformation.
 * @param newTransformation The transformation to apply to this part.
 */
public void setTransformation(Transformation newTransformation){
  transformation=newTransformation;
  update(transformation);
  notifyListeners();
}
Program: 133437
Project: 133437
Buggy source:
/** 
 * (non-Javadoc)
 * @see org.eclipse.ui.ISaveablePart#doSave(IProgressMonitor monitor)
 */
@Override public void doSave(IProgressMonitor monitor){
  System.out.println("String_Node_Str");
  setDirty(false);
  notifyUpdateListeners();
  if (iceDataForm.isReady() && goButton != null) {
    goButton.setEnabled(iceDataForm.isReady());
  }
  for (  IFormPart part : ((ICEFormPage)this.getSelectedPage()).getManagedForm().getParts()) {
    part.refresh();
  }
  if (!(componentMap.get("String_Node_Str").isEmpty())) {
    setTreeCompositeViewerInput();
  }
  if (!(componentMap.get("String_Node_Str").isEmpty())) {
    MasterDetailsComponent comp=(MasterDetailsComponent)(componentMap.get("String_Node_Str").get(0));
    String name=comp.getName();
    for (int i=0; i < this.getPageCount(); i++) {
      FormPage formPage=(FormPage)this.pages.get(i);
      if (formPage.getPartName().equals(name)) {
        ICEMasterDetailsPage masterPage=(ICEMasterDetailsPage)formPage;
        masterPage.refreshMaster();
      }
    }
  }
  if (!(componentMap.get("String_Node_Str")).isEmpty()) {
    for (int i=0; i < this.getPageCount(); i++) {
      FormPage formPage=(FormPage)this.pages.get(i);
      EMFComponent comp=(EMFComponent)componentMap.get("String_Node_Str").get(0);
      if (formPage.getPartName().equals(comp.getName())) {
        formPage.doSave(null);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * (non-Javadoc)
 * @see org.eclipse.ui.ISaveablePart#doSave(IProgressMonitor monitor)
 */
@Override public void doSave(IProgressMonitor monitor){
  setDirty(false);
  notifyUpdateListeners();
  if (iceDataForm.isReady() && goButton != null) {
    goButton.setEnabled(iceDataForm.isReady());
  }
  for (  IFormPart part : ((ICEFormPage)this.getSelectedPage()).getManagedForm().getParts()) {
    part.refresh();
  }
  if (!(componentMap.get("String_Node_Str").isEmpty())) {
    setTreeCompositeViewerInput();
  }
  if (!(componentMap.get("String_Node_Str").isEmpty())) {
    MasterDetailsComponent comp=(MasterDetailsComponent)(componentMap.get("String_Node_Str").get(0));
    String name=comp.getName();
    for (int i=0; i < this.getPageCount(); i++) {
      FormPage formPage=(FormPage)this.pages.get(i);
      if (formPage.getPartName().equals(name)) {
        ICEMasterDetailsPage masterPage=(ICEMasterDetailsPage)formPage;
        masterPage.refreshMaster();
      }
    }
  }
  if (!(componentMap.get("String_Node_Str")).isEmpty()) {
    for (int i=0; i < this.getPageCount(); i++) {
      FormPage formPage=(FormPage)this.pages.get(i);
      EMFComponent comp=(EMFComponent)componentMap.get("String_Node_Str").get(0);
      if (formPage.getPartName().equals(comp.getName())) {
        formPage.doSave(null);
      }
    }
  }
}
Program: 133438
Project: 133438
Buggy source:
/** 
 * This operation overrides init so that the ICE Form, passed as an IEditorInput, can be stored.
 * @param site the site on the workbench where the Form is drawn
 * @param input the input for this editor
 */
@Override public void init(IEditorSite site,IEditorInput input) throws RuntimeException {
  setPartName(input.getName());
  setSite(site);
  if (input instanceof ICEFormInput) {
    ICEFormInput=(ICEFormInput)input;
    iceDataForm=ICEFormInput.getForm();
    setInput(input);
  }
 else   if (input instanceof FileEditorInput) {
    IFile formFile=((FileEditorInput)input).getFile();
    try {
      IClient client=IClient.getClient();
      iceDataForm=client.loadItem(formFile);
      logger.info("String_Node_Str");
      ICEFormInput=new ICEFormInput(iceDataForm);
      setInput(ICEFormInput);
    }
 catch (    CoreException e) {
      logger.error("String_Node_Str",e);
    }
  }
 else {
    logger.error("String_Node_Str");
    throw new RuntimeException("String_Node_Str" + "String_Node_Str");
  }
  iceDataForm.register(this);
  return;
}

Fixed version (ground truth):
/** 
 * This operation overrides init so that the ICE Form, passed as an IEditorInput, can be stored.
 * @param site the site on the workbench where the Form is drawn
 * @param input the input for this editor
 */
@Override public void init(IEditorSite site,IEditorInput input) throws RuntimeException {
  setPartName(input.getName());
  setSite(site);
  if (input instanceof ICEFormInput) {
    ICEFormInput=(ICEFormInput)input;
    iceDataForm=ICEFormInput.getForm();
    setInput(input);
  }
 else   if (input instanceof FileEditorInput) {
    IFile formFile=((FileEditorInput)input).getFile();
    try {
      IClient client=IClient.getClient();
      iceDataForm=client.loadItem(formFile);
      logger.info("String_Node_Str");
      ICEFormInput=new ICEFormInput(iceDataForm);
      setInput(ICEFormInput);
      registerUpdateListener(IUpdateEventListener.getUpdateEventListener());
      registerProcessListener(IProcessEventListener.getProcessEventListener());
      registerResourceProvider(ISimpleResourceProvider.getSimpleResourceProvider());
    }
 catch (    CoreException e) {
      logger.error("String_Node_Str",e);
    }
  }
 else {
    logger.error("String_Node_Str");
    throw new RuntimeException("String_Node_Str" + "String_Node_Str");
  }
  iceDataForm.register(this);
  return;
}
Program: 133439
Project: 133439
Buggy source:
/** 
 * (non-Javadoc)
 * @see IObservableWidget#notifyUpdateListeners()
 */
@Override public void notifyUpdateListeners(){
  for (  IUpdateEventListener eventListener : updateListeners) {
    System.out.println("String_Node_Str" + eventListener.getClass().toString());
    eventListener.formUpdated(iceDataForm);
  }
  return;
}

Fixed version (ground truth):
/** 
 * (non-Javadoc)
 * @see IObservableWidget#notifyUpdateListeners()
 */
@Override public void notifyUpdateListeners(){
  for (  IUpdateEventListener eventListener : updateListeners) {
    eventListener.formUpdated(iceDataForm);
  }
  return;
}
Program: 133440
Project: 133440
Buggy source:
@Override public Item getInstance(IProject projectSpace){
  BatMLModel batML=new BatMLModel(projectSpace);
  batML.setItemBuilderName(getItemName());
  return batML;
}

Fixed version (ground truth):
@Override public Item getInstance(IProject projectSpace){
  Item batML=new BatMLModel(projectSpace);
  batML.setItemBuilderName(getItemName());
  return batML;
}
Program: 133441
Project: 133441
Buggy source:
/** 
 * This operation provides a deep copy of the EMFComponent.
 */
@Override public Object clone(){
  EMFComponent emfComponent=new EMFComponent();
  emfComponent.copy(this);
  return emfComponent;
}

Fixed version (ground truth):
/** 
 * This operation provides a deep copy of the EMFComponent.
 */
@Override public Object clone(){
  EMFComponent emfComponent=new EMFComponent();
  if (iceEMFTree.getEcoreMetaData() != null) {
    emfComponent.iceEMFTree.setECoreNodeMetaData(iceEMFTree.getEcoreMetaData());
  }
  emfComponent.copy(this);
  return emfComponent;
}
Program: 133442
Project: 133442
Buggy source:
/** 
 * This operation performs a deep copy of the attributes of another EMFTreeComposite into the current EMFTreeComposite. It copies ALL of the children of the EMFTreeComposite, data and child nodes alike.
 * @param otherTreeComposite
 */
public void copy(EMFTreeComposite otherTreeComposite){
  if (otherTreeComposite == null) {
    return;
  }
  ecoreNodeMetaData=otherTreeComposite.ecoreNodeMetaData;
  ecoreNode=EcoreUtil.create(ecoreNodeMetaData);
  super.copy(otherTreeComposite,true);
  return;
}

Fixed version (ground truth):
/** 
 * This operation performs a deep copy of the attributes of another EMFTreeComposite into the current EMFTreeComposite. It copies ALL of the children of the EMFTreeComposite, data and child nodes alike.
 * @param otherTreeComposite
 */
public void copy(EMFTreeComposite otherTreeComposite){
  if (otherTreeComposite == null) {
    return;
  }
  if (otherTreeComposite.ecoreNodeMetaData != null) {
    ecoreNodeMetaData=otherTreeComposite.ecoreNodeMetaData;
    ecoreNode=EcoreUtil.create(ecoreNodeMetaData);
  }
  super.copy(otherTreeComposite,true);
  return;
}
Program: 133443
Project: 133443
Buggy source:
@Override public void stop(BundleContext context) throws Exception {
  itemManager.persistItems();
  bundleContext.ungetService(httpServiceRef);
  registration.unregister();
}

Fixed version (ground truth):
@Override public void stop(BundleContext context) throws Exception {
  itemManager.persistItems();
  if (httpServiceRef != null) {
    bundleContext.ungetService(httpServiceRef);
  }
  registration.unregister();
}
Program: 133444
Project: 133444
Buggy source:
/** 
 * @throws java.lang.Exception
 */
@BeforeClass public static void setUpBeforeClass() throws Exception {
  String separator=System.getProperty("String_Node_Str");
  String userHome=System.getProperty("String_Node_Str");
  IWorkspaceRoot workspaceRoot=ResourcesPlugin.getWorkspace().getRoot();
  IProject project=null;
  String projectName="String_Node_Str";
  String filename="String_Node_Str";
  IPath projectPath=new Path(userHome + separator + "String_Node_Str"+ separator+ projectName+ separator+ "String_Node_Str");
  try {
    IProjectDescription desc=ResourcesPlugin.getWorkspace().loadProjectDescription(projectPath);
    project=workspaceRoot.getProject(desc.getName());
    project.create(desc,new NullProgressMonitor());
    if (project.exists() && !project.isOpen()) {
      project.open(new NullProgressMonitor());
    }
    project.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
    testFile=project.getFile(filename);
  }
 catch (  CoreException e) {
    e.printStackTrace();
    fail();
  }
  reader=new CSVReader();
  return;
}

Fixed version (ground truth):
/** 
 * @throws java.lang.Exception
 */
@BeforeClass public static void setUpBeforeClass() throws Exception {
  String separator=System.getProperty("String_Node_Str");
  String userHome=System.getProperty("String_Node_Str");
  IWorkspaceRoot workspaceRoot=ResourcesPlugin.getWorkspace().getRoot();
  IProject project=null;
  String projectName="String_Node_Str";
  String filename="String_Node_Str";
  IPath projectPath=new Path(userHome + separator + "String_Node_Str"+ separator+ projectName+ separator+ "String_Node_Str");
  try {
    IProjectDescription desc=ResourcesPlugin.getWorkspace().loadProjectDescription(projectPath);
    project=workspaceRoot.getProject(desc.getName());
    if (!project.exists()) {
      project.create(desc,new NullProgressMonitor());
    }
    if (project.exists() && !project.isOpen()) {
      project.open(new NullProgressMonitor());
    }
    project.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
    testFile=project.getFile(filename);
  }
 catch (  CoreException e) {
    e.printStackTrace();
    fail();
  }
  reader=new CSVReader();
  return;
}
Program: 133445
Project: 133445
Buggy source:
/** 
 * Test method for   {@link org.eclipse.ice.io.csv.CSVReader#getReaderType()}.
 */
@Test public void testGetReaderType(){
  assertEquals("String_Node_Str",reader.getReaderType());
}

Fixed version (ground truth):
/** 
 * Test method for  {@link org.eclipse.ice.io.csv.SpaceDelimitedReader#getReaderType()}.
 */
@Test public void testGetReaderType(){
  assertEquals("String_Node_Str",reader.getReaderType());
}
Program: 133446
Project: 133446
Buggy source:
/** 
 * @throws java.lang.Exception
 */
@BeforeClass public static void setUpBeforeClass() throws Exception {
  String separator=System.getProperty("String_Node_Str");
  String userHome=System.getProperty("String_Node_Str");
  IWorkspaceRoot workspaceRoot=ResourcesPlugin.getWorkspace().getRoot();
  IProject project=null;
  String projectName="String_Node_Str";
  String filename="String_Node_Str";
  IPath projectPath=new Path(userHome + separator + "String_Node_Str"+ separator+ projectName+ separator+ "String_Node_Str");
  try {
    IProjectDescription desc=ResourcesPlugin.getWorkspace().loadProjectDescription(projectPath);
    project=workspaceRoot.getProject(desc.getName());
    project.create(desc,new NullProgressMonitor());
    if (project.exists() && !project.isOpen()) {
      project.open(new NullProgressMonitor());
    }
    project.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
    testFile=project.getFile(filename);
  }
 catch (  CoreException e) {
    e.printStackTrace();
    fail();
  }
  reader=new SpaceDelimitedReader();
  return;
}

Fixed version (ground truth):
/** 
 * @throws java.lang.Exception
 */
@BeforeClass public static void setUpBeforeClass() throws Exception {
  String separator=System.getProperty("String_Node_Str");
  String userHome=System.getProperty("String_Node_Str");
  IWorkspaceRoot workspaceRoot=ResourcesPlugin.getWorkspace().getRoot();
  IProject project=null;
  String projectName="String_Node_Str";
  String filename="String_Node_Str";
  IPath projectPath=new Path(userHome + separator + "String_Node_Str"+ separator+ projectName+ separator+ "String_Node_Str");
  try {
    IProjectDescription desc=ResourcesPlugin.getWorkspace().loadProjectDescription(projectPath);
    project=workspaceRoot.getProject(desc.getName());
    if (!project.exists()) {
      project.create(desc,new NullProgressMonitor());
    }
    if (project.exists() && !project.isOpen()) {
      project.open(new NullProgressMonitor());
    }
    project.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
    testFile=project.getFile(filename);
  }
 catch (  CoreException e) {
    e.printStackTrace();
    fail();
  }
  reader=new SpaceDelimitedReader();
  return;
}
Program: 133447
Project: 133447
Buggy source:
/** 
 * Test method for  {@link org.eclipse.ice.io.csv.CSVReader#findAll(org.eclipse.core.resources.IFile,java.lang.String)}.
 */
public void testFindAll(){
  fail("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Test method for  {@link org.eclipse.ice.io.csv.SpaceDelimitedReader#findAll(org.eclipse.core.resources.IFile,java.lang.String)}.
 */
public void testFindAll(){
  fail("String_Node_Str");
}