<commit_before>var ddg_spice_canistreamit = function(api_result) {
    "use strict";

    var query = DDG.get_query().replace(/^(?:can\s*i?|how\s*to|where\s*(?:to|can\s+i))?\s*(?:find\s+a)?\s*(.+)$/, "$1");

    if(!api_result || api_result.length === 0 || 
       !DDG.stringsRelevant(api_result[0].title, query, ["stream", "watch", "streaming"])) {
        return;
    }

    var image_proxy = "/iu/?u=";
    Spice.render({
        data              : api_result,
        header1           : api_result[0].title,
        force_big_header  : true,
        source_name       : "Can I Stream.it?",
        image_url         : image_proxy + api_result[0].image,
        source_url        : api_result[0].links.shortUrl,
        template_normal   : "canistreamit",
        image_width       : 70
    });
};

Handlebars.registerHelper("createLinks", function(affiliates, options) {
    "use strict";

    var hasOwn = Object.prototype.hasOwnProperty,
        results = [];

    for(var index in affiliates) {
        if(hasOwn.call(affiliates, index)) {
            affiliates[index].friendlyName = affiliates[index].friendlyName.replace(/ Rental$/, "");
            results.push(affiliates[index]);
        }
    }

    options.hash.sep = ", ";
    options.hash.conj = " and ";
    return Handlebars.helpers.concat(results, options) + ".";
});

Handlebars.registerHelper("createMore", function(links, options) {
    "use strict";

    var results = [];

    if(links.rottentomatoes) {
        results.push({
            url: links.rottentomatoes,
            friendlyName: "Rotten Tomatoes"
        });
    }

    if(links.imdb) {
        results.push({
            url: links.imdb,
            friendlyName: "IMDB"
        });
    }

    options.hash.sep = ", ";
    options.hash.conj = " and ";
    return Handlebars.helpers.concat(results, options) + ".";
});<commit_msg>CanIStreamIt: Experimenting with template_small.<commit_after>var ddg_spice_canistreamit = function(api_result) {
    "use strict";

    var query = DDG.get_query().replace(/^(?:can\s*i?|how\s*to|where\s*(?:to|can\s+i))?\s*(?:find\s+a)?\s*(.+)$/, "$1");

    if(!api_result || api_result.length === 0/* || 
       !DDG.stringsRelevant(api_result[0].title, query, ["stream", "watch", "streaming"])*/) {
        return;
    }

    var image_proxy = "/iu/?u=";
    Spice.render({
        data              : api_result,
        header1           : api_result[0].title,
        force_big_header  : true,
        source_name       : "Can I Stream.it?",
        image_url         : image_proxy + api_result[0].image,
        source_url        : api_result[0].links.shortUrl,
        template_normal   : "canistreamit",
        template_small    : "canistreamit_small"
        image_width       : 70
    });
};

Handlebars.registerHelper("createLinks", function(affiliates, options) {
    "use strict";

    var hasOwn = Object.prototype.hasOwnProperty,
        results = [];

    for(var index in affiliates) {
        if(hasOwn.call(affiliates, index)) {
            affiliates[index].friendlyName = affiliates[index].friendlyName.replace(/ Rental$/, "");
            results.push(affiliates[index]);
        }
    }

    options.hash.sep = ", ";
    options.hash.conj = " and ";
    return Handlebars.helpers.concat(results, options) + ".";
});

Handlebars.registerHelper("createMore", function(links, options) {
    "use strict";

    var results = [];

    if(links.rottentomatoes) {
        results.push({
            url: links.rottentomatoes,
            friendlyName: "<NAME>"
        });
    }

    if(links.imdb) {
        results.push({
            url: links.imdb,
            friendlyName: "IMDB"
        });
    }

    options.hash.sep = ", ";
    options.hash.conj = " and ";
    return Handlebars.helpers.concat(results, options) + ".";
});
{'fraction_non_alphanumeric': 0.1599057838262235, 'fraction_numerical': 0.004710808688824915, 'mean_word_length': 2.3119584055459272, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2387954', 'n_tokens_mistral': 1246, 'n_tokens_neox': 1218, 'n_words': 188}