<commit_before>module Danica
  module DSL
    class Builder
      attr_reader :method, :claz, :base

      def initialize(method, claz=nil, base=nil)
        @method = method
        @claz = claz
        @base = base
      end

      def build
        DSL.register_class(method, clazz)
      end

      def clazz
        @clazz ||= build_clazz
      end

      def build_clazz
        return clazz_from_method unless claz
        return claz if claz.is_a? Class
        clazz_from_string
      end

      def clazz_from_method<commit_msg>Private methods are private<commit_after>module Danica
  module DSL
    class Builder
      attr_reader :method, :claz, :base

      def initialize(method, claz=nil, base=nil)
        @method = method
        @claz = claz
        @base = base
      end

      def build
        DSL.register_class(method, clazz)
      end

      private

      def clazz
        @clazz ||= build_clazz
      end

      def build_clazz
        return clazz_from_method unless claz
        return claz if claz.is_a? Class
        clazz_from_string
      end

      def clazz_from_method
{'fraction_non_alphanumeric': 0.05429864253393665, 'fraction_numerical': 0.0, 'mean_word_length': 1.8802083333333333, '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': '6580338', 'n_tokens_mistral': 350, 'n_tokens_neox': 336, 'n_words': 95}