<commit_before>﻿using System;

namespace Jwc.Experiment
{
    public class FakeTestFixture : ITestFixture
    {
        private readonly string _stringValue = Guid.NewGuid().ToString();
        private readonly string _intValue = Guid.NewGuid().ToString();
        private readonly Func<object, object> _onCreate;

        public FakeTestFixture()
        {
            _onCreate = r =>
            {
                var type = r as Type;
                if (type != null)
                {
                    if (type == typeof(string))
                    {
                        return _stringValue;
                    }
                    if (type == typeof(int))
                    {
                        return _intValue;
                    }
                }

                throw new NotSupportedException();
            };
        }

        public Func<object, object> OnCreate
        {
            get
            {
                return _onCreate;
            }
        }

        public string StringValue
        {
            get
            {
                return _stringValue;
            }
        }

        public string IntValue
        {
            get
            {
                return _intValue;
            }
        }

        public object Create(object request)
        {
            return OnCreate(request);
        }
    }
}<commit_msg>refactor: remove unused property 'OnCreate'.<commit_after>﻿using System;

namespace Jwc.Experiment
{
    public class FakeTestFixture : ITestFixture
    {
        private readonly string _stringValue = Guid.NewGuid().ToString();
        private readonly string _intValue = Guid.NewGuid().ToString();
        private readonly Func<object, object> _onCreate;

        public FakeTestFixture()
        {
            _onCreate = r =>
            {
                var type = r as Type;
                if (type != null)
                {
                    if (type == typeof(string))
                    {
                        return _stringValue;
                    }
                    if (type == typeof(int))
                    {
                        return _intValue;
                    }
                }

                throw new NotSupportedException();
            };
        }

        public string StringValue
        {
            get
            {
                return _stringValue;
            }
        }

        public string IntValue
        {
            get
            {
                return _intValue;
            }
        }
        
        public object Create(object request)
        {
            return _onCreate(request);
        }
    }
}
{'fraction_non_alphanumeric': 0.0696629213483146, 'fraction_numerical': 0.0, 'mean_word_length': 0.9299132947976878, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, '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': '663020', 'n_tokens_mistral': 644, 'n_tokens_neox': 597, 'n_words': 143}