<commit_before>- if @record
  #accordion.panel-group
    = patternfly_accordion_panel(truncate(@record.name, :length => truncate_length), true, "icon") do
      - # Calculate the quadicon div height based on # of lines of text
      - if @record.product_name != "" && @record.service_pack != ""
        - height = 100
      - elsif @record.product_name != "" || @record.service_pack != ""
        - height = 90
      - else
        - height = 78
      = render :partial => "layouts/quadicon", :locals => {:mode => :icon, :item => @record, :size => 72, :typ => :listnav, :height => height}

      %div{:style => "margin-top: -23px; line-height: 13px;"}
        %center{:style => "color: #000;"}
          = h(@record.product_name)
          %br
          = h(@record.service_pack)

    = patternfly_accordion_panel(_("Properties"), false, "host_prop") do
      %ul.nav.nav-pills.nav-stacked
        %li
          = link_to(_('Summary'),
            {:action => 'show', :id => @record, :display => 'main'},
            :title => _("Show Summary"))
        - if @devices.nil? || @devices.empty?
          %li.disabled
            = link_to(_("Devices"), "#")
        - else
          %li
            = link_to(_('Devices'),
              {:action  => 'show', :id => @record, :display => 'devices'},
              :title => _("Show Host devices"))

        - if @record.number_of(:switches) == 0
          = link_to(_("Network"), "#")
        - else
          %li
            = link_to(_('Network'),
              {:action  => 'show', :id => @record, :display => 'network'},
              :title => _("Show Host network"))

        - if @record.hardware.blank? || @record.hardware.number_of(:storage_adapters) == 0
          = link_to(_("Storage Adapters"), "#")
        - else
          %li
            = link_to(_('Storage Adapters'),
              {:action  => 'show', :id => @record, :display => 'storage_adapters'},
              :title => _("Show Host storage adapters"))

        - if @osinfo.nil? || @osinfo.empty?
          = link_to(_("OS Information"), "#")
        - else
          %li
            = link_to(_('OS Information'),
              {:action  => 'show', :id => @record, :display => 'os_info'},
              :title => _("Show Host OS information"))

        - if @vmminfo.nil? || @vmminfo.empty?
          %li.disabled
            = link_to(_('VMM Information'), "#")<commit_msg>added missing "disabled" class to host accordion<commit_after>- if @record
  #accordion.panel-group
    = patternfly_accordion_panel(truncate(@record.name, :length => truncate_length), true, "icon") do
      - # Calculate the quadicon div height based on # of lines of text
      - if @record.product_name != "" && @record.service_pack != ""
        - height = 100
      - elsif @record.product_name != "" || @record.service_pack != ""
        - height = 90
      - else
        - height = 78
      = render :partial => "layouts/quadicon", :locals => {:mode => :icon, :item => @record, :size => 72, :typ => :listnav, :height => height}

      %div{:style => "margin-top: -23px; line-height: 13px;"}
        %center{:style => "color: #000;"}
          = h(@record.product_name)
          %br
          = h(@record.service_pack)

    = patternfly_accordion_panel(_("Properties"), false, "host_prop") do
      %ul.nav.nav-pills.nav-stacked
        %li
          = link_to(_('Summary'),
            {:action => 'show', :id => @record, :display => 'main'},
            :title => _("Show Summary"))
        - if @devices.nil? || @devices.empty?
          %li.disabled
            = link_to(_("Devices"), "#")
        - else
          %li
            = link_to(_('Devices'),
              {:action  => 'show', :id => @record, :display => 'devices'},
              :title => _("Show Host devices"))

        - if @record.number_of(:switches) == 0
          %li.disabled
            = link_to(_("Network"), "#")
        - else
          %li
            = link_to(_('Network'),
              {:action  => 'show', :id => @record, :display => 'network'},
              :title => _("Show Host network"))

        - if @record.hardware.blank? || @record.hardware.number_of(:storage_adapters) == 0
          %li.disabled
            = link_to(_("Storage Adapters"), "#")
        - else
          %li
            = link_to(_('Storage Adapters'),
              {:action  => 'show', :id => @record, :display => 'storage_adapters'},
              :title => _("Show Host storage adapters"))

        - if @osinfo.nil? || @osinfo.empty?
          %li.disabled
            = link_to(_("OS Information"), "#")
        - else
          %li
            = link_to(_('OS Information'),
              {:action  => 'show', :id => @record, :display => 'os_info'},
              :title => _("Show Host OS information"))

        - if @vmminfo.nil? || @vmminfo.empty?
          %li.disabled
            = link_to(_('VMM Information'), "#")
{'fraction_non_alphanumeric': 0.18107667210440456, 'fraction_numerical': 0.00734094616639478, 'mean_word_length': 1.9637462235649548, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 63, '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': '7312526', 'n_tokens_mistral': 1538, 'n_tokens_neox': 1471, 'n_words': 323}