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

# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION

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

Rails::Initializer.run do |config|
  config.gem "systemu"
  config.gem "rack", :version => "1.1.3"

  config.time_zone = 'UTC'

  config.action_controller.session = {
    :session_key => '_clsi_session',
    :secret      => 'cbd744cdfaf96380fddbae8d5ca2facff1fce7f4b93c6d98feaf9986ff09e83dbd3ca79f827a0cf654f16c3c0c948acaad5d616fdbf50144708f4f10de3c855e'
  }
end
<commit_msg>Fix 'exceeded available parameter key space' with large POST requests<commit_after># Be sure to restart your server when you modify this file

# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION

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

Rails::Initializer.run do |config|
  config.gem "systemu"
  config.gem "rack", :version => "1.1.3"

  config.time_zone = 'UTC'

  config.action_controller.session = {
    :session_key => '_clsi_session',
    :secret      => 'cbd744cdfaf96380fddbae8d5ca2facff1fce7f4b93c6d98feaf9986ff09e83dbd3ca79f827a0cf654f16c3c0c948acaad5d616fdbf50144708f4f10de3c855e'
  }
end

# Fix the bug described here:http://stackoverflow.com/questions/9122411/rails-javascript-too-many-parameter-keys-whats-a-good-way-to-normalize-f
# Allows the CLSI to handle large POST requests
Rack::Utils.key_space_limit = 262144

{'fraction_non_alphanumeric': 0.09041769041769042, 'fraction_numerical': 0.07518427518427519, 'mean_word_length': 5.3229813664596275, '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': '1031927', 'n_tokens_mistral': 800, 'n_tokens_neox': 707, 'n_words': 184}