<commit_before>(function(global) {
    "use strict";

    var default_i18n = new Jed({
        locale_data: TRANSLATIONS,
        domain: "indico"
    });

    global.i18n = default_i18n;
    global.$T = _.bind(default_i18n.gettext, default_i18n);

    ['gettext', 'ngettext', 'pgettext', 'npgettext', 'translate'].forEach(function(method_name) {
        global.$T[method_name] = _.bind(default_i18n[method_name], default_i18n);
    });

    global.$T.domain = _.memoize(function(domain) {
        return new Jed({
            locale_data: TRANSLATIONS,
            domain: domain
        });
    });
}(window));<commit_msg>Make it more obvious that TRANSLATIONS is global<commit_after>(function(global) {
    "use strict";

    var default_i18n = new Jed({
        locale_data: global.TRANSLATIONS,
        domain: "indico"
    });

    global.i18n = default_i18n;
    global.$T = _.bind(default_i18n.gettext, default_i18n);

    ['gettext', 'ngettext', 'pgettext', 'npgettext', 'translate'].forEach(function(method_name) {
        global.$T[method_name] = _.bind(default_i18n[method_name], default_i18n);
    });

    global.$T.domain = _.memoize(function(domain) {
        return new Jed({
            locale_data: global.TRANSLATIONS,
            domain: domain
        });
    });
}(window));
{'fraction_non_alphanumeric': 0.14649190439475712, 'fraction_numerical': 0.02158828064764842, 'mean_word_length': 2.957317073170732, 'pattern_counts': {'":': 0, '<': 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': '4015201', 'n_tokens_mistral': 454, 'n_tokens_neox': 423, 'n_words': 74}