<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:
#

flatiron = Community.create(name: "Flatiron School", latitude: 40.705397, longitude: -74.013924)

sophies = flatiron.restaurants.create(name: "Sophie's", category: "Cuban", yelp_url: "http://www.yelp.com/biz/sophies-cuban-cuisine-new-york-8", address: "73 New St")
chipotle = flatiron.restaurants.create(name: "Chipotle", category: "Mexican", yelp_url: "http://www.yelp.com/biz/chipotle-mexican-grill-new-york-30", address: "2 Broadway")
flavors = flatiron.restaurants.create(name: "Flavors", category: "Salad/Sandwiches", yelp_url: "http://www.yelp.com/biz/flavors-new-york", address: "27 Whitehall St")

brandon = flatiron.members.create(name: "<NAME>")
peter = flatiron.members.create(name: "<NAME>")
jess = flatiron.members.create(name: "<NAME>")
simon = flatiron.members.create(name: "<NAME>")
<commit_msg>Better 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:
#

flatiron = Community.create(name: "Flatiron School", latitude: 40.705397, longitude: -74.013924)

sophies = flatiron.restaurants.create(name: "Sophie's", category: "Cuban", yelp_url: "http://www.yelp.com/biz/sophies-cuban-cuisine-new-york-8", address: "73 New St")
chipotle = flatiron.restaurants.create(name: "Chipotle", category: "Mexican", yelp_url: "http://www.yelp.com/biz/chipotle-mexican-grill-new-york-30", address: "2 Broadway")
flavors = flatiron.restaurants.create(name: "Flavors", category: "Salad/Sandwiches", yelp_url: "http://www.yelp.com/biz/flavors-new-york", address: "27 Whitehall St")

brandon = flatiron.members.create(name: "<NAME>", email: "<EMAIL>", password: "<PASSWORD>", password_confirmation: "<PASSWORD>")
peter = flatiron.members.create(name: "<NAME>", email: "<EMAIL>", password: "<PASSWORD>", password_confirmation: "<PASSWORD>")
jess = flatiron.members.create(name: "<NAME>", email: "<EMAIL>", password: "<PASSWORD>", password_confirmation: "<PASSWORD>")
simon = flatiron.members.create(name: "<NAME>", email: "<EMAIL>", password: "<PASSWORD>", password_confirmation: "<PASSWORD>")

brandon.reviews.create(restaurant: sophies, rating: 5.0, text: "I would give it a 5.")
brandon.reviews.create(restaurant: chipotle, rating: 3.5, text: "I like it alright.")
brandon.reviews.create(restaurant: flavors, rating: 4.0, text: "I like Flavors.  They have quinoa.")

brandon.reviews.create(restaurant: sophies, rating: 4.2, text: "A little sketched out by the meat.")
brandon.reviews.create(restaurant: flavors, rating: 3.8, text: "My fallback lunch place.")

jess.reviews.create(restaurant: chipotle, rating: 4.0, text: "Sometimes you just gotta go to Chipotle.")

simon.reviews.create(restaurant: chipotle, rating: 4.0, text: "They're super annoying (what's it called?).  Oh, the sneeze guard.  Assholes.")
{'fraction_non_alphanumeric': 0.16005121638924455, 'fraction_numerical': 0.020166453265044813, 'mean_word_length': 5.913716814159292, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '166410', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1060, 'n_words': 283}