<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)
Call.destroy_all
Case.destroy_all
Patient.destroy_all

10.times do |i|
  Patient.create({name: "Patient #{i}", primary_phone: "123-123-123#{i}"})
end

patients = Patient.all

patients.each do |patient|
  if(patient[-1].even?) then
    flag = true
  else
    flag = false
  end
  patient.cases.create({last_menstrual_period_time: DateTime.new(2016,1,1), urgent_flag: flag})
end<commit_msg>fix alternating urgency<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)
Call.destroy_all
Case.destroy_all
Patient.destroy_all

10.times do |i|
  Patient.create({name: "Patient #{i}", primary_phone: "123-123-123#{i}"})
end

patients = Patient.all

patients.each do |patient|
  if(patient.name[-1, 1].to_i.even?) then
    flag = true
  else
    flag = false
  end
  patient.cases.create({last_menstrual_period_time: DateTime.new(2016,1,1), urgent_flag: flag})
end
{'fraction_non_alphanumeric': 0.13003300330033005, 'fraction_numerical': 0.02442244224422442, 'mean_word_length': 4.614814814814815, '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': '166414', 'n_tokens_mistral': 532, 'n_tokens_neox': 496, 'n_words': 154}