<commit_before>#menu_roles_div
  - if @sb[:active_accord] == :roles
    - if @menu_roles_tree
      = render :partial => "layouts/flash_msg", :locals => {:div_num => "_menu_list"}
      %table
        %tr
          %td{:valign => "top", :width => "315"}
            %fieldset.role_list
              %h3
                = _("Reports")
              .role_list.flobj
              #menu_roles_treebox.flobj{:style => "width: 280px; height: 370px; margin-right: 30px;"}
              #treeStatus.flobj{:style => "display: none;"}
                %img{:src => "/images/layout/overlay_new_white.png", :style => "height: 370px; width:270px"}
            = render(:partial => "layouts/dynatree",
              :locals         => {:tree_id => 'menu_roles_treebox',
                :tree_name                 => 'menu_roles_tree',
                :json_tree                 => @menu_roles_tree,
                :id_prefix                 => 'menu_roles_',
                :click_url                 => '/report/menu_editor/',
                :id_prefix                 => 'menu_',
                :onclick                   => 'miqMenuEditor',
                :div_width                 => '216px',
                :div_height                => '328px',
                :div_cursor                => 'hand',
                :exp_tree                  => false,
                :no_base_exp               => false,
                :base_id                   => "b__Report Menus for #{session[:role_choice]}",
                :highlighting              => true,
                :cookie_id_prefix          => "edit_treeOpenStatex",
                :tree_state                => true,
                :multi_lines               => true})
          %td{:valign => "top"}
            = render :partial => "report/menu_form1", :grid => params[:grid]
            = render :partial => "report/menu_form2"
    - elsif @sb[:menu]
      = render :partial => "layouts/flash_msg", :locals => {:div_num => "_menu_list"}
      - if @sb[:menu].empty?
        = render :partial => 'layouts/info_msg', :locals => {:message => _("No Saved Reports available.")}
      - else
        %table.table.table-striped.table-bordered.table-hover
          %tbody
            - @sb[:menu].invert.each do |pp|
              %tr{:title => _("View this Profile"), :onclick => "cfmeDynatree_activateNode('#{@sb[:active_tree]}', 'g-#{to_cid(pp[1])}');"}
                %td.narrow
                  %ul.icons.list-unstyled
                    %li
                      %span.product.product-group
                %td
                  = pp[0]<commit_msg>Removed duplicated key<commit_after>#menu_roles_div
  - if @sb[:active_accord] == :roles
    - if @menu_roles_tree
      = render :partial => "layouts/flash_msg", :locals => {:div_num => "_menu_list"}
      %table
        %tr
          %td{:valign => "top", :width => "315"}
            %fieldset.role_list
              %h3
                = _("Reports")
              .role_list.flobj
              #menu_roles_treebox.flobj{:style => "width: 280px; height: 370px; margin-right: 30px;"}
              #treeStatus.flobj{:style => "display: none;"}
                %img{:src => "/images/layout/overlay_new_white.png", :style => "height: 370px; width:270px"}
            = render(:partial => "layouts/dynatree",
              :locals         => {:tree_id => 'menu_roles_treebox',
                :tree_name                 => 'menu_roles_tree',
                :json_tree                 => @menu_roles_tree,
                :id_prefix                 => 'menu_roles_',
                :click_url                 => '/report/menu_editor/',
                :onclick                   => 'miqMenuEditor',
                :div_width                 => '216px',
                :div_height                => '328px',
                :div_cursor                => 'hand',
                :exp_tree                  => false,
                :no_base_exp               => false,
                :base_id                   => "b__Report Menus for #{session[:role_choice]}",
                :highlighting              => true,
                :cookie_id_prefix          => "edit_treeOpenStatex",
                :tree_state                => true,
                :multi_lines               => true})
          %td{:valign => "top"}
            = render :partial => "report/menu_form1", :grid => params[:grid]
            = render :partial => "report/menu_form2"
    - elsif @sb[:menu]
      = render :partial => "layouts/flash_msg", :locals => {:div_num => "_menu_list"}
      - if @sb[:menu].empty?
        = render :partial => 'layouts/info_msg', :locals => {:message => _("No Saved Reports available.")}
      - else
        %table.table.table-striped.table-bordered.table-hover
          %tbody
            - @sb[:menu].invert.each do |pp|
              %tr{:title => _("View this Profile"), :onclick => "cfmeDynatree_activateNode('#{@sb[:active_tree]}', 'g-#{to_cid(pp[1])}');"}
                %td.narrow
                  %ul.icons.list-unstyled
                    %li
                      %span.product.product-group
                %td
                  = pp[0]
{'fraction_non_alphanumeric': 0.14302280633938924, 'fraction_numerical': 0.010823347506764593, 'mean_word_length': 1.3608576642335766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 82, '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': '1073178', 'n_tokens_mistral': 1579, 'n_tokens_neox': 1472, 'n_words': 251}