<commit_before>﻿namespace DevOpsFlex.Core
{
    using System;
    using JetBrains.Annotations;
    using Newtonsoft.Json;

    /// <summary>
    /// The base class from all BigBrother <see cref="Exception"/> based events that are going to be
    /// tracked by AI as Exception Telemetry events.
    /// </summary>
    public class BbExceptionEvent : BbTelemetryEvent
    {
        public BbExceptionEvent([NotNull]Exception exception)
        {
            Exception = exception;
        }

        /// <summary>
        /// Gets and sets the raw <see cref="Exception"/> that is associated with this event.
        /// </summary>
        [JsonIgnore]
        public Exception Exception { get; set; }
    }

    /// <summary>
    /// Containst conversion extensions to <see cref="Exception"/> to produce events of, or based of <see cref="BbExceptionEvent"/>.
    /// </summary>
    public static class BbExceptionEventExtensions
    {
        /// <summary><commit_msg>Forgot to add a header comment to the new ctor<commit_after>﻿namespace DevOpsFlex.Core
{
    using System;
    using JetBrains.Annotations;
    using Newtonsoft.Json;

    /// <summary>
    /// The base class from all BigBrother <see cref="Exception"/> based events that are going to be
    /// tracked by AI as Exception Telemetry events.
    /// </summary>
    public class BbExceptionEvent : BbTelemetryEvent
    {
        /// <summary>
        /// Initializes a new instance of <see cref="BbExceptionEvent"/>.
        /// </summary>
        /// <param name="exception">The source exception for this event.</param>
        public BbExceptionEvent([NotNull]Exception exception)
        {
            Exception = exception;
        }

        /// <summary>
        /// Gets and sets the raw <see cref="Exception"/> that is associated with this event.
        /// </summary>
        [JsonIgnore]
        public Exception Exception { get; set; }
    }

    /// <summary>
    /// Containst conversion extensions to <see cref="Exception"/> to produce events of, or based of <see cref="BbExceptionEvent"/>.
    /// </summary>
    public static class BbExceptionEventExtensions
    {
        /// <summary>
{'fraction_non_alphanumeric': 0.11398246423627134, 'fraction_numerical': 0.0, 'mean_word_length': 2.221396731054978, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 30, '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': '5550016', 'n_tokens_mistral': 565, 'n_tokens_neox': 551, 'n_words': 192}