<commit_before>.stacked-form(
  class='js-settings-password--toggleable'
)
  label.avant-garde-form-label
    | Current Password
  input.bordered-input(
    name='decoy-password'
    type='password'
    value='●●●●●●●'
    disabled
  )

  hr.is-invisible

  a.avant-garde-button-white(
    class='js-settings-password__toggle'
  ) Create New Password

//- Initially hidden
form.settings-password__form.stacked-form(
  class='js-settings-password--toggleable'
)
  .form-errors.js-form-errors
    //- Rendered client-side

  if user.get('has_password')
    label.avant-garde-form-label( for='current-password' )
      | Current Password
    input.bordered-input(
      id='current-password'
      name='current_password'
      type='password'
      autocomplete='on'
      pattern='.{8,}'
      title='8 characters minimum'
      autofocus
      required
    )
  else
    input.bordered-input(
      id='current-password'
      name='current_password'
      type='hidden'
      value=''
    )

  label.avant-garde-form-label( for='new_password' )
    | New Password
  input.bordered-input(
    id='new_password'
    name='new_password'
    type='password'
    autocomplete='on'
    pattern='.{8,}'
    title='8 characters minimum'
    required
  )

  label.avant-garde-form-label( for='password_confirmation' )
    | Repeat New Password
  input.bordered-input(
    id='password_confirmation'
    name='password_confirmation'
    type='password'
    autocomplete='on'
    pattern='.{8,}'
    title='8 characters minimum'
    required
  )

  button.avant-garde-button-black
    | Save Changes

  a.avant-garde-button-white(
    class='js-settings-password__toggle'
  ) Cancel<commit_msg>fix(settings): removes validation for existing password input<commit_after>.stacked-form(
  class='js-settings-password--toggleable'
)
  label.avant-garde-form-label
    | Current Password
  input.bordered-input(
    name='decoy-password'
    type='password'
    value='●●●●●●●'
    disabled
  )

  hr.is-invisible

  a.avant-garde-button-white(
    class='js-settings-password__toggle'
  ) Create New Password

//- Initially hidden
form.settings-password__form.stacked-form(
  class='js-settings-password--toggleable'
)
  .form-errors.js-form-errors
    //- Rendered client-side

  if user.get('has_password')
    label.avant-garde-form-label( for='current-password' )
      | Current Password
    input.bordered-input(
      id='current-password'
      name='current_password'
      type='password'
      autocomplete='current-password'
      autofocus
      required
    )
  else
    input.bordered-input(
      id='current-password'
      name='current_password'
      type='hidden'
      value=''
    )

  label.avant-garde-form-label( for='new_password' )
    | New Password
  input.bordered-input(
    id='new_password'
    name='<PASSWORD>_password'
    type='password'
    autocomplete='new-password'
    pattern='.{8,}'
    title='8 characters minimum'
    required
  )

  label.avant-garde-form-label( for='password_confirmation' )
    | Repeat New Password
  input.bordered-input(
    id='password_confirmation'
    name='password_confirmation'
    type='password'
    autocomplete='new-password'
    pattern='.{8,}'
    title='8 characters minimum'
    required
  )

  button.avant-garde-button-black
    | Save Changes

  a.avant-garde-button-white(
    class='js-settings-password__toggle'
  ) Cancel
{'fraction_non_alphanumeric': 0.13243084167157151, 'fraction_numerical': 0.002942907592701589, 'mean_word_length': 3.0512514898688914, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '410944', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1113, 'n_words': 163}