<commit_before>if Rails.env.production?
  CarrierWave.configure do |config|
    config.fog_credentials = {
      # Configuration for Amazon S3
      :provider              => 'AWS',
      :aws_access_key_id     => ENV['S3_ACCESS_KEY'],
      :aws_secret_access_key => ENV['S3_SECRET_KEY']
    }
    config.storage = :fog
    config.fog_directory     =  ENV['S3_BUCKET']
  end
else
  CarrierWave.configure do |config|
    config.storage = :file
  end
end<commit_msg>Tweak AWS config<commit_after>if Rails.env.production?
  CarrierWave.configure do |config|
    config.fog_credentials = {
      # Configuration for Amazon S3
      provider: 'AWS',
      region: ENV['AWS_REGION'],
      aws_access_key_id: ENV['S3_ACCESS_KEY'],
      aws_secret_access_key: ENV['S3_SECRET_KEY']
    }
    config.storage = :fog
    config.fog_directory = ENV['S3_BUCKET']
  end
else
  CarrierWave.configure do |config|
    config.storage = :file
  end
end
{'fraction_non_alphanumeric': 0.10695187165775401, 'fraction_numerical': 0.008556149732620321, 'mean_word_length': 3.1415929203539825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '3728098', 'n_tokens_mistral': 337, 'n_tokens_neox': 332, 'n_words': 61}