<commit_before>require 'faker'

namespace :db do
  desc "Seeds racers"
  task seed_race: :environment do
    race = Race.create!(name: Faker::DcComics.villain, date: (DateTime.now + 1.day), registration_threshold: (DateTime.now + 1.day))
    category = Category.create!(name: Faker::DcComics.hero, race: race)
    (1..30).to_a.each do |index|
      name = Faker::DcComics.name
      racer = Racer.create!(
        first_name: name.split[0],
        last_name: name.split[1],
        phone_number: Faker::PhoneNumber.cell_phone,
        email: Faker::Internet.email
      )
      start_number = StartNumber.create!(value: index, race: race)
      RaceResult.create!(race: race, racer: racer, category: category, start_number: start_number)
    end
  end
end<commit_msg>Add two categories<commit_after>require 'faker'

namespace :db do
  desc "Seeds racers"
  task seed_race: :environment do
    race = Race.create!(name: Faker::DcComics.villain, date: (DateTime.now + 1.day), registration_threshold: (DateTime.now + 1.day))
    c_one = Category.create!(name: Faker::DcComics.hero, race: race)
    c_two = Category.create!(name: Faker::DcComics.hero, race: race)
    (1..30).to_a.each do |index|
      name = Faker::DcComics.name
      racer = Racer.create!(
        first_name: name.split[0],
        last_name: name.split[1],
        phone_number: Faker::PhoneNumber.cell_phone,
        email: Faker::Internet.email
      )
      start_number = StartNumber.create!(value: index, race: race)
      RaceResult.create!(race: race, racer: racer, category: (index % 2).zero? ? c_one : c_two, start_number: start_number)
    end
  end
end
{'fraction_non_alphanumeric': 0.1323529411764706, 'fraction_numerical': 0.009191176470588236, 'mean_word_length': 3.536111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2838565', 'n_tokens_mistral': 570, 'n_tokens_neox': 556, 'n_words': 123}