<commit_before><?php
/**
 *
 */

use Mvc5\Plugin\Config;
use Mvc5\Plugin\Dependency;
use Mvc5\Plugin\Hydrator;
use Mvc5\Plugin\Link;
use Mvc5\Plugin\Param;
use Mvc5\Plugin\Plugin;
use Mvc5\Plugin\Response;
use Mvc5\Plugin\Service;

return [
    'config'                     => new Config,
    'container'                  => new Mvc5\Config,
    'controller\exception'       => new Response('controller\exception'),
    'error\handler'              => Mvc5\Route\Error\Handler::class,
    'error\controller'           => new Hydrator(Mvc5\Route\Error\Controller::class, ['setModel' => new Plugin('error\model')]),
    'error\layout'               => Mvc5\View\Template\Layout::class,
    'error\model'                => [Mvc5\Route\Error\Model::class, 'error/error'],
    'error\response'             => 'response\controller',
    'error\route'                => [Mvc5\Route\Error\Create::class, 'error', 'error\controller'],
    'error\status'               => Mvc5\Route\Error\Status::class,
    'error\view'                 => 'view\render',
    'event\model'                => Mvc5\Event::class,
    'exception\controller'       => [Mvc5\Controller\Exception::class, new Plugin('exception\model')],
    'exception\model'            => ['layout', 'error/exception'],
    'exception\response'         => 'response\controller',
    'exception\route'            => [Mvc5\Route\Exception\Create::class, 'exception', 'exception\route\controller'],
    'exception\route\controller' => [Mvc5\Route\Exception\Controller::class, new Plugin('exception\model')],
    'exception\status'           => ['response\status', 500],
    'exception\view'             => 'view\render',
    'factory'                    => new Service(null),
    'layout'                     => [Mvc5\Layout::class, 'layout'],
    'manager'                    => new Plugin(null),
    'mvc'                        => new Plugin(Mvc5\Mvc::class, ['mvc', new Link], [new Dependency('route')]),
    'mvc\controller'             => new Service(Mvc5\Mvc\Controller::class),
    'mvc\error'                  => new Service(Mvc5\Mvc\Error::class),
    'mvc\layout'                 => Mvc5\Mvc\Layout::class,
    'mvc\response'               => Mvc5\Mvc\Response::class,
    'mvc\route'                  => new Service(Mvc5\Mvc\Route::class),
    'mvc\view'                   => new Service(Mvc5\Mvc\View::class),
    'resolver\exception'         => Mvc5\Resolver\Exception::class,
    'resolver\dispatch'          => Mvc5\Resolver\Dispatch::class,
    'response\controller'        => Mvc5\Response\Controller::class,
    'response\dispatch'          => [Mvc5\Response\Dispatch::class, 'response' => new Dependency('response')],
    'response\exception'         => new Response('response\exception', ['response' => new Plugin('response')]),
    'response\send'              => Mvc5\Response\Send::class,
    'response\status'            => Mvc5\Response\Status::class,
    'route\generator'            => new Dependency('route\definition\generator'),
    'route\definition\generator' => Mvc5\Route\Generator::class,
    'route\dispatch'             => Mvc5\Route\Dispatch::class,
    'route\error'                => new Response('route\error'),
    'route\exception'            => new Response('route\exception'),<commit_msg>move middleware config to main config<commit_after><?php
/**
 *
 */

use Mvc5\Plugin\Config;
use Mvc5\Plugin\Dependency;
use Mvc5\Plugin\Hydrator;
use Mvc5\Plugin\Link;
use Mvc5\Plugin\Param;
use Mvc5\Plugin\Plugin;
use Mvc5\Plugin\Response;
use Mvc5\Plugin\Service;

return [
    'config'                     => new Config,
    'container'                  => new Mvc5\Config,
    'controller\exception'       => new Response('controller\exception'),
    'error\handler'              => Mvc5\Route\Error\Handler::class,
    'error\controller'           => new Hydrator(Mvc5\Route\Error\Controller::class, ['setModel' => new Plugin('error\model')]),
    'error\layout'               => Mvc5\View\Template\Layout::class,
    'error\model'                => [Mvc5\Route\Error\Model::class, 'error/error'],
    'error\response'             => 'response\controller',
    'error\route'                => [Mvc5\Route\Error\Create::class, 'error', 'error\controller'],
    'error\status'               => Mvc5\Route\Error\Status::class,
    'error\view'                 => 'view\render',
    'event\model'                => Mvc5\Event::class,
    'exception\controller'       => [Mvc5\Controller\Exception::class, new Plugin('exception\model')],
    'exception\model'            => ['layout', 'error/exception'],
    'exception\response'         => 'response\controller',
    'exception\route'            => [Mvc5\Route\Exception\Create::class, 'exception', 'exception\route\controller'],
    'exception\route\controller' => [Mvc5\Route\Exception\Controller::class, new Plugin('exception\model')],
    'exception\status'           => ['response\status', 500],
    'exception\view'             => 'view\render',
    'factory'                    => new Service(null),
    'layout'                     => [Mvc5\Layout::class, 'layout'],
    'manager'                    => new Plugin(null),
    'middleware'                 => new Service(Mvc5\Middleware::class, [new Param('middleware')]),
    'mvc'                        => new Plugin(Mvc5\Mvc::class, ['mvc', new Link], [new Dependency('route')]),
    'mvc\controller'             => new Service(Mvc5\Mvc\Controller::class),
    'mvc\error'                  => new Service(Mvc5\Mvc\Error::class),
    'mvc\layout'                 => Mvc5\Mvc\Layout::class,
    'mvc\response'               => Mvc5\Mvc\Response::class,
    'mvc\route'                  => new Service(Mvc5\Mvc\Route::class),
    'mvc\view'                   => new Service(Mvc5\Mvc\View::class),
    'resolver\exception'         => Mvc5\Resolver\Exception::class,
    'resolver\dispatch'          => Mvc5\Resolver\Dispatch::class,
    'response\controller'        => Mvc5\Response\Controller::class,
    'response\dispatch'          => [Mvc5\Response\Dispatch::class, 'response' => new Dependency('response')],
    'response\exception'         => new Response('response\exception', ['response' => new Plugin('response')]),
    'response\send'              => Mvc5\Response\Send::class,
    'response\status'            => Mvc5\Response\Status::class,
    'route\generator'            => new Dependency('route\definition\generator'),
    'route\definition\generator' => Mvc5\Route\Generator::class,
    'route\dispatch'             => Mvc5\Route\Dispatch::class,
    'route\error'                => new Response('route\error'),
    'route\exception'            => new Response('route\exception'),
{'fraction_non_alphanumeric': 0.16676637750523482, 'fraction_numerical': 0.011516601854621597, 'mean_word_length': 2.2827687776141383, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 92, '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': '7346602', 'n_tokens_mistral': 1959, 'n_tokens_neox': 1951, 'n_words': 291}