<commit_before>using System.Net;
using Skybrud.Essentials.Http;
using Skybrud.Social.GitHub.Models.Common;

namespace Skybrud.Social.GitHub.Exceptions {

    /// <summary>
    /// Class representing an exception returned by the GitHub API.
    /// </summary>
    public class GitHubHttpException : GitHubException {

        #region Properties

        /// <summary>
        /// Gets a reference to the raw response.
        /// </summary>
        public IHttpResponse Response { get; }

        /// <summary>
        /// Gets the status code of the response.
        /// </summary>
        public HttpStatusCode StatusCode => Response.StatusCode;

        /// <summary>
        /// Gets the error information from the response.
        /// </summary><commit_msg>GitHubHttpException now implements IHttpException interface<commit_after>using System.Net;
using Skybrud.Essentials.Http;
using Skybrud.Essentials.Http.Exceptions;
using Skybrud.Social.GitHub.Models.Common;

namespace Skybrud.Social.GitHub.Exceptions {

    /// <summary>
    /// Class representing an exception returned by the GitHub API.
    /// </summary>
    public class GitHubHttpException : GitHubException, IHttpException {

        #region Properties

        /// <summary>
        /// Gets a reference to the raw response.
        /// </summary>
        public IHttpResponse Response { get; }

        /// <summary>
        /// Gets the status code of the response.
        /// </summary>
        public HttpStatusCode StatusCode => Response.StatusCode;

        /// <summary>
        /// Gets the error information from the response.
        /// </summary>
{'fraction_non_alphanumeric': 0.1098159509202454, 'fraction_numerical': 0.0, 'mean_word_length': 2.191780821917808, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '3313232', 'n_tokens_mistral': 429, 'n_tokens_neox': 404, 'n_words': 126}