<commit_before>categories_list = ["bedding", "bathing & changing", "car seats", "carriers", "clothing", "feeding", "furniture", "maternity", "pushchairs", "toys"]

categories_list.each do |category|
    Category.find_or_create_by(name: category)
end<commit_msg>Adds seed data for users, items and itemusers.<commit_after>categories_list = ["bedding", "bathing & changing", "car seats", "carriers", "clothing", "feeding", "furniture", "maternity", "pushchairs", "toys"]

categories_list.each do |category|
    Category.find_or_create_by(name: category)
end

@user1 = User.create(email: "<EMAIL>", password: "password")
@user2 = User.create(email: "<EMAIL>", password: "<PASSWORD>")
@user3 = User.create(email: "<EMAIL>", password: "<PASSWORD>")

@item1 = Item.create(title: "2 X 700 ml bottle", description: "Brand new green Mam bottles with stage 1 teats.", category_id: 5)
@item2 = Item.create(title: "Cardigan 12-18 months", description: "Blue cotton cardigan in good condition.", category_id: 4)
@item3 = Item.create(title: "Infant car seat", description: "Black Maxi-cose infant car seat. Hasn't been in any accident.", category_id: 2)

ItemUser.create(user_id: @user1.id, item_id: @item1.id)
ItemUser.create(user_id: @user2.id, item_id: @item2.id)
ItemUser.create(user_id: @user3.id, item_id: @item3.id)
{'fraction_non_alphanumeric': 0.1628440366972477, 'fraction_numerical': 0.01834862385321101, 'mean_word_length': 6.654970760233918, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '2911536', 'n_tokens_mistral': 458, 'n_tokens_neox': 441, 'n_words': 122}