<commit_before>﻿using Gigobyte.Daterpillar.Arguments;
using Gigobyte.Daterpillar.Commands;
using System;

namespace Gigobyte.Daterpillar
{
    public class Program
    {
        internal static void Main(string[] args)
        {
            InitializeWindow();

            int exitCode = 0;
            var options = new Options();
            
            if (args.Length > 0)
            {
                var errorOccurred = CommandLine.Parser.Default.ParseArguments(args, options,
                    onVerbCommand: (verb, arg) =>
                    {
                        ICommand command = new CommandFactory().CrateInstance(verb);
                        try { exitCode = command.Execute(arg); }
                        catch (Exception ex)
                        {
                            Console.ForegroundColor = ConsoleColor.Red;
                            Console.WriteLine(ex);
                            exitCode = 1;
                        }
                    });
            }
            else Console.WriteLine(options.GetHelp());

            Environment.Exit(exitCode);
        }

        #region Private Members

        private static readonly string _logo = @"
  _____        _                  _ _ _
 |  __ \      | |                (_) | |
 | |  | | __ _| |_ ___ _ __ _ __  _| | | __ _ _ __
 | |  | |/ _` | __/ _ \ '__| '_ \| | | |/ _` | '__|
 | |__| | (_| | ||  __/ |  | |_) | | | | (_| | |
 |_____/ \__,_|\__\___|_|  | .__/|_|_|_|\__,_|_|
                           | |
                           |_|
";

        private static void InitializeWindow()
        {
            Console.Title = $"{nameof(Daterpillar)} CLI";
            Console.WriteLine(_logo.Trim());
        }

        #endregion Private Members
    }
}<commit_msg>Remove unused code<commit_after>﻿using Gigobyte.Daterpillar.Arguments;
using Gigobyte.Daterpillar.Commands;
using System;

namespace Gigobyte.Daterpillar
{
    public class Program
    {
        internal static void Main(string[] args)
        {
            InitializeWindow();

            var options = new Options();
            if (args.Length > 0)
            {
                CommandLine.Parser.Default.ParseArguments(args, options,
                    onVerbCommand: (verb, arg) =>
                    {
                        ICommand command = new CommandFactory().CrateInstance(verb);
                        try { _exitCode = command.Execute(arg); }
                        catch (Exception ex)
                        {
                            _exitCode = ExitCode.UnhandledException;
                            Console.ForegroundColor = ConsoleColor.Red;
                            Console.WriteLine(ex);
                        }
                    });
            }
            else Console.WriteLine(options.GetHelp());
            Environment.Exit(_exitCode);
        }

        #region Private Members

        private static int _exitCode;

        private static void InitializeWindow()
        {
            Console.Title = $"{nameof(Daterpillar)} CLI";
        }

        #endregion Private Members
    }
}
{'fraction_non_alphanumeric': 0.10102960102960103, 'fraction_numerical': 0.001287001287001287, 'mean_word_length': 1.2238912732474965, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3732703', 'n_tokens_mistral': 828, 'n_tokens_neox': 773, 'n_words': 137}