<commit_before>Radiant.config do |config|
  config.namespace 'assets', :allow_display => false, :allow_change => false do |assets|
    
    # these are structural and can't be changed through the admin interface

    assets.define 'additional_thumbnails',    :default => 'normal=640x640>'
    assets.define 'url',                      :default => '/:class/:id/:basename:no_original_style.:extension'
    assets.define 'path',                     :default => ':rails_root/public/:class/:id/:basename:no_original_style.:extension'
    assets.define 'skip_filetype_validation', :default => true, :type => :boolean
    assets.define 'storage', :default     => 'filesystem',
                             :select_from => {'File System' => 'filesystem', 'Amazon S3' => 's3'},
                             :allow_blank => false

    assets.namespace 's3' do |s3|
      s3.define 'bucket'
      s3.define 'key'
      s3.define 'secret'
      s3.define 'host_alias'
    end

    # this is reconfigurable
    assets.define 'max_asset_size', :default => 5, :type => :integer, :units => 'MB', :allow_change => true
    
    # these too. I'd like to add a selection definition but it causes all sorts of load-order trouble with the declaration of asset types<commit_msg>allow assets.storage to be changed<commit_after>Radiant.config do |config|
  config.namespace 'assets', :allow_display => false, :allow_change => false do |assets|
    
    # these are structural and can't be changed through the admin interface

    assets.define 'additional_thumbnails',    :default => 'normal=640x640>'
    assets.define 'url',                      :default => '/:class/:id/:basename:no_original_style.:extension'
    assets.define 'path',                     :default => ':rails_root/public/:class/:id/:basename:no_original_style.:extension'
    assets.define 'skip_filetype_validation', :default => true, :type => :boolean
    assets.define 'storage', :default      => 'filesystem',
                             :select_from  => {'File System' => 'filesystem', 'Amazon S3' => 's3'},
                             :allow_blank  => false,
                             :allow_change => true

    assets.namespace 's3' do |s3|
      s3.define 'bucket'
      s3.define 'key'
      s3.define 'secret'
      s3.define 'host_alias'
    end

    # this is reconfigurable
    assets.define 'max_asset_size', :default => 5, :type => :integer, :units => 'MB', :allow_change => true
    
    # these too. I'd like to add a selection definition but it causes all sorts of load-order trouble with the declaration of asset types
{'fraction_non_alphanumeric': 0.12403400309119011, 'fraction_numerical': 0.011591962905718702, 'mean_word_length': 2.661951909476662, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 38, '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': '4424308', 'n_tokens_mistral': 749, 'n_tokens_neox': 726, 'n_words': 209}