<commit_before>#motion
  %h2
    = motion.name
    - if motion.voting?
      %span.label.label-success Voting
    - if motion.closed?
      %span.label.label-important Closed
  #closing-info
    - if motion.has_closing_date?
      No close date
    - else
      - if motion.voting?
        = "Closing in #{time_ago_in_words(motion.close_date)}"
      - else
        %span= "Closed #{time_ago_in_words(motion.close_date)} ago"
    - if motion.can_be_edited_by? current_user
      %span#admin-buttons
        =render "motions/facilitator_options", motion: motion
  #proposed-by
    = "Proposed #{time_ago_in_words(motion.created_at)} ago by #{motion.author_name}"
    - if motion.updated_at != motion.created_at
      = "(edited: #{time_ago_in_words(motion.updated_at)} ago)"
  #description
    - too_long = true if motion.description.length > 200
    #short-description
      = simple_format h(truncate(motion.description, length: 200, seperator: " ", omission: '...'))
      = link_to "Show More >>", "#", title: "see the full description", class: 'see-more' if too_long
    #long-description{style: "display: none"}
      = simple_format h(motion.description)
      = link_to "Show Less", "#", title: "see the full description", class: 'see-more' if too_long
  #graph.pie
  #percentage-to-vote
    - if motion.closed?
      - percent_voted = (100-(motion.no_vote_count/motion.group_count.to_f * 100)).to_i
      = "#{percent_voted}% of members voted on this motion (#{motion.group_count - motion.no_vote_count}/#{motion.group_count})"
    - else
      - percent_voted = (100-(motion.no_vote_count/motion.group_count.to_f * 100)).to_i<commit_msg>failing specs fixed<commit_after>#motion
  %h2
    = motion.name
    - if motion.voting?
      %span.label.label-success Voting
    - if motion.closed?
      %span.label.label-important Closed
  #closing-info
    - if motion.has_closing_date?
      No close date
    - else
      - if motion.voting?
        = "Closing in #{time_ago_in_words(motion.close_date)}"
      - else
        %span= "Closed #{time_ago_in_words(motion.close_date)} ago"
    - if motion.can_be_edited_by? current_user
      %span#admin-buttons
        =render "motions/facilitator_options", motion: motion
  #proposed-by
    = "Proposed #{time_ago_in_words(motion.created_at)} ago by #{motion.author_name}"
    - if motion.updated_at != motion.created_at
      = "(edited: #{time_ago_in_words(motion.updated_at)} ago)"
  #description
    - too_long = true if motion.description && motion.description.length > 200
    #short-description
      = simple_format h(truncate(motion.description, length: 200, seperator: " ", omission: '...'))
      = link_to "Show More >>", "#", title: "see the full description", class: 'see-more' if too_long
    #long-description{style: "display: none"}
      = simple_format h(motion.description)
      = link_to "Show Less", "#", title: "see the full description", class: 'see-more' if too_long
  #graph.pie
  #percentage-to-vote
    - if motion.closed?
      - percent_voted = (100-(motion.no_vote_count/motion.group_count.to_f * 100)).to_i
      = "#{percent_voted}% of members voted on this motion (#{motion.group_count - motion.no_vote_count}/#{motion.group_count})"
    - else
      - percent_voted = (100-(motion.no_vote_count/motion.group_count.to_f * 100)).to_i
{'fraction_non_alphanumeric': 0.13463855421686746, 'fraction_numerical': 0.01144578313253012, 'mean_word_length': 3.279639175257732, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4133456', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1101, 'n_words': 222}