<commit_before>
module Naught
  class NullClassBuilder
    module Commands
      class DefineExplicitConversions
        def initialize(builder)
          @builder = builder
        end

        def call
          @builder.defer do |subject|
            subject.module_eval do
              def to_s; ""; end
              def to_i; 0; end
              def to_f; 0.0; end
              def to_c; 0.to_c; end
              def to_r; 0.to_r; end
              def to_a; []; end
              def to_h; {}; end
            end
          end
        end
      end
    end
  end
end<commit_msg>Define DefineExplicitConversions#defer to delegate to the builder.<commit_after>
module Naught
  class NullClassBuilder
    module Commands
      class DefineExplicitConversions
        def initialize(builder)
          @builder = builder
        end

        def call
          defer do |subject|
            subject.module_eval do
              def to_s; ""; end
              def to_i; 0; end
              def to_f; 0.0; end
              def to_c; 0.to_c; end
              def to_r; 0.to_r; end
              def to_a; []; end
              def to_h; {}; end
            end
          end
        end

        def defer(&block)
          @builder.defer(&block)
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.06018518518518518, 'fraction_numerical': 0.007716049382716049, 'mean_word_length': 1.2400690846286702, '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': '4556303', 'n_tokens_mistral': 375, 'n_tokens_neox': 360, 'n_words': 115}