<commit_before><div class="container">
  <div class="page">
    <div class="page-header">
      <h1 class="page-title"><%= @course.title %></h1>
    </div>

    <div class="page-actions">
      <div class="btn-toolbar">
        <div class="btn-group">
          <% if @course.draft? %>
            <%= button_to t('hi_there.courses.actions.open'), open_course_path(@course), class: 'btn btn-default', method: :put %>
          <% elsif @course.opened? %>
            <%= button_to t('hi_there.courses.actions.close'), close_course_path(@course), class: 'btn btn-default', method: :put %>
          <% elsif @course.closed? %>
            <%= button_to t('hi_there.courses.actions.open'), open_course_path(@course), class: 'btn btn-default', method: :put %>
          <% end %>

          <% if @course.draft? %>
            <%= link_to t('hi_there.common.actions.edit'), edit_course_path(@course), class: 'btn btn-default' %>          
          <% end %>
        </div>
      </div>
    </div>

    <div class="page-body">
      <table class="table">
        <thead>
          <tr>
            <th>Subject</th>
            <th>Delivered after (days)</th>
          </tr>
        </thead>

        <tbody class="course-emails-list">
          <%= render partial: 'hi_there/courses/email', collection: @emails %>
        </tbody>
      </table>  
      <% unless params[:published] %>
        <div class="list-footer">
          <div class="btn-toolbar">
            <div class="btn-group">
              <%= link_to t('hi_there.courses.actions.add_email'), new_course_email_path(1), class: 'btn btn-default' %>
            </div>
          </div>
        </div>  
      <% end %>
    </div>
  </div>
</div><commit_msg>fixbug: replace old wire framing placeholder with real object in link_to<commit_after><div class="container">
  <div class="page">
    <div class="page-header">
      <h1 class="page-title"><%= @course.title %></h1>
    </div>

    <div class="page-actions">
      <div class="btn-toolbar">
        <div class="btn-group">
          <% if @course.draft? %>
            <%= button_to t('hi_there.courses.actions.open'), open_course_path(@course), class: 'btn btn-default', method: :put %>
          <% elsif @course.opened? %>
            <%= button_to t('hi_there.courses.actions.close'), close_course_path(@course), class: 'btn btn-default', method: :put %>
          <% elsif @course.closed? %>
            <%= button_to t('hi_there.courses.actions.open'), open_course_path(@course), class: 'btn btn-default', method: :put %>
          <% end %>

          <% if @course.draft? %>
            <%= link_to t('hi_there.common.actions.edit'), edit_course_path(@course), class: 'btn btn-default' %>          
          <% end %>
        </div>
      </div>
    </div>

    <div class="page-body">
      <table class="table">
        <thead>
          <tr>
            <th>Subject</th>
            <th>Delivered after (days)</th>
          </tr>
        </thead>

        <tbody class="course-emails-list">
          <%= render partial: 'hi_there/courses/email', collection: @emails %>
        </tbody>
      </table>  
      <% unless params[:published] %>
        <div class="list-footer">
          <div class="btn-toolbar">
            <div class="btn-group">
              <%= link_to t('hi_there.courses.actions.add_email'), new_course_email_path(@course), class: 'btn btn-default' %>
            </div>
          </div>
        </div>  
      <% end %>
    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.18337617823479005, 'fraction_numerical': 0.0014281633818908884, 'mean_word_length': 2.118432769367765, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '6633061', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1089, 'n_words': 213}