<commit_before><?php
/**
 * @link http://www.yiizh.com/
 * @copyright Copyright (c) 2016 yiizh.com
 * @license http://www.yiizh.com/license/
 */

namespace frontend;

use common\components\AddUrlRulesInterface;
use yii\base\BootstrapInterface;

class Bootstrap implements BootstrapInterface, AddUrlRulesInterface
{
    public function addUrlRulesTo($urlManager)
    {
        $urlManager->addRules([
            '/' => '/site/index'
        ]);
    }

    public function bootstrap($app)
    {
    }

}<commit_msg>Url 地址重写<commit_after><?php
/**
 * @link http://www.yiizh.com/
 * @copyright Copyright (c) 2016 yiizh.com
 * @license http://www.yiizh.com/license/
 */

namespace frontend;

use common\components\AddUrlRulesInterface;
use yii\base\BootstrapInterface;

class Bootstrap implements BootstrapInterface, AddUrlRulesInterface
{
    public function addUrlRulesTo($urlManager)
    {
        $urlManager->addRules([
            '/login' => '/site/login',
            '/logout' => '/site/logout',
            '/register' => '/site/register',
            '/' => '/site/index'
        ]);
    }

    public function bootstrap($app)
    {
    }

}
{'fraction_non_alphanumeric': 0.14634146341463414, 'fraction_numerical': 0.006968641114982578, 'mean_word_length': 2.7549019607843137, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '2458057', 'n_tokens_mistral': 377, 'n_tokens_neox': 359, 'n_words': 65}