<commit_before>var bookmarkApp = angular.module('bookmarkApp', [
	'ngRoute',
	'bookmarkController',
	'bookmarkFilters',
	'bookmarkServices',
	'angular-loading-bar'
]);

bookmarkApp.config(['$routeProvider', '$httpProvider',
	function($routeProvider, $httpProvider) {
		$httpProvider.defaults.cache = true;
		$routeProvider.
			when('/categories', {
				templateUrl: 'views/category-list.html',
				controller: 'CategoryListCtrl'
			}).
			when('/categories/:categoryId', {
				templateUrl: 'views/category-detail.html',
				controller: 'CategoryDetailCtrl'
			}).
			when('/bookmarks', {
				templateUrl: 'views/bookmark-list.html',
				controller: 'BookmarkListCtrl'
			}).
			when('/bookmarks/:bookmarkId', {
				templateUrl: 'views/bookmark-detail.html',
				controller: 'BookmarkDetailCtrl'
			}).
			otherwise({
				redirectTo: '/categories'
			});
	}
]);

bookmarkApp.run(['$rootScope', '$location', function($rootScope, $location){
	var path = function() 
	{ 
		return $location.path();
	};

	$rootScope.$watch(path, function(newVal, oldVal){
		$rootScope.activetab = newVal;
	});
}]);<commit_msg>config angular-loading-bar to custom spinner template<commit_after>var bookmarkApp = angular.module('bookmarkApp', [
	'ngRoute',
	'bookmarkController',
	'bookmarkFilters',
	'bookmarkServices',
	'angular-loading-bar'
]);

bookmarkApp.config(['$routeProvider', '$httpProvider',
	function($routeProvider, $httpProvider) {
		$httpProvider.defaults.cache = true;
		$routeProvider.
			when('/categories', {
				templateUrl: 'views/category-list.html',
				controller: 'CategoryListCtrl'
			}).
			when('/categories/:categoryId', {
				templateUrl: 'views/category-detail.html',
				controller: 'CategoryDetailCtrl'
			}).
			when('/bookmarks', {
				templateUrl: 'views/bookmark-list.html',
				controller: 'BookmarkListCtrl'
			}).
			when('/bookmarks/:bookmarkId', {
				templateUrl: 'views/bookmark-detail.html',
				controller: 'BookmarkDetailCtrl'
			}).
			otherwise({
				redirectTo: '/categories'
			});
	}
])
.config(['cfpLoadingBarProvider',
	function(cfpLoadingBarProvider) {
		//cfpLoadingBarProvider.includeSpinner = false;
		cfpLoadingBarProvider.spinnerTemplate = '<div><span class="fa fa-spinner">Loading...</div>';
	}
]);

bookmarkApp.run(['$rootScope', '$location', function($rootScope, $location){
	var path = function() 
	{ 
		return $location.path();
	};

	$rootScope.$watch(path, function(newVal, oldVal){
		$rootScope.activetab = newVal;
	});
}]);
{'fraction_non_alphanumeric': 0.17260940032414912, 'fraction_numerical': 0.0, 'mean_word_length': 4.702078521939954, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '1917319', 'n_tokens_mistral': 896, 'n_tokens_neox': 790, 'n_words': 117}