<commit_before>﻿using System;
using System.Configuration;
using System.Net;
using System.Net.Http;
using Microsoft.AspNet.SignalR;
using Microsoft.Owin.Cors;
using Microsoft.Owin.Hosting;
using Owin;

namespace EntityFX.Gdcame.Utils.ConsoleHostApp.AllInOneMono
{
    internal class Program
    {
        private static void Main()
        {
            var baseAddress = ConfigurationManager.AppSettings["WebAddressUrl"];

            var signalRHost = ConfigurationManager.AppSettings["SignalRAddressUrl"];

            // Start OWIN host 
            var httpWebApi = WebApp.Start<Startup>(baseAddress);

            var signalR = WebApp.Start(signalRHost, builder =>
            {
                var listener = (HttpListener)builder.Properties[typeof(HttpListener).FullName];
                listener.AuthenticationSchemes = AuthenticationSchemes.Anonymous;
                builder.UseCors(CorsOptions.AllowAll);
                builder.MapSignalR();
                builder.RunSignalR(new HubConfiguration
                {
                    EnableDetailedErrors = true,
                    EnableJSONP = true
                });
            });
            Console.WriteLine("SignalR server running on {0}", signalRHost);
            Console.WriteLine("Web server running on {0}", baseAddress);

            var client = new HttpClient();

            var response = client.GetAsync(baseAddress + "api/heartbeat").Result;

            Console.WriteLine(response);
            Console.WriteLine(response.Content.ReadAsStringAsync().Result);


            Console.ReadLine();
        }
    }
}<commit_msg>Fixed client in server<commit_after>﻿using System;
using System.Configuration;
using System.Net;
using System.Net.Http;
using Microsoft.AspNet.SignalR;
using Microsoft.Owin.Cors;
using Microsoft.Owin.Hosting;
using Owin;

namespace EntityFX.Gdcame.Utils.ConsoleHostApp.AllInOneMono
{
    internal class Program
    {
        private static void Main()
        {
            var baseAddress = ConfigurationManager.AppSettings["WebAddressUrl"];

            var signalRHost = ConfigurationManager.AppSettings["SignalRAddressUrl"];

            // Start OWIN host 
            var httpWebApi = WebApp.Start<Startup>(baseAddress);

            var signalR = WebApp.Start(signalRHost, builder =>
            {
                var listener = (HttpListener)builder.Properties[typeof(HttpListener).FullName];
                listener.AuthenticationSchemes = AuthenticationSchemes.Anonymous;
                builder.UseCors(CorsOptions.AllowAll);
                builder.MapSignalR();
                builder.RunSignalR(new HubConfiguration
                {
                    EnableDetailedErrors = true,
                    EnableJSONP = true
                });
            });
            Console.WriteLine("SignalR server running on {0}", signalRHost);
            Console.WriteLine("Web server running on {0}", baseAddress);
            Console.ReadLine();
        }
    }
}
{'fraction_non_alphanumeric': 0.09014745308310992, 'fraction_numerical': 0.0013404825737265416, 'mean_word_length': 2.1823027718550105, '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': '7590524', 'n_tokens_mistral': 752, 'n_tokens_neox': 719, 'n_words': 147}