<commit_before>/*jslint nomen: true, plusplus: true */
YUI.add('MasterController', function (Y, NAME) {
    'use strict';
    Y.namespace('mojito.controllers')[NAME] = {
        index: function (ac) {
            ac.assets.addCss('/static/app/assets/base.css');
            ac.assets.addCss('./master.css');

            var i,
                id,
                children,
                pushedTasks = 0,
                searchResultsDependencies = [],
                closePipeline = function () {
                    if (--pushedTasks === 0) {
                        ac.pipeline.close();
                    }
                };

            // push search-results children
            for (i = 1; i <= 6; i++) {
                searchResultsDependencies.push('search-result' + i);
                pushedTasks++;
                (function () {
                    var task = {
                        id: 'search-result' + i,
                        group: 'results',
                        type: 'Box',
                        config: {
                            title: 'search-result' + i,
                            taskType: 'dependency'
                        }
                    };
                    setTimeout(function () {
                        console.log("Pushed: " + task.id);
                        closePipeline();
                    }, 2000 * Math.random());
                }());

            }

            // push sections
            Y.Object.each(ac.pipeline.data.sections, function (section) {
                if (section.sectionName === 'root' || section.sectionName === 'search-box' || section.sectionName === 'footer') {
                    return;
                }
                pushedTasks++;
                var task = {
                    id: section.sectionName,<commit_msg>Had accidently removed the pushing of search results, reverted the line.<commit_after>/*jslint nomen: true, plusplus: true */
YUI.add('MasterController', function (Y, NAME) {
    'use strict';
    Y.namespace('mojito.controllers')[NAME] = {
        index: function (ac) {
            ac.assets.addCss('/static/app/assets/base.css');
            ac.assets.addCss('./master.css');

            var i,
                id,
                children,
                pushedTasks = 0,
                searchResultsDependencies = [],
                closePipeline = function () {
                    if (--pushedTasks === 0) {
                        ac.pipeline.close();
                    }
                };

            // push search-results children
            for (i = 1; i <= 6; i++) {
                searchResultsDependencies.push('search-result' + i);
                pushedTasks++;
                (function () {
                    var task = {
                        id: 'search-result' + i,
                        group: 'results',
                        type: 'Box',
                        config: {
                            title: 'search-result' + i,
                            taskType: 'dependency'
                        }
                    };
                    setTimeout(function () {
                        ac.pipeline.push(task);
                        closePipeline();
                    }, 2000 * Math.random());
                }());

            }

            // push sections
            Y.Object.each(ac.pipeline.data.sections, function (section) {
                if (section.sectionName === 'root' || section.sectionName === 'search-box' || section.sectionName === 'footer') {
                    return;
                }
                pushedTasks++;
                var task = {
                    id: section.sectionName,
{'fraction_non_alphanumeric': 0.12012987012987013, 'fraction_numerical': 0.004329004329004329, 'mean_word_length': 0.9994591671173607, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2130068', 'n_tokens_mistral': 920, 'n_tokens_neox': 839, 'n_words': 172}