<commit_before>- content_for :title do
  - if @sort == "rebellions"
    Rebel
  #{members_type(@house)}

.page-header
  %h1= yield :title

%p
  Current
  = members_type_long(@house)
  are listed below. Refer to
  = link_to "this explanation", help_path(anchor: "clarify")
  of the "rebellion" and "attendance" rates, as they may not mean what you
  think they do.

%p
  Sort by:
  = link_to_unless @sort.nil?, "Name", members_path(params.merge(sort: nil)), title: "Sort by surname"
  |
  - if @house != "senate"
    = link_to_unless @sort == "constituency", "Electorate", members_path(params.merge(sort: "constituency")), title: "Sort by electorate"
    |
  = link_to_unless @sort == "party", "Party", members_path(params.merge(sort: "party")), title: "Sort by party"
  |
  = link_to_unless @sort == "rebellions", "Rebellions", members_path(params.merge(sort: "rebellions")), title: "Sort by rebels"
  |
  = link_to_unless @sort == "attendance", "Attendance", members_path(params.merge(sort: "attendance")), title: "Sort by attendance"

%table.table.table-striped
  %thead
    %tr.headings
      %td
      %td Name
      %td= electorate_label(@house)
      %td Party
      %td
        Rebellions
        %br/<commit_msg>Don't mindlessly pass the existing params in creating path to members<commit_after>- content_for :title do
  - if @sort == "rebellions"
    Rebel
  #{members_type(@house)}

.page-header
  %h1= yield :title

%p
  Current
  = members_type_long(@house)
  are listed below. Refer to
  = link_to "this explanation", help_path(anchor: "clarify")
  of the "rebellion" and "attendance" rates, as they may not mean what you
  think they do.

%p
  Sort by:
  = link_to_unless @sort.nil?, "Name", members_path(house: params[:house], sort: nil), title: "Sort by surname"
  |
  - if @house != "senate"
    = link_to_unless @sort == "constituency", "Electorate", members_path(house: params[:house], sort: "constituency"), title: "Sort by electorate"
    |
  = link_to_unless @sort == "party", "Party", members_path(house: params[:house], sort: "party"), title: "Sort by party"
  |
  = link_to_unless @sort == "rebellions", "Rebellions", members_path(house: params[:house], sort: "rebellions"), title: "Sort by rebels"
  |
  = link_to_unless @sort == "attendance", "Attendance", members_path(house: params[:house], sort: "attendance"), title: "Sort by attendance"

%table.table.table-striped
  %thead
    %tr.headings
      %td
      %td Name
      %td= electorate_label(@house)
      %td Party
      %td
        Rebellions
        %br/
{'fraction_non_alphanumeric': 0.14521841794569068, 'fraction_numerical': 0.0007870916961826052, 'mean_word_length': 3.9263565891472867, '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': '105820', 'n_tokens_mistral': 898, 'n_tokens_neox': 882, 'n_words': 239}