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

namespace Akka.IO.ConsoleTextClient
{
    class Program
    {
        static void Main(string[] args)
        {
            IPHostEntry ipHostInfo = Dns.GetHostEntry("localhost");
            IPAddress ipAddress = ipHostInfo.AddressList[0];
            IPEndPoint remoteEP = new IPEndPoint(ipAddress, 34000);

            Socket sender = new Socket(AddressFamily.InterNetwork,
               SocketType.Stream, ProtocolType.Unspecified);

            sender.Connect(remoteEP);

            Console.WriteLine("Socket connected to {0}",
                sender.RemoteEndPoint.ToString());

            while(true)
            {
                var input = Console.ReadLine();
                var encodedInput = Encoding.UTF8.GetBytes(input);

                int bytesSent = sender.Send(encodedInput);
                var inputString = new ArraySegment<byte>(encodedInput, 0, encodedInput.Length);  
   
          
                //var receiveTasl = client.ReceiveAsync(received,new CancellationToken());

                //receiveTasl.ContinueWith(res =>
                //{
                //    if (res.IsCompleted)
                //    {
                //        Console.WriteLine(Encoding.UTF8.GetChars(received.Array));
                //    }
                    

                //    if (res.IsFaulted)
                //    {
                //        Console.WriteLine("Bang");<commit_msg>ok so text goes from client to the server!<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Akka.IO.ConsoleTextClient
{
    class Program
    {
        static void Main(string[] args)
        {
            IPHostEntry ipHostInfo = Dns.GetHostEntry("localhost");
            IPAddress ipAddress = ipHostInfo.AddressList[1];
            IPEndPoint remoteEP = new IPEndPoint(ipAddress, 34000);

            Socket sender = new Socket(AddressFamily.InterNetwork,
               SocketType.Stream, ProtocolType.Tcp);

            sender.Connect(remoteEP);

            Console.WriteLine("Socket connected to {0}",
                sender.RemoteEndPoint.ToString());

            while(true)
            {
                var input = Console.ReadLine();
                var encodedInput = Encoding.UTF8.GetBytes(input);

                int bytesSent = sender.Send(encodedInput);
                var inputString = new ArraySegment<byte>(encodedInput, 0, encodedInput.Length);  
   
          
                //var receiveTasl = client.ReceiveAsync(received,new CancellationToken());

                //receiveTasl.ContinueWith(res =>
                //{
                //    if (res.IsCompleted)
                //    {
                //        Console.WriteLine(Encoding.UTF8.GetChars(received.Array));
                //    }
                    

                //    if (res.IsFaulted)
                //    {
                //        Console.WriteLine("Bang");
{'fraction_non_alphanumeric': 0.09891472868217054, 'fraction_numerical': 0.006201550387596899, 'mean_word_length': 1.6551440329218108, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6535607', 'n_tokens_mistral': 869, 'n_tokens_neox': 804, 'n_words': 155}