<commit_before>## Creates a massive color table
#
# Run app:factory:students before
#
# 1 suite
# 40 evaluations belonging to the suite
# All students become participants in the suite
# Random result for all students in all evaluations

instance = Instance.order("id asc").first

puts "Suite"
suite = Suite.new do |s|
  s.name     = "Massive color table"
  s.instance = instance
end

puts "Evaluations"
evaluations = ((Date.today - 39.days)..(Date.today)).collect do |date|
  print "."
  Evaluation.create!({
    suite:         suite,
    date:          date,
    type:          "suite",
    name:          "Test #{date}",
    description:   "",
    target:        "all",
    category_list: "",
    max_result:    "8",
    yellow_min:    "3",
    yellow_max:    "5",
    red_min:       "0",
    red_max:       "2",
    green_min:     "6",
    green_max:     "8",
    stanine1_min:  "0",
    stanine1_max:  "0",
    stanine2_min:  "1",
    stanine2_max:  "1",
    stanine3_min:  "2",
    stanine3_max:  "2",
    stanine4_min:  "3",
    stanine4_max:  "3",
    stanine5_min:  "4",<commit_msg>Updated the seed after automatic result setting<commit_after>## Creates a massive color table
#
# Run app:factory:students before
#
# 1 suite
# 40 evaluations belonging to the suite
# All students become participants in the suite
# Random result for all students in all evaluations

instance = Instance.order("id asc").first

puts "Suite"
suite = Suite.new do |s|
  s.name     = "Massive color table"
  s.instance = instance
end

puts "Evaluations"
evaluations = ((Date.today)..(Date.today + 39.days)).collect do |date|
  print "."
  Evaluation.create!({
    suite:         suite,
    date:          date,
    type:          "suite",
    name:          "Test #{date}",
    description:   "",
    target:        "all",
    category_list: "",
    max_result:    "8",
    yellow_min:    "3",
    yellow_max:    "5",
    red_min:       "0",
    red_max:       "2",
    green_min:     "6",
    green_max:     "8",
    stanine1_min:  "0",
    stanine1_max:  "0",
    stanine2_min:  "1",
    stanine2_max:  "1",
    stanine3_min:  "2",
    stanine3_max:  "2",
    stanine4_min:  "3",
    stanine4_max:  "3",
    stanine5_min:  "4",
{'fraction_non_alphanumeric': 0.13459801264679314, 'fraction_numerical': 0.02710027100271003, 'mean_word_length': 2.428792569659443, 'pattern_counts': {'":': 0, '<': 3, '<?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': '497649', 'n_tokens_mistral': 797, 'n_tokens_neox': 776, 'n_words': 209}