<commit_before># if ARGV[1].blank?
#   puts "\n****SEED FAILED, but it's easy to fix****\n" \
#        "Rerun with your google account as an argument to create a Google SSO user\n" \
#        "Ex: `rake db:seed <EMAIL>.com\n"
#   raise
# end

Patient.destroy_all
User.destroy_all

# Create google SSO user
# puts "Creating user with email #{ARGV[1]}..."
# sso_user = User.create! email: ARGV[1], name: 'Development user',
#                         password: '<PASSWORD>', password_confirmation: '<PASSWORD>'

# Create two test users
user = User.create name: 'testuser', email: '<EMAIL>',
                   password: '<PASSWORD>', password_confirmation: '<PASSWORD>'
user2 = User.create name: 'testuser2', email: '<EMAIL>',
                    password: '<PASSWORD>', password_confirmation: '<PASSWORD>'
user3 = User.create name: 'testuser3', email: '<EMAIL>',
                    password: '<PASSWORD>', password_confirmation: '<PASSWORD>'
<commit_msg>make default user an admin, fail if you accidentally run in prod<commit_after>fail 'No running seeds in prod' unless [nil, 'Test Sandbox'].include? ENV['FUND']

# if ARGV[1].blank?
#   puts "\n****SEED FAILED, but it's easy to fix****\n" \
#        "Rerun with your google account as an argument to create a Google SSO user\n" \
#        "Ex: `rake db:seed <EMAIL>@gmail.com\n"
#   raise
# end

Patient.destroy_all
User.destroy_all

# Create google SSO user
# puts "Creating user with email #{ARGV[1]}..."
# sso_user = User.create! email: ARGV[1], name: 'Development user',
#                         password: '<PASSWORD>', password_confirmation: '<PASSWORD>'

# Create two test users
user = User.create name: 'testuser (admin)', email: '<EMAIL>',
                   password: '<PASSWORD>', password_confirmation: '<PASSWORD>',
                   role: :admin
user2 = User.create name: 'testuser2', email: '<EMAIL>',
                    password: '<PASSWORD>', password_confirmation: '<PASSWORD>'
user3 = User.create name: 'testuser3', email: '<EMAIL>',
                    password: '<PASSWORD>', password_confirmation: '<PASSWORD>'

{'fraction_non_alphanumeric': 0.15237182558696694, 'fraction_numerical': 0.006708193579300431, 'mean_word_length': 3.2012072434607646, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6455250', 'n_tokens_mistral': 647, 'n_tokens_neox': 639, 'n_words': 200}