<commit_before>#!/usr/bin/env ruby
# encoding: utf-8

$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rwiki'

working_folder = ARGV[0] || Dir.pwd
unless working_folder.start_with?('/')
  working_folder = File.join(Dir.pwd, working_folder)
end

WIKIR_ROOT = working_folder.freeze
p "Working folder is: #{WIKIR_ROOT}"
Dir.chdir(WIKIR_ROOT)

Rwiki::App.run!
<commit_msg>Fix typo in constant name.<commit_after>#!/usr/bin/env ruby
# encoding: utf-8

$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rwiki'

working_folder = ARGV[0] || Dir.pwd
unless working_folder.start_with?('/')
  working_folder = File.join(Dir.pwd, working_folder)
end

RWIKI_ROOT = working_folder.freeze
p "Working folder is: #{RWIKI_ROOT}"
Dir.chdir(RWIKI_ROOT)

Rwiki::App.run!

{'fraction_non_alphanumeric': 0.16899618805590852, 'fraction_numerical': 0.005082592121982211, 'mean_word_length': 5.793103448275862, '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': '1243392', 'n_tokens_mistral': 323, 'n_tokens_neox': 309, 'n_words': 56}