<commit_before><section id='sessions' class='detail-block filter-detail-block'>
  <div class='sessions detail-title'>
    {{t 'general.sessions'}}
    {{#if proxiedSessions.isFulfilled}}
      ({{proxiedSessions.length}})
    {{/if}}
  </div>
  {{#if filteredContent.isFulfilled}}
    <div class="filter-tools">
      <div id='titlefilter' class="filter">
        {{input type='text' value=filter placeholder=placeholderValue}}
      </div>
    </div>
    <div class='detail-actions'>
      <div class='resultslist-actions'>
        {{expand-collapse-button value=editorOn action="toggleEditor"}}
      </div>

      {{#if proxiedSessions.length}}
        {{#link-to 'course.publishall' course}}
          <button>{{t 'publish.all' sessionCount=course.sessions.length}}</button>
        {{/link-to}}
      {{/if}}
    </div>

    <section class='resultslist'>
      {{#liquid-if editorOn class='vertical'}}
        {{new-session
          sessionTypes=course.school.sessionTypes
          save='save'
          cancel='cancel'
        }}
      {{/liquid-if}}

      {{#if saved}}<commit_msg>Display the session count before the sessions are loaded<commit_after><section id='sessions' class='detail-block filter-detail-block'>
  <div class='sessions detail-title'>
    {{t 'general.sessions'}} ({{course.sessions.length}})
  </div>
  {{#if filteredContent.isFulfilled}}
    <div class="filter-tools">
      <div id='titlefilter' class="filter">
        {{input type='text' value=filter placeholder=placeholderValue}}
      </div>
    </div>
    <div class='detail-actions'>
      <div class='resultslist-actions'>
        {{expand-collapse-button value=editorOn action="toggleEditor"}}
      </div>

      {{#if proxiedSessions.length}}
        {{#link-to 'course.publishall' course}}
          <button>{{t 'publish.all' sessionCount=course.sessions.length}}</button>
        {{/link-to}}
      {{/if}}
    </div>

    <section class='resultslist'>
      {{#liquid-if editorOn class='vertical'}}
        {{new-session
          sessionTypes=course.school.sessionTypes
          save='save'
          cancel='cancel'
        }}
      {{/liquid-if}}

      {{#if saved}}
{'fraction_non_alphanumeric': 0.17166589755422243, 'fraction_numerical': 0.0, 'mean_word_length': 2.9063063063063064, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '3100012', 'n_tokens_mistral': 668, 'n_tokens_neox': 650, 'n_words': 120}