nus-yam/ex-repair huggingface dataset:
Program: 58954
Project: 58954
Buggy source:
@Override public synchronized void displayLocal(final GL gl){
  pickingManager.handlePicking(iUniqueID,gl,false);
  if (bIsDisplayListDirtyLocal) {
    rebuildDisplayList(gl,iGLDisplayListIndexLocal);
    bIsDisplayListDirtyLocal=false;
  }
  iGLDisplayListToCall=iGLDisplayListIndexLocal;
  display(gl);
  pickingTriggerMouseAdapter.resetEvents();
}

Fixed version (ground truth):
@Override public synchronized void displayLocal(final GL gl){
  pickingManager.handlePicking(iUniqueID,gl,false);
  if (bIsDisplayListDirtyLocal) {
    rebuildDisplayList(gl,iGLDisplayListIndexLocal);
    bIsDisplayListDirtyLocal=false;
  }
  iGLDisplayListToCall=iGLDisplayListIndexLocal;
  display(gl);
}
Program: 58955
Project: 58955
Buggy source:
@Override public void initLocal(final GL gl){
  iGLDisplayListIndexLocal=gl.glGenLists(1);
  iGLDisplayListToCall=iGLDisplayListIndexLocal;
  init(gl);
  pickingTriggerMouseAdapter.resetEvents();
}

Fixed version (ground truth):
@Override public void initLocal(final GL gl){
  iGLDisplayListIndexLocal=gl.glGenLists(1);
  iGLDisplayListToCall=iGLDisplayListIndexLocal;
  init(gl);
}
Program: 58956
Project: 58956
Buggy source:
@Override public synchronized void displayLocal(final GL gl){
  if (!generalManager.getPathwayManager().hasItem(iPathwayID))   return;
  pickingManager.handlePicking(iUniqueID,gl,false);
  if (bIsDisplayListDirtyLocal) {
    rebuildPathwayDisplayList(gl,iGLDisplayListIndexLocal);
    bIsDisplayListDirtyLocal=false;
  }
  iGLDisplayListToCall=iGLDisplayListIndexLocal;
  display(gl);
  pickingTriggerMouseAdapter.resetEvents();
}

Fixed version (ground truth):
@Override public synchronized void displayLocal(final GL gl){
  if (!generalManager.getPathwayManager().hasItem(iPathwayID))   return;
  pickingManager.handlePicking(iUniqueID,gl,false);
  if (bIsDisplayListDirtyLocal) {
    rebuildPathwayDisplayList(gl,iGLDisplayListIndexLocal);
    bIsDisplayListDirtyLocal=false;
  }
  iGLDisplayListToCall=iGLDisplayListIndexLocal;
  display(gl);
}
Program: 58957
Project: 58957
Buggy source:
@Override public void enableBusyMode(boolean busyMode){
  super.enableBusyMode(busyMode);
  if (eBusyModeState == EBusyModeState.ON) {
    parentGLCanvas.removeMouseWheelListener(bucketMouseWheelListener);
  }
 else {
    parentGLCanvas.addMouseWheelListener(bucketMouseWheelListener);
  }
}

Fixed version (ground truth):
@Override public void enableBusyMode(boolean busyMode){
  super.enableBusyMode(busyMode);
  if (eBusyModeState == EBusyModeState.ON) {
    parentGLCanvas.removeMouseListener(bucketMouseWheelListener);
    parentGLCanvas.removeMouseWheelListener(bucketMouseWheelListener);
  }
 else {
    parentGLCanvas.addMouseListener(bucketMouseWheelListener);
    parentGLCanvas.addMouseWheelListener(bucketMouseWheelListener);
  }
}
Program: 58960
Project: 58960
Buggy source:
@Override public void mouseEntered(MouseEvent e){
  if (bucketGLEventListener == null)   return;
  bucketGLEventListener.getParentGLCanvas().getParentComposite().getDisplay().asyncExec(new Runnable(){
    public void run(){
      bucketGLEventListener.getParentGLCanvas().getParentComposite().setFocus();
      bucketGLEventListener.getParentGLCanvas().getParentComposite().forceFocus();
      bucketGLEventListener.getParentGLCanvas().getParentComposite().isFocusControl();
      bucketGLEventListener.getParentGLCanvas().getParentComposite().redraw();
    }
  }
);
  bucketGLEventListener.getParentGLCanvas().setVisible(true);
  bucketGLEventListener.getParentGLCanvas().setFocusable(true);
  bucketGLEventListener.getParentGLCanvas().requestFocusInWindow();
  bucketGLEventListener.getParentGLCanvas().requestFocus();
  bucketGLEventListener.getParentGLCanvas().getParent().setFocusable(true);
  bucketGLEventListener.getParentGLCanvas().getParent().requestFocus();
  bucketGLEventListener.getParentGLCanvas().getParent().requestFocusInWindow();
  SwingUtilities.invokeLater(new Runnable(){
    @Override public void run(){
      bucketGLEventListener.getParentGLCanvas().requestFocusInWindow();
      bucketGLEventListener.getParentGLCanvas().requestFocus();
    }
  }
);
}

Fixed version (ground truth):
@Override public void mouseEntered(MouseEvent e){
  grabFocus();
}
Program: 58961
Project: 58961
Buggy source:
public void render(){
  if (!bZoomActionRunning)   return;
  if (iAnimationZoomCounter == 0 || iCurrentBucketZoom % (int)fBuketZoomMax != 0) {
    if (bZoomIn) {
      iCurrentBucketZoom+=BUCKET_ZOOM_STEP;
      iAnimationZoomCounter+=BUCKET_ZOOM_STEP;
      bucketGLEventListener.getViewCamera().addCameraScale(new Vec3f(0,0,BUCKET_ZOOM_STEP / 100f));
    }
 else {
      iCurrentBucketZoom-=BUCKET_ZOOM_STEP;
      iAnimationZoomCounter-=BUCKET_ZOOM_STEP;
      bucketGLEventListener.getViewCamera().addCameraScale(new Vec3f(0,0,-BUCKET_ZOOM_STEP / 100f));
    }
    if (iCurrentBucketZoom >= fBuketZoomMax) {
      bBucketBottomReached=true;
      int iGLEventListenerID=bucketGLEventListener.getFocusLevel().getElementByPositionIndex(0).getContainedElementID();
      if (iGLEventListenerID != -1) {
        GeneralManager.get().getViewGLCanvasManager().getGLEventListener(iGLEventListenerID).setDetailLevel(EDetailLevel.HIGH);
      }
    }
 else     if (iCurrentBucketZoom == 0) {
      bBucketBottomReached=false;
      int iGLEventListenerID=bucketGLEventListener.getFocusLevel().getElementByPositionIndex(0).getContainedElementID();
      if (iGLEventListenerID != -1) {
        GeneralManager.get().getViewGLCanvasManager().getGLEventListener(iGLEventListenerID).setDetailLevel(EDetailLevel.MEDIUM);
      }
    }
  }
 else {
    iAnimationZoomCounter=0;
    bZoomActionRunning=false;
    GeneralManager.get().getViewGLCanvasManager().getPickingManager().enablePicking(true);
  }
}

Fixed version (ground truth):
public void render(){
  grabFocus();
  if (!bZoomActionRunning)   return;
  if (iAnimationZoomCounter == 0 || iCurrentBucketZoom % (int)fBuketZoomMax != 0) {
    if (bZoomIn) {
      iCurrentBucketZoom+=BUCKET_ZOOM_STEP;
      iAnimationZoomCounter+=BUCKET_ZOOM_STEP;
      bucketGLEventListener.getViewCamera().addCameraScale(new Vec3f(0,0,BUCKET_ZOOM_STEP / 100f));
    }
 else {
      iCurrentBucketZoom-=BUCKET_ZOOM_STEP;
      iAnimationZoomCounter-=BUCKET_ZOOM_STEP;
      bucketGLEventListener.getViewCamera().addCameraScale(new Vec3f(0,0,-BUCKET_ZOOM_STEP / 100f));
    }
    if (iCurrentBucketZoom >= fBuketZoomMax) {
      bBucketBottomReached=true;
      int iGLEventListenerID=bucketGLEventListener.getFocusLevel().getElementByPositionIndex(0).getContainedElementID();
      if (iGLEventListenerID != -1) {
        GeneralManager.get().getViewGLCanvasManager().getGLEventListener(iGLEventListenerID).setDetailLevel(EDetailLevel.HIGH);
      }
    }
 else     if (iCurrentBucketZoom == 0) {
      bBucketBottomReached=false;
      int iGLEventListenerID=bucketGLEventListener.getFocusLevel().getElementByPositionIndex(0).getContainedElementID();
      if (iGLEventListenerID != -1) {
        GeneralManager.get().getViewGLCanvasManager().getGLEventListener(iGLEventListenerID).setDetailLevel(EDetailLevel.MEDIUM);
      }
    }
  }
 else {
    iAnimationZoomCounter=0;
    bZoomActionRunning=false;
    GeneralManager.get().getViewGLCanvasManager().getPickingManager().enablePicking(true);
  }
}
Program: 58962
Project: 58962
Buggy source:
@Override public void displayLocal(GL gl){
  pickingManager.handlePicking(iUniqueID,gl,true);
  display(gl);
  checkForHits(gl);
  pickingTriggerMouseAdapter.resetEvents();
}

Fixed version (ground truth):
@Override public void displayLocal(GL gl){
  pickingManager.handlePicking(iUniqueID,gl,true);
  display(gl);
  checkForHits(gl);
}
Program: 58963
Project: 58963
Buggy source:
@Override public synchronized void displayLocal(GL gl){
  if (set == null)   return;
  if (bIsTranslationAnimationActive) {
    doTranslation();
  }
  pickingManager.handlePicking(iUniqueID,gl,true);
  if (bIsDisplayListDirtyLocal) {
    buildDisplayList(gl,iGLDisplayListIndexLocal);
    bIsDisplayListDirtyLocal=false;
  }
  iGLDisplayListToCall=iGLDisplayListIndexLocal;
  display(gl);
  checkForHits(gl);
  if (eBusyModeState != EBusyModeState.OFF)   renderBusyMode(gl);
  pickingTriggerMouseAdapter.resetEvents();
}

Fixed version (ground truth):
@Override public synchronized void displayLocal(GL gl){
  if (set == null)   return;
  if (bIsTranslationAnimationActive) {
    doTranslation();
  }
  pickingManager.handlePicking(iUniqueID,gl,true);
  if (bIsDisplayListDirtyLocal) {
    buildDisplayList(gl,iGLDisplayListIndexLocal);
    bIsDisplayListDirtyLocal=false;
  }
  iGLDisplayListToCall=iGLDisplayListIndexLocal;
  display(gl);
  checkForHits(gl);
  if (eBusyModeState != EBusyModeState.OFF)   renderBusyMode(gl);
}
Program: 58964
Project: 58964
Buggy source:
@Override public synchronized void displayLocal(GL gl){
  if (set == null)   return;
  pickingManager.handlePicking(iUniqueID,gl,true);
  if (bIsDisplayListDirtyLocal) {
    buildDisplayList(gl,iGLDisplayListIndexLocal);
    bIsDisplayListDirtyLocal=false;
  }
  iGLDisplayListToCall=iGLDisplayListIndexLocal;
  display(gl);
  checkForHits(gl);
  pickingTriggerMouseAdapter.resetEvents();
}

Fixed version (ground truth):
@Override public synchronized void displayLocal(GL gl){
  if (set == null)   return;
  pickingManager.handlePicking(iUniqueID,gl,true);
  if (bIsDisplayListDirtyLocal) {
    buildDisplayList(gl,iGLDisplayListIndexLocal);
    bIsDisplayListDirtyLocal=false;
  }
  iGLDisplayListToCall=iGLDisplayListIndexLocal;
  display(gl);
  checkForHits(gl);
}
Program: 58965
Project: 58965
Buggy source:
@Override public synchronized void display(final GL gl){
  clipToFrustum(gl);
  gl.glTranslatef(fXDefaultTranslation + fXTranslation,fYTranslation,0.0f);
  if (bIsDraggingActive) {
    handleGateDragging(gl);
    if (pickingTriggerMouseAdapter.wasMouseReleased())     bIsDraggingActive=false;
  }
  if (bWasAxisMoved) {
    adjustAxisSpacing(gl);
    if (pickingTriggerMouseAdapter.wasMouseReleased())     bWasAxisMoved=false;
  }
  checkUnselection();
  gl.glCallList(iGLDisplayListToCall);
  if (bIsAngularBrushingActive && iSelectedLineID != -1) {
    handleAngularBrushing(gl);
  }
  gl.glTranslatef(-fXDefaultTranslation - fXTranslation,-fYTranslation,0.0f);
  gl.glDisable(GL.GL_STENCIL_TEST);
}

Fixed version (ground truth):
@Override public synchronized void display(final GL gl){
  clipToFrustum(gl);
  gl.glTranslatef(fXDefaultTranslation + fXTranslation,fYTranslation,0.0f);
  if (bIsDraggingActive) {
    handleGateDragging(gl);
  }
  if (bWasAxisMoved) {
    adjustAxisSpacing(gl);
    if (pickingTriggerMouseAdapter.wasMouseReleased())     bWasAxisMoved=false;
  }
  checkUnselection();
  gl.glCallList(iGLDisplayListToCall);
  if (bIsAngularBrushingActive && iSelectedLineID != -1) {
    handleAngularBrushing(gl);
  }
  gl.glTranslatef(-fXDefaultTranslation - fXTranslation,-fYTranslation,0.0f);
  gl.glDisable(GL.GL_STENCIL_TEST);
}
Program: 58968
Project: 58968
Buggy source:
@Override public synchronized void displayLocal(final GL gl){
  if (set == null)   return;
  if (hashGates == null) {
    initGates();
  }
  if (bIsTranslationActive) {
    doTranslation();
  }
  pickingManager.handlePicking(iUniqueID,gl,true);
  if (bIsDisplayListDirtyLocal) {
    buildDisplayList(gl,iGLDisplayListIndexLocal);
    bIsDisplayListDirtyLocal=false;
  }
  iGLDisplayListToCall=iGLDisplayListIndexLocal;
  checkForHits(gl);
  display(gl);
  if (eBusyModeState != EBusyModeState.OFF)   renderBusyMode(gl);
  pickingTriggerMouseAdapter.resetEvents();
}

Fixed version (ground truth):
@Override public synchronized void displayLocal(final GL gl){
  if (set == null)   return;
  if (hashGates == null) {
    initGates();
  }
  if (bIsTranslationActive) {
    doTranslation();
  }
  pickingManager.handlePicking(iUniqueID,gl,true);
  if (bIsDisplayListDirtyLocal) {
    buildDisplayList(gl,iGLDisplayListIndexLocal);
    bIsDisplayListDirtyLocal=false;
  }
  iGLDisplayListToCall=iGLDisplayListIndexLocal;
  checkForHits(gl);
  display(gl);
  if (eBusyModeState != EBusyModeState.OFF)   renderBusyMode(gl);
}
Program: 58970
Project: 58970
Buggy source:
/** 
 * Initialization for gl called by a managing view Has to call init internally!
 * @param gl
 */
public abstract void initRemote(final GL gl,final int iRemoteViewID,final RemoteLevel level,final PickingJoglMouseListener pickingTriggerMouseAdapter,final IGLCanvasRemoteRendering remoteRenderingGLCanvas);

Fixed version (ground truth):
/** 
 * Initialization for gl called by a managing view Has to call init internally!
 * @param gl
 */
public abstract void initRemote(final GL gl,final int iRemoteViewID,final PickingJoglMouseListener pickingTriggerMouseAdapter,final IGLCanvasRemoteRendering remoteRenderingGLCanvas);
Program: 58971
Project: 58971
Buggy source:
@Override public void initRemote(GL gl,int remoteViewID,RemoteLevel level,PickingJoglMouseListener pickingTriggerMouseAdapter,IGLCanvasRemoteRendering remoteRenderingGLCanvas){
  this.remoteRenderingGLCanvas=remoteRenderingGLCanvas;
  this.pickingTriggerMouseAdapter=pickingTriggerMouseAdapter;
  init(gl);
}

Fixed version (ground truth):
@Override public void initRemote(GL gl,int remoteViewID,PickingJoglMouseListener pickingTriggerMouseAdapter,IGLCanvasRemoteRendering remoteRenderingGLCanvas){
  this.remoteRenderingGLCanvas=remoteRenderingGLCanvas;
  this.pickingTriggerMouseAdapter=pickingTriggerMouseAdapter;
  init(gl);
}
Program: 58972
Project: 58972
Buggy source:
@Override public synchronized void initRemote(final GL gl,final int iRemoteViewID,final RemoteLevel layer,final PickingJoglMouseListener pickingTriggerMouseAdapter,final IGLCanvasRemoteRendering remoteRenderingGLCanvas){
  bIsLocal=false;
  this.remoteRenderingGLCanvas=remoteRenderingGLCanvas;
  Collection<GLCaleydoCanvas> cc=generalManager.getViewGLCanvasManager().getAllGLCanvasUsers();
  for (  GLCaleydoCanvas c : cc) {
    c.addKeyListener(keyListener_);
  }
  init(gl);
  grid_.setGridSize(30,60);
  grid_.setGlyphPositions(EIconIDs.DISPLAY_RECTANGLE);
}

Fixed version (ground truth):
@Override public synchronized void initRemote(final GL gl,final int iRemoteViewID,final PickingJoglMouseListener pickingTriggerMouseAdapter,final IGLCanvasRemoteRendering remoteRenderingGLCanvas){
  bIsLocal=false;
  this.remoteRenderingGLCanvas=remoteRenderingGLCanvas;
  Collection<GLCaleydoCanvas> cc=generalManager.getViewGLCanvasManager().getAllGLCanvasUsers();
  for (  GLCaleydoCanvas c : cc) {
    c.addKeyListener(keyListener_);
  }
  init(gl);
  grid_.setGridSize(30,60);
  grid_.setGlyphPositions(EIconIDs.DISPLAY_RECTANGLE);
}
Program: 58973
Project: 58973
Buggy source:
@Override public void initRemote(final GL gl,final int iRemoteViewID,final RemoteLevel layer,final PickingJoglMouseListener pickingTriggerMouseAdapter,final IGLCanvasRemoteRendering remoteRenderingGLCanvas){
  this.pickingTriggerMouseAdapter=pickingTriggerMouseAdapter;
  this.remoteRenderingGLCanvas=remoteRenderingGLCanvas;
  iMaxCols=5;
  init(gl);
}

Fixed version (ground truth):
@Override public void initRemote(final GL gl,final int iRemoteViewID,final PickingJoglMouseListener pickingTriggerMouseAdapter,final IGLCanvasRemoteRendering remoteRenderingGLCanvas){
  this.pickingTriggerMouseAdapter=pickingTriggerMouseAdapter;
  this.remoteRenderingGLCanvas=remoteRenderingGLCanvas;
  iMaxCols=5;
  init(gl);
}
Program: 58974
Project: 58974
Buggy source:
@Override public void initRemote(final GL gl,final int iRemoteViewID,final RemoteLevel layer,final PickingJoglMouseListener pickingTriggerMouseAdapter,final IGLCanvasRemoteRendering remoteRenderingGLCanvas){
  iGLDisplayListIndexRemote=gl.glGenLists(1);
  iGLDisplayListToCall=iGLDisplayListIndexRemote;
  this.remoteRenderingGLCanvas=remoteRenderingGLCanvas;
  this.pickingTriggerMouseAdapter=pickingTriggerMouseAdapter;
  init(gl);
}

Fixed version (ground truth):
@Override public void initRemote(final GL gl,final int iRemoteViewID,final PickingJoglMouseListener pickingTriggerMouseAdapter,final IGLCanvasRemoteRendering remoteRenderingGLCanvas){
  iGLDisplayListIndexRemote=gl.glGenLists(1);
  iGLDisplayListToCall=iGLDisplayListIndexRemote;
  this.remoteRenderingGLCanvas=remoteRenderingGLCanvas;
  this.pickingTriggerMouseAdapter=pickingTriggerMouseAdapter;
  init(gl);
}
Program: 58975
Project: 58975
Buggy source:
@Override public void initRemote(final GL gl,final int iRemoteViewID,final RemoteLevel layer,final PickingJoglMouseListener pickingTriggerMouseAdapter,final IGLCanvasRemoteRendering remoteRenderingGLCanvas){
  this.remoteRenderingGLCanvas=remoteRenderingGLCanvas;
  this.pickingTriggerMouseAdapter=pickingTriggerMouseAdapter;
  iGLDisplayListIndexRemote=gl.glGenLists(1);
  iGLDisplayListToCall=iGLDisplayListIndexRemote;
  init(gl);
}

Fixed version (ground truth):
@Override public void initRemote(final GL gl,final int iRemoteViewID,final PickingJoglMouseListener pickingTriggerMouseAdapter,final IGLCanvasRemoteRendering remoteRenderingGLCanvas){
  this.remoteRenderingGLCanvas=remoteRenderingGLCanvas;
  this.pickingTriggerMouseAdapter=pickingTriggerMouseAdapter;
  iGLDisplayListIndexRemote=gl.glGenLists(1);
  iGLDisplayListToCall=iGLDisplayListIndexRemote;
  init(gl);
}
Program: 58978
Project: 58978
Buggy source:
/** 
 * @see org.caleydo.core.view.opengl.canvas.pathway.PathwayRenderStyle#neighborhoodNodeColorArraysize
 * @see org.caleydo.core.view.opengl.canvas.pathway.PathwayRenderStyle#highlightedNodeColor
 * @param depth [0..1.. (neighborhoodNodeColorArraysize-1) ] ; if depth ==0highlightedNodeColor is returened
 * @return
 */
public float[] getNeighborhoodNodeColorByDepth(final int depth){
  if (depth >= neighborhoodNodeColorArraysize) {
    throw new IllegalStateException("String_Node_Str" + depth + "String_Node_Str");
  }
  return this.neighborhoodNodeColorArray[depth];
}

Fixed version (ground truth):
/** 
 * @see org.caleydo.core.view.opengl.canvas.pathway.PathwayRenderStyle#neighborhoodNodeColorArraysize
 * @see org.caleydo.core.view.opengl.canvas.pathway.PathwayRenderStyle#highlightedNodeColor
 * @param depth [0..1.. (neighborhoodNodeColorArraysize-1) ] ; if depth ==0highlightedNodeColor is returned
 * @return
 */
public float[] getNeighborhoodNodeColorByDepth(final int depth){
  if (depth >= neighborhoodNodeColorArraysize) {
    throw new IllegalStateException("String_Node_Str" + depth + "String_Node_Str");
  }
  return this.neighborhoodNodeColorArray[depth];
}
Program: 58980
Project: 58980
Buggy source:
@Override public void init(GL gl){
  bRenderOnlyContext=false;
  createHeatMap();
  glHeatMapView.initRemote(gl,getID(),pickingTriggerMouseAdapter,null);
  iconTextureManager=new GLIconTextureManager();
  initData();
  colorMappingBar.setHeight(renderStyle.getColorMappingBarHeight());
  colorMappingBar.setWidth(renderStyle.getColorMappingBarWidth());
  if (set == null)   return;
  initTextures(gl);
  initPosCursor();
}

Fixed version (ground truth):
@Override public void init(GL gl){
  bRenderOnlyContext=false;
  createHeatMap();
  glHeatMapView.initRemote(gl,getID(),pickingTriggerMouseAdapter,null);
  iconTextureManager=new GLIconTextureManager();
  initData();
  if (set == null)   return;
  initTextures(gl);
  initPosCursor();
}
Program: 58981
Project: 58981
Buggy source:
private void buildDisplayList(final GL gl,int iGLDisplayListIndex){
  if (bHasFrustumChanged) {
    bHasFrustumChanged=false;
  }
  gl.glNewList(iGLDisplayListIndex,GL.GL_COMPILE);
  if (contentSelectionManager.getNumberOfElements() == 0) {
    renderSymbol(gl);
  }
 else {
    handleTexturePicking(gl);
    gl.glMatrixMode(GL.GL_MODELVIEW);
    gl.glLoadIdentity();
    viewFrustum.setTop(viewFrustum.getTop() - 0.2f);
    gl.glTranslatef(0,0.1f,0);
    renderOverviewBar(gl);
    renderMarkerOverviewBar(gl);
    renderSelectedElementsOverviewBar(gl);
    gl.glTranslatef(GAP_LEVEL1_2,0,0);
    if (bIsHeatmapInFocus) {
      fAnimationScale=0.2f;
    }
 else {
      fAnimationScale=1.0f;
    }
    gl.glScalef(fAnimationScale,1,1);
    renderTextureHeatMap(gl);
    renderMarkerTexture(gl);
    renderSelectedElementsTexture(gl);
    renderCursor(gl);
    viewFrustum.setTop(viewFrustum.getTop() + 0.2f);
    gl.glTranslatef(0,-0.1f,0);
    gl.glScalef(1 / fAnimationScale,1,1);
    gl.glTranslatef(-GAP_LEVEL1_2,0,0);
    gl.glDisable(GL.GL_STENCIL_TEST);
  }
  gl.glEndList();
}

Fixed version (ground truth):
private void buildDisplayList(final GL gl,int iGLDisplayListIndex){
  if (bHasFrustumChanged) {
    glHeatMapView.setDisplayListDirty();
    bHasFrustumChanged=false;
  }
  gl.glNewList(iGLDisplayListIndex,GL.GL_COMPILE);
  if (contentSelectionManager.getNumberOfElements() == 0) {
    renderSymbol(gl);
  }
 else {
    handleTexturePicking(gl);
    gl.glMatrixMode(GL.GL_MODELVIEW);
    gl.glLoadIdentity();
    viewFrustum.setTop(viewFrustum.getTop() - 0.2f);
    gl.glTranslatef(0,0.1f,0);
    renderOverviewBar(gl);
    renderMarkerOverviewBar(gl);
    renderSelectedElementsOverviewBar(gl);
    gl.glTranslatef(GAP_LEVEL1_2,0,0);
    if (bIsHeatmapInFocus) {
      fAnimationScale=0.2f;
    }
 else {
      fAnimationScale=1.0f;
    }
    gl.glScalef(fAnimationScale,1,1);
    renderTextureHeatMap(gl);
    renderMarkerTexture(gl);
    renderSelectedElementsTexture(gl);
    gl.glScalef(1 / fAnimationScale,1,1);
    renderCursor(gl);
    viewFrustum.setTop(viewFrustum.getTop() + 0.2f);
    gl.glTranslatef(0,-0.1f,0);
    gl.glTranslatef(-GAP_LEVEL1_2,0,0);
    gl.glDisable(GL.GL_STENCIL_TEST);
  }
  gl.glEndList();
}
Program: 58982
Project: 58982
Buggy source:
/** 
 * Constructor.
 * @param setType
 * @param iGLCanvasID
 * @param sLabel
 * @param viewFrustum
 */
public GLHierarchicalHeatMap(ESetType setType,final int iGLCanvasID,final String sLabel,final IViewFrustum viewFrustum){
  super(setType,iGLCanvasID,sLabel,viewFrustum);
  viewType=EManagedObjectType.GL_HIER_HEAT_MAP;
  ArrayList<ESelectionType> alSelectionTypes=new ArrayList<ESelectionType>();
  alSelectionTypes.add(ESelectionType.NORMAL);
  alSelectionTypes.add(ESelectionType.MOUSE_OVER);
  alSelectionTypes.add(ESelectionType.SELECTION);
  contentSelectionManager=new GenericSelectionManager.Builder(EIDType.EXPRESSION_INDEX).externalIDType(EIDType.DAVID).mappingType(EMappingType.EXPRESSION_INDEX_2_DAVID,EMappingType.DAVID_2_EXPRESSION_INDEX).build();
  storageSelectionManager=new GenericSelectionManager.Builder(EIDType.EXPERIMENT_INDEX).build();
  colorMapper=ColorMappingManager.get().getColorMapping(EColorMappingType.GENE_EXPRESSION);
  colorMappingBar=new GLColorMappingBarMiniView(viewFrustum);
  iNumberOfRandomElements=generalManager.getPreferenceStore().getInt("String_Node_Str");
  iSamplesPerTexture=generalManager.getPreferenceStore().getInt("String_Node_Str");
  iSamplesPerHeatmap=generalManager.getPreferenceStore().getInt("String_Node_Str");
  fAlXDistances=new ArrayList<Float>();
  generalManager.getEventPublisher().addSender(EMediatorType.HIERACHICAL_HEAT_MAP,this);
  generalManager.getEventPublisher().addReceiver(EMediatorType.HIERACHICAL_HEAT_MAP,this);
}

Fixed version (ground truth):
/** 
 * Constructor.
 * @param setType
 * @param iGLCanvasID
 * @param sLabel
 * @param viewFrustum
 */
public GLHierarchicalHeatMap(ESetType setType,final int iGLCanvasID,final String sLabel,final IViewFrustum viewFrustum){
  super(setType,iGLCanvasID,sLabel,viewFrustum);
  viewType=EManagedObjectType.GL_HIER_HEAT_MAP;
  ArrayList<ESelectionType> alSelectionTypes=new ArrayList<ESelectionType>();
  alSelectionTypes.add(ESelectionType.NORMAL);
  alSelectionTypes.add(ESelectionType.MOUSE_OVER);
  alSelectionTypes.add(ESelectionType.SELECTION);
  contentSelectionManager=new GenericSelectionManager.Builder(EIDType.EXPRESSION_INDEX).externalIDType(EIDType.DAVID).mappingType(EMappingType.EXPRESSION_INDEX_2_DAVID,EMappingType.DAVID_2_EXPRESSION_INDEX).build();
  storageSelectionManager=new GenericSelectionManager.Builder(EIDType.EXPERIMENT_INDEX).build();
  colorMapper=ColorMappingManager.get().getColorMapping(EColorMappingType.GENE_EXPRESSION);
  iNumberOfRandomElements=generalManager.getPreferenceStore().getInt("String_Node_Str");
  iSamplesPerTexture=generalManager.getPreferenceStore().getInt("String_Node_Str");
  iSamplesPerHeatmap=generalManager.getPreferenceStore().getInt("String_Node_Str");
  fAlXDistances=new ArrayList<Float>();
  generalManager.getEventPublisher().addSender(EMediatorType.HIERACHICAL_HEAT_MAP,this);
  generalManager.getEventPublisher().addReceiver(EMediatorType.HIERACHICAL_HEAT_MAP,this);
}
Program: 58983
Project: 58983
Buggy source:
@Override public synchronized void display(GL gl){
  if (bIsDraggingActive) {
    handleCursorDragging(gl);
    if (pickingTriggerMouseAdapter.wasMouseReleased())     bIsDraggingActive=false;
  }
  gl.glCallList(iGLDisplayListToCall);
  float fright=0.0f;
  float ftop=viewFrustum.getHeight() - 0.2f;
  float fleftOffset=0;
  if (bIsHeatmapInFocus) {
    fright=viewFrustum.getWidth() - 1.3f;
    fleftOffset=0.1f + GAP_LEVEL1_2 + (viewFrustum.getWidth() / 4f) * 0.2f + GAP_LEVEL2_3;
    gl.glTranslatef(fleftOffset,0,0);
  }
 else {
    fright=viewFrustum.getWidth() - 3.0f;
    fleftOffset=0.1f + GAP_LEVEL1_2 + viewFrustum.getWidth() / 4f + GAP_LEVEL2_3;
    gl.glTranslatef(fleftOffset,0,0);
  }
  gl.glPushName(pickingManager.getPickingID(iUniqueID,EPickingType.HIER_HEAT_MAP_VIEW_SELECTION,glHeatMapView.getID()));
  glHeatMapView.getViewFrustum().setTop(ftop);
  glHeatMapView.getViewFrustum().setRight(fright);
  glHeatMapView.displayRemote(gl);
  gl.glPopName();
  if (bIsHeatmapInFocus) {
    gl.glTranslatef(-1.0f,0,0);
  }
 else {
    gl.glTranslatef(-3.0f,0,0);
  }
}

Fixed version (ground truth):
@Override public synchronized void display(GL gl){
  if (bIsDraggingActive) {
    handleCursorDragging(gl);
    if (pickingTriggerMouseAdapter.wasMouseReleased())     bIsDraggingActive=false;
  }
  gl.glCallList(iGLDisplayListToCall);
  float fright=0.0f;
  float ftop=viewFrustum.getTop() - 0.2f;
  float fleftOffset=0;
  if (bIsHeatmapInFocus) {
    fright=viewFrustum.getWidth() - 1.3f;
    fleftOffset=0.1f + GAP_LEVEL1_2 + (viewFrustum.getWidth() / 4f) * 0.2f + GAP_LEVEL2_3;
    gl.glTranslatef(fleftOffset,0,0);
  }
 else {
    fright=viewFrustum.getWidth() - 3.0f;
    fleftOffset=0.1f + GAP_LEVEL1_2 + viewFrustum.getWidth() / 4f + GAP_LEVEL2_3;
    gl.glTranslatef(fleftOffset,0,0);
  }
  gl.glPushName(pickingManager.getPickingID(iUniqueID,EPickingType.HIER_HEAT_MAP_VIEW_SELECTION,glHeatMapView.getID()));
  glHeatMapView.getViewFrustum().setTop(ftop);
  glHeatMapView.getViewFrustum().setRight(fright);
  glHeatMapView.displayRemote(gl);
  gl.glPopName();
  if (bIsHeatmapInFocus) {
    gl.glTranslatef(-1.0f,0,0);
  }
 else {
    gl.glTranslatef(-3.0f,0,0);
  }
}
Program: 58986
Project: 58986
Buggy source:
@Override public void doCommand(){
  generalManager.getLogger().log(Level.INFO,"String_Node_Str" + sFileName + "String_Node_Str"+ sTokenPattern+ "String_Node_Str"+ iAlStorageIDs.toString());
  TabularAsciiDataReader loader=null;
  try {
    loader=new TabularAsciiDataReader(sFileName);
    loader.setTokenPattern(sTokenPattern);
    loader.setTargetStorages(iAlStorageIDs);
    loader.setStartParsingStopParsingAtLine(iStartParseFileAtLine,iStopParseFileAtLine);
    loader.loadData();
    commandManager.runDoCommand(this);
  }
 catch (  Exception e) {
    generalManager.getLogger().log(Level.SEVERE,"String_Node_Str" + sFileName);
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override public void doCommand(){
  generalManager.getLogger().log(Level.INFO,"String_Node_Str" + sFileName + "String_Node_Str"+ sTokenPattern+ "String_Node_Str"+ iAlStorageIDs.toString());
  TabularAsciiDataReader loader=null;
  try {
    loader=new TabularAsciiDataReader(sFileName);
    loader.setTokenPattern(sTokenPattern);
    loader.setTargetStorages(iAlStorageIDs);
    loader.setStartParsingStopParsingAtLine(iStartParseFileAtLine,iStopParseFileAtLine);
    if (!sTokenSeparator.isEmpty())     loader.setTokenSeperator(sTokenSeparator);
    loader.loadData();
    commandManager.runDoCommand(this);
  }
 catch (  Exception e) {
    generalManager.getLogger().log(Level.SEVERE,"String_Node_Str" + sFileName);
    e.printStackTrace();
  }
}
Program: 58988
Project: 58988
Buggy source:
/** 
 * Constructor.
 */
public FileLoadDataAction(final IWorkbenchWindow window){
  this((Composite)null);
  parentComposite=null;
  this.window=window;
}

Fixed version (ground truth):
/** 
 * Constructor.
 */
public FileLoadDataAction(final IWorkbenchWindow window){
  parentComposite=null;
  this.window=window;
}
Program: 58989
Project: 58989
Buggy source:
public Object execute(ExecutionEvent event) throws ExecutionException {
  FileLoadDataDialog loadDataFileDialog=new FileLoadDataDialog(HandlerUtil.getActiveShell(event));
  loadDataFileDialog.open();
  return null;
}

Fixed version (ground truth):
public Object execute(ExecutionEvent event) throws ExecutionException {
  FileLoadDataDialog loadDataFileDialog=new FileLoadDataDialog(new Shell());
  loadDataFileDialog.open();
  return null;
}
Program: 58990
Project: 58990
Buggy source:
@Override public void display(GL gl){
  if (grid_ == null)   return;
  if (bRedrawDisplayList_)   initDisplayLists(gl);
  organizeGlyphsForViewRole();
  gl.glPushMatrix();
  gl.glRotatef(45f,0,0,1);
  float scale=iViewScale;
  if (iViewRole == 2)   scale=1;
  gl.glScalef(scale,scale,scale);
  gl.glTranslatef(iCornerOffset,0,0f);
  if (mouseListener_ != null)   handleMouseListenerRubberband(gl,scale);
  if (displayList_ < 0 || bRedrawDisplayList_)   redrawView(gl);
  if (displayList_ >= 0)   gl.glCallList(displayList_);
  gl.glTranslatef(-7.0f,0.0f,0f);
  gl.glRotatef(-45f,0,0,1);
  gl.glPopMatrix();
  if (mouseListener_ != null)   mouseListener_.render(gl);
}

Fixed version (ground truth):
@Override public void display(GL gl){
  if (grid_ == null)   return;
  if (bRedrawDisplayList_)   initDisplayLists(gl);
  organizeGlyphsForViewRole();
  gl.glPushMatrix();
  gl.glRotatef(45f,0,0,1);
  float scale=iViewScale;
  if (iViewRole == 2)   scale=1;
  gl.glScalef(scale,scale,scale);
  gl.glTranslatef(iCornerOffset,0,0f);
  if (mouseListener_ != null)   handleMouseListenerRubberband(gl,scale);
  if (displayList_ < 0 || bRedrawDisplayList_)   redrawView(gl);
  int displayListGrid=grid_.getGridLayout(bIsLocal);
  if (displayListGrid >= 0)   gl.glCallList(displayListGrid);
  if (displayList_ >= 0)   gl.glCallList(displayList_);
  gl.glTranslatef(-7.0f,0.0f,0f);
  gl.glRotatef(-45f,0,0,1);
  gl.glPopMatrix();
  if (mouseListener_ != null)   mouseListener_.render(gl);
}
Program: 58991
Project: 58991
Buggy source:
public void buildGrids(GL gl){
  for (  GlyphGridPositionModel model : positionModels.values())   model.buildGrid(glyphMap_,gl);
  Vec4f gridColor_=renderStyle.getGridColor();
  if (GLGridList_ >= 0)   gl.glDeleteLists(GLGridList_,1);
  GLGridList_=gl.glGenLists(1);
  gl.glNewList(GLGridList_,GL.GL_COMPILE);
  gl.glLineWidth(1);
  gl.glTranslatef(0f,-100f,0f);
  for (int i=0; i < 200; ++i) {
    gl.glTranslatef(0f,1f,0f);
    gl.glBegin(GL.GL_LINES);
    gl.glColor4f(gridColor_.get(0),gridColor_.get(1),gridColor_.get(2),gridColor_.get(3));
    gl.glVertex3f(-100,0,0);
    gl.glVertex3f(100,0,0);
    gl.glEnd();
  }
  gl.glTranslatef(-100f,-100f,0f);
  for (int i=0; i < 200; ++i) {
    gl.glTranslatef(1f,0f,0f);
    gl.glBegin(GL.GL_LINES);
    gl.glColor4f(gridColor_.get(0),gridColor_.get(1),gridColor_.get(2),gridColor_.get(3));
    gl.glVertex3f(0,-100,0);
    gl.glVertex3f(0,100,0);
    gl.glEnd();
  }
  gl.glTranslatef(-100f,0f,0f);
  gl.glEndList();
}

Fixed version (ground truth):
public void buildGrids(GL gl){
  for (  GlyphGridPositionModel model : positionModels.values())   model.buildGrid(glyphMap_,gl);
}
Program: 58993
Project: 58993
Buggy source:
@Override public synchronized void display(final GL gl){
  clipToFrustum(gl);
  gl.glTranslatef(fXDefaultTranslation + fXTranslation,fYTranslation,0.0f);
  if (bIsDraggingActive) {
    handleGateDragging(gl);
    if (pickingTriggerMouseAdapter.wasMouseReleased())     bIsDraggingActive=false;
  }
  if (bIsAngularBrushingActive && iSelectedLineID != -1) {
    handleAngularBrushing(gl);
  }
  checkUnselection();
  gl.glCallList(iGLDisplayListToCall);
  gl.glTranslatef(-fXDefaultTranslation - fXTranslation,-fYTranslation,0.0f);
  gl.glDisable(GL.GL_STENCIL_TEST);
  if (bBusyModeChanged || bBusyMode)   updateBusyMode(gl);
}

Fixed version (ground truth):
@Override public synchronized void display(final GL gl){
  clipToFrustum(gl);
  gl.glTranslatef(fXDefaultTranslation + fXTranslation,fYTranslation,0.0f);
  if (bIsDraggingActive) {
    handleGateDragging(gl);
    if (pickingTriggerMouseAdapter.wasMouseReleased())     bIsDraggingActive=false;
  }
  checkUnselection();
  gl.glCallList(iGLDisplayListToCall);
  if (bIsAngularBrushingActive && iSelectedLineID != -1) {
    handleAngularBrushing(gl);
  }
  gl.glTranslatef(-fXDefaultTranslation - fXTranslation,-fYTranslation,0.0f);
  gl.glDisable(GL.GL_STENCIL_TEST);
  if (bBusyModeChanged || bBusyMode)   updateBusyMode(gl);
}
Program: 58995
Project: 58995
Buggy source:
protected void updateBusyMode(final GL gl){
  if (bBusyMode) {
    pickingManager.enablePicking(false);
    gl.glClearColor(0.4f,0.4f,0.4f,1f);
  }
 else {
    pickingManager.enablePicking(true);
    gl.glClearColor(0.7f,0.7f,0.7f,1f);
  }
  bBusyModeChanged=false;
}

Fixed version (ground truth):
protected void updateBusyMode(final GL gl){
  if (bBusyMode) {
    pickingManager.enablePicking(false);
    gl.glColor4f(1,1,1,0.3f);
    gl.glBegin(GL.GL_POLYGON);
    gl.glVertex3f(-9,-9,4.2f);
    gl.glVertex3f(-9,9,4.2f);
    gl.glVertex3f(9,9,4.2f);
    gl.glVertex3f(9,-9,4.2f);
    gl.glEnd();
    if (renderStyle == null || this instanceof GLRemoteRendering) {
      gl.glColor4f(0.5f,0.5f,0.5f,0.8f);
      gl.glBegin(GL.GL_POLYGON);
      gl.glVertex3f(0 - GeneralRenderStyle.LOADING_BOX_HALF_WIDTH,0 - GeneralRenderStyle.LOADING_BOX_HALF_HEIGHT,4.21f);
      gl.glVertex3f(0 - GeneralRenderStyle.LOADING_BOX_HALF_WIDTH,0 + GeneralRenderStyle.LOADING_BOX_HALF_HEIGHT,4.21f);
      gl.glVertex3f(0 + GeneralRenderStyle.LOADING_BOX_HALF_WIDTH,0 + GeneralRenderStyle.LOADING_BOX_HALF_HEIGHT,4.21f);
      gl.glVertex3f(0 + GeneralRenderStyle.LOADING_BOX_HALF_WIDTH,0 - GeneralRenderStyle.LOADING_BOX_HALF_HEIGHT,4.21f);
      gl.glEnd();
      TextRenderer textRenderer=new TextRenderer(new Font("String_Node_Str",Font.BOLD,128),false);
      textRenderer.setColor(1,1,1,1);
      textRenderer.begin3DRendering();
      textRenderer.draw3D("String_Node_Str",0 - GeneralRenderStyle.LOADING_BOX_HALF_WIDTH,0 - GeneralRenderStyle.LOADING_BOX_HALF_HEIGHT,4.22f,0.001f);
      textRenderer.end3DRendering();
    }
 else {
      gl.glColor4f(0.5f,0.5f,0.5f,0.8f);
      gl.glBegin(GL.GL_POLYGON);
      gl.glVertex3f(renderStyle.getXCenter() - GeneralRenderStyle.LOADING_BOX_HALF_WIDTH,renderStyle.getYCenter() - GeneralRenderStyle.LOADING_BOX_HALF_HEIGHT,4.21f);
      gl.glVertex3f(renderStyle.getXCenter() - GeneralRenderStyle.LOADING_BOX_HALF_WIDTH,renderStyle.getYCenter() + GeneralRenderStyle.LOADING_BOX_HALF_HEIGHT,4.21f);
      gl.glVertex3f(renderStyle.getXCenter() + GeneralRenderStyle.LOADING_BOX_HALF_WIDTH,renderStyle.getYCenter() + GeneralRenderStyle.LOADING_BOX_HALF_HEIGHT,4.21f);
      gl.glVertex3f(renderStyle.getXCenter() + GeneralRenderStyle.LOADING_BOX_HALF_WIDTH,renderStyle.getYCenter() - GeneralRenderStyle.LOADING_BOX_HALF_HEIGHT,4.21f);
      gl.glEnd();
      TextRenderer textRenderer=new TextRenderer(new Font("String_Node_Str",Font.BOLD,128),false);
      textRenderer.setColor(1,1,1,1);
      textRenderer.begin3DRendering();
      textRenderer.draw3D("String_Node_Str",renderStyle.getXCenter() - GeneralRenderStyle.LOADING_BOX_HALF_WIDTH,renderStyle.getYCenter() - GeneralRenderStyle.LOADING_BOX_HALF_HEIGHT,4.22f,0.001f);
      textRenderer.end3DRendering();
    }
  }
 else {
    pickingManager.enablePicking(true);
  }
}
Program: 58996
Project: 58996
Buggy source:
public void init(GLAutoDrawable drawable){
  GeneralManager.get().getLogger().log(Level.INFO,"String_Node_Str" + iGLCanvasID + "String_Node_Str"+ "String_Node_Str"+ drawable.getChosenGLCapabilities());
  GL gl=drawable.getGL();
  gl.setSwapInterval(0);
  fpsCounter=new FPSCounter(drawable,16);
  fpsCounter.setColor(0.5f,0.5f,0.5f,1);
  gl.glShadeModel(GL.GL_SMOOTH);
  gl.glClearColor(1.0f,1.0f,1.0f,1.0f);
  gl.glClearDepth(1.0f);
  gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT | GL.GL_STENCIL_BUFFER_BIT);
  gl.glEnable(GL.GL_DEPTH_TEST);
  gl.glDepthFunc(GL.GL_LEQUAL);
  gl.glEnable(GL.GL_BLEND);
  gl.glBlendFunc(GL.GL_SRC_ALPHA,GL.GL_ONE_MINUS_SRC_ALPHA);
  gl.glEnable(GL.GL_POINT_SMOOTH);
  gl.glHint(GL.GL_POINT_SMOOTH_HINT,GL.GL_NICEST);
  gl.glEnable(GL.GL_LINE_SMOOTH);
  gl.glHint(GL.GL_LINE_SMOOTH_HINT,GL.GL_NICEST);
  gl.glHint(GL.GL_PERSPECTIVE_CORRECTION_HINT,GL.GL_NICEST);
  gl.glEnable(GL.GL_COLOR_MATERIAL);
  gl.glColorMaterial(GL.GL_FRONT,GL.GL_DIFFUSE);
}

Fixed version (ground truth):
@Override public void init(GLAutoDrawable drawable){
  GeneralManager.get().getLogger().log(Level.INFO,"String_Node_Str" + iGLCanvasID + "String_Node_Str"+ "String_Node_Str"+ drawable.getChosenGLCapabilities());
  GL gl=drawable.getGL();
  gl.setSwapInterval(0);
  fpsCounter=new FPSCounter(drawable,16);
  fpsCounter.setColor(0.5f,0.5f,0.5f,1);
  gl.glShadeModel(GL.GL_SMOOTH);
  gl.glClearColor(1.0f,1.0f,1.0f,1.0f);
  gl.glClearDepth(1.0f);
  gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT | GL.GL_STENCIL_BUFFER_BIT);
  gl.glEnable(GL.GL_DEPTH_TEST);
  gl.glDepthFunc(GL.GL_LEQUAL);
  gl.glEnable(GL.GL_BLEND);
  gl.glBlendFunc(GL.GL_SRC_ALPHA,GL.GL_ONE_MINUS_SRC_ALPHA);
  gl.glEnable(GL.GL_POINT_SMOOTH);
  gl.glHint(GL.GL_POINT_SMOOTH_HINT,GL.GL_NICEST);
  gl.glEnable(GL.GL_LINE_SMOOTH);
  gl.glHint(GL.GL_LINE_SMOOTH_HINT,GL.GL_NICEST);
  gl.glHint(GL.GL_PERSPECTIVE_CORRECTION_HINT,GL.GL_NICEST);
  gl.glEnable(GL.GL_COLOR_MATERIAL);
  gl.glColorMaterial(GL.GL_FRONT,GL.GL_DIFFUSE);
}
Program: 58997
Project: 58997
Buggy source:
@Override public synchronized void display(final GL gl){
  time.update();
  layoutRenderStyle.initPoolLayer(iMouseOverViewID);
  doSlerpActions(gl);
  initializeNewPathways(gl);
  renderLayer(gl,underInteractionLayer);
  if (bucketMouseWheelListener == null || !bucketMouseWheelListener.isZoomedIn()) {
    renderPoolAndMemoLayerBackground(gl);
    renderLayer(gl,poolLayer);
    renderLayer(gl,transitionLayer);
    renderLayer(gl,stackLayer);
    renderLayer(gl,spawnLayer);
    gl.glPushName(pickingManager.getPickingID(iUniqueID,EPickingType.MEMO_PAD_SELECTION,MEMO_PAD_PICKING_ID));
    renderLayer(gl,memoLayer);
    gl.glPopName();
    glConnectionLineRenderer.render(gl);
  }
  if (layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.BUCKET)) {
    bucketMouseWheelListener.render();
  }
  colorMappingBarMiniView.render(gl,layoutRenderStyle.getColorBarXPos(),layoutRenderStyle.getColorBarYPos(),4);
  if (bBusyModeChanged)   updateBusyMode(gl);
}

Fixed version (ground truth):
@Override public synchronized void display(final GL gl){
  time.update();
  layoutRenderStyle.initPoolLayer(iMouseOverViewID);
  doSlerpActions(gl);
  initializeNewPathways(gl);
  renderLayer(gl,underInteractionLayer);
  if (bucketMouseWheelListener == null || !bucketMouseWheelListener.isZoomedIn()) {
    renderPoolAndMemoLayerBackground(gl);
    renderLayer(gl,poolLayer);
    renderLayer(gl,transitionLayer);
    renderLayer(gl,stackLayer);
    renderLayer(gl,spawnLayer);
    gl.glPushName(pickingManager.getPickingID(iUniqueID,EPickingType.MEMO_PAD_SELECTION,MEMO_PAD_PICKING_ID));
    renderLayer(gl,memoLayer);
    gl.glPopName();
    glConnectionLineRenderer.render(gl);
  }
  if (layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.BUCKET)) {
    bucketMouseWheelListener.render();
  }
  colorMappingBarMiniView.render(gl,layoutRenderStyle.getColorBarXPos(),layoutRenderStyle.getColorBarYPos(),4);
  if (bBusyMode || bBusyModeChanged)   updateBusyMode(gl);
}
Program: 58999
Project: 58999
Buggy source:
@Override public synchronized void display(GL gl){
  gl.glCallList(iGLDisplayListToCall);
  if (bBusyModeChanged)   updateBusyMode(gl);
}

Fixed version (ground truth):
@Override public synchronized void display(GL gl){
  gl.glCallList(iGLDisplayListToCall);
  if (bBusyModeChanged || bBusyMode)   updateBusyMode(gl);
}
Program: 59000
Project: 59000
Buggy source:
/** 
 * Constructor.
 */
public GLParallelCoordinates(final int iGLCanvasID,final String sLabel,final IViewFrustum viewFrustum){
  super(iGLCanvasID,sLabel,viewFrustum);
  viewType=EManagedObjectType.GL_PARALLEL_COORDINATES;
  renderStyle=new ParCoordsRenderStyle(viewFrustum);
  contentSelectionManager=new GenericSelectionManager.Builder(EIDType.EXPRESSION_INDEX).mappingType(EMappingType.EXPRESSION_INDEX_2_DAVID,EMappingType.DAVID_2_EXPRESSION_INDEX).externalIDType(EIDType.DAVID).build();
  storageSelectionManager=new GenericSelectionManager.Builder(EIDType.EXPRESSION_EXPERIMENT).build();
  alIsAngleBlocking=new ArrayList<ArrayList<Integer>>();
  alIsAngleBlocking.add(new ArrayList<Integer>());
  iNumberOfRandomElements=generalManager.getPreferenceStore().getInt("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Constructor.
 */
public GLParallelCoordinates(final int iGLCanvasID,final String sLabel,final IViewFrustum viewFrustum){
  super(iGLCanvasID,sLabel,viewFrustum);
  viewType=EManagedObjectType.GL_PARALLEL_COORDINATES;
  renderStyle=new ParCoordsRenderStyle(viewFrustum);
  super.renderStyle=this.renderStyle;
  contentSelectionManager=new GenericSelectionManager.Builder(EIDType.EXPRESSION_INDEX).mappingType(EMappingType.EXPRESSION_INDEX_2_DAVID,EMappingType.DAVID_2_EXPRESSION_INDEX).externalIDType(EIDType.DAVID).build();
  storageSelectionManager=new GenericSelectionManager.Builder(EIDType.EXPRESSION_EXPERIMENT).build();
  alIsAngleBlocking=new ArrayList<ArrayList<Integer>>();
  alIsAngleBlocking.add(new ArrayList<Integer>());
  iNumberOfRandomElements=generalManager.getPreferenceStore().getInt("String_Node_Str");
}
Program: 59001
Project: 59001
Buggy source:
@Override public synchronized void display(final GL gl){
  clipToFrustum(gl);
  gl.glTranslatef(fXDefaultTranslation + fXTranslation,fYTranslation,0.0f);
  if (bIsDraggingActive) {
    handleGateDragging(gl);
    if (pickingTriggerMouseAdapter.wasMouseReleased())     bIsDraggingActive=false;
  }
  if (bIsAngularBrushingActive && iSelectedLineID != -1) {
    handleAngularBrushing(gl);
  }
  checkUnselection();
  gl.glCallList(iGLDisplayListToCall);
  gl.glTranslatef(-fXDefaultTranslation - fXTranslation,-fYTranslation,0.0f);
  gl.glDisable(GL.GL_STENCIL_TEST);
  if (bBusyModeChanged)   updateBusyMode(gl);
}

Fixed version (ground truth):
@Override public synchronized void display(final GL gl){
  clipToFrustum(gl);
  gl.glTranslatef(fXDefaultTranslation + fXTranslation,fYTranslation,0.0f);
  if (bIsDraggingActive) {
    handleGateDragging(gl);
    if (pickingTriggerMouseAdapter.wasMouseReleased())     bIsDraggingActive=false;
  }
  if (bIsAngularBrushingActive && iSelectedLineID != -1) {
    handleAngularBrushing(gl);
  }
  checkUnselection();
  gl.glCallList(iGLDisplayListToCall);
  gl.glTranslatef(-fXDefaultTranslation - fXTranslation,-fYTranslation,0.0f);
  gl.glDisable(GL.GL_STENCIL_TEST);
  if (bBusyModeChanged || bBusyMode)   updateBusyMode(gl);
}
Program: 59002
Project: 59002
Buggy source:
/** 
 * Constructor.
 */
public GLColorMappingBarMiniView(IViewFrustum viewFrustum){
  super();
  textRenderer=new TextRenderer(new Font("String_Node_Str",Font.BOLD,16),false);
  renderStyle=new GeneralRenderStyle(viewFrustum);
}

Fixed version (ground truth):
/** 
 * Constructor.
 */
public GLColorMappingBarMiniView(IViewFrustum viewFrustum){
  super();
  textRenderer=new TextRenderer(new Font("String_Node_Str",Font.BOLD,18),false);
  renderStyle=new GeneralRenderStyle(viewFrustum);
}
Program: 59003
Project: 59003
Buggy source:
@Override protected void performDefaults(){
  iNumberOfColorPoints=getPreferenceStore().getDefaultInt(NUMBER_OF_COLOR_MARKER_POINTS);
  numColorPointsSpinner.setSelection(iNumberOfColorPoints);
  alColorMarkerPointSpinners.get(0).setSelection((int)(getPreferenceStore().getDefaultDouble(COLOR_MARKER_POINT_VALUE + "String_Node_Str") * 100));
  alColorMarkerPointSpinners.get(1).setSelection((int)(getPreferenceStore().getDefaultDouble(COLOR_MARKER_POINT_VALUE + "String_Node_Str") * 100));
  alColorMarkerPointSpinners.get(2).setSelection((int)(getPreferenceStore().getDefaultDouble(COLOR_MARKER_POINT_VALUE + "String_Node_Str") * 100));
  alColorFieldEditors.get(0).loadDefault();
  alColorFieldEditors.get(1).loadDefault();
  alColorFieldEditors.get(2).loadDefault();
}

Fixed version (ground truth):
@Override protected void performDefaults(){
  iNumberOfColorPoints=getPreferenceStore().getDefaultInt(NUMBER_OF_COLOR_MARKER_POINTS);
  numColorPointsSpinner.setSelection(iNumberOfColorPoints);
  alColorMarkerPointSpinners.get(0).setSelection((int)(getPreferenceStore().getDefaultDouble(COLOR_MARKER_POINT_VALUE + "String_Node_Str") * 100 * 10));
  alColorMarkerPointSpinners.get(1).setSelection((int)(getPreferenceStore().getDefaultDouble(COLOR_MARKER_POINT_VALUE + "String_Node_Str") * 100 * 10));
  alColorMarkerPointSpinners.get(2).setSelection((int)(getPreferenceStore().getDefaultDouble(COLOR_MARKER_POINT_VALUE + "String_Node_Str") * 100 * 10));
  alColorFieldEditors.get(0).loadDefault();
  alColorFieldEditors.get(1).loadDefault();
  alColorFieldEditors.get(2).loadDefault();
}
Program: 59004
Project: 59004
Buggy source:
/** 
 * Initializes the array lists that contain the data. Must be run at program start, every time you exchange axis and polylines and every time you change storages or selections 
 */
@Override protected void initLists(){
  if (bRenderOnlyContext)   iContentVAID=mapVAIDs.get(EStorageBasedVAType.EXTERNAL_SELECTION);
 else {
    if (!mapVAIDs.containsKey(EStorageBasedVAType.COMPLETE_SELECTION))     initCompleteList();
    iContentVAID=mapVAIDs.get(EStorageBasedVAType.COMPLETE_SELECTION);
  }
  iStorageVAID=mapVAIDs.get(EStorageBasedVAType.STORAGE_SELECTION);
  initContentVariables();
  contentSelectionManager.setVA(set.getVA(iContentVAID));
  storageSelectionManager.setVA(set.getVA(iStorageVAID));
}

Fixed version (ground truth):
/** 
 * Initializes the array lists that contain the data. Must be run at program start, every time you exchange axis and polylines and every time you change storages or selections 
 */
@Override protected void initLists(){
  if (bRenderOnlyContext)   iContentVAID=mapVAIDs.get(EStorageBasedVAType.EXTERNAL_SELECTION);
 else {
    if (!mapVAIDs.containsKey(EStorageBasedVAType.COMPLETE_SELECTION))     initCompleteList();
    iContentVAID=mapVAIDs.get(EStorageBasedVAType.COMPLETE_SELECTION);
  }
  iStorageVAID=mapVAIDs.get(EStorageBasedVAType.STORAGE_SELECTION);
  initContentVariables();
  contentSelectionManager.setVA(set.getVA(iContentVAID));
  storageSelectionManager.setVA(set.getVA(iStorageVAID));
  fArGateBottomHeight=null;
  fArGateTipHeight=null;
}