<commit_before>{% extends 'profile_base.html' %}

{% block profile %}
    <form class="ui form segment" method="post">
        <div class="field">
            <label for="display_name">Name:</label>
            <div class="ui left labeled input">
                <input placeholder="Name" name="display_name" id="display_name"
                    type="text" value="{{ request.user.name }}"/>
            </div>
        </div>
        <div class="field">
            <label for="about">About:</label>
            <div class="ui left labeled input">
                <textarea name="about" id="about" cols="30"
                          rows="10">{{ request.user.about }}</textarea>
            </div>
        </div>
        <div class="grouped inline fields">
            <label for="public">Profile Visibility</label><commit_msg>Add CSRF protection token to profile form<commit_after>{% extends 'profile_base.html' %}

{% block profile %}
    <form class="ui form segment" method="post">
        <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
        <div class="field">
            <label for="display_name">Name:</label>
            <div class="ui left labeled input">
                <input placeholder="Name" name="display_name" id="display_name"
                    type="text" value="{{ request.user.name }}"/>
            </div>
        </div>
        <div class="field">
            <label for="about">About:</label>
            <div class="ui left labeled input">
                <textarea name="about" id="about" cols="30"
                          rows="10">{{ request.user.about }}</textarea>
            </div>
        </div>
        <div class="grouped inline fields">
            <label for="public">Profile Visibility</label>
{'fraction_non_alphanumeric': 0.1578054298642534, 'fraction_numerical': 0.004524886877828055, 'mean_word_length': 2.0765217391304347, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 42, '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': '2863149', 'n_tokens_mistral': 484, 'n_tokens_neox': 464, 'n_words': 116}