<commit_before>﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UKParliData.BPTweets
{
    public class Program
    {
        public static readonly int ShortenedUrlLength
            = Int32.Parse(ConfigurationManager.AppSettings["Twitter.ShortenedUrlLength"]);

        static void Main(string[] args)
        {
            var client = new TwitterClient();

            if (args.Contains("/a", StringComparer.OrdinalIgnoreCase))
            {
                client.Authorise().Wait();
            }
            else
            {
                new Program(
                    new BPReader(ConfigurationManager.AppSettings["BPFeedUrl"]),
                    new TweetLog("log.txt"),
                    client
                ).Run();
            }
        }

<commit_msg>Add documentation to the main class<commit_after>﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UKParliData.BPTweets
{
    /// <summary>
    /// This is the main start up class for the program.
    /// </summary>

    public class Program
    {
        public static readonly int ShortenedUrlLength
            = Int32.Parse(ConfigurationManager.AppSettings["Twitter.ShortenedUrlLength"]);

        /// <summary>
        /// This is the main entry point. 
        /// </summary>
        /// <param name="args">
        /// Use the /a argument to set up the pin number given by Twitter when setting up authentication for the account.
        /// If no argument is specified program just publishes the tweets.
        /// </param>

        static void Main(string[] args)
        {
            var client = new TwitterClient();

            if (args.Contains("/a", StringComparer.OrdinalIgnoreCase))
            {
                client.Authorise().Wait();
            }
            else
            {
                new Program(
                    new BPReader(ConfigurationManager.AppSettings["BPFeedUrl"]),
                    new TweetLog("log.txt"),
                    client
                ).Run();
            }
        }


{'fraction_non_alphanumeric': 0.09748427672955975, 'fraction_numerical': 0.0017969451931716084, 'mean_word_length': 1.7158536585365853, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4105735', 'n_tokens_mistral': 558, 'n_tokens_neox': 537, 'n_words': 146}