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

{% load static from staticfiles %}
{% load request_tags %}
{% block headers %}
<link type="text/css" rel="stylesheet" href="{% static 'ui/css/content.css' %}" />
<link type="text/css" rel="stylesheet" href="{% static 'ui/css/member_profile.css' %}" />
{% endblock %}

{% block content %}
<div id="user_profile">
  <div class="header">
	{% if user.is_superuser and targetUser.username != ANONYMOUS_USERNAME and targetUser %}
	<form class="header_form" action="{% url 'custom_modify_user' targetUsername=targetUser.username %}">
	  <button id="edit_profile" type="submit" class="btn btn-warning"><span class="glyphicon glyphicon-wrench"></span><span class="hidden-xs"> Edit</span></button>
	</form>
	{% endif %}
	{% if targetUser %}
	<h3 class="table_title{% if targetUser.username|longer_than:'1234567890123456' %} medium_title{% elif targetUser.username|longer_than:'123456890' %} small_title{% endif %}">
	  {{ targetUser.username }}'s Profile
	  {% else %}
	  <h3 class="table_title small_title">
		User Not Found
		{% endif %}
	  </h3>
  </div> <!-- .header -->
  <div class="main_table">
	<dl id="profile_table" class="dl-horizontal">
	  <dt>Name</dt>
	  <dd>{{ targetUser.get_full_name }}</dd>
	  <dt>Status</dt>
	  <dd>{% if targetUser.username == ANONYMOUS_USERNAME %}Anonymous user for common space computers.{% else %}{{ targetProfile.get_status_display }}{% endif %}</dd>
	  {% if not targetUser.username == ANONYMOUS_USERNAME %}
	  <dt>Current Room</dt>
	  <dd>{% if targetProfile.current_room %}{{ targetProfile.current_room }}{% else %}&nbsp;{% endif %}</dd>
	  <dt>Former Rooms</dt>
	  <dd>{% if targetProfile.former_rooms %}{{ targetProfile.former_rooms }}{% else %}&nbsp;{% endif %}</dd>
	  <dt>Other Houses</dt>
	  <dd>{% if targetProfile.former_houses %}{{ targetProfile.former_houses }}{% else %}&nbsp;{% endif %}</dd>
	  {% if targetProfile.email_visible %}
	  <dt>E-mail</dt>
	  <dd><a class="page_link" title="Write E-mail" href="mailto:{{ targetUser.email }}">{{ targetUser.email }}</a></dd>
	  {% endif %}
	  {% if targetProfile.phone_visible %}
	  <dt>Phone</dt>
	  <dd>{{ targetProfile.phone_number }}</dd>
	  {% endif %}
	  <dt>Threads Started</dt>
	  <dd>{% if number_of_threads > 0 %}<a class="page_link" title="See Threads" href="{% url 'list_user_threads' targetUsername=targetUser.username %}">{{ number_of_threads }}</a>{% else %}{{ number_of_threads }}{% endif %}</dd>
	  <dd>{% if number_of_messages > 0 %}<a class="page_link" title="See Messages" href="{% url 'list_user_messages' targetUsername=targetUser.username %}">{{ number_of_messages }}</a>{% else %}{{ number_of_messages }}{% endif %}</dd>
	  <dt>Requests Posted</dt>
	  <dd>{% if number_of_requests > 0 %}<a class="page_link" title="See Requests" href="{% url 'list_user_requests' targetUsername=targetUser.username %}">{{ number_of_requests }}</a>{% else %}{{ number_of_requests }}{% endif %}</a></dd>
{% endif %}
</dl>
<hr>
<div class="text-center"><commit_msg>Added a label to message count<commit_after>{% extends "base.html" %}

{% load static from staticfiles %}
{% load request_tags %}
{% block headers %}
<link type="text/css" rel="stylesheet" href="{% static 'ui/css/content.css' %}" />
<link type="text/css" rel="stylesheet" href="{% static 'ui/css/member_profile.css' %}" />
{% endblock %}

{% block content %}
<div id="user_profile">
  <div class="header">
	{% if user.is_superuser and targetUser.username != ANONYMOUS_USERNAME and targetUser %}
	<form class="header_form" action="{% url 'custom_modify_user' targetUsername=targetUser.username %}">
	  <button id="edit_profile" type="submit" class="btn btn-warning"><span class="glyphicon glyphicon-wrench"></span><span class="hidden-xs"> Edit</span></button>
	</form>
	{% endif %}
	{% if targetUser %}
	<h3 class="table_title{% if targetUser.username|longer_than:'1234567890123456' %} medium_title{% elif targetUser.username|longer_than:'123456890' %} small_title{% endif %}">
	  {{ targetUser.username }}'s Profile
	  {% else %}
	  <h3 class="table_title small_title">
		User Not Found
		{% endif %}
	  </h3>
  </div> <!-- .header -->
  <div class="main_table">
	<dl id="profile_table" class="dl-horizontal">
	  <dt>Name</dt>
	  <dd>{{ targetUser.get_full_name }}</dd>
	  <dt>Status</dt>
	  <dd>{% if targetUser.username == ANONYMOUS_USERNAME %}Anonymous user for common space computers.{% else %}{{ targetProfile.get_status_display }}{% endif %}</dd>
	  {% if not targetUser.username == ANONYMOUS_USERNAME %}
	  <dt>Current Room</dt>
	  <dd>{% if targetProfile.current_room %}{{ targetProfile.current_room }}{% else %}&nbsp;{% endif %}</dd>
	  <dt>Former Rooms</dt>
	  <dd>{% if targetProfile.former_rooms %}{{ targetProfile.former_rooms }}{% else %}&nbsp;{% endif %}</dd>
	  <dt>Other Houses</dt>
	  <dd>{% if targetProfile.former_houses %}{{ targetProfile.former_houses }}{% else %}&nbsp;{% endif %}</dd>
	  {% if targetProfile.email_visible %}
	  <dt>E-mail</dt>
	  <dd><a class="page_link" title="Write E-mail" href="mailto:{{ targetUser.email }}">{{ targetUser.email }}</a></dd>
	  {% endif %}
	  {% if targetProfile.phone_visible %}
	  <dt>Phone</dt>
	  <dd>{{ targetProfile.phone_number }}</dd>
	  {% endif %}
	  <dt>Threads Started</dt>
	  <dd>{% if number_of_threads > 0 %}<a class="page_link" title="See Threads" href="{% url 'list_user_threads' targetUsername=targetUser.username %}">{{ number_of_threads }}</a>{% else %}{{ number_of_threads }}{% endif %}</dd>
	  <dt>Messages Posted</dt>
	  <dd>{% if number_of_messages > 0 %}<a class="page_link" title="See Messages" href="{% url 'list_user_messages' targetUsername=targetUser.username %}">{{ number_of_messages }}</a>{% else %}{{ number_of_messages }}{% endif %}</dd>
	  <dt>Requests Posted</dt>
	  <dd>{% if number_of_requests > 0 %}<a class="page_link" title="See Requests" href="{% url 'list_user_requests' targetUsername=targetUser.username %}">{{ number_of_requests }}</a>{% else %}{{ number_of_requests }}{% endif %}</a></dd>
{% endif %}
</dl>
<hr>
<div class="text-center">
{'fraction_non_alphanumeric': 0.20291053414916488, 'fraction_numerical': 0.010253018025467174, 'mean_word_length': 5.339622641509434, 'pattern_counts': {'":': 0, '<': 143, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2995294', 'n_tokens_mistral': 2300, 'n_tokens_neox': 2034, 'n_words': 444}