def get_code_sha_from_dockerurl(docker_url):
    """We encode the sha of the code that built a docker image *in* the docker
    url. This function takes that url as input and outputs the partial sha
    """
    parts = docker_url.split('-')
    return parts[-1][:8] % "git%s"
dataset/ETHPy150Open Yelp/paasta/paasta_tools/utils.py/get_code_sha_from_dockerurl/swapped operands of `%`