<commit_before>#!/usr/bin/env python3

"""
This is the code for the jarvis bot on IRC.
"""

import datetime
import irc.bot as ircbot
import irc.connection
import psycopg2
import os
import random
import re
import shlex
import ssl
import subprocess
import sys

from irc.client import Throttler

from Rules import *
from libjarvis.config import Config
from libjarvis import tools


config = Config()


def printerr(msg):
    sys.stderr.write(msg + "\n")<commit_msg>Add debug timestamp info<commit_after>#!/usr/bin/env python3

"""
This is the code for the jarvis bot on IRC.
"""

import datetime
import irc.bot as ircbot
import irc.connection
import psycopg2
import os
import random
import re
import shlex
import ssl
import subprocess
import sys
import time

from irc.client import Throttler

from Rules import *
from libjarvis.config import Config
from libjarvis import tools


os.chdir(os.path.dirname(sys.argv[0]))  # chdir to own dir
config = Config()


def printerr(msg):
    sys.stderr.write("["+str(int(time.time()))+"] " + msg + "\n")
{'fraction_non_alphanumeric': 0.09143407122232916, 'fraction_numerical': 0.004812319538017324, 'mean_word_length': 4.502645502645502, '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': '552573', 'n_tokens_mistral': 344, 'n_tokens_neox': 337, 'n_words': 124}