nus-yam/ex-repair huggingface dataset:
Program: 57871
Project: 57871
Buggy source:
/** 
 * @param columnHeaderStringConverter setter, see {@link #columnHeaderStringConverter}
 */
public void setColumnHeaderStringConverter(AStringConverter columnHeaderStringConverter){
  this.columnHeaderStringConverter=columnHeaderStringConverter;
}

Fixed version (ground truth):
/** 
 * @param columnHeaderStringConverter setter, see  {@link #columnHeaderStringConverter}
 */
public void setColumnHeaderStringConverter(AStringConverter columnHeaderStringConverter){
  this.columnHeaderStringConverter=columnHeaderStringConverter;
}
Program: 57872
Project: 57872
Buggy source:
@Override public String toString(){
  boolean hasGrouping=false;
  if (groupList != null)   hasGrouping=true;
  return "String_Node_Str" + getID() + "String_Node_Str"+ vaType+ "String_Node_Str"+ virtualArrayList.size()+ "String_Node_Str"+ hasGrouping;
}

Fixed version (ground truth):
@Override public String toString(){
  boolean hasGrouping=false;
  if (groupList != null)   hasGrouping=true;
  return "String_Node_Str" + getID() + "String_Node_Str"+ vaType+ "String_Node_Str"+ virtualArrayList.size()+ "String_Node_Str"+ hasGrouping+ virtualArrayList;
}
Program: 57874
Project: 57874
Buggy source:
@Override protected void initLists(){
  recordVA=dataDomain.getRecordVA(recordPerspectiveID);
  dimensionVA=dataDomain.getDimensionVA(dimensionPerspectiveID);
  setDisplayListDirty();
}

Fixed version (ground truth):
@Override protected void initLists(){
  recordVA=dataDomain.getRecordVA(recordPerspectiveID);
  dimensionVA=dataDomain.getDimensionVA(dimensionPerspectiveID);
  System.out.println(dataDomain.getRecordVA(recordPerspectiveID));
  System.out.println(table.getRecordPerspective(recordPerspectiveID));
  System.out.println(table.getColumnIDList());
  System.out.println(dataDomain.getTable());
  System.out.println(table);
  setDisplayListDirty();
}
Program: 57875
Project: 57875
Buggy source:
/** 
 * Create a new command assigned to a cmdType.
 * @param cmdType specify the ICommand to be created.
 * @return new ICommand
 */
public ICommand createCommandByType(final CommandType cmdType){
  ICommand createdCommand=null;
switch (cmdType) {
case CREATE_ID_CATEGORY:
{
      createdCommand=new CmdCreateIDCategory();
      break;
    }
case CREATE_ID_TYPE:
{
    createdCommand=new CmdCreateIDType();
    break;
  }
case LOAD_LOOKUP_TABLE_FILE:
{
  createdCommand=new CmdLoadFileLookupTable();
  break;
}
case LOAD_DATA_FILE:
{
createdCommand=new CmdLoadFileNDimensions();
break;
}
case CREATE_DIMENSION:
{
createdCommand=new CmdDataCreateDimension();
break;
}
case CREATE_DATA_TABLE:
{
createdCommand=new CmdDataCreateTable();
break;
}
default :
throw new IllegalStateException("String_Node_Str" + cmdType + "String_Node_Str");
}
return createdCommand;
}

Fixed version (ground truth):
/** 
 * Create a new command assigned to a cmdType.
 * @param cmdType specify the ICommand to be created.
 * @return new ICommand
 */
public ICommand createCommandByType(final CommandType cmdType){
  ICommand createdCommand=null;
switch (cmdType) {
case CREATE_ID_CATEGORY:
{
      createdCommand=new CmdCreateIDCategory();
      break;
    }
case CREATE_ID_TYPE:
{
    createdCommand=new CmdCreateIDType();
    break;
  }
case LOAD_LOOKUP_TABLE_FILE:
{
  createdCommand=new CmdLoadFileLookupTable();
  break;
}
case LOAD_DATA_FILE:
{
createdCommand=new CmdLoadFileNDimensions();
break;
}
case CREATE_COLUMN:
{
createdCommand=new CmdDataCreateColumn();
break;
}
case CREATE_DATA_TABLE:
{
createdCommand=new CmdDataCreateTable();
break;
}
default :
throw new IllegalStateException("String_Node_Str" + cmdType + "String_Node_Str");
}
return createdCommand;
}
Program: 57877
Project: 57877
Buggy source:
public LoadDataParameters(){
  this.fileName=null;
  this.inputPattern="String_Node_Str";
  this.dimensionLabels=new ArrayList<String>();
  this.delimiter="String_Node_Str";
  this.startParseFileAtLine=1;
  this.stopParseFileAtLine=-1;
  this.dataDomain=null;
}

Fixed version (ground truth):
public LoadDataParameters(){
  this.fileName=null;
  this.inputPattern="String_Node_Str";
  this.columnLabels=new ArrayList<String>();
  this.delimiter="String_Node_Str";
  this.startParseFileAtLine=1;
  this.stopParseFileAtLine=-1;
  this.dataDomain=null;
}
Program: 57878
Project: 57878
Buggy source:
@Override public void handleEvent(AEvent event){
  if (event instanceof StartClusteringEvent) {
    StartClusteringEvent startClusteringEvent=(StartClusteringEvent)event;
    if (handler.getDataDomainID() == startClusteringEvent.getDataDomainID())     handler.startClustering(startClusteringEvent.getClusterState());
  }
}

Fixed version (ground truth):
@Override public void handleEvent(AEvent event){
  if (event instanceof StartClusteringEvent) {
    StartClusteringEvent startClusteringEvent=(StartClusteringEvent)event;
    if (handler.getDataDomainID() == startClusteringEvent.getDataDomainID())     handler.startClustering(startClusteringEvent.getClusteConfiguration());
  }
}
Program: 57879
Project: 57879
Buggy source:
public AColumn createDimension(final ManagedObjectType type,int dimensionID){
switch (type) {
case DIMENSION_NUMERICAL:
    return new NumericalColumn(dimensionID);
case DIMENSION_NOMINAL:
  return new NominalColumn<String>(dimensionID);
default :
throw new IllegalStateException("String_Node_Str" + type.toString() + "String_Node_Str");
}
}

Fixed version (ground truth):
public AColumn createDimension(final ManagedObjectType type,int dimensionID){
switch (type) {
case COLUMN_NUMERICAL:
    return new NumericalColumn(dimensionID);
case COLUMN_NOMINAL:
  return new NominalColumn<String>(dimensionID);
default :
throw new IllegalStateException("String_Node_Str" + type.toString() + "String_Node_Str");
}
}
Program: 57880
Project: 57880
Buggy source:
public static void showMenu(final ContextMenuCreator menuCreator,final int retriesLeft){
  if (retriesLeft == 0)   return;
  if (System.getProperty("String_Node_Str").contains("String_Node_Str")) {
    final Shell activeShell=menuCreator.getParent().getShell();
    popupMenu(menuCreator,retriesLeft,activeShell);
  }
 else {
    final Shell activeShell=menuCreator.getParent().getShell();
    popupShell=new Shell(activeShell,SWT.NO_TRIM | SWT.NO_FOCUS | SWT.ON_TOP);
    Point l=menuCreator.getParent().getDisplay().getCursorLocation();
    l.x-=2;
    l.y-=2;
    popupShell.setLocation(l);
    popupShell.setSize(4,4);
    popupShell.open();
    popupMenu(menuCreator,retriesLeft,activeShell);
  }
}

Fixed version (ground truth):
public static void showMenu(final ContextMenuCreator menuCreator,final int retriesLeft){
  if (retriesLeft == 0)   return;
  if (System.getProperty("String_Node_Str").contains("String_Node_Str") || System.getProperty("String_Node_Str").contains("String_Node_Str")) {
    final Shell activeShell=popupShell=menuCreator.getParent().getShell();
    popupMenu(menuCreator,retriesLeft,activeShell);
  }
 else {
    final Shell activeShell=menuCreator.getParent().getShell();
    popupShell=new Shell(activeShell,SWT.NO_TRIM | SWT.NO_FOCUS | SWT.ON_TOP);
    Point l=menuCreator.getParent().getDisplay().getCursorLocation();
    l.x-=2;
    l.y-=2;
    popupShell.setLocation(l);
    popupShell.setSize(4,4);
    popupShell.open();
    popupMenu(menuCreator,retriesLeft,activeShell);
  }
}
Program: 57883
Project: 57883
Buggy source:
/** 
 * Returns an ArrayList with indexes of one group (genes/experiments) determined by iGroupIdx.
 * @param groupID index of group in groupList
 * @return ArrayList<Integer> containing all indexes of one group determined by iGroupIdx. Null will bereturned in case of groupList is null.
 */
public ArrayList<Integer> getIDsOfGroup(int groupID){
  if (groupList == null)   return null;
  ArrayList<Integer> alGeneIds=new ArrayList<Integer>();
  Group group=null;
  int iCounter=0;
  int offset=0;
  for (  Group igroup : groupList) {
    if (igroup.getID() < groupID) {
      offset+=igroup.getSize();
    }
 else     if (igroup.getGroupID() == groupID) {
      group=igroup;
      break;
    }
  }
  for (int i=offset; i < group.getSize() + offset; i++) {
    alGeneIds.add(iCounter,get(i));
    iCounter++;
  }
  return alGeneIds;
}

Fixed version (ground truth):
/** 
 * Returns an ArrayList with indexes of one group (genes/experiments) determined by iGroupIdx.
 * @param groupID index of group in groupList
 * @return ArrayList<Integer> containing all indexes of one group determined by iGroupIdx. Null will bereturned in case of groupList is null.
 */
public ArrayList<Integer> getIDsOfGroup(int groupID){
  if (groupList == null)   return null;
  ArrayList<Integer> alGeneIds=new ArrayList<Integer>();
  Group group=null;
  int iCounter=0;
  int offset=0;
  for (  Group igroup : groupList) {
    if (igroup.getGroupID() < groupID) {
      offset+=igroup.getSize();
    }
 else     if (igroup.getGroupID() == groupID) {
      group=igroup;
      break;
    }
  }
  for (int i=offset; i < group.getSize() + offset; i++) {
    alGeneIds.add(iCounter,get(i));
    iCounter++;
  }
  return alGeneIds;
}
Program: 57885
Project: 57885
Buggy source:
@Override public void render(GL2 gl){
  float yOffset=0.0f;
  float elementHeight=y / numberOfElements;
  float step=0;
  for (int i=0; i < numberOfTextures; i++) {
    step=elementHeight * numberSamples.get(numberOfTextures - i - 1);
    textures.get(numberOfTextures - i - 1).enable();
    textures.get(numberOfTextures - i - 1).bind();
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_S,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_T,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MAG_FILTER,GL2.GL_NEAREST);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MIN_FILTER,GL2.GL_NEAREST);
    TextureCoords texCoords=textures.get(numberOfTextures - i - 1).getImageTexCoords();
    float x1, x2=0;
    if (orientation) {
      x1=0;
      x2=x;
    }
 else {
      x1=x;
      x2=0;
    }
    gl.glBegin(GL2.GL_QUADS);
    gl.glColor4f(1f,1f,1f,1f);
    gl.glTexCoord2d(texCoords.left(),texCoords.top());
    gl.glVertex3f(x1,yOffset,0);
    gl.glTexCoord2d(texCoords.left(),texCoords.bottom());
    gl.glVertex3f(x1,yOffset + step,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.bottom());
    gl.glVertex3f(x2,yOffset + step,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.top());
    gl.glVertex3f(x2,yOffset,0);
    gl.glEnd();
    yOffset+=step;
    textures.get(numberOfTextures - i - 1).disable();
  }
}

Fixed version (ground truth):
@Override public void render(GL2 gl){
  float yOffset=0.0f;
  float elementHeight=y / numberOfElements;
  float step=0;
  for (int i=0; i < numberOfTextures; i++) {
    step=elementHeight * numberSamples.get(numberOfTextures - i - 1);
    textures.get(numberOfTextures - i - 1).enable();
    textures.get(numberOfTextures - i - 1).bind();
    gl.glTexEnvi(GL2.GL_TEXTURE_ENV,GL2.GL_TEXTURE_ENV_MODE,GL2.GL_DECAL);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_S,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_T,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MAG_FILTER,GL2.GL_NEAREST);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MIN_FILTER,GL2.GL_NEAREST);
    TextureCoords texCoords=textures.get(numberOfTextures - i - 1).getImageTexCoords();
    float x1, x2=0;
    if (orientation) {
      x1=0;
      x2=x;
    }
 else {
      x1=x;
      x2=0;
    }
    gl.glBegin(GL2.GL_QUADS);
    gl.glColor4f(1f,1f,1f,1f);
    gl.glTexCoord2d(texCoords.left(),texCoords.top());
    gl.glVertex3f(x1,yOffset,0);
    gl.glTexCoord2d(texCoords.left(),texCoords.bottom());
    gl.glVertex3f(x1,yOffset + step,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.bottom());
    gl.glVertex3f(x2,yOffset + step,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.top());
    gl.glVertex3f(x2,yOffset,0);
    gl.glEnd();
    yOffset+=step;
    textures.get(numberOfTextures - i - 1).disable();
  }
}
Program: 57887
Project: 57887
Buggy source:
private void renderTexture(GL2 gl,Texture texture,float x,float y,float width,float height){
  texture.enable();
  texture.bind();
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_S,GL2.GL_CLAMP);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_T,GL2.GL_CLAMP);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MAG_FILTER,GL2.GL_NEAREST);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MIN_FILTER,GL2.GL_NEAREST);
  TextureCoords texCoords=texture.getImageTexCoords();
  gl.glPushName(pickingManager.getPickingID(uncertaintyHeatMap.getID(),PickingType.HEAT_MAP_RECORD_GROUP,groupIndex));
  gl.glBegin(GL2.GL_QUADS);
  gl.glTexCoord2d(texCoords.left(),texCoords.top());
  gl.glVertex3f(x,y,0);
  gl.glTexCoord2d(texCoords.left(),texCoords.bottom());
  gl.glVertex3f(x,y + height,0);
  gl.glTexCoord2d(texCoords.right(),texCoords.bottom());
  gl.glVertex3f(x + width,y + height,0);
  gl.glTexCoord2d(texCoords.right(),texCoords.top());
  gl.glVertex3f(x + width,y,0);
  gl.glEnd();
  gl.glPopName();
  texture.disable();
}

Fixed version (ground truth):
private void renderTexture(GL2 gl,Texture texture,float x,float y,float width,float height){
  texture.enable();
  texture.bind();
  gl.glTexEnvi(GL2.GL_TEXTURE_ENV,GL2.GL_TEXTURE_ENV_MODE,GL2.GL_DECAL);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_S,GL2.GL_CLAMP);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_T,GL2.GL_CLAMP);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MAG_FILTER,GL2.GL_NEAREST);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MIN_FILTER,GL2.GL_NEAREST);
  TextureCoords texCoords=texture.getImageTexCoords();
  gl.glPushName(pickingManager.getPickingID(uncertaintyHeatMap.getID(),PickingType.HEAT_MAP_RECORD_GROUP,groupIndex));
  gl.glBegin(GL2.GL_QUADS);
  gl.glTexCoord2d(texCoords.left(),texCoords.top());
  gl.glVertex3f(x,y,0);
  gl.glTexCoord2d(texCoords.left(),texCoords.bottom());
  gl.glVertex3f(x,y + height,0);
  gl.glTexCoord2d(texCoords.right(),texCoords.bottom());
  gl.glVertex3f(x + width,y + height,0);
  gl.glTexCoord2d(texCoords.right(),texCoords.top());
  gl.glVertex3f(x + width,y,0);
  gl.glEnd();
  gl.glPopName();
  texture.disable();
}
Program: 57888
Project: 57888
Buggy source:
public UncertaintyDetailHeatMapTemplate(GLHeatMap heatMap,GLUncertaintyHeatMap glUncertaintyHeatMap){
  super(heatMap);
  barPlotRenderer=new BarPlotRenderer(heatMap,glUncertaintyHeatMap);
  barPlotRenderer.setContentSpacing(contentSpacing);
  minSelectedFieldHeight*=2;
}

Fixed version (ground truth):
public UncertaintyDetailHeatMapTemplate(GLHeatMap heatMap,GLUncertaintyHeatMap uncertaintyHeatMap){
  super(heatMap);
  this.uncertaintyHeatMap=uncertaintyHeatMap;
  if (uncertaintyHeatMap.isMaxUncertaintyCalculated()) {
    barPlotRenderer=new BarPlotRenderer(heatMap,uncertaintyHeatMap);
    barPlotRenderer.setContentSpacing(contentSpacing);
  }
  minSelectedFieldHeight*=2;
}
Program: 57892
Project: 57892
Buggy source:
public static void renderHeatmapTextures(GL2 gl,ArrayList<Texture> textures,float height,float width){
  int numElements=0;
  for (  Texture texture : textures) {
    numElements+=texture.getHeight();
  }
  float yOffset=0.0f;
  float elementHeight=height / numElements;
  float textureDrawingHeight=0;
  gl.glColor4f(1.0f,1.0f,0.0f,1.0f);
  for (int i=0; i < textures.size(); i++) {
    Texture texture=textures.get(textures.size() - i - 1);
    textureDrawingHeight=elementHeight * texture.getHeight();
    texture.enable();
    texture.bind();
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_S,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_T,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MAG_FILTER,GL2.GL_NEAREST);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MIN_FILTER,GL2.GL_NEAREST);
    TextureCoords texCoords=texture.getImageTexCoords();
    gl.glBegin(GL2.GL_QUADS);
    gl.glTexCoord2d(texCoords.left(),texCoords.top());
    gl.glVertex3f(0,yOffset,0);
    gl.glTexCoord2d(texCoords.left(),texCoords.bottom());
    gl.glVertex3f(0,yOffset + textureDrawingHeight,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.bottom());
    gl.glVertex3f(width,yOffset + textureDrawingHeight,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.top());
    gl.glVertex3f(width,yOffset,0);
    gl.glEnd();
    yOffset+=textureDrawingHeight;
    texture.disable();
  }
}

Fixed version (ground truth):
public static void renderHeatmapTextures(GL2 gl,ArrayList<Texture> textures,float height,float width){
  int numElements=0;
  for (  Texture texture : textures) {
    numElements+=texture.getHeight();
  }
  float yOffset=0.0f;
  float elementHeight=height / numElements;
  float textureDrawingHeight=0;
  gl.glColor4f(1.0f,1.0f,0.0f,1.0f);
  for (int i=0; i < textures.size(); i++) {
    Texture texture=textures.get(textures.size() - i - 1);
    textureDrawingHeight=elementHeight * texture.getHeight();
    texture.enable();
    texture.bind();
    gl.glTexEnvi(GL2.GL_TEXTURE_ENV,GL2.GL_TEXTURE_ENV_MODE,GL2.GL_DECAL);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_S,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_T,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MAG_FILTER,GL2.GL_NEAREST);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MIN_FILTER,GL2.GL_NEAREST);
    TextureCoords texCoords=texture.getImageTexCoords();
    gl.glBegin(GL2.GL_QUADS);
    gl.glTexCoord2d(texCoords.left(),texCoords.top());
    gl.glVertex3f(0,yOffset,0);
    gl.glTexCoord2d(texCoords.left(),texCoords.bottom());
    gl.glVertex3f(0,yOffset + textureDrawingHeight,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.bottom());
    gl.glVertex3f(width,yOffset + textureDrawingHeight,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.top());
    gl.glVertex3f(width,yOffset,0);
    gl.glEnd();
    yOffset+=textureDrawingHeight;
    texture.disable();
  }
}
Program: 57894
Project: 57894
Buggy source:
/** 
 * Renders a curve by interpolating the specified line points.
 * @param gl
 * @param linePoints Points that shall be interpolated with a curve. Note that the list must at least contain 4 points and the first and the last point of the list are not interpolated but used to direct the curve at their ends.
 */
public void renderInterpolatedCurve(GL2 gl,List<Point2D> linePoints){
  for (int i=0; i < linePoints.size() - 3; i++) {
    List<Vec3f> curvePoints=computeInterpolatedSpline(linePoints.get(i),linePoints.get(i + 1),linePoints.get(i + 2),linePoints.get(i + 3));
    gl.glBegin(GL2.GL_POINTS);
    for (int j=0; j < curvePoints.size(); j++) {
      gl.glVertex3f(curvePoints.get(j).x(),curvePoints.get(j).y(),curvePoints.get(j).z());
    }
    gl.glEnd();
  }
}

Fixed version (ground truth):
/** 
 * Renders a curve by interpolating the specified line points.
 * @param gl
 * @param linePoints Points that shall be interpolated with a curve. Note that the list must at least contain 4 points and the first and the last point of the list are not interpolated but used to direct the curve at their ends.
 */
public void renderInterpolatedCurve(GL2 gl,List<Point2D> linePoints){
  for (int i=0; i < linePoints.size() - 3; i++) {
    List<Vec3f> curvePoints=computeInterpolatedSpline(linePoints.get(i),linePoints.get(i + 1),linePoints.get(i + 2),linePoints.get(i + 3));
    gl.glBegin(GL2.GL_LINE_STRIP);
    for (int j=0; j < curvePoints.size(); j++) {
      gl.glVertex3f(curvePoints.get(j).x(),curvePoints.get(j).y(),curvePoints.get(j).z());
    }
    gl.glEnd();
  }
}
Program: 57895
Project: 57895
Buggy source:
@Override public void render(GL2 gl){
  float yOffset=0.0f;
  float elementHeight=y / numberOfElements;
  float step=0;
  for (int i=0; i < numberOfTextures; i++) {
    step=elementHeight * numberSamples.get(numberOfTextures - i - 1);
    textures.get(numberOfTextures - i - 1).enable();
    textures.get(numberOfTextures - i - 1).bind();
    gl.glTexEnvi(GL2.GL_TEXTURE_ENV,GL2.GL_TEXTURE_ENV_MODE,GL2.GL_DECAL);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_S,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_T,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MAG_FILTER,GL2.GL_NEAREST);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MIN_FILTER,GL2.GL_NEAREST);
    TextureCoords texCoords=textures.get(numberOfTextures - i - 1).getImageTexCoords();
    float x1, x2=0;
    if (orientation) {
      x1=0;
      x2=x;
    }
 else {
      x1=x;
      x2=0;
    }
    gl.glBegin(GL2.GL_QUADS);
    gl.glColor4f(1f,1f,1f,1f);
    gl.glTexCoord2d(texCoords.left(),texCoords.top());
    gl.glVertex3f(x1,yOffset,0);
    gl.glTexCoord2d(texCoords.left(),texCoords.bottom());
    gl.glVertex3f(x1,yOffset + step,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.bottom());
    gl.glVertex3f(x2,yOffset + step,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.top());
    gl.glVertex3f(x2,yOffset,0);
    gl.glEnd();
    yOffset+=step;
    textures.get(numberOfTextures - i - 1).disable();
  }
}

Fixed version (ground truth):
@Override public void render(GL2 gl){
  float yOffset=0.0f;
  float elementHeight=y / numberOfElements;
  float step=0;
  for (int i=0; i < numberOfTextures; i++) {
    step=elementHeight * numberSamples.get(numberOfTextures - i - 1);
    textures.get(numberOfTextures - i - 1).enable();
    textures.get(numberOfTextures - i - 1).bind();
    gl.glTexEnvi(GL2.GL_TEXTURE_ENV,GL2.GL_TEXTURE_ENV_MODE,GL2.GL_REPLACE);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_S,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_T,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MAG_FILTER,GL2.GL_NEAREST);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MIN_FILTER,GL2.GL_NEAREST);
    TextureCoords texCoords=textures.get(numberOfTextures - i - 1).getImageTexCoords();
    float x1, x2=0;
    if (orientation) {
      x1=0;
      x2=x;
    }
 else {
      x1=x;
      x2=0;
    }
    gl.glBegin(GL2.GL_QUADS);
    gl.glColor4f(1f,1f,1f,1f);
    gl.glTexCoord2d(texCoords.left(),texCoords.top());
    gl.glVertex3f(x1,yOffset,0);
    gl.glTexCoord2d(texCoords.left(),texCoords.bottom());
    gl.glVertex3f(x1,yOffset + step,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.bottom());
    gl.glVertex3f(x2,yOffset + step,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.top());
    gl.glVertex3f(x2,yOffset,0);
    gl.glEnd();
    yOffset+=step;
    textures.get(numberOfTextures - i - 1).disable();
  }
}
Program: 57896
Project: 57896
Buggy source:
private void renderTexture(GL2 gl,Texture texture,float x,float y,float width,float height){
  texture.enable();
  texture.bind();
  gl.glTexEnvi(GL2.GL_TEXTURE_ENV,GL2.GL_TEXTURE_ENV_MODE,GL2.GL_DECAL);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_S,GL2.GL_CLAMP);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_T,GL2.GL_CLAMP);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MAG_FILTER,GL2.GL_NEAREST);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MIN_FILTER,GL2.GL_NEAREST);
  TextureCoords texCoords=texture.getImageTexCoords();
  gl.glPushName(pickingManager.getPickingID(uncertaintyHeatMap.getID(),PickingType.HEAT_MAP_RECORD_GROUP,groupIndex));
  gl.glBegin(GL2.GL_QUADS);
  gl.glTexCoord2d(texCoords.left(),texCoords.top());
  gl.glVertex3f(x,y,0);
  gl.glTexCoord2d(texCoords.left(),texCoords.bottom());
  gl.glVertex3f(x,y + height,0);
  gl.glTexCoord2d(texCoords.right(),texCoords.bottom());
  gl.glVertex3f(x + width,y + height,0);
  gl.glTexCoord2d(texCoords.right(),texCoords.top());
  gl.glVertex3f(x + width,y,0);
  gl.glEnd();
  gl.glPopName();
  texture.disable();
}

Fixed version (ground truth):
private void renderTexture(GL2 gl,Texture texture,float x,float y,float width,float height){
  texture.enable();
  texture.bind();
  gl.glTexEnvi(GL2.GL_TEXTURE_ENV,GL2.GL_TEXTURE_ENV_MODE,GL2.GL_REPLACE);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_S,GL2.GL_CLAMP);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_T,GL2.GL_CLAMP);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MAG_FILTER,GL2.GL_NEAREST);
  gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MIN_FILTER,GL2.GL_NEAREST);
  TextureCoords texCoords=texture.getImageTexCoords();
  gl.glPushName(pickingManager.getPickingID(uncertaintyHeatMap.getID(),PickingType.HEAT_MAP_RECORD_GROUP,groupIndex));
  gl.glBegin(GL2.GL_QUADS);
  gl.glTexCoord2d(texCoords.left(),texCoords.top());
  gl.glVertex3f(x,y,0);
  gl.glTexCoord2d(texCoords.left(),texCoords.bottom());
  gl.glVertex3f(x,y + height,0);
  gl.glTexCoord2d(texCoords.right(),texCoords.bottom());
  gl.glVertex3f(x + width,y + height,0);
  gl.glTexCoord2d(texCoords.right(),texCoords.top());
  gl.glVertex3f(x + width,y,0);
  gl.glEnd();
  gl.glPopName();
  texture.disable();
}
Program: 57899
Project: 57899
Buggy source:
public static void renderHeatmapTextures(GL2 gl,ArrayList<Texture> textures,float height,float width){
  int numElements=0;
  for (  Texture texture : textures) {
    numElements+=texture.getHeight();
  }
  float yOffset=0.0f;
  float elementHeight=height / numElements;
  float textureDrawingHeight=0;
  gl.glColor4f(1.0f,1.0f,0.0f,1.0f);
  for (int i=0; i < textures.size(); i++) {
    Texture texture=textures.get(textures.size() - i - 1);
    textureDrawingHeight=elementHeight * texture.getHeight();
    texture.enable();
    texture.bind();
    gl.glTexEnvi(GL2.GL_TEXTURE_ENV,GL2.GL_TEXTURE_ENV_MODE,GL2.GL_DECAL);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_S,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_T,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MAG_FILTER,GL2.GL_NEAREST);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MIN_FILTER,GL2.GL_NEAREST);
    TextureCoords texCoords=texture.getImageTexCoords();
    gl.glBegin(GL2.GL_QUADS);
    gl.glTexCoord2d(texCoords.left(),texCoords.top());
    gl.glVertex3f(0,yOffset,0);
    gl.glTexCoord2d(texCoords.left(),texCoords.bottom());
    gl.glVertex3f(0,yOffset + textureDrawingHeight,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.bottom());
    gl.glVertex3f(width,yOffset + textureDrawingHeight,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.top());
    gl.glVertex3f(width,yOffset,0);
    gl.glEnd();
    yOffset+=textureDrawingHeight;
    texture.disable();
  }
}

Fixed version (ground truth):
public static void renderHeatmapTextures(GL2 gl,ArrayList<Texture> textures,float height,float width){
  int numElements=0;
  for (  Texture texture : textures) {
    numElements+=texture.getHeight();
  }
  float yOffset=0.0f;
  float elementHeight=height / numElements;
  float textureDrawingHeight=0;
  gl.glColor4f(1.0f,1.0f,0.0f,1.0f);
  for (int i=0; i < textures.size(); i++) {
    Texture texture=textures.get(textures.size() - i - 1);
    textureDrawingHeight=elementHeight * texture.getHeight();
    texture.enable();
    texture.bind();
    gl.glTexEnvi(GL2.GL_TEXTURE_ENV,GL2.GL_TEXTURE_ENV_MODE,GL2.GL_REPLACE);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_S,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_WRAP_T,GL2.GL_CLAMP);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MAG_FILTER,GL2.GL_NEAREST);
    gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MIN_FILTER,GL2.GL_NEAREST);
    TextureCoords texCoords=texture.getImageTexCoords();
    gl.glBegin(GL2.GL_QUADS);
    gl.glTexCoord2d(texCoords.left(),texCoords.top());
    gl.glVertex3f(0,yOffset,0);
    gl.glTexCoord2d(texCoords.left(),texCoords.bottom());
    gl.glVertex3f(0,yOffset + textureDrawingHeight,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.bottom());
    gl.glVertex3f(width,yOffset + textureDrawingHeight,0);
    gl.glTexCoord2d(texCoords.right(),texCoords.top());
    gl.glVertex3f(width,yOffset,0);
    gl.glEnd();
    yOffset+=textureDrawingHeight;
    texture.disable();
  }
}
Program: 57900
Project: 57900
Buggy source:
public static void copyFolder(File src,File dest) throws IOException {
  if (src.isDirectory()) {
    if (!dest.exists()) {
      dest.mkdir();
      System.out.println("String_Node_Str" + src + "String_Node_Str"+ dest);
    }
    String files[]=src.list();
    for (    String file : files) {
      File srcFile=new File(src,file);
      File destFile=new File(dest,file);
      copyFolder(srcFile,destFile);
    }
  }
 else {
    InputStream in=new FileInputStream(src);
    OutputStream out=new FileOutputStream(dest);
    byte[] buffer=new byte[1024];
    int length;
    while ((length=in.read(buffer)) > 0) {
      out.write(buffer,0,length);
    }
    in.close();
    out.close();
    System.out.println("String_Node_Str" + src + "String_Node_Str"+ dest);
  }
}

Fixed version (ground truth):
public static void copyFolder(File src,File dest) throws IOException {
  if (src.isDirectory()) {
    if (!dest.exists()) {
      dest.mkdir();
      System.out.println("String_Node_Str" + src + "String_Node_Str"+ dest);
    }
    String files[]=src.list();
    for (    String file : files) {
      File srcFile=new File(src,file);
      File destFile=new File(dest,file);
      copyFolder(srcFile,destFile);
    }
  }
 else {
    InputStream in=new FileInputStream(src);
    OutputStream out=new FileOutputStream(dest);
    byte[] buffer=new byte[1024];
    int length;
    while ((length=in.read(buffer)) > 0) {
      out.write(buffer,0,length);
    }
    in.close();
    out.close();
    Logger.log(new Status(IStatus.INFO,GeneralManager.PLUGIN_ID,"String_Node_Str" + src + "String_Node_Str"+ dest));
  }
}
Program: 57901
Project: 57901
Buggy source:
public void handleEvent(Event e){
  count[0]++;
  if (!menu.isVisible() && count[0] > MAX_ATTEMPTS) {
    Runnable r=new Runnable(){
      public void run(){
        System.err.println("String_Node_Str" + MAX_ATTEMPTS + "String_Node_Str");
        menu.setVisible(false);
        menu.dispose();
        popupShell.dispose();
        System.err.println("String_Node_Str");
        showMenu(menuCreator,retriesLeft - 1);
      }
    }
;
    display.asyncExec(r);
    return;
  }
  Runnable runnable=new Runnable(){
    public void run(){
      if (!menu.isVisible())       menu.setVisible(true);
 else {
      }
    }
  }
;
  display.asyncExec(runnable);
}

Fixed version (ground truth):
@Override public void handleEvent(Event event){
  popupShell.close();
  popupShell.dispose();
  menuCreator.getView().setLazyMode(false);
}
Program: 57903
Project: 57903
Buggy source:
public void open(Composite parent){
  this.parent=parent;
  final ContextMenuCreator menuCreator=this;
  Runnable runnable=new Runnable(){
    public void run(){
      AWTBridgePopupFix.showMenu(menuCreator);
    }
  }
;
  parent.getDisplay().asyncExec(runnable);
}

Fixed version (ground truth):
public void open(AGLView view){
  if (view.isRenderedRemote())   this.view=(AGLView)view.getRemoteRenderingGLView();
 else   this.view=view;
  this.parent=view.getParentComposite();
  final ContextMenuCreator menuCreator=this;
  Runnable runnable=new Runnable(){
    public void run(){
      AWTBridgePopupFix.showMenu(menuCreator);
    }
  }
;
  parent.getDisplay().asyncExec(runnable);
}
Program: 57904
Project: 57904
Buggy source:
/** 
 * The variaton of   {@link #getDetailedInfo()} which must be called locally. This takes care of integratingpossible information from a remote rendering view.
 * @return the info string
 */
protected String getDetailInfoLocal(){
  if (isRenderedRemote())   return (((AGLView)getRemoteRenderingGLCanvas()).getDetailedInfo());
 else   return getDetailedInfo();
}

Fixed version (ground truth):
/** 
 * The variaton of   {@link #getDetailedInfo()} which must be called locally. This takes care of integratingpossible information from a remote rendering view.
 * @return the info string
 */
protected String getDetailInfoLocal(){
  if (isRenderedRemote())   return (((AGLView)getRemoteRenderingGLView()).getDetailedInfo());
 else   return getDetailedInfo();
}
Program: 57905
Project: 57905
Buggy source:
/** 
 * The variaton of   {@link #getShortInfo()} which must be called locally. This takes care of integratingpossible information from a remote rendering view.
 * @return the info string
 */
protected String getShortInfoLocal(){
  if (isRenderedRemote())   return (((AGLView)getRemoteRenderingGLCanvas()).getShortInfo());
 else   return getShortInfo();
}

Fixed version (ground truth):
/** 
 * The variaton of   {@link #getShortInfo()} which must be called locally. This takes care of integratingpossible information from a remote rendering view.
 * @return the info string
 */
protected String getShortInfoLocal(){
  if (isRenderedRemote())   return (((AGLView)getRemoteRenderingGLView()).getShortInfo());
 else   return getShortInfo();
}
Program: 57906
Project: 57906
Buggy source:
public final GLCanvas getParentGLCanvas(){
  if (this.isRenderedRemote())   return getRemoteRenderingGLCanvas().getParentGLCanvas();
  return parentGLCanvas;
}

Fixed version (ground truth):
public final GLCanvas getParentGLCanvas(){
  if (this.isRenderedRemote())   return getRemoteRenderingGLView().getParentGLCanvas();
  return parentGLCanvas;
}
Program: 57907
Project: 57907
Buggy source:
/** 
 * This class uses the pickingManager to check if any events have occurred it calls the abstract handleEvents method where the events should be handled
 * @param gl
 */
protected final void checkForHits(final GL2 gl){
  Set<String> hitTypes=pickingManager.getHitTypes(uniqueID);
  if (hitTypes == null)   return;
  contextMenuCreator.clear();
  for (  String pickingType : hitTypes) {
    ArrayList<Pick> alHits=null;
    alHits=pickingManager.getHits(uniqueID,pickingType);
    if (alHits != null && alHits.size() != 0) {
      for (int iCount=0; iCount < alHits.size(); iCount++) {
        Pick tempPick=alHits.get(iCount);
        int externalID=tempPick.getID();
        if (externalID == -1) {
          continue;
        }
        PickingMode ePickingMode=tempPick.getPickingMode();
        handlePicking(pickingType,ePickingMode,externalID,tempPick);
        try {
          handlePickingEvents(PickingType.valueOf(pickingType),ePickingMode,externalID,tempPick);
        }
 catch (        Exception e) {
          System.out.println("String_Node_Str" + e.toString());
        }
        pickingManager.flushHits(uniqueID,pickingType);
      }
    }
  }
  if (contextMenuCreator.hasMenuItems())   contextMenuCreator.open(parentComposite);
}

Fixed version (ground truth):
/** 
 * This class uses the pickingManager to check if any events have occurred it calls the abstract handleEvents method where the events should be handled
 * @param gl
 */
protected final void checkForHits(final GL2 gl){
  Set<String> hitTypes=pickingManager.getHitTypes(uniqueID);
  if (hitTypes == null)   return;
  contextMenuCreator.clear();
  for (  String pickingType : hitTypes) {
    ArrayList<Pick> alHits=null;
    alHits=pickingManager.getHits(uniqueID,pickingType);
    if (alHits != null && alHits.size() != 0) {
      for (int iCount=0; iCount < alHits.size(); iCount++) {
        Pick tempPick=alHits.get(iCount);
        int externalID=tempPick.getID();
        if (externalID == -1) {
          continue;
        }
        PickingMode ePickingMode=tempPick.getPickingMode();
        handlePicking(pickingType,ePickingMode,externalID,tempPick);
        try {
          handlePickingEvents(PickingType.valueOf(pickingType),ePickingMode,externalID,tempPick);
        }
 catch (        Exception e) {
          System.out.println("String_Node_Str" + e.toString());
        }
        pickingManager.flushHits(uniqueID,pickingType);
      }
    }
  }
  if (contextMenuCreator.hasMenuItems())   contextMenuCreator.open(this);
}
Program: 57908
Project: 57908
Buggy source:
@Override public String toString(){
  return "String_Node_Str" + isRenderedRemote() + "String_Node_Str"+ recordVA.size()+ "String_Node_Str"+ dimensionVA.size()+ "String_Node_Str"+ recordVAType+ "String_Node_Str"+ getRemoteRenderingGLCanvas();
}

Fixed version (ground truth):
@Override public String toString(){
  return "String_Node_Str" + isRenderedRemote() + "String_Node_Str"+ recordVA.size()+ "String_Node_Str"+ dimensionVA.size()+ "String_Node_Str"+ recordVAType+ "String_Node_Str"+ getRemoteRenderingGLView();
}
Program: 57909
Project: 57909
Buggy source:
@Override public void handleRadialMenuSelection(int externalId,int selection){
  ignoredFilter=-1;
  if (externalId >= filterList.size() || externalId < 0)   return;
  FilterItem<?> filter=filterList.get(externalId);
switch (selection) {
case 0:
    filter.triggerRemove();
  selectionManager.removeFromType(SelectionType.SELECTION,externalId);
break;
case 1:
try {
filter.showDetailsDialog();
}
 catch (Exception e) {
System.out.println("String_Node_Str" + e);
}
break;
}
}

Fixed version (ground truth):
@Override public void handleRadialMenuSelection(int externalId,int selection){
  ignoredFilter=-1;
  if (externalId >= filterList.size() || externalId < 0)   return;
  FilterItem<?> filter=filterList.get(externalId);
switch (selection) {
case 0:
    filter.triggerRemove();
  selectionManager.removeFromType(SelectionType.SELECTION,externalId);
break;
case 1:
filter.showDetailsDialog();
break;
}
}
Program: 57910
Project: 57910
Buggy source:
/** 
 * Rebuild the filter pipeline
 */
public void updateFilterPipeline(){
  pipelineNeedsUpdate=false;
  Logger.log(new Status(IStatus.INFO,this.toString(),"String_Node_Str" + filterType));
  filterList.clear();
  int filterID=0;
  for (  Filter<?> filter : filterType == FilterType.RECORD ? dataDomain.getRecordFilterManager().getFilterPipe() : dataDomain.getDimensionFilterManager().getFilterPipe()) {
    FilterItem<?> filterItem=new FilterItem(filterID++,filter,pickingManager,uniqueID);
    if (filter instanceof RecordMetaOrFilter)     filterItem.setRepresentation(new FilterRepresentationMetaOrAdvanced(renderStyle,pickingManager,uniqueID));
 else     filterItem.setRepresentation(new FilterRepresentation(renderStyle,pickingManager,uniqueID));
    filterList.add(filterItem);
  }
  VirtualArray<?,?,?> currentVA=filterType == FilterType.RECORD ? dataDomain.getRecordFilterManager().getBaseVA().clone() : dataDomain.getDimensionFilterManager().getBaseVA().clone();
  for (  FilterItem<?> filter : filterList) {
    filter.setInput(currentVA);
    currentVA=filter.getOutput().clone();
  }
  updateFilterSize();
}

Fixed version (ground truth):
/** 
 * Rebuild the filter pipeline
 */
public void updateFilterPipeline(){
  pipelineNeedsUpdate=false;
  filterList.clear();
  int filterID=0;
  for (  Filter<?> filter : filterType == FilterType.RECORD ? dataDomain.getRecordFilterManager().getFilterPipe() : dataDomain.getDimensionFilterManager().getFilterPipe()) {
    FilterItem<?> filterItem=new FilterItem(filterID++,filter,pickingManager,uniqueID);
    if (filter instanceof RecordMetaOrFilter)     filterItem.setRepresentation(new FilterRepresentationMetaOrAdvanced(renderStyle,pickingManager,uniqueID));
 else     filterItem.setRepresentation(new FilterRepresentation(renderStyle,pickingManager,uniqueID));
    filterList.add(filterItem);
  }
  VirtualArray<?,?,?> currentVA=filterType == FilterType.RECORD ? dataDomain.getRecordFilterManager().getBaseVA().clone() : dataDomain.getDimensionFilterManager().getBaseVA().clone();
  for (  FilterItem<?> filter : filterList) {
    filter.setInput(currentVA);
    currentVA=filter.getOutput().clone();
  }
  updateFilterSize();
}
Program: 57911
Project: 57911
Buggy source:
@Override public String toString(){
  if (tree == null)   return new String("String_Node_Str");
  return "String_Node_Str" + ((bRenderContentTree) ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str"+ isRenderedRemote()+ "String_Node_Str"+ rootNode.getNrLeaves()+ ((bRenderContentTree) ? "String_Node_Str" : "String_Node_Str")+ "String_Node_Str"+ getRemoteRenderingGLCanvas();
}

Fixed version (ground truth):
@Override public String toString(){
  if (tree == null)   return new String("String_Node_Str");
  return "String_Node_Str" + ((bRenderContentTree) ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str"+ isRenderedRemote()+ "String_Node_Str"+ rootNode.getNrLeaves()+ ((bRenderContentTree) ? "String_Node_Str" : "String_Node_Str")+ "String_Node_Str"+ getRemoteRenderingGLView();
}
Program: 57912
Project: 57912
Buggy source:
@Override protected void initLists(){
  if (recordVAType.equals(CONTENT_EMBEDDED_VA)) {
    table.setRecordVA(recordVAType,new RecordVirtualArray(recordVAType));
  }
 else {
    if (bRenderOnlyContext)     recordVAType=DataTable.RECORD_CONTEXT;
 else     recordVAType=DataTable.RECORD;
  }
  if (recordVA == null)   recordVA=table.getRecordData(recordVAType).getRecordVA();
  if (dimensionVA == null)   dimensionVA=table.getDimensionData(dimensionVAType).getDimensionVA();
  recordSelectionManager.setVA(recordVA);
  dimensionSelectionManager.setVA(dimensionVA);
  renderStyle=new HeatMapRenderStyle(this,viewFrustum);
  if (getRemoteRenderingGLCanvas() instanceof GLHierarchicalHeatMap)   renderStyle.setUseFishEye(false);
}

Fixed version (ground truth):
@Override protected void initLists(){
  if (recordVAType.equals(CONTENT_EMBEDDED_VA)) {
    table.setRecordVA(recordVAType,new RecordVirtualArray(recordVAType));
  }
 else {
    if (bRenderOnlyContext)     recordVAType=DataTable.RECORD_CONTEXT;
 else     recordVAType=DataTable.RECORD;
  }
  if (recordVA == null)   recordVA=table.getRecordData(recordVAType).getRecordVA();
  if (dimensionVA == null)   dimensionVA=table.getDimensionData(dimensionVAType).getDimensionVA();
  recordSelectionManager.setVA(recordVA);
  dimensionSelectionManager.setVA(dimensionVA);
  renderStyle=new HeatMapRenderStyle(this,viewFrustum);
  if (getRemoteRenderingGLView() instanceof GLHierarchicalHeatMap)   renderStyle.setUseFishEye(false);
}
Program: 57913
Project: 57913
Buggy source:
@Override public String toString(){
  return "String_Node_Str" + isRenderedRemote() + "String_Node_Str"+ recordVA.size()+ "String_Node_Str"+ dimensionVA.size()+ "String_Node_Str"+ recordVAType+ "String_Node_Str"+ getRemoteRenderingGLCanvas();
}

Fixed version (ground truth):
@Override public String toString(){
  return "String_Node_Str" + isRenderedRemote() + "String_Node_Str"+ recordVA.size()+ "String_Node_Str"+ dimensionVA.size()+ "String_Node_Str"+ recordVAType+ "String_Node_Str"+ getRemoteRenderingGLView();
}
Program: 57914
Project: 57914
Buggy source:
@Override public void displayLocal(GL2 gl){
  if (glExperimentDendrogramView != null)   glExperimentDendrogramView.processEvents();
  if (glContentDendrogramView != null)   glContentDendrogramView.processEvents();
  if (glHeatMapView != null)   glHeatMapView.processEvents();
  if (table == null)   return;
  if (!lazyMode)   pickingManager.handlePicking(this,gl);
  if (bIsDisplayListDirtyLocal) {
    buildDisplayList(gl,iGLDisplayListIndexLocal);
    bIsDisplayListDirtyLocal=false;
  }
  iGLDisplayListToCall=iGLDisplayListIndexLocal;
  display(gl);
  if (!lazyMode)   checkForHits(gl);
  if (eBusyModeState != EBusyModeState.OFF) {
    renderBusyMode(gl);
  }
}

Fixed version (ground truth):
@Override public void displayLocal(GL2 gl){
  if (glExperimentDendrogramView != null)   glExperimentDendrogramView.processEvents();
  if (glContentDendrogramView != null)   glContentDendrogramView.processEvents();
  if (glHeatMapView != null)   glHeatMapView.processEvents();
  if (table == null)   return;
  if (!lazyMode) {
    pickingManager.handlePicking(this,gl);
  }
  if (bIsDisplayListDirtyLocal) {
    buildDisplayList(gl,iGLDisplayListIndexLocal);
    bIsDisplayListDirtyLocal=false;
  }
  iGLDisplayListToCall=iGLDisplayListIndexLocal;
  display(gl);
  if (!lazyMode)   checkForHits(gl);
  if (eBusyModeState != EBusyModeState.OFF) {
    renderBusyMode(gl);
  }
}
Program: 57915
Project: 57915
Buggy source:
@Override public String toString(){
  return "String_Node_Str" + isRenderedRemote() + "String_Node_Str"+ recordVA.size()+ "String_Node_Str"+ dimensionVA.size()+ "String_Node_Str"+ recordVAType+ "String_Node_Str"+ getRemoteRenderingGLCanvas();
}

Fixed version (ground truth):
@Override public String toString(){
  return "String_Node_Str" + isRenderedRemote() + "String_Node_Str"+ recordVA.size()+ "String_Node_Str"+ dimensionVA.size()+ "String_Node_Str"+ recordVAType+ "String_Node_Str"+ getRemoteRenderingGLView();
}
Program: 57916
Project: 57916
Buggy source:
@Override public String getDetailedInfo(){
  if (isRenderedRemote())   return (((AGLView)getRemoteRenderingGLCanvas()).getDetailedInfo());
  StringBuffer sInfoText=new StringBuffer();
  sInfoText.append("String_Node_Str" + pathway.getTitle() + "String_Node_Str"+ pathway.getType().getName());
  return sInfoText.toString();
}

Fixed version (ground truth):
@Override public String getDetailedInfo(){
  if (isRenderedRemote())   return (((AGLView)getRemoteRenderingGLView()).getDetailedInfo());
  StringBuffer sInfoText=new StringBuffer();
  sInfoText.append("String_Node_Str" + pathway.getTitle() + "String_Node_Str"+ pathway.getType().getName());
  return sInfoText.toString();
}
Program: 57917
Project: 57917
Buggy source:
@Override public String toString(){
  return "String_Node_Str" + isRenderedRemote() + "String_Node_Str"+ recordVA.size()+ "String_Node_Str"+ dimensionVA.size()+ "String_Node_Str"+ recordVAType+ "String_Node_Str"+ getRemoteRenderingGLCanvas();
}

Fixed version (ground truth):
@Override public String toString(){
  return "String_Node_Str" + isRenderedRemote() + "String_Node_Str"+ recordVA.size()+ "String_Node_Str"+ dimensionVA.size()+ "String_Node_Str"+ recordVAType+ "String_Node_Str"+ getRemoteRenderingGLView();
}
Program: 57919
Project: 57919
Buggy source:
@Override public void mousePressed(MouseEvent mouseEvent){
  mouseReleased=false;
  leftMouseButtonPressed=false;
  rightMouseButtonPressed=false;
  pickedPointDragStart.setLocation(mouseEvent.getPoint());
  prevMouseX=mouseEvent.getX();
  prevMouseY=mouseEvent.getY();
  if (mouseEvent.getClickCount() > 1) {
    mouseDoubleClick=true;
    return;
  }
  if (mouseEvent.getButton() == MouseEvent.BUTTON1) {
    leftMouseButtonPressed=true;
  }
}

Fixed version (ground truth):
@Override public void mousePressed(MouseEvent mouseEvent){
  mouseReleased=false;
  leftMouseButtonPressed=false;
  rightMouseButtonPressed=false;
  pickedPointDragStart.setLocation(mouseEvent.getPoint());
  prevMouseX=mouseEvent.getX();
  prevMouseY=mouseEvent.getY();
  if (mouseEvent.getClickCount() > 1) {
    mouseDoubleClick=true;
    return;
  }
  if (mouseEvent.getButton() == MouseEvent.BUTTON1)   leftMouseButtonPressed=true;
 else   if (mouseEvent.getButton() == MouseEvent.BUTTON3)   rightMouseButtonPressed=true;
}
Program: 57921
Project: 57921
Buggy source:
@Override public void mouseReleased(MouseEvent mouseEvent){
  bMouseDragged=false;
  if (mouseEvent.getButton() == MouseEvent.BUTTON1) {
    pickedPointCurrent=mouseEvent.getPoint();
  }
  bMouseReleased=true;
  bMouseDoubleClick=false;
  if ((mouseEvent.getModifiers() & InputEvent.BUTTON1_MASK) != 0) {
    bMouseLeft_StandbyZoom=false;
    bMouseMiddleButtonPressed=false;
    if (bMouseRight_StandbyRotate) {
      bRightMouseButtonPressed=true;
    }
  }
  if ((mouseEvent.getModifiers() & InputEvent.BUTTON3_MASK) != 0) {
    if (bMouseLeft_StandbyZoom) {
      bMouseMiddleButtonPressed=false;
    }
 else {
      bRightMouseButtonPressed=false;
      bMouseRight_StandbyRotate=false;
    }
  }
  if ((mouseEvent.getModifiers() & InputEvent.BUTTON2_MASK) != 0) {
    bMouseMiddleButtonPressed=false;
  }
}

Fixed version (ground truth):
@Override public void mouseReleased(MouseEvent mouseEvent){
  bMouseDragged=false;
  if (mouseEvent.getButton() == MouseEvent.BUTTON1) {
    pickedPointCurrent=mouseEvent.getPoint();
  }
  bMouseReleased=true;
  bMouseDoubleClick=false;
  if ((mouseEvent.getModifiers() & InputEvent.BUTTON2_MASK) != 0) {
    bMouseMiddleButtonPressed=false;
  }
}
Program: 57923
Project: 57923
Buggy source:
@Override public void postStartup(){
  super.postStartup();
  filterPreferencePages();
}

Fixed version (ground truth):
@Override public void postStartup(){
  super.postStartup();
  filterPreferencePages();
  autoSaver=new AutoSaver();
  GeneralManager.get().getViewManager().getDisplayLoopExecution().executeMultiple(autoSaver);
}