<commit_before><?php

namespace Blocks\Http;

interface Route
{
    /**
     * @param Request $request
     * @param bool $exact
     * @return bool
     * @throws \Exception
     */
    public function match(Request $request, $exact = true);

    /**
     * @param Request $request
     * @return bool
     */
    public function process(Request $request);

    /**
     * @param string $name
     * @return Route|null
     */
    public function findByName($name);

    /**
     * @param array $params
     * @return string
     */
    public function generateUrl(array $params = []);
}
<commit_msg>separate api<commit_after><?php

namespace Blocks\Http;

interface Route
{
    /**
     * @param Request $request
     * @param bool $exact
     * @return bool
     * @throws \Exception
     */
    public function match(Request $request, $exact = true);

    /**
     * @param Request $request
     * @return bool
     */
    public function process(Request $request);

    /**
     * @param string $name
     * @return Route|null
     */
    public function findByName($name);

    /**
     * @param array $params
     * @return string
     */
    public function generateUrl(array $params = []);

    /**
     * @param Route $parentRoute
     * @return $this
     */
    public function setParentRoute(Route $parentRoute);

    /**
     * @return Route|null
     */
    public function getParentRoute();
}

{'fraction_non_alphanumeric': 0.12916962384669978, 'fraction_numerical': 0.0, 'mean_word_length': 2.175675675675676, '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': '5292937', 'n_tokens_mistral': 412, 'n_tokens_neox': 403, 'n_words': 109}