<commit_before>section.row-0
  .center-panel
    .col-md-4.col-sm-2.col-xs-1
    .col-md-4.col-sm-8.col-xs-10.text-center
      = render 'shared/notifications'
      = image_tag 'layout/portus-logo-login-page.png', class: 'login-picture'
      = form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
        - if APP_CONFIG.enabled?("ldap") || APP_CONFIG.enabled?("oauth.local_login")
          = f.text_field :username, class: 'input form-control input-lg first', placeholder: 'Username', autofocus: true, required: true
          = f.password_field :password, class: 'input form-control input-lg last', placeholder: 'Password', autocomplete: 'off', required: true
          = f.button id: "login-btn", class: 'classbutton btn btn-primary btn-block btn-lg' do
            - if APP_CONFIG.enabled?("ldap")
              i.fa.fa-check
              ' LDAP Login
            - else
              i.fa.fa-check
              ' Login

        .row
          - if signup_enabled?
            .col-sm-4.create-new-account
              = link_to 'Create a new account', new_user_registration_path, class: 'btn btn-link'
            - if APP_CONFIG.enabled?("anonymous_browsing")
              .col-sm-4.explore
                = link_to "Explore", explore_index_path, id: "explore", class: 'btn btn-link', title: "Explore existing images from this registry"
            .col-sm-4.forgot-password
              = link_to "I forgot my password", new_user_password_path, class: 'btn btn-link'
          - elsif APP_CONFIG.disabled?("ldap")
            - if APP_CONFIG.enabled?("anonymous_browsing")
              .col-sm-6.explore
                = link_to "Explore", explore_index_path, id: "explore", class: 'btn btn-link', title: "Explore existing images from this registry"
            - if APP_CONFIG.enabled?("oauth.local_login")
              .forgot-password
                = link_to "I forgot my password", new_user_password_path, class: 'btn btn-link'

        - if show_first_user_alert?
          .alert.alert-info
            strong Note:
            |  The first user to be created will have admin permissions !

        - else
          = social_login<commit_msg>show explore link on login page when ldap auth is enabled<commit_after>section.row-0
  .center-panel
    .col-md-4.col-sm-2.col-xs-1
    .col-md-4.col-sm-8.col-xs-10.text-center
      = render 'shared/notifications'
      = image_tag 'layout/portus-logo-login-page.png', class: 'login-picture'
      = form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
        - if APP_CONFIG.enabled?("ldap") || APP_CONFIG.enabled?("oauth.local_login")
          = f.text_field :username, class: 'input form-control input-lg first', placeholder: 'Username', autofocus: true, required: true
          = f.password_field :password, class: 'input form-control input-lg last', placeholder: 'Password', autocomplete: 'off', required: true
          = f.button id: "login-btn", class: 'classbutton btn btn-primary btn-block btn-lg' do
            i.fa.fa-check
            ' Login

        .row
          - if signup_enabled?
            .col-sm-4.create-new-account
              = link_to 'Create a new account', new_user_registration_path, class: 'btn btn-link'
            - if APP_CONFIG.enabled?("anonymous_browsing")
              .col-sm-4.explore
                = link_to "Explore", explore_index_path, id: "explore", class: 'btn btn-link', title: "Explore existing images from this registry"
            .col-sm-4.forgot-password
              = link_to "I forgot my password", new_user_password_path, class: 'btn btn-link'
          - elsif APP_CONFIG.disabled?("ldap")
            - if APP_CONFIG.enabled?("anonymous_browsing")
              .col-sm-6.explore
                = link_to "Explore", explore_index_path, id: "explore", class: 'btn btn-link', title: "Explore existing images from this registry"
            - if APP_CONFIG.enabled?("oauth.local_login")
              .forgot-password
                = link_to "I forgot my password", new_user_password_path, class: 'btn btn-link'
          - elsif APP_CONFIG.enabled?("anonymous_browsing")
            .explore
              = link_to "Explore", explore_index_path, id: "explore", class: 'btn btn-link', title: "Explore existing images from this registry"

        - if show_first_user_alert?
          .alert.alert-info
            strong Note:
            |  The first user to be created will have admin permissions !

        - else
          = social_login
{'fraction_non_alphanumeric': 0.1174785100286533, 'fraction_numerical': 0.005289839100727353, 'mean_word_length': 2.2741702741702743, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4318251', 'n_tokens_mistral': 1410, 'n_tokens_neox': 1365, 'n_words': 329}