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

using JetBrains.Annotations;

namespace RestSharp.Portable
{
    public sealed class RequestParameters
    {
        internal RequestParameters([CanBeNull] IRestClient client, [CanBeNull] IRestRequest request)
        {
            var parameters = GetParameters(client, request);
            foreach (var parameter in parameters)
            {
                if (parameter.IsContentParameter())
                {
                    ContentHeaderParameters.Add(parameter);
                }
                else
                {
                    OtherParameters.Add(parameter);
                }
            }
        }

        public IList<Parameter> OtherParameters { get; } = new List<Parameter>();
        public IList<Parameter> ContentHeaderParameters { get; } = new List<Parameter>();

        private static IList<Parameter> GetParameters([CanBeNull] IRestClient client, [CanBeNull]  IRestRequest request)
        {
            var usedRequestParameters = new Dictionary<Parameter, bool>();<commit_msg>Added XML documentation<commit_after>﻿using System.Collections.Generic;
using System.Linq;

using JetBrains.Annotations;

namespace RestSharp.Portable
{
    /// <summary>
    /// Merged parameters - partially split by usage
    /// </summary>
    public sealed class RequestParameters
    {
        internal RequestParameters([CanBeNull] IRestClient client, [CanBeNull] IRestRequest request)
        {
            var parameters = GetParameters(client, request);
            Parameters = parameters;
            foreach (var parameter in parameters)
            {
                if (parameter.IsContentParameter())
                {
                    ContentHeaderParameters.Add(parameter);
                }
                else
                {
                    OtherParameters.Add(parameter);
                }
            }
        }

        /// <summary>
        /// Gets all parameters
        /// </summary>
        public IList<Parameter> Parameters { get; }

        /// <summary>
        /// Gets all parameters that aren't content header parameters
        /// </summary>
        public IList<Parameter> OtherParameters { get; } = new List<Parameter>();

        /// <summary>
        /// Gets all content header parameters
        /// </summary>
        public IList<Parameter> ContentHeaderParameters { get; } = new List<Parameter>();

        private static IList<Parameter> GetParameters([CanBeNull] IRestClient client, [CanBeNull]  IRestRequest request)
        {
            var usedRequestParameters = new Dictionary<Parameter, bool>();
{'fraction_non_alphanumeric': 0.0909777274443186, 'fraction_numerical': 0.0, 'mean_word_length': 1.9379157427937916, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, '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': '4253816', 'n_tokens_mistral': 620, 'n_tokens_neox': 597, 'n_words': 155}