<commit_before># Rails 2.0 dependent code

module ActiveRecord
  module ConnectionAdapters
    class PostgreSQLAdapter
      def client_min_messages_with_quote=(level)
        execute("SET client_min_messages TO #{quote(level)}")
      end
      alias_method_chain(:client_min_messages=, :quote)

      def last_insert_id_with_quote(table, sequence_name)
        Integer(select_value("SELECT currval(#{quote(sequence_name)})"))
      end
      alias_method_chain(:last_insert_id, :quote)
    end
  end
end<commit_msg>fixed error at not defined PostgreSQLAdapter.<commit_after># Rails 2.0 dependent code

if defined? ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
  module ActiveRecord
    module ConnectionAdapters
      class PostgreSQLAdapter
        def client_min_messages_with_quote=(level)
          execute("SET client_min_messages TO #{quote(level)}")
        end
        alias_method_chain(:client_min_messages=, :quote)

        def last_insert_id_with_quote(table, sequence_name)
          Integer(select_value("SELECT currval(#{quote(sequence_name)})"))
        end
        alias_method_chain(:last_insert_id, :quote)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08089500860585198, 'fraction_numerical': 0.0034423407917383822, 'mean_word_length': 3.9914163090128754, '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': '730466', 'n_tokens_mistral': 345, 'n_tokens_neox': 335, 'n_words': 70}