<commit_before><?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\Url;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $model common\models\TaskType */
/* @var $form yii\widgets\ActiveForm */
?>

<?php Pjax::begin(['id' => 'modalContent','enablePushState' => false]); ?>
<div class="task-type-form">

    <?php $form = ActiveForm::begin(['options' => ['data-pjax' => true]]); ?>

    <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>

    <div class="form-group">
        <?= Html::button($model->isNewRecord ? 'Создать' : 'Сохранить', 
                [
                    'value' => $model->isNewRecord ? 
                        Url::to(['task-type/create']) : Url::to(['task-type/update']),
                    'class' => $model->isNewRecord ? 
                        'btn btn-success modalButton' : 'btn btn-primary  modalButton',
                    'type' => 'submit'
                ]) ?>
    </div>

    <?php ActiveForm::end(); ?><commit_msg>fix bugs<commit_after><?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\Url;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $model common\models\TaskType */
/* @var $form yii\widgets\ActiveForm */
?>

<?php Pjax::begin(['id' => 'modalContent','enablePushState' => false]); ?>
<div class="task-type-form">

    <?php $form = ActiveForm::begin(['options' => ['data-pjax' => true]]); ?>

    <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>

   <div class="form-group">
        <?= Html::button($model->isNewRecord ? 'Создать' : 'Изменить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary', 'type' => 'submit']) ?>
    </div>

    <?php ActiveForm::end(); ?>
{'fraction_non_alphanumeric': 0.2248995983935743, 'fraction_numerical': 0.0, 'mean_word_length': 2.990846681922197, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 45, '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': '4804022', 'n_tokens_mistral': 602, 'n_tokens_neox': 584, 'n_words': 103}