<commit_before>'use strict';

// Declare app level module which depends on views, and components
angular.module('app', [
	'ngRoute',
	'ngResource'
	, 'ngTouch'
	, 'ui.grid', 'ui.grid.pagination', 'ui.grid.resizeColumns'
	//https://github.com/ghiscoding/angular-validation/wiki
	, 'ghiscoding.validation'
	//https://github.com/angular-translate/angular-translate
	, 'pascalprecht.translate'
	, 'ngLoadingSpinner'
	, 'angularSpinner'
	, 'ui.router'
	, 'permission', 'permission.ui'
	//https://github.com/Foxandxss/angular-toastr
	, 'ngAnimate', 'toastr'
	, 'ui.bootstrap'
	//https://github.com/m-e-conroy/angular-dialog-service
	, 'dialogs.main'
]).
config(['$routeProvider', function ($routeProvider) {
	//$routeProvider.otherwise({redirectTo: '/main'});//todo dashboard?
}]).
config(['$stateProvider', function ($stateProvider) {
	$stateProvider
			.state('bro', {//todo Move to './api/bro' or remove
				abstract: true,
				url: '/bro',
				templateUrl: 'view/common/parent.html'
			});
}]).
run(['$rootScope', '$state', '$stateParams', function ($rootScope, $state, $stateParams) {
	// It's very handy to add references to $state and $stateParams to the $rootScope
	// so that you can access them from any scope within your applications. For example,
	// <li ng-class="{ active: $state.includes('contacts.list') }"> will set the <li>
	// to active whenever 'contacts.list' or one of its decendents is active.
	$rootScope.$state = $state;
	$rootScope.$stateParams = $stateParams;
}]).
config(['$translateProvider', function ($translateProvider) {
	$translateProvider.useStaticFilesLoader({
		files: [
			{
				prefix: 'locale/validation/',
				suffix: '.json'
			}
		]
	});

	// define translation maps you want to use on startup
	$translateProvider.preferredLanguage('en');
}])
;<commit_msg>Локализация (клиент): включаем очистку HTML от опасных тегов при локализации<commit_after>'use strict';

// Declare app level module which depends on views, and components
angular.module('app', [
	'ngRoute',
	'ngResource'
	, 'ngTouch'
	, 'ui.grid', 'ui.grid.pagination', 'ui.grid.resizeColumns'
	//https://github.com/ghiscoding/angular-validation/wiki
	, 'ghiscoding.validation'
	//https://github.com/angular-translate/angular-translate
	, 'pascalprecht.translate'
	, 'ngLoadingSpinner'
	, 'angularSpinner'
	, 'ui.router'
	, 'permission', 'permission.ui'
	//https://github.com/Foxandxss/angular-toastr
	, 'ngAnimate', 'toastr'
	, 'ui.bootstrap'
	//https://github.com/m-e-conroy/angular-dialog-service
	, 'dialogs.main'
]).
config(['$routeProvider', function ($routeProvider) {
	//$routeProvider.otherwise({redirectTo: '/main'});//todo dashboard?
}]).
config(['$stateProvider', function ($stateProvider) {
	$stateProvider
			.state('bro', {//todo Move to './api/bro' or remove
				abstract: true,
				url: '/bro',
				templateUrl: 'view/common/parent.html'
			});
}]).
run(['$rootScope', '$state', '$stateParams', function ($rootScope, $state, $stateParams) {
	// It's very handy to add references to $state and $stateParams to the $rootScope
	// so that you can access them from any scope within your applications. For example,
	// <li ng-class="{ active: $state.includes('contacts.list') }"> will set the <li>
	// to active whenever 'contacts.list' or one of its decendents is active.
	$rootScope.$state = $state;
	$rootScope.$stateParams = $stateParams;
}]).
config(['$translateProvider', function ($translateProvider) {
	$translateProvider.useStaticFilesLoader({
		files: [
			{
				prefix: 'locale/validation/',
				suffix: '.json'
			}
		]
	});

	$translateProvider.useSanitizeValueStrategy('sanitize');

	// define translation maps you want to use on startup
	$translateProvider.preferredLanguage('en');
}])
;
{'fraction_non_alphanumeric': 0.1715210355987055, 'fraction_numerical': 0.0, 'mean_word_length': 4.502967359050445, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 8, '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': '2196161', 'n_tokens_mistral': 1268, 'n_tokens_neox': 1213, 'n_words': 276}