<commit_before>package org.cg.aquarium.infrastructure;

import com.sun.opengl.util.FPSAnimator;
import com.sun.opengl.util.GLUT;
import javax.media.opengl.DebugGL;
import javax.media.opengl.GL;
import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLCanvas;
import javax.media.opengl.GLCapabilities;
import javax.media.opengl.GLEventListener;
import javax.media.opengl.glu.GLU;
import org.cg.aquarium.Aquarium;

/**
 *
 * @author ldavid
 */
public class AquariumCanvas extends GLCanvas implements GLEventListener {

    protected GL gl;
    protected GLU glu;
    protected GLUT glut;
    protected FPSAnimator animator;

    public AquariumCanvas(GLCapabilities capabilities) {
        this(1366, 768, capabilities);
    }

    public AquariumCanvas(int width, int height, GLCapabilities capabilities) {
        super(capabilities);
        setSize(width, height);
    }

    @Override
    public void init(GLAutoDrawable drawable) {
        gl = drawable.getGL();
        glu = new GLU();
        glut = new GLUT();
        drawable.setGL(new DebugGL(gl));

        gl.glEnable(GL.GL_DEPTH_TEST);
//        gl.glDepthFunc(GL.GL_LEQUAL);
        gl.glDepthFunc(GL.GL_LESS);

        float ambient[] = {0f, 0f, 0.4f, 0f};
        float diffuse[] = {0.8f, 0.8f, 1.0f, 0.0f};
        float specular[] = {0.8f, 0.8f, 1.0f, 1.0f};
        float position[] = {5.0f, 10.0f, 2.0f, 0.0f};
        float lmodel_ambient[] = {0.4f, 0.4f, 0.4f, 1.0f};
        float local_view[] = {0.0f};

        gl.glLightfv(GL.GL_LIGHT0, GL.GL_AMBIENT, ambient, 0);
        gl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, diffuse, 0);
        gl.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, position, 0);
        gl.glLightfv(GL.GL_LIGHT0, GL.GL_SPECULAR, specular, 0);
        gl.glLightModelfv(GL.GL_LIGHT_MODEL_AMBIENT, lmodel_ambient, 0);
        gl.glLightModelfv(GL.GL_LIGHT_MODEL_LOCAL_VIEWER, local_view, 0);
        gl.glEnable(GL.GL_LIGHTING);
        gl.glEnable(GL.GL_LIGHT0);

        gl.glEnable(GL.GL_COLOR_MATERIAL);
        gl.glShadeModel(GL.GL_SMOOTH);
        gl.glHint(GL.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST);
//        gl.glClearColor(.2f, .6f, 1f, 1f);
        gl.glClearColor(1, 1, 1, 1);

        animator = new FPSAnimator(this, 60);
        animator.start();
    }

    @Override<commit_msg>Changed background to a light blue color<commit_after>package org.cg.aquarium.infrastructure;

import com.sun.opengl.util.FPSAnimator;
import com.sun.opengl.util.GLUT;
import javax.media.opengl.DebugGL;
import javax.media.opengl.GL;
import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLCanvas;
import javax.media.opengl.GLCapabilities;
import javax.media.opengl.GLEventListener;
import javax.media.opengl.glu.GLU;
import org.cg.aquarium.Aquarium;

/**
 *
 * @author ldavid
 */
public class AquariumCanvas extends GLCanvas implements GLEventListener {

    protected GL gl;
    protected GLU glu;
    protected GLUT glut;
    protected FPSAnimator animator;

    public AquariumCanvas(GLCapabilities capabilities) {
        this(1366, 768, capabilities);
    }

    public AquariumCanvas(int width, int height, GLCapabilities capabilities) {
        super(capabilities);
        setSize(width, height);
    }

    @Override
    public void init(GLAutoDrawable drawable) {
        gl = drawable.getGL();
        glu = new GLU();
        glut = new GLUT();
        drawable.setGL(new DebugGL(gl));

        gl.glEnable(GL.GL_DEPTH_TEST);
//        gl.glDepthFunc(GL.GL_LEQUAL);
        gl.glDepthFunc(GL.GL_LESS);

        float ambient[] = {0f, 0f, 0.4f, 0f};
        float diffuse[] = {0.8f, 0.8f, 1.0f, 0.0f};
        float specular[] = {0.8f, 0.8f, 1.0f, 1.0f};
        float position[] = {5.0f, 10.0f, 2.0f, 0.0f};
        float lmodel_ambient[] = {0.4f, 0.4f, 0.4f, 1.0f};
        float local_view[] = {0.0f};

        gl.glLightfv(GL.GL_LIGHT0, GL.GL_AMBIENT, ambient, 0);
        gl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, diffuse, 0);
        gl.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, position, 0);
        gl.glLightfv(GL.GL_LIGHT0, GL.GL_SPECULAR, specular, 0);
        gl.glLightModelfv(GL.GL_LIGHT_MODEL_AMBIENT, lmodel_ambient, 0);
        gl.glLightModelfv(GL.GL_LIGHT_MODEL_LOCAL_VIEWER, local_view, 0);
        gl.glEnable(GL.GL_LIGHTING);
        gl.glEnable(GL.GL_LIGHT0);

        gl.glEnable(GL.GL_COLOR_MATERIAL);
        gl.glShadeModel(GL.GL_SMOOTH);
        gl.glHint(GL.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST);
//        gl.glClearColor(.2f, .6f, 1f, 1f);
        gl.glClearColor(.7f, .7f, 1, 1);

        animator = new FPSAnimator(this, 60);
        animator.start();
    }

    @Override
{'fraction_non_alphanumeric': 0.1297134238310709, 'fraction_numerical': 0.029304029304029304, 'mean_word_length': 2.95063829787234, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5935324', 'n_tokens_mistral': 1884, 'n_tokens_neox': 1763, 'n_words': 309}