<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Reflection;
using System.Threading;
using FluentAssertions;
using Newtonsoft.Json;
using Xunit;

namespace Okanshi.Test
{
	public class MonitorApiTest : IDisposable
	{
		private readonly MonitorApi _monitorApi;
		private readonly string _monitorUrl = "http://localhost:13004/" + AppDomain.CurrentDomain.SetupInformation.ApplicationName + "/";

		public MonitorApiTest()
		{
			_monitorApi = new MonitorApi(new MonitorApiOptions { HttpPrefix = _monitorUrl });
			_monitorApi.Start();
			Thread.Sleep(500);
			HealthChecks.Clear();
			CSharp.Monitor.ResetCounters();
		}

		public void Dispose()
		{
			_monitorApi.Stop();
		}

		public class AssemblyDependency
		{
			public string Name;
			public string Version;
		}

		[Fact]<commit_msg>Fix test<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Reflection;
using System.Threading;
using FluentAssertions;
using Newtonsoft.Json;
using Xunit;

namespace Okanshi.Test
{
	public class MonitorApiTest : IDisposable
	{
		private readonly MonitorApi _monitorApi;
		private readonly string _monitorUrl = "http://localhost:13004/" + Guid.NewGuid() + "/";

		public MonitorApiTest()
		{
			_monitorApi = new MonitorApi(new MonitorApiOptions { HttpPrefix = _monitorUrl });
			_monitorApi.Start();
			Thread.Sleep(500);
			HealthChecks.Clear();
			CSharp.Monitor.ResetCounters();
		}

		public void Dispose()
		{
			_monitorApi.Stop();
		}

		public class AssemblyDependency
		{
			public string Name;
			public string Version;
		}

		[Fact]
{'fraction_non_alphanumeric': 0.10197960407918416, 'fraction_numerical': 0.009598080383923215, 'mean_word_length': 4.450980392156863, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '656217', 'n_tokens_mistral': 578, 'n_tokens_neox': 500, 'n_words': 120}