<commit_before># This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
#   Mayor.create(:name => 'Daley', :city => cities.first)

unless Mentor.count > 0
  Mentor.create!(name: 'Haller', prename: 'Frederik',
                 email: '<EMAIL>', password: '<PASSWORD>',
                 password_confirmation: '<PASSWORD>')
  Mentor.create!(name: 'Rohner', prename: 'Melanie',
                 email: '<EMAIL>', password: '<PASSWORD>',
                 password_confirmation: '<PASSWORD>')
  Mentor.create!(name: 'Steiner', prename: 'Max',
                 email: '<EMAIL>', password: '<PASSWORD>',
                 password_confirmation: '<PASSWORD>')
end

unless Admin.count > 0
  Admin.create!(name: 'AOZ', prename: 'Admin',
                email: '<EMAIL>', password: '<PASSWORD>',
                password_confirmation: '<PASSWORD>')
end

unless Teacher.count > 0
  Teacher.create!(name: 'Meckler', prename: 'Janine',
                  email: '<EMAIL>', password: '<PASSWORD>',
                  password_confirmation: '<PASSWORD>')
end

unless Kid.count > 0
  Kid.create!(name: 'Meier', prename: 'Max')
  Kid.create!(name: 'Hodler', prename: 'Rolf')
  Kid.create!(name: 'Schwarz', prename: 'Sandra')
end
<commit_msg>fix: seeds with working data<commit_after># This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
#   Mayor.create(:name => 'Daley', :city => cities.first)

schools = []
unless School.count > 0
  schools << School.create!(name: 'Primary school', school_kind: 'primary_school').id
  schools << School.create!(name: 'Secondary school', school_kind: 'secondary_school').id
  schools << School.create!(name: 'Gymnasium', school_kind: 'gymnasium').id
  schools << School.create!(name: 'High school', school_kind: 'high_school').id
end

unless Mentor.count > 0
  Mentor.create!(name: 'Haller', prename: 'Frederik', state: 'accepted',
                 email: '<EMAIL>', password: '<PASSWORD>',
                 password_confirmation: '<PASSWORD>', sex: 'm', school_id: schools[2])
  Mentor.create!(name: 'Rohner', prename: 'Melanie', state: 'accepted',
                 email: '<EMAIL>', password: '<PASSWORD>',
                 password_confirmation: '<PASSWORD>', sex: 'f', school_id: schools[2])
  Mentor.create!(name: 'Steiner', prename: 'Max', state: 'accepted',
                 email: '<EMAIL>', password: '<PASSWORD>',
                 password_confirmation: '<PASSWORD>', sex:'m', school_id: schools[3])
end

unless Admin.count > 0
  Admin.create!(name: 'AOZ', prename: 'Admin', state: 'accepted',
                email: '<EMAIL>', password: '<PASSWORD>',
                password_confirmation: '<PASSWORD>')
end

unless Teacher.count > 0
  Teacher.create!(name: 'Meckler', prename: 'Janine', state: 'accepted',
                  email: '<EMAIL>', password: '<PASSWORD>',
                  password_confirmation: '<PASSWORD>', sex: 'f', school_id: schools[0])
end

unless Kid.count > 0
  Kid.create!(name: 'Meier', prename: 'Max', sex: 'm')
  Kid.create!(name: 'Hodler', prename: 'Rolf', sex: 'm')
  Kid.create!(name: 'Schwarz', prename: 'Sandra', sex: 'f')
end

{'fraction_non_alphanumeric': 0.16849199663016007, 'fraction_numerical': 0.0036506599269868017, 'mean_word_length': 3.480503144654088, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 50, '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': '6735608', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1127, 'n_words': 311}