<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BlogSystem.Web.Infrastructure
{
    using System.Web.Mvc;

    public class PassRouteValuesToViewDataAttribute : ActionFilterAttribute, IActionFilter
    {
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            var routes = filterContext.RouteData.Values;
            var viewData = filterContext.Controller.ViewData;
            foreach (var route in routes)
            {
                viewData.Add(route.Key, route.Value);
            }
        }
    }
}
<commit_msg>Filter for ViewData<commit_after>﻿namespace BlogSystem.Web.Infrastructure
{
    using System.Web.Mvc;

    public class PassRouteValuesToViewDataAttribute : ActionFilterAttribute, IActionFilter
    {
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            var routes = filterContext.RouteData.Values;
            var viewData = filterContext.Controller.ViewData;

            foreach (var route in routes)
            {
                viewData.Add(route.Key, route.Value);
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.07113654946852004, 'fraction_numerical': 0.0, 'mean_word_length': 2.477272727272727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1567451', 'n_tokens_mistral': 313, 'n_tokens_neox': 311, 'n_words': 66}