<commit_before>﻿using System;

namespace AppLib.VersionIncrementer
{
    class Program
    {
        /// <summary>
        /// Help
        /// </summary>
        internal static void Help()
        {
            Console.WriteLine("Usage:");
            Console.WriteLine("VersionIncrementer <VersioningTemplate.xml> <assembly info template> <assembly info to modify>");
            Console.WriteLine("VersionIncrementer /increment <VersioningTemplate.xml> <assembly info template> <assembly info to modify>");
            Console.WriteLine("VersionIncrementer /?");
            Console.WriteLine("VersionIncrementer /createtemplate <VersioningTemplate.xml>");
        }

        /// <summary>
        /// Display an exception
        /// </summary>
        /// <param name="ex">Exception to display</param>
        internal static void Error(Exception ex)
        {
            var def = Console.ForegroundColor;

            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine(ex.Message);
            Console.ForegroundColor = def;
            Environment.Exit(-1);
        }


        public static void Main(string[] args)
        {
            if (args.Length == 1 && args[0] == "/?")
            {
                Help();
                return;
            }
            else if (args.Length ==2 && args[0] == "/createtemplate")
            {
                IcrementerLogic.CreateTemplate(args[1]);
                return;
            }
            else if (args.Length == 3)
            {
                IcrementerLogic.Increment(args[0], args[1], args[2], false);
                return;
            }
            else if (args.Length == 4 && args[0] == "/increment")
            {
                IcrementerLogic.Increment(args[1], args[2], args[3], false);
            }
            else
            {
                Help();
                return;
            }
        }
    }
}
<commit_msg>Version incrementer fix<commit_after>﻿using System;

namespace AppLib.VersionIncrementer
{
    class Program
    {
        /// <summary>
        /// Help
        /// </summary>
        internal static void Help()
        {
            Console.WriteLine("Usage:");
            Console.WriteLine("VersionIncrementer <VersioningTemplate.xml> <assembly info template> <assembly info to modify>");
            Console.WriteLine("VersionIncrementer /increment <VersioningTemplate.xml> <assembly info template> <assembly info to modify>");
            Console.WriteLine("VersionIncrementer /?");
            Console.WriteLine("VersionIncrementer /createtemplate <VersioningTemplate.xml>");
        }

        /// <summary>
        /// Display an exception
        /// </summary>
        /// <param name="ex">Exception to display</param>
        internal static void Error(Exception ex)
        {
            var def = Console.ForegroundColor;

            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine(ex.Message);
            Console.ForegroundColor = def;
            Environment.Exit(-1);
        }


        public static void Main(string[] args)
        {
            if (args.Length == 1 && args[0] == "/?")
            {
                Help();
                return;
            }
            else if (args.Length ==2 && args[0] == "/createtemplate")
            {
                IcrementerLogic.CreateTemplate(args[1]);
                return;
            }
            else if (args.Length == 3)
            {
                IcrementerLogic.Increment(args[0], args[1], args[2], false);
                return;
            }
            else if (args.Length == 4 && args[0] == "/increment")
            {
                IcrementerLogic.Increment(args[1], args[2], args[3], true);
            }
            else
            {
                Help();
                return;
            }
        }
    }
}

{'fraction_non_alphanumeric': 0.12147841819591626, 'fraction_numerical': 0.007753941586973378, 'mean_word_length': 1.4602670057215512, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '4422828', 'n_tokens_mistral': 998, 'n_tokens_neox': 975, 'n_words': 204}