Program: 58547
Project: 58547
Buggy source:
private void RenderScatterPoints(GL gl){
  float XScale=renderStyle.getRenderWidth() - XYAXISDISTANCE * 2.0f;
  float YScale=renderStyle.getRenderHeight() - XYAXISDISTANCE * 2.0f;
  float x=0.0f;
  float y=0.0f;
  float xnormalized=0.0f;
  float ynormalized=0.0f;
  float x_2=0.0f;
  float y_2=0.0f;
  for (  Integer iContentIndex : contentVA) {
    if (iContentIndex == -1) {
      continue;
    }
    xnormalized=set.get(SELECTED_X_AXIS).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
    ynormalized=set.get(SELECTED_Y_AXIS).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
    x=xnormalized * XScale;
    y=ynormalized * YScale;
    float[] fArMappingColor=colorMapper.getColor(Math.max(xnormalized,ynormalized));
    if (bRender2Axis)     fArMappingColor=new float[]{1.0f,0.0f,0.0f};
    DrawPointPrimitive(gl,x,y,0.0f,fArMappingColor,1.0f,iContentIndex,1.0f);
    if (bRender2Axis) {
      xnormalized=set.get(SELECTED_X_AXIS_2).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
      ynormalized=set.get(SELECTED_Y_AXIS_2).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
      x_2=xnormalized * XScale;
      y_2=ynormalized * YScale;
      fArMappingColor=new float[]{0.0f,1.0f,0.0f};
      EScatterPointType tmpPoint=POINTSTYLE;
      POINTSTYLE=POINTSTYLE.CIRCLE;
      DrawPointPrimitive(gl,x_2,y_2,0.0f,fArMappingColor,1.0f,iContentIndex,1.0f);
      POINTSTYLE=tmpPoint;
      gl.glColor3f(0.0f,0.0f,1.0f);
      gl.glLineWidth(0.5f);
      gl.glBegin(GL.GL_LINES);
      gl.glVertex3f(x,y,1.0f);
      gl.glVertex3f(x_2,y_2,1.0f);
      gl.glEnd();
    }
  }
}

Fixed version (ground truth):
private void RenderScatterPoints(GL gl){
  float XScale=renderStyle.getRenderWidth() - XYAXISDISTANCE * 2.0f;
  float YScale=renderStyle.getRenderHeight() - XYAXISDISTANCE * 2.0f;
  float x=0.0f;
  float y=0.0f;
  float xnormalized=0.0f;
  float ynormalized=0.0f;
  float x_2=0.0f;
  float y_2=0.0f;
  for (  Integer iContentIndex : contentVA) {
    if (iContentIndex == -1) {
      continue;
    }
    xnormalized=set.get(SELECTED_X_AXIS).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
    ynormalized=set.get(SELECTED_Y_AXIS).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
    x=xnormalized * XScale;
    y=ynormalized * YScale;
    float[] fArMappingColor=colorMapper.getColor(Math.max(xnormalized,ynormalized));
    EScatterPointType tmpPoint=POINTSTYLE;
    if (bRender2Axis) {
      fArMappingColor=new float[]{1.0f,0.0f,0.0f};
      POINTSTYLE=POINTSTYLE.POINT;
    }
    DrawPointPrimitive(gl,x,y,0.0f,fArMappingColor,1.0f,iContentIndex,1.0f);
    if (bRender2Axis) {
      xnormalized=set.get(SELECTED_X_AXIS_2).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
      ynormalized=set.get(SELECTED_Y_AXIS_2).getFloat(EDataRepresentation.NORMALIZED,iContentIndex);
      x_2=xnormalized * XScale;
      y_2=ynormalized * YScale;
      fArMappingColor=new float[]{0.0f,1.0f,0.0f};
      DrawPointPrimitive(gl,x_2,y_2,0.0f,fArMappingColor,1.0f,iContentIndex,1.0f);
      POINTSTYLE=tmpPoint;
      gl.glColor3f(0.0f,0.0f,1.0f);
      gl.glLineWidth(0.5f);
      gl.glBegin(GL.GL_LINES);
      gl.glVertex3f(x,y,1.0f);
      gl.glVertex3f(x_2,y_2,1.0f);
      gl.glEnd();
    }
  }
}