<commit_before><?php

class BasesfGuardFormRegister extends sfForm
{
  public function configure()
  {
    $this->setWidgets(array(
      'username' => new sfWidgetFormInput(),
      'email_address' => new sfWidgetFormInput(),
      'password' => new sfWidgetFormInputPassword(),
      'password_confirmation' => new sfWidgetFormInputPassword(),
    ));

    $this->setValidators(array(
      'username' => new sfValidatorDoctrineUnique(array('trim' => true, 'model' => 'sfGuardUser', 'column' => 'username'), array('required' => 'Your username is required.', 'invalid' => 'This username already exists. Please choose another one.')),
      'email_address' => new sfValidatorEmail(array('trim' => true), array('required' => 'Your e-mail address is required.', 'invalid' => 'The email address is invalid.')),
      'password' => new sfValidatorString(array(), array('required' => 'Your password is required.')),<commit_msg>sfGuardExtraPlugin: fix form register validation<commit_after><?php

class BasesfGuardFormRegister extends sfForm
{
  public function configure()
  {
    $this->setWidgets(array(
      'username' => new sfWidgetFormInput(),
      'email_address' => new sfWidgetFormInput(),
      'password' => new sfWidget<PASSWORD>InputPassword(),
      'password_confirmation' => new sfWidgetFormInputPassword(),
    ));

    $this->setValidators(array(
      'username' => new sfValidatorAnd(array(
        new sfValidatorString(array('trim' => true), array('required' => 'Your username is required.')),
        new sfValidatorDoctrineUnique(array('trim' => true, 'model' => 'sfGuardUser', 'column' => 'username'), array('invalid' => 'This username already exists. Please choose another one.')),
      # see ticket http://trac.symfony-project.org/ticket/4046
      ), array(), array('required' => 'Your username is required.')),
      'email_address' => new sfValidatorAnd(array(
        new sfValidatorEmail(array('trim' => true), array('required' => 'Your e-mail address is required.', 'invalid' => 'The email address is invalid.')),
        new sfValidatorDoctrineUnique(array('trim' => true, 'model' => 'sfGuardUser', 'column' => 'email'), array('invalid' => 'This email already exists. Please choose another one.')),
      # see ticket http://trac.symfony-project.org/ticket/4046
      ), array(), array('required' => 'Your e-mail address is required.')),
      'password' => new sfValidatorString(array(), array('required' => 'Your password is required.')),
{'fraction_non_alphanumeric': 0.16059870550161812, 'fraction_numerical': 0.003236245954692557, 'mean_word_length': 4.582392776523702, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 47, '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': '4221798', 'n_tokens_mistral': 684, 'n_tokens_neox': 667, 'n_words': 181}