<commit_before>%body
  %nav{:class => "navbar navbar-default navbar-fixed-top navbar-pf #{session[:custom_logo] ? "whitelabeled" : ""}", :role => "navigation"}
    %div{:class => "navbar-header"}
      %button{:type => "button", :class => "navbar-toggle", "data-target" => ".navbar-collapse-1", "data-toggle" => "collapse"}
        %span.sr-only
          Toggle navigation
        %span.icon-bar
        %span.icon-bar
        %span.icon-bar
      %a.navbar-brand{:href => "/"}
        %img{:src => image_path("brand.svg"), :alt => "ManageIQ"}
    %div{:class => "collapse navbar-collapse navbar-collapse-1"}
      %ul{:class => "nav navbar-nav navbar-utility"}
        %li{:class => "brand-white-label #{session[:custom_logo] ? "whitelabeled" : ""}"}
        -Menu::Manager.menu(:top_right) do |menu_section|
          %li.dropdown
            %a{:href => "#", :class => "dropdown-toggle", "data-toggle" => "dropdown"}
              = menu_section.name
              %b.caret
            %ul.dropdown-menu#custom_menu_div
              - menu_section.items.each do |menu_item|
                %li
                  %a{:href    => menu_item.href,
                     :onclick => 'return miqCheckForChanges()'}= menu_item.name

        = render :partial => "layouts/user_options"
      = render :partial => "layouts/page_header_navbar"
    = render :partial => "layouts/spinner"

  -# if set by controller, set up to run as JS after onload is done
  - if @miq_after_onload
    %script{:type => "text/javascript"}
      "var miq_after_onload = '#{@miq_after_onload.html_safe}'"
<commit_msg>UI plugins: fix opening url from top_right.<commit_after>%body
  %nav{:class => "navbar navbar-default navbar-fixed-top navbar-pf #{session[:custom_logo] ? "whitelabeled" : ""}", :role => "navigation"}
    %div{:class => "navbar-header"}
      %button{:type => "button", :class => "navbar-toggle", "data-target" => ".navbar-collapse-1", "data-toggle" => "collapse"}
        %span.sr-only
          Toggle navigation
        %span.icon-bar
        %span.icon-bar
        %span.icon-bar
      %a.navbar-brand{:href => "/"}
        %img{:src => image_path("brand.svg"), :alt => "ManageIQ"}
    %div{:class => "collapse navbar-collapse navbar-collapse-1"}
      %ul{:class => "nav navbar-nav navbar-utility"}
        %li{:class => "brand-white-label #{session[:custom_logo] ? "whitelabeled" : ""}"}
        -Menu::Manager.menu(:top_right) do |menu_section|
          %li.dropdown
            %a{:href => "#", :class => "dropdown-toggle", "data-toggle" => "dropdown"}
              = menu_section.name
              %b.caret
            %ul.dropdown-menu#custom_menu_div
              - menu_section.items.each do |menu_item|
                %li
                  %a{:href    => menu_item.url,
                     :onclick => 'return miqCheckForChanges()'}= menu_item.name

        = render :partial => "layouts/user_options"
      = render :partial => "layouts/page_header_navbar"
    = render :partial => "layouts/spinner"

  -# if set by controller, set up to run as JS after onload is done
  - if @miq_after_onload
    %script{:type => "text/javascript"}
      "var miq_after_onload = '#{@miq_after_onload.html_safe}'"

{'fraction_non_alphanumeric': 0.1695232159551262, 'fraction_numerical': 0.0012464942349641633, 'mean_word_length': 2.566666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 47, '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': '5705339', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1041, 'n_words': 196}