<commit_before>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.Diagnostics.CodeAnalysis;
using System.Security.Claims;

namespace Microsoft.AspNetCore.Authentication
{
    /// <summary>
    /// Contains the result of an Authenticate call
    /// </summary>
    public class AuthenticateResult
    {
        /// <summary>
        /// Creates a new <see cref="AuthenticateResult"/> instance.
        /// </summary>
        protected AuthenticateResult() { }

        /// <summary>
        /// If a ticket was produced, authenticate was successful.
        /// </summary>
        [MemberNotNullWhen(true, nameof(Ticket))]
        public bool Succeeded => Ticket != null;

        /// <summary>
        /// The authentication ticket.<commit_msg>Add member 'Principal' and 'Properties' to MemberNotNullWhenAttribute (#34883)<commit_after>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.Diagnostics.CodeAnalysis;
using System.Security.Claims;

namespace Microsoft.AspNetCore.Authentication
{
    /// <summary>
    /// Contains the result of an Authenticate call
    /// </summary>
    public class AuthenticateResult
    {
        /// <summary>
        /// Creates a new <see cref="AuthenticateResult"/> instance.
        /// </summary>
        protected AuthenticateResult() { }

        /// <summary>
        /// If a ticket was produced, authenticate was successful.
        /// </summary>
        [MemberNotNullWhen(true, nameof(Ticket), nameof(Principal), nameof(Properties))]
        public bool Succeeded => Ticket != null;

        /// <summary>
        /// The authentication ticket.
{'fraction_non_alphanumeric': 0.11483516483516483, 'fraction_numerical': 0.0027472527472527475, 'mean_word_length': 2.4751908396946565, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '3226671', 'n_tokens_mistral': 467, 'n_tokens_neox': 457, 'n_words': 156}