<commit_before>﻿using Autofac;
using GSoft.Dynamite.Globalization;
using GSoft.Dynamite.Navigation.Contracts.Configuration;
using GSoft.Dynamite.Navigation.Contracts.Constants;
using GSoft.Dynamite.Navigation.Contracts.Resources;
using GSoft.Dynamite.Navigation.Contracts.Services;
using GSoft.Dynamite.Navigation.Core.Configuration;
using GSoft.Dynamite.Navigation.Core.Services;
using GSoft.Dynamite.Publishing.Contracts.Configuration;

namespace GSoft.Dynamite.Navigation.Core.RegistrationModules
{
    public class NavigationRegistrationModule : Module
    {
        /// <summary>
        /// Registers the modules type bindings
        /// </summary>
        /// <param name="builder">
        /// The container builder.
        /// </param>
        protected override void Load(ContainerBuilder builder)
        {
            // Resource Locator
            builder.RegisterType<NavigationResourceLocatorConfig>().As<IResourceLocatorConfig>();

            // Term Driven Pages
            builder.RegisterType<NavigationTermDrivenPageSettingsInfoConfig>().As<INavigationTermDrivenpageSettingsInfoConfig>();

            // Content Type Base Override
            builder.RegisterType<NavigationContentTypeInfoConfig>().As<INavigationContentTypeInfoConfig>();

            // Fields Base Override
            builder.RegisterType<NavigationFieldInfoConfig>().As<INavigationFieldInfoConfig>();

            // Event Receivers
            builder.RegisterType<NavigationEventReceiverInfoConfig>().As<INavigationEventReceiverInfoConfig>();

            // Result Sources
            builder.RegisterType<NavigationResultSourceInfoConfig>().As<INavigationResultSourceInfoConfig>();

            // Catalog Connections
            builder.RegisterType<NavigationCatalogConnectionInfoConfig>().As<INavigationCatalogConnectionInfoConfig>();

            // Managed Properties
            builder.RegisterType<NavigationManagedPropertyConfig>().As<IGlobalManagedPropertyInfosConfig>();
            builder.RegisterType<NavigationManagedPropertyConfig>().Named<IGlobalManagedPropertyInfosConfig>("navigation");

            // Managed Navigation
            builder.RegisterType<NavigationManagedNavigationInfoConfig>().As<INavigationManagedNavigationInfoConfig>();

            // Configuration Values
            builder.RegisterType<NavigationTermDrivenPageSettingsInfos>();
            builder.RegisterType<NavigationFieldInfos>();
            builder.RegisterType<NavigationEventReceiverInfos>();
            builder.RegisterType<NavigationResultSourceInfos>();
            builder.RegisterType<NavigationCatalogConnectionInfos>();
            builder.RegisterType<NavigationTermGroupInfos>();
            builder.RegisterType<NavigationTermSetInfos>();
            builder.RegisterType<NavigationManagedPropertyInfos>();
            builder.RegisterType<NavigationManagedNavigationInfos>(); 

            // Slug Builder Service
            builder.RegisterType<SlugBuilderService>().As<ISlugBuilderService>();
        }<commit_msg>[Navigation] Named register in navigation module.<commit_after>﻿    using Autofac;
using GSoft.Dynamite.Globalization;
using GSoft.Dynamite.Navigation.Contracts.Configuration;
using GSoft.Dynamite.Navigation.Contracts.Constants;
using GSoft.Dynamite.Navigation.Contracts.Resources;
using GSoft.Dynamite.Navigation.Contracts.Services;
using GSoft.Dynamite.Navigation.Core.Configuration;
using GSoft.Dynamite.Navigation.Core.Services;
using GSoft.Dynamite.Publishing.Contracts.Configuration;

namespace GSoft.Dynamite.Navigation.Core.RegistrationModules
{
    public class NavigationRegistrationModule : Module
    {
        /// <summary>
        /// Registers the modules type bindings
        /// </summary>
        /// <param name="builder">
        /// The container builder.
        /// </param>
        protected override void Load(ContainerBuilder builder)
        {
            // Resource Locator
            builder.RegisterType<NavigationResourceLocatorConfig>().As<IResourceLocatorConfig>();

            // Term Driven Pages
            builder.RegisterType<NavigationTermDrivenPageSettingsInfoConfig>().As<INavigationTermDrivenpageSettingsInfoConfig>();

            // Content Types
            builder.RegisterType<NavigationContentTypeInfoConfig>().As<INavigationContentTypeInfoConfig>();
            builder.RegisterType<NavigationContentTypeInfoConfig>().Named<INavigationContentTypeInfoConfig>("navigation");

            // Fields
            builder.RegisterType<NavigationFieldInfoConfig>().As<INavigationFieldInfoConfig>();
            builder.RegisterType<NavigationFieldInfoConfig>().Named<INavigationFieldInfoConfig>("navigation");

            // Event Receivers
            builder.RegisterType<NavigationEventReceiverInfoConfig>().As<INavigationEventReceiverInfoConfig>();

            // Result Sources
            builder.RegisterType<NavigationResultSourceInfoConfig>().As<INavigationResultSourceInfoConfig>();

            // Catalog Connections
            builder.RegisterType<NavigationCatalogConnectionInfoConfig>().As<INavigationCatalogConnectionInfoConfig>();

            // Managed Properties
            builder.RegisterType<NavigationManagedPropertyConfig>().As<IGlobalManagedPropertyInfosConfig>();
            builder.RegisterType<NavigationManagedPropertyConfig>().Named<IGlobalManagedPropertyInfosConfig>("navigation");

            // Managed Navigation
            builder.RegisterType<NavigationManagedNavigationInfoConfig>().As<INavigationManagedNavigationInfoConfig>();

            // Configuration Values
            builder.RegisterType<NavigationTermDrivenPageSettingsInfos>();
            builder.RegisterType<NavigationFieldInfos>();
            builder.RegisterType<NavigationEventReceiverInfos>();
            builder.RegisterType<NavigationResultSourceInfos>();
            builder.RegisterType<NavigationCatalogConnectionInfos>();
            builder.RegisterType<NavigationTermGroupInfos>();
            builder.RegisterType<NavigationTermSetInfos>();
            builder.RegisterType<NavigationManagedPropertyInfos>();
            builder.RegisterType<NavigationManagedNavigationInfos>(); 

            // Slug Builder Service
            builder.RegisterType<SlugBuilderService>().As<ISlugBuilderService>();
        }
{'fraction_non_alphanumeric': 0.0948535233570863, 'fraction_numerical': 0.0, 'mean_word_length': 3.5082084225553176, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, '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': '3877361', 'n_tokens_mistral': 1450, 'n_tokens_neox': 1433, 'n_words': 182}