<commit_before>'use strict';

angular.module('publicApp', [
  'ngCookies',
  'ngResource',
  'ngSanitize',
  'ngRoute'
])
  .config(function ($routeProvider) {
    $routeProvider
      .when('/', {
        templateUrl: 'views/main.html',
        controller: 'MainCtrl'
      })
			.when('/users', {
				templateUrl: 'views/users.html',
				controller: 'UsersCtrl'
			})
      .otherwise({
        redirectTo: '/'
      });
  });<commit_msg>[FEATURE] Add routes for login, registration and user admin<commit_after>'use strict';

angular.module('publicApp', [
  'ngCookies',
  'ngResource',
  'ngSanitize',
  'ngRoute'
])
  .config(function ($routeProvider) {
    $routeProvider
      .when('/', {
        templateUrl: 'views/main.html',
        controller: 'MainCtrl'
      })
			.when('/users/:id', {
				templateUrl: 'views/user.html',
				controller: 'UserCtrl'
			})
			.when('/admin/users/:id', {
				templateUrl: 'views/admin/users/index.html',
				controller: 'AdminUserCtrl'
			})
			.when('/admin/users', {
				templateUrl: 'views/admin/users/index.html',
				controller: 'AdminUsersCtrl'
			})
			.when('/admin/users/new', {
				templateUrl: 'views/admin/users/new.html',
				controller: 'AdminNewUserCtrl'
			})
			.when('/register', {
				templateUrl: 'views/registration.html',
				templateUrl: 'RegistrationCtrl'
			})
			.when('/login', {
				templateUrl: 'views/registration.html',
				templateUrl: 'LoginCtrl'
			})
      .otherwise({
        redirectTo: '/'
      });
  });
{'fraction_non_alphanumeric': 0.18053691275167785, 'fraction_numerical': 0.0, 'mean_word_length': 2.8230769230769233, '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': '5492781', 'n_tokens_mistral': 561, 'n_tokens_neox': 488, 'n_words': 77}