<commit_before>﻿// Copyright (c) Aura development team - Licensed under GNU GPL
// For more information, see license file in the main folder

using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using Yggdrasil.Logging;

namespace Yggdrasil.Util
{
	public class CliUtil
	{
		/// <summary>
		/// Writes logo and credits to Console.
		/// </summary>
		/// <param name="consoleTitlePrefix">Software name.</param>
		/// <param name="consoleTitle">Name of the server.</param>
		/// <param name="logo">ASCII logo.</param>
		/// <param name="logoColor">Color of the logo.</param>
		/// <param name="credits">Credits for header footer.</param>
		public static void WriteHeader(string consoleTitlePrefix, string consoleTitle, IList<string> logo, ConsoleColor logoColor, IList<string> credits)
		{
			Console.Title = consoleTitlePrefix + " : " + consoleTitle;

			Console.ForegroundColor = logoColor;
			WriteLinesCentered(logo);

			Console.WriteLine();

			Console.ForegroundColor = ConsoleColor.White;
			WriteLinesCentered(credits);

			Console.ResetColor();
			WriteSeperator();
		}

		/// <summary>
		/// Writes seperator in form of horizontal line to Console.
		/// </summary>
		public static void WriteSeperator()
		{
			Console.WriteLine("".PadLeft(Console.WindowWidth, '_'));
		}<commit_msg>Attempt to fix unit test error under Mono<commit_after>﻿// Copyright (c) Aura development team - Licensed under GNU GPL
// For more information, see license file in the main folder

using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using Yggdrasil.Logging;

namespace Yggdrasil.Util
{
	public class CliUtil
	{
		/// <summary>
		/// Writes logo and credits to Console.
		/// </summary>
		/// <param name="consoleTitlePrefix">Software name.</param>
		/// <param name="consoleTitle">Name of the server.</param>
		/// <param name="logo">ASCII logo.</param>
		/// <param name="logoColor">Color of the logo.</param>
		/// <param name="credits">Credits for header footer.</param>
		public static void WriteHeader(string consoleTitlePrefix, string consoleTitle, IList<string> logo, ConsoleColor logoColor, IList<string> credits)
		{
			var foreColor = Console.ForegroundColor;

			Console.Title = consoleTitlePrefix + " : " + consoleTitle;

			Console.ForegroundColor = logoColor;
			WriteLinesCentered(logo);

			Console.WriteLine();

			Console.ForegroundColor = ConsoleColor.White;
			WriteLinesCentered(credits);

			Console.ForegroundColor = foreColor;

			WriteSeperator();
		}

		/// <summary>
		/// Writes seperator in form of horizontal line to Console.
		/// </summary>
		public static void WriteSeperator()
		{
			Console.WriteLine("".PadLeft(Console.WindowWidth, '_'));
		}
{'fraction_non_alphanumeric': 0.12875226039783003, 'fraction_numerical': 0.0, 'mean_word_length': 3.9392857142857145, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '4005925', 'n_tokens_mistral': 887, 'n_tokens_neox': 792, 'n_words': 221}