<commit_before>﻿using System;
using System.Reflection;

namespace report
{
    class AssemblyReport
    {
        static void Main(string[] args)
        {
            var filename = args[0];

            try
            {
                var loadedAssembly = Assembly.LoadFile($@"{filename}");
                var references = loadedAssembly.GetReferencedAssemblies();

                Console.WriteLine($"Success {filename}");

                var assemblyInfo = loadedAssembly.GetName();<commit_msg>prevent crashing when user does not specify any input file<commit_after>﻿using System;
using System.Reflection;

namespace report
{
    class AssemblyReport
    {
        public static void Usage()
        {
            Environment.Exit(1);
        }

        static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                Usage();
            }

            var filename = args[0];

            try
            {
                var loadedAssembly = Assembly.LoadFile($@"{filename}");
                var references = loadedAssembly.GetReferencedAssemblies();

                Console.WriteLine($"Success {filename}");

                var assemblyInfo = loadedAssembly.GetName();
{'fraction_non_alphanumeric': 0.09461663947797716, 'fraction_numerical': 0.0032626427406199023, 'mean_word_length': 1.7266666666666666, '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': '1862291', 'n_tokens_mistral': 306, 'n_tokens_neox': 280, 'n_words': 71}