plotting/plot_harvestrate/prepare_data.py
def prepare_wdt(result_file, clf_file):
    """
    Prepare data from website discovery tool

    Args:
    - result_file: output from wdt
    - clf_file: classification result
    """
    url2label, site2label = _read_clf_file(clf_file)
    urls = _read_result_file(result_file) # urls ordered by timestamp
    relev_pages, relev_sites = _count_relev(url2label, site2label, urls)
    return relev_pages, relev_sites

    Prepare data from website discovery tool

    Args:
    - result_file: output from wdt
    - clf_file: classification result
    
Prepare data from website discovery tool
Args:
result_file: output from wdt
clf_file: classification result
Prepare data from website discovery tool Args : result_file : output from wdt clf_file : classification result
def prepare_wdt(result_file, clf_file):
    url2label, site2label = _read_clf_file(clf_file)
    urls = _read_result_file(result_file) 
    relev_pages, relev_sites = _count_relev(url2label, site2label, urls)
    return relev_pages, relev_sites
def prepare_wdt ( result_file , clf_file ) : url2label , site2label = _read_clf_file ( clf_file ) urls = _read_result_file ( result_file ) relev_pages , relev_sites = _count_relev ( url2label , site2label , urls ) return relev_pages , relev_sites
Prepare data from website discovery tool
Args:
 result_file: output from wdt
 clf_file: classification result
Prepare data from website discovery tool Args : result_file : output from wdt clf_file : classification result
"""
    Prepare data from website discovery tool

    Args:
    - result_file: output from wdt
    - clf_file: classification result
    """ # urls ordered by timestamp
result_file
clf_file