<commit_before>﻿@if (ViewData["branches"] != null)
{
    <div class="branchSwitcher">
        <h4>@Resources.Repository_SwitchBranch</h4>
        <ul class="clearfix">
            @{ 
                var action = ViewContext.RouteData.Values["Action"].ToString() == "Blob" ? "Tree" : ViewContext.RouteData.Values["Action"].ToString();
                foreach (var item in ViewData["branches"] as IEnumerable<string>)
                {
                    <li class="@(String.Equals(ViewData["referenceName"], item) ? "branchactive" : "branchinactive")">@Html.ActionLink(item as string, action, new { name = item, id = ViewBag.ID })</li>
                }
                foreach (var item in ViewData["tags"] as IEnumerable<string>)
                {
                    <li class="@(String.Equals(ViewData["referenceName"], item) ? "tagactive" : "taginactive")">@Html.ActionLink(item as string, action, new { name = item, id = ViewBag.ID })</li>
                }
            }
        </ul>
    </div>
}<commit_msg>Fixed Branch Switcher for Blob and current branch/tag.<commit_after>﻿@if (ViewData["branches"] != null)
{
    <div class="branchSwitcher">
        <h4>@Resources.Repository_SwitchBranch</h4>
        <ul class="clearfix">
            @{ 
                var action = ViewContext.RouteData.Values["Action"].ToString() == "Blob" ? "Tree" : ViewContext.RouteData.Values["Action"].ToString();
                foreach (var item in ViewData["branches"] as IEnumerable<string>)
                {
                    <li class="@(String.Equals(ViewData["referenceName"], item) ? "branchactive" : "branchinactive")">@Html.ActionLink(item as string, action, new { name = item, path = String.Empty })</li>
                }
                foreach (var item in ViewData["tags"] as IEnumerable<string>)
                {
                    <li class="@(String.Equals(ViewData["referenceName"], item) ? "tagactive" : "taginactive")">@Html.ActionLink(item as string, action, new { name = item, path = String.Empty })</li>
                }
            }
        </ul>
    </div>
}
{'fraction_non_alphanumeric': 0.15746519443110898, 'fraction_numerical': 0.0019203072491598655, 'mean_word_length': 2.33974358974359, 'pattern_counts': {'":': 0, '<': 27, '<?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': '5625697', 'n_tokens_mistral': 598, 'n_tokens_neox': 577, 'n_words': 123}