<commit_before>require 'active_support/deprecation'

module FreshConnection
  module Extend
    module ArRelation
      def self.prepended(base)
        if FreshConnection.rails_4?
          base.prepend ForRails4
        elsif FreshConnection.rails_3?
          base.prepend ForRails3
        end
      end


      def calculate(operation, column_name, options = {})
        if options[:readonly] == false
          ActiveSupport::Deprecation.warn(":readonly key has been deprecated.", caller)
        end

        slave_access = enable_slave_access && options[:readonly] != false
        @klass.manage_access(slave_access) { super }
      end
<commit_msg>prepend is private<commit_after>require 'active_support/deprecation'

module FreshConnection
  module Extend
    module ArRelation
      def self.prepended(base)
        if FreshConnection.rails_4?
          base.__send__(:prepend, ForRails4)
        elsif FreshConnection.rails_3?
          base.__send__(:prepend, ForRails3)
        end
      end


      def calculate(operation, column_name, options = {})
        if options[:readonly] == false
          ActiveSupport::Deprecation.warn(":readonly key has been deprecated.", caller)
        end

        slave_access = enable_slave_access && options[:readonly] != false
        @klass.manage_access(slave_access) { super }
      end

{'fraction_non_alphanumeric': 0.08190618019359643, 'fraction_numerical': 0.005956813104988831, 'mean_word_length': 2.743732590529248, 'pattern_counts': {'":': 2, '<': 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': '2754823', 'n_tokens_mistral': 386, 'n_tokens_neox': 367, 'n_words': 84}