<commit_before>define([
    'angular',
    'config',
    'angular-route',
    'angular-cookies',
    'angular-resource',
    'modules/main/mainModule',
    'modules/submit/submitModule'
], function(angular, config) {
    'use strict';

    var app = angular.module('quizApp', ['ngRoute',
                                         'ngCookies',
                                         'quizApp.main',
                                         'quizApp.submit']);

    app.init = function () {
      angular.bootstrap(document, ['quizApp']);
    };

    app.config(['$routeProvider', '$httpProvider', function($routeProvider, $httpProvider) {
        // Routes configuration
        $routeProvider
            .when('/', {
                redirectTo: '/intro'
            })
            .when('/intro', {
                templateUrl: partialsDir + '/intro.html',
            })
            .when('/quiz', {
                templateUrl: partialsDir + '/quiz.html',
            })
            .when('/submit', {
                controller: 'SubmitCtrl',
                templateUrl: config.partials_dir + '/submit.html',
            })
            .when('/about', {
                templateUrl: partialsDir + '/about.html',
            })
            .otherwise({
                redirectTo: '/'
            });

        window.routeProvider = $routeProvider;
        window.startHash = window.location.hash.substring(1);

        // CSRF
        $httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';
        $httpProvider.defaults.xsrfCookieName = 'csrftoken';
    }]);

    return app;
});
<commit_msg>[frontend] app: make use of config module for finding partials.<commit_after>define([
    'angular',
    'config',
    'angular-route',
    'angular-cookies',
    'angular-resource',
    'modules/main/mainModule',
    'modules/submit/submitModule'
], function(angular, config) {
    'use strict';

    var app = angular.module('quizApp', ['ngRoute',
                                         'ngCookies',
                                         'quizApp.main',
                                         'quizApp.submit']);

    app.init = function () {
      angular.bootstrap(document, ['quizApp']);
    };

    app.config(['$routeProvider', '$httpProvider', function($routeProvider, $httpProvider) {
        // Routes configuration
        $routeProvider
            .when('/', {
                redirectTo: '/intro'
            })
            .when('/intro', {
                templateUrl: config.partials_dir + '/intro.html',
            })
            .when('/quiz', {
                templateUrl: config.partials_dir + '/quiz.html',
            })
            .when('/submit', {
                controller: 'SubmitCtrl',
                templateUrl: config.partials_dir + '/submit.html',
            })
            .when('/about', {
                templateUrl: config.partials_dir + '/about.html',
            })
            .otherwise({
                redirectTo: '/'
            });

        window.routeProvider = $routeProvider;
        window.startHash = window.location.hash.substring(1);

        // CSRF
        $httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';
        $httpProvider.defaults.xsrfCookieName = 'csrftoken';
    }]);

    return app;
});

{'fraction_non_alphanumeric': 0.14211491442542787, 'fraction_numerical': 0.0006112469437652812, 'mean_word_length': 1.498473282442748, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5773648', 'n_tokens_mistral': 874, 'n_tokens_neox': 842, 'n_words': 137}