def get_matching_apps(servicename, instance, client, embed_failures=False):
    jobid = format_job_id(servicename, instance)
    expected_prefix = "/%s%s" % (jobid, MESOS_TASK_SPACER)
    return [app for app in client.list_apps(embed_failures=embed_failures) if app.id.startswith(expected_prefix)]
Testing the
dataset/ETHPy150Open Yelp/paasta/paasta_tools/marathon_tools.py/get_matching_apps--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/tests/test_review_comment.py/ResourceItemTests.test_put_issue_status_after_publish