<commit_before>﻿namespace King.Azure.Imaging.Integration.Test
{
    using NUnit.Framework;
    using System.Configuration;
    using System.Diagnostics;

    [SetUpFixture]
    public class Initialization
    {
        [SetUp]
        public static void SetUp()
        {
            var emulator = ConfigurationManager.AppSettings["AzureEmulator"];

            using (var process = new Process())
            {
                process.StartInfo = CreateProcessStartInfo(emulator, "start");
                process.Start();

                process.WaitForExit();
            }
        }

        private static ProcessStartInfo CreateProcessStartInfo(string fileName, string arguments)
        {
            return new ProcessStartInfo(fileName, arguments)
            {
                UseShellExecute = false,
                ErrorDialog = false,
                CreateNoWindow = true,
                RedirectStandardError = true,
                RedirectStandardOutput = true,
            };
        }
    }
}<commit_msg>Tear Down<commit_after>﻿namespace King.Azure.Imaging.Integration.Test
{
    using NUnit.Framework;
    using System.Configuration;
    using System.Diagnostics;

    [SetUpFixture]
    public class Initialization
    {
        [SetUp]
        public static void SetUp()
        {
            var emulator = ConfigurationManager.AppSettings["AzureEmulator"];

            using (var process = new Process())
            {
                process.StartInfo = CreateProcessStartInfo(emulator, "start");
                process.Start();

                process.WaitForExit();
            }
        }

        [TearDown]
        public static void TearDown()
        {
            var emulator = ConfigurationManager.AppSettings["AzureEmulator"];

            using (var process = new Process())
            {
                process.StartInfo = CreateProcessStartInfo(emulator, "clear");
                process.Start();

                process.WaitForExit();
            }
        }

        private static ProcessStartInfo CreateProcessStartInfo(string fileName, string arguments)
        {
            return new ProcessStartInfo(fileName, arguments)
            {
                UseShellExecute = false,
                ErrorDialog = false,
                CreateNoWindow = true,
                RedirectStandardError = true,
                RedirectStandardOutput = true,
            };
        }
    }
}
{'fraction_non_alphanumeric': 0.07802874743326489, 'fraction_numerical': 0.0, 'mean_word_length': 1.6363636363636365, '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': '5446411', 'n_tokens_mistral': 587, 'n_tokens_neox': 557, 'n_words': 121}