<commit_before><% content_for :page_title, @application.name %>

<h1><%= @application.name %></h1>

<h2>What's where?</h2>

<table class="table table-striped table-bordered table-hover">
  <thead>
    <tr>
      <th>Environment</th>
      <th>Version</th>
      <th>Previous Version</th>
    </tr>
  </thead>
  <tbody>
    <% @application.latest_deploy_to_each_environment.each do |environment, deployment| %>
      <tr>
        <td><%= environment.humanize %></td>
        <td>
          <%= deployment.version %>
          <small><%= github_tag_link_to(@application.repo, deployment.version) %></small>
          <br>
          <%= human_datetime(deployment.created_at) %>
        </td>
        <td>
          <% if deployment.previous_deployment %>
            <%= deployment.previous_deployment.version %>
            <small><%= github_tag_link_to(@application.repo, deployment.previous_deployment.version) %></small>
            <br>
            <%= human_datetime(deployment.previous_deployment.created_at) %>
          <% else %>
            N/A
          <% end %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>


<dl>
  <dt>Repo:</dt>
  <dd><%= link_to @application.repo, "https://github.com/#{@application.repo}" %></dd>
</dl>

<div class="btn-group">
  <%= link_to "Edit", { action: "edit", id: @application.id }, class: "btn" %>
</div>

<h2>Recent activity</h2>

<table class="table">
  <tbody>
    <% @application.tasks.recent_first.each do |task| %>
      <tr>
        <td><%= link_to "##{task.release.id}", release_path(task.release) %></td>
        <td><%= link_to task.description, release_path(task.release) %> v<%= task.version %></td>
        <td><%= human_datetime(task.release.deploy_at) %></td>
      </tr>
    <% end %>
  </tbody>
</table>


<commit_msg>Link to repo opens in a new tab<commit_after><% content_for :page_title, @application.name %>

<h1><%= @application.name %></h1>

<h2>What's where?</h2>

<table class="table table-striped table-bordered table-hover">
  <thead>
    <tr>
      <th>Environment</th>
      <th>Version</th>
      <th>Previous Version</th>
    </tr>
  </thead>
  <tbody>
    <% @application.latest_deploy_to_each_environment.each do |environment, deployment| %>
      <tr>
        <td><%= environment.humanize %></td>
        <td>
          <%= deployment.version %>
          <small><%= github_tag_link_to(@application.repo, deployment.version) %></small>
          <br>
          <%= human_datetime(deployment.created_at) %>
        </td>
        <td>
          <% if deployment.previous_deployment %>
            <%= deployment.previous_deployment.version %>
            <small><%= github_tag_link_to(@application.repo, deployment.previous_deployment.version) %></small>
            <br>
            <%= human_datetime(deployment.previous_deployment.created_at) %>
          <% else %>
            N/A
          <% end %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>


<dl>
  <dt>Repo:</dt>
  <dd><%= link_to @application.repo, "https://github.com/#{@application.repo}", target: "_blank" %></dd>
</dl>

<div class="btn-group">
  <%= link_to "Edit", { action: "edit", id: @application.id }, class: "btn" %>
</div>

<h2>Recent activity</h2>

<table class="table">
  <tbody>
    <% @application.tasks.recent_first.each do |task| %>
      <tr>
        <td><%= link_to "##{task.release.id}", release_path(task.release) %></td>
        <td><%= link_to task.description, release_path(task.release) %> v<%= task.version %></td>
        <td><%= human_datetime(task.release.deploy_at) %></td>
      </tr>
    <% end %>
  </tbody>
</table>



{'fraction_non_alphanumeric': 0.1956882255389718, 'fraction_numerical': 0.003316749585406302, 'mean_word_length': 2.6778455284552845, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 155, 'https://': 2, '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': '2631129', 'n_tokens_mistral': 1309, 'n_tokens_neox': 1217, 'n_words': 219}