<commit_before>﻿using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using Args;
using Args.Help;
using Args.Help.Formatters;
using GitReleaseNotes.FileSystem;

namespace GitReleaseNotes
{
    public static class Program
    {
        // TODO Fix logging.. Just choose serilog or something which liblog picks up
        private static readonly ILog Log = GitReleaseNotesEnvironment.Log;

        public static int Main(string[] args)
        {
            GitReleaseNotesEnvironment.Log = new ConsoleLog();

            var modelBindingDefinition = Configuration.Configure<GitReleaseNotesArguments>();

            if (!args.Any() ||args.Any(a => a == "/?" || a == "?" || a.Equals("/help", StringComparison.InvariantCultureIgnoreCase)))
            {
                ShowHelp(modelBindingDefinition);

                return 0;
            }
<commit_msg>Fix for `Could not create SSL/TLS secure channel`<commit_after>﻿using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using Args;
using Args.Help;
using Args.Help.Formatters;
using GitReleaseNotes.FileSystem;

namespace GitReleaseNotes
{
    public static class Program
    {
        // TODO Fix logging.. Just choose serilog or something which liblog picks up
        private static readonly ILog Log = GitReleaseNotesEnvironment.Log;

        public static int Main(string[] args)
        {
            // Add the TLS 1.2 protocol to the Service Point manager to fix `The request was aborted: Could not create SSL/TLS secure channel.`
            ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;

            GitReleaseNotesEnvironment.Log = new ConsoleLog();

            var modelBindingDefinition = Configuration.Configure<GitReleaseNotesArguments>();

            if (!args.Any() || args.Any(a => a == "/?" || a == "?" || a.Equals("/help", StringComparison.InvariantCultureIgnoreCase)))
            {
                ShowHelp(modelBindingDefinition);

                return 0;
            }

{'fraction_non_alphanumeric': 0.0943952802359882, 'fraction_numerical': 0.0029498525073746312, 'mean_word_length': 2.7755102040816326, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7635098', 'n_tokens_mistral': 529, 'n_tokens_neox': 508, 'n_words': 155}