<commit_before># == Schema Information
#
# Table name: feed_version_infos
#
#  id              :integer          not null, primary key
#  type            :string
#  data            :json
#  feed_version_id :integer
#  created_at      :datetime
#  updated_at      :datetime
#
# Indexes
#
#  index_feed_version_infos_on_feed_version_id           (feed_version_id)
#  index_feed_version_infos_on_feed_version_id_and_type  (feed_version_id,type) UNIQUE
#

class FeedVersionInfoSerializer < ApplicationSerializer
  attributes :id,
             :data,
             :feed_version_sha1,
             :created_at,
             :updated_at

  # def feed_onestop_id
  #   object.feed.onestop_id
  # end

  def feed_version_sha1
    object.feed_version.sha1
  end
end<commit_msg>Include FVI type in serializer<commit_after># == Schema Information
#
# Table name: feed_version_infos
#
#  id              :integer          not null, primary key
#  type            :string
#  data            :json
#  feed_version_id :integer
#  created_at      :datetime
#  updated_at      :datetime
#
# Indexes
#
#  index_feed_version_infos_on_feed_version_id           (feed_version_id)
#  index_feed_version_infos_on_feed_version_id_and_type  (feed_version_id,type) UNIQUE
#

class FeedVersionInfoSerializer < ApplicationSerializer
  attributes :id,
             :type,
             :data,
             :feed_version_sha1,
             :created_at,
             :updated_at

  # def feed_onestop_id
  #   object.feed.onestop_id
  # end

  def feed_version_sha1
    object.feed_version.sha1
  end
end
{'fraction_non_alphanumeric': 0.06619987269255251, 'fraction_numerical': 0.0038192234245703373, 'mean_word_length': 2.5011135857461024, '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': '6431474', 'n_tokens_mistral': 520, 'n_tokens_neox': 513, 'n_words': 96}