src/garbage_collector.py
def submissions_cleaner():
    """This function cleans out the submissions_processed.txt file. This
    function is meant to run once per month.

    Returns
    -------

    """
    submission_file = \
        open('../data/submissions_processed.txt', 'r').read().split('\n')

    last_50 = '\n'.join(submission_file[-51:-1])
    open('../data/submissions_processed.txt', 'w')
    open('../data/submissions_processed.txt', 'a').write(
        last_50
    )
This function cleans out the submissions_processed.txt file. This
    function is meant to run once per month.

    Returns
    -------

    
This function cleans out the submissions_processed.txt file. This
function is meant to run once per month.

Returns
This function cleans out the submissions_processed . txt file . This function is meant to run once per month . Returns
def submissions_cleaner():
    submission_file = \
        open('../data/submissions_processed.txt', 'r').read().split('\n')
    last_50 = '\n'.join(submission_file[-51:-1])
    open('../data/submissions_processed.txt', 'w')
    open('../data/submissions_processed.txt', 'a').write(
        last_50
    )
def submissions_cleaner ( ) : submission_file = open ( '../data/submissions_processed.txt' , 'r' ) . read ( ) . split ( '\n' ) last_50 = '\n' . join ( submission_file [ - 51 : - 1 ] ) open ( '../data/submissions_processed.txt' , 'w' ) open ( '../data/submissions_processed.txt' , 'a' ) . write ( last_50 )
This function cleans out the submissions_processed.txt file.
This function cleans out the submissions_processed . txt file .
"""This function cleans out the submissions_processed.txt file. This
    function is meant to run once per month.

    Returns
    -------

    """