plotting/plot_coverage/prepare_data.py
def _read_ac_result_file(result_file, max_pages):
    """
    Load all sites from the result file of ACHE 
    """
    count = 0
    sites = set()
    with open(result_file) as lines:
        for line in lines:  
            count += 1
            url = line.split()[0]
            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 ACHE 
    
Load all sites from the result file of ACHE
Load all sites from the result file of ACHE
def _read_ac_result_file(result_file, max_pages):
    count = 0
    sites = set()
    with open(result_file) as lines:
        for line in lines:  
            count += 1
            url = line.split()[0]
            url = URLUtility.normalize(url)
            site = URLUtility.get_host(url)
            sites.add(site)
            if count == max_pages:
                break
    return sites
def _read_ac_result_file ( result_file , max_pages ) : count = 0 sites = set ( ) with open ( result_file ) as lines : for line in lines : count += 1 url = line . split ( ) [ 0 ] 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 ACHE
Load all sites from the result file of ACHE
"""
    Load all sites from the result file of ACHE 
    """
result_file
max_pages