<commit_before>module RailsRequestStats
  class NotificationSubscribers
    SCHEMA_NAME = 'SCHEMA'.freeze
    CACHE_NAME = 'CACHE'.freeze

    attr_reader :query_count,
                :cached_query_count,
                :before_object_space,
                :after_object_space,
                :requests

    def self.reset_counts
      @query_count = 0
      @cached_query_count = 0
      @before_object_space = {}
      @after_object_space = {}
    end
    reset_counts

    def self.reset_requests
      @requests = {}
    end
    reset_requests

    at_exit do<commit_msg>Change 'instance variables' from NotificationSubscribers to class<commit_after>module RailsRequestStats
  class NotificationSubscribers
    SCHEMA_NAME = 'SCHEMA'.freeze
    CACHE_NAME = 'CACHE'.freeze

    class << self
      attr_accessor :query_count,
                    :cached_query_count,
                    :before_object_space,
                    :after_object_space
                    :requests
    end

    def self.reset_counts
      @query_count = 0
      @cached_query_count = 0
      @before_object_space = {}
      @after_object_space = {}
    end
    reset_counts

    def self.reset_requests
      @requests = {}
    end
    reset_requests

    at_exit do
{'fraction_non_alphanumeric': 0.06294820717131475, 'fraction_numerical': 0.0031872509960159364, 'mean_word_length': 2.1012345679012348, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3949510', 'n_tokens_mistral': 387, 'n_tokens_neox': 359, 'n_words': 70}