<commit_before>require 'active_record/connection_adapters/abstract_adapter'

class ActiveRecord::ConnectionAdapters::AbstractAdapter
  def semian_resource
    @connection.semian_resource
  end
end<commit_msg>Support new @raw_connection ivar name (#309)<commit_after>require 'active_record/connection_adapters/abstract_adapter'

class ActiveRecord::ConnectionAdapters::AbstractAdapter
  def semian_resource
    # support for https://github.com/rails/rails/commit/d86fd6415c0dfce6fadb77e74696cf728e5eb76b
    connection = instance_variable_defined?(:@raw_connection) ? @raw_connection : @connection
    connection.semian_resource
  end
end
{'fraction_non_alphanumeric': 0.07535321821036106, 'fraction_numerical': 0.03767660910518053, 'mean_word_length': 7.861111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '4374390', 'n_tokens_mistral': 207, 'n_tokens_neox': 186, 'n_words': 29}