<commit_before>namespace Nancy.Demo
{
    using Nancy.Demo.Models;
    using Nancy.ViewEngines;
    using Nancy.Routing;
    using System.Linq;

    public class MainModule : NancyModule
    {
        public MainModule(IRouteCacheProvider routeCacheProvider)
        {
            Get["/"] = x => {
                return View("~/views/routes.cshtml", routeCacheProvider.GetCache());
            };

            Get["/style/{file}"] = x => {
                return Response.AsCss("~/Content/" + (string)x.file);
            };

            Get["/scripts/{file}"] = x => {
                return Response.AsJs("~/Content/" + (string)x.file);
            };

            Get["/filtered", r => true] = x => {
                return "This is a route with a filter that always returns true.";
            };

            Get["/filtered", r => false] = x => {
                return "This is also a route, but filtered out so should never be hit.";
            };

            Get[@"/(?<foo>\d{2,4})/{bar}"] = x => {
                return string.Format("foo: {0}<br/>bar: {1}", x.foo, x.bar);
            };

            Get["/test"] = x => {
                return "Test";
            };

            Get["/javascript"] = x => {
                return View.Static("~/views/javascript.html");
            };<commit_msg>One minor after-rebase fix<commit_after>namespace Nancy.Demo
{
    using Nancy.Demo.Models;
    using Nancy.ViewEngines;
    using Nancy.Routing;
    using System.Linq;

    public class MainModule : NancyModule
    {
        public MainModule(IRouteCacheProvider routeCacheProvider)
        {
            Get["/"] = x => {
                return View("~/views/routes.cshtml", routeCacheProvider.GetCache());
            };

            Get["/style/{file}"] = x => {
                return Response.AsCss("~/Content/" + (string)x.file);
            };

            Get["/scripts/{file}"] = x => {
                return Response.AsJs("~/Content/" + (string)x.file);
            };

            Get["/filtered", r => true] = x => {
                return "This is a route with a filter that always returns true.";
            };

            Get["/filtered", r => false] = x => {
                return "This is also a route, but filtered out so should never be hit.";
            };

            Get[@"/(?<foo>\d{2,4})/{bar}"] = x => {
                return string.Format("foo: {0}<br/>bar: {1}", x.foo, x.bar);
            };

            Get["/test"] = x => {
                return "Test";
            };

            Get["/javascript"] = x => {
                return View("~/views/javascript.html");
            };
{'fraction_non_alphanumeric': 0.1609719058466211, 'fraction_numerical': 0.0030372057706909645, 'mean_word_length': 1.4811676082862524, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 27, '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': '4200454', 'n_tokens_mistral': 763, 'n_tokens_neox': 720, 'n_words': 167}