<commit_before>'use strict';

/**
 * @ngdoc overview
 * @name SubSnoopApp
 * @description
 * # SubSnoopApp
 *
 * Main module of the application.
 */
var app = angular
  .module('SubSnoopApp', [
    'ngAnimate',
    'ngRoute',
    'ngSanitize',
    'ngMaterial',
    'angularMoment',
    'ui.bootstrap'
  ]);

app.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
  $routeProvider
    .when('/', {
      templateUrl: 'views/main.html',
      controller: 'MainCtrl',
      controllerAs: 'main',
      resolve: {
        popularSubs: function(popularSubs) {
          return popularSubs.getData(25);
        },
        newSubs: function(newSubs) {
          return newSubs.getData(25);
        }
      }
    })
    .when('/:username', {
      templateUrl: 'views/user.html',
      controller: 'UserCtrl',
      controllerAs: 'user',
      resolve: {
        user: function($route, userFactory) {
          var username = $route.current.params.username;

          if ('user' in sessionStorage && sessionStorage.user.toLowerCase() === username.toLowerCase()) {<commit_msg>Change number of loading subreddits for home page<commit_after>'use strict';

/**
 * @ngdoc overview
 * @name SubSnoopApp
 * @description
 * # SubSnoopApp
 *
 * Main module of the application.
 */
var app = angular
  .module('SubSnoopApp', [
    'ngAnimate',
    'ngRoute',
    'ngSanitize',
    'ngMaterial',
    'angularMoment',
    'ui.bootstrap'
  ]);

app.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
  $routeProvider
    .when('/', {
      templateUrl: 'views/main.html',
      controller: 'MainCtrl',
      controllerAs: 'main',
      resolve: {
        popularSubs: function(popularSubs) {
          return popularSubs.getData(10);
        },
        newSubs: function(newSubs) {
          return newSubs.getData(10);
        }
      }
    })
    .when('/:username', {
      templateUrl: 'views/user.html',
      controller: 'UserCtrl',
      controllerAs: 'user',
      resolve: {
        user: function($route, userFactory) {
          var username = $route.current.params.username;

          if ('user' in sessionStorage && sessionStorage.user.toLowerCase() === username.toLowerCase()) {
{'fraction_non_alphanumeric': 0.14690265486725665, 'fraction_numerical': 0.0035398230088495575, 'mean_word_length': 2.71875, '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': '2083841', 'n_tokens_mistral': 685, 'n_tokens_neox': 684, 'n_words': 137}