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

Topic.where(name: "Business").delete_all
topic = Topic.create(name: "Business")

Node.where(name: "Starting a Business").delete_all
node1 = Node.create(name: "Starting a Business", section: topic, uuid:"sab")
ContentBlock.where(body: "Lorem ipsum").delete_all
Node.where(name: "Finding Staff").delete_all
node2 = node1.children.create(name: "Finding Staff", section: topic, uuid:"fs")
node2.content_block = ContentBlock.new(body: "Lorem ipsum", unique_id:"fs_field_body")
node3 = node2.children.create(name: "Types of Employment", section: topic, uuid:"employment")

User.create! email: "<EMAIL>", password: "<PASSWORD>"
<commit_msg>Remove stray references to uuids<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)

Topic.where(name: "Business").delete_all
topic = Topic.create(name: "Business")

Node.where(name: "Starting a Business").delete_all
node1 = Node.create(name: "Starting a Business", section: topic)
ContentBlock.where(body: "Lorem ipsum").delete_all
Node.where(name: "Finding Staff").delete_all
node2 = node1.children.create(name: "Finding Staff", section: topic)
node2.content_block = ContentBlock.new(body: "Lorem ipsum")
node3 = node2.children.create(name: "Types of Employment", section: topic)

User.create! email: "<EMAIL>", password: "<PASSWORD>"

{'fraction_non_alphanumeric': 0.13682092555331993, 'fraction_numerical': 0.006036217303822937, 'mean_word_length': 5.930313588850174, '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': '592694', 'n_tokens_mistral': 620, 'n_tokens_neox': 600, 'n_words': 198}