<commit_before>section.col-xs-12.content(ng-controller="RegisterCtrl")

  .row.auth-form-container.col-sm-offset-2.col-sm-8.col-md-offset-3.col-md-6(ng-show='mode=="register_new_account"')
    .auth-form-wrapper
      h2(l10n) Create new account

      .form-group
        a.btn.btn-block.btn-link(ng-click='goTo("/login")', l10n) Open existing account

      .form-group
        a.btn.btn-block.btn-default(ng-click='fileInputClick()', l10n) Create an empty account

      .form-group
        a.btn.btn-block.btn-default(ng-click='mode="register_with_secret"', l10n) Create a new account with a secret key

  .row.auth-form-container.col-sm-offset-2.col-sm-8.col-md-offset-3.col-md-6(ng-show='mode=="register_empty_wallet"')
    .auth-form-wrapper
      h2(l10n) Create empty account

      p(l10n) Encrypt your new account file: {{walletfile}}

      form(name='registerForm', ng-submit='submitForm()')

        label.hide(for='register_password', l10n) Wallet file

        .form-group(ng-class="{'field-error': 'weak' === strength}")
          label(for='register_password', l10n) Password
          input.form-control#register_password(
          name='register_password1', type='password', autocomplete="off"
          ng-model="password1"
          rp-strong-password, required, rp-same-in-set="passwordSet", rp-focus)
          p(ng-show="strength=='weak'")
            span(l10n) Your password is weak. It is not a mix of letters, numbers and symbols.
        .form-group(ng-class="{'field-error': registerForm.register_password1.$error.rpSameInSet && registerForm.register_password2.$dirty}")
            label(for='register_password2', l10n) Confirm password
            input.form-control#register_password2(
            name='<PASSWORD>_password2', autocomplete="off"
            type='password'
            ng-model="<PASSWORD>"
            required, rp-same-in-set="passwordSet")
            p(ng-show="registerForm.register_password1.$error.rpSameInSet && registerForm.register_password2.$dirty")
              span(l10n) Passwords do not match<commit_msg>[TASK] Back button on new account creation page (DC-126)<commit_after>section.col-xs-12.content(ng-controller="RegisterCtrl")

  .row.auth-form-container.col-sm-offset-2.col-sm-8.col-md-offset-3.col-md-6(ng-show='mode=="register_new_account"')
    .auth-form-wrapper
      h2(l10n) Create new account

      .form-group
        a.btn.btn-block.btn-link(ng-click='goTo("/login")', l10n) Open existing account

      .form-group
        a.btn.btn-block.btn-default(ng-click='fileInputClick()', l10n) Create an empty account

      .form-group
        a.btn.btn-block.btn-default(ng-click='mode="register_with_secret"', l10n) Create a new account with a secret key
    .row
      button.btn.btn-block.btn-cancel(ng-click='goTo("/login")', l10n) Back to home

  .row.auth-form-container.col-sm-offset-2.col-sm-8.col-md-offset-3.col-md-6(ng-show='mode=="register_empty_wallet"')
    .auth-form-wrapper
      h2(l10n) Create empty account

      p(l10n) Encrypt your new account file: {{walletfile}}

      form(name='registerForm', ng-submit='submitForm()')

        label.hide(for='register_password', l10n) Wallet file

        .form-group(ng-class="{'field-error': 'weak' === strength}")
          label(for='register_password', l10n) Password
          input.form-control#register_password(
          name='register_password1', type='password', autocomplete="off"
          ng-model="<PASSWORD>"
          rp-strong-password, required, rp-same-in-set="passwordSet", rp-focus)
          p(ng-show="strength=='weak'")
            span(l10n) Your password is weak. It is not a mix of letters, numbers and symbols.
        .form-group(ng-class="{'field-error': registerForm.register_password1.$error.rpSameInSet && registerForm.register_password2.$dirty}")
            label(for='register_password2', l10n) Confirm password
            input.form-control#register_password2(
            name='register_password2', autocomplete="off"
            type='password'
            ng-model="<PASSWORD>"
            required, rp-same-in-set="passwordSet")
            p(ng-show="registerForm.register_password1.$error.rpSameInSet && registerForm.register_password2.$dirty")
              span(l10n) Passwords do not match
{'fraction_non_alphanumeric': 0.14793175975695255, 'fraction_numerical': 0.021032951624211264, 'mean_word_length': 3.1553398058252426, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1986574', 'n_tokens_mistral': 1412, 'n_tokens_neox': 1360, 'n_words': 217}