<commit_before><div class="row">
  <div class="span12">
    <%= erb :byline, locals: {exercise: submission.exercise, user: submission.user} %>
    <p>Submitted <%= ago(submission.at) %>.</p>
    <p>
      Iteration <b><%= submission.version %></b> of <b><%= submission.versions_count %></b>.
      <% if submission.user.completed?(submission.exercise) %>
        This exercise has been thoroughly bikeshedded, and <b><%= submission.user.username %></b> has moved on.
      <% else %>
        This exercise is still in progress.
      <% end %>
    </p>
    <p>&laquo; <a href="/<%= [submission.user.username, submission.language, submission.slug].join('/') %>">Submission history</a></p>
  </div>
</div>

<div class="row">

  <%= erb :"code/simple", locals: {
      title: "Code",
      html: { id: "current-submission" },
      code: submission.code,<commit_msg>Add links to related submissions on nitpick page. See #343.<commit_after><div class="row">
  <div class="span12">
    <%= erb :byline, locals: {exercise: submission.exercise, user: submission.user} %>
    <p>Submitted <%= ago(submission.at) %>.</p>
    <p>
      Iteration <b><%= submission.version %></b> of <b><%= submission.versions_count %></b>.
      <% if submission.user.completed?(submission.exercise) %>
        This exercise has been thoroughly bikeshedded, and <b><%= submission.user.username %></b> has moved on.
      <% else %>
        This exercise is still in progress.
      <% end %>
    </p>
    <p> View iteration:
      <% submission.related_submissions.each do |related| %>
        <% if related == submission %>
          <%= related.version %>
        <% else %>
          <a href="/submissions/<%= related.id %>"> <%= related.version %></a>
        <% end %>
      <% end %>

    </p>
    <p>&laquo; <a href="/<%= [submission.user.username, submission.language, submission.slug].join('/') %>">Submission history</a></p>
  </div>
</div>

<div class="row">

  <%= erb :"code/simple", locals: {
      title: "Code",
      html: { id: "current-submission" },
      code: submission.code,
{'fraction_non_alphanumeric': 0.19845485272815064, 'fraction_numerical': 0.003380009657170449, 'mean_word_length': 2.9846153846153847, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 71, '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': '6507177', 'n_tokens_mistral': 717, 'n_tokens_neox': 646, 'n_words': 165}