desc stringlengths 3 26.7k | decl stringlengths 11 7.89k | bodies stringlengths 8 553k |
|---|---|---|
':type: string'
| @property
def content(self):
| self._completeIfNotSet(self._content)
return self._content.value
|
':type: string'
| @property
def encoding(self):
| self._completeIfNotSet(self._encoding)
return self._encoding.value
|
':type: string'
| @property
def sha(self):
| self._completeIfNotSet(self._sha)
return self._sha.value
|
':type: integer'
| @property
def size(self):
| self._completeIfNotSet(self._size)
return self._size.value
|
':type: string'
| @property
def url(self):
| self._completeIfNotSet(self._url)
return self._url.value
|
':type: integer'
| @property
def additions(self):
| return self._additions.value
|
':type: string'
| @property
def blob_url(self):
| return self._blob_url.value
|
':type: integer'
| @property
def changes(self):
| return self._changes.value
|
':type: string'
| @property
def contents_url(self):
| return self._contents_url.value
|
':type: integer'
| @property
def deletions(self):
| return self._deletions.value
|
':type: string'
| @property
def filename(self):
| return self._filename.value
|
':type: string'
| @property
def patch(self):
| return self._patch.value
|
':type: string'
| @property
def raw_url(self):
| return self._raw_url.value
|
':type: string'
| @property
def sha(self):
| return self._sha.value
|
':type: string'
| @property
def status(self):
| return self._status.value
|
'Initialize a debug frame with requestHeader
Frame count is updated and will be attached to respond header
The structure of a frame: [requestHeader, statusCode, responseHeader, raw_data]
Some of them may be None'
| def NEW_DEBUG_FRAME(self, requestHeader):
| if self.DEBUG_FLAG:
new_frame = [requestHeader, None, None, None]
if (self._frameCount < (self.DEBUG_FRAME_BUFFER_SIZE - 1)):
self._frameBuffer.append(new_frame)
else:
self._frameBuffer[0] = new_frame
self._frameCount = (len(self._frameBuffer) - 1)
|
'Update current frame with response
Current frame index will be attached to responseHeader'
| def DEBUG_ON_RESPONSE(self, statusCode, responseHeader, data):
| if self.DEBUG_FLAG:
self._frameBuffer[self._frameCount][1:4] = [statusCode, responseHeader, data]
responseHeader[self.DEBUG_HEADER_KEY] = self._frameCount
|
':type: string'
| @property
def message(self):
| self._completeIfNotSet(self._message)
return self._message.value
|
':type: :class:`github.GitObject.GitObject`'
| @property
def object(self):
| self._completeIfNotSet(self._object)
return self._object.value
|
':type: string'
| @property
def sha(self):
| self._completeIfNotSet(self._sha)
return self._sha.value
|
':type: string'
| @property
def tag(self):
| self._completeIfNotSet(self._tag)
return self._tag.value
|
':type: :class:`github.GitAuthor.GitAuthor`'
| @property
def tagger(self):
| self._completeIfNotSet(self._tagger)
return self._tagger.value
|
':type: string'
| @property
def url(self):
| self._completeIfNotSet(self._url)
return self._url.value
|
':type: class:`github.Rate.Rate`'
| @property
def rate(self):
| return self._rate.value
|
':type: string'
| @property
def body(self):
| self._completeIfNotSet(self._body)
return self._body.value
|
':type: string'
| @property
def commit_id(self):
| self._completeIfNotSet(self._commit_id)
return self._commit_id.value
|
':type: datetime.datetime'
| @property
def created_at(self):
| self._completeIfNotSet(self._created_at)
return self._created_at.value
|
':type: string'
| @property
def html_url(self):
| self._completeIfNotSet(self._html_url)
return self._html_url.value
|
':type: integer'
| @property
def id(self):
| self._completeIfNotSet(self._id)
return self._id.value
|
':type: integer'
| @property
def line(self):
| self._completeIfNotSet(self._line)
return self._line.value
|
':type: string'
| @property
def path(self):
| self._completeIfNotSet(self._path)
return self._path.value
|
':type: integer'
| @property
def position(self):
| self._completeIfNotSet(self._position)
return self._position.value
|
':type: datetime.datetime'
| @property
def updated_at(self):
| self._completeIfNotSet(self._updated_at)
return self._updated_at.value
|
':type: string'
| @property
def url(self):
| self._completeIfNotSet(self._url)
return self._url.value
|
':type: :class:`github.NamedUser.NamedUser`'
| @property
def user(self):
| self._completeIfNotSet(self._user)
return self._user.value
|
':calls: `DELETE /repos/:owner/:repo/comments/:id <http://developer.github.com/v3/repos/comments>`_
:rtype: None'
| def delete(self):
| (headers, data) = self._requester.requestJsonAndCheck('DELETE', self.url)
|
':calls: `PATCH /repos/:owner/:repo/comments/:id <http://developer.github.com/v3/repos/comments>`_
:param body: string
:rtype: None'
| def edit(self, body):
| assert isinstance(body, (str, unicode)), body
post_parameters = {'body': body}
(headers, data) = self._requester.requestJsonAndCheck('PATCH', self.url, input=post_parameters)
self._useAttributes(data)
|
':type: bool'
| @property
def admin(self):
| return self._admin.value
|
':type: bool'
| @property
def pull(self):
| return self._pull.value
|
':type: bool'
| @property
def push(self):
| return self._push.value
|
':type: string'
| @property
def content(self):
| return self._content.value
|
':type: string'
| @property
def filename(self):
| return self._filename.value
|
':type: string'
| @property
def language(self):
| return self._language.value
|
':type: string'
| @property
def raw_url(self):
| return self._raw_url.value
|
':type: integer'
| @property
def size(self):
| return self._size.value
|
':type: string'
| @property
def type(self):
| return self._type.value
|
':type: string'
| @property
def title(self):
| return self._title.value
|
':type: string'
| @property
def url(self):
| return self._url.value
|
':type: string'
| @property
def latest_comment_url(self):
| return self._latest_comment_url.value
|
':type: string'
| @property
def type(self):
| return self._type.value
|
':type: :class:`github.NamedUser.NamedUser`'
| @property
def assignee(self):
| self._completeIfNotSet(self._assignee)
return self._assignee.value
|
':type: string'
| @property
def body(self):
| self._completeIfNotSet(self._body)
return self._body.value
|
':type: datetime.datetime'
| @property
def closed_at(self):
| self._completeIfNotSet(self._closed_at)
return self._closed_at.value
|
':type: :class:`github.NamedUser.NamedUser`'
| @property
def closed_by(self):
| self._completeIfNotSet(self._closed_by)
return self._closed_by.value
|
':type: integer'
| @property
def comments(self):
| self._completeIfNotSet(self._comments)
return self._comments.value
|
':type: string'
| @property
def comments_url(self):
| self._completeIfNotSet(self._comments_url)
return self._comments_url.value
|
':type: datetime.datetime'
| @property
def created_at(self):
| self._completeIfNotSet(self._created_at)
return self._created_at.value
|
':type: string'
| @property
def events_url(self):
| self._completeIfNotSet(self._events_url)
return self._events_url.value
|
':type: string'
| @property
def html_url(self):
| self._completeIfNotSet(self._html_url)
return self._html_url.value
|
':type: integer'
| @property
def id(self):
| self._completeIfNotSet(self._id)
return self._id.value
|
':type: list of :class:`github.Label.Label`'
| @property
def labels(self):
| self._completeIfNotSet(self._labels)
return self._labels.value
|
':type: string'
| @property
def labels_url(self):
| self._completeIfNotSet(self._labels_url)
return self._labels_url.value
|
':type: :class:`github.Milestone.Milestone`'
| @property
def milestone(self):
| self._completeIfNotSet(self._milestone)
return self._milestone.value
|
':type: integer'
| @property
def number(self):
| self._completeIfNotSet(self._number)
return self._number.value
|
':type: :class:`github.IssuePullRequest.IssuePullRequest`'
| @property
def pull_request(self):
| self._completeIfNotSet(self._pull_request)
return self._pull_request.value
|
':type: :class:`github.Repository.Repository`'
| @property
def repository(self):
| self._completeIfNotSet(self._repository)
if (self._repository is github.GithubObject.NotSet):
repo_url = '/'.join(self.url.split('/')[:(-2)])
self._repository = github.GithubObject._ValuedAttribute(github.Repository.Repository(self._requester, self._headers, {'url': repo_url}, completed=False))
... |
':type: string'
| @property
def state(self):
| self._completeIfNotSet(self._state)
return self._state.value
|
':type: string'
| @property
def title(self):
| self._completeIfNotSet(self._title)
return self._title.value
|
':type: datetime.datetime'
| @property
def updated_at(self):
| self._completeIfNotSet(self._updated_at)
return self._updated_at.value
|
':type: string'
| @property
def url(self):
| self._completeIfNotSet(self._url)
return self._url.value
|
':type: :class:`github.NamedUser.NamedUser`'
| @property
def user(self):
| self._completeIfNotSet(self._user)
return self._user.value
|
':calls: `POST /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_
:param label: :class:`github.Label.Label` or string
:rtype: None'
| def add_to_labels(self, *labels):
| assert all((isinstance(element, (github.Label.Label, str, unicode)) for element in labels)), labels
post_parameters = [(label.name if isinstance(label, github.Label.Label) else label) for label in labels]
(headers, data) = self._requester.requestJsonAndCheck('POST', (self.url + '/labels'), input=post_parame... |
':calls: `POST /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_
:param body: string
:rtype: :class:`github.IssueComment.IssueComment`'
| def create_comment(self, body):
| assert isinstance(body, (str, unicode)), body
post_parameters = {'body': body}
(headers, data) = self._requester.requestJsonAndCheck('POST', (self.url + '/comments'), input=post_parameters)
return github.IssueComment.IssueComment(self._requester, headers, data, completed=True)
|
':calls: `DELETE /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_
:rtype: None'
| def delete_labels(self):
| (headers, data) = self._requester.requestJsonAndCheck('DELETE', (self.url + '/labels'))
|
':calls: `PATCH /repos/:owner/:repo/issues/:number <http://developer.github.com/v3/issues>`_
:param title: string
:param body: string
:param assignee: string or :class:`github.NamedUser.NamedUser` or None
:param state: string
:param milestone: :class:`github.Milestone.Milestone` or None
:param labels: list of string
:r... | def edit(self, title=github.GithubObject.NotSet, body=github.GithubObject.NotSet, assignee=github.GithubObject.NotSet, state=github.GithubObject.NotSet, milestone=github.GithubObject.NotSet, labels=github.GithubObject.NotSet):
| assert ((title is github.GithubObject.NotSet) or isinstance(title, (str, unicode))), title
assert ((body is github.GithubObject.NotSet) or isinstance(body, (str, unicode))), body
assert ((assignee is github.GithubObject.NotSet) or (assignee is None) or isinstance(assignee, github.NamedUser.NamedUser) or isi... |
':calls: `GET /repos/:owner/:repo/issues/comments/:id <http://developer.github.com/v3/issues/comments>`_
:param id: integer
:rtype: :class:`github.IssueComment.IssueComment`'
| def get_comment(self, id):
| assert isinstance(id, (int, long)), id
(headers, data) = self._requester.requestJsonAndCheck('GET', ((self._parentUrl(self.url) + '/comments/') + str(id)))
return github.IssueComment.IssueComment(self._requester, headers, data, completed=True)
|
':calls: `GET /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueComment.IssueComment`'
| def get_comments(self):
| return github.PaginatedList.PaginatedList(github.IssueComment.IssueComment, self._requester, (self.url + '/comments'), None)
|
':calls: `GET /repos/:owner/:repo/issues/:issue_number/events <http://developer.github.com/v3/issues/events>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueEvent.IssueEvent`'
| def get_events(self):
| return github.PaginatedList.PaginatedList(github.IssueEvent.IssueEvent, self._requester, (self.url + '/events'), None)
|
':calls: `GET /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Label.Label`'
| def get_labels(self):
| return github.PaginatedList.PaginatedList(github.Label.Label, self._requester, (self.url + '/labels'), None)
|
':calls: `DELETE /repos/:owner/:repo/issues/:number/labels/:name <http://developer.github.com/v3/issues/labels>`_
:param label: :class:`github.Label.Label` or string
:rtype: None'
| def remove_from_labels(self, label):
| assert isinstance(label, (github.Label.Label, str, unicode)), label
if isinstance(label, github.Label.Label):
label = label._identity
else:
label = urllib.quote(label)
(headers, data) = self._requester.requestJsonAndCheck('DELETE', ((self.url + '/labels/') + label))
|
':calls: `PUT /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_
:param label: :class:`github.Label.Label`
:rtype: None'
| def set_labels(self, *labels):
| assert all((isinstance(element, (github.Label.Label, str, unicode)) for element in labels)), labels
post_parameters = [(label.name if isinstance(label, github.Label.Label) else label) for label in labels]
(headers, data) = self._requester.requestJsonAndCheck('PUT', (self.url + '/labels'), input=post_paramet... |
':type: list of string'
| @property
def events(self):
| return self._events.value
|
':type: string'
| @property
def name(self):
| return self._name.value
|
':type: list of list of string'
| @property
def schema(self):
| return self._schema.value
|
':type: list of string'
| @property
def supported_events(self):
| return self._supported_events.value
|
':param content: string
:param new_name: string'
| def __init__(self, content, new_name=github.GithubObject.NotSet):
| assert isinstance(content, (str, unicode)), content
assert ((new_name is github.GithubObject.NotSet) or isinstance(new_name, (str, unicode))), new_name
self.__newName = new_name
self.__content = content
|
':type: string'
| @property
def body(self):
| self._completeIfNotSet(self._body)
return self._body.value
|
':type: string'
| @property
def commit_id(self):
| self._completeIfNotSet(self._commit_id)
return self._commit_id.value
|
':type: datetime.datetime'
| @property
def created_at(self):
| self._completeIfNotSet(self._created_at)
return self._created_at.value
|
':type: string'
| @property
def diff_hunk(self):
| self._completeIfNotSet(self._diff_hunk)
return self._diff_hunk.value
|
':type: integer'
| @property
def id(self):
| self._completeIfNotSet(self._id)
return self._id.value
|
':type: string'
| @property
def original_commit_id(self):
| self._completeIfNotSet(self._original_commit_id)
return self._original_commit_id.value
|
':type: integer'
| @property
def original_position(self):
| self._completeIfNotSet(self._original_position)
return self._original_position.value
|
':type: string'
| @property
def path(self):
| self._completeIfNotSet(self._path)
return self._path.value
|
':type: integer'
| @property
def position(self):
| self._completeIfNotSet(self._position)
return self._position.value
|
':type: string'
| @property
def pull_request_url(self):
| self._completeIfNotSet(self._pull_request_url)
return self._pull_request_url.value
|
':type: datetime.datetime'
| @property
def updated_at(self):
| self._completeIfNotSet(self._updated_at)
return self._updated_at.value
|
':type: string'
| @property
def url(self):
| self._completeIfNotSet(self._url)
return self._url.value
|
':type: string'
| @property
def html_url(self):
| self._completeIfNotSet(self._html_url)
return self._html_url.value
|
':type: :class:`github.NamedUser.NamedUser`'
| @property
def user(self):
| self._completeIfNotSet(self._user)
return self._user.value
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.