<commit_before>// Initializing modules
var domAdapter = require('./domAdapter.js'),
    templates = require('./templates.js'),
    appState = require('./appState.js'),
    services = require('./services.js'),
    validators = require('./validators.js'),
    settings = require('./settings.js');

// Function.prototype.bind polyfill
if (!Function.prototype.bind) {
    Function.prototype.bind = function(obj) {
        if(typeof this !== 'function') // closest thing possible to the ECMAScript 5 internal IsCallable function
            throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');

        var slice = [].slice,
            args = slice.call(arguments, 1),
            self = this,
            nop = function () {},
            bound = function () {
                return self.apply(
                    this instanceof nop? this: (obj||{}),
                    args.concat(slice.call(arguments))
                );
            };

        bound.prototype = this.prototype;

        return bound;
    };
}

domAdapter.onDOMReady(function onDOMReady() {
    settings.baseURI = location.protocol + '//' + location.host + '/' + settings.basePath;

    appState.init();
});

setTimeout(function() { // clearing callstack
    try {
        require('misc/init' + '.js');   // hack to disable dependency management
    } catch (err) {

    }
}, 0);<commit_msg>deleted superfluous slash<commit_after>// Initializing modules
var domAdapter = require('./domAdapter.js'),
    templates = require('./templates.js'),
    appState = require('./appState.js'),
    services = require('./services.js'),
    validators = require('./validators.js'),
    settings = require('./settings.js');

// Function.prototype.bind polyfill
if (!Function.prototype.bind) {
    Function.prototype.bind = function(obj) {
        if(typeof this !== 'function') // closest thing possible to the ECMAScript 5 internal IsCallable function
            throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');

        var slice = [].slice,
            args = slice.call(arguments, 1),
            self = this,
            nop = function () {},
            bound = function () {
                return self.apply(
                    this instanceof nop? this: (obj||{}),
                    args.concat(slice.call(arguments))
                );
            };

        bound.prototype = this.prototype;

        return bound;
    };
}

domAdapter.onDOMReady(function onDOMReady() {
    settings.baseURI = location.protocol + '//' + location.host + settings.basePath;

    appState.init();
});

setTimeout(function() { // clearing callstack
    try {
        require('misc/init' + '.js');   // hack to disable dependency management
    } catch (err) {

    }
}, 0);
{'fraction_non_alphanumeric': 0.14163701067615658, 'fraction_numerical': 0.002135231316725979, 'mean_word_length': 2.2459584295612007, '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': '6925859', 'n_tokens_mistral': 753, 'n_tokens_neox': 724, 'n_words': 185}