<commit_before>/*global define, window*/
/*jslint nomen: true*/
/*jshint browser:true, devel:true*/
define(function (require) {
    'use strict';

    var layout, pageRenderedCbPool, document, console,
        $ = require('jquery'),
        _ = require('underscore'),
        bootstrap = require('bootstrap'),
        __ = require('orotranslation/js/translator'),
        scrollspy = require('oroui/js/scrollspy'),
        mediator = require('oroui/js/mediator'),
        tools = require('oroui/js/tools');
    require('jquery-ui');
    require('jquery-ui-timepicker');
    require('jquery.uniform');
    require('oroui/js/responsive-jquery-widget');

    document = window.document;
    console = window.console;
    pageRenderedCbPool = [];

    layout = {
        init: function (container) {
            var promise;
            container = $(container);
            this.styleForm(container);

            scrollspy.init(container);

            container.find('[data-toggle="tooltip"]').tooltip();

            this.initPopover(container.find('form label'));

            promise = this.initPageComponents(container);
            return promise;
        },

        initPageComponents: function (container) {
            var loads, initialized;
            loads = [];
            initialized = $.Deferred();

            container.find('[data-page-component-module]').each(function () {
                var $elem, module, options, loaded;

                $elem = $(this);
                module = $elem.data('pageComponentModule');
                options = $elem.data('pageComponentOptions');
                options._sourceElement = $elem;
                $elem
                    .removeData('pageComponentModule')
                    .removeData('pageComponentOptions')
                    .removeAttr('data-page-component-module')
                    .removeAttr('data-page-component-options');
                loaded = $.Deferred();
<commit_msg>CRM-2125: Show tooltips on the pages of detailed info<commit_after>/*global define, window*/
/*jslint nomen: true*/
/*jshint browser:true, devel:true*/
define(function (require) {
    'use strict';

    var layout, pageRenderedCbPool, document, console,
        $ = require('jquery'),
        _ = require('underscore'),
        bootstrap = require('bootstrap'),
        __ = require('orotranslation/js/translator'),
        scrollspy = require('oroui/js/scrollspy'),
        mediator = require('oroui/js/mediator'),
        tools = require('oroui/js/tools');
    require('jquery-ui');
    require('jquery-ui-timepicker');
    require('jquery.uniform');
    require('oroui/js/responsive-jquery-widget');

    document = window.document;
    console = window.console;
    pageRenderedCbPool = [];

    layout = {
        init: function (container) {
            var promise;
            container = $(container);
            this.styleForm(container);

            scrollspy.init(container);

            container.find('[data-toggle="tooltip"]').tooltip();

            this.initPopover(container.find('label'));

            promise = this.initPageComponents(container);
            return promise;
        },

        initPageComponents: function (container) {
            var loads, initialized;
            loads = [];
            initialized = $.Deferred();

            container.find('[data-page-component-module]').each(function () {
                var $elem, module, options, loaded;

                $elem = $(this);
                module = $elem.data('pageComponentModule');
                options = $elem.data('pageComponentOptions');
                options._sourceElement = $elem;
                $elem
                    .removeData('pageComponentModule')
                    .removeData('pageComponentOptions')
                    .removeAttr('data-page-component-module')
                    .removeAttr('data-page-component-options');
                loaded = $.Deferred();

{'fraction_non_alphanumeric': 0.13603034134007586, 'fraction_numerical': 0.001011378002528445, 'mean_word_length': 2.093041438623925, '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': '2647677', 'n_tokens_mistral': 1049, 'n_tokens_neox': 1000, 'n_words': 177}