<commit_before><extends:layouts.blank page="[[Add Element]]"/>
<?php
/**
 * @var \Database\Sample               $entity
 * @var \Database\Sources\SampleSource $source
 */
?>

<define:content>
    <a href="/sample">[[Back to elements list]]</a>

    <spiral:form action="/sample/save/<?= $entity->id ?>" style="margin-top: 20px;">
        <form.input label="Name" name="name" value="<?= e($entity->name) ?>"/>

        <form.select label="Status" name="status" values="<?= [
            'active'   => 'Active',
            'disabled' => 'Disabled'
        ] ?>" value="<?= $entity->status ?>"/>

        <form.textarea label="Content" name="content" value="<?= e($entity->content) ?>" rows="15"/>
        <form.input label="Value" name="value" value="<?= $entity->child->value ?>"/>

        <input type="submit" class="btn btn-default" value="<?= $entity->isLoaded() ? '[[Update Element]]' : '[[Create Element]]' ?>"/>
    </spiral:form>

    <?php if ($entity->isLoaded() && !empty($source)): ?>
        <div class="similar" style="margin-top: 20px;">
            [[Similar elements]]: <?= $source->findByValue($entity->child->value)->count() ?>
        </div>
    <?php endif; ?>
</define:content><commit_msg>Update form.dark.php<commit_after><extends:layouts.blank page="[[Add Element]]"/>
<?php
/**
 * @var \Database\Sample               $entity
 * @var \Database\Sources\SampleSource $source
 */
?>

<define:content>
    <a href="/sample">[[Back to elements list]]</a>

    <spiral:form action="/sample/save/<?= $entity->id ?>" style="margin-top: 20px;">
        <form.input label="Name" name="name" value="<?= e($entity->name) ?>"/>

        <form.select label="Status" name="status" values="<?= [
            'active'   => 'Active',
            'disabled' => 'Disabled'
        ] ?>" value="<?= $entity->status ?>"/>

        <form.textarea label="Content" name="content" value="<?= e($entity->content) ?>" rows="15"/>
        <form.input label="Value" name="value" value="<?= $entity->child->value ?>"/>

        <input type="submit" class="btn btn-default" value="<?= $entity->isLoaded() ? '[[Update]]' : '[[Create]]' ?>"/>
    </spiral:form>

    <?php if ($entity->isLoaded() && !empty($source)): ?>
        <div class="similar" style="margin-top: 20px;">
            [[Similar elements]]: <?= $source->findByValue($entity->child->value)->count() ?>
        </div>
    <?php endif; ?>
</define:content>
{'fraction_non_alphanumeric': 0.2461665975963531, 'fraction_numerical': 0.004973062577704103, 'mean_word_length': 3.280141843971631, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 81, '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': '4901875', 'n_tokens_mistral': 765, 'n_tokens_neox': 746, 'n_words': 144}