<commit_before><?php

return [
    // Storage engines
    'storage.database' => [
        'shared' => true,
        'class' => 'Perfumer\\Component\\Container\\Storage\\DatabaseStorage'
    ],

    // Requesting
    'proxy' => [
        'shared' => true,
        'class' => 'Perfumer\\Framework\\Proxy\\Proxy',
        'arguments' => ['container']
    ],

    // Framework bundle default routers
    'framework.internal_router' => [
        'shared' => true,
        'class' => 'Perfumer\\Framework\\InternalRouter\\DirectoryRouter',
        'arguments' => [[
            'prefix' => 'Perfumer\\FrameworkPackage\\Controller',
            'suffix' => 'Controller'
        ]]
    ],
<commit_msg>Requesting, view, session, cache default definitions<commit_after><?php

return [
    // Storage engines
    'storage.database' => [
        'shared' => true,
        'class' => 'Perfumer\\Component\\Container\\Storage\\DatabaseStorage'
    ],

    // Requesting
    'bundle.http_router' => [
        'shared' => true,
        'class' => 'Perfumer\\Framework\\BundleRouter\\HttpRouter'
    ],

    'bundle.console_router' => [
        'shared' => true,
        'class' => 'Perfumer\\Framework\\BundleRouter\\ConsoleRouter'
    ],

    'proxy' => [
        'shared' => true,
        'class' => 'Perfumer\\Framework\\Proxy\\Proxy',
        'arguments' => ['container']
    ],

    // View
    'view.template' => [
        'class' => 'Perfumer\\Framework\\View\\TemplateView',
        'arguments' => ['#twig', '#bundler']
    ],

    'view.serialize' => [
        'class' => 'Perfumer\\Framework\\View\\SerializeView',
        'arguments' => ['json']
    ],

    // Twig
    'twig' => [
        'shared' => true,
        'class' => 'Twig_Environment',
        'arguments' => ['#twig.filesystem_loader']
    ],

    'twig.filesystem_loader' => [
        'shared' => true,
        'class' => 'Twig_Loader_Filesystem'
    ],

    'twig.framework_extension' => [
        'class' => 'Perfumer\\Framework\\View\\TwigExtension\\FrameworkExtension',
        'arguments' => ['container']
    ],

    'twig.http_router_extension' => [
        'class' => 'Perfumer\\Framework\\View\\TwigExtension\\HttpRouterExtension',
        'arguments' => ['container']
    ],

    'twig.console_router_extension' => [
        'class' => 'Perfumer\\Framework\\View\\TwigExtension\\ConsoleRouterExtension',
        'arguments' => ['container']
    ],

    // Session
    'session' => [
        'shared' => true,
        'class' => 'Perfumer\\Component\\Session\\Pool',
        'arguments' => ['#cache.memcache']
    ],

    'cookie' => [
        'shared' => true,
        'class' => 'Perfumer\\Component\\Session\\Cookie'
    ],

    // Cache
    'cache.file' => [
        'shared' => true,
        'class' => 'Stash\\Pool',
        'arguments' => ['#cache.file_driver']
    ],

    'cache.file_driver' => [
        'shared' => true,
        'class' => 'Stash\\Driver\\FileSystem',
        'after' => function(\Perfumer\Component\Container\Container $container, \Stash\Driver\FileSystem $driver) {
            $driver->setOptions();
        }
    ],

    'cache.memcache' => [
        'shared' => true,
        'class' => 'Stash\\Pool',
        'arguments' => ['#cache.memcache_driver']
    ],

    'cache.memcache_driver' => [
        'shared' => true,
        'class' => 'Stash\\Driver\\Memcache',
        'after' => function(\Perfumer\Component\Container\Container $container, \Stash\Driver\Memcache $driver) {
            $driver->setOptions();
        }
    ],

    'cache.ephemeral' => [
        'shared' => true,
        'class' => 'Stash\\Pool',
        'arguments' => ['#cache.ephemeral_driver']
    ],

    'cache.ephemeral_driver' => [
        'shared' => true,
        'class' => 'Stash\\Driver\\Ephemeral'
    ],

    // Translator
    'translator' => [
        'shared' => true,
        'class' => 'Perfumer\\Component\\Translator\\Core',
        'arguments' => ['#cache', [
            'locale' => 'ru'
        ]]
    ],

    // Validation
    'validation' => [
        'class' => 'Perfumer\\Component\\Validation\\Core',
        'arguments' => ['#translator']
    ],

    // Framework bundle default routers
    'framework.internal_router' => [
        'shared' => true,
        'class' => 'Perfumer\\Framework\\InternalRouter\\DirectoryRouter',
        'arguments' => [[
            'prefix' => 'Perfumer\\FrameworkPackage\\Controller',
            'suffix' => 'Controller'
        ]]
    ],

{'fraction_non_alphanumeric': 0.19244523915958872, 'fraction_numerical': 0.0, 'mean_word_length': 2.073489010989011, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 97, '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': '6337567', 'n_tokens_mistral': 1380, 'n_tokens_neox': 1363, 'n_words': 195}