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

{% call macros.us_template('course-tpl') %}
<!-- TODO(david) FIXME[uw]: Hotspot needs to be bigger -->
<div class="visible-section">
  <div class="course-code"><%- course.code %></div>
  <div class="course-name"><%- course.name %></div>
  <div class="ribbons">
    <% if (user_course.term_id) { %>
      <div class="taken-ribbon"><i class="icon-ok"></i></div>
      <% if (user_course.has_reviewed) { %>
        <div class="reviewed-ribbon"><i class="icon-pencil"></i></div>
      <% } %>
    <% } %>
  </div>
  <div class="rating-box-placeholder"></div>
  {# TODO(david): This is really dumb. Fix in a better way. #}
  <div style="clear: both; margin-bottom: -25px;"></div>
</div>
<div class="course-inner-placeholder"></div>
{% endcall %}

{% call macros.us_template('sample-friends-tpl') %}
<div class="friend-collection-placeholder"></div>
<% var remaining = Math.max(num_friends - max_sample_friends, 0); %>
<% if (remaining > 0) { %><commit_msg>fix bug with friends who've taken course not showing<commit_after>{% import 'macros.html' as macros %}

{% call macros.us_template('course-tpl') %}
<!-- TODO(david) FIXME[uw]: Hotspot needs to be bigger -->
<div class="visible-section">
  <div class="course-code"><%- course.code %></div>
  <div class="course-name"><%- course.name %></div>
  <div class="ribbons">
    <% if (user_course.term_id) { %>
      <div class="taken-ribbon"><i class="icon-ok"></i></div>
      <% if (user_course.has_reviewed) { %>
        <div class="reviewed-ribbon"><i class="icon-pencil"></i></div>
      <% } %>
    <% } %>
  </div>
  <div class="rating-box-placeholder"></div>
  <div class="sample-friends-placeholder"></div>
  {# TODO(david): This is really dumb. Fix in a better way. #}
  <div style="clear: both; margin-bottom: -25px;"></div>
</div>
<div class="course-inner-placeholder"></div>
{% endcall %}

{% call macros.us_template('sample-friends-tpl') %}
<div class="friend-collection-placeholder"></div>
<% var remaining = Math.max(num_friends - max_sample_friends, 0); %>
<% if (remaining > 0) { %>
{'fraction_non_alphanumeric': 0.22280534351145037, 'fraction_numerical': 0.003816793893129771, 'mean_word_length': 4.114634146341463, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 73, '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': '3281996', 'n_tokens_mistral': 769, 'n_tokens_neox': 705, 'n_words': 150}