<commit_before>const got = require('got');

exports.run = async (bot, msg, args) => {
    if (args.length < 1) {
        throw 'You must specify a repository or search term!';
    }

    const input = args.join(' ');

    if (input.indexOf('/') !== -1) {
        let repo = safeRepo(input);

        msg.edit(`:arrows_counterclockwise: Loading info for '${repo}'...`);

        const json = await got(`https://api.github.com/repos/${repo}`, { json: true });
        if (json.message === 'Not Found') {
            msg.error('That repository could not be found!');
        }

        msg.edit({
            embed: bot.utils.embed('', getInfo(json))
        });
    } else {
        msg.edit(`:arrows_counterclockwise: Searching for '${input}'...`);

        const json = await got(`https://api.github.com/search/repositories?q=${args.join('+')}`, { json: true });<commit_msg>Fixed //github being entirely broken<commit_after>const got = require('got');

exports.run = async (bot, msg, args) => {
    if (args.length < 1) {
        throw 'You must specify a repository or search term!';
    }

    const input = args.join(' ');

    if (input.indexOf('/') !== -1) {
        let repo = safeRepo(input);

        msg.edit(`:arrows_counterclockwise: Loading info for '${repo}'...`);

        const res = await got(`https://api.github.com/repos/${repo}`, { json: true });
        const json = res.body;
        if (json.message === 'Not Found') {
            msg.error('That repository could not be found!');
        }

        msg.edit({
            embed: bot.utils.embed('', getInfo(json))
        });
    } else {
        msg.edit(`:arrows_counterclockwise: Searching for '${input}'...`);

        const res = await got(`https://api.github.com/search/repositories?q=${args.join('+')}`, { json: true });
        const json = res.body;
{'fraction_non_alphanumeric': 0.1867831785909339, 'fraction_numerical': 0.002184598580010923, 'mean_word_length': 2.424299065420561, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '4015760', 'n_tokens_mistral': 568, 'n_tokens_neox': 549, 'n_words': 140}