nus-yam/ex-repair huggingface dataset:
Program: 57924
Project: 57924
Buggy source:
@Override public void init(ApplicationInitData appInitData){
  if (loadSampleData) {
    appInitData.setLoadPathways(true);
    GeneralManager.get().getPreferenceStore().setValue(PreferenceConstants.LAST_CHOSEN_PATHWAY_DATA_SOURCES,"String_Node_Str");
    GeneralManager.get().getBasicInfo().setOrganism(Organism.HOMO_SAPIENS);
    FileOperations.deleteDirectory(GeneralManager.CALEYDO_HOME_PATH + "String_Node_Str");
  }
  this.dataDomain=(ATableBasedDataDomain)DataDomainManager.get().createDataDomain("String_Node_Str");
  super.init(appInitData);
}

Fixed version (ground truth):
@Override public void init(ApplicationInitData appInitData){
  if (loadSampleData) {
    appInitData.setLoadPathways(true);
    GeneralManager.get().getPreferenceStore().setValue(PreferenceConstants.LAST_CHOSEN_PATHWAY_DATA_SOURCES,"String_Node_Str");
    GeneralManager.get().getBasicInfo().setOrganism(Organism.HOMO_SAPIENS);
  }
  this.dataDomain=(ATableBasedDataDomain)DataDomainManager.get().createDataDomain("String_Node_Str");
  super.init(appInitData);
}
Program: 57925
Project: 57925
Buggy source:
public SetBasedSegmentData(ATableBasedDataDomain dataDomain,DataTable table,RecordVirtualArray recordVA,Group group,SetBasedDimensionGroupData dimensionGroupData){
  this.table=table;
  this.dataDomain=dataDomain;
  this.recordVA=recordVA;
  this.group=group;
  this.dimensionGroupData=dimensionGroupData;
}

Fixed version (ground truth):
public SetBasedSegmentData(ATableBasedDataDomain dataDomain,DataTable table,RecordVirtualArray recordVA,Group group,TableBasedDimensionGroupData dimensionGroupData){
  this.table=table;
  this.dataDomain=dataDomain;
  this.recordVA=recordVA;
  this.group=group;
  this.dimensionGroupData=dimensionGroupData;
}
Program: 57926
Project: 57926
Buggy source:
private void init(){
  dimensionGroups=new ArrayList<ADimensionGroupData>();
  assignIDCategories();
  if (recordIDCategory == null || dimensionIDCategory == null) {
    throw new IllegalStateException("String_Node_Str" + toString() + "String_Node_Str"+ recordIDCategory+ "String_Node_Str"+ dimensionIDCategory);
  }
  recordIDType=IDType.registerType("String_Node_Str" + dataDomainID + "String_Node_Str"+ hashCode(),recordIDCategory,DimensionType.INT);
  dimensionIDType=IDType.registerType("String_Node_Str" + dataDomainID + "String_Node_Str"+ hashCode(),dimensionIDCategory,DimensionType.INT);
  recordGroupIDType=IDType.registerType("String_Node_Str" + dataDomainID + "String_Node_Str"+ hashCode(),recordIDCategory,DimensionType.INT);
}

Fixed version (ground truth):
private void init(){
  assignIDCategories();
  if (recordIDCategory == null || dimensionIDCategory == null) {
    throw new IllegalStateException("String_Node_Str" + toString() + "String_Node_Str"+ recordIDCategory+ "String_Node_Str"+ dimensionIDCategory);
  }
  recordIDType=IDType.registerType("String_Node_Str" + dataDomainID + "String_Node_Str"+ hashCode(),recordIDCategory,DimensionType.INT);
  dimensionIDType=IDType.registerType("String_Node_Str" + dataDomainID + "String_Node_Str"+ hashCode(),dimensionIDCategory,DimensionType.INT);
  recordGroupIDType=IDType.registerType("String_Node_Str" + dataDomainID + "String_Node_Str"+ hashCode(),recordIDCategory,DimensionType.INT);
}
Program: 57927
Project: 57927
Buggy source:
private void createDimensionGroupsFromDimensionTree(ClusterNode parent){
  for (  ClusterNode child : parent.getChildren()) {
    if (child.hasChildren()) {
      dimensionGroups.add(new SetBasedDimensionGroupData(this,child.getSubDataTable()));
      createDimensionGroupsFromDimensionTree(child);
    }
  }
  DimensionGroupsChangedEvent event=new DimensionGroupsChangedEvent(this);
  event.setSender(this);
  GeneralManager.get().getEventPublisher().triggerEvent(event);
}

Fixed version (ground truth):
private void createDimensionGroupsFromDimensionTree(ClusterNode parent){
  for (  ClusterNode child : parent.getChildren()) {
    if (child.hasChildren()) {
      dimensionGroups.add(new TableBasedDimensionGroupData(this,child.getSubDataTable()));
      createDimensionGroupsFromDimensionTree(child);
    }
  }
  DimensionGroupsChangedEvent event=new DimensionGroupsChangedEvent(this);
  event.setSender(this);
  GeneralManager.get().getEventPublisher().triggerEvent(event);
}
Program: 57928
Project: 57928
Buggy source:
/** 
 * Method from http://eclipsenuggets.blogspot.com/2007/09/how-to-save-eclipse-ui-workbench-state_6644.html
 */
private File getWorkbenchStateFile(){
  IPath path=WorkbenchPlugin.getDefault().getDataLocation();
  if (path == null) {
    return null;
  }
  path=path.append("String_Node_Str");
  return path.toFile();
}

Fixed version (ground truth):
/** 
 * Method from http://eclipsenuggets.blogspot.com/2007/09/how-to-save-eclipse-ui-workbench-state_6644.html
 */
private File getWorkbenchStateFile(){
  IPath path=WorkbenchPlugin.getDefault().getDataLocation();
  if (path == null) {
    return null;
  }
  path=path.append(WORKBENCH_MEMENTO_FILE);
  return path.toFile();
}
Program: 57929
Project: 57929
Buggy source:
@Override public void postStartup(){
  super.postStartup();
  filterPreferencePages();
  autoSaver=new AutoSaver();
  GeneralManager.get().getViewManager().getDisplayLoopExecution().executeMultiple(autoSaver);
}

Fixed version (ground truth):
@Override public void postStartup(){
  super.postStartup();
  filterPreferencePages();
}
Program: 57930
Project: 57930
Buggy source:
private void setTableContent(String pathwayDatabase){
  List<PathwayGraph> pathways=pathwayMap.get(pathwayDatabase);
  if (pathways == null)   return;
  pathwayTable.removeAll();
  for (  PathwayGraph pathway : pathways) {
    TableItem item=new TableItem(pathwayTable,SWT.NONE);
    item.setText(0,pathway.getTitle());
    item.setText(1,pathway.getType().getName());
    item.setData(pathway);
  }
  pathwayTableSorter.sort(0,true);
  for (  TableColumn column : pathwayTable.getColumns()) {
    column.pack();
  }
  pathwayTable.pack();
}

Fixed version (ground truth):
private void setTableContent(String pathwayDatabase){
  List<PathwayGraph> pathways=pathwayMap.get(pathwayDatabase);
  if (pathways == null)   return;
  pathwayTable.removeAll();
  for (  PathwayGraph pathway : pathways) {
    TableItem item=new TableItem(pathwayTable,SWT.NONE);
    item.setText(0,pathway.getTitle());
    item.setText(1,pathway.getType().getName());
    item.setData(pathway);
  }
  pathwayTableSorter.sort(0,true);
  for (  TableColumn column : pathwayTable.getColumns()) {
    column.pack();
  }
  pathwayTable.pack();
  parent.layout();
}
Program: 57931
Project: 57931
Buggy source:
private void fillDataTables(DataTable newSet){
  if (dimensionIDs.isEmpty())   throw new IllegalStateException("String_Node_Str");
  DataTableUtils.setTables(newSet,dimensionIDs);
}

Fixed version (ground truth):
private void fillDataTables(DataTable newTable){
  if (dimensionIDs.isEmpty())   throw new IllegalStateException("String_Node_Str");
  DataTableUtils.setTables(newTable,dimensionIDs);
}
Program: 57933
Project: 57933
Buggy source:
@Override public void doCommand(){
  Logger.log(new Status(IStatus.INFO,GeneralManager.PLUGIN_ID,"String_Node_Str" + loadDataParameters.getFileName() + "String_Node_Str"+ loadDataParameters.getInputPattern()+ "String_Node_Str"+ dimensionIDs.toString()));
  TabularAsciiDataReader loader=new TabularAsciiDataReader(loadDataParameters.getFileName(),dataDomain);
  loader.setTokenPattern(loadDataParameters.getInputPattern());
  loader.setTargetDimensions(dimensionIDs);
  if (loadDataParameters.isUseExperimentClusterInfo())   loader.enableExperimentClusterInfo();
  loader.setStartParsingStopParsingAtLine(loadDataParameters.getStartParseFileAtLine(),loadDataParameters.getStopParseFileAtLine());
  if (loadDataParameters.getDelimiter() != null && !loadDataParameters.getDelimiter().isEmpty()) {
    loader.setTokenSeperator(loadDataParameters.getDelimiter());
  }
  bParsingOK=loader.loadData();
  dataDomain.setLoadDataParameters(loadDataParameters);
  dataDomain.updateSetInViews();
}

Fixed version (ground truth):
@Override public void doCommand(){
  Logger.log(new Status(IStatus.INFO,GeneralManager.PLUGIN_ID,"String_Node_Str" + loadDataParameters.getFileName() + "String_Node_Str"+ loadDataParameters.getInputPattern()+ "String_Node_Str"+ dimensionIDs.toString()));
  TabularAsciiDataReader loader=new TabularAsciiDataReader(loadDataParameters.getFileName(),dataDomain);
  loader.setTokenPattern(loadDataParameters.getInputPattern());
  loader.setTargetDimensions(dimensionIDs);
  if (loadDataParameters.isUseExperimentClusterInfo())   loader.enableExperimentClusterInfo();
  loader.setStartParsingStopParsingAtLine(loadDataParameters.getStartParseFileAtLine(),loadDataParameters.getStopParseFileAtLine());
  if (loadDataParameters.getDelimiter() != null && !loadDataParameters.getDelimiter().isEmpty()) {
    loader.setTokenSeperator(loadDataParameters.getDelimiter());
  }
  parsingOK=loader.loadData();
  dataDomain.updateSetInViews();
}
Program: 57934
Project: 57934
Buggy source:
public boolean isParsingOK(){
  return bParsingOK;
}

Fixed version (ground truth):
public boolean isParsingOK(){
  return parsingOK;
}
Program: 57936
Project: 57936
Buggy source:
public Integer getID(){
  return id;
}

Fixed version (ground truth):
public Integer getID(){
  if (id == null)   return 0;
  return id;
}
Program: 57937
Project: 57937
Buggy source:
/** 
 * Returns a list of children of parentNode. The returned list is sorted based on the compare method of the children.
 * @param parentNode the node of which the childs are requested
 * @return the sorted list of children
 */
public ArrayList<NodeType> getChildren(NodeType parentNode){
  Set<DefaultEdge> setEdges=null;
  try {
    setEdges=graph.outgoingEdgesOf(parentNode);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  ArrayList<NodeType> alNodes=new ArrayList<NodeType>();
  for (  DefaultEdge tempEdge : setEdges) {
    alNodes.add(graph.getEdgeTarget(tempEdge));
  }
  Collections.sort(alNodes);
  if (alNodes.isEmpty())   return null;
 else   return alNodes;
}

Fixed version (ground truth):
/** 
 * Returns a list of children of parentNode. The returned list is sorted based on the compare method of the children.
 * @param parentNode the node of which the children are requested
 * @return the sorted list of children
 */
public ArrayList<NodeType> getChildren(NodeType parentNode){
  Set<DefaultEdge> setEdges=null;
  try {
    setEdges=graph.outgoingEdgesOf(parentNode);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  ArrayList<NodeType> alNodes=new ArrayList<NodeType>();
  for (  DefaultEdge tempEdge : setEdges) {
    alNodes.add(graph.getEdgeTarget(tempEdge));
  }
  Collections.sort(alNodes);
  if (alNodes.isEmpty())   return null;
 else   return alNodes;
}
Program: 57938
Project: 57938
Buggy source:
public ClusterTree importDimensionTree(String fileName) throws JAXBException, FileNotFoundException {
  ClusterTree tree=importTree(fileName,dataDomain.getDimensionIDType());
  org.caleydo.core.data.collection.table.DataTable set=(org.caleydo.core.data.collection.table.DataTable)dataDomain.getTable();
  tree.createSubDataTables(set);
  return tree;
}

Fixed version (ground truth):
public ClusterTree importDimensionTree(String fileName) throws JAXBException, FileNotFoundException {
  ClusterTree tree=importTree(fileName,dataDomain.getDimensionIDType());
  org.caleydo.core.data.collection.table.DataTable table=(org.caleydo.core.data.collection.table.DataTable)dataDomain.getTable();
  tree.createSubDataTables(table);
  return tree;
}
Program: 57942
Project: 57942
Buggy source:
@Override public int getComparableValue(){
  return id;
}

Fixed version (ground truth):
@Override public int getComparableValue(){
  if (id == null)   return 0;
  return id;
}
Program: 57943
Project: 57943
Buggy source:
private Integer convertClinicalExperimentToGeneticExperiment(Integer clinicalContentIndex){
  DataTable clinicalSet=((ATableBasedDataDomain)DataDomainManager.get().getDataDomainByID(CLINICAL_DATADOMAIN_TYPE)).getTable();
  int dimensionID=clinicalSet.getDimensionData(DataTable.DIMENSION).getDimensionVA().get(1);
  NominalDimension clinicalDimension=(NominalDimension<String>)clinicalSet.get(dimensionID);
  DimensionVirtualArray origianlGeneticDimensionVA=table.getDimensionData(DataTable.DIMENSION).getDimensionVA();
  String label=(String)clinicalDimension.getRaw(clinicalContentIndex);
  label=label.replace("String_Node_Str","String_Node_Str");
  for (  Integer dimensionIndex : origianlGeneticDimensionVA) {
    if (label.equals(table.get(dimensionIndex).getLabel()))     return dimensionIndex;
  }
  return null;
}

Fixed version (ground truth):
private Integer convertClinicalExperimentToGeneticExperiment(Integer clinicalContentIndex){
  DataTable clinicalSet=((ATableBasedDataDomain)DataDomainManager.get().getDataDomainByType(CLINICAL_DATADOMAIN_TYPE)).getTable();
  int dimensionID=clinicalSet.getDimensionData(DataTable.DIMENSION).getDimensionVA().get(1);
  NominalDimension clinicalDimension=(NominalDimension<String>)clinicalSet.get(dimensionID);
  DimensionVirtualArray origianlGeneticDimensionVA=table.getDimensionData(DataTable.DIMENSION).getDimensionVA();
  String label=(String)clinicalDimension.getRaw(clinicalContentIndex);
  label=label.replace("String_Node_Str","String_Node_Str");
  for (  Integer dimensionIndex : origianlGeneticDimensionVA) {
    if (label.equals(table.get(dimensionIndex).getLabel()))     return dimensionIndex;
  }
  return null;
}
Program: 57944
Project: 57944
Buggy source:
public void initMultiLevelUncertainty(){
  float[] SNR=table.getUncertainty().getNormalizedUncertainty();
  aggregatedUncertainty=new double[SNR.length];
  multiLevelUncertainty.clear();
  double[] convertedSNR=new double[SNR.length];
  for (int index=0; index < SNR.length; index++) {
    convertedSNR[index]=(double)(SNR[index]);
  }
  for (int index=0; index < aggregatedUncertainty.length; index++) {
    aggregatedUncertainty[index]=1f;
  }
  multiLevelUncertainty.add(convertedSNR);
  Collection<double[]> statisticsUncertainties=this.table.getStatisticsResult().getAllFoldChangeUncertainties();
  multiLevelUncertainty.addAll(statisticsUncertainties);
  for (  Integer recordID : recordVA) {
    for (    double[] uncertaintyLevel : multiLevelUncertainty) {
      double uncertainty=uncertaintyLevel[recordID];
      if (uncertainty < aggregatedUncertainty[recordID])       aggregatedUncertainty[recordID]=uncertainty;
    }
  }
  table.getStatisticsResult().setAggregatedUncertainty(aggregatedUncertainty);
}

Fixed version (ground truth):
public void initMultiLevelUncertainty(){
  if (table.getUncertainty() == null)   return;
  float[] SNR=table.getUncertainty().getNormalizedUncertainty();
  aggregatedUncertainty=new double[SNR.length];
  multiLevelUncertainty.clear();
  double[] convertedSNR=new double[SNR.length];
  for (int index=0; index < SNR.length; index++) {
    convertedSNR[index]=(double)(SNR[index]);
  }
  for (int index=0; index < aggregatedUncertainty.length; index++) {
    aggregatedUncertainty[index]=1f;
  }
  multiLevelUncertainty.add(convertedSNR);
  Collection<double[]> statisticsUncertainties=this.table.getStatisticsResult().getAllFoldChangeUncertainties();
  multiLevelUncertainty.addAll(statisticsUncertainties);
  for (  Integer recordID : recordVA) {
    for (    double[] uncertaintyLevel : multiLevelUncertainty) {
      double uncertainty=uncertaintyLevel[recordID];
      if (uncertainty < aggregatedUncertainty[recordID])       aggregatedUncertainty[recordID]=uncertainty;
    }
  }
  table.getStatisticsResult().setAggregatedUncertainty(aggregatedUncertainty);
}
Program: 57946
Project: 57946
Buggy source:
@Override public void run(){
  toolBarView.removeAllViewSpecificToolBars();
}

Fixed version (ground truth):
@Override public void run(){
}
Program: 57947
Project: 57947
Buggy source:
/** 
 * Retrieves the singleton reference of this class. If no singleton exists yet, it will be created.
 * @return
 */
public static DisplayLoopExecution get(){
  if (displayLoopExecution == null) {
    displayLoopExecution=new DisplayLoopExecution();
  }
  return displayLoopExecution;
}

Fixed version (ground truth):
/** 
 * Retrieves the singleton reference of this class. If no singleton exists yet, it will be created.
 * @return
 */
public static DisplayLoopExecution get(){
  if (displayLoopExecution == null) {
    displayLoopExecution=new DisplayLoopExecution();
    GLCapabilities glCapabilities=new GLCapabilities(GLProfile.get(GLProfile.GL2));
    glCapabilities.setStencilBits(1);
    displayLoopExecution.displayLoopCanvas=new GLCanvas(glCapabilities);
    displayLoopExecution.displayLoopCanvas.addGLEventListener(displayLoopExecution);
    displayLoopExecution.displayLoopShell=new Shell(SWT.EMBEDDED | SWT.NO_TRIM | SWT.ON_TOP);
    displayLoopExecution.displayLoopShell.setSize(1,1);
    displayLoopExecution.displayLoopShell.open();
    Region region=new Region();
    displayLoopExecution.displayLoopShell.setRegion(region);
    Frame frame=SWT_AWT.new_Frame(displayLoopExecution.displayLoopShell);
    frame.add(displayLoopExecution.displayLoopCanvas);
  }
  return displayLoopExecution;
}
Program: 57948
Project: 57948
Buggy source:
public void init(){
  fpsAnimator=new FPSAnimator(60);
  displayLoopExecution=DisplayLoopExecution.get();
}

Fixed version (ground truth):
public void init(){
}
Program: 57949
Project: 57949
Buggy source:
public void registerGLCanvasToAnimator(final GLCanvas glCaleydoCanvas){
  fpsAnimator.add(glCaleydoCanvas);
}

Fixed version (ground truth):
public void registerGLCanvasToAnimator(final GLCanvas glCaleydoCanvas){
  if (fpsAnimator == null) {
    fpsAnimator=new FPSAnimator(60);
    displayLoopExecution=DisplayLoopExecution.get();
    fpsAnimator.add((GLAutoDrawable)displayLoopExecution.getDisplayLoopCanvas());
    displayLoopExecution.executeMultiple(connectedElementRepManager);
  }
  fpsAnimator.add(glCaleydoCanvas);
}
Program: 57950
Project: 57950
Buggy source:
/** 
 * Returns a float value from a storage of which the kind has to be specified Use iterator when you want to iterate over the whole field, it has better performance
 * @param storageKind Specify which kind of storage (eg: raw, normalized)
 * @param iIndex The index of the requested Element
 * @return The associated value
 */
public float getFloat(EDataRepresentation storageKind,int iIndex){
  if (!hashCContainers.containsKey(storageKind))   throw new IllegalArgumentException("String_Node_Str");
  if (!(hashCContainers.get(storageKind) instanceof FloatCContainer))   throw new IllegalArgumentException("String_Node_Str");
  FloatCContainer container=(FloatCContainer)hashCContainers.get(storageKind);
  return container.get(iIndex);
}

Fixed version (ground truth):
/** 
 * Returns a float value from a storage of which the kind has to be specified Use iterator when you want to iterate over the whole field, it has better performance
 * @param storageKind Specify which kind of storage (eg: raw, normalized)
 * @param iIndex The index of the requested Element
 * @return The associated value
 */
public float getFloat(EDataRepresentation storageKind,int iIndex){
  if (!hashCContainers.containsKey(storageKind))   throw new IllegalArgumentException("String_Node_Str" + storageKind + "String_Node_Str");
  if (!(hashCContainers.get(storageKind) instanceof FloatCContainer))   throw new IllegalArgumentException("String_Node_Str");
  FloatCContainer container=(FloatCContainer)hashCContainers.get(storageKind);
  return container.get(iIndex);
}
Program: 57953
Project: 57953
Buggy source:
@Override public void render(final GL2 gl){
  contentSpacing.getYDistances().clear();
  float yPosition=y;
  float xPosition=0;
  float fieldHeight=0;
  float fieldWidth=x;
  int iCount=0;
  for (  Integer contentID : heatMap.getContentVA()) {
    iCount++;
    fieldHeight=contentSpacing.getFieldHeight(contentID);
    if (heatMap.isHideElements() && heatMap.getContentSelectionManager().checkStatus(GLHeatMap.SELECTION_HIDDEN,contentID)) {
      contentSpacing.getYDistances().add(yPosition);
      continue;
    }
    yPosition-=fieldHeight;
    xPosition=0;
    renderLine(gl,contentID,yPosition,xPosition,fieldHeight,fieldWidth);
    contentSpacing.getYDistances().add(yPosition);
  }
}

Fixed version (ground truth):
@Override public void render(final GL2 gl){
}
Program: 57955
Project: 57955
Buggy source:
public boolean containsUncertaintyData(){
  return isCertaintyDataSet;
}

Fixed version (ground truth):
public boolean containsUncertaintyData(){
  return (isCertaintyDataSet && hashCContainers.containsKey(EDataRepresentation.UNCERTAINTY_NORMALIZED));
}
Program: 57956
Project: 57956
Buggy source:
private void renderElement(final GL2 gl,final int iStorageIndex,final int iContentIndex,final float fYPosition,final float fXPosition,final float fFieldHeight,final float fFieldWidth){
  AStorage storage=heatMap.getSet().get(iStorageIndex);
  if (storage == null)   return;
  float value=storage.getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
  float fOpacity=1.0f;
  if (storage.containsUncertaintyData())   fOpacity=storage.getFloat(EDataRepresentation.UNCERTAINTY_NORMALIZED,iContentIndex);
 else   if (heatMap.getContentSelectionManager().checkStatus(SelectionType.DESELECTED,iContentIndex)) {
    fOpacity=0.3f;
  }
  float[] fArMappingColor=colorMapper.getColor(value);
  gl.glColor4f(fArMappingColor[0],fArMappingColor[1],fArMappingColor[2],fOpacity);
  gl.glPushName(heatMap.getPickingManager().getPickingID(heatMap.getID(),EPickingType.HEAT_MAP_STORAGE_SELECTION,iStorageIndex));
  gl.glPushName(heatMap.getPickingManager().getPickingID(heatMap.getID(),EPickingType.HEAT_MAP_LINE_SELECTION,iContentIndex));
  gl.glBegin(GL2.GL_POLYGON);
  gl.glVertex3f(fXPosition,fYPosition,FIELD_Z);
  gl.glVertex3f(fXPosition + fFieldWidth,fYPosition,FIELD_Z);
  gl.glVertex3f(fXPosition + fFieldWidth,fYPosition + fFieldHeight,FIELD_Z);
  gl.glVertex3f(fXPosition,fYPosition + fFieldHeight,FIELD_Z);
  gl.glEnd();
  gl.glPopName();
  gl.glPopName();
}

Fixed version (ground truth):
private void renderElement(final GL2 gl,final int iStorageIndex,final int iContentIndex,final float fYPosition,final float fXPosition,final float fFieldHeight,final float fFieldWidth){
  AStorage storage=heatMap.getSet().get(iStorageIndex);
  if (storage == null)   return;
  float value=storage.getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
  float fOpacity=1.0f;
  float[] fArMappingColor=colorMapper.getColor(value);
  gl.glColor4f(fArMappingColor[0],fArMappingColor[1],fArMappingColor[2],fOpacity);
  gl.glPushName(heatMap.getPickingManager().getPickingID(heatMap.getID(),EPickingType.HEAT_MAP_STORAGE_SELECTION,iStorageIndex));
  gl.glPushName(heatMap.getPickingManager().getPickingID(heatMap.getID(),EPickingType.HEAT_MAP_LINE_SELECTION,iContentIndex));
  gl.glBegin(GL2.GL_POLYGON);
  gl.glVertex3f(fXPosition,fYPosition,FIELD_Z);
  gl.glVertex3f(fXPosition + fFieldWidth,fYPosition,FIELD_Z);
  gl.glVertex3f(fXPosition + fFieldWidth,fYPosition + fFieldHeight,FIELD_Z);
  gl.glVertex3f(fXPosition,fYPosition + fFieldHeight,FIELD_Z);
  gl.glEnd();
  gl.glPopName();
  gl.glPopName();
}
Program: 57957
Project: 57957
Buggy source:
public void init(ISet set,ContentVirtualArray contentVA,StorageVirtualArray storageVA,ColorMapper colorMapper){
  dark=GLUncertaintyHeatMap.darkDark;
  light=GLUncertaintyHeatMap.lightLight;
  initTextures(set,contentVA,storageVA);
}

Fixed version (ground truth):
public void init(ISet set,ContentVirtualArray contentVA,StorageVirtualArray storageVA,ColorMapper colorMapper){
  dark=GLUncertaintyHeatMap.darkDark;
  light=GLUncertaintyHeatMap.lightLight;
  this.storageVA=storageVA;
  this.contentVA=contentVA;
  this.set=set;
  initTextures(null);
}
Program: 57959
Project: 57959
Buggy source:
/** 
 * Constructor.
 * @param glCanvas
 * @param label
 * @param viewFrustum
 */
public GLUncertaintyHeatMap(GLCaleydoCanvas glCanvas,final ViewFrustum viewFrustum){
  super(glCanvas,viewFrustum);
  viewType=GLUncertaintyHeatMap.VIEW_ID;
  parentGLCanvas.removeMouseWheelListener(glMouseListener);
  parentGLCanvas.addMouseWheelListener(glMouseWheelListener);
}

Fixed version (ground truth):
/** 
 * Constructor.
 * @param glCanvas
 * @param label
 * @param viewFrustum
 */
public GLUncertaintyHeatMap(GLCaleydoCanvas glCanvas,final ViewFrustum viewFrustum){
  super(glCanvas,viewFrustum);
  viewType=GLUncertaintyHeatMap.VIEW_ID;
}
Program: 57960
Project: 57960
Buggy source:
@Override public void init(GL2 gl){
  templateRenderer=new LayoutManager(this.viewFrustum);
  if (template == null)   template=new LayoutTemplate();
  templateRenderer.setTemplate(template);
  baseRow=new Row("String_Node_Str");
  template.setBaseElementLayout(baseRow);
  overviewLayout=new Column("String_Node_Str");
  overviewLayout.setDebug(false);
  overviewLayout.setPixelGLConverter(parentGLCanvas.getPixelGLConverter());
  overviewLayout.setPixelSizeX(90);
  overviewDetailConnectorLayout=new Column("String_Node_Str");
  overviewDetailConnectorLayout.setDebug(false);
  overviewDetailConnectorLayout.setPixelGLConverter(parentGLCanvas.getPixelGLConverter());
  overviewDetailConnectorLayout.setPixelSizeX(60);
  detailLayout=new ElementLayout("String_Node_Str");
  detailLayout.setDebug(false);
  baseRow.append(overviewLayout);
  baseRow.append(overviewDetailConnectorLayout);
  baseRow.append(detailLayout);
  super.renderStyle=renderStyle;
  detailLevel=DetailLevel.HIGH;
  createOverviewHeatMap(gl);
  createDetailHeatMap(gl);
  OverviewDetailConnectorRenderer overviewDetailConnectorRenderer=new OverviewDetailConnectorRenderer(overviewHeatMap,detailHeatMap);
  overviewDetailConnectorLayout.setRenderer(overviewDetailConnectorRenderer);
}

Fixed version (ground truth):
@Override public void init(GL2 gl){
  templateRenderer=new LayoutManager(this.viewFrustum);
  if (template == null)   template=new LayoutTemplate();
  templateRenderer.setTemplate(template);
  baseRow=new Row("String_Node_Str");
  template.setBaseElementLayout(baseRow);
  overviewLayout=new Column("String_Node_Str");
  overviewLayout.setDebug(false);
  overviewLayout.setPixelGLConverter(parentGLCanvas.getPixelGLConverter());
  overviewLayout.setPixelSizeX(90);
  overviewDetailConnectorLayout=new Column("String_Node_Str");
  overviewDetailConnectorLayout.setDebug(false);
  overviewDetailConnectorLayout.setPixelGLConverter(parentGLCanvas.getPixelGLConverter());
  overviewDetailConnectorLayout.setPixelSizeX(60);
  detailLayout=new ElementLayout("String_Node_Str");
  detailLayout.setDebug(false);
  baseRow.append(overviewLayout);
  baseRow.append(overviewDetailConnectorLayout);
  baseRow.append(detailLayout);
  super.renderStyle=renderStyle;
  detailLevel=DetailLevel.HIGH;
  createOverviewHeatMap(gl);
  createDetailHeatMap(gl);
  OverviewDetailConnectorRenderer overviewDetailConnectorRenderer=new OverviewDetailConnectorRenderer(overviewHeatMap,detailHeatMap);
  overviewDetailConnectorLayout.setRenderer(overviewDetailConnectorRenderer);
  templateRenderer.updateLayout();
}
Program: 57961
Project: 57961
Buggy source:
@Override public void display(GL2 gl){
  baseRow.render(gl);
  PixelGLConverter pc=this.getParentGLCanvas().getPixelGLConverter();
  if (updateVisualUncertainty) {
    for (    ClusterRenderer clusterRenderer : overviewHeatMap.getClusterRendererList()) {
      ArrayList<Float> uncertaintyVA=new ArrayList<Float>();
      if (clusterRenderer.textureRenderer != null && clusterRenderer.textureRenderer.heatmapLayout != null && clusterRenderer.visUncBarTextureRenderer != null) {
        VisualUncertaintyUtil.calcVisualUncertainty(gl,pc,clusterRenderer.textureRenderer.heatmapLayout,clusterRenderer.textureRenderer,uncertaintyVA);
        clusterRenderer.visUncBarTextureRenderer.updateTexture(uncertaintyVA);
      }
    }
    updateVisualUncertainty=false;
  }
}

Fixed version (ground truth):
@Override public void display(GL2 gl){
  baseRow.render(gl);
  PixelGLConverter pc=this.getParentGLCanvas().getPixelGLConverter();
  if (updateVisualUncertainty) {
    for (    ClusterRenderer clusterRenderer : overviewHeatMap.getClusterRendererList()) {
      ArrayList<Float> uncertaintyVA=new ArrayList<Float>();
      if (clusterRenderer.textureRenderer != null && clusterRenderer.textureRenderer.heatmapLayout != null && clusterRenderer.visUncBarTextureRenderer != null) {
        VisualUncertaintyUtil.calcVisualUncertainty(gl,pc,clusterRenderer.textureRenderer.heatmapLayout,clusterRenderer.textureRenderer,uncertaintyVA);
        clusterRenderer.visUncBarTextureRenderer.initTextures(uncertaintyVA);
      }
    }
    updateVisualUncertainty=false;
  }
}
Program: 57962
Project: 57962
Buggy source:
public void updateVABasedOnSortingStrategy(){
  ContentGroupList groupList=contentVA.getGroupList();
  contentVA=new ContentVirtualArray(Set.CONTENT,contentTree.getRoot().getLeaveIds());
  contentVA.setGroupList(groupList);
}

Fixed version (ground truth):
public void updateVABasedOnSortingStrategy(){
  contentVA=new ContentVirtualArray(Set.CONTENT,contentTree.getRoot().getLeaveIds());
  contentVA.buildNewGroupList(contentTree.getRoot().getChildren());
}
Program: 57963
Project: 57963
Buggy source:
/** 
 * Creates a new group list based on the cluster nodes supplied and sets it to the group list memeber of this virtual array
 * @param iAlClusterNodes the list of cluster nodes on which the group list is based
 * @return a reference to the local groupList variable
 */
public ContentGroupList buildNewGroupList(ArrayList<ClusterNode> iAlClusterNodes){
  groupList=(ContentGroupList)buildNewGroupList(new ContentGroupList(),iAlClusterNodes);
  return groupList;
}

Fixed version (ground truth):
/** 
 * Creates a new group list based on the cluster nodes supplied and sets it to the group list memeber of this virtual array
 * @param clusterNodes the list of cluster nodes on which the group list is based
 * @return a reference to the local groupList variable
 */
public ContentGroupList buildNewGroupList(ArrayList<ClusterNode> clusterNodes){
  groupList=(ContentGroupList)buildNewGroupList(new ContentGroupList(),clusterNodes);
  return groupList;
}
Program: 57964
Project: 57964
Buggy source:
/** 
 * Function which merges the clusters determined by the cut off value to group lists used for rendering the clusters assignments in   {@link GLHierarchicalHeatMap}.
 */
protected GroupList<GroupType,ConcreteType,VADelta> buildNewGroupList(GroupList<GroupType,ConcreteType,VADelta> groupList,ArrayList<ClusterNode> clusterNodes){
  int cnt=0;
  int iExample=0;
  for (  ClusterNode node : clusterNodes) {
    Group temp=new Group(node.getNrLeaves(),this.indexOf(iExample),node);
    groupList.append(temp);
    cnt++;
    iExample+=node.getNrLeaves();
  }
  return groupList;
}

Fixed version (ground truth):
/** 
 * Function which merges the clusters determined by the cut off value to group lists used for rendering the clusters assignments in   {@link GLHierarchicalHeatMap}.
 */
protected GroupList<GroupType,ConcreteType,VADelta> buildNewGroupList(GroupList<GroupType,ConcreteType,VADelta> groupList,ArrayList<ClusterNode> clusterNodes){
  int sampleElementIndex=0;
  for (  ClusterNode node : clusterNodes) {
    Group temp=new Group(node.getNrLeaves(),sampleElementIndex,node);
    groupList.append(temp);
    sampleElementIndex+=node.getNrLeaves();
  }
  return groupList;
}
Program: 57966
Project: 57966
Buggy source:
/** 
 * Constructor.
 */
public HTMLBrowser(int iViewID,Composite parentComposite){
  super(iViewID,parentComposite);
}

Fixed version (ground truth):
/** 
 * Constructor.
 */
public HTMLBrowser(int iViewID,Composite parentComposite){
  super(iViewID,parentComposite);
  parentComposite.addDisposeListener(new DisposeListener(){
    @Override public void widgetDisposed(    DisposeEvent e){
      unregisterEventListeners();
    }
  }
);
}
Program: 57967
Project: 57967
Buggy source:
public void setUrl(String sUrl){
  this.url=sUrl;
  draw();
}

Fixed version (ground truth):
public void setUrl(String url){
  this.url=url;
  browser.setUrl(url);
  textURL.setText(url);
  browser.update();
}
Program: 57968
Project: 57968
Buggy source:
/** 
 * Returns the   {@link RelationAnalyzer} of this dataDomain, or null if it has not been created (via{@link #createContentRelationAnalyzer()}).
 * @return
 */
@Override public java.util.Set<IDimensionGroupData> getDimensionGroups(){
  return dimensionGroups;
}

Fixed version (ground truth):
/** 
 * Returns the   {@link RelationAnalyzer} of this dataDomain, or null if it has not been created (via{@link #createContentRelationAnalyzer()}).
 * @return
 */
@Override public java.util.Set<ADimensionGroupData> getDimensionGroups(){
  return dimensionGroups;
}
Program: 57969
Project: 57969
Buggy source:
@Override public void setDimensionGroups(java.util.Set<IDimensionGroupData> dimensionGroups){
  this.dimensionGroups=dimensionGroups;
}

Fixed version (ground truth):
@Override public void setDimensionGroups(java.util.Set<ADimensionGroupData> dimensionGroups){
  this.dimensionGroups=dimensionGroups;
}
Program: 57970
Project: 57970
Buggy source:
@Override public void addDimensionGroup(IDimensionGroupData dimensionGroup){
  dimensionGroups.add(dimensionGroup);
}

Fixed version (ground truth):
@Override public void addDimensionGroup(ADimensionGroupData dimensionGroup){
  dimensionGroups.add(dimensionGroup);
}
Program: 57971
Project: 57971
Buggy source:
private void init(){
  dimensionGroups=new HashSet<IDimensionGroupData>();
  assignIDCategories();
  if (contentIDCategory == null || storageIDCategory == null) {
    throw new IllegalStateException("String_Node_Str" + toString() + "String_Node_Str"+ contentIDCategory+ "String_Node_Str"+ storageIDCategory);
  }
  contentIDType=IDType.registerType("String_Node_Str" + dataDomainType + "String_Node_Str"+ hashCode(),contentIDCategory,EStorageType.INT);
  storageIDType=IDType.registerType("String_Node_Str" + dataDomainType + "String_Node_Str"+ hashCode(),storageIDCategory,EStorageType.INT);
  contentGroupIDType=IDType.registerType("String_Node_Str" + dataDomainType + "String_Node_Str"+ hashCode(),contentIDCategory,EStorageType.INT);
}

Fixed version (ground truth):
private void init(){
  dimensionGroups=new HashSet<ADimensionGroupData>();
  assignIDCategories();
  if (contentIDCategory == null || storageIDCategory == null) {
    throw new IllegalStateException("String_Node_Str" + toString() + "String_Node_Str"+ contentIDCategory+ "String_Node_Str"+ storageIDCategory);
  }
  contentIDType=IDType.registerType("String_Node_Str" + dataDomainType + "String_Node_Str"+ hashCode(),contentIDCategory,EStorageType.INT);
  storageIDType=IDType.registerType("String_Node_Str" + dataDomainType + "String_Node_Str"+ hashCode(),storageIDCategory,EStorageType.INT);
  contentGroupIDType=IDType.registerType("String_Node_Str" + dataDomainType + "String_Node_Str"+ hashCode(),contentIDCategory,EStorageType.INT);
}
Program: 57972
Project: 57972
Buggy source:
/** 
 * @return The dimension groups that have been created for this IDataDomain object (data set).
 */
public Set<IDimensionGroupData> getDimensionGroups();

Fixed version (ground truth):
/** 
 * @return The dimension groups that have been created for this IDataDomain object (data set).
 */
public Set<ADimensionGroupData> getDimensionGroups();
Program: 57973
Project: 57973
Buggy source:
/** 
 * Sets the dimension groups for this IDataDomain object (data set).
 * @param dimensionGroups
 */
public void setDimensionGroups(Set<IDimensionGroupData> dimensionGroups);

Fixed version (ground truth):
/** 
 * Sets the dimension groups for this IDataDomain object (data set).
 * @param dimensionGroups
 */
public void setDimensionGroups(Set<ADimensionGroupData> dimensionGroups);
Program: 57974
Project: 57974
Buggy source:
/** 
 * Adds a dimension group to this IDataDomain object (data set).
 * @param dimensionGroup
 */
public void addDimensionGroup(IDimensionGroupData dimensionGroup);

Fixed version (ground truth):
/** 
 * Adds a dimension group to this IDataDomain object (data set).
 * @param dimensionGroup
 */
public void addDimensionGroup(ADimensionGroupData dimensionGroup);
Program: 57975
Project: 57975
Buggy source:
@Override public Set<IDimensionGroupData> getDimensionGroups(){
  return dimensionGroups;
}

Fixed version (ground truth):
@Override public Set<ADimensionGroupData> getDimensionGroups(){
  return dimensionGroups;
}
Program: 57976
Project: 57976
Buggy source:
@Override public void setDimensionGroups(Set<IDimensionGroupData> dimensionGroups){
  this.dimensionGroups=dimensionGroups;
}

Fixed version (ground truth):
@Override public void setDimensionGroups(Set<ADimensionGroupData> dimensionGroups){
  this.dimensionGroups=dimensionGroups;
}
Program: 57977
Project: 57977
Buggy source:
/** 
 * Constructor.
 */
public PathwayDataDomain(){
  super(DATA_DOMAIN_TYPE);
  icon=EIconTextures.DATA_DOMAIN_PATHWAY;
  PathwayManager.get().triggerParsingPathwayDatabases();
  new PathwayLoadingProgressIndicatorAction().run(null);
  primaryIDType=IDType.getIDType("String_Node_Str");
  dimensionGroups=new HashSet<IDimensionGroupData>();
}

Fixed version (ground truth):
/** 
 * Constructor.
 */
public PathwayDataDomain(){
  super(DATA_DOMAIN_TYPE);
  icon=EIconTextures.DATA_DOMAIN_PATHWAY;
  PathwayManager.get().triggerParsingPathwayDatabases();
  new PathwayLoadingProgressIndicatorAction().run(null);
  primaryIDType=IDType.getIDType("String_Node_Str");
  dimensionGroups=new HashSet<ADimensionGroupData>();
}
Program: 57978
Project: 57978
Buggy source:
@Override public void addDimensionGroup(IDimensionGroupData dimensionGroup){
  dimensionGroups.add(dimensionGroup);
}

Fixed version (ground truth):
@Override public void addDimensionGroup(ADimensionGroupData dimensionGroup){
  dimensionGroups.add(dimensionGroup);
}
Program: 57979
Project: 57979
Buggy source:
@Override public Set<IDimensionGroupData> getDimensionGroups(){
  return dimensionGroups;
}

Fixed version (ground truth):
@Override public Set<ADimensionGroupData> getDimensionGroups(){
  return dimensionGroups;
}
Program: 57980
Project: 57980
Buggy source:
/** 
 * Constructor.
 */
public TissueDataDomain(){
  super(DATA_DOMAIN_TYPE);
  icon=EIconTextures.DATA_DOMAIN_TISSUE;
  dimensionGroups=new HashSet<IDimensionGroupData>();
}

Fixed version (ground truth):
/** 
 * Constructor.
 */
public TissueDataDomain(){
  super(DATA_DOMAIN_TYPE);
  icon=EIconTextures.DATA_DOMAIN_TISSUE;
  dimensionGroups=new HashSet<ADimensionGroupData>();
}
Program: 57981
Project: 57981
Buggy source:
@Override public void setDimensionGroups(Set<IDimensionGroupData> dimensionGroups){
  this.dimensionGroups=dimensionGroups;
}

Fixed version (ground truth):
@Override public void setDimensionGroups(Set<ADimensionGroupData> dimensionGroups){
  this.dimensionGroups=dimensionGroups;
}
Program: 57982
Project: 57982
Buggy source:
@Override public void addDimensionGroup(IDimensionGroupData dimensionGroup){
  dimensionGroups.add(dimensionGroup);
}

Fixed version (ground truth):
@Override public void addDimensionGroup(ADimensionGroupData dimensionGroup){
  dimensionGroups.add(dimensionGroup);
}
Program: 57983
Project: 57983
Buggy source:
public ComparisonGroupOverviewRenderer(List<IDimensionGroupData> dimensionGroupData,AGLView view){
  this.dimensionGroupData=dimensionGroupData;
  this.view=view;
}

Fixed version (ground truth):
public ComparisonGroupOverviewRenderer(List<ADimensionGroupData> dimensionGroupData,AGLView view){
  this.dimensionGroupData=dimensionGroupData;
  this.view=view;
}
Program: 57984
Project: 57984
Buggy source:
@Override public List<IDimensionGroupData> getDimensionGroups(){
  List<IDimensionGroupData> groups=new ArrayList<IDimensionGroupData>();
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  return groups;
}

Fixed version (ground truth):
@Override public List<ADimensionGroupData> getDimensionGroups(){
  List<ADimensionGroupData> groups=new ArrayList<ADimensionGroupData>();
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  return groups;
}
Program: 57985
Project: 57985
Buggy source:
public List<IDimensionGroupData> getDimensionGroups();

Fixed version (ground truth):
public List<ADimensionGroupData> getDimensionGroups();
Program: 57986
Project: 57986
Buggy source:
@Override public List<IDimensionGroupData> getDimensionGroups(){
  List<IDimensionGroupData> groups=new ArrayList<IDimensionGroupData>();
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  return groups;
}

Fixed version (ground truth):
@Override public List<ADimensionGroupData> getDimensionGroups(){
  List<ADimensionGroupData> groups=new ArrayList<ADimensionGroupData>();
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  groups.add(null);
  return groups;
}
Program: 57987
Project: 57987
Buggy source:
public AddGroupsToVisBricksItem(ArrayList<ISet> setsToShow){
  super();
  setText("String_Node_Str");
  ArrayList<IDimensionGroupData> dimensionGroupData=new ArrayList<IDimensionGroupData>(setsToShow.size());
  for (  ISet set : setsToShow) {
    SetBasedDimensionGroupData data=new SetBasedDimensionGroupData(set.getDataDomain(),set);
    dimensionGroupData.add(data);
  }
  AddGroupsToVisBricksEvent event=new AddGroupsToVisBricksEvent();
  event.setDimensionGroupData(dimensionGroupData);
  event.setSender(this);
  registerEvent(event);
}

Fixed version (ground truth):
public AddGroupsToVisBricksItem(ArrayList<ISet> setsToShow){
  super();
  setText("String_Node_Str");
  ArrayList<ADimensionGroupData> dimensionGroupData=new ArrayList<ADimensionGroupData>(setsToShow.size());
  for (  ISet set : setsToShow) {
    SetBasedDimensionGroupData data=new SetBasedDimensionGroupData(set.getDataDomain(),set);
    dimensionGroupData.add(data);
  }
  AddGroupsToVisBricksEvent event=new AddGroupsToVisBricksEvent();
  event.setDimensionGroupData(dimensionGroupData);
  event.setSender(this);
  registerEvent(event);
}
Program: 57989
Project: 57989
Buggy source:
/** 
 * Calls the displayRemote of the view to be rendered plus pushes the ID of the Brick.
 */
@Override public void render(GL2 gl){
  viewportPositionX=pixelGLConverter.getPixelWidthForCurrentGLTransform(gl);
  viewportPositionY=pixelGLConverter.getPixelHeightForCurrentGLTransform(gl);
  view.clipToFrustum(gl);
  view.beginZoom(gl);
  view.displayRemote(gl);
  view.endZoom(gl);
  gl.glDisable(GL2.GL_STENCIL_TEST);
}

Fixed version (ground truth):
/** 
 * Calls the displayRemote of the view to be rendered plus pushes the ID of the Brick.
 */
@Override public void render(GL2 gl){
  viewportPositionX=pixelGLConverter.getPixelWidthForCurrentGLTransform(gl);
  viewportPositionY=pixelGLConverter.getPixelHeightForCurrentGLTransform(gl);
  int viewportWidth=pixelGLConverter.getPixelWidthForGLWidth(x);
  int viewportHeight=pixelGLConverter.getPixelHeightForGLHeight(y);
  double[] clipPlane1=new double[]{0.0,1.0,0.0,0.0};
  double[] clipPlane2=new double[]{1.0,0.0,0.0,0.0};
  double[] clipPlane3=new double[]{-1.0,0.0,0.0,x};
  double[] clipPlane4=new double[]{0.0,-1.0,0.0,y};
  gl.glClipPlane(GL2.GL_CLIP_PLANE0,clipPlane1,0);
  gl.glClipPlane(GL2.GL_CLIP_PLANE1,clipPlane2,0);
  gl.glClipPlane(GL2.GL_CLIP_PLANE2,clipPlane3,0);
  gl.glClipPlane(GL2.GL_CLIP_PLANE3,clipPlane4,0);
  gl.glEnable(GL2.GL_CLIP_PLANE0);
  gl.glEnable(GL2.GL_CLIP_PLANE1);
  gl.glEnable(GL2.GL_CLIP_PLANE2);
  gl.glEnable(GL2.GL_CLIP_PLANE3);
  view.beginZoom(gl);
  view.displayRemote(gl);
  view.endZoom(gl);
  gl.glDisable(GL2.GL_CLIP_PLANE0);
  gl.glDisable(GL2.GL_CLIP_PLANE1);
  gl.glDisable(GL2.GL_CLIP_PLANE2);
  gl.glDisable(GL2.GL_CLIP_PLANE3);
}
Program: 57990
Project: 57990
Buggy source:
public DetailToolBar(GLHeatMap heatMap){
  this.heatMap=heatMap;
  iconManager=new TextureManager();
}

Fixed version (ground truth):
public DetailToolBar(GLHeatMap heatMap){
  this.heatMap=heatMap;
  iconManager=new TextureManager();
  textRender=heatMap.getTextRenderer();
}
Program: 57992
Project: 57992
Buggy source:
public void updateConnectionLinesBetweenDimensionGroups(){
  connectionBandIDCounter=0;
  if (centerRowLayout != null) {
    for (    ElementLayout elementLayout : centerRowLayout.getElements()) {
      if (elementLayout.getRenderer() instanceof DimensionGroupSpacingRenderer) {
        ((DimensionGroupSpacingRenderer)elementLayout.getRenderer()).init();
      }
    }
  }
}

Fixed version (ground truth):
public void updateConnectionLinesBetweenDimensionGroups(){
  isConnectionLinesDirty=true;
}
Program: 57993
Project: 57993
Buggy source:
void render(GL2 gl){
  gl.glTranslatef(getTranslateX(),getTranslateY(),0);
  if (debug) {
    float yPositionDebugText=0;
    float[] color;
    if (frameColor == null)     color=new float[]{0,0.5f,0.5f,1};
 else {
      color=frameColor;
    }
    gl.glColor4fv(color,0);
    if (this instanceof LayoutContainer) {
      gl.glLineWidth(6);
      yPositionDebugText=getSizeScaledY() / 2;
    }
 else {
      gl.glLineWidth(2);
    }
    gl.glBegin(GL.GL_LINE_LOOP);
    gl.glVertex3f(0,0,0.2f);
    gl.glVertex3f(getSizeScaledX(),0,0.2f);
    gl.glVertex3f(getSizeScaledX(),getSizeScaledY(),0.2f);
    gl.glVertex3f(0,getSizeScaledY(),0.2f);
    gl.glEnd();
    if (textRenderer == null) {
      textRenderer=new CaleydoTextRenderer(24);
    }
    textRenderer.setColor(color[0],color[1],color[2],color[3]);
    textRenderer.renderText(gl,layoutName,0,yPositionDebugText,0.4f);
  }
  if (backgroundRenderers != null) {
    for (    LayoutRenderer backgroundRenderer : backgroundRenderers) {
      backgroundRenderer.render(gl);
    }
  }
  renderer.render(gl);
  if (foregroundRenderers != null) {
    for (    LayoutRenderer foregroundRenderer : foregroundRenderers) {
      foregroundRenderer.render(gl);
    }
  }
  gl.glTranslatef(-getTranslateX(),-getTranslateY(),0);
}

Fixed version (ground truth):
void render(GL2 gl){
  gl.glTranslatef(getTranslateX(),getTranslateY(),0);
  if (debug) {
    float yPositionDebugText=0;
    float[] color;
    if (frameColor == null)     color=new float[]{0,0.5f,0.5f,1};
 else {
      color=frameColor;
    }
    gl.glColor4fv(color,0);
    if (this instanceof LayoutContainer) {
      gl.glLineWidth(6);
      yPositionDebugText=getSizeScaledY() / 2;
    }
 else {
      gl.glLineWidth(2);
    }
    gl.glBegin(GL.GL_LINE_LOOP);
    gl.glVertex3f(0,0,0.2f);
    gl.glVertex3f(getSizeScaledX(),0,0.2f);
    gl.glVertex3f(getSizeScaledX(),getSizeScaledY(),0.2f);
    gl.glVertex3f(0,getSizeScaledY(),0.2f);
    gl.glEnd();
    if (textRenderer == null) {
      textRenderer=new CaleydoTextRenderer(24);
    }
    textRenderer.setColor(color[0],color[1],color[2],color[3]);
    textRenderer.renderText(gl,layoutName,0,yPositionDebugText,0.4f,0.03f,3);
  }
  if (backgroundRenderers != null) {
    for (    LayoutRenderer backgroundRenderer : backgroundRenderers) {
      backgroundRenderer.render(gl);
    }
  }
  renderer.render(gl);
  if (foregroundRenderers != null) {
    for (    LayoutRenderer foregroundRenderer : foregroundRenderers) {
      foregroundRenderer.render(gl);
    }
  }
  gl.glTranslatef(-getTranslateX(),-getTranslateY(),0);
}