<commit_before>const CensorBuilder = require("../CensorBuilder");
module.exports = {
    exec: async function (msg, args) {

        let evaLUAted;
        try { evaLUAted = await eval(`(async () => {${args}})()`); }
        catch (err) { evaLUAted = err.message; console.error(err.stack); }
        let overall;
        if (typeof evaLUAted !== "string") {
            overall = require("util").inspect(evaLUAted);
        } else overall = evaLUAted;
        const censor = new CensorBuilder();
        let data = `\`\`\`js\n${overall.replace(censor.build(), "jako rilý?")}\n\`\`\``;
        if (data.length > 2048) {
            if (config.gistKey) {
                let gist;
                try {
                    gist = await require("superagent").post("https://api.github.com/gists").set("Authorization", `Token ${config.gistKey}`).send({
                        description: "Evaluated code",
                        public: false,
                        files: {
                            "exec.md": {
                                content: data
                            }
                        }
                    });

                } catch (err) {
                    console.log(overall); // we don't replace anything here, because that's console
                }
                return await msg.channel.createMessage({
                    embed: {
                        title: "Evaluated!",
                        color: 0x008800,
                        description: `The data are too long. [View the gist here](${gist.body.html_url})`
                    }
                });
            } else {<commit_msg>Snek the fetch<commit_after>const CensorBuilder = require("../CensorBuilder");
module.exports = {
    exec: async function (msg, args) {

        let evaLUAted;
        try { evaLUAted = await eval(`(async () => {${args}})()`); }
        catch (err) { evaLUAted = err.message; console.error(err.stack); }
        let overall;
        if (typeof evaLUAted !== "string") {
            overall = require("util").inspect(evaLUAted);
        } else overall = evaLUAted;
        const censor = new CensorBuilder();
        let data = `\`\`\`js\n${overall.replace(censor.build(), "jako rilý?")}\n\`\`\``;
        if (data.length > 2048) {
            if (config.gistKey) {
                let gist;
                try {
                    gist = await require("snekfetch").post("https://api.github.com/gists").set("Authorization", `Token ${config.gistKey}`).send({
                        description: "Evaluated code",
                        public: false,
                        files: {
                            "exec.md": {
                                content: data
                            }
                        }
                    });

                } catch (err) {
                    console.log(overall); // we don't replace anything here, because that's console
                }
                return await msg.channel.createMessage({
                    embed: {
                        title: "Evaluated!",
                        color: 0x008800,
                        description: `The data are too long. [View the gist here](${gist.body.html_url})`
                    }
                });
            } else {
{'fraction_non_alphanumeric': 0.13191489361702127, 'fraction_numerical': 0.006686930091185411, 'mean_word_length': 1.2372535690006798, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '7413327', 'n_tokens_mistral': 925, 'n_tokens_neox': 856, 'n_words': 188}