<commit_before>%h1 Your Loomio Activity
%p Showing you what’s been happening in your Loomio groups in the last 24 hours

-@groups.each do |group|
  -next unless @activity[group.full_name][:motions].present?
  - @motions = @activity[group.full_name][:motions]
  - @discussions = @activity[group.full_name][:discussions]

  %h2=group.full_name
  -if @motions.present?
    %p Decisions
    %p 
      -@activity[group.full_name][:motions].each do |motion|
        =link_to(motion.name, motion_url(motion))
        -if motion.close_date.present?
          \- closes in #{time_ago_in_words(motion.close_date)}
        %br

  -if @discussions.present?
    %p Discussions
    %p
      -@activity[group.full_name][:discussions].each do |discussion|
        =link_to(discussion.title, discussion_url(discussion))
        - num_new_comments = discussion.number_of_comments_since(@since_time)
        - if num_new_comments > 0
          \- #{pluralize(num_new_comments, "new comment", "new comments")}
        - else
          \- new discussion
        %br

=render 'unsubscribe_link'
<commit_msg>spot check found bug<commit_after>%h1 Your Loomio Activity
%p Showing you what’s been happening in your Loomio groups in the last 24 hours

-@<EMAIL>.each do |group|
  -next unless @activity[group.full_name].present?
  - @motions = @activity[group.full_name][:motions]
  - @discussions = @activity[group.full_name][:discussions]

  %h2=group.full_name
  -if @motions.present?
    %p Decisions
    %p 
      -@activity[group.full_name][:motions].each do |motion|
        =link_to(motion.name, motion_url(motion))
        -if motion.close_date.present?
          \- closes in #{time_ago_in_words(motion.close_date)}
        %br

  -if @discussions.present?
    %p Discussions
    %p
      -@activity[group.full_name][:discussions].each do |discussion|
        =link_to(discussion.title, discussion_url(discussion))
        - num_new_comments = discussion.number_of_comments_since(@since_time)
        - if num_new_comments > 0
          \- #{pluralize(num_new_comments, "new comment", "new comments")}
        - else
          \- new discussion
        %br

=render 'unsubscribe_link'

{'fraction_non_alphanumeric': 0.12223247232472324, 'fraction_numerical': 0.004612546125461255, 'mean_word_length': 3.1551724137931036, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '362111', 'n_tokens_mistral': 750, 'n_tokens_neox': 709, 'n_words': 147}