<commit_before>{% extends "base.html" %}

{% block content -%}

{% if page_mode == 'edit' %}
<img src="{{ profile.gravatar_url }}" />
{% endif %}

<form action="{{ url('users_edit') }}" method="post">
  {{ form.as_p() }}
  {{ csrf() }}
  <p>
    <button type="submit">Save</button>
  </p>
</form>
<a href="{{ url('users_delete') }}">Delete my account</a>
{% endblock -%}
<commit_msg>Show the remove profile only when the user has a complete account<commit_after>{% extends "base.html" %}

{% block content -%}

{% if page_mode == 'edit' %}
<img src="{{ profile.gravatar_url }}" />
{% endif %}

<form action="{{ url('users_edit') }}" method="post">
  {{ form.as_p() }}
  {{ csrf() }}
  <p>
    <button type="submit">Save</button>
  </p>
</form>

{% if page_mode == 'edit' %}
<a href="{{ url('users_delete') }}">Delete my account</a>
{% endif %}

{% endblock -%}

{'fraction_non_alphanumeric': 0.25551684088269455, 'fraction_numerical': 0.0, 'mean_word_length': 4.161676646706587, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '3735887', 'n_tokens_mistral': 334, 'n_tokens_neox': 314, 'n_words': 75}