<commit_before>﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using TCC.ViewModels;

namespace TCC.Data
{
    public class ChatMessage : TSPropertyChanged
    {
        #region Fields

        private const string OTag = "<FONT";
        private const string CTag = "</FONT>";

        #endregion

        #region Properties

        private ChatChannel _channel;
        public ChatChannel Channel
        {
            get => _channel;
            protected set
            {
                if (_channel == value) return;
                _channel = value;
                NPC(nameof(Channel));
            }
        }

        private string _timestamp;
        public string Timestamp
        {
            get => _timestamp;
            protected set
            {
                if (_timestamp == value) return;
                _timestamp = value;
                NPC(nameof(Timestamp));
            }
        }

        private string _rawMessage;
        public string RawMessage
        {
            get => _rawMessage;
            private set
            {
                if (_rawMessage == value) return;
                _rawMessage = value;
                NPC(nameof(RawMessage));
            }
        }

        private string _author;
        public string Author
        {
            get => _author;
            set
            {
                if (_author == value) return;
                _author = value;
                NPC(nameof(Author));
            }
        }

        public bool ContainsPlayerName { get; protected set; }

        private bool _animate = true;

        public bool Animate
        {
            get => _animate && Settings.AnimateChatMessages;
            set => _animate = value;
        }

        public bool ShowTimestamp => Settings.ShowTimestamp;
        public bool ShowChannel => Settings.ShowChannel;

        private SynchronizedObservableCollection<MessagePiece> _pieces;
        private bool _isVisible;

        public SynchronizedObservableCollection<MessagePiece> Pieces
        {
            get => _pieces;
            protected set
            {
                if (_pieces == value) return;
                _pieces = value;
                NPC(nameof(Pieces));
            }
        }

        public bool IsVisible
        {
            get => _isVisible;
            set
            {<commit_msg>make mention bool set public<commit_after>﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using TCC.ViewModels;

namespace TCC.Data
{
    public class ChatMessage : TSPropertyChanged
    {
        #region Fields

        private const string OTag = "<FONT";
        private const string CTag = "</FONT>";

        #endregion

        #region Properties

        private ChatChannel _channel;
        public ChatChannel Channel
        {
            get => _channel;
            protected set
            {
                if (_channel == value) return;
                _channel = value;
                NPC(nameof(Channel));
            }
        }

        private string _timestamp;
        public string Timestamp
        {
            get => _timestamp;
            protected set
            {
                if (_timestamp == value) return;
                _timestamp = value;
                NPC(nameof(Timestamp));
            }
        }

        private string _rawMessage;
        public string RawMessage
        {
            get => _rawMessage;
            private set
            {
                if (_rawMessage == value) return;
                _rawMessage = value;
                NPC(nameof(RawMessage));
            }
        }

        private string _author;
        public string Author
        {
            get => _author;
            set
            {
                if (_author == value) return;
                _author = value;
                NPC(nameof(Author));
            }
        }

        public bool ContainsPlayerName { get; set; }

        private bool _animate = true;

        public bool Animate
        {
            get => _animate && Settings.AnimateChatMessages;
            set => _animate = value;
        }

        public bool ShowTimestamp => Settings.ShowTimestamp;
        public bool ShowChannel => Settings.ShowChannel;

        private SynchronizedObservableCollection<MessagePiece> _pieces;
        private bool _isVisible;

        public SynchronizedObservableCollection<MessagePiece> Pieces
        {
            get => _pieces;
            protected set
            {
                if (_pieces == value) return;
                _pieces = value;
                NPC(nameof(Pieces));
            }
        }

        public bool IsVisible
        {
            get => _isVisible;
            set
            {
{'fraction_non_alphanumeric': 0.07028883053928499, 'fraction_numerical': 0.0, 'mean_word_length': 1.322701688555347, 'pattern_counts': {'":': 0, '<': 11, '<?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': '4864252', 'n_tokens_mistral': 1228, 'n_tokens_neox': 1147, 'n_words': 313}