id
stringlengths
17
116
task
stringclasses
1 value
context_length
stringclasses
1 value
documents
listlengths
10
1.02k
question
stringlengths
332
403
question_with_choices
stringlengths
332
403
answer
stringlengths
40
43.3k
answer_raw
stringlengths
42
43.8k
n_chunks_full
int64
10
61.9k
truncated
bool
2 classes
repo
stringlengths
7
54
target_name
stringlengths
1
72
document_id
int64
2.87k
144k
LDU_FT/projectatomic/osbs-client/stream_logs
LDU_FT
[ "<BEGIN>\n## `get_openshift_base_uri`", "https://<host>[:<port>]/", " :return: str\n<END>", "<BEGIN>\n## `get_builder_openshift_url`", "url of OpenShift where builder will connect\n<END>", "<BEGIN>\n## `generate_nodeselector_dict`", "helper method for generating nodeselector dict\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream_logs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream_logs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
stream logs from build :param build_id: str :return: iterator
"stream logs from build\n\n :param build_id: str\n :return: iterator"
268
false
projectatomic/osbs-client
stream_logs
9,973
LDU_FT/icometrix/dicom2nifti/get_ss_value
LDU_FT
[ "<BEGIN>\n## `_get_gdcmconv`", "Get the full path to gdcmconv.\n If not found raise error\n<END>", "<BEGIN>\n## `compress_directory`", "This function can be used to convert a folder of jpeg compressed images to an uncompressed ones", " :param dicom_directory: directory of dicom files to compress\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ss_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ss_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Getters for data that also work with implicit transfersyntax :param tag: the tag to read
"Getters for data that also work with implicit transfersyntax\n\n :param tag: the tag to read"
243
false
icometrix/dicom2nifti
get_ss_value
9,974
LDU_FT/RI-imaging/qpsphere/match_phase
LDU_FT
[ "<BEGIN>\n## `interpolate_grid`", "Return the 2D field averaged radially w.r.t. the center\n<END>", "<BEGIN>\n## `rytov`", "Field behind a dielectric sphere in the Rytov approximation", " Parameters\n ----------\n radius: float\n Radius of the sphere [m]\n sphere_index: float\n Ref...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_phase API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_phase API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Fit a scattering model to a quantitative phase image Parameters ---------- qpi: qpimage.QPImage QPI data to fit (e.g. experimental data) model: str Name of the light-scattering model (see :const:`qpsphere.models.available`) n0: float Initial refractive index of the s...
"Fit a scattering model to a quantitative phase image\n\n Parameters\n ----------\n qpi: qpimage.QPImage\n QPI data to fit (e.g. experimental data)\n model: str\n Name of the light-scattering model\n (see :const:`qpsphere.models.available`)\n n0: float\n Initial refractive ind...
179
false
RI-imaging/qpsphere
match_phase
9,975
LDU_FT/sio2project/filetracker/delete
LDU_FT
[ "<BEGIN>\n## `get_file`", "Retrieves file identified by ``name``.", " The file is saved as ``save_to``. If ``add_to_cache`` is ``True``,\n the file is added to the local store. If ``force_refresh`` is\n ``True``, local cache is not examined if a remote store is\n configur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Removes a file from the storage. Args: name: name of the file being deleted. May contain slashes that are treated as path separators. version: file "version" that is meant to be deleted If the file that is stored has newer version than provided, ...
"Removes a file from the storage.\n\n Args:\n name: name of the file being deleted.\n May contain slashes that are treated as path separators.\n version: file \"version\" that is meant to be deleted\n If the file that is stored has newer version than provid...
84
false
sio2project/filetracker
delete
9,976
LDU_FT/delfick/aws_syncr/custom_prompt
LDU_FT
[ "<BEGIN>\n## `catch_boto_400`", "Turn a BotoServerError 400 into a BadAmazon\n<END>", "<BEGIN>\n## `change`", "Print out a change and then do the change if not doing a dry run\n<END>", "<BEGIN>\n## `compare_two_documents`", "Compare two documents by converting them into json objects and back to strings an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the custom_prompt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the custom_prompt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Start up a prompt that with particular delims and completer
"Start up a prompt that with particular delims and completer"
40
false
delfick/aws_syncr
custom_prompt
9,977
LDU_FT/astraw/stdeb/dpkg_buildpackage
LDU_FT
[ "<BEGIN>\n## `source_debianize_name`", "make name acceptable as a Debian source package name\n<END>", "<BEGIN>\n## `get_deb_depends_from_setuptools_requires`", "Suppose you can't confidently figure out a .deb which satisfies a given\n requirement. If on_failure == 'warn', then log a warning. If on_failur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dpkg_buildpackage API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dpkg_buildpackage API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
call dpkg-buildpackage [arg1] [...] [argN]
"call dpkg-buildpackage [arg1] [...] [argN]"
16
false
astraw/stdeb
dpkg_buildpackage
9,978
LDU_FT/LabKey/labkey-api-python/save
LDU_FT
[ "<BEGIN>\n## `create`", "Create a domain\n :param server_context: A LabKey server context. See utils.create_server_context.\n :param domain_definition: A domain definition.\n :param container_path: labkey container path if not already set in context\n :return: Domain\n<END>", "<BEGIN>\n## `drop`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Saves the provided domain design :param server_context: A LabKey server context. See utils.create_server_context. :param schema_name: schema of domain :param query_name: query name of domain :param domain: Domain to save :param container_path: labkey container path if not already set in context ...
"Saves the provided domain design\n :param server_context: A LabKey server context. See utils.create_server_context.\n :param schema_name: schema of domain\n :param query_name: query name of domain\n :param domain: Domain to save\n :param container_path: labkey container path if not already set in contex...
60
false
LabKey/labkey-api-python
save
9,979
LDU_FT/ivilata/pymultihash/from_hash
LDU_FT
[ "<BEGIN>\n## `reset`", "Reset the registry to the standard codecs.\n<END>", "<BEGIN>\n## `register`", "Add a codec to the registry.", " Registers a codec with the given `name` (a string) to be used with the\n given `encode` and `decode` functions, which take a `bytes` object and\n retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Create a `Multihash` from a hashlib-compatible `hash` object. >>> import hashlib >>> data = b'foo' >>> hash = hashlib.sha1(data) >>> digest = hash.digest() >>> mh = Multihash.from_hash(hash) >>> mh == (Func.sha1, digest) True Application-specific hash fu...
"Create a `Multihash` from a hashlib-compatible `hash` object.\n\n >>> import hashlib\n >>> data = b'foo'\n >>> hash = hashlib.sha1(data)\n >>> digest = hash.digest()\n >>> mh = Multihash.from_hash(hash)\n >>> mh == (Func.sha1, digest)\n True\n\n Application-speci...
59
false
ivilata/pymultihash
from_hash
9,980
LDU_FT/hatemile/hatemile-for-python/get_packages
LDU_FT
[ "<BEGIN>\n## `_get_shortcut_prefix`", "Returns the shortcut prefix of browser.", " :param user_agent: The user agent of browser.\n :type user_agent: str\n :param standart_prefix: The default prefix.\n :type standart_prefix: str\n :return: The shortcut prefix of browser.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_packages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_packages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns the packages used for HaTeMiLe for Python. :return: The packages used for HaTeMiLe for Python. :rtype: list(str)
"Returns the packages used for HaTeMiLe for Python.\n\n :return: The packages used for HaTeMiLe for Python.\n :rtype: list(str)"
202
false
hatemile/hatemile-for-python
get_packages
9,981
LDU_FT/GPflow/GPflow/_namedtuplify
LDU_FT
[ "<BEGIN>\n## `multivariate_normal`", "Computes the log-density of a multivariate normal.\n :param x : Dx1 or DxN sample(s) for which we want the density\n :param mu : Dx1 or DxN mean(s) of the normal distribution\n :param L : DxD Cholesky decomposition of the covariance matrix\n :return p : (1,) or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _namedtuplify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _namedtuplify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Make the dictionary into a nested series of named tuples. This is what allows accessing by attribute: settings.numerics.jitter Thank you https://gist.github.com/hangtwenty/5960435
"Make the dictionary into a nested series of named tuples.\n This is what allows accessing by attribute: settings.numerics.jitter\n Thank you https://gist.github.com/hangtwenty/5960435"
589
false
GPflow/GPflow
_namedtuplify
9,982
LDU_FT/rndusr/torf/calculate_piece_size
LDU_FT
[ "<BEGIN>\n## `files`", "Yield relative file paths specified in :attr:`metainfo`", " Each paths starts with :attr:`name`.", " Note that the paths may not exist. See :attr:`filepaths` for existing\n files.\n<END>", "<BEGIN>\n## `filepaths`", "Yield absolute paths to existing files in :a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_piece_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_piece_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Calculate and add ``piece length`` to ``info`` in :attr:`metainfo` The piece size is calculated so that there are no more than :attr:`MAX_PIECES` pieces unless it is larger than :attr:`MAX_PIECE_SIZE`, in which case there is no limit on the number of pieces. :raises RuntimeErro...
"Calculate and add ``piece length`` to ``info`` in :attr:`metainfo`\n\n The piece size is calculated so that there are no more than\n :attr:`MAX_PIECES` pieces unless it is larger than\n :attr:`MAX_PIECE_SIZE`, in which case there is no limit on the number of\n pieces.\n\n :raises Run...
89
false
rndusr/torf
calculate_piece_size
9,983
LDU_FT/TkTech/Jawa/create_double
LDU_FT
[ "<BEGIN>\n## `_walk`", "A modified os.walk with support for maximum traversal depth.\n<END>", "<BEGIN>\n## `update`", "Add one or more ClassFile sources to the class loader.", " If a given source is a directory path, it is traversed up to the\n maximum set depth and all files under it are adde...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_double API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_double API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Creates a new :class:`ConstantDouble`, adding it to the pool and returning it. :param value: The value of the new Double.
"Creates a new :class:`ConstantDouble`, adding it to the pool and\n returning it.\n\n :param value: The value of the new Double."
226
false
TkTech/Jawa
create_double
9,984
LDU_FT/drericstrong/pyedna/AddDigitalShortIdRecord
LDU_FT
[ "<BEGIN>\n## `write_relationships`", "This module will output the eDNA tags which are used inside each\n calculation.", " If flat=True, data will be written flat, like:\n ADE1CA01, ADE1PI01, ADE1PI02", " If flat=False, data will be written in the non-flat way, like:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AddDigitalShortIdRecord API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AddDigitalShortIdRecord API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
This function will add a digital value to the specified eDNA service and tag, including all default point status definitions. :param site_service: The site.service where data will be pushed :param tag: The eDNA tag to push data. Tag only (e.g. ADE1CA01) :param time_value: The time of the point, which M...
"This function will add a digital value to the specified eDNA service and\n tag, including all default point status definitions.\n\n :param site_service: The site.service where data will be pushed\n :param tag: The eDNA tag to push data. Tag only (e.g. ADE1CA01)\n :param time_value: The time of the point, w...
70
false
drericstrong/pyedna
AddDigitalShortIdRecord
9,985
LDU_FT/halcy/Mastodon.py/status_context
LDU_FT
[ "<BEGIN>\n## `parse_version_string`", "Parses a semver version string, stripping off \"rc\" stuff if present.\n<END>", "<BEGIN>\n## `bigger_version`", "Returns the bigger version of two version strings.\n<END>", "<BEGIN>\n## `api_version`", "Version check decorator. Currently only checks Bigger Than.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Fetch information about ancestors and descendants of a toot. Does not require authentication for publicly visible statuses. Returns a `context dict`_.
"Fetch information about ancestors and descendants of a toot.\n\n Does not require authentication for publicly visible statuses.\n\n Returns a `context dict`_."
313
false
halcy/Mastodon.py
status_context
9,986
LDU_FT/spookey/photon/write_json
LDU_FT
[ "<BEGIN>\n## `__signal`", "Helper class preventing code duplication..", " :param sig:\n Signal to use (e.g. \"HUP\", \"ALRM\")\n :param verbose:\n Overwrite :func:`photon.Photon.m`'s `verbose`\n :returns:\n |kill_return| with specified `pid`", " .. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Writes json files :param filename: The full path to the json file :param content: The content to dump :returns: The size written
"Writes json files\n\n :param filename:\n The full path to the json file\n :param content:\n The content to dump\n :returns:\n The size written"
199
false
spookey/photon
write_json
9,987
LDU_FT/F-Secure/see/store_file
LDU_FT
[ "<BEGIN>\n## `create`", "Creates a virtual network according to the given configuration.", " @param hypervisor: (libvirt.virConnect) connection to libvirt hypervisor.\n @param identifier: (str) UUID for the virtual network.\n @param configuration: (dict) network configuration.", " @return: (libvir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Stores the uploaded file in the given path.
"Stores the uploaded file in the given path."
130
false
F-Secure/see
store_file
9,988
LDU_FT/chinapnr/fishbase/get_zone_info
LDU_FT
[ "<BEGIN>\n## `string`", "获取一个字符串的 MD5 值", " :param:\n * s: (string) 需要进行 hash 的字符串\n * salt: (string) 随机字符串,默认为 None\n :return:\n * result: (string) 32 位小写 MD5 值\n<END>", "<BEGIN>\n## `file`", "获取一个文件的 MD5 值", " :param:\n * filename: (string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_zone_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_zone_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
输入包含省份、城市、地区信息的内容,返回地区编号; :param: * area_str: (string) 要查询的区域,省份、城市、地区信息,比如 北京市 * match_type: (string) 查询匹配模式,默认值 'EXACT',表示精确匹配,可选 'FUZZY',表示模糊查询 * result_type: (string) 返回结果数量类型,默认值 'LIST',表示返回列表,可选 'SINGLE_STR',返回结果的第一个地区编号字符串 :returns: * 返回类型 根据 resu...
"输入包含省份、城市、地区信息的内容,返回地区编号;\n\n :param:\n * area_str: (string) 要查询的区域,省份、城市、地区信息,比如 北京市\n * match_type: (string) 查询匹配模式,默认值 'EXACT',表示精确匹配,可选 'FUZZY',表示模糊查询\n * result_type: (string) 返回结果数量类型,默认值 'LIST',表示返回列表,可选 'SINGLE_STR',返回结果的第一个地区编号字符串\n\n :returns:\n * 返回类...
448
false
chinapnr/fishbase
get_zone_info
9,989
LDU_FT/QUANTAXIS/QUANTAXIS/AROON
LDU_FT
[ "<BEGIN>\n## `start_market`", "start the market thread and register backtest broker thread\n QAMarket 继承QATrader, QATrader 中有 trade_engine属性 , trade_engine类型是QA_Engine从 QA_Thread继承\n<END>", "<BEGIN>\n## `message`", "the standard message which can be transfer\n<END>", "<BEGIN>\n## `init_hold_with_acco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AROON API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AROON API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
阿隆指标 Arguments: DataFrame {[type]} -- [description] Keyword Arguments: N {int} -- [description] (default: {14}) Returns: [type] -- [description]
"阿隆指标\n \n Arguments:\n DataFrame {[type]} -- [description]\n \n Keyword Arguments:\n N {int} -- [description] (default: {14})\n \n Returns:\n [type] -- [description]"
835
false
QUANTAXIS/QUANTAXIS
AROON
9,990
LDU_FT/OSSOS/MOP/ossos_release_parser
LDU_FT
[ "<BEGIN>\n## `set_ds9`", "Set the default values on the ds9 display.\n<END>", "<BEGIN>\n## `cfht_megacam_tap_query`", "Do a query of the CADC Megacam table.", " Get all observations inside the box (right now it turns width/height into a radius, should not do this).", " @rtype : Table\n @param ra_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ossos_release_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ossos_release_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
extra fun as this is space-separated so using CSV parsers is not an option
"extra fun as this is space-separated so using CSV parsers is not an option"
717
false
OSSOS/MOP
ossos_release_parser
9,991
LDU_FT/thespacedoctor/polyglot/headerLink
LDU_FT
[ "<BEGIN>\n## `create`", "*create the webarchive object*", " **Key Arguments:**\n - ``url`` -- the url of the webpage to generate the webarchive for\n - ``pathToWebarchive`` -- tthe path to output the the webarchive file to ", " **Return:**\n - ``webarchive`` -- t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the headerLink API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the headerLink API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
*generate a link to a MMD header* **Key Arguments:** - ``headerText`` -- the header text (or anchor tag) - ``text`` -- the doc text to link. Default *False* **Return:** - ``link`` -- the link to the header **Usage:** To generate a MMD header li...
"*generate a link to a MMD header*\n\n **Key Arguments:**\n - ``headerText`` -- the header text (or anchor tag)\n - ``text`` -- the doc text to link. Default *False*\n\n **Return:**\n - ``link`` -- the link to the header\n\n **Usage:**\n\n To generate a M...
170
false
thespacedoctor/polyglot
headerLink
9,992
LDU_FT/klahnakoski/mo-logs/error
LDU_FT
[ "<BEGIN>\n## `_deep_json_to_string`", ":param value: SOME STRUCTURE\n :param depth: THE MAX DEPTH OF PROPERTIES, DEEPER WILL BE STRING-IFIED\n :return: FLATTER STRUCTURE\n<END>", "<BEGIN>\n## `read_settings`", ":param filename: Force load a file\n :param defs: arguments you want to accept\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
raise an exception with a trace for the cause too :param template: *string* human readable string with placeholders for parameters :param default_params: *dict* parameters to fill in template :param cause: *Exception* for chaining :param stack_depth: *int* how many calls you want poppe...
"raise an exception with a trace for the cause too\n\n :param template: *string* human readable string with placeholders for parameters\n :param default_params: *dict* parameters to fill in template\n :param cause: *Exception* for chaining\n :param stack_depth: *int* how many calls you want...
74
false
klahnakoski/mo-logs
error
9,993
LDU_FT/googleapis/google-auth-library-python/get_service_account_token
LDU_FT
[ "<BEGIN>\n## `_convert_oauth2_credentials`", "Converts to :class:`google.oauth2.credentials.Credentials`.", " Args:\n credentials (Union[oauth2client.client.OAuth2Credentials,\n oauth2client.client.GoogleCredentials]): The credentials to\n convert.", " Returns:\n goog...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_service_account_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_service_account_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Get the OAuth 2.0 access token for a service account. Args: request (google.auth.transport.Request): A callable used to make HTTP requests. service_account (str): The string 'default' or a service account email address. The determines which service account for which to acqui...
"Get the OAuth 2.0 access token for a service account.\n\n Args:\n request (google.auth.transport.Request): A callable used to make\n HTTP requests.\n service_account (str): The string 'default' or a service account email\n address. The determines which service account for which t...
311
false
googleapis/google-auth-library-python
get_service_account_token
9,994
LDU_FT/capless/warrant/check_token
LDU_FT
[ "<BEGIN>\n## `dict_to_cognito`", ":param attributes: Dictionary of User Pool attribute names/values\n :return: list of User Pool attribute formatted dicts: {'Name': <attr_name>, 'Value': <attr_value>}\n<END>", "<BEGIN>\n## `snake_to_camel`", ":param snake_str: string\n :return: string converted from a s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Checks the exp attribute of the access_token and either refreshes the tokens by calling the renew_access_tokens method or does nothing :param renew: bool indicating whether to refresh on expiration :return: bool indicating whether access_token has expired
"Checks the exp attribute of the access_token and either refreshes\n the tokens by calling the renew_access_tokens method or does nothing\n :param renew: bool indicating whether to refresh on expiration\n :return: bool indicating whether access_token has expired"
61
false
capless/warrant
check_token
9,995
LDU_FT/Fuyukai/asyncwebsockets/start_client
LDU_FT
[ "<BEGIN>\n## `open_websocket_server`", "A context manager which serves this websocket.", " :param filter: an async callback which accepts the connection request\n and returns a bool, or an explicit Accept/Reject message.\n<END>", "<BEGIN>\n## `create_websocket_server`", "A more low-level form of open_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Start a client WS connection on this socket. Returns: the AcceptConnection message.
"Start a client WS connection on this socket.\n\n Returns: the AcceptConnection message."
15
false
Fuyukai/asyncwebsockets
start_client
9,996
LDU_FT/BlackEarth/bxml/tobytes
LDU_FT
[ "<BEGIN>\n## `tempfile`", "write the docx to a named tmpfile and return the tmpfile filename\n<END>", "<BEGIN>\n## `match`", "decorator that allows us to match by expression or by xpath for each transformation method\n<END>", "<BEGIN>\n## `get_match`", "for the given elem, return the @match function that ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tobytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tobytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
return the content of the XML document as a byte string suitable for writing
"return the content of the XML document as a byte string suitable for writing"
91
false
BlackEarth/bxml
tobytes
9,997
LDU_FT/joferkington/mpldatacursor/_show_annotation_box
LDU_FT
[ "<BEGIN>\n## `_event_ignored`", "Decide whether or not to ignore a click/hover event.\n<END>", "<BEGIN>\n## `_show_annotation_box`", "Update an existing box or create an annotation box for an event.\n<END>", "<BEGIN>\n## `event_info`", "Get a dict of info for the artist selected by \"event\".\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _show_annotation_box API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _show_annotation_box API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Update an existing box or create an annotation box for an event.
"Update an existing box or create an annotation box for an event."
80
false
joferkington/mpldatacursor
_show_annotation_box
9,998
LDU_FT/closeio/quotequail/slice_tree
LDU_FT
[ "<BEGIN>\n## `quote`", "Takes a plain text message as an argument, returns a list of tuples. The\n first argument of the tuple denotes whether the text should be expanded by\n default. The second argument is the unmodified corresponding text.", " Example: [(True, 'expanded text'), (False, '> Some quote...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slice_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slice_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Slices the HTML tree with the given start_refs and end_refs (obtained via get_line_info) at the given slice_tuple, a tuple (start, end) containing the start and end of the slice (or None, to start from the start / end at the end of the tree). If html_copy is specified, a new tree is constructed from the...
"Slices the HTML tree with the given start_refs and end_refs (obtained via\n get_line_info) at the given slice_tuple, a tuple (start, end) containing\n the start and end of the slice (or None, to start from the start / end at\n the end of the tree). If html_copy is specified, a new tree is constructed\n fro...
65
false
closeio/quotequail
slice_tree
9,999
LDU_FT/CI-WATER/gsshapy/writeInput
LDU_FT
[ "<BEGIN>\n## `_read`", "Generic Time Series Read from File Method\n<END>", "<BEGIN>\n## `_write`", "Generic Time Series Write to File Method\n<END>", "<BEGIN>\n## `_createTimeSeriesObjects`", "Create GSSHAPY TimeSeries and TimeSeriesValue Objects Method\n<END>", "<BEGIN>\n## `_read`", "Generic Output ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the writeInput API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the writeInput API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Write only input files for a GSSHA project from the database to file. Args: session (:mod:`sqlalchemy.orm.session.Session`): SQLAlchemy session object bound to PostGIS enabled database directory (str): Directory where the files will be written. name (str): Name that will be ...
"Write only input files for a GSSHA project from the database to file.\n\n Args:\n session (:mod:`sqlalchemy.orm.session.Session`): SQLAlchemy session object bound to PostGIS enabled database\n directory (str): Directory where the files will be written.\n name (str): Name that wi...
537
false
CI-WATER/gsshapy
writeInput
10,000
LDU_FT/rochacbruno/flasgger/to_flasgger
LDU_FT
[ "<BEGIN>\n## `get`", "Colors API using schema\n This example is using marshmallow schemas\n<END>", "<BEGIN>\n## `drop_id_validate`", "Custom validation function which drops parameter '_id' if present\n in data\n<END>", "<BEGIN>\n## `timestamping_validate`", "Custom validation function which inse...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_flasgger API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_flasgger API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Converts APISpec dict to flasgger suitable dict also adds definitions and paths (optional)
"Converts APISpec dict to flasgger suitable dict\n also adds definitions and paths (optional)"
71
false
rochacbruno/flasgger
to_flasgger
10,001
LDU_FT/chriso/gauged/add_namespace_statistics
LDU_FT
[ "<BEGIN>\n## `insert_keys`", "Insert keys into a table which assigns an ID\n<END>", "<BEGIN>\n## `replace_blocks`", "Replace multiple blocks. blocks must be a list of tuples where\n each tuple consists of (namespace, offset, key, data)\n<END>", "<BEGIN>\n## `remove_namespace`", "Remove all data ass...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_namespace_statistics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_namespace_statistics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Update namespace statistics for the period identified by offset
"Update namespace statistics for the period identified by\n offset"
62
false
chriso/gauged
add_namespace_statistics
10,002
LDU_FT/alpha-xone/xone/format_float
LDU_FT
[ "<BEGIN>\n## `trade_day`", "Latest trading day w.r.t given dt", " Args:\n dt: date of reference\n cal: trading calendar", " Returns:\n pd.Timestamp: last trading day", " Examples:\n >>> trade_day('2018-12-25').strftime('%Y-%m-%d')\n '2018-12-24'\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_float API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_float API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Number display format for pandas Args: digit: number of digits to keep if negative, add one space in front of positive pct is_pct: % display Returns: lambda function to format floats Examples: >>> format_float(0)(1e5) '100,000' >>> format_flo...
"Number display format for pandas\n\n Args:\n digit: number of digits to keep\n if negative, add one space in front of positive pct\n is_pct: % display\n\n Returns:\n lambda function to format floats\n\n Examples:\n >>> format_float(0)(1e5)\n '100,000'\n ...
89
false
alpha-xone/xone
format_float
10,003
LDU_FT/Grunny/zap-cli/set_scanner_alert_threshold
LDU_FT
[ "<BEGIN>\n## `list_scanners`", "Get a list of scanners and whether or not they are enabled.\n<END>", "<BEGIN>\n## `list_policies`", "Get a list of policies and whether or not they are enabled.\n<END>", "<BEGIN>\n## `enable_policies`", "Set the enabled policies to use in a scan.", " When you enable a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_scanner_alert_threshold API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_scanner_alert_threshold API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Set the alert theshold for the given policies.
"Set the alert theshold for the given policies."
63
false
Grunny/zap-cli
set_scanner_alert_threshold
10,004
LDU_FT/mattja/sdeint/deltaW
LDU_FT
[ "<BEGIN>\n## `broadcast_to`", "Broadcast an array to a new shape.", " Parameters\n ----------\n array : array_like\n The array to broadcast.\n shape : tuple\n The shape of the desired array.\n subok : bool, optional\n If True, then sub-classes will be passed-through, otherwis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deltaW API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deltaW API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Generate sequence of Wiener increments for m independent Wiener processes W_j(t) j=0..m-1 for each of N time intervals of length h. Returns: dW (array of shape (N, m)): The [n, j] element has the value W_j((n+1)*h) - W_j(n*h)
"Generate sequence of Wiener increments for m independent Wiener\n processes W_j(t) j=0..m-1 for each of N time intervals of length h. \n\n Returns:\n dW (array of shape (N, m)): The [n, j] element has the value\n W_j((n+1)*h) - W_j(n*h)"
118
false
mattja/sdeint
deltaW
10,005
LDU_FT/6809/dragonlib/parse
LDU_FT
[ "<BEGIN>\n## `bin2hexline`", "Format binary data to a Hex-Editor like format...", " >>> data = bytearray([i for i in range(256)])\n >>> print('\\\\n'.join(bin2hexline(data, width=16)))\n 0000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................\n 0016 10 11 12 13 14 15 16 17 18 19 1a 1b ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
parse the given ASCII BASIC listing. Return a ParsedBASIC() instance.
"parse the given ASCII BASIC listing.\n Return a ParsedBASIC() instance."
63
false
6809/dragonlib
parse
10,006
LDU_FT/joeyespo/grip/default_asset_manager
LDU_FT
[ "<BEGIN>\n## `_get_style_urls`", "Gets the specified resource and parses all style URLs and their\n assets in the form of the specified patterns.\n<END>", "<BEGIN>\n## `_cache_contents`", "Fetches the given URLs and caches their contents\n and their assets in the given directory.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_asset_manager API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_asset_manager API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns the default asset manager using the current config. This is only used if asset_manager is set to None in the constructor.
"Returns the default asset manager using the current config.\n\n This is only used if asset_manager is set to None in the constructor."
77
false
joeyespo/grip
default_asset_manager
10,007
LDU_FT/PedalPi/PluginsManager/send
LDU_FT
[ "<BEGIN>\n## `load`", "Load the index file and reorder the banks based in order listed in index", " :param list[Indexable] indexables: Banks that will be reordered based in index file\n :return list[Bank]: Banks reordered\n<END>", "<BEGIN>\n## `register`", "Register an observer for it be notif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Sends message to *mod-host*. .. note:: Uses :class:`.ProtocolParser` for a high-level management. As example, view :class:`.Host` :param string message: Message that will be sent for *mod-host*
"Sends message to *mod-host*.\n\n .. note::\n\n Uses :class:`.ProtocolParser` for a high-level management.\n As example, view :class:`.Host`\n\n :param string message: Message that will be sent for *mod-host*"
139
false
PedalPi/PluginsManager
send
10,008
LDU_FT/chriso/timeseries/moving_average
LDU_FT
[ "<BEGIN>\n## `trend`", "Override Series.trend() to return a TimeSeries instance.\n<END>", "<BEGIN>\n## `trend_coefficients`", "Calculate trend coefficients for the specified order.\n<END>", "<BEGIN>\n## `moving_average`", "Calculate a moving average using the specified method and window\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the moving_average API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the moving_average API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Calculate a moving average using the specified method and window
"Calculate a moving average using the specified method and window"
18
false
chriso/timeseries
moving_average
10,009
LDU_FT/fitnr/twitter_bot_utils/_autofollow
LDU_FT
[ "<BEGIN>\n## `read_csv`", "Scrape a twitter archive csv, yielding tweet text.", " Args:\n directory (str): CSV file or (directory containing tweets.csv).\n field (str): Field with the tweet's text (default: text).\n fieldnames (list): The column names for a csv with no header. Must conta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _autofollow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _autofollow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Follow back or unfollow the friends/followers of user authenicated in 'api'. :api twitter_bot_utils.api.API :dry_run bool don't actually (un)follow, just report
"Follow back or unfollow the friends/followers of user authenicated in 'api'.\n :api twitter_bot_utils.api.API\n :dry_run bool don't actually (un)follow, just report"
56
false
fitnr/twitter_bot_utils
_autofollow
10,010
LDU_FT/MKLab-ITI/reveal-graph-embedding/read_adjacency_matrix
LDU_FT
[ "<BEGIN>\n## `read_adjacency_matrix`", "Reads an edge list in csv format and returns the adjacency matrix in SciPy Sparse COOrdinate format.", " Inputs: - file_path: The path where the adjacency matrix is stored.\n - separator: The delimiter among values (e.g. \",\", \"\\t\", \" \")", " Out...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_adjacency_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_adjacency_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Reads an edge list in csv format and returns the adjacency matrix in SciPy Sparse COOrdinate format. Inputs: - file_path: The path where the adjacency matrix is stored. - separator: The delimiter among values (e.g. ",", "\t", " ") - undirected: If True, create the reciprocal edge for eac...
"Reads an edge list in csv format and returns the adjacency matrix in SciPy Sparse COOrdinate format.\n\n Inputs: - file_path: The path where the adjacency matrix is stored.\n - separator: The delimiter among values (e.g. \",\", \"\\t\", \" \")\n - undirected: If True, create the reciprocal ...
151
false
MKLab-ITI/reveal-graph-embedding
read_adjacency_matrix
10,011
LDU_FT/jtpaasch/simplygithub/get_files_in_branch
LDU_FT
[ "<BEGIN>\n## `get_url`", "Get the URL for a resource.", " Args:", " profile\n A profile generated from ``simplygithub.authentication.profile``.\n Such profiles tell this module (i) the ``repo`` to connect to,\n and (ii) the ``token`` to connect with.", " res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_files_in_branch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_files_in_branch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Get all files in a branch's tree. Args: profile A profile generated from ``simplygithub.authentication.profile``. Such profiles tell this module (i) the ``repo`` to connect to, and (ii) the ``token`` to connect with. branch_sha The SHA a branch's HE...
"Get all files in a branch's tree.\n\n Args:\n\n profile\n A profile generated from ``simplygithub.authentication.profile``.\n Such profiles tell this module (i) the ``repo`` to connect to,\n and (ii) the ``token`` to connect with.\n\n branch_sha\n The SHA a ...
224
false
jtpaasch/simplygithub
get_files_in_branch
10,012
LDU_FT/ofek/depq/_poplast
LDU_FT
[ "<BEGIN>\n## `binary_insert`", "Traditional binary search. Performance: O(n log n)\n<END>", "<BEGIN>\n## `insert`", "Adds item to DEPQ with given priority by performing a binary\n search on the concurrently rotating deque. Amount rotated R of\n DEPQ of length n would be n <= R <= 3n/2. Performan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _poplast API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _poplast API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
For avoiding lock during inserting to keep maxlen
"For avoiding lock during inserting to keep maxlen"
22
false
ofek/depq
_poplast
10,013
LDU_FT/django-import-export/django-import-export/get_export_data
LDU_FT
[ "<BEGIN>\n## `has_import_permission`", "Returns whether a request has import permission.\n<END>", "<BEGIN>\n## `get_import_resource_kwargs`", "Prepares/returns kwargs used when initializing Resource\n<END>", "<BEGIN>\n## `process_import`", "Perform the actual import action (after the user has confirmed th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_export_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_export_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns file_format representation for given queryset.
"Returns file_format representation for given queryset."
84
false
django-import-export/django-import-export
get_export_data
10,014
LDU_FT/JonLiuFYI/pkdx/get_abilities
LDU_FT
[ "<BEGIN>\n## `description`", "Return a description of the given Pokemon.\n<END>", "<BEGIN>\n## `get_ability_desc`", "Return the description matching the given ability name. Check abilities.json in the same directory.\n<END>", "<BEGIN>\n## `get_move_data`", "Return the index number for the given move name....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_abilities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_abilities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Visit Bulbapedia and pull names and descriptions from the table, 'list of Abilities.' Save as JSON.
"Visit Bulbapedia and pull names and descriptions from the table, 'list of Abilities.' Save as JSON."
10
false
JonLiuFYI/pkdx
get_abilities
10,015
LDU_FT/josegomezr/pqb/where
LDU_FT
[ "<BEGIN>\n## `from_`", "Establece el origen de datos (y un alias opcionalmente).\n<END>", "<BEGIN>\n## `where`", "Establece condiciones para la consulta unidas por AND\n<END>", "<BEGIN>\n## `order_by`", "Indica los campos y el criterio de ordenamiento\n<END>", "<BEGIN>\n## `where`", "Establece condici...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the where API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the where API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Establece condiciones para la consulta unidas por AND
"Establece condiciones para la consulta unidas por AND"
14
false
josegomezr/pqb
where
10,016
LDU_FT/safarijv/sbo-selenium/wait_for
LDU_FT
[ "<BEGIN>\n## `run`", "Plan:", " * We read into a fresh instance of IO obj until marker encountered.\n * When marker is detected, we attach that IO obj to \"results\" array\n and signal the calling code (through threading.Event flag) that\n results are available\n * repeat ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns True when the specified text has appeared in a line of the output, or False when the specified number of seconds have passed without that occurring.
"Returns True when the specified text has appeared in a line of the\n output, or False when the specified number of seconds have passed\n without that occurring."
21
false
safarijv/sbo-selenium
wait_for
10,017
LDU_FT/nkmathew/yasi-sexp-indenter/parse_rc_json
LDU_FT
[ "<BEGIN>\n## `parse_options`", "Reads command-line arguments", " >>> parse_options('--indent-comments')\n<END>", "<BEGIN>\n## `read_file`", "read_file(fname : str) -> str", " >>> read_file(r'C:\\\\mine\\\\test.lisp')\n r'(print \"No, no, there\\'s \\\\r\\\\nlife in him!. \")\\\\r\\\\n\\\\r\\\\n'"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_rc_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_rc_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Reads the json configuration file(.yasirc.json), parses it and returns the dictionary
"Reads the json configuration file(.yasirc.json), parses it and returns the\n dictionary"
73
false
nkmathew/yasi-sexp-indenter
parse_rc_json
10,018
LDU_FT/idlesign/django-sitemessage/schedule_vkontakte_message
LDU_FT
[ "<BEGIN>\n## `_build_message`", "Constructs a MIME message from message and dispatch models.\n<END>", "<BEGIN>\n## `schedule_email`", "Schedules an email message for delivery.", " :param dict, str message: str or dict: use str for simple text email;\n dict - to compile email from a template (defau...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule_vkontakte_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule_vkontakte_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Schedules VKontakte message for delivery. :param str message: text or URL to publish on wall. :param list|str|unicode to: recipients addresses or Django User model heir instances with `vk` attributes. :param User sender: User model heir instance :param int priority: number describing message priority. ...
"Schedules VKontakte message for delivery.\n\n :param str message: text or URL to publish on wall.\n :param list|str|unicode to: recipients addresses or Django User model heir instances with `vk` attributes.\n :param User sender: User model heir instance\n :param int priority: number describing message prio...
137
false
idlesign/django-sitemessage
schedule_vkontakte_message
10,019
LDU_FT/codeinthehole/django-cacheback/raw_get
LDU_FT
[ "<BEGIN>\n## `get`", "Return the data for this function (using the cache if possible).", " This method is not intended to be overidden\n<END>", "<BEGIN>\n## `invalidate`", "Mark a cached item invalid and trigger an asynchronous\n job to refresh the cache\n<END>", "<BEGIN>\n## `raw_get`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Retrieve the item (tuple of value and expiry) that is actually in the cache, without causing a refresh.
"Retrieve the item (tuple of value and expiry) that is actually in the cache,\n without causing a refresh."
32
false
codeinthehole/django-cacheback
raw_get
10,020
LDU_FT/astropy/astropy-helpers/get_distutils_display_options
LDU_FT
[ "<BEGIN>\n## `get_dummy_distribution`", "Returns a distutils Distribution object used to instrument the setup\n environment before calling the actual setup() function.\n<END>", "<BEGIN>\n## `get_distutils_option`", "Returns the value of the given distutils option.", " Parameters\n ----------\n o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_distutils_display_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_distutils_display_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Returns a set of all the distutils display options in their long and short forms. These are the setup.py arguments such as --name or --version which print the project's metadata and then exit. Returns ------- opts : set The long and short form display option arguments, including the - or -...
"Returns a set of all the distutils display options in their long and\n short forms. These are the setup.py arguments such as --name or --version\n which print the project's metadata and then exit.\n\n Returns\n -------\n opts : set\n The long and short form display option arguments, including th...
135
false
astropy/astropy-helpers
get_distutils_display_options
10,021
LDU_FT/e-dard/flask-s3/_gather_files
LDU_FT
[ "<BEGIN>\n## `split_metadata_params`", "Given a dict of headers for s3, seperates those that are boto3\n parameters and those that must be metadata\n<END>", "<BEGIN>\n## `hash_file`", "Generate a hash for the contents of a file\n<END>", "<BEGIN>\n## `url_for`", "Generates a URL to the given endpoint.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gather_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gather_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Gets all files in static folders and returns in dict.
"Gets all files in static folders and returns in dict."
39
false
e-dard/flask-s3
_gather_files
10,022
LDU_FT/persephone-tools/persephone/get_sents_times_and_translations
LDU_FT
[ "<BEGIN>\n## `handle_unhandled_exception`", "Handler for unhandled exceptions that will write to the logs\n<END>", "<BEGIN>\n## `write_transcriptions`", "Write the utterance transcriptions to files in the tgt_dir. Is lazy and\n checks if the file already exists.", " Args:\n utterances: A list o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sents_times_and_translations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sents_times_and_translations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Given an XML filename, loads the transcriptions, their start/end times, and translations.
"Given an XML filename, loads the transcriptions, their start/end times,\n and translations."
219
false
persephone-tools/persephone
get_sents_times_and_translations
10,023
LDU_FT/kennethreitz/clint/user_data_dir
LDU_FT
[ "<BEGIN>\n## `_indent`", "Indent util function, compute new indent_string\n<END>", "<BEGIN>\n## `open`", "Returns file object from given filename.\n<END>", "<BEGIN>\n## `append`", "Appends given content to given filename.\n<END>", "<BEGIN>\n## `delete`", "Deletes given file or directory. If no filenam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_data_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_data_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
r"""Return full path to the user-specific data dir for this application. "appname" is the name of application. "appauthor" (only required and used on Windows) is the name of the appauthor or distributing body for this application. Typically it is the owning company name. ...
"r\"\"\"Return full path to the user-specific data dir for this application.\n\n \"appname\" is the name of application.\n \"appauthor\" (only required and used on Windows) is the name of the\n appauthor or distributing body for this application. Typically\n it is the owning company ...
66
false
kennethreitz/clint
user_data_dir
10,024
LDU_FT/wangsix/vmo/save_segments
LDU_FT
[ "<BEGIN>\n## `main`", "This example shows how to parse a music mxl file (music21 and musescore/finale required) \n and create a simple oracle representation. The output is a reshuffled midi stream shown\n in either musescore or finale based on your installation of music21. ", " OPTIONAL ARGS:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_segments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_segments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Save detected segments to a .lab file. :parameters: - outfile : str Path to output file - boundaries : list of int Beat indices of detected segment boundaries - beat_intervals : np.ndarray [shape=(n, 2)] Intervals of beats - labels : None or li...
"Save detected segments to a .lab file.\n\n :parameters:\n - outfile : str\n Path to output file\n\n - boundaries : list of int\n Beat indices of detected segment boundaries\n\n - beat_intervals : np.ndarray [shape=(n, 2)]\n Intervals of beats\n\n - labels...
61
false
wangsix/vmo
save_segments
10,025
LDU_FT/CameronLonsdale/lantern/_calculate_index_of_coincidence
LDU_FT
[ "<BEGIN>\n## `frequency_to_probability`", "Transform a ``frequency_map`` into a map of probability using the sum of all frequencies as the total.", " Example:\n >>> frequency_to_probability({'a': 2, 'b': 2})\n {'a': 0.5, 'b': 0.5}", " Args:\n frequency_map (dict): The dictionary to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate_index_of_coincidence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate_index_of_coincidence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
A measure of how similar frequency_map is to the uniform distribution. Or the probability that two letters picked randomly are alike.
"A measure of how similar frequency_map is to the uniform distribution.\n Or the probability that two letters picked randomly are alike."
131
false
CameronLonsdale/lantern
_calculate_index_of_coincidence
10,026
LDU_FT/radical-cybertools/radical.entk/_validate_entities
LDU_FT
[ "<BEGIN>\n## `resolve_placeholders`", "**Purpose**: Substitute placeholders in staging attributes of a Task with actual paths to the corresponding tasks.", " :arguments:\n :path: string describing the staging paths, possibly containing a placeholder\n :placeholder_dict: dictionary holding the v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_entities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_entities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Purpose: Validate whether the 'tasks' is of type set. Validate the description of each Task.
"Purpose: Validate whether the 'tasks' is of type set. Validate the description of each Task."
146
false
radical-cybertools/radical.entk
_validate_entities
10,027
LDU_FT/maxweisspoker/simplebitcoinfuncs/inttoLEB128
LDU_FT
[ "<BEGIN>\n## `sign`", "Returns a DER-encoded signature from a input of a hash and private\n key, and optionally a K value.", " Hash and private key inputs must be 64-char hex strings,\n k input is an int/long.", " >>> h = 'f7011e94125b5bba7f62eb25efe23339eb1637539206c87df3ee61b5ec6b023e'\n >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inttoLEB128 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inttoLEB128 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Convert int/long to unsigned LEB128 format hex
"Convert int/long to unsigned LEB128 format hex"
91
false
maxweisspoker/simplebitcoinfuncs
inttoLEB128
10,028
LDU_FT/ansible/ansible-container/create_role_from_template
LDU_FT
[ "<BEGIN>\n## `to_bytes`", "Make sure that a string is a byte string", " :arg obj: An object to make sure is a byte string. In most cases this\n will be either a text string or a byte string. However, with\n ``nonstring='simplerepr'``, this can be used as a traceback-free\n version of `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_role_from_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_role_from_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Create roles/dockerfile-to-ansible path and role structure. :return: None
"Create roles/dockerfile-to-ansible path and role structure.\n :return: None"
64
false
ansible/ansible-container
create_role_from_template
10,029
LDU_FT/usc-isi-i2/etk/_generate_ngrams_with_context
LDU_FT
[ "<BEGIN>\n## `decode_unicode`", "Process of parsing:\n -> Convert unicode into standard form\n -> Convert each character of the unicode symbol to its numerical equivalent\n -> Mapping Process:\n - First check in pattern dictionary to map suffix/prefix\n - Check Emoticon Dictionary \n - Replace valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_ngrams_with_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_ngrams_with_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Generates the 1-gram to n-grams tuples of the list of tokens
"Generates the 1-gram to n-grams tuples of the list of tokens"
427
false
usc-isi-i2/etk
_generate_ngrams_with_context
10,030
LDU_FT/flashingpumpkin/django-socialregistration/request_access_token
LDU_FT
[ "<BEGIN>\n## `get_next`", "Returns a url to redirect to after the login / signup.\n<END>", "<BEGIN>\n## `create_profile`", "Create a profile model.", " :param user: A user object\n :param save: If this is set, the profile will\n be saved to DB straight away\n :type save: bool...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Foursquare does not accept POST requests to retrieve an access token, so we'll be doing a GET request instead.
"Foursquare does not accept POST requests to retrieve an access token,\n so we'll be doing a GET request instead."
72
false
flashingpumpkin/django-socialregistration
request_access_token
10,031
LDU_FT/ericmjl/nxviz/compute_node_colors
LDU_FT
[ "<BEGIN>\n## `draw`", "Draws the Plot to screen.", " If there is a continuous datatype for the nodes, it will be reflected\n in self.sm being constructed (in `compute_node_colors`). It will then\n automatically add in a colorbar to the plot and scale the plot axes\n accordingly.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_node_colors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_node_colors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Compute the node colors. Also computes the colorbar.
"Compute the node colors. Also computes the colorbar."
83
false
ericmjl/nxviz
compute_node_colors
10,032
LDU_FT/The-Politico/politico-civic-election-night/page_location_template
LDU_FT
[ "<BEGIN>\n## `get_images`", "Object of images serialized by tag name.\n<END>", "<BEGIN>\n## `get_override_votes`", "Votes entered into backend.\n Only used if ``override_ap_votes = True``.\n<END>", "<BEGIN>\n## `get_queryset`", "Returns a queryset of all executive offices holding an election on\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the page_location_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the page_location_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns the published URL template for a page type.
"Returns the published URL template for a page type."
62
false
The-Politico/politico-civic-election-night
page_location_template
10,033
LDU_FT/rm-hull/luma.emulator/to_surface
LDU_FT
[ "<BEGIN>\n## `scale2x`", "Scales using the AdvanceMAME Scale2X algorithm which does a\n 'jaggie-less' scale of bitmap graphics.\n<END>", "<BEGIN>\n## `smoothscale`", "Smooth scaling using MMX or SSE extensions if available\n<END>", "<BEGIN>\n## `identity`", "Fast scale operation that does not sampl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_surface API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_surface API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Converts a :py:mod:`PIL.Image` into a :class:`pygame.Surface`, transforming it according to the ``transform`` and ``scale`` constructor arguments.
"Converts a :py:mod:`PIL.Image` into a :class:`pygame.Surface`,\n transforming it according to the ``transform`` and ``scale``\n constructor arguments."
28
false
rm-hull/luma.emulator
to_surface
10,034
LDU_FT/luismasuelli/python-cantrips/customizable
LDU_FT
[ "<BEGIN>\n## `can_take`", "Decorator to make a class allow their instances to generate\n snapshot of themselves.", " Decorates the class by allowing it to have:\n * A custom class to serve each snapshot. Such class\n will have a subset of attributes to serve from the object,\n and a spe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the customizable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the customizable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Allows to create customizable decorators. Such decorators (like Django's django.contrib.auth.login_required) can be used in two different ways: # positionally @decorator def myfunc(...): ... and # namely @decorator(**opts) def myfunc(...): ... ...
"Allows to create customizable decorators. Such decorators (like Django's django.contrib.auth.login_required)\n can be used in two different ways:\n\n # positionally\n\n @decorator\n def myfunc(...):\n ...\n\n and\n\n # namely\n\n @decorator(**opts)\n def myfunc(...):\n ...
51
false
luismasuelli/python-cantrips
customizable
10,035
LDU_FT/jaraco/irc/ip_numstr_to_quad
LDU_FT
[ "<BEGIN>\n## `handle_nick`", "Handle the initial setting of the user's nickname and nick changes.\n<END>", "<BEGIN>\n## `handle_user`", "Handle the USER command which identifies the user to the server.\n<END>", "<BEGIN>\n## `handle_join`", "Handle the JOINing of a user to a channel. Valid channel names st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ip_numstr_to_quad API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ip_numstr_to_quad API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Convert an IP number as an integer given in ASCII representation to an IP address string. >>> ip_numstr_to_quad('3232235521') '192.168.0.1' >>> ip_numstr_to_quad(3232235521) '192.168.0.1'
"Convert an IP number as an integer given in ASCII\n representation to an IP address string.\n\n >>> ip_numstr_to_quad('3232235521')\n '192.168.0.1'\n >>> ip_numstr_to_quad(3232235521)\n '192.168.0.1'"
193
false
jaraco/irc
ip_numstr_to_quad
10,036
LDU_FT/ninuxorg/nodeshot/node_status_changed_handler
LDU_FT
[ "<BEGIN>\n## `get_formset`", "Load Synchronizer schema to display specific fields in admin\n<END>", "<BEGIN>\n## `public_broadcaster`", "Thread which runs in parallel and constantly checks for new messages\n in the public pipe and broadcasts them publicly to all connected clients.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the node_status_changed_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the node_status_changed_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
send notification when the status of a node changes according to users's settings
"send notification when the status of a node changes according to users's settings"
261
false
ninuxorg/nodeshot
node_status_changed_handler
10,037
LDU_FT/vmware/pyvmomi/_CreateAllTypes
LDU_FT
[ "<BEGIN>\n## `_AddType`", "Note: Must be holding the _lazyLock, or in main init path\n<END>", "<BEGIN>\n## `GetServiceVersions`", "Get all the versions for the service with specified namespace (partially) ordered\n by compatibility (i.e. any version in the list that is compatible with some version\n v in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _CreateAllTypes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _CreateAllTypes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Create pyVmomi types from pyVmomi type definitions
"Create pyVmomi types from pyVmomi type definitions"
128
false
vmware/pyvmomi
_CreateAllTypes
10,038
LDU_FT/cisco-sas/kitty/get_rendered_fields
LDU_FT
[ "<BEGIN>\n## `update`", "update db entry", " :param field_dict: dictionary of fields and values\n :param where_clause: where clause for the update\n<END>", "<BEGIN>\n## `insert`", "insert new db entry", " :param fields: list of fields to insert\n :param values: list of values t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rendered_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rendered_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
:param ctx: rendering context in which the method was called :return: ordered list of the fields that will be rendered
":param ctx: rendering context in which the method was called\n :return: ordered list of the fields that will be rendered"
331
false
cisco-sas/kitty
get_rendered_fields
10,039
LDU_FT/JelteF/PyLaTeX/dumps
LDU_FT
[ "<BEGIN>\n## `fill_document`", "Add a section, a subsection and some text to the document.", " :param doc: the document\n :type doc: :class:`pylatex.document.Document` instance\n<END>", "<BEGIN>\n## `dumps_content`", "r\"\"\"Represent the container as a string in LaTeX syntax.", " Args\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dumps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dumps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return string representation of the node.
"Return string representation of the node."
183
false
JelteF/PyLaTeX
dumps
10,040
LDU_FT/axialmarket/fsq/deconstruct
LDU_FT
[ "<BEGIN>\n## `barf`", "Exit with a log message (usually a fatal error)\n<END>", "<BEGIN>\n## `done_item`", "Succeed or fail an item based on the return code of a program\n<END>", "<BEGIN>\n## `setenv`", "Set environment, based on item. Usually done in a baby fork\n<END>", "<BEGIN>\n## `shout`", "Log ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deconstruct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deconstruct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Deconstruct a queue-name to a set of arguments
"Deconstruct a queue-name to a set of arguments"
99
false
axialmarket/fsq
deconstruct
10,041
LDU_FT/markchil/gptools/_compute_dk_dy
LDU_FT
[ "<BEGIN>\n## `matern_function`", "r\"\"\"Matern covariance function of arbitrary dimension, for use with :py:class:`ArbitraryKernel`.", " The Matern kernel has the following hyperparameters, always referenced in\n the order listed:", " = ===== ====================================\n 0 sigma prefact...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_dk_dy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_dk_dy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Evaluate the derivative of the outer form of the RQ kernel. Parameters ---------- y : :py:class:`Array`, (`M`,) `M` inputs to evaluate at. n : non-negative scalar int Order of derivative to compute. Returns ------- dk_dy :...
"Evaluate the derivative of the outer form of the RQ kernel.\n \n Parameters\n ----------\n y : :py:class:`Array`, (`M`,)\n `M` inputs to evaluate at.\n n : non-negative scalar int\n Order of derivative to compute.\n \n Returns\n -------\n ...
496
false
markchil/gptools
_compute_dk_dy
10,042
LDU_FT/sastrarobotics/pyHerkulex/get_servo_temperature
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to the Herkulex bus", " Connect to serial port to which Herkulex Servos are attatched", " Args:\n portname (str): The serial port name\n baudrate (int): The serial port baudrate\n Raises:\n SerialException: Error occured while opening serial port...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_servo_temperature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_servo_temperature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Gets the current temperature of Herkulex Args: none Returns: int: the current temperature register of Herkulex Raises: SerialException: Error occured while opening serial port
"Gets the current temperature of Herkulex\n\n Args:\n none\n\n Returns:\n int: the current temperature register of Herkulex\n\n Raises:\n SerialException: Error occured while opening serial port"
102
false
sastrarobotics/pyHerkulex
get_servo_temperature
10,043
LDU_FT/caffeinehit/django-oauth2-provider/post
LDU_FT
[ "<BEGIN>\n## `check`", "Check if a desired scope ``wants`` is part of an available scope ``has``.", " Returns ``False`` if not, return ``True`` if yes.", " :example:", " If a list of scopes such as", " ::", " READ = 1 << 1\n WRITE = 1 << 2\n READ_WRITE = READ | WRITE", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
As per :rfc:`3.2` the token endpoint *only* supports POST requests.
"As per :rfc:`3.2` the token endpoint *only* supports POST requests."
74
false
caffeinehit/django-oauth2-provider
post
10,044
LDU_FT/PyMySQL/PyMySQL/convert_datetime
LDU_FT
[ "<BEGIN>\n## `close`", "Closing a cursor just exhausts all remaining data.\n<END>", "<BEGIN>\n## `mogrify`", "Returns the exact string that is sent to the database by calling the\n execute() method.", " This method follows the extension to the DB API 2.0 followed by Psycopg.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns a DATETIME or TIMESTAMP column value as a datetime object: >>> datetime_or_None('2007-02-25 23:06:20') datetime.datetime(2007, 2, 25, 23, 6, 20) >>> datetime_or_None('2007-02-25T23:06:20') datetime.datetime(2007, 2, 25, 23, 6, 20) Illegal values are returned as None: >>> dat...
"Returns a DATETIME or TIMESTAMP column value as a datetime object:\n\n >>> datetime_or_None('2007-02-25 23:06:20')\n datetime.datetime(2007, 2, 25, 23, 6, 20)\n >>> datetime_or_None('2007-02-25T23:06:20')\n datetime.datetime(2007, 2, 25, 23, 6, 20)\n\n Illegal values are returned as None:\n\n ...
88
false
PyMySQL/PyMySQL
convert_datetime
10,045
LDU_FT/anomaly/prestans/as_dict
LDU_FT
[ "<BEGIN>\n## `_setup_serializers`", "Auto set the return serializer based on Accept headers\n http://docs.webob.org/en/latest/reference.html#header-getters", " Intersection of requested types and supported types tells us if we\n can in fact respond in one of the request formats\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
turns attribute filter object into python dictionary
"turns attribute filter object into python dictionary"
99
false
anomaly/prestans
as_dict
10,046
LDU_FT/blockstack-packages/blockstack-gpg/gpg_list_profile_keys
LDU_FT
[ "<BEGIN>\n## `make_gpg_home`", "Make GPG keyring dir for a particular application.\n Return the path.\n<END>", "<BEGIN>\n## `get_gpg_home`", "Get the GPG keyring directory for a particular application.\n Return the path.\n<END>", "<BEGIN>\n## `make_gpg_tmphome`", "Make a temporary directory to hold ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gpg_list_profile_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gpg_list_profile_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
List all GPG keys in a user profile: Return a list of {'identifier': key ID, 'contentUrl': URL to the key data} on success Raise on error Return {'error': ...} on failure
"List all GPG keys in a user profile:\n Return a list of {'identifier': key ID, 'contentUrl': URL to the key data} on success\n Raise on error\n Return {'error': ...} on failure"
54
false
blockstack-packages/blockstack-gpg
gpg_list_profile_keys
10,047
LDU_FT/scivision/morecvutils/draw_flow
LDU_FT
[ "<BEGIN>\n## `cohensutherland`", "Clips a line to a rectangular area.", " This implements the Cohen-Sutherland line clipping algorithm. xmin,\n ymax, xmax and ymin denote the clipping area, into which the line\n defined by x1, y1 (start point) and x2, y2 (end point) will be\n clipped.", " If t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_flow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_flow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
draws flow vectors on image this came from opencv/examples directory another way: http://docs.opencv.org/trunk/doc/py_tutorials/py_gui/py_drawing_functions/py_drawing_functions.html
"draws flow vectors on image\n this came from opencv/examples directory\n another way: http://docs.opencv.org/trunk/doc/py_tutorials/py_gui/py_drawing_functions/py_drawing_functions.html"
14
false
scivision/morecvutils
draw_flow
10,048
LDU_FT/scott-maddox/openbandparams/F
LDU_FT
[ "<BEGIN>\n## `GaP_Eg_Gamma`", "Returns the Gamma-valley bandgap, Eg_Gamma, in electron Volts at a\n given temperature, T, in Kelvin (default: 300 K).", " GaP has a unique Gamma-gap temperature dependence.\n<END>", "<BEGIN>\n## `_has_x`", "Returns True if x is explicitly defined in kwargs\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the F API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the F API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
Returns the Kane remote-band parameter, `F`, calculated from `Eg_Gamma_0`, `Delta_SO`, `Ep`, and `meff_e_Gamma_0`.
"Returns the Kane remote-band parameter, `F`, calculated from\n `Eg_Gamma_0`, `Delta_SO`, `Ep`, and `meff_e_Gamma_0`."
68
false
scott-maddox/openbandparams
F
10,049
LDU_FT/aio-libs/aiohttp-debugtoolbar/render_content
LDU_FT
[ "<BEGIN>\n## `log`", "Log the ASCII traceback into a file object.\n<END>", "<BEGIN>\n## `render_summary`", "Render the traceback for the interactive console.\n<END>", "<BEGIN>\n## `render_full`", "Render the Full HTML page with the traceback info.\n<END>", "<BEGIN>\n## `eval`", "Evaluate code in the c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a string containing the HTML to be rendered for the panel. By default this will render the template defined by the :attr:`.template` attribute with a rendering context defined by :attr:`.data` combined with the ``dict`` returned from :meth:`.render_vars`. The ``request``...
"Return a string containing the HTML to be rendered for the panel.\n\n By default this will render the template defined by the\n :attr:`.template` attribute with a rendering context defined by\n :attr:`.data` combined with the ``dict`` returned from\n :meth:`.render_vars`.\n\n The ``r...
24
false
aio-libs/aiohttp-debugtoolbar
render_content
10,050
LDU_FT/polyaxon/hestia/extract
LDU_FT
[ "<BEGIN>\n## `format_date`", "Creates a string representing the date information provided by the\n given `timestamp` object.\n<END>", "<BEGIN>\n## `format_datetime`", "Creates a string representing the date and time information provided by\n the given `timestamp` object.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Tries to extract a `datetime` object from the given string. First the datetime format is tried, if it fails, the date format is used for extraction. Raises `DateTimeFormatterException` if the extraction fails.
"Tries to extract a `datetime` object from the given string. First the\n datetime format is tried, if it fails, the date format is used for\n extraction.\n\n Raises `DateTimeFormatterException` if the extraction fails."
42
false
polyaxon/hestia
extract
10,051
LDU_FT/pytroll/trollimage/save
LDU_FT
[ "<BEGIN>\n## `colorize`", "Colorize a monochromatic array *arr*, based *colors* given for\n *values*. Interpolation is used. *values* must be in ascending order.\n<END>", "<BEGIN>\n## `palettize`", "From start *values* apply *colors* to *data*.\n<END>", "<BEGIN>\n## `set_range`", "Set the range of the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Save the image to the given *filename*. Args: filename (str): Output filename fformat (str): File format of output file (optional). Can be one of many image formats supported by the `rasterio` or `PIL` libraries ('jpg', 'png', ...
"Save the image to the given *filename*.\n\n Args:\n filename (str): Output filename\n fformat (str): File format of output file (optional). Can be\n one of many image formats supported by the\n `rasterio` or `PIL` libraries ('jpg', 'png',...
150
false
pytroll/trollimage
save
10,052
LDU_FT/ahmontero/dop/destroy_domain_record
LDU_FT
[ "<BEGIN>\n## `droplets`", "This method returns the list of droplets\n<END>", "<BEGIN>\n## `reboot_droplet`", "This method allows you to reboot a droplet. This is the preferred method\n to use if a server is not responding.\n<END>", "<BEGIN>\n## `power_cycle_droplet`", "This method allows you to pow...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy_domain_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy_domain_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
This method deletes the specified domain record. Required parameters domain_id: Integer or Domain Name (e.g. domain.com), specifies the domain for which to destroy a record. record_id: Integer, specifies the record_id to destroy.
"This method deletes the specified domain record.\n\n Required parameters\n\n domain_id:\n Integer or Domain Name (e.g. domain.com), specifies the domain\n for which to destroy a record.\n\n record_id:\n Integer, specifies the record_id to destro...
102
false
ahmontero/dop
destroy_domain_record
10,053
LDU_FT/jrigden/pyPodcastParser/set_itunes_new_feed_url
LDU_FT
[ "<BEGIN>\n## `set_is_valid_rss`", "Check to if this is actually a valid RSS feed\n<END>", "<BEGIN>\n## `set_optional_elements`", "Sets elements considered option by RSS spec\n<END>", "<BEGIN>\n## `count_items`", "Counts Items in full_soup and soup. For debugging\n<END>", "<BEGIN>\n## `set_creative_commo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_itunes_new_feed_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_itunes_new_feed_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Parses new feed url from itunes tags and sets value
"Parses new feed url from itunes tags and sets value"
38
false
jrigden/pyPodcastParser
set_itunes_new_feed_url
10,054
LDU_FT/ARMmbed/autoversion/detect_file_triggers
LDU_FT
[ "<BEGIN>\n## `get_current_semver`", "Given a dictionary of all version data available, determine the current version\n<END>", "<BEGIN>\n## `make_new_semver`", "Defines how to increment semver based on which significant figure is triggered\n<END>", "<BEGIN>\n## `main`", "Tags the current repository", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_file_triggers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_file_triggers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
The existence of files matching configured globs will trigger a version bump
"The existence of files matching configured globs will trigger a version bump"
37
false
ARMmbed/autoversion
detect_file_triggers
10,055
LDU_FT/vladsaveliev/TargQC/_Execute
LDU_FT
[ "<BEGIN>\n## `main`", "Annotating BED file based on reference features annotations.\n<END>", "<BEGIN>\n## `downsample`", "get N random headers from a fastq file without reading the\n whole thing into memory\n modified from: http://www.biostars.org/p/6544/\n<END>", "<BEGIN>\n## `AddIndex`", "Recursiv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _Execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _Execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Execute a bunch of template statements in a ScopedContext. Args: callback: Strings are "written" to this callback function. trace: Trace object, or None This is called in a mutually recursive fashion.
"Execute a bunch of template statements in a ScopedContext.\n\n Args:\n callback: Strings are \"written\" to this callback function.\n trace: Trace object, or None\n\n This is called in a mutually recursive fashion."
184
false
vladsaveliev/TargQC
_Execute
10,056
LDU_FT/array-split/array_split/set_split_extents
LDU_FT
[ "<BEGIN>\n## `read_readme`", "Reads part of the README.rst for use as long_description in setup().\n<END>", "<BEGIN>\n## `pad_with_object`", "Returns :samp:`sequence` :obj:`list` end-padded with :samp:`{obj}`\n elements so that the length of the returned list equals :samp:`{new_length}`.", " :type seq...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_split_extents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_split_extents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Sets split extents (:attr:`split_begs` and :attr:`split_ends`) calculated using selected attributes set from :meth:`__init__`.
"Sets split extents (:attr:`split_begs`\n and :attr:`split_ends`) calculated using\n selected attributes set from :meth:`__init__`."
67
false
array-split/array_split
set_split_extents
10,057
LDU_FT/gem/oq-engine/hypo_list
LDU_FT
[ "<BEGIN>\n## `_compute_term_3`", "Compute term 3 in equation 2 page 462.\n Distances are clipped at 15 km (as per Ezio Faccioli's personal\n communication.)\n<END>", "<BEGIN>\n## `_compute_site_term`", "Compute site term as a function of vs30: 4th, 5th and 6th terms in\n equation 2 page 4...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hypo_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hypo_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
:param nodes: a hypoList node with N hypocenter nodes :returns: a numpy array of shape (N, 3) with strike, dip and weight
":param nodes: a hypoList node with N hypocenter nodes\n :returns: a numpy array of shape (N, 3) with strike, dip and weight"
4,544
true
gem/oq-engine
hypo_list
10,058
LDU_FT/kwikteam/phy/_in_polygon
LDU_FT
[ "<BEGIN>\n## `set_state`", "Set the view state.", " The passed object is the persisted `self.state` bunch.", " May be overriden.\n<END>", "<BEGIN>\n## `_fullname`", "Return the fully-qualified name of a function.\n<END>", "<BEGIN>\n## `_get_default_grid`", "In the grid specification, 0 c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _in_polygon API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _in_polygon API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return the points that are inside a polygon.
"Return the points that are inside a polygon."
346
false
kwikteam/phy
_in_polygon
10,059
LDU_FT/matthewdeanmartin/jiggle_version/setup_py_source
LDU_FT
[ "<BEGIN>\n## `require_python`", "Require at least a minimum Python version.", " The version number is expressed in terms of `sys.hexversion`. E.g. to\n require a minimum of Python 2.6, use::", " >>> require_python(0x206000f0)", " :param minimum: Minimum Python version supported.\n :type mini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_py_source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_py_source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Read setup.py to string :return:
"Read setup.py to string\n :return:"
124
false
matthewdeanmartin/jiggle_version
setup_py_source
10,060
LDU_FT/elmotec/massedit/edit_file
LDU_FT
[ "<BEGIN>\n## `get_function`", "Retrieve the function defined by the function_name.", " Arguments:\n fn_name: specification of the type module:function_name.\n<END>", "<BEGIN>\n## `parse_command_line`", "Parse command line argument. See -h option.", " Arguments:\n argv: arguments on the com...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Edit file in place, returns a list of modifications (unified diff). Arguments: file_name (str, unicode): The name of the file.
"Edit file in place, returns a list of modifications (unified diff).\n\n Arguments:\n file_name (str, unicode): The name of the file."
43
false
elmotec/massedit
edit_file
10,061
LDU_FT/cloudera/cm_api/list_dfs_services
LDU_FT
[ "<BEGIN>\n## `set_basic_auth`", "Set up basic auth for the client\n @param username: Login name.\n @param password: Login password.\n @param realm: The authentication realm.\n @return: The current object\n<END>", "<BEGIN>\n## `execute`", "Submit an HTTP request.\n @param http_method: GET, POST,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_dfs_services API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_dfs_services API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
List available DFS (distributed file system) services in a cluster. @param view: View to materialize @return: List of available distributed file system services in the cluster. @since: API v12
"List available DFS (distributed file system) services in a cluster.\n @param view: View to materialize\n @return: List of available distributed file system services in the cluster.\n @since: API v12"
561
false
cloudera/cm_api
list_dfs_services
10,062
LDU_FT/MLAB-project/pymlab/GPIO_config
LDU_FT
[ "<BEGIN>\n## `Move`", "Move some distance units from current position\n<END>", "<BEGIN>\n## `SPI_write_byte`", "Writes a data to a SPI device selected by chipselect bit.\n<END>", "<BEGIN>\n## `SPI_write`", "Writes data to SPI device selected by chipselect bit.\n<END>", "<BEGIN>\n## `GPIO_read`", "Read...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GPIO_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GPIO_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Enable or disable slave-select pins as gpio.
"Enable or disable slave-select pins as gpio."
99
false
MLAB-project/pymlab
GPIO_config
10,063
LDU_FT/nickmckay/LiPD-utilities/compile_fund
LDU_FT
[ "<BEGIN>\n## `update_dois`", "Get DOI publication info for a batch of DOIs. This is LiPD-independent and only requires a CSV file with all DOIs\n listed in a single column. The output is LiPD-formatted publication data for each entry.", " :param str csv_source: Local path to CSV file\n :param bool writ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_fund API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_fund API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Compile funding entries. Iter both rows at the same time. Keep adding entries until both cells are empty. :param obj workbook: :param str sheet: :param int row: :param int col: :return list of dict: l
"Compile funding entries. Iter both rows at the same time. Keep adding entries until both cells are empty.\n :param obj workbook:\n :param str sheet:\n :param int row:\n :param int col:\n :return list of dict: l"
796
false
nickmckay/LiPD-utilities
compile_fund
10,064
LDU_FT/tinybike/coinbridge/getbalance
LDU_FT
[ "<BEGIN>\n## `payment`", "Convenience method for sending Bitcoins.", " Send coins from origin to destination. Calls record_tx to log the\n transaction to database. Uses free, instant \"move\" transfers\n if addresses are both local (in the same wallet), and standard\n \"sendfrom\" t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getbalance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getbalance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Calculate the total balance in all addresses belonging to this user. Args: user_id (str): this user's unique identifier as_decimal (bool): balance is returned as a Decimal if True (default) or a string if False Returns: str or Decimal: this ac...
"Calculate the total balance in all addresses belonging to this user.\n\n Args:\n user_id (str): this user's unique identifier\n as_decimal (bool): balance is returned as a Decimal if True (default)\n or a string if False\n\n Returns:\n str or Decimal...
48
false
tinybike/coinbridge
getbalance
10,065
LDU_FT/switchboardpy/switchboard/get_or_create
LDU_FT
[ "<BEGIN>\n## `has_active_condition`", "Given a list of instances, and the condition active for\n this switch, returns a boolean representing if the\n conditional is met, including a non-instance default.\n<END>", "<BEGIN>\n## `_key`", "Returns a Datastore key object, prefixed with the NAMESPACE....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
A port of functionality from the Django ORM. Defaults can be passed in if creating a new document is necessary. Keyword args are used to lookup the document. Returns a tuple of (object, created), where object is the retrieved or created object and created is a boolean specifying whether ...
"A port of functionality from the Django ORM. Defaults can be passed in\n if creating a new document is necessary. Keyword args are used to\n lookup the document. Returns a tuple of (object, created), where object\n is the retrieved or created object and created is a boolean specifying\n whe...
30
false
switchboardpy/switchboard
get_or_create
10,066
LDU_FT/shexSpec/grammar/visitQualifier
LDU_FT
[ "<BEGIN>\n## `visitNodeConstraintLiteral`", "nodeConstraint: KW_LITERAL xsFacet* # nodeConstraintLiteral\n<END>", "<BEGIN>\n## `visitNodeConstraintNonLiteral`", "nodeConstraint: nonLiteralKind stringFacet* # nodeConstraintNonLiteral\n<END>", "<BEGIN>\n## `visitNodeConstraintDatatype`", "nodeConstraint: d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visitQualifier API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visitQualifier API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
qualifier: includeSet | extraPropertySet | KW_CLOSED
"qualifier: includeSet | extraPropertySet | KW_CLOSED"
93
false
shexSpec/grammar
visitQualifier
10,067
LDU_FT/hickeroar/LatLon23/to_string
LDU_FT
[ "<BEGIN>\n## `string2geocoord`", "Create a GeoCoord object (e.g. Latitude or Longitude) from a string.\n Inputs:\n coord_str (str) - a string representation of a geographic coordinate (e.g. '5.083 N'). Each\n section of the string must be separated by some kind of a separator character ('5.083N...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return string representation of lat and lon as a 2-element tuple using the format specified by formatter
"Return string representation of lat and lon as a 2-element tuple\n using the format specified by formatter"
30
false
hickeroar/LatLon23
to_string
10,068
LDU_FT/openvax/varlens/drop_prefix
LDU_FT
[ "<BEGIN>\n## `load_from_args`", "Return a Loci object giving the loci specified on the command line.", " If no loci-related arguments are specified, return None. This makes it\n possible to distinguish an empty set of loci, for example due to filters\n removing all loci, from the case where the user di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drop_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drop_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Removes common prefix from a collection of strings
"Removes common prefix from a collection of strings"
130
false
openvax/varlens
drop_prefix
10,069
LDU_FT/chaimleib/intervaltree/chop
LDU_FT
[ "<BEGIN>\n## `refresh_balance`", "Recalculate self.balance and self.depth based on child node values.\n<END>", "<BEGIN>\n## `compute_depth`", "Recursively computes true depth of the subtree. Should only\n be needed for debugging. Unless something is wrong, the\n depth field should reflect the co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Like remove_envelop(), but trims back Intervals hanging into the chopped area so that nothing overlaps.
"Like remove_envelop(), but trims back Intervals hanging into\n the chopped area so that nothing overlaps."
139
false
chaimleib/intervaltree
chop
10,070
LDU_FT/mezz64/pyEmby/start
LDU_FT
[ "<BEGIN>\n## `media_artist`", "Artist of current playing media (Music track only).\n<END>", "<BEGIN>\n## `add_new_devices_callback`", "Register as callback for when new devices are added.\n<END>", "<BEGIN>\n## `add_stale_devices_callback`", "Register as callback for when stale devices exist.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Public method for initiating connectivity with the emby server.
"Public method for initiating connectivity with the emby server."
19
false
mezz64/pyEmby
start
10,071
LDU_FT/pyca/pynacl/decrypt
LDU_FT
[ "<BEGIN>\n## `ensure`", "Return if a condition is true, otherwise raise a caller-configurable\n :py:class:`Exception`\n :param bool cond: the condition to be checked\n :param sequence args: the arguments to be passed to the exception's\n constructor\n The only accepted named p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrypt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrypt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Decrypts the ciphertext using the `nonce` (explicitly, when passed as a parameter or implicitly, when omitted, as part of the ciphertext) and returns the plaintext message. :param ciphertext: [:class:`bytes`] The encrypted message to decrypt :param nonce: [:class:`bytes`] The nonce used...
"Decrypts the ciphertext using the `nonce` (explicitly, when passed as a\n parameter or implicitly, when omitted, as part of the ciphertext) and\n returns the plaintext message.\n\n :param ciphertext: [:class:`bytes`] The encrypted message to decrypt\n :param nonce: [:class:`bytes`] The nonc...
266
false
pyca/pynacl
decrypt
10,072