<commit_before><?php

use vekqaam\models\QaaMain;
use yii\helpers\Html;
use yii\redactor\widgets\Redactor;
use yii\web\View;
use yii\widgets\ActiveForm;

/**
 * @var $this       View
 * @var $model      QaaMain
 * @var $form       ActiveForm
 * @var $categoryDD array
 */
?>

<div class="qaa-main-base-form">

    <?php $form = ActiveForm::begin(); ?>

    <?php echo $form->field($model, 'category_id')->dropDownList($categoryDD) ?>

    <?php echo $form->field($model, 'title')->textarea(['rows' => 2]) ?>

    <?php echo $form->field($model, 'text')->widget(Redactor::className(), ['clientOptions' => ['fileUpload' => false]]) ?>

    <?php if (!$model->isNewRecord): ?>
        <?php echo $form->field($model, 'isHidden')->checkbox() ?>
        <?php echo $form->field($model, 'op_lock')->hiddenInput()->label(false) ?>
    <?php endif; ?>

    <div class="form-group">
        <?php echo Html::submitButton(
            $model->isNewRecord
                ? Yii::t('vekqaam', 'Create')
                : Yii::t('vekqaam', 'Update'),
            [
                'class' => $model->isNewRecord
                    ? 'btn btn-success'
                    : 'btn btn-primary'
            ]
        ) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div><commit_msg>master<commit_after><?php

use vekqaam\models\QaaMain;
use yii\helpers\Html;
use yii\redactor\widgets\Redactor;
use yii\web\View;
use yii\widgets\ActiveForm;

/**
 * @var $this       View
 * @var $model      QaaMain
 * @var $form       ActiveForm
 * @var $categoryDD array
 */
?>

<div class="qaa-main-base-form">

    <?php $form = ActiveForm::begin(); ?>

    <?php echo $form->field($model, 'category_id')->dropDownList($categoryDD) ?>

    <?php echo $form->field($model, 'title')->textarea(['rows' => 2]) ?>

    <?php
    echo $form
        ->field($model, 'text')
        ->widget(
            Redactor::className(),
            [
                'clientOptions' => [
                    'fileUpload' => false,
                    'imageUpload' => false,
                    'minHeight' => 200
                ]
            ]
        )
    ?>

    <?php if (!$model->isNewRecord): ?>
        <?php echo $form->field($model, 'isHidden')->checkbox() ?>
        <?php echo $form->field($model, 'op_lock')->hiddenInput()->label(false) ?>
    <?php endif; ?>

    <div class="form-group">
        <?php echo Html::submitButton(
            $model->isNewRecord
                ? Yii::t('vekqaam', 'Create')
                : Yii::t('vekqaam', 'Update'),
            [
                'class' => $model->isNewRecord
                    ? 'btn btn-success'
                    : 'btn btn-primary'
            ]
        ) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
{'fraction_non_alphanumeric': 0.19176084578928182, 'fraction_numerical': 0.0018228217280349982, 'mean_word_length': 2.0320441988950275, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 71, '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': '4585913', 'n_tokens_mistral': 891, 'n_tokens_neox': 855, 'n_words': 160}