<commit_before>﻿using SteamKit2.GC;
using SteamKit2.GC.Dota.Internal;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;

namespace HGV.Crystalys.Tests
{
	public class DotaClientTest
	{
		// <NAME>
		// <EMAIL>
		// "Thantsking" / "aPhan3sah"
		// 1962101529

		private string Username = "Thantsking";
		private string Password = "<PASSWORD>";

		[Fact]
		public void ConnectToSteam()
		{
			Assert.True(File.Exists("sentry.bin"));

			// if we have a saved sentry file, read 
			byte[] sentryFile = File.ReadAllBytes("sentry.bin");

			using (var client = new DotaClient(this.Username, this.Password, sentryFile))
			{
				client.OnConnected += (o, e) => {
					if(e.Result)
						Trace.TraceInformation("Connected to Steam, Logging in '{0}'", this.Username);
					else
						Trace.TraceError("Unable to connect to Steam");
				};
				client.OnDisconnected += (o, e) => {
					e.Reconnect = true;

					Trace.TraceInformation("Disconnected from Steam.");
				};
				client.OnLoggedOn += (o, e) => {
					if(e.Sucess)
						Trace.TraceInformation("Successfully logged on!");
					else
						Trace.TraceError("Unable to logon to Steam: {0}", e.Result);
				};
				client.OnAccountLogonDenied += (o, e) => {
					Trace.TraceInformation("Auth code sent to the email at {0} is required. Regenerate Sentry File Hash.", e.EmailDomain);
				};
				client.OnLoggedOff += (o, e) => {
					Trace.TraceInformation("Logged off of Steam");
				};
				client.OnClientWelcome += (o, e) => {
					Trace.TraceInformation("GC is welcoming us. Version: {0}", e.Message.version);
				};

				client.Connect(TimeSpan.FromMinutes(1));

				var data = client.DownloadReplay(1962101529, TimeSpan.FromMinutes(1));

				Assert.NotEqual(0, data.Length);
			}
        }
	}
}<commit_msg>added username to domain for email. use the same username for hotmail as for steam<commit_after>﻿using SteamKit2.GC;
using SteamKit2.GC.Dota.Internal;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;

namespace HGV.Crystalys.Tests
{
	public class DotaClientTest
	{
		// <NAME>
		// <EMAIL>
		// "Thantsking" / "<PASSWORD>"
		// 1962101529

		private string Username = "Thantsking";
		private string Password = "<PASSWORD>";

		[Fact]
		public void ConnectToSteam()
		{
			Assert.True(File.Exists("sentry.bin"));

			// if we have a saved sentry file, read 
			byte[] sentryFile = File.ReadAllBytes("sentry.bin");

			using (var client = new DotaClient(this.Username, this.Password, sentryFile))
			{
				client.OnConnected += (o, e) => {
					if(e.Result)
						Trace.TraceInformation("Connected to Steam, Logging in '{0}'", this.Username);
					else
						Trace.TraceError("Unable to connect to Steam");
				};
				client.OnDisconnected += (o, e) => {
					e.Reconnect = true;

					Trace.TraceInformation("Disconnected from Steam.");
				};
				client.OnLoggedOn += (o, e) => {
					if(e.Sucess)
						Trace.TraceInformation("Successfully logged on!");
					else
						Trace.TraceError("Unable to logon to Steam: {0}", e.Result);
				};
				client.OnAccountLogonDenied += (o, e) => {
					Trace.TraceInformation("Auth code sent to the email at {0}@{1} is required. Regenerate Sentry File Hash.", this.Username, e.EmailDomain);
				};
				client.OnLoggedOff += (o, e) => {
					Trace.TraceInformation("Logged off of Steam");
				};
				client.OnClientWelcome += (o, e) => {
					Trace.TraceInformation("GC is welcoming us. Version: {0}", e.Message.version);
				};

				client.Connect(TimeSpan.FromMinutes(1));

				var data = client.DownloadReplay(1962101529, TimeSpan.FromMinutes(1));

				Assert.NotEqual(0, data.Length);
			}
        }
	}
}
{'fraction_non_alphanumeric': 0.14296854691967767, 'fraction_numerical': 0.015596568754873927, 'mean_word_length': 3.3235955056179773, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4518701', 'n_tokens_mistral': 1544, 'n_tokens_neox': 1248, 'n_words': 301}