<commit_before>﻿@model EditProfileViewModel
@{
    ViewBag.Title = "Edit Profile";
    var credGroups = Model.Credentials.GroupBy(c => c.Kind).ToDictionary(g => g.Key, g => g.ToList());

    CredentialViewModel apiKey = null;
    if (credGroups.ContainsKey(CredentialKind.Token))
    {
        apiKey = credGroups[CredentialKind.Token].Single();
    }

    var hasPassword = credGroups.ContainsKey(CredentialKind.Password);

    var loginCredentials = hasPassword ? 1 : 0;
    if (credGroups.ContainsKey(CredentialKind.External))
    {
        loginCredentials += credGroups[CredentialKind.External].Count;
    }
}

<h1 class="page-heading">Edit Profile</h1>

@Html.ValidationSummary(true)

@if (!String.IsNullOrEmpty(Model.PendingNewEmailAddress))
{
    <p class="message">
        You recently registered a new email address: <strong>@Model.PendingNewEmailAddress</strong><br />

        @if (!String.IsNullOrEmpty(Model.EmailAddress))<commit_msg>Stashing edit profile reorg for transfer<commit_after>﻿@model EditProfileViewModel
@{
    ViewBag.Title = "Edit Profile";
    var credGroups = Model.Credentials.GroupBy(c => c.Kind).ToDictionary(g => g.Key, g => g.ToList());

    CredentialViewModel apiKey = null;
    if (credGroups.ContainsKey(CredentialKind.Token))
    {
        apiKey = credGroups[CredentialKind.Token].Single();
    }

    var hasPassword = credGroups.ContainsKey(CredentialKind.Password);

    var loginCredentials = hasPassword ? 1 : 0;
    if (credGroups.ContainsKey(CredentialKind.External))
    {
        loginCredentials += credGroups[CredentialKind.External].Count;
    }
}

@*@helper AccordianBar(string id, string title, string subtitle, Func<object, HelperResult> actions, Func<object, HelperResult> accordian) {
    <li class="managecreds-cred">
        <div class="managecreds-cred-actions">
            @actions(null)
        </div>
        <span class="managecreds-cred-caption">
            @title
        </span>
        @if(!String.IsNullOrEmpty(subtitle)) {
            <span class="managecreds-cred-id">@cred.Identity</span>
        }
    </li>
}*@

<h1 class="page-heading">Edit Profile</h1>

@Html.ValidationSummary(true)

@if (!String.IsNullOrEmpty(Model.PendingNewEmailAddress))
{
    <p class="message">
        You recently registered a new email address: <strong>@Model.PendingNewEmailAddress</strong><br />

        @if (!String.IsNullOrEmpty(Model.EmailAddress))
{'fraction_non_alphanumeric': 0.1322553897180763, 'fraction_numerical': 0.003316749585406302, 'mean_word_length': 3.7593688362919133, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 31, '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': '6633586', 'n_tokens_mistral': 736, 'n_tokens_neox': 730, 'n_words': 129}