<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)
# Environment variables (ENV['...']) can be set in the file .env file.
puts 'ROLES'
YAML.load(ENV['ROLES']).each do |role|
  Role.find_or_create_by(name: role)
  puts 'role: ' << role
end

CATEGORIES = [
  [ "Basic Linux and Shell Utilities", "linux" ],
  [ "Basic Ruby", "ruby" ],
  [ "Intermediate Ruby", "ruby_2" ],
  [ "Basic Rails", "rails" ],
  [ "Intermediate Rails", "rails_2" ],
  [ "Basic Test Engineering", "test" ],
  [ "Intermediate Test Engineering", "test_2" ],
  [ "Basic Data Engineering", "data" ],
  [ "Intermediate Data Engineering", "data_2" ],<commit_msg>fix implicit ordering of courses<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)
# Environment variables (ENV['...']) can be set in the file .env file.
puts 'ROLES'
YAML.load(ENV['ROLES']).each do |role|
  Role.find_or_create_by(name: role)
  puts 'role: ' << role
end

CATEGORIES = [
  [ "Basic Linux and Shell Utilities", "linux" ],
  [ "Basic Ruby", "ruby" ],
  [ "Intermediate Ruby", "ruby_2" ],
  [ "Basic Test Engineering", "test" ],
  [ "Intermediate Test Engineering", "test_2" ],
  [ "Basic Rails", "rails" ],
  [ "Intermediate Rails", "rails_2" ],
  [ "Basic Data Engineering", "data" ],
  [ "Intermediate Data Engineering", "data_2" ],
{'fraction_non_alphanumeric': 0.15881418740074113, 'fraction_numerical': 0.004235044997353097, 'mean_word_length': 4.323943661971831, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '1814019', 'n_tokens_mistral': 631, 'n_tokens_neox': 620, 'n_words': 210}