<commit_before>﻿namespace MailTrace.Host.Selfhost
{
    using System;

    using MailTrace.Data.Postgresql;
    using MailTrace.Host;
    using MailTrace.Host.Data;

    using Microsoft.Owin.Hosting;

    internal static class Program
    {
        private static void Main(string[] args)
        {
            const string baseAddress = "http://localhost:9900/";

            Startup.PostConfigureKernel += kernel => { kernel.Bind<TraceContext>().To<PostgresqlTraceContext>(); };

            Console.WriteLine("Running Migration...");

            var context = new PostgresqlTraceContext();
            context.Migrate();

            using (WebApp.Start<Startup>(baseAddress))
            {
                Console.WriteLine("Ready.");
                Console.ReadLine();
            }
        }
    }
}<commit_msg>Allow bind interface to be customized.<commit_after>﻿namespace MailTrace.Host.Selfhost
{
    using System;
    using System.Linq;

    using MailTrace.Data.Postgresql;
    using MailTrace.Host.Data;

    using Microsoft.Owin.Hosting;

    internal static class Program
    {
        private static void Main(string[] args)
        {
            var baseAddress = args.FirstOrDefault() ?? "http://localhost:9900";

            Startup.PostConfigureKernel += kernel => { kernel.Bind<TraceContext>().To<PostgresqlTraceContext>(); };

            Console.WriteLine("Running Migration...");

            var context = new PostgresqlTraceContext();
            context.Migrate();

            using (WebApp.Start<Startup>(baseAddress))
            {
                Console.WriteLine("Ready.");
                Console.ReadLine();
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.11402985074626866, 'fraction_numerical': 0.004776119402985075, 'mean_word_length': 2.092250922509225, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '5380903', 'n_tokens_mistral': 451, 'n_tokens_neox': 425, 'n_words': 83}