<commit_before>// Copyright (C) E5R Development Team. All rights reserved.
// Licensed under the MIT License. See LICENSE file for license information.

using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Logging;
using Microsoft.Framework.Logging.Console;

namespace AuthenticationServer
{
    using static System.StringComparison;

    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddE5RAuthServer()
                    .AddE5RAuthServerInMemoryStorage();
        }

        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
        {
            var minLogLevel = string.Equals(env.EnvironmentName, "Development", OrdinalIgnoreCase)
                ? LogLevel.Verbose
                : LogLevel.Warning;

            loggerFactory.AddConsole(minLogLevel);

            app.UseErrorPage();
            app.UseE5RAuthServer("/session");
        }
    }
}<commit_msg>Environment start setup<commit_after>// Copyright (C) E5R Development Team. All rights reserved.
// Licensed under the MIT License. See LICENSE file for license information.

using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Logging;
using Microsoft.Framework.Logging.Console;

namespace AuthenticationServer
{
    using static System.StringComparison;

    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddE5RAuthServer()
                    .AddE5RAuthServerInMemoryStorage();
        }

        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
        {
            var isDev = string.Equals(env.EnvironmentName, "Development", OrdinalIgnoreCase);
            var minLogLevel = isDev ? LogLevel.Verbose : LogLevel.Warning;

            loggerFactory.AddConsole(minLogLevel);

            if (isDev)
            {
                app.UseErrorPage();
            }
            app.UseE5RAuthServer("/session");
        }
    }
}
{'fraction_non_alphanumeric': 0.07526881720430108, 'fraction_numerical': 0.0035842293906810036, 'mean_word_length': 2.715474209650582, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3616433', 'n_tokens_mistral': 567, 'n_tokens_neox': 552, 'n_words': 131}