<commit_before>'use strict';

anxeb.app.service("page", function ($rootScope, $state, $location, $stateParams, request) {
	var _self = this;

	_self.title = $state.current.data ? $state.current.data.title : null;
	_self.icon = $state.current.data ? $state.current.data.icon : null;
	_self.menu = $state.current.menu ? $state.current.data.menu : {};
	_self.href = null;
	_self.settings = {
		notifications : {
			maximum : 1,
			timeout : 3000
		}
	};

	$state.defaultErrorHandler(function () { });

	_self.setup = function (params) {
		_self.title = params.title;
		_self.key = params.key;
		_self.icon = params.icon;
		_self.menu = params.menu ? params.menu : {};
		_self.settings = params.settings || _self.settings;
	};

	_self.reset = function () {
		_self.title = null;
		_self.icon = null;
		_self.menu = null;
		_self.scopes = {};
		_self.notifications.clear();
	};

	_self.load = function (state, params, options) {
		var href = $state.href(state, params);

		if (_self.href !== href) {
			_self.href = href;
			if (!options || options.reset === undefined || options.reset === true) {
				_self.reset();
			}
			return $state.go(state, params, {
				reload : options && options.reload !== undefined ? options.reload : false,
				cache  : false
			});<commit_msg>Adding tabs properties into page service<commit_after>'use strict';

anxeb.app.service("page", function ($rootScope, $state, $location, $stateParams, request) {
	var _self = this;

	_self.title = $state.current.data ? $state.current.data.title : null;
	_self.icon = $state.current.data ? $state.current.data.icon : null;
	_self.menu = $state.current.menu ? $state.current.data.menu : {};
	_self.tabs = $state.current.tabs ? $state.current.data.tabs : {};
	_self.href = null;
	_self.settings = {
		notifications : {
			maximum : 1,
			timeout : 3000
		}
	};

	$state.defaultErrorHandler(function () { });

	_self.setup = function (params) {
		_self.title = params.title;
		_self.key = params.key;
		_self.icon = params.icon;
		_self.menu = params.menu ? params.menu : {};
		_self.tabs = params.tabs ? params.tabs : {};
		_self.settings = params.settings || _self.settings;
	};

	_self.reset = function () {
		_self.title = null;
		_self.icon = null;
		_self.menu = null;
		_self.tabs = null;
		_self.scopes = {};
		_self.notifications.clear();
	};

	_self.load = function (state, params, options) {
		var href = $state.href(state, params);

		if (_self.href !== href) {
			_self.href = href;
			if (!options || options.reset === undefined || options.reset === true) {
				_self.reset();
			}
			return $state.go(state, params, {
				reload : options && options.reload !== undefined ? options.reload : false,
				cache  : false
			});
{'fraction_non_alphanumeric': 0.16728349370836418, 'fraction_numerical': 0.003700962250185048, 'mean_word_length': 3.4022801302931596, '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': '2465484', 'n_tokens_mistral': 1025, 'n_tokens_neox': 922, 'n_words': 191}