<commit_before>{% extends "base.html" %}
{% set active_page = "community" %}
{% set active_page_title = _("Community") %}
{% set active_page_subtitle = [total, _("active registered users.")]|join(" ") %}
{% import "privacy/locked.html" as privacy %}
{% import "account/_helpers.html" as helper %}
{% from "projects/_helpers.html" import broken_image %}

{% block content %}
{% call row() %}
<div class="row">
  <div>
      {% if enforce_privacy and (current_user.is_anonymous() or (current_user.is_authenticated and not current_user.admin)) %}
        {{ privacy.render_lock_page() }}
      {% else %}
      <h1>{{ _('Community') }} <small>{{total}} {{ _('active registered users') }}</small><a class="pull-right btn btn-primary input-lg" href="{{url_for('leaderboard.index')}}"><i class="fa fa-trophy " style="color:white"></i> {{ _('Leaderboard') }}</a></h1>
      {% if accounts %}
      <div class="container">
        <div class="row">
      {% set count=0 %}

      {% for account in accounts %}
      <a href="{{url_for('account.profile', name=account.name)}}">
          <div class="col-xs-3 community-page-user-tile" style="margin-bottom:40px">
                        <div class="user-profile-image">
                          <center>
                        {{ helper.render_user_thumbnail(account, upload_method, style="height:150px; width:150px;", class="img-circle") }}
                          </center>
                        </div>
                        <div class="user-profile-data text-center">
                          <div class="user-profile-fullname">
                            {{ account.fullname }}
                          </div>
                          <div class="user-profile-task_runs">
                            <span class="label"> {{ _('Contributed Tasks') }} : </span><span class="value">{{account.task_runs}}</span>
                          </div>
                          <div class="user-profile-member_since">
                            <span class="label">{{ _('Joined') }} </span><span class="value">{{account.registered_ago}}</span>
                          </div>
                        </div>
            </div>
          </a>
          {% set count = count + 1 %}
          {% if count % 4 == 0 %}
            </div> <!-- End Row div -->
            <div class="row"> <!-- Start new Row div -->
          {% endif %}
            <!-- </a> -->
          {% endfor %}
        </div>
      </div>
    {% endif %}
    <div class="span9">
        {% if pagination.pages > 1 %}
            {{ helper.render_pagination(pagination) }}
        {% endif %}
    </div>
    {% endif %}
  </div>
</div>
{% endcall %}
{% endblock %}


{% block script %}{{broken_image()}}{% endblock %}<commit_msg>Clean up the community template.<commit_after>{% extends "base.html" %}
{% set active_page = "community" %}
{% set active_page_title = _("Community") %}
{% set active_page_subtitle = [total, _("active registered users.")]|join(" ") %}
{% from "privacy/locked.html" import render_lock_page %}
{% import "account/_helpers.html" as helper %}
{% from "projects/_helpers.html" import broken_image %}

{% block content %}
{% call bootstrap.row() %}
{% if enforce_privacy and (current_user.is_anonymous() or (current_user.is_authenticated and not current_user.admin)) %}
	{{render_lock_page()}}
{% else %}
	<div class="row text-right" style="margin-bottom:2em">
		<div class="col-xs-12">
			<a class="btn btn-lg btn-primary" href="{{url_for('leaderboard.index')}}"><i class="fa fa-lg fa-trophy"></i>&nbsp;&nbsp;{{_("Leaderboard")}}</a>
		</div>
	</div>
	{% if accounts %}
		{% set accounts_per_row = 4 %}
		<div class="row">
		{% for account in accounts %}
			<div class="col-xs-{{12//accounts_per_row}}">
				<a href="{{url_for('account.profile', name=account.name)}}">
					<div class="community-page-user-tile" style="margin-bottom:2em">
						<div class="user-profile-image"><center>{{helper.render_user_thumbnail(account, upload_method, style="height:150px; width:150px;", class="img-circle")}}</center></div>
						<div class="user-profile-data text-center">
							<div class="user-profile-fullname">{{account.fullname}}</div>
							<div class="user-profile-task_runs"><span class="label">{{_("Contributed Tasks")}}:</span>&nbsp;<span class="value">{{account.task_runs}}</span></div>
							<div class="user-profile-member_since"><span class="label">{{_("Joined")}}</span><span class="value">{{account.registered_ago}}</span></div>
						</div>
					</div>
				</a>
			</div>
			{% if loop.index is divisibleby(accounts_per_row) and not loop.last %}
				</div><div class="row">
			{% endif %}
		{% endfor %}
		</div>
	{% endif %}
	{% if pagination.pages > 1 %}
		<div class="row"><div class="col-xs-12">{{helper.render_pagination(pagination)}}</div></div>
	{% endif %}
{% endif %}
{% endcall %}
{% endblock %}


{% block script %}{{broken_image()}}{% endblock %}
{'fraction_non_alphanumeric': 0.1998370340191485, 'fraction_numerical': 0.006722346710124261, 'mean_word_length': 2.697289156626506, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 95, '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': '5033295', 'n_tokens_mistral': 1707, 'n_tokens_neox': 1481, 'n_words': 291}