<commit_before>﻿@using FujiyBlog.Core.EntityFramework
@model FujiyBlog.Core.DomainObjects.WidgetSetting
@{
    Layout = "Widget.cshtml";
    
    IDictionary<string, object> settings;
    if (Model.Settings == null)
    {
        settings = new Dictionary<string, object>() { { "Title", "Archive" }, { "RecentDatesAtTop", false } };
    }
    else
    {
        settings = new System.Web.Script.Serialization.JavaScriptSerializer().Deserialize<IDictionary<string, object>>(Model.Settings);
    }
    PostRepository postRepository = DependencyResolver.Current.GetService<PostRepository>();
    var datesCount = postRepository.GetArchiveCountByMonth((bool)settings["RecentDatesAtTop"]);
    var years = datesCount.Select(x => x.Item1.Year).Distinct();
}
<h4>@Html.Raw(settings["Title"] as string)</h4>
<div class="content">
    <ul class="monthlist">
        @foreach (var year in years)
        {
            <li class="year"><a href="javascript:void(0);" onclick="$(this).next().toggle('fast')">@year</a>
                <ul style="display: none">
                    @foreach (var mes in datesCount.Where(x => x.Item1.Year == year))
                    {
                        <li>@Html.ActionLink(mes.Item1.Month + "(" + mes.Item2 + ")", MVC.Post.ArchiveDate(mes.Item1.Year, mes.Item1.Month, null))</li>
                    }
                </ul>
            </li>
        }
    </ul>
</div><commit_msg>Month in literal<commit_after>﻿@using FujiyBlog.Core.EntityFramework
@model FujiyBlog.Core.DomainObjects.WidgetSetting
@{
    Layout = "Widget.cshtml";
    
    IDictionary<string, object> settings;
    if (Model.Settings == null)
    {
        settings = new Dictionary<string, object>() { { "Title", "Archive" }, { "RecentDatesAtTop", false } };
    }
    else
    {
        settings = new System.Web.Script.Serialization.JavaScriptSerializer().Deserialize<IDictionary<string, object>>(Model.Settings);
    }
    PostRepository postRepository = DependencyResolver.Current.GetService<PostRepository>();
    var datesCount = postRepository.GetArchiveCountByMonth((bool)settings["RecentDatesAtTop"]);
    var years = datesCount.Select(x => x.Item1.Year).Distinct();
}
<h4>@Html.Raw(settings["Title"] as string)</h4>
<div class="content">
    <ul class="monthlist">
        @foreach (var year in years)
        {
            <li class="year"><a href="javascript:void(0);" onclick="$(this).next().toggle('fast')">@year</a>
                <ul style="display: none">
                    @foreach (var mes in datesCount.Where(x => x.Item1.Year == year))
                    {
                        <li>@Html.ActionLink(System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(mes.Item1.Month) + "(" + mes.Item2 + ")", MVC.Post.ArchiveDate(mes.Item1.Year, mes.Item1.Month, null))</li>
                    }
                </ul>
            </li>
        }
    </ul>
</div>
{'fraction_non_alphanumeric': 0.15849447513812154, 'fraction_numerical': 0.006215469613259668, 'mean_word_length': 2.7721354166666665, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 45, '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': '7141364', 'n_tokens_mistral': 881, 'n_tokens_neox': 852, 'n_words': 141}