<commit_before># TODO: Prefer Feedjira noramlizer

module Normalizers
  class YoutubeNormalizer < Normalizers::Base
    def link
      entity.url
    end

    def published_at
      entity.published
    end

    def text
      [entity.title, entity.url].join(separator)
    end

    def comments
      [entity.content]
    end
  end
end<commit_msg>Trim long comments<commit_after>module Normalizers
  class YoutubeNormalizer < Normalizers::Base
    def link
      entity.url
    end

    def published_at
      entity.published
    end

    def text
      [entity.title, entity.url].join(separator)
    end

    def comments
      [Service::Html.comment_excerpt(entity.content)]
    end
  end
end
{'fraction_non_alphanumeric': 0.06465517241379311, 'fraction_numerical': 0.0, 'mean_word_length': 2.556122448979592, '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': '3730727', 'n_tokens_mistral': 218, 'n_tokens_neox': 202, 'n_words': 54}