<commit_before>module Renalware
  log '--------------------Adding Pathology Request Algorithm Patient Rules --------------------'

  file_path = File.join(default_path, 'pathology_request_algorithm_patient_rules.csv')

  logcount=0
  CSV.foreach(file_path, headers: true) do |row|
    logcount += 1
    Pathology::RequestAlgorithm::PatientRule.find_or_create_by!(
      lab: row["lab"],
      test_description: row["test_description"],
      sample_number_bottles: row["sample_number_bottles"],
      sample_type: row["sample_type"],
      frequency: row["frequency"],
      patient_id: row["patient_id"],
      last_tested_at: row["last_tested_at"],
      start_date: row["start_date"],
      end_date: row["end_date"]<commit_msg>fix db seeds for patient_rules<commit_after>module Renalware
  log '--------------------Adding Pathology Request Algorithm Patient Rules --------------------'

  file_path = File.join(default_path, 'pathology_request_algorithm_patient_rules.csv')

  logcount=0
  CSV.foreach(file_path, headers: true) do |row|
    logcount += 1
    Pathology::RequestAlgorithm::PatientRule.find_or_create_by!(
      lab: row["lab"],
      test_description: row["test_description"],
      sample_number_bottles: row["sample_number_bottles"],
      sample_type: row["sample_type"],
      frequency: row["frequency"],
      patient_id: row["patient_id"],
      last_observed_at: row["last_observed_at"],
      start_date: row["start_date"],
      end_date: row["end_date"]
{'fraction_non_alphanumeric': 0.16587997302764665, 'fraction_numerical': 0.0026972353337828725, 'mean_word_length': 3.652037617554859, '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': '7487350', 'n_tokens_mistral': 455, 'n_tokens_neox': 436, 'n_words': 81}