<commit_before>require 'csv'  

# seed universities
university = University.create(name: "University of California, Berkeley")
University.create(name: "University of Southern California")
University.create(name: "Stanford University")


# seed courses
# university.courses.create(department: "ESPM", course_number: "50AC", year: "2015", semester: "FALL")
# university.courses.create(department: "CS", course_number: "70", year: "2015", semester: "FALL")
# university.courses.create(department: "PE", course_number: "101", year: "2015", semester: "FALL")
# university.courses.create(department: "UGBA", course_number: "102A", year: "2015", semester: "FALL")
# university.courses.create(department: "ESPM", course_number: "50AC", year: "2015", semester: "SPRING")

# CSV.foreach(File.path('spring_16_classes.csv')) do |row|
#   if row[0] != "department"
#     university.courses.create(department: row[0], course_number: row[1], year: "2016", semester: "SPRING")
#   end
# end

# seed me
User.create(first_name: "Ryan", last_name: "Au", email: "<EMAIL>", phone: "6265005826", password: "<PASSWORD>", university_id: 1)

# seed phone
Phone.create(number: "+15102963497")

# seed users
# 10.times do
#   User.create(first_name: Faker::Name.first_name, last_name: Faker::Name.last_name, email: Faker::Internet.email, phone: Faker::Number.number(10), password: "<PASSWORD>", university_id: 1)
# end

# seed posts
# conditions = ['New', 'Like New', 'Good', 'Fair']
# (1..100).each do |id|
#   post = Post.create(seller_id: Faker::Number.between(0, 10), course_id: Faker::Number.between(0, 3000), pickup: Faker::Address.country, price: Faker::Number.between(15, 100), title: Faker::Commerce.product_name, description: 'its good', condition: conditions.shuffle.first, picture_url: "https://www.petfinder.com/wp-content/uploads/2012/11/140272627-grooming-needs-senior-cat-632x475.jpg")
# end
<commit_msg>update seed<commit_after>require 'csv'  

# seed universities
university = University.create(name: "University of California, Berkeley")
University.create(name: "University of Southern California")
University.create(name: "Stanford University")


# seed courses
university.courses.create(department: "CS", course_number: "70", year: "2016", semester: "SPRING")
university.courses.create(department: "PE", course_number: "101", year: "2016", semester: "SPRING")
university.courses.create(department: "UGBA", course_number: "102A", year: "2016", semester: "SPRING")
university.courses.create(department: "ESPM", course_number: "50AC", year: "2016", semester: "SPRING")

# CSV.foreach(File.path('spring_16_classes.csv')) do |row|
#   if row[0] != "department"
#     university.courses.create(department: row[0], course_number: row[1], year: "2016", semester: "SPRING")
#   end
# end

# seed me
User.create(first_name: "Ryan", last_name: "Au", email: "<EMAIL>", phone: "6265<PASSWORD>", password: "<PASSWORD>", university_id: 1)

# seed phone
Phone.create(number: "+15102963497")

# seed users
# 10.times do
#   User.create(first_name: Faker::Name.first_name, last_name: Faker::Name.last_name, email: Faker::Internet.email, phone: Faker::Number.number(10), password: "<PASSWORD>", university_id: 1)
# end

# seed posts
# conditions = ['New', 'Like New', 'Good', 'Fair']
# (1..100).each do |id|
#   post = Post.create(seller_id: Faker::Number.between(0, 10), course_id: Faker::Number.between(0, 3000), pickup: Faker::Address.country, price: Faker::Number.between(15, 100), title: Faker::Commerce.product_name, description: 'its good', condition: conditions.shuffle.first, picture_url: "https://www.petfinder.com/wp-content/uploads/2012/11/140272627-grooming-needs-senior-cat-632x475.jpg")
# end

{'fraction_non_alphanumeric': 0.17540048873201194, 'fraction_numerical': 0.054303556882975834, 'mean_word_length': 6.691022964509394, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3979206', 'n_tokens_mistral': 1427, 'n_tokens_neox': 1248, 'n_words': 281}