<commit_before># -*- coding: utf-8 -*-

import schedule
from feed import load_feed
from twitter import send_queued_tweet
import time
import os


RSS_FEED_LIST = os.environ['RSS_FEED_LIST']


def parse_feed_list(s):
    parsed = s.split(',')

    if parsed == ['']:
        return []
    else:
        return parsed


def main():
    rsslist = parse_feed_list(RSS_FEED_LIST)
    schedule.every(10).seconds.do(load_feed, rsslist)
    schedule.every(5).minutes.do(send_queued_tweet)

    while True:
        schedule.run_pending()
        time.sleep(1)


def __main__():
    main()


if __name__ == "__main__":
    try:
        __main__()
    except (KeyboardInterrupt):
        exit('Received Ctrl+C. Stopping application.', 1)
<commit_msg>Adjust when to load data.<commit_after># -*- coding: utf-8 -*-

import schedule
from feed import load_feed
from twitter import send_queued_tweet
import time
import os


RSS_FEED_LIST = os.environ['RSS_FEED_LIST']


def parse_feed_list(s):
    parsed = s.split(',')

    if parsed == ['']:
        return []
    else:
        return parsed


def main():
    rsslist = parse_feed_list(RSS_FEED_LIST)
    schedule.every().hour.do(load_feed, rsslist)
    schedule.every(5).minutes.do(send_queued_tweet)

    while True:
        schedule.run_pending()
        time.sleep(1)


def __main__():
    main()


if __name__ == "__main__":
    try:
        __main__()
    except (KeyboardInterrupt):
        exit('Received Ctrl+C. Stopping application.', 1)

{'fraction_non_alphanumeric': 0.12204989885367498, 'fraction_numerical': 0.006743088334457181, 'mean_word_length': 3.0108108108108107, 'pattern_counts': {'":': 2, '<': 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': '3277324', 'n_tokens_mistral': 524, 'n_tokens_neox': 506, 'n_words': 114}