<commit_before>(function() {
    var gradient = "qlineargradient(spread:pad, x1:0.432, y1:0.692955, x2:0.145, y2:1, stop:0 rgba(139, 191, 228, 255), stop:1 rgba(189, 221, 246, 255))";
    var tourtier = "",
        roundnumber = 0,
        isFinals = false,
        prize = "",
        tournumber = 0,
        tourmembers = [],
        tourips = [],
        tourbattlers = [],
        tourplayers = [],
        battlesStarted = [],
        battlesLost = [];

    function tourbox(msg) {
        sys.sendHtmlAll("<br/><center><table width=50% bgcolor=gray><tr style='background-color:" + gradient + "'><td align=center><br/>" + msg + "<br/></td></tr></table></center><br/>", 0);
    }

    function tourboxSelf(src, msg, chan) {
        sys.sendHtmlMessage(src, "<br/><center><table width=50% bgcolor=gray><tr style='background-color:" + gradient + "'><td align=center><br/>" + msg + "<br/></td></tr></table></center><br/>", chan);
    }

    function addCommands() {
        var commands = require('commands');
        var addListCommand = commands.addListCommand,
            addCommand     = commands.addCommand,
            addPlusPlusCommand = commands.addPlusPlusCommand;

        addListCommand(0, "tourusercommands", "Tour");

        addCommand(0, "join", function (src, commandData, chan) {
            if (tourmode !== 1) {
                bot.sendMessage(src, "Sorry, you are unable to join because a tournament is not currently running or has passed the signups phase.", chan);
                return;<commit_msg>Fix tourboxSelf<commit_after>(function() {
    var gradient = "qlineargradient(spread:pad, x1:0.432, y1:0.692955, x2:0.145, y2:1, stop:0 rgba(139, 191, 228, 255), stop:1 rgba(189, 221, 246, 255))";
    var tourtier = "",
        roundnumber = 0,
        isFinals = false,
        prize = "",
        tournumber = 0,
        tourmembers = [],
        tourips = [],
        tourbattlers = [],
        tourplayers = [],
        battlesStarted = [],
        battlesLost = [];

    function tourbox(msg) {
        sys.sendHtmlAll("<br/><center><table width=50% bgcolor=gray><tr style='background-color:" + gradient + "'><td align=center><br/>" + msg + "<br/></td></tr></table></center><br/>", 0);
    }

    function tourboxSelf(src, msg, chan) {
        if (!sys.loggedIn(src) || !sys.isInChannel(src, chan)) {
            return;
        }

        sys.sendHtmlMessage(src, "<br/><center><table width=50% bgcolor=gray><tr style='background-color:" + gradient + "'><td align=center><br/>" + msg + "<br/></td></tr></table></center><br/>", chan);
    }

    function addCommands() {
        var commands = require('commands');
        var addListCommand = commands.addListCommand,
            addCommand     = commands.addCommand,
            addPlusPlusCommand = commands.addPlusPlusCommand;

        addListCommand(0, "tourusercommands", "Tour");

        addCommand(0, "join", function (src, commandData, chan) {
            if (tourmode !== 1) {
                bot.sendMessage(src, "Sorry, you are unable to join because a tournament is not currently running or has passed the signups phase.", chan);
                return;
{'fraction_non_alphanumeric': 0.16645489199491742, 'fraction_numerical': 0.035578144853875476, 'mean_word_length': 2.6830409356725147, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '5676339', 'n_tokens_mistral': 1054, 'n_tokens_neox': 946, 'n_words': 217}