<commit_before>%h1 Events by choice

%p
  Numbers are presented as "Confirmed / All Signups". All Signups include Confirmed, Waitlisted and Withdrawn.

%p.text-muted
  Event team members are excluded from these counts.
  Note that there may be some players waitlisted for this game because the bucket they requested was full.

- choice_columns = @choice_data_by_event_id.values.map(&:size).max
%table.table.table-bordered.table-hover
  %thead
    %tr
      %th Event
      - choice_columns.times do |index|
        %th= index + 1
  %tbody
    - @events.each do |event|
      %tr
        %td= event.title
        - choice_columns.times do |index|
          %td.text-nowrap
            - choice_data = @choice_data_by_event_id[event.id][index]
            - if choice_data
              %span{title: "Confirmed: #{choice_data['confirmed']}  Waitlisted: #{choice_data['waitlisted']}  Withdrawn: #{choice_data['withdrawn']}"}
                #{choice_data['confirmed']}/#{choice_data.values.sum}
<commit_msg>Don't break if there are no signups (resolves #429)<commit_after>%h1 Events by choice

%p
  Numbers are presented as "Confirmed / All Signups". All Signups include Confirmed, Waitlisted and Withdrawn.

%p.text-muted
  Event team members are excluded from these counts.
  Note that there may be some players waitlisted for this game because the bucket they requested was full.

- choice_columns = @choice_data_by_event_id.values.map(&:size).max || 0
%table.table.table-bordered.table-hover
  %thead
    %tr
      %th Event
      - choice_columns.times do |index|
        %th= index + 1
  %tbody
    - @events.each do |event|
      %tr
        %td= event.title
        - choice_columns.times do |index|
          %td.text-nowrap
            - choice_data = @choice_data_by_event_id[event.id][index]
            - if choice_data
              %span{title: "Confirmed: #{choice_data['confirmed']}  Waitlisted: #{choice_data['waitlisted']}  Withdrawn: #{choice_data['withdrawn']}"}
                #{choice_data['confirmed']}/#{choice_data.values.sum}

{'fraction_non_alphanumeric': 0.11116528522671867, 'fraction_numerical': 0.0039005363237445147, 'mean_word_length': 2.984466019417476, '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': '1680573', 'n_tokens_mistral': 647, 'n_tokens_neox': 629, 'n_words': 173}