<commit_before><?php
namespace Core\Lib\Traits;

/**
 * Url Trait
 *
 * @author Michael "Tekkla" Zorn <<EMAIL>>
 * @license MIT
 * @copyright 2014
 */
trait UrlTrait
{

    /**
     * Generates url by using routename and optional prameters
     *
     * @param string $route
     *            Name of route to compile
     * @param array $params
     *            Optional parameter list
     */
    protected function url($route, Array $params = [])
    {
        return $this->di->get('core.http.router')->url($route, $params);
    }
}
<commit_msg>Reformat<commit_after><?php
namespace Core\Lib\Traits;

/**
 * Url Trait
 *
 * @author Michael "Tekkla" Zorn <<EMAIL>>
 * @license MIT
 * @copyright 2015
 */
trait UrlTrait
{

    /**
     * Generates url by using routename and optional prameters
     *
     * @param string $route Name of route to compile
     * @param array $params Optional parameter list
     */
    protected function url($route, Array $params = [])
    {
        return $this->di->get('core.http.router')->url($route, $params);
    }
}

{'fraction_non_alphanumeric': 0.1359773371104816, 'fraction_numerical': 0.007554296506137866, 'mean_word_length': 2.521594684385382, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '3684085', 'n_tokens_mistral': 340, 'n_tokens_neox': 331, 'n_words': 92}