<commit_before>require_dependency "current_user/application_controller"

module CurrentUser
  class SessionsController < ApplicationController
    before_filter :check_key

    def new
      @users = ::User.all
      @sign_in_url = key_sign_in_url ::CurrentUser::Config.instance.key
    end

    def create
      session[::CurrentUser::USER_SESSION_KEY] = params[:user_id]
      redirect_to '/'
    end<commit_msg>Add sorting by emails on the signin page.<commit_after>require_dependency "current_user/application_controller"

module CurrentUser
  class SessionsController < ApplicationController
    before_filter :check_key

    def new
      @users = ::User.order 'email'
      @sign_in_url = key_sign_in_url ::CurrentUser::Config.instance.key
    end

    def create
      session[::CurrentUser::USER_SESSION_KEY] = params[:user_id]
      redirect_to '/'
    end
{'fraction_non_alphanumeric': 0.08198614318706697, 'fraction_numerical': 0.0, 'mean_word_length': 4.040697674418604, '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': '3626299', 'n_tokens_mistral': 257, 'n_tokens_neox': 247, 'n_words': 53}