<commit_before>(function () {
    angular
        .module('atlas')
        .factory('documentTitle', documentTitleFactory);

    documentTitleFactory.$inject = [
        '$document',
        'store',
        'dashboardColumns',
        'dpSearchResults.documentTitle'/*,

        'dpDataSelection.documentTitle',
        'dpDetail.documentTitle',
        'dpLayerSelection.documentTitle',
        'dpMap.documentTitle',
        'dpPage.documentTitle',
        'dpStraatbeeld.documentTitle'*/
    ];

    function documentTitleFactory (
            $document,
            store,
            dashboardColumns,
            dpSearchResultsDocumentTitle/*,

            dpDataSelectionDocumentTitle,
            dpDetailDocumentTitle,
            dpLayerSelectionDocumentTitle,
            dpMapDocumentTitle,
            dpPageDocumentTitle,
            dpStraatbeeldDocumentTitle*/) {

        var mapping = [
            {
                visibility: 'searchResults',
                documentTitle: dpSearchResultsDocumentTitle,
                state: 'search'
            }];

        return {
            initialize: initialize
        };

        function initialize() {
            store.subscribe(setTitle);

            function setTitle() {
                var state = store.getState(),
                    visibility = dashboardColumns.determineVisibility(state),
                    filtered = mapping.filter(function(item) {
                        return visibility[item.visibility];
                    }),
                    current = filtered ? filtered[0] : null,
                    getTitle = current ? current.documentTitle.getTitle : null,
                    titleData = getTitle ? getTitle(state[current.state]) : null,
                    title = (titleData ? titleData + ' – ' : '') + 'Atlas';

                $document[0].title = title;
            }
        }
    }
})();<commit_msg>document title uber module update de title niet indien isLoading true in de state van de betreffende module<commit_after>(function () {
    angular
        .module('atlas')
        .factory('documentTitle', documentTitleFactory);

    documentTitleFactory.$inject = [
        '$document',
        'store',
        'dashboardColumns',
        'dpSearchResults.documentTitle'/*,

        'dpDataSelection.documentTitle',
        'dpDetail.documentTitle',
        'dpLayerSelection.documentTitle',
        'dpMap.documentTitle',
        'dpPage.documentTitle',
        'dpStraatbeeld.documentTitle'*/
    ];

    function documentTitleFactory (
            $document,
            store,
            dashboardColumns,
            dpSearchResultsDocumentTitle/*,

            dpDataSelectionDocumentTitle,
            dpDetailDocumentTitle,
            dpLayerSelectionDocumentTitle,
            dpMapDocumentTitle,
            dpPageDocumentTitle,
            dpStraatbeeldDocumentTitle*/) {

        var mapping = [
            {
                visibility: 'searchResults',
                documentTitle: dpSearchResultsDocumentTitle,
                state: 'search'
            }];

        return {
            initialize: initialize
        };

        function initialize() {
            store.subscribe(setTitle);

            function setTitle() {
                var state = store.getState(),
                    visibility = dashboardColumns.determineVisibility(state),
                    filtered = mapping.filter(function(item) {
                        return visibility[item.visibility];
                    }),
                    current = filtered ? filtered[0] : null,
                    stateData = current ? state[current.state] : null,
                    displayNewTitle = current && !stateData.isLoading,
                    getTitle = displayNewTitle ? current.documentTitle.getTitle : null,
                    titleData = getTitle ? getTitle(stateData) : null,
                    title = (titleData ? titleData + ' – ' : '') + 'Atlas';

                if (displayNewTitle) {
                    $document[0].title = title;
                }
            }
        }
    }
})();
{'fraction_non_alphanumeric': 0.09343065693430656, 'fraction_numerical': 0.0009732360097323601, 'mean_word_length': 1.5936908517350157, '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': '5935409', 'n_tokens_mistral': 980, 'n_tokens_neox': 925, 'n_words': 170}