<commit_before>-- require('mobdebug').start()

io.stdout:setvbuf('no')

local path = require 'pl.path'
local emu = require 'emu'

-- local dir = ...
local dir = '/home/cpup/code/lua/cc-emu/dev'
dir = path.normpath(path.join(path.currentdir(), dir))

emu(dir)<commit_msg>Enable passing the directory as an argument<commit_after>-- require('mobdebug').start()

io.stdout:setvbuf('no')

local path = require 'pl.path'
local emu = require 'emu'

local dir = ...
-- local dir = '/home/cpup/code/lua/cc-emu/dev'
dir = path.normpath(path.join(path.currentdir(), dir))

emu(dir)
{'fraction_non_alphanumeric': 0.18947368421052632, 'fraction_numerical': 0.0, 'mean_word_length': 4.336448598130841, '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': '1702110', 'n_tokens_mistral': 207, 'n_tokens_neox': 205, 'n_words': 45}