<commit_before># frozen_string_literal: true
module Panther
  # Naming mixin
  #
  # Provides some useful methods to retrieve class and module names. These are used in the
  # default CRUD operations.
  #
  # @author <NAME> <<EMAIL>>
  module Naming
    def self.included(klass)
      klass.class_eval do
        @namer = Namer.new(self)

        delegate(*[
          :namespace_module, :resource_module, :resource_name, :resource_model, :representer_klass,
          :collection_representer_klass, :policy_klass
        ], to: :@namer)
      end
    end
  end
end<commit_msg>Fix Naming module<commit_after># frozen_string_literal: true
module Panther
  # Naming mixin
  #
  # Provides some useful methods to retrieve class and module names. These are used in the
  # default CRUD operations.
  #
  # @author <NAME> <<EMAIL>>
  module Naming
    def self.included(klass)
      klass.class_eval do
        @namer = Namer.new(self)
        klass.extend ClassMethods
      end
    end

    module ClassMethods
      [
        :namespace_module, :resource_module, :resource_name, :resource_model, :representer_klass,
        :collection_representer_klass, :policy_klass
      ].each do |name|
        define_method name do
          @namer.send(name)
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08003108003108003, 'fraction_numerical': 0.0, 'mean_word_length': 2.7551020408163267, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1640565', 'n_tokens_mistral': 398, 'n_tokens_neox': 400, 'n_words': 112}