<commit_before>require 'active_support/per_thread_registry'

module ShardHandler
  # This class is used as a registry for the shard name that is being used in
  # the current thread. Because ActiveRecord's connections are global in the
  # thread scope, we need to make sure that the shard name is change only for
  # the current thread and not on process or other threads.
  #
  # @see ActiveSupport::PerThreadRegistry
  class ThreadRegistry
    extend ActiveSupport::PerThreadRegistry
    attr_accessor :current_shard
  end
end<commit_msg>Mark ThreadRegistry as a private api<commit_after>require 'active_support/per_thread_registry'

module ShardHandler
  # This class is used as a registry for the shard name that is being used in
  # the current thread. Because ActiveRecord's connections are global in the
  # thread scope, we need to make sure that the shard name is change only for
  # the current thread and not on process or other threads.
  #
  # @see ActiveSupport::PerThreadRegistry
  # @api private
  class ThreadRegistry
    extend ActiveSupport::PerThreadRegistry
    attr_accessor :current_shard
  end
end
{'fraction_non_alphanumeric': 0.040998217468805706, 'fraction_numerical': 0.0, 'mean_word_length': 4.42512077294686, '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': '6523019', 'n_tokens_mistral': 295, 'n_tokens_neox': 292, 'n_words': 136}