<commit_before>module HowSlow
  # Configuration defaults
  @config = {
    :event_subscriptions => [/process_action.action_controller/],
    :logger_filename => "metrics.log",
    :storage => :log_file,

    :email_sender_address => nil,
    :email_recipients => nil,
    :email_subject => "metrics report",
    :email_actions_sort => :total_runtime,
    :email_actions_max => 50,
    :email_actions_retention => 7.days,
    :email_counters_events => nil, #all events collected
    :email_counters_sort => :alpha_asc,
    :email_counters_retention => 7.days
  }

  @valid_config_keys = @config.keys

  def self.configure(opts={})
    opts.each {|k,v| @config[k.to_sym] = v if @valid_config_keys.include? k.to_sym}
  end

  # Returns a hash of the gem's configuration options.
  #
  def self.config
    @config
  end

  # The full path to the log file. If you just want the filename you can get
  # that from `HowSlow.config[:logger_filename]`
  def self.full_path_to_log_file
    "#{Rails.root}/log/#{HowSlow.config[:logger_filename]}"
  end

end<commit_msg>Ref #16 - Small commenting style change<commit_after>module HowSlow
  # Configuration defaults
  @config = {
    :event_subscriptions => [/process_action.action_controller/],
    :logger_filename => "metrics.log",
    :storage => :log_file,

    :email_sender_address => nil,
    :email_recipients => nil,
    :email_subject => "metrics report",
    :email_actions_sort => :total_runtime,
    :email_actions_max => 50,
    :email_actions_retention => 7.days,
    :email_counters_events => nil, #all events collected
    :email_counters_sort => :alpha_asc,
    :email_counters_retention => 7.days
  }

  @valid_config_keys = @config.keys

  def self.configure(opts={})
    opts.each {|k,v| @config[k.to_sym] = v if @valid_config_keys.include? k.to_sym}
  end

  # Returns a hash of the gem's configuration options.
  #
  def self.config
    @config
  end

  # The full path to the log file. If you just want the filename you can get
  # that from `HowSlow.config[:logger_filename]`
  #
  def self.full_path_to_log_file
    "#{Rails.root}/log/#{HowSlow.config[:logger_filename]}"
  end

end
{'fraction_non_alphanumeric': 0.11975768872320597, 'fraction_numerical': 0.004659832246039142, 'mean_word_length': 3.8247191011235957, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '880971', 'n_tokens_mistral': 747, 'n_tokens_neox': 718, 'n_words': 166}