<commit_before>function getExports(parent, navigator) {

    //<%= gwtContent %>

    gwtOnLoad();
    var toReturn = $wnd['<%= exportsName %>'];

    toReturn.version = '<%= version %>';

    return toReturn;
}

(function loadFromGWT() {

    var navigator = {
        userAgent: 'webkit'
    };

    var fakeWindow = {
        document: {
            compatMode: 'CSS1Compat'
        }
    };

    if (typeof module !== 'undefined' && module.exports) { // NodeJS
        var timers = require('timers');
        fakeWindow.setTimeout = timers.setTimeout;
        fakeWindow.clearTimeout = timers.clearTimeout;
        module.exports = getExports(fakeWindow, navigator);
    } else { // Browser
        fakeWindow.setTimeout = function () {
            return window.setTimeout.apply(window, arguments);
        };
        fakeWindow.clearTimeout = function () {
            return window.clearTimeout.apply(window, arguments);
        };
        if (typeof define === 'function' && define.amd) { // AMD
            define(function () {
                return getExports(fakeWindow, navigator);
            });
        } else { // Global
            window['<%= exportsName %>'] = getExports(fakeWindow, navigator);
        }
    }

})();<commit_msg>export directly Chemcalc<commit_after>function getExports(parent, navigator) {

    //<%= gwtContent %>

    gwtOnLoad();
    toReturn = $wnd.CI.Chemcalc;
    toReturn.version = '<%= version %>';

    return toReturn;
}

(function loadFromGWT() {

    var navigator = {
        userAgent: 'webkit'
    };

    var fakeWindow = {
        document: {
            compatMode: 'CSS1Compat'
        }
    };

    if (typeof module !== 'undefined' && module.exports) { // NodeJS
        var timers = require('timers');
        fakeWindow.setTimeout = timers.setTimeout;
        fakeWindow.clearTimeout = timers.clearTimeout;
        module.exports = getExports(fakeWindow, navigator);
    } else { // Browser
        fakeWindow.setTimeout = function () {
            return window.setTimeout.apply(window, arguments);
        };
        fakeWindow.clearTimeout = function () {
            return window.clearTimeout.apply(window, arguments);
        };
        if (typeof define === 'function' && define.amd) { // AMD
            define(function () {
                return getExports(fakeWindow, navigator);
            });
        } else { // Global
            window.Chemcalc = getExports(fakeWindow, navigator);
        }
    }

})();
{'fraction_non_alphanumeric': 0.13411196133709222, 'fraction_numerical': 0.0008054772452678212, 'mean_word_length': 2.105, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7604656', 'n_tokens_mistral': 715, 'n_tokens_neox': 683, 'n_words': 135}