<commit_before>using System;
using System.Net.Http;
using System.Threading.Tasks;
using XOMNI.SDK.Public.Clients;
using XOMNI.SDK.Public.Models;
using XOMNI.SDK.Public.Models.Social;
using XOMNI.SDK.Public.Extensions;

namespace XOMNI.SDK.Public.Clients.Social
{
    public class CommentClient : BaseClient
    {
        public CommentClient(HttpClient httpClient)
            : base(httpClient)
        {

        }

        public async Task<ApiResponse<SocialComment>> DeleteAsync(int commentId)
        {
            ValidatePIIToken();
            Validator.For(commentId, "commentId").IsGreaterThanOrEqual(1);

            string path = string.Format("social/comment/{0}", commentId);

            using (var response = await Client.DeleteAsync(path).ConfigureAwait(false))
            {
                return await response.Content.ReadAsAsync<ApiResponse<SocialComment>>().ConfigureAwait(false);
            }
        }

        public async Task<ApiResponse<SocialComment>> PostCommentAsync(SocialCommentToCommentRequest comment)
        {
            ValidatePIIToken();
            Validator.For(comment.TargetCommentId, "TargetCommentId").IsGreaterThanOrEqual(1);
            Validator.For(comment.Content, "Content").IsNotNullOrEmpty();

            string path = "/social/comment";

            using (var response = await Client.PostAsJsonAsync(path, comment).ConfigureAwait(false))
            {
                return await response.Content.ReadAsAsync<ApiResponse<SocialComment>>().ConfigureAwait(false);
            }
        }

        public async Task<ApiResponse<SocialComment>> PostCommentAsync(SocialCommentToPostRequest comment)
        {
            ValidatePIIToken();
            Validator.For(comment.TargetPostId, "TargetPostId").IsGreaterThanOrEqual(1);
            Validator.For(comment.Content, "Content").IsNotNullOrEmpty();

            string path = "/social/comment";

            using (var response = await Client.PostAsJsonAsync(path, comment).ConfigureAwait(false))
            {
                return await response.Content.ReadAsAsync<ApiResponse<SocialComment>>().ConfigureAwait(false);
            }
        }

        public async Task<ApiResponse<SocialPolicy>> GetPoliciesAsync(int targetPostId = default(int), int targetCommentId = default(int))
        {
            ValidatePIIToken();

            if (targetPostId != default(int) && targetCommentId != default(int))
            {
                throw new ArgumentException("You can not pass targetPostId and targetCommentId at the same time.");
            }

            string path = "/social/comment/policies?";

            if (targetPostId != default(int))
            {
                Validator.For(targetPostId, "targetPostId").IsGreaterThanOrEqual(1);
                path += string.Format("targetPostId={0}", targetPostId);
            }

            if (targetCommentId != default(int))
            {
                Validator.For(targetCommentId, "targetCommentId").IsGreaterThanOrEqual(1);
                path += string.Format("targetCommentId={0}", targetCommentId);
            }

            using (var response = await Client.GetAsync(path).ConfigureAwait(false))
            {
                return await response.Content.ReadAsAsync<ApiResponse<SocialPolicy>>().ConfigureAwait(false);
            }
        }

    }
}<commit_msg>Types of optional int params. changed nullable int.<commit_after>using System;
using System.Net.Http;
using System.Threading.Tasks;
using XOMNI.SDK.Public.Clients;
using XOMNI.SDK.Public.Models;
using XOMNI.SDK.Public.Models.Social;
using XOMNI.SDK.Public.Extensions;

namespace XOMNI.SDK.Public.Clients.Social
{
    public class CommentClient : BaseClient
    {
        public CommentClient(HttpClient httpClient)
            : base(httpClient)
        {

        }

        public async Task<ApiResponse<SocialComment>> DeleteAsync(int commentId)
        {
            ValidatePIIToken();
            Validator.For(commentId, "commentId").IsGreaterThanOrEqual(1);

            string path = string.Format("social/comment/{0}", commentId);

            using (var response = await Client.DeleteAsync(path).ConfigureAwait(false))
            {
                return await response.Content.ReadAsAsync<ApiResponse<SocialComment>>().ConfigureAwait(false);
            }
        }

        public async Task<ApiResponse<SocialComment>> PostCommentAsync(SocialCommentToCommentRequest comment)
        {
            ValidatePIIToken();
            Validator.For(comment.TargetCommentId, "TargetCommentId").IsGreaterThanOrEqual(1);
            Validator.For(comment.Content, "Content").IsNotNullOrEmpty();

            string path = "/social/comment";

            using (var response = await Client.PostAsJsonAsync(path, comment).ConfigureAwait(false))
            {
                return await response.Content.ReadAsAsync<ApiResponse<SocialComment>>().ConfigureAwait(false);
            }
        }

        public async Task<ApiResponse<SocialComment>> PostCommentAsync(SocialCommentToPostRequest comment)
        {
            ValidatePIIToken();
            Validator.For(comment.TargetPostId, "TargetPostId").IsGreaterThanOrEqual(1);
            Validator.For(comment.Content, "Content").IsNotNullOrEmpty();

            string path = "/social/comment";

            using (var response = await Client.PostAsJsonAsync(path, comment).ConfigureAwait(false))
            {
                return await response.Content.ReadAsAsync<ApiResponse<SocialComment>>().ConfigureAwait(false);
            }
        }

        public async Task<ApiResponse<SocialPolicy>> GetPoliciesAsync(int? targetPostId = null, int? targetCommentId = null)
        {
            ValidatePIIToken();

            if (targetPostId != null && targetCommentId != null)
            {
                throw new ArgumentException("You can not pass targetPostId and targetCommentId at the same time.");
            }

            string path = "/social/comment/policies?";

            if (targetPostId != null)
            {
                Validator.For(targetPostId, "targetPostId").IsGreaterThanOrEqual(1);
                path += string.Format("targetPostId={0}", targetPostId);
            }

            if (targetCommentId != null)
            {
                Validator.For(targetCommentId, "targetCommentId").IsGreaterThanOrEqual(1);
                path += string.Format("targetCommentId={0}", targetCommentId);
            }

            using (var response = await Client.GetAsync(path).ConfigureAwait(false))
            {
                return await response.Content.ReadAsAsync<ApiResponse<SocialPolicy>>().ConfigureAwait(false);
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.10439970171513796, 'fraction_numerical': 0.0023862788963460104, 'mean_word_length': 2.4231750893312913, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '4151051', 'n_tokens_mistral': 1788, 'n_tokens_neox': 1691, 'n_words': 293}