<commit_before><%# locals: array of CategoryForIdentity, ulid: string, filter: boolean, filter_placeholder: string %>
<%
  ulid ||= nil
  filter ||= false
  filter_placeholder ||= ""
%>

<% if !items.nil? && items.length > 0 %>

  <%= content_tag("ul", id: ulid, data: {role: "listview", inset: "true", filter: filter, "filter-placeholder" => filter_placeholder}) do %>
    <% items.each do |item| %>
      <%
      filtertext = item.title
      if !item.filtertext.blank?
        filtertext = item.filtertext
      end
      %>
      <%= content_tag("li", data: {filtertext: filtertext}) do %>
        <%= link_to(item.link) do %>
          <% if !item.icon.blank? %>
            <%= tag("img", src: asset_path(item.icon.gsub("/assets/", "")), alt: item.title, title: item.title, height: 16, weight: 16, class: "ui-li-icon") %>
          <% end %>
          <%= item.title %>
          <% if !item.count.nil? %>
            <span class="ui-li-count"><%= item.count %></span>
          <% end %>
        <% end %>
      <% end %>
    <% end %>
  <% end %>
  
<% end %><commit_msg>Fix list icon path<commit_after><%# locals: array of CategoryForIdentity, ulid: string, filter: boolean, filter_placeholder: string %>
<%
  ulid ||= nil
  filter ||= false
  filter_placeholder ||= ""
%>

<% if !items.nil? && items.length > 0 %>

  <%= content_tag("ul", id: ulid, data: {role: "listview", inset: "true", filter: filter, "filter-placeholder" => filter_placeholder}) do %>
    <% items.each do |item| %>
      <%
      filtertext = item.title
      if !item.filtertext.blank?
        filtertext = item.filtertext
      end
      %>
      <%= content_tag("li", data: {filtertext: filtertext}) do %>
        <%= link_to(item.link) do %>
          <% if !item.icon.blank? %>
            <%= tag("img", src: item.icon, alt: item.title, title: item.title, height: 16, weight: 16, class: "ui-li-icon") %>
          <% end %>
          <%= item.title %>
          <% if !item.count.nil? %>
            <span class="ui-li-count"><%= item.count %></span>
          <% end %>
        <% end %>
      <% end %>
    <% end %>
  <% end %>
  
<% end %>
{'fraction_non_alphanumeric': 0.19887429643527205, 'fraction_numerical': 0.004690431519699813, 'mean_word_length': 2.3964968152866244, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 51, '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': '5510678', 'n_tokens_mistral': 773, 'n_tokens_neox': 687, 'n_words': 161}