<s> '''<STR_LIT>''' <EOL> import sys , os <EOL> import pprint <EOL> from oauth2client . anyjson import simplejson <EOL> import googleDriveAccess as gda <EOL> import logging <EOL> logging . basicConfig ( ) <EOL> logger = logging . getLogger ( ) <EOL> SCRIPT_TYPE = '<STR_LIT>' <EOL> logging . getLogger ( ) . setLevel ( getattr ( logging , '<STR_LIT>' ) ) <EOL> basedir = os . path . abspath ( '<STR_LIT:.>' ) <EOL> da = gda . DAClient ( basedir , script = True ) <EOL> q = "<STR_LIT>" <EOL> e = da . execQuery ( q , noprint = True ) <EOL> print '<STR_LIT>' % ( len ( e [ '<STR_LIT>' ] ) , q ) <EOL> e = da . execQuery ( q , repeattoken = True , noprint = False , ** { '<STR_LIT>' : <NUM_LIT:10> } ) <EOL> print '<STR_LIT>' % ( len ( e [ '<STR_LIT>' ] ) , q ) <EOL> e = da . execQuery ( q , ** { '<STR_LIT>' : <NUM_LIT:3> } ) <EOL> print '<STR_LIT>' % ( len ( e [ '<STR_LIT>' ] ) , q ) <EOL> da . execQuery ( "<STR_LIT>" ) <EOL> da . execQuery ( "<STR_LIT>" ) <EOL> da . execQuery ( "<STR_LIT>" ) <EOL> da . execQuery ( "<STR_LIT>" ) <EOL> da . execQuery ( "<STR_LIT>" ) <EOL> da . execQuery ( "<STR_LIT>" ) <EOL> da . execQuery ( "<STR_LIT>" ) <EOL> da . execQuery ( "<STR_LIT>" ) <EOL> e = da . execQuery ( "<STR_LIT>" % SCRIPT_TYPE [ : - <NUM_LIT:5> ] ) <EOL> download_url = e [ '<STR_LIT>' ] [ <NUM_LIT:0> ] [ '<STR_LIT>' ] [ SCRIPT_TYPE ] <EOL> resp , content = da . service . _http . request ( download_url ) <EOL> if resp . status != <NUM_LIT:200> : raise Exception ( '<STR_LIT>' % resp ) <EOL> data = simplejson . loads ( content ) <EOL> pprint . pprint ( data [ '<STR_LIT>' ] ) <EOL> pprint . pprint ( data [ '<STR_LIT>' ] [ <NUM_LIT:0> ] ) <EOL> pprint . pprint ( data [ '<STR_LIT>' ] [ <NUM_LIT:0> ] [ '<STR_LIT:name>' ] ) <EOL> pprint . pprint ( data [ '<STR_LIT>' ] [ <NUM_LIT:0> ] [ '<STR_LIT:type>' ] ) <EOL> pprint . pprint ( data [ '<STR_LIT>' ] [ <NUM_LIT:0> ] [ '<STR_LIT:source>' ] ) </s>
