<commit_before>%li.menu-item{ data: { submenu: 'ul.menu.menu-sub'} }
  - if item[:submenu]
    = link_to item[:url], { title: item[:title], class: 'has-icon--dropdown' } do
      = item[:name]
      = fa_icon 'angle-double-up', class: 'poar'
    %ul.menu.menu-sub{ class: ('is-active' if item[:active]) }
      = render partial: 'psique/elements/navigation/item', collection: item[:submenu]
  - else
    - if item[:icon]
      = link_to item[:url], { title: item[:title], class: 'has-icon' } do
        = item[:name]
        = fa_icon item[:icon], class: 'poar'
    - else
      = link_to item[:name], item[:url], { title: item[:title], class: 'has-not-icon' }<commit_msg>Don't add 'data-submenu' attribute when unneeded<commit_after>- if item[:submenu]
  %li.menu-item{ data: { submenu: 'ul.menu.menu-sub' } }
    = link_to item[:url], { title: item[:title], class: 'has-icon--dropdown' } do
      = item[:name]
      = fa_icon 'angle-double-up', class: 'poar'
    %ul.menu.menu-sub{ class: ('is-active' if item[:active]) }
      = render partial: 'psique/elements/navigation/item', collection: item[:submenu]
- else
  %li.menu-item
    - if item[:icon]
      = link_to item[:url], { title: item[:title], class: 'has-icon' } do
        = item[:name]
        = fa_icon item[:icon], class: 'poar'
    - else
      = link_to item[:name], item[:url], { title: item[:title], class: 'has-not-icon' }
{'fraction_non_alphanumeric': 0.19727403156384504, 'fraction_numerical': 0.0, 'mean_word_length': 3.189189189189189, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2397754', 'n_tokens_mistral': 496, 'n_tokens_neox': 493, 'n_words': 109}