<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TirkxDownloader.Framework.Interface
{
    /// <summary>
    /// This interface should be implemented for recieve JSON then parse it and return to caller
    /// </summary>
    /// <typeparam name="T">Type of message, must be JSON compatibility</typeparam>
    interface IMessageReciever<T>
    {
        ICollection<string> Prefixes { get; }

        bool IsRecieving { get; }

        Task<T> GetMessageAsync();

        /// <summary>
        /// Call this method when terminate application
        /// </summary>
        void Close();

        /// <summary>
        /// Call this method when you want to stop reciever
        /// </summary>
        void StopReciever();
    }
}<commit_msg>Delete stop reciever, to stop receiver use CancellationToken<commit_after>﻿using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

namespace TirkxDownloader.Framework.Interface
{
    /// <summary>
    /// This interface should be implemented for recieve JSON then parse it and return to caller
    /// </summary>
    /// <typeparam name="T">Type of message, must be JSON compatibility</typeparam>
    public interface IMessageReciever<T>
    {
        ICollection<string> Prefixes { get; }

        bool IsRecieving { get; }

        Task<T> GetMessageAsync();

        Task<T> GetMessageAsync(CancellationToken ct);

        /// <summary>
        /// Call this method when terminate application
        /// </summary>
        void Close();
    }
}
{'fraction_non_alphanumeric': 0.11021671826625387, 'fraction_numerical': 0.0, 'mean_word_length': 2.536105032822757, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3211218', 'n_tokens_mistral': 436, 'n_tokens_neox': 433, 'n_words': 134}