<commit_before>class Call

  FORMAT = %w{call_id call_tag origin_id language skill extension caller_id hungup called_at mailbox queued_at hungup_at dispatched_at}
           .map(&:to_sym)

  attr_accessor *FORMAT


  def handle_message
    add_customer_history_entry(nil, mailbox)
    puts "#{Time.now.utc} :: Add mailbox entry for #{call_id}."
  end


  def prefetch_crmuser_tickets
    return unless (cust = fetch_or_create_customer caller_id)
    cid = cust.crmuser_id
<commit_msg>remove hungup in favour of hungup_at<commit_after>class Call

  FORMAT = %w{call_id call_tag origin_id language skill extension caller_id called_at mailbox queued_at hungup_at dispatched_at}
           .map(&:to_sym)

  attr_accessor *FORMAT


  def handle_message
    add_customer_history_entry(nil, mailbox)
    puts "#{Time.now.utc} :: Add mailbox entry for #{call_id}."
  end


  def prefetch_crmuser_tickets
    return unless (cust = fetch_or_create_customer caller_id)
    cid = cust.crmuser_id

{'fraction_non_alphanumeric': 0.06896551724137931, 'fraction_numerical': 0.0, 'mean_word_length': 4.222222222222222, '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': '854489', 'n_tokens_mistral': 348, 'n_tokens_neox': 331, 'n_words': 84}