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

namespace Jasily.Frameworks.Cli.IO
{
    internal class ConsoleOutput : IOutput
    {
        private void SetColor(OutputLevel level)
        {
            switch (level)
            {
                case OutputLevel.Normal:
                    Console.ResetColor();
                    break;

                case OutputLevel.Error:
                    Console.ForegroundColor = ConsoleColor.Red;
                    break;

                default:
                    break;
            }
        }

        public void Write(OutputLevel level, string value)
        {
            this.SetColor(level);
            Console.Write(value);
        }

        public void WriteLine(OutputLevel level, string value)
        {
            this.SetColor(level);
            Console.WriteLine(value);
        }
    }
}
<commit_msg>update console to new interface.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jasily.Frameworks.Cli.IO
{
    internal class ConsoleOutput : IOutput
    {
        private void SetColor(OutputLevel level)
        {
            switch (level)
            {
                case OutputLevel.Normal:
                    Console.ResetColor();
                    break;

                case OutputLevel.Error:
                    Console.ForegroundColor = ConsoleColor.Red;
                    break;

                case OutputLevel.Usage:
                    Console.ForegroundColor = ConsoleColor.Yellow;
                    break;

                default:
                    break;
            }
        }

        public void Write(OutputLevel level, string value)
        {
            this.SetColor(level);
            Console.Write(value);
        }

        public void WriteLine(OutputLevel level, string value)
        {
            this.SetColor(level);
            Console.WriteLine(value);
        }
    }
}

{'fraction_non_alphanumeric': 0.0741097208854668, 'fraction_numerical': 0.0, 'mean_word_length': 1.3732876712328768, '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': '2364419', 'n_tokens_mistral': 515, 'n_tokens_neox': 488, 'n_words': 107}