<commit_before>function validateEmail(email) {
	var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
	return re.test(email);
}

var qbeon = angular.module('qbeon', [
	'duScroll',
	'ngAnimate',
	'ngTouch',
	'ngCookies',
	'slickCarousel',
	'ui.router'
]);

qbeon.run([
'$rootScope',
'$state',
'$stateParams',
function(
	$rootScope,
	$state,
	$stateParams
) {
	$rootScope.$state = $state;
	$rootScope.$stateParams = $stateParams;
	$rootScope.$on('$stateChangeStart', function(evt, to, params) {
		if(to.redirect) {
			evt.preventDefault();
			$state.go(to.redirect, params);
		}
	})
}])

qbeon.config([
'$urlRouterProvider',
'$stateProvider',
'$locationProvider',
function(
	$urlRouterProvider,
	$stateProvider,
	$locationProvider
) {
	$urlRouterProvider.otherwise('/');
	$locationProvider.html5Mode(true).hashPrefix('!');

	$stateProvider<commit_msg>Improve page navigation behaviour<commit_after>function validateEmail(email) {
	var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
	return re.test(email);
}

var qbeon = angular.module('qbeon', [
	'duScroll',
	'ngAnimate',
	'ngTouch',
	'ngCookies',
	'slickCarousel',
	'ui.router'
]);

qbeon.run([
'$rootScope',
'$state',
'$stateParams',
'$window',
function(
	$rootScope,
	$state,
	$stateParams,
	$window
) {
	$rootScope.$state = $state;
	$rootScope.$stateParams = $stateParams;
	$rootScope.$on('$stateChangeStart', function(evt, to, params) {
		if(to.redirect) {
			evt.preventDefault();
			$state.go(to.redirect, params);
		}
	})
	$rootScope.$on('$viewContentLoaded', function(evt) {
		if($window.scrollY > 0) {
			$("html, body").animate({scrollTop: 0}, 800);
		}
	});
}])

qbeon.config([
'$urlRouterProvider',
'$stateProvider',
'$locationProvider',
function(
	$urlRouterProvider,
	$stateProvider,
	$locationProvider
) {
	$urlRouterProvider.otherwise('/');
	$locationProvider.html5Mode(true).hashPrefix('!');

	$stateProvider
{'fraction_non_alphanumeric': 0.2827849308536004, 'fraction_numerical': 0.02145922746781116, 'mean_word_length': 5.281437125748503, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '1900033', 'n_tokens_mistral': 912, 'n_tokens_neox': 873, 'n_words': 106}