<commit_before>import time
try:
    import lcd
    lcd = lcd.lcd()
    # Change this to your i2c address
    lcd.set_addr(0x23)
except:
    lcd = False

def log(string, color = 'white'):
    colorHex = {
        'green': '92m',
        'yellow': '93m',
        'red': '91m'
    }
    if color not in colorHex:
        print(time.strftime("%Y-%m-%d %H:%M:%S"))
        print(string)
    else:
        print(u'\033['+ colorHex[color] + time.strftime("%Y-%m-%d %H:%M:%S") + '\033[0m')
        print(u'\033['+ colorHex[color] + string.decode('utf-8') + '\033[0m')
    if lcd:<commit_msg>Fix formatting of date/time in logger.<commit_after>import time
try:
    import lcd
    lcd = lcd.lcd()
    # Change this to your i2c address
    lcd.set_addr(0x23)
except:
    lcd = False

def log(string, color = 'white'):
    colorHex = {
        'green': '92m',
        'yellow': '93m',
        'red': '91m'
    }
    if color not in colorHex:
        print('[' + time.strftime("%Y-%m-%d %H:%M:%S") + '] '+ string)
    else:
        print(u'\033['+ colorHex[color] + time.strftime("%Y-%m-%d %H:%M:%S") + ' ' + string.decode('utf-8') + '\033[0m')
    if lcd:
{'fraction_non_alphanumeric': 0.19772528433945757, 'fraction_numerical': 0.03762029746281715, 'mean_word_length': 2.4457831325301207, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5796098', 'n_tokens_mistral': 470, 'n_tokens_neox': 441, 'n_words': 98}