<commit_before>%tr.head-row{id: dom_id(section)} 
  %td.section-cell{colspan: columns_count}
    %span
      = section.name + ':'
    - if can?(:manage, section) && !@event.finished?
      = link_to edit_event_section_path(@event, section),
                remote: true,
                'data-params': { 'display_raw_results' => @display_raw_results }.to_param,
                class: 'edit-section' do
        %i.fa.fa-pencil.text-muted

      %span.pipe-edit-section.text-muted
        |

      - unless section.first_position?
        = button_to(move_upper_event_section_path(@event, section),
                    remote: true,
                    params: {'display_raw_results' => @display_raw_results},
                    method: :patch,
                    class: 'btn-link section-up') do
          %i.fa.fa-chevron-up.text-muted

      - unless section.last_position?
        = button_to(move_lower_event_section_path(@event, section),
                    remote: true, 
                    params: {'display_raw_results' => @display_raw_results},
                    method: :patch, 
                    class: 'btn-link section-down') do
          %i.fa.fa-chevron-down.text-muted

      %span.pipe-edit-section.text-muted
        |

      = button_to(event_section_path(@event, section),
                method: :delete,
                params: {'display_raw_results' => @display_raw_results},
                confirm: t('sections.show.delete_confirmation'),
                class: 'btn-link delete-section',
                remote: true) do
        %i.fa.fa-times-circle.text-muted<commit_msg>fixed error when rendering only one category<commit_after>%tr.head-row{id: dom_id(section)} 
  %td.section-cell{colspan: columns_count}
    %span
      = section.name + ':'
    - if can?(:manage, section) && !@event.finished?
      = link_to edit_event_section_path(@event, section),
                remote: true,
                'data-params': { 'display_raw_results' => @display_raw_results }.to_param,
                class: 'edit-section' do
        %i.fa.fa-pencil.text-muted

      - if @event.sections.many?
        %span.pipe-edit-section.text-muted
          |

        - unless section.first_position?
          = button_to(move_upper_event_section_path(@event, section),
                      remote: true,
                      params: {'display_raw_results' => @display_raw_results},
                      method: :patch,
                      class: 'btn-link section-up') do
            %i.fa.fa-chevron-up.text-muted

        - unless section.last_position?
          = button_to(move_lower_event_section_path(@event, section),
                      remote: true, 
                      params: {'display_raw_results' => @display_raw_results},
                      method: :patch, 
                      class: 'btn-link section-down') do
            %i.fa.fa-chevron-down.text-muted

        %span.pipe-edit-section.text-muted
          |

      = button_to(event_section_path(@event, section),
                method: :delete,
                params: {'display_raw_results' => @display_raw_results},
                confirm: t('sections.show.delete_confirmation'),
                class: 'btn-link delete-section',
                remote: true) do
        %i.fa.fa-times-circle.text-muted
{'fraction_non_alphanumeric': 0.1203983101991551, 'fraction_numerical': 0.0, 'mean_word_length': 1.8164825828377231, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3513700', 'n_tokens_mistral': 1002, 'n_tokens_neox': 949, 'n_words': 153}