<commit_before>﻿using System.IO;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Description;
using System.Web.Http.ExceptionHandling;
using AspNet.WebApi.HtmlMicrodataFormatter;
using Autofac;
using Autofac.Integration.WebApi;
using Common.Logging;
using Microsoft.Owin;
using Microsoft.Owin.Infrastructure;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
using NuGet.Lucene.Web.Controllers;
using NuGet.Lucene.Web.Filters;
using NuGet.Lucene.Web.Formatters;
using NuGet.Lucene.Web.MessageHandlers;
using Owin;

namespace NuGet.Lucene.Web.OwinHost.Sample
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            SignatureConversions.AddConversions(app);

            Start(app, CreateContainer());
        }

        private static void Start(IAppBuilder app, IContainer container)
        {
            var config = new HttpConfiguration();
            RegisterServices(container, app, config);
            ConfigureWebApi(config);<commit_msg>Tell NuGet.Core we're not running in a thick client.<commit_after>﻿using System.IO;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Description;
using System.Web.Http.ExceptionHandling;
using AspNet.WebApi.HtmlMicrodataFormatter;
using Autofac;
using Autofac.Integration.WebApi;
using Common.Logging;
using Microsoft.Owin;
using Microsoft.Owin.Infrastructure;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
using NuGet.Lucene.Web.Controllers;
using NuGet.Lucene.Web.Filters;
using NuGet.Lucene.Web.Formatters;
using NuGet.Lucene.Web.MessageHandlers;
using Owin;

namespace NuGet.Lucene.Web.OwinHost.Sample
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            EnvironmentUtility.SetRunningFromCommandLine();
            SignatureConversions.AddConversions(app);
            Start(app, CreateContainer());
        }

        private static void Start(IAppBuilder app, IContainer container)
        {
            var config = new HttpConfiguration();
            RegisterServices(container, app, config);
            ConfigureWebApi(config);
{'fraction_non_alphanumeric': 0.0892399658411614, 'fraction_numerical': 0.0, 'mean_word_length': 3.840909090909091, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3515383', 'n_tokens_mistral': 674, 'n_tokens_neox': 674, 'n_words': 146}