def partition(predicate, values):
    results = ([], [])
    for item in values:
        results[predicate(item)].append(item)
    return results
Propagate the provides attribute to the synthetic java_library() target for publishing.
dataset/ETHPy150Open django/django/django/utils/functional.py/partition--crossover with--dataset/ETHPy150Open pantsbuild/pants/src/python/pants/backend/codegen/tasks/jaxb_gen.py/JaxbGen._copy_target_attributes