<commit_before>FactoryBot.define do

  factory :overturned_ico_sar,
          aliases: [:ot_ico_sar_noff_unassigned],
          class: Case::OverturnedICO::SAR do
    transient do
      creation_time   { Time.now }
      # creation_time   { 4.business_days.ago }
      identifier      { "unassigned overturned ico sar" }
    end

    message                         { identifier }
    current_state                   { 'unassigned' }
    sequence(:ico_reference)        { |n| "ICO-SAR-1234-#{n}" }
    original_ico_appeal             { create :ico_sar_case }
    original_case                   { create :sar_case }
    received_date                   { Date.yesterday }
    internal_deadline               { 10.days.from_now }
    external_deadline               { 20.days.from_now }
    escalation_deadline             { 3.days.from_now }
    reply_method                    { 'send_by_email' }
    email                           { '<EMAIL>' }
  end

  factory :awaiting_responder_ot_ico_sar,<commit_msg>CT-1912 set creation_date back to 4.business_days.ago<commit_after>FactoryBot.define do

  factory :overturned_ico_sar,
          aliases: [:ot_ico_sar_noff_unassigned],
          class: Case::OverturnedICO::SAR do
    transient do
      creation_time   { 4.business_days.ago }
      identifier      { "unassigned overturned ico sar" }
    end

    message                         { identifier }
    current_state                   { 'unassigned' }
    sequence(:ico_reference)        { |n| "ICO-SAR-1234-#{n}" }
    original_ico_appeal             { create :ico_sar_case }
    original_case                   { create :sar_case }
    received_date                   { Date.yesterday }
    internal_deadline               { 10.days.from_now }
    external_deadline               { 20.days.from_now }
    escalation_deadline             { 3.days.from_now }
    reply_method                    { 'send_by_email' }
    email                           { '<EMAIL>' }
  end

  factory :awaiting_responder_ot_ico_sar,
{'fraction_non_alphanumeric': 0.08081308874566187, 'fraction_numerical': 0.012394645513138325, 'mean_word_length': 1.665785997357992, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6256225', 'n_tokens_mistral': 644, 'n_tokens_neox': 592, 'n_words': 100}