<commit_before>﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DailyRitualsApp.DataModel
{
    public class Ritual
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public ObservableCollection<DateTime> Dates { get; set; }
    }
}
<commit_msg>implement INotifyProperyChanged<commit_after>﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using DailyRitualsApp.Commands;

namespace DailyRitualsApp.DataModel
{
    public class Ritual : INotifyPropertyChanged
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public ObservableCollection<DateTime> Dates { get; set; } = new ObservableCollection<DateTime>();

        [IgnoreDataMember]
        public ICommand CompletedCommand { get; set; } = new CompletedButtonClick();

        public void AddDate()
        {
            Dates.Add(DateTime.Today);
            OnPropertyChanged("Dates");
        }

        public event PropertyChangedEventHandler PropertyChanged;

        protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            var handler = PropertyChanged;
            handler?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}

{'fraction_non_alphanumeric': 0.08490566037735849, 'fraction_numerical': 0.0, 'mean_word_length': 3.27455919395466, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '6981284', 'n_tokens_mistral': 440, 'n_tokens_neox': 448, 'n_words': 118}