<commit_before>﻿@using BootstrapForms.Html
@using BootstrapForms.Models

@{var header = ViewBag.Header;}

<header>
    <div class="navbar">
	    <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand brand" href="@Url.Action("Index", "Home", new { area = "" })"><img src="@Url.Content("~/Content/images/logo-bforms.png")"></a>
	    </div>

		<div class="collapse navbar-collapse navbar-responsive-collapse">
			<ul class="nav navbar-nav pull-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Components</a>
                    <ul class="dropdown-menu">
                        <li><a href="@Url.Action("Overview", "Components", new { area = "" })">Overview</a></li>
                        <li><a href="@Url.Action("InputExtensions", "Components", new { area = "" })">Input controls</a></li>
                        <li><a href="@Url.Action("SelectExtensions", "Components", new { area = "" })">Select controls</a></li>
                    </ul>
                </li>
                <li class="active dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Demo</a>
                    <ul class="dropdown-menu">
                        <li><a href="@Url.Action("Index", "Login", new { area = "Demo" })">Login or register<span class="badge badge-info">post-back</span></a></li>
                        <li><a href="@Url.Action("Index", "Login", new { area = "Demo" })">User profile<span class="badge badge-info">ajax</span></a></li>
                    </ul>
                </li>
                <li><a href="@Url.Action("Contact", "Home", new { area = "" })">Contact</a></li>   
            </ul>
		</div>
    </div>
</header><commit_msg>Fix active menu item<commit_after>﻿@using BootstrapForms.Html
@using BootstrapForms.Models

@{
    var header = ViewBag.Header;
    var ctrl = HttpContext.Current.Request.RequestContext.RouteData.Values["controller"].ToString();
    var area = HttpContext.Current.Request.RequestContext.RouteData.DataTokens["area"];
}

<header>
    <div class="navbar">
	    <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand brand" href="@Url.Action("Index", "Home", new { area = "" })"><img src="@Url.Content("~/Content/images/logo-bforms.png")"></a>
	    </div>

        <div class="collapse navbar-collapse navbar-responsive-collapse">
            <ul class="nav navbar-nav pull-right">
                <li class="dropdown @(ctrl.Contains("Components") ? "active" : "")">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Components</a>
                    <ul class="dropdown-menu">
                        <li><a href="@Url.Action("Overview", "Components", new { area = "" })">Overview</a></li>
                        <li><a href="@Url.Action("InputExtensions", "Components", new { area = "" })">Input controls</a></li>
                        <li><a href="@Url.Action("SelectExtensions", "Components", new { area = "" })">Select controls</a></li>
                    </ul>
                </li>
                <li class="dropdown @((area != null && area.ToString().Contains("Demo")) ? "active" : "")">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Demo</a>
                    <ul class="dropdown-menu">
                        <li><a href="@Url.Action("Index", "Login", new { area = "Demo" })">Login or register<span class="badge badge-info">post-back</span></a></li>
                        <li><a href="@Url.Action("Index", "Login", new { area = "Demo" })">User profile<span class="badge badge-info">ajax</span></a></li>
                    </ul>
                </li>
                <li><a href="@Url.Action("Contact", "Home", new { area = "" })">Contact</a></li>   
            </ul>
        </div>

    </div>
</header>
{'fraction_non_alphanumeric': 0.19469815103586544, 'fraction_numerical': 0.0, 'mean_word_length': 2.1094182825484764, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 125, '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': '5280853', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1208, 'n_words': 241}