<commit_before>extends common-content
- load staticfiles
- load mathtag
- load markdown_trois_tags
- load cache
- load smart_math

block content_media
    script(type='text/javascript', src='{% static "common.js" %}')
    style
        a.view-pdf {
            padding-top: 0.6em;
            display: inline-block;
        }

        .problem-title {
            display: -webkit-box;
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
        }

        .problem-title .spacer {
            display: inline-block;
            -webkit-box-flex: 1;
            -webkit-flex: 1 1 1px;
                -ms-flex: 1 1 1px;
                    flex: 1 1 1px;
        }

        .info-float .fa {
            color: #000;
        }
        
        #problem-types .toggled, #allowed-langs .toggled {
            margin-left: 1.3em;
        }
    include comments/media

block title_row
    div.problem-title
        h2(style='color:#393630; display: inline-block')= title
        span.spacer
        a.view-pdf(href='{% url "problem_pdf" problem.code %}')
            span(style='position: relative; display: inline-block; font-size: 1.5em')
                span.fa.fa-file-pdf-o(style='color: #d40e13')
                span(style='height: 0.2em; display: block; position: absolute; top: 0.3em; background: #d40e13; width: 0.6em; margin-left: -0.15em')
            = ' View as PDF'
            sup= ' (beta)'

block info_float
    a.unselectable.button.full(href='{% url "judge.views.problem_submit" problem.code %}') Submit solution
    hr
    if request.user.is_authenticated and has_submissions
        a(href='{% url "user_submissions" problem.code request.user.username %}')
            | My submissions
        br
    a(href='{% url "chronological_submissions" problem.code %}')
        | All submissions
    br
    a(href='{% url "ranked_submissions" problem.code %}')
        | Best submissions

    if perms.judge.change_problem
        hr
        a(href='{% url "admin:judge_problem_change" problem.id %}')
            | Edit problem
        br
    elif perms.judge.edit_own_problem and request.user.profile.id in problem.author_ids
        hr
        a(href='{% url "problem_edit" problem.code %}')
            | Edit problem
        br
    if perms.judge.clone_problem
        a(href='{% url "problem_clone" problem.code %}')
            | Clone problem<commit_msg>PDF no longer beta. #88<commit_after>extends common-content
- load staticfiles
- load mathtag
- load markdown_trois_tags
- load cache
- load smart_math

block content_media
    script(type='text/javascript', src='{% static "common.js" %}')
    style
        a.view-pdf {
            padding-top: 0.6em;
            display: inline-block;
        }

        .problem-title {
            display: -webkit-box;
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
        }

        .problem-title .spacer {
            display: inline-block;
            -webkit-box-flex: 1;
            -webkit-flex: 1 1 1px;
                -ms-flex: 1 1 1px;
                    flex: 1 1 1px;
        }

        .info-float .fa {
            color: #000;
        }
        
        #problem-types .toggled, #allowed-langs .toggled {
            margin-left: 1.3em;
        }
    include comments/media

block title_row
    div.problem-title
        h2(style='color:#393630; display: inline-block')= title
        span.spacer
        a.view-pdf(href='{% url "problem_pdf" problem.code %}')
            span(style='position: relative; display: inline-block; font-size: 1.5em')
                span.fa.fa-file-pdf-o(style='color: #d40e13')
                span(style='height: 0.2em; display: block; position: absolute; top: 0.3em; background: #d40e13; width: 0.6em; margin-left: -0.15em')
            = ' View as PDF'

block info_float
    a.unselectable.button.full(href='{% url "judge.views.problem_submit" problem.code %}') Submit solution
    hr
    if request.user.is_authenticated and has_submissions
        a(href='{% url "user_submissions" problem.code request.user.username %}')
            | My submissions
        br
    a(href='{% url "chronological_submissions" problem.code %}')
        | All submissions
    br
    a(href='{% url "ranked_submissions" problem.code %}')
        | Best submissions

    if perms.judge.change_problem
        hr
        a(href='{% url "admin:judge_problem_change" problem.id %}')
            | Edit problem
        br
    elif perms.judge.edit_own_problem and request.user.profile.id in problem.author_ids
        hr
        a(href='{% url "problem_edit" problem.code %}')
            | Edit problem
        br
    if perms.judge.clone_problem
        a(href='{% url "problem_clone" problem.code %}')
            | Clone problem
{'fraction_non_alphanumeric': 0.12232606438213915, 'fraction_numerical': 0.018276220145379024, 'mean_word_length': 1.9064574532287266, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1661135', 'n_tokens_mistral': 1632, 'n_tokens_neox': 1464, 'n_words': 337}