<commit_before>class UserSerializer < ApplicationSerializer

  json_api_swagger_schema do
    property :attributes do
      property :username, type: :string
      property :first_name, type: :string
      property :last_name, type: :string
      property :groups, type: :array, items: { type: :string }
      property :api_token, type: :string, readOnly: true
      property :api_key_expires_at, type: :string, format: 'date-time', readOnly: true
      property :admin, type: :boolean, readOnly: true
    end
    property :links do
      property :self, type: :string, format: 'url', readOnly: true
    end
  end

  attributes :id, :username, :first_name, :last_name, :groups,
             :api_token, :api_key_expires_at

  attribute :admin?, key: :admin

  def groups
    object.group_list
  end

end<commit_msg>remove ancient user serializer swag<commit_after>class UserSerializer < ApplicationSerializer

  json_api_swagger_schema do
    property :attributes do
      property :username, type: :string
      property :first_name, type: :string
      property :last_name, type: :string
      property :groups, type: :array, items: { type: :string }
      property :api_token, type: :string, readOnly: true
      property :api_key_expires_at, type: :string, format: 'date-time', readOnly: true
      property :admin, type: :boolean, readOnly: true
    end
  end

  attributes :id, :username, :first_name, :last_name, :groups,
             :api_token, :api_key_expires_at

  attribute :admin?, key: :admin

  def groups
    object.group_list
  end

end
{'fraction_non_alphanumeric': 0.09588159588159588, 'fraction_numerical': 0.0, 'mean_word_length': 3.5870206489675516, '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': '5981718', 'n_tokens_mistral': 476, 'n_tokens_neox': 467, 'n_words': 147}