#NEWLINE# def compute_family_coverage( pname , bname , release , dname , srelease ) : #NEWLINE# #INDENT# prelease = ProjectRelease . objects . filter ( project__dir_name = pname ) . filter ( release = release ) [ 0 ] #NEWLINE# codebase = CodeBase . objects . filter ( project_release = prelease ) . filter ( name = bname ) [ 0 ] #NEWLINE# psrelease = ProjectRelease . objects . filter ( project__dir_name = pname ) . filter ( release = srelease ) [ 0 ] #NEWLINE# document = Document . objects . filter ( project_release = psrelease ) . filter ( title = dname ) [ 0 ] #NEWLINE# patterns = CodePattern . objects . filter ( codebase = codebase ) . all ( ) #NEWLINE# progress_monitor = CLIProgressMonitor ( min_step = 1.0 ) #NEWLINE# compute_coverage ( patterns , 'd' , prelease , progress_monitor )