<commit_before>﻿/*
 * Copyright (c) <NAME>.  All rights reserved.
 * see license.txt
 */


using System.Security.Cryptography.X509Certificates;
namespace BrockAllen.MembershipReboot
{
    interface IAllowMultiple { }

    public abstract class UserAccountEvent<T> : IEvent
    {
        public T Account { get; set; }
    }

    public class AccountCreatedEvent<T> : UserAccountEvent<T>
    {
        // InitialPassword might be null
        public string InitialPassword { get; set; }
        public string VerificationKey { get; set; }
    }
    public class AccountVerifiedEvent<T> : UserAccountEvent<T> { }

    public class PasswordResetFailedEvent<T> : UserAccountEvent<T> { }
    public class PasswordResetRequestedEvent<T> : UserAccountEvent<T>
    {
        public string VerificationKey { get; set; }
    }
    public class PasswordResetSecretAddedEvent<T> : UserAccountEvent<T>
    {
        public PasswordResetSecret Secret { get; set; }
    }<commit_msg>better comment<commit_after>﻿/*
 * Copyright (c) <NAME>.  All rights reserved.
 * see license.txt
 */


using System.Security.Cryptography.X509Certificates;
namespace BrockAllen.MembershipReboot
{
    interface IAllowMultiple { }

    public abstract class UserAccountEvent<T> : IEvent
    {
        public T Account { get; set; }
    }

    public class AccountCreatedEvent<T> : UserAccountEvent<T>
    {
        // InitialPassword might be null if this is a re-send
        // notification for account created (when user tries to
        // reset password before verifying their account)
        public string InitialPassword { get; set; }
        public string VerificationKey { get; set; }
    }
    public class AccountVerifiedEvent<T> : UserAccountEvent<T> { }

    public class PasswordResetFailedEvent<T> : UserAccountEvent<T> { }
    public class PasswordResetRequestedEvent<T> : UserAccountEvent<T>
    {
        public string VerificationKey { get; set; }
    }
    public class PasswordResetSecretAddedEvent<T> : UserAccountEvent<T>
    {
        public PasswordResetSecret Secret { get; set; }
    }
{'fraction_non_alphanumeric': 0.08701923076923077, 'fraction_numerical': 0.0028846153846153848, 'mean_word_length': 3.1126482213438735, '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': '3228454', 'n_tokens_mistral': 597, 'n_tokens_neox': 567, 'n_words': 158}