<commit_before>#include "utility.h"

/**
 * @brief Gets time used in logs
 * @return string representation of current date
 * Format: [7.3.2016 21:54:59:382]
 */
std::string getTime(void)
{
    timeval now;
    gettimeofday(&now, 0);
    tm *curr_time = localtime(&now.tv_sec);

    std::ostringstream buff;

    buff << "(" << curr_time->tm_mday << "." << curr_time->tm_mon+1 << "." << (curr_time->tm_year+1900) << " ";
    if(curr_time->tm_hour<10){buff << "0";}
    buff << curr_time->tm_hour << ":";<commit_msg>Unified_logger: date is now in ISO 8601 format<commit_after>#include "utility.h"

/**
 * @brief Gets time used in logs
 * @return string representation of current date
 * Format: [7.3.2016 21:54:59:382]
 */
std::string getTime(void)
{
    timeval now;
    gettimeofday(&now, 0);
    tm *curr_time = localtime(&now.tv_sec);

    std::ostringstream buff;

    //buff << "(" << curr_time->tm_mday << "." << curr_time->tm_mon+1 << "." << (curr_time->tm_year+1900) << " ";
    buff << "(" << (curr_time->tm_year+1900) <<  "-";
    if(curr_time->tm_mon+1<10){buff << "0";}
    buff << curr_time->tm_mon+1 << "-";
    if(curr_time->tm_mday+1<10){buff << "0";}
    buff << curr_time->tm_mday << " ";
    if(curr_time->tm_hour<10){buff << "0";}
    buff << curr_time->tm_hour << ":";
{'fraction_non_alphanumeric': 0.21334367726920092, 'fraction_numerical': 0.0504266873545384, 'mean_word_length': 3.708029197080292, 'pattern_counts': {'":': 2, '<': 65, '<?xml version=': 0, '>': 18, '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': '2944191', 'n_tokens_mistral': 534, 'n_tokens_neox': 497, 'n_words': 89}