<commit_before>User.delete_all
Team.delete_all
Game.delete_all
Round.delete_all
RoundType.delete_all
Turn.delete_all

20.times do |n|
  user = User.create!(  display_name: Faker::GameOfThrones.character,
                        email: Faker::Internet.email,
                        password: 'password' )
end

5.times do |n|
  game = Game.new(  name: "#{Faker::StarWars.droid}#{rand(100..999)}" )
  game.creator = User.all.sample
  game.save!
  5.times do
    user = User.all.sample
    if !game.participants.exists?(user)
      game.participants << user
    end
  end
end

# Otter Game

kim = User.create!( display_name: 'kim',
                    email: '<EMAIL>',
                    password: 'password' )
katherine = User.create!( display_name: 'katherine',
                    email: '<EMAIL>',
                    password: 'password' )
justin = User.create!( display_name: 'justin',
                    email: '<EMAIL>',
                    password: 'password' )
pat = User.create!( display_name: 'pat',
                    email: '<EMAIL>',
                    password: 'password' )

game = Game.new(name: 'Otters')
game.creator = pat
game.participants << [kim, katherine, justin, pat]
game.save
<commit_msg>Update seed to include turns<commit_after>User.delete_all
Team.delete_all
Game.delete_all
Round.delete_all
RoundType.delete_all
Turn.delete_all

20.times do |n|
  user = User.create!(  display_name: Faker::GameOfThrones.character,
                        email: Faker::Internet.email,
                        password: 'password' )
end

5.times do |n|
  game = Game.new(  name: "#{Faker::StarWars.droid}#{rand(100..999)}" )
  game.creator = User.all.sample
  game.save!
  5.times do
    user = User.all.sample
    if !game.participants.exists?(user)
      game.participants << user
    end
  end
end

# Otter Game

kim = User.create!( display_name: 'kim',
                    email: '<EMAIL>',
                    password: 'password' )
katherine = User.create!( display_name: 'katherine',
                    email: '<EMAIL>',
                    password: 'password' )
justin = User.create!( display_name: 'justin',
                    email: '<EMAIL>',
                    password: 'password' )
pat = User.create!( display_name: 'pat',
                    email: '<EMAIL>',
                    password: 'password' )

game = Game.new(name: 'Otters')
game.creator = pat
game.participants << [kim, katherine, justin, pat]
game.save

Turn.create!(player: pat, round: game.rounds.first)
Turn.create!(player: kim, round: game.rounds.first)
Turn.create!(player: katherine, round: game.rounds.first)
Turn.create!(player: justin, round: game.rounds.first)

{'fraction_non_alphanumeric': 0.1355297641332834, 'fraction_numerical': 0.007487832272557095, 'mean_word_length': 2.35678391959799, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 11, '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': '5120234', 'n_tokens_mistral': 871, 'n_tokens_neox': 836, 'n_words': 188}