<commit_before>﻿namespace TraktApiSharp.Objects.Post.Scrobbles
{
    using Newtonsoft.Json;
    using System;

    public abstract class TraktScrobblePost : IValidatable
    {
        [JsonProperty(PropertyName = "progress")]
        public float Progress { get; set; }

        [JsonProperty(PropertyName = "app_version")]
        public string AppVersion { get; set; }

        [JsonProperty(PropertyName = "app_date")]
        public string AppDate { get; set; }

        public void Validate()
        {
            if (Progress.CompareTo(0.0f) < 0)
                throw new ArgumentException("progress value not valid");

            if (Progress.CompareTo(100.0f) > 0)
                throw new ArgumentException("progress value not valid");
        }
    }
}<commit_msg>Improve argument exception message of scrobble post.<commit_after>﻿namespace TraktApiSharp.Objects.Post.Scrobbles
{
    using Newtonsoft.Json;
    using System;

    public abstract class TraktScrobblePost : IValidatable
    {
        [JsonProperty(PropertyName = "progress")]
        public float Progress { get; set; }

        [JsonProperty(PropertyName = "app_version")]
        public string AppVersion { get; set; }

        [JsonProperty(PropertyName = "app_date")]
        public string AppDate { get; set; }

        public void Validate()
        {
            if (Progress.CompareTo(0.0f) < 0 || Progress.CompareTo(100.0f) > 0)
                throw new ArgumentException("progress value not valid - value must be between 0 and 100");
        }
    }
}
{'fraction_non_alphanumeric': 0.09669046073977937, 'fraction_numerical': 0.012978585334198572, 'mean_word_length': 2.472972972972973, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5218010', 'n_tokens_mistral': 441, 'n_tokens_neox': 414, 'n_words': 112}