<commit_before>module Alf
  class Adapter
    class Connection

      ### connection, transaction, locks

      # Yields the block in a transaction
      def in_transaction(opts = {})
        yield
      end

      def closed?
        defined?(@closed) && @closed
      end

      # Closes the connection
      def close
        @closed = true
      end

      ### schema methods

      # Returns true if `name` is known, false otherwise.
      def knows?(name)
        false
      end

      # Returns the heading of a given named variable<commit_msg>Document Connection#closed?<commit_after>module Alf
  class Adapter
    class Connection

      ### connection, transaction, locks

      # Yields the block in a transaction
      def in_transaction(opts = {})
        yield
      end

      # Closes the connection
      def close
        @closed = true
      end

      # Checks whether the connection is closed
      def closed?
        defined?(@closed) && @closed
      end

      ### schema methods

      # Returns true if `name` is known, false otherwise.
      def knows?(name)
        false
      end

      # Returns the heading of a given named variable
{'fraction_non_alphanumeric': 0.0660377358490566, 'fraction_numerical': 0.0, 'mean_word_length': 1.9102244389027432, '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': '6426936', 'n_tokens_mistral': 301, 'n_tokens_neox': 292, 'n_words': 114}