def _clean_up_chronos_jobs(context):
    if hasattr(context, 'chronos_client'):
        while len(context.chronos_client.list()) > 0:
            jobs = context.chronos_client.list()
            for job in jobs:
                print "after_scenario: Job %s is present in chronos. Deleting." % job['name']
                context.chronos_client.delete(job['name'])
            time.sleep(1)
    if hasattr(context, 'jobs'):
        context.jobs = {}
Compute the distance matrix from a vector array X and optional Y.
dataset/ETHPy150Open Yelp/paasta/paasta_itests/environment.py/_clean_up_chronos_jobs--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/metrics/pairwise.py/pairwise_distances