<commit_before>class CellSerializer < ActiveModel::Serializer
  attributes :id, :x, :y, :metadata

  # since serializer shadows any attribute named object...

  has_one :cell_object, root: :object

  def cell_object
    object.object
  end
end<commit_msg>serialize object_id property of cell model<commit_after>class CellSerializer < ActiveModel::Serializer
  attributes :id, :x, :y, :metadata, :object_id

  # since serializer shadows any attribute named object...

  def object_id
    object.object_id
  end
end
{'fraction_non_alphanumeric': 0.08187134502923976, 'fraction_numerical': 0.0, 'mean_word_length': 4.586956521739131, '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': '7569123', 'n_tokens_mistral': 150, 'n_tokens_neox': 144, 'n_words': 49}