<commit_before>{% load i18n project_tags extproject_tags dashboard_tags %}

<li class="list-item">
    <p class="list-item__subtitle">{{ project.typ|get_blueprint_title }}</p>
    <h3 class="list-item__title">
        {{ project.name }}
        {% if project.has_finished %}
            <span class="label label--primary">{% trans "Finished" %}</span>
        {% endif %}
        {% if not project.is_public %}
            <span class="label label--secondary">{% trans 'private' %}</span>
        {% endif %}
    </h3>
    <div class="list-item__actions">
        <span class="list-item__action">
            <a href="{% extproject_url project 'project-detail' %}"
               target="{{ project|is_external|yesno:"_blank,_self" }}"
               class="btn btn--light btn--small">
                <i class="fa fa-eye" aria-hidden="true"></i>
                {% if project.is_draft %}
                {% trans 'Preview' %}
                {% else %}
                {% trans 'View' %}
                {% endif %}
            </a>
        </span>
        <form method="post" class="list-item__action" role="presentation">
            {% csrf_token %}
            <input type="hidden" name="project_pk" value="{{ project.pk }}">
            <button type="submit" name="submit_action" value="{{ project.is_draft|yesno:'publish,unpublish' }}"
                    class="btn btn--light btn--small">
                <i class="fa fa-flag" aria-hidden="true"></i>
                {% if project.is_draft %}<commit_msg>old dashboard heading to level 2<commit_after>{% load i18n project_tags extproject_tags dashboard_tags %}

<li class="list-item">
    <p class="list-item__subtitle">{{ project.typ|get_blueprint_title }}</p>
    <h2 class="list-item__title">
        {{ project.name }}
        {% if project.has_finished %}
            <span class="label label--primary">{% trans "Finished" %}</span>
        {% endif %}
        {% if not project.is_public %}
            <span class="label label--secondary">{% trans 'private' %}</span>
        {% endif %}
    </h2>
    <div class="list-item__actions">
        <span class="list-item__action">
            <a href="{% extproject_url project 'project-detail' %}"
               target="{{ project|is_external|yesno:"_blank,_self" }}"
               class="btn btn--light btn--small">
                <i class="fa fa-eye" aria-hidden="true"></i>
                {% if project.is_draft %}
                {% trans 'Preview' %}
                {% else %}
                {% trans 'View' %}
                {% endif %}
            </a>
        </span>
        <form method="post" class="list-item__action" role="presentation">
            {% csrf_token %}
            <input type="hidden" name="project_pk" value="{{ project.pk }}">
            <button type="submit" name="submit_action" value="{{ project.is_draft|yesno:'publish,unpublish' }}"
                    class="btn btn--light btn--small">
                <i class="fa fa-flag" aria-hidden="true"></i>
                {% if project.is_draft %}
{'fraction_non_alphanumeric': 0.16945812807881774, 'fraction_numerical': 0.002955665024630542, 'mean_word_length': 2.046, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, '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': '3877279', 'n_tokens_mistral': 936, 'n_tokens_neox': 851, 'n_words': 179}