<commit_before>%nav
  .nav-wrapper
    %a#menu-toggle.left{href: '#'}
      %i.material-icons menu
    %a.brand-logo{:href => root_path}
      = WulinMaster.config.app_title
    %ul.right
      - WulinMaster::AppBarMenu.sorted_main_menus.each do |main_menu|
        - main_menu_options = main_menu.options
        %li
          = link_to main_menu_options[:url] || '#', id: main_menu.name, class: main_menu_options[:class], data: main_menu_options[:data] do
            %i.material-icons= main_menu_options[:icon]
            %span= main_menu_options[:label]
          - if main_menu_options[:submenus]
            %ul.dropdown-content.collection{id: "#{main_menu.name}-list"}
              - if main_menu.menus.present?
                - main_menu.menus.each do |sub_menu|
                  - sub_menu_options = sub_menu.options
                  %li
                    = link_to sub_menu_options[:url] do
                      %i.material-icons
                        = sub_menu_options[:icon].presence || 'help'
                      = sub_menu_options[:label]<commit_msg>MISC #156 - Handle main menu label<commit_after>%nav
  .nav-wrapper
    %a#menu-toggle.left{href: '#'}
      %i.material-icons menu
    %a.brand-logo{:href => root_path}
      = WulinMaster.config.app_title
    %ul.right
      - WulinMaster::AppBarMenu.sorted_main_menus.each do |main_menu|
        - main_menu_options = main_menu.options
        %li
          = link_to main_menu_options[:url] || '#', id: main_menu.name, class: main_menu_options[:class], data: main_menu_options[:data] do
            %i.material-icons= main_menu_options[:icon]
            %span= main_menu_options[:label]&.call
          - if main_menu_options[:submenus]
            %ul.dropdown-content.collection{id: "#{main_menu.name}-list"}
              - if main_menu.menus.present?
                - main_menu.menus.each do |sub_menu|
                  - sub_menu_options = sub_menu.options
                  %li
                    = link_to sub_menu_options[:url] do
                      %i.material-icons
                        = sub_menu_options[:icon].presence || 'help'
                      = sub_menu_options[:label]
{'fraction_non_alphanumeric': 0.1192113709307657, 'fraction_numerical': 0.001375515818431912, 'mean_word_length': 2.009655172413793, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4197913', 'n_tokens_mistral': 686, 'n_tokens_neox': 670, 'n_words': 98}