<commit_before>﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Player.cs" company="Starboard">
//   Copyright © 2011 All Rights Reserved
// </copyright>
// <summary>
//   Model for a Player, containing the player's name, color, race and score.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Starboard.Model
{
    using Starboard.MVVM;

    /// <summary> Model for a Player, containing the player's name, color, race and score.</summary>
    public class Player : ObservableObject
    {
        /// <summary> The player's name, defaulting to "Player". </summary>
        private string name = "Player";

        /// <summary> The player's color, default to "Unknown" </summary>
        private PlayerColor color = PlayerColor.Unknown;

        /// <summary> The player's race, defaulting to terran. </summary>
        private Race race = Race.Terran;

        /// <summary> The current score, starting at 0. </summary>
        private int score;

        /// <summary> Gets or sets the name of the player. </summary>
        public string Name
        {
            get 
            { 
                return this.name; 
            }

            set
            {
                this.name = value;
                RaisePropertyChanged("Name");
            }
        }

        /// <summary> Gets or sets the color of the player. </summary>
        public PlayerColor Color
        {
            get
            {
                return this.color;
            }

            set
            {
                this.color = value;
                RaisePropertyChanged("Color");
            }
        }

        /// <summary> Gets or sets the race of the player. </summary>
        public Race Race
        {
            get
            {
                return this.race;
            }

            set
            {
                this.race = value;
                RaisePropertyChanged("Race");
            }
        }

        /// <summary> Gets or sets the player's current score. </summary>
        public int Score
        {
            get
            {
                return this.score;
            }

            set
            {
                this.score = value;
                RaisePropertyChanged("Score");
            }
        }
    }
}<commit_msg>Created restraint that Score cannot be less than 0<commit_after>﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Player.cs" company="Starboard">
//   Copyright © 2011 All Rights Reserved
// </copyright>
// <summary>
//   Model for a Player, containing the player's name, color, race and score.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Starboard.Model
{
    using Starboard.MVVM;

    /// <summary> Model for a Player, containing the player's name, color, race and score.</summary>
    public class Player : ObservableObject
    {
        /// <summary> The player's name, defaulting to "Player". </summary>
        private string name = "Player";

        /// <summary> The player's color, default to "Unknown" </summary>
        private PlayerColor color = PlayerColor.Unknown;

        /// <summary> The player's race, defaulting to terran. </summary>
        private Race race = Race.Terran;

        /// <summary> The current score, starting at 0. </summary>
        private int score;

        /// <summary> Gets or sets the name of the player. </summary>
        public string Name
        {
            get 
            { 
                return this.name; 
            }

            set
            {
                this.name = value;
                RaisePropertyChanged("Name");
            }
        }

        /// <summary> Gets or sets the color of the player. </summary>
        public PlayerColor Color
        {
            get
            {
                return this.color;
            }

            set
            {
                this.color = value;
                RaisePropertyChanged("Color");
            }
        }

        /// <summary> Gets or sets the race of the player. </summary>
        public Race Race
        {
            get
            {
                return this.race;
            }

            set
            {
                this.race = value;
                RaisePropertyChanged("Race");
            }
        }

        /// <summary> Gets or sets the player's current score. </summary>
        public int Score
        {
            get
            {
                return this.score;
            }

            set
            {
                this.score = value < 0 ? 0 : value;
                RaisePropertyChanged("Score");
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.18326292496479582, 'fraction_numerical': 0.002615167974250654, 'mean_word_length': 0.9848303393213573, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 47, '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': '1856067', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1079, 'n_words': 356}