<commit_before>{% extends "two_rows.html" %}
{% load i18n avatar_tags social %}

{% block title %}{% blocktrans with user=user.username %}@{{ user }} profile{% endblocktrans %}{% endblock %}

{% block extra_head %}
{{ block.super }}
 <script src="{{ STATIC_URL }}endless_pagination/js/endless-pagination.js"></script>
 <script>
    $(function (){
        $.endlessPaginate({
            paginateOnScroll: true,
            paginateOnScrollChunkSize: 5,
            paginateOnScrollMargin: 10
        });
    });
 </script>
{% endblock %}

{% block background %}<div id="user-background"></div>{% endblock %}
{# ToDo: this background will be customizable #}

{% block post_message %}
{% endblock %}

{% block left_row %}

      <div class="slide_wrapper partial_slider about_me">
         <div class="slider">
      {% ifequal request.user user %}
            <h3 class="top-title main_title">{% trans "About me" %}</h3>
      {% else %}
            <h3 class="top-title">{% trans "About" %} {{ user.userprofile.realname|default:user.username }}</h3>
      {% endifequal %}  

            <div class="user-page-top">
      {% if user.userprofile.website %}
                <p class="user-website"><i class="fa fa-link"></i> <a href="user.userprofile.website">{{ user.userprofile.website|truncatechars:30 }}</a></p>
      {% endif %}
      {% if user.userprofile.location %}
                <p class="user-location"><i class="fa fa-map-marker"></i> {{ user.userprofile.location }}</p>
      {% endif %}
                <span class="user-about">{% if user.userprofile.about %}{{ user.userprofile.about }}{% else %}{% trans 'Sorry, still not put anything in my description' %}{% endif %}</span><br />
            </div>

         </div>
         <div class="slider_menu more"></div>
      </div>

      {% if request.user.is_authenticated %}
        {% ifequal request.user user %}
          {% include "social/message_form.html" %}
        {% endifequal %}     
      {% endif %}  

      <h3>{% trans "Last tracks" %}</h3>
      {% for object in user.audio_set.all|slice:":5" %}
         {% include "audio/audio_teaser.html" %}
      {% empty %}
            <span class="no-yet">{% trans "No tracks yet" %}</span>
        {% ifequal request.user user %}
            <span class="new"><a href="{% url "audio-create" %}">{% trans "Upload track" %}</a></span>
        {% endifequal %}
      {% endfor %}
      <span class="more"><a href="{% url 'user-tracks' user %}">{% trans "more..." %}</a></span>

      <h3>{% trans "Last activities" %}</h3>
       {# include "social/actions_list.html" #}
      <ul class="action-stream">
         {% for action in user.action_list|slice:":5" %}
            <li>{% include 'social/action_teaser.html' %}</li>
         {% empty %}
            <span class="no-yet">{% trans "No actions yet" %}</span>
         {% endfor %}
      </ul>
      <span class="more"><a href="{% url 'user-activities' user %}">{% trans "more..." %}</a></span>

      <h3>{% trans "Last projects" %}</h3>
      <div class="projects-wrapper">
         {% for object in user.project_set.all|slice:":6" %}
            {% include "project/project_teaser.html" %}
         {% empty %}
               <span class="no-yet">{% trans "No project yet" %}</span>
            {% ifequal request.user user %}
               <span class="new"><a href="{% url "project-create" %}">{% trans "Create new project" %}</a></span>
            {% endifequal %}
         {% endfor %}
      </div>
      <span class="more"><a href="{% url 'user-projects' user %}">{% trans "more..." %}</a></span>

{% endblock %}

{% block right_row %}
      {% with "full" as profmode %}     
         {% include "users/user_prof.html" %}
      {% endwith %}
   <ul class="nav nav-list">
      {% include "discover-items-menu.html" %}
   </ul>
{% endblock %}

<commit_msg>fixed homepage link in user page<commit_after>{% extends "two_rows.html" %}
{% load i18n avatar_tags social %}

{% block title %}{% blocktrans with user=user.username %}@{{ user }} profile{% endblocktrans %}{% endblock %}

{% block extra_head %}
{{ block.super }}
 <script src="{{ STATIC_URL }}endless_pagination/js/endless-pagination.js"></script>
 <script>
    $(function (){
        $.endlessPaginate({
            paginateOnScroll: true,
            paginateOnScrollChunkSize: 5,
            paginateOnScrollMargin: 10
        });
    });
 </script>
{% endblock %}

{% block background %}<div id="user-background"></div>{% endblock %}
{# ToDo: this background will be customizable #}

{% block post_message %}
{% endblock %}

{% block left_row %}

      <div class="slide_wrapper partial_slider about_me">
         <div class="slider">
      {% ifequal request.user user %}
            <h3 class="top-title main_title">{% trans "About me" %}</h3>
      {% else %}
            <h3 class="top-title">{% trans "About" %} {{ user.userprofile.realname|default:user.username }}</h3>
      {% endifequal %}  

            <div class="user-page-top">
      {% if user.userprofile.website %}
                <p class="user-website"><i class="fa fa-link"></i> <a target="_blank" href="{{ user.userprofile.website }}">{{ user.userprofile.website|truncatechars:30 }}</a></p>
      {% endif %}
      {% if user.userprofile.location %}
                <p class="user-location"><i class="fa fa-map-marker"></i> {{ user.userprofile.location }}</p>
      {% endif %}
                <span class="user-about">{% if user.userprofile.about %}{{ user.userprofile.about }}{% else %}{% trans 'Sorry, still not put anything in my description' %}{% endif %}</span><br />
            </div>

         </div>
         <div class="slider_menu more"></div>
      </div>

      {% if request.user.is_authenticated %}
        {% ifequal request.user user %}
          {% include "social/message_form.html" %}
        {% endifequal %}     
      {% endif %}  

      <h3>{% trans "Last tracks" %}</h3>
      {% for object in user.audio_set.all|slice:":5" %}
         {% include "audio/audio_teaser.html" %}
      {% empty %}
            <span class="no-yet">{% trans "No tracks yet" %}</span>
        {% ifequal request.user user %}
            <span class="new"><a href="{% url "audio-create" %}">{% trans "Upload track" %}</a></span>
        {% endifequal %}
      {% endfor %}
      <span class="more"><a href="{% url 'user-tracks' user %}">{% trans "more..." %}</a></span>

      <h3>{% trans "Last activities" %}</h3>
       {# include "social/actions_list.html" #}
      <ul class="action-stream">
         {% for action in user.action_list|slice:":5" %}
            <li>{% include 'social/action_teaser.html' %}</li>
         {% empty %}
            <span class="no-yet">{% trans "No actions yet" %}</span>
         {% endfor %}
      </ul>
      <span class="more"><a href="{% url 'user-activities' user %}">{% trans "more..." %}</a></span>

      <h3>{% trans "Last projects" %}</h3>
      <div class="projects-wrapper">
         {% for object in user.project_set.all|slice:":6" %}
            {% include "project/project_teaser.html" %}
         {% empty %}
               <span class="no-yet">{% trans "No project yet" %}</span>
            {% ifequal request.user user %}
               <span class="new"><a href="{% url "project-create" %}">{% trans "Create new project" %}</a></span>
            {% endifequal %}
         {% endfor %}
      </div>
      <span class="more"><a href="{% url 'user-projects' user %}">{% trans "more..." %}</a></span>

{% endblock %}

{% block right_row %}
      {% with "full" as profmode %}     
         {% include "users/user_prof.html" %}
      {% endwith %}
   <ul class="nav nav-list">
      {% include "discover-items-menu.html" %}
   </ul>
{% endblock %}


{'fraction_non_alphanumeric': 0.19963725871226842, 'fraction_numerical': 0.005182018396165306, 'mean_word_length': 2.4448906738063365, 'pattern_counts': {'":': 6, '<': 145, '<?xml version=': 0, '>': 145, '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': '4623010', 'n_tokens_mistral': 2636, 'n_tokens_neox': 2357, 'n_words': 545}