<commit_before>module NotableWeb
  class HomeController < ActionController::Base
    layout "notable_web/application"

    http_basic_authenticate_with name: ENV["NOTABLE_USERNAME"], password: ENV["<PASSWORD>"] if ENV["NOTABLE_PASSWORD"]

    def index
      where = Hash[ params.slice(:status, :note_type, :note, :user_id, :user_type).permit!.map{|k,v| ["notable_requests.#{k}", v] } ]

      page_method_name = Kaminari.config.page_method_name
<commit_msg>Fix for Rails 5+ - fixes #5<commit_after>module NotableWeb
  class HomeController < ActionController::Base
    layout "notable_web/application"

    http_basic_authenticate_with name: ENV["NOTABLE_USERNAME"], password: ENV["<PASSWORD>"] if ENV["NOTABLE_PASSWORD"]

    def index
      where = params.slice(:status, :note_type, :note, :user_id, :user_type).permit!.to_h
      where = {notable_requests: where} if where.any?

      page_method_name = Kaminari.config.page_method_name

{'fraction_non_alphanumeric': 0.12234042553191489, 'fraction_numerical': 0.002127659574468085, 'mean_word_length': 5.231788079470198, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '125500', 'n_tokens_mistral': 322, 'n_tokens_neox': 308, 'n_words': 61}