<commit_before>﻿using System;
using System.Threading.Tasks;

namespace PokeD.Core.Wrappers
{
    public interface INetworkTCPServerAsync
    {
        Task<INetworkTcpClient> AcceptTcpClientAsync(Byte[] bytes, Int32 offset, Int32 count);
    }

    public interface INetworkTCPServer : INetworkTCPServerAsync, IDisposable
    {
        ushort Port { get; set; }

        void Start();
        void Stop();

        INetworkTcpClient AcceptNetworkTCPClient();

        INetworkTCPServer NewInstance(ushort port);
    }

    public static class NetworkTCPServerWrapper
    {
        private static INetworkTCPServer _instance;
        public static INetworkTCPServer Instance
        {
            private get
            {
                if (_instance == null)
                    throw new NotImplementedException("This instance is not implemented. You need to implement it in your main project");<commit_msg>Added AvailableClients bool in INetworkTCPServer<commit_after>﻿using System;
using System.Threading.Tasks;

namespace PokeD.Core.Wrappers
{
    public interface INetworkTCPServerAsync
    {
        Task<INetworkTcpClient> AcceptTcpClientAsync(Byte[] bytes, Int32 offset, Int32 count);
    }

    public interface INetworkTCPServer : INetworkTCPServerAsync, IDisposable
    {
        ushort Port { get; set; }
        bool AvailableClients { get; }

        void Start();
        void Stop();

        INetworkTcpClient AcceptNetworkTCPClient();

        INetworkTCPServer NewInstance(ushort port);
    }

    public static class NetworkTCPServerWrapper
    {
        private static INetworkTCPServer _instance;
        public static INetworkTCPServer Instance
        {
            private get
            {
                if (_instance == null)
                    throw new NotImplementedException("This instance is not implemented. You need to implement it in your main project");
{'fraction_non_alphanumeric': 0.06071805702217529, 'fraction_numerical': 0.004223864836325237, 'mean_word_length': 2.616412213740458, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '346783', 'n_tokens_mistral': 501, 'n_tokens_neox': 499, 'n_words': 140}