<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;

namespace slnStartupProject
{
    class Program
    {
        static string   slnFilename;
        static string   projectName;

        static void Main(string[] args)
        {
            ParseArguments(args);
            ParseSln();
        }

        private static void ParseArguments(string[] args)
        {
            try
            {
                if (args.Length != 2)
                    throw new Exception("Invalid number of arguments");

                slnFilename = args[0];
                projectName = args[1];

                if (!File.Exists(slnFilename))
                    throw new Exception(string.Format("\"{0}\" does not exists"));
            }
            catch (Exception ex)
            {
                Usage(ex.Message);
            }
        }

        private static void Usage(string message)
        {
            Console.WriteLine("Error: " + message);<commit_msg>Fixed missing parameter in Exception handler<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;

namespace slnStartupProject
{
    class Program
    {
        static string   slnFilename;
        static string   projectName;

        static void Main(string[] args)
        {
            ParseArguments(args);
            ParseSln();
        }

        private static void ParseArguments(string[] args)
        {
            try
            {
                if (args.Length != 2)
                    throw new Exception("Invalid number of arguments");

                slnFilename = args[0];
                projectName = args[1];

                if (!File.Exists(slnFilename))
                    throw new Exception(string.Format("\"{0}\" does not exists", slnFilename));
            }
            catch (Exception ex)
            {
                Usage(ex.Message);
            }
        }

        private static void Usage(string message)
        {
            Console.WriteLine("Error: " + message);
{'fraction_non_alphanumeric': 0.09036697247706423, 'fraction_numerical': 0.003669724770642202, 'mean_word_length': 1.568904593639576, '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': '1594957', 'n_tokens_mistral': 552, 'n_tokens_neox': 521, 'n_words': 137}