<commit_before>﻿using System;
using System.IO;
using System.Threading;
using HardwareMonitorService;
using Nancy.Hosting.Self;

namespace HardwareMonitorApplication
{
    static class Program
    {
        [STAThread]
        static void Main()
        {
            var hardwareMonitorServiceExe = new FileInfo("HardwareMonitorService.exe");

            ServiceManager serviceManager = new ServiceManager("HardwareMonitor", hardwareMonitorServiceExe.FullName);
            serviceManager.StopService();
            serviceManager.DeleteService();
            serviceManager.CreateService();
            serviceManager.StartService();

            /*string uri = $"http://localhost:{6200}/";
            var _host = new NancyHost(new Uri(uri));
            _host.Start();
            while (true)
            {
                Thread.Sleep(123);
            }*/
        }
    }
}<commit_msg>Comment: "use this code to run service code inside application"<commit_after>﻿using System;
using System.IO;
using System.Threading;
using HardwareMonitorService;
using Nancy.Hosting.Self;

namespace HardwareMonitorApplication
{
    static class Program
    {
        [STAThread]
        static void Main()
        {
            var hardwareMonitorServiceExe = new FileInfo("HardwareMonitorService.exe");

            ServiceManager serviceManager = new ServiceManager("HardwareMonitor", hardwareMonitorServiceExe.FullName);
            serviceManager.StopService();
            serviceManager.DeleteService();
            serviceManager.CreateService();
            serviceManager.StartService();

            // use this code to run service code inside application
            /*string uri = $"http://localhost:{6200}/";
            var _host = new NancyHost(new Uri(uri));
            _host.Start();
            while (true)
            {
                Thread.Sleep(123);
            }*/
        }
    }
}
{'fraction_non_alphanumeric': 0.09516298633017876, 'fraction_numerical': 0.007360672975814932, 'mean_word_length': 2.214527027027027, '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': '1868532', 'n_tokens_mistral': 477, 'n_tokens_neox': 455, 'n_words': 106}