<commit_before>(function (window) {
    'use strict';

    // make sure xEasy is running in a browser
    if(!window || !window.document) {
        throw 'No window object found! Make sure xEasy is running in a browser.';
    }

    // load modules
    var xe = {};
    xe.functions = require('./functions');
    xe.domParser = require('./domParser');
    xe.init = require('./core').init;
    xe.binding = require('./binding');
    xe.ctrl = require('./controllers');

    // when all is loaded, wire up the controllers
    window.onload = function() {
        xe.init();
    };

    window.xe = xe;
}(window));<commit_msg>Changed the onload of xEasy<commit_after>(function(window) {
    'use strict';

    // make sure xEasy is running in a browser
    if(!window || !window.document) {
        throw 'No window object found! Make sure xEasy is running in a browser.';
    }

    // load modules
    var xe = {};
    xe.functions = require('./functions');
    xe.domParser = require('./domParser');
    xe.init = require('./core').init;
    xe.binding = require('./binding');
    xe.ctrl = require('./controllers');

    // when all is loaded, wire up the controllers
    window.document.addEventListener("DOMContentLoaded", function() {
        xe.init();
    }, false);

    window.xe = xe;
}(window));
{'fraction_non_alphanumeric': 0.15773353751914243, 'fraction_numerical': 0.0, 'mean_word_length': 2.600550964187328, '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': '5642447', 'n_tokens_mistral': 395, 'n_tokens_neox': 363, 'n_words': 113}