<commit_before><?php

try {
	$db = new PDO ( "mysql:host=" . HOSTNAME . ";dbname=" . DBNAME . ";charset=UTF-8", USERNAME, PASSWORD, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8") ); // This is the right way to force mysql PDO driver to use UTF-8 for the connection: pass this as last parameter when building PDO.
} catch ( PDOException $e ) {
	die( "Database non raggiungibile: per favore riprovare più tardi. Messaggio di errore: ".$e->getMessage() );
}<commit_msg>Fixes: SQLSTATE[HY000] [2019] Unknown character set<commit_after><?php

try {
	$db = new PDO ( "mysql:host=" . HOSTNAME . ";dbname=" . DBNAME, USERNAME, PASSWORD, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8") ); // This is the right way to force mysql PDO driver to use UTF-8 for the connection: pass this as last parameter when building PDO.
} catch ( PDOException $e ) {
	die( "Database non raggiungibile: per favore riprovare più tardi. Messaggio di errore: ".$e->getMessage() );
}
{'fraction_non_alphanumeric': 0.13106295149638802, 'fraction_numerical': 0.01238390092879257, 'mean_word_length': 4.574712643678161, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1946526', 'n_tokens_mistral': 333, 'n_tokens_neox': 328, 'n_words': 116}