<commit_before><?php

use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model app\models\Orders */

$this->title = 'Update Orders: ' . ' ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Orders', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="orders-update">

    <h1><?= Html::encode($this->title) ?></h1>
    <?php foreach($rows as $row):?>
    <?= $this->render('_form', [
        'model' => $row,
    ]) ?>
    <?php endforeach;?>

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

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

/* @var $this yii\web\View */
/* @var $model app\models\Orders */

$this->title = 'Update Orders: ' . ' ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Orders', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="orders-update">

    <h1><?= Html::encode($this->title) ?></h1>

    <?= $this->render('_form', [
        'model' => $row,
    ]) ?>


    <?php $form = ActiveForm::begin(); ?>
    <?php foreach($rows as $i=>$model):?>
    <div class="orders-container">
        <div class="order-container" data-counter="0">
            <?php // $form->field($model, 'order_id')->textInput() ?>
            <div class="orders-item">
                <?= $form->field($model, "price")->textInput(['maxlength' => true, 'class' => "order-item form-control", 'placeholder' => 'Please add price of item...']) ?>
            </div>
            <div class="orders-item">
                <?= $form->field($model, "description")->textInput(['maxlength' => true, 'class' => "order-item form-control", 'placeholder' => 'Please add description of item...']) ?>
            </div>
            <div class="orders-item">
                <?=
                    $form->field($model, "available")->dropDownList(['Pick an option',
                        '0' => 'Not Available',
                        '1' => 'Available'])
                ?>
            </div>
        </div>
    </div>
    <?php endforeach;?>
    <div class="form-group">
        <?= Html::button('Update', ['class' => 'btn btn-primary','onclick'=>'submitForm();']) ?>
    </div>

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

</div>
{'fraction_non_alphanumeric': 0.2569879015435962, 'fraction_numerical': 0.002920317062995411, 'mean_word_length': 2.717829457364341, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 89, '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': '5968175', 'n_tokens_mistral': 807, 'n_tokens_neox': 801, 'n_words': 149}