<commit_before>user_names = ['<NAME>','<NAME>','<NAME>','<NAME>','<NAME>','<NAME>','<NAME>','<NAME>','<NAME>','<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>']

team_names = ['Harm & Hammer', 'Abusement Park','Silver Woogidy Woogidy Woogidy Snakes','<NAME>us','Eduception','Operation Unthinkable','Team Wang','The Carpal Tunnel Crusaders','Pwn Depot']

badge_names = ['Dream Interpreter', 'Inner Eye', 'Patronus Producer','Cheerful Charmer','Invisiblity Cloak','Marauders Map','Lumos','Rune Reader','Tea Leaf Guru','Wizard Chess Grand Master','Green Thumb','Gamekeeper','Seeker','Alchemist','Healer','Parseltongue','House Cup']

badge_icons = ['/badges/above_and_beyond.png','/badges/always_learning.png','/badges/awesome_aggregator.png','/badges/concentrator.png','/badges/courageous_failure.png','/badges/early_bird_special.png','/badges/examination_expert.png','/badges/gaining_experience.png','/badges/gamer.png','/badges/great_critic.png','/badges/learning_from_mistakes.png','/badges/level_one.png','/badges/participatory_democrat.png','/badges/personal.png','/badges/practice_makes_perfect.png','/badges/presentation_of_self.png','/badges/public_speaker.png']

grade_scheme_hash = { [0,600000] => 'F', [600000,649000] => 'D+', [650000,699999] => 'C-', [700000,749999] => 'C', [750000,799999] => 'C+', [800000,849999] => 'B-', [850000,899999] => 'B', [900000,949999] => 'B+', [950000,999999] => 'A-', [100000,1244999] => 'A', [1245000,1600000] => 'A+'}

# Generate sample courses
course = Course.create! do |c|
  c.name = "Videogames & Learning"
  c.courseno = "ED222"
  c.year = Date.today.year
  c.semester = "Winter"
  c.total_assignment_weight = 6
  c.max_assignment_weight = 6
  c.default_assignment_weight = 1
  c.max_group_size = 3
  c.min_group_size = 5
  c.team_setting = true
  c.teams_visible = true
  c.group_setting = true
  c.badge_setting = true
  c.badge_use_scope = "Both"
  c.shared_badges = true
  c.badges_value = false
  c.accepts_submissions = true
  c.predictor_setting = true
  c.graph_display = false
end
puts "Videogames and Learning has been installed"

teams = team_names.map do |team_name|
  course.teams.create! do |t|
    t.name = team_name
  end
end
puts "The Team Competition has begun!"

# Generate sample students
students = user_names.map do |name|
  first_name, last_name = name.split(' ')
  username = name.parameterize.sub('-','.')
  User.create! do |u|
    u.username = username
    u.first_name = first_name
    u.last_name = last_name
    u.email = <EMAIL>"
    u.password = '<PASSWORD>'
    u.courses << course
  end
end
puts "Generated #{students.count} unruly students"

# Generate sample admin
User.create! do |u|
  u.username = 'albus'
  u.first_name = 'Albus'
  u.last_name = 'Dumbledore'
  u.role = 'admin'
  u.email = '<EMAIL>'
  u.password = '<PASSWORD>'
  u.courses << course
end
puts "Albus Dumbledore just apparated into Hogwarts"

# Generate sample professor
User.create! do |u|
  u.username = 'severus'
  u.first_name = 'Severus'
  u.last_name = 'Snape'
  u.role = 'professor'
  u.email = '<EMAIL>'
  u.password = '<PASSWORD>'
  u.courses << course
end
puts "<NAME> has been spotted in Slytherin House"

# Generate sample GSI
students << User.create! do |u|
  u.username = 'percy.weasley'
  u.first_name = 'Percy'
  u.last_name = 'Weasley'
  u.role = 'gsi'
  u.email = '<EMAIL>'
  u.password = '<PASSWORD>'
  u.courses << course
end
puts "<NAME> has arrived on campus, on time as usual"

assignment_types = {}

#Generate badge set
badge_set = course.badge_sets.create! do |bs|
  bs.name = "Hogwarts Most Officially Official Badge Set"
end
puts "Awards may now be given!"

assignment_types[:badge] = AssignmentType.create! do |at|
  at.course = course
  at.name = "Badges"
  at.point_setting = "Individually"
  at.points_predictor_display = "Fixed"
  at.resubmission = true
  at.max_value = "60000"
  at.predictor_description = "Badges Badges Everywhere"
  at.save 
  badges = badge_names.map do |badge_name|
    at.assignments.create! do |b|
      b.name = badge_name
      b.point_total = 100 * rand(10)
      b.icon = badge_icons.sample
      b.visible = true
      b.type = "Badge"
      b.grade_scope = "Individual"
    end
  end
puts "Did someone need motivation? We found these badges in the Room of Requirements..."
end<commit_msg>Removed assignment type from badges in the sample data<commit_after>user_names = ['<NAME>','<NAME>','<NAME>','<NAME>','<NAME>','<NAME>','<NAME>','<NAME>','<NAME>','<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>']

team_names = ['Harm & Hammer', 'Abusement Park','Silver Woogidy Woogidy Woogidy Snakes','<NAME>','Eduception','Operation Unthinkable','Team Wang','The Carpal Tunnel Crusaders','Pwn Depot']

badge_names = ['Dream Interpreter', 'Inner Eye', 'Patronus Producer','Cheerful Charmer','Invisiblity Cloak','Marauders Map','Lumos','Rune Reader','Tea Leaf Guru','Wizard Chess Grand Master','Green Thumb','Gamekeeper','Seeker','Alchemist','Healer','Parseltongue','House Cup']

badge_icons = ['/badges/above_and_beyond.png','/badges/always_learning.png','/badges/awesome_aggregator.png','/badges/concentrator.png','/badges/courageous_failure.png','/badges/early_bird_special.png','/badges/examination_expert.png','/badges/gaining_experience.png','/badges/gamer.png','/badges/great_critic.png','/badges/learning_from_mistakes.png','/badges/level_one.png','/badges/participatory_democrat.png','/badges/personal.png','/badges/practice_makes_perfect.png','/badges/presentation_of_self.png','/badges/public_speaker.png']

grade_scheme_hash = { [0,600000] => 'F', [600000,649000] => 'D+', [650000,699999] => 'C-', [700000,749999] => 'C', [750000,799999] => 'C+', [800000,849999] => 'B-', [850000,899999] => 'B', [900000,949999] => 'B+', [950000,999999] => 'A-', [100000,1244999] => 'A', [1245000,1600000] => 'A+'}

# Generate sample courses
course = Course.create! do |c|
  c.name = "Videogames & Learning"
  c.courseno = "ED222"
  c.year = Date.today.year
  c.semester = "Winter"
  c.total_assignment_weight = 6
  c.max_assignment_weight = 6
  c.default_assignment_weight = 1
  c.max_group_size = 3
  c.min_group_size = 5
  c.team_setting = true
  c.teams_visible = true
  c.group_setting = true
  c.badge_setting = true
  c.badge_use_scope = "Both"
  c.shared_badges = true
  c.badges_value = false
  c.accepts_submissions = true
  c.predictor_setting = true
  c.graph_display = false
end
puts "Videogames and Learning has been installed"

teams = team_names.map do |team_name|
  course.teams.create! do |t|
    t.name = team_name
  end
end
puts "The Team Competition has begun!"

# Generate sample students
students = user_names.map do |name|
  first_name, last_name = name.split(' ')
  username = name.parameterize.sub('-','.')
  User.create! do |u|
    u.username = username
    u.first_name = first_name
    u.last_name = last_name
    u.email = <EMAIL>"
    u.password = '<PASSWORD>'
    u.courses << course
  end
end
puts "Generated #{students.count} unruly students"

# Generate sample admin
User.create! do |u|
  u.username = 'albus'
  u.first_name = 'Albus'
  u.last_name = 'Dumbledore'
  u.role = 'admin'
  u.email = '<EMAIL>'
  u.password = '<PASSWORD>'
  u.courses << course
end
puts "<NAME> just apparated into Hogwarts"

# Generate sample professor
User.create! do |u|
  u.username = 'severus'
  u.first_name = 'Severus'
  u.last_name = 'Snape'
  u.role = 'professor'
  u.email = '<EMAIL>'
  u.password = '<PASSWORD>'
  u.courses << course
end
puts "<NAME> has been spotted in Slytherin House"

# Generate sample GSI
students << User.create! do |u|
  u.username = 'percy.weasley'
  u.first_name = 'Percy'
  u.last_name = 'Weasley'
  u.role = 'gsi'
  u.email = '<EMAIL>'
  u.password = '<PASSWORD>'
  u.courses << course
end
puts "Percy Weasley has arrived on campus, on time as usual"

assignment_types = {}

#Generate badge set
badge_set = course.badge_sets.create! do |bs|
  bs.name = "Hogwarts Most Officially Official Badge Set"
end
puts "Awards may now be given!"

badges = badge_names.map do |badge_name|
  badge_set.badges.create! do |b|
    b.name = badge_name
    b.point_total = 100 * rand(10)
    b.icon = badge_icons.sample
    b.visible = true
    b.grade_scope = "Individual"
  end
end
puts "Did someone need motivation? We found these badges in the Room of Requirements..."
{'fraction_non_alphanumeric': 0.16334134615384616, 'fraction_numerical': 0.03497596153846154, 'mean_word_length': 4.603367003367003, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 77, 'https://': 0, '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': '1818968', 'n_tokens_mistral': 3378, 'n_tokens_neox': 3111, 'n_words': 661}