<commit_before>module Dapp
  module Config
    module Directive
      class Mount < Base
        attr_reader :_from, :_to
        attr_reader :_type

        def initialize(to)
          raise Error::Config, code: :mount_to_absolute_path_required unless Pathname(to).absolute?
          @_to = to.to_s
          super()
        end

        def from(path_or_type)
          path_or_type = path_or_type.to_s
          if [:tmp_dir, :build_dir].include? path_or_type.to_sym
            @_type = path_or_type.to_sym
          else
            raise Error::Config, code: :mount_from_absolute_path_required unless Pathname(path_or_type).absolute?
            @_from = path_or_type
          end
        end
      end
    end
  end
end<commit_msg>fixed<commit_after>module Dapp
  module Config
    module Directive
      class Mount < Base
        attr_reader :_from, :_to
        attr_reader :_type

        def initialize(to)
          raise Error::Config, code: :mount_to_absolute_path_required unless Pathname((to = to.to_s)).absolute?
          @_to = to
          super()
        end

        def from(path_or_type)
          path_or_type = path_or_type.to_s
          if [:tmp_dir, :build_dir].include? path_or_type.to_sym
            @_type = path_or_type.to_sym
          else
            raise Error::Config, code: :mount_from_absolute_path_required unless Pathname(path_or_type).absolute?
            @_from = path_or_type
          end
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.06954760297096556, 'fraction_numerical': 0.0, 'mean_word_length': 2.0431211498973307, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6325342', 'n_tokens_mistral': 463, 'n_tokens_neox': 458, 'n_words': 102}