<commit_before>class FakeIntervention

  def initialize(student)
    @student = student
    @start_date = Date.new(
      (2010..2015).to_a.sample,
      (1..12).to_a.sample,
      (1..28).to_a.sample
    )
    @educator = Educator.first_or_create!
    @intervention_type = InterventionType.all.sample
  end

  def next
    {
      start_date: @start_date,
      end_date: @start_date + (152..365).to_a.sample.days,
      educator_id: @educator.id,
      intervention_type_id: @intervention_type.id,
      student_id: @student.id
    }
  end

end
<commit_msg>Update fake Intervention to look like ATP w/ number of hours<commit_after>class FakeIntervention

  def initialize(student)
    @student = student
    @start_date = Date.new(
      (2010..2015).to_a.sample,
      (1..12).to_a.sample,
      (1..28).to_a.sample
    )
    @educator = Educator.first_or_create!
    @intervention_type = InterventionType.atp
  end

  def next
    {
      start_date: @start_date,
      end_date: @start_date + (152..365).to_a.sample.days,
      educator_id: @educator.id,
      intervention_type_id: @intervention_type.id,
      student_id: @student.id,
      number_of_hours: rand(0..40)
    }
  end

end

{'fraction_non_alphanumeric': 0.11725293132328309, 'fraction_numerical': 0.036013400335008376, 'mean_word_length': 2.722741433021807, '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': '2263541', 'n_tokens_mistral': 462, 'n_tokens_neox': 426, 'n_words': 74}