<commit_before>﻿//程序入口
define(function (require) {

    var $ = require("jquery"),
        game = require("game"),
        util = require("util"),
        config = require("config");

    $(document).ready(function () {
        var canvas = $("#mainCanvas").get(0),
            context = canvas.getContext("2d"),
            $close = $('#close'),
            $start = $('#start');

        canvas.height = config.get("canvas.height");
        canvas.width = config.get("canvas.width");

        $start.click(function () {
            if (context && game.init(context)) {
                $close.show();
            }
        });

        $close.click(function () {
            game.exit();
            $(this).hide();
        });

    });
<commit_msg>bug fix<commit_after>﻿//程序入口
define(function (require) {

    var $ = require("jquery"),
        util = require("util"),
        game = require("game"),
        config = require("config");

    $(document).ready(function () {
        var canvas = $("#mainCanvas").get(0),
            context = canvas.getContext("2d"),
            $close = $('#close'),
            $start = $('#start');

        canvas.height = config.get("canvas.height");
        canvas.width = config.get("canvas.width");

        $start.click(function () {
            if (context && game.init(context)) {
                $close.show();
            }
        });

        $close.click(function () {
            game.exit();
            $(this).hide();
        });

    });

{'fraction_non_alphanumeric': 0.19143239625167335, 'fraction_numerical': 0.002677376171352075, 'mean_word_length': 1.7380952380952381, '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': '628808', 'n_tokens_mistral': 414, 'n_tokens_neox': 401, 'n_words': 67}