<commit_before>module DiscussionsHelper
  include Twitter::Extractor
  include Twitter::Autolink

  def filter_discussion_events(activity)
    last_item = nil
    ignored_event_kinds = %w[motion_closing_soon user_mentioned]
    deduplicate_kinds = %w[discussion_description_edited discussion_title_edited motion_close_date_edited]

    activity.
      reject {|item| ignored_event_kinds.include? item.kind }.
      map do |item|
      next if last_item &&
              deduplicate_kinds.include?(item.kind) &&
              item.user == last_item.user && item.kind == last_item.kind
      last_item = item
    end.compact
  end

  def no_discussions_available?<commit_msg>quick fix<commit_after>module DiscussionsHelper
  include Twitter::Extractor
  include Twitter::Autolink

  def filter_discussion_events(activity)
    last_item = nil
    ignored_event_kinds = %w[motion_closing_soon user_mentioned comment_liked]
    deduplicate_kinds = %w[discussion_description_edited discussion_title_edited motion_close_date_edited]

    activity.
      reject {|item| ignored_event_kinds.include? item.kind }.
      map do |item|
      next if last_item &&
              deduplicate_kinds.include?(item.kind) &&
              item.user == last_item.user && item.kind == last_item.kind
      last_item = item
    end.compact
  end

  def no_discussions_available?
{'fraction_non_alphanumeric': 0.0752212389380531, 'fraction_numerical': 0.0, 'mean_word_length': 3.663230240549828, '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': '6624959', 'n_tokens_mistral': 432, 'n_tokens_neox': 406, 'n_words': 79}