<commit_before><?php
/* @var $this yii\web\View */
/* @var $model backend\models\post\Post */
use yii\helpers\Html;

$this->title = $model->title;
$this->params['breadcrumbs'][] = ['label' => $model->getPostTypeName(), 'url' => $model->getPostTypeUrl()];
$this->params['breadcrumbs'][] = ['label' => $model->getPostCategoryName(), 'url' => $model->getPostCategoryUrl()];
$this->params['breadcrumbs'][] = $this->title;
?>
<?= $this->render('@app/views/post-details/_details', [
    'model' => $model,
    'post_category' => $post_category,
]) ?>

<div class="col-sm-4 col-lg-3 p30 visible-md visible-lg">
    <?php if ($model->status != Yii::$app->params['active']) : ?>
        <?= Html::a(Html::tag('span', '', ['class' => 'fa fa-upload']), ['publish', 'id' => $model->id], ['class' => 'btn btn-sm btn-primary']) ?>
    <?php endif; ?>
    <?= Html::a(Html::tag('span', '', ['class' => 'fa fa-edit']), ['update', 'id' => $model->id], ['class' => 'btn btn-sm btn-primary']) ?>
    <?php echo Html::a(Html::tag('span', '', ['class' => 'fa fa-remove']), ['delete', 'id' => $model->id], [
        'class' => 'btn btn-danger',
        'data' => [
            'confirm' => 'Are you sure you want to delete this item?',
            'method' => 'post',
        ],
    ])
    ?>
</div><commit_msg>Quick fixes<commit_after><?php
/* @var $this yii\web\View */
/* @var $model backend\models\post\Post */
use yii\helpers\Html;

$this->title = $model->title;
$this->params['breadcrumbs'][] = ['label' => $model->getPostTypeName(), 'url' => $model->getPostTypeUrl()];
$this->params['breadcrumbs'][] = ['label' => $model->getPostCategoryName(), 'url' => $model->getPostCategoryUrl()];
$this->params['breadcrumbs'][] = $this->title;
?>
<?= $this->render('@app/views/post-details/_details', [
    'model' => $model,
    'post_category' => $post_category,
]) ?>

<div class="col-sm-4 col-lg-3 p30 visible-md visible-lg">
    <?php if ($model->status != Yii::$app->params['active']) : ?>
        <?= Html::a(Html::tag('span', '', ['class' => 'fa fa-upload']), ['/post-preview/publish', 'id' => $model->id], ['class' => 'btn btn-sm btn-primary']) ?>
    <?php endif; ?>
    <?= Html::a(Html::tag('span', '', ['class' => 'fa fa-edit']), ['update', 'id' => $model->id], ['class' => 'btn btn-sm btn-primary']) ?>
    <?php echo Html::a(Html::tag('span', '', ['class' => 'fa fa-remove']), ['delete', 'id' => $model->id], [
        'class' => 'btn btn-danger',
        'data' => [
            'confirm' => 'Are you sure you want to delete this item?',
            'method' => 'post',
        ],
    ])
    ?>
</div>
{'fraction_non_alphanumeric': 0.2806949806949807, 'fraction_numerical': 0.003088803088803089, 'mean_word_length': 3.7541284403669724, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 89, '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': '2999835', 'n_tokens_mistral': 921, 'n_tokens_neox': 925, 'n_words': 176}