<commit_before>const help = require("../json/help.json");

module.exports = (message, client, helper) => {
    let embed = {
        "fields": [],
        "author": {
            "name": `Total: ${client.all_usage.all}`
        }
    }
    Object.keys(help).forEach(key => {
        embed.fields.push({
            "name": key,
            "value": help[key].map(topic => `\`${topic.name}\`: ${client.all_usage[topic.name] || 0}`).join("\n"), 
            "inline": true
        });
    });

    let len = embed.fields.length % 3;
    for (i = 0; i < 3 - len; i++) {
        embed.fields.push({
            "name": "\u200b",
            "value": "\u200b",
            "inline": true
        });
    }

    console.log(embed.fields.length)

    message.channel.createMessage({
        "embed": embed
    }).catch(err => helper.handle(message, err));
};<commit_msg>only count commands that are actually used<commit_after>const help = require("../json/help.json");

module.exports = (message, client, helper) => {
    let embed = {
        "fields": [],
        "author": {
            "name": `Total: ${client.all_usage.all}`
        }
    }
    Object.keys(help).forEach(key => {
        embed.fields.push({
            "name": key,
            "value": help[key].filter(topic => topic.name.split(" ").length === 1).map(topic => `\`${topic.name}\`: ${client.all_usage[topic.name] || 0}`).join("\n"), 
            "inline": true
        });
    });

    let len = embed.fields.length % 3;
    for (i = 0; i < 3 - len; i++) {
        embed.fields.push({
            "name": "\u200b",
            "value": "\u200b",
            "inline": true
        });
    }

    message.channel.createMessage({
        "embed": embed
    }).catch(err => helper.handle(message, err));
};
{'fraction_non_alphanumeric': 0.20463538722442057, 'fraction_numerical': 0.011871113623516111, 'mean_word_length': 1.8968903436988542, 'pattern_counts': {'":': 20, '<': 5, '<?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': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7174283', 'n_tokens_mistral': 579, 'n_tokens_neox': 556, 'n_words': 108}