<commit_before>require 'remote_associations/active_record'

module RemoteAssociations
  class Relation

    attr_accessor :model

    def initialize(records)
      @records = records
      @model = records.first.class unless records.empty?
    end

    def exec_queries
      @records
    end

    def spawn
      self
    end

    include RemoteAssociations::ActiveRecord::RelationExtensions
  end
end<commit_msg>esplain<commit_after>require 'remote_associations/active_record'

module RemoteAssociations
  class Relation

    attr_accessor :model

    def initialize(records)
      @records = records
      @model = records.first.class unless records.empty?
    end

    def exec_queries
      @records
    end

    def spawn
      self
    end

    # alias_method_chain doesn't know about exec_queries unless we put this down here
    include RemoteAssociations::ActiveRecord::RelationExtensions
  end
end
{'fraction_non_alphanumeric': 0.05066079295154185, 'fraction_numerical': 0.0, 'mean_word_length': 3.1889400921658986, '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': '6513977', 'n_tokens_mistral': 257, 'n_tokens_neox': 245, 'n_words': 68}