def collect_entities(db_project, vcs_project):
    vcs_entities = get_vcs_entities(vcs_project)
    db_entities = get_db_entities(db_project)
    entity_keys = set().union(db_entities.keys(), vcs_entities.keys())

    for key in entity_keys:
        yield key, db_entities.get(key, None), vcs_entities.get(key, None)
Prepare parameters to be passed in query strings to the Xively API.
dataset/ETHPy150Open mozilla/pontoon/pontoon/sync/core.py/collect_entities--crossover with--dataset/ETHPy150Open xively/xively-python/xively/managers.py/ManagerBase._prepare_params