<commit_before>﻿namespace Skylight
{
    using System;

    /// <summary>
    ///     The class that handles all chat-based messages from the server
    ///     including ones sent to the user through system.
    /// </summary>
    public class ChatEventArgs : EventArgs
    {
        /// <summary>
        ///     The player who sent the message.
        /// </summary>
        private readonly Player speaker;

        /// <summary>
        /// Initializes a new instance of the <see cref="ChatEventArgs"/> class. 
        ///     The main method where the chat messages are sent. This method sets the properties in
        ///     this class to the speaker and origin of the message, where it is handed off to a delegate
        ///     later.
        /// </summary>
        /// <param name="speaker">
        /// The player who said the message.
        /// </param>
        /// <param name="origin">
        /// The room where the message originated.
        /// </param>
        public ChatEventArgs(Player speaker, Room origin)
        {
            this.Origin = origin;
            if (this.Origin != null)
            {
                this.Origin.ChatLog = origin.ChatLog;
            }
            this.speaker = speaker;
        }

        /// <summary>
        ///     The origin (room) where the message came from.
        /// </summary>
        public Room Origin { get; private set; }
    }<commit_msg>Fix #43 (possibly)<commit_after>﻿namespace Skylight
{
    using System;

    /// <summary>
    ///     The class that handles all chat-based messages from the server
    ///     including ones sent to the user through system.
    /// </summary>
    public class ChatEventArgs : EventArgs
    {
        /// <summary>
        ///     The player who sent the message.
        /// </summary>
        public readonly Player speaker;

        /// <summary>
        /// Initializes a new instance of the <see cref="ChatEventArgs"/> class. 
        ///     The main method where the chat messages are sent. This method sets the properties in
        ///     this class to the speaker and origin of the message, where it is handed off to a delegate
        ///     later.
        /// </summary>
        /// <param name="speaker">
        /// The player who said the message.
        /// </param>
        /// <param name="origin">
        /// The room where the message originated.
        /// </param>
        public ChatEventArgs(Player speaker, Room origin)
        {
            this.Origin = origin;
            if (this.Origin != null)
            {
                this.Origin.ChatLog = origin.ChatLog;
            }

            this.speaker = speaker;
        }

        /// <summary>
        ///     The origin (room) where the message came from.
        /// </summary>
        public Room Origin { get;  set; }
    }
{'fraction_non_alphanumeric': 0.11177715091678421, 'fraction_numerical': 0.0007052186177715092, 'mean_word_length': 1.4372852233676976, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '5434950', 'n_tokens_mistral': 703, 'n_tokens_neox': 685, 'n_words': 267}