<commit_before>module DataModel
  class Source < ::ActiveRecord::Base
    include Genome::Extensions::UUIDPrimaryKey
    include Genome::Extensions::HasCacheableQuery

    has_many :gene_claims, inverse_of: :source
    has_many :drug_claims, inverse_of: :source
    has_many :interaction_claims, inverse_of: :source
    belongs_to :source_type, inverse_of: :sources

    cache_query :source_names_with_interactions, :all_source_names_with_interactions
    cache_query :potentially_druggable_sources, :all_potenially_druggable_sources
<commit_msg>set source attr_protected for use in importer dsl<commit_after>module DataModel
  class Source < ::ActiveRecord::Base
    include Genome::Extensions::UUIDPrimaryKey
    include Genome::Extensions::HasCacheableQuery

    attr_protected :id

    has_many :gene_claims, inverse_of: :source
    has_many :drug_claims, inverse_of: :source
    has_many :interaction_claims, inverse_of: :source
    belongs_to :source_type, inverse_of: :sources

    cache_query :source_names_with_interactions, :all_source_names_with_interactions
    cache_query :potentially_druggable_sources, :all_potenially_druggable_sources

{'fraction_non_alphanumeric': 0.06684027777777778, 'fraction_numerical': 0.0, 'mean_word_length': 6.635761589403973, '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': '1186152', 'n_tokens_mistral': 360, 'n_tokens_neox': 348, 'n_words': 71}