<commit_before>require 'yard'

lib_dir = File.expand_path(File.join(File.dirname(__FILE__),'..','lib'))
unless $LOAD_PATH.include?(lib_dir)
  $LOAD_PATH << lib_dir
end

require 'dm-predefined/yard/handlers'

YARD::Rake::YardocTask.new do |t|
  t.files   = ['lib/**/*.rb']
  t.options = [
    '--files', 'History.txt',
    '--title', 'dm-predefined'
  ]
end

task :docs => :yardoc<commit_msg>Generate documentation for protected methods.<commit_after>require 'yard'

lib_dir = File.expand_path(File.join(File.dirname(__FILE__),'..','lib'))
unless $LOAD_PATH.include?(lib_dir)
  $LOAD_PATH << lib_dir
end

require 'dm-predefined/yard/handlers'

YARD::Rake::YardocTask.new do |t|
  t.files   = ['lib/**/*.rb']
  t.options = [
    '--protected',
    '--files', 'History.txt',
    '--title', 'dm-predefined'
  ]
end

task :docs => :yardoc
{'fraction_non_alphanumeric': 0.1992797118847539, 'fraction_numerical': 0.0, 'mean_word_length': 4.180124223602484, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '7268585', 'n_tokens_mistral': 323, 'n_tokens_neox': 322, 'n_words': 54}