<commit_before><% content_for :page_title do %>
  <span><%= stack.repo_owner %></span>
  <h1><%= stack.repo_name %> <%= stack.environment %></h1>
<% end %>


<% content_for :primary_navigation do %>
  <%= link_to 'Refresh statuses & commits', stack_refresh_path(@stack), method: 'post', class: "btn" %>
  <% unless @stack.task_definitions.empty? %>
    <ul>
      <% @stack.task_definitions.each do |definition| %>
        <li class="stack-action">
          <%= link_to "#{definition.action}…", new_stack_tasks_path(@stack, definition_id: definition.id), class: %w(btn trigger-deploy) %>
        </li>
      <% end %>
    </ul>
  <% end %>
<% end %>

<% content_for :secondary_navigation do %>
  <ul class="nav__list nav__list--primary">
    <li class="nav__list__item">
      <%= link_to "Commits & Deploys", stack_path(@stack) %>
    </li>
    <li class="nav__list__item"><commit_msg>Apply a decent style on custom tasks<commit_after><% content_for :page_title do %>
  <span><%= stack.repo_owner %></span>
  <h1><%= stack.repo_name %> <%= stack.environment %></h1>
<% end %>


<% content_for :primary_navigation do %>
  <%= link_to 'Refresh statuses & commits', stack_refresh_path(@stack), method: 'post', class: "btn" %>
  <% @stack.task_definitions.each do |definition| %>
      <%= link_to "#{definition.action}…", new_stack_tasks_path(@stack, definition_id: definition.id), class: %w(stack-action btn trigger-deploy) %>
  <% end %>
<% end %>

<% content_for :secondary_navigation do %>
  <ul class="nav__list nav__list--primary">
    <li class="nav__list__item">
      <%= link_to "Commits & Deploys", stack_path(@stack) %>
    </li>
    <li class="nav__list__item">
{'fraction_non_alphanumeric': 0.18828451882845187, 'fraction_numerical': 0.002390914524805738, 'mean_word_length': 4.264150943396227, 'pattern_counts': {'":': 0, '<': 51, '<?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': '7370123', 'n_tokens_mistral': 616, 'n_tokens_neox': 557, 'n_words': 118}