<commit_before>module ActiveRecord
  module ConnectionAdapters
    class ConnectionPool
      @connection_application_name = "/#{Process.pid}"

      def self.connection_application_name=(value)
        return @connection_application_name = value
      end

      def self.connection_application_name
        return @connection_application_name
      end

      def self.initialize_connection_application_name(application_name)
        self.connection_application_name = application_name
        ActiveRecord::Base.connection.set_server_application_name(self.class.connection_application_name)
      end

      private
      def new_connection_with_set_application_name
        c = new_connection_without_set_application_name
        c.set_server_application_name(self.class.connection_application_name)
        c
      end
      alias_method_chain :new_connection, :set_application_name<commit_msg>connection applicatio name is class var<commit_after>module ActiveRecord
  module ConnectionAdapters
    class ConnectionPool
      @connection_application_name = "/#{Process.pid}"

      def self.connection_application_name=(value)
        return @connection_application_name = value
      end

      def self.connection_application_name
        return @connection_application_name
      end

      def self.initialize_connection_application_name(application_name)
        self.connection_application_name = application_name
        ActiveRecord::Base.connection.set_server_application_name(self.connection_application_name)
      end

      private
      def new_connection_with_set_application_name
        c = new_connection_without_set_application_name
        c.set_server_application_name(self.class.connection_application_name)
        c
      end
      alias_method_chain :new_connection, :set_application_name
{'fraction_non_alphanumeric': 0.04565456545654566, 'fraction_numerical': 0.0, 'mean_word_length': 3.876675603217158, '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': '3297221', 'n_tokens_mistral': 463, 'n_tokens_neox': 454, 'n_words': 76}