<commit_before>var elFinder = {};

define([
    "require",
    "dojo/_base/declare",
    "dojo/_base/lang",
    "dojo/_base/config",
    "dojo/window",
    "dijit/registry",
    "../_include/_PageMixin",
    "jquery/jquery.min",
    "jquery-ui/jquery-ui.min",
    "../../config/elfinder_config",
    "elfinder/js/elfinder.full",
    //"elfinder/js/i18n/elfinder.de",
    "dijit/layout/TabContainer",
    "dijit/layout/ContentPane",
    "../../AuthToken",
    "../../locale/Dictionary",
    "dojo/text!./template/BrowsePage.html",
    "dojo/domReady!"
], function (
    require,
    declare,
    lang,
    config,
    win,
    registry,
    _Page,
    jQuery,
    jQueryUi,
    elFinderConfig,
    elFinder,
    //i18n_elfinderDe,
    TabContainer,
    ContentPane,
    AuthToken,
    Dict,
    template
) {
    return declare([_Page], {

        templateString: lang.replace(template, Dict.tplTranslate),
        contextRequire: require,
        title: Dict.translate('Media'),

        elfinderInstance: null,

        constructor: function(params) {
            declare.safeMixin(this, params);
            // get package locations
            var packageLocations = {};
            for(var i=0, count=dojoConfig.packages.length; i<count; i++) {
                var curPackage = dojoConfig.packages[i];
                packageLocations[curPackage.name] = curPackage.location;
            }
            // add elfinder css
            this.setCss(packageLocations['jquery-ui']+'/themes/smoothness/jquery-ui.min.css', 'all');
            this.setCss(packageLocations['elfinder']+'/css/elfinder.min.css', 'all');
            this.setCss(packageLocations['elfinder']+'/css/theme.css', 'all');
        },

        postCreate: function() {
            this.inherited(arguments);

            // tab navigation
            registry.byId("tabContainer").watch("selectedChildWidget", lang.hitch(this, function(name, oval, nval){
                if (nval.id === "contentTab") {
                    window.location.assign(config.app.pathPrefix+'link?'+this.request.getQueryString());
                }
            }));<commit_msg>removed access to global variable<commit_after>var elFinder = {};

define([
    "require",
    "dojo/_base/declare",
    "dojo/_base/lang",
    "dojo/_base/config",
    "dojo/window",
    "dijit/registry",
    "../_include/_PageMixin",
    "jquery/jquery.min",
    "jquery-ui/jquery-ui.min",
    "../../config/elfinder_config",
    "elfinder/js/elfinder.full",
    //"elfinder/js/i18n/elfinder.de",
    "dijit/layout/TabContainer",
    "dijit/layout/ContentPane",
    "../../AuthToken",
    "../../locale/Dictionary",
    "dojo/text!./template/BrowsePage.html",
    "dojo/domReady!"
], function (
    require,
    declare,
    lang,
    config,
    win,
    registry,
    _Page,
    jQuery,
    jQueryUi,
    elFinderConfig,
    elFinder,
    //i18n_elfinderDe,
    TabContainer,
    ContentPane,
    AuthToken,
    Dict,
    template
) {
    return declare([_Page], {

        templateString: lang.replace(template, Dict.tplTranslate),
        contextRequire: require,
        title: Dict.translate('Media'),

        elfinderInstance: null,

        constructor: function(params) {
            declare.safeMixin(this, params);
            // get package locations
            var packageLocations = {};
            for(var i=0, count=config.packages.length; i<count; i++) {
                var curPackage = config.packages[i];
                packageLocations[curPackage.name] = curPackage.location;
            }
            // add elfinder css
            this.setCss(packageLocations['jquery-ui']+'/themes/smoothness/jquery-ui.min.css', 'all');
            this.setCss(packageLocations['elfinder']+'/css/elfinder.min.css', 'all');
            this.setCss(packageLocations['elfinder']+'/css/theme.css', 'all');
        },

        postCreate: function() {
            this.inherited(arguments);

            // tab navigation
            registry.byId("tabContainer").watch("selectedChildWidget", lang.hitch(this, function(name, oval, nval){
                if (nval.id === "contentTab") {
                    window.location.assign(config.app.pathPrefix+'link?'+this.request.getQueryString());
                }
            }));
{'fraction_non_alphanumeric': 0.152797367183827, 'fraction_numerical': 0.0023507287259050304, 'mean_word_length': 2.201655379984951, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1540940', 'n_tokens_mistral': 1319, 'n_tokens_neox': 1305, 'n_words': 188}