<commit_before>﻿namespace ServiceBase.Plugins
{
    using Microsoft.AspNetCore.Mvc;
    using Microsoft.AspNetCore.Mvc.Razor;
    using Microsoft.CodeAnalysis;
    using Microsoft.Extensions.DependencyInjection;
    using Microsoft.Extensions.Logging;
    using ServiceBase.Mvc.Theming;
    using System.Collections.Generic;
    using System.Linq;
    using System.Reflection;

    public static partial class IServiceCollectionExtensions
    {
        public static void AddPluginsMvc(
            this IServiceCollection services,
            string viewsBasePath)
        {
            services.AddPluginsMvc(
                new CustomViewLocationExpander(viewsBasePath));
        }

        public static void AddPluginsMvc(
            this IServiceCollection services,
            IThemeInfoProvider themeInfoProvider)
        {
            services.AddPluginsMvc(
                new ThemeViewLocationExpander(themeInfoProvider));
        }

        public static void AddPluginsMvc(
            this IServiceCollection services,
            IViewLocationExpander viewLocationExpander = null)
        {
            ServiceProvider serviceProvider =<commit_msg>Added basepath argument<commit_after>﻿namespace ServiceBase.Plugins
{
    using Microsoft.AspNetCore.Mvc;
    using Microsoft.AspNetCore.Mvc.Razor;
    using Microsoft.CodeAnalysis;
    using Microsoft.Extensions.DependencyInjection;
    using Microsoft.Extensions.Logging;
    using ServiceBase.Mvc.Theming;
    using System.Collections.Generic;
    using System.Linq;
    using System.Reflection;

    public static partial class IServiceCollectionExtensions
    {
        public static void AddPluginsMvc(
            this IServiceCollection services,
            string viewsBasePath)
        {
            services.AddPluginsMvc(
                new CustomViewLocationExpander(viewsBasePath));
        }

        public static void AddPluginsMvc(
            this IServiceCollection services,
            IThemeInfoProvider themeInfoProvider,
            string basePath)
        {   
            services.AddPluginsMvc(
                new ThemeViewLocationExpander(themeInfoProvider, basePath));
        }

        public static void AddPluginsMvc(
            this IServiceCollection services,
            IViewLocationExpander viewLocationExpander = null)
        {
            ServiceProvider serviceProvider =
{'fraction_non_alphanumeric': 0.05108877721943048, 'fraction_numerical': 0.0, 'mean_word_length': 2.4177396280400574, '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': '3106830', 'n_tokens_mistral': 552, 'n_tokens_neox': 571, 'n_words': 127}