<commit_before>class UsersController < ApplicationController
  respond_to :html

  before_action :require_admin!, except: [:edit, :update]
  before_action :require_user_edit_priviledges, only: [:edit, :update]

  expose(:user, attributes: :user_params)
  expose(:users) do
    User.all.page(params[:page]).per(current_user.per_page)
  end

  def index; end<commit_msg>closes #1048 by sorting users by name<commit_after>class UsersController < ApplicationController
  respond_to :html

  before_action :require_admin!, except: [:edit, :update]
  before_action :require_user_edit_priviledges, only: [:edit, :update]

  expose(:user, attributes: :user_params)
  expose(:users) do
    User.order_by(name: :asc).page(params[:page]).per(current_user.per_page)
  end

  def index; end
{'fraction_non_alphanumeric': 0.11711711711711711, 'fraction_numerical': 0.005148005148005148, 'mean_word_length': 6.203703703703703, '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': '1347184', 'n_tokens_mistral': 260, 'n_tokens_neox': 252, 'n_words': 56}