<commit_before>module ElasticRecord
  class Relation
    module Delegation
      def to_ary
        to_a.to_ary
      end

      def include?(obj)
        to_a.include?(obj)
      end

      private
        def respond_to_missing?(method, include_private = false)
          super || klass.respond_to?(method, include_private) || Array.method_defined?(method, include_private)
        end

        def method_missing(method, *args, &block)
          if klass.respond_to?(method)
            scoping { klass.send(method, *args, &block) }
          elsif Array.method_defined?(method)
            to_a.send(method, *args, &block)
          else
            super
          end
        end
    end
  end
end
<commit_msg>include_private not an option for Class.method_defined?<commit_after>module ElasticRecord
  class Relation
    module Delegation
      def to_ary
        to_a.to_ary
      end

      def include?(obj)
        to_a.include?(obj)
      end

      private
        def respond_to_missing?(method, include_private = false)
          super || klass.respond_to?(method, include_private) || Array.method_defined?(method)
        end

        def method_missing(method, *args, &block)
          if klass.respond_to?(method)
            scoping { klass.send(method, *args, &block) }
          elsif Array.method_defined?(method)
            to_a.send(method, *args, &block)
          else
            super
          end
        end
    end
  end
end

{'fraction_non_alphanumeric': 0.08304735758407687, 'fraction_numerical': 0.0, 'mean_word_length': 2.012396694214876, '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': '4320294', 'n_tokens_mistral': 427, 'n_tokens_neox': 440, 'n_words': 98}