<commit_before>
<div id="header">
  <div class="inner_header">
    <div class="left <%= (action_name == 'home') ? 'home' : '' %>">
      <h1><%= link_to(@site.name,'/') %></h1>
      <ul class="menu">
          <% if @site.cluster %>
            <li><a class="main_option" href="<%= cluster_path(@site.cluster) %>" class="geneva"><%= @site.word_for_cluster_sector.upcase.singularize %></a></li>
          <% elsif @site.sector %>
            <li><a class="main_option" href="<%= sector_path(@site.sector) %>" class="geneva"><%= @site.word_for_cluster_sector.upcase.singularize %></a></li>
          <% else %>
            <li id="<%= @site.navigate_by_cluster? ? 'cluster' : 'sector' %>_option">
              <a class="geneva main_option with_suboptions"><%= @site.word_for_cluster_sector.upcase %><span class="with_suboptions"></span></a>
              <div class="header_title"><a><%= @site.word_for_cluster_sector.upcase %><span class="with_suboptions"></span></a></div>
              <ul class="suboptions <%= (@site.clusters_or_sectors.size > 16) ? 'longer': '' %>">
                <% @site.clusters_or_sectors.reject{|c| c.name.eql?('N/A') }.each do |category| %>
                <li>
                  <a href="<%= category.is_a?(Cluster) ? cluster_path(category) : sector_path(category) %>" class="geneva <%= category.css_class %> <%= (category.name.size > 17)? 'double_line':''%> icon_menu"><commit_msg>Add filter to get only clusters/sectors with projects in main menu<commit_after>
<div id="header">
  <div class="inner_header">
    <div class="left <%= (action_name == 'home') ? 'home' : '' %>">
      <h1><%= link_to(@site.name,'/') %></h1>
      <ul class="menu">
          <% if @site.cluster %>
            <li><a class="main_option" href="<%= cluster_path(@site.cluster) %>" class="geneva"><%= @site.word_for_cluster_sector.upcase.singularize %></a></li>
          <% elsif @site.sector %>
            <li><a class="main_option" href="<%= sector_path(@site.sector) %>" class="geneva"><%= @site.word_for_cluster_sector.upcase.singularize %></a></li>
          <% else %>
            <li id="<%= @site.navigate_by_cluster? ? 'cluster' : 'sector' %>_option">
              <a class="geneva main_option with_suboptions"><%= @site.word_for_cluster_sector.upcase %><span class="with_suboptions"></span></a>
              <div class="header_title"><a><%= @site.word_for_cluster_sector.upcase %><span class="with_suboptions"></span></a></div>
              <ul class="suboptions <%= (@site.clusters_or_sectors.size > 16) ? 'longer': '' %>">
                <% @site.clusters_or_sectors.reject{|c| c.name.eql?('N/A') || c.total_projects(@site) == 0}.each do |category| %>
                <li>
                  <a href="<%= category.is_a?(Cluster) ? cluster_path(category) : sector_path(category) %>" class="geneva <%= category.css_class %> <%= (category.name.size > 17)? 'double_line':''%> icon_menu">
{'fraction_non_alphanumeric': 0.21668956043956045, 'fraction_numerical': 0.004464285714285714, 'mean_word_length': 3.4677914110429446, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 97, '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': '1983468', 'n_tokens_mistral': 1050, 'n_tokens_neox': 960, 'n_words': 158}