<commit_before>using System.Linq;
using Glimpse.Web;
using Microsoft.AspNet.Builder;
using Microsoft.Framework.DependencyInjection;

namespace Glimpse.Agent.Web
{
    public static class GlimpseAgentWebExtension
    {
        public static IApplicationBuilder UseGlimpseAgent(this IApplicationBuilder app)
        {
            var startups = app.ApplicationServices.GetRequiredService<IExtensionProvider<IAgentStartup>>();
            if (startups.Instances.Any())
            {
                var options = new StartupOptions(app);
                foreach (var startup in startups.Instances)
                {
                    startup.Run(options);
                }
            }

            return app.UseMiddleware<GlimpseAgentWebMiddleware>(app);
        }
    }
}<commit_msg>Change over usage of IAgentStartup to use IAgentStartupManager instead<commit_after>using System.Linq;
using Glimpse.Web;
using Microsoft.AspNet.Builder;
using Microsoft.Framework.DependencyInjection;

namespace Glimpse.Agent.Web
{
    public static class GlimpseAgentWebExtension
    {
        public static IApplicationBuilder UseGlimpseAgent(this IApplicationBuilder app)
        {
            var manager = app.ApplicationServices.GetRequiredService<IAgentStartupManager>();
            manager.Run(new StartupOptions(app));

            return app.UseMiddleware<GlimpseAgentWebMiddleware>(app);
        }
    }
}
{'fraction_non_alphanumeric': 0.07336182336182336, 'fraction_numerical': 0.0, 'mean_word_length': 2.766756032171582, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '3307682', 'n_tokens_mistral': 362, 'n_tokens_neox': 370, 'n_words': 72}