<commit_before>def main():    
    from datetime import datetime
    nownew = datetime.now()
    p = nownew.day
    k = nownew.month
    v = nownew.year
    if p < 10:
        if k < 10:
            strN = "0" + str(p) + "0" + str(k) + str(v)
        else:    
            strN = "0" + str(p) + str(k) + str(v)
    if k < 10 and p > 10:
        strN = str(p) + "0" + str(k) + str(v)
    else:    
        strN = str(p) + str(k) + str(v)
    file = open("tasklists/tasklist-downloader.txt", "r")
    strL = file.read()
    print(strL, strN)
    if  strN != strL:
        print("Downloader ajo")
        return 0
    print("Downloader ei ajo")
    return 1
<commit_msg>Cleaned up legacy code, switched to using json datafiles<commit_after>def main():    
    from datetime import datetime
    from jsonhandler import importJSON
    nownew = datetime.now()
    p = nownew.day
    k = nownew.month
    v = nownew.year
    strN = str("{:02d}{:02d}{:4d}".format(p, k, v))
    data = importJSON("tasklists/tasklist.json")
    strL = data["downloader_time"]
    print(strL, strN)
    if  strN != strL:
        print("Downloader ajo")
        return 0
    print("Downloader ei ajo")
    return 1

{'fraction_non_alphanumeric': 0.13816343723673125, 'fraction_numerical': 0.017691659646166806, 'mean_word_length': 2.126315789473684, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2699224', 'n_tokens_mistral': 446, 'n_tokens_neox': 429, 'n_words': 115}