#NEWLINE# def _get_hypothesis( self , request , biiresponse ) : #NEWLINE# #INDENT# hypothesis = [ ] #NEWLINE# if request . find : #NEWLINE# #INDENT# possible_blocks = request . possible_blocks ( ) #NEWLINE# logger . debug ( ( 'Possible blocks %s' % possible_blocks ) ) #NEWLINE# for ( block_name , decls ) in possible_blocks . items ( ) : #NEWLINE# #INDENT# hyp = self . _compute_new ( block_name , block_name , request . policy , request . block_names , biiresponse ) #NEWLINE# if ( len ( hyp ) > 0 ) : #NEWLINE# #INDENT# hypothesis . append ( hyp ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# existing_hypothesis = self . _compute_existing ( request , biiresponse ) #NEWLINE# if ( len ( existing_hypothesis ) > 0 ) : #NEWLINE# #INDENT# hypothesis . extend ( existing_hypothesis ) #NEWLINE# #UNINDENT# logger . debug ( ( 'Hypothesis %s' % hypothesis ) ) #NEWLINE# return hypothesis