<commit_before>fieldset.hd-sessions.with-actions-above-table
  legend=t(".title")

  - if sessions.empty?
    .call-to-action
      = link_to new_patient_hd_session_path(@patient) do
        i.fa.fa-plus-circle
        =t(".add_session")
  - else
    .right.actions
      = link_to t(".add_session"), new_patient_hd_session_path(@patient),
        class: 'button tiny'
      | &nbsp;
      = link_to t(".view_all"), patient_hd_sessions_path(@patient),
        class: 'button tiny'

    table.auto-layout
      thead
        tr
          th.col-width-small(rowspan=2)
          th.col-width-date(rowspan=2 valign="top")= t(".date")
          th.col-width-time.text-center(colspan=2) Time
          th.col-width-tiny(rowspan=2)= t(".duration")
          th.col-width-tiny.text-center(colspan=2) Weight
          th.col-width-tiny.text-center(colspan=2) Pulse
          th.col-width-tiny.text-center(colspan=2) Temp
          th.col-width-tiny.text-center(colspan=2) BM
          th.col-width-tiny.text-center(colspan=2) BP
          th.col-width-tiny(rowspan=2) AP
          th.col-width-tiny(rowspan=2) VP
          th.col-width-tiny(rowspan=2) Flowrate
          th.col-width-tiny(rowspan=2) Litres
          th.col-width-tiny(rowspan=2) Fluid rem
          th.col-width-tiny.text-center(colspan=3) Machine
          th.col-width-medium(rowspan=2)= t(".site")

        tr.row2
          th.col-width-time(rowspan=2)= t(".to")
          th.col-width-time(rowspan=2)= t(".from")
          th.col-width-tiny(rowspan=2) Pre
          th.col-width-tiny(rowspan=2) Post
          th.col-width-tiny(rowspan=2) Pre
          th.col-width-tiny(rowspan=2) Post
          th.col-width-tiny(rowspan=2) Pre
          th.col-width-tiny(rowspan=2) Post
          th.col-width-tiny(rowspan=2) Pre
          th.col-width-tiny(rowspan=2) Post
          th.col-width-tiny(rowspan=2) Pre
          th.col-width-tiny(rowspan=2) Post
          th.col-width-tiny(rowspan=2) No
          th.col-width-tiny(rowspan=2) KTv
          th.col-width-tiny(rowspan=2) URR
          / th.col-width-medium= t(".sign_on")
          / th.col-width-medium= t(".sign_off")

      tbody
        - sessions.each do |session|
          = content_tag(:tr, class: session.ongoing_css_class) do
            td= link_to edit_patient_hd_session_path(@patient, session) do
              = session.signed_off? ? t(".edit") : t(".sign_off")
            td= link_to patient_hd_session_path(@patient, session) do
                = session.performed_on
            td= session.start_time
            td= session.end_time
            td= session.duration
            td= session.pre(:weight)
            td= session.post(:weight)
            td= session.pre(:pulse)
            td= session.post(:pulse)
            td= session.pre(:temperature)
            td= session.post(:temperature)
            td= session.pre(:bm_stix)
            td= session.post(:bm_stix)
            td= session.pre(:blood_pressure)
            td= session.post(:blood_pressure)
            td= session.arterial_pressure
            td= session.venous_pressure
            td= session.blood_flow
            td= session.litres_processed
            td= session.fluid_removed
            td= session.machine_no
            td= session.machine_ktv
            td= session.machine_urr
            td= session.access_site<commit_msg>Display site in HD sessions table<commit_after>fieldset.hd-sessions.with-actions-above-table
  legend=t(".title")

  - if sessions.empty?
    .call-to-action
      = link_to new_patient_hd_session_path(@patient) do
        i.fa.fa-plus-circle
        =t(".add_session")
  - else
    .right.actions
      = link_to t(".add_session"), new_patient_hd_session_path(@patient),
        class: 'button tiny'
      | &nbsp;
      = link_to t(".view_all"), patient_hd_sessions_path(@patient),
        class: 'button tiny'

    table.auto-layout
      thead
        tr
          th.col-width-small(rowspan=2)
          th.col-width-date(rowspan=2 valign="top")= t(".date")
          th.col-width-medium(rowspan=2)= t(".site")
          th.col-width-time.text-center(colspan=2) Time
          th.col-width-tiny(rowspan=2)= t(".duration")
          th.col-width-tiny.text-center(colspan=2) Weight
          th.col-width-tiny.text-center(colspan=2) Pulse
          th.col-width-tiny.text-center(colspan=2) Temp
          th.col-width-tiny.text-center(colspan=2) BM
          th.col-width-tiny.text-center(colspan=2) BP
          th.col-width-tiny(rowspan=2) AP
          th.col-width-tiny(rowspan=2) VP
          th.col-width-tiny(rowspan=2) Flowrate
          th.col-width-tiny(rowspan=2) Litres
          th.col-width-tiny(rowspan=2) Fluid rem
          th.col-width-tiny.text-center(colspan=3) Machine


        tr.row2
          th.col-width-time(rowspan=2)= t(".to")
          th.col-width-time(rowspan=2)= t(".from")
          th.col-width-tiny(rowspan=2) Pre
          th.col-width-tiny(rowspan=2) Post
          th.col-width-tiny(rowspan=2) Pre
          th.col-width-tiny(rowspan=2) Post
          th.col-width-tiny(rowspan=2) Pre
          th.col-width-tiny(rowspan=2) Post
          th.col-width-tiny(rowspan=2) Pre
          th.col-width-tiny(rowspan=2) Post
          th.col-width-tiny(rowspan=2) Pre
          th.col-width-tiny(rowspan=2) Post
          th.col-width-tiny(rowspan=2) No
          th.col-width-tiny(rowspan=2) KTv
          th.col-width-tiny(rowspan=2) URR
          / th.col-width-medium= t(".sign_on")
          / th.col-width-medium= t(".sign_off")

      tbody
        - sessions.each do |session|
          = content_tag(:tr, class: session.ongoing_css_class) do
            td= link_to edit_patient_hd_session_path(@patient, session) do
              = session.signed_off? ? t(".edit") : t(".sign_off")
            td= link_to patient_hd_session_path(@patient, session) do
                = session.performed_on
            td= session.access_site
            td= session.start_time
            td= session.end_time
            td= session.duration
            td= session.pre(:weight)
            td= session.post(:weight)
            td= session.pre(:pulse)
            td= session.post(:pulse)
            td= session.pre(:temperature)
            td= session.post(:temperature)
            td= session.pre(:bm_stix)
            td= session.post(:bm_stix)
            td= session.pre(:blood_pressure)
            td= session.post(:blood_pressure)
            td= session.arterial_pressure
            td= session.venous_pressure
            td= session.blood_flow
            td= session.litres_processed
            td= session.fluid_removed
            td= session.machine_no
            td= session.machine_ktv
            td= session.machine_urr
{'fraction_non_alphanumeric': 0.12992418611565335, 'fraction_numerical': 0.00951389921213022, 'mean_word_length': 1.9862405681313804, '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': '4324684', 'n_tokens_mistral': 2245, 'n_tokens_neox': 2197, 'n_words': 328}