<commit_before>- if @explorer
  - style = "width:auto"
.panel-group{:style => style}
  - if @lastaction == "drift"
    = miq_accordion_panel(h(@drift_obj.name), true, "icon") do
      - if @sb[:compare_db] != "EmsCluster"
        - if @drift_obj.product_name != "" && @drift_obj.service_pack != ""
          - height = "100px"
        - elsif @drift_obj.product_name != "" || @drift_obj.service_pack != ""
          - height = "105px"
        - else
          - height = "110px"
      - else
        - height = "100px"
      %div{:style => "position: relative; width: 152px; height: #{height}; z-index: 0; margin: 0px auto;"}
        - if %w(MiqTemplate VmOrTemplate Vm).include?(@sb[:compare_db])
          - if settings(:quadicons, :vm)
            .flobj
              %img{:src => image_path("layout/base.svg")}
            %div{:class => "flobj b72"}
              - if @drift_obj.template?
                - if @drift_obj.host
                  %img{:src => image_path('100/template.png')}
                - else
                  %img{:src => image_path('100/template-no-host.png')}
              - else
                %img{:src => image_path("svg/currentstate-#{h(@drift_obj.current_state.downcase)}.svg")}
            %div{:class => "flobj c72"}
              %img{:src => image_path("svg/vendor-#{h(@drift_obj.vendor.downcase)}.svg")}
            %div{:class => "flobj a72"}
              %img{:src => image_path("svg/os-#{h(@drift_obj.os_image_name.downcase)}.svg")}
            %div{:class => "flobj d72"}
              %p
                = @drift_obj.number_of(:snapshots)
          - else
            .flobj
              %img{:src => image_path("layout/base-single.png")}
            = flobj_img_small("svg/vendor-#{h(@drift_obj.vendor.downcase)}.svg", "e72")
          - if @drift_obj.get_policies.length > 0
            %div{:class => "flobj g72"}
              %img{:src => image_path('100/shield.png')}
          .flobj
            %img{:src => image_path("layout/reflection.png")}
        - elsif @sb[:compare_db] == "Host"
          - if settings(:quadicons, :host)
            .flobj
              %img{:src => image_path("layout/base.svg")}
            %div{:class => "flobj c72"}
              %img{:src => image_path("svg/vendor-#{h(@drift_obj.vmm_vendor_display.downcase)}.svg")}
            - unless @drift_obj.power_state.blank?<commit_msg>Fix quadicon on VM drift page<commit_after>- if @explorer
  - style = "width:auto"
.panel-group{:style => style}
  - if @lastaction == "drift"
    = miq_accordion_panel(h(@drift_obj.name), true, "icon") do
      - if @sb[:compare_db] != "EmsCluster"
        - if @drift_obj.product_name != "" && @drift_obj.service_pack != ""
          - height = "100px"
        - elsif @drift_obj.product_name != "" || @drift_obj.service_pack != ""
          - height = "105px"
        - else
          - height = "110px"
      - else
        - height = "100px"
      %div{:style => "position: relative; width: 152px; height: #{height}; z-index: 0; margin: 0px auto;"}
        - if %w(MiqTemplate VmOrTemplate Vm).include?(@sb[:compare_db])
          - if settings(:quadicons, :vm)
            = render_quadicon(@drift_obj, :mode => :icon, :size => 72, :height => height, :typ => :listnav)
          - else
            .flobj
              %img{:src => image_path("layout/base-single.png")}
            = flobj_img_small("svg/vendor-#{h(@drift_obj.vendor.downcase)}.svg", "e72")
          - if @drift_obj.get_policies.length > 0
            %div{:class => "flobj g72"}
              %img{:src => image_path('100/shield.png')}
          .flobj
            %img{:src => image_path("layout/reflection.png")}
        - elsif @sb[:compare_db] == "Host"
          - if settings(:quadicons, :host)
            .flobj
              %img{:src => image_path("layout/base.svg")}
            %div{:class => "flobj c72"}
              %img{:src => image_path("svg/vendor-#{h(@drift_obj.vmm_vendor_display.downcase)}.svg")}
            - unless @drift_obj.power_state.blank?
{'fraction_non_alphanumeric': 0.17488789237668162, 'fraction_numerical': 0.017438963627304436, 'mean_word_length': 2.053231939163498, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 37, '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': '5039758', 'n_tokens_mistral': 1424, 'n_tokens_neox': 1376, 'n_words': 216}