<commit_before>.modal-dialog.modal-lg
  .modal-content
    .modal-header
      .pull-right
        = link_to track_path(@event_track.track, f: @event_track.range_from, t: @event_track.range_to, 'straight-line': true),
                  class: 'modal-header-link', target: '_blank' do
          %i.fa.fa-external-link
        %button.close{type: 'button', data: {dismiss: 'modal'}}
          %span{aria: {hidden: 'true'}}
            &times;
          %span.sr-only
            Close
      %h4.modal-title
        = event_track_presentation(@event_track)

    .modal-body
      .container-fluid
        = render 'events/event_tracks/header'
        .row
          .col-sm-12
            .pull-right
              = render 'tracks/view_settings_menu', presenter: @track_presenter
        -# Header
        = render partial: 'tracks/indicators', locals: {presenter: @track_presenter}

        %hr
        .row
          .col-sm-12
            = render 'tracks/charts', presenter: @track_presenter

        .row
          %hr
          %span.col-sm-2.control-label= t('activerecord.attributes.event_track.uploaded_by')
          .col-sm-10
            %span#rm-track-uploaded= @event_track.uploaded_by&.name

      %hr
      .modal-actions
        .modal-actions__left
          = delete_event_track_link(@event_track, @display_raw_results)
        .modal-actions__right
          %button.btn.btn-default{type: 'button', data: {dismiss: 'modal'}}= t 'general.cancel'<commit_msg>hide delete button for all except organizers<commit_after>.modal-dialog.modal-lg
  .modal-content
    .modal-header
      .pull-right
        = link_to track_path(@event_track.track, f: @event_track.range_from, t: @event_track.range_to, 'straight-line': true),
                  class: 'modal-header-link', target: '_blank' do
          %i.fa.fa-external-link
        %button.close{type: 'button', data: {dismiss: 'modal'}}
          %span{aria: {hidden: 'true'}}
            &times;
          %span.sr-only
            Close
      %h4.modal-title
        = event_track_presentation(@event_track)

    .modal-body
      .container-fluid
        = render 'events/event_tracks/header'
        .row
          .col-sm-12
            .pull-right
              = render 'tracks/view_settings_menu', presenter: @track_presenter
        -# Header
        = render partial: 'tracks/indicators', locals: {presenter: @track_presenter}

        %hr
        .row
          .col-sm-12
            = render 'tracks/charts', presenter: @track_presenter

        .row
          %hr
          %span.col-sm-2.control-label= t('activerecord.attributes.event_track.uploaded_by')
          .col-sm-10
            %span#rm-track-uploaded= @event_track.uploaded_by&.name

      %hr
      .modal-actions
        .modal-actions__left
          - if policy(@event_track.event).update?
            = delete_event_track_link(@event_track, @display_raw_results)
        .modal-actions__right
          %button.btn.btn-default{type: 'button', data: {dismiss: 'modal'}}= t 'general.cancel'
{'fraction_non_alphanumeric': 0.12702078521939955, 'fraction_numerical': 0.005278785879247773, 'mean_word_length': 2.041123370110331, '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': '7053573', 'n_tokens_mistral': 978, 'n_tokens_neox': 936, 'n_words': 159}