<commit_before>module Yoolk
  module Liquid
    class Listing::CommunicationsDrop < CollectionDrop
      scope :emails
    end
  end
end<commit_msg>add emails methods on communications drop<commit_after>module Yoolk
  module Liquid
    class Listing::CommunicationsDrop < ::Liquid::Rails::CollectionDrop
      # scope :emails

      def emails
        self.class.new communications.select{|com| com.type.downcase == 'e-mail'}
      end

      def communications
        objects
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.06930693069306931, 'fraction_numerical': 0.0, 'mean_word_length': 2.984251968503937, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5446466', 'n_tokens_mistral': 150, 'n_tokens_neox': 140, 'n_words': 39}