<commit_before>require File.expand_path('../../../../../lib/generators/templates/initializer.rb', __FILE__)

module Tandem
  #override the default configuration
  Configuration.current_user_proc {
    User.find(session['user_id']) unless session['user_id'].blank?
  }
end

<commit_msg>[#26038811] Update dummy app to use a request-based current_user_proc<commit_after>require File.expand_path('../../../../../lib/generators/templates/initializer.rb', __FILE__)

module Tandem
  #override the default configuration
  Configuration.current_user_proc { |request|
    User.find(request.session['user_id']) unless request.session['user_id'].blank?
  }
end


{'fraction_non_alphanumeric': 0.15030674846625766, 'fraction_numerical': 0.012269938650306749, 'mean_word_length': 4.678260869565217, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4216062', 'n_tokens_mistral': 200, 'n_tokens_neox': 190, 'n_words': 37}