<commit_before><div id="sidebar">
  <ul class="nav nav-pills nav-stacked">
    <li ng-class="{active: current_feed==null && current_folder==null}">
      <a id="start-page" ng-click="show_start_page()"><i class="fa fa-asterisk"></i> <%= t 'read.sidebar.start' %></a>
    </li>
  </ul>

  <hr>

  <div id="folders-list" ng-cloak>

    <%= render 'read/sidebar/sidebar_folder_none' %>

    <%= render 'read/sidebar/sidebar_folder' %>

  </div>

  <%# Animated spinner while folders are loading %>
  <div class="sidebar-spinner" ng-show="!folders_loaded">
    <i class="fa fa-spinner fa-spin"></i>
  </div>

</div><commit_msg>WIP: add fragment caching to the sidebar.<commit_after><div id="sidebar">

  <% cache "sidebar_start-#{I18n.locale}" do %>
    <ul class="nav nav-pills nav-stacked">
      <li ng-class="{active: current_feed==null && current_folder==null}">
        <a id="start-page" ng-click="show_start_page()"><i class="fa fa-asterisk"></i> <%= t 'read.sidebar.start' %></a>
      </li>
    </ul>
  <% end %>

  <hr>

  <div id="folders-list" ng-cloak>

    <%= render 'read/sidebar/sidebar_folder_none' %>

    <%= render 'read/sidebar/sidebar_folder' %>

  </div>

  <%# Animated spinner while folders are loading %>
  <div class="sidebar-spinner" ng-show="!folders_loaded">
    <i class="fa fa-spinner fa-spin"></i>
  </div>

</div>
{'fraction_non_alphanumeric': 0.20743494423791822, 'fraction_numerical': 0.001486988847583643, 'mean_word_length': 3.7228070175438597, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '659467', 'n_tokens_mistral': 525, 'n_tokens_neox': 483, 'n_words': 97}