<commit_before>%nav.navbar.navbar-fixed-top.navbar-inverse.navbar-sap
  .container
    .navbar-header
      %button.navbar-toggle.collapsed{"data-target": "#main-nav-collapse", "data-toggle": "collapse", type: "button"}
        %span.sr-only Toggle navigation
        %span.icon-bar
        %span.icon-bar
        %span.icon-bar
      = link_to main_app.landing_page_url(@scoped_domain_fid ? @scoped_domain_fid : Rails.configuration.default_domain), class: "navbar-brand" do
        .logo
        Converged Cloud

    .collapse.navbar-collapse#main-nav-collapse
      %ul.nav.navbar-nav
        %li
          = link_to (@scoped_domain_name || params[:domain_id]), plugin('identity').domain_path(project_id:nil) if @scoped_domain_id

      %ul.nav.navbar-nav.navbar-right

        - unless logged_in?
          %li
            = link_to "Log in", monsoon_openstack_auth.login_path(domain_name:@scoped_domain_name, after_login: plugin('identity').domain_path), id: "navbar-login-btn"
        - else
          %li.dropdown
            %a.navbar-identity.dropdown-toggle{"aria-expanded" => "false", "data-toggle" => "dropdown", :href => "#", :role => "button"}
              %img.avatar{src: url_for_avatar}
              = current_user.full_name
              %span.caret
            %ul.dropdown-menu{:role => "menu"}
              %li
                = link_to "Profile", '#', data: { toggle: "modal", target: "#profile"}
              -# %li
              -#   %a{:href => "#"} View Profile
              -#
              - if current_user.is_allowed?("compute:keypair_list", {target: {scoped_domain_name: @scoped_domain_name}})
                %li= link_to "Key Pairs", plugin('compute').keypairs_path
                %li.divider
              %li
                = link_to 'Log out', monsoon_openstack_auth.logout_path(redirect_to: main_app.landing_page_url, auth_domain: @scoped_domain_name)


        %li.dropdown
          %a.nav-highlight.dropdown-toggle{"aria-expanded" => "false", "data-toggle" => "dropdown", :href => "#", :role => "button"}
            = current_region.upcase
            %span.caret

          = render_available_regions
          -# %ul.dropdown-menu{:role => "menu"}
          -#   %li
          -#     %a{:href => "#"} Canada
          -#   %li.active
          -#     %a{:href => "#"} Europe
          -#   %li
          -#     %a{:href => "#"} US-East
          -#   %li
          -#     %a{:href => "#"} US-West<commit_msg>Show keypairs link only in project scope<commit_after>%nav.navbar.navbar-fixed-top.navbar-inverse.navbar-sap
  .container
    .navbar-header
      %button.navbar-toggle.collapsed{"data-target": "#main-nav-collapse", "data-toggle": "collapse", type: "button"}
        %span.sr-only Toggle navigation
        %span.icon-bar
        %span.icon-bar
        %span.icon-bar
      = link_to main_app.landing_page_url(@scoped_domain_fid ? @scoped_domain_fid : Rails.configuration.default_domain), class: "navbar-brand" do
        .logo
        Converged Cloud

    .collapse.navbar-collapse#main-nav-collapse
      %ul.nav.navbar-nav
        %li
          = link_to (@scoped_domain_name || params[:domain_id]), plugin('identity').domain_path(project_id:nil) if @scoped_domain_id

      %ul.nav.navbar-nav.navbar-right

        - unless logged_in?
          %li
            = link_to "Log in", monsoon_openstack_auth.login_path(domain_name:@scoped_domain_name, after_login: plugin('identity').domain_path), id: "navbar-login-btn"
        - else
          %li.dropdown
            %a.navbar-identity.dropdown-toggle{"aria-expanded" => "false", "data-toggle" => "dropdown", :href => "#", :role => "button"}
              %img.avatar{src: url_for_avatar}
              = current_user.full_name
              %span.caret
            %ul.dropdown-menu{:role => "menu"}
              %li
                = link_to "Profile", '#', data: { toggle: "modal", target: "#profile"}

              - if current_user.is_allowed?("compute:keypair_list", {target: {scoped_domain_name: @scoped_domain_name}}) && @scoped_project_id
                %li= link_to "Key Pairs", plugin('compute').keypairs_path

              %li.divider
              %li
                = link_to 'Log out', monsoon_openstack_auth.logout_path(redirect_to: main_app.landing_page_url, auth_domain: @scoped_domain_name)


        %li.dropdown
          %a.nav-highlight.dropdown-toggle{"aria-expanded" => "false", "data-toggle" => "dropdown", :href => "#", :role => "button"}
            = current_region.upcase
            %span.caret

          = render_available_regions
          -# %ul.dropdown-menu{:role => "menu"}
          -#   %li
          -#     %a{:href => "#"} Canada
          -#   %li.active
          -#     %a{:href => "#"} Europe
          -#   %li
          -#     %a{:href => "#"} US-East
          -#   %li
          -#     %a{:href => "#"} US-West
{'fraction_non_alphanumeric': 0.15196882690730107, 'fraction_numerical': 0.0, 'mean_word_length': 2.152553329023917, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 32, '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': '5144998', 'n_tokens_mistral': 1599, 'n_tokens_neox': 1539, 'n_words': 236}