<commit_before><?php
$options->setDefault('button', __('Send'));
$options->setDefault('url', url_for(sfContext::getInstance()->getRouting()->getCurrentInternalUri()));
$options->setDefault('method','post');
?>

<?php if ($options['form'] instanceof opAuthRegisterForm): ?>
<?php echo $options['form']->renderFormTag($options['url'], array('method' => $options['method'])) ?>
<?php $forms = $options['form']->getAllForms() ?>
<?php else: ?>
<form action="<?php echo $options['url'] ?>" method="<?php echo $options['method'] ?>">
<?php $forms = ($options['form'] instanceof sfForm) ? array($options['form']): $options['form'] ?>
<?php endif; ?>
<?php include_customizes($id, 'formTop') ?>
<?php foreach ($forms as $form): ?>
<?php if ($form->hasGlobalErrors()): ?>
<?php echo $form->renderGlobalErrors(); ?>
<?php endif; ?>
<?php echo $form->renderHiddenFields() ?>
<?php
foreach ($form as $field)
{
  if ($field->isHidden()) continue;

  $attributes = array();
  $widget = $field->getWidget();<commit_msg>fixed _partsForm on the mobile_frontend, for global erros<commit_after><?php
$options->setDefault('button', __('Send'));
$options->setDefault('url', url_for(sfContext::getInstance()->getRouting()->getCurrentInternalUri()));
$options->setDefault('method','post');
?>

<?php if ($options['form'] instanceof opAuthRegisterForm): ?>
<?php echo $options['form']->renderFormTag($options['url'], array('method' => $options['method'])) ?>
<?php $forms = $options['form']->getAllForms() ?>
<?php else: ?>
<form action="<?php echo $options['url'] ?>" method="<?php echo $options['method'] ?>">
<?php $forms = ($options['form'] instanceof sfForm) ? array($options['form']): $options['form'] ?>
<?php endif; ?>
<?php include_customizes($id, 'formTop') ?>
<?php foreach ($forms as $form): ?>
<?php if ($form->hasGlobalErrors()): ?>
<?php echo $form->renderGlobalErrors() ?><br><br>
<?php endif; ?>
<?php echo $form->renderHiddenFields() ?>
<?php
foreach ($form as $field)
{
  if ($field->isHidden()) continue;

  $attributes = array();
  $widget = $field->getWidget();
{'fraction_non_alphanumeric': 0.2515784361340457, 'fraction_numerical': 0.0, 'mean_word_length': 8.11504424778761, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 63, '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': '124464', 'n_tokens_mistral': 626, 'n_tokens_neox': 629, 'n_words': 143}