<commit_before>$LOAD_PATH.unshift("lib")
require 'rubygems'
require 'lib/ephemeral_response'
require 'benchmark'

EphemeralResponse::Configuration.expiration = 15
EphemeralResponse.activate

EphemeralResponse.configure do |config|
  config.register('example.com') do |request|
    "#{request.uri.host}#{request.method}#{request.path}"
  end
end<commit_msg>Activate after configuring the custom matcher<commit_after>$LOAD_PATH.unshift("lib")
require 'rubygems'
require 'lib/ephemeral_response'
require 'benchmark'

EphemeralResponse.configure do |config|
  config.expiration = 1
  config.register('example.com') do |request|
    "#{request.uri.host}#{request.method}#{request.path}"
  end
end

EphemeralResponse.activate
{'fraction_non_alphanumeric': 0.12795549374130738, 'fraction_numerical': 0.004172461752433936, 'mean_word_length': 7.181818181818182, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3281418', 'n_tokens_mistral': 246, 'n_tokens_neox': 239, 'n_words': 42}