<commit_before>var e = module.exports = {};
var bu;

var bot;
e.init = (Tbot, blargutil) => {
    bot = Tbot;
    bu = blargutil;

    e.category = bu.TagType.COMPLEX;
};

e.requireCtx = require;

e.isTag = true;
e.name = `length`;
e.args = `&lt;text&gt;`;
e.usage = `{length;text}`;
e.desc = `Gives the amount of characters in <code>text</code>.`;
e.exampleIn = `What you said is {length;{args}} chars long.`;
e.exampleOut = `What you said is 5 chars long.`;


e.execute = (params) => {
    params.args[1] = bu.processTagInner(params, 1);
    let args1 = params.args[1];
    let replaceContent = false;
    let replaceString = args1.length.toString();

    return {
        replaceString: replaceString,
        replaceContent: replaceContent
    };
};
<commit_msg>error checking<commit_after>var e = module.exports = {};
var bu;

var bot;
e.init = (Tbot, blargutil) => {
    bot = Tbot;
    bu = blargutil;

    e.category = bu.TagType.COMPLEX;
};

e.requireCtx = require;

e.isTag = true;
e.name = `length`;
e.args = `&lt;text&gt;`;
e.usage = `{length;text}`;
e.desc = `Gives the amount of characters in <code>text</code>.`;
e.exampleIn = `What you said is {length;{args}} chars long.`;
e.exampleOut = `What you said is 5 chars long.`;


e.execute = (params) => {
    let replaceContent = false;
    let replaceString;
    if (params.args.length >= 2) {
        params.args[1] = bu.processTagInner(params, 1);
        let args1 = params.args[1];
        replaceString = args1.length;
    } else {
        replaceString = bu.tagProcessError(params.fallback, '`Not enough arguments`')
    }

    return {
        replaceString: replaceString,
        replaceContent: replaceContent
    };
};

{'fraction_non_alphanumeric': 0.1559362079149439, 'fraction_numerical': 0.00767867690490254, 'mean_word_length': 3.0819277108433734, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7411273', 'n_tokens_mistral': 614, 'n_tokens_neox': 602, 'n_words': 149}