<commit_before>async function ban(data) {
    if(data.msg.mentions.user.size === 0) return data.msg.channel.send('Required usage of `user` is required.');
    let mem = data.msg.guild.member(data.msg.mentions.users.first())
    if(!mem) return data.msg.channel.send('Please include a valid member!');
    if(!data.args) return data.msg.channel.send('Required usage of `reason` is required.')
}

module.exports = {
    commands: [
        {
            trigger: ["ban", "banne"],
            call: ban,
            description: "Check the bot's heatbeat and latency.",
            category: "mod",
            usage: "ban @user reason",
            permissions: 0
        }
    ]
}<commit_msg>banne<commit_after>async function ban(data) {
    if (data.msg.mentions.users.size === 0) return data.msg.channel.send('Required usage of `user` is required.').then(data.complete).catch(data.err);
    let mem = data.msg.guild.member(data.msg.mentions.users.first())
    if (!mem) return data.msg.channel.send('Please include a valid member!').then(data.complete).catch(data.err);
    let reason = data.args.slice(1).join(" ").replace(mem, "")
    if (!data.args[1]) return data.msg.channel.send('Required usage of `reason` is required.').then(data.complete).catch(data.err);
    await mem.ban(7).then(data.complete).catch(data.err);
    data.msg.channel.sendMessage(`:hammer: User \`${mem.user.username}#${mem.user.discriminator}\` was banned for the following reason: \`${reason}\``)
}

module.exports = {
    commands: [{
        trigger: ["ban", "banne"],
        call: ban,
        description: "Check the bot's heatbeat and latency.",
        category: "mod",
        usage: "ban @user reason",
        permissions: 0
    }]
}
{'fraction_non_alphanumeric': 0.1677307022634939, 'fraction_numerical': 0.004062681369704005, 'mean_word_length': 3.0660377358490565, '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': '1170005', 'n_tokens_mistral': 541, 'n_tokens_neox': 533, 'n_words': 123}