<commit_before>'use strict';

// Setting up route

//Fix this
angular.module('core').constant('AUTH_LEVEL', {
  'public': 0,
  'student': 1,
  'teacher': 2
});

angular.module('core').config(['$stateProvider', '$urlRouterProvider', 'AUTH_LEVEL',
	function($stateProvider, $urlRouterProvider, AUTH_LEVEL) {
		// Redirect to home view when route not found
		$urlRouterProvider.otherwise('/');

		// Home state routing
		$stateProvider.
		state('home', {
			url: '/',
			templateUrl: 'modules/core/views/home.client.view.html',
      accessLevel: AUTH_LEVEL.public
		});
	}
]);<commit_msg>Redirect to signin if not logged in, use this as home state<commit_after>'use strict';

// Setting up route

//Fix this
angular.module('core').constant('AUTH_LEVEL', {
  'public': 0,
  'student': 1,
  'teacher': 2
});

angular.module('core').config(['$stateProvider', '$urlRouterProvider', 'AUTH_LEVEL',
	function($stateProvider, $urlRouterProvider, AUTH_LEVEL) {
		// Redirect to signin view when route not found
		$urlRouterProvider.otherwise('/signin');
	}
]);
{'fraction_non_alphanumeric': 0.17159199237368922, 'fraction_numerical': 0.005719733079122974, 'mean_word_length': 4.769230769230769, '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': '7242281', 'n_tokens_mistral': 351, 'n_tokens_neox': 332, 'n_words': 79}