<commit_before>module IdentityCache
  module QueryAPI
    extend ActiveSupport::Concern

    included do |base|
      base.private_class_method :require_if_necessary
      base.private_class_method :coder_from_record
      base.private_class_method :record_from_coder
      base.private_class_method :set_embedded_association
      base.private_class_method :get_embedded_association
      base.private_class_method :add_cached_associations_to_coder
      base.instance_eval(ruby = <<-CODE, __FILE__, __LINE__ + 1)
        private :expire_cache, :was_new_record?, :fetch_denormalized_cached_association,
                :populate_denormalized_cached_association
      CODE
      base.after_commit :expire_cache
      base.after_touch  :expire_cache
    end

    module ClassMethods
      # Similar to ActiveRecord::Base#exists? will return true if the id can be<commit_msg>Remove unused var<commit_after>module IdentityCache
  module QueryAPI
    extend ActiveSupport::Concern

    included do |base|
      base.private_class_method :require_if_necessary
      base.private_class_method :coder_from_record
      base.private_class_method :record_from_coder
      base.private_class_method :set_embedded_association
      base.private_class_method :get_embedded_association
      base.private_class_method :add_cached_associations_to_coder
      base.instance_eval(<<-CODE, __FILE__, __LINE__ + 1)
        private :expire_cache, :was_new_record?, :fetch_denormalized_cached_association,
                :populate_denormalized_cached_association
      CODE
      base.after_commit :expire_cache
      base.after_touch  :expire_cache
    end

    module ClassMethods
      # Similar to ActiveRecord::Base#exists? will return true if the id can be
{'fraction_non_alphanumeric': 0.05220883534136546, 'fraction_numerical': 0.0011474469305794606, 'mean_word_length': 4.025936599423631, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2863030', 'n_tokens_mistral': 522, 'n_tokens_neox': 504, 'n_words': 100}