<commit_before>require 'active_support/concern'

module QuickCount
  module ActiveRecord
    module Base
      extend ActiveSupport::Concern

      module ClassMethods

        def quick_count
          result = ::ActiveRecord::Base.connection.execute("SELECT quick_count('#{table_name}')")
          result[0]["quick_count"].to_i
        end

        def count_estimate
          my_statement = ::ActiveRecord::Base.connection.quote(to_sql)
          result = ::ActiveRecord::Base.connection.execute("SELECT count_estimate(#{my_statement})")
          result[0]["count_estimate"]
        end

      end

    end
  end
end<commit_msg>Remove unused code from wrong place<commit_after>require 'active_support/concern'

module QuickCount
  module ActiveRecord
    module Base
      extend ActiveSupport::Concern

      module ClassMethods

        def quick_count
          result = ::ActiveRecord::Base.connection.execute("SELECT quick_count('#{table_name}')")
          result[0]["quick_count"].to_i
        end

      end

    end
  end
end
{'fraction_non_alphanumeric': 0.09326923076923077, 'fraction_numerical': 0.0028846153846153848, 'mean_word_length': 2.9431818181818183, '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': '806000', 'n_tokens_mistral': 293, 'n_tokens_neox': 281, 'n_words': 59}