<commit_before>%table.sortable
  %thead
    %tr
      %th ID
      %th First Name
      %th Last Name
      %th Age
      %th Gender
      %th Event Category
      %th= RepresentationType.description
      %th Details
  %tbody
    - sign_ups.each do |resu|
      %tr
        %td= resu.registrant.bib_number
        %td= resu.registrant.first_name
        %td= resu.registrant.last_name
        %td= resu.registrant.age
        %td= resu.registrant.gender
        %td= resu.event_category.name
        %td= resu.registrant.representation
        %td= resu.registrant.describe_event_hash(event)[:additional]
<commit_msg>Display the registrant emails, if the user viewing the page is authorized<commit_after>- display_email = (sign_ups.any? && policy(sign_ups.first.event).contact_registrants?)
%table.sortable
  %thead
    %tr
      %th ID
      %th First Name
      %th Last Name
      %th Age
      %th Gender
      - if display_email
        %th Email
      %th Event Category
      %th= RepresentationType.description
      %th Details
  %tbody
    - sign_ups.each do |resu|
      %tr
        %td= resu.registrant.bib_number
        %td= resu.registrant.first_name
        %td= resu.registrant.last_name
        %td= resu.registrant.age
        %td= resu.registrant.gender
        - if display_email
          %td= resu.registrant.email
        %td= resu.event_category.name
        %td= resu.registrant.representation
        %td= resu.registrant.describe_event_hash(event)[:additional]

{'fraction_non_alphanumeric': 0.0953020134228188, 'fraction_numerical': 0.0, 'mean_word_length': 2.262582056892779, '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': '1682402', 'n_tokens_mistral': 509, 'n_tokens_neox': 496, 'n_words': 109}