<commit_before>class ActiveRecord::Base

  #--
  #     >> Post.to_resource
  #     => "posts"
  #     >> Admin::User.to_resource
  #     => "admin/users"
  #++
  def self.to_resource
    name.underscore.pluralize
  end

  #--
  # TODO: This has been copied from Rails 2 because has been removed
  #       from Rails 3. Once the "build_conditions" has been refactored
  #       to use Arel this can be removed.
  #++
  def self.merge_conditions(*conditions)
    segments = []

    conditions.each do |condition|<commit_msg>Gardening<commit_after>class ActiveRecord::Base

  #--
  #     >> Post.to_resource
  #     => "posts"
  #     >> Admin::User.to_resource
  #     => "admin/users"
  #++
  def self.to_resource
    name.underscore.pluralize
  end

  #--
  # TODO: This has been copied from Rails 2 because has been removed from
  #       Rails 3. Once the "build_conditions" has been refactored to use Arel
  #       this can be removed.
  #++
  def self.merge_conditions(*conditions)
    segments = []

    conditions.each do |condition|
{'fraction_non_alphanumeric': 0.11346153846153846, 'fraction_numerical': 0.0038461538461538464, 'mean_word_length': 2.577319587628866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7530095', 'n_tokens_mistral': 347, 'n_tokens_neox': 332, 'n_words': 87}