<commit_before># frozen_string_literal: true
module Extensions::CoreExtensions::ActiveRecord::Relation
  # Fix for count queries involving calculated attributes
  # To remove after upgrading to Rails 5
  # https://github.com/aha-app/calculated_attributes#known-issues
  def select_for_count
    :all
  end
end<commit_msg>Update ActiveRecord::Relation#select_for_count monkeypatching documentation<commit_after># frozen_string_literal: true
module Extensions::CoreExtensions::ActiveRecord::Relation
  # Fix for count queries involving calculated attributes
  # To remove if Rails ever fixes this, see rails/rails#15138 and rails/rails#24809
  # https://github.com/aha-app/calculated_attributes#known-issues
  def select_for_count
    :all
  end
end
{'fraction_non_alphanumeric': 0.0749665327978581, 'fraction_numerical': 0.014725568942436412, 'mean_word_length': 6.056603773584905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4551883', 'n_tokens_mistral': 225, 'n_tokens_neox': 204, 'n_words': 56}