<commit_before>- if @tabs
  %ul{:class => "nav nav-tabs #{@layout == 'dashboard' ? 'nav-tabs-pf' : nil}"}
    - @tabs.each do |tab|
      - if tab[0] == @active_tab
        %li.active
          %a
            = h(tab[1])
      - else
        %li
          - if tab[0] == ""
            %a= h(tab[1])
          - else
            - if %w(new edit).include?(tab[0].split("_")[0])
              - if %w(report ops).include?(@layout)
                = link_to(tab[1],
                  {:action => 'change_tab',
                   :tab    => tab[0],
                   :id     => @tab_id},
                  "data-miq_sparkle_on"  => true,
                  "data-miq_sparkle_off" => true,
                  :remote                => true,
                  "data-method"          => :post)
              - else
                = link_to(tab[1], :action => 'change_tab', :tab => tab[0], :id => @tab_id)
            - else
              - if %w(report ops).include?(@layout)
                - if @layout == "ops"
                  = link_to(tab[1],
                    {:action => 'change_tab',
                     :tab    => tab[0],
                     :id     => @tab_id},
                    "data-miq_sparkle_on"  => true,
                    "data-miq_sparkle_off" => true,
                    :remote                => true,
                    "data-method"          => :post)
                - else
                  = link_to(tab[1],
                    {:action => 'change_tab',
                     :tab    => tab[0],
                     :id     => @tab_id},
                    "data-miq_check_for_changes" => true,
                    "data-miq_sparkle_on"        => true,
                    "data-miq_sparkle_off"       => true,
                    :remote                      => true,
                    "data-method"                => :post)
              - else
                = link_to(tab[1], {:action => 'change_tab', :tab => tab[0], :id => @tab_id}, :onclick => "return miqCheckForChanges()")
  %br{:clear => "all"}/
- if !@tabs && (@lastaction == "show_list" || !@edit && !session[:menu_click])
  - if @edit && @edit[:adv_search_applied] != nil && !session[:menu_click]
    %h1
      = h(@title + @edit[:adv_search_applied][:text] + " ")
      - if (@default_search && @default_search.name != @edit[:adv_search_applied][:name]) || !@default_search
        (#{link_to("clear", {:action => 'adv_search_clear'}, :method => :post, :class => 'active')})
  - else
    - if @layout == "container_topology" || @layout == "middleware_topology" || @layout == "network_topology"
      = ''
    - else
      %h1
        = @title<commit_msg>Topology: add layout tab for cloud<commit_after>- if @tabs
  %ul{:class => "nav nav-tabs #{@layout == 'dashboard' ? 'nav-tabs-pf' : nil}"}
    - @tabs.each do |tab|
      - if tab[0] == @active_tab
        %li.active
          %a
            = h(tab[1])
      - else
        %li
          - if tab[0] == ""
            %a= h(tab[1])
          - else
            - if %w(new edit).include?(tab[0].split("_")[0])
              - if %w(report ops).include?(@layout)
                = link_to(tab[1],
                  {:action => 'change_tab',
                   :tab    => tab[0],
                   :id     => @tab_id},
                  "data-miq_sparkle_on"  => true,
                  "data-miq_sparkle_off" => true,
                  :remote                => true,
                  "data-method"          => :post)
              - else
                = link_to(tab[1], :action => 'change_tab', :tab => tab[0], :id => @tab_id)
            - else
              - if %w(report ops).include?(@layout)
                - if @layout == "ops"
                  = link_to(tab[1],
                    {:action => 'change_tab',
                     :tab    => tab[0],
                     :id     => @tab_id},
                    "data-miq_sparkle_on"  => true,
                    "data-miq_sparkle_off" => true,
                    :remote                => true,
                    "data-method"          => :post)
                - else
                  = link_to(tab[1],
                    {:action => 'change_tab',
                     :tab    => tab[0],
                     :id     => @tab_id},
                    "data-miq_check_for_changes" => true,
                    "data-miq_sparkle_on"        => true,
                    "data-miq_sparkle_off"       => true,
                    :remote                      => true,
                    "data-method"                => :post)
              - else
                = link_to(tab[1], {:action => 'change_tab', :tab => tab[0], :id => @tab_id}, :onclick => "return miqCheckForChanges()")
  %br{:clear => "all"}/
- if !@tabs && (@lastaction == "show_list" || !@edit && !session[:menu_click])
  - if @edit && @edit[:adv_search_applied] != nil && !session[:menu_click]
    %h1
      = h(@title + @edit[:adv_search_applied][:text] + " ")
      - if (@default_search && @default_search.name != @edit[:adv_search_applied][:name]) || !@default_search
        (#{link_to("clear", {:action => 'adv_search_clear'}, :method => :post, :class => 'active')})
  - else
    - if %w(container_topology middleware_topology network_topology cloud_topology).include?(@layout)
      = ''
    - else
      %h1
        = @title
{'fraction_non_alphanumeric': 0.1670114726349445, 'fraction_numerical': 0.006770735377092345, 'mean_word_length': 1.2765410958904109, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 71, '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': '7370107', 'n_tokens_mistral': 1696, 'n_tokens_neox': 1609, 'n_words': 292}