<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:
Project.delete_all
ProjectSet.delete_all
Lesson.delete_all

# Supplies

supplies = %w(pencils markers construction\ paper scissors glue magazines)
supplies = supplies.map { |supply| SupplyItem.find_or_create_by(name: supply) }

superhero = ProjectSet.where(title: 'Superheroes').first_or_create({ 
  unit_number: 1,
  unit: "Basic Lines",
  inspiration_image: "superhero.jpg",
})

superhero_attrs = {
  synopsis: "Student artists learn to recognize shapes and types of line as they design and draw their own superheroes.  They begin by creating a book that tells the backstory of their superhero using their choice of drawing/writing/or a combination. They then move on to isolating graphic images into basic curved lines and using a handout to copy disparate parts of a superhero into their own unique character. They create this silhouette onto their final paper which will become the cover to their book. They learn about how costumes and details are another way of telling parts of the story, and they add to their superhero. They finish by completing their superheroes with pan watercolors.",
   skills: "Artists will be able to develop a backstory for their superhero and create with this story in mind, recognize, isolate, and copy line in a graphic image, add details to their character that help to tell the story they have developed, & show competence in using and controlling watercolor paint.",
  books_media: "Optional (for early finishers): 5-Minute Marvel Stories, old comics (check with a local comic book shop and ask for the comics that they typically throw away—many will sell in bulk or give away for free)."
}

superhero.lower.update_attributs(superhero_attrs)
superhero.upper.update_attributes(superhero_attrs)
# Lessons

upper_lesson = superhero.upper.lessons.where(title: 'Creating a Backstory').first_or_create({
    video_uri: "https://vimeo.com/140998863",
    synopsis: "In this lesson, artists are introduced to the basic characteristics of superheroes, as well as understanding that each superhero had his or her own unique backstory that told who they were, where they came from, and why or how they became a superhero. Student artists are tasked to brainstorm their own superhero and to generate a backstory for said character by creating a small book and using any combination of writing and drawing to document their superhero’s history. They leave the cover blank for the upcoming lessons.",

    objective: "SWBAT use multi-media to create and illustrate a narrative that explains their superhero’s backstory.",

    set_up: "Students will be working individually and choosing their own materials, so have materials set up in a way that is easy to pass out as well as easy for the student artists to see and select from."
})

upper_lesson.supply_items.concat(supplies)
upper_lesson.save!

lower_lesson = upper_lesson.dup
lower_lesson.supply_items.concat(supplies)
lower_lesson.update_attributes({
  project_id: superhero.lower.id,
  video_uri: 'https://vimeo.com/140998518'
})


# Symbol Unit 
symbol = ProjectSet.where(title: 'Symbol & Self').first_or_create({ 
  unit_number: 2,
  unit: "Complex Line",
  inspiration_image: "symbol_self.jpg",
  description: "Need desc.",
  skills_description: "Need Skills",
  books_media: "Books here"
})

# House Lesson
house = ProjectSet.where(title: 'Dream House').first_or_create({ 
  unit_number: 3,
  unit: "Observation Drawing",
  inspiration_image: "dream_home.jpg",
  description: "Need desc.",
  skills_description: "Need Skills",
  books_media: "Books here"
})


# Members
Member.where(first_name: "Tempest").first_or_create({
  last_name: "Neucollins",
  bio: "<NAME> is originally from Solon, Iowa. She moved to Portland, Oregon to study at Pacific Northwest College of Art for her BFA, then went on to New York City to receive an MFA from the School of Visual Arts in Studio Art. After graduating she worked for many non-profit organizations around New York City that provide an arts education to students in underserved communities, including TimeIn! and Free Arts NYC . Eventually she was asked to found and run an arts program at a Brooklyn based charter school, which she did for two years before founding Doodles Academy.  Tempest continues to make her own artwork, design lessons for Doodles Academy as well as act as Executive Director. Her lesson plans have been recognized and published in SchoolArts Magazine.",
  position: "Fingerpaint Expert",
  role: "board",
  avatar_url: ""
})

Member.where(first_name: "Alex").first_or_create({
  last_name: "Hunley",
  bio: "Alex is amazing.",
  position: "Crayon Ninja",
  role: "volunteer"
})

Member.where(first_name: "RJ").first_or_create({
  last_name: "Sheperd",
  bio: "<NAME> hails from sunny San Diego, where most of his childhood was spent indoors working on robots with his friends. Since attending UC Berkeley for Mechanical Engineering, he has always in search of new ways to promote social change through technology, his chief concern being education. RJ is very excited to be working with the Doodles Academy team to make art education accessible to everyone.",<commit_msg>Modified Seed to be consistent with mgirations<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:
Project.delete_all
ProjectSet.delete_all
Lesson.delete_all

# Supplies

supplies = %w(pencils markers construction\ paper scissors glue magazines)
supplies = supplies.map { |supply| SupplyItem.find_or_create_by(name: supply) }

superhero = ProjectSet.where(title: 'Superheroes').first_or_create({ 
  unit_number: 1,
  unit: "Basic Lines",
  inspiration_image: "superhero.jpg",
})

superhero_attrs = {
  synopsis: "Student artists learn to recognize shapes and types of line as they design and draw their own superheroes.  They begin by creating a book that tells the backstory of their superhero using their choice of drawing/writing/or a combination. They then move on to isolating graphic images into basic curved lines and using a handout to copy disparate parts of a superhero into their own unique character. They create this silhouette onto their final paper which will become the cover to their book. They learn about how costumes and details are another way of telling parts of the story, and they add to their superhero. They finish by completing their superheroes with pan watercolors.",
   skills: "Artists will be able to develop a backstory for their superhero and create with this story in mind, recognize, isolate, and copy line in a graphic image, add details to their character that help to tell the story they have developed, & show competence in using and controlling watercolor paint.",
  books_media: "Optional (for early finishers): 5-Minute Marvel Stories, old comics (check with a local comic book shop and ask for the comics that they typically throw away—many will sell in bulk or give away for free)."
}

superhero.lower.update_attributes(superhero_attrs)
superhero.upper.update_attributes(superhero_attrs)
# Lessons

upper_lesson = superhero.upper.lessons.where(title: 'Creating a Backstory').first_or_create({
    video_uri: "https://vimeo.com/140998863",
    synopsis: "In this lesson, artists are introduced to the basic characteristics of superheroes, as well as understanding that each superhero had his or her own unique backstory that told who they were, where they came from, and why or how they became a superhero. Student artists are tasked to brainstorm their own superhero and to generate a backstory for said character by creating a small book and using any combination of writing and drawing to document their superhero’s history. They leave the cover blank for the upcoming lessons.",

    objective: "SWBAT use multi-media to create and illustrate a narrative that explains their superhero’s backstory.",

    setup: "Students will be working individually and choosing their own materials, so have materials set up in a way that is easy to pass out as well as easy for the student artists to see and select from."
})

upper_lesson.supply_items.concat(supplies)
upper_lesson.save!

lower_lesson = upper_lesson.dup
lower_lesson.supply_items.concat(supplies)
lower_lesson.update_attributes({
  project_id: superhero.lower.id,
  video_uri: 'https://vimeo.com/140998518'
})


# Symbol Unit 
symbol = ProjectSet.where(title: 'Symbol & Self').first_or_create({ 
  unit_number: 2,
  unit: "Complex Line",
  inspiration_image: "symbol_self.jpg"
})

# House Lesson
house = ProjectSet.where(title: 'Dream House').first_or_create({ 
  unit_number: 3,
  unit: "Observation Drawing",
  inspiration_image: "dream_home.jpg"
})


# Members
Member.where(first_name: "Tempest").first_or_create({
  last_name: "Neucollins",
  bio: "<NAME> is originally from Solon, Iowa. She moved to Portland, Oregon to study at Pacific Northwest College of Art for her BFA, then went on to New York City to receive an MFA from the School of Visual Arts in Studio Art. After graduating she worked for many non-profit organizations around New York City that provide an arts education to students in underserved communities, including TimeIn! and Free Arts NYC . Eventually she was asked to found and run an arts program at a Brooklyn based charter school, which she did for two years before founding Doodles Academy.  Tempest continues to make her own artwork, design lessons for Doodles Academy as well as act as Executive Director. Her lesson plans have been recognized and published in SchoolArts Magazine.",
  position: "Fingerpaint Expert",
  role: "board",
  avatar_url: ""
})

Member.where(first_name: "Alex").first_or_create({
  last_name: "Hunley",
  bio: "Alex is amazing.",
  position: "Crayon Ninja",
  role: "volunteer"
})

Member.where(first_name: "RJ").first_or_create({
  last_name: "Sheperd",
  bio: "<NAME> hails from sunny San Diego, where most of his childhood was spent indoors working on robots with his friends. Since attending UC Berkeley for Mechanical Engineering, he has always in search of new ways to promote social change through technology, his chief concern being education. RJ is very excited to be working with the Doodles Academy team to make art education accessible to everyone.",
{'fraction_non_alphanumeric': 0.06423495973472287, 'fraction_numerical': 0.004168640454760777, 'mean_word_length': 4.9403489026449074, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '1112023', 'n_tokens_mistral': 2858, 'n_tokens_neox': 2734, 'n_words': 1369}