<commit_before>﻿using System;
using MbCache.Configuration;
using MbCacheTest.CacheForTest;
using NUnit.Framework;

namespace MbCacheTest
{

	[TestFixture("MbCache.ProxyImpl.Castle.ProxyFactory, MbCache.ProxyImpl.Castle")]
	[TestFixture("MbCache.ProxyImpl.LinFu.ProxyFactory, MbCache.ProxyImpl.LinFu")]
	public abstract class TestBothProxyFactories
	{
		protected TestBothProxyFactories(string proxyTypeString)
		{
			var proxyType = Type.GetType(proxyTypeString, true);
			ProxyFactory = (IProxyFactory) Activator.CreateInstance(proxyType);
		}

		[SetUp]
		public void Setup()
		{
			CacheBuilder = new CacheBuilder(ProxyFactory, CreateCache(), CreateCacheKey());
			TestSetup();
		}

		protected virtual void TestSetup(){}

		protected virtual CacheBuilder CacheBuilder { get; private set; }
		protected IProxyFactory ProxyFactory { get; private set; }

		protected virtual ICache CreateCache()
		{
			return new TestCache();
		}

		protected virtual IMbCacheKey CreateCacheKey()
		{
			return new ToStringMbCacheKey();
		}
	}
}<commit_msg>Cleaning up. Issue 8 fixed.<commit_after>﻿using System;
using MbCache.Configuration;
using MbCacheTest.CacheForTest;
using NUnit.Framework;

namespace MbCacheTest
{

	[TestFixture("MbCache.ProxyImpl.Castle.ProxyFactory, MbCache.ProxyImpl.Castle")]
	[TestFixture("MbCache.ProxyImpl.LinFu.ProxyFactory, MbCache.ProxyImpl.LinFu")]
	public abstract class TestBothProxyFactories
	{
		protected TestBothProxyFactories(string proxyTypeString)
		{
			var proxyType = Type.GetType(proxyTypeString, true);
			ProxyFactory = (IProxyFactory) Activator.CreateInstance(proxyType);
		}

		[SetUp]
		public void Setup()
		{
			CacheBuilder = new CacheBuilder(ProxyFactory, CreateCache(), CreateCacheKey());
			TestSetup();
		}

		protected virtual void TestSetup(){}

		protected CacheBuilder CacheBuilder { get; private set; }
		protected IProxyFactory ProxyFactory { get; private set; }

		protected virtual ICache CreateCache()
		{
			return new TestCache();
		}

		protected virtual IMbCacheKey CreateCacheKey()
		{
			return new ToStringMbCacheKey();
		}
	}
}
{'fraction_non_alphanumeric': 0.09760765550239234, 'fraction_numerical': 0.0004784688995215311, 'mean_word_length': 5.2604790419161676, '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': '3295346', 'n_tokens_mistral': 711, 'n_tokens_neox': 616, 'n_words': 141}