<commit_before>- content_for :title do
  = @member.name
  compared to '#{@policy.name}'

%h1= yield :title

#secondnavtabs
  %ul.nav.nav-tabs
    - url_electorate = multiple_people?(@members) ? @member.url_electorate : nil
    - # FIXME This summary link is obviously wrong ("allvotes"?)
    = members_nav_link(@member, @members, url_electorate, "allvotes", "Summary", "Show every vote cast by this MP",  @display.nil? || @display == "allvotes", @policy)
    = members_nav_link(@member, @members, url_electorate, "motions", "Full description", "Also show descriptions of every vote", @display == "motions", @policy)
    = members_nav_link(@member, @members, url_electorate, "alldreams", "Policy comparisons", "Show all Policies and how this MP voted on them", @display == "alldreams")

= render "policy_comparison", member: @member, agreement_fraction_with_policy: @agreement_fraction_with_policy, policy: @policy, display: @display, number_of_votes_on_policy: @number_of_votes_on_policy, policy_member_distance: @policy_member_distance
<commit_msg>More simplifying<commit_after>- content_for :title do
  = @member.name
  compared to '#{@policy.name}'

%h1= yield :title

#secondnavtabs
  %ul.nav.nav-tabs
    - # FIXME This summary link is obviously wrong ("allvotes"?)
    = members_nav_link(@member, @members, nil, "allvotes", "Summary", "Show every vote cast by this MP",  @display.nil? || @display == "allvotes", @policy)
    = members_nav_link(@member, @members, nil, "motions", "Full description", "Also show descriptions of every vote", @display == "motions", @policy)
    = members_nav_link(@member, @members, nil, "alldreams", "Policy comparisons", "Show all Policies and how this MP voted on them", @display == "alldreams")

= render "policy_comparison", member: @member, agreement_fraction_with_policy: @agreement_fraction_with_policy, policy: @policy, display: @display, number_of_votes_on_policy: @number_of_votes_on_policy, policy_member_distance: @policy_member_distance

{'fraction_non_alphanumeric': 0.1318570709612481, 'fraction_numerical': 0.0010065425264217413, 'mean_word_length': 6.255474452554744, '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': '6599058', 'n_tokens_mistral': 640, 'n_tokens_neox': 620, 'n_words': 173}