<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package nvGlSamples.util;

import com.jogamp.opengl.GL4;
import com.jogamp.opengl.GLAutoDrawable;

/**
 *
 * @author elect
 */
public class NvSampleApp extends NvAppBase {

    protected NvInputTransformer transformer;
    private NvStopWatch frameTimer;
    private NvStopWatch drawTimer;
    private long totalTime;
    private long frameTime;
    protected float frameDelta;

    public NvSampleApp() {

        super();

        transformer = new NvInputTransformer();

        frameTimer = new NvStopWatch();
        frameTimer.start();
        drawTimer = new NvStopWatch();

        totalTime = (long) -1e6;
    }

    @Override
    public void init(GLAutoDrawable glad) {

        GL4 gl4 = glad.getGL().getGL4();

        System.out.println("GL_RENDERER = " + gl4.glGetString(GL4.GL_RENDERER));
        System.out.println("GL_VERSION = " + gl4.glGetString(GL4.GL_VERSION));
        System.out.println("GL_VENDOR = " + gl4.glGetString(GL4.GL_VENDOR));

        /**
         * Break the extensions into lines without breaking extensions (since
         * unbroken line-wrap with extensions hurts search)
         */
        int[] count = new int[1];
        gl4.glGetIntegerv(GL4.GL_NUM_EXTENSIONS, count, 0);
        System.out.println("GL_EXTENSIONS = ");
        int lineMaxLen = 80;
        String currExt, currLine = gl4.glGetStringi(GL4.GL_EXTENSIONS, 0);
        for (int i = 1; i < count[0]; i++) {

            currExt = gl4.glGetStringi(GL4.GL_EXTENSIONS, i);<commit_msg>Routine<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package nvGlSamples.util;

import com.jogamp.opengl.GL4;
import com.jogamp.opengl.GLAutoDrawable;

/**
 *
 * @author elect
 */
public class NvSampleApp extends NvAppBase {

    protected NvInputTransformer transformer;
    private NvStopWatch frameTimer;
    private NvStopWatch drawTimer;
    private long totalTime;
    private long frameTime;
    protected float frameDelta;

    public NvSampleApp() {

        super();

        transformer = new NvInputTransformer();

        frameTimer = new NvStopWatch();
        frameTimer.start();
        drawTimer = new NvStopWatch();

        totalTime = (long) -1e6;
    }

    @Override
    public void init(GLAutoDrawable glad) {
        System.out.println("init");
        GL4 gl4 = glad.getGL().getGL4();

        System.out.println("GL_RENDERER = " + gl4.glGetString(GL4.GL_RENDERER));
        System.out.println("GL_VERSION = " + gl4.glGetString(GL4.GL_VERSION));
        System.out.println("GL_VENDOR = " + gl4.glGetString(GL4.GL_VENDOR));

        /**
         * Break the extensions into lines without breaking extensions (since
         * unbroken line-wrap with extensions hurts search)
         */
        int[] count = new int[1];
        gl4.glGetIntegerv(GL4.GL_NUM_EXTENSIONS, count, 0);
        System.out.println("GL_EXTENSIONS = ");
        int lineMaxLen = 80;
        String currExt, currLine = gl4.glGetStringi(GL4.GL_EXTENSIONS, 0);
        for (int i = 1; i < count[0]; i++) {

            currExt = gl4.glGetStringi(GL4.GL_EXTENSIONS, i);
{'fraction_non_alphanumeric': 0.1066079295154185, 'fraction_numerical': 0.014684287812041116, 'mean_word_length': 2.7971014492753623, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3624893', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1073, 'n_words': 258}