<commit_before>{{#nypr-card classNames="nypr-password-card" title="Password" edit=(action (mut isEditing) true)}}
  {{#unless isEditing}}
    {{nypr-input
      label='Password'
      fieldname='password'
      value='********'
      disabled=true
    }}
  {{else}}
    {{nypr-input
      label='Current Password'
      type='password'
      fieldname='currentPassword'
      value=changeset.currentPassword
      errors=changeset.error.currentPassword.validation
      placeholder='Enter your current password'
      helplinkUrl=(and changeset.error.currentPassword helplinkUrl)
      helplinkText=helplinkText
    }}
    {{nypr-input
      label='New Password'
      type='password'
      fieldname='newPassword'
      value=changeset.newPassword
      errors=changeset.error.newPassword.validation
      placeholder='Enter your new password'
    }}
  {{/unless}}

  {{#if isEditing}}
  <div class="nypr-account-footer">
    <div class="nypr-account-footer-wrapper">
      <button
        class="nypr-account-cancel"
        data-test-selector="rollback"
        {{action 'rollback' changeset}}>Cancel</button>
        
      <button
        class="nypr-account-confirm"
        data-test-selector="save"
        {{action 'save' changeset}}>Save</button>
    </div>
  </div>
  {{/if}}
{{/nypr-card}}<commit_msg>adds new password clue<commit_after>{{#nypr-card classNames="nypr-password-card" title="Password" edit=(action (mut isEditing) true)}}
  {{#unless isEditing}}
    {{nypr-input
      label='Password'
      fieldname='password'
      value='********'
      disabled=true
    }}
  {{else}}
    {{nypr-input
      label='Current Password'
      type='password'
      fieldname='currentPassword'
      value=changeset.currentPassword
      errors=changeset.error.currentPassword.validation
      placeholder='Enter your current password'
      helplinkUrl=(and changeset.error.currentPassword helplinkUrl)
      helplinkText=helplinkText
    }}
    {{nypr-input
      label='New Password'
      type='password'
      fieldname='newPassword'
      value=changeset.newPassword
      errors=changeset.error.newPassword.validation
      placeholder='Enter your new password'
      clue='must be at least 8 characters and 1 number'
    }}
  {{/unless}}

  {{#if isEditing}}
  <div class="nypr-account-footer">
    <div class="nypr-account-footer-wrapper">
      <button
        class="nypr-account-cancel"
        data-test-selector="rollback"
        {{action 'rollback' changeset}}>Cancel</button>
        
      <button
        class="nypr-account-confirm"
        data-test-selector="save"
        {{action 'save' changeset}}>Save</button>
    </div>
  </div>
  {{/if}}
{{/nypr-card}}
{'fraction_non_alphanumeric': 0.14232627276105536, 'fraction_numerical': 0.0007432181345224824, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '4906558', 'n_tokens_mistral': 817, 'n_tokens_neox': 803, 'n_words': 139}