<commit_before>﻿using System;
using System.Threading;
using System.Threading.Tasks;
using DSharpPlus;
using ModCore.Database;
using Newtonsoft.Json;

namespace ModCore.Entities
{
    /// <summary>
    /// Base interface representing all data that can be attached to a timer.
    /// </summary>
    public interface ITimerData { }

    /// <summary>
    /// Represents reminder data for a timer.
    /// </summary>
    public class TimerReminderData : ITimerData
    {
        /// <summary>
        /// Gets or sets the reminder text set by the user.
        /// </summary>
        [JsonProperty("text")]
        public string ReminderText { get; set; }
    }

    /// <summary>
    /// Represents ban data for a timer.
    /// </summary>
    public class TimerBanData : ITimerData
    {

    }

    /// <summary>
    /// Represents mute data for a timer.
    /// </summary>
    public class TimerMuteData : ITimerData
    {

    }

    /// <summary>
    /// Represents timer action type.
    /// </summary>
    public enum TimerActionType : int
    {
        Unknown = 0, // Action type that is not known
        Reminder = 1, // Reminders
        Unban = 2, // Temp ban unban action
        Unmute = 3, // Temp mute unmute action
        Pin = 4, // Timed pin action
        Unpin = 5 // Temporary pin unpin action
    }

    /// <summary>
    /// Represents information for the timer dispatcher.
    /// </summary>
    public class TimerData
    {
        /// <summary>
        /// Gets the current timer task.
        /// </summary>
        public Task Timer { get; }

        /// <summary>
        /// Gets the database timer instance.<commit_msg>renamed/added timer datas<commit_after>﻿using System;
using System.Threading;
using System.Threading.Tasks;
using DSharpPlus;
using ModCore.Database;
using Newtonsoft.Json;

namespace ModCore.Entities
{
    /// <summary>
    /// Base interface representing all data that can be attached to a timer.
    /// </summary>
    public interface ITimerData { }

    /// <summary>
    /// Represents reminder data for a timer.
    /// </summary>
    public class TimerReminderData : ITimerData
    {
        /// <summary>
        /// Gets or sets the reminder text set by the user.
        /// </summary>
        [JsonProperty("text")]
        public string ReminderText { get; set; }
    }

    /// <summary>
    /// Represents unban data for a timer.
    /// </summary>
    public class TimerUnbanData : ITimerData
    {

    }

    /// <summary>
    /// Represents unmute data for a timer.
    /// </summary>
    public class TimerUnmuteData : ITimerData
    {

    }

    /// <summary>
    /// Represents pin data for a timer.
    /// </summary>
    public class TimerPinData : ITimerData
    {

    }

    /// <summary>
    /// Represents unpin data for a timer.
    /// </summary>
    public class TimerUnpinData : ITimerData
    {

    }



    /// <summary>
    /// Represents timer action type.
    /// </summary>
    public enum TimerActionType : int
    {
        Unknown = 0, // Action type that is not known
        Reminder = 1, // Reminders
        Unban = 2, // Temp ban unban action
        Unmute = 3, // Temp mute unmute action
        Pin = 4, // Timed pin action
        Unpin = 5 // Temporary pin unpin action
    }

    /// <summary>
    /// Represents information for the timer dispatcher.
    /// </summary>
    public class TimerData
    {
        /// <summary>
        /// Gets the current timer task.
        /// </summary>
        public Task Timer { get; }

        /// <summary>
        /// Gets the database timer instance.
{'fraction_non_alphanumeric': 0.11978877153974431, 'fraction_numerical': 0.0033351862145636463, 'mean_word_length': 1.7182779456193353, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '5276865', 'n_tokens_mistral': 1048, 'n_tokens_neox': 996, 'n_words': 339}