<commit_before># Be sure to restart your web server when you modify this file.

#gem 'rack-cache'
#require 'rack/cache'

require File.join(File.dirname(__FILE__), '..', 'lib', 'journey_questionnaire')

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
  # Settings in config/environments/* take precedence those specified here

  config.action_controller.session = {
      :key         => '_journey_aegames_org-trunk_session',
      :secret      => 'ca837e0d9bfed2129139ac1712cf768687981f043aca55c15b424d1deee830babca9bf84afea63d9fd18164f9b026b5c5846b3cb1d64d8febeab9618d24a385f',
      :expire_after => (2 * 60 * 60 * 24 * 7)
    }
      
  # Use Active Record's schema dumper instead of SQL when creating the test database
  # (enables use of different database adapters for development and test environments)
  config.active_record.schema_format = :ruby
  
  config.action_view.sanitized_allowed_attributes = ['id', 'class', 'style']

#  config.middleware.use(Rack::Cache) do
#    import 'config/rack_cache_config'
#  end
end<commit_msg>Use secret token from env<commit_after># Be sure to restart your web server when you modify this file.

#gem 'rack-cache'
#require 'rack/cache'

require File.join(File.dirname(__FILE__), '..', 'lib', 'journey_questionnaire')

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
  # Settings in config/environments/* take precedence those specified here

  config.action_controller.session = {
      :key         => '_journey_aegames_org-trunk_session',
      :secret      => (ENV['SECRET_TOKEN'] || 'ca837e0d9bfed2129139ac1712cf768687981f043aca55c15b424d1deee830babca9bf84afea63d9fd18164f9b026b5c5846b3cb1d64d8febeab9618d24a385f'),
      :expire_after => (2 * 60 * 60 * 24 * 7)
    }
      
  # Use Active Record's schema dumper instead of SQL when creating the test database
  # (enables use of different database adapters for development and test environments)
  config.active_record.schema_format = :ruby
  
  config.action_view.sanitized_allowed_attributes = ['id', 'class', 'style']

#  config.middleware.use(Rack::Cache) do
#    import 'config/rack_cache_config'
#  end
end
{'fraction_non_alphanumeric': 0.0993576017130621, 'fraction_numerical': 0.06937901498929336, 'mean_word_length': 4.767901234567901, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '770971', 'n_tokens_mistral': 871, 'n_tokens_neox': 761, 'n_words': 184}