<commit_before>ruby:
  modal ||= false
  form ||= :login
  method ||= :post
  html_form_id ||= "#{modal ? 'modal' : 'page'}-#{form}-form"

= form_for(resource, as: resource_name, url: url,
    html: { method: method, id: html_form_id }) do |f|

  - unless modal
    legend = title
    = render 'devise/shared/error_messages'

  .fieldset
    .form-group
      = f.label :email, class: 'control-label'
      = f.email_field :email, autofocus: true, class: 'form-control'

    - if devise_mapping.confirmable? && resource.pending_reconfirmation?
        p Currently waiting confirmation for: <%= resource.unconfirmed_email

    .form-group
      = f.label :password, class: 'control-label'
      - if form == :edit
        em.small
          |  (leave blank if you don't want to change it)
      - if form == :signup
        em.small
          |  (
          = minimum_password_length
          '  characters minimum)
      = f.password_field :password, autocomplete: 'off', class: 'form-control'

    - if form == :signup || form == :edit
      .form-group
        = f.label :password_confirmation, class: 'control-label'
        = f.password_field :password_confirmation, autocomplete: 'off', class: 'form-control'

    - if form == :edit
      .form-group
        = f.label :current_password, class: 'control-label'
        em.small
          |  (we need your current password to confirm your changes)
        = f.password_field :current_password, autocomplete: 'off', class: 'form-control'

    - if devise_mapping.rememberable? && form == :login
      .form-group.checkbox
        = f.label :remember_me do
          = f.check_box :remember_me
          | Remember me

    - if form == :signup
      .form-group
        p
          ' By clicking the Sign Up button below you are agreeing to Wheaton's Law,
          ' don't be a dick.

    .form-group
       = f.submit title, class: 'btn btn-primary form-control'

- unless modal
  = render 'devise/shared/links', form: form<commit_msg>Rearrangement of Devise form elements<commit_after>ruby:
  modal ||= false
  form ||= :login
  method ||= :post
  html_form_id ||= "#{modal ? 'modal' : 'page'}-#{form}-form"

= form_for(resource, as: resource_name, url: url,
    html: { method: method, id: html_form_id }) do |f|

  - unless modal
    legend = title
    = render 'devise/shared/error_messages'

  .fieldset
    .form-group
      = f.label :email, class: 'control-label'
      = f.email_field :email, autofocus: true, class: 'form-control'

    - if devise_mapping.confirmable? && resource.pending_reconfirmation?
        p Currently waiting confirmation for: <%= resource.unconfirmed_email

    .form-group
      = f.label :password, class: 'control-label'
      - if form == :edit
        em.small
          |  (leave blank if you don't want to change it)
      - if form == :signup
        em.small
          |  (
          = minimum_password_length
          '  characters minimum)
      = f.password_field :password, autocomplete: 'off', class: 'form-control'

    - if form == :signup || form == :edit
      .form-group
        = f.label :password_confirmation, class: 'control-label'
        = f.password_field :password_confirmation, autocomplete: 'off', class: 'form-control'

    - if form == :edit
      .form-group
        = f.label :current_password, class: 'control-label'
        em.small
          |  (we need your current password to confirm your changes)
        = f.password_field :current_password, autocomplete: 'off', class: 'form-control'

    - if devise_mapping.rememberable? && form == :login
      .form-group.checkbox
        = f.label :remember_me do
          = f.check_box :remember_me
          | Remember me

    .form-group.actions
      - if form == :signup
        p
          ' By clicking the Sign Up button below you are agreeing to Wheaton's Law,
          ' don't be a dick.
      .form-group
        = f.submit title, class: 'btn btn-primary form-control'

- unless modal
  = render 'devise/shared/links', form: form
{'fraction_non_alphanumeric': 0.11983059292476334, 'fraction_numerical': 0.0, 'mean_word_length': 2.3853288364249576, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4027473', 'n_tokens_mistral': 1265, 'n_tokens_neox': 1217, 'n_words': 339}