<commit_before>﻿using System;

namespace IEVin.PropertyChangedNotificator.Helper
{
    public class TypeCache<T>
    {
        // ReSharper disable once StaticMemberInGenericType
        static Type s_type;

        public static Type GetOrCreate(Func<Type, Type> creator)
        {
            if(s_type != null)
                return s_type;

            lock(typeof(TypeCache<T>).FullName)
                return s_type ?? (s_type = creator(typeof(T)));
        }
    }
}<commit_msg>Small fix<commit_after>﻿using System;

namespace IEVin.PropertyChangedNotificator.Helper
{
    class TypeCache<T>
    {
        // ReSharper disable once StaticMemberInGenericType
        static Type s_type;

        public static Type GetOrCreate(Func<Type, Type> creator)
        {
            if(s_type != null)
                return s_type;

            lock(typeof(TypeCache<T>))
                return s_type ?? (s_type = creator(typeof(T)));
        }
    }
}
{'fraction_non_alphanumeric': 0.0898989898989899, 'fraction_numerical': 0.0, 'mean_word_length': 1.880813953488372, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1755437', 'n_tokens_mistral': 300, 'n_tokens_neox': 279, 'n_words': 58}