<commit_before>%tr{ class: bootstrap_class_for(booking.events.first.status) }
  %td= booking.events.first.resource_resource_type_name
  %td= booking.events.first.resource_name
  %td= t("bookings.statuses.#{booking.events.first.status}")
  %td= l booking.events.first.start_date, format: :long
  %td= l booking.events.first.end_date, format: :long
  %td
    = show_specific_actions_for booking.events.first
    - if booking.events.first.pending?
      = link_to_delete t('.cancel_booking'), booking_path(booking.id), t('delete_confirmation'), class: 'btn btn-default btn-xs'
    - if booking.events.first.expired? && !booking.has_feedback?
      = link_to t('.send_feedback'), booking_edit_feedback_path(booking.id), class: 'btn btn-default btn-xs'<commit_msg>Modifies booking view to support multiple events.<commit_after>- booking.events.each do |event|
  %tr{ class: bootstrap_class_for(event.status) }
    %td= event.resource_resource_type_name
    %td= event.resource_name
    %td= t("bookings.statuses.#{event.status}")
    %td= l event.start_date, format: :long
    %td= l event.end_date, format: :long
    %td
      = show_specific_actions_for event
      - if event.pending?
        = link_to_delete t('.cancel_booking'), booking_path(booking.id), t('delete_confirmation'), class: 'btn btn-default btn-xs'
      - if event.expired? && !booking.has_feedback?
        = link_to t('.send_feedback'), booking_edit_feedback_path(booking.id), class: 'btn btn-default btn-xs'
{'fraction_non_alphanumeric': 0.13821138211382114, 'fraction_numerical': 0.0, 'mean_word_length': 4.531835205992509, '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': '4653016', 'n_tokens_mistral': 499, 'n_tokens_neox': 494, 'n_words': 93}