<commit_before><!-- extend from base layout -->
{% extends "base.html" %}

{% block content %}
    <h1>Your Profile</h1>
    {% include 'flash.html' %}
    <div class="well">
        <h2>{{ user.nickname }}</h2>
        <br>
        <div class="row">
            <div class="col-sm-12">
                <div class="col-sm-6">
                    <p>Name: <strong>{{ user.name }}</strong></p>
                    {% if user.id == g.user.id %}
                    <p>Email: <strong>{{ user.email }}</strong></p>
                    {% endif %}
                </div>
                {% if user.id == g.user.id %}
                <div class="col-sm-6">
                    <p>Age: <strong>{{ user.age }}</strong></p>
                    <p>Height: <strong>{{ user.height }}</strong></p>
                </div>
                {% endif %}
            </div>
        </div>
        <hr>
        <h3>Measurements</h3>
        <br>
        <div class="row">
            <div class="col-sm-12">
                {% for measurement in user.get_measurements() %}
                    <div class="col-sm-4">
                        <p>{{ measurement }}</p>
                    </div>
                {% endfor %}
            </div>
        </div>
        <hr>
        <a href="{{ url_for('edit', nickname=user.nickname) }}">
            <button type="button" class="btn btn-primary">Edit Your Profile</button>
        </a>
    </div>
{% endblock %}<commit_msg>Add gender user info and change the template<commit_after><!-- extend from base layout -->
{% extends "base.html" %}

{% block content %}
    <h1>Your Profile</h1>
    {% include 'flash.html' %}
    <div class="well">
        <h2>{{ user.nickname }}</h2>
        <br>
        <div class="row">
            <div class="col-sm-12">
                <div class="col-sm-6">
                    <p>Name: <strong>{{ user.name }}</strong></p>
                </div>
                {% if user.id == g.user.id %}
                <div class="col-sm-6">
                    <p>Email: <strong>{{ user.email }}</strong></p>
                </div>
                {% endif %}
            </div>
            {% if user.id == g.user.id %}
            <div class="col-sm-12">
                <hr>
            </div>
            <div class="col-sm-12">
                <div class="col-sm-4">
                    <p>Gender: <strong>{{ user.gender }}</strong></p>
                </div>
                <div class="col-sm-4">
                    <p>Age: <strong>{{ user.age }}</strong></p>
                </div>
                <div class="col-sm-4">
                    <p>Height: <strong>{{ user.height }}</strong></p>
                </div>
            </div>
            {% endif %}
        </div>
        <div class="col-sm-12">
            <hr>
        </div>
        <h3>Measurements</h3>
        <br>
        <div class="row">
            <div class="col-sm-12">
                {% for measurement in user.get_measurements() %}
                    <div class="col-sm-4">
                        <p>{{ measurement }}</p>
                    </div>
                {% endfor %}
            </div>
        </div>
        <hr>
        <a href="{{ url_for('edit', nickname=user.nickname) }}">
            <button type="button" class="btn btn-primary">Edit Your Profile</button>
        </a>
    </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.18763071407230356, 'fraction_numerical': 0.010457125784284434, 'mean_word_length': 1.1825293350717079, 'pattern_counts': {'":': 0, '<': 118, '<?xml version=': 0, '>': 118, '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': '6180047', 'n_tokens_mistral': 1079, 'n_tokens_neox': 969, 'n_words': 208}