<commit_before>%h4= link_to @motion.name, motion_url(@motion, @utm_hash) unless no_title

%table
  %tr
    %td
      = render 'motion_pie', motion: @motion
    %td
      = render_rich_text(@motion.description, true)
%p
  = t(:proposed_when_by_who,
    when: time_ago_in_words(@motion.created_at),
    who: @motion.author_name)

-if @motion.unique_votes.present?
  %h4= t(:positions).capitalize
  %table
    -@motion.grouped_unique_votes.each do |vote|
      %tr
        %td
          = image_tag "thread_mailer/vote-icon-#{vote.position}.png", alt: "#{vote.position} icon", class: "thread-mailer__vote-icon"
        %td= vote.user_name
        %td= vote.statement

%p= t(:engagement_on_closed_proposal, percent: @motion.percent_voted, :numerator => @motion.voters_count, denominator:  @motion.members_count)<commit_msg>Render emojis in votes in email (#3580)<commit_after>%h4= link_to @motion.name, motion_url(@motion, @utm_hash) unless no_title

%table
  %tr
    %td
      = render 'motion_pie', motion: @motion
    %td
      = render_rich_text(@motion.description, true)
%p
  = t(:proposed_when_by_who,
    when: time_ago_in_words(@motion.created_at),
    who: @motion.author_name)

-if @motion.unique_votes.present?
  %h4= t(:positions).capitalize
  %table
    -@motion.grouped_unique_votes.each do |vote|
      %tr
        %td
          = image_tag "thread_mailer/vote-icon-#{vote.position}.png", alt: "#{vote.position} icon", class: "thread-mailer__vote-icon"
        %td= vote.user_name
        %td= render_rich_text(vote.statement)

%p= t(:engagement_on_closed_proposal, percent: @motion.percent_voted, :numerator => @motion.voters_count, denominator:  @motion.members_count)
{'fraction_non_alphanumeric': 0.13852556480380498, 'fraction_numerical': 0.0047562425683709865, 'mean_word_length': 4.023880597014926, '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': '5213771', 'n_tokens_mistral': 642, 'n_tokens_neox': 610, 'n_words': 109}