<commit_before><div class="content">
    <div class="row">
        <div class="box col-md-6">
            <h1>About You</h1>
            <table>
                <tbody>
                <tr>
                    <td><b>Username:</b> {{ user.getId() }} </td>
                </tr>
                <tr>
                    <td><b>First Name:</b> {{ user.getDisplayedFirstName() }} </td>
                    <td><a onclick="userNameChange()"><i class="fas fa-pencil-alt" aria-hidden="true"></i></a></td>
                </tr>
                <tr>
                    <td><b>Last Name:</b> {{ user.getDisplayedLastName() }} </td>
                </tr>
                {% if show_change_password %}
                    <tr>
                        <td><b>Change Password</b></td>
                        <td><a onclick="passwordChange()"><i class="fas fa-pencil-alt" aria-hidden="true"></i></a></td>
                    </tr>
                {% endif %}
                </tbody>
            </table>
        </div>
        <div class="box col-md-6">
            {% for ranks in statuses %}
                {% if loop.index == 1 or ranks|length > 0 %}
                    <h2>Your {{ loop.index == 1 ? "" : "Archived " }}Courses</h2>
                    <table class="courses-table">
                        <tbody>
                        {% for rank in ranks %}
                            <tr>
                                <td colspan="8">
                                    <h3>{{ rank.title }}</h3>
                                </td>
                            </tr>
                            {% for course in rank.courses %}
                                <tr>
                                    <td>
                                        <a id="{{ course.getSemester() }}_{{ course.getTitle() }}" class="btn btn-primary btn-block text-left" style="text-align:left; padding-left:10px" href="{{ core.buildUrl({'component': 'navigation', 'course': course.getTitle(), 'semester': course.getSemester()}) }}">
                                            {{ course.getLongSemester() }} &nbsp; &nbsp;
                                            {{ course.getCapitalizedTitle() }} &nbsp; &nbsp;
                                            {% if course.getDisplayName() != "" %}
                                                {{ course.getDisplayName() }}
                                            {% endif %}
                                            {{ user.accessAdmin() }}
                                        </a>
                                    </td>
                                </tr>
                            {% endfor %}
                        {% endfor %}
                        </tbody>
                    </table>
                    {% if not (loop.index == statuses|length or statuses[loop.index0 + 1]|length == 0) %}
                        <br>
                    {% endif %}
                {% endif %}
            {% endfor %}
        </div>
    </div>
</div>
{% include 'EditNameForm.twig' %}
{% if show_change_password %}
    {% include 'ChangePasswordForm.twig' %}
{% endif %}
<commit_msg>[UI] Show user email on home page (#3546)<commit_after><div class="content">
    <div class="row">
        <div class="box col-md-6">
            <h1>About You</h1>
            <table>
                <tbody>
                <tr>
                    <td><b>Username:</b> {{ user.getId() }} </td>
                </tr>
                <tr>
                    <td><b>First Name:</b> {{ user.getDisplayedFirstName() }} </td>
                    <td><a onclick="userNameChange()"><i class="fas fa-pencil-alt" aria-hidden="true"></i></a></td>
                </tr>
                <tr>
                    <td><b>Last Name:</b> {{ user.getDisplayedLastName() }} </td>
                </tr>
                <tr>
                    <td><b>Email:</b> {{ user.getEmail() }} </td>
                </tr>
                {% if show_change_password %}
                    <tr>
                        <td><b>Change Password</b></td>
                        <td><a onclick="passwordChange()"><i class="fas fa-pencil-alt" aria-hidden="true"></i></a></td>
                    </tr>
                {% endif %}
                </tbody>
            </table>
        </div>
        <div class="box col-md-6">
            {% for ranks in statuses %}
                {% if loop.index == 1 or ranks|length > 0 %}
                    <h2>Your {{ loop.index == 1 ? "" : "Archived " }}Courses</h2>
                    <table class="courses-table">
                        <tbody>
                        {% for rank in ranks %}
                            <tr>
                                <td colspan="8">
                                    <h3>{{ rank.title }}</h3>
                                </td>
                            </tr>
                            {% for course in rank.courses %}
                                <tr>
                                    <td>
                                        <a id="{{ course.getSemester() }}_{{ course.getTitle() }}" class="btn btn-primary btn-block text-left" style="text-align:left; padding-left:10px" href="{{ core.buildUrl({'component': 'navigation', 'course': course.getTitle(), 'semester': course.getSemester()}) }}">
                                            {{ course.getLongSemester() }} &nbsp; &nbsp;
                                            {{ course.getCapitalizedTitle() }} &nbsp; &nbsp;
                                            {% if course.getDisplayName() != "" %}
                                                {{ course.getDisplayName() }}
                                            {% endif %}
                                            {{ user.accessAdmin() }}
                                        </a>
                                    </td>
                                </tr>
                            {% endfor %}
                        {% endfor %}
                        </tbody>
                    </table>
                    {% if not (loop.index == statuses|length or statuses[loop.index0 + 1]|length == 0) %}
                        <br>
                    {% endif %}
                {% endif %}
            {% endfor %}
        </div>
    </div>
</div>
{% include 'EditNameForm.twig' %}
{% if show_change_password %}
    {% include 'ChangePasswordForm.twig' %}
{% endif %}

{'fraction_non_alphanumeric': 0.1510847510535352, 'fraction_numerical': 0.005931012954580927, 'mean_word_length': 0.8885941644562334, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 149, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 40, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3288903', 'n_tokens_mistral': 1684, 'n_tokens_neox': 1505, 'n_words': 300}