<commit_before>module Virsandra
  class Connection

    extend Forwardable

    attr_reader :handle, :config

    def initialize(config)
      @config = config
      config.validate!
      connect!
    end

    def connect!
      @handle = Cql::Client.connect(hosts: @config.servers)
      @handle.use(@config.keyspace)
      @handle<commit_msg>support passing single cassandra host as string<commit_after>module Virsandra
  class Connection

    extend Forwardable

    attr_reader :handle, :config

    def initialize(config)
      @config = config
      config.validate!
      connect!
    end

    def connect!
      @handle = Cql::Client.connect(hosts: [@config.servers].flatten)
      @handle.use(@config.keyspace)
      @handle
{'fraction_non_alphanumeric': 0.0885558583106267, 'fraction_numerical': 0.0, 'mean_word_length': 2.8684210526315788, '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': '7219613', 'n_tokens_mistral': 219, 'n_tokens_neox': 206, 'n_words': 51}