<commit_before><?php

/*
 * This file is part of the Valkyrja framework.
 *
 * (c) <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/*
 *---------------------------------------------------------------------
 * Application Environment Variables
 *---------------------------------------------------------------------
 *
 * Configuration variables are a great way to modify the application
 * and how it runs to your specific needs.
 *
 */

$envClassName = class_exists(config\Env::class)
    ? config\Env::class
    : Valkyrja\Config\Env::class;

/*
 *-------------------------------------------------------------------------
 * Start Up The Application
 *-------------------------------------------------------------------------
 *
 * Let's start up the application by creating a new instance of the
 * application class. This is going to bind all the various
 * components together into a singular hub.
 *
 */

$app = new Valkyrja\Application(
    realpath(__DIR__ . '/../')
);

/*
 *---------------------------------------------------------------------
 * Application Service Container : Dependency Injection
 *---------------------------------------------------------------------
 *
 * Adding more instances to the service container is a great way to
 * ensure your application is setup for ease of change in the
 * future.
 *
 */

require_once 'container.php';

/*
 *---------------------------------------------------------------------
 * Application Configuration Variables
 *---------------------------------------------------------------------
 *
 * Configuration variables are a great way to modify the application
 * and how it runs to your specific needs.
 *
 */

$app->container()->instance(
    Valkyrja\Contracts\Config\Env::class,
    new config\Env
);

$app->container()->instance(
    Valkyrja\Contracts\Config\Config::class,
    function () use ($app) {
        return new \config\Config(
            $app->container()->get(\Valkyrja\Contracts\Application::class)
        );<commit_msg>Fixing bug.<commit_after><?php

/*
 * This file is part of the Valkyrja framework.
 *
 * (c) <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/*
 *---------------------------------------------------------------------
 * Application Environment Variables
 *---------------------------------------------------------------------
 *
 * Configuration variables are a great way to modify the application
 * and how it runs to your specific needs.
 *
 */

$envClassName = class_exists(config\Env::class)
    ? config\Env::class
    : Valkyrja\Config\Env::class;

/*
 *-------------------------------------------------------------------------
 * Start Up The Application
 *-------------------------------------------------------------------------
 *
 * Let's start up the application by creating a new instance of the
 * application class. This is going to bind all the various
 * components together into a singular hub.
 *
 */

$app = new Valkyrja\Application(
    realpath(__DIR__ . '/../')
);

/*
 *---------------------------------------------------------------------
 * Application Service Container : Dependency Injection
 *---------------------------------------------------------------------
 *
 * Adding more instances to the service container is a great way to
 * ensure your application is setup for ease of change in the
 * future.
 *
 */

require_once 'container.php';

/*
 *---------------------------------------------------------------------
 * Application Configuration Variables
 *---------------------------------------------------------------------
 *
 * Configuration variables are a great way to modify the application
 * and how it runs to your specific needs.
 *
 */

$app->container()->instance(
    Valkyrja\Contracts\Config\Env::class,
    new config\Env
);

$app->container()->instance(
    Valkyrja\Contracts\Config\Config::class,
    function () use ($app) {
        return new \config\Config(
            $app->container()->get(Valkyrja\Contracts\Application::class)
        );
{'fraction_non_alphanumeric': 0.34693390598902407, 'fraction_numerical': 0.0, 'mean_word_length': 1.261057173678533, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, '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': '302234', 'n_tokens_mistral': 891, 'n_tokens_neox': 882, 'n_words': 313}