<commit_before>﻿using System;
using System.Diagnostics.Contracts;

using Topshelf;
using Topshelf.HostConfigurators;

namespace Cogito.Components.Server
{

    /// <summary>
    /// Entry point for the Cogito Server application. This class can be extended if desired.
    /// </summary>
    public class Program
    {

        readonly static string DEFAULT_SERVICE_NAME = "Cogito.Components.Server";

        /// <summary>
        /// Main application entry point.
        /// </summary>
        /// <param name="args"></param>
        /// <returns></returns>
        public static int Main(string[] args)
        {
            Contract.Requires<ArgumentNullException>(args != null);

            return new Program().Run(args);
        }

        /// <summary>
        /// Runs the program.
        /// </summary>
        /// <param name="args"></param>
        /// <returns></returns>
        public virtual int Run(string[] args)
        {
            Contract.Requires<ArgumentNullException>(args != null);<commit_msg>Helpful comment.<commit_after>﻿using System;
using System.Diagnostics.Contracts;

using Topshelf;
using Topshelf.HostConfigurators;

namespace Cogito.Components.Server
{

    /// <summary>
    /// Entry point for the Cogito Server application. This class can be extended if desired.
    /// </summary>
    public class Program
    {

        readonly static string DEFAULT_SERVICE_NAME = "Cogito.Components.Server";

        /// <summary>
        /// Main application entry point. Do not invoke this method from extended classes. Instead, implement your own Main method and invoke Run.
        /// </summary>
        /// <param name="args"></param>
        /// <returns></returns>
        public static int Main(string[] args)
        {
            Contract.Requires<ArgumentNullException>(args != null);

            return new Program().Run(args);
        }

        /// <summary>
        /// Runs the program.
        /// </summary>
        /// <param name="args"></param>
        /// <returns></returns>
        public virtual int Run(string[] args)
        {
            Contract.Requires<ArgumentNullException>(args != null);
{'fraction_non_alphanumeric': 0.12999071494893222, 'fraction_numerical': 0.0, 'mean_word_length': 2.0785714285714287, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '3204544', 'n_tokens_mistral': 559, 'n_tokens_neox': 548, 'n_words': 153}