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