<commit_before>namespace :enki do
  desc "Generate AST files"
  task :generate_ast do
    Enki::Snowcrasher.compile_dir(src_dir: "doc", dst_dir: "doc_ast")
  end

  desc "Generate html from AST"
  task :ast_to_html => :generate_ast do
    Enki::Redcarpenter.compile_dir(src_dir: "doc_ast", dst_dir: "doc_html")
  end

  desc "Upload documentation to confluence"
  task :upload_to_confluence => :ast_to_html do<commit_msg>Load the rails environment before running rake tasks<commit_after>namespace :enki do
  desc "Generate AST files"
  task :generate_ast => :environment do
    Enki::Snowcrasher.compile_dir(src_dir: "doc", dst_dir: "doc_ast")
  end

  desc "Generate html from AST"
  task :ast_to_html => :generate_ast do
    Enki::Redcarpenter.compile_dir(src_dir: "doc_ast", dst_dir: "doc_html")
  end

  desc "Upload documentation to confluence"
  task :upload_to_confluence => :ast_to_html do
{'fraction_non_alphanumeric': 0.09921962095875139, 'fraction_numerical': 0.0, 'mean_word_length': 5.236111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '4010196', 'n_tokens_mistral': 325, 'n_tokens_neox': 307, 'n_words': 83}