<s> """<STR_LIT>""" <EOL> from google . appengine . datastore import datastore_stats_generator <EOL> from google . appengine . tools . devappserver2 . admin import admin_request_handler <EOL> class DatastoreStatsHandler ( admin_request_handler . AdminRequestHandler ) : <EOL> def get ( self ) : <EOL> self . response . write ( self . render ( '<STR_LIT>' , { } ) ) <EOL> def post ( self ) : <EOL> if self . request . get ( '<STR_LIT>' ) : <EOL> msg = datastore_stats_generator . DatastoreStatsProcessor ( ) . Run ( ) . Report ( ) <EOL> self . response . headers [ '<STR_LIT:Content-Type>' ] = '<STR_LIT>' <EOL> self . response . write ( msg ) <EOL> else : <EOL> self . response . status_int = <NUM_LIT> </s>
