<commit_before>window.onload = function () {
    test_largeChunkMesh();
    return;

    var container = document.getElementById('container');
    var tester = new FeatureTester();
    tester.run();
    if (!tester.pass()) {
        container.innerHeight = '';
        container.appendChild(tester.errors());
        return;
    }

    Models.init(startGame);

    function startGame() {
        var scene = new THREE.Scene();
        var clock = new THREE.Clock();
        var world = new World(scene, container);
        world.resize();

        var renderer = new THREE.WebGLRenderer();
        renderer.setSize(window.innerWidth, window.innerHeight);

        container.querySelector('#opengl').appendChild(renderer.domElement);
        document.querySelector('#splash h1').innerHTML = 'Click to play!';

        var speed = new PerfChart({
            title: ' render',
            maxValue: 50,
        });
        speed.elm.style.position = 'absolute';
        speed.elm.style.top = '74px';
        speed.elm.style.right = '0px';
        container.appendChild(speed.elm);

        window.addEventListener('resize', onWindowResize, false);

        animate();

        function onWindowResize() {
            world.resize();
            renderer.setSize(window.innerWidth, window.innerHeight);
        }

        function animate() {
            var dt = clock.getDelta();
            world.update(dt);
            world.render(renderer, scene);
            speed.addDataPoint(dt*1000);

            if (fatalErrorTriggered) return;
            requestAnimationFrame(animate);
        }
    }
};

window.onerror = function (msg, url, lineno) {
    fatalError({
        message: msg,
        filename: url,
        lineno: lineno,
    });
};

var fatalErrorTriggered = false;
function fatalError(err) {
    var container = document.getElementById('container');
    container.classList.add('error');

    var elm = splash.querySelector('.contents');
    html = [
        "<h1>Fatal Error!</h1>",
        "<p>",
            err.filename || err.fileName,
            " (",
                err.lineno || err.lineNumber,
            "):",
        "</p>",
        "<p>",
            err.message,
        "</p>",
        "<p>Press F5 to attempt a rejoin</p>",
    ].join("\n");
    elm.innerHTML = html;

    exitPointerLock();
    fatalErrorTriggered = true;
    function exitPointerLock() {
        (document.exitPointerLock ||
        document.mozExitPointerLock ||
        document.webkitExitPointerLock).call(document)
    }
}

var sin = Math.sin;
var cos = Math.cos;
var abs = Math.abs;
var min = Math.min;
var max = Math.max;
var sqrt = Math.sqrt;
var pow = Math.pow;
<commit_msg>Oops, forgot to take game out of testing mode.<commit_after>window.onload = function () {
    var container = document.getElementById('container');
    var tester = new FeatureTester();
    tester.run();
    if (!tester.pass()) {
        container.innerHeight = '';
        container.appendChild(tester.errors());
        return;
    }

    Models.init(startGame);

    function startGame() {
        var scene = new THREE.Scene();
        var clock = new THREE.Clock();
        var world = new World(scene, container);
        world.resize();

        var renderer = new THREE.WebGLRenderer();
        renderer.setSize(window.innerWidth, window.innerHeight);

        container.querySelector('#opengl').appendChild(renderer.domElement);
        document.querySelector('#splash h1').innerHTML = 'Click to play!';

        var speed = new PerfChart({
            title: ' render',
            maxValue: 50,
        });
        speed.elm.style.position = 'absolute';
        speed.elm.style.top = '74px';
        speed.elm.style.right = '0px';
        container.appendChild(speed.elm);

        window.addEventListener('resize', onWindowResize, false);

        animate();

        function onWindowResize() {
            world.resize();
            renderer.setSize(window.innerWidth, window.innerHeight);
        }

        function animate() {
            var dt = clock.getDelta();
            world.update(dt);
            world.render(renderer, scene);
            speed.addDataPoint(dt*1000);

            if (fatalErrorTriggered) return;
            requestAnimationFrame(animate);
        }
    }
};

window.onerror = function (msg, url, lineno) {
    fatalError({
        message: msg,
        filename: url,
        lineno: lineno,
    });
};

var fatalErrorTriggered = false;
function fatalError(err) {
    var container = document.getElementById('container');
    container.classList.add('error');

    var elm = splash.querySelector('.contents');
    html = [
        "<h1>Fatal Error!</h1>",
        "<p>",
            err.filename || err.fileName,
            " (",
                err.lineno || err.lineNumber,
            "):",
        "</p>",
        "<p>",
            err.message,
        "</p>",
        "<p>Press F5 to attempt a rejoin</p>",
    ].join("\n");
    elm.innerHTML = html;

    exitPointerLock();
    fatalErrorTriggered = true;
    function exitPointerLock() {
        (document.exitPointerLock ||
        document.mozExitPointerLock ||
        document.webkitExitPointerLock).call(document)
    }
}

var sin = Math.sin;
var cos = Math.cos;
var abs = Math.abs;
var min = Math.min;
var max = Math.max;
var sqrt = Math.sqrt;
var pow = Math.pow;

{'fraction_non_alphanumeric': 0.13686369569270931, 'fraction_numerical': 0.004848032817452918, 'mean_word_length': 2.1534391534391535, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '7083712', 'n_tokens_mistral': 1550, 'n_tokens_neox': 1508, 'n_words': 320}