<commit_before>class ProjectSerializer < ActiveModel::Serializer
  def created_at
    object.created_at.to_datetime.utc.rfc3339
  end

  def expires_at
    value = object.expires_at
    if value
      value.to_datetime.utc.rfc3339
    end
  end

  def online_date
    value = object.online_date
    if value
      value.to_datetime.utc.rfc3339
    end
  end

  attributes :id,
    :about,
    :about_html,
    :address_city,
    :address_neighborhood,
    :address_state,
    :address_zip_code,
    :budget,
    :budget_html,
    :campaign_type,
    :category_id,
    :created_at,
    :expires_at,
    :featured,
    :goal,
    :hash_tag,
    :headline,
    :hero_image,
    :home_page,
    :more_links,
    :name,
    :online_date,
    :online_days,
    :organization_type,
    :permalink,
    :pledged,
    :recommended,
    :short_url,
    :site,
    :state,
    :street_address,
    :terms,
    :terms_html,
    :uploaded_image,
    :user_id,
    :video_embed_url,
    :video_thumbnail,
    :video_url
end<commit_msg>Include entire user object in ProjectSerializer<commit_after>class ProjectSerializer < ActiveModel::Serializer
  has_one :user

  def created_at
    object.created_at.to_datetime.utc.rfc3339
  end

  def expires_at
    value = object.expires_at
    if value
      value.to_datetime.utc.rfc3339
    end
  end

  def online_date
    value = object.online_date
    if value
      value.to_datetime.utc.rfc3339
    end
  end

  attributes :id,
    :about,
    :about_html,
    :address_city,
    :address_neighborhood,
    :address_state,
    :address_zip_code,
    :budget,
    :budget_html,
    :campaign_type,
    :category_id,
    :created_at,
    :expires_at,
    :featured,
    :goal,
    :hash_tag,
    :headline,
    :hero_image,
    :home_page,
    :more_links,
    :name,
    :online_date,
    :online_days,
    :organization_type,
    :permalink,
    :pledged,
    :recommended,
    :short_url,
    :site,
    :state,
    :street_address,
    :terms,
    :terms_html,
    :uploaded_image,
    :video_embed_url,
    :video_thumbnail,
    :video_url
end
{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.011544011544011544, 'mean_word_length': 2.6236933797909407, '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': '508573', 'n_tokens_mistral': 810, 'n_tokens_neox': 772, 'n_words': 135}