<commit_before><?php include_once('./lib/Presto.php'); ?>

<h1>Presto test</h1>

<?php 

global $p;

dump($p);

?><commit_msg>Moved presto creation to delegator, and added basic error handling.<commit_after><?php include_once('./lib/Presto.php'); ?>

<h1>Presto debug mode</h1>

<?php 

try {
	
	$p = new Presto();
	dump($p);
	
} catch (Exception $e) {
	print 'Presto error: ' . $e->getMessage();
}


?>
{'fraction_non_alphanumeric': 0.20843672456575682, 'fraction_numerical': 0.009925558312655087, 'mean_word_length': 4.246753246753247, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '3359055', 'n_tokens_mistral': 166, 'n_tokens_neox': 162, 'n_words': 35}