<commit_before>﻿using System;
using System.Web;
using System.Web.Mvc;
using Autofac;
using Autofac.Integration.Mvc;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using Microsoft.Owin.Security;
using Owin;

[assembly: OwinStartupAttribute(typeof(EhrgoHealth.Web.Startup))]

namespace EhrgoHealth.Web
{
    public partial class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            var builder = new ContainerBuilder();

            builder.RegisterControllers(typeof(MvcApplication).Assembly);
            builder.RegisterModule(new AutofacWebTypesModule());
            builder.Register((a) =>
            {
                var context = a.Resolve<HttpContextBase>();
                if(context != null)
                {
                    return context.GetOwinContext().Get<ApplicationSignInManager>();
                }
                return null;
            });
            builder.Register((a) =>
            {
                var context = a.Resolve<HttpContextBase>();
                if(context != null)
                {
                    return context.GetOwinContext().Get<ApplicationUserManager>();
                }
                return null;<commit_msg>remove unused using<commit_after>﻿using System;
using System.Web;
using System.Web.Mvc;
using Autofac;
using Autofac.Integration.Mvc;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using Owin;

[assembly: OwinStartupAttribute(typeof(EhrgoHealth.Web.Startup))]

namespace EhrgoHealth.Web
{
    public partial class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            var builder = new ContainerBuilder();

            builder.RegisterControllers(typeof(MvcApplication).Assembly);
            builder.RegisterModule(new AutofacWebTypesModule());
            builder.Register((a) =>
            {
                var context = a.Resolve<HttpContextBase>();
                if(context != null)
                {
                    return context.GetOwinContext().Get<ApplicationSignInManager>();
                }
                return null;
            });
            builder.Register((a) =>
            {
                var context = a.Resolve<HttpContextBase>();
                if(context != null)
                {
                    return context.GetOwinContext().Get<ApplicationUserManager>();
                }
                return null;
{'fraction_non_alphanumeric': 0.09714758164530798, 'fraction_numerical': 0.0, 'mean_word_length': 1.8775267538644471, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '4203568', 'n_tokens_mistral': 614, 'n_tokens_neox': 600, 'n_words': 113}