<commit_before>{% extends "layout.html" %}
{% block content %}

<div class="container">
  <div class="row float-element">

    <div class="col-md-8">


      <div class="bm-pd-lg">
        <div class="inline-h3">
          <span class="blue h4"><strong>点评</strong></span>
          <a>（{{ user.reviews_count }}门）</a>
          <span class="float-right"><a href="{{ url_for('user.reviews', user_id=user.id) }}">view all >> </a></span>
        </div>

        {% for review in user.reviews[0:3] %}
        <!-- profile页面最多显示3条点评 -->
        <div class="ud-pd-md dashed">
          <div class="ud-pd-sm">
            {% set course = review.course %}
            <a href="{{ url_for('course.view_course', course_id=course.id) }}">{{ course.name }}{% if course.teachers %}（{{ course.teacher_names_display }}）{% endif %}</a>
            <span class="small grey align-bottom left-pd-sm">学期：{{ course.term_display }}</span>
            <span class="text-muted small float-right desktop">{{ review.update_time }}</span>
          </div>
          <p class="dark-grey">{{ review.content[0:60]|safe }}
            <a href="{{ url_for('course.view_course', course_id=course.id,review_id=review.id) }}"> >>{{ _('more') }}</a>
          </p>
        </div>
        {% endfor %}
      </div><!-- end bm-pd-lg -->

      <div class="bm-pd-lg">
        <div class="inline-h3">
          <span class="blue h4"><strong>关注</strong></span>
          <a>（{{ user.courses_following_count }}门）</a>
          <span class="float-right"><a href="{{ url_for('user.follow_course', user_id=user.id) }}">view all >> </a></span>
        </div>

        {% for course in user.courses_following[0:6] %}
        <!-- 关注课程最多显示6门 -->
        <div class="ud-pd-md dashed">
          <a href="{{ url_for('course.view_course', course_id=course.id) }}">{{ course.name }}{% if course.teachers %}（{{ course.teacher_names_display }}）{% endif %}</a>
          <span class="small grey align-bottom  float-right">学期：{{ course.term_display }}</span>
        </div>
        {% endfor %}

      </div>



      {% if user.is_student and user.info %}
      <div class="bm-pd-lg">
        <div class="inline-h3">
          <span class="blue h4"><strong>学过</strong></span>
          <a>（{{ user.courses_joined_count }}门）</a>
          <span class="float-right"><a href="{{ url_for('user.join_course', user_id=user.id) }}">view all >> </a></span>
        </div>

        {% for course in user.courses_joined[0:6] %}
        <!-- 学过课程最多显示6门 -->
        <div class="ud-pd-md dashed">
          <a href="{{ url_for('course.view_course', course_id=course.id) }}">{{ course.name }}{% if course.teachers %}（{{ course.teacher_names_display }}）{% endif %}</a>
          <span class="small grey align-bottom  float-right">学期：{{ course.term_display }}</span>
        </div>
        {% endfor %}
      </div>
      {% endif %}
<commit_msg>把view all改成 View details >><commit_after>{% extends "layout.html" %}
{% block content %}

<div class="container">
  <div class="row float-element">

    <div class="col-md-8">


      <div class="bm-pd-lg">
        <div class="inline-h3">
          <span class="blue h4"><strong>点评</strong></span>
          <a>（{{ user.reviews_count }}门）</a>
          <span class="float-right"><a href="{{ url_for('user.reviews', user_id=user.id) }}">View details &raquo;</a></span>
        </div>

        {% for review in user.reviews[0:3] %}
        <!-- profile页面最多显示3条点评 -->
        <div class="ud-pd-md dashed">
          <div class="ud-pd-sm">
            {% set course = review.course %}
            <a href="{{ url_for('course.view_course', course_id=course.id) }}">{{ course.name }}{% if course.teachers %}（{{ course.teacher_names_display }}）{% endif %}</a>
            <span class="small grey align-bottom left-pd-sm">学期：{{ course.term_display }}</span>
            <span class="text-muted small float-right desktop">{{ review.update_time }}</span>
          </div>
          <p class="dark-grey">{{ review.content[0:60]|safe }}
            <a href="{{ url_for('course.view_course', course_id=course.id,review_id=review.id) }}"> >>{{ _('more') }}</a>
          </p>
        </div>
        {% endfor %}
      </div><!-- end bm-pd-lg -->

      <div class="bm-pd-lg">
        <div class="inline-h3">
          <span class="blue h4"><strong>关注</strong></span>
          <a>（{{ user.courses_following_count }}门）</a>
          <span class="float-right"><a href="{{ url_for('user.follow_course', user_id=user.id) }}">View details &raquo;</a></span>
        </div>

        {% for course in user.courses_following[0:6] %}
        <!-- 关注课程最多显示6门 -->
        <div class="ud-pd-md dashed">
          <a href="{{ url_for('course.view_course', course_id=course.id) }}">{{ course.name }}{% if course.teachers %}（{{ course.teacher_names_display }}）{% endif %}</a>
          <span class="small grey align-bottom  float-right">学期：{{ course.term_display }}</span>
        </div>
        {% endfor %}

      </div>



      {% if user.is_student and user.info %}
      <div class="bm-pd-lg">
        <div class="inline-h3">
          <span class="blue h4"><strong>学过</strong></span>
          <a>（{{ user.courses_joined_count }}门）</a>
          <span class="float-right"><a href="{{ url_for('user.join_course', user_id=user.id) }}">View details &raquo;</a></span>
        </div>

        {% for course in user.courses_joined[0:6] %}
        <!-- 学过课程最多显示6门 -->
        <div class="ud-pd-md dashed">
          <a href="{{ url_for('course.view_course', course_id=course.id) }}">{{ course.name }}{% if course.teachers %}（{{ course.teacher_names_display }}）{% endif %}</a>
          <span class="small grey align-bottom  float-right">学期：{{ course.term_display }}</span>
        </div>
        {% endfor %}
      </div>
      {% endif %}

{'fraction_non_alphanumeric': 0.21361908053923262, 'fraction_numerical': 0.006567576909782233, 'mean_word_length': 2.5243605359317907, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 165, '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': '5418026', 'n_tokens_mistral': 2057, 'n_tokens_neox': 1988, 'n_words': 370}