<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)
admins = [
      { :name => "EnrollMe", :email => "<EMAIL>", :superadmin => true},
      { :name => "<NAME>", :email => "<EMAIL>", :superadmin => false},
      { :name => "<NAME>", :email => "<EMAIL>", :superadmin => false}
  ]

Admin.delete_all
admins.each do |a|
  Admin.create!(a)
end

# users = [
#   {:name => "user1", :email=>"<EMAIL>", :team_id => "10" , :major=> "DECLARED CS/EECS Major", :sid=>001, :waitlisted=> "Yes"},
#   {:name => "user2", :email=>"<EMAIL>", :team_id => "10" , :major=> "DECLARED CS/EECS Major", :sid=>002, :waitlisted=> "Yes"},
#   {:name => "user3", :email=>"<EMAIL>", :team_id => "10" , :major=> "DECLARED CS/EECS Major", :sid=>003, :waitlisted=> "Yes"},
#   {:name => "user4", :email=>"<EMAIL>", :team_id => "10" , :major=> "DECLARED CS/EECS Major", :sid=>004, :waitlisted=> "Yes"},
#   {:name => "user5", :email=>"<EMAIL>", :team_id => "10" , :major=> "DECLARED CS/EECS Major", :sid=>005, :waitlisted=> "Yes"},
#   {:name => "user7", :email=>"<EMAIL>", :team_id => "10" , :major=> "DECLARED CS/EECS Major", :sid=>007, :waitlisted=> "Yes"}
#   ]
  
# users.each do |user|
#   User.create!(user)
# end


Option.delete_all
Option.create!(
  :minimum_team_size => 3,
  :maximum_team_size => 3
  )

# Below is all of my Test Seeds - George

User.delete_all
Team.delete_all

users = [
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 123456, :team_id =>, nil :time_commitment=>20},
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 1234567, :team_id =>, 1:time_commitment=> 30},
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 123453, :team_id =>, 2:time_commitment=> 40},
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 123454, :team_id => 3, :time_commitment=> 50},
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 153456, :team_id => 3, :time_commitment=>10},
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 123756, :team_id => 3,  :time_commitment=>15},
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 1238556, :team_id => 3, :time_commitment=>20},
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 123446, :team_id => 3,  :time_commitment=>100},
  {:name => "Aladdin", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 193456, :team_id => 3, :time_commitment=>55},
  ]
  
  team1 = Team.create!(:passcode => Team.generate_hash, :approved => false, :submitted => false)
  team2 = Team.create!(:passcode => Team.generate_hash, :approved => false, :submitted => false)
  team3 = Team.create!(:passcode => Team.generate_hash, :approved => false, :submitted => false)

requests = [
]

counter = 0

users.each do |u|
  current_user = User.create!(u)
  if counter < 2
    team1.users << current_user
    current_user.team = team1
    counter += 1
  elsif counter < 5
    team2.users << current_user
    current_user.team = team2
    counter += 1
  elsif counter < 9
    team3.users << current_user
    current_user.team = team3
    counter += 1
  end
end<commit_msg>changed seeds to not have id's<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)
admins = [
      { :name => "EnrollMe", :email => "<EMAIL>", :superadmin => true},
      { :name => "<NAME>", :email => "<EMAIL>", :superadmin => false},
      { :name => "<NAME>", :email => "<EMAIL>", :superadmin => false}
  ]

Admin.delete_all
admins.each do |a|
  Admin.create!(a)
end

# users = [
#   {:name => "user1", :email=>"<EMAIL>", :team_id => "10" , :major=> "DECLARED CS/EECS Major", :sid=>001, :waitlisted=> "Yes"},
#   {:name => "user2", :email=>"<EMAIL>", :team_id => "10" , :major=> "DECLARED CS/EECS Major", :sid=>002, :waitlisted=> "Yes"},
#   {:name => "user3", :email=>"<EMAIL>", :team_id => "10" , :major=> "DECLARED CS/EECS Major", :sid=>003, :waitlisted=> "Yes"},
#   {:name => "user4", :email=>"<EMAIL>", :team_id => "10" , :major=> "DECLARED CS/EECS Major", :sid=>004, :waitlisted=> "Yes"},
#   {:name => "user5", :email=>"<EMAIL>", :team_id => "10" , :major=> "DECLARED CS/EECS Major", :sid=>005, :waitlisted=> "Yes"},
#   {:name => "user7", :email=>"<EMAIL>", :team_id => "10" , :major=> "DECLARED CS/EECS Major", :sid=>007, :waitlisted=> "Yes"}
#   ]
  
# users.each do |user|
#   User.create!(user)
# end


Option.delete_all
Option.create!(
  :minimum_team_size => 3,
  :maximum_team_size => 3
  )

# Below is all of my Test Seeds - George

User.delete_all
Team.delete_all

users = [
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 123456, :time_commitment=>20},
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 1234567, :time_commitment=> 30},
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 123453, :time_commitment=> 40},
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 123454, :time_commitment=> 50},
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 153456, :time_commitment=>10},
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 123756, :time_commitment=>15},
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 1238556, :time_commitment=>20},
  {:name => "<NAME>", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 123446, :time_commitment=>100},
  {:name => "Aladdin", :email => "<EMAIL>", :major => 'DECLARED CS/EECS Major', :waitlisted => 'true', :sid => 193456, :time_commitment=>55},
  ]
  
  team1 = Team.create!(:passcode => Team.generate_hash, :approved => false, :submitted => false)
  team2 = Team.create!(:passcode => Team.generate_hash, :approved => false, :submitted => false)
  team3 = Team.create!(:passcode => Team.generate_hash, :approved => false, :submitted => false)

requests = [
]

counter = 0

users.each do |u|
  current_user = User.create!(u)
  if counter < 2
    team1.users << current_user
    current_user.team = team1
    counter += 1
  elsif counter < 5
    team2.users << current_user
    current_user.team = team2
    counter += 1
  elsif counter < 9
    team3.users << current_user
    current_user.team = team3
    counter += 1
  end

end
{'fraction_non_alphanumeric': 0.22704664605457722, 'fraction_numerical': 0.03575749428686652, 'mean_word_length': 4.478645066273932, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 288, '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': '2672743', 'n_tokens_mistral': 2888, 'n_tokens_neox': 2732, 'n_words': 708}