<commit_before><% content_for :title, "#{@course.code} - #{@course.name}" %>
<p id="notice"><%= notice %></p>

<p>
<strong><%= Course.human_attribute_name('code') %>:</strong>
  <%= @course.code %>
</p>

<p>
  <strong><%= Course.human_attribute_name('name') %>:</strong>
  <%= @course.name %>
</p>

<p>
  <strong><%= Course.human_attribute_name('year') %>:</strong>
  <%= @course.year %>
</p>

<p>
  <strong><%= Course.human_attribute_name('required') %>:</strong>
  <%= t @course.required.to_s %>
</p>

<p>
  <strong><%= Course.human_attribute_name('homepage') %>:</strong>
  <%= @course.homepage %>
</p>

<p>
  <strong><%= Course.human_attribute_name('periods') %>:</strong>
  <% @course.periods.each do | period | %>
    <%= period.name %>
  <%end%>
</p>

<p>
  <strong><%= Course.human_attribute_name('programme') %>:</strong>
  <%= @course.programme %>
</p>

<p>
  <strong><%= Course.human_attribute_name('description') %>:</strong>
  <%= @course.description %>
</p>
<% if policy(Course).update? %>
  <%= link_to t('edit'), edit_course_path(@course) %> |
<% end %>
<%= link_to t('back'), courses_path %><commit_msg>Add box class to courses/show<commit_after><article class="box">
  <h1> <% content_for :title, "#{@course.code} - #{@course.name}" %> </h1>
  <p id="notice"><%= notice %></p>

  <p>
  <strong><%= Course.human_attribute_name('code') %>:</strong>
    <%= @course.code %>
  </p>

  <p>
    <strong><%= Course.human_attribute_name('name') %>:</strong>
    <%= @course.name %>
  </p>

  <p>
    <strong><%= Course.human_attribute_name('year') %>:</strong>
    <%= @course.year %>
  </p>

  <p>
    <strong><%= Course.human_attribute_name('required') %>:</strong>
    <%= t @course.required.to_s %>
  </p>

  <p>
    <strong><%= Course.human_attribute_name('homepage') %>:</strong>
    <%= @course.homepage %>
  </p>

  <p>
    <strong><%= Course.human_attribute_name('periods') %>:</strong>
    <% @course.periods.each do | period | %>
      <%= period.name %>
    <%end%>
  </p>

  <p>
    <strong><%= Course.human_attribute_name('programme') %>:</strong>
    <%= @course.programme %>
  </p>

  <p>
    <strong><%= Course.human_attribute_name('description') %>:</strong>
    <%= @course.description %>
  </p>
  <% if policy(Course).update? %>
    <%= link_to t('edit'), edit_course_path(@course) %> |
  <% end %>
  <%= link_to t('back'), courses_path %>
</article>
{'fraction_non_alphanumeric': 0.2647058823529412, 'fraction_numerical': 0.0008403361344537816, 'mean_word_length': 4.098501070663811, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 123, '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': '1339891', 'n_tokens_mistral': 989, 'n_tokens_neox': 889, 'n_words': 150}