<commit_before>var e = module.exports = {};
var bu;
var exec = require('child_process').exec;

var bot;
e.init = (Tbot, blargutil) => {
    bot = Tbot;
    bu = blargutil;
    e.category = bu.CommandType.CAT;

};

e.requireCtx = require;

e.isCommand = true;
e.hidden = false;
e.usage = 'Yo shit waddup we\'re updating';
e.info = 'Does a git pull';

e.execute = (msg, words) => {
    if (msg.author.id === bu.CAT_ID) {

        if (!bu.config.general.isbeta) {
            exec('cd /home/cat/blargjs\ngit pull origin master', (err, stdout, stderr) => {
                var message = '```xl\n';
                if (err) {
                    message += err + '\n';
                }
                if (stderr) {
                    message += stderr + '\n';
                }
                if (stdout) {
                    message += stdout + '\n';
                }

                message += '```';
                if (stdout.indexOf('Already up-to-date.') == -1) {
                    var type = 2;
                    if (words.length > 1) {
                        switch (words[1].toLowerCase()) {
                            case 'major':
                                type = 1;
                                break;
                            case 'overhaul':
                                type = 0;
                                break;
                        }
                    }
                    var oldVersion = bu.config.version;
                    var bits = oldVersion.split('.');
                    bits[type] = parseInt(bits[type]) + 1;
                    bu.config.version = bits.join('.');
                    bu.VERSION = bu.config.version;
                    message += `\nNow running on version \`${bu.config.version}\`!`;
                    bu.saveConfig();
                }
                bu.sendMessageToDiscord(msg.channel.id, message);

            });
        } else {
            bu.sendMessageToDiscord(msg.channel.id, `Whoa, you can't do that! This is the beta build!`);
        }
    }
};<commit_msg>made major/overhaul updates reset counter<commit_after>var e = module.exports = {};
var bu;
var exec = require('child_process').exec;

var bot;
e.init = (Tbot, blargutil) => {
    bot = Tbot;
    bu = blargutil;
    e.category = bu.CommandType.CAT;

};

e.requireCtx = require;

e.isCommand = true;
e.hidden = false;
e.usage = 'Yo shit waddup we\'re updating';
e.info = 'Does a git pull';

e.execute = (msg, words) => {
    if (msg.author.id === bu.CAT_ID) {

        if (!bu.config.general.isbeta) {
            exec('cd /home/cat/blargjs\ngit pull origin master', (err, stdout, stderr) => {
                var message = '```xl\n';
                if (err) {
                    message += err + '\n';
                }
                if (stderr) {
                    message += stderr + '\n';
                }
                if (stdout) {
                    message += stdout + '\n';
                }

                message += '```';
                if (stdout.indexOf('Already up-to-date.') == -1) {
                    var type = 2;
                    if (words.length > 1) {
                        switch (words[1].toLowerCase()) {
                            case 'major':
                                type = 1;
                                break;
                            case 'overhaul':
                                type = 0;
                                break;
                        }
                    }
                    var oldVersion = bu.config.version;
                    var bits = oldVersion.split('.');
                    bits[type] = parseInt(bits[type]) + 1;
                    while (type > 0) {
                        type--;
                        bits[type] = 0;
                    } 
                    bu.config.version = bits.join('.');
                    bu.VERSION = bu.config.version;
                    message += `\nNow running on version \`${bu.config.version}\`!`;
                    bu.saveConfig();
                }
                bu.sendMessageToDiscord(msg.channel.id, message);

            });
        } else {
            bu.sendMessageToDiscord(msg.channel.id, `Whoa, you can't do that! This is the beta build!`);
        }
    }
};
{'fraction_non_alphanumeric': 0.13166510757717492, 'fraction_numerical': 0.0037418147801683817, 'mean_word_length': 1.026054002842255, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': 2, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '614279', 'n_tokens_mistral': 1227, 'n_tokens_neox': 1138, 'n_words': 264}