<commit_before><div ng-repeat="folder in folders | filter:show_folder(folder) | orderBy:'title'"
     id="folder-{{folder.id}}"
     class="folder-panel panel panel-default"
     data-folder-id="{{folder.id}}">

  <%# Link to open the folder and close the folder %>
  <a id="open-folder-{{folder.id}}"
     class="sidebar-folder list-group-item"
     ng-click="toggle_open_folder(folder)">

    <i class="folder pull-left" ng-class="{'fa fa-folder-open-o':current_open_folder.id==folder.id, 'fa fa-folder-o': current_open_folder.id!=folder.id}"></i>
    &nbsp;<span class="sidebar-folder-title">{{folder.title}}</span>
    <i class="folder-arrow pull-right" ng-class="{'fa fa-chevron-down':current_open_folder.id==folder.id, 'fa fa-chevron-right': current_open_folder.id!=folder.id}"></i>
    <span class="folder-unread-badge badge pull-right" ng-show="feeds_loaded">{{folder_unread_entries(folder) | numberBadgeFltr}}</span>

  </a>

  <div id="feeds-{{folder.id}}" class="panel-collapse collapse"
       ng-class="{'in':current_open_folder.id==folder.id}">
    <div class="panel-body">

      <%# Content of the folder %>
      <ul class="nav nav-pills nav-stacked">

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

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

      </ul>

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

    </div>
  </div>
<commit_msg>Unread count badge for each folder in the sidebar is displayed while feeds are loading (in a paginated fashion), instead of hiding it until all feeds have been loaded.<commit_after><div ng-repeat="folder in folders | filter:show_folder(folder) | orderBy:'title'"
     id="folder-{{folder.id}}"
     class="folder-panel panel panel-default"
     data-folder-id="{{folder.id}}">

  <%# Link to open the folder and close the folder %>
  <a id="open-folder-{{folder.id}}"
     class="sidebar-folder list-group-item"
     ng-click="toggle_open_folder(folder)">

    <i class="folder pull-left" ng-class="{'fa fa-folder-open-o':current_open_folder.id==folder.id, 'fa fa-folder-o': current_open_folder.id!=folder.id}"></i>
    &nbsp;<span class="sidebar-folder-title">{{folder.title}}</span>
    <i class="folder-arrow pull-right" ng-class="{'fa fa-chevron-down':current_open_folder.id==folder.id, 'fa fa-chevron-right': current_open_folder.id!=folder.id}"></i>
    <span class="folder-unread-badge badge pull-right">{{folder_unread_entries(folder) | numberBadgeFltr}}</span>

  </a>

  <div id="feeds-{{folder.id}}" class="panel-collapse collapse"
       ng-class="{'in':current_open_folder.id==folder.id}">
    <div class="panel-body">

      <%# Content of the folder %>
      <ul class="nav nav-pills nav-stacked">

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

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

      </ul>

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

    </div>
  </div>

{'fraction_non_alphanumeric': 0.1803747221340108, 'fraction_numerical': 0.0, 'mean_word_length': 3.921875, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '6978969', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1035, 'n_words': 199}