<commit_before>module RailsMacros
  def relation_class(klass)
    if ActiveRecord::VERSION::MAJOR == 3
      ActiveRecord::Relation
    else
      Object.const_get("ActiveRecord::Relation::ActiveRecord_Relation_#{klass}")
    end
  end
end<commit_msg>Use String#constantize instead of Object.const_get<commit_after>module RailsMacros
  def relation_class(klass)
    if ActiveRecord::VERSION::MAJOR == 3
      ActiveRecord::Relation
    else
      "ActiveRecord::Relation::ActiveRecord_Relation_#{klass.name}".constantize
    end
  end
end
{'fraction_non_alphanumeric': 0.09479553903345725, 'fraction_numerical': 0.0037174721189591076, 'mean_word_length': 4.923076923076923, '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': '3850686', 'n_tokens_mistral': 166, 'n_tokens_neox': 168, 'n_words': 29}