<commit_before><?php
/**
 * @Author: forecho
 * @Date:   2015-01-29 23:26:54
 * @Last Modified by:   forecho
 * @Last Modified time: 2015-02-04 21:53:45
 */

use yii\helpers\Html;
use yii\helpers\Markdown;
?>

<?php if ($this->context->action->id == 'show'): ?>
    <!-- 评论 -->
    <?= Html::a(
        $model->post->title,
        ["/{$model->post->type}/view", 'id' => $model->post->id],
        ['class' => 'list-group-item-heading']
    )?>
    <?=  Html::tag('em',Yii::$app->formatter->asRelativeTime($model->created_at)) ?>
    <p><?= Markdown::process($model->comment, 'gfm') ?></p>
<?php else: ?>
    <?php if ($this->context->action->id == 'favorite'): ?>
        <i class="icon-bookmark"></i>
    <?php endif ?>
    <!-- 文章 -->
    <?= Html::a(
        $model->title,
        ["/{$model->type}/view", 'id' => $model->id],
        ['class' => 'list-group-item-heading']
    )?>
    <?=  Html::tag('em',Yii::$app->formatter->asRelativeTime($model->created_at)) ?>
    <p class="list-group-item-text">
        <?= Html::a($model->category->name, ["/{$model->type}/view", 'id' => $model->id])?>
        <span>
            <?= $model->like_count ?> 人喜欢 • <?= $model->comment_count ?> 条回复
        </span>
    </p>
<?php endif ?><commit_msg>Favorites BUG  个人中心收藏夹点击BUG<commit_after><?php
/**
 * @Author: forecho
 * @Date:   2015-01-29 23:26:54
 * @Last Modified by:   forecho
 * @Last Modified time: 2015-02-04 21:53:45
 */

use yii\helpers\Html;
use yii\helpers\Markdown;
?>

<?php if ($this->context->action->id == 'show'): ?>
    <!-- 评论 -->
    <?= Html::a(
        $model->post->title,
        ["/{$model->post->type}/default/view", 'id' => $model->post->id],
        ['class' => 'list-group-item-heading']
    )?>
    <?=  Html::tag('em',Yii::$app->formatter->asRelativeTime($model->created_at)) ?>
    <p><?= Markdown::process($model->comment, 'gfm') ?></p>
<?php else: ?>
    <?php if ($this->context->action->id == 'favorite'): ?>
        <i class="icon-bookmark"></i>
    <?php endif ?>
    <!-- 文章 -->
    <?= Html::a(
        $model->title,
        ["/{$model->type}/default/view", 'id' => $model->id],
        ['class' => 'list-group-item-heading']
    )?>
    <?=  Html::tag('em',Yii::$app->formatter->asRelativeTime($model->created_at)) ?>
    <p class="list-group-item-text">
        <?= Html::a($model->category->name, ["/{$model->type}/default/view", 'id' => $model->id])?>
        <span>
            <?= $model->like_count ?> 人喜欢 • <?= $model->comment_count ?> 条回复
        </span>
    </p>
<?php endif ?>
{'fraction_non_alphanumeric': 0.2695961995249406, 'fraction_numerical': 0.022169437846397466, 'mean_word_length': 2.8, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 117, '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': '3391482', 'n_tokens_mistral': 984, 'n_tokens_neox': 960, 'n_words': 144}