<commit_before>﻿using System;
using Branch.Clients.Branch;
using Branch.Packages.Contracts.ServiceAuth;
using System.Threading;
using System.Threading.Tasks;

namespace Branch.Clients.Auth
{
	public class AuthClient : BranchClient, IService
	{
		public AuthClient(string baseUrl, string key)
			: base(baseUrl, key) { }

		public async Task<ResGetHalo4Token> GetHalo4Token()
		{
			return await base.Do<ResGetHalo4Token>("1/2018-03-21/get_halo4_token");
		}

		public async Task<ResGetXboxLiveToken> GetXboxLiveToken()
		{
			return await base.Do<ResGetXboxLiveToken>("1/2018-03-21/get_xboxlive_token");
		}<commit_msg>Updated auth client to have 15 sec timeout<commit_after>﻿using System;
using Branch.Clients.Branch;
using Branch.Packages.Contracts.ServiceAuth;
using System.Threading;
using System.Threading.Tasks;
using Branch.Clients.Json.Models;

namespace Branch.Clients.Auth
{
	public class AuthClient : BranchClient, IService
	{
		public AuthClient(string baseUrl, string key)
			: base(baseUrl, key, new Options { Timeout = TimeSpan.FromSeconds(15) })
		{ }

		public async Task<ResGetHalo4Token> GetHalo4Token()
		{
			return await base.Do<ResGetHalo4Token>("1/2018-03-21/get_halo4_token");
		}

		public async Task<ResGetXboxLiveToken> GetXboxLiveToken()
		{
			return await base.Do<ResGetXboxLiveToken>("1/2018-03-21/get_xboxlive_token");
		}
{'fraction_non_alphanumeric': 0.10848708487084871, 'fraction_numerical': 0.035424354243542434, 'mean_word_length': 5.366197183098592, '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': '5195618', 'n_tokens_mistral': 512, 'n_tokens_neox': 466, 'n_words': 89}