<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: 'Emanuel', city: cities.first)
user = User.create(:first_name => "Awesome",
                   :last_name => "Admin",
                   :email => "<EMAIL>")
user.update_attribute(:admin, true)
user.update_password("<PASSWORD>")

Chapter.create(:name => "Any")<commit_msg>update seed data to correctly create a valid chapter record<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: 'Emanuel', city: cities.first)

# Set up the admin user
user = User.find_or_create_by_first_name_and_last_name_and_email("Awesome", "Admin", "<EMAIL>")
user.update_attribute(:admin, true)
user.update_password("<PASSWORD>")

# Set up the "Any" Chapter
Chapter.find_or_create_by_name("Any", :description => "Any Chapter", :country => COUNTRY_PRIORITY.first)
{'fraction_non_alphanumeric': 0.13069454817027631, 'fraction_numerical': 0.0, 'mean_word_length': 4.75107296137339, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '7406195', 'n_tokens_mistral': 409, 'n_tokens_neox': 403, 'n_words': 135}