<commit_before>section.col-xs-12.content(ng-controller="SecurityCtrl")
  .row(ng-show='connected')
    .col-xs-12(ng-hide="isUnlocked")
      .auth-attention.sessionUnlock
        h5(l10n) Active Session Timeout
        .status(l10n) To view or edit your security settings, you must currently have an active session.
        .row
          .col-xs-12.col-sm-5
            form(ng-submit="restoreSession()")
              label(for="sessionPassword", l10n) Password
              input.form-control#sessionPassword(type="password",
              name="sessionPassword", ng-model="sessionPassword", rp-focus)
              button.btn.btn-primary.btn-block(type="submit", ng-disabled="isConfirming",
              rp-spinner="{{isConfirming ? 4 : null}}")
                span(l10n) Restore Session
      .alert.alert-danger(ng-show="unlockError")
        span(l10n) Entered password is wrong.
    div.col-xs-12(ng-show="'web' === client && !loadingAccount && !account.Balance && loadState.account && connected")
      include banner/unfunded
    .col-sm-12.error-wrapper
      .alert.alert-danger(ng-show="error", ng-switch on="error")
        span(ng-switch-when="wrongpassword", l10n)
          | Entered password is wrong.
        span(ng-switch-when="cantlogin", l10n)
          | Your Ripple password has been changed, please login again
        span(ng-switch-default, l10n)
          | Couldn't change your Ripple password, please try again later.  
    .col-sm-12.notification-wrapper
      .alert.alert-warning(ng-show="loading", l10n) Changing your Ripple password...
      .alert.alert-success(ng-show="success", l10n) Your Ripple password has been changed successfully.
      .alert.alert-danger(ng-show="invalidToken", l10n) The verification code is invalid.
      .alert.alert-success(ng-show="enableSuccess", l10n) Two-factor authentication has been successfully enabled.
      .alert.alert-success(ng-show="disableSuccess", l10n) Two-factor authentication has been successfully disabled.  
    .col-sm-4.col-md-3.col-xs-12(ng-show="isUnlocked")
      include settings/navbar
    .col-sm-8.col-md-9.col-xs-12.list(ng-show="isUnlocked")
      .showSecurity(ng-show="settingsPage == 'security'")
        div(ng-show="'web' === client")
          h4(l10n) Security settings
          .section
            .descriptor(l10n) Ripple password
            .row
              .col-xs-9.col-sm-8.col-md-6 *****************
              .col-xs-3.col-sm-4.col-md-6
                a(href="", ng-click="openFormPassword=!openFormPassword"
                ng-hide="openFormPassword", l10n) edit
            .row
              
              .auth-form-container.col-xs-12.col-md-8.col-lg-6
                form#renameForm(name="changeForm", ng-show="openFormPassword", ng-submit="changePassword()")
                  .form-group
                    label(type="password", for='password', l10n) Current password
                    input.form-control#password(type="password", name="password"
                    rp-focus, ng-model="password", required)
                  .form-group(ng-class="{'field-error': 'weak' === strength || 'match' === strength}")
                    label(for='change_password', l10n) New password
                    input.form-control(
                    name='change_password1', type='password', autocomplete="off"
                    ng-model="password1"
                    rp-strong-password, required, rp-same-in-set="passwordSet")
                    p(ng-show="strength=='weak'")
                      span(l10n) Your password is weak. It does not contain numbers and symbols or it is too short.
                    p(ng-show="strength=='match'")
                      span(l10n) Your Ripple address and password cannot match. Please create a new password.
                  .form-group(ng-class="{'field-error': changeForm.change_password1.$error.rpSameInSet && changeForm.change_password2.$dirty}")
                    label(for='change_password2', l10n) Confirm password
                    input.form-control(
                    name='change_password2', autocomplete="off"
                    type='password'
                    ng-model="password2"
                    required, rp-same-in-set="passwordSet")
                    p(ng-show="changeForm.change_password1.$error.rpSameInSet && changeForm.change_password2.$dirty")
                      span(l10n) Passwords do not match
                  div(ng-show="")
                    .form-group
                      div(class="strength {{strength}}") {{strength}}
                  .row
                    .col-xs-6.col-sm-6
                      button.btn.btn-success.btn-block(type="submit"
                      ng-disabled="changeForm.$invalid || loading")
                        span(ng-hide="loading", l10n) Submit
                        span(ng-show="loading", l10n) Loading...
                    .col-xs-6.col-sm-6
                      a.btn.btn-block.btn-cancel(href="", ng-click="openFormPassword=!openFormPassword", l10n) cancel
          .section
            .descriptor(l10n) Secret key
            .row
            label(l10n) Your secret key unlocks access to your account funds. Please write it down and store it
                |  somewhere private and safe. In the event you lose your Ripple name or password, you can use this secret
                |  key to recover your funds.
            .row
              .col-xs-9.col-sm-8.col-md-6
                span.value(ng-show="security.master_seed") {{security.master_seed}}
                span.value(ng-hide="security.master_seed") ••••••••••••••••••••••••••••••••••••••••••••
              .col-xs-3.col-sm-4.col-md-3
                a(href="", ng-click="unmaskSecret()", ng-hide="security.master_seed", l10n) Show
                a(href="", ng-click="security.master_seed = null", ng-show="security.master_seed", l10n) Hide
          .descriptor(l10n) Password protection for transactions
          .row
            .col-xs-12
              .description(l10n) If you turn off password requests, you’ll still need to enter your password after each page refresh.
              div.helperInput
                form(name="persistUnlock", ng-submit="setPasswordProtection()")
                  .row(ng-hide="editUnlock")
                    .col-xs-6.col-sm-5.col-md-4
                      .description Require password
                    .col-xs-3.col-sm-3.col-md-2
                      div.description
                        div(ng-show="requirePassword", l10n) Yes
                        div(ng-hide="requirePassword", l10n) No
                    .col-xs-3.col-sm-4.col-md-6
                      div.description
                        a(href="", id='edit', ng-click="editUnlock = true", l10n) edit
                  .row(ng-show="editUnlock", class="edit-security-pswd")
                    .col-xs-6.col-sm-5.col-md-4
                      .description Require password
                    .col-xs-6.col-sm-3.col-md-2
                      div.helperInput.description
                        label
                          input(type="checkbox", name="unlock", ng-checked='requirePassword', ng-click="requirePasswordChanged = true")
                    .col-xs-12.col-sm-4.col-md-4.save-btn-wrapper
                      .description
                        button.btn.btn-block.btn-success.btn-xs.submit(id='save', type='submit'
                        ng-disabled='serverForm.$invalid', l10n) Save<commit_msg>[FIX] Security: Show secret key<commit_after>section.col-xs-12.content(ng-controller="SecurityCtrl")
  .row(ng-show='connected')
    .col-sm-4.col-md-3.col-xs-12(ng-show="isUnlocked")
      include settings/navbar
    .col-sm-8.col-md-9.col-xs-12.list(ng-show="isUnlocked")
      .showSecurity(ng-show="settingsPage == 'security'")
        div
          h4(l10n) Security settings
          .section
            .descriptor(l10n) Secret key
            .row
            label(l10n) Your secret key unlocks access to your account funds. Please write it down and store it
                |  somewhere private and safe. In the event you lose your password, you can use this secret
                |  key to recover your funds.
            .row
              .col-xs-9.col-sm-8.col-md-6
                span.value(ng-show="security.master_seed") {{security.master_seed}}
                span.value(ng-hide="security.master_seed") ••••••••••••••••••••••••••••••••••••••••••••
              .col-xs-3.col-sm-4.col-md-3
                a(href="", ng-click="unmaskSecret()", ng-hide="security.master_seed", l10n) Show
                a(href="", ng-click="security.master_seed = null", ng-show="security.master_seed", l10n) Hide
{'fraction_non_alphanumeric': 0.1379706152433425, 'fraction_numerical': 0.01962809917355372, 'mean_word_length': 1.8746288353678653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5871798', 'n_tokens_mistral': 2647, 'n_tokens_neox': 2486, 'n_words': 467}