<commit_before><?php

namespace Respect\Rest;

use Exception;
use ReflectionClass;
use ReflectionMethod;
use RuntimeException;
use InvalidArgumentException;
use Respect\Rest\Routes;
use Respect\Rest\Routes\AbstractRoute;

/**
 * A router that contains many instances of routes.
 *
 * @method \Respect\Rest\Routes\AbstractRoute get(string $path, $routeTarget)
 * @method \Respect\Rest\Routes\AbstractRoute post(string $path, $routeTarget)
 * @method \Respect\Rest\Routes\AbstractRoute put(string $path, $routeTarget)
 * @method \Respect\Rest\Routes\AbstractRoute delete(string $path, $routeTarget)
 * @method \Respect\Rest\Routes\AbstractRoute head(string $path, $routeTarget)
 * @method \Respect\Rest\Routes\AbstractRoute options(string $path, $routeTarget)
 * @method \Respect\Rest\Routes\AbstractRoute any(string $path, $routeTarget)
 */
class Router
{

    /**
     * @var bool true if this router dispatches itself when destroyed, false
     * otherwise
     */
    public $isAutoDispatched = true;

    /**
     * @var bool true if this router accepts _method HTTP hacks for PUT and
     * DELETE via POST<commit_msg>fixed type of $path-parameter in phpdoc. PHPStorm parse them as \Respect\Rest\string<commit_after><?php

namespace Respect\Rest;

use Exception;
use ReflectionClass;
use ReflectionMethod;
use RuntimeException;
use InvalidArgumentException;
use Respect\Rest\Routes;
use Respect\Rest\Routes\AbstractRoute;

/**
 * A router that contains many instances of routes.
 *
 * @method \Respect\Rest\Routes\AbstractRoute get(\string $path, $routeTarget)
 * @method \Respect\Rest\Routes\AbstractRoute post(\string $path, $routeTarget)
 * @method \Respect\Rest\Routes\AbstractRoute put(\string $path, $routeTarget)
 * @method \Respect\Rest\Routes\AbstractRoute delete(\string $path, $routeTarget)
 * @method \Respect\Rest\Routes\AbstractRoute head(\string $path, $routeTarget)
 * @method \Respect\Rest\Routes\AbstractRoute options(\string $path, $routeTarget)
 * @method \Respect\Rest\Routes\AbstractRoute any(\string $path, $routeTarget)
 */
class Router
{

    /**
     * @var bool true if this router dispatches itself when destroyed, false
     * otherwise
     */
    public $isAutoDispatched = true;

    /**
     * @var bool true if this router accepts _method HTTP hacks for PUT and
     * DELETE via POST
{'fraction_non_alphanumeric': 0.111541774332472, 'fraction_numerical': 0.0, 'mean_word_length': 4.389791183294664, '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': '7035303', 'n_tokens_mistral': 705, 'n_tokens_neox': 695, 'n_words': 195}