<commit_before>﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Threading;
using OELib.ObjectTunnel;
using OELib.FileTunnel;
using System.IO;

namespace FileTunnelSpeedTest
{
    class Program
    {
        static string TestReceiveDirectory = @"C:\Users\ari\TestFileServer\received\";
        static string TestServerRootDirectory = @"C:\Users\ari\TestFileServer\";

        static string TestServerSubDirectory = @"testfolder1\";
        static string TestFile = "test.txt";

        static void Main(string[] args)
        {
            FileServer fileServer = new FileServer("127.0.0.1", 1044, TestServerRootDirectory);
            fileServer.FileTransferAutoProcess = true;
            Thread.Sleep(1000);

            var fileDownloader1 = new FileDownloader("127.0.0.1", 1044, TestReceiveDirectory);
            var fileDownloader2 = new FileDownloader("127.0.0.1", 1044, TestReceiveDirectory);
            var fileDownloader3 = new FileDownloader("127.0.0.1", 1044, TestReceiveDirectory);
            var fileDownloader4 = new FileDownloader("127.0.0.1", 1044, TestReceiveDirectory);
            var fileDownloader5 = new FileDownloader("127.0.0.1", 1044, TestReceiveDirectory);

            Console.WriteLine("\n\nTestFileTransfer - " + TestServerRootDirectory + TestServerSubDirectory + TestFile);
            TestFileTransfer(fileDownloader1, TestServerSubDirectory, TestFile);
            Console.WriteLine("Now check if " + TestFile + " is in " + TestReceiveDirectory);

            //Console.WriteLine("\n\nTestListFiles - " + TestServerRootDirectory + TestServerSubDirectory);
            //TestListFiles(fileDownloader1, TestServerSubDirectory);

            //Console.WriteLine("\n\nTestListDirectories - " + TestServerRootDirectory + TestServerSubDirectory);
            //TestListDirectories(fileDownloader1, TestServerSubDirectory);

            //Console.WriteLine("\n\nTestListProperties - " + TestServerRootDirectory + TestServerSubDirectory + TestFile);
            //Console.WriteLine("\nfileDownloader1");
            //TestListFileProperties(fileDownloader1, TestServerSubDirectory, TestFile);<commit_msg>11 - Added comment that all directories must end with backslash<commit_after>﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Threading;
using OELib.ObjectTunnel;
using OELib.FileTunnel;
using System.IO;

namespace FileTunnelSpeedTest
{
    class Program
    {
        // directories must end with \

        static string TestReceiveDirectory = @"C:\Users\ari\TestFileServer\received\";
        static string TestServerRootDirectory = @"C:\Users\ari\TestFileServer\";

        static string TestServerSubDirectory = @"testfolder1\";
        static string TestFile = "test.txt";

        static void Main(string[] args)
        {
            FileServer fileServer = new FileServer("127.0.0.1", 1044, TestServerRootDirectory);
            fileServer.FileTransferAutoProcess = true;
            Thread.Sleep(1000);

            var fileDownloader1 = new FileDownloader("127.0.0.1", 1044, TestReceiveDirectory);
            var fileDownloader2 = new FileDownloader("127.0.0.1", 1044, TestReceiveDirectory);
            var fileDownloader3 = new FileDownloader("127.0.0.1", 1044, TestReceiveDirectory);
            var fileDownloader4 = new FileDownloader("127.0.0.1", 1044, TestReceiveDirectory);
            var fileDownloader5 = new FileDownloader("127.0.0.1", 1044, TestReceiveDirectory);

            Console.WriteLine("\n\nTestFileTransfer - " + TestServerRootDirectory + TestServerSubDirectory + TestFile);
            TestFileTransfer(fileDownloader1, TestServerSubDirectory, TestFile);
            Console.WriteLine("Now check if " + TestFile + " is in " + TestReceiveDirectory);

            //Console.WriteLine("\n\nTestListFiles - " + TestServerRootDirectory + TestServerSubDirectory);
            //TestListFiles(fileDownloader1, TestServerSubDirectory);

            //Console.WriteLine("\n\nTestListDirectories - " + TestServerRootDirectory + TestServerSubDirectory);
            //TestListDirectories(fileDownloader1, TestServerSubDirectory);

            //Console.WriteLine("\n\nTestListProperties - " + TestServerRootDirectory + TestServerSubDirectory + TestFile);
            //Console.WriteLine("\nfileDownloader1");
            //TestListFileProperties(fileDownloader1, TestServerSubDirectory, TestFile);
{'fraction_non_alphanumeric': 0.10297381269418553, 'fraction_numerical': 0.033732800710164226, 'mean_word_length': 3.3503861003861, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 12, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6610759', 'n_tokens_mistral': 1285, 'n_tokens_neox': 1181, 'n_words': 238}