#NEWLINE# def _freq_seq( sdb , prefix , prefix_support , min_support , freq_seqs ) : #NEWLINE# #INDENT# if prefix : #NEWLINE# #INDENT# freq_seqs . add ( ( prefix , prefix_support ) ) #NEWLINE# #UNINDENT# locally_frequents = _local_freq_items ( sdb , prefix , min_support ) #NEWLINE# if ( not locally_frequents ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# for ( item , support ) in locally_frequents : #NEWLINE# #INDENT# new_prefix = ( prefix + ( item , ) ) #NEWLINE# new_sdb = _project ( sdb , new_prefix ) #NEWLINE# _freq_seq ( new_sdb , new_prefix , support , item , freq_seqs )