<commit_before>

20.times do
  User.create(
      email: Faker::Internet.email,
      hashed_password: "password"
    )
end

users = User.all

50.times do
  question = Question.create(
    title: Faker::Hacker.noun,
    body_text: Faker::Hacker.say_something_smart,
    user_id: users.sample.id,
    img_path: ""
    )
  question.votes.create(user_id: users.sample.id, value: [-1,1].sample)
  3.times do
    question.comments.create(user_id: users.sample.id, text: Faker::Lorem.sentence)
  end
end

questions = Question.all

100.times do
  answer = Answer.create(
    text: Faker::Hacker.say_something_smart,
    user_id: users.sample.id,
    question_id: questions.sample.id
    )
  answer.votes.create(user_id: users.sample.id, value: [-1,1].sample)
  3.times do
    answer.comments.create(user_id: users.sample.id, text: Faker::Lorem.sentence)
  end
end

<commit_msg>Creates users (from each decade) and a few questions for the seed file.<commit_after>User.create(
  email: 'root@',
  hashed_password: "<PASSWORD>")

User.create(
  email: '<EMAIL>',
  hashed_password: "password")

User.create(
  email: '<EMAIL>',
  hashed_password: "password")

User.create(
  email: '<EMAIL>',
  hashed_password: "password")

User.create(
  email: '<EMAIL>',
  hashed_password: "password")

User.create(
  email: '<EMAIL>',
  hashed_password: "password")

User.create(
  email: '<EMAIL>',
  hashed_password: "password")

User.create(
  email: '<EMAIL>',
  hashed_password: "password")

User.create(
  email: '<EMAIL>',
  hashed_password: "password")

User.create(
  email: '<EMAIL>',
  hashed_password: "password")

User.create(
  email: '<EMAIL>',
  hashed_password: "password")


users = User.all


question = Question.create(
  title: "Which 1900's decade was the BEST 90's, 80's, 70's, 60's?!!?!",
  body_text: "I think the 90's was the best because it just totally was!",
  user_id: 2,
  img_path: "https://pbs.twimg.com/profile_images/508349190372478976/4p6IuWR6.png"
  )
question.votes.create(user_id: users.sample.id, value: [-1,1].sample)

question = Question.create(
  title: "Where do I find DUNKAROOS?!",
  body_text: "I think the 90's was the best because it just totally was!",
  user_id: 6,
  img_path: "http://vignette4.wikia.nocookie.net/the-foods-we-loved/images/1/1a/100.jpg/revision/latest?cb=20130821212831"
  )
question.votes.create(user_id: users.sample.id, value: [-1,1].sample)

question = Question.create(
  title: "What time should I stop feeding my Gremlin?",
  body_text: "My stupid furby turns into a gremlin if I feed him too late. PLEASE HELP!",
  user_id: 4,
  img_path: "http://nme.assets.ipccdn.co.uk/images/2015Gremlins_GettyImages-163067748261115.article_x4.jpg"
  )
question.votes.create(user_id: users.sample.id, value: [-1,1].sample)

questions = Question.all

answer = Answer.create(
    text: Faker::Hacker.say_something_smart,
    user_id: users.sample.id,
    question_id: questions.sample.id
    )

  answer.votes.create(user_id: users.sample.id, value: [-1,1].sample)

  answer.comments.create(user_id: users.sample.id, text: Faker::Lorem.sentence)
{'fraction_non_alphanumeric': 0.1466104443723646, 'fraction_numerical': 0.03276029841063899, 'mean_word_length': 4.235993208828523, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 1, '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': '2424363', 'n_tokens_mistral': 1217, 'n_tokens_neox': 1150, 'n_words': 243}