<commit_before>if %w(development test cucumber performance).include?(Rails.env)
  s3_decision = {}
else
  s3_decision = {
    storage:         :fog,
    path:            ":class/:attachment/:id/:style/:filename",
    fog_credentials: {
      aws_access_key_id:     ENV['AWS_ACCESS_KEY_ID'],
      aws_secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
      provider:              'AWS',
      region:                'us-west-1'
    },
    fog_directory:   ENV['AWS_BUCKET'] || "af-#{Rails.env}",
    fog_public:      :public
  }
end

Paperclip::Attachment.default_options.merge!(s3_decision)
Paperclip.options[:command_path] = ["/usr/local/bin", "/usr/bin"]
<commit_msg>Reverting the S3 buckets for now<commit_after>if %w(development test cucumber performance).include?(Rails.env)
  s3_decision = {}
else
  s3_decision = {
    storage:         :fog,
    path:            ":class/:attachment/:id/:style/:filename",
    fog_credentials: {
      aws_access_key_id:     ENV['AWS_ACCESS_KEY_ID'],
      aws_secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
      provider:              'AWS',
      region:                'us-west-1'
    },
    fog_directory:   ENV['AWS_BUCKET'] || "afdev-#{Rails.env}",
    fog_public:      :public
  }
end

Paperclip::Attachment.default_options.merge!(s3_decision)
Paperclip.options[:command_path] = ["/usr/local/bin", "/usr/bin"]

{'fraction_non_alphanumeric': 0.14558823529411766, 'fraction_numerical': 0.006617647058823529, 'mean_word_length': 2.910919540229885, 'pattern_counts': {'":': 2, '<': 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': '5373467', 'n_tokens_mistral': 487, 'n_tokens_neox': 487, 'n_words': 67}