<commit_before><?php
namespace Bolt\Configuration;

use Bolt\Application;

/**
 * Left as a blank extension of ResourceManager for now, this semantically represents a default configuration
 * for a Bolt application.
 */
class Standard extends ResourceManager
{

    public function __construct($loader)
    {
        if ($loader instanceof \Pimple) {
            $container = $loader;
        } else {
            $container = new \Pimple();
            $container['rootpath'] = $loader;
        }

        parent::__construct($container);
    }
}<commit_msg>DI factoring goes standard config constructor<commit_after><?php
namespace Bolt\Configuration;

use Bolt\Application;
use Eloquent\Pathogen\FileSystem\Factory\PlatformFileSystemPathFactory;
use Composer\Autoload\ClassLoader;

/**
 * Left as a blank extension of ResourceManager for now, this semantically represents a default configuration
 * for a Bolt application.
 */
class Standard extends ResourceManager
{

    public function __construct($loader)
    {
        $container = new \Pimple();

        if ($loader instanceof ClassLoader) {
            $container['classloader'] = $loader;
        } else {
            $container['rootpath'] = $loader;
        }

        $container['pathmanager'] = new PlatformFileSystemPathFactory();

        parent::__construct($container);
    }
}
{'fraction_non_alphanumeric': 0.09948032665181886, 'fraction_numerical': 0.0, 'mean_word_length': 3.0972644376899696, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6694714', 'n_tokens_mistral': 350, 'n_tokens_neox': 338, 'n_words': 100}