<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:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)
5.times do |count0|
  teacher = Teacher.create!(city: "Berkeley", email: "<EMAIL>", name: "<NAME>#{count0}", school_name: "UC Berkeley", state: "CA", username: "bob#{count0}", password: "password")
  3.times do |count1|
    classroom = teacher.classrooms.create!(name: "MWF#{count1} #{count1}-#{count1 + 1} PM", class_type: count1.to_s, program: "bizworld")
    12.times do |count2|
      student = classroom.students.create!(first_name: "Eve#{count2}", last_name: "Casey", age: (count0+count1+count2).to_s, gender: "female", ethnicity: "Decline to Respond",
                                           school_name: "Cal Elementary", state: "CA", teacher_name: "<NAME>", grade: 4)
      if count2 % 2 == 0
        student.surveys.create(:survey_type => 'pre', :score => count2 * 2.5)
      end
      if count2 % 3 == 0
        student.surveys.create(:survey_type => 'post', :score => count2 * 3.5)
      end
    end
  end
end<commit_msg>add city_name to seed file<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:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)
5.times do |count0|
  teacher = Teacher.create!(city: "Berkeley", email: "<EMAIL>", name: "<NAME>#{count0}", school_name: "UC Berkeley", state: "CA", username: "bob#{count0}", password: "password")
  3.times do |count1|
    classroom = teacher.classrooms.create!(name: "MWF#{count1} #{count1}-#{count1 + 1} PM", class_type: count1.to_s, program: "bizworld")
    12.times do |count2|
      student = classroom.students.create!(first_name: "Eve#{count2}", last_name: "Casey", age: (count0+count1+count2).to_s, gender: "female", ethnicity: "Decline to Respond",
                                           city_name: "Berkeley", school_name: "Cal Elementary", state: "CA", teacher_name: "<NAME>", grade: 4)
      if count2 % 2 == 0
        student.surveys.create(:survey_type => 'pre', :score => count2 * 2.5)
      end
      if count2 % 3 == 0
        student.surveys.create(:survey_type => 'post', :score => count2 * 3.5)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.15701219512195122, 'fraction_numerical': 0.023628048780487805, 'mean_word_length': 3.597197898423818, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6217963', 'n_tokens_mistral': 873, 'n_tokens_neox': 852, 'n_words': 257}