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

import SimpleHTTPServer
import BaseHTTPServer
import cgi
import logging
import urllib
import sys, os
import time
from math import log, exp
from thread import start_new_thread
from exchanges import *

logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
fh = logging.FileHandler('logs/%d.log' % time.time())
fh.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
ch.setLevel(logging.INFO)

formatter = logging.Formatter(fmt = '%(asctime)s %(levelname)s: %(message)s', datefmt="%Y/%m/%d-%H:%M:%S")
fh.setFormatter(formatter)
ch.setFormatter(formatter)
logger.addHandler(fh)
logger.addHandler(ch)

try: os.makedirs('logs')
except: pass

_port = 2019
_interest = { 'poloniex' : { 'btc' : { 'rate' : 0.002, 'target' : 100.0 } }, 'ccedk' : { 'btc' : { 'rate' : 0.002, 'target' : 100.0 } } }
_nuconfig = '%s/.nu/nu.conf'%os.getenv("HOME") # path to nu.conf<commit_msg>logs folder fix<commit_after>#! /usr/bin/env python

import SimpleHTTPServer
import BaseHTTPServer
import cgi
import logging
import urllib
import sys, os
import time
from math import log, exp
from thread import start_new_thread
from exchanges import *

try: os.makedirs('logs')
except: pass

logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
fh = logging.FileHandler('logs/%d.log' % time.time())
fh.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
ch.setLevel(logging.INFO)

formatter = logging.Formatter(fmt = '%(asctime)s %(levelname)s: %(message)s', datefmt="%Y/%m/%d-%H:%M:%S")
fh.setFormatter(formatter)
ch.setFormatter(formatter)
logger.addHandler(fh)
logger.addHandler(ch)

_port = 2019
_interest = { 'poloniex' : { 'btc' : { 'rate' : 0.002, 'target' : 100.0 } }, 'ccedk' : { 'btc' : { 'rate' : 0.002, 'target' : 100.0 } } }
_nuconfig = '%s/.nu/nu.conf'%os.getenv("HOME") # path to nu.conf
{'fraction_non_alphanumeric': 0.1694169416941694, 'fraction_numerical': 0.022002200220022004, 'mean_word_length': 5.382456140350877, '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': '6092224', 'n_tokens_mistral': 709, 'n_tokens_neox': 666, 'n_words': 149}