<commit_before>﻿namespace PatchKit.Unity.Patcher.Cancellation
{
    internal class CancellationTokenSource
    {
        public bool IsCancelled { get; private set; }

        public CancellationTokenSource()
        {
            IsCancelled = false;
        }

        public void Cancel()
        {
            IsCancelled = true;
        }

        public CancellationToken Token
        {
            get { return new CancellationToken(this); }
        }
    }
}<commit_msg>Add implicit conversion from CancellationTokenSource to CancellationToken<commit_after>﻿namespace PatchKit.Unity.Patcher.Cancellation
{
    internal class CancellationTokenSource
    {
        public bool IsCancelled { get; private set; }

        public CancellationTokenSource()
        {
            IsCancelled = false;
        }

        public void Cancel()
        {
            IsCancelled = true;
        }

        public CancellationToken Token
        {
            get { return new CancellationToken(this); }
        }

        public static implicit operator CancellationToken(CancellationTokenSource cancellationTokenSource)
        {
            return cancellationTokenSource.Token;
        }
    }
}
{'fraction_non_alphanumeric': 0.061872909698996656, 'fraction_numerical': 0.0, 'mean_word_length': 1.941031941031941, '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': '1561582', 'n_tokens_mistral': 294, 'n_tokens_neox': 305, 'n_words': 68}