<commit_before>{% extends 'home.html' %}
{% load js i18n base_utils widget_tweaks markdown_deux_tags %}

{% block body_id %}profile{% endblock body_id %}

{% block title %}{% trans 'Profile' %}{% endblock title %}

{% block application_content %}
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span10 offset1" id="profile">
        <div class="row-fluid">
          <div class="span5">
            {% if mongodb_user.avatar_url %}
              <div class="pull-right avatar-frame">
                <img src="{{ mongodb_user.avatar_url }}" />
              </div>
            {% endif %}

            <h1 class="user-profile">&nbsp;<br />{% trans "Your profile" %}</h1>

            <form method='POST'>
              {% csrf_token %}

              <table class="table table-hover">
                <tr>
                  <td>{% trans "username" %}</td>
                  <td><strong>@{{ user.username }}</strong></td>
                </tr>
                <tr>
                  <td>{% trans "First name" %}</td>
                  <td>{{ user.first_name }}</td>
                </tr>
                <tr>
                  <td>{% trans "Last name" %}</td>
                  <td>{{ user.last_name }}</td>
                </tr>
                <tr>
                  <td>{% trans "e-mail" %}</td>
                  <td>{{ user.email }}</td>
                </tr>
                <tr>
                  <td>{% trans "Last login: " %}</td>
                  <td>{{ user.last_login }}</td>
                </tr>
                <tr>
                  <td>{% trans "Registered:" %}</td>
                  <td>{{ user.date_joined  }}</td>
                </tr>

              </table>

            <p class="muted">{% trans "These data are not stored durably in 1flow. They are offered courtesy of your social account provider (eg. Google, Twitter…). Change any parameter directly there, it will be reflected here next time you sign in." %}</p>
<commit_msg>Handle @ in usernames nicely.<commit_after>{% extends 'home.html' %}
{% load js i18n base_utils widget_tweaks markdown_deux_tags %}

{% block body_id %}profile{% endblock body_id %}

{% block title %}{% trans 'Profile' %}{% endblock title %}

{% block application_content %}
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span10 offset1" id="profile">
        <div class="row-fluid">
          <div class="span5">
            {% if mongodb_user.avatar_url %}
              <div class="pull-right avatar-frame">
                <img src="{{ mongodb_user.avatar_url }}" />
              </div>
            {% endif %}

            <h1 class="user-profile">&nbsp;<br />{% trans "Your profile" %}</h1>

            <form method='POST'>
              {% csrf_token %}

              <table class="table table-hover">
                <tr>
                  <td>{% trans "username" %}</td>
                  <td><strong>{% if not '@' in user.username %}@{% endif %}{{ user.username }}</strong></td>
                </tr>
                <tr>
                  <td>{% trans "First name" %}</td>
                  <td>{{ user.first_name }}</td>
                </tr>
                <tr>
                  <td>{% trans "Last name" %}</td>
                  <td>{{ user.last_name }}</td>
                </tr>
                <tr>
                  <td>{% trans "e-mail" %}</td>
                  <td>{{ user.email }}</td>
                </tr>
                <tr>
                  <td>{% trans "Last login: " %}</td>
                  <td>{{ user.last_login }}</td>
                </tr>
                <tr>
                  <td>{% trans "Registered:" %}</td>
                  <td>{{ user.date_joined  }}</td>
                </tr>

              </table>

            <p class="muted">{% trans "These data are not stored durably in 1flow. They are offered courtesy of your social account provider (eg. Google, Twitter…). Change any parameter directly there, it will be reflected here next time you sign in." %}</p>

{'fraction_non_alphanumeric': 0.16592151018380527, 'fraction_numerical': 0.004470938897168405, 'mean_word_length': 1.453991468616697, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, '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': '5545843', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1120, 'n_words': 314}