<commit_before>
require(['oroui/js/mediator'], function(mediator) {
    'use strict';

    mediator.once('page:afterChange', function() {
        //@TODO remove delay, when afterChange event will
        // take in account rendering from inline scripts
        setTimeout(function() {
            // emulates 'document ready state' for selenium tests
            document['page-rendered'] = true;
            mediator.trigger('page-rendered');
        }, 50);
    });
});

require(['jquery', 'underscore', 'orotranslation/js/translator', 'oroui/js/tools',
        'oroui/js/mediator', 'oroui/js/layout',
        'oroui/js/delete-confirmation', 'oroui/js/scrollspy',
        'bootstrap', 'jquery-ui'
    ], function($, _, __, tools, mediator, layout, DeleteConfirmation, scrollspy) {
    'use strict';

    /* ============================================================
     * from layout.js
     * ============================================================ */

    var preciseWidth = function(node) {
        if ('nodeType' in node) {
            return node.getBoundingClientRect().width;
        } else {
            return NaN;
        }
    };

    $(function() {
        var $pageTitle = $('#page-title');<commit_msg>BAP-5662: small fix<commit_after>
require(['oroui/js/mediator'], function(mediator) {
    'use strict';

    mediator.once('page:afterChange', function() {
        //@TODO remove delay, when afterChange event will
        // take in account rendering from inline scripts
        setTimeout(function() {
            // emulates 'document ready state' for selenium tests
            document['page-rendered'] = true;
            mediator.trigger('page-rendered');
        }, 50);
    });
});

require(['jquery', 'underscore', 'orotranslation/js/translator', 'oroui/js/tools',
        'oroui/js/mediator', 'oroui/js/layout',
        'oroui/js/delete-confirmation', 'oroui/js/scrollspy',
        'bootstrap', 'jquery-ui'
    ], function($, _, __, tools, mediator, layout, DeleteConfirmation, scrollspy) {
    'use strict';

    /* ============================================================
     * from layout.js
     * ============================================================ */

    var preciseWidth = function(node) {
        if (_.result(node, 'nodeType') !== void 0) {
            return node.getBoundingClientRect().width;
        } else {
            return NaN;
        }
    };

    $(function() {
        var $pageTitle = $('#page-title');
{'fraction_non_alphanumeric': 0.23555555555555555, 'fraction_numerical': 0.0036363636363636364, 'mean_word_length': 2.745839636913767, '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': '7247248', 'n_tokens_mistral': 714, 'n_tokens_neox': 670, 'n_words': 140}