<commit_before># -*- encoding : utf-8 -*-
CarrierWave.configure do |config|
  if Rails.env.production?
    config.storage = :fog
    config.fog_credentials = {
      :provider               => 'AWS',
      :aws_access_key_id      => SPG_CONFIG['fog']['aws_access_key_id'],
      :aws_secret_access_key  => SPG_CONFIG['fog']['aws_secret_access_key'],
      :region                 => SPG_CONFIG['fog']['region']
    }
    config.fog_directory  = SPG_CONFIG['fog']['directory']
    config.fog_host       = "http://#{SPG_CONFIG['fog']['directory']}"
    config.fog_public     = true
    config.fog_attributes = {'Cache-Control' => 'max-age=315576000'}
  else
    config.storage = :file
    config.enable_processing = false
  end
end<commit_msg>Fix carrierwave configuration (fog_host renamed to asset_host).<commit_after># -*- encoding : utf-8 -*-
CarrierWave.configure do |config|
  if Rails.env.production?
    config.storage = :fog
    config.fog_credentials = {
      :provider               => 'AWS',
      :aws_access_key_id      => SPG_CONFIG['fog']['aws_access_key_id'],
      :aws_secret_access_key  => SPG_CONFIG['fog']['aws_secret_access_key'],
      :region                 => SPG_CONFIG['fog']['region']
    }
    config.fog_directory  = SPG_CONFIG['fog']['directory']
    config.asset_host     = "http://#{SPG_CONFIG['fog']['directory']}"
    config.fog_public     = true
    config.fog_attributes = {'Cache-Control' => 'max-age=315576000'}
  else
    config.storage = :file
    config.enable_processing = false
  end
end
{'fraction_non_alphanumeric': 0.15078328981723238, 'fraction_numerical': 0.013054830287206266, 'mean_word_length': 3.077127659574468, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1864152', 'n_tokens_mistral': 520, 'n_tokens_neox': 505, 'n_words': 75}