<commit_before><?php

/**
 * @package monolyth
 * @subpackage account
 */

namespace monolyth\account;
use monolyth\core\Post_Form;
use monolyth\User_Access;

class Update_Pass_Form extends Post_Form
{
    use User_Access;

    public function __construct()
    {
        parent::__construct();
        $this->addPassword('old', $this->text('./old'))
             ->isRequired()
             ->isEqualTo(self::user()->pass(), self::user()->salt());
        $this->addPassword('new', $this->text('./new'))
             ->isRequired()
             ->differsFromField($this, 'old');
        $this->addPassword('new2', $this->text('./new2'))
             ->isRequired()
             ->matchesField($this, 'new');
        $this->addButton(self::BUTTON_SUBMIT, $this->text('./submit'));
        return parent::prepare();
    }
}

<commit_msg>better naming<commit_after><?php

/**
 * @package monolyth
 * @subpackage account
 */

namespace monolyth\account;
use monolyth\core\Post_Form;
use monolyth\User_Access;

class Update_Pass_Form extends Post_Form
{
    use User_Access;

    public function __construct()
    {
        parent::__construct();
        $this->addPassword('old', $this->text('./old'))
             ->isRequired()
             ->isEqualTo(self::user()->pass(), self::user()->salt());
        $this->addPassword('new', $this->text('./new'))
             ->isRequired()
             ->differsFromField($this, 'old');
        $this->addPassword('confirm', $this->text('./confirm'))
             ->isRequired()
             ->matchesField($this, 'new');
        $this->addButton(self::BUTTON_SUBMIT, $this->text('./submit'));
        return parent::prepare();
    }
}


{'fraction_non_alphanumeric': 0.18951132300357568, 'fraction_numerical': 0.0011918951132300357, 'mean_word_length': 2.665938864628821, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, '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': '7560751', 'n_tokens_mistral': 498, 'n_tokens_neox': 496, 'n_words': 81}