<commit_before>extends common-content

- load staticfiles
- load markdown_trois_tags
- load cache
- load timedelta
- load smart_math
- load latex_math
- load social_share
- load camo_proxy
- load tz
- load i18n

block content_js_media
    script(type='text/javascript').
        $(document).ready(function () {
            $('.time-remaining').each(function () {
                count_down($(this));
            });
        });
    include comments/js_media

block content_media
    include comments/media

block info_float
    if contest.can_join or participating
        if not participating or not participation.ended or contest.ended
            if in_contest
                a.unselectable.button.full(href='{% url "contest_leave" contest.key %}')
                    if request.user.profile in contest.organizers.all
                        | {% trans "Stop spectating" %}
                    else
                        | {% trans "Leave contest" %}
            else
                a.unselectable.button.full(href='{% url "contest_join" contest.key %}')
                    if request.user.profile in contest.organizers.all
                        | {% trans "Spectate contest" %}
                    else
                        | {% trans "Join contest" %}
            hr

    if contest.start_time <= now or perms.judge.see_private_contest
        a(href='{% url "contest_ranking" contest.key %}')
            | {% trans "View rankings" %}
        hr

    if perms.judge.change_contest
        a(href='{% url "admin:judge_contest_change" contest.id %}')
            | {% trans "Edit contest" %}
        hr
    br

    if not contest.start_time > now
        i.fa.fa-clock-o.fa-fw
        if participating
            if participation.ended<commit_msg>Hopefully this makes virtual contests make sense; #24<commit_after>extends common-content

- load staticfiles
- load markdown_trois_tags
- load cache
- load timedelta
- load smart_math
- load latex_math
- load social_share
- load camo_proxy
- load tz
- load i18n

block content_js_media
    script(type='text/javascript').
        $(document).ready(function () {
            $('.time-remaining').each(function () {
                count_down($(this));
            });
        });
    include comments/js_media

block content_media
    include comments/media

block info_float
    if contest.can_join or participating
        if contest.ended
            if in_contest
                a.unselectable.button.full(href='{% url "contest_leave" contest.key %}')
                    | {% trans "Leave contest" %}
            else
                a.unselectable.button.full(href='{% url "contest_join" contest.key %}')
                    | {% trans "Virtual join" %}
        elif not participating or not participation.ended
            if in_contest
                a.unselectable.button.full(href='{% url "contest_leave" contest.key %}')
                    if request.user.profile in contest.organizers.all
                        | {% trans "Stop spectating" %}
                    else
                        | {% trans "Leave contest" %}
            else
                a.unselectable.button.full(href='{% url "contest_join" contest.key %}')
                    if request.user.profile in contest.organizers.all
                        | {% trans "Spectate contest" %}
                    else
                        | {% trans "Join contest" %}
            hr

    if contest.start_time <= now or perms.judge.see_private_contest
        a(href='{% url "contest_ranking" contest.key %}')
            | {% trans "View rankings" %}
        hr

    if perms.judge.change_contest
        a(href='{% url "admin:judge_contest_change" contest.id %}')
            | {% trans "Edit contest" %}
        hr
    br

    if not contest.start_time > now
        i.fa.fa-clock-o.fa-fw
        if participating
            if participation.ended
{'fraction_non_alphanumeric': 0.1037227214377407, 'fraction_numerical': 0.0015404364569961489, 'mean_word_length': 1.7417311752287121, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5276715', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1028, 'n_words': 253}