<commit_before><?php

// the str_replace was necessary when using a namespace because it was using
// a backslash in the path instead of forward slash
spl_autoload_register(function ($class) {
    $include_path = '/Users/cary/src/git/xsearch/php/phpsearch/';
    include $include_path . str_replace("\\", "/", strtolower($class)) . '.php';
});

?><commit_msg>Use HOME env var in php<commit_after><?php

// the str_replace was necessary when using a namespace because it was using
// a backslash in the path instead of forward slash
spl_autoload_register(function ($class) {
	$HOME = getenv('HOME');
    $include_path = "$HOME/src/git/xsearch/php/phpsearch/";
    include $include_path . str_replace("\\", "/", strtolower($class)) . '.php';
});

?>
{'fraction_non_alphanumeric': 0.1499330655957162, 'fraction_numerical': 0.0, 'mean_word_length': 4.267605633802817, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5079080', 'n_tokens_mistral': 235, 'n_tokens_neox': 232, 'n_words': 69}