def _data_source_ref_search(job_configs, func, prune=lambda x: x):
    args = set([prune(arg) for arg in job_configs.get(
        'args', []) if func(arg)])

    configs = set([prune(val) for val in six.itervalues(
        job_configs.get('configs', {})) if func(val)])

    params = set([prune(val) for val in six.itervalues(
        job_configs.get('params', {})) if func(val)])

    return list(args | configs | params)
Sorts higher scored passages first.
dataset/ETHPy150Open openstack/sahara/sahara/service/edp/job_utils.py/_data_source_ref_search--crossover with--dataset/ETHPy150Open tallstreet/Whoosh-AppEngine/src/whoosh/highlight.py/SCORE