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

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

$this->title = '发布微博';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-login">
    <h1><?= Html::encode($this->title) ?></h1>

    <?php
    if(Yii::$app->session->getFlash('failure')) {
        echo "<div class='alert alert-error'>".Yii::$app->session->getFlash('failure')."</div>";
    }
    ?>
    <div class="row">
        <div class="col-lg-5">
            <?php $form = ActiveForm::begin(['id' => 'publish-form']); ?>
            <?= $form->field($model, 'content') ?>
            <div class="form-group">
                <?= Html::submitButton('发布', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
            </div>
            <?php ActiveForm::end(); ?>
        </div>
    </div>
</div>

<commit_msg>change text field as textarea<commit_after><?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

$this->title = '发布微博';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-login">
    <h1><?= Html::encode($this->title) ?></h1>

    <?php
    if(Yii::$app->session->getFlash('failure')) {
        echo "<div class='alert alert-error'>".Yii::$app->session->getFlash('failure')."</div>";
    }
    ?>
    <div class="row">
        <div class="col-lg-5">
            <?php $form = ActiveForm::begin(['id' => 'publish-form']); ?>
            <?= $form->field($model, 'content')->textarea(['width' => 300, 'height' => 300]) ?>
            <div class="form-group">
                <?= Html::submitButton('发布', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
            </div>
            <?php ActiveForm::end(); ?>
        </div>
    </div>
</div>


{'fraction_non_alphanumeric': 0.24675324675324675, 'fraction_numerical': 0.006233766233766234, 'mean_word_length': 2.7838899803536346, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 68, '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': '499910', 'n_tokens_mistral': 668, 'n_tokens_neox': 673, 'n_words': 113}