<commit_before>class AdministratorController < ApplicationController

  #before_filter :authenticate_admin!
  
  def administrator
    @books = Book.all
    @users = User.all
    @books = @books.search(params[:keyword]) if params[:keyword].present?
    @users = @users.search(params[:keyword]) if params[:keyword].present?
  end
  
  def editbook<commit_msg>restore admin filter<commit_after>class AdministratorController < ApplicationController

  before_filter :authenticate_admin!
  
  def administrator
    @books = Book.all
    @users = User.all
    @books = @books.search(params[:keyword]) if params[:keyword].present?
    @users = @users.search(params[:keyword]) if params[:keyword].present?
  end
  
  def editbook
{'fraction_non_alphanumeric': 0.11218836565096953, 'fraction_numerical': 0.0, 'mean_word_length': 4.604651162790698, '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': '2129029', 'n_tokens_mistral': 210, 'n_tokens_neox': 201, 'n_words': 45}