<commit_before>class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  before_filter :authenticate_admin!

  # Don't use SSL for the TrackingController and only in production
  force_ssl :if => Proc.new{
    r = (controller_name != "tracking" && Rails.env.production?)
    puts "***** controller_name: #{controller_name}, force_ssl here: #{r} *****"
    r
  }
end
<commit_msg>Use logger to output debugging info<commit_after>class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  before_filter :authenticate_admin!

  # Don't use SSL for the TrackingController and only in production
  force_ssl :if => Proc.new{
    r = (controller_name != "tracking" && Rails.env.production?)
    logger.info "***** controller_name: #{controller_name}, force_ssl here: #{r} *****"
    r
  }
end

{'fraction_non_alphanumeric': 0.10697674418604651, 'fraction_numerical': 0.0, 'mean_word_length': 4.575129533678757, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5438253', 'n_tokens_mistral': 329, 'n_tokens_neox': 306, 'n_words': 103}