<commit_before>.login-box
  - if signup_enabled?
    .login-heading
      %h3 Existing user? Sign in
  - else
    .login-heading
      %h3 Sign in
  .login-body
    - if form_based_providers.any?
      - if form_based_providers.count >= 2 || signin_enabled?
        %ul.nav.nav-tabs
          - if crowd_enabled?
            %li.active
              = link_to "Crowd", "#tab-crowd", 'data-toggle' => 'tab'
          - @ldap_servers.each_with_index do |server, i|
            %li{class: (:active if i.zero? && !crowd_enabled?)}
              = link_to server['label'], "#tab-#{server['provider_name']}", 'data-toggle' => 'tab'
          - if signin_enabled?
            %li
              = link_to 'Standard', '#tab-signin', 'data-toggle' => 'tab'
        .tab-content
          - if crowd_enabled?
            %div.tab-pane.active{id: "tab-crowd"}
              = render 'devise/sessions/new_crowd'
          - @ldap_servers.each_with_index do |server, i|
            %div.tab-pane{id: "tab-#{server['provider_name']}", class: (:active if i.zero? && !crowd_enabled?)}
              = render 'devise/sessions/new_ldap', server: server
          - if signin_enabled?
            %div#tab-signin.tab-pane
              = render 'devise/sessions/new_base'
      - else
        - if crowd_enabled?
          = render 'devise/sessions/new_crowd'
        - elsif @ldap_servers.any?
          = render 'devise/sessions/new_ldap', server: @ldap_servers.first
        - elsif signin_enabled?
          = render 'devise/sessions/new_base'

    - elsif signin_enabled?
      = render 'devise/sessions/new_base'<commit_msg>Revert "Merge pull request #9812 from chrspeich/hide-tabs-lone-auth-provider"<commit_after>.login-box
  - if signup_enabled?
    .login-heading
      %h3 Existing user? Sign in
  - else
    .login-heading
      %h3 Sign in
  .login-body
    - if form_based_providers.any?
      %ul.nav.nav-tabs
        - if crowd_enabled?
          %li.active
            = link_to "Crowd", "#tab-crowd", 'data-toggle' => 'tab'
        - @ldap_servers.each_with_index do |server, i|
          %li{class: (:active if i.zero? && !crowd_enabled?)}
            = link_to server['label'], "#tab-#{server['provider_name']}", 'data-toggle' => 'tab'
        - if signin_enabled?
          %li
            = link_to 'Standard', '#tab-signin', 'data-toggle' => 'tab'
      .tab-content
        - if crowd_enabled?
          %div.tab-pane.active{id: "tab-crowd"}
            = render 'devise/sessions/new_crowd'
        - @ldap_servers.each_with_index do |server, i|
          %div.tab-pane{id: "tab-#{server['provider_name']}", class: (:active if i.zero? && !crowd_enabled?)}
            = render 'devise/sessions/new_ldap', server: server
        - if signin_enabled?
          %div#tab-signin.tab-pane
            = render 'devise/sessions/new_base'

    - elsif signin_enabled?
      = render 'devise/sessions/new_base'
{'fraction_non_alphanumeric': 0.14211975223675155, 'fraction_numerical': 0.0030970406056434964, 'mean_word_length': 2.1157556270096465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '815671', 'n_tokens_mistral': 1006, 'n_tokens_neox': 999, 'n_words': 182}