<commit_before>class SideBar < SitePrism::Section
  element :external_deadline, '.external_deadline .case-sidebar__data'
  element :status, '.status .case-sidebar__data'
  element :who_its_with, '.who-its-with .case-sidebar__data'
  element :name, '.name .case-sidebar__data'
  element :requester_type, '.case-sidebar__data--contact .requester-type'
  element :email, '.case-sidebar__data--contact .email'
  element :postal_address, '.case-sidebar__data--contact .postal-address'
  element :actions, '.actions .case-sidebar__data'
  element :mark_as_sent_button, 'a:contains("Mark response as sent")'
end

class CaseHeading < SitePrism::Section
  element :case_number, '.case-heading--secondary'
end

class CaseDetailsPage < SitePrism::Page
  set_url '/cases/{id}'
  element :message, '.request'
  element :received_date, '.request--date-received'
  element :escalation_notice, '.alert-orange'
  section :sidebar, ::SideBar, 'section.case-sidebar'
  section :case_heading, ::CaseHeading, '.case-heading'
<commit_msg>CT-417 Gratuitous clean-up of sections in SitePrism CaseDetailPage<commit_after>class CaseDetailsPage < SitePrism::Page
  set_url '/cases/{id}'

  element :message, '.request'
  element :received_date, '.request--date-received'
  element :escalation_notice, '.alert-orange'

  section :sidebar, 'section.case-sidebar' do
    element :external_deadline, '.external_deadline .case-sidebar__data'
    element :status, '.status .case-sidebar__data'
    element :who_its_with, '.who-its-with .case-sidebar__data'
    element :name, '.name .case-sidebar__data'
    element :requester_type, '.case-sidebar__data--contact .requester-type'
    element :email, '.case-sidebar__data--contact .email'
    element :postal_address, '.case-sidebar__data--contact .postal-address'
    element :actions, '.actions .case-sidebar__data'
    element :mark_as_sent_button, 'a:contains("Mark response as sent")'
  end

  section :case_heading, '.case-heading' do
    element :case_number, '.case-heading--secondary'
  end

{'fraction_non_alphanumeric': 0.13194444444444445, 'fraction_numerical': 0.001488095238095238, 'mean_word_length': 4.846376811594203, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4318787', 'n_tokens_mistral': 642, 'n_tokens_neox': 630, 'n_words': 143}