<commit_before>// main Falling Squares game script file
$(document).ready(init); // functions init
var x = 240,
    y = 450,
    c, ctx, coep,
    obsy = [],
    score = 0,
    sx,
    sy,
    ss = 0,
    sGrad,
    ammo = true,
    then = Date.now(),
    lost = false,
    middle; // misc vars
var fps = { // fps counter
    startTime: 0,
    frameNumber: 0,
    getFPS: function() {
        this.frameNumber++;
        var d = new Date().getTime(),
            currentTime = (d - this.startTime) / 1000,
            result = Math.floor((this.frameNumber / currentTime));

        if (currentTime > 1) {
            this.startTime = new Date().getTime();
            this.frameNumber = 0;
        }
        return result;

    }
};

function init() { // main init function
    c = document.getElementById("canvas");
    ctx = c.getContext("2d");
    gameLoop();
    downLoop();
    scoreLoop();
    setTimeout(hideInst, 7500);
    middle = ($(window).width() / 2) - 125;
}
function hideInst() { // instructions fade out
    $("#inst").fadeTo("slow", 0);
}
function scoreLoop() { // score loop
    score++;
    setTimeout(scoreLoop, 250);
}
function reset() { // reset button
    window.location.assign("http://html5.jackdalton.co");
}
function lose() { // loss function
    $("#reset").fadeTo("slow", 1);
    lost = true;
    //window.location.assign("#lose");<commit_msg>Fixed reset issue<commit_after>// main Falling Squares game script file
$(document).ready(init); // functions init
var x = 240,
    y = 450,
    c, ctx, coep,
    obsy = [],
    score = 0,
    sx,
    sy,
    ss = 0,
    sGrad,
    ammo = true,
    then = Date.now(),
    lost = false,
    middle; // misc vars
var fps = { // fps counter
    startTime: 0,
    frameNumber: 0,
    getFPS: function() {
        this.frameNumber++;
        var d = new Date().getTime(),
            currentTime = (d - this.startTime) / 1000,
            result = Math.floor((this.frameNumber / currentTime));

        if (currentTime > 1) {
            this.startTime = new Date().getTime();
            this.frameNumber = 0;
        }
        return result;

    }
};

function init() { // main init function
    c = document.getElementById("canvas");
    ctx = c.getContext("2d");
    gameLoop();
    downLoop();
    scoreLoop();
    setTimeout(hideInst, 7500);
    middle = ($(window).width() / 2) - 125;
}
function hideInst() { // instructions fade out
    $("#inst").fadeTo("slow", 0);
}
function scoreLoop() { // score loop
    score++;
    setTimeout(scoreLoop, 250);
}
function reset() { // reset button
    window.location.assign(String(window.location));
}
function lose() { // loss function
    $("#reset").fadeTo("slow", 1);
    lost = true;
    //window.location.assign("#lose");
{'fraction_non_alphanumeric': 0.16466302367941713, 'fraction_numerical': 0.022222222222222223, 'mean_word_length': 2.2768496420047732, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3530592', 'n_tokens_mistral': 922, 'n_tokens_neox': 855, 'n_words': 227}