<commit_before>using Infrastructure.ApplicationSettings;
using Topshelf;

namespace WindowsService.MailSender
{
    public class Program
    {
        public static void Main()
        {
            var applicationSettings = new ApplicationSettings();

            // Use topshelf for installing and activating the Windows service
            // http://topshelf-project.com/
            HostFactory.Run(x =>                                 
            {
                x.Service<MailSenderService>(s =>                       
                {
                    s.ConstructUsing(name => new MailSenderService());    
                    s.WhenStarted(tc => tc.Start());              
                    s.WhenStopped(tc => tc.Stop());               
                });

                // http://4sysops.com/archives/service-account-best-practices-part-1-choosing-a-service-account/
                x.RunAsLocalService();

                x.SetServiceName(applicationSettings.WindowsServiceMailSenderName);
                x.SetDisplayName(applicationSettings.WindowsServiceMailSenderName);
                x.SetDescription("Service for sending email");
<commit_msg>Adjusted service account to local system<commit_after>using Infrastructure.ApplicationSettings;
using Topshelf;

namespace WindowsService.MailSender
{
    public class Program
    {
        public static void Main()
        {
            var applicationSettings = new ApplicationSettings();

            // Use topshelf for installing and activating the Windows service
            // http://topshelf-project.com/
            HostFactory.Run(x =>                                 
            {
                x.Service<MailSenderService>(s =>                       
                {
                    s.ConstructUsing(name => new MailSenderService());    
                    s.WhenStarted(tc => tc.Start());              
                    s.WhenStopped(tc => tc.Stop());               
                });

                // http://4sysops.com/archives/service-account-best-practices-part-1-choosing-a-service-account/
                x.RunAsLocalSystem();

                x.SetServiceName(applicationSettings.WindowsServiceMailSenderName);
                x.SetDisplayName(applicationSettings.WindowsServiceMailSenderName);
                x.SetDescription("Service for sending email");

{'fraction_non_alphanumeric': 0.08860759493670886, 'fraction_numerical': 0.0016877637130801688, 'mean_word_length': 1.5331196581196582, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3212028', 'n_tokens_mistral': 563, 'n_tokens_neox': 520, 'n_words': 93}