<commit_before>function Load () {
    this.loadBar = null;
    this.playButton = null;
    this.background = null;
    this.failed = false;
}

Load.shouldLoadAudio = function () {
    try {
        return localStorage.getItem("ShapeClear_disableAudio") !== "true";
    } catch (e) {
        return true;
    }
};

Load.prototype.preload = function () {
    // Apple fools joke!
    game.smoothed = false;

    var r = this.game.resolution;
    game.canvas.oncontextmenu = function (e) {
        e.preventDefault();
    };
    if (/Android 2\./.test(navigator.userAgent)) {
        this.game.device.m4a = false;
    }
    this.loadBar = this.add.text(this.game.width / 2, this.game.height / 2, 'Loading assets...');
    this.loadBar.x -= this.loadBar.width / (2 * r);
    this.loadBar.y -= this.loadBar.height / (2 * r);
    this.testRenderer();

    // some game settings
    game.scale.scaleMode = Phaser.ScaleManager.USER_SCALE;
    game.scale.onResize = function () {
        var rect = getWindowSize();
        game.scale.setGameSize(rect[0], rect[1]);
    };
    game.time.advancedTiming = true;
    game.stage.backgroundColor = '#0080ff';

    // load assets
    game.load.onFileError.add(this.fileError, this);
    game.load.image('ball', 'assets/ball.png');
    if (Math.min(screen.width, screen.height) > 750) {
        this.gridPx = 72;
        game.load.atlasJSONArray('shapes', 'img/shapes8bit_big.png', 'img/shapes8bit_big.json');
        game.load.atlasJSONArray('number', 'img/number8bit_big.png', 'img/number8bit_big.json');
        game.load.atlasJSONArray('ui', 'img/ui_big.png', 'img/ui_big.json');
    }<commit_msg>no antialiasing<commit_after>function Load () {
    this.loadBar = null;
    this.playButton = null;
    this.background = null;
    this.failed = false;
}

Load.shouldLoadAudio = function () {
    try {
        return localStorage.getItem("ShapeClear_disableAudio") !== "true";
    } catch (e) {
        return true;
    }
};

Load.prototype.preload = function () {
    // Apple fools joke!
    game.stage.smoothed = false;

    var r = this.game.resolution;
    game.canvas.oncontextmenu = function (e) {
        e.preventDefault();
    };
    if (/Android 2\./.test(navigator.userAgent)) {
        this.game.device.m4a = false;
    }
    this.loadBar = this.add.text(this.game.width / 2, this.game.height / 2, 'Loading assets...');
    this.loadBar.x -= this.loadBar.width / (2 * r);
    this.loadBar.y -= this.loadBar.height / (2 * r);
    this.testRenderer();

    // some game settings
    game.scale.scaleMode = Phaser.ScaleManager.USER_SCALE;
    game.scale.onResize = function () {
        var rect = getWindowSize();
        game.scale.setGameSize(rect[0], rect[1]);
    };
    game.time.advancedTiming = true;
    game.stage.backgroundColor = '#0080ff';

    // load assets
    game.load.onFileError.add(this.fileError, this);
    game.load.image('ball', 'assets/ball.png');
    if (Math.min(screen.width, screen.height) > 750) {
        this.gridPx = 72;
        game.load.atlasJSONArray('shapes', 'img/shapes8bit_big.png', 'img/shapes8bit_big.json');
        game.load.atlasJSONArray('number', 'img/number8bit_big.png', 'img/number8bit_big.json');
        game.load.atlasJSONArray('ui', 'img/ui_big.png', 'img/ui_big.json');
    }
{'fraction_non_alphanumeric': 0.16076876143990237, 'fraction_numerical': 0.012812690665039659, 'mean_word_length': 2.7219069239500566, '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': '1827711', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1115, 'n_words': 185}