<commit_before>(function () {

    var gadgetPrefix = (osapi.container.GadgetHolder.IFRAME_ID_PREFIX_ = 'sandbox-'),
        containerPrefix = 'gadget-',
        gadgets = {},
        server = ues.global.server,
        host = ues.global.host,
        resolveURI = ues.dashboards.resolveURI,
        context = ues.global.context;

    var resolveGadgetURL = function (uri) {
        uri = resolveURI(uri);
        if (uri.match(/^https?:\/\//i)) {
            return uri;
        }
        uri = uri.replace(/^(..\/)*/i, '');

        var hostname = host.hostname ? host.hostname : window.location.hostname,
            port = host.port ? host.port : window.location.port,
            protocol = host.protocol ? (host.protocol + ":") : window.location.protocol;

        port = port ? (":" + port) : "";
        return protocol + '//' + hostname + ":" + port + context + '/' + uri;
    };<commit_msg>Updated the gadget index<commit_after>(function () {

    var gadgetPrefix = (osapi.container.GadgetHolder.IFRAME_ID_PREFIX_ = 'sandbox-'),
        containerPrefix = 'gadget-',
        gadgets = {},
        server = ues.global.server,
        host = ues.global.host,
        resolveURI = ues.dashboards.resolveURI,
        context = ues.global.context;

    var resolveGadgetURL = function (uri) {
        uri = resolveURI(uri);
        if (uri.match(/^https?:\/\//i)) {
            return uri;
        }
        uri = uri.replace(/^(..\/)*/i, '');

        var hostname = host.hostname ? host.hostname : window.location.hostname,
            port = host.port ? host.port : window.location.port,
            protocol = host.protocol ? (host.protocol + ":") : window.location.protocol;

        port = port ? (":" + port) : "";
        return protocol + '//' + hostname + port + context + '/' + uri;
    };
{'fraction_non_alphanumeric': 0.16177285318559556, 'fraction_numerical': 0.0, 'mean_word_length': 2.0714285714285716, 'pattern_counts': {'":': 5, '<': 3, '<?xml version=': 0, '>': 3, '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': '5318632', 'n_tokens_mistral': 554, 'n_tokens_neox': 553, 'n_words': 103}