<commit_before>module Susu
module Fs
module Refine

refine String do


	# Convert to Pathname. Note that #to_path cannot be used because Pathname already uses it and it should return a string.
	#
	def path

		Susu::Fs::Path.new self

	end


	# Provide an easy way of creating relative paths from any source file.
	#
	# @param  from  [String/Pathname] The directory or a file therein to which the path is relative
	#
	# @return returns a Pathname object relative to from.
	#
	def relpath( from = caller_locations( 1 ).first.absolute_path )

		Susu::Fs::Path.new File.join( File.dirname( from ), self )

	end


	def to_path

		self

	end


end # refine String

end # module Refine
end # module Fs
end # module Susu<commit_msg>Add respond_to? to the refinements of Fs<commit_after>module Susu
module Fs
module Refine

refine String do


	# Convert to Pathname. Note that #to_path cannot be used because Pathname already uses it and it should return a string.
	#
	def path

		Susu::Fs::Path.new self

	end


	# Provide an easy way of creating relative paths from any source file.
	#
	# @param  from  [String/Pathname] The directory or a file therein to which the path is relative
	#
	# @return returns a Pathname object relative to from.
	#
	def relpath( from = caller_locations( 1 ).first.absolute_path )

		Susu::Fs::Path.new File.join( File.dirname( from ), self )

	end


	def to_path

		self

	end


	def respond_to? name, include_all = false

		super and return true

		[

			:path     ,
			:relpath  ,
			:to_path

		].include? name.to_sym

	end


end # refine String

end # module Refine
end # module Fs
end # module Susu
{'fraction_non_alphanumeric': 0.06892307692307692, 'fraction_numerical': 0.0012307692307692308, 'mean_word_length': 3.2902374670184695, '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': '3703416', 'n_tokens_mistral': 580, 'n_tokens_neox': 514, 'n_words': 216}