<commit_before>﻿using Simplic.CDN.CSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SampleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                // Create a new connection
                using (var cdn = new Cdn("http://localhost:50121/api/v1-0/"))
                {
                    // Ping the server
                    Console.WriteLine("Ping: " + cdn.Ping());

                    // Try to connect
                    if (cdn.Connect("UnitTestUser", "UnitTestPassword"))
                    {
                        Console.WriteLine($"Connected with cdn service: {cdn.Url}");

                        // Write data
                        cdn.WriteData("sample.data", new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 });

                        // Read data
                        var data = cdn.ReadData("sample.data");
                    }
                    else
                    {
                        Console.WriteLine($"Could not connect to: {cdn.Url}");
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Something went wrong... ");

                Console.WriteLine(ex.Message);

                Exception _ex = ex.InnerException;

                while (_ex != null)
                {
                    Console.WriteLine(_ex.Message);
                    _ex = _ex.InnerException;
                }
            }

            Console.ReadLine();
        }
    }
}<commit_msg>Complete first version of the cdn c# api<commit_after>﻿using Simplic.CDN.CSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SampleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                // Create a new connection
                using (var cdn = new Cdn("http://localhost:50121/api/v1-0/"))
                {
                    // Ping the server
                    Console.WriteLine("Ping: " + cdn.Ping());

                    // Try to connect
                    if (cdn.Connect("UnitTestUser", "UnitTestPassword"))
                    {
                        Console.WriteLine($"Connected with cdn service: {cdn.Url}");

                        // Write data
                        cdn.WriteData("sample.data", new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 });

                        // Read data
                        var data = cdn.ReadData("sample.data");
                    }
                    else
                    {
                        Console.WriteLine($"Could not connect to: {cdn.Url}");
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Something went wrong... ");

                Console.WriteLine(ex.Message);

                Exception _ex = ex.InnerException;

                // Read list of inner exception until no exception exists
                while (_ex != null)
                {
                    Console.WriteLine(_ex.Message);
                    _ex = _ex.InnerException;
                }
            }

            Console.ReadLine();
        }
    }
}
{'fraction_non_alphanumeric': 0.0990862364363221, 'fraction_numerical': 0.010279840091376356, 'mean_word_length': 0.9602686066032456, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3677842', 'n_tokens_mistral': 934, 'n_tokens_neox': 802, 'n_words': 194}