<commit_before>namespace :doc do
  desc 'Generates YARD documentation'
  task :build => :generate do
    sh 'yard'
  end

  desc 'Generates and uploads the documentation'
  task :upload => :build do
    root_dir    = "/srv/http/code.yorickpeterse.com/public/ruby-ll"
    version_dir = File.join(root_dir, Oga::VERSION)

    sh "scp -r yardoc europa:#{version_dir}"

    sh "ssh europa 'rm -f #{root_dir}/latest " \
      "&& ln -s #{version_dir} #{root_dir}/latest'"
  end
end<commit_msg>Updated doc:upload task.<commit_after>namespace :doc do
  desc 'Generates YARD documentation'
  task :build => :generate do
    sh 'yard'
  end

  desc 'Generates and uploads the documentation'
  task :upload => :build do
    version     = GEMSPEC.version.to_s
    bucket      = 's3://code.yorickpeterse.com'
    directory   = GEMSPEC.name

    sh "aws s3 rm --recursive #{bucket}/#{directory}/latest"
    sh "aws s3 sync yardoc #{bucket}/#{directory}/#{version}"
    sh "aws s3 sync yardoc #{bucket}/#{directory}/latest"
  end
end
{'fraction_non_alphanumeric': 0.13052011776251227, 'fraction_numerical': 0.003925417075564278, 'mean_word_length': 3.3037974683544302, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1917167', 'n_tokens_mistral': 355, 'n_tokens_neox': 343, 'n_words': 97}