<commit_before>- content_for(:page_icon) { "icon-rocket" }
- content_for(:page_title) { "Showing Test Run" }
- content_for(:page_subtitle) { "#{@test_run.name}"}
= render "layouts/page_header"
#page_test_run.container-fluid.padded
  .row-fluid
    .span3
      .box
        .box-header
          %span.title= @test_run.name
          %ul.box-toolbar
            %li= link_to '', test_runs_path, class: 'btn btn-primary icon-list', title: 'List'
            - if @test_run.state == 'pending'
              %li= link_to '', edit_test_run_path(@test_run), class: 'btn btn-warning icon-edit', title: 'Edit'
              %li= link_to '', "/test_runs/#{@test_run.id}/copy", class: 'btn alert-info icon-copy', title: "Clone"
              %li= link_to '', @test_run, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger icon-trash', title: 'Delete'
        .box-content.padded
          %dl
            %dt Name:
            %dd= @test_run.name
            %dt Description:
            %dd= @test_run.description
            - if current_user.admin_mode
              %dt Owned by
              %dd= @test_run.user.full_name if @test_run.user

            %dt Sender scenario:
            %dd= link_to(@test_run.scenario.name, @test_run.scenario) if @test_run.scenario

            %dt Registration scenario:
            %dd= link_to(@test_run.registration_scenario.name, @test_run.registration_scenario) if @test_run.registration_scenario

            %dt Receiver scenario:
            %dd= link_to(@test_run.receiver_scenario.name, @test_run.receiver_scenario) if @test_run.receiver_scenario

            %dt Profile:
            %dd= link_to @test_run.profile_name, @test_run.profile
            %dd= "Max Calls: #{@test_run.profile.max_calls}"
            %dd= "Max Concurrent: #{@test_run.profile.max_concurrent}"
            %dd= "CPS: #{@test_run.profile.calls_per_second}"
            %dd= "Transport type: #{@test_run.profile.transport_type.text}"

            %dt Target:
            %dd= link_to @test_run.target_name, @test_run.target
            %dd= "Address: #{@test_run.target.address}"

            %dt Created By:
            %dd= @test_run.user.full_name if @test_run.user

            %dt Created On:
            %dd
              %a{"data-original-title" => @test_run.created_at.to_s(:long_ordinal), "data-placement" => "right", "data-toggle" => "tooltip", :href => "#", :title => ""}
                = time_ago_in_words(@test_run.created_at) + " ago"

            - if @test_run.created_at != @test_run.updated_at
              %dt Last Updated On:
              %dd
                %a{"data-original-title" => @test_run.updated_at.to_s(:long_ordinal), "data-placement" => "right", "data-toggle" => "tooltip", :href => "#", :title => ""}
                  = time_ago_in_words(@test_run.updated_at) + " ago"

            %dt Status
            %dd= status_label @test_run.state

            - if @test_run.state == 'complete_with_errors'
              %dt Error Name
              %dd= @test_run.error_name<commit_msg>Add links to errors report and raw stats<commit_after>- content_for(:page_icon) { "icon-rocket" }
- content_for(:page_title) { "Showing Test Run" }
- content_for(:page_subtitle) { "#{@test_run.name}"}
= render "layouts/page_header"
#page_test_run.container-fluid.padded
  .row-fluid
    .span3
      .box
        .box-header
          %span.title= @test_run.name
          %ul.box-toolbar
            %li= link_to '', test_runs_path, class: 'btn btn-primary icon-list', title: 'List'
            - if @test_run.state == 'pending'
              %li= link_to '', edit_test_run_path(@test_run), class: 'btn btn-warning icon-edit', title: 'Edit'
              %li= link_to '', "/test_runs/#{@test_run.id}/copy", class: 'btn alert-info icon-copy', title: "Clone"
              %li= link_to '', @test_run, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger icon-trash', title: 'Delete'
        .box-content.padded
          %dl
            %dt Name:
            %dd= @test_run.name
            %dt Description:
            %dd= @test_run.description
            - if current_user.admin_mode
              %dt Owned by
              %dd= @test_run.user.full_name if @test_run.user

            %dt Sender scenario:
            %dd= link_to(@test_run.scenario.name, @test_run.scenario) if @test_run.scenario

            %dt Registration scenario:
            %dd= link_to(@test_run.registration_scenario.name, @test_run.registration_scenario) if @test_run.registration_scenario

            %dt Receiver scenario:
            %dd= link_to(@test_run.receiver_scenario.name, @test_run.receiver_scenario) if @test_run.receiver_scenario

            %dt Profile:
            %dd= link_to @test_run.profile_name, @test_run.profile
            %dd= "Max Calls: #{@test_run.profile.max_calls}"
            %dd= "Max Concurrent: #{@test_run.profile.max_concurrent}"
            %dd= "CPS: #{@test_run.profile.calls_per_second}"
            %dd= "Transport type: #{@test_run.profile.transport_type.text}"

            %dt Target:
            %dd= link_to @test_run.target_name, @test_run.target
            %dd= "Address: #{@test_run.target.address}"

            %dt Logs:
            %dd= link_to "Errors Report", @test_run.errors_report_file_url
            %dd= link_to "Raw Stats", @test_run.stats_file_url

            %dt Created By:
            %dd= @test_run.user.full_name if @test_run.user

            %dt Created On:
            %dd
              %a{"data-original-title" => @test_run.created_at.to_s(:long_ordinal), "data-placement" => "right", "data-toggle" => "tooltip", :href => "#", :title => ""}
                = time_ago_in_words(@test_run.created_at) + " ago"

            - if @test_run.created_at != @test_run.updated_at
              %dt Last Updated On:
              %dd
                %a{"data-original-title" => @test_run.updated_at.to_s(:long_ordinal), "data-placement" => "right", "data-toggle" => "tooltip", :href => "#", :title => ""}
                  = time_ago_in_words(@test_run.updated_at) + " ago"

            %dt Status
            %dd= status_label @test_run.state

            - if @test_run.state == 'complete_with_errors'
              %dt Error Name
              %dd= @test_run.error_name
{'fraction_non_alphanumeric': 0.13963821009203428, 'fraction_numerical': 0.00031735956839098697, 'mean_word_length': 2.2439526505404013, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '3932638', 'n_tokens_mistral': 2077, 'n_tokens_neox': 2038, 'n_words': 398}