<commit_before>{% extends 'base.html' %}
{% block topbar %}
<li><a>Date: {{paste.time}}</a></li>
{% if paste.user.username is defined %}
<li><a>User: {{paste.user.username}}</a></li>
{% endif %}
<li><a>ID: {{paste.name}}</a></li>
<li><a>Views: {{paste.views}}</a></li>
{% if paste.expire %}
<li><a>Expires: {{paste.expire|humanize}}</a></li>
{% else %}
<li><a>Expires: Never</a></li>
{% endif %}

{% if owned %}
<li><a href="/{{paste.name}}/delete">Delete</a></li>
{% endif %}
{% endblock %}
{% block body %}
<div class="pure-g-r">
    <div class="pure-u-1-5"></div>
    <div class="pure-u-3-5">
        {% if form is defined %}
        <form action="" method="post" class="pure-form">
            {{form.confirm(class="pure-button pure-button-primary pure-input-1", style=" background: rgb(202, 60, 60);")}}
        </form>
        {% endif %}
<commit_msg>Add prettytime filter to date in topbar<commit_after>{% extends 'base.html' %}
{% block topbar %}
<li><a>Date: {{paste.time|prettytime}}</a></li>
{% if paste.user.username is defined %}
<li><a>User: {{paste.user.username}}</a></li>
{% endif %}
<li><a>ID: {{paste.name}}</a></li>
<li><a>Views: {{paste.views}}</a></li>
{% if paste.expire %}
<li><a>Expires: {{paste.expire|humanize}}</a></li>
{% else %}
<li><a>Expires: Never</a></li>
{% endif %}

{% if owned %}
<li><a href="/{{paste.name}}/delete">Delete</a></li>
{% endif %}
{% endblock %}
{% block body %}
<div class="pure-g-r">
    <div class="pure-u-1-5"></div>
    <div class="pure-u-3-5">
        {% if form is defined %}
        <form action="" method="post" class="pure-form">
            {{form.confirm(class="pure-button pure-button-primary pure-input-1", style=" background: rgb(202, 60, 60);")}}
        </form>
        {% endif %}

{'fraction_non_alphanumeric': 0.2747001713306682, 'fraction_numerical': 0.013706453455168474, 'mean_word_length': 3.773841961852861, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '6678362', 'n_tokens_mistral': 745, 'n_tokens_neox': 637, 'n_words': 122}