<commit_before><div class='assignment_summary'>
  <h2 class='title'>
    <%= link_to I18n.t(:assignment_link,
                       short_id: assignment.short_identifier,
                       description: assignment.description),
                edit_assignment_path(id: assignment.id),
                class: 'title' %>
  </h2>

  <div id='assignment_<%= assignment.id %>_graph' class='left'>
    <%= render partial: 'assignments/grade_distribution_graph', locals: { assignment: assignment } %>
  </div>

  <div class='right'>
    <%= render partial: 'assignments/assignment_info_summary', locals: { assignment: assignment } %>
    <%= render partial: 'assignments/grader_summary', locals: { assignment: assignment } %>
    <p>
      <%= link_to I18n.t(:refresh_graph),
                  refresh_graph_assignment_path(id: assignment.id),
                  remote: true %>
     </p>
  </div>
</div><commit_msg>Fix error with dashboard for no assignments<commit_after><% unless assignment.nil? %>
  <div class='assignment_summary'>
    <h2 class='title'>
      <%= link_to I18n.t(:assignment_link,
                         short_id: assignment.short_identifier,
                         description: assignment.description),
                  edit_assignment_path(id: assignment.id),
                  class: 'title' %>
    </h2>

    <div id='assignment_<%= assignment.id %>_graph' class='left'>
      <%= render partial: 'assignments/grade_distribution_graph', locals: { assignment: assignment } %>
    </div>

    <div class='right'>
      <%= render partial: 'assignments/assignment_info_summary', locals: { assignment: assignment } %>
      <%= render partial: 'assignments/grader_summary', locals: { assignment: assignment } %>
      <p>
        <%= link_to I18n.t(:refresh_graph),
                    refresh_graph_assignment_path(id: assignment.id),
                    remote: true %>
       </p>
    </div>
  </div>
<% end %>

{'fraction_non_alphanumeric': 0.14035087719298245, 'fraction_numerical': 0.006191950464396285, 'mean_word_length': 2.604089219330855, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '3307996', 'n_tokens_mistral': 594, 'n_tokens_neox': 543, 'n_words': 111}