<commit_before>module.exports = function (from, to, args) {
    oktw.checkAdmin(from, function(admin) {
        if (!admin) {
            oktw.say(from, to, 'Admin only!');
            return;
        }
        switch(args[1]) {
            case 'op':
                if(oktw.admin.indexOf(args[2]) < 0){
                    oktw.admin.push(args[2]);
                        oktw.say(from, to, 'Successfully!');
                }
                else {
                    oktw.say(from, to, 'User ' + args[2] + ' is already an operator.');
                }
                break;
            case 'deop':
                oktw.admin.indexOf(args[2]) > -1 && oktw.admin.splice(oktw.admin.indexOf(args[2]), 1);
                oktw.say(from, to, 'Deopped ' + args[2]);
                break;
            case 'ban':
                oktw.ignore.push(args[2]);
                oktw.say(from, to, 'Banned ' + args[2]);
                break;
            case 'unban':
                if(oktw.ignore.indexOf(args[2]) > -1){
                    oktw.ignore.splice(oktw.ignore.indexOf(args[2]), 1);
                }
                oktw.say(from, to, 'Unbanned ' + args[2]);
                break;
            case 'reload':
                oktw.reload();
                oktw.say(from, to, 'Bot reloaded!'
                break;
        }
    })
};

module.exports.info = {name:'admin', help:'Admin Command!', command:'admin'};<commit_msg>add command admin reload<commit_after>module.exports = function (from, to, args) {
    oktw.checkAdmin(from, function(admin) {
        if (!admin) {
            oktw.say(from, to, 'Admin only!');
            return;
        }
        switch(args[1]) {
            case 'op':
                if(oktw.admin.indexOf(args[2]) < 0){
                    oktw.admin.push(args[2]);
                        oktw.say(from, to, 'Successfully!');
                }
                else {
                    oktw.say(from, to, 'User ' + args[2] + ' is already an operator.');
                }
                break;
            case 'deop':
                oktw.admin.indexOf(args[2]) > -1 && oktw.admin.splice(oktw.admin.indexOf(args[2]), 1);
                oktw.say(from, to, 'Deopped ' + args[2]);
                break;
            case 'ban':
                oktw.ignore.push(args[2]);
                oktw.say(from, to, 'Banned ' + args[2]);
                break;
            case 'unban':
                if(oktw.ignore.indexOf(args[2]) > -1){
                    oktw.ignore.splice(oktw.ignore.indexOf(args[2]), 1);
                }
                oktw.say(from, to, 'Unbanned ' + args[2]);
                break;
            case 'reload':
                oktw.reload();
                oktw.say(from, to, 'Bot reloaded!');
                break;
        }
    })
};

module.exports.info = {name:'admin', help:'Admin Command!', command:'admin'};
{'fraction_non_alphanumeric': 0.1534189517528636, 'fraction_numerical': 0.011801457827143353, 'mean_word_length': 1.2692913385826772, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5784257', 'n_tokens_mistral': 930, 'n_tokens_neox': 854, 'n_words': 154}