<commit_before>class UsersController < ApplicationController

  before_filter :get_user, except: [:index]
  before_action :authorise, only: [:edit, :update]
  
  def index
    @users = User.all.order(:login)
    @contributors = @users.select{|x| x.contributor}
    @others = @users.select{|x| !x.contributor}
  end

  def show<commit_msg>use SQL queries instead of selects and sorts<commit_after>class UsersController < ApplicationController

  before_filter :get_user, except: [:index]
  before_action :authorise, only: [:edit, :update]
  
  def index
    @contributors = User.where(contributor: true).order(:login)
    @others = User.where(contributor: false).order(:login)
  end

  def show
{'fraction_non_alphanumeric': 0.11832611832611832, 'fraction_numerical': 0.0, 'mean_word_length': 4.735537190082645, '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': '4992847', 'n_tokens_mistral': 229, 'n_tokens_neox': 215, 'n_words': 54}