<commit_before>User.find_or_create_by!(email: '<EMAIL>') do |user|
  user.password = '<PASSWORD>'
  user.role = 'superadmin'
end

User.find_or_create_by!(email: '<EMAIL>') do |user|
  user.password = '<PASSWORD>'
  user.role = 'social_worker'
end

User.find_or_create_by!(email: '<EMAIL>') do |user|
  user.password = '<PASSWORD>'
  user.role = 'department_manager'
end

User.all.each do |user|
  Profile.find_or_create_by!(user: user) do |profile|
    profile.first_name = user.role
    profile.last_name = user.role
    profile.user = user
  end

  Client.find_or_create_by!(
    first_name: "#{user.profile.first_name}'s Client",
    user: user
  ) do |client|
    client.first_name = "#{user.profile.first_name}'s Client"
    client.last_name = 'a lastname'
    client.user = user
  end
end

Volunteer.create(
  first_name: 'First',
  last_name: 'Volunteer',
  email: '<EMAIL>'
)
if Department.count < 1
  Department.new(
    contact: Contact.new(name: 'Bogus Department'),
    user: [User.all.sample]
  ).save
end<commit_msg>volunteer seed with schedules<commit_after>User.find_or_create_by!(email: '<EMAIL>') do |user|
  user.password = '<PASSWORD>'
  user.role = 'superadmin'
end

User.find_or_create_by!(email: '<EMAIL>') do |user|
  user.password = '<PASSWORD>'
  user.role = 'social_worker'
end

User.find_or_create_by!(email: '<EMAIL>') do |user|
  user.password = '<PASSWORD>'
  user.role = 'department_manager'
end

User.all.each do |user|
  Profile.find_or_create_by!(user: user) do |profile|
    profile.first_name = user.role
    profile.last_name = user.role
    profile.user = user
  end

  Client.find_or_create_by!(
    first_name: "#{user.profile.first_name}'s Client",
    user: user
  ) do |client|
    client.first_name = "#{user.profile.first_name}'s Client"
    client.last_name = 'a lastname'
    client.user = user
  end
end

if Department.count < 1
  Department.new(
    contact: Contact.new(name: 'Bogus Department'),
    user: [User.all.sample]
  ).save

Volunteer.find_or_create_by!(first_name: 'First', last_name: 'Volunteer',
  email: '<EMAIL>') do |volunteer|
  volunteer.schedules << Schedule.build
end
{'fraction_non_alphanumeric': 0.14639850327408793, 'fraction_numerical': 0.0009354536950420954, 'mean_word_length': 4.217073170731707, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 17, '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': '1395300', 'n_tokens_mistral': 791, 'n_tokens_neox': 785, 'n_words': 161}