<commit_before>﻿@{
    ViewBag.IsAdmin = User.Identity.IsAuthenticated &&
                      User.Identity.Name.Equals(AppSettings.AdminEmail, StringComparison.CurrentCultureIgnoreCase);
    ViewBag.CurrentUserAccount = User.Identity.IsAuthenticated
        ? User.GetAccount()
        : null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
    <title>@ViewBag.Title - Secret Santa</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                @Html.ActionLink("Secret Santa", "Index", "Home", null, new { @class = "navbar-brand" })
            </div>
            <div class="navbar-collapse collapse">
                @if (User.Identity.IsAuthenticated)
                {
                    <ul class="nav navbar-nav navbar-right">
                        <li class="dropdown">
                            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-lock"></span> @ViewBag.CurrentUserAccount.DisplayName <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li>@Html.ActionLink("My Wish List", "Index", "Wishlist")</li>
                                @if (ViewBag.CurrentUserAccount.HasPicked())
                                {
                                    Account picked = ViewBag.CurrentUserAccount.GetPicked();
                                    <li>@Html.ActionLink(picked.DisplayName + "'s Wish List", "Details", "Wishlist", new { id = picked.Id }, null)</li>
                                }
                                <li>@Html.ActionLink("Received Gifts", "Index", "Received")</li>
                                @if (ViewBag.IsAdmin)
                                {
                                    <li>@Html.ActionLink("Manage Users", "Users", "Admin")</li>
                                }
                                <li>@Html.ActionLink("Log Out", "LogOut", "Account")</li>
                            </ul>
                        </li>
                    </ul>
                }
            </div>
        </div>
    </div>
    <div class="container body-content">
        @Html.ResultMessage()
        @RenderBody()
        @if (User.Identity.IsAuthenticated)
            {
            <div class="row">
                <div class="col-lg-12">
                    <h2>Notes</h2>
                    <ul><commit_msg>Style changes<commit_after>﻿@{
    ViewBag.IsAdmin = User.Identity.IsAuthenticated &&
                      User.Identity.Name.Equals(AppSettings.AdminEmail, StringComparison.CurrentCultureIgnoreCase);
    ViewBag.CurrentUserAccount = User.Identity.IsAuthenticated
        ? User.GetAccount()
        : null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
    <title>@ViewBag.Title - Secret Santa</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                @Html.ActionLink("Secret Santa", "Index", "Home", null, new { @class = "navbar-brand" })
            </div>
            <div class="navbar-collapse collapse">
                @if (User.Identity.IsAuthenticated)
                {
                    <ul class="nav navbar-nav nav">
                        <li class="dropdown">
                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">Gifts</a>
                            <ul class="dropdown-menu">
                                <li>@Html.ActionLink("My Wish List", "Index", "Wishlist")</li>
                                @if (ViewBag.CurrentUserAccount.HasPicked())
                                {
                                    Account picked = ViewBag.CurrentUserAccount.GetPicked();
                                    <li>@Html.ActionLink(picked.DisplayName + "'s Wish List", "Details", "Wishlist", new { id = picked.Id }, null)</li>
                                }
                                <li>@Html.ActionLink("Received Gifts", "Index", "Received")</li>
                            </ul>
                        </li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                        <li class="dropdown">
                            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-lock"></span> @ViewBag.CurrentUserAccount.DisplayName <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                @if (ViewBag.IsAdmin)
                                {
                                    <li>@Html.ActionLink("Manage Users", "Users", "Admin")</li>
                                }
                                <li>@Html.ActionLink("Log Out", "LogOut", "Account")</li>
                            </ul>
                        </li>
                    </ul>
                }
            </div>
        </div>
    </div>
    <div class="container body-content">
        @Html.ResultMessage()
        @RenderBody()
        @if (User.Identity.IsAuthenticated)
            {
            <div class="row">
                <div class="col-lg-12">
                    <h2>Notes</h2>
                    <ul>
{'fraction_non_alphanumeric': 0.14409176618478944, 'fraction_numerical': 0.0021998742928975488, 'mean_word_length': 1.404608991310918, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2219187', 'n_tokens_mistral': 1736, 'n_tokens_neox': 1642, 'n_words': 285}