<commit_before>module Lagomorph
  class Session

    CONNECTION_PARAM_KEYS = [
      :host,
      :heartbeat_interval,
      :username,
      :password,
      :port
    ]


    def self.connect(connection_params)
      new(connection_params).tap(&:open_connection)
    end


    def initialize(connection_params)
      @connection_params = connection_params.select { |key,_|
        CONNECTION_PARAM_KEYS.include?(key)
      }
      @mutex = Monitor.new
    end
<commit_msg>Adds support for 'user' connection parameter<commit_after>module Lagomorph
  class Session

    CONNECTION_PARAM_KEYS = [
      :host,
      :heartbeat_interval,
      :user,
      :username,
      :password,
      :port
    ]


    def self.connect(connection_params)
      new(connection_params).tap(&:open_connection)
    end


    def initialize(connection_params)
      @connection_params = connection_params.select { |key,_|
        CONNECTION_PARAM_KEYS.include?(key)
      }
      @mutex = Monitor.new
    end

{'fraction_non_alphanumeric': 0.08870967741935484, 'fraction_numerical': 0.0, 'mean_word_length': 2.691449814126394, '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': '3677315', 'n_tokens_mistral': 310, 'n_tokens_neox': 295, 'n_words': 52}