<commit_before>﻿using FluentAssertions;
using Nest.Tests.MockData.Domain;
using NUnit.Framework;

namespace Nest.Tests.Integration.Mapping
{
	[TestFixture]
	public class TemplateTests : IntegrationTests
	{

		[Test]
		public void SimplePutAndGet()
		{
			this._client.DeleteTemplate("put-template-with-settings");
			var putResponse = this._client.PutTemplate(t => t
				.Name("put-template-with-settings")
				.Template("donotinfluencothertests-*")
				.Order(42)
			);
			Assert.IsTrue(putResponse.OK);

			var templateResponse = this._client.GetTemplate("put-template-with-settings");
			templateResponse.Should().NotBeNull();
			templateResponse.IsValid.Should().BeTrue();
			templateResponse.TemplateMapping.Should().NotBeNull();
			templateResponse.TemplateMapping.Mappings.Should().NotBeNull();
			<commit_msg>namespace cleanup<commit_after>﻿using FluentAssertions;
using Nest.Tests.MockData.Domain;
using NUnit.Framework;

namespace Nest.Tests.Integration.Template
{
	[TestFixture]
	public class TemplateTests : IntegrationTests
	{

		[Test]
		public void SimplePutAndGet()
		{
			this._client.DeleteTemplate("put-template-with-settings");
			var putResponse = this._client.PutTemplate(t => t
				.Name("put-template-with-settings")
				.Template("donotinfluencothertests-*")
				.Order(42)
			);
			Assert.IsTrue(putResponse.OK);

			var templateResponse = this._client.GetTemplate("put-template-with-settings");
			templateResponse.Should().NotBeNull();
			templateResponse.IsValid.Should().BeTrue();
			templateResponse.TemplateMapping.Should().NotBeNull();
			templateResponse.TemplateMapping.Mappings.Should().NotBeNull();
			
{'fraction_non_alphanumeric': 0.13178767541183647, 'fraction_numerical': 0.0024405125076266015, 'mean_word_length': 5.029411764705882, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3133978', 'n_tokens_mistral': 564, 'n_tokens_neox': 482, 'n_words': 67}