<commit_before>using System;
using System.Collections.Generic;
using System.Text;

namespace MonoTorrent.Common
{
    public class TorrentCreatorAsyncResult : IAsyncResult
    {
        #region Member Variables

        private bool aborted;
        private object asyncState;
        private AsyncCallback callback;
        private bool isCompleted;
        private Exception savedException;
        private ManualResetEvent waitHandle;

        #endregion Member Variables


        #region Properties

        public object AsyncState
        {
            get { return asyncState; }
        }

        public bool Aborted
        {
            get { return this.aborted; }
        }

        public WaitHandle AsyncWaitHandle
        {
            get { return waitHandle; }
        }

        internal AsyncCallback Callback
        {
            get { return callback; }
        }

        public bool CompletedSynchronously
        {
            get { return false; }
        }

        public bool IsCompleted
        {
            get { return isCompleted; }
            internal set { isCompleted = value; }
        }

        internal Exception SavedException
        {
            get { return this.savedException; }
            set { this.savedException = value; }
        }

        #endregion Properties


        #region Constructors

        public TorrentCreatorAsyncResult(object asyncState, AsyncCallback callback)
        {
            this.asyncState = asyncState;
            this.callback = callback;
            this.waitHandle = new ManualResetEvent(false);
        }

        #endregion Constructors


        #region Methods

        public void Abort()
        {
            this.aborted = true;
        }

        #endregion Methods
    }

}
<commit_msg>Added using statement<commit_after>using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace MonoTorrent.Common
{
    public class TorrentCreatorAsyncResult : IAsyncResult
    {
        #region Member Variables

        private bool aborted;
        private object asyncState;
        private AsyncCallback callback;
        private bool isCompleted;
        private Exception savedException;
        private ManualResetEvent waitHandle;

        #endregion Member Variables


        #region Properties

        public object AsyncState
        {
            get { return asyncState; }
        }

        public bool Aborted
        {
            get { return this.aborted; }
        }

        public WaitHandle AsyncWaitHandle
        {
            get { return waitHandle; }
        }

        internal AsyncCallback Callback
        {
            get { return callback; }
        }

        public bool CompletedSynchronously
        {
            get { return false; }
        }

        public bool IsCompleted
        {
            get { return isCompleted; }
            internal set { isCompleted = value; }
        }

        internal Exception SavedException
        {
            get { return this.savedException; }
            set { this.savedException = value; }
        }

        #endregion Properties


        #region Constructors

        public TorrentCreatorAsyncResult(object asyncState, AsyncCallback callback)
        {
            this.asyncState = asyncState;
            this.callback = callback;
            this.waitHandle = new ManualResetEvent(false);
        }

        #endregion Constructors


        #region Methods

        public void Abort()
        {
            this.aborted = true;
        }

        #endregion Methods
    }

}

{'fraction_non_alphanumeric': 0.055, 'fraction_numerical': 0.0, 'mean_word_length': 1.598124098124098, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4224396', 'n_tokens_mistral': 869, 'n_tokens_neox': 825, 'n_words': 232}