<commit_before><?php

namespace Relay;

use Psr\Http\Message\RequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;

/**
 * This interface defines the middleware interface signature required by Relay.
 *
 * Implementing this is completely voluntary, it's mostly useful for indicating that
 * your class is middleware, and to ensure you type-hint the `__invoke()` method
 * signature correctly.
 */
interface MiddlewareInterface
{
    /**
     * @param Request                           $request  the request
     * @param Response                          $response the response
     * @param callable|MiddlewareInterface|null $next     the next middleware
     *
     * @return Response
     */
    public function __invoke(Request $request, Response $response, callable $next = null);
}<commit_msg>There is always a $next middleware to be called.<commit_after><?php

namespace Relay;

use Psr\Http\Message\RequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;

/**
 * This interface defines the middleware interface signature required by Relay.
 *
 * Implementing this is completely voluntary, it's mostly useful for indicating that
 * your class is middleware, and to ensure you type-hint the `__invoke()` method
 * signature correctly.
 */
interface MiddlewareInterface
{
    /**
     * @param Request                      $request  the request
     * @param Response                     $response the response
     * @param callable|MiddlewareInterface $next     the next middleware
     *
     * @return Response
     */
    public function __invoke(Request $request, Response $response, callable $next);
}
{'fraction_non_alphanumeric': 0.07687687687687687, 'fraction_numerical': 0.0, 'mean_word_length': 3.0436893203883497, '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': '746266', 'n_tokens_mistral': 409, 'n_tokens_neox': 405, 'n_words': 157}