<commit_before>﻿using System;
using eZet.EveLib.Core.Util;

namespace eZet.EveLib.Modules {
    public class ZKillboard {

        public const string DefaultUri = "https://zkillboard.com";


        public ZKillboard() {
            RequestHandler = new RequestHandler(new HttpRequester(), new DynamicJsonSerializer());
            BaseUri = new Uri(DefaultUri);
        }

        public Uri BaseUri { get; set; }

        public IRequestHandler RequestHandler { get; set; }

        public dynamic GetKills(ZKillboardOptions options) {
            string relPath = "/api/kills";
            relPath = options.GetQueryString(relPath);
            return request<dynamic>(new Uri(BaseUri, relPath));

        }

        public dynamic GetLosses(ZKillboardOptions options) {
            string relPath = "/api/losses";
            relPath = options.GetQueryString(relPath);
            return request<dynamic>(new Uri(BaseUri, relPath));
        }

        public dynamic GetAll(ZKillboardOptions options) {
            string relPath = "/api";
            relPath = options.GetQueryString(relPath);
            return request<dynamic>(new Uri(BaseUri, relPath));
        }

        private T request<T>(Uri uri) {
            return RequestHandler.Request<T>(uri);
        }
    }
}<commit_msg>Added Async methods for ZKillboard.<commit_after>﻿using System;
using System.Threading.Tasks;
using eZet.EveLib.Core.Util;

namespace eZet.EveLib.Modules {
    public class ZKillboard {

        public const string DefaultUri = "https://zkillboard.com";


        public ZKillboard() {
            RequestHandler = new RequestHandler(new HttpRequester(), new DynamicJsonSerializer());
            BaseUri = new Uri(DefaultUri);
        }

        public Uri BaseUri { get; set; }

        public IRequestHandler RequestHandler { get; set; }

        public dynamic GetKills(ZKillboardOptions options) {
            return GetKillsAsync(options).Result;
        }

        public Task<dynamic> GetKillsAsync(ZKillboardOptions options) {
            string relPath = "/api/kills";
            relPath = options.GetQueryString(relPath);
            return requestAsync<dynamic>(new Uri(BaseUri, relPath));
        }

        public dynamic GetLosses(ZKillboardOptions options) {
            return GetLossesAsync(options).Result;
        }

        public Task<dynamic> GetLossesAsync(ZKillboardOptions options) {
            string relPath = "/api/losses";
            relPath = options.GetQueryString(relPath);
            return requestAsync<dynamic>(new Uri(BaseUri, relPath));
        }

        public dynamic GetAll(ZKillboardOptions options) {
            return GetAllAsync(options).Result;
        }

        public Task<dynamic> GetAllAsync(ZKillboardOptions options) {
            string relPath = "/api";
            relPath = options.GetQueryString(relPath);
            return requestAsync<dynamic>(new Uri(BaseUri, relPath));
        }

        private Task<T> requestAsync<T>(Uri uri) {
            return RequestHandler.RequestAsync<T>(uri);
        }
    }
}
{'fraction_non_alphanumeric': 0.09514499837080483, 'fraction_numerical': 0.0, 'mean_word_length': 2.399778516057586, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 2, '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': '7555800', 'n_tokens_mistral': 853, 'n_tokens_neox': 804, 'n_words': 184}