<commit_before>﻿@using Microsoft.AspNetCore.Mvc.Localization

@inject IViewLocalizer Localizer

@model IndexViewModel
@{
    ViewData["Title"] = "Manage your account";
}

<div id="manage-index">
    <div class="container">
        <h2>@ViewData["Title"].</h2>
        <p class="text-success">@Model.StatusMessage</p>

        <dl>
            <dt>Password:</dt>
            <dd>
                <form asp-controller="Manage" asp-action="ChangePassword" method="get">
                    <input type="submit" value="Change Password" />
                </form>
            </dd>

            <dt>Newsletter Subscription:</dt>
            <dd>
                <form asp-controller="Manage" asp-action="NewsletterSubscription" method="post" class="form-horizontal">
                    <div asp-validation-summary="All" class="text-danger"></div>
                    <label asp-for="NewsletterSubscription" class="control-label"></label>
                    @Html.CheckBoxFor(m => m.NewsletterSubscription, new { onclick = "this.form.submit();" })
                    @Html.ValidationMessage("NewsletterSubscription")
                </form>
            </dd>
            <dt>Delete Account</dt>
            <dd>
                <form asp-controller="Account" asp-action="Delete" method="post">
                    <input type="submit" value="Delete" />
                </form>
            </dd>

            <dt>Projects You've Subscribed To:</dt>

            <dd>
            @if (Model.ProjectsParticipated.Any())
            {<commit_msg>Warning added<commit_after>﻿@using Microsoft.AspNetCore.Mvc.Localization

@inject IViewLocalizer Localizer

@model IndexViewModel
@{
    ViewData["Title"] = "Manage your account";
}

<div id="manage-index">
    <div class="container">
        <h2>@ViewData["Title"].</h2>
        <p class="text-success">@Model.StatusMessage</p>

        <dl>
            <dt>Password:</dt>
            <dd>
                <form asp-controller="Manage" asp-action="ChangePassword" method="get">
                    <input type="submit" value="Change Password" />
                </form>
            </dd>

            <dt>Newsletter Subscription:</dt>
            <dd>
                <form asp-controller="Manage" asp-action="NewsletterSubscription" method="post" class="form-horizontal">
                    <div asp-validation-summary="All" class="text-danger"></div>
                    <label asp-for="NewsletterSubscription" class="control-label"></label>
                    @Html.CheckBoxFor(m => m.NewsletterSubscription, new { onclick = "this.form.submit();" })
                    @Html.ValidationMessage("NewsletterSubscription")
                </form>
            </dd>
            <dt>Delete Account (Warning: This will permanently delete your data!)</dt>
            <dd>
                <form asp-controller="Account" asp-action="Delete" method="post">
                    <input type="submit" value="Delete" />
                </form>
            </dd>

            <dt>Projects You've Subscribed To:</dt>

            <dd>
            @if (Model.ProjectsParticipated.Any())
            {
{'fraction_non_alphanumeric': 0.1457334611697028, 'fraction_numerical': 0.001278363694471077, 'mean_word_length': 1.9062209842154132, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 73, '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': '2538655', 'n_tokens_mistral': 860, 'n_tokens_neox': 831, 'n_words': 152}