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

use Mvc5\Plugin\Args;
use Mvc5\Plugin\GlobalVar;
use Mvc5\Plugin\Plugin;
use Symfony\Component\HttpFoundation\ApacheRequest;
use Valar\Plugin\ServerRequest;
use Zend\Diactoros\Stream;

return [
    'http\request' => [Valar\Http\Request::class, new Args([
        'body'    => new Stream('php://temp', 'wb+'),
        'headers' => new Mvc5\Http\Headers\Config,
        'method'  => 'POST',
        //'target'  => '/foo?bar=baz',
        'uri'     => new Plugin('http\uri', [[
            'host' => 'localhost',
            'path' => '/foo',
            'port' => '8080',
            'query' => 'bar=baz'
        ]]),
        'version' => '1.1'
    ])],
    'http\uri' => Valar\Http\Uri::class,
    'http-foundation\request' => new Plugin(
        ApacheRequest::class, [new GlobalVar('_GET'), new GlobalVar('_POST'), [], [], [], new GlobalVar('_SERVER')]
    ),
    'request' => new ServerRequest(include __DIR__ . '/request.php', new Plugin('http-foundation\request')),
    'response' => Valar\Response::class,
    //'response' => [Valar\Response::class, new Plugin(Stream::class, ['php://memory', 'wb+'])],
    'response\json' => Valar\JsonResponse::class,
    //'response\json' => Valar\Http\JsonResponse::class,
    'response\redirect' => Valar\RedirectResponse::class,
    //'response\redirect' => Valar\Http\RedirectResponse::class,
];<commit_msg>tidy up<commit_after><?php
/**
 *
 */

use Mvc5\Plugin\GlobalVar;
use Mvc5\Plugin\Plugin;
use Symfony\Component\HttpFoundation\ApacheRequest;
use Valar\Plugin\ServerRequest;
use Zend\Diactoros\Stream;

return [
    'http-foundation\request' => new Plugin(
        ApacheRequest::class, [new GlobalVar('_GET'), new GlobalVar('_POST'), [], [], [], new GlobalVar('_SERVER')]
    ),
    'request' => new ServerRequest(include __DIR__ . '/request.php', new Plugin('http-foundation\request')),
    'response' => Valar\Response::class,
    //'response' => [Valar\Response::class, new Plugin(Stream::class, ['php://memory', 'wb+'])],
    'response\json' => Valar\JsonResponse::class,
    //'response\json' => Valar\Http\JsonResponse::class,
    'response\redirect' => Valar\RedirectResponse::class,
    //'response\redirect' => Valar\Http\RedirectResponse::class,
];
{'fraction_non_alphanumeric': 0.2024074899687918, 'fraction_numerical': 0.005349977708426215, 'mean_word_length': 3.5517241379310347, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '1731318', 'n_tokens_mistral': 745, 'n_tokens_neox': 740, 'n_words': 123}