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

    var routeResolversProvider = function routeResolversProvider() {
        var routeResolvers = {
            authenticated: ['$q', 'auth', function ($q, auth) {
                if (!auth.isAuthenticated()) {
                    return $q.reject('not authorized');
                }

                return $q.when(true);
            }],
            latestProjects: ['homePageData', function (homePageData) {
                return homePageData.getLatestProjects();
            }],
            popularProjects: ['homePageData', function (homePageData) {
                return homePageData.getMostPopularProjects();
            }],
            statistics: ['statisticsData', function (statisticsData) {
                return statisticsData.getMainStatistics();
            }],
            seasonTags: ['$injector', '$q', 'addProjectData', function ($injector, $q, addProjectData) {
                var authPromise = $injector.invoke(routeResolversProvider.authenticated);
                return authPromise.then(function () {
                    return addProjectData.getSeasonTags();
                });
            }],
            languageAndTechnologyTags: ['$injector', '$q', 'addProjectData', function ($injector, $q, addProjectData) {
                var authPromise = $injector.invoke(routeResolversProvider.authenticated);
                return authPromise.then(function () {
                    return addProjectData.getLanguageAndTechnologyTags();
                });
            }],
            detailedStatistics: ['$q', 'statisticsData', function ($q, statisticsData) {
                return $q.all([
                    statisticsData.getMainStatistics(),
                    statisticsData.getProjectsForLastSixMonths(),
                    statisticsData.getProjectsCountTag(),
                    statisticsData.getMostLikedProjects(),
                    statisticsData.getTopUsers()
                ]).then(function (results) {
                    return {
                        mainStatistics: results[0],
                        projectsLastSixMonths: results[1],
                        projectsCountByTag: results[2],
                        mostLikedProjects: results[3],
                        topUsers: results[4],
                    };
                });
            }],
            project: ['$route', 'projectDetailsData', function ($route, projectDetailsData) {<commit_msg>Bug fix in route resolvers provider<commit_after>﻿(function () {
    'use strict';

    var routeResolversProvider = function routeResolversProvider() {
        var routeResolvers = {
            authenticated: ['$q', 'auth', function ($q, auth) {
                if (!auth.isAuthenticated()) {
                    return $q.reject('not authorized');
                }

                return $q.when(true);
            }],
            latestProjects: ['homePageData', function (homePageData) {
                return homePageData.getLatestProjects();
            }],
            popularProjects: ['homePageData', function (homePageData) {
                return homePageData.getMostPopularProjects();
            }],
            statistics: ['statisticsData', function (statisticsData) {
                return statisticsData.getMainStatistics();
            }],
            seasonTags: ['$injector', '$q', 'addProjectData', function ($injector, $q, addProjectData) {
                var authPromise = $injector.invoke(routeResolvers.authenticated);
                return authPromise.then(function () {
                    return addProjectData.getSeasonTags();
                });
            }],
            languageAndTechnologyTags: ['$injector', '$q', 'addProjectData', function ($injector, $q, addProjectData) {
                var authPromise = $injector.invoke(routeResolvers.authenticated);
                return authPromise.then(function () {
                    return addProjectData.getLanguageAndTechnologyTags();
                });
            }],
            detailedStatistics: ['$q', 'statisticsData', function ($q, statisticsData) {
                return $q.all([
                    statisticsData.getMainStatistics(),
                    statisticsData.getProjectsForLastSixMonths(),
                    statisticsData.getProjectsCountTag(),
                    statisticsData.getMostLikedProjects(),
                    statisticsData.getTopUsers()
                ]).then(function (results) {
                    return {
                        mainStatistics: results[0],
                        projectsLastSixMonths: results[1],
                        projectsCountByTag: results[2],
                        mostLikedProjects: results[3],
                        topUsers: results[4],
                    };
                });
            }],
            project: ['$route', 'projectDetailsData', function ($route, projectDetailsData) {
{'fraction_non_alphanumeric': 0.10948905109489052, 'fraction_numerical': 0.00202757502027575, 'mean_word_length': 1.6868191721132897, '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': '1117580', 'n_tokens_mistral': 1207, 'n_tokens_neox': 1132, 'n_words': 209}