<commit_before>﻿using System;
using System.Globalization;
using Newtonsoft.Json;
using Skybrud.Social.Json.Converters;

namespace Skybrud.Social.Time {

    // ReSharper disable InconsistentNaming
    
    /// <summary>
    /// Class wrapping an instance of <see cref="DateTime"/> (as an alternative to using <see cref="Nullable{DateTime}"/>).
    /// </summary>
    [JsonConverter(typeof(SocialDateTimeConverter))]
    public class SocialDateTime {

        #region Properties

        /// <summary>
        /// Gets a <see cref="SocialDateTime"/> object that is set to the current date and time on this computer,
        /// expressed as the local time.
        /// </summary>
        public static SocialDateTime Now {
            get { return new SocialDateTime(DateTime.Now); }
        }

        /// <summary>
        /// Gets the current UNIX timestamp (amount of seconds since the start of the Unix Epoch).
        /// </summary>
        public static long CurrentUnixTimestamp {
            get { return SocialUtils.Time.GetUnixTimeFromDateTime(DateTime.Now); }
        }

        /// <summary>
        /// Gets an instance of <see cref="SocialDateTime"/> representing the start of the Unix Epoch (AKA <code>0</code> seconds).
        /// </summary>
        public static SocialDateTime Zero {
            get { return FromUnixTimestamp(0); }
        }

        /// <summary>
        /// Gets the current date.<commit_msg>An instance of "SocialDateTime" should implement "IComparable" so it can be used for sorting<commit_after>﻿using System;
using System.Globalization;
using Newtonsoft.Json;
using Skybrud.Social.Json.Converters;

namespace Skybrud.Social.Time {

    // ReSharper disable InconsistentNaming
    
    /// <summary>
    /// Class wrapping an instance of <see cref="DateTime"/> (as an alternative to using <see cref="Nullable{DateTime}"/>).
    /// </summary>
    [JsonConverter(typeof(SocialDateTimeConverter))]
    public class SocialDateTime : IComparable, IComparable<SocialDateTime>, IComparable<DateTime> {

        #region Properties

        /// <summary>
        /// Gets a <see cref="SocialDateTime"/> object that is set to the current date and time on this computer,
        /// expressed as the local time.
        /// </summary>
        public static SocialDateTime Now {
            get { return new SocialDateTime(DateTime.Now); }
        }

        /// <summary>
        /// Gets the current UNIX timestamp (amount of seconds since the start of the Unix Epoch).
        /// </summary>
        public static long CurrentUnixTimestamp {
            get { return SocialUtils.Time.GetUnixTimeFromDateTime(DateTime.Now); }
        }

        /// <summary>
        /// Gets an instance of <see cref="SocialDateTime"/> representing the start of the Unix Epoch (AKA <code>0</code> seconds).
        /// </summary>
        public static SocialDateTime Zero {
            get { return FromUnixTimestamp(0); }
        }

        /// <summary>
        /// Gets the current date.
{'fraction_non_alphanumeric': 0.11074160292650483, 'fraction_numerical': 0.0013302294645826404, 'mean_word_length': 2.3054945054945053, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '3506', 'n_tokens_mistral': 785, 'n_tokens_neox': 751, 'n_words': 257}