<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Xemio.GameLibrary.Common
{
    public static class Singleton<T> where T : class, new()
    {
        #region Fields
        private static readonly Lazy<T> _lazy = new Lazy<T>();
        #endregion

        #region Properties
        /// <summary>
        /// Gets the static singleton instance.
        /// </summary>
        public static T Value
        {
            get { return _lazy.Value; }
        }
        #endregion
    }
}<commit_msg>Implemented a backwarts compatible singleton for .NET < 3.5.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Xemio.GameLibrary.Common
{
    public static class Singleton<T> where T : class, new()
    {
        #region Fields
        private static readonly T _instance = new T();
        #endregion

        #region Properties
        /// <summary>
        /// Gets the static singleton instance.
        /// </summary>
        public static T Value
        {
            get { return _instance; }
        }
        #endregion
    }
}
{'fraction_non_alphanumeric': 0.0982367758186398, 'fraction_numerical': 0.0016792611251049538, 'mean_word_length': 2.017721518987342, 'pattern_counts': {'":': 0, '<': 12, '<?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': '247739', 'n_tokens_mistral': 330, 'n_tokens_neox': 326, 'n_words': 101}