<commit_before><%
   @guide = @exercise.guide
   @stats = @guide.stats(current_user) if @guide
%>


<div class="panel panel-<%= class_for_status submission.fine_status %>">
  <div class="panel-heading">
    <h4><%= fa_icon icon_type_for_status(submission.fine_status) %> <%= t(submission.fine_status) %></h4>
  </div>
  <div class="panel-body">
    <% if submission.results_visible? %>
      <div>
        <% if submission.expectation_results_visible? %>
          <div>
            <strong><%= t :expectations %>:</strong>
            <ul>
              <% submission.visible_expectation_results.each do |it| %>
                <li><%= t_expectation_result it[:binding], it[:inspection] %>: <%= status_icon(it[:result]) %>
                </li>
              <% end %>
            </ul>
          </div>
        <% end %>
        <div>
          <%= submission.result_html %>
        </div>
      </div>
    <% else %>
      <div>
        <h4><%= t(:exercise_done) %></h4>
      </div>
    <% end %>

    <%= corollary_box @exercise unless submission.should_retry? %>

    <% if submission.feedback.present? %>
      <h2><%= t(:feedback) %></h2>
      <%= submission.feedback_html %>
    <% end %>
  </div>
</div>

<div class="actions">
  <%= mail_to submission.exercise.author.email, fa_icon('warning', text: t(:notify_problem_to_author)), subject: t(:problem_with_exercise, title: submission.exercise.title), class: 'btn btn-warning pull-left' %>
  <%= previous_exercise_button(@exercise) %>
  <%= next_exercise_button(@exercise) %><commit_msg>Less shocking notify problem link<commit_after><%
   @guide = @exercise.guide
   @stats = @guide.stats(current_user) if @guide
%>


<div class="panel panel-<%= class_for_status submission.fine_status %>">
  <div class="panel-heading">
    <h4><%= fa_icon icon_type_for_status(submission.fine_status) %> <%= t(submission.fine_status) %></h4>
  </div>
  <div class="panel-body">
    <% if submission.results_visible? %>
      <div>
        <% if submission.expectation_results_visible? %>
          <div>
            <strong><%= t :expectations %>:</strong>
            <ul>
              <% submission.visible_expectation_results.each do |it| %>
                <li><%= t_expectation_result it[:binding], it[:inspection] %>: <%= status_icon(it[:result]) %>
                </li>
              <% end %>
            </ul>
          </div>
        <% end %>
        <div>
          <%= submission.result_html %>
        </div>
      </div>
    <% else %>
      <div>
        <h4><%= t(:exercise_done) %></h4>
      </div>
    <% end %>

    <%= corollary_box @exercise unless submission.should_retry? %>

    <% if submission.feedback.present? %>
      <h2><%= t(:feedback) %></h2>
      <%= submission.feedback_html %>
    <% end %>
  </div>
</div>

<div class="actions">
  <%= mail_to submission.exercise.author.email,
              fa_icon(:bug, text: t(:notify_problem_to_author)),
              subject: t(:problem_with_exercise, title: submission.exercise.title),
              class: 'text-warning warning pull-left' %>
  <%= previous_exercise_button(@exercise) %>
  <%= next_exercise_button(@exercise) %>
{'fraction_non_alphanumeric': 0.1796577946768061, 'fraction_numerical': 0.0038022813688212928, 'mean_word_length': 2.583427922814983, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, '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': '2005409', 'n_tokens_mistral': 1125, 'n_tokens_neox': 982, 'n_words': 178}