<commit_before>﻿using System;
using System.Threading.Tasks;
using Ploeh.AutoFixture;
using Xunit;

namespace Takenet.Elephant.Tests
{
    public abstract class ExpirableKeyMapFacts<TKey, TValue> : FactsBase
    {
        public abstract IExpirableKeyMap<TKey, TValue> Create();

        public virtual TKey CreateKey()
        {
            return Fixture.Create<TKey>();
        }

        public virtual TValue CreateValue(TKey key)
        {
            return Fixture.Create<TValue>();
        }

        public virtual TimeSpan CreateTtl()
        {
            return TimeSpan.FromMilliseconds(100);
        }<commit_msg>Changed ttl for expiration tests<commit_after>﻿using System;
using System.Threading.Tasks;
using Ploeh.AutoFixture;
using Xunit;

namespace Takenet.Elephant.Tests
{
    public abstract class ExpirableKeyMapFacts<TKey, TValue> : FactsBase
    {
        public abstract IExpirableKeyMap<TKey, TValue> Create();

        public virtual TKey CreateKey()
        {
            return Fixture.Create<TKey>();
        }

        public virtual TValue CreateValue(TKey key)
        {
            return Fixture.Create<TValue>();
        }

        public virtual TimeSpan CreateTtl()
        {
            return TimeSpan.FromMilliseconds(250);
        }
{'fraction_non_alphanumeric': 0.08326787117046347, 'fraction_numerical': 0.004713275726630008, 'mean_word_length': 2.415549597855228, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2885030', 'n_tokens_mistral': 369, 'n_tokens_neox': 356, 'n_words': 84}