<commit_before># -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from base import *
import datetime
import sys
import time
import os

dbfolder = c_redeclipse.dbhome + "/logs"
try:
  os.mkdir(dbfolder)
except FileExistsError:
  pass

def msg(mp):
        loc = mp.text().find(" :") + len(" :")
        st = datetime.datetime.fromtimestamp(time.time()).strftime('%Y-%m-%d %H:%M:%S')
        fout = "[" + st + "] " + "<" + mp.ircuser() + "> " + mp.text()[loc:]
        if len(mp.text()[loc:]) > 0:
            cname = main.getchannel()
            cname  = cname.replace("#","")
            if cname == main.ircprofiles[main.currentprofile]["nick"]:
                cname = main.getuser()
            with open(dbfolder + "/" + cname + ".channel", "w"):
              pass
            with open(dbfolder + "/" + cname + ".channel", "a") as f:
                f.write(fout + "\n")

def output():
        st = datetime.datetime.fromtimestamp(time.time()).strftime('%Y-%m-%d %H:%M:%S')
        fout = "[" + st + "] " + "<" + main.ircprofiles[main.currentprofile]["nick"] + "> " + main.outputtext
        if len(main.outputtext) > 0:
            cname = main.outputchannel<commit_msg>log fix<commit_after># -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from base import *
import datetime
import sys
import time
import os

dbfolder = c_redeclipse.dbhome + "/logs"
try:
  os.mkdir(dbfolder)
except:
  pass

def msg(mp):
        loc = mp.text().find(" :") + len(" :")
        st = datetime.datetime.fromtimestamp(time.time()).strftime('%Y-%m-%d %H:%M:%S')
        fout = "[" + st + "] " + "<" + mp.ircuser() + "> " + mp.text()[loc:]
        if len(mp.text()[loc:]) > 0:
            cname = main.getchannel()
            cname  = cname.replace("#","")
            if cname == main.ircprofiles[main.currentprofile]["nick"]:
                cname = main.getuser()
            with open(dbfolder + "/" + cname + ".channel", "w"):
              pass
            with open(dbfolder + "/" + cname + ".channel", "a") as f:
                f.write(fout + "\n")

def output():
        st = datetime.datetime.fromtimestamp(time.time()).strftime('%Y-%m-%d %H:%M:%S')
        fout = "[" + st + "] " + "<" + main.ircprofiles[main.currentprofile]["nick"] + "> " + main.outputtext
        if len(main.outputtext) > 0:
            cname = main.outputchannel
{'fraction_non_alphanumeric': 0.20618556701030927, 'fraction_numerical': 0.003436426116838488, 'mean_word_length': 2.230235783633842, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '779035', 'n_tokens_mistral': 815, 'n_tokens_neox': 788, 'n_words': 153}