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

    function config($routeProvider, $httpProvider, $locationProvider, $sceDelegateProvider, authConstants) {
        $httpProvider.interceptors.push('authInterceptorService');

        $sceDelegateProvider.resourceUrlWhitelist([
          // Allow same origin resource loads.
          'self',
          // Allow loading from our assets domain.  Notice the difference between * and **.
          authConstants.apiServiceBaseUrl
        ]);

        $routeProvider
            .when('/', {
                templateUrl: 'views/partials/home.html',
                controller: 'HomeController'
            })
            .when('/login', {
                templateUrl: 'views/partials/twitter-login.html',
                controller: 'LoginController'
            })
            .when('/logout', {
                template: '',
                controller: ['$timeout', '$location', 'authService', function ($timeout, $location, authService) {
                    $timeout(function () {
                        authService.logout();
                        $location.path('/login');
                    });
                }]
            })
            .when("/admin", {
                templateUrl: 'views/partials/admin.html',
                controller: "AdminController",
            })
            .when("/rate-exceeded", {
                templateUrl: "views/partials/rate-exceeded.html",
                controller: "RateExceededController",
            })
            .when('/user/profile/:id', {
                templateUrl: 'views/partials/user-profile.html',
                controller: 'UserProfileController'
            })
            .otherwise({ redirectTo: '/' });
    }
    var baseServiceUrl = 'http://localhost:19169';
    angular.module('myApp.services', []);
        //.factory('applicationAuthorization', ['authService', function (authService) {
        //    return authService.authorize();
    //}]);
    angular.module('myApp.filters', []);
    //angular.module('myApp.directives', []);
    angular.module('myApp.controllers', ['myApp.services']);
    angular.module('myApp', ['ngRoute', 'ngCookies', 'ui.bootstrap', 'ngSanitize', 'myApp.controllers'])
        .config(['$routeProvider', '$httpProvider', '$locationProvider', '$sceDelegateProvider', 'authConstants', config])
        .value('toastr', toastr)
        .constant('baseServiceUrl', baseServiceUrl)
        .constant('authConstants', {<commit_msg>Remove unused code from app.js<commit_after>(function () {
    'use strict';

    function config($routeProvider, $httpProvider, $locationProvider) {
        $httpProvider.interceptors.push('authInterceptorService');

        $routeProvider
            .when('/', {
                templateUrl: 'views/partials/home.html',
                controller: 'HomeController'
            })
            .when('/login', {
                templateUrl: 'views/partials/twitter-login.html',
                controller: 'LoginController'
            })
            .when('/logout', {
                template: '',
                controller: ['$timeout', '$location', 'authService', function ($timeout, $location, authService) {
                    $timeout(function () {
                        authService.logout();
                        $location.path('/login');
                    });
                }]
            })
            .when("/admin", {
                templateUrl: 'views/partials/admin.html',
                controller: "AdminController",
            })
            .when("/rate-exceeded", {
                templateUrl: "views/partials/rate-exceeded.html",
                controller: "RateExceededController",
            })
            .when('/user/profile/:id', {
                templateUrl: 'views/partials/user-profile.html',
                controller: 'UserProfileController'
            })
            .otherwise({ redirectTo: '/' });
    }
    var baseServiceUrl = 'http://localhost:19169';
    angular.module('myApp.services', []);
        //.factory('applicationAuthorization', ['authService', function (authService) {
        //    return authService.authorize();
    //}]);
    angular.module('myApp.filters', []);
    //angular.module('myApp.directives', []);
    angular.module('myApp.controllers', ['myApp.services']);
    angular.module('myApp', ['ngRoute', 'ngCookies', 'ui.bootstrap', 'ngSanitize', 'myApp.controllers'])
        .config(['$routeProvider', '$httpProvider', '$locationProvider', config])
        .value('toastr', toastr)
        .constant('baseServiceUrl', baseServiceUrl)
        .constant('authConstants', {
{'fraction_non_alphanumeric': 0.15152169220807252, 'fraction_numerical': 0.002158428663932657, 'mean_word_length': 1.9384908053265695, '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': '6636531', 'n_tokens_mistral': 1194, 'n_tokens_neox': 1141, 'n_words': 183}