<commit_before><div class="categories">
  <!-- VISIBLE IN DESKTOP -->
  <div class="row span12 well well-small">
    <div class="span3">
      <h6>Hovedkategorier</h6>
      <ul class="nav multiple-select">
      <% categories.each do |category| %>
        <li><%= link_to category.human_name, promises_path(category_id: category.id) %></li>
      <% end %>
      </ul>
    </div>

    <div class="span3">
      <h6>Underkategorier</h6>
      <ul class="nav multiple-select">
        <% categories.each do |category| %>
          <% category.children.each do |subcategory| %>
            <li><%= link_to subcategory.human_name, promises_path(category_id: category.id, subcategory_id: subcategory.id) %></li>
          <% end %>
        <% end %>
      </ul>
    </div>

    <div class="span3">
      <h6>Partier</h6>
      <ul class="nav multiple-select">
        <% parties.each do |party| %>
          <li><%= link_to party.name, promises_path %></li>
        <% end %>
      </ul>
    </div>

  </div>


  <!-- VISIBLE IN MOBILE --> 
<div class="hidden-desktop">
  <select class="categories">
    <option>Velg kategori</option>
    <% categories.each do |category| %>
      <option data-category-id="<%= category.id %>"><%= category.human_name %></option>
    <% end %>
  </select>
  <select id="subcategory-dropdown" class="hidden">
    <option>Velg underkategori</option>
  </select>
</div><commit_msg>added party slugs to navigation<commit_after><div class="categories">
  <!-- VISIBLE IN DESKTOP -->
  <div class="row span12 well well-small">
    <div class="span3">
      <h6>Hovedkategorier</h6>
      <ul class="nav multiple-select">
      <% categories.each do |category| %>
        <li><%= link_to category.human_name, promises_path(category_id: category.id, party_slug: @party_slug) %></li>
      <% end %>
      </ul>
    </div>

    <div class="span3">
      <h6>Underkategorier</h6>
      <ul class="nav multiple-select">
        <% categories.each do |category| %>
          <% category.children.each do |subcategory| %>
            <li><%= link_to subcategory.human_name, promises_path(category_id: category.id, subcategory_id: subcategory.id, party_slug: @party_slug %></li>
          <% end %>
        <% end %>
      </ul>
    </div>

    <div class="span3">
      <h6>Partier</h6>
      <ul class="nav multiple-select">
        <% parties.each do |party| %>
          <li><%= link_to party.name, promises_path(category_id: @category_id, subcategory_id: @subcategory_id, party_slug: party.slug) %></li>
        <% end %>
      </ul>
    </div>

  </div>


  <!-- VISIBLE IN MOBILE --> 
<div class="hidden-desktop">
  <select class="categories">
    <option>Velg kategori</option>
    <% categories.each do |category| %>
      <option data-category-id="<%= category.id %>"><%= category.human_name %></option>
    <% end %>
  </select>
  <select id="subcategory-dropdown" class="hidden">
    <option>Velg underkategori</option>
  </select>
</div>
{'fraction_non_alphanumeric': 0.18111298482293423, 'fraction_numerical': 0.007419898819561552, 'mean_word_length': 2.778343949044586, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 115, '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': '5316727', 'n_tokens_mistral': 1045, 'n_tokens_neox': 984, 'n_words': 204}