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

use Mvc5\Plugin\Args;
use Mvc5\Plugin\Config;
use Mvc5\Plugin\GlobalVar;
use Mvc5\Plugin\Hydrator;
use Mvc5\Plugin\Invoke;
use Mvc5\Plugin\Link;
use Mvc5\Plugin\Param;
use Mvc5\Plugin\Plugin;
use Mvc5\Plugin\Response;
use Mvc5\Plugin\Session;
use Mvc5\Plugin\Shared;

return [
    'config'               => new Config,
    'cookie'               => new Shared('cookie', [Mvc5\Cookie\PHPCookies::class, new GlobalVar('_COOKIE'), new Param('cookie')]),
    'controller\action'    => [Mvc5\Controller\Action::class, new Link],
    'error\controller'     => [Mvc5\Request\Error\Controller::class, new Link],
    'error\model'          => [Mvc5\Request\Error\ViewModel::class, 'template' => 'error'],
    'event\model'          => Mvc5\Event::class,
    'exception\controller' => [Mvc5\Request\Exception\Controller::class, new Link],
    'exception\error'      => [Mvc5\Request\Exception::class, 'exception', 'exception\controller'],
    'exception\layout'     => [Mvc5\Request\Exception\ViewLayout::class, 'template' => 'exception'],<commit_msg>add csrf_token helper function<commit_after><?php
/**
 *
 */

use Mvc5\Plugin\Args;
use Mvc5\Plugin\Config;
use Mvc5\Plugin\GlobalVar;
use Mvc5\Plugin\Hydrator;
use Mvc5\Plugin\Invoke;
use Mvc5\Plugin\Invokable;
use Mvc5\Plugin\Link;
use Mvc5\Plugin\Param;
use Mvc5\Plugin\Plugin;
use Mvc5\Plugin\Response;
use Mvc5\Plugin\Session;
use Mvc5\Plugin\Shared;

return [
    'config'               => new Config,
    'cookie'               => new Shared('cookie', [Mvc5\Cookie\PHPCookies::class, new GlobalVar('_COOKIE'), new Param('cookie')]),
    'controller\action'    => [Mvc5\Controller\Action::class, new Link],
    'csrf_token'           => new Shared('csrf_token', new Invokable(new Plugin('session->csrf_token'))),
    'error\controller'     => [Mvc5\Request\Error\Controller::class, new Link],
    'error\model'          => [Mvc5\Request\Error\ViewModel::class, 'template' => 'error'],
    'event\model'          => Mvc5\Event::class,
    'exception\controller' => [Mvc5\Request\Exception\Controller::class, new Link],
    'exception\error'      => [Mvc5\Request\Exception::class, 'exception', 'exception\controller'],
    'exception\layout'     => [Mvc5\Request\Exception\ViewLayout::class, 'template' => 'exception'],
{'fraction_non_alphanumeric': 0.170147954743255, 'fraction_numerical': 0.016971279373368148, 'mean_word_length': 3.730452674897119, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '3991975', 'n_tokens_mistral': 765, 'n_tokens_neox': 777, 'n_words': 132}