<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Text;

namespace Api
{
    public class ApiRequest
    {
        public event EventHandler<RequestFinishedEventArgs<string>> OnDone;

        public bool Error { get; set; }
        public string ErrorText { get; set; }
        public string Result { get; set; }
        public HttpWebRequest HttpWebRequest { get; private set; }
        public Dictionary<string, string> RequestData { get; private set; }
        public HttpWebResponse Response { get; set; }

        public ApiRequest(string url, string method, Dictionary<string, string> data = null)
        {
            RequestData = data;<commit_msg>cleanup<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Text;

namespace Api
{
    public class ApiRequest
    {
        public event EventHandler<RequestFinishedEventArgs<string>> OnDone;

        public bool Error { get; private set; }
        public string ErrorText { get; private set; }
        public string Result { get; private set; }
        public HttpWebRequest HttpWebRequest { get; private set; }
        public Dictionary<string, string> RequestData { get; private set; }

        public ApiRequest(string url, string method, Dictionary<string, string> data = null)
        {
            RequestData = data;
{'fraction_non_alphanumeric': 0.08194622279129321, 'fraction_numerical': 0.0038412291933418692, 'mean_word_length': 3.282191780821918, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3282626', 'n_tokens_mistral': 411, 'n_tokens_neox': 405, 'n_words': 131}