<commit_before>using Skybrud.Social.Http;
using Skybrud.Social.Twitter.OAuth;
using Skybrud.Social.Twitter.Options.Lists;

namespace Skybrud.Social.Twitter.Endpoints.Raw {
    
    /// <summary>
    /// Raw implementation of the favorites endpoint.
    /// </summary>
    public class TwitterListsRawEndpoint {

        #region Properties

        /// <summary>
        /// Gets a reference to the OAuth 1.0a client.
        /// </summary>
        public TwitterOAuthClient Client { get; private set; }

        #endregion

        #region Constructors

        internal TwitterListsRawEndpoint(TwitterOAuthClient client) {
            Client = client;
        }

        #endregion

        #region Member methods

        /// <summary>
        /// Gets information about the list with the specified <code>listId</code>.
        /// </summary>
        /// <param name="listId">The ID of the list.</param>
        /// <see>
        ///     <cref>https://dev.twitter.com/rest/reference/get/lists/show</cref>
        /// </see>
        public SocialHttpResponse GetList(long listId) {
            return GetList(new TwitterGetListOptions {
                Id = listId
            });
        }

        /// <summary>
        /// Gets information about the list with the specified <code>listId</code>.
        /// </summary>
        /// <param name="userId">The ID of the user owning the list.</param>
        /// <param name="slug">The slug of the list.</param>
        /// <see>
        ///     <cref>https://dev.twitter.com/rest/reference/get/lists/show</cref>
        /// </see>
        public SocialHttpResponse GetList(long userId, string slug) {
            return GetList(new TwitterGetListOptions {
                UserId = userId,
                Slug = slug
            });
        }

        /// <summary>
        /// Gets information about the list with the specified <code>listId</code>.
        /// </summary>
        /// <param name="screenName">The screen name of the user owning the list.</param>
        /// <param name="slug">The slug of the list.</param>
        /// <see>
        ///     <cref>https://dev.twitter.com/rest/reference/get/lists/show</cref>
        /// </see>
        public SocialHttpResponse GetList(string screenName, string slug) {
            return GetList(new TwitterGetListOptions {
                ScreenName = screenName,
                Slug = slug
            });
        }

        /// <summary>
        /// Gets information about the list matching the specified <code>options</code>.
        /// </summary>
        /// <param name="options">The options for the call to the API.</param>
        /// <see>
        ///     <cref>https://dev.twitter.com/rest/reference/get/lists/show</cref>
        /// </see>
        public SocialHttpResponse GetList(TwitterGetListOptions options) {
            return Client.DoHttpGetRequest("https://api.twitter.com/1.1/lists/list.json", options);
        }

        /// <summary>
        /// Gets a list of list of the authenticated user.
        /// </summary>
        /// <see>
        ///     <cref>https://dev.twitter.com/rest/reference/get/lists/list</cref>
        /// </see>
        public SocialHttpResponse GetLists() {
            return GetLists(default(TwitterGetListsOptions));
        }

        /// <summary>
        /// Gets a list of lists of the user with the specified <code>userId</code>.
        /// </summary>
        /// <param name="userId">The ID of the user.</param>
        /// <see>
        ///     <cref>https://dev.twitter.com/rest/reference/get/lists/list</cref>
        /// </see>
        public SocialHttpResponse GetLists(long userId) {
            return GetLists(new TwitterGetListsOptions {
                UserId = userId
            });
        }
<commit_msg>Should be an emptpy instance instead of null<commit_after>using Skybrud.Social.Http;
using Skybrud.Social.Twitter.OAuth;
using Skybrud.Social.Twitter.Options.Lists;

namespace Skybrud.Social.Twitter.Endpoints.Raw {
    
    /// <summary>
    /// Raw implementation of the favorites endpoint.
    /// </summary>
    public class TwitterListsRawEndpoint {

        #region Properties

        /// <summary>
        /// Gets a reference to the OAuth 1.0a client.
        /// </summary>
        public TwitterOAuthClient Client { get; private set; }

        #endregion

        #region Constructors

        internal TwitterListsRawEndpoint(TwitterOAuthClient client) {
            Client = client;
        }

        #endregion

        #region Member methods

        /// <summary>
        /// Gets information about the list with the specified <code>listId</code>.
        /// </summary>
        /// <param name="listId">The ID of the list.</param>
        /// <see>
        ///     <cref>https://dev.twitter.com/rest/reference/get/lists/show</cref>
        /// </see>
        public SocialHttpResponse GetList(long listId) {
            return GetList(new TwitterGetListOptions {
                Id = listId
            });
        }

        /// <summary>
        /// Gets information about the list with the specified <code>listId</code>.
        /// </summary>
        /// <param name="userId">The ID of the user owning the list.</param>
        /// <param name="slug">The slug of the list.</param>
        /// <see>
        ///     <cref>https://dev.twitter.com/rest/reference/get/lists/show</cref>
        /// </see>
        public SocialHttpResponse GetList(long userId, string slug) {
            return GetList(new TwitterGetListOptions {
                UserId = userId,
                Slug = slug
            });
        }

        /// <summary>
        /// Gets information about the list with the specified <code>listId</code>.
        /// </summary>
        /// <param name="screenName">The screen name of the user owning the list.</param>
        /// <param name="slug">The slug of the list.</param>
        /// <see>
        ///     <cref>https://dev.twitter.com/rest/reference/get/lists/show</cref>
        /// </see>
        public SocialHttpResponse GetList(string screenName, string slug) {
            return GetList(new TwitterGetListOptions {
                ScreenName = screenName,
                Slug = slug
            });
        }

        /// <summary>
        /// Gets information about the list matching the specified <code>options</code>.
        /// </summary>
        /// <param name="options">The options for the call to the API.</param>
        /// <see>
        ///     <cref>https://dev.twitter.com/rest/reference/get/lists/show</cref>
        /// </see>
        public SocialHttpResponse GetList(TwitterGetListOptions options) {
            return Client.DoHttpGetRequest("https://api.twitter.com/1.1/lists/list.json", options);
        }

        /// <summary>
        /// Gets a list of list of the authenticated user.
        /// </summary>
        /// <see>
        ///     <cref>https://dev.twitter.com/rest/reference/get/lists/list</cref>
        /// </see>
        public SocialHttpResponse GetLists() {
            return GetLists(new TwitterGetListsOptions());
        }

        /// <summary>
        /// Gets a list of lists of the user with the specified <code>userId</code>.
        /// </summary>
        /// <param name="userId">The ID of the user.</param>
        /// <see>
        ///     <cref>https://dev.twitter.com/rest/reference/get/lists/list</cref>
        /// </see>
        public SocialHttpResponse GetLists(long userId) {
            return GetLists(new TwitterGetListsOptions {
                UserId = userId
            });
        }

{'fraction_non_alphanumeric': 0.1360400738201951, 'fraction_numerical': 0.0010545742156604272, 'mean_word_length': 1.6761904761904762, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 131, 'https://': 14, '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': '7488052', 'n_tokens_mistral': 2061, 'n_tokens_neox': 2011, 'n_words': 496}