<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 rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
#   movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
#   Character.create(name: 'Luke', movie: movies.first)<commit_msg>added seed for heroku deploy<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 rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
#   movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
#   Character.create(name: 'Luke', movie: movies.first)

Post.destroy_all
User.destroy_all

person1 = User.create({name: "Person 1", current_city: "San Francisco", email: "<EMAIL>", password: "password"})
person2 = User.create({name: "Person 2", current_city: "New York", email: "<EMAIL>", password: "password"})
person3 = User.create({name: "Person 3", current_city: "Los Angeles", email: "<EMAIL>", password: ""})

posta = Post.create({title: "Post A", body: "Post A content"})
postb = Post.create({title: "Post B", body: "Post B content"})
postc = Post.create({title: "Post C", body: "Post C content"})
postd = Post.create({title: "Post D", body: "Post D content"})
poste = Post.create({title: "Post E", body: "Post E content"})
postf = Post.create({title: "Post F", body: "Post F content"})

person1.posts << posta
person2.posts << postb
person2.posts << postc
person3.posts << postd
person3.posts << poste
person3.posts << postf
{'fraction_non_alphanumeric': 0.15014836795252226, 'fraction_numerical': 0.007121661721068249, 'mean_word_length': 5.153284671532846, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 6, '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': '2099637', 'n_tokens_mistral': 527, 'n_tokens_neox': 508, 'n_words': 199}