<commit_before>﻿using System;
using System.Collections.Generic;

namespace Spark.Models
{
    [Serializable]
    public sealed class ClientVersion
    {
        #region Client Version Comparaer
        sealed class ClientVersionComparer : IEqualityComparer<ClientVersion>
        {
            public bool Equals(ClientVersion a, ClientVersion b)
            {
                if (Object.ReferenceEquals(a, b))
                    return true;

                if (a == null || b == null)
                    return false;

                return a.VersionCode == b.VersionCode && a.Name.Equals(b.Name, StringComparison.Ordinal);
            }

            public int GetHashCode(ClientVersion version)
            {
                return version.Name.GetHashCode() ^ version.VersionCode.GetHashCode();
            }
        }

        public static readonly IEqualityComparer<ClientVersion> VersionComparer = new ClientVersionComparer();
        #endregion

        #region Standard Client Versions
        public static readonly ClientVersion Version739 = new ClientVersion()
        {
            Name = "US Dark Ages 7.39",
            VersionCode = 739,
            Hash = "ca31b8165ea7409d285d81616d8ca4f2",      // MD5
            ServerHostnamePatchAddress = 0x4341FA,
            ServerPortPatchAddress = 0x434224,
            IntroVideoPatchAddress = 0x42F48F,
            MultipleInstancePatchAddress = 0x5911AE,
            HideWallsPatchAddress = 0x624BC4
        };

        public static readonly ClientVersion Version737 = new ClientVersion()
        {
            Name = "US Dark Ages 7.37",
            VersionCode = 737,
            Hash = "36f4689b09a4a91c74555b3c3603b196",
            ServerHostnamePatchAddress = 0x4341FA,
            ServerPortPatchAddress = 0x434224,
            IntroVideoPatchAddress = 0x42F48F,
            MultipleInstancePatchAddress = 0x5911AE,
            HideWallsPatchAddress = 0x624BC4
        };
        #endregion

        #region Properties
        public string Name { get; set; }
        public int VersionCode { get; set; }
        public string Hash { get; set; }
        public long ServerHostnamePatchAddress { get; set; }
        public long ServerPortPatchAddress { get; set; }
        public long IntroVideoPatchAddress { get; set; }
        public long MultipleInstancePatchAddress { get; set; }
        public long HideWallsPatchAddress { get; set; }
        #endregion

        public ClientVersion() { }

        public static IEnumerable<ClientVersion> GetDefaultVersions()
        {
            yield return Version737;
            yield return Version739;
        }
    }
}<commit_msg>Added version 740<commit_after>﻿using System;
using System.Collections.Generic;

namespace Spark.Models
{
    [Serializable]
    public sealed class ClientVersion
    {
        #region Client Version Comparaer
        sealed class ClientVersionComparer : IEqualityComparer<ClientVersion>
        {
            public bool Equals(ClientVersion a, ClientVersion b)
            {
                if (Object.ReferenceEquals(a, b))
                    return true;

                if (a == null || b == null)
                    return false;

                return a.VersionCode == b.VersionCode && a.Name.Equals(b.Name, StringComparison.Ordinal);
            }

            public int GetHashCode(ClientVersion version)
            {
                return version.Name.GetHashCode() ^ version.VersionCode.GetHashCode();
            }
        }

        public static readonly IEqualityComparer<ClientVersion> VersionComparer = new ClientVersionComparer();
        #endregion

        #region Standard Client Versions
        public static readonly ClientVersion Version739 = new ClientVersion()
        {
            Name = "US Dark Ages 7.39",
            VersionCode = 739,
            Hash = "ca31b8165ea7409d285d81616d8ca4f2",      // MD5
            ServerHostnamePatchAddress = 0x4341FA,
            ServerPortPatchAddress = 0x434224,
            IntroVideoPatchAddress = 0x42F48F,
            MultipleInstancePatchAddress = 0x5911AE,
            HideWallsPatchAddress = 0x624BC4
        };

        public static readonly ClientVersion Version737 = new ClientVersion()
        {
            Name = "US Dark Ages 7.37",
            VersionCode = 737,
            Hash = "36f4689b09a4a91c74555b3c3603b196",
            ServerHostnamePatchAddress = 0x4341FA,
            ServerPortPatchAddress = 0x434224,
            IntroVideoPatchAddress = 0x42F48F,
            MultipleInstancePatchAddress = 0x5911AE,
            HideWallsPatchAddress = 0x624BC4
        };

        public static readonly ClientVersion Version740 = new ClientVersion()
        {
            Name = "US Dark Ages 7.40",
            VersionCode = 740,
            Hash = "9dc6fb13d0470331bf5ba230343fce42",
            ServerHostnamePatchAddress = 0x4341FA,
            ServerPortPatchAddress = 0x434224,
            IntroVideoPatchAddress = 0x42F48F,
            MultipleInstancePatchAddress = 0x5912AE,
            HideWallsPatchAddress = 0x624CC4
        };
        #endregion

        #region Properties
        public string Name { get; set; }
        public int VersionCode { get; set; }
        public string Hash { get; set; }
        public long ServerHostnamePatchAddress { get; set; }
        public long ServerPortPatchAddress { get; set; }
        public long IntroVideoPatchAddress { get; set; }
        public long MultipleInstancePatchAddress { get; set; }
        public long HideWallsPatchAddress { get; set; }
        #endregion

        public ClientVersion() { }

        public static IEnumerable<ClientVersion> GetDefaultVersions()
        {
            yield return Version737;
            yield return Version739;
            yield return Version740;
        }
    }
}
{'fraction_non_alphanumeric': 0.06610576923076923, 'fraction_numerical': 0.053228021978021976, 'mean_word_length': 1.9613624809354346, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '899213', 'n_tokens_mistral': 1722, 'n_tokens_neox': 1497, 'n_words': 371}