<commit_before><?php

$log->addDebug("{$url_parts['host']} not found. Default.");

$log->addInfo("Title of the page is: " . html_entity_decode($html->find("head title", 0)->plaintext));<commit_msg>Better handle empty response on the default scrapper.<commit_after><?php

$log->addDebug("{$url_parts['host']} not found. Default.");
if(!empty($html)) {
	$log->addInfo("Title of the page is: " . html_entity_decode($html->find("head title", 0)->plaintext));
} else {
	$log->addInfo("Empty response");
}
{'fraction_non_alphanumeric': 0.21442885771543085, 'fraction_numerical': 0.004008016032064128, 'mean_word_length': 6.6923076923076925, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1822834', 'n_tokens_mistral': 165, 'n_tokens_neox': 163, 'n_words': 36}