partition
stringclasses
3 values
func_name
stringlengths
1
134
docstring
stringlengths
1
46.9k
path
stringlengths
4
223
original_string
stringlengths
75
104k
code
stringlengths
75
104k
docstring_tokens
listlengths
1
1.97k
repo
stringlengths
7
55
language
stringclasses
1 value
url
stringlengths
87
315
code_tokens
listlengths
19
28.4k
sha
stringlengths
40
40
train
Client.free
Returns an amount of free space on remote WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPFIND :return: an amount of free space in bytes.
src/webdav/client.py
def free(self): """Returns an amount of free space on remote WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPFIND :return: an amount of free space in bytes. """ data = WebDavXmlUtils.create_free_space_request_content() ...
def free(self): """Returns an amount of free space on remote WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPFIND :return: an amount of free space in bytes. """ data = WebDavXmlUtils.create_free_space_request_content() ...
[ "Returns", "an", "amount", "of", "free", "space", "on", "remote", "WebDAV", "server", ".", "More", "information", "you", "can", "find", "by", "link", "http", ":", "//", "webdav", ".", "org", "/", "specs", "/", "rfc4918", ".", "html#METHOD_PROPFIND" ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L254-L262
[ "def", "free", "(", "self", ")", ":", "data", "=", "WebDavXmlUtils", ".", "create_free_space_request_content", "(", ")", "response", "=", "self", ".", "execute_request", "(", "action", "=", "'free'", ",", "path", "=", "''", ",", "data", "=", "data", ")", ...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.check
Checks an existence of remote resource on WebDAV server by remote path. More information you can find by link http://webdav.org/specs/rfc4918.html#rfc.section.9.4 :param remote_path: (optional) path to resource on WebDAV server. Defaults is root directory of WebDAV. :return: True if resource is...
src/webdav/client.py
def check(self, remote_path=root): """Checks an existence of remote resource on WebDAV server by remote path. More information you can find by link http://webdav.org/specs/rfc4918.html#rfc.section.9.4 :param remote_path: (optional) path to resource on WebDAV server. Defaults is root directory o...
def check(self, remote_path=root): """Checks an existence of remote resource on WebDAV server by remote path. More information you can find by link http://webdav.org/specs/rfc4918.html#rfc.section.9.4 :param remote_path: (optional) path to resource on WebDAV server. Defaults is root directory o...
[ "Checks", "an", "existence", "of", "remote", "resource", "on", "WebDAV", "server", "by", "remote", "path", ".", "More", "information", "you", "can", "find", "by", "link", "http", ":", "//", "webdav", ".", "org", "/", "specs", "/", "rfc4918", ".", "html#r...
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L265-L281
[ "def", "check", "(", "self", ",", "remote_path", "=", "root", ")", ":", "urn", "=", "Urn", "(", "remote_path", ")", "try", ":", "response", "=", "self", ".", "execute_request", "(", "action", "=", "'check'", ",", "path", "=", "urn", ".", "quote", "("...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.mkdir
Makes new directory on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_MKCOL :param remote_path: path to directory :return: True if request executed with code 200 or 201 and False otherwise.
src/webdav/client.py
def mkdir(self, remote_path): """Makes new directory on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_MKCOL :param remote_path: path to directory :return: True if request executed with code 200 or 201 and False otherwise. """ ...
def mkdir(self, remote_path): """Makes new directory on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_MKCOL :param remote_path: path to directory :return: True if request executed with code 200 or 201 and False otherwise. """ ...
[ "Makes", "new", "directory", "on", "WebDAV", "server", ".", "More", "information", "you", "can", "find", "by", "link", "http", ":", "//", "webdav", ".", "org", "/", "specs", "/", "rfc4918", ".", "html#METHOD_MKCOL" ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L284-L302
[ "def", "mkdir", "(", "self", ",", "remote_path", ")", ":", "directory_urn", "=", "Urn", "(", "remote_path", ",", "directory", "=", "True", ")", "try", ":", "response", "=", "self", ".", "execute_request", "(", "action", "=", "'mkdir'", ",", "path", "=", ...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.download_from
Downloads file from WebDAV and writes it in buffer. :param buff: buffer object for writing of downloaded file content. :param remote_path: path to file on WebDAV server.
src/webdav/client.py
def download_from(self, buff, remote_path): """Downloads file from WebDAV and writes it in buffer. :param buff: buffer object for writing of downloaded file content. :param remote_path: path to file on WebDAV server. """ urn = Urn(remote_path) if self.is_dir(urn.path()):...
def download_from(self, buff, remote_path): """Downloads file from WebDAV and writes it in buffer. :param buff: buffer object for writing of downloaded file content. :param remote_path: path to file on WebDAV server. """ urn = Urn(remote_path) if self.is_dir(urn.path()):...
[ "Downloads", "file", "from", "WebDAV", "and", "writes", "it", "in", "buffer", "." ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L305-L319
[ "def", "download_from", "(", "self", ",", "buff", ",", "remote_path", ")", ":", "urn", "=", "Urn", "(", "remote_path", ")", "if", "self", ".", "is_dir", "(", "urn", ".", "path", "(", ")", ")", ":", "raise", "OptionNotValid", "(", "name", "=", "'remot...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.download
Downloads remote resource from WebDAV and save it in local path. More information you can find by link http://webdav.org/specs/rfc4918.html#rfc.section.9.4 :param remote_path: the path to remote resource for downloading can be file and directory. :param local_path: the path to save resource loc...
src/webdav/client.py
def download(self, remote_path, local_path, progress=None): """Downloads remote resource from WebDAV and save it in local path. More information you can find by link http://webdav.org/specs/rfc4918.html#rfc.section.9.4 :param remote_path: the path to remote resource for downloading can be file ...
def download(self, remote_path, local_path, progress=None): """Downloads remote resource from WebDAV and save it in local path. More information you can find by link http://webdav.org/specs/rfc4918.html#rfc.section.9.4 :param remote_path: the path to remote resource for downloading can be file ...
[ "Downloads", "remote", "resource", "from", "WebDAV", "and", "save", "it", "in", "local", "path", ".", "More", "information", "you", "can", "find", "by", "link", "http", ":", "//", "webdav", ".", "org", "/", "specs", "/", "rfc4918", ".", "html#rfc", ".", ...
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L321-L333
[ "def", "download", "(", "self", ",", "remote_path", ",", "local_path", ",", "progress", "=", "None", ")", ":", "urn", "=", "Urn", "(", "remote_path", ")", "if", "self", ".", "is_dir", "(", "urn", ".", "path", "(", ")", ")", ":", "self", ".", "downl...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.download_directory
Downloads directory and downloads all nested files and directories from remote WebDAV to local. If there is something on local path it deletes directories and files then creates new. :param remote_path: the path to directory for downloading form WebDAV server. :param local_path: the path to loc...
src/webdav/client.py
def download_directory(self, remote_path, local_path, progress=None): """Downloads directory and downloads all nested files and directories from remote WebDAV to local. If there is something on local path it deletes directories and files then creates new. :param remote_path: the path to directo...
def download_directory(self, remote_path, local_path, progress=None): """Downloads directory and downloads all nested files and directories from remote WebDAV to local. If there is something on local path it deletes directories and files then creates new. :param remote_path: the path to directo...
[ "Downloads", "directory", "and", "downloads", "all", "nested", "files", "and", "directories", "from", "remote", "WebDAV", "to", "local", ".", "If", "there", "is", "something", "on", "local", "path", "it", "deletes", "directories", "and", "files", "then", "crea...
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L335-L355
[ "def", "download_directory", "(", "self", ",", "remote_path", ",", "local_path", ",", "progress", "=", "None", ")", ":", "urn", "=", "Urn", "(", "remote_path", ",", "directory", "=", "True", ")", "if", "not", "self", ".", "is_dir", "(", "urn", ".", "pa...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.open
Downloads file from WebDAV server and saves it temprorary, then opens it for further manipulations. Has the same interface as built-in open() :param file: the path to remote file for opening.
src/webdav/client.py
def open(self, file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None): """Downloads file from WebDAV server and saves it temprorary, then opens it for further manipulations. Has the same interface as built-in open() :param file: the path to remote fil...
def open(self, file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None): """Downloads file from WebDAV server and saves it temprorary, then opens it for further manipulations. Has the same interface as built-in open() :param file: the path to remote fil...
[ "Downloads", "file", "from", "WebDAV", "server", "and", "saves", "it", "temprorary", "then", "opens", "it", "for", "further", "manipulations", ".", "Has", "the", "same", "interface", "as", "built", "-", "in", "open", "()" ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L359-L390
[ "def", "open", "(", "self", ",", "file", ",", "mode", "=", "'r'", ",", "buffering", "=", "-", "1", ",", "encoding", "=", "None", ",", "errors", "=", "None", ",", "newline", "=", "None", ",", "closefd", "=", "True", ",", "opener", "=", "None", ")"...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.download_file
Downloads file from WebDAV server and save it locally. More information you can find by link http://webdav.org/specs/rfc4918.html#rfc.section.9.4 :param remote_path: the path to remote file for downloading. :param local_path: the path to save file locally. :param progress: progress func...
src/webdav/client.py
def download_file(self, remote_path, local_path, progress=None): """Downloads file from WebDAV server and save it locally. More information you can find by link http://webdav.org/specs/rfc4918.html#rfc.section.9.4 :param remote_path: the path to remote file for downloading. :param local...
def download_file(self, remote_path, local_path, progress=None): """Downloads file from WebDAV server and save it locally. More information you can find by link http://webdav.org/specs/rfc4918.html#rfc.section.9.4 :param remote_path: the path to remote file for downloading. :param local...
[ "Downloads", "file", "from", "WebDAV", "server", "and", "save", "it", "locally", ".", "More", "information", "you", "can", "find", "by", "link", "http", ":", "//", "webdav", ".", "org", "/", "specs", "/", "rfc4918", ".", "html#rfc", ".", "section", ".", ...
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L393-L417
[ "def", "download_file", "(", "self", ",", "remote_path", ",", "local_path", ",", "progress", "=", "None", ")", ":", "urn", "=", "Urn", "(", "remote_path", ")", "if", "self", ".", "is_dir", "(", "urn", ".", "path", "(", ")", ")", ":", "raise", "Option...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.download_sync
Downloads remote resources from WebDAV server synchronously. :param remote_path: the path to remote resource on WebDAV server. Can be file and directory. :param local_path: the path to save resource locally. :param callback: the callback which will be invoked when downloading is complete.
src/webdav/client.py
def download_sync(self, remote_path, local_path, callback=None): """Downloads remote resources from WebDAV server synchronously. :param remote_path: the path to remote resource on WebDAV server. Can be file and directory. :param local_path: the path to save resource locally. :param call...
def download_sync(self, remote_path, local_path, callback=None): """Downloads remote resources from WebDAV server synchronously. :param remote_path: the path to remote resource on WebDAV server. Can be file and directory. :param local_path: the path to save resource locally. :param call...
[ "Downloads", "remote", "resources", "from", "WebDAV", "server", "synchronously", "." ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L419-L428
[ "def", "download_sync", "(", "self", ",", "remote_path", ",", "local_path", ",", "callback", "=", "None", ")", ":", "self", ".", "download", "(", "local_path", "=", "local_path", ",", "remote_path", "=", "remote_path", ")", "if", "callback", ":", "callback",...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.download_async
Downloads remote resources from WebDAV server asynchronously :param remote_path: the path to remote resource on WebDAV server. Can be file and directory. :param local_path: the path to save resource locally. :param callback: the callback which will be invoked when downloading is complete.
src/webdav/client.py
def download_async(self, remote_path, local_path, callback=None): """Downloads remote resources from WebDAV server asynchronously :param remote_path: the path to remote resource on WebDAV server. Can be file and directory. :param local_path: the path to save resource locally. :param cal...
def download_async(self, remote_path, local_path, callback=None): """Downloads remote resources from WebDAV server asynchronously :param remote_path: the path to remote resource on WebDAV server. Can be file and directory. :param local_path: the path to save resource locally. :param cal...
[ "Downloads", "remote", "resources", "from", "WebDAV", "server", "asynchronously" ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L430-L438
[ "def", "download_async", "(", "self", ",", "remote_path", ",", "local_path", ",", "callback", "=", "None", ")", ":", "target", "=", "(", "lambda", ":", "self", ".", "download_sync", "(", "local_path", "=", "local_path", ",", "remote_path", "=", "remote_path"...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.upload_to
Uploads file from buffer to remote path on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PUT :param buff: the buffer with content for file. :param remote_path: the path to save file remotely on WebDAV server.
src/webdav/client.py
def upload_to(self, buff, remote_path): """Uploads file from buffer to remote path on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PUT :param buff: the buffer with content for file. :param remote_path: the path to save file remotely on...
def upload_to(self, buff, remote_path): """Uploads file from buffer to remote path on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PUT :param buff: the buffer with content for file. :param remote_path: the path to save file remotely on...
[ "Uploads", "file", "from", "buffer", "to", "remote", "path", "on", "WebDAV", "server", ".", "More", "information", "you", "can", "find", "by", "link", "http", ":", "//", "webdav", ".", "org", "/", "specs", "/", "rfc4918", ".", "html#METHOD_PUT" ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L441-L455
[ "def", "upload_to", "(", "self", ",", "buff", ",", "remote_path", ")", ":", "urn", "=", "Urn", "(", "remote_path", ")", "if", "urn", ".", "is_dir", "(", ")", ":", "raise", "OptionNotValid", "(", "name", "=", "'remote_path'", ",", "value", "=", "remote_...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.upload
Uploads resource to remote path on WebDAV server. In case resource is directory it will upload all nested files and directories. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PUT :param remote_path: the path for uploading resources on WebDAV server. Can be fi...
src/webdav/client.py
def upload(self, remote_path, local_path, progress=None): """Uploads resource to remote path on WebDAV server. In case resource is directory it will upload all nested files and directories. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PUT :param remo...
def upload(self, remote_path, local_path, progress=None): """Uploads resource to remote path on WebDAV server. In case resource is directory it will upload all nested files and directories. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PUT :param remo...
[ "Uploads", "resource", "to", "remote", "path", "on", "WebDAV", "server", ".", "In", "case", "resource", "is", "directory", "it", "will", "upload", "all", "nested", "files", "and", "directories", ".", "More", "information", "you", "can", "find", "by", "link",...
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L457-L469
[ "def", "upload", "(", "self", ",", "remote_path", ",", "local_path", ",", "progress", "=", "None", ")", ":", "if", "os", ".", "path", ".", "isdir", "(", "local_path", ")", ":", "self", ".", "upload_directory", "(", "local_path", "=", "local_path", ",", ...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.upload_directory
Uploads directory to remote path on WebDAV server. In case directory is exist on remote server it will delete it and then upload directory with nested files and directories. :param remote_path: the path to directory for uploading on WebDAV server. :param local_path: the path to local di...
src/webdav/client.py
def upload_directory(self, remote_path, local_path, progress=None): """Uploads directory to remote path on WebDAV server. In case directory is exist on remote server it will delete it and then upload directory with nested files and directories. :param remote_path: the path to directory ...
def upload_directory(self, remote_path, local_path, progress=None): """Uploads directory to remote path on WebDAV server. In case directory is exist on remote server it will delete it and then upload directory with nested files and directories. :param remote_path: the path to directory ...
[ "Uploads", "directory", "to", "remote", "path", "on", "WebDAV", "server", ".", "In", "case", "directory", "is", "exist", "on", "remote", "server", "it", "will", "delete", "it", "and", "then", "upload", "directory", "with", "nested", "files", "and", "director...
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L471-L498
[ "def", "upload_directory", "(", "self", ",", "remote_path", ",", "local_path", ",", "progress", "=", "None", ")", ":", "urn", "=", "Urn", "(", "remote_path", ",", "directory", "=", "True", ")", "if", "not", "urn", ".", "is_dir", "(", ")", ":", "raise",...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.upload_file
Uploads file to remote path on WebDAV server. File should be 2Gb or less. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PUT :param remote_path: the path to uploading file on WebDAV server. :param local_path: the path to local file for uploading. :para...
src/webdav/client.py
def upload_file(self, remote_path, local_path, progress=None): """Uploads file to remote path on WebDAV server. File should be 2Gb or less. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PUT :param remote_path: the path to uploading file on WebDAV server. ...
def upload_file(self, remote_path, local_path, progress=None): """Uploads file to remote path on WebDAV server. File should be 2Gb or less. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PUT :param remote_path: the path to uploading file on WebDAV server. ...
[ "Uploads", "file", "to", "remote", "path", "on", "WebDAV", "server", ".", "File", "should", "be", "2Gb", "or", "less", ".", "More", "information", "you", "can", "find", "by", "link", "http", ":", "//", "webdav", ".", "org", "/", "specs", "/", "rfc4918"...
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L501-L527
[ "def", "upload_file", "(", "self", ",", "remote_path", ",", "local_path", ",", "progress", "=", "None", ")", ":", "if", "not", "os", ".", "path", ".", "exists", "(", "local_path", ")", ":", "raise", "LocalResourceNotFound", "(", "local_path", ")", "urn", ...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.upload_sync
Uploads resource to remote path on WebDAV server synchronously. In case resource is directory it will upload all nested files and directories. :param remote_path: the path for uploading resources on WebDAV server. Can be file and directory. :param local_path: the path to local resource for uplo...
src/webdav/client.py
def upload_sync(self, remote_path, local_path, callback=None): """Uploads resource to remote path on WebDAV server synchronously. In case resource is directory it will upload all nested files and directories. :param remote_path: the path for uploading resources on WebDAV server. Can be file and...
def upload_sync(self, remote_path, local_path, callback=None): """Uploads resource to remote path on WebDAV server synchronously. In case resource is directory it will upload all nested files and directories. :param remote_path: the path for uploading resources on WebDAV server. Can be file and...
[ "Uploads", "resource", "to", "remote", "path", "on", "WebDAV", "server", "synchronously", ".", "In", "case", "resource", "is", "directory", "it", "will", "upload", "all", "nested", "files", "and", "directories", "." ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L529-L540
[ "def", "upload_sync", "(", "self", ",", "remote_path", ",", "local_path", ",", "callback", "=", "None", ")", ":", "self", ".", "upload", "(", "local_path", "=", "local_path", ",", "remote_path", "=", "remote_path", ")", "if", "callback", ":", "callback", "...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.upload_async
Uploads resource to remote path on WebDAV server asynchronously. In case resource is directory it will upload all nested files and directories. :param remote_path: the path for uploading resources on WebDAV server. Can be file and directory. :param local_path: the path to local resource for upl...
src/webdav/client.py
def upload_async(self, remote_path, local_path, callback=None): """Uploads resource to remote path on WebDAV server asynchronously. In case resource is directory it will upload all nested files and directories. :param remote_path: the path for uploading resources on WebDAV server. Can be file a...
def upload_async(self, remote_path, local_path, callback=None): """Uploads resource to remote path on WebDAV server asynchronously. In case resource is directory it will upload all nested files and directories. :param remote_path: the path for uploading resources on WebDAV server. Can be file a...
[ "Uploads", "resource", "to", "remote", "path", "on", "WebDAV", "server", "asynchronously", ".", "In", "case", "resource", "is", "directory", "it", "will", "upload", "all", "nested", "files", "and", "directories", "." ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L542-L551
[ "def", "upload_async", "(", "self", ",", "remote_path", ",", "local_path", ",", "callback", "=", "None", ")", ":", "target", "=", "(", "lambda", ":", "self", ".", "upload_sync", "(", "local_path", "=", "local_path", ",", "remote_path", "=", "remote_path", ...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.copy
Copies resource from one place to another on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_COPY :param remote_path_from: the path to resource which will be copied, :param remote_path_to: the path where resource will be copied.
src/webdav/client.py
def copy(self, remote_path_from, remote_path_to): """Copies resource from one place to another on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_COPY :param remote_path_from: the path to resource which will be copied, :param remote_path_...
def copy(self, remote_path_from, remote_path_to): """Copies resource from one place to another on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_COPY :param remote_path_from: the path to resource which will be copied, :param remote_path_...
[ "Copies", "resource", "from", "one", "place", "to", "another", "on", "WebDAV", "server", ".", "More", "information", "you", "can", "find", "by", "link", "http", ":", "//", "webdav", ".", "org", "/", "specs", "/", "rfc4918", ".", "html#METHOD_COPY" ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L554-L570
[ "def", "copy", "(", "self", ",", "remote_path_from", ",", "remote_path_to", ")", ":", "urn_from", "=", "Urn", "(", "remote_path_from", ")", "if", "not", "self", ".", "check", "(", "urn_from", ".", "path", "(", ")", ")", ":", "raise", "RemoteResourceNotFoun...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.move
Moves resource from one place to another on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_MOVE :param remote_path_from: the path to resource which will be moved, :param remote_path_to: the path where resource will be moved. :param overw...
src/webdav/client.py
def move(self, remote_path_from, remote_path_to, overwrite=False): """Moves resource from one place to another on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_MOVE :param remote_path_from: the path to resource which will be moved, :par...
def move(self, remote_path_from, remote_path_to, overwrite=False): """Moves resource from one place to another on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_MOVE :param remote_path_from: the path to resource which will be moved, :par...
[ "Moves", "resource", "from", "one", "place", "to", "another", "on", "WebDAV", "server", ".", "More", "information", "you", "can", "find", "by", "link", "http", ":", "//", "webdav", ".", "org", "/", "specs", "/", "rfc4918", ".", "html#METHOD_MOVE" ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L573-L591
[ "def", "move", "(", "self", ",", "remote_path_from", ",", "remote_path_to", ",", "overwrite", "=", "False", ")", ":", "urn_from", "=", "Urn", "(", "remote_path_from", ")", "if", "not", "self", ".", "check", "(", "urn_from", ".", "path", "(", ")", ")", ...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.clean
Cleans (Deletes) a remote resource on WebDAV server. The name of method is not changed for back compatibility with original library. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_DELETE :param remote_path: the remote resource whisch will be deleted.
src/webdav/client.py
def clean(self, remote_path): """Cleans (Deletes) a remote resource on WebDAV server. The name of method is not changed for back compatibility with original library. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_DELETE :param remote_path: the remote r...
def clean(self, remote_path): """Cleans (Deletes) a remote resource on WebDAV server. The name of method is not changed for back compatibility with original library. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_DELETE :param remote_path: the remote r...
[ "Cleans", "(", "Deletes", ")", "a", "remote", "resource", "on", "WebDAV", "server", ".", "The", "name", "of", "method", "is", "not", "changed", "for", "back", "compatibility", "with", "original", "library", ".", "More", "information", "you", "can", "find", ...
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L594-L602
[ "def", "clean", "(", "self", ",", "remote_path", ")", ":", "urn", "=", "Urn", "(", "remote_path", ")", "self", ".", "execute_request", "(", "action", "=", "'clean'", ",", "path", "=", "urn", ".", "quote", "(", ")", ")" ]
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.info
Gets information about resource on WebDAV. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPFIND :param remote_path: the path to remote resource. :return: a dictionary of information attributes and them values with following keys: `created`:...
src/webdav/client.py
def info(self, remote_path): """Gets information about resource on WebDAV. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPFIND :param remote_path: the path to remote resource. :return: a dictionary of information attributes and them values with fol...
def info(self, remote_path): """Gets information about resource on WebDAV. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPFIND :param remote_path: the path to remote resource. :return: a dictionary of information attributes and them values with fol...
[ "Gets", "information", "about", "resource", "on", "WebDAV", ".", "More", "information", "you", "can", "find", "by", "link", "http", ":", "//", "webdav", ".", "org", "/", "specs", "/", "rfc4918", ".", "html#METHOD_PROPFIND" ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L605-L622
[ "def", "info", "(", "self", ",", "remote_path", ")", ":", "urn", "=", "Urn", "(", "remote_path", ")", "if", "not", "self", ".", "check", "(", "urn", ".", "path", "(", ")", ")", "and", "not", "self", ".", "check", "(", "Urn", "(", "remote_path", "...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.is_dir
Checks is the remote resource directory. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPFIND :param remote_path: the path to remote resource. :return: True in case the remote resource is directory and False otherwise.
src/webdav/client.py
def is_dir(self, remote_path): """Checks is the remote resource directory. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPFIND :param remote_path: the path to remote resource. :return: True in case the remote resource is directory and False otherwi...
def is_dir(self, remote_path): """Checks is the remote resource directory. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPFIND :param remote_path: the path to remote resource. :return: True in case the remote resource is directory and False otherwi...
[ "Checks", "is", "the", "remote", "resource", "directory", ".", "More", "information", "you", "can", "find", "by", "link", "http", ":", "//", "webdav", ".", "org", "/", "specs", "/", "rfc4918", ".", "html#METHOD_PROPFIND" ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L625-L639
[ "def", "is_dir", "(", "self", ",", "remote_path", ")", ":", "urn", "=", "Urn", "(", "remote_path", ")", "parent_urn", "=", "Urn", "(", "urn", ".", "parent", "(", ")", ")", "if", "not", "self", ".", "check", "(", "urn", ".", "path", "(", ")", ")",...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.get_property
Gets metadata property of remote resource on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPFIND :param remote_path: the path to remote resource. :param option: the property attribute as dictionary with following keys: ...
src/webdav/client.py
def get_property(self, remote_path, option): """Gets metadata property of remote resource on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPFIND :param remote_path: the path to remote resource. :param option: the property attribute a...
def get_property(self, remote_path, option): """Gets metadata property of remote resource on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPFIND :param remote_path: the path to remote resource. :param option: the property attribute a...
[ "Gets", "metadata", "property", "of", "remote", "resource", "on", "WebDAV", "server", ".", "More", "information", "you", "can", "find", "by", "link", "http", ":", "//", "webdav", ".", "org", "/", "specs", "/", "rfc4918", ".", "html#METHOD_PROPFIND" ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L642-L658
[ "def", "get_property", "(", "self", ",", "remote_path", ",", "option", ")", ":", "urn", "=", "Urn", "(", "remote_path", ")", "if", "not", "self", ".", "check", "(", "urn", ".", "path", "(", ")", ")", ":", "raise", "RemoteResourceNotFound", "(", "urn", ...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.set_property
Sets metadata property of remote resource on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPPATCH :param remote_path: the path to remote resource. :param option: the property attribute as dictionary with following keys: ...
src/webdav/client.py
def set_property(self, remote_path, option): """Sets metadata property of remote resource on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPPATCH :param remote_path: the path to remote resource. :param option: the property attribute ...
def set_property(self, remote_path, option): """Sets metadata property of remote resource on WebDAV server. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPPATCH :param remote_path: the path to remote resource. :param option: the property attribute ...
[ "Sets", "metadata", "property", "of", "remote", "resource", "on", "WebDAV", "server", ".", "More", "information", "you", "can", "find", "by", "link", "http", ":", "//", "webdav", ".", "org", "/", "specs", "/", "rfc4918", ".", "html#METHOD_PROPPATCH" ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L661-L671
[ "def", "set_property", "(", "self", ",", "remote_path", ",", "option", ")", ":", "self", ".", "set_property_batch", "(", "remote_path", "=", "remote_path", ",", "option", "=", "[", "option", "]", ")" ]
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
Client.set_property_batch
Sets batch metadata properties of remote resource on WebDAV server in batch. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPPATCH :param remote_path: the path to remote resource. :param option: the property attributes as list of dictionaries with following...
src/webdav/client.py
def set_property_batch(self, remote_path, option): """Sets batch metadata properties of remote resource on WebDAV server in batch. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPPATCH :param remote_path: the path to remote resource. :param option: ...
def set_property_batch(self, remote_path, option): """Sets batch metadata properties of remote resource on WebDAV server in batch. More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPPATCH :param remote_path: the path to remote resource. :param option: ...
[ "Sets", "batch", "metadata", "properties", "of", "remote", "resource", "on", "WebDAV", "server", "in", "batch", ".", "More", "information", "you", "can", "find", "by", "link", "http", ":", "//", "webdav", ".", "org", "/", "specs", "/", "rfc4918", ".", "h...
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L674-L689
[ "def", "set_property_batch", "(", "self", ",", "remote_path", ",", "option", ")", ":", "urn", "=", "Urn", "(", "remote_path", ")", "if", "not", "self", ".", "check", "(", "urn", ".", "path", "(", ")", ")", ":", "raise", "RemoteResourceNotFound", "(", "...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
WebDavXmlUtils.parse_get_list_response
Parses of response content XML from WebDAV server and extract file and directory names. :param content: the XML content of HTTP response from WebDAV server for getting list of files by remote path. :return: list of extracted file or directory names.
src/webdav/client.py
def parse_get_list_response(content): """Parses of response content XML from WebDAV server and extract file and directory names. :param content: the XML content of HTTP response from WebDAV server for getting list of files by remote path. :return: list of extracted file or directory names. ...
def parse_get_list_response(content): """Parses of response content XML from WebDAV server and extract file and directory names. :param content: the XML content of HTTP response from WebDAV server for getting list of files by remote path. :return: list of extracted file or directory names. ...
[ "Parses", "of", "response", "content", "XML", "from", "WebDAV", "server", "and", "extract", "file", "and", "directory", "names", "." ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L852-L863
[ "def", "parse_get_list_response", "(", "content", ")", ":", "try", ":", "tree", "=", "etree", ".", "fromstring", "(", "content", ")", "hrees", "=", "[", "Urn", ".", "separate", "+", "unquote", "(", "urlsplit", "(", "hree", ".", "text", ")", ".", "path"...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
WebDavXmlUtils.create_free_space_request_content
Creates an XML for requesting of free space on remote WebDAV server. :return: the XML string of request content.
src/webdav/client.py
def create_free_space_request_content(): """Creates an XML for requesting of free space on remote WebDAV server. :return: the XML string of request content. """ root = etree.Element('propfind', xmlns='DAV:') prop = etree.SubElement(root, 'prop') etree.SubElement(prop, 'q...
def create_free_space_request_content(): """Creates an XML for requesting of free space on remote WebDAV server. :return: the XML string of request content. """ root = etree.Element('propfind', xmlns='DAV:') prop = etree.SubElement(root, 'prop') etree.SubElement(prop, 'q...
[ "Creates", "an", "XML", "for", "requesting", "of", "free", "space", "on", "remote", "WebDAV", "server", "." ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L866-L876
[ "def", "create_free_space_request_content", "(", ")", ":", "root", "=", "etree", ".", "Element", "(", "'propfind'", ",", "xmlns", "=", "'DAV:'", ")", "prop", "=", "etree", ".", "SubElement", "(", "root", ",", "'prop'", ")", "etree", ".", "SubElement", "(",...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
WebDavXmlUtils.parse_free_space_response
Parses of response content XML from WebDAV server and extract an amount of free space. :param content: the XML content of HTTP response from WebDAV server for getting free space. :param hostname: the server hostname. :return: an amount of free space in bytes.
src/webdav/client.py
def parse_free_space_response(content, hostname): """Parses of response content XML from WebDAV server and extract an amount of free space. :param content: the XML content of HTTP response from WebDAV server for getting free space. :param hostname: the server hostname. :return: an amoun...
def parse_free_space_response(content, hostname): """Parses of response content XML from WebDAV server and extract an amount of free space. :param content: the XML content of HTTP response from WebDAV server for getting free space. :param hostname: the server hostname. :return: an amoun...
[ "Parses", "of", "response", "content", "XML", "from", "WebDAV", "server", "and", "extract", "an", "amount", "of", "free", "space", "." ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L879-L896
[ "def", "parse_free_space_response", "(", "content", ",", "hostname", ")", ":", "try", ":", "tree", "=", "etree", ".", "fromstring", "(", "content", ")", "node", "=", "tree", ".", "find", "(", "'.//{DAV:}quota-available-bytes'", ")", "if", "node", "is", "not"...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
WebDavXmlUtils.parse_info_response
Parses of response content XML from WebDAV server and extract an information about resource. :param content: the XML content of HTTP response from WebDAV server. :param path: the path to resource. :param hostname: the server hostname. :return: a dictionary of information attributes and ...
src/webdav/client.py
def parse_info_response(content, path, hostname): """Parses of response content XML from WebDAV server and extract an information about resource. :param content: the XML content of HTTP response from WebDAV server. :param path: the path to resource. :param hostname: the server hostname....
def parse_info_response(content, path, hostname): """Parses of response content XML from WebDAV server and extract an information about resource. :param content: the XML content of HTTP response from WebDAV server. :param path: the path to resource. :param hostname: the server hostname....
[ "Parses", "of", "response", "content", "XML", "from", "WebDAV", "server", "and", "extract", "an", "information", "about", "resource", "." ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L899-L921
[ "def", "parse_info_response", "(", "content", ",", "path", ",", "hostname", ")", ":", "response", "=", "WebDavXmlUtils", ".", "extract_response_for_path", "(", "content", "=", "content", ",", "path", "=", "path", ",", "hostname", "=", "hostname", ")", "find_at...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
WebDavXmlUtils.parse_is_dir_response
Parses of response content XML from WebDAV server and extract an information about resource. :param content: the XML content of HTTP response from WebDAV server. :param path: the path to resource. :param hostname: the server hostname. :return: True in case the remote resource is directo...
src/webdav/client.py
def parse_is_dir_response(content, path, hostname): """Parses of response content XML from WebDAV server and extract an information about resource. :param content: the XML content of HTTP response from WebDAV server. :param path: the path to resource. :param hostname: the server hostnam...
def parse_is_dir_response(content, path, hostname): """Parses of response content XML from WebDAV server and extract an information about resource. :param content: the XML content of HTTP response from WebDAV server. :param path: the path to resource. :param hostname: the server hostnam...
[ "Parses", "of", "response", "content", "XML", "from", "WebDAV", "server", "and", "extract", "an", "information", "about", "resource", "." ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L924-L940
[ "def", "parse_is_dir_response", "(", "content", ",", "path", ",", "hostname", ")", ":", "response", "=", "WebDavXmlUtils", ".", "extract_response_for_path", "(", "content", "=", "content", ",", "path", "=", "path", ",", "hostname", "=", "hostname", ")", "resou...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
WebDavXmlUtils.create_get_property_request_content
Creates an XML for requesting of getting a property value of remote WebDAV resource. :param option: the property attributes as dictionary with following keys: `namespace`: (optional) the namespace for XML property which will be get, `name`: the name of property whi...
src/webdav/client.py
def create_get_property_request_content(option): """Creates an XML for requesting of getting a property value of remote WebDAV resource. :param option: the property attributes as dictionary with following keys: `namespace`: (optional) the namespace for XML property which will be ...
def create_get_property_request_content(option): """Creates an XML for requesting of getting a property value of remote WebDAV resource. :param option: the property attributes as dictionary with following keys: `namespace`: (optional) the namespace for XML property which will be ...
[ "Creates", "an", "XML", "for", "requesting", "of", "getting", "a", "property", "value", "of", "remote", "WebDAV", "resource", "." ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L943-L955
[ "def", "create_get_property_request_content", "(", "option", ")", ":", "root", "=", "etree", ".", "Element", "(", "'propfind'", ",", "xmlns", "=", "'DAV:'", ")", "prop", "=", "etree", ".", "SubElement", "(", "root", ",", "'prop'", ")", "etree", ".", "SubEl...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
WebDavXmlUtils.parse_get_property_response
Parses of response content XML from WebDAV server for getting metadata property value for some resource. :param content: the XML content of response as string. :param name: the name of property for finding a value in response :return: the value of property if it has been found or None otherwise...
src/webdav/client.py
def parse_get_property_response(content, name): """Parses of response content XML from WebDAV server for getting metadata property value for some resource. :param content: the XML content of response as string. :param name: the name of property for finding a value in response :return: t...
def parse_get_property_response(content, name): """Parses of response content XML from WebDAV server for getting metadata property value for some resource. :param content: the XML content of response as string. :param name: the name of property for finding a value in response :return: t...
[ "Parses", "of", "response", "content", "XML", "from", "WebDAV", "server", "for", "getting", "metadata", "property", "value", "for", "some", "resource", "." ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L958-L966
[ "def", "parse_get_property_response", "(", "content", ",", "name", ")", ":", "tree", "=", "etree", ".", "fromstring", "(", "content", ")", "return", "tree", ".", "xpath", "(", "'//*[local-name() = $name]'", ",", "name", "=", "name", ")", "[", "0", "]", "."...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
WebDavXmlUtils.create_set_property_batch_request_content
Creates an XML for requesting of setting a property values for remote WebDAV resource in batch. :param options: the property attributes as list of dictionaries with following keys: `namespace`: (optional) the namespace for XML property which will be set, `name`: th...
src/webdav/client.py
def create_set_property_batch_request_content(options): """Creates an XML for requesting of setting a property values for remote WebDAV resource in batch. :param options: the property attributes as list of dictionaries with following keys: `namespace`: (optional) the namespace fo...
def create_set_property_batch_request_content(options): """Creates an XML for requesting of setting a property values for remote WebDAV resource in batch. :param options: the property attributes as list of dictionaries with following keys: `namespace`: (optional) the namespace fo...
[ "Creates", "an", "XML", "for", "requesting", "of", "setting", "a", "property", "values", "for", "remote", "WebDAV", "resource", "in", "batch", "." ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L969-L985
[ "def", "create_set_property_batch_request_content", "(", "options", ")", ":", "root_node", "=", "etree", ".", "Element", "(", "'propertyupdate'", ",", "xmlns", "=", "'DAV:'", ")", "set_node", "=", "etree", ".", "SubElement", "(", "root_node", ",", "'set'", ")", ...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
WebDavXmlUtils.etree_to_string
Creates string from lxml.etree.ElementTree with XML declaration and UTF-8 encoding. :param tree: the instance of ElementTree :return: the string of XML.
src/webdav/client.py
def etree_to_string(tree): """Creates string from lxml.etree.ElementTree with XML declaration and UTF-8 encoding. :param tree: the instance of ElementTree :return: the string of XML. """ buff = BytesIO() tree.write(buff, xml_declaration=True, encoding='UTF-8') re...
def etree_to_string(tree): """Creates string from lxml.etree.ElementTree with XML declaration and UTF-8 encoding. :param tree: the instance of ElementTree :return: the string of XML. """ buff = BytesIO() tree.write(buff, xml_declaration=True, encoding='UTF-8') re...
[ "Creates", "string", "from", "lxml", ".", "etree", ".", "ElementTree", "with", "XML", "declaration", "and", "UTF", "-", "8", "encoding", "." ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L988-L996
[ "def", "etree_to_string", "(", "tree", ")", ":", "buff", "=", "BytesIO", "(", ")", "tree", ".", "write", "(", "buff", ",", "xml_declaration", "=", "True", ",", "encoding", "=", "'UTF-8'", ")", "return", "buff", ".", "getvalue", "(", ")" ]
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
WebDavXmlUtils.extract_response_for_path
Extracts single response for specified remote resource. :param content: raw content of response as string. :param path: the path to needed remote resource. :param hostname: the server hostname. :return: XML object of response for the remote resource defined by path.
src/webdav/client.py
def extract_response_for_path(content, path, hostname): """Extracts single response for specified remote resource. :param content: raw content of response as string. :param path: the path to needed remote resource. :param hostname: the server hostname. :return: XML object of res...
def extract_response_for_path(content, path, hostname): """Extracts single response for specified remote resource. :param content: raw content of response as string. :param path: the path to needed remote resource. :param hostname: the server hostname. :return: XML object of res...
[ "Extracts", "single", "response", "for", "specified", "remote", "resource", "." ]
kamikaze/webdav
python
https://github.com/kamikaze/webdav/blob/6facff7224023d3e28c8e1592f3c58401c91a0e6/src/webdav/client.py#L999-L1020
[ "def", "extract_response_for_path", "(", "content", ",", "path", ",", "hostname", ")", ":", "try", ":", "tree", "=", "etree", ".", "fromstring", "(", "content", ")", "responses", "=", "tree", ".", "findall", "(", "'{DAV:}response'", ")", "n_path", "=", "Ur...
6facff7224023d3e28c8e1592f3c58401c91a0e6
train
cleanup
Remove temporary stderr and stdout files as well as the daemon socket.
pueue/daemon/files.py
def cleanup(config_dir): """Remove temporary stderr and stdout files as well as the daemon socket.""" stdout_path = os.path.join(config_dir, 'pueue.stdout') stderr_path = os.path.join(config_dir, 'pueue.stderr') if os._exists(stdout_path): os.remove(stdout_path) if os._exists(stderr_path): ...
def cleanup(config_dir): """Remove temporary stderr and stdout files as well as the daemon socket.""" stdout_path = os.path.join(config_dir, 'pueue.stdout') stderr_path = os.path.join(config_dir, 'pueue.stderr') if os._exists(stdout_path): os.remove(stdout_path) if os._exists(stderr_path): ...
[ "Remove", "temporary", "stderr", "and", "stdout", "files", "as", "well", "as", "the", "daemon", "socket", "." ]
Nukesor/pueue
python
https://github.com/Nukesor/pueue/blob/f1d276360454d4dd2738658a13df1e20caa4b926/pueue/daemon/files.py#L5-L16
[ "def", "cleanup", "(", "config_dir", ")", ":", "stdout_path", "=", "os", ".", "path", ".", "join", "(", "config_dir", ",", "'pueue.stdout'", ")", "stderr_path", "=", "os", ".", "path", ".", "join", "(", "config_dir", ",", "'pueue.stderr'", ")", "if", "os...
f1d276360454d4dd2738658a13df1e20caa4b926
train
get_descriptor_output
Get the descriptor output and handle incorrect UTF-8 encoding of subprocess logs. In case an process contains valid UTF-8 lines as well as invalid lines, we want to preserve the valid and remove the invalid ones. To do this we need to get each line and check for an UnicodeDecodeError.
pueue/daemon/files.py
def get_descriptor_output(descriptor, key, handler=None): """Get the descriptor output and handle incorrect UTF-8 encoding of subprocess logs. In case an process contains valid UTF-8 lines as well as invalid lines, we want to preserve the valid and remove the invalid ones. To do this we need to get eac...
def get_descriptor_output(descriptor, key, handler=None): """Get the descriptor output and handle incorrect UTF-8 encoding of subprocess logs. In case an process contains valid UTF-8 lines as well as invalid lines, we want to preserve the valid and remove the invalid ones. To do this we need to get eac...
[ "Get", "the", "descriptor", "output", "and", "handle", "incorrect", "UTF", "-", "8", "encoding", "of", "subprocess", "logs", "." ]
Nukesor/pueue
python
https://github.com/Nukesor/pueue/blob/f1d276360454d4dd2738658a13df1e20caa4b926/pueue/daemon/files.py#L19-L38
[ "def", "get_descriptor_output", "(", "descriptor", ",", "key", ",", "handler", "=", "None", ")", ":", "line", "=", "'stub'", "lines", "=", "''", "while", "line", "!=", "''", ":", "try", ":", "line", "=", "descriptor", ".", "readline", "(", ")", "lines"...
f1d276360454d4dd2738658a13df1e20caa4b926
train
ConversionServerClient.request
Query conversion server hash_: 4 characters of file hash quickkey: File quickkey doc_type: "i" for image, "d" for documents page: The page to convert. If page is set to 'initial', the first 10 pages of the document will be provided. (document) output: "pdf", "img",...
mediafire/media/conversion_server_client.py
def request(self, hash_, quickkey, doc_type, page=None, output=None, size_id=None, metadata=None, request_conversion_only=None): """Query conversion server hash_: 4 characters of file hash quickkey: File quickkey doc_type: "i" for image, "d" for documents...
def request(self, hash_, quickkey, doc_type, page=None, output=None, size_id=None, metadata=None, request_conversion_only=None): """Query conversion server hash_: 4 characters of file hash quickkey: File quickkey doc_type: "i" for image, "d" for documents...
[ "Query", "conversion", "server" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/media/conversion_server_client.py#L36-L80
[ "def", "request", "(", "self", ",", "hash_", ",", "quickkey", ",", "doc_type", ",", "page", "=", "None", ",", "output", "=", "None", ",", "size_id", "=", "None", ",", "metadata", "=", "None", ",", "request_conversion_only", "=", "None", ")", ":", "if",...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
user_method
Decorator of the Pdb user_* methods that controls the RemoteSocket.
lib/pdb_clone/pdb.py
def user_method(user_event): """Decorator of the Pdb user_* methods that controls the RemoteSocket.""" def wrapper(self, *args): stdin = self.stdin is_sock = isinstance(stdin, RemoteSocket) try: try: if is_sock and not stdin.connect(): retu...
def user_method(user_event): """Decorator of the Pdb user_* methods that controls the RemoteSocket.""" def wrapper(self, *args): stdin = self.stdin is_sock = isinstance(stdin, RemoteSocket) try: try: if is_sock and not stdin.connect(): retu...
[ "Decorator", "of", "the", "Pdb", "user_", "*", "methods", "that", "controls", "the", "RemoteSocket", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L115-L131
[ "def", "user_method", "(", "user_event", ")", ":", "def", "wrapper", "(", "self", ",", "*", "args", ")", ":", "stdin", "=", "self", ".", "stdin", "is_sock", "=", "isinstance", "(", "stdin", ",", "RemoteSocket", ")", "try", ":", "try", ":", "if", "is_...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.user_line
This function is called when we stop or break at this line.
lib/pdb_clone/pdb.py
def user_line(self, frame, breakpoint_hits=None): """This function is called when we stop or break at this line.""" if not breakpoint_hits: self.interaction(frame, None) else: commands_result = self.bp_commands(frame, breakpoint_hits) if not commands_result: ...
def user_line(self, frame, breakpoint_hits=None): """This function is called when we stop or break at this line.""" if not breakpoint_hits: self.interaction(frame, None) else: commands_result = self.bp_commands(frame, breakpoint_hits) if not commands_result: ...
[ "This", "function", "is", "called", "when", "we", "stop", "or", "break", "at", "this", "line", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L518-L532
[ "def", "user_line", "(", "self", ",", "frame", ",", "breakpoint_hits", "=", "None", ")", ":", "if", "not", "breakpoint_hits", ":", "self", ".", "interaction", "(", "frame", ",", "None", ")", "else", ":", "commands_result", "=", "self", ".", "bp_commands", ...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.bp_commands
Call every command that was set for the current active breakpoints. Returns True if the normal interaction function must be called, False otherwise.
lib/pdb_clone/pdb.py
def bp_commands(self, frame, breakpoint_hits): """Call every command that was set for the current active breakpoints. Returns True if the normal interaction function must be called, False otherwise.""" # Handle multiple breakpoints on the same line (issue 14789) effective_bp_lis...
def bp_commands(self, frame, breakpoint_hits): """Call every command that was set for the current active breakpoints. Returns True if the normal interaction function must be called, False otherwise.""" # Handle multiple breakpoints on the same line (issue 14789) effective_bp_lis...
[ "Call", "every", "command", "that", "was", "set", "for", "the", "current", "active", "breakpoints", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L534-L564
[ "def", "bp_commands", "(", "self", ",", "frame", ",", "breakpoint_hits", ")", ":", "# Handle multiple breakpoints on the same line (issue 14789)", "effective_bp_list", ",", "temporaries", "=", "breakpoint_hits", "silent", "=", "True", "doprompt", "=", "False", "atleast_on...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.user_return
This function is called when a return trap is set here.
lib/pdb_clone/pdb.py
def user_return(self, frame, return_value): """This function is called when a return trap is set here.""" frame.f_locals['__return__'] = return_value self.message('--Return--') self.interaction(frame, None)
def user_return(self, frame, return_value): """This function is called when a return trap is set here.""" frame.f_locals['__return__'] = return_value self.message('--Return--') self.interaction(frame, None)
[ "This", "function", "is", "called", "when", "a", "return", "trap", "is", "set", "here", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L567-L571
[ "def", "user_return", "(", "self", ",", "frame", ",", "return_value", ")", ":", "frame", ".", "f_locals", "[", "'__return__'", "]", "=", "return_value", "self", ".", "message", "(", "'--Return--'", ")", "self", ".", "interaction", "(", "frame", ",", "None"...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.user_exception
This function is called if an exception occurs, but only if we are to stop at or just below this level.
lib/pdb_clone/pdb.py
def user_exception(self, frame, exc_info): """This function is called if an exception occurs, but only if we are to stop at or just below this level.""" exc_type, exc_value, exc_traceback = exc_info frame.f_locals['__exception__'] = exc_type, exc_value # An 'Internal StopIterati...
def user_exception(self, frame, exc_info): """This function is called if an exception occurs, but only if we are to stop at or just below this level.""" exc_type, exc_value, exc_traceback = exc_info frame.f_locals['__exception__'] = exc_type, exc_value # An 'Internal StopIterati...
[ "This", "function", "is", "called", "if", "an", "exception", "occurs", "but", "only", "if", "we", "are", "to", "stop", "at", "or", "just", "below", "this", "level", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L574-L589
[ "def", "user_exception", "(", "self", ",", "frame", ",", "exc_info", ")", ":", "exc_type", ",", "exc_value", ",", "exc_traceback", "=", "exc_info", "frame", ".", "f_locals", "[", "'__exception__'", "]", "=", "exc_type", ",", "exc_value", "# An 'Internal StopIter...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.precmd
Handle alias expansion and ';;' separator.
lib/pdb_clone/pdb.py
def precmd(self, line): """Handle alias expansion and ';;' separator.""" if not line.strip(): return line args = line.split() while args[0] in self.aliases: line = self.aliases[args[0]] ii = 1 for tmpArg in args[1:]: line = ...
def precmd(self, line): """Handle alias expansion and ';;' separator.""" if not line.strip(): return line args = line.split() while args[0] in self.aliases: line = self.aliases[args[0]] ii = 1 for tmpArg in args[1:]: line = ...
[ "Handle", "alias", "expansion", "and", ";;", "separator", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L683-L706
[ "def", "precmd", "(", "self", ",", "line", ")", ":", "if", "not", "line", ".", "strip", "(", ")", ":", "return", "line", "args", "=", "line", ".", "split", "(", ")", "while", "args", "[", "0", "]", "in", "self", ".", "aliases", ":", "line", "="...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.onecmd
Interpret the argument as though it had been typed in response to the prompt. Checks whether this line is typed at the normal prompt or in a breakpoint command list definition.
lib/pdb_clone/pdb.py
def onecmd(self, line): """Interpret the argument as though it had been typed in response to the prompt. Checks whether this line is typed at the normal prompt or in a breakpoint command list definition. """ if not self.commands_defining: return cmd.Cmd.onecm...
def onecmd(self, line): """Interpret the argument as though it had been typed in response to the prompt. Checks whether this line is typed at the normal prompt or in a breakpoint command list definition. """ if not self.commands_defining: return cmd.Cmd.onecm...
[ "Interpret", "the", "argument", "as", "though", "it", "had", "been", "typed", "in", "response", "to", "the", "prompt", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L708-L718
[ "def", "onecmd", "(", "self", ",", "line", ")", ":", "if", "not", "self", ".", "commands_defining", ":", "return", "cmd", ".", "Cmd", ".", "onecmd", "(", "self", ",", "line", ")", "else", ":", "return", "self", ".", "handle_command_def", "(", "line", ...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.handle_command_def
Handles one command line during command list definition.
lib/pdb_clone/pdb.py
def handle_command_def(self, line): """Handles one command line during command list definition.""" cmd, arg, line = self.parseline(line) if not cmd: return if cmd == 'silent': self.commands_silent[self.commands_bnum] = True return # continue to handle ...
def handle_command_def(self, line): """Handles one command line during command list definition.""" cmd, arg, line = self.parseline(line) if not cmd: return if cmd == 'silent': self.commands_silent[self.commands_bnum] = True return # continue to handle ...
[ "Handles", "one", "command", "line", "during", "command", "list", "definition", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L720-L746
[ "def", "handle_command_def", "(", "self", ",", "line", ")", ":", "cmd", ",", "arg", ",", "line", "=", "self", ".", "parseline", "(", "line", ")", "if", "not", "cmd", ":", "return", "if", "cmd", "==", "'silent'", ":", "self", ".", "commands_silent", "...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_commands
commands [bpnumber] (com) ... (com) end (Pdb) Specify a list of commands for breakpoint number bpnumber. The commands themselves are entered on the following lines. Type a line containing just 'end' to terminate the commands. The commands are executed when the br...
lib/pdb_clone/pdb.py
def do_commands(self, arg): """commands [bpnumber] (com) ... (com) end (Pdb) Specify a list of commands for breakpoint number bpnumber. The commands themselves are entered on the following lines. Type a line containing just 'end' to terminate the commands. ...
def do_commands(self, arg): """commands [bpnumber] (com) ... (com) end (Pdb) Specify a list of commands for breakpoint number bpnumber. The commands themselves are entered on the following lines. Type a line containing just 'end' to terminate the commands. ...
[ "commands", "[", "bpnumber", "]", "(", "com", ")", "...", "(", "com", ")", "end", "(", "Pdb", ")" ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L815-L890
[ "def", "do_commands", "(", "self", ",", "arg", ")", ":", "if", "not", "arg", ":", "bnum", "=", "len", "(", "bdb", ".", "Breakpoint", ".", "bpbynumber", ")", "-", "1", "else", ":", "try", ":", "bnum", "=", "int", "(", "arg", ")", "except", "Except...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_break
b(reak) [ ([filename:]lineno | function) [, condition] ] Without argument, list all breaks. With a line number argument, set a break at this line in the current file. With a function name, set a break at the first executable line of that function. If a second argument is prese...
lib/pdb_clone/pdb.py
def do_break(self, arg, temporary = 0): """b(reak) [ ([filename:]lineno | function) [, condition] ] Without argument, list all breaks. With a line number argument, set a break at this line in the current file. With a function name, set a break at the first executable line of th...
def do_break(self, arg, temporary = 0): """b(reak) [ ([filename:]lineno | function) [, condition] ] Without argument, list all breaks. With a line number argument, set a break at this line in the current file. With a function name, set a break at the first executable line of th...
[ "b", "(", "reak", ")", "[", "(", "[", "filename", ":", "]", "lineno", "|", "function", ")", "[", "condition", "]", "]", "Without", "argument", "list", "all", "breaks", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L894-L970
[ "def", "do_break", "(", "self", ",", "arg", ",", "temporary", "=", "0", ")", ":", "if", "not", "arg", ":", "all_breaks", "=", "'\\n'", ".", "join", "(", "bp", ".", "bpformat", "(", ")", "for", "bp", "in", "bdb", ".", "Breakpoint", ".", "bpbynumber"...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.defaultFile
Produce a reasonable default.
lib/pdb_clone/pdb.py
def defaultFile(self): """Produce a reasonable default.""" filename = self.curframe.f_code.co_filename if filename == '<string>' and self.mainpyfile: filename = self.mainpyfile return filename
def defaultFile(self): """Produce a reasonable default.""" filename = self.curframe.f_code.co_filename if filename == '<string>' and self.mainpyfile: filename = self.mainpyfile return filename
[ "Produce", "a", "reasonable", "default", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L973-L978
[ "def", "defaultFile", "(", "self", ")", ":", "filename", "=", "self", ".", "curframe", ".", "f_code", ".", "co_filename", "if", "filename", "==", "'<string>'", "and", "self", ".", "mainpyfile", ":", "filename", "=", "self", ".", "mainpyfile", "return", "fi...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_enable
enable bpnumber [bpnumber ...] Enables the breakpoints given as a space separated list of breakpoint numbers.
lib/pdb_clone/pdb.py
def do_enable(self, arg): """enable bpnumber [bpnumber ...] Enables the breakpoints given as a space separated list of breakpoint numbers. """ args = arg.split() for i in args: try: bp = self.get_bpbynumber(i) except ValueError as e...
def do_enable(self, arg): """enable bpnumber [bpnumber ...] Enables the breakpoints given as a space separated list of breakpoint numbers. """ args = arg.split() for i in args: try: bp = self.get_bpbynumber(i) except ValueError as e...
[ "enable", "bpnumber", "[", "bpnumber", "...", "]", "Enables", "the", "breakpoints", "given", "as", "a", "space", "separated", "list", "of", "breakpoint", "numbers", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L998-L1011
[ "def", "do_enable", "(", "self", ",", "arg", ")", ":", "args", "=", "arg", ".", "split", "(", ")", "for", "i", "in", "args", ":", "try", ":", "bp", "=", "self", ".", "get_bpbynumber", "(", "i", ")", "except", "ValueError", "as", "err", ":", "self...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_disable
disable bpnumber [bpnumber ...] Disables the breakpoints given as a space separated list of breakpoint numbers. Disabling a breakpoint means it cannot cause the program to stop execution, but unlike clearing a breakpoint, it remains in the list of breakpoints and can be (re-)ena...
lib/pdb_clone/pdb.py
def do_disable(self, arg): """disable bpnumber [bpnumber ...] Disables the breakpoints given as a space separated list of breakpoint numbers. Disabling a breakpoint means it cannot cause the program to stop execution, but unlike clearing a breakpoint, it remains in the list of b...
def do_disable(self, arg): """disable bpnumber [bpnumber ...] Disables the breakpoints given as a space separated list of breakpoint numbers. Disabling a breakpoint means it cannot cause the program to stop execution, but unlike clearing a breakpoint, it remains in the list of b...
[ "disable", "bpnumber", "[", "bpnumber", "...", "]", "Disables", "the", "breakpoints", "given", "as", "a", "space", "separated", "list", "of", "breakpoint", "numbers", ".", "Disabling", "a", "breakpoint", "means", "it", "cannot", "cause", "the", "program", "to"...
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1015-L1031
[ "def", "do_disable", "(", "self", ",", "arg", ")", ":", "args", "=", "arg", ".", "split", "(", ")", "for", "i", "in", "args", ":", "try", ":", "bp", "=", "self", ".", "get_bpbynumber", "(", "i", ")", "except", "ValueError", "as", "err", ":", "sel...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_condition
condition bpnumber [condition] Set a new condition for the breakpoint, an expression which must evaluate to true before the breakpoint is honored. If condition is absent, any existing condition is removed; i.e., the breakpoint is made unconditional.
lib/pdb_clone/pdb.py
def do_condition(self, arg): """condition bpnumber [condition] Set a new condition for the breakpoint, an expression which must evaluate to true before the breakpoint is honored. If condition is absent, any existing condition is removed; i.e., the breakpoint is made unconditiona...
def do_condition(self, arg): """condition bpnumber [condition] Set a new condition for the breakpoint, an expression which must evaluate to true before the breakpoint is honored. If condition is absent, any existing condition is removed; i.e., the breakpoint is made unconditiona...
[ "condition", "bpnumber", "[", "condition", "]", "Set", "a", "new", "condition", "for", "the", "breakpoint", "an", "expression", "which", "must", "evaluate", "to", "true", "before", "the", "breakpoint", "is", "honored", ".", "If", "condition", "is", "absent", ...
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1035-L1058
[ "def", "do_condition", "(", "self", ",", "arg", ")", ":", "args", "=", "arg", ".", "split", "(", "' '", ",", "1", ")", "try", ":", "cond", "=", "args", "[", "1", "]", "except", "IndexError", ":", "cond", "=", "None", "try", ":", "bp", "=", "sel...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_ignore
ignore bpnumber [count] Set the ignore count for the given breakpoint number. If count is omitted, the ignore count is set to 0. A breakpoint becomes active when the ignore count is zero. When non-zero, the count is decremented each time the breakpoint is reached and the break...
lib/pdb_clone/pdb.py
def do_ignore(self, arg): """ignore bpnumber [count] Set the ignore count for the given breakpoint number. If count is omitted, the ignore count is set to 0. A breakpoint becomes active when the ignore count is zero. When non-zero, the count is decremented each time the breakp...
def do_ignore(self, arg): """ignore bpnumber [count] Set the ignore count for the given breakpoint number. If count is omitted, the ignore count is set to 0. A breakpoint becomes active when the ignore count is zero. When non-zero, the count is decremented each time the breakp...
[ "ignore", "bpnumber", "[", "count", "]", "Set", "the", "ignore", "count", "for", "the", "given", "breakpoint", "number", ".", "If", "count", "is", "omitted", "the", "ignore", "count", "is", "set", "to", "0", ".", "A", "breakpoint", "becomes", "active", "...
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1062-L1093
[ "def", "do_ignore", "(", "self", ",", "arg", ")", ":", "args", "=", "arg", ".", "split", "(", "' '", ",", "1", ")", "try", ":", "count", "=", "int", "(", "args", "[", "1", "]", ".", "strip", "(", ")", ")", "except", "Exception", ":", "count", ...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_clear
cl(ear) filename:lineno\ncl(ear) [bpnumber [bpnumber...]] With a space separated list of breakpoint numbers, clear those breakpoints. Without argument, clear all breaks (but first ask confirmation). With a filename:lineno argument, clear all breaks at that line in that file.
lib/pdb_clone/pdb.py
def do_clear(self, arg): """cl(ear) filename:lineno\ncl(ear) [bpnumber [bpnumber...]] With a space separated list of breakpoint numbers, clear those breakpoints. Without argument, clear all breaks (but first ask confirmation). With a filename:lineno argument, clear all breaks a...
def do_clear(self, arg): """cl(ear) filename:lineno\ncl(ear) [bpnumber [bpnumber...]] With a space separated list of breakpoint numbers, clear those breakpoints. Without argument, clear all breaks (but first ask confirmation). With a filename:lineno argument, clear all breaks a...
[ "cl", "(", "ear", ")", "filename", ":", "lineno", "\\", "ncl", "(", "ear", ")", "[", "bpnumber", "[", "bpnumber", "...", "]]", "With", "a", "space", "separated", "list", "of", "breakpoint", "numbers", "clear", "those", "breakpoints", ".", "Without", "arg...
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1100-L1148
[ "def", "do_clear", "(", "self", ",", "arg", ")", ":", "if", "not", "arg", ":", "try", ":", "if", "PY3", ":", "reply", "=", "input", "(", "'Clear all breaks? '", ")", "else", ":", "reply", "=", "raw_input", "(", "'Clear all breaks? '", ")", "except", "E...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_up
u(p) [count] Move the current frame count (default one) levels up in the stack trace (to an older frame).
lib/pdb_clone/pdb.py
def do_up(self, arg): """u(p) [count] Move the current frame count (default one) levels up in the stack trace (to an older frame). """ if self.curindex == 0: self.error('Oldest frame') return try: count = int(arg or 1) except Va...
def do_up(self, arg): """u(p) [count] Move the current frame count (default one) levels up in the stack trace (to an older frame). """ if self.curindex == 0: self.error('Oldest frame') return try: count = int(arg or 1) except Va...
[ "u", "(", "p", ")", "[", "count", "]", "Move", "the", "current", "frame", "count", "(", "default", "one", ")", "levels", "up", "in", "the", "stack", "trace", "(", "to", "an", "older", "frame", ")", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1171-L1188
[ "def", "do_up", "(", "self", ",", "arg", ")", ":", "if", "self", ".", "curindex", "==", "0", ":", "self", ".", "error", "(", "'Oldest frame'", ")", "return", "try", ":", "count", "=", "int", "(", "arg", "or", "1", ")", "except", "ValueError", ":", ...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_down
d(own) [count] Move the current frame count (default one) levels down in the stack trace (to a newer frame).
lib/pdb_clone/pdb.py
def do_down(self, arg): """d(own) [count] Move the current frame count (default one) levels down in the stack trace (to a newer frame). """ if self.curindex + 1 == len(self.stack): self.error('Newest frame') return try: count = int(arg ...
def do_down(self, arg): """d(own) [count] Move the current frame count (default one) levels down in the stack trace (to a newer frame). """ if self.curindex + 1 == len(self.stack): self.error('Newest frame') return try: count = int(arg ...
[ "d", "(", "own", ")", "[", "count", "]", "Move", "the", "current", "frame", "count", "(", "default", "one", ")", "levels", "down", "in", "the", "stack", "trace", "(", "to", "a", "newer", "frame", ")", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1191-L1208
[ "def", "do_down", "(", "self", ",", "arg", ")", ":", "if", "self", ".", "curindex", "+", "1", "==", "len", "(", "self", ".", "stack", ")", ":", "self", ".", "error", "(", "'Newest frame'", ")", "return", "try", ":", "count", "=", "int", "(", "arg...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_until
unt(il) [lineno] Without argument, continue execution until the line with a number greater than the current one is reached. With a line number, continue execution until a line with a number greater or equal to that is reached. In both cases, also stop when the current frame ret...
lib/pdb_clone/pdb.py
def do_until(self, arg): """unt(il) [lineno] Without argument, continue execution until the line with a number greater than the current one is reached. With a line number, continue execution until a line with a number greater or equal to that is reached. In both cases, also sto...
def do_until(self, arg): """unt(il) [lineno] Without argument, continue execution until the line with a number greater than the current one is reached. With a line number, continue execution until a line with a number greater or equal to that is reached. In both cases, also sto...
[ "unt", "(", "il", ")", "[", "lineno", "]", "Without", "argument", "continue", "execution", "until", "the", "line", "with", "a", "number", "greater", "than", "the", "current", "one", "is", "reached", ".", "With", "a", "line", "number", "continue", "executio...
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1211-L1233
[ "def", "do_until", "(", "self", ",", "arg", ")", ":", "if", "arg", ":", "try", ":", "lineno", "=", "int", "(", "arg", ")", "except", "ValueError", ":", "self", ".", "error", "(", "'Error in argument: %r'", "%", "arg", ")", "return", "if", "lineno", "...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_run
run [args...] Restart the debugged python program. If a string is supplied it is splitted with "shlex", and the result is used as the new sys.argv. History, breakpoints, actions and debugger options are preserved. "restart" is an alias for "run".
lib/pdb_clone/pdb.py
def do_run(self, arg): """run [args...] Restart the debugged python program. If a string is supplied it is splitted with "shlex", and the result is used as the new sys.argv. History, breakpoints, actions and debugger options are preserved. "restart" is an alias for "run". ...
def do_run(self, arg): """run [args...] Restart the debugged python program. If a string is supplied it is splitted with "shlex", and the result is used as the new sys.argv. History, breakpoints, actions and debugger options are preserved. "restart" is an alias for "run". ...
[ "run", "[", "args", "...", "]", "Restart", "the", "debugged", "python", "program", ".", "If", "a", "string", "is", "supplied", "it", "is", "splitted", "with", "shlex", "and", "the", "result", "is", "used", "as", "the", "new", "sys", ".", "argv", ".", ...
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1257-L1269
[ "def", "do_run", "(", "self", ",", "arg", ")", ":", "if", "arg", ":", "argv0", "=", "sys", ".", "argv", "[", "0", ":", "1", "]", "sys", ".", "argv", "=", "shlex", ".", "split", "(", "arg", ")", "sys", ".", "argv", "[", ":", "0", "]", "=", ...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_jump
j(ump) lineno Set the next line that will be executed. Only available in the bottom-most frame. This lets you jump back and execute code again, or jump forward to skip code that you don't want to run. It should be noted that not all jumps are allowed -- for instance it...
lib/pdb_clone/pdb.py
def do_jump(self, arg): """j(ump) lineno Set the next line that will be executed. Only available in the bottom-most frame. This lets you jump back and execute code again, or jump forward to skip code that you don't want to run. It should be noted that not all jumps are...
def do_jump(self, arg): """j(ump) lineno Set the next line that will be executed. Only available in the bottom-most frame. This lets you jump back and execute code again, or jump forward to skip code that you don't want to run. It should be noted that not all jumps are...
[ "j", "(", "ump", ")", "lineno", "Set", "the", "next", "line", "that", "will", "be", "executed", ".", "Only", "available", "in", "the", "bottom", "-", "most", "frame", ".", "This", "lets", "you", "jump", "back", "and", "execute", "code", "again", "or", ...
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1291-L1317
[ "def", "do_jump", "(", "self", ",", "arg", ")", ":", "if", "self", ".", "curindex", "+", "1", "!=", "len", "(", "self", ".", "stack", ")", ":", "self", ".", "error", "(", "'You can only jump within the bottom frame'", ")", "return", "try", ":", "arg", ...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_debug
debug code Enter a recursive debugger that steps through the code argument (which is an arbitrary expression or statement to be executed in the current environment).
lib/pdb_clone/pdb.py
def do_debug(self, arg): """debug code Enter a recursive debugger that steps through the code argument (which is an arbitrary expression or statement to be executed in the current environment). """ self.settrace(False) globals = self.curframe.f_globals loc...
def do_debug(self, arg): """debug code Enter a recursive debugger that steps through the code argument (which is an arbitrary expression or statement to be executed in the current environment). """ self.settrace(False) globals = self.curframe.f_globals loc...
[ "debug", "code", "Enter", "a", "recursive", "debugger", "that", "steps", "through", "the", "code", "argument", "(", "which", "is", "an", "arbitrary", "expression", "or", "statement", "to", "be", "executed", "in", "the", "current", "environment", ")", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1320-L1335
[ "def", "do_debug", "(", "self", ",", "arg", ")", ":", "self", ".", "settrace", "(", "False", ")", "globals", "=", "self", ".", "curframe", ".", "f_globals", "locals", "=", "self", ".", "get_locals", "(", "self", ".", "curframe", ")", "p", "=", "Pdb",...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_quit
q(uit)\nexit Quit from the debugger. The program being executed is aborted.
lib/pdb_clone/pdb.py
def do_quit(self, arg): """q(uit)\nexit Quit from the debugger. The program being executed is aborted. """ if isinstance(self.stdin, RemoteSocket) and not self.is_debug_instance: return self.do_detach(arg) self._user_requested_quit = True self.set_quit() ...
def do_quit(self, arg): """q(uit)\nexit Quit from the debugger. The program being executed is aborted. """ if isinstance(self.stdin, RemoteSocket) and not self.is_debug_instance: return self.do_detach(arg) self._user_requested_quit = True self.set_quit() ...
[ "q", "(", "uit", ")", "\\", "nexit", "Quit", "from", "the", "debugger", ".", "The", "program", "being", "executed", "is", "aborted", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1349-L1357
[ "def", "do_quit", "(", "self", ",", "arg", ")", ":", "if", "isinstance", "(", "self", ".", "stdin", ",", "RemoteSocket", ")", "and", "not", "self", ".", "is_debug_instance", ":", "return", "self", ".", "do_detach", "(", "arg", ")", "self", ".", "_user_...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_args
a(rgs) Print the argument list of the current function.
lib/pdb_clone/pdb.py
def do_args(self, arg): """a(rgs) Print the argument list of the current function. """ co = self.curframe.f_code dict = self.get_locals(self.curframe) n = co.co_argcount if co.co_flags & 4: n = n+1 if co.co_flags & 8: n = n+1 for i in range(n): ...
def do_args(self, arg): """a(rgs) Print the argument list of the current function. """ co = self.curframe.f_code dict = self.get_locals(self.curframe) n = co.co_argcount if co.co_flags & 4: n = n+1 if co.co_flags & 8: n = n+1 for i in range(n): ...
[ "a", "(", "rgs", ")", "Print", "the", "argument", "list", "of", "the", "current", "function", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1369-L1383
[ "def", "do_args", "(", "self", ",", "arg", ")", ":", "co", "=", "self", ".", "curframe", ".", "f_code", "dict", "=", "self", ".", "get_locals", "(", "self", ".", "curframe", ")", "n", "=", "co", ".", "co_argcount", "if", "co", ".", "co_flags", "&",...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_retval
retval Print the return value for the last return of a function.
lib/pdb_clone/pdb.py
def do_retval(self, arg): """retval Print the return value for the last return of a function. """ locals = self.get_locals(self.curframe) if '__return__' in locals: self.message(bdb.safe_repr(locals['__return__'])) else: self.error('Not yet returne...
def do_retval(self, arg): """retval Print the return value for the last return of a function. """ locals = self.get_locals(self.curframe) if '__return__' in locals: self.message(bdb.safe_repr(locals['__return__'])) else: self.error('Not yet returne...
[ "retval", "Print", "the", "return", "value", "for", "the", "last", "return", "of", "a", "function", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1386-L1394
[ "def", "do_retval", "(", "self", ",", "arg", ")", ":", "locals", "=", "self", ".", "get_locals", "(", "self", ".", "curframe", ")", "if", "'__return__'", "in", "locals", ":", "self", ".", "message", "(", "bdb", ".", "safe_repr", "(", "locals", "[", "...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_p
p expression Print the value of the expression.
lib/pdb_clone/pdb.py
def do_p(self, arg): """p expression Print the value of the expression. """ try: self.message(bdb.safe_repr(self._getval(arg))) except Exception: pass
def do_p(self, arg): """p expression Print the value of the expression. """ try: self.message(bdb.safe_repr(self._getval(arg))) except Exception: pass
[ "p", "expression", "Print", "the", "value", "of", "the", "expression", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1418-L1425
[ "def", "do_p", "(", "self", ",", "arg", ")", ":", "try", ":", "self", ".", "message", "(", "bdb", ".", "safe_repr", "(", "self", ".", "_getval", "(", "arg", ")", ")", ")", "except", "Exception", ":", "pass" ]
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_pp
pp expression Pretty-print the value of the expression.
lib/pdb_clone/pdb.py
def do_pp(self, arg): """pp expression Pretty-print the value of the expression. """ obj = self._getval(arg) try: repr(obj) except Exception: self.message(bdb.safe_repr(obj)) else: self.message(pprint.pformat(obj))
def do_pp(self, arg): """pp expression Pretty-print the value of the expression. """ obj = self._getval(arg) try: repr(obj) except Exception: self.message(bdb.safe_repr(obj)) else: self.message(pprint.pformat(obj))
[ "pp", "expression", "Pretty", "-", "print", "the", "value", "of", "the", "expression", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1427-L1437
[ "def", "do_pp", "(", "self", ",", "arg", ")", ":", "obj", "=", "self", ".", "_getval", "(", "arg", ")", "try", ":", "repr", "(", "obj", ")", "except", "Exception", ":", "self", ".", "message", "(", "bdb", ".", "safe_repr", "(", "obj", ")", ")", ...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_list
l(ist) [first [,last] | .] List source code for the current file. Without arguments, list 11 lines around the current line or continue the previous listing. With . as argument, list 11 lines around the current line. With one argument, list 11 lines starting at that line. With...
lib/pdb_clone/pdb.py
def do_list(self, arg): """l(ist) [first [,last] | .] List source code for the current file. Without arguments, list 11 lines around the current line or continue the previous listing. With . as argument, list 11 lines around the current line. With one argument, list 11 lines ...
def do_list(self, arg): """l(ist) [first [,last] | .] List source code for the current file. Without arguments, list 11 lines around the current line or continue the previous listing. With . as argument, list 11 lines around the current line. With one argument, list 11 lines ...
[ "l", "(", "ist", ")", "[", "first", "[", "last", "]", "|", ".", "]" ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1443-L1491
[ "def", "do_list", "(", "self", ",", "arg", ")", ":", "self", ".", "lastcmd", "=", "'list'", "last", "=", "None", "if", "arg", "and", "arg", "!=", "'.'", ":", "try", ":", "if", "','", "in", "arg", ":", "first", ",", "last", "=", "arg", ".", "spl...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_longlist
longlist | ll List the whole source code for the current function or frame.
lib/pdb_clone/pdb.py
def do_longlist(self, arg): """longlist | ll List the whole source code for the current function or frame. """ filename = self.curframe.f_code.co_filename breaklist = self.get_file_breaks(filename) try: lines, lineno = getsourcelines(self.curframe, ...
def do_longlist(self, arg): """longlist | ll List the whole source code for the current function or frame. """ filename = self.curframe.f_code.co_filename breaklist = self.get_file_breaks(filename) try: lines, lineno = getsourcelines(self.curframe, ...
[ "longlist", "|", "ll", "List", "the", "whole", "source", "code", "for", "the", "current", "function", "or", "frame", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1494-L1506
[ "def", "do_longlist", "(", "self", ",", "arg", ")", ":", "filename", "=", "self", ".", "curframe", ".", "f_code", ".", "co_filename", "breaklist", "=", "self", ".", "get_file_breaks", "(", "filename", ")", "try", ":", "lines", ",", "lineno", "=", "getsou...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_source
source expression Try to get source code for the given object and display it.
lib/pdb_clone/pdb.py
def do_source(self, arg): """source expression Try to get source code for the given object and display it. """ try: obj = self._getval(arg) except Exception: return try: lines, lineno = getsourcelines(obj, self.get_locals(self.curframe)...
def do_source(self, arg): """source expression Try to get source code for the given object and display it. """ try: obj = self._getval(arg) except Exception: return try: lines, lineno = getsourcelines(obj, self.get_locals(self.curframe)...
[ "source", "expression", "Try", "to", "get", "source", "code", "for", "the", "given", "object", "and", "display", "it", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1509-L1522
[ "def", "do_source", "(", "self", ",", "arg", ")", ":", "try", ":", "obj", "=", "self", ".", "_getval", "(", "arg", ")", "except", "Exception", ":", "return", "try", ":", "lines", ",", "lineno", "=", "getsourcelines", "(", "obj", ",", "self", ".", "...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb._print_lines
Print a range of lines.
lib/pdb_clone/pdb.py
def _print_lines(self, lines, start, breaks=(), frame=None): """Print a range of lines.""" if frame: current_lineno = frame.f_lineno exc_lineno = self.tb_lineno.get(frame, -1) else: current_lineno = exc_lineno = -1 for lineno, line in enumerate(lines, ...
def _print_lines(self, lines, start, breaks=(), frame=None): """Print a range of lines.""" if frame: current_lineno = frame.f_lineno exc_lineno = self.tb_lineno.get(frame, -1) else: current_lineno = exc_lineno = -1 for lineno, line in enumerate(lines, ...
[ "Print", "a", "range", "of", "lines", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1526-L1545
[ "def", "_print_lines", "(", "self", ",", "lines", ",", "start", ",", "breaks", "=", "(", ")", ",", "frame", "=", "None", ")", ":", "if", "frame", ":", "current_lineno", "=", "frame", ".", "f_lineno", "exc_lineno", "=", "self", ".", "tb_lineno", ".", ...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_whatis
whatis arg Print the type of the argument.
lib/pdb_clone/pdb.py
def do_whatis(self, arg): """whatis arg Print the type of the argument. """ try: value = self._getval(arg) except Exception: # _getval() already printed the error return code = None # Is it a function? try: c...
def do_whatis(self, arg): """whatis arg Print the type of the argument. """ try: value = self._getval(arg) except Exception: # _getval() already printed the error return code = None # Is it a function? try: c...
[ "whatis", "arg", "Print", "the", "type", "of", "the", "argument", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1547-L1578
[ "def", "do_whatis", "(", "self", ",", "arg", ")", ":", "try", ":", "value", "=", "self", ".", "_getval", "(", "arg", ")", "except", "Exception", ":", "# _getval() already printed the error", "return", "code", "=", "None", "# Is it a function?", "try", ":", "...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_display
display [expression] Display the value of the expression if it changed, each time execution stops in the current frame. Without expression, list all display expressions for the current frame.
lib/pdb_clone/pdb.py
def do_display(self, arg): """display [expression] Display the value of the expression if it changed, each time execution stops in the current frame. Without expression, list all display expressions for the current frame. """ if not arg: self.message('Curren...
def do_display(self, arg): """display [expression] Display the value of the expression if it changed, each time execution stops in the current frame. Without expression, list all display expressions for the current frame. """ if not arg: self.message('Curren...
[ "display", "[", "expression", "]" ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1582-L1597
[ "def", "do_display", "(", "self", ",", "arg", ")", ":", "if", "not", "arg", ":", "self", ".", "message", "(", "'Currently displaying:'", ")", "for", "item", "in", "self", ".", "displaying", ".", "get", "(", "self", ".", "curframe", ",", "{", "}", ")"...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_undisplay
undisplay [expression] Do not display the expression any more in the current frame. Without expression, clear all display expressions for the current frame.
lib/pdb_clone/pdb.py
def do_undisplay(self, arg): """undisplay [expression] Do not display the expression any more in the current frame. Without expression, clear all display expressions for the current frame. """ if arg: try: del self.displaying.get(self.curframe, {})[a...
def do_undisplay(self, arg): """undisplay [expression] Do not display the expression any more in the current frame. Without expression, clear all display expressions for the current frame. """ if arg: try: del self.displaying.get(self.curframe, {})[a...
[ "undisplay", "[", "expression", "]" ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1601-L1614
[ "def", "do_undisplay", "(", "self", ",", "arg", ")", ":", "if", "arg", ":", "try", ":", "del", "self", ".", "displaying", ".", "get", "(", "self", ".", "curframe", ",", "{", "}", ")", "[", "arg", "]", "except", "KeyError", ":", "self", ".", "erro...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_interact
interact Start an interative interpreter whose global namespace contains all the (global and local) names found in the current scope.
lib/pdb_clone/pdb.py
def do_interact(self, arg): """interact Start an interative interpreter whose global namespace contains all the (global and local) names found in the current scope. """ def readfunc(prompt): self.stdout.write(prompt) self.stdout.flush() line =...
def do_interact(self, arg): """interact Start an interative interpreter whose global namespace contains all the (global and local) names found in the current scope. """ def readfunc(prompt): self.stdout.write(prompt) self.stdout.flush() line =...
[ "interact" ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1620-L1648
[ "def", "do_interact", "(", "self", ",", "arg", ")", ":", "def", "readfunc", "(", "prompt", ")", ":", "self", ".", "stdout", ".", "write", "(", "prompt", ")", "self", ".", "stdout", ".", "flush", "(", ")", "line", "=", "self", ".", "stdin", ".", "...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_alias
alias [name [command [parameter parameter ...] ]] Create an alias called 'name' that executes 'command'. The command must *not* be enclosed in quotes. Replaceable parameters can be indicated by %1, %2, and so on, while %* is replaced by all the parameters. If no command is given, the ...
lib/pdb_clone/pdb.py
def do_alias(self, arg): """alias [name [command [parameter parameter ...] ]] Create an alias called 'name' that executes 'command'. The command must *not* be enclosed in quotes. Replaceable parameters can be indicated by %1, %2, and so on, while %* is replaced by all the param...
def do_alias(self, arg): """alias [name [command [parameter parameter ...] ]] Create an alias called 'name' that executes 'command'. The command must *not* be enclosed in quotes. Replaceable parameters can be indicated by %1, %2, and so on, while %* is replaced by all the param...
[ "alias", "[", "name", "[", "command", "[", "parameter", "parameter", "...", "]", "]]", "Create", "an", "alias", "called", "name", "that", "executes", "command", ".", "The", "command", "must", "*", "not", "*", "be", "enclosed", "in", "quotes", ".", "Repla...
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1650-L1683
[ "def", "do_alias", "(", "self", ",", "arg", ")", ":", "args", "=", "arg", ".", "split", "(", ")", "if", "len", "(", "args", ")", "==", "0", ":", "keys", "=", "sorted", "(", "self", ".", "aliases", ".", "keys", "(", ")", ")", "for", "alias", "...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_unalias
unalias name Delete the specified alias.
lib/pdb_clone/pdb.py
def do_unalias(self, arg): """unalias name Delete the specified alias. """ args = arg.split() if len(args) == 0: return if args[0] in self.aliases: del self.aliases[args[0]]
def do_unalias(self, arg): """unalias name Delete the specified alias. """ args = arg.split() if len(args) == 0: return if args[0] in self.aliases: del self.aliases[args[0]]
[ "unalias", "name", "Delete", "the", "specified", "alias", "." ]
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1685-L1692
[ "def", "do_unalias", "(", "self", ",", "arg", ")", ":", "args", "=", "arg", ".", "split", "(", ")", "if", "len", "(", "args", ")", "==", "0", ":", "return", "if", "args", "[", "0", "]", "in", "self", ".", "aliases", ":", "del", "self", ".", "...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_thread
th(read) [threadnumber] Without argument, display a summary of all active threads. The summary prints for each thread: 1. the thread number assigned by pdb 2. the thread name 3. the python thread identifier 4. the current stack frame summary for that thread ...
lib/pdb_clone/pdb.py
def do_thread(self, arg): """th(read) [threadnumber] Without argument, display a summary of all active threads. The summary prints for each thread: 1. the thread number assigned by pdb 2. the thread name 3. the python thread identifier 4. the current s...
def do_thread(self, arg): """th(read) [threadnumber] Without argument, display a summary of all active threads. The summary prints for each thread: 1. the thread number assigned by pdb 2. the thread name 3. the python thread identifier 4. the current s...
[ "th", "(", "read", ")", "[", "threadnumber", "]", "Without", "argument", "display", "a", "summary", "of", "all", "active", "threads", ".", "The", "summary", "prints", "for", "each", "thread", ":", "1", ".", "the", "thread", "number", "assigned", "by", "p...
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1740-L1790
[ "def", "do_thread", "(", "self", ",", "arg", ")", ":", "# Import the threading module in the main interpreter to get an", "# enumeration of the main interpreter threads.", "if", "PY3", ":", "try", ":", "import", "threading", "except", "ImportError", ":", "import", "dummy_th...
f781537c243a4874b246d43dbdef8c4279f0094d
train
Pdb.do_help
h(elp) Without argument, print the list of available commands. With a command name as argument, print help about that command. "help pdb" shows the full pdb documentation. "help exec" gives help on the ! command.
lib/pdb_clone/pdb.py
def do_help(self, arg): """h(elp) Without argument, print the list of available commands. With a command name as argument, print help about that command. "help pdb" shows the full pdb documentation. "help exec" gives help on the ! command. """ if not arg: ...
def do_help(self, arg): """h(elp) Without argument, print the list of available commands. With a command name as argument, print help about that command. "help pdb" shows the full pdb documentation. "help exec" gives help on the ! command. """ if not arg: ...
[ "h", "(", "elp", ")", "Without", "argument", "print", "the", "list", "of", "available", "commands", ".", "With", "a", "command", "name", "as", "argument", "print", "help", "about", "that", "command", ".", "help", "pdb", "shows", "the", "full", "pdb", "do...
corpusops/pdbclone
python
https://github.com/corpusops/pdbclone/blob/f781537c243a4874b246d43dbdef8c4279f0094d/lib/pdb_clone/pdb.py#L1825-L1847
[ "def", "do_help", "(", "self", ",", "arg", ")", ":", "if", "not", "arg", ":", "return", "cmd", ".", "Cmd", ".", "do_help", "(", "self", ",", "arg", ")", "try", ":", "try", ":", "topic", "=", "getattr", "(", "self", ",", "'help_'", "+", "arg", "...
f781537c243a4874b246d43dbdef8c4279f0094d
train
SubsetIO.read
Read content. See file.read
mediafire/subsetio.py
def read(self, limit=-1): """Read content. See file.read""" remaining = self.len - self.parent_fd.tell() + self.offset if limit > remaining or limit == -1: limit = remaining return self.parent_fd.read(limit)
def read(self, limit=-1): """Read content. See file.read""" remaining = self.len - self.parent_fd.tell() + self.offset if limit > remaining or limit == -1: limit = remaining return self.parent_fd.read(limit)
[ "Read", "content", ".", "See", "file", ".", "read" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/subsetio.py#L48-L55
[ "def", "read", "(", "self", ",", "limit", "=", "-", "1", ")", ":", "remaining", "=", "self", ".", "len", "-", "self", ".", "parent_fd", ".", "tell", "(", ")", "+", "self", ".", "offset", "if", "limit", ">", "remaining", "or", "limit", "==", "-", ...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
SubsetIO.seek
Seek to position in stream, see file.seek
mediafire/subsetio.py
def seek(self, offset, whence=os.SEEK_SET): """Seek to position in stream, see file.seek""" pos = None if whence == os.SEEK_SET: pos = self.offset + offset elif whence == os.SEEK_CUR: pos = self.tell() + offset elif whence == os.SEEK_END: pos ...
def seek(self, offset, whence=os.SEEK_SET): """Seek to position in stream, see file.seek""" pos = None if whence == os.SEEK_SET: pos = self.offset + offset elif whence == os.SEEK_CUR: pos = self.tell() + offset elif whence == os.SEEK_END: pos ...
[ "Seek", "to", "position", "in", "stream", "see", "file", ".", "seek" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/subsetio.py#L57-L73
[ "def", "seek", "(", "self", ",", "offset", ",", "whence", "=", "os", ".", "SEEK_SET", ")", ":", "pos", "=", "None", "if", "whence", "==", "os", ".", "SEEK_SET", ":", "pos", "=", "self", ".", "offset", "+", "offset", "elif", "whence", "==", "os", ...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
SubsetIO.close
Close file, see file.close
mediafire/subsetio.py
def close(self): """Close file, see file.close""" try: self.parent_fd.fileno() except io.UnsupportedOperation: logger.debug("Not closing parent_fd - reusing existing") else: self.parent_fd.close()
def close(self): """Close file, see file.close""" try: self.parent_fd.fileno() except io.UnsupportedOperation: logger.debug("Not closing parent_fd - reusing existing") else: self.parent_fd.close()
[ "Close", "file", "see", "file", ".", "close" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/subsetio.py#L80-L87
[ "def", "close", "(", "self", ")", ":", "try", ":", "self", ".", "parent_fd", ".", "fileno", "(", ")", "except", "io", ".", "UnsupportedOperation", ":", "logger", ".", "debug", "(", "\"Not closing parent_fd - reusing existing\"", ")", "else", ":", "self", "."...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi._build_query
Prepare query string
mediafire/api.py
def _build_query(self, uri, params=None, action_token_type=None): """Prepare query string""" if params is None: params = QueryParams() params['response_format'] = 'json' session_token = None if action_token_type in self._action_tokens: # Favor action t...
def _build_query(self, uri, params=None, action_token_type=None): """Prepare query string""" if params is None: params = QueryParams() params['response_format'] = 'json' session_token = None if action_token_type in self._action_tokens: # Favor action t...
[ "Prepare", "query", "string" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L97-L134
[ "def", "_build_query", "(", "self", ",", "uri", ",", "params", "=", "None", ",", "action_token_type", "=", "None", ")", ":", "if", "params", "is", "None", ":", "params", "=", "QueryParams", "(", ")", "params", "[", "'response_format'", "]", "=", "'json'"...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.request
Perform request to MediaFire API action -- "category/name" of method to call params -- dict of parameters or query string action_token_type -- action token to use: None, "upload", "image" upload_info -- in case of upload, dict of "fd" and "filename" headers -- additional headers...
mediafire/api.py
def request(self, action, params=None, action_token_type=None, upload_info=None, headers=None): """Perform request to MediaFire API action -- "category/name" of method to call params -- dict of parameters or query string action_token_type -- action token to use: None, "u...
def request(self, action, params=None, action_token_type=None, upload_info=None, headers=None): """Perform request to MediaFire API action -- "category/name" of method to call params -- dict of parameters or query string action_token_type -- action token to use: None, "u...
[ "Perform", "request", "to", "MediaFire", "API" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L136-L197
[ "def", "request", "(", "self", ",", "action", ",", "params", "=", "None", ",", "action_token_type", "=", "None", ",", "upload_info", "=", "None", ",", "headers", "=", "None", ")", ":", "uri", "=", "self", ".", "_build_uri", "(", "action", ")", "if", ...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi._process_response
Parse response
mediafire/api.py
def _process_response(self, response): """Parse response""" forward_raw = False content_type = response.headers['Content-Type'] if content_type != 'application/json': logger.debug("headers: %s", response.headers) # API BUG: text/xml content-type with json payload...
def _process_response(self, response): """Parse response""" forward_raw = False content_type = response.headers['Content-Type'] if content_type != 'application/json': logger.debug("headers: %s", response.headers) # API BUG: text/xml content-type with json payload...
[ "Parse", "response" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L199-L238
[ "def", "_process_response", "(", "self", ",", "response", ")", ":", "forward_raw", "=", "False", "content_type", "=", "response", ".", "headers", "[", "'Content-Type'", "]", "if", "content_type", "!=", "'application/json'", ":", "logger", ".", "debug", "(", "\...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi._regenerate_secret_key
Regenerate secret key http://www.mediafire.com/developers/core_api/1.3/getting_started/#call_signature
mediafire/api.py
def _regenerate_secret_key(self): """Regenerate secret key http://www.mediafire.com/developers/core_api/1.3/getting_started/#call_signature """ # Don't regenerate the key if we have none if self._session and 'secret_key' in self._session: self._session['secret_key'] ...
def _regenerate_secret_key(self): """Regenerate secret key http://www.mediafire.com/developers/core_api/1.3/getting_started/#call_signature """ # Don't regenerate the key if we have none if self._session and 'secret_key' in self._session: self._session['secret_key'] ...
[ "Regenerate", "secret", "key" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L240-L248
[ "def", "_regenerate_secret_key", "(", "self", ")", ":", "# Don't regenerate the key if we have none", "if", "self", ".", "_session", "and", "'secret_key'", "in", "self", ".", "_session", ":", "self", ".", "_session", "[", "'secret_key'", "]", "=", "(", "int", "(...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.session
Set session token value -- dict returned by user/get_session_token
mediafire/api.py
def session(self, value): """Set session token value -- dict returned by user/get_session_token""" # unset session token if value is None: self._session = None return if not isinstance(value, dict): raise ValueError("session info is required...
def session(self, value): """Set session token value -- dict returned by user/get_session_token""" # unset session token if value is None: self._session = None return if not isinstance(value, dict): raise ValueError("session info is required...
[ "Set", "session", "token" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L256-L281
[ "def", "session", "(", "self", ",", "value", ")", ":", "# unset session token", "if", "value", "is", "None", ":", "self", ".", "_session", "=", "None", "return", "if", "not", "isinstance", "(", "value", ",", "dict", ")", ":", "raise", "ValueError", "(", ...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.set_action_token
Set action tokens type_ -- either "upload" or "image" action_token -- string obtained from user/get_action_token, set None to remove the token
mediafire/api.py
def set_action_token(self, type_=None, action_token=None): """Set action tokens type_ -- either "upload" or "image" action_token -- string obtained from user/get_action_token, set None to remove the token """ if action_token is None: del self....
def set_action_token(self, type_=None, action_token=None): """Set action tokens type_ -- either "upload" or "image" action_token -- string obtained from user/get_action_token, set None to remove the token """ if action_token is None: del self....
[ "Set", "action", "tokens" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L288-L298
[ "def", "set_action_token", "(", "self", ",", "type_", "=", "None", ",", "action_token", "=", "None", ")", ":", "if", "action_token", "is", "None", ":", "del", "self", ".", "_action_tokens", "[", "type_", "]", "else", ":", "self", ".", "_action_tokens", "...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.user_get_session_token
user/get_session_token http://www.mediafire.com/developers/core_api/1.3/user/#get_session_token
mediafire/api.py
def user_get_session_token(self, app_id=None, email=None, password=None, ekey=None, fb_access_token=None, tw_oauth_token=None, tw_oauth_token_secret=None, api_key=None): """user/get_session_token http://www.med...
def user_get_session_token(self, app_id=None, email=None, password=None, ekey=None, fb_access_token=None, tw_oauth_token=None, tw_oauth_token_secret=None, api_key=None): """user/get_session_token http://www.med...
[ "user", "/", "get_session_token" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L318-L374
[ "def", "user_get_session_token", "(", "self", ",", "app_id", "=", "None", ",", "email", "=", "None", ",", "password", "=", "None", ",", "ekey", "=", "None", ",", "fb_access_token", "=", "None", ",", "tw_oauth_token", "=", "None", ",", "tw_oauth_token_secret"...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.user_set_avatar
user/set_avatar http://www.mediafire.com/developers/core_api/1.3/user/#set_avatar
mediafire/api.py
def user_set_avatar(self, action=None, quick_key=None, url=None): """user/set_avatar http://www.mediafire.com/developers/core_api/1.3/user/#set_avatar """ return self.request("user/set_avatar", QueryParams({ "action": action, "quick_key": quick_key, "...
def user_set_avatar(self, action=None, quick_key=None, url=None): """user/set_avatar http://www.mediafire.com/developers/core_api/1.3/user/#set_avatar """ return self.request("user/set_avatar", QueryParams({ "action": action, "quick_key": quick_key, "...
[ "user", "/", "set_avatar" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L430-L439
[ "def", "user_set_avatar", "(", "self", ",", "action", "=", "None", ",", "quick_key", "=", "None", ",", "url", "=", "None", ")", ":", "return", "self", ".", "request", "(", "\"user/set_avatar\"", ",", "QueryParams", "(", "{", "\"action\"", ":", "action", ...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.user_update
user/update http://www.mediafire.com/developers/core_api/1.3/user/#update
mediafire/api.py
def user_update(self, display_name=None, first_name=None, last_name=None, email=None, password=None, current_password=None, birth_date=None, gender=None, website=None, subdomain=None, location=None, newsletter=None, primary_usage=None, time...
def user_update(self, display_name=None, first_name=None, last_name=None, email=None, password=None, current_password=None, birth_date=None, gender=None, website=None, subdomain=None, location=None, newsletter=None, primary_usage=None, time...
[ "user", "/", "update" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L441-L466
[ "def", "user_update", "(", "self", ",", "display_name", "=", "None", ",", "first_name", "=", "None", ",", "last_name", "=", "None", ",", "email", "=", "None", ",", "password", "=", "None", ",", "current_password", "=", "None", ",", "birth_date", "=", "No...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.folder_get_info
folder/get_info http://www.mediafire.com/developers/core_api/1.3/folder/#get_info
mediafire/api.py
def folder_get_info(self, folder_key=None, device_id=None, details=None): """folder/get_info http://www.mediafire.com/developers/core_api/1.3/folder/#get_info """ return self.request('folder/get_info', QueryParams({ 'folder_key': folder_key, 'device_id': device_i...
def folder_get_info(self, folder_key=None, device_id=None, details=None): """folder/get_info http://www.mediafire.com/developers/core_api/1.3/folder/#get_info """ return self.request('folder/get_info', QueryParams({ 'folder_key': folder_key, 'device_id': device_i...
[ "folder", "/", "get_info" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L468-L477
[ "def", "folder_get_info", "(", "self", ",", "folder_key", "=", "None", ",", "device_id", "=", "None", ",", "details", "=", "None", ")", ":", "return", "self", ".", "request", "(", "'folder/get_info'", ",", "QueryParams", "(", "{", "'folder_key'", ":", "fol...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.folder_get_content
folder/get_content http://www.mediafire.com/developers/core_api/1.3/folder/#get_content
mediafire/api.py
def folder_get_content(self, folder_key=None, content_type=None, filter_=None, device_id=None, order_by=None, order_direction=None, chunk=None, details=None, chunk_size=None): """folder/get_content http://www.mediafire.com...
def folder_get_content(self, folder_key=None, content_type=None, filter_=None, device_id=None, order_by=None, order_direction=None, chunk=None, details=None, chunk_size=None): """folder/get_content http://www.mediafire.com...
[ "folder", "/", "get_content" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L479-L497
[ "def", "folder_get_content", "(", "self", ",", "folder_key", "=", "None", ",", "content_type", "=", "None", ",", "filter_", "=", "None", ",", "device_id", "=", "None", ",", "order_by", "=", "None", ",", "order_direction", "=", "None", ",", "chunk", "=", ...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.folder_update
folder/update http://www.mediafire.com/developers/core_api/1.3/folder/#update
mediafire/api.py
def folder_update(self, folder_key, foldername=None, description=None, privacy=None, privacy_recursive=None, mtime=None): """folder/update http://www.mediafire.com/developers/core_api/1.3/folder/#update """ return self.request('folder/update', QueryParams({ ...
def folder_update(self, folder_key, foldername=None, description=None, privacy=None, privacy_recursive=None, mtime=None): """folder/update http://www.mediafire.com/developers/core_api/1.3/folder/#update """ return self.request('folder/update', QueryParams({ ...
[ "folder", "/", "update" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L499-L512
[ "def", "folder_update", "(", "self", ",", "folder_key", ",", "foldername", "=", "None", ",", "description", "=", "None", ",", "privacy", "=", "None", ",", "privacy_recursive", "=", "None", ",", "mtime", "=", "None", ")", ":", "return", "self", ".", "requ...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.folder_create
folder/create http://www.mediafire.com/developers/core_api/1.3/folder/#create
mediafire/api.py
def folder_create(self, foldername=None, parent_key=None, action_on_duplicate=None, mtime=None): """folder/create http://www.mediafire.com/developers/core_api/1.3/folder/#create """ return self.request('folder/create', QueryParams({ 'foldername': folder...
def folder_create(self, foldername=None, parent_key=None, action_on_duplicate=None, mtime=None): """folder/create http://www.mediafire.com/developers/core_api/1.3/folder/#create """ return self.request('folder/create', QueryParams({ 'foldername': folder...
[ "folder", "/", "create" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L514-L525
[ "def", "folder_create", "(", "self", ",", "foldername", "=", "None", ",", "parent_key", "=", "None", ",", "action_on_duplicate", "=", "None", ",", "mtime", "=", "None", ")", ":", "return", "self", ".", "request", "(", "'folder/create'", ",", "QueryParams", ...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.upload_check
upload/check http://www.mediafire.com/developers/core_api/1.3/upload/#check
mediafire/api.py
def upload_check(self, filename=None, folder_key=None, filedrop_key=None, size=None, hash_=None, path=None, resumable=None): """upload/check http://www.mediafire.com/developers/core_api/1.3/upload/#check """ return self.request('upload/check', QueryParams({ ...
def upload_check(self, filename=None, folder_key=None, filedrop_key=None, size=None, hash_=None, path=None, resumable=None): """upload/check http://www.mediafire.com/developers/core_api/1.3/upload/#check """ return self.request('upload/check', QueryParams({ ...
[ "upload", "/", "check" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L555-L569
[ "def", "upload_check", "(", "self", ",", "filename", "=", "None", ",", "folder_key", "=", "None", ",", "filedrop_key", "=", "None", ",", "size", "=", "None", ",", "hash_", "=", "None", ",", "path", "=", "None", ",", "resumable", "=", "None", ")", ":"...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.upload_simple
upload/simple http://www.mediafire.com/developers/core_api/1.3/upload/#simple
mediafire/api.py
def upload_simple(self, fd, filename, folder_key=None, path=None, filedrop_key=None, action_on_duplicate=None, mtime=None, file_size=None, file_hash=None): """upload/simple http://www.mediafire.com/developers/core_api/1.3/upload/#simple """ ac...
def upload_simple(self, fd, filename, folder_key=None, path=None, filedrop_key=None, action_on_duplicate=None, mtime=None, file_size=None, file_hash=None): """upload/simple http://www.mediafire.com/developers/core_api/1.3/upload/#simple """ ac...
[ "upload", "/", "simple" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L571-L599
[ "def", "upload_simple", "(", "self", ",", "fd", ",", "filename", ",", "folder_key", "=", "None", ",", "path", "=", "None", ",", "filedrop_key", "=", "None", ",", "action_on_duplicate", "=", "None", ",", "mtime", "=", "None", ",", "file_size", "=", "None"...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.upload_resumable
upload/resumable http://www.mediafire.com/developers/core_api/1.3/upload/#resumable
mediafire/api.py
def upload_resumable(self, fd, filesize, filehash, unit_hash, unit_id, unit_size, quick_key=None, action_on_duplicate=None, mtime=None, version_control=None, folder_key=None, filedrop_key=None, path=None, previous_hash=None): """upload/r...
def upload_resumable(self, fd, filesize, filehash, unit_hash, unit_id, unit_size, quick_key=None, action_on_duplicate=None, mtime=None, version_control=None, folder_key=None, filedrop_key=None, path=None, previous_hash=None): """upload/r...
[ "upload", "/", "resumable" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L603-L638
[ "def", "upload_resumable", "(", "self", ",", "fd", ",", "filesize", ",", "filehash", ",", "unit_hash", ",", "unit_id", ",", "unit_size", ",", "quick_key", "=", "None", ",", "action_on_duplicate", "=", "None", ",", "mtime", "=", "None", ",", "version_control"...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.upload_instant
upload/instant http://www.mediafire.com/developers/core_api/1.3/upload/#instant
mediafire/api.py
def upload_instant(self, filename, size, hash_, quick_key=None, folder_key=None, filedrop_key=None, path=None, action_on_duplicate=None, mtime=None, version_control=None, previous_hash=None): """upload/instant http://www.mediafire.com...
def upload_instant(self, filename, size, hash_, quick_key=None, folder_key=None, filedrop_key=None, path=None, action_on_duplicate=None, mtime=None, version_control=None, previous_hash=None): """upload/instant http://www.mediafire.com...
[ "upload", "/", "instant" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L641-L661
[ "def", "upload_instant", "(", "self", ",", "filename", ",", "size", ",", "hash_", ",", "quick_key", "=", "None", ",", "folder_key", "=", "None", ",", "filedrop_key", "=", "None", ",", "path", "=", "None", ",", "action_on_duplicate", "=", "None", ",", "mt...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.file_update
file/update http://www.mediafire.com/developers/core_api/1.3/file/#update
mediafire/api.py
def file_update(self, quick_key, filename=None, description=None, mtime=None, privacy=None): """file/update http://www.mediafire.com/developers/core_api/1.3/file/#update """ return self.request('file/update', QueryParams({ 'quick_key': quick_key, ...
def file_update(self, quick_key, filename=None, description=None, mtime=None, privacy=None): """file/update http://www.mediafire.com/developers/core_api/1.3/file/#update """ return self.request('file/update', QueryParams({ 'quick_key': quick_key, ...
[ "file", "/", "update" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L691-L703
[ "def", "file_update", "(", "self", ",", "quick_key", ",", "filename", "=", "None", ",", "description", "=", "None", ",", "mtime", "=", "None", ",", "privacy", "=", "None", ")", ":", "return", "self", ".", "request", "(", "'file/update'", ",", "QueryParam...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.file_update_file
file/update_file http://www.mediafire.com/developers/core_api/1.3/file/#update_file
mediafire/api.py
def file_update_file(self, quick_key, file_extension=None, filename=None, description=None, mtime=None, privacy=None, timezone=None): """file/update_file http://www.mediafire.com/developers/core_api/1.3/file/#update_file """ return self....
def file_update_file(self, quick_key, file_extension=None, filename=None, description=None, mtime=None, privacy=None, timezone=None): """file/update_file http://www.mediafire.com/developers/core_api/1.3/file/#update_file """ return self....
[ "file", "/", "update_file" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L705-L720
[ "def", "file_update_file", "(", "self", ",", "quick_key", ",", "file_extension", "=", "None", ",", "filename", "=", "None", ",", "description", "=", "None", ",", "mtime", "=", "None", ",", "privacy", "=", "None", ",", "timezone", "=", "None", ")", ":", ...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
MediaFireApi.file_zip
file/zip http://www.mediafire.com/developers/core_api/1.3/file/#zip
mediafire/api.py
def file_zip(self, keys, confirm_download=None, meta_only=None): """file/zip http://www.mediafire.com/developers/core_api/1.3/file/#zip """ return self.request('file/zip', QueryParams({ 'keys': keys, 'confirm_download': confirm_download, 'meta_only': ...
def file_zip(self, keys, confirm_download=None, meta_only=None): """file/zip http://www.mediafire.com/developers/core_api/1.3/file/#zip """ return self.request('file/zip', QueryParams({ 'keys': keys, 'confirm_download': confirm_download, 'meta_only': ...
[ "file", "/", "zip" ]
MediaFire/mediafire-python-open-sdk
python
https://github.com/MediaFire/mediafire-python-open-sdk/blob/8f1f23db1b16f16e026f5c6777aec32d00baa05f/mediafire/api.py#L750-L759
[ "def", "file_zip", "(", "self", ",", "keys", ",", "confirm_download", "=", "None", ",", "meta_only", "=", "None", ")", ":", "return", "self", ".", "request", "(", "'file/zip'", ",", "QueryParams", "(", "{", "'keys'", ":", "keys", ",", "'confirm_download'",...
8f1f23db1b16f16e026f5c6777aec32d00baa05f
train
Connection._reset
Reset all of our stateful variables
nsq/connection.py
def _reset(self): '''Reset all of our stateful variables''' self._socket = None # The pending messages we have to send, and the current buffer we're # sending self._pending = deque() self._out_buffer = '' # Our read buffer self._buffer = '' # The i...
def _reset(self): '''Reset all of our stateful variables''' self._socket = None # The pending messages we have to send, and the current buffer we're # sending self._pending = deque() self._out_buffer = '' # Our read buffer self._buffer = '' # The i...
[ "Reset", "all", "of", "our", "stateful", "variables" ]
dlecocq/nsq-py
python
https://github.com/dlecocq/nsq-py/blob/3ecacf6ab7719d38031179277113d875554a0c16/nsq/connection.py#L91-L104
[ "def", "_reset", "(", "self", ")", ":", "self", ".", "_socket", "=", "None", "# The pending messages we have to send, and the current buffer we're", "# sending", "self", ".", "_pending", "=", "deque", "(", ")", "self", ".", "_out_buffer", "=", "''", "# Our read buff...
3ecacf6ab7719d38031179277113d875554a0c16