<commit_before><commit_msg>TTPLAT-114 Setting existing ULBs with null to have 0. I believe this is the desired outcome based on comments in the ticket.<commit_after>class UpdateTamPerformanceMetricWithNullUlb < ActiveRecord::DataMigration
  def up
    tam_performance_metrics = TamPerformanceMetric.where(useful_life_benchmark: nil)

    tam_performance_metrics.each { |tpm|
      tpm.useful_life_benchmark = 0;
      tpm.save
    }

  end
end
{'fraction_non_alphanumeric': 0.05869074492099323, 'fraction_numerical': 0.011286681715575621, 'mean_word_length': 4.6923076923076925, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3754245', 'n_tokens_mistral': 142, 'n_tokens_neox': 132, 'n_words': 36}