<commit_before>require 'fileutils'
require 'pathname'
require 'singleton'
require 'yaml'
require 'active_support'
require 'active_support/core_ext'

if Dir['./lib/clitasks.rb'].count > 0
  require './lib/clitasks/configuration'
  require './lib/clitasks/world'
  require './lib/clitasks/simple_dsl'
  require './lib/clitasks/story_reader'
  require './lib/clitasks/story'
  require './lib/clitasks/runner'
  require './lib/clitasks/link_builder'
  require './lib/clitasks/viewer'
  require './lib/clitasks/version'
  require './lib/clitasks/commands'
else
  require 'clitasks/configuration'
  require 'clitasks/world'
  require 'clitasks/simple_dsl'
  require 'clitasks/story_reader'
  require 'clitasks/story'
  require 'clitasks/runner'
  require 'clitasks/link_builder'
  require 'clitasks/viewer'<commit_msg>make sure a local copy of clitasks exists before trying to require it<commit_after>require 'fileutils'
require 'pathname'
require 'singleton'
require 'yaml'
require 'active_support'
require 'active_support/core_ext'

if ENV['CLIT_ENV'] == 'test' && Dir['./lib/clitasks.rb'].count > 0
  require './lib/clitasks/configuration'
  require './lib/clitasks/world'
  require './lib/clitasks/simple_dsl'
  require './lib/clitasks/story_reader'
  require './lib/clitasks/story'
  require './lib/clitasks/runner'
  require './lib/clitasks/link_builder'
  require './lib/clitasks/viewer'
  require './lib/clitasks/version'
  require './lib/clitasks/commands'
else
  require 'clitasks/configuration'
  require 'clitasks/world'
  require 'clitasks/simple_dsl'
  require 'clitasks/story_reader'
  require 'clitasks/story'
  require 'clitasks/runner'
  require 'clitasks/link_builder'
  require 'clitasks/viewer'
{'fraction_non_alphanumeric': 0.13458162668227033, 'fraction_numerical': 0.0011702750146284377, 'mean_word_length': 4.643564356435643, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2796977', 'n_tokens_mistral': 635, 'n_tokens_neox': 593, 'n_words': 117}