<commit_before>﻿define(
	[
		"angular",
		"TemplateEngine/Service/Template.js"
	],
	function (angular)
	{
		angular
			.module("Demo", ["Cerberus.Tool.TemplateEngine.Service.Template"])
			.config(
			[
				"Cerberus.Tool.TemplateEngine.Service.TemplateProvider",
				function (TemplateProvider)
				{
					TemplateProvider.SetProvider(Cerberus.Tool.TemplateEngine.Service.TemplateLocalStorageProvider);
				}
			])
			.service("TemplatePresetsService", function ($http)
			{
				var presets = [];

				this.GetPresets = function ()
				{
					$http
						.get("template-presets.json")
						.then(function (response)
						{
							angular.extend(presets, response.data.TemplatePresets);
						});

					return presets;
				};
			})
			.controller("DemoController",
			[
				"$scope",
				"TemplatePresetsService",
				"Cerberus.Tool.TemplateEngine.Service.Template",
				function ($scope, TemplatePresetsService, TemplateService)
				{
					$scope.TemplatePresets = TemplatePresetsService.GetPresets();
					TemplateService.GetTemplates()
						.then(function (templates)<commit_msg>Minification fix<commit_after>﻿define(
	[
		"angular",
		"TemplateEngine/Service/Template.js"
	],
	function (angular)
	{
		angular
			.module("Demo", ["Cerberus.Tool.TemplateEngine.Service.Template"])
			.config(
			[
				"Cerberus.Tool.TemplateEngine.Service.TemplateProvider",
				function (TemplateProvider)
				{
					TemplateProvider.SetProvider(Cerberus.Tool.TemplateEngine.Service.TemplateLocalStorageProvider);
				}
			])
			.service("TemplatePresetsService",
			[
				"$http",
				function ($http)
				{
					var presets = [];

					this.GetPresets = function ()
					{
						$http
							.get("template-presets.json")
							.then(function (response)
							{
								angular.extend(presets, response.data.TemplatePresets);
							});

						return presets;
					};
				}
			])
			.controller("DemoController",
			[
				"$scope",
				"TemplatePresetsService",
				"Cerberus.Tool.TemplateEngine.Service.Template",
				function ($scope, TemplatePresetsService, TemplateService)
				{
					$scope.TemplatePresets = TemplatePresetsService.GetPresets();
					TemplateService.GetTemplates()
						.then(function (templates)
{'fraction_non_alphanumeric': 0.13194758246723903, 'fraction_numerical': 0.0, 'mean_word_length': 3.177358490566038, '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': '4345975', 'n_tokens_mistral': 924, 'n_tokens_neox': 670, 'n_words': 83}