<commit_before>//ranking is mostly arbitrary
var Groupsranking = [' ', 'T', 'L', 'S', 'P', 'F', 'ß', 'T','C'];
var Groups = {
        'C': {
                id: "champion",
                name: "Champion",
                rank: 8
        },
        'T': {
                id: "rg",
                name: "Royal Guard",
                rank: 7
        },
        'ß': {
                id: "brain",
                name: "Frontier Brain",
                rank: 6
        },
        'F': {
                id: "frontier",
                name: "Frontier",
                rank: 5
        },
        'P': {
                id: "professor",
                name: "Professor",
                rank: 4
        },
        'S': {
                id: "elite",
                name: "Elite",
                rank: 3
        },
        'L': {
                id: "gleader",
                name: "Gym Leader",
                rank: 2
        },
        'T': {
                id: "trainer",
                name: "Gym Trainer",
                rank: 1
        },
        ' ': {
                rank: 0
        }
}

exports.commands = {
        leaguedeauth: 'leaguepromote',
        roomtrainer: 'leaguepromote',
        roomgleader: 'leaguepromote',
        roomelite: 'leaguepromote',
        roombrain: 'leaguepromote',
        roomfrontier: 'leaguepromote',
        roomchampion: 'leaguepromote',
        roomrg: 'leaguepromote',
        roomprofessor: 'leaguepromote',
        leaguedemote: 'leagueauth',
        leaguepromote: function (target, room, user, connection, cmd) {
                if (!room.auth) {
                        this.sendReply("/leagueauth - This room isn't designed for per-room moderation");
                        return this.sendReply("Before setting league staff, you need to set it up with /roomfounder");
                }
                if (!target) return this.parse('/leagueauth [user] - Giver a user a rank in a league.');
                if (!this.can('roommod', null, room)) return false;

                target = this.splitTarget(target, true);
                var targetUser = this.targetUser;
                var userid = toId(this.targetUsername);
                var name = targetUser ? targetUser.name : this.targetUsername;

                if (!userid) return this.parse('/leagueauth [user] - Giver a user a rank in a league.');
                if (!targetUser && (!room.auth || !room.auth[userid])) {
                        return this.sendReply("User '" + name + "' is offline and unauthed, and so can't be promoted.");<commit_msg>Update leagueauth.js<commit_after>//ranking is mostly arbitrary
var Groupsranking = [' ', 'T', 'L', 'S', 'P', 'F', 'ß', 'T','C','α'];
var Groups = {
        'α': {
        	id: "ace",
        	name: "Ace",
        	rank:9
        },
        'C': {
                id: "champion",
                name: "Champion",
                rank: 8
        },
        'T': {
                id: "rg",
                name: "Royal Guard",
                rank: 7
        },
        'ß': {
                id: "brain",
                name: "Frontier Brain",
                rank: 6
        },
        'F': {
                id: "frontier",
                name: "Frontier",
                rank: 5
        },
        'P': {
                id: "professor",
                name: "Professor",
                rank: 4
        },
        'S': {
                id: "elite",
                name: "Elite",
                rank: 3
        },
        'L': {
                id: "gleader",
                name: "Gym Leader",
                rank: 2
        },
        'T': {
                id: "trainer",
                name: "Gym Trainer",
                rank: 1
        },
        ' ': {
                rank: 0
        }
}

exports.commands = {
        leaguedeauth: 'leaguepromote',
        roomtrainer: 'leaguepromote',
        roomgleader: 'leaguepromote',
        roomelite: 'leaguepromote',
        roombrain: 'leaguepromote',
        roomfrontier: 'leaguepromote',
        roomchampion: 'leaguepromote',
        roomrg: 'leaguepromote',
        roomprofessor: 'leaguepromote',
        roomace: 'leaguepromote',
        leaguedemote: 'leagueauth',
        leaguepromote: function (target, room, user, connection, cmd) {
                if (!room.auth) {
                        this.sendReply("/leagueauth - This room isn't designed for per-room moderation");
                        return this.sendReply("Before setting league staff, you need to set it up with /roomfounder");
                }
                if (!target) return this.parse('/leagueauth [user] - Giver a user a rank in a league.');
                if (!this.can('roommod', null, room)) return false;

                target = this.splitTarget(target, true);
                var targetUser = this.targetUser;
                var userid = toId(this.targetUsername);
                var name = targetUser ? targetUser.name : this.targetUsername;

                if (!userid) return this.parse('/leagueauth [user] - Giver a user a rank in a league.');
                if (!targetUser && (!room.auth || !room.auth[userid])) {
                        return this.sendReply("User '" + name + "' is offline and unauthed, and so can't be promoted.");
{'fraction_non_alphanumeric': 0.12895284983904565, 'fraction_numerical': 0.0035978034463169852, 'mean_word_length': 1.2708512467755804, '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': '3919150', 'n_tokens_mistral': 1564, 'n_tokens_neox': 1410, 'n_words': 388}