<commit_before>#! usr/bin/env python
# *-* coding: utf-8 *-*
"""A Fibonacci sequence generator function with loops."""


def fibonacci(maxint):
    """This is a docstring.

    Arg:
        maxint(int): an integer that will serve as the upper bound of the loop

    Return:
        A new generated sequence as a list

    Example:
        >>>import task_01
        >>>task_01.fibonacci(10)
        [0,1,1,2,3,5,8]
    """
    a, b = 0, 1
    newlist = [a]
    while b < maxint:
        print b
        a, b = b, a+b
        newlist.append(a)
    return newlist<commit_msg>making varible names valid<commit_after>#! usr/bin/env python
# *-* coding: utf-8 *-*
"""A Fibonacci sequence generator function with loops."""


def fibonacci(maxint):
    """This is a docstring.

    Arg:
        maxint(int): an integer that will serve as the upper bound of the loop

    Return:
        A new generated sequence as a list

    Example:
        >>>import task_01
        >>>task_01.fibonacci(10)
        [0,1,1,2,3,5,8]
    """
    lastnum, curnum = 0, 1
    newlist = [lastnum]
    while curnum < maxint:
        lastnum, curnum = curnum, lastnum+curnum
        newlist.append(lastnum)
    return newlist
{'fraction_non_alphanumeric': 0.11872909698996656, 'fraction_numerical': 0.026755852842809364, 'mean_word_length': 2.3066298342541436, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '1812336', 'n_tokens_mistral': 428, 'n_tokens_neox': 401, 'n_words': 126}