<commit_before><?php

use yii\helpers\Html;
use asdfstudio\admin\widgets\ActiveSelect;
use yii\bootstrap\ActiveForm;
use vova07\imperavi\Widget as ImperaviWidget;

/**
 * @var yii\web\View $this
 * @var yii\db\ActiveRecord $model
 * @var yii\widgets\ActiveForm $form
 * @var asdfstudio\admin\models\Item $item
 */
?>

<div class="model-form">

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

    <div class="form-group">
        <?php foreach($item->modelAttributes as $attribute) {
            $format = (is_array($attribute['format']) ? $attribute['format'][0] : $attribute['format']);
            if ($format == 'model' || $form == 'models') {
                $options = (is_array($attribute['format']) ? $attribute['format'][1] : []);
                echo $form->field($model, $attribute['attribute'])->widget(ActiveSelect::className(), [
                    'options' => $attribute,
                    'labelAttribute' => (is_array($attribute['format']) ? $attribute['format'][1]['labelAttribute'] : $attribute['format'])
                ]);
            } elseif ($format == 'html') {
                echo $form->field($model, $attribute['attribute'])->widget(ImperaviWidget::className(), [
                    'settings' => [
                        'lang' => Yii::$app->language,
                        'minHeight' => 400,
                        'pastePlainText' => true,
                        'plugins' => [
                            'clips',
                        ]
                    ]
                ]);
            } elseif ($format == 'list') {
                $list = (is_array($attribute['format']) ? $attribute['format'][1] : []);
                echo $form->field($model, $attribute['attribute'])->dropDownList($list);
            } else {
                echo $form->field($model, $attribute['attribute']);
            }
        }?>
    </div>

    <?php echo Html::submitButton('Save', [
        'class' => 'btn btn-success'<commit_msg>Removed odd variable<commit_after><?php

use yii\helpers\Html;
use asdfstudio\admin\widgets\ActiveSelect;
use yii\bootstrap\ActiveForm;
use vova07\imperavi\Widget as ImperaviWidget;

/**
 * @var yii\web\View $this
 * @var yii\db\ActiveRecord $model
 * @var yii\widgets\ActiveForm $form
 * @var asdfstudio\admin\models\Item $item
 */
?>

<div class="model-form">

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

    <div class="form-group">
        <?php foreach($item->modelAttributes as $attribute) {
            $format = (is_array($attribute['format']) ? $attribute['format'][0] : $attribute['format']);

            if ($format == 'model' || $form == 'models') {
                echo $form->field($model, $attribute['attribute'])->widget(ActiveSelect::className(), [
                    'options' => $attribute,
                    'labelAttribute' => (is_array($attribute['format']) ? $attribute['format'][1]['labelAttribute'] : $attribute['format'])
                ]);
            } elseif ($format == 'html') {
                echo $form->field($model, $attribute['attribute'])->widget(ImperaviWidget::className(), [
                    'settings' => [
                        'lang' => Yii::$app->language,
                        'minHeight' => 400,
                        'pastePlainText' => true,
                        'plugins' => [
                            'clips',
                        ]
                    ]
                ]);
            } elseif ($format == 'list') {
                $list = (is_array($attribute['format']) ? $attribute['format'][1] : []);
                echo $form->field($model, $attribute['attribute'])->dropDownList($list);
            } else {
                echo $form->field($model, $attribute['attribute']);
            }
        }?>
    </div>

    <?php echo Html::submitButton('Save', [
        'class' => 'btn btn-success'
{'fraction_non_alphanumeric': 0.18108389786347057, 'fraction_numerical': 0.004429390307451798, 'mean_word_length': 1.9736638264910922, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 49, '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': '3270798', 'n_tokens_mistral': 1073, 'n_tokens_neox': 1043, 'n_words': 178}