def parse_remote_url(url):
<EOL>if url.startswith("<STR_LIT>"):<EOL><INDENT>path = url.split("<STR_LIT::>", <NUM_LIT:1>)[<NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>parsed = urllib.parse.urlparse(url)<EOL>path = parsed.path[<NUM_LIT:1>:]<EOL><DEDENT>assert path.endswith("<STR_LIT>"), path<EOL>path = path[:-<NUM_LIT:4>]<EOL>return path.split("<STR_LIT:/>")<EOL>
return a tuple of (org, repo) from the remote git URL