<commit_before>(function() {
  'use strict';
  var app = angular.module(
    'communityshare',
    [
      'ngRoute',
      'ui.bootstrap',
      'communityshare.directives.mainview',
      'communityshare.controllers.authentication',
      'communityshare.controllers.home',
      'communityshare.controllers.user',
      'communityshare.controllers.search',
      'communityshare.controllers.message',
      'communityshare.controllers.share',
      'communityshare.directives.labels'
    ]);
  
  app.config(function($routeProvider) {

    $routeProvider.when('/', {
      templateUrl: './static/templates/default.html'
    });

    $routeProvider.when('/login', {
      templateUrl: './static/templates/login.html',
      controller: 'LoginController'
    });

    $routeProvider.when('/logout', {
      templateUrl: './static/templates/logout.html',
      controller: 'LogoutController'
    });

    $routeProvider.when('/signup/communitypartner', {
      templateUrl: './static/templates/signup_community_partner.html',
      controller: 'SignupCommunityPartnerController'
    });

    $routeProvider.when('/signup/educator', {
      templateUrl: './static/templates/signup_educator.html',
      controller: 'SignupEducatorController'
    });

    $routeProvider.when('/requestresetpassword', {
      templateUrl: './static/templates/request_reset_password.html',
      controller: 'RequestResetPasswordController'
    });

    $routeProvider.when('/resetpassword', {
      templateUrl: './static/templates/reset_password.html',
      controller: 'ResetPasswordController'
    });

    $routeProvider.when('/home', {
      templateUrl: './static/templates/home.html',
      controller: 'HomeController'
    });

    $routeProvider.when('/searchusers', {
      templateUrl: './static/templates/search_users.html',
      controller: 'SearchUsersController'
    });

    $routeProvider.when('/settings', {
      templateUrl: './static/templates/settings.html',
      controller: 'SettingsController',
      resolve: {
        user: function(activeUserLoader) {
          return activeUserLoader();
        }
      }
    });

    $routeProvider.when('/user/:userId', {
      templateUrl: './static/templates/user_view.html',
      controller: 'UserController'
    });

    $routeProvider.when('/search/:searchId/edit', {
      templateUrl: './static/templates/search_edit.html',
      controller: 'SearchEditController'
    });

    $routeProvider.when('/search/:searchId/results', {
      templateUrl: './static/templates/search_results.html',
      controller: 'SearchResultsController'
    });

    $routeProvider.when('/search', {
      templateUrl: './static/templates/search_edit.html',
      controller: 'SearchEditController'
    });

    $routeProvider.when('/conversation/unviewed', {
      templateUrl: './static/templates/unviewed_conversations.html',
      controller: 'UnviewedConversationController'
    });

    $routeProvider.when('/conversation/:conversationId', {
      templateUrl: './static/templates/conversation.html',
      controller: 'ConversationController'
    });

    $routeProvider.when('/share/new', {
      templateUrl: './static/templates/share_edit.html',
      controller: 'NewShareController'
    });

    $routeProvider.when('/share/:shareId', {
      templateUrl: './static/templates/share.html',
      controller: 'ShareController'
    });

    $routeProvider.otherwise({
      templateUrl: './static/templates/unknown.html'
    });
    
  });
  
})();<commit_msg>Always makes sure authentication completes before loading page.<commit_after>(function() {
  'use strict';
  var app = angular.module(
    'communityshare',
    [
      'ngRoute',
      'ui.bootstrap',
      'communityshare.directives.mainview',
      'communityshare.controllers.authentication',
      'communityshare.controllers.home',
      'communityshare.controllers.user',
      'communityshare.controllers.search',
      'communityshare.controllers.message',
      'communityshare.controllers.share',
      'communityshare.directives.labels'
    ]);
  
  app.config(function($routeProvider) {

    $routeProvider.when('/', {
      templateUrl: './static/templates/default.html'
    });

    $routeProvider.when('/login', {
      templateUrl: './static/templates/login.html',
      controller: 'LoginController'
    });

    $routeProvider.when('/logout', {
      templateUrl: './static/templates/logout.html',
      controller: 'LogoutController'
    });

    $routeProvider.when('/signup/communitypartner', {
      templateUrl: './static/templates/signup_community_partner.html',
      controller: 'SignupCommunityPartnerController'
    });

    $routeProvider.when('/signup/educator', {
      templateUrl: './static/templates/signup_educator.html',
      controller: 'SignupEducatorController'
    });

    $routeProvider.when('/requestresetpassword', {
      templateUrl: './static/templates/request_reset_password.html',
      controller: 'RequestResetPasswordController'
    });

    $routeProvider.when('/resetpassword', {
      templateUrl: './static/templates/reset_password.html',
      controller: 'ResetPasswordController'
    });

    $routeProvider.when('/home', {
      templateUrl: './static/templates/home.html',
      controller: 'HomeController',
      resolve: {
        activeUser: function(activeUserLoader) {
          return activeUserLoader();
        }
      }
    });

    $routeProvider.when('/searchusers', {
      templateUrl: './static/templates/search_users.html',
      controller: 'SearchUsersController',
      resolve: {
        activeUser: function(activeUserLoader) {
          return activeUserLoader();
        }
      }
    });

    $routeProvider.when('/settings', {
      templateUrl: './static/templates/settings.html',
      controller: 'SettingsController',
      resolve: {
        activeUser: function(activeUserLoader) {
          return activeUserLoader();
        }
      }
    });

    $routeProvider.when('/user/:userId', {
      templateUrl: './static/templates/user_view.html',
      controller: 'UserController',
      resolve: {
        activeUser: function(activeUserLoader) {
          return activeUserLoader();
        }
      }
    });

    $routeProvider.when('/search/:searchId/edit', {
      templateUrl: './static/templates/search_edit.html',
      controller: 'SearchEditController',
      resolve: {
        activeUser: function(activeUserLoader) {
          return activeUserLoader();
        }
      }
    });

    $routeProvider.when('/search/:searchId/results', {
      templateUrl: './static/templates/search_results.html',
      controller: 'SearchResultsController',
      resolve: {
        activeUser: function(activeUserLoader) {
          return activeUserLoader();
        }
      }
    });

    $routeProvider.when('/search', {
      templateUrl: './static/templates/search_edit.html',
      controller: 'SearchEditController',
      resolve: {
        activeUser: function(activeUserLoader) {
          return activeUserLoader();
        }
      }
    });

    $routeProvider.when('/conversation/unviewed', {
      templateUrl: './static/templates/unviewed_conversations.html',
      controller: 'UnviewedConversationController',
      resolve: {
        activeUser: function(activeUserLoader) {
          return activeUserLoader();
        }
      }
    });

    $routeProvider.when('/conversation/:conversationId', {
      templateUrl: './static/templates/conversation.html',
      controller: 'ConversationController',
      resolve: {
        activeUser: function(activeUserLoader) {
          return activeUserLoader();
        }
      }
    });

    $routeProvider.when('/share/new', {
      templateUrl: './static/templates/share_edit.html',
      controller: 'NewShareController',
      resolve: {
        activeUser: function(activeUserLoader) {
          return activeUserLoader();
        }
      }
    });

    $routeProvider.when('/share/:shareId', {
      templateUrl: './static/templates/share.html',
      controller: 'ShareController',
      resolve: {
        activeUser: function(activeUserLoader) {
          return activeUserLoader();
        }
      }
    });

    $routeProvider.otherwise({
      templateUrl: './static/templates/unknown.html'
    });
    
  });
  
})();
{'fraction_non_alphanumeric': 0.14321911196911197, 'fraction_numerical': 0.0, 'mean_word_length': 2.842837273991655, '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': '4762829', 'n_tokens_mistral': 2289, 'n_tokens_neox': 2232, 'n_words': 285}