<commit_before>%h1 Previous Test Runs

- if @test_sessions.count > 0
  %p= link_to "Remove All", clear_test_sessions_path,
    method:'POST', confirm:'Remove all previous session records?'

%table.table.table-striped.table-hover.table-condensed
  %thead
    %tr
      %td ID
      %td Started
      %td Suites
      %td End Point
      %td Workers
      %td{title:"Concurrent devices per worker"} Devices
      %td Errors
      -#%td Average
      -#%td Min
      -#%td Max
      %td
  %tbody
    - @test_sessions.each do |run|
      %tr
        %td= link_to run.id, test_session_test_results_path(run), title: 'Detailed Responses'
        %td
          -if run.started?
            = relative_date(run.started_at)
          -else
            Warming up...
        %td= link_to suites(run), test_session_path(run), title: 'Chart'
        %td= run.base_url.sub('http://','')
        %td= run.workers
        %td= run.devices
        %td= link_to run.test_errors.count, errors_test_session_test_results_path(run)
        -#%td= "(XXX Librato)"
        -#%td= "(XXX Librato)"
        -#%td= "(XXX Librato)"
        %td
          -if run.running?
            = link_to "Cancel", cancel_test_session_path(run),
              method:'POST', confirm:'This session is running. Cancel it?'
          -else
            = link_to "Remove", test_session_path(run),
              method:'DELETE', confirm:'Remove all record of this session?'


= will_paginate @test_sessions<commit_msg>Add run time to test session list.<commit_after>%h1 Previous Test Runs

- if @test_sessions.count > 0
  %p= link_to "Remove All", clear_test_sessions_path,
    method:'POST', confirm:'Remove all previous session records?'

%table.table.table-striped.table-hover.table-condensed
  %thead
    %tr
      %td ID
      %td Started
      %td Suites
      %td End Point
      %td Workers
      %td{title:"Minimum Run Time in seconds"} Run Time
      %td{title:"Concurrent devices per worker"} Devices
      %td Errors
      -#%td Average
      -#%td Min
      -#%td Max
      %td
  %tbody
    - @test_sessions.each do |run|
      %tr
        %td= link_to run.id, test_session_test_results_path(run), title: 'Detailed Responses'
        %td
          -if run.started?
            = relative_date(run.started_at)
          -else
            Warming up...
        %td= link_to suites(run), test_session_path(run), title: 'Chart'
        %td= run.base_url.sub('http://','')
        %td= run.workers
        %td= run.run_time
        %td= run.devices
        %td= link_to run.test_errors.count, errors_test_session_test_results_path(run)
        -#%td= "(XXX Librato)"
        -#%td= "(XXX Librato)"
        -#%td= "(XXX Librato)"
        %td
          -if run.running?
            = link_to "Cancel", cancel_test_session_path(run),
              method:'POST', confirm:'This session is running. Cancel it?'
          -else
            = link_to "Remove", test_session_path(run),
              method:'DELETE', confirm:'Remove all record of this session?'


= will_paginate @test_sessions
{'fraction_non_alphanumeric': 0.12331912102328632, 'fraction_numerical': 0.0013119055428009183, 'mean_word_length': 2.2241014799154333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3625667', 'n_tokens_mistral': 1011, 'n_tokens_neox': 983, 'n_words': 246}