<commit_before>﻿namespace PomodoroClient
{
    using ConsoleApp;
    using Pomodoro;
    using Pomodoro.Timer;
    using Pomodoro.Wamp.Server;
    using WampSharp.V2;
    using WampSharp.V2.Client;
    using System;

    class Program
    {
        static void Main(string[] args)
        {
            var factory =
                            new DefaultWampChannelFactory();

            const string serverAddress = "ws://127.0.0.1:8080/ws";

            var channel =
                factory.CreateMsgpackChannel(serverAddress, "tarnasPomodoroRealm");

            channel.Open().Wait(5000);

            var proxy =
                channel.RealmProxy.Services.GetCalleeProxy<PomodoroService>();

            Console.ReadLine();

            var pomodoroConfig = new PomodoroConfig
            {
                Productivity = TimeSpan.FromMinutes(25),
                LongBreak = TimeSpan.FromMinutes(20),
                ShortBreak = TimeSpan.FromMinutes(5),
                LongBreakAfter = 4
            };

            var pomodoroIdentifier = proxy.SetupNewPomodoro(pomodoroConfig);

            var pomodoroProxy = new RemotePomodoroNotifier(pomodoroIdentifier, channel.RealmProxy, new SystemTimeMaster());

            var ui = new Ui(pomodoroConfig);
            ui.Subscribe(pomodoroProxy);

            Console.ReadLine();
<commit_msg>wow I must have been tired to upload something that does not work<commit_after>﻿namespace PomodoroClient
{
    using ConsoleApp;
    using Pomodoro;
    using Pomodoro.Timer;
    using Pomodoro.Wamp.Server;
    using WampSharp.V2;
    using WampSharp.V2.Client;
    using System;

    class Program
    {
        static void Main(string[] args)
        {
            var factory =
                            new DefaultWampChannelFactory();

            const string serverAddress = "ws://127.0.0.1:8080/ws";

            var channel =
                factory.CreateMsgpackChannel(serverAddress, "tarnasPomodoroRealm");

            channel.Open().Wait(5000);

            var proxy =
                channel.RealmProxy.Services.GetCalleeProxy<PomodoroService>();

            Console.ReadLine();

            var pomodoroConfig = new PomodoroConfig
            {
                Productivity = TimeSpan.FromMinutes(25),
                LongBreak = TimeSpan.FromMinutes(20),
                ShortBreak = TimeSpan.FromMinutes(5),
                LongBreakAfter = 4
            };

            var pomodoroIdentifier = proxy.SetupNewPomodoro(pomodoroConfig);

            var pomodoroProxy = new RemotePomodoroNotifier(pomodoroIdentifier, channel.RealmProxy, new SystemTimeMaster());

            var ui = new Ui();
            ui.Subscribe(pomodoroProxy);

            Console.ReadLine();

{'fraction_non_alphanumeric': 0.08321167883211679, 'fraction_numerical': 0.016058394160583942, 'mean_word_length': 1.906680805938494, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6478736', 'n_tokens_mistral': 802, 'n_tokens_neox': 722, 'n_words': 146}