<commit_before>{% extends "base.html" %}
{% load static %}
{% load questentry_extras %}

{% block title %}{{ object.user.username }}{% endblock %}

{% block head %}
<link rel="stylesheet" href="{% static 'user/css/profile.css' %}">
<script src="{% static 'lib/require.js' %}" data-main="{% static 'user/js/profile-main.js' %}"></script>
{% endblock %}

{% block content %}

<ul id="quests-nav">
{% for quest_type, quest_description in view.get_quest_types %}<li onclick="location.hash='{{ quest_type }}'"><a href="#{{ quest_type }}">{{ quest_description }}</a></li>{% endfor %}
</ul>

<div id="quests-container">
{% for quest_type, quest_description in view.get_quest_types %}
    <div id="{{ quest_type }}" data-quests-active="False">
        <h2>{{ quest_description }}</h2>
        <h3>Active</h3>
        {% if user.is_authenticated and view.get_user_id == user.id %}
            {% include 'user/questentry_list_owner.html' with list=object.questentry_set|in_category:quest_type|completion_status:False %}
        {% else %}
            {% include 'user/questentry_list_anon.html' with list=object.questentry_set|in_category:quest_type|completion_status:False %}
        {% endif %}
        <h3>Completed</h3>
        {% if user.is_authenticated and view.get_user_id == user.id %}<commit_msg>Added user profile heading<commit_after>{% extends "base.html" %}
{% load static %}
{% load questentry_extras %}

{% block head %}
<link rel="stylesheet" href="{% static 'user/css/profile.css' %}">
<script src="{% static 'lib/require.js' %}" data-main="{% static 'user/js/profile-main.js' %}"></script>
{% endblock %}

{% block content %}

<h2>Profile: {{ object.user.username }}</h2>
<ul id="quests-nav">
{% for quest_type, quest_description in view.get_quest_types %}<li onclick="location.hash='{{ quest_type }}'"><a href="#{{ quest_type }}">{{ quest_description }}</a></li>{% endfor %}
</ul>

<div id="quests-container">
{% for quest_type, quest_description in view.get_quest_types %}
    <div id="{{ quest_type }}" data-quests-active="False">
        <h2>{{ quest_description }}</h2>
        <h3>Active</h3>
        {% if user.is_authenticated and view.get_user_id == user.id %}
            {% include 'user/questentry_list_owner.html' with list=object.questentry_set|in_category:quest_type|completion_status:False %}
        {% else %}
            {% include 'user/questentry_list_anon.html' with list=object.questentry_set|in_category:quest_type|completion_status:False %}
        {% endif %}
        <h3>Completed</h3>
        {% if user.is_authenticated and view.get_user_id == user.id %}
{'fraction_non_alphanumeric': 0.1858850752024682, 'fraction_numerical': 0.005399151561897416, 'mean_word_length': 4.272357723577236, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '2005137', 'n_tokens_mistral': 921, 'n_tokens_neox': 840, 'n_words': 166}