original_docstring: Parse the repo field to extract owner/name if it's a URL
docstring: Parse the repo field to extract owner/name if it's a URL
docstring_tokens: Parse the repo field to extract owner / name if it ' s a URL
code: def parse_repo_field(string):
      '''Parse the repo field to extract owner/name if it's a URL'''
      if string.startswith("http"):
          chunks=string.split('/')
          repo=chunks[len(chunks)-1]
          repo=repo.replace(".git", "")
          owner=chunks[len(chunks)-2]
      else:
          (owner, repo)=string.split('/')
      return (owner, repo)
code_tokens: def parse_repo_field ( string ) : if string . startswith ( "http" ) : chunks = string . split ( '/' ) repo = chunks [ len ( chunks ) - 1 ] repo = repo . replace ( ".git" , "" ) owner = chunks [ len ( chunks ) - 2 ] else : ( owner , repo ) = string . split ( '/' ) return ( owner , repo )
short_docstring: Parse the repo field to extract owner/name if it's a URL
short_docstring_tokens: Parse the repo field to extract owner / name if it ' s a URL
comment: '''Parse the repo field to extract owner/name if it's a URL'''