def baseDomain(domain, includeScheme=True):
    result = ''
    url    = urlparse(domain)
    if includeScheme:
        result = '%s://' % url.scheme
    if len(url.netloc) == 0:
        result += url.path
    else:
        result += url.netloc
    return result
Finder successfully finds one of a set of duplicates in different
dataset/ETHPy150Open bear/python-indieweb/indieweb.py/baseDomain--crossover with--dataset/ETHPy150Open pypa/pip/tests/unit/test_finder.py/test_duplicates_sort_ok