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/izacus/pysolarized/_get_shards | LDU_FT | [
"<BEGIN>\n## `add`",
"Adds documents to Solr index\n documents - Single item or list of items to add\n<END>",
"<BEGIN>\n## `deleteAll`",
"Deletes whole Solr index. Use with care.\n<END>",
"<BEGIN>\n## `delete`",
"Deletes document with ID on all Solr cores\n<END>",
"<BEGIN>\n## `commit`",
"Flush... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_shards 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 _get_shards 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... | Returns comma separated list of configured Solr cores | "Returns comma separated list of configured Solr cores" | 18 | false | izacus/pysolarized | _get_shards | 3,173 | |
LDU_FT/BreakingBytes/UncertaintyWrapper/jacobian | LDU_FT | [
"<BEGIN>\n## `prop_unc`",
"Propagate uncertainty.\r",
" :param jc: the Jacobian and covariance matrix\r\n :type jc: sequence\r",
" This method is mainly designed to be used as the target for a\r\n multiprocessing pool.\n<END>",
"<BEGIN>\n## `partial_derivative`",
"Calculate partial derivative ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jacobian 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 jacobian 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... | Estimate Jacobian matrices :math:`\\frac{\\partial f_i}{\\partial x_{j,k}}`
where :math:`k` are independent observations of :math:`x`.
The independent variable, :math:`x`, must be a numpy array with exactly 2
dimensions. The first dimension is the number of independent arguments,
and the second di... | "Estimate Jacobian matrices :math:`\\\\frac{\\\\partial f_i}{\\\\partial x_{j,k}}`\r\n where :math:`k` are independent observations of :math:`x`.\r\n\r\n The independent variable, :math:`x`, must be a numpy array with exactly 2\r\n dimensions. The first dimension is the number of independent arguments,\r\n ... | 28 | false | BreakingBytes/UncertaintyWrapper | jacobian | 3,174 | |
LDU_FT/guaix-ucm/pyemir/setup | LDU_FT | [
"<BEGIN>\n## `merge2images`",
"Merge 2 EMIR images, averaging the common region.",
" Parameters\n ----------\n hdu1 : HDUList object\n Input image #1.\n hdu2 : HDUList object\n Input image #2.\n debugplot : int\n Determines whether intermediate computations and/or plots\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup 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 setup 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... | Look for SExtractor program ('sextractor', or 'sex').
If a full path is provided, only this path is checked.
Raise a SExtractorException if it failed.
Return program and version if it succeed. | "Look for SExtractor program ('sextractor', or 'sex').\n If a full path is provided, only this path is checked.\n Raise a SExtractorException if it failed.\n Return program and version if it succeed." | 282 | false | guaix-ucm/pyemir | setup | 3,175 | |
LDU_FT/marshmallow-code/webargs/route | LDU_FT | [
"<BEGIN>\n## `dict2schema`",
"Generate a `marshmallow.Schema` class given a dictionary of\n `Fields <marshmallow.fields.Field>`.\n<END>",
"<BEGIN>\n## `is_json`",
"Indicates if this mimetype is JSON or not. By default a request\n is considered to include JSON data if the mimetype is\n ``application/... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the route 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 route 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... | Combines `Flask.route` and webargs parsing. Allows arguments to be specified
as function annotations. An output schema can optionally be specified by a
return annotation. | "Combines `Flask.route` and webargs parsing. Allows arguments to be specified\n as function annotations. An output schema can optionally be specified by a\n return annotation." | 108 | false | marshmallow-code/webargs | route | 3,176 | |
LDU_FT/elifesciences/elife-article/build_contributors | LDU_FT | [
"<BEGIN>\n## `build_contributors`",
"Given a list of authors from the parser, instantiate contributors\n objects and build them\n<END>",
"<BEGIN>\n## `build_datasets`",
"Given datasets in JSON format, build and return a list of dataset objects\n<END>",
"<BEGIN>\n## `build_data_availability`",
"Given da... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_contributors 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 build_contributors 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... | Given a list of authors from the parser, instantiate contributors
objects and build them | "Given a list of authors from the parser, instantiate contributors\n objects and build them" | 44 | false | elifesciences/elife-article | build_contributors | 3,177 | |
LDU_FT/skulumani/kinematics/hat_map | LDU_FT | [
"<BEGIN>\n## `rand`",
"Random vector from the n-Sphere",
" This function will return a random vector which is an element of the n-Sphere.\n The n-Sphere is defined as a vector in R^n+1 with a norm of one. ",
" Basically, we'll find a random vector in R^n+1 and normalize it. \n This uses the method... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hat_map 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 hat_map 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 that hat map of a vector
Inputs:
vec - 3 element vector
Outputs:
skew - 3,3 skew symmetric matrix | "Return that hat map of a vector\n \n Inputs: \n vec - 3 element vector\n\n Outputs:\n skew - 3,3 skew symmetric matrix" | 59 | false | skulumani/kinematics | hat_map | 3,178 | |
LDU_FT/greyli/flask-dropzone/config | LDU_FT | [
"<BEGIN>\n## `load`",
"Load Dropzone resources with given version and init dropzone configuration.",
" .. versionchanged:: 1.4.3\n Added ``js_url`` and ``css_url`` parameters to pass custom resource URL.",
" .. versionchanged:: 1.4.4\n This method was deprecated due to infl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ... | Initialize dropzone configuration.
.. versionadded:: 1.4.4
:param redirect_url: The URL to redirect when upload complete.
:param custom_init: Custom javascript code in ``init: function() {}``.
:param custom_options: Custom javascript code in ``Dropzone.options.myDropzone = {}``.
... | "Initialize dropzone configuration.\n\n .. versionadded:: 1.4.4\n\n :param redirect_url: The URL to redirect when upload complete.\n :param custom_init: Custom javascript code in ``init: function() {}``.\n :param custom_options: Custom javascript code in ``Dropzone.options.myDropzone = {}``.... | 23 | false | greyli/flask-dropzone | config | 3,179 | |
LDU_FT/Anaconda-Platform/anaconda-client/download | LDU_FT | [
"<BEGIN>\n## `norm_package_version`",
"Normalize a version by removing extra spaces and parentheses.\n<END>",
"<BEGIN>\n## `split_spec`",
"Split a spec by separator and return stripped start and end parts.\n<END>",
"<BEGIN>\n## `parse_specification`",
"Parse a requirement from a python distribution metada... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download 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 download 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... | Download a package distribution
:param login: the login of the package owner
:param package_name: the name of the package
:param version: the version string of the release
:param basename: the basename of the distribution to download
:param md5: (optional) an md5 hash of the dow... | "Download a package distribution\n\n :param login: the login of the package owner\n :param package_name: the name of the package\n :param version: the version string of the release\n :param basename: the basename of the distribution to download\n :param md5: (optional) an md5 hash of ... | 111 | false | Anaconda-Platform/anaconda-client | download | 3,180 | |
LDU_FT/mobinrg/rpi_spark_drives/_init_config | LDU_FT | [
"<BEGIN>\n## `setKeyButton`",
"!\n \\~english\n Set key button event\n @param btnId: Key button pin number in BCM\n @param keyCallback: A interrupt <b>callback_function</b> or <b>None</b>. <br>\n If set to <b>None</b> means keybutton work in query mode<br>\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_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 extr... | !
SPI hardware and display width, height initialization. | "!\n SPI hardware and display width, height initialization." | 135 | false | mobinrg/rpi_spark_drives | _init_config | 3,181 | |
LDU_FT/victorlei/smop/to_arrayref | LDU_FT | [
"<BEGIN>\n## `callgraph`",
"Build callgraph of func_list, ignoring\n built-in functions\n<END>",
"<BEGIN>\n## `recordtype`",
"Returns a new class with named fields.",
" @keyword field_defaults: A mapping from (a subset of) field names to default \n values.\n @keyword default: If provided, th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_arrayref 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_arrayref 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... | To the parser, funcall is indistinguishable
from rhs array reference. But LHS references
can be converted to arrayref nodes. | "To the parser, funcall is indistinguishable\n from rhs array reference. But LHS references\n can be converted to arrayref nodes." | 69 | false | victorlei/smop | to_arrayref | 3,182 | |
LDU_FT/materialsproject/custodian/constrained_opt_run | LDU_FT | [
"<BEGIN>\n## `from_spec`",
"Load a Custodian instance where the jobs are specified from a\n structure and a spec dict. This allows simple\n custom job sequences to be constructed quickly via a YAML file.",
" Args:\n spec (dict): A dict specifying job. A sample of the dict in\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the constrained_opt_run 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 constrained_opt_run 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... | Returns a generator of jobs for a constrained optimization run. Typical
use case is when you want to approximate a biaxial strain situation,
e.g., you apply a defined strain to a and b directions of the lattice,
but allows the c-direction to relax.
Some guidelines on the use of this met... | "Returns a generator of jobs for a constrained optimization run. Typical\n use case is when you want to approximate a biaxial strain situation,\n e.g., you apply a defined strain to a and b directions of the lattice,\n but allows the c-direction to relax.\n\n Some guidelines on the use of th... | 90 | false | materialsproject/custodian | constrained_opt_run | 3,183 | |
LDU_FT/nocarryr/python-dispatch/add_waiter | LDU_FT | [
"<BEGIN>\n## `register_event`",
"Registers new events after instance creation",
" Args:\n *names (str): Name or names of the events to register\n<END>",
"<BEGIN>\n## `bind`",
"Subscribes to events or to :class:`~pydispatch.properties.Property` updates",
" Keyword arguments are use... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_waiter 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 add_waiter 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... | Add a :class:`AioEventWaiter` to the :attr:`waiters` container
The event loop to use for :attr:`AioEventWaiter.loop` is found in the
current context using :func:`asyncio.get_event_loop`
Returns:
waiter: The created :class:`AioEventWaiter` instance | "Add a :class:`AioEventWaiter` to the :attr:`waiters` container\n\n The event loop to use for :attr:`AioEventWaiter.loop` is found in the\n current context using :func:`asyncio.get_event_loop`\n\n Returns:\n waiter: The created :class:`AioEventWaiter` instance" | 89 | false | nocarryr/python-dispatch | add_waiter | 3,184 | |
LDU_FT/brettcannon/gidgethub/dispatch | LDU_FT | [
"<BEGIN>\n## `_parse_content_type`",
"Tease out the content-type and character encoding.",
" A default character encoding of UTF-8 is used, so the content-type\n must be used to determine if any decoding is necessary to begin\n with.\n<END>",
"<BEGIN>\n## `_decode_body`",
"Decode an HTTP body based... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch 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 dispatch 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... | Dispatch an event to all registered function(s). | "Dispatch an event to all registered function(s)." | 49 | false | brettcannon/gidgethub | dispatch | 3,185 | |
LDU_FT/NiklasRosenstein/py-localimport/extend_path | LDU_FT | [
"<BEGIN>\n## `is_local`",
"Returns True if *filename* is a subpath of any of the paths in *pathlist*.\n<END>",
"<BEGIN>\n## `is_subpath`",
"Returns True if *path* points to the same or a subpath of *parent*.\n<END>",
"<BEGIN>\n## `eval_pth`",
"Evaluates a `.pth` file (including support for `import` statem... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend_path 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 extend_path 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... | Better implementation of #pkgutil.extend_path() which adds support for
zipped Python eggs. The original #pkgutil.extend_path() gets mocked by this
function inside the #localimport context. | "Better implementation of #pkgutil.extend_path() which adds support for\n zipped Python eggs. The original #pkgutil.extend_path() gets mocked by this\n function inside the #localimport context." | 12 | false | NiklasRosenstein/py-localimport | extend_path | 3,186 | |
LDU_FT/mamrhein/specification/visit | LDU_FT | [
"<BEGIN>\n## `is_satisfied_by`",
"Return True if `candidate` satisfies the specification.\n<END>",
"<BEGIN>\n## `src2ast`",
"Return ast.Expression created from source code given in `src`.\n<END>",
"<BEGIN>\n## `replace_name`",
"Replace all Name nodes named `old_name` with nodes named `new_name`.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit 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 visit 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... | Process `node` by dispatching to a handler. | "Process `node` by dispatching to a handler." | 66 | false | mamrhein/specification | visit | 3,187 | |
LDU_FT/blockstack/virtualchain/tx_parse | LDU_FT | [
"<BEGIN>\n## `lpad`",
"Left-pad a given string (msg) with a character (symbol) for a given number of bytes (length).\n Return the padded string\n<END>",
"<BEGIN>\n## `changebase`",
"Change a string's characters from one base to another.\n Return the re-encoded string\n<END>",
"<BEGIN>\n## `num_to_var_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tx_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tx_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 extracte... | Parse a raw transaction, based on the type of blockchain it's from
Returns a tx dict on success (see get_virtual_transactions)
Raise ValueError for unknown blockchain
Raise some other exception for invalid raw_tx (implementation-specific) | "Parse a raw transaction, based on the type of blockchain it's from\n Returns a tx dict on success (see get_virtual_transactions)\n Raise ValueError for unknown blockchain\n Raise some other exception for invalid raw_tx (implementation-specific)" | 491 | false | blockstack/virtualchain | tx_parse | 3,188 | |
LDU_FT/cidles/pressagio/create_database | LDU_FT | [
"<BEGIN>\n## `create_ngram_table`",
"Creates a table for n-gram of a give cardinality. The table name is\n constructed from this parameter, for example for cardinality `2` there\n will be a table `_2_gram` created.",
" Parameters\n ----------\n cardinality : int\n T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_database 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 create_database 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... | Creates an empty database if not exists. | "Creates an empty database if not exists." | 43 | false | cidles/pressagio | create_database | 3,189 | |
LDU_FT/mitsei/dlkit/use_comparative_bin_view | LDU_FT | [
"<BEGIN>\n## `get_osid_temporal_mdata`",
"Return default mdata map for OsidTemporal\n<END>",
"<BEGIN>\n## `get_osid_containable_mdata`",
"Return default mdata map for OsidContainable\n<END>",
"<BEGIN>\n## `get_osid_sourceable_mdata`",
"Return default mdata map for OsidSourceable\n<END>",
"<BEGIN>\n## `g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_comparative_bin_view 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 use_comparative_bin_view API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Pass through to provider ResourceBinSession.use_comparative_bin_view | "Pass through to provider ResourceBinSession.use_comparative_bin_view" | 6,502 | true | mitsei/dlkit | use_comparative_bin_view | 3,190 | |
LDU_FT/bitlabstudio/django-user-media/clean_image | LDU_FT | [
"<BEGIN>\n## `get_context_data`",
"Adds `next` to the context.",
" This makes sure that the `next` parameter doesn't get lost if the\n form was submitted invalid.\n<END>",
"<BEGIN>\n## `get_success_url`",
"Returns the success URL.",
" This is either the given `next` URL parameter or t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_image 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 clean_image 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... | It seems like in Django 1.5 something has changed.
When Django tries to validate the form, it checks if the generated
filename fit into the max_length. But at this point, self.instance.user
is not yet set so our filename generation function cannot create
the new file path because it nee... | "It seems like in Django 1.5 something has changed.\n\n When Django tries to validate the form, it checks if the generated\n filename fit into the max_length. But at this point, self.instance.user\n is not yet set so our filename generation function cannot create\n the new file path because ... | 24 | false | bitlabstudio/django-user-media | clean_image | 3,191 | |
LDU_FT/mardix/Juice/md5_string | LDU_FT | [
"<BEGIN>\n## `get_env`",
"Return the Capitalize environment name\n It can be used to retrieve class base config\n Default: Development\n :returns: str\n<END>",
"<BEGIN>\n## `init_app`",
"To bind middlewares, plugins that needs the 'app' object to init\n Bound middlewares will be assigned on cls.in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the md5_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the md5_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 extrac... | Shortcut to create md5 hash
:param s:
:return: | "Shortcut to create md5 hash\n :param s:\n :return:" | 101 | false | mardix/Juice | md5_string | 3,192 | |
LDU_FT/refinery29/chassis/set_value | LDU_FT | [
"<BEGIN>\n## `detect_circle`",
"Wrapper for recursive _detect_circle function\n<END>",
"<BEGIN>\n## `_detect_circle`",
"Recursively iterate over nodes checking\n if we've traveled to that node before.\n<END>",
"<BEGIN>\n## `_do`",
"Recursive method to instantiate services\n<END>",
"<BEGIN>\n## `_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extract... | Set a value by key.
Arguments:
cache:
instance of Cache
key:
'user:342:username', | "Set a value by key.\n\n Arguments:\n cache:\n instance of Cache\n\n key:\n 'user:342:username'," | 75 | false | refinery29/chassis | set_value | 3,193 | |
LDU_FT/thespacedoctor/rockAtlas/get | LDU_FT | [
"<BEGIN>\n## `main`",
"*The main function used when ``find_atlas_exposure_containing_ssobject.py`` is run as a single script from the cl*\n<END>",
"<BEGIN>\n## `_extract_phot_from_exposure`",
"* extract phot from exposure*",
" **Key Arguments:**\n - ``expIdIndex`` -- index of the exposure to extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 doc... | *download a cache of ATLAS nights data*
**Key Arguments:**
- ``days`` -- the number of days data to cache locally
**Return:**
- None
**Usage:**
See class docstring | "*download a cache of ATLAS nights data*\n\n **Key Arguments:**\n - ``days`` -- the number of days data to cache locally\n\n **Return:**\n - None\n\n **Usage:**\n\n See class docstring" | 125 | false | thespacedoctor/rockAtlas | get | 3,194 | |
LDU_FT/lark-parser/lark/_to_rule | LDU_FT | [
"<BEGIN>\n## `dedup_list`",
"Given a list (l) will removing duplicates from the list,\n preserving the original order of the list. Assumes that\n the list entrie are hashable.\n<END>",
"<BEGIN>\n## `_parse`",
"Parses sentence 's' using CNF grammar 'g'.\n<END>",
"<BEGIN>\n## `get_any_nt_unit_rule... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_rule 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 _to_rule 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... | Converts a lark rule, (lhs, rhs, callback, options), to a Rule. | "Converts a lark rule, (lhs, rhs, callback, options), to a Rule." | 55 | false | lark-parser/lark | _to_rule | 3,195 | |
LDU_FT/carpedm20/fbchat/removeFriend | LDU_FT | [
"<BEGIN>\n## `_generatePayload`",
"Adds the following defaults to the payload:\n __rev, __user, __a, ttstamp, fb_dtsg, __req\n<END>",
"<BEGIN>\n## `_fix_fb_errors`",
"This fixes \"Please try closing and re-opening your browser window\" errors (1357004)\n This error usually happens after 1-2 da... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the removeFriend 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 removeFriend 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... | Removes a specifed friend from your friend list
:param friend_id: The ID of the friend that you want to remove
:return: Returns error if the removing was unsuccessful, returns True when successful. | "Removes a specifed friend from your friend list\n\n :param friend_id: The ID of the friend that you want to remove\n :return: Returns error if the removing was unsuccessful, returns True when successful." | 337 | false | carpedm20/fbchat | removeFriend | 3,196 | |
LDU_FT/henzk/featuremonkey/add | LDU_FT | [
"<BEGIN>\n## `_serialize_function`",
"Still needing this much try-except stuff. We should find a way to get rid of this.\n :param obj:\n :return:\n<END>",
"<BEGIN>\n## `_serialize_module`",
"Tries to serialize a module by its __dict__ attr.\n Remove the builtins attr as this one is not relevant and e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add 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 doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add 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 doc... | add a couple of fsts to be superimposed on the module given
by module_name as soon as it is imported.
internal - use featuremonkey.compose_later | "add a couple of fsts to be superimposed on the module given\n by module_name as soon as it is imported.\n\n internal - use featuremonkey.compose_later" | 32 | false | henzk/featuremonkey | add | 3,197 | |
LDU_FT/nats-io/python-nats/_process_msg | LDU_FT | [
"<BEGIN>\n## `parse`",
"Parses the wire protocol from NATS for the client\n and dispatches the subscription callbacks.\n<END>",
"<BEGIN>\n## `connect`",
"Establishes a connection to a NATS server.",
" Examples:",
" # Configure pool of NATS servers.\n nc = nats.io.client.Cli... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_msg 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 _process_msg 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... | Dispatches the received message to the stored subscription.
It first tries to detect whether the message should be
dispatched to a passed callback. In case there was not
a callback, then it tries to set the message into a future. | "Dispatches the received message to the stored subscription.\n It first tries to detect whether the message should be\n dispatched to a passed callback. In case there was not\n a callback, then it tries to set the message into a future." | 62 | false | nats-io/python-nats | _process_msg | 3,198 | |
LDU_FT/bwesterb/tkbd/_id_for_source | LDU_FT | [
"<BEGIN>\n## `fetch_room_ids`",
"Fetches the ids of the rooms with the given names\n<END>",
"<BEGIN>\n## `fetch_todays_schedule`",
"Fetch the schedules for the given rooms.\n<END>",
"<BEGIN>\n## `prepare_roomMap`",
"Prepares the roomMap to be JSONified. That is: convert the non\n JSON serializable ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _id_for_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _id_for_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 ex... | Given the name of the source, return the database identifier. | "Given the name of the source, return the database identifier." | 26 | false | bwesterb/tkbd | _id_for_source | 3,199 | |
LDU_FT/baszoetekouw/janus-py/get_by_entityid | LDU_FT | [
"<BEGIN>\n## `list`",
"Return the entity with the given entity ID in short form. If no entity \n\t\tID is given, all records are listed.",
"\t\tIt returns a dictionary of the form:\n\t\t{eid : {'id' :\n\t\t\t\t'isActive' :\n\t\t\t\t'name' :\n\t\t\t\t'revisionNr' :\n\t\t\t\t'state' :\n\t\t\t\t'type' :\n\t\t\t\t}... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_by_entityid 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_by_entityid 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 the entity with the given entity ID as a dict | "Returns the entity with the given entity ID as a dict" | 18 | false | baszoetekouw/janus-py | get_by_entityid | 3,200 | |
LDU_FT/DarkEnergySurvey/ugali/u_grade_ipix | LDU_FT | [
"<BEGIN>\n## `integrate`",
"Calculate the 2D integral of the 1D surface brightness profile \n (i.e, the flux) between rmin and rmax (elliptical radii). ",
" Parameters:\n -----------\n rmin : minimum integration radius (deg)\n rmax : maximum integration radius (deg)",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the u_grade_ipix 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 u_grade_ipix 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... | Return the indices of sub-pixels (resolution nside_subpix) within
the super-pixel(s) (resolution nside_superpix).
Parameters:
-----------
ipix : index of the input superpixel(s)
nside_in : nside of the input superpixel
nside_out : nside of the desired subpixels
Returns:
-----... | "Return the indices of sub-pixels (resolution nside_subpix) within\n the super-pixel(s) (resolution nside_superpix).\n \n Parameters:\n -----------\n ipix : index of the input superpixel(s)\n nside_in : nside of the input superpixel\n nside_out : nside of the desired subpixels\n\n Returns:... | 614 | false | DarkEnergySurvey/ugali | u_grade_ipix | 3,201 | |
LDU_FT/benedictpaten/sonLib/setLoggingFromOptions | LDU_FT | [
"<BEGIN>\n## `linOriginRegression`",
"computes a linear regression starting at zero\n<END>",
"<BEGIN>\n## `close`",
"check two float values are within a bound of one another\n<END>",
"<BEGIN>\n## `filterOverlappingAlignments`",
"Filter alignments to be non-overlapping.\n<END>",
"<BEGIN>\n## `binaryTree_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setLoggingFromOptions 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 setLoggingFromOptions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Sets the logging from a dictionary of name/value options. | "Sets the logging from a dictionary of name/value options." | 80 | false | benedictpaten/sonLib | setLoggingFromOptions | 3,202 | |
LDU_FT/ryanjdillon/pyotelem/calc_glide_des_asc | LDU_FT | [
"<BEGIN>\n## `plot_lf_hf`",
"Plot original signal, low-pass filtered, and high-pass filtered signals",
" Args\n ----\n x: ndarray\n Signal data array\n xlf: ndarray\n Low-pass filtered signal\n xhf: ndarray\n High-pass filtered signal\n title: str\n Main title of pl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_glide_des_asc 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 calc_glide_des_asc 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... | Calculate glide ascent and descent summary data
Args
----
SGL: numpy.ndarray, shape (n,2)
start and end index positions for sub-glides
Returns
-------
sgls: pandas.DataFrame
Sub-glide summary information defined by `SGL` start/stop indices
*Columns*:
* dive_ph... | "Calculate glide ascent and descent summary data\n\n Args\n ----\n SGL: numpy.ndarray, shape (n,2)\n start and end index positions for sub-glides\n\n Returns\n -------\n sgls: pandas.DataFrame\n Sub-glide summary information defined by `SGL` start/stop indices\n\n *Columns*:\n\n ... | 268 | false | ryanjdillon/pyotelem | calc_glide_des_asc | 3,203 | |
LDU_FT/influxdata/influxdb-python/delete_series | LDU_FT | [
"<BEGIN>\n## `_get_unicode`",
"Try to return a text aka unicode object from the given data.\n<END>",
"<BEGIN>\n## `make_lines`",
"Extract points from given dict.",
" Extracts the points from the given dict and returns a Unicode string\n matching the line protocol introduced in InfluxDB 0.9.0.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_series 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 delete_series 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... | Delete series from a database.
Series must be filtered by either measurement and tags.
This method cannot be used to delete all series, use
`drop_database` instead.
:param database: the database from which the series should be
deleted, defaults to client's current database
... | "Delete series from a database.\n\n Series must be filtered by either measurement and tags.\n This method cannot be used to delete all series, use\n `drop_database` instead.\n\n :param database: the database from which the series should be\n deleted, defaults to client's current d... | 205 | false | influxdata/influxdb-python | delete_series | 3,204 | |
LDU_FT/etalab/cada/load | LDU_FT | [
"<BEGIN>\n## `pip`",
"Parse pip requirement file and transform it to setuptools requirements\n<END>",
"<BEGIN>\n## `echo`",
"Wraps click.echo, handles formatting and check encoding\n<END>",
"<BEGIN>\n## `error`",
"Display an error message with optionnal details\n<END>",
"<BEGIN>\n## `load`",
"Load one... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load 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 load 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... | Load one or more CADA CSV files matching patterns | "Load one or more CADA CSV files matching patterns" | 10 | false | etalab/cada | load | 3,205 | |
LDU_FT/PyAr/fades/clean_unused_venvs | LDU_FT | [
"<BEGIN>\n## `consolidate_dependencies`",
"Parse files, get deps and merge them. Deps read later overwrite those read earlier.\n<END>",
"<BEGIN>\n## `decide_child_program`",
"Decide which the child program really is (if any).\n<END>",
"<BEGIN>\n## `detect_inside_virtualenv`",
"Tell if fades is running ins... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_unused_venvs 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 clean_unused_venvs 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... | Compact usage stats and remove venvs.
This method loads the complete file usage in memory, for every venv compact all records in
one (the lastest), updates this info for every env deleted and, finally, write the entire
file to disk.
If something failed during this steps, usage file rem... | "Compact usage stats and remove venvs.\n\n This method loads the complete file usage in memory, for every venv compact all records in\n one (the lastest), updates this info for every env deleted and, finally, write the entire\n file to disk.\n\n If something failed during this steps, usage f... | 85 | false | PyAr/fades | clean_unused_venvs | 3,206 | |
LDU_FT/pyparsing/pyparsing/operatorOperands | LDU_FT | [
"<BEGIN>\n## `parse`",
"Accepts an input string containing an LA equation, e.g.,\r\n \"M3_mymatrix = M3_anothermatrix^-1\" returns C code function\r\n calls that implement the expression.\n<END>",
"<BEGIN>\n## `fprocess`",
"Scans an input file for LA equations between double square brackets,\r\n e.g. ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the operatorOperands 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 operatorOperands 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 ... | generator to extract operators and operands in pairs | "generator to extract operators and operands in pairs" | 132 | false | pyparsing/pyparsing | operatorOperands | 3,207 | |
LDU_FT/google/apitools/GeneratePipPackage | LDU_FT | [
"<BEGIN>\n## `_urljoin`",
"Custom urljoin replacement supporting : before / in url.\n<END>",
"<BEGIN>\n## `_SetCredentials`",
"Fetch credentials, and set them for this client.",
" Note that we can't simply return credentials, since creating them\n may involve side-effecting self.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GeneratePipPackage 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 GeneratePipPackage 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... | Generate a client as a pip-installable tarball. | "Generate a client as a pip-installable tarball." | 629 | false | google/apitools | GeneratePipPackage | 3,208 | |
LDU_FT/spyder-ide/spyder-notebook/open_console | LDU_FT | [
"<BEGIN>\n## `evaluate`",
"Evaluate script in page frame.",
" :param script: The script to evaluate.\n<END>",
"<BEGIN>\n## `click`",
"Click the targeted element.",
" :param selector: A CSS3 selector to targeted element.\n :param btn: The number of mouse button.\n 0 - left b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_console 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 open_console 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... | Open an IPython console for the given client or the current one. | "Open an IPython console for the given client or the current one." | 45 | false | spyder-ide/spyder-notebook | open_console | 3,209 | |
LDU_FT/njharman/die/tuple_roll | LDU_FT | [
"<BEGIN>\n## `do_sum`",
"Set self.sum, self.avr and return sum of dice rolled, count times.\n :param count: Number of rolls to make\n :return: Total sum of all rolls\n<END>",
"<BEGIN>\n## `do_bucket`",
"Set self.bucket and return results.\n :param count: Number of rolls to make\n :... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tuple_roll 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 tuple_roll 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... | One or more die rolls.
:param count: [0] Return list of ``count`` rolls
:return: (face, value) of roll or list of same | "One or more die rolls.\n :param count: [0] Return list of ``count`` rolls\n :return: (face, value) of roll or list of same" | 28 | false | njharman/die | tuple_roll | 3,210 | |
LDU_FT/hazelcast/hazelcast-remote-controller/shutdownMember | LDU_FT | [
"<BEGIN>\n## `createCluster`",
"Parameters:\n - hzVersion\n - xmlconfig\n<END>",
"<BEGIN>\n## `shutdownMember`",
"Parameters:\n - clusterId\n - memberId\n<END>",
"<BEGIN>\n## `terminateMember`",
"Parameters:\n - clusterId\n - memberId\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shutdownMember 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 shutdownMember 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... | Parameters:
- clusterId
- memberId | "Parameters:\n - clusterId\n - memberId" | 14 | false | hazelcast/hazelcast-remote-controller | shutdownMember | 3,211 | |
LDU_FT/eleme/meepo/run | LDU_FT | [
"<BEGIN>\n## `zmq_sub`",
"0mq fanout sub.",
" This sub will use zeromq to fanout the events.",
" :param bind: the zmq pub socket or zmq device socket.\n :param tables: the events of tables to follow.\n :param forwarder: set to True if zmq pub to a forwarder device.\n :param green: weather to us... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run 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 doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run 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 doc... | Run the replicator.
Main process receive messages and distribute them to worker queues. | "Run the replicator.\n\n Main process receive messages and distribute them to worker queues." | 110 | false | eleme/meepo | run | 3,212 | |
LDU_FT/kieferk/dfply/intersect | LDU_FT | [
"<BEGIN>\n## `select_if`",
"Selects columns where fun(ction) is true\n Args:\n fun: a function that will be applied to columns\n<END>",
"<BEGIN>\n## `drop_if`",
"Drops columns where fun(ction) is true\n Args:\n fun: a function that will be applied to columns\n<END>",
"<BEGIN>\n## `mean`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intersect 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 intersect 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... | Returns rows that appear in both DataFrames.
Args:
df (pandas.DataFrame): data passed in through the pipe.
other (pandas.DataFrame): other DataFrame to use for set operation with
the first.
Kwargs:
index (bool): Boolean indicating whether to consider the pandas index
... | "Returns rows that appear in both DataFrames.\n\n Args:\n df (pandas.DataFrame): data passed in through the pipe.\n other (pandas.DataFrame): other DataFrame to use for set operation with\n the first.\n\n Kwargs:\n index (bool): Boolean indicating whether to consider the pandas ind... | 149 | false | kieferk/dfply | intersect | 3,213 | |
LDU_FT/daskol/nls/report | LDU_FT | [
"<BEGIN>\n## `model`",
"Piority of Arguments: Arguments passed in `kwargs` has the most piority, 'param' key in `kwargs` has less\n piority than `kwargs` and dictionary arguments in `args` have the least piority. Other arguments are ignored.\n Argument List:\n model - set model type, defa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the report 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 report 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 ... | Prints in standard output report about animation rendering. Namely, it prints seconds spent, number of
frames and step size that is used in functional animation. | "Prints in standard output report about animation rendering. Namely, it prints seconds spent, number of\n frames and step size that is used in functional animation." | 18 | false | daskol/nls | report | 3,214 | |
LDU_FT/relekang/python-semantic-release/get_commit_log | LDU_FT | [
"<BEGIN>\n## `parse_commit_message`",
"Parses a commit message according to the 1.0 version of python-semantic-release. It expects\n a tag of some sort in the commit message and will use the rest of the first line as changelog\n content.",
" :param message: A string of a commit message.\n :raises Un... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_commit_log 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 get_commit_log 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... | Yields all commit messages from last to first. | "Yields all commit messages from last to first." | 103 | false | relekang/python-semantic-release | get_commit_log | 3,215 | |
LDU_FT/KenjiTakahashi/td/add | LDU_FT | [
"<BEGIN>\n## `save`",
"@decorator: Saves data after executing :func:.",
" Also performs modifications set as permanent options.\n<END>",
"<BEGIN>\n## `add`",
"Adds new item to the model.",
" Name argument may contain (ref:) syntax, which will be\n stripped down as needed.",
" :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add 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 doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add 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 doc... | Adds new item to the model.
Name argument may contain (ref:) syntax, which will be
stripped down as needed.
:parent: should have a form "<itemref>.<subitemref...>" (e.g. "1.1").
:name: Name (with refs).
:priority: Item's priority.
:comment: Comment.
:parent: It... | "Adds new item to the model.\n\n Name argument may contain (ref:) syntax, which will be\n stripped down as needed.\n\n :parent: should have a form \"<itemref>.<subitemref...>\" (e.g. \"1.1\").\n\n :name: Name (with refs).\n :priority: Item's priority.\n :comment: Comment.\n ... | 82 | false | KenjiTakahashi/td | add | 3,216 | |
LDU_FT/basecrm/basecrm-python/list | LDU_FT | [
"<BEGIN>\n## `post`",
"Send a POST request.",
" :param str url: Sub URL for the request. You MUST not specify neither base url nor api version prefix.\n :param dict body: (optional) Dictionary of body attributes that will be wrapped with envelope and json encoded.\n :param dict **kwargs: (o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | Retrieve all tasks
Returns all tasks available to the user, according to the parameters provided
If you ask for tasks without any parameter provided Base API will return you both **floating** and **related** tasks
Although you can narrow the search set to either of them via query parameters
... | "Retrieve all tasks\n\n Returns all tasks available to the user, according to the parameters provided\n If you ask for tasks without any parameter provided Base API will return you both **floating** and **related** tasks\n Although you can narrow the search set to either of them via query parameter... | 216 | false | basecrm/basecrm-python | list | 3,217 | |
LDU_FT/caesar0301/relogger/tag | LDU_FT | [
"<BEGIN>\n## `_get_section_values`",
"extract src and dst values from a section\n<END>",
"<BEGIN>\n## `_assemble_flowtable`",
"generate a flowtable from a tuple of descriptors.\n<END>",
"<BEGIN>\n## `_detect_loop`",
"detect loops in flow table, raise error if being present\n<END>",
"<BEGIN>\n## `_get_ab... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag 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 doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag 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 doc... | The name of the program that generated the log message.
The tag can only contain alphanumeric
characters. If the tag is longer than {MAX_TAG_LEN} characters
it will be truncated automatically. | "The name of the program that generated the log message.\n\n The tag can only contain alphanumeric\n characters. If the tag is longer than {MAX_TAG_LEN} characters\n it will be truncated automatically." | 26 | false | caesar0301/relogger | tag | 3,218 | |
LDU_FT/scidam/cachepy/get_data | LDU_FT | [
"<BEGIN>\n## `_to_bytes`",
"Serialize (and encrypt if `key` is provided) the data and represent it as string.",
" **Parameters**",
" :param data: any python serializable (pickable) object\n :param key: If the key is provided and `pycrypto` is installed, cached\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte... | Get the data from the cache.
:param data_key: a key for accessing the data;
:param key: if provided (e.g. non-empty string), will be used to
decrypt the data as a password;
:returns: the data extracted from the cache, a python object. | "Get the data from the cache.\n\n :param data_key: a key for accessing the data; \n :param key: if provided (e.g. non-empty string), will be used to\n decrypt the data as a password;\n :returns: the data extracted from the cache, a python object." | 21 | false | scidam/cachepy | get_data | 3,219 | |
LDU_FT/yougov/pmxbot/pday | LDU_FT | [
"<BEGIN>\n## `attach`",
"Given a function and a namespace of possible parameters,\n\tbind any params matching the signature of the function\n\tto that function.\n<END>",
"<BEGIN>\n## `init_config`",
"Install the config dict as pmxbot.config, setting overrides,\n\tand return the result.\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pday 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 pday 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... | P the day
>>> print(pday('2012-08-24'))
Friday the 24th | "P the day\n\n\t>>> print(pday('2012-08-24'))\n\tFriday the 24th" | 128 | false | yougov/pmxbot | pday | 3,220 | |
LDU_FT/ladybug-tools/ladybug/from_json | LDU_FT | [
"<BEGIN>\n## `project`",
"Return one vector projected on the vector other\n<END>",
"<BEGIN>\n## `rotate_around`",
"Return the vector rotated around axis through angle theta.",
" Right hand rule applies.\n<END>",
"<BEGIN>\n## `to_ip`",
"Return values in IP and the units to which the values have be... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extract... | Create a DDY from a dictionary.
Args:
data = {
"location": ladybug Location schema,
"design_days": [] // list of ladybug DesignDay schemas} | "Create a DDY from a dictionary.\n\n Args:\n data = {\n \"location\": ladybug Location schema,\n \"design_days\": [] // list of ladybug DesignDay schemas}" | 743 | false | ladybug-tools/ladybug | from_json | 3,221 | |
LDU_FT/BD2KOnFHIR/fhirtordf/complete_definition | LDU_FT | [
"<BEGIN>\n## `namespace_for`",
"Reverse namespace lookup. Note that returned namespace may not be unique\n :param uri: namespace URI\n :return: namespace\n<END>",
"<BEGIN>\n## `known_formats`",
"Return a list of available formats in rdflib for the required task\n :param use: task (typically Serializ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the complete_definition 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 complete_definition 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... | Return the transitive closure of subject.
:param subj: URI or BNode for subject
:param source_graph: Graph containing defininition
:param target_graph: return graph (for recursion)
:return: target_graph | "Return the transitive closure of subject.\n :param subj: URI or BNode for subject\n :param source_graph: Graph containing defininition\n :param target_graph: return graph (for recursion)\n :return: target_graph" | 75 | false | BD2KOnFHIR/fhirtordf | complete_definition | 3,222 | |
LDU_FT/perrygeo/python-rasterstats/key_assoc_val | LDU_FT | [
"<BEGIN>\n## `zonalstats`",
"zonalstats generates summary statistics of geospatial raster datasets\n based on vector features.",
" The input arguments to zonalstats should be valid GeoJSON Features. (see cligj)",
" The output GeoJSON will be mostly unchanged but have additional properties per feature... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_assoc_val 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 key_assoc_val 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... | return the key associated with the value returned by func | "return the key associated with the value returned by func" | 73 | false | perrygeo/python-rasterstats | key_assoc_val | 3,223 | |
LDU_FT/Karaage-Cluster/python-tldap/delete | LDU_FT | [
"<BEGIN>\n## `check_password`",
"Check a plaintext password against a hashed password.\n<END>",
"<BEGIN>\n## `reset`",
"Reset transaction back to original state, discarding all\n uncompleted transactions.\n<END>",
"<BEGIN>\n## `_cache_get_for_dn`",
"Object state is cached. When an update is require... | 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 ... | delete a dn in the ldap database; see ldap module. doesn't return a
result if transactions enabled. | "delete a dn in the ldap database; see ldap module. doesn't return a\n result if transactions enabled." | 151 | false | Karaage-Cluster/python-tldap | delete | 3,224 | |
LDU_FT/Azure/azure-storage-python/_decrypt_queue_message | LDU_FT | [
"<BEGIN>\n## `_perform_request`",
"Sends the request and return response. Catches HTTPError and hands it\n to error handler\n<END>",
"<BEGIN>\n## `copy_file`",
"source_file_url = self.service.make_file_url(\n remote_share_name,\n remote_directory_name,\n remote_file_nam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decrypt_queue_message 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 _decrypt_queue_message 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 decrypted message contents from an EncryptedQueueMessage.
If no encryption metadata is present, will return the unaltered message.
:param str message:
The JSON formatted QueueEncryptedMessage contents with all associated metadata.
:param bool require_encryption:
If set, will enfo... | "Returns the decrypted message contents from an EncryptedQueueMessage.\n If no encryption metadata is present, will return the unaltered message.\n :param str message:\n The JSON formatted QueueEncryptedMessage contents with all associated metadata.\n :param bool require_encryption:\n If set, wil... | 235 | false | Azure/azure-storage-python | _decrypt_queue_message | 3,225 | |
LDU_FT/RudolfCardinal/pythonlib/quote_identifier_if_required | LDU_FT | [
"<BEGIN>\n## `pdb_run`",
"Calls ``func(*args, **kwargs)``; if it raises an exception, break into\n the ``pdb`` debugger.\n<END>",
"<BEGIN>\n## `get_class_name_from_frame`",
"A frame contains information about a specific call in the Python call\n stack; see https://docs.python.org/3/library/inspect.html.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quote_identifier_if_required API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quote_identifier_if_required API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Transforms a SQL identifier (such as a column name) into a version
that is quoted if required (or, with ``debug_force_quote=True``, is
quoted regardless). | "Transforms a SQL identifier (such as a column name) into a version\n that is quoted if required (or, with ``debug_force_quote=True``, is\n quoted regardless)." | 2,517 | true | RudolfCardinal/pythonlib | quote_identifier_if_required | 3,226 | |
LDU_FT/flatangle/flatlib/aspects | LDU_FT | [
"<BEGIN>\n## `_roundSlist`",
"Rounds a signed list over the last element and removes it.\n<END>",
"<BEGIN>\n## `toFloat`",
"Converts string or signed list to float.\n<END>",
"<BEGIN>\n## `inDignities`",
"Returns the dignities of A which belong to B.\n<END>",
"<BEGIN>\n## `receives`",
"Returns the dign... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the aspects 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 aspects 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... | Returns true if this star aspects another object.
Fixed stars only aspect by conjunctions. | "Returns true if this star aspects another object.\n Fixed stars only aspect by conjunctions." | 248 | false | flatangle/flatlib | aspects | 3,227 | |
LDU_FT/timster/peewee-validates/isiterable_notstring | LDU_FT | [
"<BEGIN>\n## `validate_not_empty`",
"Validate that a field is not empty (blank string).",
" :raises: ``ValidationError('empty')``\n<END>",
"<BEGIN>\n## `validate_length`",
"Validate the length of a field with either low, high, or equal.\n Should work with anything that supports len().",
" :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isiterable_notstring 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 isiterable_notstring 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 True if the value is iterable but not a string. Otherwise returns False.
:param value: Value to check. | "Returns True if the value is iterable but not a string. Otherwise returns False.\n\n :param value: Value to check." | 82 | false | timster/peewee-validates | isiterable_notstring | 3,228 | |
LDU_FT/FreekKalter/geoselect/build_dict | LDU_FT | [
"<BEGIN>\n## `haversine`",
"Calculate the great circle distance between two points\r\n on the earth (specified in decimal degrees)\r\n Thanks to a answer on stackoverflow by Michael Dunn.\r\n http://stackoverflow.com/questions/4913349/haversine-formula-in-python-bearing-and-distance-between-two-gps-point... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_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 extrac... | Build a dict from files from iterator.
{'absolute_filename': {'EXIF field': 'exif tag value'}}
Parse DateTime from filename in the same loop, added as 'TIME'. | "Build a dict from files from iterator.\r\n {'absolute_filename': {'EXIF field': 'exif tag value'}}\r\n Parse DateTime from filename in the same loop, added as 'TIME'." | 12 | false | FreekKalter/geoselect | build_dict | 3,229 | |
LDU_FT/jwodder/doapi/update_tag | LDU_FT | [
"<BEGIN>\n## `fetch`",
"Fetch & return a new `Action` object representing the action's current\n state",
" :rtype: Action\n :raises DOAPIError: if the API endpoint replies with an error\n<END>",
"<BEGIN>\n## `fetch_resource`",
"Fetch & return the resource that the action operated on, or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_tag 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 update_tag 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... | Update (i.e., rename) the tag
:param str name: the new name for the tag
:return: an updated `Tag` object
:rtype: Tag
:raises DOAPIError: if the API endpoint replies with an error | "Update (i.e., rename) the tag\n\n :param str name: the new name for the tag\n :return: an updated `Tag` object\n :rtype: Tag\n :raises DOAPIError: if the API endpoint replies with an error" | 176 | false | jwodder/doapi | update_tag | 3,230 | |
LDU_FT/openvax/varlens/group_by_match | 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 group_by_match 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 group_by_match 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... | Given a variant, split the PileupCollection based on whether it the
data supports the reference allele, the alternate allele, or neither.
Parameters
----------
variant : Variant
The variant. Must have fields 'locus', 'ref', and 'alt'.
Returns
----------
... | "Given a variant, split the PileupCollection based on whether it the\n data supports the reference allele, the alternate allele, or neither.\n\n Parameters\n ----------\n variant : Variant\n The variant. Must have fields 'locus', 'ref', and 'alt'.\n\n Returns\n -----... | 130 | false | openvax/varlens | group_by_match | 3,231 | |
LDU_FT/codenerix/django-codenerix-invoicing/create_invoice_from_albaran | LDU_FT | [
"<BEGIN>\n## `buy_product`",
"determina si el customer ha comprado un producto\n<END>",
"<BEGIN>\n## `find`",
"Get a valid CashDiary for today from the given POS, it will return:\n - None: if no CashDiary is available today and older one was already closed\n - New CashDiary: if no CashDi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_invoice_from_albaran 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 create_invoice_from_albaran API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | la pk y list_lines son de albaranes, necesitamos la info de las lineas de pedidos | "la pk y list_lines son de albaranes, necesitamos la info de las lineas de pedidos" | 38 | false | codenerix/django-codenerix-invoicing | create_invoice_from_albaran | 3,232 | |
LDU_FT/spacetelescope/drizzlepac/_dbg_dump_virtual_outputs | LDU_FT | [
"<BEGIN>\n## `check_and_get_data`",
"Verify that all specified files are present. If not, retrieve them from MAST.",
" Parameters\n ----------\n input_list : list\n List of one or more calibrated fits images that will be used for catalog generation.",
" Returns\n =======\n total_input... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dbg_dump_virtual_outputs 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 _dbg_dump_virtual_outputs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | dump some helpful information. strictly for debugging | "dump some helpful information. strictly for debugging" | 1,138 | true | spacetelescope/drizzlepac | _dbg_dump_virtual_outputs | 3,233 | |
LDU_FT/Britefury/batchup/shuffled_indices_batch_iterator | LDU_FT | [
"<BEGIN>\n## `num_batches`",
"Compute the number of mini-batches required to cover a data set of\n size `n` using batches of size `batch_size`.",
" Parameters\n ----------\n n: int\n the number of samples in the data set\n batch_size: int\n the mini-batch size",
" Returns\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shuffled_indices_batch_iterator 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 shuffled_indices_batch_iterator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Create an iterator that generates randomly shuffled mini-batches of
sample indices. The batches will have `batch_size` elements.
The generated mini-batches indices take the form of 1D NumPy integer
arrays.
Parameters
----------
batch_size: int
Mini-batch siz... | "Create an iterator that generates randomly shuffled mini-batches of\n sample indices. The batches will have `batch_size` elements.\n\n The generated mini-batches indices take the form of 1D NumPy integer\n arrays.\n\n Parameters\n ----------\n batch_size: int\n Mini... | 194 | false | Britefury/batchup | shuffled_indices_batch_iterator | 3,234 | |
LDU_FT/openvax/mhcflurry/transform | LDU_FT | [
"<BEGIN>\n## `extend`",
"Return a new HyperparameterDefaults instance containing the\n hyperparameters from the current instance combined with\n those from other.",
" It is an error if self and other have any hyperparameters in\n common.\n<END>",
"<BEGIN>\n## `with_defaults`",
"G... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform 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 transform 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 percent ranks (range [0, 100]) for the given values. | "Return percent ranks (range [0, 100]) for the given values." | 272 | false | openvax/mhcflurry | transform | 3,235 | |
LDU_FT/coumbole/mailscanner/open_connection | LDU_FT | [
"<BEGIN>\n## `date_is_valid`",
"Checks if dates (e.g. [\"17\", \"11\"] ) is valid and returns bool",
" Checks if the first element is between 1 and 31\n and the second element is between 1 and 12.",
" Keyword arguments:\n dates -- list of numbers",
" Returns:\n True if the date is valid, F... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_connection 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 open_connection 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... | Initializes a new IMAP4_SSL connection to an email server. | "Initializes a new IMAP4_SSL connection to an email server." | 49 | false | coumbole/mailscanner | open_connection | 3,236 | |
LDU_FT/contentful-labs/contentful.py/resolve_links | LDU_FT | [
"<BEGIN>\n## `resolve_links`",
"Attempt to resolve all internal links (locally).",
" In case the linked resources are found either as members of the array or within\n the `includes` element, those will be replaced and reference the actual resources.\n No network calls will be performed.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_links 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 resolve_links 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... | Attempt to resolve all internal links (locally).
In case the linked resources are found either as members of the array or within
the `includes` element, those will be replaced and reference the actual resources.
No network calls will be performed. | "Attempt to resolve all internal links (locally).\n\n In case the linked resources are found either as members of the array or within\n the `includes` element, those will be replaced and reference the actual resources.\n No network calls will be performed." | 66 | false | contentful-labs/contentful.py | resolve_links | 3,237 | |
LDU_FT/jamieleshaw/lurklib/get_lusers | LDU_FT | [
"<BEGIN>\n## `find`",
"Finds needle in haystack.\n If needle is found return True, if not return False.\n Required arguments:\n * haystack - Text to search in.\n * needle - Text to search for.\n<END>",
"<BEGIN>\n## `send`",
"Send a raw string with the CR-LF appended to it.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lusers 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 get_lusers 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... | Get the LUSERS information.
Optional arguments:
* mask=None - Mask to get LUSERS information of.
* target=None - Forward the query. | "Get the LUSERS information.\n Optional arguments:\n * mask=None - Mask to get LUSERS information of.\n * target=None - Forward the query." | 112 | false | jamieleshaw/lurklib | get_lusers | 3,238 | |
LDU_FT/ntucllab/libact/fit_transform | LDU_FT | [
"<BEGIN>\n## `report_entry_label`",
"Return the best label of the asked entry.",
" Parameters\n ----------\n entry_id : int\n The index of the sample to ask.",
" Returns\n -------\n label: object\n The best label of the given sample.\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_transform 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 fit_transform 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... | Fit the data from X, and returns the embedded coordinates
Parameters
----------
X : array, shape=[n_samples, n_features], or [n_samples, n_samples] \
if dissimilarity='precomputed'
Input data.
init : {None or ndarray, shape (n_samples,)}, optional
... | "Fit the data from X, and returns the embedded coordinates\r\n\r\n Parameters\r\n ----------\r\n X : array, shape=[n_samples, n_features], or [n_samples, n_samples] \\\r\n if dissimilarity='precomputed'\r\n Input data.\r\n\r\n init : {None or ndarray, shape (n_sampl... | 128 | false | ntucllab/libact | fit_transform | 3,239 | |
LDU_FT/XiaochenCui/cxc-gis/is_intersect | LDU_FT | [
"<BEGIN>\n## `on_segment`",
"Given three colinear points p, q, r, the function checks if point q\n lies on line segment \"pr\"",
" :param point_p:\n :type point_p: models.Point\n :param point_q:\n :type point_q: models.Point\n :param point_r:\n :type point_r: models.Point\n :return: if p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_intersect 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 is_intersect 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... | Determine if lina_a intersect with line_b
:param lina_a:
:type lina_a: models.Line
:param lina_b:
:type line_b: models.Line
:return:
:rtype: bool | "Determine if lina_a intersect with line_b\n\n :param lina_a:\n :type lina_a: models.Line\n :param lina_b:\n :type line_b: models.Line\n :return:\n :rtype: bool" | 18 | false | XiaochenCui/cxc-gis | is_intersect | 3,240 | |
LDU_FT/HDI-Project/RDT/get_col_info | LDU_FT | [
"<BEGIN>\n## `check_data_type`",
"Check the type of the transformer and column match.",
" Args:\n column_metadata(dict): Metadata of the column.",
" Raises a ValueError if the types don't match\n<END>",
"<BEGIN>\n## `fit`",
"Prepare the transformer to convert data.",
" Ar... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_col_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_col_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 extr... | Return the content and metadata of a fiven column.
Args:
table_name(str): Name of the table.
col_name(str): Name of the column.
meta_file(str): Path to the meta.json file.
Returns:
tuple(pandas.Series, dict) | "Return the content and metadata of a fiven column.\n\n Args:\n table_name(str): Name of the table.\n col_name(str): Name of the column.\n meta_file(str): Path to the meta.json file.\n\n Returns:\n tuple(pandas.Series, dict)" | 154 | false | HDI-Project/RDT | get_col_info | 3,241 | |
LDU_FT/zeaphoo/reston/get_instructions | LDU_FT | [
"<BEGIN>\n## `get_access_flags_string`",
"Transform an access flags to the corresponding string",
" :param value: the value of the access flags\n :type value: int",
" :rtype: string\n<END>",
"<BEGIN>\n## `get_shorty_idx_value`",
"Return the string associated to the shorty_idx",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instructions 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 get_instructions 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 ... | Get all instructions from a basic block.
:rtype: Return all instructions in the current basic block | "Get all instructions from a basic block.\n\n :rtype: Return all instructions in the current basic block" | 152 | false | zeaphoo/reston | get_instructions | 3,242 | |
LDU_FT/vmlaker/mpipe/init2 | LDU_FT | [
"<BEGIN>\n## `init2`",
"Create *num_workers* worker objects with *input_tube* and \n an iterable of *output_tubes*. The worker reads a task from *input_tube* \n and writes the result to *output_tubes*.\n<END>",
"<BEGIN>\n## `assemble`",
"Create, assemble and start workers.\n Workers are c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init2 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 init2 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... | Create *num_workers* worker objects with *input_tube* and
an iterable of *output_tubes*. The worker reads a task from *input_tube*
and writes the result to *output_tubes*. | "Create *num_workers* worker objects with *input_tube* and \n an iterable of *output_tubes*. The worker reads a task from *input_tube* \n and writes the result to *output_tubes*." | 28 | false | vmlaker/mpipe | init2 | 3,243 | |
LDU_FT/CivicSpleen/ambry/phase_search_names | LDU_FT | [
"<BEGIN>\n## `_or_join`",
"Joins terms using OR operator.",
" Args:\n terms (list): terms to join",
" Examples:\n self._or_join(['term1', 'term2']) -> 'term1 | term2'",
" Returns:\n str\n<END>",
"<BEGIN>\n## `search`",
"Finds datasets by search phras... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the phase_search_names 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 phase_search_names 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... | Search the bundle.yaml metadata file for pipeline configurations. Looks for:
- <phase>-<source_table>
- <phase>-<dest_table>
- <phase>-<source_name> | "Search the bundle.yaml metadata file for pipeline configurations. Looks for:\n - <phase>-<source_table>\n - <phase>-<dest_table>\n - <phase>-<source_name>" | 1,165 | true | CivicSpleen/ambry | phase_search_names | 3,244 | |
LDU_FT/clld/clldutils/encoded | LDU_FT | [
"<BEGIN>\n## `parse`",
"Convert iso formatted timestamps found as values in the dict d to datetime objects.",
" :return: A shallow copy of d with converted timestamps.\n<END>",
"<BEGIN>\n## `dump`",
"Python 2 + 3 compatible version of json.dump.",
" :param obj: The object to be dumped.\n :param p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encoded 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 encoded 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... | Cast string to binary_type.
:param string: six.binary_type or six.text_type
:param encoding: encoding which the object is forced to
:return: six.binary_type | "Cast string to binary_type.\n\n :param string: six.binary_type or six.text_type\n :param encoding: encoding which the object is forced to\n :return: six.binary_type" | 70 | false | clld/clldutils | encoded | 3,245 | |
LDU_FT/EricCrosson/stump/debug | LDU_FT | [
"<BEGIN>\n## `configure`",
"Pass stump a logger to use. If no logger is supplied, a basic logger\n of level INFO will print to stdout.\n<END>",
"<BEGIN>\n## `ret`",
"Automatically log progress on function entry and exit. Default logging\n value: info. The function's return value will be included in the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the debug 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 debug 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... | Automatically log progress on function entry and exit. Default logging
value: debug.
*Logging with values contained in the parameters of the decorated function*
Message (args[0]) may be a string to be formatted with parameters passed to
the decorated function. Each '{varname}' will be replaced by the v... | "Automatically log progress on function entry and exit. Default logging\n value: debug.\n\n *Logging with values contained in the parameters of the decorated function*\n Message (args[0]) may be a string to be formatted with parameters passed to\n the decorated function. Each '{varname}' will be replaced by... | 53 | false | EricCrosson/stump | debug | 3,246 | |
LDU_FT/EventRegistry/event-registry-python/addConcept | LDU_FT | [
"<BEGIN>\n## `compute`",
"compute the list of most similar events for the given text\n<END>",
"<BEGIN>\n## `getUpdates`",
"Get the latest new or updated events from Event Registry\n NOTE: call this method exactly once per minute - calling it more frequently will return the same results multiple times,\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addConcept 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 addConcept 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... | add a relevant concept to the topic page
@param conceptUri: uri of the concept to be added
@param weight: importance of the provided concept (typically in range 1 - 50) | "add a relevant concept to the topic page\n @param conceptUri: uri of the concept to be added\n @param weight: importance of the provided concept (typically in range 1 - 50)" | 89 | false | EventRegistry/event-registry-python | addConcept | 3,247 | |
LDU_FT/simpleai-team/simpleai/_backtracking | LDU_FT | [
"<BEGIN>\n## `_all_expander`",
"Expander that expands all nodes on the fringe.\n<END>",
"<BEGIN>\n## `beam`",
"Beam search.",
" beam_size is the size of the beam.\n If iterations_limit is specified, the algorithm will end after that\n number of iterations. Else, it will continue until it can't find... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _backtracking 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 _backtracking 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... | Internal recursive backtracking algorithm. | "Internal recursive backtracking algorithm." | 130 | false | simpleai-team/simpleai | _backtracking | 3,248 | |
LDU_FT/cocaine/cocaine-framework-python/add | LDU_FT | [
"<BEGIN>\n## `fetch_token`",
"Gains token from secure backend service.",
" :return: Token formatted for Cocaine protocol header.\n<END>",
"<BEGIN>\n## `make_secure_adaptor`",
":param service: Service to wrap in.\n :param mod: Name (type) of token refresh backend.\n :param client_id: Cli... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add 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 doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add 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 doc... | Adds a new entry to the table
We reduce the table size if the entry will make the
table size greater than maxsize. | "Adds a new entry to the table\n\n We reduce the table size if the entry will make the\n table size greater than maxsize." | 33 | false | cocaine/cocaine-framework-python | add | 3,249 | |
LDU_FT/xguse/table_enforcer/bounded_length | LDU_FT | [
"<BEGIN>\n## `minmax`",
"Test that the data items fall within range: low <= x <= high.\n<END>",
"<BEGIN>\n## `choice`",
"Test that the data items are members of the set `choices`.\n<END>",
"<BEGIN>\n## `bounded_length`",
"Test that the length of the data items fall within range: low <= x <= high.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bounded_length 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 bounded_length 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... | Test that the length of the data items fall within range: low <= x <= high.
If high is None, treat as exact length. | "Test that the length of the data items fall within range: low <= x <= high.\n\n If high is None, treat as exact length." | 42 | false | xguse/table_enforcer | bounded_length | 3,250 | |
LDU_FT/daviddrysdale/python-phonenumbers/_clear | LDU_FT | [
"<BEGIN>\n## `_get_metadata_for_region`",
"The metadata needed by this class is the same for all regions\n sharing the same country calling code. Therefore, we return the\n metadata for \"main\" region for this country calling code.\n<END>",
"<BEGIN>\n## `_maybe_create_new_template`",
"Returns True if a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clear 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 _clear 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 ... | Clears the internal state of the formatter, so it can be reused. | "Clears the internal state of the formatter, so it can be reused." | 501 | false | daviddrysdale/python-phonenumbers | _clear | 3,251 | |
LDU_FT/aamalev/aiohttp_apiset/url_for | LDU_FT | [
"<BEGIN>\n## `url_for`",
"Construct url for route with additional params.\n<END>",
"<BEGIN>\n## `deref`",
"Return dereference data\n :param data:\n :param spec:\n :return:\n<END>",
"<BEGIN>\n## `build_swagger_data`",
"Prepare data when schema loaded",
" :param swagger_schema: loaded sche... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_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 extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_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 extracted... | Construct url for route with additional params. | "Construct url for route with additional params." | 48 | false | aamalev/aiohttp_apiset | url_for | 3,252 | |
LDU_FT/timothycrosley/isort/chdir | LDU_FT | [
"<BEGIN>\n## `iter_source_code`",
"Iterate over all Python source files defined in paths.\n<END>",
"<BEGIN>\n## `file_should_be_skipped`",
"Returns True if the file and/or folder should be skipped based on the passed in settings.\n<END>",
"<BEGIN>\n## `chdir`",
"Context manager for changing dir and restor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chdir 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 chdir 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... | Context manager for changing dir and restoring previous workdir after exit. | "Context manager for changing dir and restoring previous workdir after exit." | 44 | false | timothycrosley/isort | chdir | 3,253 | |
LDU_FT/xflr6/gsheets/doctemplate | LDU_FT | [
"<BEGIN>\n## `write_csv`",
"Dump rows to ``fileobj`` with the given ``encoding`` and CSV ``dialect``.\n<END>",
"<BEGIN>\n## `write_dataframe`",
"Dump ``rows`` to string buffer and load with ``pandas.read_csv()`` using ``kwargs``.\n<END>",
"<BEGIN>\n## `from_string`",
"Return a new SheetUrl instance from p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doctemplate 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 doctemplate 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 a decorator putting ``args`` into the docstring of the decorated ``func``.
>>> @doctemplate('spam', 'spam')
... def spam():
... '''Returns %s, lovely %s.'''
... return 'Spam'
>>> spam.__doc__
'Returns spam, lovely spam.' | "Return a decorator putting ``args`` into the docstring of the decorated ``func``.\n\n >>> @doctemplate('spam', 'spam')\n ... def spam():\n ... '''Returns %s, lovely %s.'''\n ... return 'Spam'\n\n >>> spam.__doc__\n 'Returns spam, lovely spam.'" | 93 | false | xflr6/gsheets | doctemplate | 3,254 | |
LDU_FT/LEMS/pylems/parse_derived_variable | LDU_FT | [
"<BEGIN>\n## `toxml`",
"Exports this object into a LEMS XML object\n<END>",
"<BEGIN>\n## `toxml`",
"Exports this object into a LEMS XML object\n<END>",
"<BEGIN>\n## `tokenize`",
"Tokenizes the string stored in the parser object into a list\n of tokens.\n<END>",
"<BEGIN>\n## `parse_token_list_rec`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_derived_variable 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 parse_derived_variable 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 <DerivedVariable>
@param node: Node containing the <DerivedVariable> element
@type node: xml.etree.Element
@raise ParseError: Raised when no name of specified for the derived variable. | "Parses <DerivedVariable>\n\n @param node: Node containing the <DerivedVariable> element\n @type node: xml.etree.Element\n\n @raise ParseError: Raised when no name of specified for the derived variable." | 441 | false | LEMS/pylems | parse_derived_variable | 3,255 | |
LDU_FT/simoninireland/epyc/success | LDU_FT | [
"<BEGIN>\n## `_parametersAsIndex`",
"Private method to turn a parameter dict into a string suitable for\n keying a dict.",
" ps: the parameters as a hash\n returns: a string key\n<END>",
"<BEGIN>\n## `addResult`",
"Add a result. This should be :term:`results dict` as returned from\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the success 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 success 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... | Test whether the experiment has been run successfully. This will
be False if the experiment hasn't been run, or if it's been run and
failed (in which case the exception will be stored in the metadata).
:returns: ``True`` if the experiment has been run successfully | "Test whether the experiment has been run successfully. This will\n be False if the experiment hasn't been run, or if it's been run and\n failed (in which case the exception will be stored in the metadata).\n\n :returns: ``True`` if the experiment has been run successfully" | 116 | false | simoninireland/epyc | success | 3,256 | |
LDU_FT/acrisci/i3ipc-python/_recv_robust | LDU_FT | [
"<BEGIN>\n## `_pack`",
"Packs the given message type and payload. Turns the resulting\n message into a byte string.\n<END>",
"<BEGIN>\n## `_unpack`",
"Unpacks the given byte string and parses the result from JSON.\n Returns None on failure and saves data into \"self.buffer\".\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _recv_robust 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 _recv_robust 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... | Receive size from sock, and retry if the recv() call was interrupted.
(this is only required for python2 compatability) | "Receive size from sock, and retry if the recv() call was interrupted.\n (this is only required for python2 compatability)" | 69 | false | acrisci/i3ipc-python | _recv_robust | 3,257 | |
LDU_FT/OnroerendErfgoed/crabpy/list_deelgemeenten_by_gemeente | LDU_FT | [
"<BEGIN>\n## `crab_gateway_request`",
"Utility function that helps making requests to the CRAB service.",
" This is a specialised version of :func:`crabpy.client.crab_request` that\n allows adding extra functionality for the calls made by the gateway.",
" :param client: A :class:`suds.client.Client` ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_deelgemeenten_by_gemeente API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_deelgemeenten_by_gemeente API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | List all `deelgemeenten` in a `gemeente`.
:param gemeente: The :class:`Gemeente` for which the \
`deelgemeenten` are wanted. Currently only Flanders is supported.
:rtype: A :class:`list` of :class:`Deelgemeente`. | "List all `deelgemeenten` in a `gemeente`.\n\n :param gemeente: The :class:`Gemeente` for which the \\\n `deelgemeenten` are wanted. Currently only Flanders is supported.\n :rtype: A :class:`list` of :class:`Deelgemeente`." | 196 | false | OnroerendErfgoed/crabpy | list_deelgemeenten_by_gemeente | 3,258 | |
LDU_FT/konomae/lastpass-python/parse_ACCT | LDU_FT | [
"<BEGIN>\n## `open_remote`",
"Fetches a blob from the server and creates a vault\n<END>",
"<BEGIN>\n## `fetch_blob`",
"Just fetches the blob, could be used to store it locally\n<END>",
"<BEGIN>\n## `extract_chunks`",
"Splits the blob into chucks grouped by kind.\n<END>",
"<BEGIN>\n## `parse_ACCT`",
"P... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_ACCT 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 parse_ACCT 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... | Parses an account chunk, decrypts and creates an Account object.
May return nil when the chunk does not represent an account.
All secure notes are ACCTs but not all of them strore account
information. | "Parses an account chunk, decrypts and creates an Account object.\n May return nil when the chunk does not represent an account.\n All secure notes are ACCTs but not all of them strore account\n information." | 18 | false | konomae/lastpass-python | parse_ACCT | 3,259 | |
LDU_FT/SetBased/py-stratum/_update_metadata | LDU_FT | [
"<BEGIN>\n## `log_verbose`",
"Logs a message only when logging level is verbose.",
" :param str|list[str] message: The message.\n<END>",
"<BEGIN>\n## `log_very_verbose`",
"Logs a message only when logging level is very verbose.",
" :param str|list[str] message: The message.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_metadata 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 _update_metadata 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 ... | Updates the metadata of the stored routine. | "Updates the metadata of the stored routine." | 189 | false | SetBased/py-stratum | _update_metadata | 3,260 | |
LDU_FT/dropbox/pyannotate/_make_sampling_sequence | LDU_FT | [
"<BEGIN>\n## `parse_json`",
"Deserialize a JSON file containing runtime collected types.",
" The input JSON is expected to to have a list of RawEntry items.\n<END>",
"<BEGIN>\n## `tokenize`",
"Translate a type comment into a list of tokens.\n<END>",
"<BEGIN>\n## `generate_annotations_json_string`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_sampling_sequence 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 _make_sampling_sequence API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Return a list containing the proposed call event sampling sequence.
Return events are paired with call events and not counted separately.
This is 0, 1, 2, ..., 4 plus 50, 100, 150, 200, etc.
The total list size is n. | "Return a list containing the proposed call event sampling sequence.\n\n Return events are paired with call events and not counted separately.\n\n This is 0, 1, 2, ..., 4 plus 50, 100, 150, 200, etc.\n\n The total list size is n." | 93 | false | dropbox/pyannotate | _make_sampling_sequence | 3,261 | |
LDU_FT/ziwenxie/netease-dl/get_user_playlists | LDU_FT | [
"<BEGIN>\n## `download_song_by_search`",
"Download a song by its name.",
" :params song_name: song name.\n<END>",
"<BEGIN>\n## `download_song_by_id`",
"Download a song by id and save it to disk.",
" :params song_id: song id.\n :params song_name: song name.\n :params folder: sto... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_playlists 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 get_user_playlists 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... | Get a user's all playlists.
warning: login is required for private playlist.
:params user_id: user id.
:params limit: playlist count returned by weapi.
:return: a Playlist Object. | "Get a user's all playlists.\n\n warning: login is required for private playlist.\n :params user_id: user id.\n :params limit: playlist count returned by weapi.\n :return: a Playlist Object." | 99 | false | ziwenxie/netease-dl | get_user_playlists | 3,262 | |
LDU_FT/OzymandiasTheGreat/python-libinput/is_gesture | LDU_FT | [
"<BEGIN>\n## `events`",
"Yield events from the internal libinput's queue.",
"\t\tYields device events that are subclasses of\n\t\t:class:`~libinput.event.Event`.",
"\t\tYields:\n\t\t\t:class:`~libinput.event.Event`: Device event.\n<END>",
"<BEGIN>\n## `next_event_type`",
"Return the type of the next event... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_gesture 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 is_gesture 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... | Macro to check if this event is
a :class:`~libinput.event.GestureEvent`. | "Macro to check if this event is\n\t\ta :class:`~libinput.event.GestureEvent`." | 320 | false | OzymandiasTheGreat/python-libinput | is_gesture | 3,263 | |
LDU_FT/uw-it-aca/uw-restclients-core/postURL | LDU_FT | [
"<BEGIN>\n## `retry`",
"Decorator function for retrying the decorated function,\n using an exponential or fixed backoff.",
" Original: https://wiki.python.org/moin/PythonDecoratorLibrary#Retry",
" ExceptionToCheck: the exception to check. Can be a tuple of\n exceptions to check\n tries: num... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the postURL 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 postURL 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... | Request a URL using the HTTP method POST. | "Request a URL using the HTTP method POST." | 21 | false | uw-it-aca/uw-restclients-core | postURL | 3,264 | |
LDU_FT/starling-lab/rnlp/_removeStopwords | LDU_FT | [
"<BEGIN>\n## `_writeSentenceInBlock`",
"writes the sentence in a block to a file with the id\n<END>",
"<BEGIN>\n## `_writeWordFromSentenceInBlock`",
"writes the word from a sentence in a block to a file with the id\n<END>",
"<BEGIN>\n## `_writeBk`",
"Writes a background file to disk.",
" :param targe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _removeStopwords 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 _removeStopwords 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 ... | Removes stopwords contained in a list of words.
:param text_string: A list of strings.
:type text_string: list.
:returns: The input ``text_list`` with stopwords removed.
:rtype: list | "Removes stopwords contained in a list of words.\n\n :param text_string: A list of strings.\n :type text_string: list.\n\n :returns: The input ``text_list`` with stopwords removed.\n :rtype: list" | 50 | false | starling-lab/rnlp | _removeStopwords | 3,265 | |
LDU_FT/lsst-sqre/zenodio/_pluralize | LDU_FT | [
"<BEGIN>\n## `harvest_collection`",
"Harvest a Zenodo community's record metadata.",
" Examples\n --------\n You can harvest record metadata for a Zenodo community via its identifier\n name. For example, the identifier for LSST Data Management's Zenodo\n collection is ``'lsst-dm'``:",
" >>> ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pluralize 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 _pluralize 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... | Force the value of a datacite3 key to be a list.
>>> _pluralize(xml_input['authors'], 'author')
['Sick, Jonathan', 'Economou, Frossie']
Background
----------
When `xmltodict` proceses metadata, it turns XML tags into new key-value
pairs whenever possible, even if the value should semantically ... | "Force the value of a datacite3 key to be a list.\n\n >>> _pluralize(xml_input['authors'], 'author')\n ['Sick, Jonathan', 'Economou, Frossie']\n\n Background\n ----------\n When `xmltodict` proceses metadata, it turns XML tags into new key-value\n pairs whenever possible, even if the value should sema... | 43 | false | lsst-sqre/zenodio | _pluralize | 3,266 | |
LDU_FT/rosenbrockc/fortpy/_py_code_variables | LDU_FT | [
"<BEGIN>\n## `setup_regex`",
"Sets up the patterns and compiled regex objects for parsing types.\n<END>",
"<BEGIN>\n## `parse_signature`",
"Parses the specified line as a new version of the signature for 'element'.",
" :arg statement: the string that has the new signature.\n :arg element: the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _py_code_variables 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 _py_code_variables 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... | Adds the variable code lines for all the parameters in the executable.
:arg lparams: a list of the local variable declarations made so far that need to be passed
to the executable when it is called. | "Adds the variable code lines for all the parameters in the executable.\n\n :arg lparams: a list of the local variable declarations made so far that need to be passed\n to the executable when it is called." | 929 | false | rosenbrockc/fortpy | _py_code_variables | 3,267 | |
LDU_FT/janpipek/physt/_bins_to_json | LDU_FT | [
"<BEGIN>\n## `register`",
"Decorator to wrap common plotting functionality.",
" Parameters\n ----------\n dim : Dimensionality of histogram for which it is applicable\n use_3d : If True, the figure will be 3D.\n use_polar : If True, the figure will be in polar coordinates.\n collection : Wheth... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bins_to_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 _bins_to_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... | Create GeoJSON representation of histogram bins
Parameters
----------
h2: physt.histogram_nd.Histogram2D
A histogram of coordinates (in degrees)
Returns
-------
geo_json : dict | "Create GeoJSON representation of histogram bins\n\n Parameters\n ----------\n h2: physt.histogram_nd.Histogram2D\n A histogram of coordinates (in degrees)\n\n Returns\n -------\n geo_json : dict" | 460 | false | janpipek/physt | _bins_to_json | 3,268 | |
LDU_FT/dcwatson/bbcode/tokenize | LDU_FT | [
"<BEGIN>\n## `render_html`",
"A module-level convenience method that creates a default bbcode parser,\n and renders the input string as HTML.\n<END>",
"<BEGIN>\n## `add_formatter`",
"Installs a render function for the specified tag name. The render function\n should have the following signature:",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize 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 tokenize 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... | Tokenizes the given string. A token is a 4-tuple of the form:
(token_type, tag_name, tag_options, token_text)
token_type
One of: TOKEN_TAG_START, TOKEN_TAG_END, TOKEN_NEWLINE, TOKEN_DATA
tag_name
The name of the tag if token_type=TOKEN_TAG_*, otherwi... | "Tokenizes the given string. A token is a 4-tuple of the form:\n\n (token_type, tag_name, tag_options, token_text)\n\n token_type\n One of: TOKEN_TAG_START, TOKEN_TAG_END, TOKEN_NEWLINE, TOKEN_DATA\n tag_name\n The name of the tag if token_type=TOKEN_TAG_*,... | 36 | false | dcwatson/bbcode | tokenize | 3,269 | |
LDU_FT/metapensiero/metapensiero.signal/is_handler | LDU_FT | [
"<BEGIN>\n## `get_subscribers`",
"Get per-instance subscribers from the signal.\n<END>",
"<BEGIN>\n## `notify_prepared`",
"Like notify allows to pass more options to the underlying\n `Signal.prepare_notification()` method.",
" The allowed options are:",
" notify_external : bool\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_handler 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 is_handler 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... | Detect an handler and return its wanted signal name. | "Detect an handler and return its wanted signal name." | 47 | false | metapensiero/metapensiero.signal | is_handler | 3,270 | |
LDU_FT/blockstack/blockstack-core/rpc_get_name_cost | LDU_FT | [
"<BEGIN>\n## `anyword_substring_search_inner`",
"return True if ANY target_word matches a query_word\n<END>",
"<BEGIN>\n## `search_people_by_bio`",
"queries lucene index to find a nearest match, output is profile username\n<END>",
"<BEGIN>\n## `order_search_results`",
"order of results should be a) query ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rpc_get_name_cost 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 rpc_get_name_cost 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... | Return the cost of a given name.
Returns {'amount': ..., 'units': ...} | "Return the cost of a given name.\n Returns {'amount': ..., 'units': ...}" | 1,580 | true | blockstack/blockstack-core | rpc_get_name_cost | 3,271 | |
LDU_FT/mk-fg/python-pulse-control/default_set | LDU_FT | [
"<BEGIN>\n## `connect_to_cli`",
"Returns connected CLI interface socket (as file object, unless as_file=False),\n\t\t\twhere one can send same commands (as lines) as to \"pacmd\" tool\n\t\t\tor pulseaudio startup files (e.g. \"default.pa\").\n\t\t\"server\" option can be specified to use non-standard unix socket ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_set 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 default_set 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... | Set passed sink or source to be used as default one by pulseaudio server. | "Set passed sink or source to be used as default one by pulseaudio server." | 30 | false | mk-fg/python-pulse-control | default_set | 3,272 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.