<commit_before><?php 
if (isset($_GET['write_query_to_csv']))
{
    $data = $_POST['data'];
    
    $max_datetime = false;
    $max_id = 1;
    foreach($data as $k => $log)
    {
        if (!isset($log["will_execute"]))
        {
            $log["will_execute"] = 0;
        }
        
        if ($max_datetime === false)
        {
            $max_datetime = $log["datetime"];
        }
        else if (DateUtility::compare($log["datetime"], $max_datetime) > 0)
        {
            $max_datetime = DateUtility::getDate($log["datetime"], DateUtility::DATETIME_FORMAT);<commit_msg>bug fixed<commit_after><?php 
if (isset($_GET['write_query_to_csv']))
{
    $data = $_POST['data'];
    
    $max_datetime = false;
    $max_id = 1;
    foreach($data as $k => $log)
    {
        if (!isset($log["will_execute"]))
        {
            $log["will_execute"] = 0;
        }
        
        if ($max_datetime === false)
        {
            $max_datetime = $log["datetime"];
        }
        else if (DateUtility::compare($log["datetime"], $max_datetime) > 0)
        {
            $max_datetime = $log["datetime"];
{'fraction_non_alphanumeric': 0.17620751341681573, 'fraction_numerical': 0.005366726296958855, 'mean_word_length': 2.0997229916897506, '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': '4696861', 'n_tokens_mistral': 362, 'n_tokens_neox': 361, 'n_words': 59}