<commit_before>class UserSerializer < ApplicationSerializer
  include MarkdownHelper

  attributes :avatar_url, :bio, :last_online, :staff, :url, :username

  def staff
    object.staff?
  end

  def url
    user_path(object)
  end

  def avatar_url
    object.avatar.url(140).to_s
  end

  def last_online
    object.last_request_at.iso8601 if object.last_request_at?
  end

  cached

  def cache_key
    [object]
  end
end<commit_msg>Remove caching from user serializer, last_request_at doesn't break the cache<commit_after>class UserSerializer < ApplicationSerializer
  include MarkdownHelper

  attributes :avatar_url, :bio, :last_online, :staff, :url, :username

  def staff
    object.staff?
  end

  def url
    user_path(object)
  end

  def avatar_url
    object.avatar.url(140).to_s
  end

  def last_online
    object.last_request_at.iso8601 if object.last_request_at?
  end
end
{'fraction_non_alphanumeric': 0.06749156355455568, 'fraction_numerical': 0.015748031496062992, 'mean_word_length': 3.810810810810811, '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': '6520187', 'n_tokens_mistral': 316, 'n_tokens_neox': 291, 'n_words': 75}