<commit_before>﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Config.cs" company="Naos">
//   Copyright 2017 Naos
// </copyright>
// <auto-generated>
//   Sourced from NuGet package. Will be overwritten with package update except in Naos.Recipes source.
// </auto-generated>
// --------------------------------------------------------------------------------------------------------------------

namespace Naos.Recipes.Configuration.Setup
{
    using Its.Configuration;

    using Newtonsoft.Json;

    using Spritely.Recipes;

    /// <summary>
    /// Static class to hold logic to setup configuration.
    /// </summary>
    [System.Diagnostics.DebuggerStepThrough]
    [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
    [System.CodeDom.Compiler.GeneratedCode("Naos.Recipes", "See package version number")]
    internal static partial class Config
    {
        /// <summary>
        /// Common precedence used after the environment specific precedence.
        /// </summary>
        public const string CommonPrecedence = "Common";

        /// <summary>
        /// Set the precedence in Its.Configuration to the supplied environment followed by "Common".
        /// </summary>
        /// <param name="environment">Environment name that matches the configuration folder in ".config".</param>
        public static void SetupForUnitTest(string environment)
        {
            Settings.Reset();

            SetupSerialization();
            Settings.SettingsDirectory = Settings.SettingsDirectory.Replace("\\bin\\Debug", string.Empty);
            Settings.Precedence = new[] { environment, CommonPrecedence };
        }

        /// <summary>
        /// Set up serialization logic for Newtonsoft and Its.Configuration to use when reading settings.
        /// </summary>
        public static void SetupSerialization()
        {
            JsonConvert.DefaultSettings = () => JsonConfiguration.DefaultSerializerSettings;
            Settings.Deserialize = (type, serialized) => DefaultJsonSerializer.DeserializeObject(serialized, type);
        }
    }
}<commit_msg>Removed JsonConvert.DefaultSettings override<commit_after>﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Config.cs" company="Naos">
//   Copyright 2017 Naos
// </copyright>
// <auto-generated>
//   Sourced from NuGet package. Will be overwritten with package update except in Naos.Recipes source.
// </auto-generated>
// --------------------------------------------------------------------------------------------------------------------

namespace Naos.Recipes.Configuration.Setup
{
    using Its.Configuration;

    using Newtonsoft.Json;

    using Spritely.Recipes;

    /// <summary>
    /// Static class to hold logic to setup configuration.
    /// </summary>
    [System.Diagnostics.DebuggerStepThrough]
    [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
    [System.CodeDom.Compiler.GeneratedCode("Naos.Recipes", "See package version number")]
    internal static partial class Config
    {
        /// <summary>
        /// Common precedence used after the environment specific precedence.
        /// </summary>
        public const string CommonPrecedence = "Common";

        /// <summary>
        /// Set the precedence in Its.Configuration to the supplied environment followed by "Common".
        /// </summary>
        /// <param name="environment">Environment name that matches the configuration folder in ".config".</param>
        public static void SetupForUnitTest(string environment)
        {
            Settings.Reset();

            SetupSerialization();
            Settings.SettingsDirectory = Settings.SettingsDirectory.Replace("\\bin\\Debug", string.Empty);
            Settings.Precedence = new[] { environment, CommonPrecedence };
        }

        /// <summary>
        /// Set up serialization logic for Newtonsoft and Its.Configuration to use when reading settings.
        /// </summary>
        public static void SetupSerialization()
        {
            Settings.Deserialize = (type, serialized) => DefaultJsonSerializer.DeserializeObject(serialized, type);
        }
    }
}
{'fraction_non_alphanumeric': 0.20738504412447747, 'fraction_numerical': 0.0018578727357176034, 'mean_word_length': 1.8022121014964216, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 34, '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': '1466258', 'n_tokens_mistral': 953, 'n_tokens_neox': 927, 'n_words': 266}