<commit_before><?php
  use_helper('Form', 'Validation');
  $sf_request->setParameter('_homeFooter', true);
?>

<h2>Register an account</h2>

<p>
  Your email is NOT shared with any other service.<br/>
  <em>Please use a valid email so you can retrieve your password if you forget it!</em> 
</p>

<?php //DBG::request() ?>

<div class="padded-box-inset mb-1" style="max-width:380px">

<?php 
    echo form_errors();
      
    echo form_tag('account/create', array('class'=>'', 'autocomplete' => 'false'));

    echo _bs_form_group(
      _bs_input_text('username', array('label' => 'Username'))
    );

    echo _bs_form_group(
      _bs_input_email('email', array('label' => 'Email', 'autocomplete' => 'email'))
    );

    echo _bs_form_group(
      _bs_input_password('password', array('label' => 'Password', 'autocomplete' => '<PASSWORD>'))
    );

    echo _bs_form_group(
      _bs_input_password('<PASSWORD>', array('label' => '<PASSWORD>', 'autocomplete' => '<PASSWORD>'))
    );

    echo _bs_form_group(
      _bs_input_text('location', array(
        'label'     => 'Where do you live?',
        'optional'  => true,
        'helptext'  => 'Eg. "Tokyo, Japan" or just "Japan"',
        'autocomplete' => 'off'
      ))
    );

    echo _bs_form_group(
      array('class' => 'form-section' /*, 'style' => 'background:#eeeaab;'*/),

      _bs_input_text('question', array(
        'label'     => 'What is the capital of Japan?',
        'helptext'  => '(Help us stop spam!)',
        'autocomplete' => 'off'
      ))
    );
?>
    <p>If you are stuck you can <?php echo link_to('request an account', '@contact') ?></p>
<?php
    echo _bs_form_group(
      _bs_submit_tag('Create Account')
    );
<commit_msg>Visually separate security question in signup form, may reduce confusion<commit_after><?php
  use_helper('Form', 'Validation');
  $sf_request->setParameter('_homeFooter', true);
?>

<h2>Register an account</h2>

<p>
  Your email is NOT shared with any other service.<br/>
  <em>Please use a valid email so you can retrieve your password if you forget it!</em> 
</p>

<?php //DBG::request() ?>

<div class="padded-box-inset mb-1" style="max-width:380px">

<?php 
    echo form_errors();
      
    echo form_tag('account/create', array('class'=>'', 'autocomplete' => 'false'));

    echo _bs_form_group(
      _bs_input_text('username', array('label' => 'Username'))
    );

    echo _bs_form_group(
      _bs_input_email('email', array('label' => 'Email', 'autocomplete' => 'email'))
    );

    echo _bs_form_group(
      _bs_input_password('password', array('label' => 'Password', 'autocomplete' => '<PASSWORD>'))
    );

    echo _bs_form_group(
      _bs_input_password('<PASSWORD>', array('label' => '<PASSWORD> password', 'autocomplete' => '<PASSWORD>'))
    );

    echo _bs_form_group(
      array(
        'style'     => 'margin-bottom:0'
      ),
      _bs_input_text('location', array(
        'label'     => 'Where do you live?',
        'optional'  => true,
        'helptext'  => 'Eg. "Tokyo, Japan" or just "Japan"',
        'autocomplete' => 'off'
      ))
    );
?>
</div><!-- /padded-box -->

<div class="padded-box-inset mb-1" style="max-width:380px">
<?php
    echo _bs_form_group(
      array('class' => 'form-section' /*, 'style' => 'background:#eeeaab;'*/),

      _bs_input_text('question', array(
        'label'     => 'What is the capital of Japan?',
        'helptext'  => '(Help us stop spam!)',
        'autocomplete' => 'off'
      ))
    );
?>
    <p>If you are stuck you can <?php echo link_to('request an account', '@contact') ?></p>

</div><!-- /padded-box -->

<div class="padded-box-inset mb-1" style="max-width:380px">
<?php

    echo _bs_form_group(
      _bs_submit_tag('Create Account')
    );

{'fraction_non_alphanumeric': 0.18545163868904876, 'fraction_numerical': 0.005595523581135092, 'mean_word_length': 3.19910514541387, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 85, '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': '7585962', 'n_tokens_mistral': 1308, 'n_tokens_neox': 1274, 'n_words': 294}