<s> def stat_compute ( vuln_to_hosts , host_to_vulns ) : <EOL> stat_vuln_count = len ( vuln_to_hosts ) <EOL> stat_host_count = len ( host_to_vulns ) <EOL> host_counts = { } <EOL> most_pop_vuln = ( None , <NUM_LIT:0> ) <EOL> for vuln , hosts in vuln_to_hosts . iteritems ( ) : <EOL> if len ( hosts ) > most_pop_vuln [ <NUM_LIT:1> ] : <EOL> most_pop_vuln = ( vuln , len ( hosts ) ) <EOL> for host in hosts : <EOL> if host not in host_counts : <EOL> host_counts [ host ] = <NUM_LIT:1> <EOL> else : <EOL> host_counts [ host ] += <NUM_LIT:1> <EOL> most_vuln_host = ( None , <NUM_LIT:0> ) <EOL> for host , count in host_counts . iteritems ( ) : <EOL> if count > most_vuln_host [ <NUM_LIT:1> ] : <EOL> most_vuln_host = ( host , count ) <EOL> return ( stat_vuln_count , stat_host_count , most_pop_vuln [ <NUM_LIT:0> ] , most_vuln_host [ <NUM_LIT:0> ] ) <EOL> def output ( csv_data ) : <EOL> data = stat_compute ( csv_data . vuln_to_hosts , csv_data . host_to_vulns ) <EOL> print "<STR_LIT>" <EOL> print "<STR_LIT>" , str ( data [ <NUM_LIT:0> ] ) <EOL> print "<STR_LIT>" , str ( data [ <NUM_LIT:1> ] ) <EOL> if data [ <NUM_LIT:0> ] != <NUM_LIT:0> : <EOL> print "<STR_LIT>" , csv_data . id_to_name [ data [ <NUM_LIT:2> ] ] <EOL> print "<STR_LIT>" , data [ <NUM_LIT:3> ] <EOL> print "<STR_LIT:U+0020>" </s>
