 import os <EOL> from gluon . settings import global_settings , read_file <EOL> def index ( ) : <EOL> app = request . args ( <NUM_LIT:0> ) <EOL> return dict ( app = app ) <EOL> def profiler ( ) : <EOL> """<STR_LIT>""" <EOL> KEY = '<STR_LIT>' <EOL> filename = global_settings . cmd_options . profiler_filename <EOL> data = '<STR_LIT>' <EOL> if filename : <EOL> if KEY in request . cookies : <EOL> size = int ( request . cookies [ KEY ] . value ) <EOL> else : <EOL> size = <NUM_LIT:0> <EOL> if os . path . exists ( filename ) : <EOL> data = read_file ( '<STR_LIT>' , '<STR_LIT:rb>' ) <EOL> if size < len ( data ) : <EOL> data = data [ size : ] 
 else : 
 import os <EOL> from gluon . settings import global_settings , read_file <EOL> def index ( ) : <EOL> app = request . args ( <NUM_LIT:0> ) <EOL> return dict ( app = app ) <EOL> def profiler ( ) : <EOL> """<STR_LIT>""" <EOL> KEY = '<STR_LIT>' <EOL> filename = global_settings . cmd_options . profiler_filename <EOL> data = '<STR_LIT>' <EOL> if filename : <EOL> if KEY in request . cookies : <EOL> size = int ( request . cookies [ KEY ] . value ) <EOL> else : <EOL> size = <NUM_LIT:0> <EOL> if os . path . exists ( filename ) : <EOL> data = read_file ( '<STR_LIT>' , '<STR_LIT:rb>' ) <EOL> if size < len ( data ) : <EOL> data = data [ size : ] <EOL> else : <EOL> size = <NUM_LIT:0> <EOL> size += len ( data ) <EOL> response . cookies [ KEY ] = size <EOL> return data </s>
