<commit_before>class Admin::UsersController < Admin::BaseController
  include UserPermissionsControllerMethods
  helper_method :applications_and_permissions

  respond_to :html
  before_filter :set_user, only: [:edit, :update, :unlock]

  def index
    if params[:filter]
      @users = User.order("name")
                    .where("email like ? or name like ?", "%#{params[:filter]}%", "%#{params[:filter]}%")
                    .page(params[:page])
                    .per(100)<commit_msg>Strip search parameter<commit_after>class Admin::UsersController < Admin::BaseController
  include UserPermissionsControllerMethods
  helper_method :applications_and_permissions

  respond_to :html
  before_filter :set_user, only: [:edit, :update, :unlock]

  def index
    if params[:filter]
      @users = User.order("name")
                    .where("email like ? or name like ?", "%#{params[:filter].strip}%", "%#{params[:filter].strip}%")
                    .page(params[:page])
                    .per(100)
{'fraction_non_alphanumeric': 0.13676907829534193, 'fraction_numerical': 0.005946481665014866, 'mean_word_length': 3.156378600823045, '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': '6258710', 'n_tokens_mistral': 289, 'n_tokens_neox': 278, 'n_words': 61}