<commit_before>﻿using Gorilla.Mailer.Interfaces;
using System;
using System.Configuration;
using System.IO;
using System.Threading.Tasks;

namespace Gorilla.Mailer
{
    /// <summary>
    /// Mailer for developmento purpose
    /// </summary>
    public class DevelopmentMailer : IMailer
    {
        public async Task<string> Send(IMessage message)
        {
            System.Diagnostics.Debug.WriteLine("Email Message : ");
            System.Diagnostics.Debug.WriteLine(message.ToString());

            var outputPath = ConfigurationManager.AppSettings["Gorilla.Mailer.DevelopmentOutputPath"];

            if (!string.IsNullOrWhiteSpace(outputPath))
            {
                if (!Directory.Exists(outputPath))
                {
                    Directory.CreateDirectory(outputPath);
                }

                var fileName = Path.Combine(outputPath, Guid.NewGuid() + ".htm");
                File.WriteAllText(fileName, message.Body);

                System.Diagnostics.Process.Start(fileName);
            }

            return Guid.NewGuid().ToString();
        }
    }
}<commit_msg>mailer updated<commit_after>﻿using Gorilla.Mailer.Interfaces;
using System;
using System.Configuration;
using System.IO;
using System.Threading.Tasks;

namespace Gorilla.Mailer
{
    /// <summary>
    /// Mailer for developmento purpose
    /// </summary>
    public class DevelopmentMailer : IMailer
    {
        public async Task<string> Send(IMessage message)
        {
            System.Diagnostics.Debug.WriteLine("Email Message : ");
            System.Diagnostics.Debug.WriteLine(message.ToString());

            var outputPath = ConfigurationManager.AppSettings["Gorilla.Mailer.DevelopmentOutputPath"];

            if (!string.IsNullOrWhiteSpace(outputPath))
            {
                if (!Directory.Exists(outputPath))
                {
                    Directory.CreateDirectory(outputPath);
                }

                var fileName = Path.Combine(outputPath, DateTime.Now.ToString("yyyyMMddhhmmss-") + (new Random().Next(1, int.MaxValue)) + ".htm");
                File.WriteAllText(fileName, message.Body);

                System.Diagnostics.Process.Start(fileName);
            }

            return Guid.NewGuid().ToString();
        }
    }
}
{'fraction_non_alphanumeric': 0.11101398601398602, 'fraction_numerical': 0.00043706293706293706, 'mean_word_length': 2.1356164383561644, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3274384', 'n_tokens_mistral': 602, 'n_tokens_neox': 578, 'n_words': 100}