<commit_before>import datetime

def is_weekday(date):
    return True if date.weekday() in range(0, 5) else False

def weekdays_passed(start, end=datetime.datetime.now()):
    pass

def weekdays_until(end, start=datetime.datetime.now()):
    pass

def enumerate_weekdays(end, start=datetime.datetime.now()):
    pass

def prev_weekday(date, num_days=0):
    def inner(date):
        if is_weekday(date):
            return date

        day_count = 1 if date.weekday() == 5 else 2
        return date - datetime.timedelta(days=day_count)

    if not num_days:
        return inner(date)
    new_date = date - datetime.timedelta(days=num_days)
    return inner(new_date)

def next_weekday(date, num_days=0):
    def inner(date):<commit_msg>implemented generator function to to allow iteration over weekdays<commit_after>import datetime

def is_weekday(date):
    return True if date.weekday() in range(0, 5) else False

def weekdays_passed(start, end=datetime.datetime.now()):
    pass

def weekdays_until(end, start=datetime.datetime.now()):
    pass

def range_weekdays(start, end):
    while not start == end:
        if is_weekday(start):
            yield start
        start += datetime.timedelta(days=1)

def prev_weekdays(date, num_days=0):
    def inner(date):
        if is_weekday(date):
            return date

        day_count = 1 if date.weekday() == 5 else 2
        return date - datetime.timedelta(days=day_count)

    if not num_days:
        return inner(date)
    new_date = date - datetime.timedelta(days=num_days)
    return inner(new_date)

def next_weekday(date, num_days=0):
    def inner(date):
{'fraction_non_alphanumeric': 0.10302282541640963, 'fraction_numerical': 0.009253547193090685, 'mean_word_length': 3.3485254691689006, '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': '5120783', 'n_tokens_mistral': 538, 'n_tokens_neox': 522, 'n_words': 134}