<commit_before>module Makara
  module Logging

    module Subscriber
      IGNORE_PAYLOAD_NAMES = ["SCHEMA", "EXPLAIN"]

      def sql(event)
        name = event.payload[:name]
        if IGNORE_PAYLOAD_NAMES.include?(name)
          self.class.runtime += event.duration
        else
          name = [current_wrapper_name(event), name].compact.join(' ')
          event.payload[:name] = name
          super(event)
        end
      end

      protected

      # grabs the adapter used in this event via it's object_id<commit_msg>Use super<commit_after>module Makara
  module Logging

    module Subscriber
      IGNORE_PAYLOAD_NAMES = ["SCHEMA", "EXPLAIN"]

      def sql(event)
        name = event.payload[:name]
        if IGNORE_PAYLOAD_NAMES.include?(name)
          super
        else
          name = [current_wrapper_name(event), name].compact.join(' ')
          event.payload[:name] = name
          super(event)
        end
      end

      protected

      # grabs the adapter used in this event via it's object_id
{'fraction_non_alphanumeric': 0.08843537414965986, 'fraction_numerical': 0.0, 'mean_word_length': 2.1888544891640866, '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': '6591027', 'n_tokens_mistral': 320, 'n_tokens_neox': 301, 'n_words': 73}