<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)

users = [
  { username: "Alina", password: "<PASSWORD>"},
  { username: "Anna", password: "<PASSWORD>"},
  { username: "Zack", password: "<PASSWORD>"},
  { username: "George", password: "<PASSWORD>"},
]

posts = [
   { title: "The Web’s Cruft Problem", body: "Blah blah blah blah", user_id: 1, votes: 0},
   { title: "Finnish Defence Forces Cyber Challenge", body: "Blah blah blah blah", user_id: 2, votes: 0},
   { title: "How to learn data science", body: "Blah blah blah blah blah", user_id: 3, votes: 0},
   { title: "Finnish Defence Forces Cyber Challenge", body: "Blah blah blah blah", user_id: 4, votes: 0},
   { title: "Estimate the cost of a Web, iOS or Android app", body: "Blah blah blah blah", user_id: 3, votes: 0},
   { title: "Pyxley: Python Powered Dashboards", body: "blah blah blah", user_id: 3, votes: 0},
   { title: "RethinkDB 2.1 beta: automatic failover with Raft", body: "blah blah blah", user_id: 2, votes: 0}
]

users.each do |user|
  User.create(user)
end

posts.each do |post|
  Post.create(post)
end<commit_msg>add more seed data<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)

users = [
  { username: "Alina", password: "<PASSWORD>"},
  { username: "Anna", password: "<PASSWORD>"},
  { username: "Zack", password: "<PASSWORD>"},
  { username: "George", password: "<PASSWORD>"},
  { username: "Daniel", password: "<PASSWORD>"},
  { username: "Jerry", password: "<PASSWORD>"},
  { username: "Michelle", password: "<PASSWORD>"}
].each { |user| User.create(user) }

posts = [
   { title: "N8VEM – Homebrew Computing Project", body: "Blah blah blah", user_id: 6, votes: 0},
   { title: "OS X Command Line Utilities", body: "Blah blah blah", user_id: 2, votes: 0},
   { title: "The Web’s Cruft Problem", body: "Blah blah blah blah", user_id: 1, votes: 0},
   { title: "Can we ever really know another person?", body: "Blah blah blah", user_id: 7, votes: 0},
   { title: "Finnish Defence Forces Cyber Challenge", body: "Blah blah blah blah", user_id: 5, votes: 0},
   { title: "How to learn data science", body: "Blah blah blah blah blah", user_id: 3, votes: 0},
   { title: "The psychedelic state in light of integrated information theory", body: "Blah blah blah blah", user_id: 4, votes: 0},
   { title: "Diet Advice That Ignores Hunger", body: "Blah blah blah blah", user_id: 1, votes: 0},
   { title: "Estimate the cost of a Web, iOS or Android app", body: "Blah blah blah blah", user_id: 3, votes: 0},
   { title: "Pyxley: Python Powered Dashboards", body: "blah blah blah", user_id: 4, votes: 0},
   { title: "RethinkDB 2.1 beta: automatic failover with Raft", body: "blah blah blah", user_id: 5, votes: 0}
].each { |post| Post.create(post) }

# users.each do |user|
#   User.create(user)
# end

# posts.each do |post|
#   Post.create(post)
# end
{'fraction_non_alphanumeric': 0.15596863200697067, 'fraction_numerical': 0.011908219575951205, 'mean_word_length': 4.364485981308412, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '6043993', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1144, 'n_words': 449}