<commit_before>﻿namespace FacadeNotifier.App
{
    using Autofac;
    using Core.Channels;
    using DI;
    using Main;
    using NLog;
    using System;
    using System.Linq;

    class Program
    {
        private static Logger _logger = LogManager.GetCurrentClassLogger();

        static void Main(string[] args)
        {
            var container = ContainerConfig.Configure();

            using (var scope = container.BeginLifetimeScope())
            {
                var app = scope.Resolve<IApplication>();

                var channelTypes = scope.GetImplementingTypes<IChannel>();

                var channels = channelTypes.Select(t => scope.Resolve(t) as IChannel);

                try
                {
                    app.Run(channels);
                }
                catch (Exception ex)
                {
                    _logger.Error(ex.Message);
                }
            }

            Console.ReadLine();
        }
    }
}<commit_msg>run manually or with DI<commit_after>﻿namespace FacadeNotifier.App
{
    using Autofac;
    using Core.Channels;
    using Core.Clients;
    using DI;
    using Main;
    using NLog;
    using System;
    using System.Collections.Generic;
    using System.Linq;

    class Program
    {
        private static Logger _logger = LogManager.GetCurrentClassLogger();

        static void Main(string[] args)
        {
            #region Run manually
            var channels = new List<IChannel>()
            {
                new HipChatChannel(new HipChatClient(
                    new Uri("https://api.hipchat.com/v2/"),
                    roomToken: "",
                    messageToken: "")),
                new SlackChannel(new SlackClient(
                    new Uri("")))
            };

            new Application().Run(channels);
            #endregion

            #region Run with DI (Autofac)
            //var container = ContainerConfig.Configure();

            //using (var scope = container.BeginLifetimeScope())
            //{
            //    var app = scope.Resolve<IApplication>();

            //    var channelTypes = scope.GetImplementingTypes<IChannel>();

            //    var channels = channelTypes.Select(t => scope.Resolve(t) as IChannel);

            //    try
            //    {
            //        app.Run(channels);
            //    }
            //    catch (Exception ex)
            //    {
            //        _logger.Error(ex.Message);
            //    }
            //}
            #endregion

            Console.ReadLine();
        }
    }
}
{'fraction_non_alphanumeric': 0.09976708074534162, 'fraction_numerical': 0.00038819875776397513, 'mean_word_length': 1.3091397849462365, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, 'https://': 1, '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': '5926494', 'n_tokens_mistral': 667, 'n_tokens_neox': 638, 'n_words': 142}