<commit_before><!-- reviews/show.html.erb -->

<div class="page-header">
  <h1><%= "#{@course.code} #{@course.name} (#{@course_instance.name}) - #{@exercise.name}" %></h1>
</div>

<p>
  Submission:
  <%=l @submission.created_at, :format => :long %>
  (<%= link_to "#{@submission.extension}", @submission %>)
</p>

<% unless @exercise.anonymous_graders %>
  <p>Reviewer: <%= @grader.firstname %> <%= @grader.lastname %></p>
<% end %>

<% unless @review.grade.blank? %>
  <p>Grade: <%= @review.grade %></p>
<% end %>


<p class="feedback-preview"><%= @review.feedback.gsub('<', '&lt;').gsub('>', '&gt;').gsub("\n", "<br />\n").html_safe %></p>

<p><%= link_to 'Back', submit_url(@exercise.id) %></p><commit_msg>Fixed review#show to properly handle missing feedback<commit_after><!-- reviews/show.html.erb -->

<div class="page-header">
  <h1><%= "#{@course.code} #{@course.name} (#{@course_instance.name}) - #{@exercise.name}" %></h1>
</div>

<p>
  Submission:
  <%=l @submission.created_at, :format => :long %>
  (<%= link_to "#{@submission.extension}", @submission %>)
</p>

<% unless @exercise.anonymous_graders %>
  <p>Reviewer: <%= @grader.firstname %> <%= @grader.lastname %></p>
<% end %>

<% unless @review.grade.blank? %>
  <p>Grade: <%= @review.grade %></p>
<% end %>


<p class="feedback-preview"><%= (@review.feedback || '').gsub('<', '&lt;').gsub('>', '&gt;').gsub("\n", "<br />\n").html_safe %></p>

<p><%= link_to 'Back', submit_url(@exercise.id) %></p>
{'fraction_non_alphanumeric': 0.2980900409276944, 'fraction_numerical': 0.002728512960436562, 'mean_word_length': 4.844621513944223, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 63, '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': '4868356', 'n_tokens_mistral': 624, 'n_tokens_neox': 565, 'n_words': 100}