<commit_before>- if @folders
  - folders_i18n = {"Compliance"                         => _("Compliance Policies"),
                    "Control"                            => _("Control Policies"),
                    "Host Compliance"                    => _("Host Compliance Policies"),
                    "Vm Compliance"                      => _("Vm Compliance Policies"),
                    "Container Replicator Compliance"    => _("Replicator Compliance Policies"),
                    "Container Group Compliance"         => _("Pod Compliance Policies"),
                    "Container Node Compliance"          => _("Container Node Compliance Policies"),
                    "Container Image Compliance"         => _("Container Image Compliance Policies"),
                    "Ext Management System Compliance"   => _("Provider Compliance Policies"),
                    "Physical Server Compliance"         => _("Physical Infrastructure Compliance Policies"),
                    "Host Control"                       => _("Host Control Policies"),
                    "Vm Control"                         => _("Vm Control Policies"),
                    "Container Replicator Control"       => _("Replicator Control Policies"),
                    "Container Group Control"            => _("Pod Control Policies"),
                    "Container Node Control"             => _("Container Node Control Policies"),
                    "Container Image Control"            => _("Container Image Control Policies"),
                    "Container Project Control"          => _("Container Project Control Policies"),
                    "Ext Management System Control"      => _("Provider Control Policies"),
                    "Physical Server Control"            => _("Physical Infrastructure Control Policies"),
                    }
  = render :partial => "layouts/flash_msg"
  %table.table.table-striped.table-bordered.table-hover
    %tbody
      - @folders.each do |f|
        - if %w(Compliance Control).include?(f)
          - model_name = f.split.first
          - click = f.downcase
        - else
          - model_name = f.split[0..-2].join.camelize(:lower)
          - type = f.split[-1].downcase
          - click = "#{type}_xx-#{type}-#{model_name}"
        %tr{:onclick => "miqTreeActivateNode('policy_tree', 'xx-#{click}');", :title => _("Open Folder")}
          %td.table-view-pf-select
            %i{:class => model_name.camelize.safe_constantize.try(:decorate).try(:fonticon)}
          %td
            = folders_i18n[f]<commit_msg>Do not rely on decorators when displaying top-level policy folders<commit_after>- if @folders
  - folders_i18n = {"Compliance"                         => _("Compliance Policies"),
                    "Control"                            => _("Control Policies"),
                    "Host Compliance"                    => _("Host Compliance Policies"),
                    "Vm Compliance"                      => _("Vm Compliance Policies"),
                    "Container Replicator Compliance"    => _("Replicator Compliance Policies"),
                    "Container Group Compliance"         => _("Pod Compliance Policies"),
                    "Container Node Compliance"          => _("Container Node Compliance Policies"),
                    "Container Image Compliance"         => _("Container Image Compliance Policies"),
                    "Ext Management System Compliance"   => _("Provider Compliance Policies"),
                    "Physical Server Compliance"         => _("Physical Infrastructure Compliance Policies"),
                    "Host Control"                       => _("Host Control Policies"),
                    "Vm Control"                         => _("Vm Control Policies"),
                    "Container Replicator Control"       => _("Replicator Control Policies"),
                    "Container Group Control"            => _("Pod Control Policies"),
                    "Container Node Control"             => _("Container Node Control Policies"),
                    "Container Image Control"            => _("Container Image Control Policies"),
                    "Container Project Control"          => _("Container Project Control Policies"),
                    "Ext Management System Control"      => _("Provider Control Policies"),
                    "Physical Server Control"            => _("Physical Infrastructure Control Policies"),
                    }
  = render :partial => "layouts/flash_msg"
  %table.table.table-striped.table-bordered.table-hover
    %tbody
      - @folders.each do |f|
        - if %w(Compliance Control).include?(f)
          - model_name = f.split.first
          - click = f.downcase
          - klass = f == 'Compliance' ? 'pficon pficon-history fa-fw' : 'fa fa-shield fa-fw'
        - else
          - model_name = f.split[0..-2].join.camelize(:lower)
          - type = f.split[-1].downcase
          - click = "#{type}_xx-#{type}-#{model_name}"
          - klass = model_name.camelize.safe_constantize.try(:decorate).try(:fonticon)
        %tr{:onclick => "miqTreeActivateNode('policy_tree', 'xx-#{click}');", :title => _("Open Folder")}
          %td.table-view-pf-select
            %i{:class => klass}
          %td
            = folders_i18n[f]
{'fraction_non_alphanumeric': 0.11863447755563938, 'fraction_numerical': 0.002640513013956997, 'mean_word_length': 1.6136027599802858, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 49, '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': '362105', 'n_tokens_mistral': 1365, 'n_tokens_neox': 1263, 'n_words': 319}