<commit_before>searches = Category.create(name: "Searches")

Question.create(
  title: "Egg Drop",
  prompt: "There is a building of 100 floors. If an egg drops from the Nth floor or above, it will break. If it's dropped from any floor below, it will not break. You're given two eggs. Find N, while minimizing the number of drops, while minimizing the number of drops for the worst case.",
  category_id: searches.id
)

data_structs = Category.create(name: "Data Structures")

min_stack = Question.create(
  title: "The Min Stack",
  prompt: "How would you design a stack which, in addition to push and pop, also has a function min which returns the minimum element? Push, pop, and min should all operate in O(1) time.",
  category_id: data_structs.id
)

user = User.create(username: "janedoe", cohort: "fiddler crabs", password: "<PASSWORD>", email:"<EMAIL>")

answer = min_stack.answers.create(prose: "Lorem ipsum dolor + vini vidi vici == yolo", user_id: user.id)

answer.votes.create(user_id: user.id)<commit_msg>Build seed data.<commit_after>searches = Category.create(name: "Searches")

Question.create(
  title: "Egg Drop",
  prompt: "There is a building of 100 floors. If an egg drops from the Nth floor or above, it will break. If it's dropped from any floor below, it will not break. You're given two eggs. Find N, while minimizing the number of drops, while minimizing the number of drops for the worst case.",
  category_id: searches.id
)

data_structs = Category.create(name: "Data Structures")

min_stack = Question.create(
  title: "The Min Stack",
  prompt: "How would you design a stack which, in addition to push and pop, also has a function min which returns the minimum element? Push, pop, and min should all operate in O(1) time.",
  category_id: data_structs.id
)

user = User.create(username: "janedoe",password: "<PASSWORD>", email:"<EMAIL>")

answer = min_stack.answers.create(prose: "Lorem ipsum dolor + vini vidi vici == yolo", user_id: user.id)

answer.votes.create(user_id: user.id)

Cohort.create(name: "Eastern Moose")
Cohort.create(name: "Squirrel")
Cohort.create(name: "Rock Doves")
Cohort.create(name: "Roccoons")

3.times do
  User.create(username: Faker::Name.name, email:Faker::Internet.email, cohort_id: 1, password: "<PASSWORD>")
  User.create(username: Faker::Name.name, email:Faker::Internet.email, cohort_id: 2, password: "<PASSWORD>")
  User.create(username: Faker::Name.name, email:Faker::Internet.email, cohort_id: 3, password: "<PASSWORD>")
end

9.times do|id|

  Answer.create(user_id: id, question_id:1, code:Faker::Lorem.sentences, prose: Faker::Lorem.sentences)
  Answer.create(user_id: id, question_id:2, code:Faker::Lorem.sentences, prose: Faker::Lorem.sentences)
end
{'fraction_non_alphanumeric': 0.1210003677822729, 'fraction_numerical': 0.005516734093416698, 'mean_word_length': 5.238532110091743, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7094140', 'n_tokens_mistral': 922, 'n_tokens_neox': 886, 'n_words': 308}