<commit_before># We set the cookie domain dynamically with a Rack middleware.
# See lib/intercode/dynamic_cookie_domain.rb for how this works.

Rails.application.config.session_store :active_record_store,
  key: '_intercode_session',
  domain: :all,
  same_site: :strict,
  expire_after: 2.weeks<commit_msg>Try to work around a Firefox bug by changing SameSite to Lax<commit_after># We set the cookie domain dynamically with a Rack middleware.
# See lib/intercode/dynamic_cookie_domain.rb for how this works.

Rails.application.config.session_store :active_record_store,
  key: '_intercode_session',
  domain: :all,
  same_site: :lax, # attempt to work around https://bugzilla.mozilla.org/show_bug.cgi?id=1465402
  expire_after: 2.weeks
{'fraction_non_alphanumeric': 0.08695652173913043, 'fraction_numerical': 0.012228260869565218, 'mean_word_length': 5.464912280701754, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '2120511', 'n_tokens_mistral': 248, 'n_tokens_neox': 233, 'n_words': 69}