<commit_before>
var fs = require('fs');
var badges = fs.createWriteStream('badges.txt', {'flags': 'a'});

exports.commands = {
    gdeclarered: 'gdeclare',
    gdeclaregreen: 'gdeclare',
    gdeclare: function(target, room, user, connection, cmd) {
        if (!target) return this.parse('/help gdeclare');
        if (!this.can('lockdown')) return false;

        var roomName = (room.isPrivate) ? 'a private room' : room.id;

        if (cmd === 'gdeclare') {
            for (var id in Rooms.rooms) {
                if (id !== 'global') Rooms.rooms[id].addRaw('<div class="broadcast-blue"><b><font size=1><i>Global declare from ' + roomName + '<br /></i></font size>' + target + '</b></div>');
            }
        }
        if (cmd === 'gdeclarered') {
            for (var id in Rooms.rooms) {
                if (id !== 'global') Rooms.rooms[id].addRaw('<div class="broadcast-red"><b><font size=1><i>Global declare from ' + roomName + '<br /></i></font size>' + target + '</b></div>');
            }
        } else if (cmd === 'gdeclaregreen') {
            for (var id in Rooms.rooms) {
                if (id !== 'global') Rooms.rooms[id].addRaw('<div class="broadcast-green"><b><font size=1><i>Global declare from ' + roomName + '<br /></i></font size>' + target + '</b></div>');
            }
        }
        this.logEntry(user.name + ' used /gdeclare');

    },

    gdeclarered: 'gdeclare',
    gdeclaregreen: 'gdeclare',
    gdeclare: function(target, room, user, connection, cmd) {
        if (!target) return this.parse('/help gdeclare');
        if (!this.can('lockdown')) return false;

        var roomName = (room.isPrivate) ? 'a private room' : room.id;

        if (cmd === 'gdeclare') {
            for (var id in Rooms.rooms) {
                if (id !== 'global') Rooms.rooms[id].addRaw('<div class="broadcast-blue"><b><font size=1><i>Global declare from ' + roomName + '<br /></i></font size>' + target + '</b></div>');
            }
        }
        if (cmd === 'gdeclarered') {
            for (var id in Rooms.rooms) {
                if (id !== 'global') Rooms.rooms[id].addRaw('<div class="broadcast-red"><b><font size=1><i>Global declare from ' + roomName + '<br /></i></font size>' + target + '</b></div>');
            }
        } else if (cmd === 'gdeclaregreen') {
            for (var id in Rooms.rooms) {
                if (id !== 'global') Rooms.rooms[id].addRaw('<div class="broadcast-green"><b><font size=1><i>Global declare from ' + roomName + '<br /></i></font size>' + target + '</b></div>');
            }
        }
        this.logModCommand(user.name + ' globally declared ' + target);
    },

    declaregreen: 'declarered',
    declarered: function(target, room, user, connection, cmd) {
        if (!target) return this.parse('/help declare');
        if (!this.can('declare', null, room)) return false;

        if (!this.canTalk()) return;

        if (cmd === 'declarered') {
            this.add('|raw|<div class="broadcast-red"><b>' + target + '</b></div>');
        } else if (cmd === 'declaregreen') {
            this.add('|raw|<div class="broadcast-green"><b>' + target + '</b></div>');
        }
        this.logModCommand(user.name + ' declared ' + target);
    },

    golddeclare: function(target, room, user, connection, cmd) {
        if (!target) return this.parse('/help declare');
        if (!this.can('declare', null, room)) return false;
        if (!this.canTalk()) return;
        this.add('|raw|<div class="broadcast-gold"><b>' + target + '</b></div>');
        this.logModCommand(user.name + ' declared ' + target);
    },

    pdeclare: function(target, room, user, connection, cmd) {
        if (!target) return this.parse('/help declare');
        if (!this.can('declare', null, room)) return false;

        if (!this.canTalk()) return;

        if (cmd === 'pdeclare') {
            this.add('|raw|<div class="broadcast-purple"><b>' + target + '</b></div>');
        } else if (cmd === 'pdeclare') {
            this.add('|raw|<div class="broadcast-purple"><b>' + target + '</b></div>');
        }
        this.logModCommand(user.name + ' declared ' + target);
    },	

    sd: 'declaremod',
    staffdeclare: 'declaremod',
    modmsg: 'declaremod',
    moddeclare: 'declaremod',
    declaremod: function(target, room, user) {
        if (!target) return this.sendReply('/declaremod [message] - Also /moddeclare and /modmsg');
        if (!this.can('declare', null, room)) return false;

        if (!this.canTalk()) return;

        this.privateModCommand('|raw|<div class="broadcast-red"><b><font size=1><i>Private Auth (Driver +) declare from ' + user.name + '<br /></i></font size>' + target + '</b></div>');

        this.logModCommand(user.name + ' mod declared ' + target);
    },
    
    hideuser: function (target, room, user, connection, cmd) {
	    if (!target) return this.sendReply('/hideuser [user] - Makes all prior messages posted by this user "poof" and replaces it with a button to see. Requires: &, ~');
	    if (!this.can('ban')) return false;
	    try {
	    	Rooms.rooms.staff.add('|unlink|hide|' + target);
	    	Rooms.rooms.staff.add(target + '\'s messages have been hidden by ' + user.name);
	    	this.logModCommand(target + '\'s messages have been hidden by ' + user.name);
	    	this.sendReply(target + '\'s messages have been sucessfully hidden.');
	    } catch (e) {
	    	this.sendReply("Something went wrong! Ahhhhhh!");
	    }
    },
		
    k: 'kick',<commit_msg>Update gold.js<commit_after>
var fs = require('fs');
var badges = fs.createWriteStream('badges.txt', {'flags': 'a'});

exports.commands = {
    gdeclarered: 'gdeclare',
    gdeclaregreen: 'gdeclare',
    gdeclare: function(target, room, user, connection, cmd) {
        if (!target) return this.parse('/help gdeclare');
        if (!this.can('lockdown')) return false;

        var roomName = (room.isPrivate) ? 'a private room' : room.id;

        if (cmd === 'gdeclare') {
            for (var id in Rooms.rooms) {
                if (id !== 'global') Rooms.rooms[id].addRaw('<div class="broadcast-blue"><b><font size=1><i>Global declare from ' + roomName + '<br /></i></font size>' + target + '</b></div>');
            }
        }
        if (cmd === 'gdeclarered') {
            for (var id in Rooms.rooms) {
                if (id !== 'global') Rooms.rooms[id].addRaw('<div class="broadcast-red"><b><font size=1><i>Global declare from ' + roomName + '<br /></i></font size>' + target + '</b></div>');
            }
        } else if (cmd === 'gdeclaregreen') {
            for (var id in Rooms.rooms) {
                if (id !== 'global') Rooms.rooms[id].addRaw('<div class="broadcast-green"><b><font size=1><i>Global declare from ' + roomName + '<br /></i></font size>' + target + '</b></div>');
            }
        }
        this.logEntry(user.name + ' used /gdeclare');

    },

    gdeclarered: 'gdeclare',
    gdeclaregreen: 'gdeclare',
    gdeclare: function(target, room, user, connection, cmd) {
        if (!target) return this.parse('/help gdeclare');
        if (!this.can('lockdown')) return false;

        var roomName = (room.isPrivate) ? 'a private room' : room.id;

        if (cmd === 'gdeclare') {
            for (var id in Rooms.rooms) {
                if (id !== 'global') Rooms.rooms[id].addRaw('<div class="broadcast-blue"><b><font size=1><i>Global declare from ' + roomName + '<br /></i></font size>' + target + '</b></div>');
            }
        }
        if (cmd === 'gdeclarered') {
            for (var id in Rooms.rooms) {
                if (id !== 'global') Rooms.rooms[id].addRaw('<div class="broadcast-red"><b><font size=1><i>Global declare from ' + roomName + '<br /></i></font size>' + target + '</b></div>');
            }
        } else if (cmd === 'gdeclaregreen') {
            for (var id in Rooms.rooms) {
                if (id !== 'global') Rooms.rooms[id].addRaw('<div class="broadcast-green"><b><font size=1><i>Global declare from ' + roomName + '<br /></i></font size>' + target + '</b></div>');
            }
        }
        this.logModCommand(user.name + ' globally declared ' + target);
    },

    declaregreen: 'declarered',
    declarered: function(target, room, user, connection, cmd) {
        if (!target) return this.parse('/help declare');
        if (!this.can('declare', null, room)) return false;

        if (!this.canTalk()) return;

        if (cmd === 'declarered') {
            this.add('|raw|<div class="broadcast-red"><b>' + target + '</b></div>');
        } else if (cmd === 'declaregreen') {
            this.add('|raw|<div class="broadcast-green"><b>' + target + '</b></div>');
        }
        this.logModCommand(user.name + ' declared ' + target);
    },

    golddeclare: function(target, room, user, connection, cmd) {
        if (!target) return this.parse('/help declare');
        if (!this.can('declare', null, room)) return false;
        if (!this.canTalk()) return;
        this.add('|raw|<div class="broadcast-gold"><b>' + target + '</b></div>');
        this.logModCommand(user.name + ' declared ' + target);
    },

    pdeclare: function(target, room, user, connection, cmd) {
        if (!target) return this.parse('/help declare');
        if (!this.can('declare', null, room)) return false;

        if (!this.canTalk()) return;

        if (cmd === 'pdeclare') {
            this.add('|raw|<div class="broadcast-purple"><b>' + target + '</b></div>');
        } else if (cmd === 'pdeclare') {
            this.add('|raw|<div class="broadcast-purple"><b>' + target + '</b></div>');
        }
        this.logModCommand(user.name + ' declared ' + target);
    },	

    sd: 'declaremod',
    staffdeclare: 'declaremod',
    modmsg: 'declaremod',
    moddeclare: 'declaremod',
    declaremod: function(target, room, user) {
        if (!target) return this.sendReply('/declaremod [message] - Also /moddeclare and /modmsg');
        if (!this.can('declare', null, room)) return false;

        if (!this.canTalk()) return;

        this.privateModCommand('|raw|<div class="broadcast-red"><b><font size=1><i>Private Auth (Driver +) declare from ' + user.name + '<br /></i></font size>' + target + '</b></div>');

        this.logModCommand(user.name + ' mod declared ' + target);
    },
    
    hideuser: function (target, room, user, connection, cmd) {
	    if (!target) return this.sendReply('/hideuser [user] - Makes all prior messages posted by this user "poof" and replaces it with a button to see. Requires: @, &, ~');
	    if (!this.can('ban')) return false;
	    try {
	    	Rooms.rooms.staff.add('|unlink|hide|' + target);
	    	Rooms.rooms.staff.add(target + '\'s messages have been hidden by ' + user.name);
	    	this.logModCommand(target + '\'s messages have been hidden by ' + user.name);
	    	this.sendReply(target + '\'s messages have been sucessfully hidden.');
	    } catch (e) {
	    	this.sendReply("Something went wrong! Ahhhhhh!");
	    }
    },
		
    k: 'kick',
{'fraction_non_alphanumeric': 0.19429248723559445, 'fraction_numerical': 0.001276440554339898, 'mean_word_length': 2.5869849574885544, 'pattern_counts': {'":': 0, '<': 169, '<?xml version=': 0, '>': 169, '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': '7445576', 'n_tokens_mistral': 3530, 'n_tokens_neox': 3341, 'n_words': 846}