<commit_before>﻿ using IA.SDK.Exceptions;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace IA.SDK.Events
{
    // TODO: Find a way to remove this whole class.
    public class Event : IEvent
    {
        public string Name { get; set; } = "$command-not-named";
        public string[] Aliases { get; set; } = new string[0];

        public EventAccessibility Accessibility { get; set; } = EventAccessibility.PUBLIC;
        public EventMetadata Metadata { get; set; } = new EventMetadata();

        public bool OverridableByDefaultPrefix { get; set; } = false;
        public bool CanBeDisabled { get; set; } = false;
        public bool DefaultEnabled { get; set; } = true;

        public IModule Module { get; set; }

        public int TimesUsed { get; set; } = 0;

        public Event()
        {
        }
        public Event(Action<Event> info)
        {
            info.Invoke(this);
        }

        public async Task<bool> IsEnabled(ulong id)
        {
            throw new AddonRunException();
        }

        public Task SetEnabled(ulong id, bool value)
        {
            throw new AddonRunException();
        }
    }

    public class Metadata
    {
        public string description = "description not set for this object!";
    }

    public class EventMetadata : Metadata
    {
        public string errorMessage = "Something went wrong!";

        public List<string> usage = new List<string>();

        public EventMetadata()
        {
        }
        public EventMetadata(string description, string error, params string[] usage)
        {
            this.description = description;
            errorMessage = error;
            this.usage.AddRange(usage);
        }
    }
}<commit_msg>Set: canbedisabled default to true<commit_after>﻿ using IA.SDK.Exceptions;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace IA.SDK.Events
{
    // TODO: Find a way to remove this whole class.
    public class Event : IEvent
    {
        public string Name { get; set; } = "$command-not-named";
        public string[] Aliases { get; set; } = new string[0];

        public EventAccessibility Accessibility { get; set; } = EventAccessibility.PUBLIC;
        public EventMetadata Metadata { get; set; } = new EventMetadata();

        public bool OverridableByDefaultPrefix { get; set; } = false;
        public bool CanBeDisabled { get; set; } = true;
        public bool DefaultEnabled { get; set; } = true;

        public IModule Module { get; set; }

        public int TimesUsed { get; set; } = 0;

        public Event()
        {
        }
        public Event(Action<Event> info)
        {
            info.Invoke(this);
        }

        public async Task<bool> IsEnabled(ulong id)
        {
            throw new AddonRunException();
        }

        public Task SetEnabled(ulong id, bool value)
        {
            throw new AddonRunException();
        }
    }

    public class Metadata
    {
        public string description = "description not set for this object!";
    }

    public class EventMetadata : Metadata
    {
        public string errorMessage = "Something went wrong!";

        public List<string> usage = new List<string>();

        public EventMetadata()
        {
        }
        public EventMetadata(string description, string error, params string[] usage)
        {
            this.description = description;
            errorMessage = error;
            this.usage.AddRange(usage);
        }
    }
}
{'fraction_non_alphanumeric': 0.09329199549041714, 'fraction_numerical': 0.0011273957158962795, 'mean_word_length': 2.0515907136715392, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '475254', 'n_tokens_mistral': 957, 'n_tokens_neox': 923, 'n_words': 292}