<commit_before><?php

namespace system\core;

use system\core\Route;

/**
 * Description of Router
 *
 * @author <NAME>
 * @author <NAME>
 */
class Router extends Route
{

    public function get($route, $action, $before = NULL, $after = NULL)
    {
        $this->addRoute('GET', $route, $action, $before, $after);
    }

    public function post($route, $action, $before = NULL, $after = NULL)
    {
            $this->addRoute('POST', $route, $action, $before, $after);
    }

    public function put($route, $action, $before = NULL, $after = NULL)
    {
            $this->addRoute('PUT', $route, $action, $before, $after);
    }

    public function delete($route, $action, $before = NULL, $after = NULL)
    {
            $this->addRoute('DELETE', $route, $action, $before, $after);
    }

    public function any($route, $action, $before = NULL, $after = NULL)
    {
            $this->addRoute('ANY', $route, $action, $before, $after);
    }

}<commit_msg>Defaults middleware names<commit_after><?php

namespace system\core;

use system\core\Route;

/**
 * Description of Router
 *
 * @author <NAME>
 * @author <NAME>
 */
class Router extends Route
{

    public function get($route, $action, $before = "before", $after = "after")
    {
        $this->addRoute('GET', $route, $action, $before, $after);
    }

    public function post($route, $action, $before = "before", $after = "after")
    {
            $this->addRoute('POST', $route, $action, $before, $after);
    }

    public function put($route, $action, $before = "before", $after = "after")
    {
            $this->addRoute('PUT', $route, $action, $before, $after);
    }

    public function delete($route, $action, $before = "before", $after = "after")
    {
            $this->addRoute('DELETE', $route, $action, $before, $after);
    }

    public function any($route, $action, $before = "before", $after = "after")
    {
            $this->addRoute('ANY', $route, $action, $before, $after);
    }

}
{'fraction_non_alphanumeric': 0.18430379746835443, 'fraction_numerical': 0.0, 'mean_word_length': 2.9599198396793587, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, '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': '5250011', 'n_tokens_mistral': 641, 'n_tokens_neox': 630, 'n_words': 164}