def exists(path):
    try:
        path = os.path.join(path, '.git')
        log.debug("Checking for path '%s'", path)
        os.stat(path)
        return True
    except:
        log.debug('Path does not exist, or .git dir was missing')
        return False
Compute ranking-based average precision
dataset/ETHPy150Open markstory/lint-review/lintreview/git.py/exists--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/metrics/ranking.py/label_ranking_average_precision_score