<commit_before># bacon spec/loquacious/spec_meta.rb
require 'ruby-debug'
require 'bacon'

module Test1

  module DefaultMethodSet
    def self.extend_object klass
    end
    def alpha
      "hi i'm alpha"
    end
  end

  class Tiger
    extend DefaultMethodSet
  end

  describe DefaultMethodSet do
    it "extend_object() will swallow calls to extend()" do
      Tiger.methods.grep(/^alpha$/).size.should.equal 0
    end
  end

end

module Test2

  module ClassExtender
    def extend_object klass
      super
    end
  end

  module DefaultMethodSet
    extend ClassExtender
    def alpha
      "hi i'm alpha"
    end
  end

  module ExtendedMethodSet
    extend ClassExtender
    include DefaultMethodSet
  end

  class Tiger
    extend ExtendedMethodSet
  end

  describe DefaultMethodSet do
    it "you can get something like inheirtance this way" do
      Tiger.methods.grep(/alpha/).size.should.equal 1
    end
  end

end

#<commit_msg>  * Loquacious - playing with meta more<commit_after># bacon tmp.rb
require 'ruby-debug'
require 'bacon'

module Test1

  module DefaultMethodSet
    def self.extend_object klass
    end
    def alpha
      "hi i'm alpha"
    end
  end

  class Tiger
    extend DefaultMethodSet
  end

  describe DefaultMethodSet do
    it "extend_object() will swallow calls to extend()" do
      Tiger.methods.grep(/^alpha$/).size.should.equal 0
    end
  end

end

module Test2

  module ClassExtender
    def extend_object klass
      super
    end
  end

  module DefaultMethodSet
    extend ClassExtender
    def alpha
      "hi i'm alpha"
    end
  end

  module ExtendedMethodSet
    extend ClassExtender
    include DefaultMethodSet
  end

  class Tiger
    extend ExtendedMethodSet
  end

  describe DefaultMethodSet do
    it "you can get something like inheirtance this way" do
      Tiger.methods.grep(/alpha/).size.should.equal 1
    end
  end

end

# bacon tmp.rb
require 'ruby-debug'

module Test3
  module InstanceMethods
    def inst_meth_1
      "i'm the one"
    end
  end

  module ClassMethodsPlusInstanceMethods
    def extend_object klass
      super
      klass.instance_eval do
        include InstanceMethods
      end
    end
  end

  module DefaultMethodSet
    extend ClassMethodsPlusInstanceMethods
    def alpha
      "hi i'm alpha"
    end
  end

  module ExtendedMethodSet
    extend ClassMethodsPlusInstanceMethods
    include DefaultMethodSet
  end

  class Tiger
    extend ExtendedMethodSet
  end

  describe self do
    it "should do the hack with instance methods" do
      Tiger.instance_methods.grep(/^inst_meth_1$/).size.should.equal 1
    end
  end
end

{'fraction_non_alphanumeric': 0.0456968773800457, 'fraction_numerical': 0.00456968773800457, 'mean_word_length': 2.6435506241331486, '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': '3369333', 'n_tokens_mistral': 832, 'n_tokens_neox': 783, 'n_words': 261}