<commit_before># encoding: utf-8

class Api::StoryDistributionRepresenter < Api::BaseRepresenter
  property :id, writeable: false
  property :guid
  property :url
  property :kind
  hash :properties

  def self_url(story_distribution)
    api_story_story_distribution_path(story_distribution.story, story_distribution)
  end

  link :story do
    {
      href: api_story_path(represented.story),
      title: represented.story.title,
      profile: model_uri(represented.story)
    } if represented.story
  end
  embed :story, as: :story, item_class: Story, decorator: Api::Min::StoryRepresenter
end<commit_msg>no embedded story for the distribution<commit_after># encoding: utf-8

class Api::StoryDistributionRepresenter < Api::BaseRepresenter
  property :id, writeable: false
  property :guid
  property :url
  property :kind
  hash :properties

  def self_url(story_distribution)
    api_story_story_distribution_path(story_distribution.story, story_distribution)
  end

  link :story do
    {
      href: api_story_path(represented.story),
      title: represented.story.title,
      profile: model_uri(represented.story)
    } if represented.story
  end
  embed :story,
        as: :story,
        item_class: Story,
        decorator: Api::Min::StoryRepresenter
        zoom: false
end
{'fraction_non_alphanumeric': 0.08288148721920992, 'fraction_numerical': 0.001549186676994578, 'mean_word_length': 4.126984126984127, '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': '5827082', 'n_tokens_mistral': 407, 'n_tokens_neox': 380, 'n_words': 94}