<commit_before>{% load ngwtags %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<title>{{ title|safe }}</title>
<script src='/javascript/jquery/jquery.js' type='text/javascript'></script>
<link rel="stylesheet" type="text/css" href="/ngw.css">

<div id=banner>
	<span id=sitetitle>{{ banner|safe }}</span>
	{% if user.id %}<span id=userinfo>Welcome <a href="{{user.get_absolute_url}}">{{ user }}</a> • <a href="https://logout@{{request.META.HTTP_HOST}}/logout">Logout</a></span>{% endif %}
	<br class=clearall>
	<div id=tabs>
		<a href="/" {{ nav|nav_is_active:""}}>news</a>
		<a href="/contactgroups/" {{ nav|nav_is_active:"contactgroups"}}>groups</a>
		<a href="/events/" {{ nav|nav_is_active:"events"}}>events</a>
		{% if user.is_admin %}
		<a href="/contactfields/" {{ nav|nav_is_active:"contactfields"}}>fields</a>
		<a href="/choicegroups/" {{ nav|nav_is_active:"choicegroups"}}>choices</a>
		<a href="/logs?_order=-0" {{ nav|nav_is_active:"logs"}}>logs</a>
		{% endif %}
	</div>
</div>

<div id=nav>
{% if user.id %}
{{ nav|safe }}
{% endif %}
</div>

{% for msg in messages %}
<div style="border: 1px solid #999; padding:1ex; margin:1ex; background: #ffc;">
{{ msg }}
</div>
{% endfor %}

<div id=main>
<div id=title>{{ title }}</div>
{% block body %}
<p>No body.
{% endblock %}
</div>
</html><commit_msg>Fixed logout bug (no nav)<commit_after>{% load ngwtags %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<title>{{ title|safe }}</title>
<script src='/javascript/jquery/jquery.js' type='text/javascript'></script>
<link rel="stylesheet" type="text/css" href="/ngw.css">

<div id=banner>
	<span id=sitetitle>{{ banner|safe }}</span>
	{% if user.id %}<span id=userinfo>Welcome <a href="{{user.get_absolute_url}}">{{ user }}</a> • <a href="https://logout@{{request.META.HTTP_HOST}}/logout">Logout</a></span>{% endif %}
	<br class=clearall>
	{% if nav %}
	<div id=tabs>
		<a href="/" {{ nav|nav_is_active:""}}>news</a>
		<a href="/contactgroups/" {{ nav|nav_is_active:"contactgroups"}}>groups</a>
		<a href="/events/" {{ nav|nav_is_active:"events"}}>events</a>
		{% if user.is_admin %}
		<a href="/contactfields/" {{ nav|nav_is_active:"contactfields"}}>fields</a>
		<a href="/choicegroups/" {{ nav|nav_is_active:"choicegroups"}}>choices</a>
		<a href="/logs?_order=-0" {{ nav|nav_is_active:"logs"}}>logs</a>
		{% endif %}
	</div>
	{% endif %}
</div>

<div id=nav>
{% if user.id %}
{{ nav|safe }}
{% endif %}
</div>

{% for msg in messages %}
<div style="border: 1px solid #999; padding:1ex; margin:1ex; background: #ffc;">
{{ msg }}
</div>
{% endfor %}

<div id=main>
<div id=title>{{ title }}</div>
{% block body %}
<p>No body.
{% endblock %}
</div>
</html>
{'fraction_non_alphanumeric': 0.252670349907919, 'fraction_numerical': 0.008103130755064457, 'mean_word_length': 5.229357798165138, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, 'https://': 2, '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': '310112', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1038, 'n_words': 210}