<s> from flask_restful . utils . crypto import decrypt , encrypt <EOL> DEFAULT_PAGE_SIZE = <NUM_LIT:50> <EOL> def retrieve_next_page ( key , seed , args , callback , initial_bookmark = None ) : <EOL> """<STR_LIT>""" <EOL> filter = dict ( args ) <EOL> if '<STR_LIT>' in filter : <EOL> initial_bookmark = decrypt ( filter . pop ( '<STR_LIT>' ) , key , seed ) <EOL> page_size = filter . pop ( '<STR_LIT>' , DEFAULT_PAGE_SIZE ) <EOL> result_list , new_bookmark , approx_result_size = callback ( filter , initial_bookmark , page_size ) <EOL> filter [ '<STR_LIT>' ] = encrypt ( new_bookmark , key , seed ) <EOL> filter [ '<STR_LIT>' ] = page_size <EOL> return result_list , filter , approx_result_size </s>
