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

5.times do
  post_submission_date = Faker::Time.between(DateTime.now, DateTime.now + 7)
  Post.create(
    title: Faker::Company.catch_phrase,
    content: Faker::Hipster.paragraph(2, false, 2),
    created_at: post_submission_date,
    )
  User.create(
    name: Faker::Internet.user_name,
    email: Faker::Internet.email,
    password: Faker::Internet.password(8)
    )
  Comment.create(content: Faker::Hipster.sentence)
end

counter = 1

Post.all.each do |post|
  user = User.find(counter)
  post.author = user
  post.save
  user.save
  counter += 1
end

User.create(username: 'admin', email: '<EMAIL>', password: '<PASSWORD>')
{'fraction_non_alphanumeric': 0.1270878721859114, 'fraction_numerical': 0.005083514887436456, 'mean_word_length': 4.32046332046332, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4061573', 'n_tokens_mistral': 453, 'n_tokens_neox': 442, 'n_words': 139}