<commit_before>require "active_model"
require "wisper"

require "use_case/version"
require "use_case/validation_helpers"
require "use_case/params"

module UseCase
  def self.included(base)
    base.class_eval do
      prepend Perform
      extend ClassMethods
      include Params
      include Wisper::Publisher
    end
  end

  include ValidationHelpers

  module Perform
    # Executes use case logic
    #
    # Use cases must implement this method
    #
    # @since 0.0.1<commit_msg>Doc included hook<commit_after>require "active_model"
require "wisper"

require "use_case/version"
require "use_case/validation_helpers"
require "use_case/params"

module UseCase
  # Override Ruby's module inclusion hook to prepend base with our #perform
  # method, extend base with a .perform method, include Params for Virtus and
  # ActiveSupport::Validation, and include Wisper for pub/sub.
  #
  # @api private
  def self.included(base)
    base.class_eval do
      prepend Perform
      extend ClassMethods
      include Params
      include Wisper::Publisher
    end
  end

  include ValidationHelpers

  module Perform
    # Executes use case logic
    #
    # Use cases must implement this method
    #
    # @since 0.0.1
{'fraction_non_alphanumeric': 0.06229508196721312, 'fraction_numerical': 0.004918032786885246, 'mean_word_length': 3.269230769230769, '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': '3897880', 'n_tokens_mistral': 373, 'n_tokens_neox': 360, 'n_words': 116}