<commit_before>{% macro video_item(idx, video) -%}
  <li id="slide-{{ idx }}">
    {{ video.embed_html }}
    <a class="vote" data-shortlink="{{ video.shortlink }}"
         data-upvote-url="{{ url('flicks.videos.upvote', video.shortlink)}}"
         data-token="{{ csrf_token }}" data-votes="{{ video.votes }}">{{ video.votes }}</a>
    <div class="video-details">
      <a href="{{ video.details_href }}"
         class="title" title="{{ video.title }}">{{ video.title }}</a>
      <a href="{{ url('flicks.users.details', user_id=video.user_id) }}"
         class="user">{{ video.user.userprofile.full_name }}, {{ video.user.userprofile.country }}</a>
      <p class="category">
        {# TODO: Add views for these pages. #}
        {% trans category=video.category, country=video.user.userprofile.country %}
          <a href="#"
             title="{{ category }}">{{ category }}</a> <span>for</span>
          <a href="#"
             title="{{ country }}">{{ country }}</a>
        {% endtrans %}
      </p>
      <p class="video-info">
        {# TODO: Add video upload date and view count. #}
        <span class="date"></span>
        <span class="views">
          {# L10n: Refers to the number of views a video received. For example, 100 views. #}
          {% trans %} 
            {{ _('views') }}
          {% endtrans %}
        </span>
      </p>
    </div>
  </li>
{%- endmacro %}

{% macro form_section(f, form) -%}
  <div class="field {{ 'error' if form.errors[f] }}
    {{ form[f].field.widget.attrs['class'] }}">
    {{ form[f].label_tag() }}

    {% if form[f].field.required %}
      <span class="required">*</span><commit_msg>fixed typo on macros for l10n<commit_after>{% macro video_item(idx, video) -%}
  <li id="slide-{{ idx }}">
    {{ video.embed_html }}
    <a class="vote" data-shortlink="{{ video.shortlink }}"
         data-upvote-url="{{ url('flicks.videos.upvote', video.shortlink)}}"
         data-token="{{ csrf_token }}" data-votes="{{ video.votes }}">{{ video.votes }}</a>
    <div class="video-details">
      <a href="{{ video.details_href }}"
         class="title" title="{{ video.title }}">{{ video.title }}</a>
      <a href="{{ url('flicks.users.details', user_id=video.user_id) }}"
         class="user">{{ video.user.userprofile.full_name }}, {{ video.user.userprofile.country }}</a>
      <p class="category">
        {# TODO: Add views for these pages. #}
        {% trans category=video.category, country=video.user.userprofile.country %}
          <a href="#"
             title="{{ category }}">{{ category }}</a> <span>for</span>
          <a href="#"
             title="{{ country }}">{{ country }}</a>
        {% endtrans %}
      </p>
      <p class="video-info">
        {# TODO: Add video upload date and view count. #}
        <span class="date"></span>
        <span class="views">
          {# L10n: Refers to the number of views a video received. For example, 100 views. #}
          {{ _('views') }}
        </span>
      </p>
    </div>
  </li>
{%- endmacro %}

{% macro form_section(f, form) -%}
  <div class="field {{ 'error' if form.errors[f] }}
    {{ form[f].field.widget.attrs['class'] }}">
    {{ form[f].label_tag() }}

    {% if form[f].field.required %}
      <span class="required">*</span>
{'fraction_non_alphanumeric': 0.2160342717258262, 'fraction_numerical': 0.0036719706242350062, 'mean_word_length': 2.541711809317443, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '5094841', 'n_tokens_mistral': 1092, 'n_tokens_neox': 1054, 'n_words': 232}