<commit_before>module Germinate
  class Seed
    class_inheritable_accessor :model, :records, :statuses

    class << self
      attr_reader :seeds

      def inherited(subclass)
        subclass.model = $`.constantize if subclass.name =~ /Seed$/
        subclass.records = []
        subclass.statuses = {}
        (@seeds ||= []) << subclass
        @seeds.uniq!
      end

      def method_missing(method, *args)
        if Germinate::Record::METHODS.include?(method)
          yield Germinate::Factory.new(self, method)
        else
          super<commit_msg>Added a check to #method_missing to ensure that a block has been provided.<commit_after>module Germinate
  class Seed
    class_inheritable_accessor :model, :records, :statuses

    class << self
      attr_reader :seeds

      def inherited(subclass)
        subclass.model = $`.constantize if subclass.name =~ /Seed$/
        subclass.records = []
        subclass.statuses = {}
        (@seeds ||= []) << subclass
        @seeds.uniq!
      end

      def method_missing(method, *args)
        if Germinate::Record::METHODS.include?(method) && block_given?
          yield Germinate::Factory.new(self, method)
        else
          super
{'fraction_non_alphanumeric': 0.1087136929460581, 'fraction_numerical': 0.0, 'mean_word_length': 2.4457142857142857, 'pattern_counts': {'":': 0, '<': 11, '<?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': '1419652', 'n_tokens_mistral': 360, 'n_tokens_neox': 346, 'n_words': 82}