<commit_before>﻿using System;

using Abp.Configuration.Startup;
using Abp.Dependency;

using DBreeze;

using DynamicTranslator.DbReeze.DBReezeNoSQL.Configuration;
using DynamicTranslator.Extensions;

namespace DynamicTranslator.DbReeze.Configuration.Startup
{
    public static class DbReezeConfigurationExtensions
    {
        public static IDbReezeModuleConfiguration UseDbReeze(this IModuleConfigurations configurations)
        {
            return configurations.AbpConfiguration.GetOrCreate("Modules.DynamicTranslator.DbReeze", () => configurations.AbpConfiguration.IocManager.Resolve<IDbReezeModuleConfiguration>());
        }

        public static void WithConfiguration(this IDbReezeModuleConfiguration dbReezeModuleConfiguration, Action<IDbReezeModuleConfiguration> configuration)
        {
            configuration(dbReezeModuleConfiguration);
            IocManager.Instance.Register<DBreezeEngine>(new DBreezeEngine(dbReezeModuleConfiguration.Configuration));
        }
    }
}<commit_msg>liteDb implementation<commit_after>﻿using System;

using Abp.Configuration.Startup;
using Abp.Dependency;

using DBreeze;

using DynamicTranslator.DbReeze.DBReezeNoSQL.Configuration;
using DynamicTranslator.Extensions;

namespace DynamicTranslator.DbReeze.Configuration.Startup
{
    public static class DbReezeConfigurationExtensions
    {
        public static IDbReezeModuleConfiguration UseDbReeze(this IModuleConfigurations configurations)
        {
            return configurations.AbpConfiguration.Get<IDbReezeModuleConfiguration>();
        }

        public static void WithConfiguration(this IDbReezeModuleConfiguration dbReezeModuleConfiguration, Action<IDbReezeModuleConfiguration> configuration)
        {
            configuration(dbReezeModuleConfiguration);
            IocManager.Instance.Register<DBreezeEngine>(new DBreezeEngine(dbReezeModuleConfiguration.Configuration));
        }
    }
}
{'fraction_non_alphanumeric': 0.06475195822454308, 'fraction_numerical': 0.0, 'mean_word_length': 4.806060606060606, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '4445593', 'n_tokens_mistral': 492, 'n_tokens_neox': 506, 'n_words': 76}