<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace xpf.Http
{
    public class Http : IHttp
    {
 
        public Http(HttpMessageHandler messageHandler)
        {
            MessageHandler = messageHandler;
        }

        protected HttpMessageHandler MessageHandler { get; set; }

        public async Task<HttpResponse<TR>> GetAsync<TR>(HttpRequest request) 
            where TR : class
        {
            HttpClient client;
            if (MessageHandler == null)
            {
                var clientHandler = new System.Net.Http.HttpClientHandler();
<commit_msg>Fixing bug with not having a default constructor and default Handler.<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace xpf.Http
{
    public class Http : IHttp
    {
        public Http()
        {
        }

        public Http(HttpMessageHandler messageHandler)
        {
            MessageHandler = messageHandler;
        }

        protected HttpMessageHandler MessageHandler { get; set; }

        public async Task<HttpResponse<TR>> GetAsync<TR>(HttpRequest request) 
            where TR : class
        {
            HttpClient client;
            if (MessageHandler == null)
            {
                var clientHandler = new HttpClientHandler();

{'fraction_non_alphanumeric': 0.07883565797453002, 'fraction_numerical': 0.0, 'mean_word_length': 2.466386554621849, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5151178', 'n_tokens_mistral': 429, 'n_tokens_neox': 416, 'n_words': 114}