<commit_before>
<?php $view->extend('FOSUserBundle::layout.html.php') ?>
<?php $view['slots']->start('body') ?>

<div class="grid fluid">
    <h1>
        <a href="<?php echo $view['router']->generate('record_list') ?>"><i class="icon-arrow-left-3 fg-darker smaller"></i> </a>
        New Record - <?php echo ucwords($type) ?>
    </h1>
    <?php echo $view['form']->start($form) ?>
    <?php echo $view['form']->errors($form) ?>
    <fieldset>
        <?php echo $view['form']->errors($form) ?>
        <?php // echo $view['form']->widget($form) ?>
        <?php foreach ($fieldSettings[strtolower($type)] as $audioField): ?>
            <?php
            $field = explode('.', $audioField['field']);
            ?>
            <div style="<?php echo ($audioField['hidden']) ? 'display:none;' : ''; ?>" class="col-lg-6" id="<?php echo (count($field) == 2) ? $field[1].'_lbl' : $field[0].'_lbl' ?>">
                
				<?php 
				
				echo $view['form']->label((count($field) == 2) ? $form[$field[0]][$field[1]] : $form[$field[0]],' ');echo $audioField['title']; ?>
                <div class="input-control" data-role="input-control">
                    <?php echo $view['form']->widget((count($field) == 2) ? $form[$field[0]][$field[1]] : $form[$field[0]], array('id' => (count($field) == 2) ? $field[1] : $field[0], 'attr' => array('class' => 'size4'))) ?>
                    <span class="has-error text-danger"><?php echo $view['form']->errors((count($field) == 2) ? $form[$field[0]][$field[1]] : $form[$field[0]]) ?></span>
                </div>
            </div>
        <?php endforeach; ?>
    </fieldset>
    <?php echo $view['form']->widget($form['record']['userId']) ?>
    <?php echo $view['form']->widget($form['record']['mediaTypeHidden']) ?>
    <?php echo $view['form']->widget($form['record']['projectHidden']) ?>
    <?php echo $view['form']->widget($edit_form['submit'], array('attr' => array('class' => 'button primary'))) ?>
    <?php echo $view['form']->widget($edit_form['save_and_duplicate']) ?>
    <?php echo $view['form']->end($form) ?>
</div>
<script src="<?php echo $view['assets']->getUrl('js/manage.records.js') ?>"></script>
<script type="text/javascript"><commit_msg>duplicate record from new template<commit_after>
<?php $view->extend('FOSUserBundle::layout.html.php') ?>
<?php $view['slots']->start('body') ?>

<div class="grid fluid">
    <h1>
        <a href="<?php echo $view['router']->generate('record_list') ?>"><i class="icon-arrow-left-3 fg-darker smaller"></i> </a>
        New Record - <?php echo ucwords($type) ?>
    </h1>
    <?php echo $view['form']->start($form) ?>
    <?php echo $view['form']->errors($form) ?>
    <fieldset>
        <?php echo $view['form']->errors($form) ?>
        <?php // echo $view['form']->widget($form) ?>
        <?php foreach ($fieldSettings[strtolower($type)] as $audioField): ?>
            <?php
            $field = explode('.', $audioField['field']);
            ?>
            <div style="<?php echo ($audioField['hidden']) ? 'display:none;' : ''; ?>" class="col-lg-6" id="<?php echo (count($field) == 2) ? $field[1].'_lbl' : $field[0].'_lbl' ?>">
                
				<?php 
				
				echo $view['form']->label((count($field) == 2) ? $form[$field[0]][$field[1]] : $form[$field[0]],' ');echo $audioField['title']; ?>
                <div class="input-control" data-role="input-control">
                    <?php echo $view['form']->widget((count($field) == 2) ? $form[$field[0]][$field[1]] : $form[$field[0]], array('id' => (count($field) == 2) ? $field[1] : $field[0], 'attr' => array('class' => 'size4'))) ?>
                    <span class="has-error text-danger"><?php echo $view['form']->errors((count($field) == 2) ? $form[$field[0]][$field[1]] : $form[$field[0]]) ?></span>
                </div>
            </div>
        <?php endforeach; ?>
    </fieldset>
    <?php echo $view['form']->widget($form['record']['userId']) ?>
    <?php echo $view['form']->widget($form['record']['mediaTypeHidden']) ?>
    <?php echo $view['form']->widget($form['record']['projectHidden']) ?>
    <?php echo $view['form']->widget($form['submit'], array('attr' => array('class' => 'button primary'))) ?>
    <?php echo $view['form']->widget($form['save_and_duplicate']) ?>
    <?php echo $view['form']->end($form) ?>
</div>
<script src="<?php echo $view['assets']->getUrl('js/manage.records.js') ?>"></script>
<script type="text/javascript">
{'fraction_non_alphanumeric': 0.27085688446755596, 'fraction_numerical': 0.01040018087271083, 'mean_word_length': 3.574974146845915, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 131, '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': '2018096', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1456, 'n_words': 257}