<commit_before>local A = require("android")
A.dl.library_path = A.dl.library_path .. ":" .. A.dir .. "/libs"

ARGV = {"-d", "/sdcard"}
dofile(A.dir.."/reader.lua")<commit_msg>fix #992 by creating fake command line arguments<commit_after>local A = require("android")
A.dl.library_path = A.dl.library_path .. ":" .. A.dir .. "/libs"

-- create fake command-line arguments
arg = {"-d", "/sdcard"}
dofile(A.dir.."/reader.lua")
{'fraction_non_alphanumeric': 0.22274881516587677, 'fraction_numerical': 0.0071090047393364926, 'mean_word_length': 3.7, 'pattern_counts': {'":': 2, '<': 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': '3199070', 'n_tokens_mistral': 160, 'n_tokens_neox': 153, 'n_words': 32}