<commit_before>module Statisfaction
  extend ActiveSupport::Concern

  mattr_reader :viewable_callback

  # Module methods
  def self.configure(&block)
    module_eval(&block)
  end

  def self.viewable_if(&block)
    @viewable_callback = block
  end

  module ClassMethods
    def statisfier
      @statisfier ||= Statisfier.new
    end

    def statisfies(&block)
      statisfier.register_events(self, &block)

      include Statisfaction::InstanceStatisfaction
    end

    alias_method :statisfy, :statisfies
  end

  module InstanceStatisfaction
    def create_statisfaction_event(method_name)
      ::Statisfaction::Event.create
    end
  end
end

Object.send(:include, Statisfaction)<commit_msg>Boyscout: remove ActiveSupport::Concern since it's not *exactly* what we're trying to do<commit_after>require 'statisfaction/engine'

module Statisfaction
  mattr_reader :viewable_callback

  # Module methods
  def self.configure(&block)
    module_eval(&block)
  end

  def self.viewable_if(&block)
    @viewable_callback = block
  end

  module ClassMethods
    def statisfies(&block)
      @statisfier ||= Statisfier.new

      @statisfier.register_events(self, &block)

      include Statisfaction::InstanceMethods
    end

    alias_method :statisfy, :statisfies
  end

  module InstanceMethods
    def create_statisfaction_event(method_name)
      ::Statisfaction::Event.create
    end
  end
end

Object.send(:extend, Statisfaction::ClassMethods)
{'fraction_non_alphanumeric': 0.07628865979381444, 'fraction_numerical': 0.0, 'mean_word_length': 4.055555555555555, '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': '4078991', 'n_tokens_mistral': 465, 'n_tokens_neox': 445, 'n_words': 97}