<commit_before><?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\widgets\Pjax;

/* @var $article app\models\Article */
/* @var $comment app\models\Comment */
/* @var $added bool */

Pjax::begin(['id'=>'new_comment_form',
    'enablePushState' => false,
    'enableReplaceState' => false
]);
if (!empty($added))
    echo '<div>', Yii::t('app', 'Response published'), '</div>';

$form = ActiveForm::begin([
    'action' => [ 'add-comment', 'id' => $article->id ],
    'id' => 'addComment',
    'enableClientValidation' => false,
    'enableAjaxValidation' => true,
    'options' => [
        'data-pjax' => true,
    ]]);
?>
    <?= $form->field($comment, 'comment')->textarea(['rows' => 6])?>
    <div class="controls form-group">
        <?php echo Html::submitButton($comment->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Create'), ['class' => $comment->isNewRecord ? 'btn btn-success' : 'btn btn-primary','id' => 'btn_create','value' => 'add-comment?id='.$model->id]); ?>
    </div>

<?php ActiveForm::end();
Pjax::end();
?><commit_msg>[fix] опечатка<commit_after><?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\widgets\Pjax;

/* @var $article app\models\Article */
/* @var $comment app\models\Comment */
/* @var $added bool */

Pjax::begin(['id'=>'new_comment_form',
    'enablePushState' => false,
    'enableReplaceState' => false
]);
if (!empty($added))
    echo '<div>', Yii::t('app', 'Response published'), '</div>';

$form = ActiveForm::begin([
    'action' => [ 'add-comment', 'id' => $article->id ],
    'id' => 'addComment',
    'enableClientValidation' => false,
    'enableAjaxValidation' => true,
    'options' => [
        'data-pjax' => true,
    ]]);
?>
    <?= $form->field($comment, 'comment')->textarea(['rows' => 6])?>
    <div class="controls form-group">
        <?php echo Html::submitButton($comment->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Create'), ['class' => $comment->isNewRecord ? 'btn btn-success' : 'btn btn-primary','id' => 'btn_create','value' => 'add-comment?id='.$article->id]); ?>
    </div>

<?php ActiveForm::end();
Pjax::end();
?>
{'fraction_non_alphanumeric': 0.24729666196520922, 'fraction_numerical': 0.0009402914903620122, 'mean_word_length': 4.293532338308458, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 59, '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': '2121465', 'n_tokens_mistral': 739, 'n_tokens_neox': 735, 'n_words': 139}