<commit_before>#if NET20 || NET30 || NET35 || NET40

using System.Reflection;
using System.Security;
using System.Threading;
using System.Threading.Tasks;

namespace System.Runtime.CompilerServices
{
    /// <summary>
    ///   Provides an awaiter for awaiting a <see cref="Task" /> .
    /// </summary>
    /// <remarks>
    ///   This type is intended for compiler use only.
    /// </remarks>
    public struct TaskAwaiter : ICriticalNotifyCompletion
    {
        /// <summary>
        ///   A MethodInfo for the Exception.PrepForRemoting method.
        /// </summary>
        private static readonly MethodInfo s_prepForRemoting = GetPrepForRemotingMethodInfo();

        /// <summary>
        ///   An empty array to use with MethodInfo.Invoke.
        /// </summary>
        private static readonly object[] s_emptyParams = new object[0];

        /// <summary>
        ///   The default value to use for continueOnCapturedContext.
        /// </summary>
        internal const bool CONTINUE_ON_CAPTURED_CONTEXT_DEFAULT = true;

        /// <summary>
        ///   Error message for GetAwaiter.
        /// </summary>
        private const string InvalidOperationException_TaskNotCompleted = "The task has not yet completed.";

        /// <summary>
        ///   The task being awaited.
        /// </summary>
        private readonly Task m_task;

        /// <summary>
        ///   Gets whether the task being awaited is completed.
        /// </summary>
        /// <remarks>
        ///   This property is intended for compiler user rather than use directly in code.
        /// </remarks>
        /// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception>
        public bool IsCompleted
        {
            get { return m_task.IsCompleted; }
        }

        /// <summary>
        ///   Whether the current thread is appropriate for inlining the await continuation.
        /// </summary>
        private static bool IsValidLocationForInlining
        {
            get
            {
                var current = SynchronizationContext.Current;
                if (current != null && current.GetType() != typeof(SynchronizationContext))
                    return false;
                return TaskScheduler.Current == TaskScheduler.Default;
            }
        }

        static TaskAwaiter()
        {
        }

        /// <summary>
        ///   Initializes the <see cref="TaskAwaiter" /> .
        /// </summary>
        /// <param name="task"> The <see cref="Task" /> to be awaited. </param>
        internal TaskAwaiter(Task task)<commit_msg>Removing empty static constructor<commit_after>#if NET20 || NET30 || NET35 || NET40

using System.Reflection;
using System.Security;
using System.Threading;
using System.Threading.Tasks;

namespace System.Runtime.CompilerServices
{
    /// <summary>
    ///   Provides an awaiter for awaiting a <see cref="Task" /> .
    /// </summary>
    /// <remarks>
    ///   This type is intended for compiler use only.
    /// </remarks>
    public struct TaskAwaiter : ICriticalNotifyCompletion
    {
        /// <summary>
        ///   A MethodInfo for the Exception.PrepForRemoting method.
        /// </summary>
        private static readonly MethodInfo s_prepForRemoting = GetPrepForRemotingMethodInfo();

        /// <summary>
        ///   An empty array to use with MethodInfo.Invoke.
        /// </summary>
        private static readonly object[] s_emptyParams = new object[0];

        /// <summary>
        ///   The default value to use for continueOnCapturedContext.
        /// </summary>
        internal const bool CONTINUE_ON_CAPTURED_CONTEXT_DEFAULT = true;

        /// <summary>
        ///   Error message for GetAwaiter.
        /// </summary>
        private const string InvalidOperationException_TaskNotCompleted = "The task has not yet completed.";

        /// <summary>
        ///   The task being awaited.
        /// </summary>
        private readonly Task m_task;

        /// <summary>
        ///   Gets whether the task being awaited is completed.
        /// </summary>
        /// <remarks>
        ///   This property is intended for compiler user rather than use directly in code.
        /// </remarks>
        /// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception>
        public bool IsCompleted
        {
            get { return m_task.IsCompleted; }
        }

        /// <summary>
        ///   Whether the current thread is appropriate for inlining the await continuation.
        /// </summary>
        private static bool IsValidLocationForInlining
        {
            get
            {
                var current = SynchronizationContext.Current;
                if (current != null && current.GetType() != typeof(SynchronizationContext))
                    return false;
                return TaskScheduler.Current == TaskScheduler.Default;
            }
        }

        /// <summary>
        ///   Initializes the <see cref="TaskAwaiter" /> .
        /// </summary>
        /// <param name="task"> The <see cref="Task" /> to be awaited. </param>
        internal TaskAwaiter(Task task)
{'fraction_non_alphanumeric': 0.11046959199384142, 'fraction_numerical': 0.003464203233256351, 'mean_word_length': 1.7925846319183234, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '5392823', 'n_tokens_mistral': 1326, 'n_tokens_neox': 1285, 'n_words': 396}