<commit_before>﻿using System;
using System.Linq;
using Hades.Core.Tools;
using Hades.Language.Lexer;
using Hades.Language.Parser;

namespace Hades.Core
{
    public static class Program
    {
        public static int Main(string[] args)
        {
            if (args.Length != 0)
            {
                switch (args.First())
                {
                    case "new":
                        return ProjectInitializer.Run(args.Skip(1).ToList());
                    case "package":
                        return 0;
                }
            }

            while (true)
            {
                var lexer = new Lexer();
                Console.Write("hades>");
                var tokens = lexer.LexFile(Console.ReadLine());
                Console.WriteLine();
                var parser = new Parser(tokens);

                try
                {
                    var root = parser.Parse();
                    Console.WriteLine(root);
                }
                catch (Exception e)
                {
                    Console.WriteLine(e.Message + "\n");
                }
            }
        }
    }
}<commit_msg>Reformat<commit_after>﻿using System;
using System.Linq;
using Hades.Core.Tools;
using Hades.Language.Lexer;
using Hades.Language.Parser;

namespace Hades.Core
{
    public static class Program
    {
        public static int Main(string[] args)
        {
            if (args.Length != 0)
            {
                switch (args.First())
                {
                    case "new":
                        return ProjectInitializer.Run(args.Skip(1).ToList());
                    case "package":
                        return 0;
                }
            }

            while (true)
            {
                var lexer = new Lexer();
                Console.Write("hades>");
                
                try
                {
                    var tokens = lexer.LexFile(Console.ReadLine());
                    Console.WriteLine();
                    var parser = new Parser(tokens);
                    var root = parser.Parse();
                    Console.WriteLine(root);
                }
                catch (Exception e)
                {
                    Console.WriteLine(e.Message);
                }
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.09527896995708154, 'fraction_numerical': 0.002575107296137339, 'mean_word_length': 0.9489966555183946, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 5, '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': '5417254', 'n_tokens_mistral': 594, 'n_tokens_neox': 537, 'n_words': 117}