nus-yam/ex-repair huggingface dataset:
Program: 175844
Project: 175844
Buggy source:
private void renderPanos(){
  if (getInputFolder(FeatureCache.FEATURE_FOLDER).exists()) {
    int result=JOptionPane.showConfirmDialog(tweed.frame(),"String_Node_Str","String_Node_Str",JOptionPane.OK_CANCEL_OPTION);
    if (result == JOptionPane.CANCEL_OPTION)     return;
  }
  FacadeFinder.facadeMode=FacadeMode.PER_CAMERA;
  try {
    new FacadeTool(tweed).renderFacade(polies,null,new BufferedWriter(new FileWriter(Tweed.SCRATCH + "String_Node_Str")));
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
private void renderPanos(){
  if (getInputFolder(FeatureCache.FEATURE_FOLDER).exists()) {
    int result=JOptionPane.showConfirmDialog(tweed.frame(),"String_Node_Str","String_Node_Str",JOptionPane.OK_CANCEL_OPTION);
    if (result == JOptionPane.CANCEL_OPTION)     return;
  }
  FacadeFinder.facadeMode=FacadeMode.PER_CAMERA;
  try {
    new FacadeTool(tweed).renderFacade(polies,null,new BufferedWriter(new FileWriter(Tweed.SCRATCH + "String_Node_Str")),null);
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}
Program: 175846
Project: 175846
Buggy source:
public Integer work(LoopL<Point3d> in){
  double area=Loopz.area(Loopz.toXZLoop(in));
  if (area < 10)   return 0;
  BlockGen.findWidths(in,gis);
  for (  Loop loop : in)   li.fetchOSProperties((SuperLoop<?>)loop);
  System.out.println("String_Node_Str" + count + "String_Node_Str");
  ((FacadeTool)tweed.tool).renderFacade(in,count,descBW);
  return 1;
}

Fixed version (ground truth):
public Integer work(LoopL<Point3d> in){
  double area=Loopz.area(Loopz.toXZLoop(in));
  if (area < 10)   return 0;
  BlockGen.findWidths(in,gis);
  for (  Loop loop : in)   li.fetchOSProperties((SuperLoop<?>)loop);
  System.out.println("String_Node_Str" + count + "String_Node_Str");
  ((FacadeTool)tweed.tool).renderFacade(in,count,descBW,feedback);
  try {
    descBW.flush();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  return 1;
}
Program: 175847
Project: 175847
Buggy source:
private WorkFactory<LoopL<Point3d>> findBlocks(int callbackI,AtomicInteger count,Random randy){
  WorkFactory<LoopL<Point3d>> b;
  int TOGET=10000000;
  if (callbackI >= 0)   b=new Parallel.ListWF<LoopL<Point3d>>(Collections.singletonList(blocks.get(callbackI)));
 else {
    if (FacadeFinder.facadeMode == FacadeMode.PER_FETCH)     b=new WorkFactory<LoopL<Point3d>>(){
      @Override public LoopL<Point3d> generateWork(){
        int i=count.get();
        if (i > TOGET)         return null;
 else {
          LoopL<Point3d> ll=lot2block.get(lots.get(randy.nextInt(lots.size())));
          return ll;
        }
      }
    }
;
 else     b=new Parallel.ListWF<LoopL<Point3d>>(new ArrayList(blocks.values()));
  }
  return b;
}

Fixed version (ground truth):
private WorkFactory<LoopL<Point3d>> findBlocks(int callbackI,AtomicInteger count,Random randy){
  WorkFactory<LoopL<Point3d>> b;
  int TOGET=Integer.MAX_VALUE;
  if (callbackI >= 0)   b=new Parallel.ListWF<LoopL<Point3d>>(Collections.singletonList(blocks.get(callbackI)));
 else {
    if (FacadeFinder.facadeMode == FacadeMode.KANGAROO)     b=new WorkFactory<LoopL<Point3d>>(){
      @Override public LoopL<Point3d> generateWork(){
        int i=count.get();
        if (i > TOGET)         return null;
 else {
          LoopL<Point3d> ll=lot2block.get(lots.get(randy.nextInt(lots.size())));
          return ll;
        }
      }
      @Override public boolean shouldAbort(){
        return false;
      }
    }
;
 else     b=new Parallel.ListWF<LoopL<Point3d>>(new ArrayList(blocks.values()));
  }
  return b;
}
Program: 175848
Project: 175848
Buggy source:
private void createPanoGens(){
  File meta=getMetaFile();
  panos=null;
{
    panos=new ArrayList<>();
    for (    File f : Tweed.toWorkspace(folder).listFiles()) {
      String extn=Filez.getExtn(f.getName());
      if (extn.equals("String_Node_Str") || extn.equals("String_Node_Str"))       createPanoGen(f,panos);
    }
    try {
      for (      Pano p : panos) {
        if (p.orig.isAbsolute())         p.orig=tweed.makeWorkspaceRelative(p.orig);
      }
      if (!panos.isEmpty())       new XStream().toXML(panos,new FileOutputStream(meta));
    }
 catch (    FileNotFoundException e) {
      e.printStackTrace();
    }
  }
}

Fixed version (ground truth):
protected void createPanoGens(){
  panos.clear();
  File meta=getMetaFile();
  panos=null;
  if (meta.exists()) {
    try {
      panos=(List<Pano>)new XStream().fromXML(meta);
    }
 catch (    Throwable th) {
      th.printStackTrace();
    }
  }
  if (panos == null || panos.isEmpty()) {
    panos=new ArrayList<>();
    for (    File f : Tweed.toWorkspace(folder).listFiles()) {
      String extn=Filez.getExtn(f.getName());
      if (extn.equals("String_Node_Str") || extn.equals("String_Node_Str"))       createPanoGen(f,panos);
    }
    try {
      for (      Pano p : panos) {
        if (p.orig.isAbsolute())         p.orig=tweed.makeWorkspaceRelative(p.orig);
      }
      if (!panos.isEmpty())       new XStream().toXML(panos,new FileOutputStream(meta));
    }
 catch (    FileNotFoundException e) {
      e.printStackTrace();
    }
  }
}
Program: 175849
Project: 175849
Buggy source:
public PanoGen(File folder,Tweed tweed,String sourceCRS){
  super("String_Node_Str" + folder.getName(),tweed);
  this.folder=folder;
  this.sourceCRS=sourceCRS;
}

Fixed version (ground truth):
public PanoGen(Tweed tweed){
  super("String_Node_Str",tweed);
  this.tweed=tweed;
  this.folder=null;
}
Program: 175851
Project: 175851
Buggy source:
@Override public JComponent getUI(){
  ui.removeAll();
  ui.setLayout(new ListDownLayout());
  if (new File(Tweed.toWorkspace(folder),TO_DOWNLOAD).exists()) {
    JButton download=new JButton("String_Node_Str");
    download.addActionListener(e -> downloadPanos());
    ui.add(download);
  }
  JButton align=new JButton("String_Node_Str");
  align.addActionListener(e -> tweed.setTool(new FacadeTool(tweed)));
  ui.add(align);
  JButton plane=new JButton("String_Node_Str");
  plane.addActionListener(e -> tweed.setTool(new PlaneTool(tweed)));
  ui.add(plane);
  return ui;
}

Fixed version (ground truth):
@Override public JComponent getUI(){
  ui.removeAll();
  ui.setLayout(new ListDownLayout());
  if (folder != null && folder.exists())   if (new File(Tweed.toWorkspace(folder),TO_DOWNLOAD).exists()) {
    JButton download=new JButton("String_Node_Str");
    download.addActionListener(e -> downloadPanos());
    ui.add(download);
  }
  JButton align=new JButton("String_Node_Str");
  align.addActionListener(e -> tweed.setTool(new FacadeTool(tweed)));
  ui.add(align);
  JButton plane=new JButton("String_Node_Str");
  plane.addActionListener(e -> tweed.setTool(new PlaneTool(tweed)));
  ui.add(plane);
  return ui;
}
Program: 175853
Project: 175853
Buggy source:
@Override public void getUI(JPanel panel){
  panel.setLayout(new ListDownLayout());
  JComboBox<FacadeFinder.FacadeMode> granularity=new JComboBox<>();
  granularity.addItem(FacadeMode.PER_GIS);
  granularity.addItem(FacadeMode.PER_MEGA);
  granularity.addItem(FacadeMode.PER_CAMERA);
  granularity.addItem(FacadeMode.PER_CAMERA_CROPPED);
  granularity.addItem(FacadeMode.PER_FETCH);
  granularity.setSelectedItem(FacadeFinder.facadeMode);
  granularity.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      FacadeFinder.facadeMode=(FacadeMode)granularity.getSelectedItem();
    }
  }
);
  JCheckBox singleFolderCheck=new JCheckBox("String_Node_Str");
  singleFolderCheck.setSelected(FacadeTool.this.singleFolder);
  singleFolderCheck.addActionListener(e -> FacadeTool.this.singleFolder=singleFolderCheck.isSelected());
  JButton forAll=new JButton("String_Node_Str");
  forAll.addActionListener(l -> tweed.frame.getGenOf(GISGen.class).startRender(-1));
  panel.add(granularity);
  panel.add(singleFolderCheck);
  panel.add(forAll);
  panel.add(new JLabel("String_Node_Str"));
}

Fixed version (ground truth):
@Override public void getUI(JPanel panel){
  panel.setLayout(new ListDownLayout());
  JComboBox<FacadeFinder.FacadeMode> granularity=new JComboBox<>();
  granularity.addItem(FacadeMode.PER_GIS);
  granularity.addItem(FacadeMode.PER_MEGA);
  granularity.addItem(FacadeMode.PER_CAMERA);
  granularity.addItem(FacadeMode.PER_CAMERA_CROPPED);
  granularity.addItem(FacadeMode.KANGAROO);
  granularity.setSelectedItem(FacadeFinder.facadeMode);
  granularity.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      FacadeFinder.facadeMode=(FacadeMode)granularity.getSelectedItem();
    }
  }
);
  JCheckBox singleFolderCheck=new JCheckBox("String_Node_Str");
  singleFolderCheck.setSelected(FacadeTool.this.singleFolder);
  singleFolderCheck.addActionListener(e -> FacadeTool.this.singleFolder=singleFolderCheck.isSelected());
  JButton forAll=new JButton("String_Node_Str");
  forAll.addActionListener(l -> tweed.frame.getGenOf(GISGen.class).startRender(-1));
  panel.add(granularity);
  panel.add(singleFolderCheck);
  panel.add(forAll);
  panel.add(new JLabel("String_Node_Str"));
}
Program: 175854
Project: 175854
Buggy source:
public void renderFacade(LoopL<Point3d> list,AtomicInteger count,BufferedWriter description){
  double[] minMax=Loopz.minMax(list);
  Loopz.expand(minMax,30);
  Map<Point2d,Pano> panos=new HashMap<>();
  for (  Gen gen : tweed.frame.gens(PanoGen.class))   for (  Pano pg : ((PanoGen)gen).getPanos()) {
    Point2d pt=new Point2d(pg.location.x,pg.location.z);
    if (pt.x > minMax[0] && pt.x < minMax[1] && pt.y > minMax[4] && pt.y < minMax[5])     panos.put(pt,pg);
  }
  FacadeFinder ff=new FacadeFinder(Loopz.toXZLoop(list),panos,tweed.frame.getGenOf(PlanesGen.class));
  Point2d cen=Loopz.average(Loopz.to2dLoop(list,1,null));
  renderFacades(cen.x + "String_Node_Str" + cen.y,ff,count,description);
}

Fixed version (ground truth):
public void renderFacade(LoopL<Point3d> list,AtomicInteger count,BufferedWriter description,PanoGen feedback){
  double[] minMax=Loopz.minMax(list);
  Loopz.expand(minMax,30);
  Map<Point2d,Pano> panos=new HashMap<>();
  for (  Gen gen : tweed.frame.gens(PanoGen.class))   for (  Pano pg : ((PanoGen)gen).getPanos()) {
    Point2d pt=new Point2d(pg.location.x,pg.location.z);
    if (pt.x > minMax[0] && pt.x < minMax[1] && pt.y > minMax[4] && pt.y < minMax[5])     panos.put(pt,pg);
  }
  FacadeFinder ff=new FacadeFinder(Loopz.toXZLoop(list),panos,tweed.frame.getGenOf(PlanesGen.class));
  Point2d cen=Loopz.average(Loopz.to2dLoop(list,1,null));
  renderFacades(cen.x + "String_Node_Str" + cen.y,ff,count,description,feedback);
}
Program: 175860
Project: 175860
Buggy source:
public void simpleUpdate(float tpf){
  if (oldWidth != cam.getWidth() || oldHeight != cam.getHeight()) {
    buildBackground();
    clearBackground();
    oldWidth=cam.getWidth();
    oldHeight=cam.getHeight();
  }
  if (checkForEnd)   if (tool.isDragging()) {
    tool.dragEnd();
  }
  checkForEnd=true;
  TweedSettings.settings.cameraLocation=cam.getLocation();
  TweedSettings.settings.cameraOrientation=cam.getRotation();
}

Fixed version (ground truth):
public void simpleUpdate(float tpf){
  if (oldWidth != cam.getWidth() || oldHeight != cam.getHeight()) {
    buildBackground();
    clearBackground();
    oldWidth=cam.getWidth();
    oldHeight=cam.getHeight();
  }
  if (checkForEnd)   if (tool.isDragging()) {
    tool.dragEnd();
  }
  checkForEnd=true;
  oldCameraLoc=cam.getLocation();
  oldCameraRot=cam.getRotation();
}
Program: 175861
Project: 175861
Buggy source:
public static void save(boolean backup){
  if (folder != null) {
    settings.genList=TweedFrame.instance.genList.stream().filter(g -> g instanceof ICanSave).collect(Collectors.toList());
    FileOutputStream fos=null;
    try {
      fos=new FileOutputStream(new File(folder,"String_Node_Str" + (backup ? "String_Node_Str" : "String_Node_Str")));
      TweedSettings.settings.badGeomAngle=-0.1;
      new XStream(new PureJavaReflectionProvider()).toXML(TweedSettings.settings,fos);
    }
 catch (    Throwable e) {
      e.printStackTrace();
    }
 finally {
      if (fos != null)       try {
        fos.close();
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
    }
    if (!backup)     writeRecentFiles();
  }
 else   if (!backup)   JOptionPane.showMessageDialog(null,"String_Node_Str");
}

Fixed version (ground truth):
public static void save(boolean backup){
  if (folder != null) {
    settings.genList=TweedFrame.instance.genList.stream().filter(g -> g instanceof ICanSave).collect(Collectors.toList());
    FileOutputStream fos=null;
    settings.cameraOrientation=TweedFrame.instance.tweed.oldCameraRot;
    settings.cameraLocation=TweedFrame.instance.tweed.oldCameraLoc;
    try {
      fos=new FileOutputStream(new File(folder,"String_Node_Str" + (backup ? "String_Node_Str" : "String_Node_Str")));
      TweedSettings.settings.badGeomAngle=-0.1;
      new XStream(new PureJavaReflectionProvider()).toXML(TweedSettings.settings,fos);
    }
 catch (    Throwable e) {
      e.printStackTrace();
    }
 finally {
      if (fos != null)       try {
        fos.close();
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
    }
    if (!backup)     writeRecentFiles();
  }
 else   if (!backup)   JOptionPane.showMessageDialog(null,"String_Node_Str");
}
Program: 175862
Project: 175862
Buggy source:
private static void findOcclusions(HalfMesh2 mesh){
  int count=0;
  Set<HalfFace> fc=new HashSet<>();
  for (  HalfFace hf : mesh.faces)   for (  HalfEdge e1 : hf.edges()) {
    Line el1=e1.line();
    for (    HalfFace hf2 : mesh.faces) {
      for (      HalfEdge e2 : hf2.edges())       if (e1 != e2) {
        Line e2l=e2.line();
        if (el1.distance(e2l) < 1 && e2l.absAngle(el1) > Math.PI * 0.7) {
          ((SuperEdge)e1).occlusions.add(e2);
          count++;
          fc.add(hf);
        }
      }
    }
  }
  System.out.println("String_Node_Str" + count + "String_Node_Str"+ fc.size()+ "String_Node_Str");
}

Fixed version (ground truth):
private static void findOcclusions(HalfMesh2 mesh){
  for (  HalfFace hf : mesh.faces)   for (  HalfEdge e1 : hf.edges()) {
    Line el1=e1.line();
    for (    HalfFace hf2 : mesh.faces) {
      for (      HalfEdge e2 : hf2.edges())       if (e1 != e2) {
        Line e2l=e2.line();
        if (el1.distance(e2l) < 1 && e2l.absAngle(el1) > Math.PI * 0.7)         ((SuperEdge)e1).occlusions.add(e2);
      }
    }
  }
}
Program: 175864
Project: 175864
Buggy source:
@Override public void calculate(){
  for (  Spatial s : gNode.getChildren())   s.removeFromParent();
  SuperFace sf;
  if (mode == Mode.Extrude) {
    sf=toHalf(Loopz.to3d(Loopz.removeInnerEdges(Loopz.toXZLoop(blockGen.polies)).get(0),0,1));
    PlanSkeleton skel=calc(sf);
    setSkel(skel,skel.output,sf);
  }
 else   for (  Loop<Point3d> loop : blockGen.polies) {
    sf=toHalf(loop);
    PlanSkeleton skel=calc(sf);
    setSkel(skel,skel.output,sf);
  }
  gNode.updateModelBound();
  gNode.updateGeometricState();
  setVisible(visible);
}

Fixed version (ground truth):
@Override public void calculate(){
  for (  Spatial s : gNode.getChildren())   s.removeFromParent();
  SuperFace sf;
  if (mode == Mode.Extrude) {
    sf=toHalf(Loopz.to3d(Loopz.removeInnerEdges(Loopz.toXZLoop(blockGen.polies)).get(0),0,1));
    PlanSkeleton skel=calc(sf);
    setSkel(skel,sf,null);
  }
 else   for (  Loop<Point3d> loop : blockGen.polies) {
    sf=toHalf(loop);
    PlanSkeleton skel=calc(sf);
    setSkel(skel,sf,null);
  }
  gNode.updateModelBound();
  gNode.updateGeometricState();
  setVisible(visible);
}
Program: 175865
Project: 175865
Buggy source:
public void show(Output output,Skeleton threadKey){
  super.show(output,threadKey);
  tweed.enqueue(new Runnable(){
    @Override public void run(){
      removeGeometryFor(workon);
      tweed.frame.setGenUI(null);
      setSkel((PlanSkeleton)threadKey,output,workon);
    }
  }
);
}

Fixed version (ground truth):
public void show(Output output,Skeleton threadKey){
  super.show(output,threadKey);
  tweed.enqueue(new Runnable(){
    @Override public void run(){
      removeGeometryFor(workon);
      tweed.frame.setGenUI(null);
      setSkel((PlanSkeleton)threadKey,workon,lastOccluders);
    }
  }
);
}
Program: 175866
Project: 175866
Buggy source:
public synchronized void setSkel(PlanSkeleton skel,Output output,SuperFace sf){
  removeGeometryFor(sf);
  Node house;
  OnClick onclick=new OnClick(){
    @Override public void selected(    Output output,    Node house2,    SuperEdge se){
      SkelGen.this.selected(skel,house2,sf,se);
    }
  }
;
  GreebleSkel greeble=new GreebleSkel(tweed);
  house=greeble.showSkeleton(output,onclick);
  gNode.attachChild(house);
  geometry.get(sf).set(house,output,skel);
  tweed.getRootNode().updateGeometricState();
  tweed.getRootNode().updateModelBound();
  tweed.gainFocus();
}

Fixed version (ground truth):
public synchronized void setSkel(PlanSkeleton skel,SuperFace sf,Map<Object,Face> occluderLookup){
  removeGeometryFor(sf);
  Node house;
  OnClick onclick=new OnClick(){
    @Override public void selected(    Output output,    Node house2,    SuperEdge se){
      SkelGen.this.selected(skel,house2,sf,se);
    }
  }
;
  GreebleSkel greeble=new GreebleSkel(tweed);
  house=greeble.showSkeleton(skel.output,onclick,occluderLookup);
  gNode.attachChild(house);
  geometry.get(sf).set(house,skel.output,skel);
  tweed.getRootNode().updateGeometricState();
  tweed.getRootNode().updateModelBound();
  tweed.gainFocus();
}
Program: 175867
Project: 175867
Buggy source:
@Override public void actionPerformed(ActionEvent e){
  closeSitePlan();
  Plot.closeLast();
  for (  HalfEdge he : sf) {
    SuperEdge ee=(SuperEdge)he;
    if (ee.toEdit != null)     ee.toEdit.texture=null;
  }
  siteplan=new Siteplan(skel.plan,false){
    SuperFace workon=sf;
    public void show(    Output output,    Skeleton threadKey){
      super.show(output,threadKey);
      tweed.enqueue(new Runnable(){
        @Override public void run(){
          removeGeometryFor(workon);
          tweed.frame.setGenUI(null);
          setSkel((PlanSkeleton)threadKey,output,workon);
        }
      }
);
    }
  }
;
  siteplan.setVisible(true);
  siteplan.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent e){
  closeSitePlan();
  Plot.closeLast();
  for (  HalfEdge he : sf) {
    SuperEdge ee=(SuperEdge)he;
    if (ee.toEdit != null)     ee.toEdit.texture=null;
  }
  siteplan=new Siteplan(skel.plan,false){
    SuperFace workon=sf;
    public void show(    Output output,    Skeleton threadKey){
      super.show(output,threadKey);
      tweed.enqueue(new Runnable(){
        @Override public void run(){
          removeGeometryFor(workon);
          tweed.frame.setGenUI(null);
          setSkel((PlanSkeleton)threadKey,workon,lastOccluders);
        }
      }
);
    }
  }
;
  siteplan.setVisible(true);
  siteplan.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
}
Program: 175868
Project: 175868
Buggy source:
@Override public void calculate(){
  for (  Spatial s : gNode.getChildren())   s.removeFromParent();
  Node pNode=new Node();
  if (toRender != null)   for (int i=0; i < toRender.faces.size(); i++)   try {
    HalfFace f=toRender.faces.get(i);
    SuperFace sf=(SuperFace)f;
    Rendered previouslyRendered=geometry.get(sf);
    if (previouslyRendered.skel != null) {
      setSkel(previouslyRendered.skel,previouslyRendered.output,sf);
    }
 else {
      PlanSkeleton skel=calc(sf);
      if (skel != null)       setSkel(skel,skel.output,sf);
    }
  }
 catch (  Throwable th) {
    th.printStackTrace();
  }
  if (!pNode.getChildren().isEmpty())   tweed.frame.addGen(new JmeGen("String_Node_Str",tweed,pNode),false);
  gNode.updateModelBound();
  gNode.updateGeometricState();
  super.calculate();
}

Fixed version (ground truth):
@Override public void calculate(){
  for (  Spatial s : gNode.getChildren())   s.removeFromParent();
  Node pNode=new Node();
  if (toRender != null) {
    Map<Object,Face> occluderLookup=lastOccluders=new HashMap<>();
    for (int i=0; i < toRender.faces.size(); i++)     try {
      HalfFace f=toRender.faces.get(i);
      SuperFace sf=(SuperFace)f;
      Rendered previouslyRendered=geometry.get(sf);
      if (previouslyRendered.skel == null)       previouslyRendered.skel=calc(sf);
      if (previouslyRendered.skel != null)       for (      Face ff : previouslyRendered.skel.output.faces.values()) {
        WallTag wt=(WallTag)GreebleHelper.getTag(ff.profile,WallTag.class);
        if (wt != null && ff.parent == null) {
          occluderLookup.put(wt.occlusionID,ff);
        }
      }
    }
 catch (    Throwable th) {
      th.printStackTrace();
    }
    for (int i=0; i < toRender.faces.size(); i++)     try {
      SuperFace sf=(SuperFace)toRender.faces.get(i);
      Rendered previouslyRendered=geometry.get(sf);
      if (previouslyRendered.skel != null)       setSkel(previouslyRendered.skel,sf,occluderLookup);
    }
 catch (    Throwable th) {
      th.printStackTrace();
    }
  }
  if (!pNode.getChildren().isEmpty())   tweed.frame.addGen(new JmeGen("String_Node_Str",tweed,pNode),false);
  gNode.updateModelBound();
  gNode.updateGeometricState();
  super.calculate();
}
Program: 175872
Project: 175872
Buggy source:
@Override public void changed(){
  PaintThing.debug.clear();
  if (texture.isSelected())   new Thread(new Runnable(){
    @Override public void run(){
      Pix2Pix.pix2pix(Collections.singletonList(se.toEdit),new Runnable(){
        public void run(){
          tweed.enqueue(new Runnable(){
            @Override public void run(){
              setSkel(skel,skel.output,sf);
              tweed.getRootNode().updateGeometricState();
            }
          }
);
        }
      }
);
    }
  }
).start();
 else {
    se.toEdit.texture=null;
    tweed.enqueue(new Runnable(){
      @Override public void run(){
        setSkel(skel,skel.output,sf);
      }
    }
);
  }
}

Fixed version (ground truth):
@Override public void changed(){
  PaintThing.debug.clear();
  if (texture.isSelected())   new Thread(new Runnable(){
    @Override public void run(){
      Pix2Pix.pix2pix(Collections.singletonList(se.toEdit),new Runnable(){
        public void run(){
          tweed.enqueue(new Runnable(){
            @Override public void run(){
              setSkel(skel,sf,lastOccluders);
              tweed.getRootNode().updateGeometricState();
            }
          }
);
        }
      }
);
    }
  }
).start();
 else {
    se.toEdit.texture=null;
    tweed.enqueue(new Runnable(){
      @Override public void run(){
        setSkel(skel,sf,lastOccluders);
      }
    }
);
  }
}
Program: 175874
Project: 175874
Buggy source:
public Node showSkeleton(Output output,OnClick onClick){
  this.onClick=onClick;
  createMesh(output);
  return node;
}

Fixed version (ground truth):
public Node showSkeleton(Output output,OnClick onClick,java.util.Map<Object,Face> occluderLookup){
  this.onClick=onClick;
  createMesh(output,occluderLookup);
  return node;
}
Program: 175875
Project: 175875
Buggy source:
public void show(Output output,Skeleton threadKey){
  super.show(output,threadKey);
  Plot.closeLast();
  tweed.enqueue(new Runnable(){
    @Override public void run(){
      removeGeometryFor(workon);
      tweed.frame.setGenUI(null);
      setSkel((PlanSkeleton)threadKey,output,workon);
    }
  }
);
}

Fixed version (ground truth):
public void show(Output output,Skeleton threadKey){
  super.show(output,threadKey);
  tweed.enqueue(new Runnable(){
    @Override public void run(){
      removeGeometryFor(workon);
      tweed.frame.setGenUI(null);
      setSkel((PlanSkeleton)threadKey,output,workon);
    }
  }
);
}
Program: 175876
Project: 175876
Buggy source:
public synchronized void setSkel(PlanSkeleton skel,Output output,SuperFace sf){
  removeGeometryFor(sf);
  Node house;
  OnClick onclick=new OnClick(){
    @Override public void selected(    Output output,    Node house2,    SuperEdge se){
      SkelGen.this.selected(skel,house2,sf,se);
    }
  }
;
  GreebleSkel greeble=new GreebleSkel(tweed);
  house=greeble.showSkeleton(output,onclick);
  gNode.attachChild(house);
  geometry.put(sf,house);
  tweed.getRootNode().updateGeometricState();
  tweed.getRootNode().updateModelBound();
  tweed.gainFocus();
}

Fixed version (ground truth):
public synchronized void setSkel(PlanSkeleton skel,Output output,SuperFace sf){
  removeGeometryFor(sf);
  Node house;
  OnClick onclick=new OnClick(){
    @Override public void selected(    Output output,    Node house2,    SuperEdge se){
      SkelGen.this.selected(skel,house2,sf,se);
    }
  }
;
  GreebleSkel greeble=new GreebleSkel(tweed);
  house=greeble.showSkeleton(output,onclick);
  gNode.attachChild(house);
  geometry.get(sf).set(house,output,skel);
  tweed.getRootNode().updateGeometricState();
  tweed.getRootNode().updateModelBound();
  tweed.gainFocus();
}
Program: 175877
Project: 175877
Buggy source:
@Override public void actionPerformed(ActionEvent e){
  closeSitePlan();
  siteplan=new Siteplan(skel.plan,false){
    SuperFace workon=sf;
    public void show(    Output output,    Skeleton threadKey){
      super.show(output,threadKey);
      Plot.closeLast();
      tweed.enqueue(new Runnable(){
        @Override public void run(){
          removeGeometryFor(workon);
          tweed.frame.setGenUI(null);
          setSkel((PlanSkeleton)threadKey,output,workon);
        }
      }
);
    }
  }
;
  siteplan.setVisible(true);
  siteplan.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent e){
  closeSitePlan();
  Plot.closeLast();
  for (  HalfEdge he : sf) {
    SuperEdge ee=(SuperEdge)he;
    if (ee.toEdit != null)     ee.toEdit.texture=null;
  }
  siteplan=new Siteplan(skel.plan,false){
    SuperFace workon=sf;
    public void show(    Output output,    Skeleton threadKey){
      super.show(output,threadKey);
      tweed.enqueue(new Runnable(){
        @Override public void run(){
          removeGeometryFor(workon);
          tweed.frame.setGenUI(null);
          setSkel((PlanSkeleton)threadKey,output,workon);
        }
      }
);
    }
  }
;
  siteplan.setVisible(true);
  siteplan.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
}
Program: 175878
Project: 175878
Buggy source:
@Override public void calculate(){
  for (  Spatial s : gNode.getChildren())   s.removeFromParent();
  Node pNode=new Node();
  if (toRender != null)   for (int i=0; i < toRender.faces.size(); i++)   try {
    HalfFace f=toRender.faces.get(i);
    SuperFace sf=(SuperFace)f;
    PlanSkeleton skel=calc(sf);
    if (skel != null)     setSkel(skel,skel.output,sf);
  }
 catch (  Throwable th) {
    th.printStackTrace();
  }
  if (!pNode.getChildren().isEmpty())   tweed.frame.addGen(new JmeGen("String_Node_Str",tweed,pNode),false);
  gNode.updateModelBound();
  gNode.updateGeometricState();
  super.calculate();
}

Fixed version (ground truth):
@Override public void calculate(){
  for (  Spatial s : gNode.getChildren())   s.removeFromParent();
  Node pNode=new Node();
  if (toRender != null)   for (int i=0; i < toRender.faces.size(); i++)   try {
    HalfFace f=toRender.faces.get(i);
    SuperFace sf=(SuperFace)f;
    Rendered previouslyRendered=geometry.get(sf);
    if (previouslyRendered.skel != null) {
      setSkel(previouslyRendered.skel,previouslyRendered.output,sf);
    }
 else {
      PlanSkeleton skel=calc(sf);
      if (skel != null)       setSkel(skel,skel.output,sf);
    }
  }
 catch (  Throwable th) {
    th.printStackTrace();
  }
  if (!pNode.getChildren().isEmpty())   tweed.frame.addGen(new JmeGen("String_Node_Str",tweed,pNode),false);
  gNode.updateModelBound();
  gNode.updateGeometricState();
  super.calculate();
}
Program: 175880
Project: 175880
Buggy source:
public void editFacade(PlanSkeleton skel,SuperFace sf,SuperEdge se,boolean texture){
  closeSitePlan();
  if (se.toEdit == null) {
    ensureMF(sf,se);
    if (!texture)     se.toEdit.groundFloorHeight=2;
  }
  if (texture) {
    patchWallTag(skel,se,se.toEdit);
    se.toEdit.width=se.length();
  }
 else   se.toEdit.texture=null;
  Plot p=new Plot(se.toEdit);
  Changed c=new Changed(){
    @Override public void changed(){
      PaintThing.debug.clear();
      if (texture)       new Thread(new Runnable(){
        @Override public void run(){
          Pix2Pix.pix2pix(Collections.singletonList(se.toEdit),new Runnable(){
            public void run(){
              tweed.enqueue(new Runnable(){
                @Override public void run(){
                  setSkel(skel,skel.output,sf);
                  tweed.getRootNode().updateGeometricState();
                }
              }
);
            }
          }
);
        }
      }
).start();
 else       tweed.enqueue(new Runnable(){
        @Override public void run(){
          setSkel(skel,skel.output,sf);
        }
      }
);
    }
  }
;
  c.changed();
  p.addEditListener(c);
}

Fixed version (ground truth):
public void editFacade(PlanSkeleton skel,SuperFace sf,SuperEdge se){
  closeSitePlan();
  JToggleButton texture=new JToggleButton("String_Node_Str");
  texture.setSelected(se.toEdit != null && se.toEdit.texture != null);
  if (se.toEdit == null) {
    ensureMF(sf,se);
    if (!texture.isSelected())     se.toEdit.groundFloorHeight=2;
  }
  if (texture.isSelected()) {
    patchWallTag(skel,se,se.toEdit);
    se.toEdit.width=se.length();
  }
 else   se.toEdit.texture=null;
  if (se.toEdit.featureGen instanceof CGAMini) {
    ((CGAMini)se.toEdit.featureGen).update();
    se.toEdit.featureGen=new FeatureGenerator(se.toEdit,se.toEdit.featureGen);
  }
  Plot p=new Plot(se.toEdit,texture);
  Changed c=new Changed(){
    @Override public void changed(){
      PaintThing.debug.clear();
      if (texture.isSelected())       new Thread(new Runnable(){
        @Override public void run(){
          Pix2Pix.pix2pix(Collections.singletonList(se.toEdit),new Runnable(){
            public void run(){
              tweed.enqueue(new Runnable(){
                @Override public void run(){
                  setSkel(skel,skel.output,sf);
                  tweed.getRootNode().updateGeometricState();
                }
              }
);
            }
          }
);
        }
      }
).start();
 else {
        se.toEdit.texture=null;
        tweed.enqueue(new Runnable(){
          @Override public void run(){
            setSkel(skel,skel.output,sf);
          }
        }
);
      }
    }
  }
;
  texture.addActionListener(l -> c.changed());
  c.changed();
  p.addEditListener(c);
}
Program: 175881
Project: 175881
Buggy source:
private void cgaAll(){
  List<MiniFacade> mfs=new ArrayList<>();
  for (  HalfFace hf : toRender)   for (  HalfEdge he : hf) {
    SuperEdge se=(SuperEdge)he;
    ensureMF((SuperFace)hf,se);
    mfs.add(se.toEdit);
    se.toEdit.featureGen=new CGAMini(se.toEdit);
  }
  new Thread(new Runnable(){
    @Override public void run(){
      Pix2Pix.pix2pix(mfs,new Runnable(){
        public void run(){
          tweed.enqueue(new Runnable(){
            @Override public void run(){
              calculateOnJmeThread();
            }
          }
);
        }
      }
);
    }
  }
).start();
}

Fixed version (ground truth):
private void cgaAll(){
  for (  HalfFace hf : toRender)   for (  HalfEdge he : hf) {
    SuperEdge se=(SuperEdge)he;
    ensureMF((SuperFace)hf,se);
    se.toEdit.featureGen=new CGAMini(se.toEdit);
    se.toEdit.featureGen.update();
  }
  calculateOnJmeThread();
}
Program: 175882
Project: 175882
Buggy source:
private void removeGeometryFor(SuperFace sf){
  if (geometry.get(sf) != null) {
    geometry.get(sf).removeFromParent();
    geometry.remove(sf);
  }
}

Fixed version (ground truth):
private void removeGeometryFor(SuperFace sf){
  Rendered rd=geometry.get(sf);
  if (rd != null) {
    if (rd.node != null) {
      rd.node.removeFromParent();
      rd.node=null;
    }
  }
}
Program: 175883
Project: 175883
Buggy source:
@Override public JComponent getUI(){
  JPanel ui=new JPanel(new ListDownLayout());
  ui.add(new JLabel("String_Node_Str"));
  JButton compare=new JButton("String_Node_Str");
  compare.addActionListener(l -> new CompareGens(this,blockGen));
  ui.add(compare);
  JButton pf=new JButton("String_Node_Str");
  pf.addActionListener(l -> cgaAll());
  ui.add(pf);
  return ui;
}

Fixed version (ground truth):
@Override public JComponent getUI(){
  JPanel ui=new JPanel(new ListDownLayout());
  ui.add(new JLabel("String_Node_Str"));
  JButton compare=new JButton("String_Node_Str");
  compare.addActionListener(l -> new CompareGens(this,blockGen));
  ui.add(compare);
  JButton pf=new JButton("String_Node_Str");
  pf.addActionListener(l -> cgaAll());
  ui.add(pf);
  JButton tf=new JButton("String_Node_Str");
  tf.addActionListener(l -> textureAll());
  ui.add(tf);
  return ui;
}
Program: 175884
Project: 175884
Buggy source:
private void cgaFacade(PlanSkeleton skel,SuperFace sf,SuperEdge se){
  ensureMF(sf,se);
  se.toEdit.featureGen=new CGAMini(se.toEdit);
  patchWallTag(skel,se,se.toEdit);
}

Fixed version (ground truth):
private void cgaFacade(PlanSkeleton skel,SuperFace sf,SuperEdge se){
  ensureMF(sf,se);
  se.toEdit.featureGen=new CGAMini(se.toEdit);
  se.toEdit.featureGen.update();
  patchWallTag(skel,se,se.toEdit);
  calculateOnJmeThread();
}
Program: 175885
Project: 175885
Buggy source:
@Override public void changed(){
  PaintThing.debug.clear();
  if (texture)   new Thread(new Runnable(){
    @Override public void run(){
      Pix2Pix.pix2pix(Collections.singletonList(se.toEdit),new Runnable(){
        public void run(){
          tweed.enqueue(new Runnable(){
            @Override public void run(){
              setSkel(skel,skel.output,sf);
              tweed.getRootNode().updateGeometricState();
            }
          }
);
        }
      }
);
    }
  }
).start();
 else   tweed.enqueue(new Runnable(){
    @Override public void run(){
      setSkel(skel,skel.output,sf);
    }
  }
);
}

Fixed version (ground truth):
@Override public void changed(){
  PaintThing.debug.clear();
  if (texture.isSelected())   new Thread(new Runnable(){
    @Override public void run(){
      Pix2Pix.pix2pix(Collections.singletonList(se.toEdit),new Runnable(){
        public void run(){
          tweed.enqueue(new Runnable(){
            @Override public void run(){
              setSkel(skel,skel.output,sf);
              tweed.getRootNode().updateGeometricState();
            }
          }
);
        }
      }
);
    }
  }
).start();
 else {
    se.toEdit.texture=null;
    tweed.enqueue(new Runnable(){
      @Override public void run(){
        setSkel(skel,skel.output,sf);
      }
    }
);
  }
}
Program: 175886
Project: 175886
Buggy source:
public void simpleUpdate(float tpf){
  if (oldWidth != cam.getWidth() || oldHeight != cam.getHeight()) {
    buildBackground();
    oldWidth=cam.getWidth();
    oldHeight=cam.getHeight();
  }
  if (checkForEnd)   if (tool.isDragging()) {
    tool.dragEnd();
  }
  checkForEnd=true;
  TweedSettings.settings.cameraLocation=cam.getLocation();
  TweedSettings.settings.cameraOrientation=cam.getRotation();
}

Fixed version (ground truth):
public void simpleUpdate(float tpf){
  if (oldWidth != cam.getWidth() || oldHeight != cam.getHeight()) {
    buildBackground();
    clearBackground();
    oldWidth=cam.getWidth();
    oldHeight=cam.getHeight();
  }
  if (checkForEnd)   if (tool.isDragging()) {
    tool.dragEnd();
  }
  checkForEnd=true;
  TweedSettings.settings.cameraLocation=cam.getLocation();
  TweedSettings.settings.cameraOrientation=cam.getRotation();
}
Program: 175887
Project: 175887
Buggy source:
public static void loadDefault(){
  if (recentFiles == null) {
    try {
      recentFiles=(RecentFiles)new XStream().fromXML(RECENT_FILE_LOCATION);
    }
 catch (    Throwable th) {
      System.out.println("String_Node_Str");
      recentFiles=new RecentFiles();
    }
  }
  if (!recentFiles.f.isEmpty()) {
    File last=recentFiles.f.get(0);
    if (last.exists())     load(last);
 else {
      JOptionPane.showMessageDialog(null,"String_Node_Str" + last.getName());
      recentFiles.f.remove(0);
    }
  }
}

Fixed version (ground truth):
public static void loadDefault(){
  if (recentFiles == null) {
    try {
      recentFiles=(RecentFiles)new XStream().fromXML(RECENT_FILE_LOCATION);
    }
 catch (    Throwable th) {
      System.out.println("String_Node_Str");
      recentFiles=new RecentFiles();
    }
  }
  if (!recentFiles.f.isEmpty()) {
    File last=recentFiles.f.get(0);
    if (last.exists())     load(last);
 else {
      JOptionPane.showMessageDialog(null,"String_Node_Str" + last.getName() + "String_Node_Str");
      recentFiles.f.remove(0);
    }
  }
}
Program: 175889
Project: 175889
Buggy source:
@Override public void accept(String line){
  if (line.startsWith("String_Node_Str"))   return;
  double ppm=40;
  String[] vals=line.split("String_Node_Str");
  try {
    windows.add(new Window(30 - Double.parseDouble(vals[0]) / ppm,Double.parseDouble(vals[1]) / ppm,30 - Double.parseDouble(vals[2]) / ppm,Double.parseDouble(vals[3]) / ppm));
  }
 catch (  Throwable th) {
    System.err.println("String_Node_Str" + line + "String_Node_Str");
    th.printStackTrace();
  }
}

Fixed version (ground truth):
@Override public void accept(String line){
  if (line.startsWith("String_Node_Str"))   return;
  String[] vals=line.split("String_Node_Str");
  try {
    windows.add(new Window(30 - Double.parseDouble(vals[0]) / FacadeTool.pixelsPerMeter,Double.parseDouble(vals[1]) / FacadeTool.pixelsPerMeter,30 - Double.parseDouble(vals[2]) / FacadeTool.pixelsPerMeter,Double.parseDouble(vals[3]) / FacadeTool.pixelsPerMeter));
  }
 catch (  Throwable th) {
    System.err.println("String_Node_Str" + line + "String_Node_Str");
    th.printStackTrace();
  }
}
Program: 175891
Project: 175891
Buggy source:
@Override public void actionPerformed(ActionEvent e){
  JFileChooser fileChooser=new JFileChooser(lastLocation == null ? new File((System.getProperty("String_Node_Str") + "String_Node_Str")) : lastLocation);
  fileChooser.setFileFilter(new FileFilter(){
    @Override public String getDescription(){
      return "String_Node_Str";
    }
    @Override public boolean accept(    File f){
      return f.isDirectory() || f.getName().toLowerCase().endsWith("String_Node_Str");
    }
  }
);
  if (fileChooser.showOpenDialog(out) == JFileChooser.APPROVE_OPTION) {
    windows.clear();
    File csv=fileChooser.getSelectedFile();
    lastLocation=csv.getParentFile();
    try (Stream<String> stream=Files.lines(csv.toPath())){
      stream.forEach(new Consumer<String>(){
        @Override public void accept(        String line){
          if (line.startsWith("String_Node_Str"))           return;
          double ppm=40;
          String[] vals=line.split("String_Node_Str");
          try {
            windows.add(new Window(30 - Double.parseDouble(vals[0]) / ppm,Double.parseDouble(vals[1]) / ppm,30 - Double.parseDouble(vals[2]) / ppm,Double.parseDouble(vals[3]) / ppm));
          }
 catch (          Throwable th) {
            System.err.println("String_Node_Str" + line + "String_Node_Str");
            th.printStackTrace();
          }
        }
      }
);
    }
 catch (    Throwable th) {
      th.printStackTrace();
    }
  }
  calculateOnJmeThread();
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent e){
  JFileChooser fileChooser=new JFileChooser(lastLocation == null ? new File((System.getProperty("String_Node_Str") + "String_Node_Str")) : lastLocation);
  fileChooser.setFileFilter(new FileFilter(){
    @Override public String getDescription(){
      return "String_Node_Str";
    }
    @Override public boolean accept(    File f){
      return f.isDirectory() || f.getName().toLowerCase().endsWith("String_Node_Str");
    }
  }
);
  if (fileChooser.showOpenDialog(out) == JFileChooser.APPROVE_OPTION) {
    windows.clear();
    File csv=fileChooser.getSelectedFile();
    lastLocation=csv.getParentFile();
    try (Stream<String> stream=Files.lines(csv.toPath())){
      stream.forEach(new Consumer<String>(){
        @Override public void accept(        String line){
          if (line.startsWith("String_Node_Str"))           return;
          String[] vals=line.split("String_Node_Str");
          try {
            windows.add(new Window(30 - Double.parseDouble(vals[0]) / FacadeTool.pixelsPerMeter,Double.parseDouble(vals[1]) / FacadeTool.pixelsPerMeter,30 - Double.parseDouble(vals[2]) / FacadeTool.pixelsPerMeter,Double.parseDouble(vals[3]) / FacadeTool.pixelsPerMeter));
          }
 catch (          Throwable th) {
            System.err.println("String_Node_Str" + line + "String_Node_Str");
            th.printStackTrace();
          }
        }
      }
);
    }
 catch (    Throwable th) {
      th.printStackTrace();
    }
  }
  calculateOnJmeThread();
}
Program: 175892
Project: 175892
Buggy source:
public AlignStandalone2d(String folder){
  super(new BorderLayout());
  TweedSettings.load(new File(folder).getParentFile());
  this.folder=folder;
  add(plot,BorderLayout.CENTER);
  JPanel controls=new JPanel(new ListDownLayout());
  add(controls,BorderLayout.EAST);
  facadeFolders=new ArrayList(Arrays.asList(new File(folder).listFiles()));
  Collections.sort(facadeFolders,FILE_COMPARATOR);
  facadeSlide=new JSlider(0,facadeFolders.size() - 1,0);
  controls.add(facadeSlide);
  facadeSlide.addChangeListener(new ChangeListener(){
    @Override public void stateChanged(    ChangeEvent e){
      setFolder(facadeFolders.get(facadeSlide.getValue()));
    }
  }
);
  imageSlide=new JSlider(-1,1);
  controls.add(imageSlide);
  imageSlide.addChangeListener(new ChangeListener(){
    @Override public void stateChanged(    ChangeEvent e){
      plot();
    }
  }
);
}

Fixed version (ground truth):
public AlignStandalone2d(String folder){
  super(new BorderLayout());
  this.folder=folder;
  add(plot,BorderLayout.CENTER);
  JPanel controls=new JPanel(new ListDownLayout());
  add(controls,BorderLayout.EAST);
  facadeFolders=new ArrayList(Arrays.asList(new File(folder).listFiles()));
  Collections.sort(facadeFolders,FILE_COMPARATOR);
  facadeSlide=new JSlider(0,facadeFolders.size() - 1,0);
  controls.add(facadeSlide);
  facadeSlide.addChangeListener(new ChangeListener(){
    @Override public void stateChanged(    ChangeEvent e){
      setFolder(facadeFolders.get(facadeSlide.getValue()));
    }
  }
);
  imageSlide=new JSlider(-1,1);
  controls.add(imageSlide);
  imageSlide.addChangeListener(new ChangeListener(){
    @Override public void stateChanged(    ChangeEvent e){
      plot();
    }
  }
);
  setFolder(facadeFolders.get(facadeSlide.getValue()));
}
Program: 175894
Project: 175894
Buggy source:
@Override public JComponent getUI(){
  JPanel ui=new JPanel(new ListDownLayout());
  JButton b=new JButton("String_Node_Str");
  b.addActionListener(e -> SkelFootprint.debugFindCleanProfiles(footprint,this,new ProgressMonitor(null,"String_Node_Str","String_Node_Str",0,100),tweed));
  JButton c=new JButton("String_Node_Str");
  c.addActionListener(e -> skelFootprint.debugCompareProfs(skelFootprint.globalProfs));
  ui.add(b);
  ui.add(c);
  return ui;
}

Fixed version (ground truth):
@Override public JComponent getUI(){
  JPanel ui=new JPanel(new ListDownLayout());
  JButton b=new JButton("String_Node_Str");
  b.addActionListener(e -> SkelFootprint.debugFindCleanProfiles(footprint,this,new ProgressMonitor(null,"String_Node_Str","String_Node_Str",0,100),tweed));
  JButton c=new JButton("String_Node_Str");
  c.addActionListener(e -> skelFootprint.debugCompareProfs(skelFootprint.globalProfs));
  ui.add(new JLabel("String_Node_Str"));
  ui.add(b);
  ui.add(c);
  return ui;
}
Program: 175896
Project: 175896
Buggy source:
@Override public void changed(){
  tweed.enqueue(new Runnable(){
    @Override public void run(){
      PlanSkeleton skel=calc(sf);
      setSkel(skel,skel.output,sf);
    }
  }
);
}

Fixed version (ground truth):
@Override public void changed(){
  PaintThing.debug.clear();
  tweed.enqueue(new Runnable(){
    @Override public void run(){
      PlanSkeleton skel=calc(sf);
      setSkel(skel,skel.output,sf);
    }
  }
);
}
Program: 175897
Project: 175897
Buggy source:
@Override public void dumpObj(ObjDump dump){
  dump.setCurrentTexture(filename,1,1);
  dump.addAll(getCroppedMesh());
}

Fixed version (ground truth):
@Override public void dumpObj(ObjDump dump){
  dump.setCurrentMaterial(Color.blue,0.5);
  dump.addAll(getCroppedMesh());
}
Program: 175898
Project: 175898
Buggy source:
@Override public void dumpObj(ObjDump dump){
  dump.setCurrentTexture(filename,1,1);
  dump.addAll(new ObjRead(new File(Tweed.JME + filename)));
}

Fixed version (ground truth):
@Override public void dumpObj(ObjDump dump){
  dump.setCurrentMaterial(Color.pink,0.5);
  dump.addAll(new ObjRead(new File(Tweed.JME + filename)));
}
Program: 175899
Project: 175899
Buggy source:
@Override public void dumpObj(ObjDump dump){
  dump.setCurrentTexture("String_Node_Str",1,1);
  Jme3z.dump(dump,gNode,0);
}

Fixed version (ground truth):
@Override public void dumpObj(ObjDump dump){
  dump.setCurrentMaterial(Color.orange,0.5);
  Jme3z.dump(dump,gNode,0);
}
Program: 175900
Project: 175900
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  mTextView=(TextView)findViewById(R.id.text_view);
  WebkioskCredentials credentials=new WebkioskCredentials("String_Node_Str","String_Node_Str","String_Node_Str");
  kioskApi=JKiosk.getSubjectFacultyApi();
  kioskApi.getSubjectFaculty(credentials,"String_Node_Str").addResultCallback(new ResultCallbackContract<SubjectFacultyResult>(){
    @Override public void onResult(    SubjectFacultyResult result){
      for (      SubjectFaculty subjectFaculty : result.getSubjectFaculties()) {
        mTextView.append(subjectFaculty.getSubjectName() + "String_Node_Str");
      }
    }
    @Override public void onError(    Exception e){
      Toast.makeText(getApplicationContext(),"String_Node_Str",Toast.LENGTH_SHORT).show();
    }
  }
);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  mTextView=(TextView)findViewById(R.id.text_view);
  WebkioskCredentials credentials=new WebkioskCredentials("String_Node_Str","String_Node_Str","String_Node_Str");
  kioskApi=JKiosk.getLoginApi();
  kioskApi.login(credentials).addResultCallback(new ResultCallbackContract<LoginResult>(){
    @Override public void onResult(    LoginResult result){
      Toast.makeText(getApplicationContext(),String.valueOf(result.isValidCredentials()),Toast.LENGTH_SHORT).show();
    }
    @Override public void onError(    Exception e){
    }
  }
);
}
Program: 175901
Project: 175901
Buggy source:
@Override public void onError(Exception e){
  Toast.makeText(getApplicationContext(),"String_Node_Str",Toast.LENGTH_SHORT).show();
}

Fixed version (ground truth):
@Override public void onError(Exception e){
}
Program: 175902
Project: 175902
Buggy source:
@Override public void onResult(SubjectFacultyResult result){
  for (  SubjectFaculty subjectFaculty : result.getSubjectFaculties()) {
    mTextView.append(subjectFaculty.getSubjectName() + "String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void onResult(LoginResult result){
  Toast.makeText(getApplicationContext(),String.valueOf(result.isValidCredentials()),Toast.LENGTH_SHORT).show();
}