<commit_before>class UsersController < ApplicationController
  # GET /users
  def index
    @users = User.all.includes(:skill_claims)

    render json: @users
  end

  # GET /users/0x01d3b5eaa2e305a1553f0e2612353c94e597449e (uPort address)
  def show
    @user = User.find_or_create_by!(uport_address: params[:uport_address])
    render json: @user.as_json(confirmations: true)
    UpdateProfile.perform_async @user.to_param # update profile info from uPort async
  end
end<commit_msg>Serve only a reasonable max # users<commit_after>class UsersController < ApplicationController
  # GET /users
  def index
    @users = User.limit(1000).includes(:skill_claims)

    render json: @users
  end

  # GET /users/0x01d3b5eaa2e305a1553f0e2612353c94e597449e (uPort address)
  def show
    @user = User.find_or_create_by!(uport_address: params[:uport_address])
    render json: @user.as_json(confirmations: true)
    UpdateProfile.perform_async @user.to_param # update profile info from uPort async
  end
end
{'fraction_non_alphanumeric': 0.083, 'fraction_numerical': 0.062, 'mean_word_length': 4.72, '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': '1668545', 'n_tokens_mistral': 373, 'n_tokens_neox': 337, 'n_words': 76}