<s> import urllib2 <EOL> from threading import Thread <EOL> URL = '<STR_LIT>' <EOL> class SiteRequest : <EOL> def __init__ ( self , x = <NUM_LIT:10> , suffixName = '<STR_LIT>' , tables = [ ] ) : <EOL> self . __x = x <EOL> self . __tables = tables <EOL> self . __suffixName = suffixName <EOL> def hit ( self , hitCount ) : <EOL> for i in range ( hitCount ) : <EOL> for table in self . __tables : <EOL> pt = urllib2 . urlopen ( URL + '<STR_LIT:/>' + self . __suffixName + '<STR_LIT:/>' + table ) <EOL> print ( pt . read ( ) ) <EOL> theBearArgs = ( <NUM_LIT:1> , '<STR_LIT>' , [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> gcsArgs = ( <NUM_LIT:1> , '<STR_LIT>' , [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> argList = [ theBearArgs , gcsArgs ] <EOL> def main ( ) : <EOL> for i in argList : <EOL> th = Thread ( target = lambda * args : SiteRequest ( * args ) . hit ( <NUM_LIT> ) , args = i ) <EOL> th . start ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
