<commit_before>function ddg_spice_bitly(api_result) {
    "use strict";

    // Exit immediately if we find an error message.
    if (!api_result || api_result.status_code !== 200 || !api_result.data || !api_result.data.url) {
        return;
    }

    // Check if it is a mobile browser (needs work). This was inspired by is.gd.
    api_result.data.mobile = false;
    if(window.navigator.userAgent.match(/Android|iPhone|iPad|iPod/i)) {
        api_result.data.mobile = true;
    }

    Spice.render({
        data             : api_result.data,
        header1          : "Shortened URL (Bitly)",
        source_url       : api_result.data.url + "+",
        image_url        : "https://duckduckgo.com/iu/?u=http://i.imgur.com/xVpFr.png",
        source_name      : "Bit.ly",
        template_normal  : "bitly",
        force_big_header : true
    });

    var selectText = function(url) {
        url.focus().select();
    };

    // If we displayed an input box, make sure we focus on it.
    var url = $("input#bitly-url");
    selectText(url);
    url.click(function() {
        selectText(url);
    });
}<commit_msg>Bitly: "Shortened URL" was changed to "Shortened Link."<commit_after>function ddg_spice_bitly(api_result) {
    "use strict";

    // Exit immediately if we find an error message.
    if (!api_result || api_result.status_code !== 200 || !api_result.data || !api_result.data.url) {
        return;
    }

    // Check if it is a mobile browser (needs work). This was inspired by is.gd.
    api_result.data.mobile = false;
    if(window.navigator.userAgent.match(/Android|iPhone|iPad|iPod/i)) {
        api_result.data.mobile = true;
    }

    Spice.render({
        data             : api_result.data,
        header1          : "Shortened Link (Bitly)",
        source_url       : api_result.data.url + "+",
        image_url        : "https://duckduckgo.com/iu/?u=http://i.imgur.com/xVpFr.png",
        source_name      : "Bit.ly",
        template_normal  : "bitly",
        force_big_header : true
    });

    var selectText = function(url) {
        url.focus().select();
    };

    // If we displayed an input box, make sure we focus on it.
    var url = $("input#bitly-url");
    selectText(url);
    url.click(function() {
        selectText(url);
    });
}
{'fraction_non_alphanumeric': 0.13793103448275862, 'fraction_numerical': 0.003491924923614142, 'mean_word_length': 2.214586255259467, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7430505', 'n_tokens_mistral': 764, 'n_tokens_neox': 736, 'n_words': 161}