<commit_before>class UsersController < ApplicationController
  include BatchProcessable

  # special find method before load_resource
  before_filter :build_user_with_proper_mission, :only => [:new, :create]

  # authorization via CanCan
  load_and_authorize_resource

  # ensure a recent login for most actions
  before_action :require_recent_login, :except => [:index, :login_instructions]

  def index
    # sort and eager load
    @users = @users.by_name

    # do search if applicable
    if params[:search].present?
      begin
        @users = User.do_search(@users, params[:search])
      rescue Search::ParseError
        flash.now[:error] = $!.to_s
        @search_error = true
      end<commit_msg>853: Don't check for stale login on VCF export<commit_after>class UsersController < ApplicationController
  include BatchProcessable

  # special find method before load_resource
  before_filter :build_user_with_proper_mission, :only => [:new, :create]

  # authorization via CanCan
  load_and_authorize_resource

  # ensure a recent login for most actions
  before_action :require_recent_login, :except => [:export, :index, :login_instructions]

  def index
    # sort and eager load
    @users = @users.by_name

    # do search if applicable
    if params[:search].present?
      begin
        @users = User.do_search(@users, params[:search])
      rescue Search::ParseError
        flash.now[:error] = $!.to_s
        @search_error = true
      end
{'fraction_non_alphanumeric': 0.08493150684931507, 'fraction_numerical': 0.002054794520547945, 'mean_word_length': 3.6826923076923075, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '955087', 'n_tokens_mistral': 435, 'n_tokens_neox': 414, 'n_words': 120}