<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)<commit_msg>Write seeds for users, questions, answers, and comments<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)

nicola = User.create(name: "nicola_dbc", email: "<EMAIL>", password: "password")
luis = User.create(name: "luis_dbc", email: "<EMAIL>", password: "password")
zach = User.create(name: "zach_dbc", email: "<EMAIL>", password: "password")
jeff = User.create(name: "jeff_dbc", email: "<EMAIL>", password: "password")

rails_q = Question.create(title: "How do I build a Rails app?", content: "Wondering how to do this", user: nicola)
sinatra_q =Question.create(title: "How do I build a Sinatra app?", content: "Wondering how to do this", user: luis)
mvc_q = Question.create(title: "What is MVC?", content: "design patterns, yo", user: zach)
css_q = Question.create(title: "What are the best CSS styles?", content: "Should I style things?", user: jeff)

answer = Answer.create(content:"It's super easy just follow the rails guide.", user: luis, question: rails_q)
Answer.create(content:"Just ask someone from phase 2.", user: jeff, question: sinatra_q)
Answer.create(content:"Use the sinatra gem and make restful routes.", user: luis, question: sinatra_q)
Answer.create(content:"Model, view, controller, duh.", user: nicola, question: mvc_q)

Comment.create(content:"Can you explain what you mean by that?", commentable_type: "Question", commentable_id: rails_q.id, user: luis)
Comment.create(content:"I don't understand the question", commentable_type: "Question", commentable_id: css_q.id, user: nicola)
Comment.create(content:"This is a great answer.", commentable_type: "Answer", commentable_id: answer.id, user: jeff)
Comment.create(content:"This should be voted best answer for sure.", commentable_type: "Answer", commentable_id: answer.id, user: zach)
{'fraction_non_alphanumeric': 0.13481298808055897, 'fraction_numerical': 0.0004110152075626798, 'mean_word_length': 5.856338028169014, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5784111', 'n_tokens_mistral': 760, 'n_tokens_neox': 736, 'n_words': 279}