<commit_before><? /****************************************************************************
   /
   / Tabs Rendering
   /
   *************************************************************************/ ?>
<? if($item->parentIsFieldList() && $item->getParent()->isTabBar()): ?>
    <div class="tab-pane<? if($item->isFirstList()): ?> active<? endif ?>" id="<?= $item->id ?>">
    <? foreach ($item as $field) : ?>
        <?= $field ?>
    <? endforeach ?>
    </div>

<? /****************************************************************************
   /
   / Fieldsets containing other fieldsets
   /
   *************************************************************************/ ?>
<? elseif($childLists = $item->fieldLists()): ?>

    <? $fieldListCount = count($childLists); ?>

    <? // Fieldset under fieldset, when explicit setted or not enough lists ?>
    <? if ($item->hasCssClass('vertical') || $fieldListCount < 2) : ?>
            <? foreach ($childLists as $fieldList) : ?>
                <?= $fieldList ?>
            <? endforeach ?>

    <? // Half-sized fieldsets ?>
    <? else: ?>
        <? $fieldListIndex = 0 ?>
        <? foreach ($childLists as $fieldList) : ?>
            <? if(($fieldListIndex % 2) == 0): ?>
                <div class="row">
                    <?= $fieldList ?>
                <? else: ?>
                    <?= $fieldList ?>
                </div> <!-- /.row -->
            <? endif ?>
            <? $fieldListIndex++ ?>
        <? endforeach ?>
    <? endif ?>

    <? // Catch any hidden fields, other fields are not allowed as anchestors ?>
    <? foreach ($item as $field) : ?>
        <? if($field->className == 'HiddenField'): ?>
            <input <?=$field->attributes ?> />
        <? endif ?>
    <? endforeach ?>

<? /****************************************************************************
   /
   / Render fieldset if the parent is also a fieldlist
   /
   *************************************************************************/ ?>
<? elseif ($item->parentIsFieldList()) : ?>
    <? if ($item->getParent()->hasCssClass('vertical')): ?>


        <fieldset class="row">
            <div class="col-xs-12">
                <? if($item->hasTitle()): ?>
                    <legend><?= $item->title ?></legend>
                <? endif ?>

                <? // Field under Field ?>
                <? if (!$item->hasCssClass('horizontal-split')) : ?>
                    <? foreach ($item as $field) : ?>
                        <?= $field ?>
                    <? endforeach ?>

                <? // Rows of two fields ?>
                <? else: ?>
                    <? $fieldCount = count($item) ?>
                    <? $fieldIndex = 0 ?>
                    <? foreach ($item as $field) : ?>
                        <? if($field->className == 'HiddenField'): ?>
                            <input <?=$field->attributes ?> />
                        <? else: ?>
                            <? if(($fieldIndex % 2) == 0): ?>
                                <div class="row">
                                    <span class="col-xs-6"><?= $field ?></span>
                                <? else: ?>
                                    <span class="col-xs-6"><?= $field ?></span>
                                </div> <!-- /.row -->
                            <? endif ?>
                            <? $fieldIndex++ ?>
                        <? endif ?>
                    <? endforeach ?>
                <? endif ?>
            </div>
        </fieldset>


    <? else: ?>
        <fieldset class="col-xs-6">
            <div class="col-xs-12">
                <? if($item->hasTitle()): ?>
                    <legend><?= $item->title ?></legend>
                <? endif ?>
                <? foreach ($item as $field) : ?>
                    <?= $field ?>
                <? endforeach ?>
            </div>
        </fieldset>
    <? endif ?>

<? /****************************************************************************
   /
   / Render just the fields in lines of two fields<commit_msg>Fixed horizontal split groups when parent is fieldlist<commit_after><? /****************************************************************************
   /
   / Tabs Rendering
   /
   *************************************************************************/ ?>
<? if($item->parentIsFieldList() && $item->getParent()->isTabBar()): ?>
    <div class="tab-pane<? if($item->isFirstList()): ?> active<? endif ?>" id="<?= $item->id ?>">
    <? foreach ($item as $field) : ?>
        <?= $field ?>
    <? endforeach ?>
    </div>

<? /****************************************************************************
   /
   / Fieldsets containing other fieldsets
   /
   *************************************************************************/ ?>
<? elseif($childLists = $item->fieldLists()): ?>

    <? $fieldListCount = count($childLists); ?>

    <? // Fieldset under fieldset, when explicit setted or not enough lists ?>
    <? if ($item->hasCssClass('vertical') || $fieldListCount < 2) : ?>
            <? foreach ($childLists as $fieldList) : ?>
                <?= $fieldList ?>
            <? endforeach ?>

    <? // Half-sized fieldsets ?>
    <? else: ?>
        <? $fieldListIndex = 0 ?>
        <? foreach ($childLists as $fieldList) : ?>
            <? if(($fieldListIndex % 2) == 0): ?>
                <div class="row">
                    <?= $fieldList ?>
                <? else: ?>
                    <?= $fieldList ?>
                </div> <!-- /.row -->
            <? endif ?>
            <? $fieldListIndex++ ?>
        <? endforeach ?>
    <? endif ?>

    <? // Catch any hidden fields, other fields are not allowed as anchestors ?>
    <? foreach ($item as $field) : ?>
        <? if($field->className == 'HiddenField'): ?>
            <input <?=$field->attributes ?> />
        <? endif ?>
    <? endforeach ?>

<? /****************************************************************************
   /
   / Render fieldset if the parent is also a fieldlist
   /
   *************************************************************************/ ?>
<? elseif ($item->parentIsFieldList()) : ?>
    <? if ($item->getParent()->hasCssClass('vertical')): ?>


        <fieldset class="row">
            <div class="col-xs-12">
                <? if($item->hasTitle()): ?>
                    <legend><?= $item->title ?></legend>
                <? endif ?>

                <? // Field under Field ?>
                <? if (!$item->hasCssClass('horizontal-split')) : ?>
                    <? foreach ($item as $field) : ?>
                        <?= $field ?>
                    <? endforeach ?>

                <? // Rows of two fields ?>
                <? else: ?>
                    <? $fieldCount = count($item) ?>
                    <? $fieldIndex = 0 ?>
                    <? foreach ($item as $field) : ?>
                        <? if($field->className == 'HiddenField'): ?>
                            <input <?=$field->attributes ?> />
                        <? else: ?>
                            <? if(($fieldIndex % 2) == 0): ?>
                                <div class="row">
                                    <span class="col-xs-6"><?= $field ?></span>
                                <? else: ?>
                                    <span class="col-xs-6"><?= $field ?></span>
                                </div> <!-- /.row -->
                            <? endif ?>
                            <? $fieldIndex++ ?>
                        <? endif ?>
                    <? endforeach ?>
                <? endif ?>
            </div>
        </fieldset>


    <? else: ?>
        <fieldset class="row">
            <? if ($item->hasCssClass('horizontal-split')): ?>
            <? $fieldIndex = 0 ?>
            <? foreach ($item as $field) : ?>
                <? if(($fieldIndex % 2) == 0): ?>
                   <div class="col-xs-6"><?= $field ?></div>
                <? else: ?>
                   <div class="col-xs-6"><?= $field ?></div>
                <? endif ?>
                <? $fieldIndex++ ?>
            <? endforeach ?>
            <? else: ?>
            <div class="col-xs-12">
                <? if($item->hasTitle()): ?>
                    <legend><?= $item->title ?></legend>
                <? endif ?>
                <? foreach ($item as $field) : ?>
                    <?= $field ?>
                <? endforeach ?>
            </div>
            <? endif ?>
        </fieldset>
    <? endif ?>

<? /****************************************************************************
   /
   / Render just the fields in lines of two fields
{'fraction_non_alphanumeric': 0.2872609997696383, 'fraction_numerical': 0.0036857866850956, 'mean_word_length': 1.5088124819416353, 'pattern_counts': {'":': 0, '<': 215, '<?xml version=': 0, '>': 250, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2225469', 'n_tokens_mistral': 2188, 'n_tokens_neox': 2006, 'n_words': 417}