<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using log4net;
using System.Reflection;
using CkanDotNet.Api;
using CkanDotNet.Web.Models;
using CkanDotNet.Web.Models.Helpers;
using System.Net;

namespace CkanDotNet.Web
{
    // Note: For instructions on enabling IIS6 or IIS7 classic mode, 
    // visit http://go.microsoft.com/?LinkId=9394801

    public class MvcApplication : System.Web.HttpApplication
    {
        private static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            filters.Add(new HandleErrorAttribute());
        }

        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                "Error",
                "error",
                new { controller = "Error", action = "Index" }
            );

            routes.MapRoute(
                "SiteMap", // Route name
                "sitemap.xml", // URL with parameters
                new { controller = "SiteMap", action = "Index" } // Parameter defaults
            );

            routes.MapRoute(
                "Suggest", // Route name
                "suggest/{prefix}", // URL with parameters
                new { controller = "Suggestion", action = "Index" } // Parameter defaults
            );

            if (SettingsHelper.GetDownloadProxyEnabled())
            {
                var route = SettingsHelper.GetDownloadProxyRoute();
                routes.MapRoute(
                    "Download Proxy", // Route name
                    route + "/{*path}", // URL with parameters
                    new { controller = "DownloadProxy", action = "Index" } // Parameter defaults
                );
            }
<commit_msg>Add favicon.ico to routes to be ignored<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using log4net;
using System.Reflection;
using CkanDotNet.Api;
using CkanDotNet.Web.Models;
using CkanDotNet.Web.Models.Helpers;
using System.Net;

namespace CkanDotNet.Web
{
    // Note: For instructions on enabling IIS6 or IIS7 classic mode, 
    // visit http://go.microsoft.com/?LinkId=9394801

    public class MvcApplication : System.Web.HttpApplication
    {
        private static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            filters.Add(new HandleErrorAttribute());
        }

        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            routes.IgnoreRoute("favicon.ico");

            routes.MapRoute(
                "Error",
                "error",
                new { controller = "Error", action = "Index" }
            );

            routes.MapRoute(
                "SiteMap", // Route name
                "sitemap.xml", // URL with parameters
                new { controller = "SiteMap", action = "Index" } // Parameter defaults
            );

            routes.MapRoute(
                "Suggest", // Route name
                "suggest/{prefix}", // URL with parameters
                new { controller = "Suggestion", action = "Index" } // Parameter defaults
            );

            if (SettingsHelper.GetDownloadProxyEnabled())
            {
                var route = SettingsHelper.GetDownloadProxyRoute();
                routes.MapRoute(
                    "Download Proxy", // Route name
                    route + "/{*path}", // URL with parameters
                    new { controller = "DownloadProxy", action = "Index" } // Parameter defaults
                );
            }

{'fraction_non_alphanumeric': 0.10271752680129644, 'fraction_numerical': 0.004986287708800797, 'mean_word_length': 1.8925739005046864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '899073', 'n_tokens_mistral': 1033, 'n_tokens_neox': 986, 'n_words': 249}