<commit_before>RailsAdmin.config do |config|
  config.authorize_with do
    authenticate_or_request_with_http_basic("Please login.") do |username, password|
      username == ENV["RAILS_ADMIN_LOGIN"] && password == ENV["<PASSWORD>PASSWORD"]
    end
  end

  config.model "Picture" do
    edit do
      field :remote_image_url
      afield :game
    end
  end

  ### Popular gems integration

  ## == Devise ==
  # config.authenticate_with do
  #   warden.authenticate! scope: :user
  # end
  # config.current_user_method(&:current_user)

  ## == Cancan ==
  # config.authorize_with :cancan

  ## == PaperTrail ==
  # config.audit_with :paper_trail, "User", "PaperTrail::Version" # PaperTrail >= 3.0.0

  ### More at https://github.com/sferik/rails_admin/wiki/Base-configuration

  config.actions do
    dashboard                     # mandatory
    index                         # mandatory<commit_msg>Fix a typo<commit_after>RailsAdmin.config do |config|
  config.authorize_with do
    authenticate_or_request_with_http_basic("Please login.") do |username, password|
      username == ENV["RAILS_ADMIN_LOGIN"] && password == ENV["<PASSWORD>"]
    end
  end

  config.model "Picture" do
    edit do
      field :remote_image_url
      field :game
    end
  end

  ### Popular gems integration

  ## == Devise ==
  # config.authenticate_with do
  #   warden.authenticate! scope: :user
  # end
  # config.current_user_method(&:current_user)

  ## == Cancan ==
  # config.authorize_with :cancan

  ## == PaperTrail ==
  # config.audit_with :paper_trail, "User", "PaperTrail::Version" # PaperTrail >= 3.0.0

  ### More at https://github.com/sferik/rails_admin/wiki/Base-configuration

  config.actions do
    dashboard                     # mandatory
    index                         # mandatory
{'fraction_non_alphanumeric': 0.1171875, 'fraction_numerical': 0.0033482142857142855, 'mean_word_length': 2.923413566739606, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '3291377', 'n_tokens_mistral': 603, 'n_tokens_neox': 568, 'n_words': 115}