<commit_before><?php
    include_once 'config.php';
    
    function writeLog ($message)
    {
        file_put_contents(LOGFILE, $message);
    }
    
    function writePDOException($e)
    {
        $text = 'PDO Exception in ' . $e->getFile() . ', line ' . $e->getLine() . ':\n';
        $text .= 'Erroro code: ' . $e->getCode . '\n';
        $text .= $e->getMessage;
    }
?><commit_msg>Improved writeLog<commit_after><?php
    include_once 'config.php';
    
    function writeLog ($message)
    {
        $message = '## ' . date('Y-m-d H:i:s') . '\n' . $message;
        file_put_contents(LOGFILE, $message);
    }
    
    function writePDOException($e)
    {
        $text = 'PDO Exception in ' . $e->getFile() . ', line ' . $e->getLine() . ':\n';
        $text .= 'Erroro code: ' . $e->getCode . '\n';
        $text .= $e->getMessage;
    }
?>
{'fraction_non_alphanumeric': 0.19953051643192488, 'fraction_numerical': 0.0, 'mean_word_length': 2.0355871886120998, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '2183970', 'n_tokens_mistral': 303, 'n_tokens_neox': 307, 'n_words': 56}