<commit_before>{% import 'macros.html' as macros %}

{% call macros.us_template('schedule-item-tpl') %}
<div class="section-info truncate">
  <a class="course-code" href="/course/<%- item.get('course_id') %>">
    <%- item.get('course').get('code') %>
  </a> -
  <%- item.get('section') %>
</div>
<div class="time-loc-info truncate">
  <%- moment(item.get('start_time'), 'H:m').format('h:mm') %> -
  <%- moment(item.get('end_time'), 'H:m').format('h:mm a') %>
  <% if (item.get('building') && item.get('room')) { %>
    <br>
    <%- item.get('building') %> <%- item.get('room') %>
  <% } %>
</div>
{% endcall %}

{% call macros.us_template('schedule-day-tpl') %}
<div class="header header-label">
    <%= day.name %>
</div>
<div class="schedule-item-container">
</div>
{% endcall %}

{% call macros.us_template('schedule-hour-row-tpl') %}
<span class="hour-label">
  <%- moment().hours(hour).format('h a') %>
</span><commit_msg>guard against course obj not being there for a schedule item<commit_after>{% import 'macros.html' as macros %}

{% call macros.us_template('schedule-item-tpl') %}
<div class="section-info truncate">
  <a class="course-code" href="/course/<%- item.get('course_id') %>">
    <%- item.get('course') ? item.get('course').get('code') : item.get('course_id') %>
  </a> -
  <%- item.get('section') %>
</div>
<div class="time-loc-info truncate">
  <%- moment(item.get('start_time'), 'H:m').format('h:mm') %> -
  <%- moment(item.get('end_time'), 'H:m').format('h:mm a') %>
  <% if (item.get('building') && item.get('room')) { %>
    <br>
    <%- item.get('building') %> <%- item.get('room') %>
  <% } %>
</div>
{% endcall %}

{% call macros.us_template('schedule-day-tpl') %}
<div class="header header-label">
    <%= day.name %>
</div>
<div class="schedule-item-container">
</div>
{% endcall %}

{% call macros.us_template('schedule-hour-row-tpl') %}
<span class="hour-label">
  <%- moment().hours(hour).format('h a') %>
</span>
{'fraction_non_alphanumeric': 0.2741273100616016, 'fraction_numerical': 0.0, 'mean_word_length': 4.310626702997276, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '7295751', 'n_tokens_mistral': 786, 'n_tokens_neox': 715, 'n_words': 115}