<commit_before>{% extends 'chords/base.html' %}

{% block title %}Home{% endblock %}

{% block body_block %}
    {% if user.is_authenticated %}
        <h1>Hi {{ user.username }}! This is index!</h1>
    {% else %}
        <h1>Hi! This is index!</h1>
    {% endif %}

    {% if songs %}
        <h2>Recently added songs</h2>
        <ul>
        {% for song in songs %}
        <li><a href="{% url 'chords:song' song.slug %}">{{ song.full_title }}</a></li>
        {% endfor %}
        </ul>
    {% else %}
        <strong>There are no songs present at the moment.</strong>
    {% endif %}
        <li><a href="{% url 'chords:add_song' %}">Send us a song!</a></li>
{% endblock %}<commit_msg>only register users can send songs<commit_after>{% extends 'chords/base.html' %}

{% block title %}Home{% endblock %}

{% block body_block %}

{% if user.is_authenticated %}
    <h1>Hi {{ user.username }}! This is index!</h1>
{% else %}
    <h1>Hi! This is index!</h1>
{% endif %}

{% if songs %}
    <h2>Recently added songs</h2>
    <ul>
    {% for song in songs %}
    <li><a href="{% url 'chords:song' song.slug %}">{{ song.full_title }}</a></li>
    {% endfor %}
    </ul>
{% else %}
    <strong>There are no songs present at the moment.</strong>
{% endif %}

{% if user.is_authenticated %}
    <li><a href="{% url 'chords:add_song' %}">Send us a song!</a></li>
{% endif %}

{% endblock %}
{'fraction_non_alphanumeric': 0.21155234657039712, 'fraction_numerical': 0.008664259927797834, 'mean_word_length': 2.7560975609756095, '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': '4803842', 'n_tokens_mistral': 561, 'n_tokens_neox': 485, 'n_words': 128}