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

namespace UdpReceiver
{
    class Program
    {
        const int ReceiverPort = 8100;

        static void Main(string[] args)
        {
            Task.Run(() =>
            {
                var client = new UdpClient(ReceiverPort);
                var senderEP = default(IPEndPoint);

                while (true)
                {
                    try
                    {
                        var data = client.Receive(ref senderEP);
                        var text = Encoding.UTF8.GetString(data);

                        Console.WriteLine($"{senderEP} {DateTime.Now:HH:mm:ss.fff}: {text}");
                    }
                    catch (SocketException ex)
                    {
                        switch (ex.SocketErrorCode)
                        {<commit_msg>Show IP addresses of receiver<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace UdpReceiver
{
    class Program
    {
        const int ReceiverPort = 8100;

        static void Main(string[] args)
        {
            var addresses = Dns.GetHostAddresses(Dns.GetHostName())
                .Where(a => a.AddressFamily == AddressFamily.InterNetwork);
            Console.WriteLine("IP addresses of this computer:");
            foreach (var address in addresses)
                Console.WriteLine(address);

            Task.Run(() =>
            {
                var client = new UdpClient(ReceiverPort);
                var senderEP = default(IPEndPoint);

                while (true)
                {
                    try
                    {
                        var data = client.Receive(ref senderEP);
                        var text = Encoding.UTF8.GetString(data);

                        Console.WriteLine($"{senderEP} {DateTime.Now:HH:mm:ss.fff}: {text}");
                    }
                    catch (SocketException ex)
                    {
                        switch (ex.SocketErrorCode)
                        {
{'fraction_non_alphanumeric': 0.08981769675411294, 'fraction_numerical': 0.004446420631391729, 'mean_word_length': 1.356020942408377, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '3506194', 'n_tokens_mistral': 572, 'n_tokens_neox': 532, 'n_words': 125}