<commit_before>= content_for(:content) do
  .card
    = form_tag user_session_path, :id => 'login_form', :method => "post", :remote=>true do
      %fieldset.primary
        = label_tag :username, get_string(:username)
        = text_field_tag :username, params[:username], :class => 'username', :id => "username"
      %fieldset.primary
        = label_tag :password, get_string(:password)
        = password_field_tag :password, params[:password], :class => 'password', :id => 'password-input'
      - if !@disable_password_recovery
        %div.group.secondary_actions
          %span
            != get_string(:recovery_link) % [link_to(get_string(:username), '#', :id => "username_link"), 
                                            link_to(get_string(:password), '#', :id => "password_link")]
      = submit_tag get_string(:login), :class => "button fr", :id => 'login_btn', :remote=>true
      .spinner
  - if !@disable_password_recovery
    .card_container#password_recovery_container
      .card
        %p 
          = get_string(:password_unknown_info)
          %a{ :id => "password_return_link", :href => "#" }
            = get_string(:return_to_login)
        = form_tag password_resets_path, :method => :post, :id => "password_recovery_form", :remote => true do
          %fieldset.primary
            = label_tag :username, get_string(:username)
            = text_field_tag :username, params[:username]
          %fieldset.primary
            = label_tag :email, get_string(:email_address)
            = text_field_tag :email, params[:email]
          %div.group.secondary_actions
            %span
          = submit_tag get_string(:reset_password), :class => 'button fr'
    .card_container#username_recovery_container
      .card
        %p 
          = get_string(:login_unknown_info)
          %a{ :id => "username_return_link", :href => "#" }
            = get_string(:return_to_login)
        = form_tag email_logins_password_resets_path, :method => :get, :id => "login_recovery_form", :remote => true do
          %fieldset.primary
            = label_tag :email, get_string(:email_address)
            = text_field_tag :email, params[:email]
          %fieldset.primary.hidden
          %div.group.secondary_actions
            %span
          = submit_tag get_string(:send_login), :class => 'button fr'
    - if @org_interstitial
      .card_container#org_switcher
        .card
          %h2 #{_("Choose an Organization")}
          = render :partial => "/layouts/org"


= render :file => "layouts/converge-ui/user_session_layout"
<commit_msg>Fix for submit remote true not being necessary.<commit_after>= content_for(:content) do
  .card
    = form_tag user_session_path, :id => 'login_form', :method => "post", :remote=>true do
      %fieldset.primary
        = label_tag :username, get_string(:username)
        = text_field_tag :username, params[:username], :class => 'username', :id => "username"
      %fieldset.primary
        = label_tag :password, get_string(:password)
        = password_field_tag :password, params[:password], :class => 'password', :id => '<PASSWORD>'
      - if !@disable_password_recovery
        %div.group.secondary_actions
          %span
            != get_string(:recovery_link) % [link_to(get_string(:username), '#', :id => "username_link"), 
                                            link_to(get_string(:password), '#', :id => "password_link")]
      = submit_tag get_string(:login), :class => "button fr", :id => 'login_btn'
      .spinner
  - if !@disable_password_recovery
    .card_container#password_recovery_container
      .card
        %p 
          = get_string(:password_unknown_info)
          %a{ :id => "password_return_link", :href => "#" }
            = get_string(:return_to_login)
        = form_tag password_resets_path, :method => :post, :id => "password_recovery_form", :remote => true do
          %fieldset.primary
            = label_tag :username, get_string(:username)
            = text_field_tag :username, params[:username]
          %fieldset.primary
            = label_tag :email, get_string(:email_address)
            = text_field_tag :email, params[:email]
          %div.group.secondary_actions
            %span
          = submit_tag get_string(:reset_password), :class => 'button fr'
    .card_container#username_recovery_container
      .card
        %p 
          = get_string(:login_unknown_info)
          %a{ :id => "username_return_link", :href => "#" }
            = get_string(:return_to_login)
        = form_tag email_logins_password_resets_path, :method => :get, :id => "login_recovery_form", :remote => true do
          %fieldset.primary
            = label_tag :email, get_string(:email_address)
            = text_field_tag :email, params[:email]
          %fieldset.primary.hidden
          %div.group.secondary_actions
            %span
          = submit_tag get_string(:send_login), :class => 'button fr'
    - if @org_interstitial
      .card_container#org_switcher
        .card
          %h2 #{_("Choose an Organization")}
          = render :partial => "/layouts/org"


= render :file => "layouts/converge-ui/user_session_layout"

{'fraction_non_alphanumeric': 0.13025780189959293, 'fraction_numerical': 0.0003876720294630742, 'mean_word_length': 2.6261419536191144, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2467193', 'n_tokens_mistral': 1533, 'n_tokens_neox': 1520, 'n_words': 290}