<commit_before>class MeSerializer < UserSerializer

  attributes :total_clouds, :read_terms, :using_default_avatar, :notifications, :email, :email_verified

  def total_clouds
    object.cloud_ids.try(:size) || 0
  end

  def using_default_avatar
    not object.avatar.present?
  end

  def read_terms
    object.tnc_last_accepted.present?
  end

  def notifications
    0
  end

  def email_verified
    object.email_verified_at.present?<commit_msg>Change key name in me_serializer from using_default_avatar to default_avatar<commit_after>class MeSerializer < UserSerializer

  attributes :total_clouds, :read_terms, :default_avatar, :notifications, :email, :email_verified

  def total_clouds
    object.cloud_ids.try(:size) || 0
  end

  def default_avatar
    not object.avatar.present?
  end

  def read_terms
    object.tnc_last_accepted.present?
  end

  def notifications
    0
  end

  def email_verified
    object.email_verified_at.present?
{'fraction_non_alphanumeric': 0.06519453207150368, 'fraction_numerical': 0.004206098843322818, 'mean_word_length': 4.259668508287293, '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': '5302299', 'n_tokens_mistral': 330, 'n_tokens_neox': 309, 'n_words': 69}