<commit_before>using System;
using System.Net.Sockets;
using System.Collections.Generic;
using System.Threading;
using System.IO;

namespace RemoteLib.Net.TCP
{

    public class TcpRemoteClient : StreamedRemoteClient
    {
        /// <summary>
        /// Gets the client.
        /// </summary>
        /// <value>
        /// The client.
        /// </value>
        public TcpClient TcpClient { get; private set; }


        /// <summary>
        /// Initializes a new instance of the <see cref="TcpRemoteClient"/> class.
        /// </summary>
        /// <param name="client">The client.</param>
        public TcpRemoteClient(TcpClient client) : base(client.GetStream())
        {
            TcpClient = client;
        }

        public void StartClient()
        {
            PacketReader.StartReadAsync();
            PacketWriter.StartWriteAsync();

            OnClientJoined();
        }

        /// <summary>
        /// Disconnects this instance from any open connections.
        /// </summary>
        public override void Disconnect()
        {
            PacketReader.StopRead();
            PacketWriter.StopWrite();

            TcpClient.Close();

            OnClientLeft();
        }
    }
}
<commit_msg>MEERRRRRGEEEEE branch 'master' of https://github.com/headdetect/ComputerRemote-Server<commit_after>using System;
using System.Net.Sockets;
using System.Collections.Generic;
using System.Threading;
using System.IO;

namespace RemoteLib.Net.TCP
{

    public class TcpRemoteClient : StreamedRemoteClient
    {
        /// <summary>
        /// Gets the client.
        /// </summary>
        /// <value>
        /// The client.
        /// </value>
        public TcpClient TcpClient { get; private set; }


        /// <summary>
        /// Initializes a new instance of the <see cref="TcpRemoteClient"/> class.
        /// </summary>
        /// <param name="client">The client.</param>
        public TcpRemoteClient(TcpClient client) : base(client.GetStream())
        {
            TcpClient = client;
        }

        public void StartClient()
        {
            PacketReader.StartReadAsync();
            PacketWriter.StartWriteAsync();
            OnClientJoined();
        }

        /// <summary>
        /// Disconnects this instance from any open connections.
        /// </summary>
        public override void Disconnect()
        {
            PacketReader.StopRead();
            PacketWriter.StopWrite();

            TcpClient.Close();

            OnClientLeft();
        }
    }
}

{'fraction_non_alphanumeric': 0.12100906582577847, 'fraction_numerical': 0.0, 'mean_word_length': 1.6885593220338984, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 1, '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': '7540153', 'n_tokens_mistral': 681, 'n_tokens_neox': 656, 'n_words': 152}