<commit_before>Aws::CF::Signer.configure do |config|
  # mangle our env var to get it into expected key syntax
  priv_key = ENV['CLOUDFRONT_KEY'].gsub('"', '').gsub(/\\n/, "\n")
  config.key          = priv_key
  config.key_pair_id  = ENV['AWS_ACCESS_KEY_ID']
  config.default_expires = 3600 # 1hr as seconds
end

# monkey patches via 
# http://stackoverflow.com/questions/9956712/use-cdn-with-carrierwave-fog-in-s3-cloudfront-with-rails-3-1
module CarrierWave
  module Uploader
    module Url
      extend ActiveSupport::Concern
      include CarrierWave::Uploader::Configuration
      include CarrierWave::Utilities::Uri

      ##<commit_msg>cloudfront key gets its own env var (not always same as AWS key)<commit_after>Aws::CF::Signer.configure do |config|
  # mangle our env var to get it into expected key syntax
  priv_key = ENV['CLOUDFRONT_KEY'].gsub('"', '').gsub(/\\n/, "\n")
  config.key          = priv_key
  config.key_pair_id  = ENV['CLOUDFRONT_KEY_PAIR_ID']
  config.default_expires = 3600 # 1hr as seconds
end

# monkey patches via 
# http://stackoverflow.com/questions/9956712/use-cdn-with-carrierwave-fog-in-s3-cloudfront-with-rails-3-1
module CarrierWave
  module Uploader
    module Url
      extend ActiveSupport::Concern
      include CarrierWave::Uploader::Configuration
      include CarrierWave::Utilities::Uri

      ##
{'fraction_non_alphanumeric': 0.11904761904761904, 'fraction_numerical': 0.022321428571428572, 'mean_word_length': 3.8207885304659497, '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': '5810564', 'n_tokens_mistral': 490, 'n_tokens_neox': 454, 'n_words': 100}