<commit_before>function Game(canvasID, width, height, functions, fps) {
    Group.call(this);
    var self = this;

    var canvas = document.getElementById(canvasID);

    this.ctx = canvas.getContext("2d");
    this.ctx.canvas.width = width || 500;
    this.ctx.canvas.height = height || 500;

    canvas.addEventListener("mousedown", this.set(self, this._click), false);

    this.xOffset = canvas.offsetLeft;
    this.yOffset = canvas.offsetTop;

    fps = fps || 30;

    document.addEventListener("DOMContentLoaded", function(event) {
        functions.create();

        setInterval(function() {
            self.update();
            self.draw(self.ctx);
        });
    }, 1000/fps);
}

Game.prototype = Object.create(Group.prototype);
Game.prototype.contstructor = Game;

Game.prototype.set = function(self, func) {
    return function(event) {<commit_msg>Fix ctx not being cleared<commit_after>function Game(canvasID, width, height, functions, fps) {
    Group.call(this);
    var self = this;

    var canvas = document.getElementById(canvasID);

    this.ctx = canvas.getContext("2d");
    this.ctx.canvas.width = width || 500;
    this.ctx.canvas.height = height || 500;

    canvas.addEventListener("mousedown", this.set(self, this._click), false);

    this.xOffset = canvas.offsetLeft;
    this.yOffset = canvas.offsetTop;

    fps = fps || 30;

    document.addEventListener("DOMContentLoaded", function(event) {
        functions.create();

        setInterval(function() {
            self.update();
            self.ctx.fillStyle = "rgb(255, 250, 250)";
            self.ctx.fillRect(0, 0, width, height);
            self.draw(self.ctx);
        });
    }, 1000/fps);
}

Game.prototype = Object.create(Group.prototype);
Game.prototype.contstructor = Game;

Game.prototype.set = function(self, func) {
    return function(event) {
{'fraction_non_alphanumeric': 0.1426256077795786, 'fraction_numerical': 0.019989195029713667, 'mean_word_length': 3.0436681222707422, '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': '2693449', 'n_tokens_mistral': 596, 'n_tokens_neox': 548, 'n_words': 108}