<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)
User.create!(fname:  "admin",
 						 lname: "user",
 						 email: "<EMAIL>",
 						 password:              "password",
 						 password_confirmation: "password",
 						 admin: true,
 						 activated: true,
						 team_id: 1,
 						 activated_at: Time.zone.now)

Setting.create!(name: "competition_name", value: "HackTheArch", setting_type: "text")
Setting.create!(name: "max_members_per_team", value: "5", setting_type: "text")
Setting.create!(name: "subtract_hint_points_before_solve", value: "true", setting_type: "boolean")
Setting.create!(name: "start_time", value: Time.zone.now.to_s, setting_type: "date")
Setting.create!(name: "end_time", value: (Time.zone.now + 24.hours).to_s, setting_type: "date")

Team.create!(name:  "admins",
 						 passphrase: "password",
 						 bracket_id: "1",
 						 members: "1")

Bracket.create!(id: "1", name: "Professional", priority: "10")
Bracket.create!(id: "2", name: "College", priority: "5")
Bracket.create!(id: "3", name: "High School", priority: "1")

Problem.create!(id: "1",
								name: "Who's that scientist?",
								points: "100",
								category: "Trivia",
								description: "What's the name of the scientist that invented the test to determine the ability of a machine to exhibit intelligent behavior equivalent to, or indistinguishable from, that of a human?",
    						solution: "Alan Turing",
    						correct_message: "Very good!",
    						false_message: "Try again!",
    						hints: "1")

Problem.create!(id: "2",
								name: "<NAME>",
								points: "100",
								category: "Network Exploitation",
								description: "What is the name of the site that indexes varios IoT devices like web cams and ethernet enabled thermostats?"
    						solution: "Shodan",
    						correct_message: "Scary, right!?",
    						false_message: "Try again!")

Hint.create!(id: "1",
						 hint: "The test was named after him",
						 points: "25",
						 priority: "1")<commit_msg>Including missing ','<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)
User.create!(fname:  "admin",
 						 lname: "user",
 						 email: "<EMAIL>",
 						 password:              "password",
 						 password_confirmation: "password",
 						 admin: true,
 						 activated: true,
						 team_id: 1,
 						 activated_at: Time.zone.now)

Setting.create!(name: "competition_name", value: "HackTheArch", setting_type: "text")
Setting.create!(name: "max_members_per_team", value: "5", setting_type: "text")
Setting.create!(name: "subtract_hint_points_before_solve", value: "true", setting_type: "boolean")
Setting.create!(name: "start_time", value: Time.zone.now.to_s, setting_type: "date")
Setting.create!(name: "end_time", value: (Time.zone.now + 24.hours).to_s, setting_type: "date")

Team.create!(name:  "admins",
 						 passphrase: "password",
 						 bracket_id: "1",
 						 members: "1")

Bracket.create!(id: "1", name: "Professional", priority: "10")
Bracket.create!(id: "2", name: "College", priority: "5")
Bracket.create!(id: "3", name: "High School", priority: "1")

Problem.create!(id: "1",
								name: "Who's that scientist?",
								points: "100",
								category: "Trivia",
								description: "What's the name of the scientist that invented the test to determine the ability of a machine to exhibit intelligent behavior equivalent to, or indistinguishable from, that of a human?",
    						solution: "Alan Turing",
    						correct_message: "Very good!",
    						false_message: "Try again!",
    						hints: "1")

Problem.create!(id: "2",
								name: "<NAME>",
								points: "100",
								category: "Network Exploitation",
								description: "What is the name of the site that indexes varios IoT devices like web cams and ethernet enabled thermostats?",
    						solution: "Shodan",
    						correct_message: "Scary, right!?",
    						false_message: "Try again!")

Hint.create!(id: "1",
						 hint: "The test was named after him",
						 points: "25",
						 priority: "1")
{'fraction_non_alphanumeric': 0.14350551113032203, 'fraction_numerical': 0.011238383401772207, 'mean_word_length': 3.3701605288007555, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7604318', 'n_tokens_mistral': 1817, 'n_tokens_neox': 1410, 'n_words': 449}