<commit_before>ul.nav.nav-bordered
  - (game.popular_categories | [current_category]).each do |category|
    - is_current_category = category == current_category ? 'active' : ''
    li.nav-item
      - if link_type == :sum_of_best
        = link_to(category, game_category_sum_of_bests_path(game, category), class: "nav-link #{is_current_category}")
      - else
        = link_to(category, game_category_path(game, category), class: "nav-link #{is_current_category}")
  - if (game.unpopular_categories - [current_category]).present?
    li.nav-item.dropdown
      a.nav-link.dropdown-toggle data-toggle='dropdown' href='#' aria-expanded='false' role='button'
        span More categories
      .dropdown-menu
        - (game.unpopular_categories.order(:name) - [current_category]).each do |category|
          - if link_type == :sum_of_best
            = link_to category, game_category_sum_of_bests_path(game, category), class: 'dropdown-item'
          - else
            = link_to category, game_category_path(game, category), class: 'dropdown-item'
<commit_msg>Limit to 10 categories in dropdown<commit_after>ul.nav.nav-bordered
  - (game.popular_categories | [current_category]).each do |category|
    - is_current_category = category == current_category ? 'active' : ''
    li.nav-item
      - if link_type == :sum_of_best
        = link_to(category, game_category_sum_of_bests_path(game, category), class: "nav-link #{is_current_category}")
      - else
        = link_to(category, game_category_path(game, category), class: "nav-link #{is_current_category}")
  - if (game.unpopular_categories - [current_category]).present?
    li.nav-item.dropdown
      a.nav-link.dropdown-toggle data-toggle='dropdown' href='#' aria-expanded='false' role='button'
        span More categories
      .dropdown-menu
        - (game.unpopular_categories.limit(10).order(:name) - [current_category]).each do |category|
          - if link_type == :sum_of_best
            = link_to category, game_category_sum_of_bests_path(game, category), class: 'dropdown-item'
          - else
            = link_to category, game_category_path(game, category), class: 'dropdown-item'

{'fraction_non_alphanumeric': 0.1262135922330097, 'fraction_numerical': 0.0018492834026814608, 'mean_word_length': 3.5557894736842104, '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': '3612211', 'n_tokens_mistral': 670, 'n_tokens_neox': 661, 'n_words': 123}