<commit_before>﻿using System;
using System.Diagnostics.Contracts;
using System.Threading.Tasks;

namespace Cogito.Activities
{

    /// <summary>
    /// Provides access to the environment for async operations.
    /// </summary>
    public class AsyncTaskExtension
    {

        static readonly Lazy<AsyncTaskExtension> defaultValue;

        /// <summary>
        /// Initializes the static instance.
        /// </summary>
        static AsyncTaskExtension()
        {
            defaultValue = new Lazy<AsyncTaskExtension>(() => new AsyncTaskExtension());
        }

        /// <summary>
        /// Gets the default implementation.
        /// </summary>
        public static AsyncTaskExtension Default
        {
            get { return defaultValue.Value; }
        }

        /// <summary>
        /// Initializes a new instance.
        /// </summary><commit_msg>Made thread safe.<commit_after>﻿using System;
using System.Diagnostics.Contracts;
using System.Threading.Tasks;

namespace Cogito.Activities
{

    /// <summary>
    /// Provides access to the environment for async operations.
    /// </summary>
    public class AsyncTaskExtension
    {

        static readonly Lazy<AsyncTaskExtension> defaultValue;

        /// <summary>
        /// Initializes the static instance.
        /// </summary>
        static AsyncTaskExtension()
        {
            defaultValue = new Lazy<AsyncTaskExtension>(() => new AsyncTaskExtension(), true);
        }

        /// <summary>
        /// Gets the default implementation.
        /// </summary>
        public static AsyncTaskExtension Default
        {
            get { return defaultValue.Value; }
        }

        /// <summary>
        /// Initializes a new instance.
        /// </summary>
{'fraction_non_alphanumeric': 0.11350737797956867, 'fraction_numerical': 0.0, 'mean_word_length': 1.8573743922204213, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, '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': '4725115', 'n_tokens_mistral': 433, 'n_tokens_neox': 425, 'n_words': 116}