<commit_before>using System;
using Castle.Core.Logging;
using System.Reflection;
using TestStack.Seleno.Configuration.Contracts;
using TestStack.Seleno.Configuration.Screenshots;
using TestStack.Seleno.Configuration.WebServers;
using OpenQA.Selenium;
using TestStack.Seleno.Extensions;
using TestStack.Seleno.PageObjects;
using TestStack.Seleno.PageObjects.Actions;
using Funq;

namespace TestStack.Seleno.Configuration
{
    internal class AppConfigurator : IInternalAppConfigurator
    {
        protected WebApplication WebApplication;
        protected IWebServer WebServer;
        protected Func<Container, ICamera> Camera = c => new NullCamera();
        protected Func<IWebDriver> WebDriver = BrowserFactory.FireFox;
        private ILoggerFactory _loggerFactory = new NullLogFactory();
        protected Assembly[] PageObjectAssemblies;

        public ISelenoApplication CreateApplication()
        {
            _loggerFactory
                .Create(GetType())
                .InfoFormat("Seleno v{0}, .NET Framework v{1}",
                    typeof(SelenoHost).Assembly.GetName().Version, Environment.Version);

            var container = BuildContainer();
            var app = new SelenoApplication(container);

            return app;
        }

        private Container BuildContainer()
        {
            var container = new Container();
            container.Register(c => WebServer ?? new IisExpressWebServer(WebApplication));
            container.Register(c => WebDriver.Invoke());
            container.Register(c => Camera);
            container.Register(c => _loggerFactory);

            container.Register<IElementFinder>(c => new ElementFinder(c.Resolve<IWebDriver>()));
            container.Register<IScriptExecutor>(
                c => new ScriptExecutor(c.Resolve<IWebDriver>(), c.Resolve<IWebDriver>().GetJavaScriptExecutor(),
                                        c.Resolve<IElementFinder>(), c.Resolve<ICamera>()));
            container.Register<IPageNavigator>(<commit_msg>Fixed the problem with resolving the ICamera<commit_after>using System;
using Castle.Core.Logging;
using System.Reflection;
using TestStack.Seleno.Configuration.Contracts;
using TestStack.Seleno.Configuration.Screenshots;
using TestStack.Seleno.Configuration.WebServers;
using OpenQA.Selenium;
using TestStack.Seleno.Extensions;
using TestStack.Seleno.PageObjects;
using TestStack.Seleno.PageObjects.Actions;
using Funq;

namespace TestStack.Seleno.Configuration
{
    internal class AppConfigurator : IInternalAppConfigurator
    {
        protected WebApplication WebApplication;
        protected IWebServer WebServer;
        protected Func<Container, ICamera> Camera = c => new NullCamera();
        protected Func<IWebDriver> WebDriver = BrowserFactory.FireFox;
        private ILoggerFactory _loggerFactory = new NullLogFactory();
        protected Assembly[] PageObjectAssemblies;

        public ISelenoApplication CreateApplication()
        {
            _loggerFactory
                .Create(GetType())
                .InfoFormat("Seleno v{0}, .NET Framework v{1}",
                    typeof(SelenoHost).Assembly.GetName().Version, Environment.Version);

            var container = BuildContainer();
            var app = new SelenoApplication(container);

            return app;
        }

        private Container BuildContainer()
        {
            var container = new Container();
            container.Register(c => WebServer ?? new IisExpressWebServer(WebApplication));
            container.Register(c => WebDriver.Invoke());
            container.Register(Camera);

            container.Register(c => _loggerFactory);

            container.Register<IElementFinder>(c => new ElementFinder(c.Resolve<IWebDriver>()));
            container.Register<IScriptExecutor>(
                c => new ScriptExecutor(c.Resolve<IWebDriver>(), c.Resolve<IWebDriver>().GetJavaScriptExecutor(),
                                        c.Resolve<IElementFinder>(), c.Resolve<ICamera>()));
            container.Register<IPageNavigator>(
{'fraction_non_alphanumeric': 0.09530827806435765, 'fraction_numerical': 0.0009825595676737902, 'mean_word_length': 2.900383141762452, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 36, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4735669', 'n_tokens_mistral': 1034, 'n_tokens_neox': 1000, 'n_words': 208}