<commit_before><% if @section.present? && @casebook.present? %>
  <header class="casebook-header">
    <a class="casebook-title" href="<%= casebook_path(@casebook) %>">
      <%= @casebook.title %>
    </a>
    <div class="collaborators">
      <%= render partial: 'content/collaborators', locals: {content: @casebook} %>
    </div>
  </header>
<% end %>
<header class="content">
  <% if @section.present? && @casebook.present? %>
    <div class="breadcrumbs">
      <%= t 'content.show.section' %>
      <% @section.ordinals.each_with_index do |ordinal, idx| %>
        <% unless idx == @section.ordinals.length-1 %>
          <a class="breadcrumb" href="<%= layout_section_path(@casebook, @section.ordinals[0..idx].join('.')) %>"><%= ordinal %></a>
          <span class="separator">.</span>
        <% else %>
          <span class="breadcrumb active"><%= ordinal %></span>
          <span class="separator">:</span>
        <% end %>
      <% end %>
    </div>
  <% end %>
  <h1 class="title">
    <%= @content.title %>
    <% if @section.nil? %>
      <h2 class="subtitle">
        <%= @content.subtitle %>
      </h2>
      <div class="collaborators">
        <%= render partial: 'content/collaborators', locals: {content: @content} %>
      </div>
    <% end %>
  </h1>
</header>
<% if @content.headnote.present? || @content.subtitle.present? %>
  <section class="headnote">
    <h5>
      <%= t 'content.show.headnote' %>
    </h5>
    <% if @section.present? %>
      <h3>
        <%= @content.subtitle %>
      </h3>
    <% end %>
    <p>
      <%= @content.headnote %>
    </p>
  </section>
<% else %>
  <section class="no-headnote"></section>
<% end %>
<section class="table-of-contents">
  <h5>
    <% if @section.present? %>
      <%= t 'content.show.section-contents' %>
    <% end %>
  </h5>
  <% if @content.contents.any? %>
    <%= render partial: 'content/table_of_contents/edit', collection: @content.tree %>
  <% else %>
    <div class="listing empty">
    <% if @editable %>
      <% if @section.present? %>
        <%= t 'content.edit.empty-section.html', add_resource_button: link_to(t('content.edit.empty-section.add-button'), new_section_path(@casebook, parent: @section.id), class: 'add-resource') %>
      <% else %>
        <%= t 'content.edit.empty-casebook.html', add_section_button: button_to(t('content.edit.empty-casebook.add-button'), sections_path(@casebook), method: :post, class: 'add-resource') %>
      <% end %>
    <% else %>
      <% if @section.present? %>
        <%= t 'content.show.empty-section' %>
      <% else %>
        <%= t 'content.show.empty-casebook' %>
      <% end %>
    <% end %>
  <% end %>
</section>
<commit_msg>Remove collaborators from section layout view.<commit_after><% if @section.present? && @casebook.present? %>
  <header class="casebook-header">
    <a class="casebook-title" href="<%= casebook_path(@casebook) %>">
      <%= @casebook.title %>
    </a>
  </header>
<% end %>
<header class="content">
  <% if @section.present? && @casebook.present? %>
    <div class="breadcrumbs">
      <%= t 'content.show.section' %>
      <% @section.ordinals.each_with_index do |ordinal, idx| %>
        <% unless idx == @section.ordinals.length-1 %>
          <a class="breadcrumb" href="<%= layout_section_path(@casebook, @section.ordinals[0..idx].join('.')) %>"><%= ordinal %></a>
          <span class="separator">.</span>
        <% else %>
          <span class="breadcrumb active"><%= ordinal %></span>
          <span class="separator">:</span>
        <% end %>
      <% end %>
    </div>
  <% end %>
  <h1 class="title">
    <%= @content.title %>
    <% if @section.nil? %>
      <h2 class="subtitle">
        <%= @content.subtitle %>
      </h2>
      <div class="collaborators">
        <%= render partial: 'content/collaborators', locals: {content: @content} %>
      </div>
    <% end %>
  </h1>
</header>
<% if @content.headnote.present? || @content.subtitle.present? %>
  <section class="headnote">
    <h5>
      <%= t 'content.show.headnote' %>
    </h5>
    <% if @section.present? %>
      <h3>
        <%= @content.subtitle %>
      </h3>
    <% end %>
    <p>
      <%= @content.headnote %>
    </p>
  </section>
<% else %>
  <section class="no-headnote"></section>
<% end %>
<section class="table-of-contents">
  <h5>
    <% if @section.present? %>
      <%= t 'content.show.section-contents' %>
    <% end %>
  </h5>
  <% if @content.contents.any? %>
    <%= render partial: 'content/table_of_contents/edit', collection: @content.tree %>
  <% else %>
    <div class="listing empty">
    <% if @editable %>
      <% if @section.present? %>
        <%= t 'content.edit.empty-section.html', add_resource_button: link_to(t('content.edit.empty-section.add-button'), new_section_path(@casebook, parent: @section.id), class: 'add-resource') %>
      <% else %>
        <%= t 'content.edit.empty-casebook.html', add_section_button: button_to(t('content.edit.empty-casebook.add-button'), sections_path(@casebook), method: :post, class: 'add-resource') %>
      <% end %>
    <% else %>
      <% if @section.present? %>
        <%= t 'content.show.empty-section' %>
      <% else %>
        <%= t 'content.show.empty-casebook' %>
      <% end %>
    <% end %>
  <% end %>
</section>

{'fraction_non_alphanumeric': 0.21563034797490016, 'fraction_numerical': 0.004563605248146035, 'mean_word_length': 2.7841726618705036, 'pattern_counts': {'":': 0, '<': 176, '<?xml version=': 0, '>': 176, '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': '3289673', 'n_tokens_mistral': 1948, 'n_tokens_neox': 1750, 'n_words': 316}