<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.Data.Entity;
using Microsoft.Extensions.DependencyInjection;
using ForumR.Models;

namespace ForumR
{
    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddEntityFramework()
                .AddNpgsql()
                .AddDbContext<ForumContext>(x => x.UseNpgsql("User ID=postgres;Password=<PASSWORD>;Host=localhost;Port=5432;Database=ForumR;"));

            services.AddIdentity<User, IdentityRole<long>>(x =>
            {
                x.Password.RequireDigit = false;
                x.Password.RequiredLength = 0;
                x.Password.RequireLowercase = false;
                x.Password.RequireNonLetterOrDigit = false;
                x.Password.RequireUppercase = false;
                x.User.AllowedUserNameCharacters = null;
            })
                .AddDefaultTokenProviders()
                .AddEntityFrameworkStores<ForumContext>();

            services.AddFileUpload()
                .AddEntityFrameworkStorage<ForumContext>();

            services.AddMvc()
                .AddTemplate();

            services.AddSignalR();
            services.AddAntiXss();
        }

        public void Configure(IApplicationBuilder app)
        {
            app.UseIISPlatformHandler();
            app.UseIdentity();
            app.UseStaticFiles();
            app.UseSignalR();
            app.UseAutoAjax("/assets/shared/scripts/jquery.autoajax.js");
            app.UseFileUpload("/assets/shared/scripts/jquery.fileupload.js");
            app.UseMvcWithDefaultRoute();
        }

        public static void Main(string[] args) => WebApplication.Run<Startup>(args);
    }
}<commit_msg>Modify startup.cs<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.Data.Entity;
using Microsoft.Extensions.DependencyInjection;
using ForumR.Models;

namespace ForumR
{
    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddEntityFramework()
                .AddNpgsql()
                .AddDbContext<ForumContext>(x => x.UseNpgsql("User ID=postgres;Password=<PASSWORD>;Host=localhost;Port=5432;Database=ForumR;"));

            services.AddIdentity<User, IdentityRole<long>>(x =>
            {
                x.Password.RequireDigit = false;
                x.Password.RequiredLength = 0;
                x.Password.RequireLowercase = false;
                x.Password.RequireNonLetterOrDigit = false;
                x.Password.RequireUppercase = false;
                x.User.AllowedUserNameCharacters = null;
            })
                .AddDefaultTokenProviders()
                .AddEntityFrameworkStores<ForumContext>();

            services.AddFileUpload()
                .AddEntityFrameworkStorage<ForumContext>();

            services.AddMvc();

            services.AddSignalR();
            services.AddAntiXss();
        }

        public void Configure(IApplicationBuilder app)
        {
            app.UseIISPlatformHandler();
            app.UseIdentity();
            app.UseStaticFiles();
            app.UseSignalR();
            app.UseAutoAjax();
            app.UseFileUpload();
            app.UseMvcWithDefaultRoute();
        }

        public static void Main(string[] args) => WebApplication.Run<Startup>(args);
    }
}
{'fraction_non_alphanumeric': 0.101126539166885, 'fraction_numerical': 0.0026198585276395073, 'mean_word_length': 2.232853513971211, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 23, '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': '6776166', 'n_tokens_mistral': 1016, 'n_tokens_neox': 987, 'n_words': 150}