<commit_before>﻿using Espera.Core.Audio;
using Rareform.Extensions;
using Rareform.Validation;
using System;
using System.Diagnostics;
using System.IO;

namespace Espera.Core
{
    /// <summary>
    /// Represents a song
    /// </summary>
    [DebuggerDisplay("{Artist}-{Album}-{Title}")]
    public abstract class Song : IEquatable<Song>
    {
        private int cachingProgress;
        private bool isCached;
        private bool isCorrupted;
        private string streamingPath;

        /// <summary>
        /// Initializes a new instance of the <see cref="Song"/> class.
        /// </summary>
        /// <param name="path">The path of the song.</param>
        /// <param name="audioType">The audio type.</param>
        /// <param name="duration">The duration of the song.</param>
        /// <exception cref="ArgumentNullException"><c>path</c> is null.</exception>
        protected Song(string path, AudioType audioType, TimeSpan duration)
        {
            if (path == null)
                Throw.ArgumentNullException(() => path);

            this.OriginalPath = path;
            this.AudioType = audioType;
            this.Duration = duration;

            this.Album = String.Empty;
            this.Artist = String.Empty;
            this.Genre = String.Empty;
            this.Title = String.Empty;
        }

        public event EventHandler CachingCompleted;

        public event EventHandler CachingFailed;<commit_msg>Removed unused field<commit_after>﻿using Espera.Core.Audio;
using Rareform.Extensions;
using Rareform.Validation;
using System;
using System.Diagnostics;
using System.IO;

namespace Espera.Core
{
    /// <summary>
    /// Represents a song
    /// </summary>
    [DebuggerDisplay("{Artist}-{Album}-{Title}")]
    public abstract class Song : IEquatable<Song>
    {
        private int cachingProgress;
        private bool isCached;
        private bool isCorrupted;

        /// <summary>
        /// Initializes a new instance of the <see cref="Song"/> class.
        /// </summary>
        /// <param name="path">The path of the song.</param>
        /// <param name="audioType">The audio type.</param>
        /// <param name="duration">The duration of the song.</param>
        /// <exception cref="ArgumentNullException"><c>path</c> is null.</exception>
        protected Song(string path, AudioType audioType, TimeSpan duration)
        {
            if (path == null)
                Throw.ArgumentNullException(() => path);

            this.OriginalPath = path;
            this.AudioType = audioType;
            this.Duration = duration;

            this.Album = String.Empty;
            this.Artist = String.Empty;
            this.Genre = String.Empty;
            this.Title = String.Empty;
        }

        public event EventHandler CachingCompleted;

        public event EventHandler CachingFailed;
{'fraction_non_alphanumeric': 0.12016718913270637, 'fraction_numerical': 0.0, 'mean_word_length': 2.156043956043956, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 37, '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': '6169566', 'n_tokens_mistral': 769, 'n_tokens_neox': 747, 'n_words': 202}