<commit_before>﻿using System;
using ServiceStack.WebHost.Endpoints;

namespace Example3.Web
{
    public class AppHost : AppHostBase
    {
        public AppHost()
            : base("Chapter3 Example2", typeof (AppHost).Assembly)
        {
        }

        public override void Configure(Funq.Container container)
        {
            RequestFilters.Add((request, response, requestData) =>
            {
                if(!request.IsSecureConnection)
                {
                    throw new Exception("The application needs to be secured. Use https instead of http for hosting!");
                }
            });
        }<commit_msg>changed variable name<commit_after>﻿using System;
using ServiceStack.WebHost.Endpoints;

namespace Example3.Web
{
    public class AppHost : AppHostBase
    {
        public AppHost()
            : base("Chapter3 Example2", typeof (AppHost).Assembly)
        {
        }

        public override void Configure(Funq.Container container)
        {
            RequestFilters.Add((request, response, requestDTO) =>
            {
                if(!request.IsSecureConnection)
                {
                    throw new Exception("The application needs to be secured. Use https instead of http for hosting!");
                }
            });
        }
{'fraction_non_alphanumeric': 0.0842911877394636, 'fraction_numerical': 0.004597701149425287, 'mean_word_length': 1.772823779193206, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7046334', 'n_tokens_mistral': 321, 'n_tokens_neox': 310, 'n_words': 82}