<commit_before>﻿// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace System.Threading
{
    /// <summary>
    /// Contains Core-CLR specific Sleep and Spin-wait logic
    /// </summary>
    internal static class Helpers
    {
        private static readonly WaitHandle s_sleepHandle = new System.Threading.ManualResetEvent(false);

        internal static void Sleep(uint milliseconds)
        {
            s_sleepHandle.WaitOne((int)milliseconds);
        }

        internal static void Spin(int iterations)
        {
            Thread.SpinWait(iterations);
        }
    }
}<commit_msg>Use Thread.Sleep in System.Threading.Helpers.Sleep on CoreCLR<commit_after>﻿// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace System.Threading
{
    /// <summary>
    /// Contains Core-CLR specific Sleep and Spin-wait logic
    /// </summary>
    internal static class Helpers
    {
        internal static void Sleep(int milliseconds)
        {
            Thread.Sleep(milliseconds);
        }

        internal static void Spin(int iterations)
        {
            Thread.SpinWait(iterations);
        }
    }
}
{'fraction_non_alphanumeric': 0.08590806330067823, 'fraction_numerical': 0.0, 'mean_word_length': 2.3791348600508906, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5010405', 'n_tokens_mistral': 346, 'n_tokens_neox': 333, 'n_words': 112}