<commit_before># encoding: utf-8

class Api::AudioVersionTemplateRepresenter < Api::BaseRepresenter
  property :id, writeable: false
  property :label
  property :promos
  property :length_minimum
  property :length_maximum

  set_link_property(rel: :series, writeable: true)

  link :audio_file_templates do
    {
      href: api_audio_version_template_audio_file_templates_path(represented),
      count: represented.audio_file_templates.count
    } if represented.id
  end
  embed :audio_file_templates,
        paged: true,
        item_class: AudioFileTemplate,
        item_decorator: Api::AudioFileTemplateRepresenter
end<commit_msg>add content type to api response<commit_after># encoding: utf-8

class Api::AudioVersionTemplateRepresenter < Api::BaseRepresenter
  property :id, writeable: false
  property :label
  property :content_type
  property :promos
  property :length_minimum
  property :length_maximum

  set_link_property(rel: :series, writeable: true)

  link :audio_file_templates do
    {
      href: api_audio_version_template_audio_file_templates_path(represented),
      count: represented.audio_file_templates.count
    } if represented.id
  end
  embed :audio_file_templates,
        paged: true,
        item_class: AudioFileTemplate,
        item_decorator: Api::AudioFileTemplateRepresenter
end
{'fraction_non_alphanumeric': 0.06722054380664652, 'fraction_numerical': 0.0015105740181268882, 'mean_word_length': 4.662393162393163, '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': '3432951', 'n_tokens_mistral': 399, 'n_tokens_neox': 386, 'n_words': 88}