plotting/plot_coverage/prepare_data.py
def _read_sf_result_file(result_file, max_pages):
    """
    Load all sites from the result file of SEEDFINDER 
    """
    sites = set()
    count = 0
    with open(result_file) as lines:
        for line in lines:
            count += 1
            values = line.strip().split(', ') 
            url = values[-1]
            url = URLUtility.normalize(url)
            site = URLUtility.get_host(url)
            sites.add(site)
            if count == max_pages:
                break
    return sites

    Load all sites from the result file of SEEDFINDER 
    
Load all sites from the result file of SEEDFINDER
Load all sites from the result file of SEEDFINDER
def _read_sf_result_file(result_file, max_pages):
    sites = set()
    count = 0
    with open(result_file) as lines:
        for line in lines:
            count += 1
            values = line.strip().split(', ') 
            url = values[-1]
            url = URLUtility.normalize(url)
            site = URLUtility.get_host(url)
            sites.add(site)
            if count == max_pages:
                break
    return sites
def _read_sf_result_file ( result_file , max_pages ) : sites = set ( ) count = 0 with open ( result_file ) as lines : for line in lines : count += 1 values = line . strip ( ) . split ( ', ' ) url = values [ - 1 ] url = URLUtility . normalize ( url ) site = URLUtility . get_host ( url ) sites . add ( site ) if count == max_pages : break return sites
Load all sites from the result file of SEEDFINDER
Load all sites from the result file of SEEDFINDER
"""
    Load all sites from the result file of SEEDFINDER 
    """
result_file
max_pages