#NEWLINE# def create_sample( self , count = 100 , custom = None , pipe = None ) : #NEWLINE# #INDENT# if ( not pipe ) : #NEWLINE# #INDENT# pipe = self . input #NEWLINE# #UNINDENT# pipe . empty ( ) #NEWLINE# pipe . fields = brewery . FieldList ( [ 'i' , 'q' , 'str' , 'custom' ] ) #NEWLINE# for i in range ( 0 , count ) : #NEWLINE# #INDENT# pipe . put ( [ i , ( float ( i ) / 4 ) , ( 'item-%s' % i ) , custom ] )