<commit_before>﻿using Mixer.Base.Model.Client;
using Mixer.Base.Model.Constellation;
using Mixer.Base.Util;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Headers;
using System.Net.WebSockets;
using System.Threading.Tasks;

namespace Mixer.Base.Clients
{
    public enum ConstellationEventTypeEnum
    {
        [Name("Announcements")]
        announcement__announce,

        [Name("Channel Followed")]
        channel__id__followed,
        [Name("Channel Hosted")]
        channel__id__hosted,
        [Name("Channel Unhosted")]
        channel__id__unhosted,
        [Name("Channel Status")]
        channel__id__status,
        [Name("Channel Subscribed")]
        channel__id__subscribed,
        [Name("Channel Resubscribed")]
        channel__id__resubscribed,
        [Name("Channel Resubscribed Shared")]
        channel__id__resubShared,
        [Name("Channel Updated")]
        channel__id__update,

        [Name("Interactive Connected")]
        interactive__id__connect,
        [Name("Interactive Disconnected")]
        interactive__id__disconnected,

        [Name("Team Deleted")]
        team__id__deleted,
        [Name("Team Member Accepted")]
        team__id__memberAccepted,
        [Name("Team Member Invited")]
        team__id__memberInvited,
        [Name("Team Member Removed")]
        team__id__memberRemoved,
        [Name("Team Owner Changed")]
        team__id__ownerChanged,

        [Name("User Achievement")]
        user__id__achievement,
        [Name("User Followed")]
        user__id__followed,
        [Name("User Notification")]
        user__id__notify,
        [Name("User Subscribed")]
        user__id__subscribed,
        [Name("User Resubscribed")]
        user__id__resubscribed,
        [Name("User Joined Team")]
        user__id__teamAccepted,
        [Name("User Invited To Team")]
        user__id__teamInvited,
        [Name("User Left Team")]
        user__id__teamRemoved,
        [Name("User Updated")]
        user__id__update,
    }

    public class ConstellationEventType : IEquatable<ConstellationEventType>
    {
        public ConstellationEventTypeEnum Type { get; set; }
        public uint ID { get; set; }

        public ConstellationEventType(ConstellationEventTypeEnum type, uint id = 0)
            : this()
        {
            this.Type = type;
            this.ID = id;
        }

        public ConstellationEventType() { }

        public override string ToString()
        {
            return ConstellationClient.ConvertEventTypesToStrings(new List<ConstellationEventType>() { this }).First();
        }

        public override int GetHashCode() { return this.Type.GetHashCode() + this.ID.GetHashCode(); }
<commit_msg>Revert "- Adding parameterless constructor for ConstellationEventType for serialization purposes"<commit_after>﻿using Mixer.Base.Model.Client;
using Mixer.Base.Model.Constellation;
using Mixer.Base.Util;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Headers;
using System.Net.WebSockets;
using System.Threading.Tasks;

namespace Mixer.Base.Clients
{
    public enum ConstellationEventTypeEnum
    {
        [Name("Announcements")]
        announcement__announce,

        [Name("Channel Followed")]
        channel__id__followed,
        [Name("Channel Hosted")]
        channel__id__hosted,
        [Name("Channel Unhosted")]
        channel__id__unhosted,
        [Name("Channel Status")]
        channel__id__status,
        [Name("Channel Subscribed")]
        channel__id__subscribed,
        [Name("Channel Resubscribed")]
        channel__id__resubscribed,
        [Name("Channel Resubscribed Shared")]
        channel__id__resubShared,
        [Name("Channel Updated")]
        channel__id__update,

        [Name("Interactive Connected")]
        interactive__id__connect,
        [Name("Interactive Disconnected")]
        interactive__id__disconnected,

        [Name("Team Deleted")]
        team__id__deleted,
        [Name("Team Member Accepted")]
        team__id__memberAccepted,
        [Name("Team Member Invited")]
        team__id__memberInvited,
        [Name("Team Member Removed")]
        team__id__memberRemoved,
        [Name("Team Owner Changed")]
        team__id__ownerChanged,

        [Name("User Achievement")]
        user__id__achievement,
        [Name("User Followed")]
        user__id__followed,
        [Name("User Notification")]
        user__id__notify,
        [Name("User Subscribed")]
        user__id__subscribed,
        [Name("User Resubscribed")]
        user__id__resubscribed,
        [Name("User Joined Team")]
        user__id__teamAccepted,
        [Name("User Invited To Team")]
        user__id__teamInvited,
        [Name("User Left Team")]
        user__id__teamRemoved,
        [Name("User Updated")]
        user__id__update,
    }

    public class ConstellationEventType : IEquatable<ConstellationEventType>
    {
        public ConstellationEventTypeEnum Type { get; set; }
        public uint ID { get; set; }

        public ConstellationEventType(ConstellationEventTypeEnum type, uint id = 0)
        {
            this.Type = type;
            this.ID = id;
        }

        public override string ToString()
        {
            return ConstellationClient.ConvertEventTypesToStrings(new List<ConstellationEventType>() { this }).First();
        }

        public override int GetHashCode() { return this.Type.GetHashCode() + this.ID.GetHashCode(); }

{'fraction_non_alphanumeric': 0.09845490477901545, 'fraction_numerical': 0.00035932446999640676, 'mean_word_length': 2.6916445623342176, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '356161', 'n_tokens_mistral': 1569, 'n_tokens_neox': 1536, 'n_words': 307}