<commit_before>.header
  %h1 Challenges
.content
  - if @challenges.present?
    %table#challenge-board.pure-table.pure-table-bordered
      %thead
        %th
        - @genres.each do |genre|
          %th= genre
      %tbody
        - @challenges.group_by { |c| c.point }.sort_by { |k, v| -k }.each do |point, arr|
          %tr
            %th= point
            - @genres.each do |genre|
              - chs = arr.select { |c| c.genre == genre }
              - if chs.any?
                %td
                  - chs.each do |ch|
                    %div
                      = link_to ch.name, ch
              - else
                %td
  - else
    %p No challenges are opened...<commit_msg>Show # captured flags in Challenges page.<commit_after>.header
  %h1 Challenges
.content
  - if @challenges.present?
    %table#challenge-board.pure-table.pure-table-bordered
      %thead
        %th
        - @genres.each do |genre|
          %th= genre
      %tbody
        - @challenges.group_by { |c| c.point }.sort_by { |k, v| -k }.each do |point, arr|
          %tr
            %th= point
            - @genres.each do |genre|
              - chs = arr.select { |c| c.genre == genre }
              - if chs.any?
                %td
                  - chs.each do |ch|
                    %div
                      - answered = current_player.answers.valid.where(challenge: ch)
                      = link_to ch.name, ch
                      (#{answered.count})
              - else
                %td
  - else
    %p No challenges are opened...
{'fraction_non_alphanumeric': 0.11817597944765575, 'fraction_numerical': 0.0012845215157353885, 'mean_word_length': 1.1489655172413793, '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': '348754', 'n_tokens_mistral': 516, 'n_tokens_neox': 480, 'n_words': 118}