repository_name
stringlengths
7
55
func_path_in_repository
stringlengths
4
223
func_name
stringlengths
1
134
whole_func_string
stringlengths
75
104k
language
stringclasses
1 value
func_code_string
stringlengths
75
104k
func_code_tokens
listlengths
19
28.4k
func_documentation_string
stringlengths
1
46.9k
func_documentation_tokens
listlengths
1
1.97k
split_name
stringclasses
1 value
func_code_url
stringlengths
87
315
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.organization_memberships
def organization_memberships(self, state=None, number=-1, etag=None): """List organizations of which the user is a current or pending member. :param str state: (option), state of the membership, i.e., active, pending :returns: iterator of :class:`Membership <github3.orgs.Membership>...
python
def organization_memberships(self, state=None, number=-1, etag=None): """List organizations of which the user is a current or pending member. :param str state: (option), state of the membership, i.e., active, pending :returns: iterator of :class:`Membership <github3.orgs.Membership>...
[ "def", "organization_memberships", "(", "self", ",", "state", "=", "None", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "params", "=", "None", "url", "=", "self", ".", "_build_url", "(", "'user'", ",", "'memberships'", ",", "'orgs'...
List organizations of which the user is a current or pending member. :param str state: (option), state of the membership, i.e., active, pending :returns: iterator of :class:`Membership <github3.orgs.Membership>`
[ "List", "organizations", "of", "which", "the", "user", "is", "a", "current", "or", "pending", "member", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L974-L987
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.pubsubhubbub
def pubsubhubbub(self, mode, topic, callback, secret=''): """Create/update a pubsubhubbub hook. :param str mode: (required), accepted values: ('subscribe', 'unsubscribe') :param str topic: (required), form: https://github.com/:user/:repo/events/:event :param str ...
python
def pubsubhubbub(self, mode, topic, callback, secret=''): """Create/update a pubsubhubbub hook. :param str mode: (required), accepted values: ('subscribe', 'unsubscribe') :param str topic: (required), form: https://github.com/:user/:repo/events/:event :param str ...
[ "def", "pubsubhubbub", "(", "self", ",", "mode", ",", "topic", ",", "callback", ",", "secret", "=", "''", ")", ":", "from", "re", "import", "match", "m", "=", "match", "(", "'https?://[\\w\\d\\-\\.\\:]+/\\w+/[\\w\\._-]+/events/\\w+'", ",", "topic", ")", "statu...
Create/update a pubsubhubbub hook. :param str mode: (required), accepted values: ('subscribe', 'unsubscribe') :param str topic: (required), form: https://github.com/:user/:repo/events/:event :param str callback: (required), the URI that receives the updates :para...
[ "Create", "/", "update", "a", "pubsubhubbub", "hook", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L990-L1016
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.pull_request
def pull_request(self, owner, repository, number): """Fetch pull_request #:number: from :owner:/:repository :param str owner: (required), owner of the repository :param str repository: (required), name of the repository :param int number: (required), issue number :return: :class...
python
def pull_request(self, owner, repository, number): """Fetch pull_request #:number: from :owner:/:repository :param str owner: (required), owner of the repository :param str repository: (required), name of the repository :param int number: (required), issue number :return: :class...
[ "def", "pull_request", "(", "self", ",", "owner", ",", "repository", ",", "number", ")", ":", "r", "=", "self", ".", "repository", "(", "owner", ",", "repository", ")", "return", "r", ".", "pull_request", "(", "number", ")", "if", "r", "else", "None" ]
Fetch pull_request #:number: from :owner:/:repository :param str owner: (required), owner of the repository :param str repository: (required), name of the repository :param int number: (required), issue number :return: :class:`Issue <github3.issues.Issue>`
[ "Fetch", "pull_request", "#", ":", "number", ":", "from", ":", "owner", ":", "/", ":", "repository" ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1018-L1027
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.rate_limit
def rate_limit(self): """Returns a dictionary with information from /rate_limit. The dictionary has two keys: ``resources`` and ``rate``. In ``resources`` you can access information about ``core`` or ``search``. Note: the ``rate`` key will be deprecated before version 3 of the ...
python
def rate_limit(self): """Returns a dictionary with information from /rate_limit. The dictionary has two keys: ``resources`` and ``rate``. In ``resources`` you can access information about ``core`` or ``search``. Note: the ``rate`` key will be deprecated before version 3 of the ...
[ "def", "rate_limit", "(", "self", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'rate_limit'", ")", "return", "self", ".", "_json", "(", "self", ".", "_get", "(", "url", ")", ",", "200", ")" ]
Returns a dictionary with information from /rate_limit. The dictionary has two keys: ``resources`` and ``rate``. In ``resources`` you can access information about ``core`` or ``search``. Note: the ``rate`` key will be deprecated before version 3 of the GitHub API is finalized. Do not r...
[ "Returns", "a", "dictionary", "with", "information", "from", "/", "rate_limit", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1029-L1050
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.repository
def repository(self, owner, repository): """Returns a Repository object for the specified combination of owner and repository :param str owner: (required) :param str repository: (required) :returns: :class:`Repository <github3.repos.Repository>` """ json = None ...
python
def repository(self, owner, repository): """Returns a Repository object for the specified combination of owner and repository :param str owner: (required) :param str repository: (required) :returns: :class:`Repository <github3.repos.Repository>` """ json = None ...
[ "def", "repository", "(", "self", ",", "owner", ",", "repository", ")", ":", "json", "=", "None", "if", "owner", "and", "repository", ":", "url", "=", "self", ".", "_build_url", "(", "'repos'", ",", "owner", ",", "repository", ")", "json", "=", "self",...
Returns a Repository object for the specified combination of owner and repository :param str owner: (required) :param str repository: (required) :returns: :class:`Repository <github3.repos.Repository>`
[ "Returns", "a", "Repository", "object", "for", "the", "specified", "combination", "of", "owner", "and", "repository" ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1052-L1064
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.revoke_authorization
def revoke_authorization(self, access_token): """Revoke specified authorization for an OAuth application. Revoke all authorization tokens created by your application. This will only work if you have already called ``set_client_id``. :param str access_token: (required), the access_token...
python
def revoke_authorization(self, access_token): """Revoke specified authorization for an OAuth application. Revoke all authorization tokens created by your application. This will only work if you have already called ``set_client_id``. :param str access_token: (required), the access_token...
[ "def", "revoke_authorization", "(", "self", ",", "access_token", ")", ":", "client_id", ",", "client_secret", "=", "self", ".", "_session", ".", "retrieve_client_credentials", "(", ")", "url", "=", "self", ".", "_build_url", "(", "'applications'", ",", "str", ...
Revoke specified authorization for an OAuth application. Revoke all authorization tokens created by your application. This will only work if you have already called ``set_client_id``. :param str access_token: (required), the access_token to revoke :returns: bool -- True if successful, ...
[ "Revoke", "specified", "authorization", "for", "an", "OAuth", "application", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1067-L1083
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.search_code
def search_code(self, query, sort=None, order=None, per_page=None, text_match=False, number=-1, etag=None): """Find code via the code search API. The query can contain any combination of the following supported qualifiers: - ``in`` Qualifies which fields are searche...
python
def search_code(self, query, sort=None, order=None, per_page=None, text_match=False, number=-1, etag=None): """Find code via the code search API. The query can contain any combination of the following supported qualifiers: - ``in`` Qualifies which fields are searche...
[ "def", "search_code", "(", "self", ",", "query", ",", "sort", "=", "None", ",", "order", "=", "None", ",", "per_page", "=", "None", ",", "text_match", "=", "False", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "params", "=", ...
Find code via the code search API. The query can contain any combination of the following supported qualifiers: - ``in`` Qualifies which fields are searched. With this qualifier you can restrict the search to just the file contents, the file path, or both. - ``langu...
[ "Find", "code", "via", "the", "code", "search", "API", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1103-L1156
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.search_issues
def search_issues(self, query, sort=None, order=None, per_page=None, text_match=False, number=-1, etag=None): """Find issues by state and keyword The query can contain any combination of the following supported qualifers: - ``type`` With this qualifier you can res...
python
def search_issues(self, query, sort=None, order=None, per_page=None, text_match=False, number=-1, etag=None): """Find issues by state and keyword The query can contain any combination of the following supported qualifers: - ``type`` With this qualifier you can res...
[ "def", "search_issues", "(", "self", ",", "query", ",", "sort", "=", "None", ",", "order", "=", "None", ",", "per_page", "=", "None", ",", "text_match", "=", "False", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "params", "=", ...
Find issues by state and keyword The query can contain any combination of the following supported qualifers: - ``type`` With this qualifier you can restrict the search to issues or pull request only. - ``in`` Qualifies which fields are searched. With this qualifier you ...
[ "Find", "issues", "by", "state", "and", "keyword" ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1158-L1221
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.search_repositories
def search_repositories(self, query, sort=None, order=None, per_page=None, text_match=False, number=-1, etag=None): """Find repositories via various criteria. The query can contain any combination of the following supported qualifers: ...
python
def search_repositories(self, query, sort=None, order=None, per_page=None, text_match=False, number=-1, etag=None): """Find repositories via various criteria. The query can contain any combination of the following supported qualifers: ...
[ "def", "search_repositories", "(", "self", ",", "query", ",", "sort", "=", "None", ",", "order", "=", "None", ",", "per_page", "=", "None", ",", "text_match", "=", "False", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "params", ...
Find repositories via various criteria. The query can contain any combination of the following supported qualifers: - ``in`` Qualifies which fields are searched. With this qualifier you can restrict the search to just the repository name, description, readme, or any combina...
[ "Find", "repositories", "via", "various", "criteria", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1223-L1281
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.search_users
def search_users(self, query, sort=None, order=None, per_page=None, text_match=False, number=-1, etag=None): """Find users via the Search API. The query can contain any combination of the following supported qualifers: - ``type`` With this qualifier you can restri...
python
def search_users(self, query, sort=None, order=None, per_page=None, text_match=False, number=-1, etag=None): """Find users via the Search API. The query can contain any combination of the following supported qualifers: - ``type`` With this qualifier you can restri...
[ "def", "search_users", "(", "self", ",", "query", ",", "sort", "=", "None", ",", "order", "=", "None", ",", "per_page", "=", "None", ",", "text_match", "=", "False", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "params", "=", ...
Find users via the Search API. The query can contain any combination of the following supported qualifers: - ``type`` With this qualifier you can restrict the search to just personal accounts or just organization accounts. - ``in`` Qualifies which fields are searched. With t...
[ "Find", "users", "via", "the", "Search", "API", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1283-L1340
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.star
def star(self, login, repo): """Star to login/repo :param str login: (required), owner of the repo :param str repo: (required), name of the repo :return: bool """ resp = False if login and repo: url = self._build_url('user', 'starred', login, repo) ...
python
def star(self, login, repo): """Star to login/repo :param str login: (required), owner of the repo :param str repo: (required), name of the repo :return: bool """ resp = False if login and repo: url = self._build_url('user', 'starred', login, repo) ...
[ "def", "star", "(", "self", ",", "login", ",", "repo", ")", ":", "resp", "=", "False", "if", "login", "and", "repo", ":", "url", "=", "self", ".", "_build_url", "(", "'user'", ",", "'starred'", ",", "login", ",", "repo", ")", "resp", "=", "self", ...
Star to login/repo :param str login: (required), owner of the repo :param str repo: (required), name of the repo :return: bool
[ "Star", "to", "login", "/", "repo" ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1364-L1375
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.unfollow
def unfollow(self, login): """Make the authenticated user stop following login :param str login: (required) :returns: bool """ resp = False if login: url = self._build_url('user', 'following', login) resp = self._boolean(self._delete(url), 204, 40...
python
def unfollow(self, login): """Make the authenticated user stop following login :param str login: (required) :returns: bool """ resp = False if login: url = self._build_url('user', 'following', login) resp = self._boolean(self._delete(url), 204, 40...
[ "def", "unfollow", "(", "self", ",", "login", ")", ":", "resp", "=", "False", "if", "login", ":", "url", "=", "self", ".", "_build_url", "(", "'user'", ",", "'following'", ",", "login", ")", "resp", "=", "self", ".", "_boolean", "(", "self", ".", "...
Make the authenticated user stop following login :param str login: (required) :returns: bool
[ "Make", "the", "authenticated", "user", "stop", "following", "login" ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1392-L1402
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.unstar
def unstar(self, login, repo): """Unstar to login/repo :param str login: (required), owner of the repo :param str repo: (required), name of the repo :return: bool """ resp = False if login and repo: url = self._build_url('user', 'starred', login, repo...
python
def unstar(self, login, repo): """Unstar to login/repo :param str login: (required), owner of the repo :param str repo: (required), name of the repo :return: bool """ resp = False if login and repo: url = self._build_url('user', 'starred', login, repo...
[ "def", "unstar", "(", "self", ",", "login", ",", "repo", ")", ":", "resp", "=", "False", "if", "login", "and", "repo", ":", "url", "=", "self", ".", "_build_url", "(", "'user'", ",", "'starred'", ",", "login", ",", "repo", ")", "resp", "=", "self",...
Unstar to login/repo :param str login: (required), owner of the repo :param str repo: (required), name of the repo :return: bool
[ "Unstar", "to", "login", "/", "repo" ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1405-L1416
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.update_user
def update_user(self, name=None, email=None, blog=None, company=None, location=None, hireable=False, bio=None): """If authenticated as this user, update the information with the information provided in the parameters. All parameters are optional. :param str name: e.g...
python
def update_user(self, name=None, email=None, blog=None, company=None, location=None, hireable=False, bio=None): """If authenticated as this user, update the information with the information provided in the parameters. All parameters are optional. :param str name: e.g...
[ "def", "update_user", "(", "self", ",", "name", "=", "None", ",", "email", "=", "None", ",", "blog", "=", "None", ",", "company", "=", "None", ",", "location", "=", "None", ",", "hireable", "=", "False", ",", "bio", "=", "None", ")", ":", "user", ...
If authenticated as this user, update the information with the information provided in the parameters. All parameters are optional. :param str name: e.g., 'John Smith', not login name :param str email: e.g., 'john.smith@example.com' :param str blog: e.g., 'http://www.example.com...
[ "If", "authenticated", "as", "this", "user", "update", "the", "information", "with", "the", "information", "provided", "in", "the", "parameters", ".", "All", "parameters", "are", "optional", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1433-L1450
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.user
def user(self, login=None): """Returns a User object for the specified login name if provided. If no login name is provided, this will return a User object for the authenticated user. :param str login: (optional) :returns: :class:`User <github3.users.User>` """ i...
python
def user(self, login=None): """Returns a User object for the specified login name if provided. If no login name is provided, this will return a User object for the authenticated user. :param str login: (optional) :returns: :class:`User <github3.users.User>` """ i...
[ "def", "user", "(", "self", ",", "login", "=", "None", ")", ":", "if", "login", ":", "url", "=", "self", ".", "_build_url", "(", "'users'", ",", "login", ")", "else", ":", "url", "=", "self", ".", "_build_url", "(", "'user'", ")", "json", "=", "s...
Returns a User object for the specified login name if provided. If no login name is provided, this will return a User object for the authenticated user. :param str login: (optional) :returns: :class:`User <github3.users.User>`
[ "Returns", "a", "User", "object", "for", "the", "specified", "login", "name", "if", "provided", ".", "If", "no", "login", "name", "is", "provided", "this", "will", "return", "a", "User", "object", "for", "the", "authenticated", "user", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1452-L1466
kislyuk/aegea
aegea/packages/github3/github.py
GitHub.zen
def zen(self): """Returns a quote from the Zen of GitHub. Yet another API Easter Egg :returns: str """ url = self._build_url('zen') resp = self._get(url) return resp.content if resp.status_code == 200 else ''
python
def zen(self): """Returns a quote from the Zen of GitHub. Yet another API Easter Egg :returns: str """ url = self._build_url('zen') resp = self._get(url) return resp.content if resp.status_code == 200 else ''
[ "def", "zen", "(", "self", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'zen'", ")", "resp", "=", "self", ".", "_get", "(", "url", ")", "return", "resp", ".", "content", "if", "resp", ".", "status_code", "==", "200", "else", "''" ]
Returns a quote from the Zen of GitHub. Yet another API Easter Egg :returns: str
[ "Returns", "a", "quote", "from", "the", "Zen", "of", "GitHub", ".", "Yet", "another", "API", "Easter", "Egg" ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1468-L1475
kislyuk/aegea
aegea/packages/github3/github.py
GitHubEnterprise.admin_stats
def admin_stats(self, option): """This is a simple way to get statistics about your system. :param str option: (required), accepted values: ('all', 'repos', 'hooks', 'pages', 'orgs', 'users', 'pulls', 'issues', 'milestones', 'gists', 'comments') :returns: dict ""...
python
def admin_stats(self, option): """This is a simple way to get statistics about your system. :param str option: (required), accepted values: ('all', 'repos', 'hooks', 'pages', 'orgs', 'users', 'pulls', 'issues', 'milestones', 'gists', 'comments') :returns: dict ""...
[ "def", "admin_stats", "(", "self", ",", "option", ")", ":", "stats", "=", "{", "}", "if", "option", ".", "lower", "(", ")", "in", "(", "'all'", ",", "'repos'", ",", "'hooks'", ",", "'pages'", ",", "'orgs'", ",", "'users'", ",", "'pulls'", ",", "'is...
This is a simple way to get statistics about your system. :param str option: (required), accepted values: ('all', 'repos', 'hooks', 'pages', 'orgs', 'users', 'pulls', 'issues', 'milestones', 'gists', 'comments') :returns: dict
[ "This", "is", "a", "simple", "way", "to", "get", "statistics", "about", "your", "system", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/github.py#L1499-L1513
kislyuk/aegea
aegea/packages/github3/users.py
Key.update
def update(self, title, key): """Update this key. :param str title: (required), title of the key :param str key: (required), text of the key file :returns: bool """ json = None if title and key: data = {'title': title, 'key': key} json = s...
python
def update(self, title, key): """Update this key. :param str title: (required), title of the key :param str key: (required), text of the key file :returns: bool """ json = None if title and key: data = {'title': title, 'key': key} json = s...
[ "def", "update", "(", "self", ",", "title", ",", "key", ")", ":", "json", "=", "None", "if", "title", "and", "key", ":", "data", "=", "{", "'title'", ":", "title", ",", "'key'", ":", "key", "}", "json", "=", "self", ".", "_json", "(", "self", "...
Update this key. :param str title: (required), title of the key :param str key: (required), text of the key file :returns: bool
[ "Update", "this", "key", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/users.py#L57-L71
kislyuk/aegea
aegea/packages/github3/users.py
User.add_email_addresses
def add_email_addresses(self, addresses=[]): """Add the email addresses in ``addresses`` to the authenticated user's account. :param list addresses: (optional), email addresses to be added :returns: list of email addresses """ json = [] if addresses: ...
python
def add_email_addresses(self, addresses=[]): """Add the email addresses in ``addresses`` to the authenticated user's account. :param list addresses: (optional), email addresses to be added :returns: list of email addresses """ json = [] if addresses: ...
[ "def", "add_email_addresses", "(", "self", ",", "addresses", "=", "[", "]", ")", ":", "json", "=", "[", "]", "if", "addresses", ":", "url", "=", "self", ".", "_build_url", "(", "'user'", ",", "'emails'", ")", "json", "=", "self", ".", "_json", "(", ...
Add the email addresses in ``addresses`` to the authenticated user's account. :param list addresses: (optional), email addresses to be added :returns: list of email addresses
[ "Add", "the", "email", "addresses", "in", "addresses", "to", "the", "authenticated", "user", "s", "account", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/users.py#L200-L211
kislyuk/aegea
aegea/packages/github3/users.py
User.delete_email_addresses
def delete_email_addresses(self, addresses=[]): """Delete the email addresses in ``addresses`` from the authenticated user's account. :param list addresses: (optional), email addresses to be removed :returns: bool """ url = self._build_url('user', 'emails') retur...
python
def delete_email_addresses(self, addresses=[]): """Delete the email addresses in ``addresses`` from the authenticated user's account. :param list addresses: (optional), email addresses to be removed :returns: bool """ url = self._build_url('user', 'emails') retur...
[ "def", "delete_email_addresses", "(", "self", ",", "addresses", "=", "[", "]", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'user'", ",", "'emails'", ")", "return", "self", ".", "_boolean", "(", "self", ".", "_delete", "(", "url", ",", "data"...
Delete the email addresses in ``addresses`` from the authenticated user's account. :param list addresses: (optional), email addresses to be removed :returns: bool
[ "Delete", "the", "email", "addresses", "in", "addresses", "from", "the", "authenticated", "user", "s", "account", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/users.py#L223-L232
kislyuk/aegea
aegea/packages/github3/users.py
User.is_assignee_on
def is_assignee_on(self, login, repository): """Checks if this user can be assigned to issues on login/repository. :returns: :class:`bool` """ url = self._build_url('repos', login, repository, 'assignees', self.login) return self._boolean(self._get(...
python
def is_assignee_on(self, login, repository): """Checks if this user can be assigned to issues on login/repository. :returns: :class:`bool` """ url = self._build_url('repos', login, repository, 'assignees', self.login) return self._boolean(self._get(...
[ "def", "is_assignee_on", "(", "self", ",", "login", ",", "repository", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'repos'", ",", "login", ",", "repository", ",", "'assignees'", ",", "self", ".", "login", ")", "return", "self", ".", "_boolean"...
Checks if this user can be assigned to issues on login/repository. :returns: :class:`bool`
[ "Checks", "if", "this", "user", "can", "be", "assigned", "to", "issues", "on", "login", "/", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/users.py#L234-L241
kislyuk/aegea
aegea/packages/github3/users.py
User.is_following
def is_following(self, login): """Checks if this user is following ``login``. :param str login: (required) :returns: bool """ url = self.following_urlt.expand(other_user=login) return self._boolean(self._get(url), 204, 404)
python
def is_following(self, login): """Checks if this user is following ``login``. :param str login: (required) :returns: bool """ url = self.following_urlt.expand(other_user=login) return self._boolean(self._get(url), 204, 404)
[ "def", "is_following", "(", "self", ",", "login", ")", ":", "url", "=", "self", ".", "following_urlt", ".", "expand", "(", "other_user", "=", "login", ")", "return", "self", ".", "_boolean", "(", "self", ".", "_get", "(", "url", ")", ",", "204", ",",...
Checks if this user is following ``login``. :param str login: (required) :returns: bool
[ "Checks", "if", "this", "user", "is", "following", "login", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/users.py#L243-L251
kislyuk/aegea
aegea/packages/github3/users.py
User.iter_events
def iter_events(self, public=False, number=-1, etag=None): """Iterate over events performed by this user. :param bool public: (optional), only list public events for the authenticated user :param int number: (optional), number of events to return. Default: -1 returns all...
python
def iter_events(self, public=False, number=-1, etag=None): """Iterate over events performed by this user. :param bool public: (optional), only list public events for the authenticated user :param int number: (optional), number of events to return. Default: -1 returns all...
[ "def", "iter_events", "(", "self", ",", "public", "=", "False", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "path", "=", "[", "'events'", "]", "if", "public", ":", "path", ".", "append", "(", "'public'", ")", "url", "=", "se...
Iterate over events performed by this user. :param bool public: (optional), only list public events for the authenticated user :param int number: (optional), number of events to return. Default: -1 returns all available events. :param str etag: (optional), ETag from a pr...
[ "Iterate", "over", "events", "performed", "by", "this", "user", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/users.py#L253-L268
kislyuk/aegea
aegea/packages/github3/users.py
User.iter_followers
def iter_followers(self, number=-1, etag=None): """Iterate over the followers of this user. :param int number: (optional), number of followers to return. Default: -1 returns all available :param str etag: (optional), ETag from a previous request to the same endpoint ...
python
def iter_followers(self, number=-1, etag=None): """Iterate over the followers of this user. :param int number: (optional), number of followers to return. Default: -1 returns all available :param str etag: (optional), ETag from a previous request to the same endpoint ...
[ "def", "iter_followers", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'followers'", ",", "base_url", "=", "self", ".", "_api", ")", "return", "self", ".", "_iter", "(", ...
Iterate over the followers of this user. :param int number: (optional), number of followers to return. Default: -1 returns all available :param str etag: (optional), ETag from a previous request to the same endpoint :returns: generator of :class:`User <User>`\ s
[ "Iterate", "over", "the", "followers", "of", "this", "user", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/users.py#L270-L280
kislyuk/aegea
aegea/packages/github3/users.py
User.iter_keys
def iter_keys(self, number=-1, etag=None): """Iterate over the public keys of this user. .. versionadded:: 0.5 :param int number: (optional), number of keys to return. Default: -1 returns all available keys :param str etag: (optional), ETag from a previous request to the sa...
python
def iter_keys(self, number=-1, etag=None): """Iterate over the public keys of this user. .. versionadded:: 0.5 :param int number: (optional), number of keys to return. Default: -1 returns all available keys :param str etag: (optional), ETag from a previous request to the sa...
[ "def", "iter_keys", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'keys'", ",", "base_url", "=", "self", ".", "_api", ")", "return", "self", ".", "_iter", "(", "int", "...
Iterate over the public keys of this user. .. versionadded:: 0.5 :param int number: (optional), number of keys to return. Default: -1 returns all available keys :param str etag: (optional), ETag from a previous request to the same endpoint :returns: generator of...
[ "Iterate", "over", "the", "public", "keys", "of", "this", "user", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/users.py#L294-L306
kislyuk/aegea
aegea/packages/github3/users.py
User.iter_org_events
def iter_org_events(self, org, number=-1, etag=None): """Iterate over events as they appear on the user's organization dashboard. You must be authenticated to view this. :param str org: (required), name of the organization :param int number: (optional), number of events to return. Defau...
python
def iter_org_events(self, org, number=-1, etag=None): """Iterate over events as they appear on the user's organization dashboard. You must be authenticated to view this. :param str org: (required), name of the organization :param int number: (optional), number of events to return. Defau...
[ "def", "iter_org_events", "(", "self", ",", "org", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "''", "if", "org", ":", "url", "=", "self", ".", "_build_url", "(", "'events'", ",", "'orgs'", ",", "org", ",", "base...
Iterate over events as they appear on the user's organization dashboard. You must be authenticated to view this. :param str org: (required), name of the organization :param int number: (optional), number of events to return. Default: -1 returns all available events :param st...
[ "Iterate", "over", "events", "as", "they", "appear", "on", "the", "user", "s", "organization", "dashboard", ".", "You", "must", "be", "authenticated", "to", "view", "this", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/users.py#L308-L322
kislyuk/aegea
aegea/packages/github3/users.py
User.iter_orgs
def iter_orgs(self, number=-1, etag=None): """Iterate over organizations the user is member of :param int number: (optional), number of organizations to return. Default: -1 returns all available organization :param str etag: (optional), ETag from a previous request to the same ...
python
def iter_orgs(self, number=-1, etag=None): """Iterate over organizations the user is member of :param int number: (optional), number of organizations to return. Default: -1 returns all available organization :param str etag: (optional), ETag from a previous request to the same ...
[ "def", "iter_orgs", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "# Import here, because a toplevel import causes an import loop", "from", ".", "orgs", "import", "Organization", "url", "=", "self", ".", "_build_url", "(", "'orgs...
Iterate over organizations the user is member of :param int number: (optional), number of organizations to return. Default: -1 returns all available organization :param str etag: (optional), ETag from a previous request to the same endpoint :returns: list of :class:`Even...
[ "Iterate", "over", "organizations", "the", "user", "is", "member", "of" ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/users.py#L343-L355
kislyuk/aegea
aegea/packages/github3/users.py
User.iter_starred
def iter_starred(self, sort=None, direction=None, number=-1, etag=None): """Iterate over repositories starred by this user. .. versionchanged:: 0.5 Added sort and direction parameters (optional) as per the change in GitHub's API. :param int number: (optional), number of s...
python
def iter_starred(self, sort=None, direction=None, number=-1, etag=None): """Iterate over repositories starred by this user. .. versionchanged:: 0.5 Added sort and direction parameters (optional) as per the change in GitHub's API. :param int number: (optional), number of s...
[ "def", "iter_starred", "(", "self", ",", "sort", "=", "None", ",", "direction", "=", "None", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "from", ".", "repos", "import", "Repository", "params", "=", "{", "'sort'", ":", "sort", ...
Iterate over repositories starred by this user. .. versionchanged:: 0.5 Added sort and direction parameters (optional) as per the change in GitHub's API. :param int number: (optional), number of starred repos to return. Default: -1, returns all available repos ...
[ "Iterate", "over", "repositories", "starred", "by", "this", "user", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/users.py#L357-L379
kislyuk/aegea
aegea/packages/github3/users.py
User.iter_subscriptions
def iter_subscriptions(self, number=-1, etag=None): """Iterate over repositories subscribed to by this user. :param int number: (optional), number of subscriptions to return. Default: -1, returns all available :param str etag: (optional), ETag from a previous request to the same ...
python
def iter_subscriptions(self, number=-1, etag=None): """Iterate over repositories subscribed to by this user. :param int number: (optional), number of subscriptions to return. Default: -1, returns all available :param str etag: (optional), ETag from a previous request to the same ...
[ "def", "iter_subscriptions", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "from", ".", "repos", "import", "Repository", "url", "=", "self", ".", "_build_url", "(", "'subscriptions'", ",", "base_url", "=", "self", ".", ...
Iterate over repositories subscribed to by this user. :param int number: (optional), number of subscriptions to return. Default: -1, returns all available :param str etag: (optional), ETag from a previous request to the same endpoint :returns: generator of :class:`Reposi...
[ "Iterate", "over", "repositories", "subscribed", "to", "by", "this", "user", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/users.py#L381-L392
kislyuk/aegea
aegea/packages/github3/users.py
User.update
def update(self, name=None, email=None, blog=None, company=None, location=None, hireable=False, bio=None): """If authenticated as this user, update the information with the information provided in the parameters. :param str name: e.g., 'John Smith', not login name :param ...
python
def update(self, name=None, email=None, blog=None, company=None, location=None, hireable=False, bio=None): """If authenticated as this user, update the information with the information provided in the parameters. :param str name: e.g., 'John Smith', not login name :param ...
[ "def", "update", "(", "self", ",", "name", "=", "None", ",", "email", "=", "None", ",", "blog", "=", "None", ",", "company", "=", "None", ",", "location", "=", "None", ",", "hireable", "=", "False", ",", "bio", "=", "None", ")", ":", "user", "=",...
If authenticated as this user, update the information with the information provided in the parameters. :param str name: e.g., 'John Smith', not login name :param str email: e.g., 'john.smith@example.com' :param str blog: e.g., 'http://www.example.com/jsmith/blog' :param str comp...
[ "If", "authenticated", "as", "this", "user", "update", "the", "information", "with", "the", "information", "provided", "in", "the", "parameters", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/users.py#L395-L418
kislyuk/aegea
aegea/packages/github3/notifications.py
Thread.delete_subscription
def delete_subscription(self): """Delete subscription for this thread. :returns: bool """ url = self._build_url('subscription', base_url=self._api) return self._boolean(self._delete(url), 204, 404)
python
def delete_subscription(self): """Delete subscription for this thread. :returns: bool """ url = self._build_url('subscription', base_url=self._api) return self._boolean(self._delete(url), 204, 404)
[ "def", "delete_subscription", "(", "self", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'subscription'", ",", "base_url", "=", "self", ".", "_api", ")", "return", "self", ".", "_boolean", "(", "self", ".", "_delete", "(", "url", ")", ",", "20...
Delete subscription for this thread. :returns: bool
[ "Delete", "subscription", "for", "this", "thread", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/notifications.py#L63-L69
kislyuk/aegea
aegea/packages/github3/notifications.py
Thread.set_subscription
def set_subscription(self, subscribed, ignored): """Set the user's subscription for this thread :param bool subscribed: (required), determines if notifications should be received from this thread. :param bool ignored: (required), determines if notifications should be ign...
python
def set_subscription(self, subscribed, ignored): """Set the user's subscription for this thread :param bool subscribed: (required), determines if notifications should be received from this thread. :param bool ignored: (required), determines if notifications should be ign...
[ "def", "set_subscription", "(", "self", ",", "subscribed", ",", "ignored", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'subscription'", ",", "base_url", "=", "self", ".", "_api", ")", "sub", "=", "{", "'subscribed'", ":", "subscribed", ",", "'...
Set the user's subscription for this thread :param bool subscribed: (required), determines if notifications should be received from this thread. :param bool ignored: (required), determines if notifications should be ignored from this thread. :returns: :class:`Subscriptio...
[ "Set", "the", "user", "s", "subscription", "for", "this", "thread" ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/notifications.py#L82-L94
kislyuk/aegea
aegea/packages/github3/notifications.py
Thread.subscription
def subscription(self): """Checks the status of the user's subscription to this thread. :returns: :class:`Subscription <Subscription>` """ url = self._build_url('subscription', base_url=self._api) json = self._json(self._get(url), 200) return Subscription(json, self) if ...
python
def subscription(self): """Checks the status of the user's subscription to this thread. :returns: :class:`Subscription <Subscription>` """ url = self._build_url('subscription', base_url=self._api) json = self._json(self._get(url), 200) return Subscription(json, self) if ...
[ "def", "subscription", "(", "self", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'subscription'", ",", "base_url", "=", "self", ".", "_api", ")", "json", "=", "self", ".", "_json", "(", "self", ".", "_get", "(", "url", ")", ",", "200", ")...
Checks the status of the user's subscription to this thread. :returns: :class:`Subscription <Subscription>`
[ "Checks", "the", "status", "of", "the", "user", "s", "subscription", "to", "this", "thread", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/notifications.py#L96-L103
kislyuk/aegea
aegea/packages/github3/notifications.py
Subscription.set
def set(self, subscribed, ignored): """Set the user's subscription for this subscription :param bool subscribed: (required), determines if notifications should be received from this thread. :param bool ignored: (required), determines if notifications should be ignored fr...
python
def set(self, subscribed, ignored): """Set the user's subscription for this subscription :param bool subscribed: (required), determines if notifications should be received from this thread. :param bool ignored: (required), determines if notifications should be ignored fr...
[ "def", "set", "(", "self", ",", "subscribed", ",", "ignored", ")", ":", "sub", "=", "{", "'subscribed'", ":", "subscribed", ",", "'ignored'", ":", "ignored", "}", "json", "=", "self", ".", "_json", "(", "self", ".", "_put", "(", "self", ".", "_api", ...
Set the user's subscription for this subscription :param bool subscribed: (required), determines if notifications should be received from this thread. :param bool ignored: (required), determines if notifications should be ignored from this thread.
[ "Set", "the", "user", "s", "subscription", "for", "this", "subscription" ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/notifications.py#L139-L149
kislyuk/aegea
aegea/util/aws/__init__.py
locate_ami
def locate_ami(product, region=None, channel="releases", stream="released", root_store="ssd", virt="hvm"): """ Examples:: locate_ami(product="com.ubuntu.cloud:server:16.04:amd64", channel="daily", stream="daily", region="us-west-2") locate_ami(product="Amazon Linux AMI 2016.09") """ if r...
python
def locate_ami(product, region=None, channel="releases", stream="released", root_store="ssd", virt="hvm"): """ Examples:: locate_ami(product="com.ubuntu.cloud:server:16.04:amd64", channel="daily", stream="daily", region="us-west-2") locate_ami(product="Amazon Linux AMI 2016.09") """ if r...
[ "def", "locate_ami", "(", "product", ",", "region", "=", "None", ",", "channel", "=", "\"releases\"", ",", "stream", "=", "\"released\"", ",", "root_store", "=", "\"ssd\"", ",", "virt", "=", "\"hvm\"", ")", ":", "if", "region", "is", "None", ":", "region...
Examples:: locate_ami(product="com.ubuntu.cloud:server:16.04:amd64", channel="daily", stream="daily", region="us-west-2") locate_ami(product="Amazon Linux AMI 2016.09")
[ "Examples", "::", "locate_ami", "(", "product", "=", "com", ".", "ubuntu", ".", "cloud", ":", "server", ":", "16", ".", "04", ":", "amd64", "channel", "=", "daily", "stream", "=", "daily", "region", "=", "us", "-", "west", "-", "2", ")", "locate_ami"...
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/util/aws/__init__.py#L30-L66
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.add_collaborator
def add_collaborator(self, login): """Add ``login`` as a collaborator to a repository. :param str login: (required), login of the user :returns: bool -- True if successful, False otherwise """ resp = False if login: url = self._build_url('collaborators', logi...
python
def add_collaborator(self, login): """Add ``login`` as a collaborator to a repository. :param str login: (required), login of the user :returns: bool -- True if successful, False otherwise """ resp = False if login: url = self._build_url('collaborators', logi...
[ "def", "add_collaborator", "(", "self", ",", "login", ")", ":", "resp", "=", "False", "if", "login", ":", "url", "=", "self", ".", "_build_url", "(", "'collaborators'", ",", "login", ",", "base_url", "=", "self", ".", "_api", ")", "resp", "=", "self", ...
Add ``login`` as a collaborator to a repository. :param str login: (required), login of the user :returns: bool -- True if successful, False otherwise
[ "Add", "login", "as", "a", "collaborator", "to", "a", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L302-L312
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.archive
def archive(self, format, path='', ref='master'): """Get the tarball or zipball archive for this repo at ref. See: http://developer.github.com/v3/repos/contents/#get-archive-link :param str format: (required), accepted values: ('tarball', 'zipball') :param path: (optional),...
python
def archive(self, format, path='', ref='master'): """Get the tarball or zipball archive for this repo at ref. See: http://developer.github.com/v3/repos/contents/#get-archive-link :param str format: (required), accepted values: ('tarball', 'zipball') :param path: (optional),...
[ "def", "archive", "(", "self", ",", "format", ",", "path", "=", "''", ",", "ref", "=", "'master'", ")", ":", "resp", "=", "None", "if", "format", "in", "(", "'tarball'", ",", "'zipball'", ")", ":", "url", "=", "self", ".", "_build_url", "(", "forma...
Get the tarball or zipball archive for this repo at ref. See: http://developer.github.com/v3/repos/contents/#get-archive-link :param str format: (required), accepted values: ('tarball', 'zipball') :param path: (optional), path where the file should be saved to, default ...
[ "Get", "the", "tarball", "or", "zipball", "archive", "for", "this", "repo", "at", "ref", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L314-L338
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.asset
def asset(self, id): """Returns a single Asset. :param int id: (required), id of the asset :returns: :class:`Asset <github3.repos.release.Asset>` """ data = None if int(id) > 0: url = self._build_url('releases', 'assets', str(id), ...
python
def asset(self, id): """Returns a single Asset. :param int id: (required), id of the asset :returns: :class:`Asset <github3.repos.release.Asset>` """ data = None if int(id) > 0: url = self._build_url('releases', 'assets', str(id), ...
[ "def", "asset", "(", "self", ",", "id", ")", ":", "data", "=", "None", "if", "int", "(", "id", ")", ">", "0", ":", "url", "=", "self", ".", "_build_url", "(", "'releases'", ",", "'assets'", ",", "str", "(", "id", ")", ",", "base_url", "=", "sel...
Returns a single Asset. :param int id: (required), id of the asset :returns: :class:`Asset <github3.repos.release.Asset>`
[ "Returns", "a", "single", "Asset", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L340-L352
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.blob
def blob(self, sha): """Get the blob indicated by ``sha``. :param str sha: (required), sha of the blob :returns: :class:`Blob <github3.git.Blob>` if successful, otherwise None """ url = self._build_url('git', 'blobs', sha, base_url=self._api) json = self._jso...
python
def blob(self, sha): """Get the blob indicated by ``sha``. :param str sha: (required), sha of the blob :returns: :class:`Blob <github3.git.Blob>` if successful, otherwise None """ url = self._build_url('git', 'blobs', sha, base_url=self._api) json = self._jso...
[ "def", "blob", "(", "self", ",", "sha", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'git'", ",", "'blobs'", ",", "sha", ",", "base_url", "=", "self", ".", "_api", ")", "json", "=", "self", ".", "_json", "(", "self", ".", "_get", "(", ...
Get the blob indicated by ``sha``. :param str sha: (required), sha of the blob :returns: :class:`Blob <github3.git.Blob>` if successful, otherwise None
[ "Get", "the", "blob", "indicated", "by", "sha", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L354-L363
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.branch
def branch(self, name): """Get the branch ``name`` of this repository. :param str name: (required), branch name :type name: str :returns: :class:`Branch <github3.repos.branch.Branch>` """ json = None if name: url = self._build_url('branches', name, ba...
python
def branch(self, name): """Get the branch ``name`` of this repository. :param str name: (required), branch name :type name: str :returns: :class:`Branch <github3.repos.branch.Branch>` """ json = None if name: url = self._build_url('branches', name, ba...
[ "def", "branch", "(", "self", ",", "name", ")", ":", "json", "=", "None", "if", "name", ":", "url", "=", "self", ".", "_build_url", "(", "'branches'", ",", "name", ",", "base_url", "=", "self", ".", "_api", ")", "json", "=", "self", ".", "_json", ...
Get the branch ``name`` of this repository. :param str name: (required), branch name :type name: str :returns: :class:`Branch <github3.repos.branch.Branch>`
[ "Get", "the", "branch", "name", "of", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L365-L376
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.commit
def commit(self, sha): """Get a single (repo) commit. See :func:`git_commit` for the Git Data Commit. :param str sha: (required), sha of the commit :returns: :class:`RepoCommit <github3.repos.commit.RepoCommit>` if successful, otherwise None """ url = self._b...
python
def commit(self, sha): """Get a single (repo) commit. See :func:`git_commit` for the Git Data Commit. :param str sha: (required), sha of the commit :returns: :class:`RepoCommit <github3.repos.commit.RepoCommit>` if successful, otherwise None """ url = self._b...
[ "def", "commit", "(", "self", ",", "sha", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'commits'", ",", "sha", ",", "base_url", "=", "self", ".", "_api", ")", "json", "=", "self", ".", "_json", "(", "self", ".", "_get", "(", "url", ")",...
Get a single (repo) commit. See :func:`git_commit` for the Git Data Commit. :param str sha: (required), sha of the commit :returns: :class:`RepoCommit <github3.repos.commit.RepoCommit>` if successful, otherwise None
[ "Get", "a", "single", "(", "repo", ")", "commit", ".", "See", ":", "func", ":", "git_commit", "for", "the", "Git", "Data", "Commit", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L378-L388
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.commit_comment
def commit_comment(self, comment_id): """Get a single commit comment. :param int comment_id: (required), id of the comment used by GitHub :returns: :class:`RepoComment <github3.repos.comment.RepoComment>` if successful, otherwise None """ url = self._build_url('comme...
python
def commit_comment(self, comment_id): """Get a single commit comment. :param int comment_id: (required), id of the comment used by GitHub :returns: :class:`RepoComment <github3.repos.comment.RepoComment>` if successful, otherwise None """ url = self._build_url('comme...
[ "def", "commit_comment", "(", "self", ",", "comment_id", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'comments'", ",", "str", "(", "comment_id", ")", ",", "base_url", "=", "self", ".", "_api", ")", "json", "=", "self", ".", "_json", "(", "...
Get a single commit comment. :param int comment_id: (required), id of the comment used by GitHub :returns: :class:`RepoComment <github3.repos.comment.RepoComment>` if successful, otherwise None
[ "Get", "a", "single", "commit", "comment", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L390-L399
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.compare_commits
def compare_commits(self, base, head): """Compare two commits. :param str base: (required), base for the comparison :param str head: (required), compare this against base :returns: :class:`Comparison <github3.repos.comparison.Comparison>` if successful, else None """...
python
def compare_commits(self, base, head): """Compare two commits. :param str base: (required), base for the comparison :param str head: (required), compare this against base :returns: :class:`Comparison <github3.repos.comparison.Comparison>` if successful, else None """...
[ "def", "compare_commits", "(", "self", ",", "base", ",", "head", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'compare'", ",", "base", "+", "'...'", "+", "head", ",", "base_url", "=", "self", ".", "_api", ")", "json", "=", "self", ".", "_...
Compare two commits. :param str base: (required), base for the comparison :param str head: (required), compare this against base :returns: :class:`Comparison <github3.repos.comparison.Comparison>` if successful, else None
[ "Compare", "two", "commits", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L401-L412
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.contents
def contents(self, path, ref=None): """Get the contents of the file pointed to by ``path``. If the path provided is actually a directory, you will receive a dictionary back of the form:: { 'filename.md': Contents(), # Where Contents an instance 'git...
python
def contents(self, path, ref=None): """Get the contents of the file pointed to by ``path``. If the path provided is actually a directory, you will receive a dictionary back of the form:: { 'filename.md': Contents(), # Where Contents an instance 'git...
[ "def", "contents", "(", "self", ",", "path", ",", "ref", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'contents'", ",", "path", ",", "base_url", "=", "self", ".", "_api", ")", "json", "=", "self", ".", "_json", "(", "self", ...
Get the contents of the file pointed to by ``path``. If the path provided is actually a directory, you will receive a dictionary back of the form:: { 'filename.md': Contents(), # Where Contents an instance 'github.py': Contents(), } :pa...
[ "Get", "the", "contents", "of", "the", "file", "pointed", "to", "by", "path", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L414-L438
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_blob
def create_blob(self, content, encoding): """Create a blob with ``content``. :param str content: (required), content of the blob :param str encoding: (required), ('base64', 'utf-8') :returns: string of the SHA returned """ sha = '' if encoding in ('base64', 'utf-...
python
def create_blob(self, content, encoding): """Create a blob with ``content``. :param str content: (required), content of the blob :param str encoding: (required), ('base64', 'utf-8') :returns: string of the SHA returned """ sha = '' if encoding in ('base64', 'utf-...
[ "def", "create_blob", "(", "self", ",", "content", ",", "encoding", ")", ":", "sha", "=", "''", "if", "encoding", "in", "(", "'base64'", ",", "'utf-8'", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'git'", ",", "'blobs'", ",", "base_url", "...
Create a blob with ``content``. :param str content: (required), content of the blob :param str encoding: (required), ('base64', 'utf-8') :returns: string of the SHA returned
[ "Create", "a", "blob", "with", "content", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L441-L455
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_comment
def create_comment(self, body, sha, path=None, position=None, line=1): """Create a comment on a commit. :param str body: (required), body of the message :param str sha: (required), commit id :param str path: (optional), relative path of the file to comment on :param ...
python
def create_comment(self, body, sha, path=None, position=None, line=1): """Create a comment on a commit. :param str body: (required), body of the message :param str sha: (required), commit id :param str path: (optional), relative path of the file to comment on :param ...
[ "def", "create_comment", "(", "self", ",", "body", ",", "sha", ",", "path", "=", "None", ",", "position", "=", "None", ",", "line", "=", "1", ")", ":", "json", "=", "None", "if", "body", "and", "sha", "and", "(", "line", "and", "int", "(", "line"...
Create a comment on a commit. :param str body: (required), body of the message :param str sha: (required), commit id :param str path: (optional), relative path of the file to comment on :param str position: (optional), line index in the diff to comment on :param int ...
[ "Create", "a", "comment", "on", "a", "commit", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L458-L480
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_commit
def create_commit(self, message, tree, parents, author={}, committer={}): """Create a commit on this repository. :param str message: (required), commit message :param str tree: (required), SHA of the tree object this commit points to :param list parents: (required), SHAs of ...
python
def create_commit(self, message, tree, parents, author={}, committer={}): """Create a commit on this repository. :param str message: (required), commit message :param str tree: (required), SHA of the tree object this commit points to :param list parents: (required), SHAs of ...
[ "def", "create_commit", "(", "self", ",", "message", ",", "tree", ",", "parents", ",", "author", "=", "{", "}", ",", "committer", "=", "{", "}", ")", ":", "json", "=", "None", "if", "message", "and", "tree", "and", "isinstance", "(", "parents", ",", ...
Create a commit on this repository. :param str message: (required), commit message :param str tree: (required), SHA of the tree object this commit points to :param list parents: (required), SHAs of the commits that were parents of this commit. If empty, the commit will b...
[ "Create", "a", "commit", "on", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L483-L509
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_deployment
def create_deployment(self, ref, force=False, payload='', auto_merge=False, description='', environment=None): """Create a deployment. :param str ref: (required), The ref to deploy. This can be a branch, tag, or sha. :param bool force: Optional parameter to...
python
def create_deployment(self, ref, force=False, payload='', auto_merge=False, description='', environment=None): """Create a deployment. :param str ref: (required), The ref to deploy. This can be a branch, tag, or sha. :param bool force: Optional parameter to...
[ "def", "create_deployment", "(", "self", ",", "ref", ",", "force", "=", "False", ",", "payload", "=", "''", ",", "auto_merge", "=", "False", ",", "description", "=", "''", ",", "environment", "=", "None", ")", ":", "json", "=", "None", "if", "ref", "...
Create a deployment. :param str ref: (required), The ref to deploy. This can be a branch, tag, or sha. :param bool force: Optional parameter to bypass any ahead/behind checks or commit status checks. Default: False :param str payload: Optional JSON payload with extra inf...
[ "Create", "a", "deployment", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L512-L539
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_file
def create_file(self, path, message, content, branch=None, committer=None, author=None): """Create a file in this repository. See also: http://developer.github.com/v3/repos/contents/#create-a-file :param str path: (required), path of the file in the repository :para...
python
def create_file(self, path, message, content, branch=None, committer=None, author=None): """Create a file in this repository. See also: http://developer.github.com/v3/repos/contents/#create-a-file :param str path: (required), path of the file in the repository :para...
[ "def", "create_file", "(", "self", ",", "path", ",", "message", ",", "content", ",", "branch", "=", "None", ",", "committer", "=", "None", ",", "author", "=", "None", ")", ":", "if", "content", "and", "not", "isinstance", "(", "content", ",", "bytes", ...
Create a file in this repository. See also: http://developer.github.com/v3/repos/contents/#create-a-file :param str path: (required), path of the file in the repository :param str message: (required), commit message :param bytes content: (required), the actual data in the file ...
[ "Create", "a", "file", "in", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L542-L580
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_fork
def create_fork(self, organization=None): """Create a fork of this repository. :param str organization: (required), login for organization to create the fork under :returns: :class:`Repository <Repository>` if successful, else None """ url = self._build_url('forks', ...
python
def create_fork(self, organization=None): """Create a fork of this repository. :param str organization: (required), login for organization to create the fork under :returns: :class:`Repository <Repository>` if successful, else None """ url = self._build_url('forks', ...
[ "def", "create_fork", "(", "self", ",", "organization", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'forks'", ",", "base_url", "=", "self", ".", "_api", ")", "if", "organization", ":", "resp", "=", "self", ".", "_post", "(", "...
Create a fork of this repository. :param str organization: (required), login for organization to create the fork under :returns: :class:`Repository <Repository>` if successful, else None
[ "Create", "a", "fork", "of", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L583-L597
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_hook
def create_hook(self, name, config, events=['push'], active=True): """Create a hook on this repository. :param str name: (required), name of the hook :param dict config: (required), key-value pairs which act as settings for this hook :param list events: (optional), events th...
python
def create_hook(self, name, config, events=['push'], active=True): """Create a hook on this repository. :param str name: (required), name of the hook :param dict config: (required), key-value pairs which act as settings for this hook :param list events: (optional), events th...
[ "def", "create_hook", "(", "self", ",", "name", ",", "config", ",", "events", "=", "[", "'push'", "]", ",", "active", "=", "True", ")", ":", "json", "=", "None", "if", "name", "and", "config", "and", "isinstance", "(", "config", ",", "dict", ")", "...
Create a hook on this repository. :param str name: (required), name of the hook :param dict config: (required), key-value pairs which act as settings for this hook :param list events: (optional), events the hook is triggered for :param bool active: (optional), whether the ho...
[ "Create", "a", "hook", "on", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L600-L618
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_issue
def create_issue(self, title, body=None, assignee=None, milestone=None, labels=None): """Creates an issue on this repository. :param str title: (required), title of the issue :param str body...
python
def create_issue(self, title, body=None, assignee=None, milestone=None, labels=None): """Creates an issue on this repository. :param str title: (required), title of the issue :param str body...
[ "def", "create_issue", "(", "self", ",", "title", ",", "body", "=", "None", ",", "assignee", "=", "None", ",", "milestone", "=", "None", ",", "labels", "=", "None", ")", ":", "issue", "=", "{", "'title'", ":", "title", ",", "'body'", ":", "body", "...
Creates an issue on this repository. :param str title: (required), title of the issue :param str body: (optional), body of the issue :param str assignee: (optional), login of the user to assign the issue to :param int milestone: (optional), id number of the milestone to ...
[ "Creates", "an", "issue", "on", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L621-L652
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_key
def create_key(self, title, key): """Create a deploy key. :param str title: (required), title of key :param str key: (required), key text :returns: :class:`Key <github3.users.Key>` if successful, else None """ json = None if title and key: data = {'ti...
python
def create_key(self, title, key): """Create a deploy key. :param str title: (required), title of key :param str key: (required), key text :returns: :class:`Key <github3.users.Key>` if successful, else None """ json = None if title and key: data = {'ti...
[ "def", "create_key", "(", "self", ",", "title", ",", "key", ")", ":", "json", "=", "None", "if", "title", "and", "key", ":", "data", "=", "{", "'title'", ":", "title", ",", "'key'", ":", "key", "}", "url", "=", "self", ".", "_build_url", "(", "'k...
Create a deploy key. :param str title: (required), title of key :param str key: (required), key text :returns: :class:`Key <github3.users.Key>` if successful, else None
[ "Create", "a", "deploy", "key", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L655-L667
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_label
def create_label(self, name, color): """Create a label for this repository. :param str name: (required), name to give to the label :param str color: (required), value of the color to assign to the label, e.g., '#fafafa' or 'fafafa' (the latter is what is sent) :returns: :cla...
python
def create_label(self, name, color): """Create a label for this repository. :param str name: (required), name to give to the label :param str color: (required), value of the color to assign to the label, e.g., '#fafafa' or 'fafafa' (the latter is what is sent) :returns: :cla...
[ "def", "create_label", "(", "self", ",", "name", ",", "color", ")", ":", "json", "=", "None", "if", "name", "and", "color", ":", "data", "=", "{", "'name'", ":", "name", ",", "'color'", ":", "color", ".", "strip", "(", "'#'", ")", "}", "url", "="...
Create a label for this repository. :param str name: (required), name to give to the label :param str color: (required), value of the color to assign to the label, e.g., '#fafafa' or 'fafafa' (the latter is what is sent) :returns: :class:`Label <github3.issues.label.Label>` if succe...
[ "Create", "a", "label", "for", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L670-L684
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_milestone
def create_milestone(self, title, state=None, description=None, due_on=None): """Create a milestone for this repository. :param str title: (required), title of the milestone :param str state: (optional), state of the milestone, accepted values: ('open', 'clo...
python
def create_milestone(self, title, state=None, description=None, due_on=None): """Create a milestone for this repository. :param str title: (required), title of the milestone :param str state: (optional), state of the milestone, accepted values: ('open', 'clo...
[ "def", "create_milestone", "(", "self", ",", "title", ",", "state", "=", "None", ",", "description", "=", "None", ",", "due_on", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'milestones'", ",", "base_url", "=", "self", ".", "_api...
Create a milestone for this repository. :param str title: (required), title of the milestone :param str state: (optional), state of the milestone, accepted values: ('open', 'closed'), default: 'open' :param str description: (optional), description of the milestone :param str...
[ "Create", "a", "milestone", "for", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L687-L708
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_pull
def create_pull(self, title, base, head, body=None): """Create a pull request of ``head`` onto ``base`` branch in this repo. :param str title: (required) :param str base: (required), e.g., 'master' :param str head: (required), e.g., 'username:branch' :param str body: (optional),...
python
def create_pull(self, title, base, head, body=None): """Create a pull request of ``head`` onto ``base`` branch in this repo. :param str title: (required) :param str base: (required), e.g., 'master' :param str head: (required), e.g., 'username:branch' :param str body: (optional),...
[ "def", "create_pull", "(", "self", ",", "title", ",", "base", ",", "head", ",", "body", "=", "None", ")", ":", "data", "=", "{", "'title'", ":", "title", ",", "'body'", ":", "body", ",", "'base'", ":", "base", ",", "'head'", ":", "head", "}", "re...
Create a pull request of ``head`` onto ``base`` branch in this repo. :param str title: (required) :param str base: (required), e.g., 'master' :param str head: (required), e.g., 'username:branch' :param str body: (optional), markdown formatted description :returns: :class:`PullRe...
[ "Create", "a", "pull", "request", "of", "head", "onto", "base", "branch", "in", "this", "repo", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L711-L723
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_pull_from_issue
def create_pull_from_issue(self, issue, base, head): """Create a pull request from issue #``issue``. :param int issue: (required), issue number :param str base: (required), e.g., 'master' :param str head: (required), e.g., 'username:branch' :returns: :class:`PullRequest <github3...
python
def create_pull_from_issue(self, issue, base, head): """Create a pull request from issue #``issue``. :param int issue: (required), issue number :param str base: (required), e.g., 'master' :param str head: (required), e.g., 'username:branch' :returns: :class:`PullRequest <github3...
[ "def", "create_pull_from_issue", "(", "self", ",", "issue", ",", "base", ",", "head", ")", ":", "if", "int", "(", "issue", ")", ">", "0", ":", "data", "=", "{", "'issue'", ":", "issue", ",", "'base'", ":", "base", ",", "'head'", ":", "head", "}", ...
Create a pull request from issue #``issue``. :param int issue: (required), issue number :param str base: (required), e.g., 'master' :param str head: (required), e.g., 'username:branch' :returns: :class:`PullRequest <github3.pulls.PullRequest>` if successful, else None
[ "Create", "a", "pull", "request", "from", "issue", "#", "issue", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L726-L738
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_ref
def create_ref(self, ref, sha): """Create a reference in this repository. :param str ref: (required), fully qualified name of the reference, e.g. ``refs/heads/master``. If it doesn't start with ``refs`` and contain at least two slashes, GitHub's API will reject it. :para...
python
def create_ref(self, ref, sha): """Create a reference in this repository. :param str ref: (required), fully qualified name of the reference, e.g. ``refs/heads/master``. If it doesn't start with ``refs`` and contain at least two slashes, GitHub's API will reject it. :para...
[ "def", "create_ref", "(", "self", ",", "ref", ",", "sha", ")", ":", "json", "=", "None", "if", "ref", "and", "ref", ".", "count", "(", "'/'", ")", ">=", "2", "and", "sha", ":", "data", "=", "{", "'ref'", ":", "ref", ",", "'sha'", ":", "sha", ...
Create a reference in this repository. :param str ref: (required), fully qualified name of the reference, e.g. ``refs/heads/master``. If it doesn't start with ``refs`` and contain at least two slashes, GitHub's API will reject it. :param str sha: (required), SHA1 value to set th...
[ "Create", "a", "reference", "in", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L741-L756
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_release
def create_release(self, tag_name, target_commitish=None, name=None, body=None, draft=False, prerelease=False): """Create a release for this repository. :param str tag_name: (required), name to give to the tag :param str target_commitish: (optional), vague concept of a ta...
python
def create_release(self, tag_name, target_commitish=None, name=None, body=None, draft=False, prerelease=False): """Create a release for this repository. :param str tag_name: (required), name to give to the tag :param str target_commitish: (optional), vague concept of a ta...
[ "def", "create_release", "(", "self", ",", "tag_name", ",", "target_commitish", "=", "None", ",", "name", "=", "None", ",", "body", "=", "None", ",", "draft", "=", "False", ",", "prerelease", "=", "False", ")", ":", "data", "=", "{", "'tag_name'", ":",...
Create a release for this repository. :param str tag_name: (required), name to give to the tag :param str target_commitish: (optional), vague concept of a target, either a SHA or a branch name. :param str name: (optional), name of the release :param str body: (optional), des...
[ "Create", "a", "release", "for", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L759-L786
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_status
def create_status(self, sha, state, target_url=None, description=None, context='default'): """Create a status object on a commit. :param str sha: (required), SHA of the commit to create the status on :param str state: (required), state of the test; only the following ...
python
def create_status(self, sha, state, target_url=None, description=None, context='default'): """Create a status object on a commit. :param str sha: (required), SHA of the commit to create the status on :param str state: (required), state of the test; only the following ...
[ "def", "create_status", "(", "self", ",", "sha", ",", "state", ",", "target_url", "=", "None", ",", "description", "=", "None", ",", "context", "=", "'default'", ")", ":", "json", "=", "None", "if", "sha", "and", "state", ":", "data", "=", "{", "'sta...
Create a status object on a commit. :param str sha: (required), SHA of the commit to create the status on :param str state: (required), state of the test; only the following are accepted: 'pending', 'success', 'error', 'failure' :param str target_url: (optional), URL to associate wi...
[ "Create", "a", "status", "object", "on", "a", "commit", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L789-L810
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_tag
def create_tag(self, tag, message, sha, obj_type, tagger, lightweight=False): """Create a tag in this repository. :param str tag: (required), name of the tag :param str message: (required), tag message :param str sha: (required), SHA of the git object this is tagging ...
python
def create_tag(self, tag, message, sha, obj_type, tagger, lightweight=False): """Create a tag in this repository. :param str tag: (required), name of the tag :param str message: (required), tag message :param str sha: (required), SHA of the git object this is tagging ...
[ "def", "create_tag", "(", "self", ",", "tag", ",", "message", ",", "sha", ",", "obj_type", ",", "tagger", ",", "lightweight", "=", "False", ")", ":", "if", "lightweight", "and", "tag", "and", "sha", ":", "return", "self", ".", "create_ref", "(", "'refs...
Create a tag in this repository. :param str tag: (required), name of the tag :param str message: (required), tag message :param str sha: (required), SHA of the git object this is tagging :param str obj_type: (required), type of object being tagged, e.g., 'commit', 'tree', 'b...
[ "Create", "a", "tag", "in", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L813-L841
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.create_tree
def create_tree(self, tree, base_tree=''): """Create a tree on this repository. :param list tree: (required), specifies the tree structure. Format: [{'path': 'path/file', 'mode': 'filemode', 'type': 'blob or tree', 'sha': '44bfc6d...'}] :param str base_tree: (optional), ...
python
def create_tree(self, tree, base_tree=''): """Create a tree on this repository. :param list tree: (required), specifies the tree structure. Format: [{'path': 'path/file', 'mode': 'filemode', 'type': 'blob or tree', 'sha': '44bfc6d...'}] :param str base_tree: (optional), ...
[ "def", "create_tree", "(", "self", ",", "tree", ",", "base_tree", "=", "''", ")", ":", "json", "=", "None", "if", "tree", "and", "isinstance", "(", "tree", ",", "list", ")", ":", "data", "=", "{", "'tree'", ":", "tree", ",", "'base_tree'", ":", "ba...
Create a tree on this repository. :param list tree: (required), specifies the tree structure. Format: [{'path': 'path/file', 'mode': 'filemode', 'type': 'blob or tree', 'sha': '44bfc6d...'}] :param str base_tree: (optional), SHA1 of the tree you want to update with n...
[ "Create", "a", "tree", "on", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L844-L859
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.delete_file
def delete_file(self, path, message, sha, branch=None, committer=None, author=None): """Delete the file located at ``path``. This is part of the Contents CrUD (Create Update Delete) API. See http://developer.github.com/v3/repos/contents/#delete-a-file for more inform...
python
def delete_file(self, path, message, sha, branch=None, committer=None, author=None): """Delete the file located at ``path``. This is part of the Contents CrUD (Create Update Delete) API. See http://developer.github.com/v3/repos/contents/#delete-a-file for more inform...
[ "def", "delete_file", "(", "self", ",", "path", ",", "message", ",", "sha", ",", "branch", "=", "None", ",", "committer", "=", "None", ",", "author", "=", "None", ")", ":", "json", "=", "None", "if", "path", "and", "message", "and", "sha", ":", "ur...
Delete the file located at ``path``. This is part of the Contents CrUD (Create Update Delete) API. See http://developer.github.com/v3/repos/contents/#delete-a-file for more information. :param str path: (required), path to the file being removed :param str message: (required), ...
[ "Delete", "the", "file", "located", "at", "path", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L870-L902
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.delete_key
def delete_key(self, key_id): """Delete the key with the specified id from your deploy keys list. :returns: bool -- True if successful, False otherwise """ if int(key_id) <= 0: return False url = self._build_url('keys', str(key_id), base_url=self._api) return...
python
def delete_key(self, key_id): """Delete the key with the specified id from your deploy keys list. :returns: bool -- True if successful, False otherwise """ if int(key_id) <= 0: return False url = self._build_url('keys', str(key_id), base_url=self._api) return...
[ "def", "delete_key", "(", "self", ",", "key_id", ")", ":", "if", "int", "(", "key_id", ")", "<=", "0", ":", "return", "False", "url", "=", "self", ".", "_build_url", "(", "'keys'", ",", "str", "(", "key_id", ")", ",", "base_url", "=", "self", ".", ...
Delete the key with the specified id from your deploy keys list. :returns: bool -- True if successful, False otherwise
[ "Delete", "the", "key", "with", "the", "specified", "id", "from", "your", "deploy", "keys", "list", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L905-L913
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.edit
def edit(self, name, description=None, homepage=None, private=None, has_issues=None, has_wiki=None, has_downloads=None, default_branch=None): """Edit this repository. :param str name: (required), nam...
python
def edit(self, name, description=None, homepage=None, private=None, has_issues=None, has_wiki=None, has_downloads=None, default_branch=None): """Edit this repository. :param str name: (required), nam...
[ "def", "edit", "(", "self", ",", "name", ",", "description", "=", "None", ",", "homepage", "=", "None", ",", "private", "=", "None", ",", "has_issues", "=", "None", ",", "has_wiki", "=", "None", ",", "has_downloads", "=", "None", ",", "default_branch", ...
Edit this repository. :param str name: (required), name of the repository :param str description: (optional), If not ``None``, change the description for this repository. API default: ``None`` - leave value unchanged. :param str homepage: (optional), If not ``None``, cha...
[ "Edit", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L925-L969
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.git_commit
def git_commit(self, sha): """Get a single (git) commit. :param str sha: (required), sha of the commit :returns: :class:`Commit <github3.git.Commit>` if successful, otherwise None """ json = {} if sha: url = self._build_url('git', 'commits', sha, ...
python
def git_commit(self, sha): """Get a single (git) commit. :param str sha: (required), sha of the commit :returns: :class:`Commit <github3.git.Commit>` if successful, otherwise None """ json = {} if sha: url = self._build_url('git', 'commits', sha, ...
[ "def", "git_commit", "(", "self", ",", "sha", ")", ":", "json", "=", "{", "}", "if", "sha", ":", "url", "=", "self", ".", "_build_url", "(", "'git'", ",", "'commits'", ",", "sha", ",", "base_url", "=", "self", ".", "_api", ")", "json", "=", "self...
Get a single (git) commit. :param str sha: (required), sha of the commit :returns: :class:`Commit <github3.git.Commit>` if successful, otherwise None
[ "Get", "a", "single", "(", "git", ")", "commit", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L982-L993
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.hook
def hook(self, id_num): """Get a single hook. :param int id_num: (required), id of the hook :returns: :class:`Hook <github3.repos.hook.Hook>` if successful, otherwise None """ json = None if int(id_num) > 0: url = self._build_url('hooks', str(id_n...
python
def hook(self, id_num): """Get a single hook. :param int id_num: (required), id of the hook :returns: :class:`Hook <github3.repos.hook.Hook>` if successful, otherwise None """ json = None if int(id_num) > 0: url = self._build_url('hooks', str(id_n...
[ "def", "hook", "(", "self", ",", "id_num", ")", ":", "json", "=", "None", "if", "int", "(", "id_num", ")", ">", "0", ":", "url", "=", "self", ".", "_build_url", "(", "'hooks'", ",", "str", "(", "id_num", ")", ",", "base_url", "=", "self", ".", ...
Get a single hook. :param int id_num: (required), id of the hook :returns: :class:`Hook <github3.repos.hook.Hook>` if successful, otherwise None
[ "Get", "a", "single", "hook", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L996-L1007
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.is_assignee
def is_assignee(self, login): """Check if the user is a possible assignee for an issue on this repository. :returns: :class:`bool` """ if not login: return False url = self._build_url('assignees', login, base_url=self._api) return self._boolean(self._...
python
def is_assignee(self, login): """Check if the user is a possible assignee for an issue on this repository. :returns: :class:`bool` """ if not login: return False url = self._build_url('assignees', login, base_url=self._api) return self._boolean(self._...
[ "def", "is_assignee", "(", "self", ",", "login", ")", ":", "if", "not", "login", ":", "return", "False", "url", "=", "self", ".", "_build_url", "(", "'assignees'", ",", "login", ",", "base_url", "=", "self", ".", "_api", ")", "return", "self", ".", "...
Check if the user is a possible assignee for an issue on this repository. :returns: :class:`bool`
[ "Check", "if", "the", "user", "is", "a", "possible", "assignee", "for", "an", "issue", "on", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1009-L1018
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.issue
def issue(self, number): """Get the issue specified by ``number``. :param int number: (required), number of the issue on this repository :returns: :class:`Issue <github3.issues.issue.Issue>` if successful, otherwise None """ json = None if int(number) > 0: ...
python
def issue(self, number): """Get the issue specified by ``number``. :param int number: (required), number of the issue on this repository :returns: :class:`Issue <github3.issues.issue.Issue>` if successful, otherwise None """ json = None if int(number) > 0: ...
[ "def", "issue", "(", "self", ",", "number", ")", ":", "json", "=", "None", "if", "int", "(", "number", ")", ">", "0", ":", "url", "=", "self", ".", "_build_url", "(", "'issues'", ",", "str", "(", "number", ")", ",", "base_url", "=", "self", ".", ...
Get the issue specified by ``number``. :param int number: (required), number of the issue on this repository :returns: :class:`Issue <github3.issues.issue.Issue>` if successful, otherwise None
[ "Get", "the", "issue", "specified", "by", "number", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1020-L1031
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.key
def key(self, id_num): """Get the specified deploy key. :param int id_num: (required), id of the key :returns: :class:`Key <github3.users.Key>` if successful, else None """ json = None if int(id_num) > 0: url = self._build_url('keys', str(id_num), base_url=se...
python
def key(self, id_num): """Get the specified deploy key. :param int id_num: (required), id of the key :returns: :class:`Key <github3.users.Key>` if successful, else None """ json = None if int(id_num) > 0: url = self._build_url('keys', str(id_num), base_url=se...
[ "def", "key", "(", "self", ",", "id_num", ")", ":", "json", "=", "None", "if", "int", "(", "id_num", ")", ">", "0", ":", "url", "=", "self", ".", "_build_url", "(", "'keys'", ",", "str", "(", "id_num", ")", ",", "base_url", "=", "self", ".", "_...
Get the specified deploy key. :param int id_num: (required), id of the key :returns: :class:`Key <github3.users.Key>` if successful, else None
[ "Get", "the", "specified", "deploy", "key", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1034-L1044
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.label
def label(self, name): """Get the label specified by ``name`` :param str name: (required), name of the label :returns: :class:`Label <github3.issues.label.Label>` if successful, else None """ json = None if name: url = self._build_url('labels', na...
python
def label(self, name): """Get the label specified by ``name`` :param str name: (required), name of the label :returns: :class:`Label <github3.issues.label.Label>` if successful, else None """ json = None if name: url = self._build_url('labels', na...
[ "def", "label", "(", "self", ",", "name", ")", ":", "json", "=", "None", "if", "name", ":", "url", "=", "self", ".", "_build_url", "(", "'labels'", ",", "name", ",", "base_url", "=", "self", ".", "_api", ")", "json", "=", "self", ".", "_json", "(...
Get the label specified by ``name`` :param str name: (required), name of the label :returns: :class:`Label <github3.issues.label.Label>` if successful, else None
[ "Get", "the", "label", "specified", "by", "name" ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1046-L1057
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_branches
def iter_branches(self, number=-1, etag=None): """Iterate over the branches in this repository. :param int number: (optional), number of branches to return. Default: -1 returns all branches :param str etag: (optional), ETag from a previous request to the same endpoint ...
python
def iter_branches(self, number=-1, etag=None): """Iterate over the branches in this repository. :param int number: (optional), number of branches to return. Default: -1 returns all branches :param str etag: (optional), ETag from a previous request to the same endpoint ...
[ "def", "iter_branches", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'branches'", ",", "base_url", "=", "self", ".", "_api", ")", "return", "self", ".", "_iter", "(", "i...
Iterate over the branches in this repository. :param int number: (optional), number of branches to return. Default: -1 returns all branches :param str etag: (optional), ETag from a previous request to the same endpoint :returns: generator of :class:`Branch <g...
[ "Iterate", "over", "the", "branches", "in", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1082-L1093
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_code_frequency
def iter_code_frequency(self, number=-1, etag=None): """Iterate over the code frequency per week. Returns a weekly aggregate of the number of additions and deletions pushed to this repository. :param int number: (optional), number of weeks to return. Default: -1 returns all...
python
def iter_code_frequency(self, number=-1, etag=None): """Iterate over the code frequency per week. Returns a weekly aggregate of the number of additions and deletions pushed to this repository. :param int number: (optional), number of weeks to return. Default: -1 returns all...
[ "def", "iter_code_frequency", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'stats'", ",", "'code_frequency'", ",", "base_url", "=", "self", ".", "_api", ")", "return", "self...
Iterate over the code frequency per week. Returns a weekly aggregate of the number of additions and deletions pushed to this repository. :param int number: (optional), number of weeks to return. Default: -1 returns all weeks :param str etag: (optional), ETag from a previous...
[ "Iterate", "over", "the", "code", "frequency", "per", "week", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1095-L1117
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_comments_on_commit
def iter_comments_on_commit(self, sha, number=1, etag=None): """Iterate over comments for a single commit. :param sha: (required), sha of the commit to list comments on :type sha: str :param int number: (optional), number of comments to return. Default: -1 returns all commen...
python
def iter_comments_on_commit(self, sha, number=1, etag=None): """Iterate over comments for a single commit. :param sha: (required), sha of the commit to list comments on :type sha: str :param int number: (optional), number of comments to return. Default: -1 returns all commen...
[ "def", "iter_comments_on_commit", "(", "self", ",", "sha", ",", "number", "=", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'commits'", ",", "sha", ",", "'comments'", ",", "base_url", "=", "self", ".", "_api", ...
Iterate over comments for a single commit. :param sha: (required), sha of the commit to list comments on :type sha: str :param int number: (optional), number of comments to return. Default: -1 returns all comments :param str etag: (optional), ETag from a previous request to ...
[ "Iterate", "over", "comments", "for", "a", "single", "commit", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1144-L1157
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_commit_activity
def iter_commit_activity(self, number=-1, etag=None): """Iterate over last year of commit activity by week. See: http://developer.github.com/v3/repos/statistics/ :param int number: (optional), number of weeks to return. Default -1 will return all of the weeks. :param str et...
python
def iter_commit_activity(self, number=-1, etag=None): """Iterate over last year of commit activity by week. See: http://developer.github.com/v3/repos/statistics/ :param int number: (optional), number of weeks to return. Default -1 will return all of the weeks. :param str et...
[ "def", "iter_commit_activity", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'stats'", ",", "'commit_activity'", ",", "base_url", "=", "self", ".", "_api", ")", "return", "se...
Iterate over last year of commit activity by week. See: http://developer.github.com/v3/repos/statistics/ :param int number: (optional), number of weeks to return. Default -1 will return all of the weeks. :param str etag: (optional), ETag from a previous request to the same ...
[ "Iterate", "over", "last", "year", "of", "commit", "activity", "by", "week", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1159-L1179
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_commits
def iter_commits(self, sha=None, path=None, author=None, number=-1, etag=None, since=None, until=None): """Iterate over commits in this repository. :param str sha: (optional), sha or branch to start listing commits from :param str path: (optional), commits conta...
python
def iter_commits(self, sha=None, path=None, author=None, number=-1, etag=None, since=None, until=None): """Iterate over commits in this repository. :param str sha: (optional), sha or branch to start listing commits from :param str path: (optional), commits conta...
[ "def", "iter_commits", "(", "self", ",", "sha", "=", "None", ",", "path", "=", "None", ",", "author", "=", "None", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ",", "since", "=", "None", ",", "until", "=", "None", ")", ":", "params", ...
Iterate over commits in this repository. :param str sha: (optional), sha or branch to start listing commits from :param str path: (optional), commits containing this path will be listed :param str author: (optional), GitHub login, real name, or email to filte...
[ "Iterate", "over", "commits", "in", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1181-L1213
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_contributors
def iter_contributors(self, anon=False, number=-1, etag=None): """Iterate over the contributors to this repository. :param bool anon: (optional), True lists anonymous contributors as well :param int number: (optional), number of contributors to return. Default: -1 return...
python
def iter_contributors(self, anon=False, number=-1, etag=None): """Iterate over the contributors to this repository. :param bool anon: (optional), True lists anonymous contributors as well :param int number: (optional), number of contributors to return. Default: -1 return...
[ "def", "iter_contributors", "(", "self", ",", "anon", "=", "False", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'contributors'", ",", "base_url", "=", "self", ".", "_api", ")", "param...
Iterate over the contributors to this repository. :param bool anon: (optional), True lists anonymous contributors as well :param int number: (optional), number of contributors to return. Default: -1 returns all contributors :param str etag: (optional), ETag from a previo...
[ "Iterate", "over", "the", "contributors", "to", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1215-L1230
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_contributor_statistics
def iter_contributor_statistics(self, number=-1, etag=None): """Iterate over the contributors list. See also: http://developer.github.com/v3/repos/statistics/ :param int number: (optional), number of weeks to return. Default -1 will return all of the weeks. :param str etag:...
python
def iter_contributor_statistics(self, number=-1, etag=None): """Iterate over the contributors list. See also: http://developer.github.com/v3/repos/statistics/ :param int number: (optional), number of weeks to return. Default -1 will return all of the weeks. :param str etag:...
[ "def", "iter_contributor_statistics", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'stats'", ",", "'contributors'", ",", "base_url", "=", "self", ".", "_api", ")", "return", ...
Iterate over the contributors list. See also: http://developer.github.com/v3/repos/statistics/ :param int number: (optional), number of weeks to return. Default -1 will return all of the weeks. :param str etag: (optional), ETag from a previous request to the same endpoi...
[ "Iterate", "over", "the", "contributors", "list", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1232-L1253
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_deployments
def iter_deployments(self, number=-1, etag=None): """Iterate over deployments for this repository. :param int number: (optional), number of deployments to return. Default: -1, returns all available deployments :param str etag: (optional), ETag from a previous request for all ...
python
def iter_deployments(self, number=-1, etag=None): """Iterate over deployments for this repository. :param int number: (optional), number of deployments to return. Default: -1, returns all available deployments :param str etag: (optional), ETag from a previous request for all ...
[ "def", "iter_deployments", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'deployments'", ",", "base_url", "=", "self", ".", "_api", ")", "i", "=", "self", ".", "_iter", "...
Iterate over deployments for this repository. :param int number: (optional), number of deployments to return. Default: -1, returns all available deployments :param str etag: (optional), ETag from a previous request for all deployments :returns: generator of :...
[ "Iterate", "over", "deployments", "for", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1255-L1268
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_forks
def iter_forks(self, sort='', number=-1, etag=None): """Iterate over forks of this repository. :param str sort: (optional), accepted values: ('newest', 'oldest', 'watchers'), API default: 'newest' :param int number: (optional), number of forks to return. Default: -1 retu...
python
def iter_forks(self, sort='', number=-1, etag=None): """Iterate over forks of this repository. :param str sort: (optional), accepted values: ('newest', 'oldest', 'watchers'), API default: 'newest' :param int number: (optional), number of forks to return. Default: -1 retu...
[ "def", "iter_forks", "(", "self", ",", "sort", "=", "''", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'forks'", ",", "base_url", "=", "self", ".", "_api", ")", "params", "=", "{",...
Iterate over forks of this repository. :param str sort: (optional), accepted values: ('newest', 'oldest', 'watchers'), API default: 'newest' :param int number: (optional), number of forks to return. Default: -1 returns all forks :param str etag: (optional), ETag from a p...
[ "Iterate", "over", "forks", "of", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1282-L1297
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_hooks
def iter_hooks(self, number=-1, etag=None): """Iterate over hooks registered on this repository. :param int number: (optional), number of hoks to return. Default: -1 returns all hooks :param str etag: (optional), ETag from a previous request to the same endpoint ...
python
def iter_hooks(self, number=-1, etag=None): """Iterate over hooks registered on this repository. :param int number: (optional), number of hoks to return. Default: -1 returns all hooks :param str etag: (optional), ETag from a previous request to the same endpoint ...
[ "def", "iter_hooks", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'hooks'", ",", "base_url", "=", "self", ".", "_api", ")", "return", "self", ".", "_iter", "(", "int", ...
Iterate over hooks registered on this repository. :param int number: (optional), number of hoks to return. Default: -1 returns all hooks :param str etag: (optional), ETag from a previous request to the same endpoint :returns: generator of :class:`Hook <github3.repos.hook...
[ "Iterate", "over", "hooks", "registered", "on", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1300-L1310
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_issues
def iter_issues(self, milestone=None, state=None, assignee=None, mentioned=None, labels=None, sort=None, direction=None, since=None, number=...
python
def iter_issues(self, milestone=None, state=None, assignee=None, mentioned=None, labels=None, sort=None, direction=None, since=None, number=...
[ "def", "iter_issues", "(", "self", ",", "milestone", "=", "None", ",", "state", "=", "None", ",", "assignee", "=", "None", ",", "mentioned", "=", "None", ",", "labels", "=", "None", ",", "sort", "=", "None", ",", "direction", "=", "None", ",", "since...
Iterate over issues on this repo based upon parameters passed. .. versionchanged:: 0.9.0 The ``state`` parameter now accepts 'all' in addition to 'open' and 'closed'. :param int milestone: (optional), 'none', or '*' :param str state: (optional), accepted values: ('all'...
[ "Iterate", "over", "issues", "on", "this", "repo", "based", "upon", "parameters", "passed", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1312-L1361
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_issue_events
def iter_issue_events(self, number=-1, etag=None): """Iterates over issue events on this repository. :param int number: (optional), number of events to return. Default: -1 returns all available events :param str etag: (optional), ETag from a previous request to the same ...
python
def iter_issue_events(self, number=-1, etag=None): """Iterates over issue events on this repository. :param int number: (optional), number of events to return. Default: -1 returns all available events :param str etag: (optional), ETag from a previous request to the same ...
[ "def", "iter_issue_events", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'issues'", ",", "'events'", ",", "base_url", "=", "self", ".", "_api", ")", "return", "self", ".",...
Iterates over issue events on this repository. :param int number: (optional), number of events to return. Default: -1 returns all available events :param str etag: (optional), ETag from a previous request to the same endpoint :returns: generator of :class:`Is...
[ "Iterates", "over", "issue", "events", "on", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1363-L1374
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_languages
def iter_languages(self, number=-1, etag=None): """Iterate over the programming languages used in the repository. :param int number: (optional), number of languages to return. Default: -1 returns all used languages :param str etag: (optional), ETag from a previous request to the sam...
python
def iter_languages(self, number=-1, etag=None): """Iterate over the programming languages used in the repository. :param int number: (optional), number of languages to return. Default: -1 returns all used languages :param str etag: (optional), ETag from a previous request to the sam...
[ "def", "iter_languages", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'languages'", ",", "base_url", "=", "self", ".", "_api", ")", "return", "self", ".", "_iter", "(", ...
Iterate over the programming languages used in the repository. :param int number: (optional), number of languages to return. Default: -1 returns all used languages :param str etag: (optional), ETag from a previous request to the same endpoint :returns: generator of tuple...
[ "Iterate", "over", "the", "programming", "languages", "used", "in", "the", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1401-L1411
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_milestones
def iter_milestones(self, state=None, sort=None, direction=None, number=-1, etag=None): """Iterates over the milestones on this repository. :param str state: (optional), state of the milestones, accepted values: ('open', 'closed') :param str sort: (optional),...
python
def iter_milestones(self, state=None, sort=None, direction=None, number=-1, etag=None): """Iterates over the milestones on this repository. :param str state: (optional), state of the milestones, accepted values: ('open', 'closed') :param str sort: (optional),...
[ "def", "iter_milestones", "(", "self", ",", "state", "=", "None", ",", "sort", "=", "None", ",", "direction", "=", "None", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'milestones'", ...
Iterates over the milestones on this repository. :param str state: (optional), state of the milestones, accepted values: ('open', 'closed') :param str sort: (optional), how to sort the milestones, accepted values: ('due_date', 'completeness') :param str direction: (optio...
[ "Iterates", "over", "the", "milestones", "on", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1413-L1440
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_network_events
def iter_network_events(self, number=-1, etag=None): """Iterates over events on a network of repositories. :param int number: (optional), number of events to return. Default: -1 returns all available events :param str etag: (optional), ETag from a previous request to the same ...
python
def iter_network_events(self, number=-1, etag=None): """Iterates over events on a network of repositories. :param int number: (optional), number of events to return. Default: -1 returns all available events :param str etag: (optional), ETag from a previous request to the same ...
[ "def", "iter_network_events", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "base", "=", "self", ".", "_api", ".", "replace", "(", "'repos'", ",", "'networks'", ",", "1", ")", "url", "=", "self", ".", "_build_url", ...
Iterates over events on a network of repositories. :param int number: (optional), number of events to return. Default: -1 returns all available events :param str etag: (optional), ETag from a previous request to the same endpoint :returns: generator of :class:`Event <git...
[ "Iterates", "over", "events", "on", "a", "network", "of", "repositories", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1442-L1453
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_notifications
def iter_notifications(self, all=False, participating=False, since=None, number=-1, etag=None): """Iterates over the notifications for this repository. :param bool all: (optional), show all notifications, including ones marked as read :param bool participa...
python
def iter_notifications(self, all=False, participating=False, since=None, number=-1, etag=None): """Iterates over the notifications for this repository. :param bool all: (optional), show all notifications, including ones marked as read :param bool participa...
[ "def", "iter_notifications", "(", "self", ",", "all", "=", "False", ",", "participating", "=", "False", ",", "since", "=", "None", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'notific...
Iterates over the notifications for this repository. :param bool all: (optional), show all notifications, including ones marked as read :param bool participating: (optional), show only the notifications the user is participating in directly :param since: (optional), filt...
[ "Iterates", "over", "the", "notifications", "for", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1456-L1481
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_pages_builds
def iter_pages_builds(self, number=-1, etag=None): """Iterate over pages builds of this repository. :returns: generator of :class:`PagesBuild <github3.repos.pages.PagesBuild>` """ url = self._build_url('pages', 'builds', base_url=self._api) return self._iter(int(numb...
python
def iter_pages_builds(self, number=-1, etag=None): """Iterate over pages builds of this repository. :returns: generator of :class:`PagesBuild <github3.repos.pages.PagesBuild>` """ url = self._build_url('pages', 'builds', base_url=self._api) return self._iter(int(numb...
[ "def", "iter_pages_builds", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'pages'", ",", "'builds'", ",", "base_url", "=", "self", ".", "_api", ")", "return", "self", ".", ...
Iterate over pages builds of this repository. :returns: generator of :class:`PagesBuild <github3.repos.pages.PagesBuild>`
[ "Iterate", "over", "pages", "builds", "of", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1484-L1491
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_pulls
def iter_pulls(self, state=None, head=None, base=None, sort='created', direction='desc', number=-1, etag=None): """List pull requests on repository. .. versionchanged:: 0.9.0 - The ``state`` parameter now accepts 'all' in addition to 'open' and 'closed'. ...
python
def iter_pulls(self, state=None, head=None, base=None, sort='created', direction='desc', number=-1, etag=None): """List pull requests on repository. .. versionchanged:: 0.9.0 - The ``state`` parameter now accepts 'all' in addition to 'open' and 'closed'. ...
[ "def", "iter_pulls", "(", "self", ",", "state", "=", "None", ",", "head", "=", "None", ",", "base", "=", "None", ",", "sort", "=", "'created'", ",", "direction", "=", "'desc'", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "ur...
List pull requests on repository. .. versionchanged:: 0.9.0 - The ``state`` parameter now accepts 'all' in addition to 'open' and 'closed'. - The ``sort`` parameter was added. - The ``direction`` parameter was added. :param str state: (optional), ac...
[ "List", "pull", "requests", "on", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1493-L1529
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_refs
def iter_refs(self, subspace='', number=-1, etag=None): """Iterates over references for this repository. :param str subspace: (optional), e.g. 'tags', 'stashes', 'notes' :param int number: (optional), number of refs to return. Default: -1 returns all available refs :param st...
python
def iter_refs(self, subspace='', number=-1, etag=None): """Iterates over references for this repository. :param str subspace: (optional), e.g. 'tags', 'stashes', 'notes' :param int number: (optional), number of refs to return. Default: -1 returns all available refs :param st...
[ "def", "iter_refs", "(", "self", ",", "subspace", "=", "''", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "if", "subspace", ":", "args", "=", "(", "'git'", ",", "'refs'", ",", "subspace", ")", "else", ":", "args", "=", "(", ...
Iterates over references for this repository. :param str subspace: (optional), e.g. 'tags', 'stashes', 'notes' :param int number: (optional), number of refs to return. Default: -1 returns all available refs :param str etag: (optional), ETag from a previous request to the same ...
[ "Iterates", "over", "references", "for", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1531-L1546
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_releases
def iter_releases(self, number=-1, etag=None): """Iterates over releases for this repository. :param int number: (optional), number of refs to return. Default: -1 returns all available refs :param str etag: (optional), ETag from a previous request to the same endpoint ...
python
def iter_releases(self, number=-1, etag=None): """Iterates over releases for this repository. :param int number: (optional), number of refs to return. Default: -1 returns all available refs :param str etag: (optional), ETag from a previous request to the same endpoint ...
[ "def", "iter_releases", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'releases'", ",", "base_url", "=", "self", ".", "_api", ")", "iterator", "=", "self", ".", "_iter", ...
Iterates over releases for this repository. :param int number: (optional), number of refs to return. Default: -1 returns all available refs :param str etag: (optional), ETag from a previous request to the same endpoint :returns: generator of :class:`Release <...
[ "Iterates", "over", "releases", "for", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1548-L1561
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_statuses
def iter_statuses(self, sha, number=-1, etag=None): """Iterates over the statuses for a specific SHA. :param str sha: SHA of the commit to list the statuses of :param int number: (optional), return up to number statuses. Default: -1 returns all available statuses. :param str...
python
def iter_statuses(self, sha, number=-1, etag=None): """Iterates over the statuses for a specific SHA. :param str sha: SHA of the commit to list the statuses of :param int number: (optional), return up to number statuses. Default: -1 returns all available statuses. :param str...
[ "def", "iter_statuses", "(", "self", ",", "sha", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "''", "if", "sha", ":", "url", "=", "self", ".", "_build_url", "(", "'statuses'", ",", "sha", ",", "base_url", "=", "se...
Iterates over the statuses for a specific SHA. :param str sha: SHA of the commit to list the statuses of :param int number: (optional), return up to number statuses. Default: -1 returns all available statuses. :param str etag: (optional), ETag from a previous request to the same ...
[ "Iterates", "over", "the", "statuses", "for", "a", "specific", "SHA", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1587-L1600
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.iter_tags
def iter_tags(self, number=-1, etag=None): """Iterates over tags on this repository. :param int number: (optional), return up to at most number tags. Default: -1 returns all available tags. :param str etag: (optional), ETag from a previous request to the same endpoint ...
python
def iter_tags(self, number=-1, etag=None): """Iterates over tags on this repository. :param int number: (optional), return up to at most number tags. Default: -1 returns all available tags. :param str etag: (optional), ETag from a previous request to the same endpoint ...
[ "def", "iter_tags", "(", "self", ",", "number", "=", "-", "1", ",", "etag", "=", "None", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'tags'", ",", "base_url", "=", "self", ".", "_api", ")", "return", "self", ".", "_iter", "(", "int", "...
Iterates over tags on this repository. :param int number: (optional), return up to at most number tags. Default: -1 returns all available tags. :param str etag: (optional), ETag from a previous request to the same endpoint :returns: generator of :class:`RepoTag <github3....
[ "Iterates", "over", "tags", "on", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1602-L1612
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.mark_notifications
def mark_notifications(self, last_read=''): """Mark all notifications in this repository as read. :param str last_read: (optional), Describes the last point that notifications were checked. Anything updated since this time will not be updated. Default: Now. Expected in ISO 8601 ...
python
def mark_notifications(self, last_read=''): """Mark all notifications in this repository as read. :param str last_read: (optional), Describes the last point that notifications were checked. Anything updated since this time will not be updated. Default: Now. Expected in ISO 8601 ...
[ "def", "mark_notifications", "(", "self", ",", "last_read", "=", "''", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'notifications'", ",", "base_url", "=", "self", ".", "_api", ")", "mark", "=", "{", "'read'", ":", "True", "}", "if", "last_re...
Mark all notifications in this repository as read. :param str last_read: (optional), Describes the last point that notifications were checked. Anything updated since this time will not be updated. Default: Now. Expected in ISO 8601 format: ``YYYY-MM-DDTHH:MM:SSZ``. Example: ...
[ "Mark", "all", "notifications", "in", "this", "repository", "as", "read", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1629-L1643
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.merge
def merge(self, base, head, message=''): """Perform a merge from ``head`` into ``base``. :param str base: (required), where you're merging into :param str head: (required), where you're merging from :param str message: (optional), message to be used for the commit :returns: :cla...
python
def merge(self, base, head, message=''): """Perform a merge from ``head`` into ``base``. :param str base: (required), where you're merging into :param str head: (required), where you're merging from :param str message: (optional), message to be used for the commit :returns: :cla...
[ "def", "merge", "(", "self", ",", "base", ",", "head", ",", "message", "=", "''", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'merges'", ",", "base_url", "=", "self", ".", "_api", ")", "data", "=", "{", "'base'", ":", "base", ",", "'he...
Perform a merge from ``head`` into ``base``. :param str base: (required), where you're merging into :param str head: (required), where you're merging from :param str message: (optional), message to be used for the commit :returns: :class:`RepoCommit <github3.repos.commit.RepoCommit>`
[ "Perform", "a", "merge", "from", "head", "into", "base", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1646-L1659
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.milestone
def milestone(self, number): """Get the milestone indicated by ``number``. :param int number: (required), unique id number of the milestone :returns: :class:`Milestone <github3.issues.milestone.Milestone>` """ json = None if int(number) > 0: url = self._build...
python
def milestone(self, number): """Get the milestone indicated by ``number``. :param int number: (required), unique id number of the milestone :returns: :class:`Milestone <github3.issues.milestone.Milestone>` """ json = None if int(number) > 0: url = self._build...
[ "def", "milestone", "(", "self", ",", "number", ")", ":", "json", "=", "None", "if", "int", "(", "number", ")", ">", "0", ":", "url", "=", "self", ".", "_build_url", "(", "'milestones'", ",", "str", "(", "number", ")", ",", "base_url", "=", "self",...
Get the milestone indicated by ``number``. :param int number: (required), unique id number of the milestone :returns: :class:`Milestone <github3.issues.milestone.Milestone>`
[ "Get", "the", "milestone", "indicated", "by", "number", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1661-L1672
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.pages
def pages(self): """Get information about this repository's pages site. :returns: :class:`PagesInfo <github3.repos.pages.PagesInfo>` """ url = self._build_url('pages', base_url=self._api) json = self._json(self._get(url), 200) return PagesInfo(json) if json else None
python
def pages(self): """Get information about this repository's pages site. :returns: :class:`PagesInfo <github3.repos.pages.PagesInfo>` """ url = self._build_url('pages', base_url=self._api) json = self._json(self._get(url), 200) return PagesInfo(json) if json else None
[ "def", "pages", "(", "self", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'pages'", ",", "base_url", "=", "self", ".", "_api", ")", "json", "=", "self", ".", "_json", "(", "self", ".", "_get", "(", "url", ")", ",", "200", ")", "return",...
Get information about this repository's pages site. :returns: :class:`PagesInfo <github3.repos.pages.PagesInfo>`
[ "Get", "information", "about", "this", "repository", "s", "pages", "site", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1675-L1682
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.pull_request
def pull_request(self, number): """Get the pull request indicated by ``number``. :param int number: (required), number of the pull request. :returns: :class:`PullRequest <github3.pulls.PullRequest>` """ json = None if int(number) > 0: url = self._build_url('p...
python
def pull_request(self, number): """Get the pull request indicated by ``number``. :param int number: (required), number of the pull request. :returns: :class:`PullRequest <github3.pulls.PullRequest>` """ json = None if int(number) > 0: url = self._build_url('p...
[ "def", "pull_request", "(", "self", ",", "number", ")", ":", "json", "=", "None", "if", "int", "(", "number", ")", ">", "0", ":", "url", "=", "self", ".", "_build_url", "(", "'pulls'", ",", "str", "(", "number", ")", ",", "base_url", "=", "self", ...
Get the pull request indicated by ``number``. :param int number: (required), number of the pull request. :returns: :class:`PullRequest <github3.pulls.PullRequest>`
[ "Get", "the", "pull", "request", "indicated", "by", "number", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1684-L1694
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.readme
def readme(self): """Get the README for this repository. :returns: :class:`Contents <github3.repos.contents.Contents>` """ url = self._build_url('readme', base_url=self._api) json = self._json(self._get(url), 200) return Contents(json, self) if json else None
python
def readme(self): """Get the README for this repository. :returns: :class:`Contents <github3.repos.contents.Contents>` """ url = self._build_url('readme', base_url=self._api) json = self._json(self._get(url), 200) return Contents(json, self) if json else None
[ "def", "readme", "(", "self", ")", ":", "url", "=", "self", ".", "_build_url", "(", "'readme'", ",", "base_url", "=", "self", ".", "_api", ")", "json", "=", "self", ".", "_json", "(", "self", ".", "_get", "(", "url", ")", ",", "200", ")", "return...
Get the README for this repository. :returns: :class:`Contents <github3.repos.contents.Contents>`
[ "Get", "the", "README", "for", "this", "repository", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1696-L1703
kislyuk/aegea
aegea/packages/github3/repos/repo.py
Repository.ref
def ref(self, ref): """Get a reference pointed to by ``ref``. The most common will be branches and tags. For a branch, you must specify 'heads/branchname' and for a tag, 'tags/tagname'. Essentially, the system should return any reference you provide it in the namespace, includin...
python
def ref(self, ref): """Get a reference pointed to by ``ref``. The most common will be branches and tags. For a branch, you must specify 'heads/branchname' and for a tag, 'tags/tagname'. Essentially, the system should return any reference you provide it in the namespace, includin...
[ "def", "ref", "(", "self", ",", "ref", ")", ":", "json", "=", "None", "if", "ref", ":", "url", "=", "self", ".", "_build_url", "(", "'git'", ",", "'refs'", ",", "ref", ",", "base_url", "=", "self", ".", "_api", ")", "json", "=", "self", ".", "_...
Get a reference pointed to by ``ref``. The most common will be branches and tags. For a branch, you must specify 'heads/branchname' and for a tag, 'tags/tagname'. Essentially, the system should return any reference you provide it in the namespace, including notes and stashes (provided t...
[ "Get", "a", "reference", "pointed", "to", "by", "ref", "." ]
train
https://github.com/kislyuk/aegea/blob/94957e9dba036eae3052e2662c208b259c08399a/aegea/packages/github3/repos/repo.py#L1705-L1720