<commit_before>﻿using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;

namespace Forum3 {
	public class Program {
		public static void Main(string[] args) => BuildWebHost(args).Run();

		public static IWebHost BuildWebHost(string[] args) =>
			WebHost.CreateDefaultBuilder(args)
				.UseStartup<Startup>()
				.Build();
	}
}<commit_msg>Support for environment appsettings.<commit_after>﻿using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;

namespace Forum3 {
	public class Program {
		public static void Main(string[] args) => BuildWebHost(args).Run();

		public static IWebHost BuildWebHost(string[] args) {
			return WebHost.CreateDefaultBuilder(args)
				.UseStartup<Startup>()
				.ConfigureAppConfiguration((builderContext, config) => {
					config.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
						  .AddJsonFile($"appsettings.{builderContext.HostingEnvironment.EnvironmentName}.json", optional: true, reloadOnChange: true);
				})
				.Build();
		}
	}
}
{'fraction_non_alphanumeric': 0.120837297811608, 'fraction_numerical': 0.0019029495718363464, 'mean_word_length': 5.375757575757576, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6153835', 'n_tokens_mistral': 337, 'n_tokens_neox': 302, 'n_words': 64}