<commit_before><?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\Feed */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="feed-form">

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

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

    <?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'type')->dropDownList([ 'default' => 'Default', 'sandbox' => 'Sandbox', ], ['prompt' => '']) ?>

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

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

    <?= $form->field($model, 'enabled')->checkbox() ?><commit_msg>Сделал значение по умолчанию в форме.<commit_after><?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\Feed */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="feed-form">

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

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

    <?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'type')->dropDownList([ 'default' => 'Default', 'sandbox' => 'Sandbox', ], ['value' => 'default']) ?>

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

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

    <?= $form->field($model, 'enabled')->checkbox() ?>
{'fraction_non_alphanumeric': 0.27150192554557123, 'fraction_numerical': 0.0012836970474967907, 'mean_word_length': 4.587813620071684, 'pattern_counts': {'":': 0, '<': 21, '<?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': '6931794', 'n_tokens_mistral': 552, 'n_tokens_neox': 534, 'n_words': 86}