<commit_before>using System;
using System.Configuration;
using System.Runtime.CompilerServices;
using dotMailify.Core.Abstractions.Config;

namespace dotMailify.Core.Config
{
    public class DefaultEmailProviderSettings : IEmailProviderSettings
    {
        public virtual bool DisableDelivery => GetFromAppSettings(true);

        protected static string GetFromAppSettings(string @default = null, string prefix = "", [CallerMemberName] string memberName = "")
        {
            return GetAppSetting(memberName, @default, prefix);
        }

        protected static T GetFromAppSettings<T>(T @default = default(T), string prefix = "", 
            [CallerMemberName] string memberName = "")
        {
            return GetAppSetting(memberName, @default, prefix);
        }

        protected static T GetAppSetting<T>(string key, T @default = default(T), string prefix = "")
        {
            var keyToRead = string.IsNullOrWhiteSpace(prefix) ? key : $"{prefix}{key}";
            var value = ConfigurationManager.AppSettings.Get(keyToRead);
            if (string.IsNullOrWhiteSpace(value))
            {
                return @default;
            }
            return (T)Convert.ChangeType(value, typeof(T));
        }
    }
}<commit_msg>adjusts prefx setting for default configuration<commit_after>using System;
using System.Configuration;
using System.Runtime.CompilerServices;
using dotMailify.Core.Abstractions;
using dotMailify.Core.Abstractions.Config;

namespace dotMailify.Core.Config
{
    public class DefaultEmailProviderSettings : IEmailProviderSettings
    {
        public virtual bool DisableDelivery => GetFromAppSettings(true);

        protected static string GetFromAppSettings(string @default = null, string prefix = Constants.Settings.SettingsPrefix, [CallerMemberName] string memberName = "")
        {
            return GetAppSetting(memberName, @default, prefix);
        }

        protected static T GetFromAppSettings<T>(T @default = default(T), string prefix = Constants.Settings.SettingsPrefix, 
            [CallerMemberName] string memberName = "")
        {
            return GetAppSetting(memberName, @default, prefix);
        }

        protected static T GetAppSetting<T>(string key, T @default = default(T), string prefix = Constants.Settings.SettingsPrefix)
        {
            var keyToRead = string.IsNullOrWhiteSpace(prefix) ? key : $"{prefix}{key}";
            var value = ConfigurationManager.AppSettings.Get(keyToRead);
            if (string.IsNullOrWhiteSpace(value))
            {
                return @default;
            }
            return (T)Convert.ChangeType(value, typeof(T));
        }
    }
}
{'fraction_non_alphanumeric': 0.09532710280373832, 'fraction_numerical': 0.0, 'mean_word_length': 2.867052023121387, 'pattern_counts': {'":': 0, '<': 7, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3017057', 'n_tokens_mistral': 687, 'n_tokens_neox': 679, 'n_words': 158}