<commit_before>require 'open-uri'

User.delete_all
Group.delete_all
Challenge.delete_all
Comment.delete_all
Participation.delete_all
Membership.delete_all

# Users with photos

alana = User.create!(username: 'alana', password: 'password', email: '<EMAIL>')
alana.image = open('https://github.com/tomorrow-lauren/lauren-doodle/blob/master/jpg/alana.jpg?raw=true')
alana.save

marshall = User.create!(username: 'marshall', password: 'password', email: '<EMAIL>')
marshall.image = open('https://github.com/tomorrow-lauren/lauren-doodle/blob/master/jpg/marshall.jpg?raw=true')
marshall.save

mike = User.create!(username: 'mike', password: 'password', email: '<EMAIL>')
mike.image = open('https://github.com/tomorrow-lauren/lauren-doodle/blob/master/jpg/mike.jpg?raw=true')
mike.save

lauren = User.create!(username: 'lauren', password: 'password', email: '<EMAIL>')
lauren.image = open('https://github.com/tomorrow-lauren/lauren-doodle/blob/master/jpg/lauren.jpg')
lauren.save

# Users without photos
mom = User.create!(username: 'mom', password: 'password', email: '<EMAIL>')
dad = User.create!(username: 'dad', password: 'password', email: '<EMAIL>')
jim = User.create!(username: 'jim', password: 'password', email: '<EMAIL>')
dan = User.create!(username: 'dan', password: 'password', email: '<EMAIL>')
sabri = User.create!(username: 'sabri', password: 'password', email: '<EMAIL>')
tiffany = User.create!(username: 'tiffany', password: 'password', email: 'tiff<EMAIL>')
eddie = User.create!(username: 'eddie', password: 'password', email: '<EMAIL>')
james = User.create!(username: 'james', password: 'password', email: '<EMAIL>')
meagan = User.create!(username: 'meagan', password: 'password', email: '<EMAIL>')
tyler = User.create!(username: 'tyler', password: 'password', email: '<EMAIL>')
ray = User.create!(username: 'ray', password: 'password', email: '<EMAIL>')
catie = User.create!(username: 'catie', password: 'password', email: '<EMAIL>')

group = marshall.created_groups.create(name: 'Team Grouvie')
group2 = mike.created_groups.create(name: 'Squirrels')
group3 = alana.created_groups.create(name: 'Speed Racers')
group4 = marshall.created_groups.create(name: 'HS Friends')
group5 = lauren.created_groups.create(name: 'La Familia')
group6 = alana.created_groups.create(name: 'College')

group.members << [alana, marshall, mike, lauren]
group2.members << [alana, marshall, lauren, mike, dan, sabri, tiffany, catie, eddie, jim, james, tyler, ray, meagan]
group3.members << [marshall, alana, lauren, sabri, tiffany]
group4.members << [alana, marshall, mike, lauren]
group5.members << [alana, marshall, mike, mom, dad]
group6.members << [mike, alana, lauren, dan, tiffany]

challenge = group.challenges.create!(name: 'Build an App', description: 'Create an app using Rails and React Native to help its users reach goals / take selfies', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 03, 20))
challenge2 = group.challenges.create!(name: 'Learn React Native', description: 'Dive into the docs and learn all there is to know!', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 03, 20))
challenge3 = group.challenges.create!(name: 'Create seed data', description: 'Make data to help test your new app.', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 03, 20))
challenge4 = group.challenges.create!(name: 'Demo App!', description: 'Show your creation to the world.', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 03, 20))

challenge5 = group2.challenges.create!(name: 'Graduate', description: 'But stay in touch.', start_date: Date.new(2016, 1, 18), end_date: Date.new(2016, 03, 25))
challenge6 = group2.challenges.create!(name: 'Do a donut crawl', description: 'Heart donuts', start_date: Date.new(2016, 3, 18), end_date: Date.new(2016, 03, 20))
challenge7 = group2.challenges.create!(name: 'Perfect the fast-to-slow clap', description: 'And then add to resume skills.', start_date: Date.new(2016, 3, 10), end_date: Date.new(2017, 03, 10))
challenge8 = group2.challenges.create!(name: 'Vacuum the ROR', description: 'Vacuum the entire room and the chairs', start_date: Date.new(2016, 3, 15), end_date: Date.new(2016, 03, 25))

challenge9 = group3.challenges.create!(name: 'Run 3 times this week', description: 'Take a run of 20+ minutes 3 times this week', start_date: Date.new(2016, 3, 16), end_date: Date.new(2016, 03, 23))
challenge10 = group3.challenges.create!(name: 'Swim 100 laps in the pool', description: 'Get fit', start_date: Date.new(2016, 3, 16), end_date: Date.new(2016, 03, 23))
challenge11 = group3.challenges.create!(name: 'Get 100,000 steps on pedometer this week', description: 'Walk a lot', start_date: Date.new(2016, 3, 15), end_date: Date.new(2016, 03, 22))

challenge12 = group4.challenges.create!(name: 'Book tickets to France', description: 'Prices will go up', start_date: Date.new(2016, 3, 01), end_date: Date.new(2016, 05, 01))
challenge13 = group4.challenges.create!(name: 'Reserve Pat Green tickets', description: 'Theyre going to sell out', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 03, 31))
challenge14 = group4.challenges.create!(name: 'Read the 2nd chapter of that book', description: 'And then add to resume skills.', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 03, 20))
challenge15 = group4.challenges.create!(name: 'Fill out common app', description: 'Its almost due', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 04, 01))

challenge16 = group5.challenges.create!(name: 'Get your flu shot', description: 'It actually matters.', start_date: Date.new(2016, 3, 13), end_date: Date.new(2016, 03, 20))
challenge17 = group5.challenges.create!(name: 'Call Grandma this week', description: 'She would really appreciate it', start_date: Date.new(2016, 3, 15), end_date: Date.new(2016, 03, 21))
challenge18 = group5.challenges.create!(name: 'Share a funny picture this week!', description: 'Stay in touch yall', start_date: Date.new(2016, 3, 14), end_date: Date.new(2016, 03, 21))
challenge19 = group5.challenges.create!(name: 'Clean up the bathroom', description: 'It is gross.', start_date: Date.new(2016, 3, 17), end_date: Date.new(2016, 03, 19))

challenge20 = group6.challenges.create!(name: 'Vote in your primary', description: 'It actually matters.', start_date: Date.new(2016, 2, 10), end_date: Date.new(2016, 05, 18))
challenge21 = group6.challenges.create!(name: 'Sign up for Soccer', description: 'Just do it', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 03, 31))


challenge.participants << [alana, marshall, mike, lauren]
challenge2.participants << [alana, marshall, mike, lauren]
challenge3.participants << [lauren, alana, mike, marshall]
challenge4.participants << [alana, mike, marshall, lauren]

challenge5.participants << [alana, mike, marshall, dan, sabri, tiffany, lauren, ray, catie, meagan, jim, james, tyler, eddie]
challenge6.participants << [lauren, dan, sabri, tiffany, mike]
challenge7.participants << [marshall, alana, lauren, sabri, tiffany]
challenge8.participants << [alana, marshall, lauren, tiffany]

challenge9.participants << [alana, marshall, lauren, sabri]
challenge10.participants << [lauren, alana, marshall, tiffany]
challenge11.participants << [alana, tiffany, sabri]

challenge12.participants << [alana, mike]
challenge13.participants << [marshall, lauren]
challenge14.participants << [marshall, alana, lauren]
challenge15.participants << [alana, marshall, mike, lauren]

challenge16.participants << [alana, marshall, mom, dad]
challenge17.participants << [mom, dad, marshall, mike]
challenge18.participants << [alana, mike, mom]
challenge19.participants << [dad, mike, marshall]

challenge20.participants << [mike, alana, lauren]
challenge21.participants << [dan, alana, lauren]

alana.comments.create!(group: group, content: 'these docs are so confusing!')
marshall.comments.create!(group: group, content: "Is it friday yet?")
lauren.comments.create!(group: group, content: "Errors amiright?")<commit_msg>change up seeds<commit_after>require 'open-uri'

User.delete_all
Group.delete_all
Challenge.delete_all
Comment.delete_all
Participation.delete_all
Membership.delete_all

# Users with photos

alana = User.create!(username: 'alana', password: 'password', email: '<EMAIL>')
alana.image = open('https://github.com/tomorrow-lauren/lauren-doodle/blob/master/jpg/alana.jpg?raw=true')
alana.save

marshall = User.create!(username: 'marshall', password: 'password', email: '<EMAIL>')
marshall.image = open('https://github.com/tomorrow-lauren/lauren-doodle/blob/master/jpg/marshall.jpg?raw=true')
marshall.save

mike = User.create!(username: 'mike', password: 'password', email: '<EMAIL>')
mike.image = open('https://github.com/tomorrow-lauren/lauren-doodle/blob/master/jpg/mike.jpg?raw=true')
mike.save

lauren = User.create!(username: 'lauren', password: 'password', email: '<EMAIL>')
lauren.image = open('https://github.com/tomorrow-lauren/lauren-doodle/blob/master/jpg/lauren.jpg')
lauren.save

# Users without photos
mom = User.create!(username: 'mom', password: 'password', email: '<EMAIL>')
dad = User.create!(username: 'dad', password: 'password', email: '<EMAIL>')
jim = User.create!(username: 'jim', password: 'password', email: '<EMAIL>')
dan = User.create!(username: 'dan', password: 'password', email: '<EMAIL>')
sabri = User.create!(username: 'sabri', password: 'password', email: '<EMAIL>')
tiffany = User.create!(username: 'tiffany', password: 'password', email: '<EMAIL>')
eddie = User.create!(username: 'eddie', password: 'password', email: '<EMAIL>')
james = User.create!(username: 'james', password: 'password', email: '<EMAIL>')
meagan = User.create!(username: 'meagan', password: 'password', email: '<EMAIL>')
tyler = User.create!(username: 'tyler', password: 'password', email: '<EMAIL>')
ray = User.create!(username: 'ray', password: 'password', email: '<EMAIL>')
catie = User.create!(username: 'catie', password: 'password', email: '<EMAIL>')

group = marshall.created_groups.create(name: 'Team Grouvie')
group2 = mike.created_groups.create(name: 'Squirrels')
group3 = alana.created_groups.create(name: 'Speed Racers')
group4 = marshall.created_groups.create(name: 'HS Friends')
group5 = lauren.created_groups.create(name: 'La Familia')
group6 = alana.created_groups.create(name: 'College')

group.members << [alana, marshall, mike, lauren]
group2.members << [alana, marshall, lauren, mike, dan, sabri, tiffany, catie, eddie, jim, james, tyler, ray, meagan]
group3.members << [marshall, alana, lauren, sabri, tiffany]
group4.members << [alana, marshall, mike, lauren]
group5.members << [alana, marshall, mike, mom, dad]
group6.members << [mike, alana, lauren, dan, tiffany]


challenge1 = group.challenges.create!(name: 'Learn React Native', description: 'Dive into the docs and learn all there is to know!', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 03, 20))
challenge2 = group.challenges.create!(name: 'Build an App', description: 'Create an app using Rails and React Native to help its users reach goals / take selfies', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 03, 20))
challenge3 = group.challenges.create!(name: 'Perfect the fast-to-slow clap', description: 'And then add to resume skills.', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 03, 20))
challenge4 = group2.challenges.create!(name: 'Vacuum the ROR', description: 'Vacuum the entire room and the chairs', start_date: Date.new(2016, 3, 15), end_date: Date.new(2016, 03, 25))
challenge5 = group.challenges.create!(name: 'Demo App!', description: 'Show your creation to the masses.', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 03, 20))

challenge6 = group2.challenges.create!(name: 'Graduate', description: 'But stay in touch.', start_date: Date.new(2016, 1, 18), end_date: Date.new(2016, 03, 25))
challenge7 = group2.challenges.create!(name: 'Do a donut crawl', description: 'Heart donuts', start_date: Date.new(2016, 3, 18), end_date: Date.new(2016, 03, 20))
challenge8 = group2.challenges.create!(name: 'Perfect the fast-to-slow clap', description: 'And then add to resume skills.', start_date: Date.new(2016, 3, 10), end_date: Date.new(2017, 03, 10))


challenge9 = group3.challenges.create!(name: 'Run 3 times this week', description: 'Take a run of 20+ minutes 3 times this week', start_date: Date.new(2016, 3, 16), end_date: Date.new(2016, 03, 23))
challenge10 = group3.challenges.create!(name: 'Swim 100 laps in the pool', description: 'Get fit', start_date: Date.new(2016, 3, 16), end_date: Date.new(2016, 03, 23))
challenge11 = group3.challenges.create!(name: 'Get 100,000 steps on pedometer this week', description: 'Walk a lot', start_date: Date.new(2016, 3, 15), end_date: Date.new(2016, 03, 22))

challenge12 = group4.challenges.create!(name: 'Book tickets to France', description: 'Prices will go up', start_date: Date.new(2016, 3, 01), end_date: Date.new(2016, 05, 01))
challenge13 = group4.challenges.create!(name: 'Reserve Pat Green tickets', description: 'Theyre going to sell out', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 03, 31))
challenge14 = group4.challenges.create!(name: 'Read the 2nd chapter of that book', description: 'And then add to resume skills.', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 03, 20))
challenge15 = group4.challenges.create!(name: 'Fill out common app', description: 'Its almost due', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 04, 01))

challenge16 = group5.challenges.create!(name: 'Get your flu shot', description: 'It actually matters.', start_date: Date.new(2016, 3, 13), end_date: Date.new(2016, 03, 20))
challenge17 = group5.challenges.create!(name: 'Call Grandma this week', description: 'She would really appreciate it', start_date: Date.new(2016, 3, 15), end_date: Date.new(2016, 03, 21))
challenge18 = group5.challenges.create!(name: 'Share a funny picture this week!', description: 'Stay in touch yall', start_date: Date.new(2016, 3, 14), end_date: Date.new(2016, 03, 21))
challenge19 = group5.challenges.create!(name: 'Clean up the bathroom', description: 'It is gross.', start_date: Date.new(2016, 3, 17), end_date: Date.new(2016, 03, 19))

challenge20 = group6.challenges.create!(name: 'Vote in your primary', description: 'It actually matters.', start_date: Date.new(2016, 2, 10), end_date: Date.new(2016, 05, 18))
challenge21 = group6.challenges.create!(name: 'Sign up for Soccer', description: 'Just do it', start_date: Date.new(2016, 3, 10), end_date: Date.new(2016, 03, 31))


challenge1.participants << [alana, marshall, mike, lauren]
challenge2.participants << [lauren, marshall, mike, alana]
challenge3.participants << [lauren, alana, mike]
challenge4.participants << [alana, mike]

challenge5.participants << [alana, mike, marshall, lauren]
challenge6.participants << [lauren, dan, sabri, tiffany, mike]
challenge7.participants << [marshall, alana, lauren, sabri, tiffany]
challenge8.participants << [alana, marshall, lauren, tiffany]

challenge9.participants << [alana, marshall, lauren, sabri]
challenge10.participants << [lauren, alana, marshall, tiffany]
challenge11.participants << [alana, tiffany, sabri]

challenge12.participants << [alana, mike]
challenge13.participants << [marshall, lauren]
challenge14.participants << [marshall, alana, lauren]
challenge15.participants << [alana, marshall, mike, lauren]

challenge16.participants << [alana, marshall, mom, dad]
challenge17.participants << [mom, dad, marshall, mike]
challenge18.participants << [alana, mike, mom]
challenge19.participants << [dad, mike, marshall]

challenge20.participants << [mike, alana, lauren]
challenge21.participants << [dan, alana, lauren]

alana.comments.create!(group: group, content: 'these docs are so confusing!')
marshall.comments.create!(group: group, content: "Is it friday yet?")
lauren.comments.create!(group: group, content: "Errors amiright?")
{'fraction_non_alphanumeric': 0.16064130776485383, 'fraction_numerical': 0.05293932725558, 'mean_word_length': 6.394700139470014, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 35, 'https://': 8, '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': '2163817', 'n_tokens_mistral': 6284, 'n_tokens_neox': 5326, 'n_words': 1509}