<commit_before><div <?php echo $view['form']->block($form, 'widget_container_attributes') ?> class="btn-group btn-block" data-toggle="buttons">
    <?php foreach ($form as $child): ?>
        <?php $class =
            (!empty($child->vars['checked']) ? ' active' : '') .
            (!empty($child->vars['disabled']) || !empty($child->vars['read_only']) ? ' disabled' : ''); ?>
        <label class="btn btn-default<?php echo $class; ?>">
            <?php echo $view['form']->widget($child); ?>
            <?php echo $view['translator']->trans($child->vars['label']); ?>
        </label>
    <?php endforeach; ?>
</div><commit_msg>Pass form attr to radio for button group<commit_after><?php
//apply attributes to radios
$attr = $form->vars['attr'];
?>
<div class="btn-group btn-block" data-toggle="buttons">
    <?php foreach ($form as $child): ?>
        <?php $class =
            (!empty($child->vars['checked']) ? ' active' : '') .
            (!empty($child->vars['disabled']) || !empty($child->vars['read_only']) ? ' disabled' : ''); ?>
        <label class="btn btn-default<?php echo $class; ?>">
            <?php echo $view['form']->widget($child, array('attr' => $attr)); ?>
            <?php echo $view['translator']->trans($child->vars['label']); ?>
        </label>
    <?php endforeach; ?>
</div>
{'fraction_non_alphanumeric': 0.24143183549124142, 'fraction_numerical': 0.0, 'mean_word_length': 3.2524271844660193, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 40, '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': '4440233', 'n_tokens_mistral': 387, 'n_tokens_neox': 386, 'n_words': 81}