<commit_before>CarrierWave.configure do |config|

  config.fog_credentials = {
    :provider              => 'AWS',
    :aws_access_key_id     => ENV['AWS_S3_KEY'],
    :aws_secret_access_key => ENV['AWS_S3_SECRET'],
    :region                => ENV['AWS_S3_REGION']
  } if ENV['AWS_S3_KEY']

  config.fog_directory  = ENV['AWS_S3_BUCKET']
  config.fog_public = true

  if Rails.env.test?<commit_msg>Make fog asset host configurable<commit_after>CarrierWave.configure do |config|

  config.fog_credentials = {
    :provider              => 'AWS',
    :aws_access_key_id     => ENV['AWS_S3_KEY'],
    :aws_secret_access_key => ENV['AWS_S3_SECRET'],
    :region                => ENV['AWS_S3_REGION']
  } if ENV['AWS_S3_KEY']

  config.asset_host = ENV['AWS_S3_HOST'] if ENV['AWS_S3_HOST']
  config.fog_directory  = ENV['AWS_S3_BUCKET']
  config.fog_public = true

  if Rails.env.test?
{'fraction_non_alphanumeric': 0.1334841628959276, 'fraction_numerical': 0.013574660633484163, 'mean_word_length': 3.317073170731707, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '7537956', 'n_tokens_mistral': 365, 'n_tokens_neox': 356, 'n_words': 47}