<commit_before>PublicActivity.enabled = false

def fake_user_name
  Faker::Internet.user_name.classify.underscore
end

uglst_source = Source.find_or_create_by(name: 'User-Group List') do |m|
  m.description = 'User-Group List'
  m.homepage = 'https://ugl.st'
  m.twitter = 'https://twitter.com/uglst'
end

Source.find_or_create_by(name: 'PHP.UserGroup') do |m|
  m.description = 'An international meeting-point for the PHP-Community.'
  m.homepage = 'http://php.ug/'
  m.twitter = 'https://twitter.com/php_ug'
end

admin = User.find_or_create_by(email: '<EMAIL>') do |u|
  u.admin                          = true
  u.password                       = Rails.env.development? ? 'password' : (ENV['ADMIN_PASSWORD'] || SecureRandom.uuid)
  u.personal.birthday              = Date.new(1975, 12, 19).stamp('12/31/1999')
  u.personal.ethnicity             = 'Not Hispanic or Latino'
  u.personal.gender                = 'Male'
  u.personal.parental_status       = 'Parent'
  u.personal.race                  = 'White'
  u.personal.relationship_status   = 'Married'
  u.personal.religious_affiliation = 'None'
  u.personal.sexual_orientation    = 'Heterosexual'
  u.profile.address                = ENV['MIKES_ADDRESS'] || '614 18th Ave Menlo Park, CA 94025'
  u.profile.bio                    = Faker::Lorem.paragraph
  u.profile.first_name             = 'Mike'
  u.profile.homepage               = Faker::Internet.http_url
  u.profile.interests              = Faker::Skill.specialties
  u.profile.last_name              = 'Hall'
  u.profile.twitter                = 'https://twitter.com/ugtastic'
  u.username                       = 'ugtastic'
end

if Rails.env.development?
  user1 = User.find_or_create_by(email: '<EMAIL>') do |u|
    u.password           = 'password'
    u.profile.address    = '4059 Mt Lee Dr. Hollywood, CA 90068'
    u.profile.bio        = Faker::Lorem.paragraph
    u.profile.first_name = Faker::Name.first_name
    u.profile.homepage   = Faker::Internet.http_url
    u.profile.interests  = Faker::Skill.specialties
    u.profile.last_name  = Faker::Name.last_name
    u.profile.twitter    = "@#{fake_user_name}"
    u.username           = fake_user_name
  end

  user2 = User.find_or_create_by(email: '<EMAIL>') do |u|
    u.password           = 'password'
    u.profile.address    = '221 B Baker St, London, England'
    u.profile.bio        = Faker::Lorem.paragraph
    u.profile.first_name = Faker::Name.first_name
    u.profile.homepage   = Faker::Internet.http_url
    u.profile.interests  = Faker::Skill.specialties
    u.profile.last_name  = Faker::Name.last_name
    u.profile.twitter    = "@#{fake_user_name}"
    u.username           = fake_user_name
  end

  user_group = UserGroup.find_or_create_by(name: 'Software Craftsmanship McHenry County') do |ug|
    ug.city           = Faker::AddressUS.city<commit_msg>Simplified the db seed a little<commit_after>PublicActivity.enabled = false

def fake_user_name
  Faker::Internet.user_name.classify.underscore
end

uglst_source = Source.find_or_create_by(name: 'User-Group List') do |m|
  m.description = 'User-Group List'
  m.homepage = 'https://ugl.st'
  m.twitter = 'https://twitter.com/uglst'
end

Source.find_or_create_by(name: 'PHP.UserGroup') do |m|
  m.description = 'An international meeting-point for the PHP-Community.'
  m.homepage = 'http://php.ug/'
  m.twitter = 'https://twitter.com/php_ug'
end

admin = User.find_or_create_by(email: '<EMAIL>') do |u|
  u.admin                          = true
  u.password                       = Rails.env.development? ? 'password' : (ENV['ADMIN_PASSWORD'] || SecureRandom.uuid)

  u.personal.birthday              = Date.new(1975, 12, 19).stamp('12/31/1999')
  u.personal.ethnicity             = 'Not Hispanic or Latino'
  u.personal.gender                = 'Male'
  u.personal.parental_status       = 'Parent'
  u.personal.race                  = 'White'
  u.personal.relationship_status   = 'Married'
  u.personal.religious_affiliation = 'None'
  u.personal.sexual_orientation    = 'Heterosexual'

  u.profile.address                = '614 18th Ave Menlo Park, CA 94025'
  u.profile.bio                    = Faker::Lorem.paragraph
  u.profile.first_name             = 'Mike'
  u.profile.homepage               = Faker::Internet.http_url
  u.profile.interests              = Faker::Skill.specialties
  u.profile.last_name              = 'Hall'
  u.profile.twitter                = 'https://twitter.com/ugtastic'

  u.username                       = 'ugtastic'
end

if Rails.env.development?
  user1 = User.find_or_create_by(email: '<EMAIL>') do |u|
    u.password           = 'password'
    u.profile.address    = '4059 Mt Lee Dr. Hollywood, CA 90068'
    u.profile.bio        = Faker::Lorem.paragraph
    u.profile.first_name = Faker::Name.first_name
    u.profile.homepage   = Faker::Internet.http_url
    u.profile.interests  = Faker::Skill.specialties
    u.profile.last_name  = Faker::Name.last_name
    u.profile.twitter    = "@#{fake_user_name}"
    u.username           = fake_user_name
  end

  user2 = User.find_or_create_by(email: '<EMAIL>') do |u|
    u.password           = 'password'
    u.profile.address    = '221 B Baker St, London, England'
    u.profile.bio        = Faker::Lorem.paragraph
    u.profile.first_name = Faker::Name.first_name
    u.profile.homepage   = Faker::Internet.http_url
    u.profile.interests  = Faker::Skill.specialties
    u.profile.last_name  = Faker::Name.last_name
    u.profile.twitter    = "@#{fake_user_name}"
    u.username           = fake_user_name
  end

  user_group = UserGroup.find_or_create_by(name: 'Software Craftsmanship McHenry County') do |ug|
    ug.city           = Faker::AddressUS.city
{'fraction_non_alphanumeric': 0.12356979405034325, 'fraction_numerical': 0.014082027812004929, 'mean_word_length': 2.483752299202943, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 8, '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': '3768533', 'n_tokens_mistral': 2013, 'n_tokens_neox': 1888, 'n_words': 331}