<commit_before># frozen_string_literal: true

require_dependency "renalware/clinics"

module Renalware
  module Clinics
    class Clinic < ApplicationRecord
      include Accountable
      acts_as_paranoid

      has_many :clinic_visits, dependent: :restrict_with_exception
      has_many :appointments, dependent: :restrict_with_exception<commit_msg>Remove :dependent option from has_many on Clinic<commit_after># frozen_string_literal: true

require_dependency "renalware/clinics"

module Renalware
  module Clinics
    class Clinic < ApplicationRecord
      include Accountable
      acts_as_paranoid

      # The dependent option is not really compatible with acts_as_paranoid
      # rubocop:disable Rails/HasManyOrHasOneDependent
      has_many :clinic_visits
      has_many :appointments
      # rubocop:enable Rails/HasManyOrHasOneDependent

{'fraction_non_alphanumeric': 0.04240282685512368, 'fraction_numerical': 0.0, 'mean_word_length': 4.51948051948052, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5885004', 'n_tokens_mistral': 256, 'n_tokens_neox': 242, 'n_words': 60}