<commit_before>
import os
import sys
import datetime
import logging

logging.basicConfig(format='%(levelname)s:%(thread)d:%(message)s', level=logging.DEBUG)


PROJDIR = os.path.abspath(os.path.dirname(__file__))
ROOTDIR = os.path.split(PROJDIR)[0]
try:
    # 
    import site
    site.addsitedir(ROOTDIR)
except ImportError:
    print('Development of keepcd')


import settings

from scheduler.hackernews import run as hackernews_run
from scheduler.producthunt_api import run as producthunt_run
from scheduler.designernews import run as designernews_run


from apscheduler.schedulers.blocking import BlockingScheduler

scheduler = BlockingScheduler()

now = datetime.datetime.now()
now = now + datetime.timedelta(seconds=30)
scheduler.add_job(hackernews_run,'interval', minutes=10,  id='hackernews', next_run_time=now)
scheduler.add_job(producthunt_run,'interval', minutes=10,  id='producthunt', next_run_time=now)
scheduler.add_job(designernews_run,'interval', minutes=10,  id='designernews', next_run_time=now)
scheduler.start()

# hackernews_run()
# producthunt_run()
designernews_run()<commit_msg>logging filename<commit_after>
import os
import sys
import datetime
import logging

logging.basicConfig(filename="scheduler.log", format='%(levelname)s:%(thread)d:%(message)s', level=logging.DEBUG)


PROJDIR = os.path.abspath(os.path.dirname(__file__))
ROOTDIR = os.path.split(PROJDIR)[0]
try:
    # 
    import site
    site.addsitedir(ROOTDIR)
except ImportError:
    print('Development of keepcd')


import settings

from scheduler.hackernews import run as hackernews_run
from scheduler.producthunt_api import run as producthunt_run
from scheduler.designernews import run as designernews_run


from apscheduler.schedulers.blocking import BlockingScheduler

scheduler = BlockingScheduler()

now = datetime.datetime.now()
now = now + datetime.timedelta(seconds=30)
scheduler.add_job(hackernews_run,'interval', minutes=10,  id='hackernews', next_run_time=now)
scheduler.add_job(producthunt_run,'interval', minutes=10,  id='producthunt', next_run_time=now)
scheduler.add_job(designernews_run,'interval', minutes=10,  id='designernews', next_run_time=now)
scheduler.start()

# hackernews_run()
# producthunt_run()
# designernews_run()
{'fraction_non_alphanumeric': 0.11106135244066279, 'fraction_numerical': 0.00806090461262875, 'mean_word_length': 7.367041198501872, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '687132', 'n_tokens_mistral': 769, 'n_tokens_neox': 740, 'n_words': 143}