<commit_before>﻿using System;
using System.Linq;
using System.Threading.Tasks;
using System.Timers;
using System.Windows;
using TCC.ViewModels;


namespace TCC.Data
{
    public class Npc : TSPropertyChanged, IDisposable
    {
        public bool HasGage { get; set; }

        public ulong EntityId { get; set; }
        protected string name;
        public string Name
        {
            get => name;
            set
            {
                if (name != value)
                {
                    name = value;
                    NPC(nameof(Name));
                }
            }
        }

        public bool IsBoss { get; set; }
        protected SynchronizedObservableCollection<AbnormalityDuration> _buffs;
        public SynchronizedObservableCollection<AbnormalityDuration> Buffs
        {
            get { return _buffs; }
            set
            {
                if (_buffs == value) return;
                _buffs = value;
                NPC("Buffs");
            }
        }

        protected bool enraged;
        public bool Enraged
        {
            get => enraged;
            set
            {
                if (enraged == value) return;
                enraged = value;
                NPC(nameof(Enraged));
            }
        }

        protected float _maxHP;
        public float MaxHP
        {
            get => _maxHP;
            set
            {
                if (_maxHP != value)
                {
                    _maxHP = value;
                    EnragePattern.Update(value);
                    NPC("MaxHP");
                }
            }
        }
        protected float _currentHP;
        public float CurrentHP
        {
            get => _currentHP;
            set
            {
                if (_currentHP != value)
                {
                    _currentHP = value;
                    NPC(nameof(CurrentHP));
                    NPC(nameof(CurrentPercentage));
                    NPC(nameof(CurrentFactor));
                }
            }
        }
        private uint maxShield;
        public uint MaxShield
        {
            get => maxShield;
            set
            {
                if (maxShield != value)<commit_msg>fixeroni<commit_after>﻿using System;
using System.Linq;
using System.Threading.Tasks;
using System.Timers;
using System.Windows;
using TCC.ViewModels;


namespace TCC.Data
{
    public class Npc : TSPropertyChanged, IDisposable
    {
        public bool HasGage { get; set; }

        public ulong EntityId { get; set; }
        protected string name;
        public string Name
        {
            get => name;
            set
            {
                if (name != value)
                {
                    name = value;
                    NPC(nameof(Name));
                }
            }
        }

        public bool IsBoss { get; set; }
        protected SynchronizedObservableCollection<AbnormalityDuration> _buffs;
        public SynchronizedObservableCollection<AbnormalityDuration> Buffs
        {
            get { return _buffs; }
            set
            {
                if (_buffs == value) return;
                _buffs = value;
                NPC("Buffs");
            }
        }

        protected bool enraged;
        public bool Enraged
        {
            get => enraged;
            set
            {
                if (enraged == value) return;
                enraged = value;
                NPC(nameof(Enraged));
            }
        }

        protected float _maxHP;
        public float MaxHP
        {
            get => _maxHP;
            set
            {
                if (_maxHP != value)
                {
                    _maxHP = value;
                    EnragePattern?.Update(value);
                    NPC("MaxHP");
                }
            }
        }
        protected float _currentHP;
        public float CurrentHP
        {
            get => _currentHP;
            set
            {
                if (_currentHP != value)
                {
                    _currentHP = value;
                    NPC(nameof(CurrentHP));
                    NPC(nameof(CurrentPercentage));
                    NPC(nameof(CurrentFactor));
                }
            }
        }
        private uint maxShield;
        public uint MaxShield
        {
            get => maxShield;
            set
            {
                if (maxShield != value)
{'fraction_non_alphanumeric': 0.07393258426966293, 'fraction_numerical': 0.0, 'mean_word_length': 0.9808633733867379, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, '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': '7278704', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1085, 'n_words': 253}