<s> import logging <EOL> import random <EOL> from pyleus . storm import Spout <EOL> log = logging . getLogger ( '<STR_LIT>' ) <EOL> LINES = """<STR_LIT>""" . strip ( ) . split ( '<STR_LIT:\n>' ) <EOL> class LineSpout ( Spout ) : <EOL> OUTPUT_FIELDS = [ "<STR_LIT>" ] <EOL> def next_tuple ( self ) : <EOL> line = random . choice ( LINES ) <EOL> log . debug ( line ) <EOL> self . emit ( ( line , ) , tup_id = random . randrange ( <NUM_LIT> ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> logging . basicConfig ( <EOL> level = logging . DEBUG , <EOL> filename = '<STR_LIT>' , <EOL> format = "<STR_LIT>" , <EOL> filemode = '<STR_LIT:a>' , <EOL> ) <EOL> LineSpout ( ) . run ( ) </s>
