<commit_before><?php
/**
 * @version     $Id$
 * @package     Koowa_Http
 * @copyright   Copyright (C) 2007 - 2012 <NAME>. All rights reserved.
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

/**
 * Route Class
 *
 * @author		<NAME> <<EMAIL>>
 * @package     Koowa_Dispatcher
 * @subpackage  Router
 */
class KDispatcherRouterRoute extends KHttpUrl
{
    /**
     * Return a string representation of this url.
     *
     * @see    get()
     * @return string
     */
    public function __toString()
    {
        return JRoute::_($this->getUrl(self::FULL));
    }
}<commit_msg>Call the router directly instead of going through JRoute. (WIP).<commit_after><?php
/**
 * @version     $Id$
 * @package     Koowa_Http
 * @copyright   Copyright (C) 2007 - 2012 <NAME>. All rights reserved.
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

/**
 * Route Class
 *
 * @author        <NAME> <<EMAIL>>
 * @package     Koowa_Dispatcher
 * @subpackage  Router
 */
class KDispatcherRouterRoute extends KHttpUrl
{
    /**
     * Return a string representation of this url.
     *
     * @see    get()
     * @return string
     */
    public function __toString()
    {
        //Compose the route
        $this->getService('application')->getRouter()->build($this);

        return $this->getUrl(self::FULL);
    }
}
{'fraction_non_alphanumeric': 0.1471830985915493, 'fraction_numerical': 0.01267605633802817, 'mean_word_length': 2.3995215311004783, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6264148', 'n_tokens_mistral': 470, 'n_tokens_neox': 446, 'n_words': 111}