def get_repository_owner(cleaned_repository_url):
 items = cleaned_repository_url.split('/repos/')
 repo_path = items[1]
 if repo_path.startswith('/'):
  repo_path = repo_path.replace('/', '', 1)
 return repo_path.lstrip('/').split('/')[0]

def get_repository_owner ( cleaned_repository_url ) : items = cleaned_repository_url . split ( '/repos/' ) repo_path = items [ 1 ] if repo_path . startswith ( '/' ) : repo_path = repo_path . replace ( '/' , '' , 1 ) return repo_path . lstrip ( '/' ) . split ( '/' ) [ 0 ]
gvien a "cleaned" repository clone url .