<commit_before>﻿namespace OpenBook
{
    /// <summary>
    ///     Constants for OpenBooks API URIs
    /// </summary>
    /// <remarks>
    ///     APIs seems to take a '_' parameter that seems to be the current user token
    /// </remarks>
    public struct OpenbookUri
    {
        public const string Protocol = "https://";
        public const string Hostname = "openbook.etoro.com";
        public const string BaseUri = Protocol + Hostname + "/API";

        /// <summary>
        ///     Gets the top ranking users depending on the filters
        ///     Known parameters and values:
        ///         period => Number of days (e.g. 30, 90)
        ///         riskLevel => low, medium, high
        ///         sort => copiers, gain
        ///         pageNumber => (Optional) Page requested (default to 1)
        /// </summary>
        public const string Rankings = BaseUri + "/Rankings/";

        /// <summary>
        ///     Gets the 5 top ranking users by copiers on a 3, 6 and 9 month period.
        /// </summary>
        public const string TopPerformers = Rankings + "/TopPerformers/";

        public struct ClientInformation
        {
            internal const string BaseApiUri = BaseUri + "/ClientInformation/";

            /// <summary>
            ///     Gets the current user information and features available to him
            /// </summary>
            public const string Information = BaseApiUri + "/Information/";
        }

        public struct Search
        {
            internal const string BaseApiUri = BaseUri + "/Search";

            /// <summary>
            ///     Gets details one or more specific users
            ///     Known parameters and values:
            ///         usernames => ["username1", "username2", ..., "usernameX"]
            ///         timeFrame => Number of days (e.g. 30, 90)
            /// </summary>
            public const string AdditionalData = BaseApiUri + "/AdditionalData/";
        }

        public struct Markets
        {
            internal const string BaseApiUri = BaseUri + "/Markets";

            /// <summary>
            ///     Gets a set of featured symbols from currencies, stocks and
            ///     commodities.
            /// </summary>
            /// <remarks>
            ///     Surprisingly any unknown sub query of /Markets will give
            ///     this same result.
            /// </remarks>>
            public const string Index = BaseApiUri + "/index";

            /// <summary>
            ///     Gets a set of featured specified symbol.
            ///     Known Parameters and values:
            ///         category => currencies, stocks, commodities
            /// </summary>
            public const string Category = BaseApiUri + "/Category";
        }
    }
}<commit_msg>moved const from struct to static class to avoid instantiation.<commit_after>﻿namespace OpenBook
{
    /// <summary>
    ///     Constants for OpenBooks API URIs
    /// </summary>
    /// <remarks>
    ///     APIs seems to take a '_' parameter that seems to be the current user token
    /// </remarks>
    public static class OpenbookUri
    {
        public const string Protocol = "https://";
        public const string Hostname = "openbook.etoro.com";
        public const string BaseUri = Protocol + Hostname + "/API";

        /// <summary>
        ///     Gets the top ranking users depending on the filters
        ///     Known parameters and values:
        ///         period => Number of days (e.g. 30, 90)
        ///         riskLevel => low, medium, high
        ///         sort => copiers, gain
        ///         pageNumber => (Optional) Page requested (default to 1)
        /// </summary>
        public const string Rankings = BaseUri + "/Rankings/";

        /// <summary>
        ///     Gets the 5 top ranking users by copiers on a 3, 6 and 9 month period.
        /// </summary>
        public const string TopPerformers = Rankings + "/TopPerformers/";

        public static class ClientInformation
        {
            internal const string BaseApiUri = BaseUri + "/ClientInformation/";

            /// <summary>
            ///     Gets the current user information and features available to him
            /// </summary>
            public const string Information = BaseApiUri + "/Information/";
        }

        public static class Search
        {
            internal const string BaseApiUri = BaseUri + "/Search";

            /// <summary>
            ///     Gets details one or more specific users
            ///     Known parameters and values:
            ///         usernames => ["username1", "username2", ..., "usernameX"]
            ///         timeFrame => Number of days (e.g. 30, 90)
            /// </summary>
            public const string AdditionalData = BaseApiUri + "/AdditionalData/";
        }

        public static class Markets
        {
            internal const string BaseApiUri = BaseUri + "/Markets";

            /// <summary>
            ///     Gets a set of featured symbols from currencies, stocks and
            ///     commodities.
            /// </summary>
            /// <remarks>
            ///     Surprisingly any unknown sub query of /Markets will give
            ///     this same result.
            /// </remarks>>
            public const string Index = BaseApiUri + "/index";

            /// <summary>
            ///     Gets a set of featured specified symbol.
            ///     Known Parameters and values:
            ///         category => currencies, stocks, commodities
            /// </summary>
            public const string Category = BaseApiUri + "/Category";
        }
    }
}
{'fraction_non_alphanumeric': 0.11050788091068302, 'fraction_numerical': 0.005253940455341506, 'mean_word_length': 1.3965589592950063, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 55, 'https://': 2, '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': '201371', 'n_tokens_mistral': 1380, 'n_tokens_neox': 1326, 'n_words': 497}