<commit_before>extends base
-load staticfiles
-load gravatar

block media
    style
        a.edit-profile {
            float: right;
            padding-top: 1em;
        }
    script(type='text/javascript')
        $(function () {
            $('a.hide-group').click(function (event) {
                var ul = $(this).parent().find('ul');
                if (ul.is(':visible')) {
                    ul.hide('slow', function () {
                        $(this).html('[Show]');
                    });
                } else {
                    ul.show('slow', function () {
                        $(this).html('[Hide]');
                    });
                }
                event.preventDefault();
            });
        });

block header
    if user.user == request.user
        a.edit-profile(href='{% url "judge.views.edit_profile" %}')
            | Edit profile

block body
    if user.name
        b #{user.name}
        br
        br
    if user.about
        h3 Self-description
        | #{user.about|linebreaks}
        br
        br
    h4 #{user.problems} problems solved.
    br
    b Total points:&nbsp;
    | #{user.calculate_points}
    br
    - regroup best_submissions by problem__group__full_name as problems
    each group in problems
        div.user-problem-group
            h3 #{group.grouper}
                a.hide-group(href='#') [Hide]
            ul
                each entry in group.list
                    li
                        a(href='{% url "judge.views.problem" entry.problem__code %}') #{entry.problem__name}&nbsp;
                        a(href='{% url "judge.views.user_submissions" entry.problem__code user.user.username %}')
                            | (#{entry.points} / #{entry.problem__points})
<commit_msg>Attempt JS fix.<commit_after>extends base
-load staticfiles
-load gravatar

block media
    style
        a.edit-profile {
            float: right;
            padding-top: 1em;
        }
    script(type='text/javascript')
        $(function () {
            $('a.hide-group').click(function (event) {
                var ul = $(this).parents('div.user-problem-group').find('ul');
                if (ul.is(':visible')) {
                    ul.hide('slow', function () {
                        $(this).html('[Show]');
                    });
                } else {
                    ul.show('slow', function () {
                        $(this).html('[Hide]');
                    });
                }
                event.preventDefault();
            });
        });

block header
    if user.user == request.user
        a.edit-profile(href='{% url "judge.views.edit_profile" %}')
            | Edit profile

block body
    if user.name
        b #{user.name}
        br
        br
    if user.about
        h3 Self-description
        | #{user.about|linebreaks}
        br
        br
    h4 #{user.problems} problems solved.
    br
    b Total points:&nbsp;
    | #{user.calculate_points}
    br
    - regroup best_submissions by problem__group__full_name as problems
    each group in problems
        div.user-problem-group
            h3 #{group.grouper}
                a.hide-group(href='#') [Hide]
            ul
                each entry in group.list
                    li
                        a(href='{% url "judge.views.problem" entry.problem__code %}') #{entry.problem__name}&nbsp;
                        a(href='{% url "judge.views.user_submissions" entry.problem__code user.user.username %}')
                            | (#{entry.points} / #{entry.problem__points})

{'fraction_non_alphanumeric': 0.12986286034144975, 'fraction_numerical': 0.002239014833473272, 'mean_word_length': 1.3621943159286187, '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': '6158818', 'n_tokens_mistral': 1033, 'n_tokens_neox': 956, 'n_words': 200}