<commit_before><h1><?php print $this->translate('Manage Video'); ?></h1>

<div class="container-fluid">

<?php
$form = $this->form;
$form->setAttribute('action', $this->url('administration/manage'));
$form->setAttribute('class', 'form-horizontal');
$form->setAttribute('method', 'post');
$form->prepare();
echo $this->form()->openTag($form);
?>

<fieldset>

<div class="form-group">
    <?php
    $element = $form->get('name');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formText($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('slug');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formText($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('authorId');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formSelect($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('statusId');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formSelect($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('paymentRequirementId');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formSelect($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('description');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formTextarea($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('publishDate');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formText($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('publishTime');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formText($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('duration');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formText($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('levelId');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formSelect($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('extract');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formText($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
        <?php echo $this->formHidden($form->get('videoId')); ?>&nbsp;
        <?php echo $this->formSubmit($form->get('submit')); ?>
        <a href="<?php print $this->url('administration/manage'); ?>" class="btn
        btn-default">Cancel</a>
        <a href="<?php print $this->url('administration/delete',
            array('slug' => trim($form->get('slug')->getValue()))); ?>"
           class="btn
        btn-danger">Delete</a>
    </div>
</div>

</fieldset>

<?php echo $this->form()->closeTag(); ?>
<commit_msg>Display delete button on manage page only when updating a record<commit_after><h1><?php print $this->translate('Manage Video'); ?></h1>

<div class="container-fluid">

<?php
$form = $this->form;
$form->setAttribute('action', $this->url('administration/manage'));
$form->setAttribute('class', 'form-horizontal');
$form->setAttribute('method', 'post');
$form->prepare();
echo $this->form()->openTag($form);
?>

<fieldset>

<div class="form-group">
    <?php
    $element = $form->get('name');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formText($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('slug');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formText($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('authorId');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formSelect($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('statusId');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formSelect($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('paymentRequirementId');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formSelect($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('description');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formTextarea($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('publishDate');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formText($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('publishTime');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formText($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('duration');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formText($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('levelId');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formSelect($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <?php
    $element = $form->get('extract');
    echo $this->formLabel($element);
    ?>
    <div class="col-sm-10">
        <?php
        echo $this->formText($element);
        echo $this->formElementErrors($element);
        ?>
    </div>
</div>

<div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
        <?php echo $this->formHidden($form->get('videoId')); ?>&nbsp;
        <?php echo $this->formSubmit($form->get('submit')); ?>
        <a href="<?php print $this->url('administration/manage'); ?>" class="btn
        btn-default">Cancel</a>
        <?php if ($form->get('videoId')->getValue() != ''): ?>
        <a href="<?php print $this->url('administration/delete',
            array('slug' => trim($form->get('slug')->getValue()))); ?>"
           class="btn
        btn-danger">Delete</a>
        <?php endif; ?>
    </div>
</div>

</fieldset>

<?php echo $this->form()->closeTag(); ?>

{'fraction_non_alphanumeric': 0.21696276466293501, 'fraction_numerical': 0.006570941834996349, 'mean_word_length': 2.617517605633803, 'pattern_counts': {'":': 0, '<': 177, '<?xml version=': 0, '>': 307, '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': '417362', 'n_tokens_mistral': 2694, 'n_tokens_neox': 2674, 'n_words': 471}