<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FluentConsole.Library
{
    /// <summary>
    /// Fluent interface for console applications
    /// </summary>
    public static class Extensions
    {
        /// <summary>
        /// Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
        /// </summary>
        /// <param name="value">The value to write.</param>
        /// <param name="lineBreaks">The number of *additional* line breaks to include after the specified value.</param>
        public static void WriteLine(this object value, int lineBreaks = 0)
        {
            Console.WriteLine(value);

            for (var i = 1; i < lineBreaks; i++)
                Console.WriteLine();
        }

        /// <summary>
        /// Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
        /// </summary>
        /// <param name="value">The value to write.</param>
        /// <param name="lineBreaks">The number of *additional* line breaks to include after the specified value.</param>
        /// <returns>The key entered while waiting.</returns>
        public static ConsoleKeyInfo WriteLineWait(this object value, int lineBreaks = 0)
        {
            Console.WriteLine(value);

            for (var i = 1; i < lineBreaks; i++)
                Console.WriteLine();

            return Console.ReadKey();
        }

        /// <summary>
        /// Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
        /// </summary>
        /// <param name="value">The value to write.</param>
        /// <param name="color">The color of the text displayed.</param>
        /// <param name="lineBreaks">The number of *additional* line breaks to include after the specified value.</param>
        public static void WriteLine(this object value, ConsoleColor color, int lineBreaks = 0)
        {
            Console.ForegroundColor = color;
            Console.WriteLine(value);
            Console.ResetColor();

            for (var i = 1; i < lineBreaks; i++)
                Console.WriteLine();
        }

        /// <summary>
        /// Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
        /// </summary>
        /// <param name="value">The value to write.</param>
        /// <param name="color">The color of the text displayed.</param>
        /// <param name="lineBreaks">The number of *additional* line breaks to include after the specified value.</param>
        /// <returns>The key entered while waiting.</returns>
        public static void WriteLineWait(this object value, ConsoleColor color, int lineBreaks = 0)
        {
            Console.ForegroundColor = color;
            Console.WriteLine(value);
            Console.ResetColor();

            for (var i = 1; i < lineBreaks; i++)
                Console.WriteLine();

            Console.ReadKey();
        }<commit_msg>Add static using reference to Console<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;

namespace FluentConsole.Library
{
    /// <summary>
    /// Fluent interface for console applications
    /// </summary>
    public static class Extensions
    {
        /// <summary>
        /// Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
        /// </summary>
        /// <param name="value">The value to write.</param>
        /// <param name="lineBreaks">The number of *additional* line breaks to include after the specified value.</param>
        public static void WriteLine(this object value, int lineBreaks = 0)
        {
            Console.WriteLine(value);

            for (var i = 1; i < lineBreaks; i++)
                Console.WriteLine();
        }

        /// <summary>
        /// Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
        /// </summary>
        /// <param name="value">The value to write.</param>
        /// <param name="lineBreaks">The number of *additional* line breaks to include after the specified value.</param>
        /// <returns>The key entered while waiting.</returns>
        public static ConsoleKeyInfo WriteLineWait(this object value, int lineBreaks = 0)
        {
            Console.WriteLine(value);

            for (var i = 1; i < lineBreaks; i++)
                Console.WriteLine();

            return ReadKey();
        }

        /// <summary>
        /// Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
        /// </summary>
        /// <param name="value">The value to write.</param>
        /// <param name="color">The color of the text displayed.</param>
        /// <param name="lineBreaks">The number of *additional* line breaks to include after the specified value.</param>
        public static void WriteLine(this object value, ConsoleColor color, int lineBreaks = 0)
        {
            ForegroundColor = color;
            Console.WriteLine(value);
            ResetColor();

            for (var i = 1; i < lineBreaks; i++)
                Console.WriteLine();
        }

        /// <summary>
        /// Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
        /// </summary>
        /// <param name="value">The value to write.</param>
        /// <param name="color">The color of the text displayed.</param>
        /// <param name="lineBreaks">The number of *additional* line breaks to include after the specified value.</param>
        /// <returns>The key entered while waiting.</returns>
        public static void WriteLineWait(this object value, ConsoleColor color, int lineBreaks = 0)
        {
            ForegroundColor = color;
            Console.WriteLine(value);
            ResetColor();

            for (var i = 1; i < lineBreaks; i++)
                Console.WriteLine();

            ReadKey();
        }
{'fraction_non_alphanumeric': 0.11040668006803774, 'fraction_numerical': 0.0024740992732333383, 'mean_word_length': 2.1489776046738074, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 71, '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': '211901', 'n_tokens_mistral': 1582, 'n_tokens_neox': 1534, 'n_words': 587}