<commit_before>{% extends "base.html" %}
{% block title %}{{ user.username }} 's profile{% endblock %}

{% block head %}
{{ super() }}
    <style>
    </style>
{% endblock %}

{% block navbar %}
{{ super() }}
{% endblock %}

{% block dashboard %}
{{ super() }}
{% endblock %}

{% block content %}
{{ super() }}

<div class="mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--12-col mdl-grid">
 <h4> {{ user.username }}</h4>

  <div><img src="{{ user.gravatar(size=256) }}" /></div>


 {% if user == current_user and not current_user.is_administrator()  %}
    <a href="{{ url_for('.edit_profile') }}">Edit profile</a>
 {% endif %}

 {% if current_user.is_administrator() and user == current_user %}
     <a href="{{ url_for('.edit_profile_admin', id=user.id) }}">Edit profile [Admin]</a>
 {% endif %}

 {% if user.name or user.location %}
 <p>
     {% if user.name %}{{ user.name }}{% endif %}
     {% if user.location %}
        From <a href="http://maps.google.com/?q={{ user.location }}" target="_blank"> {{user.location }} </a>
     {% endif %}

 </p>
 {% endif %}





 {% if user.about_me %}<p> {{ user.about_me }}</p> {% endif %}
 <div>
 <p>
     Member since {{ moment(user.member_since).format('L') }}.<br>
     Last seen {{ moment(user.last_seen).fromNow() }}.
 </p>
 </div>
 {% if current_user.is_administrator() %}
 <p>
     <a href="mailto:{{user.email}}">{{ user.email }}</a><br>
 </p>

 {% endif %}



{% if current_user.can(Permission.FOLLOW) and user != current_user %}
    {% if not current_user.is_following(user) %}
    <a href="{{ url_for('.follow', username=user.username) }}">Follow</a>
    {% else %}
    <a href="{{ url_for('.unfollow', username=user.username) }}">Unfollow</a>
    {% endif %}
{% endif %}

<a href="{{ url_for('.followers', username=user.username) }}">Followers: {{ user.followers.count() }}</a>

<a href="{{ url_for('.followed_by', username=user.username) }}">Followed by: {{ user.followed.count() }}</a>

{% if current_user.is_authenticated() and user != current_user and user.is_following(current_user) %}
    <span>Follows you</span>
{% endif %}
</div>

<div class="mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--12-col mdl-grid">
    <h3>Posts by {{ user.username }}</h3>
    {% include 'partials/_posts.html' %}
</div>

{% endblock %}



{% block scripts %}
{{ super() }}
{% endblock %}<commit_msg>Update user.html<commit_after>{% extends "base.html" %}
{% block title %}{{ user.username }} 's profile{% endblock %}

{% block head %}
{{ super() }}
    <style>
    </style>
{% endblock %}

{% block navbar %}
{{ super() }}
{% endblock %}

{% block dashboard %}
{{ super() }}
{% endblock %}

{% block content %}
{{ super() }}

<div class="mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--12-col mdl-grid">
 <h4> {{ user.username }}</h4>

  <div><img src="{{ user.gravatar(size=256) }}" /></div>


 {% if user == current_user and not current_user.is_administrator()  %}
    <a href="{{ url_for('.edit_profile') }}">Edit profile</a>
 {% endif %}

 {% if current_user.is_administrator() and user == current_user %}
     <a href="{{ url_for('.edit_profile_admin', id=user.id) }}">Edit profile [Admin]</a>
 {% endif %}

 {% if user.name or user.location %}
 <p>
     {% if user.name %}{{ user.name }}{% endif %}
     {% if user.location %}
        From <a href="http://maps.google.com/?q={{ user.location }}" target="_blank"> {{user.location }} </a>
     {% endif %}

 </p>
 {% endif %}





 {% if user.about_me %}<p> {{ user.about_me }}</p> {% endif %}
 <div>
 <p>
     Member since {{ moment(user.member_since).format('L') }}.<br>
     Last seen {{ moment(user.last_seen).fromNow() }}.
 </p>
 </div>
 {% if current_user.is_administrator() %}
 <p>
     <a href="mailto:{{user.email}}">{{ user.email }}</a><br>
 </p>

 {% endif %}



{% if current_user.can(Permission.FOLLOW) and user != current_user %}
    {% if not current_user.is_following(user) %}
    <a href="{{ url_for('.follow', username=user.username) }}">Follow</a>
    {% else %}
    <a href="{{ url_for('.unfollow', username=user.username) }}">Unfollow</a>
    {% endif %}
{% endif %}

<a href="{{ url_for('.followers', username=user.username) }}">Followers: {{ user.followers.count() }}</a>

<a href="{{ url_for('.followed_by', username=user.username) }}">Followed by: {{ user.followed.count() }}</a>

{% if current_user.is_authenticated() and user != current_user and user.is_following(current_user) %}
    <span>Follows you</span>
{% endif %}

<div class="edit-infos">
<a href="{{ url_for('auth.change_password') }}">Change Password</a> | <a href="{{ url_for('auth.change_email_request') }}">Change Email</a> | <a href="{{ url_for('auth.logout') }}">Log Out</a>
</div>
</div>

<div class="mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--12-col mdl-grid">
    <h3>Posts by {{ user.username }}</h3>
    {% include 'partials/_posts.html' %}
</div>

{% endblock %}



{% block scripts %}
{{ super() }}
{% endblock %}
{'fraction_non_alphanumeric': 0.23900263531319685, 'fraction_numerical': 0.005270626393675248, 'mean_word_length': 3.771760154738878, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, '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': '478194', 'n_tokens_mistral': 1925, 'n_tokens_neox': 1719, 'n_words': 371}