<commit_before># encoding: utf-8

class Api::EpisodeRepresenter < Api::BaseRepresenter
  property :item_guid, as: :guid
  property :duration
  property :published_at, as: :published

  def self_url(episode)
    episode_path(id: episode.guid)
  end

  collection :media_files, as: :media, decorator: MediaResourceRepresenter, class: MediaResource
end<commit_msg>Add keywords and categories to episode api<commit_after># encoding: utf-8

class Api::EpisodeRepresenter < Api::BaseRepresenter
  property :item_guid, as: :guid
  property :duration
  property :published_at, as: :published
  property :keywords
  property :categories

  def self_url(episode)
    episode_path(id: episode.guid)
  end

  collection :media_files, as: :media, decorator: MediaResourceRepresenter, class: MediaResource
end
{'fraction_non_alphanumeric': 0.0880503144654088, 'fraction_numerical': 0.0025157232704402514, 'mean_word_length': 5.803418803418803, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '402326', 'n_tokens_mistral': 250, 'n_tokens_neox': 242, 'n_words': 69}