<commit_before>#SIMS_DOMAIN = #sims-open.vegantech.com
SIMS_PROTO="http"  #change to https when we're using that.
#DEFAULT_URL = #'http://www.simspilot2.org:3000'

sessionhash= {
    :key         => '_sims-open4_session',
    :secure => (Rails.env.production? || Rails.env.staging? )
    }

if ENV['SIMS_DOMAIN']
  SIMS_DOMAIN = ENV['SIMS_DOMAIN']
end

if defined?(SIMS_DOMAIN)
  sessionhash.merge!( :domain =>  ".#{SIMS_DOMAIN}")
else
  sessionhash.merge!( :domain => ".lvh.me")
end

Sims::Application.config.session_store :cookie_store, sessionhash
if Object.const_defined?('SIMS_DOMAIN')
  ActionDispatch::Http::URL.tld_length = (SIMS_DOMAIN.split(".").length() -1)  #defaults to 1
  host="www.#{Object.const_get("SIMS_DOMAIN")}"
end
ActionMailer::Base.default_url_options = {
  :only_path => false,
  :protocol => SIMS_PROTO,
  :host => host ||"www.sims_test_host"
}
<commit_msg>update session key to clear out all logins for heartbleed update<commit_after>#SIMS_DOMAIN = #sims-open.vegantech.com
SIMS_PROTO="http"  #change to https when we're using that.
#DEFAULT_URL = #'http://www.simspilot2.org:3000'

sessionhash= {
    :key         => '_sims-open5_session',
    :secure => (Rails.env.production? || Rails.env.staging? )
    }

if ENV['SIMS_DOMAIN']
  SIMS_DOMAIN = ENV['SIMS_DOMAIN']
end

if defined?(SIMS_DOMAIN)
  sessionhash.merge!( :domain =>  ".#{SIMS_DOMAIN}")
else
  sessionhash.merge!( :domain => ".lvh.me")
end

Sims::Application.config.session_store :cookie_store, sessionhash
if Object.const_defined?('SIMS_DOMAIN')
  ActionDispatch::Http::URL.tld_length = (SIMS_DOMAIN.split(".").length() -1)  #defaults to 1
  host="www.#{Object.const_get("SIMS_DOMAIN")}"
end
ActionMailer::Base.default_url_options = {
  :only_path => false,
  :protocol => SIMS_PROTO,
  :host => host ||"www.sims_test_host"
}

{'fraction_non_alphanumeric': 0.1651073197578426, 'fraction_numerical': 0.008805723720418272, 'mean_word_length': 5.039867109634551, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '949724', 'n_tokens_mistral': 702, 'n_tokens_neox': 695, 'n_words': 118}