<commit_before>#!parrott-env/bin/python

from app import app, collector
from apscheduler.scheduler import Scheduler

import datetime

def foo():
    myFile = open ('/Users/ftseng/Desktop/foo.txt', 'w')
    myFile.write(str(datetime.datetime.now()))
    myFile.close()

if __name__ == '__main__':
    # Schedule the Collector
    scheduler = Scheduler()
    #scheduler.add_interval_job(collector.collect(), minutes=30)
    scheduler.add_interval_job(foo, seconds=5)
    scheduler.start()

    app.run(debug=True)<commit_msg>collector is now scheduled in application.py<commit_after>#!parrott-env/bin/python

from app import app, collector
from apscheduler.scheduler import Scheduler

if __name__ == '__main__':
    # Schedule the Collector
    scheduler = Scheduler()
    scheduler.add_interval_job(collector.collect(), minutes=30)
    scheduler.start()

    app.run(debug=True)
{'fraction_non_alphanumeric': 0.11744583808437856, 'fraction_numerical': 0.005701254275940707, 'mean_word_length': 4.556962025316456, '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': '566522', 'n_tokens_mistral': 290, 'n_tokens_neox': 284, 'n_words': 60}