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

    define(
        [
            'util/container',
            'services/searchService',
            'services/detailService'
        ],
        function (container, searchService, detailService) {
            var simpleApiBaseUrl = 'http://localhost/providence/service.php/simple',
                ajaxOptions = {
                    xhrFields: {
                        withCredentials: true
                    },
                    beforeSend: function (xhr) {
                        xhr.setRequestHeader('Authorization', 'Basic ' + btoa('research-frontend:NotReallySecret'));
                    }
                };

            return function () {
                container.register('search.library', searchService(simpleApiBaseUrl + '/library_search', ajaxOptions, true, true));
                container.register('search.photographs', searchService(simpleApiBaseUrl + '/photographs_search', ajaxOptions, true, true));
                container.register('search.museum', searchService(simpleApiBaseUrl + '/museum_search', ajaxOptions, true, true));
                container.register('search.memorials', searchService(simpleApiBaseUrl + '/memorials_search', ajaxOptions, true, true));

                container.register('detail.library', detailService(simpleApiBaseUrl + '/library_detail', ajaxOptions, true, true));
                container.register('detail.photographs', detailService(simpleApiBaseUrl + '/photographs_detail', ajaxOptions, true, true));
                container.register('detail.museum', detailService(simpleApiBaseUrl + '/museum_detail', ajaxOptions, true, true));
                container.register('detail.memorials', detailService(simpleApiBaseUrl + '/memorials_detail', ajaxOptions, true, true));

                container.seal();
            };
        }
    );
}());<commit_msg>Make switching the cache on and off in dev easier.<commit_after>(function () {
    'use strict';

    define(
        [
            'util/container',
            'services/searchService',
            'services/detailService'
        ],
        function (container, searchService, detailService) {
            var simpleApiBaseUrl = 'http://localhost/providence/service.php/simple',
                noCache = true,
                ajaxOptions = {
                    xhrFields: {
                        withCredentials: true
                    },
                    beforeSend: function (xhr) {
                        xhr.setRequestHeader('Authorization', 'Basic ' + btoa('research-frontend:NotReallySecret'));
                    }
                };

            return function () {
                container.register('search.library', searchService(simpleApiBaseUrl + '/library_search', ajaxOptions, noCache, true));
                container.register('search.photographs', searchService(simpleApiBaseUrl + '/photographs_search', ajaxOptions, noCache, true));
                container.register('search.museum', searchService(simpleApiBaseUrl + '/museum_search', ajaxOptions, noCache, true));
                container.register('search.memorials', searchService(simpleApiBaseUrl + '/memorials_search', ajaxOptions, noCache, true));

                container.register('detail.library', detailService(simpleApiBaseUrl + '/library_detail', ajaxOptions, noCache, true));
                container.register('detail.photographs', detailService(simpleApiBaseUrl + '/photographs_detail', ajaxOptions, noCache, true));
                container.register('detail.museum', detailService(simpleApiBaseUrl + '/museum_detail', ajaxOptions, noCache, true));
                container.register('detail.memorials', detailService(simpleApiBaseUrl + '/memorials_detail', ajaxOptions, noCache, true));

                container.seal();
            };
        }
    );
}());
{'fraction_non_alphanumeric': 0.11772383189767685, 'fraction_numerical': 0.0, 'mean_word_length': 2.314878892733564, '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': '3206835', 'n_tokens_mistral': 972, 'n_tokens_neox': 898, 'n_words': 161}