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/asyrjasalo/RESTinstance/input | LDU_FT | [
"<BEGIN>\n## `set_client_cert`",
"*Sets the client cert for the requests.*",
" The cert is either a path to a .pem file, or a JSON array, or a list\n having the cert path and the key path.",
" Values ``null`` and ``${None}`` can be used for clearing the cert.",
" *Examples*",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the input API.
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 input API.
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... | *Converts the input to JSON and returns it.*
Any of the following is accepted:
- The path to JSON file
- Any scalar that can be interpreted as JSON
- A dictionary or a list
*Examples*
| ${payload} | `Input` | ${CURDIR}/payload.json |
| ${object} | `Input` | {... | "*Converts the input to JSON and returns it.*\n\n Any of the following is accepted:\n\n - The path to JSON file\n - Any scalar that can be interpreted as JSON\n - A dictionary or a list\n\n *Examples*\n\n | ${payload} | `Input` | ${CURDIR}/payload.json |\n\n | ${object} ... | 135 | false | asyrjasalo/RESTinstance | input | 5,073 | |
LDU_FT/click-contrib/click-configfile/merge_tree | LDU_FT | [
"<BEGIN>\n## `find_packages_by_root_package`",
"Better than excluding everything that is not needed,\n collect only what is needed.\n<END>",
"<BEGIN>\n## `make_long_description`",
"click_ is a framework to simplify writing composable commands for\n command-line tools. This package extends the click_ fun... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_tree API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_tree API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Copy entire contents of self to dst, overwriting existing
contents in dst with those in self.
If the additional keyword `update` is True, each
`src` will only be copied if `dst` does not exist,
or `src` is newer than `dst`.
Note that the technique employed stages the files in a... | "Copy entire contents of self to dst, overwriting existing\n contents in dst with those in self.\n\n If the additional keyword `update` is True, each\n `src` will only be copied if `dst` does not exist,\n or `src` is newer than `dst`.\n\n Note that the technique employed stages the fi... | 181 | false | click-contrib/click-configfile | merge_tree | 5,074 | |
LDU_FT/pavlov99/jsonapi/handler_view | LDU_FT | [
"<BEGIN>\n## `default`",
"Encode JSON.",
" :return str: A JSON encoded string\n<END>",
"<BEGIN>\n## `dump_document`",
"Get document for model_instance.",
" redefine dump rule for field x: def dump_document_x",
" :param django.db.models.Model instance: model instance\n :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handler_view API.
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 handler_view API.
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... | Handler for resources.
.. versionadded:: 0.5.7
Content-Type check
:return django.http.HttpResponse | "Handler for resources.\n\n .. versionadded:: 0.5.7\n Content-Type check\n\n :return django.http.HttpResponse" | 63 | false | pavlov99/jsonapi | handler_view | 5,075 | |
LDU_FT/nuagenetworks/monolithe/_write_abstract_named_entity | LDU_FT | [
"<BEGIN>\n## `raiseError`",
"Print an error message",
" Args:\n message: the message to print\n<END>",
"<BEGIN>\n## `json`",
"Print a nice JSON output",
" Args:\n message: the message to print\n<END>",
"<BEGIN>\n## `to_dict`",
"Transform the current ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_abstract_named_entity 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 _write_abstract_named_entity API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | This method generates AbstractNamedEntity class js file. | "This method generates AbstractNamedEntity class js file." | 69 | false | nuagenetworks/monolithe | _write_abstract_named_entity | 5,076 | |
LDU_FT/kyzima-spb/flask-pony/_create_relational_field | LDU_FT | [
"<BEGIN>\n## `get_success_url`",
"Args:\n obj (object): The object whose property values are used to build the URL.",
" Returns:\n str: The URL to which to go if the form was processed successfully.\n<END>",
"<BEGIN>\n## `get_template_name`",
"Returns the name of the template.",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_relational_field 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 _create_relational_field API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Creates the form element for working with entity relationships. | "Creates the form element for working with entity relationships." | 15 | false | kyzima-spb/flask-pony | _create_relational_field | 5,077 | |
LDU_FT/rigetti/pyquil/MOVE | LDU_FT | [
"<BEGIN>\n## `to_latex`",
"Translates a given pyquil Program to a TikZ picture in a Latex document.",
" :param Program circuit: The circuit to be drawn, represented as a pyquil program.\n :param dict settings: An optional dictionary with settings for drawing the circuit. See `get_default_settings`\n i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the MOVE API.
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 MOVE API.
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... | Produce a MOVE instruction.
:param classical_reg1: The first classical register, which gets modified.
:param classical_reg2: The second classical register or immediate value.
:return: A ClassicalMove instance. | "Produce a MOVE instruction.\n\n :param classical_reg1: The first classical register, which gets modified.\n :param classical_reg2: The second classical register or immediate value.\n :return: A ClassicalMove instance." | 1,152 | true | rigetti/pyquil | MOVE | 5,078 | |
LDU_FT/etgalloway/newtabmagic/start_server_background | LDU_FT | [
"<BEGIN>\n## `_get_object_pydoc_page_name`",
"Returns fully qualified name, including module name, except for the\n built-in module.\n<END>",
"<BEGIN>\n## `_remove_builtin_prefix`",
"Strip name of builtin module from start of name.\n<END>",
"<BEGIN>\n## `_get_user_ns_object`",
"Get object from the user... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_server_background 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 start_server_background API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Start the newtab server as a background process. | "Start the newtab server as a background process." | 16 | false | etgalloway/newtabmagic | start_server_background | 5,079 | |
LDU_FT/wdecoster/nanoget/process_fastq_plain | LDU_FT | [
"<BEGIN>\n## `process_summary`",
"Extracting information from an albacore summary file.",
" Only reads which have a >0 length are returned.",
" The fields below may or may not exist, depending on the type of sequencing performed.\n Fields 1-14 are for 1D sequencing.\n Fields 1-23 for 2D sequencing... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_fastq_plain 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 process_fastq_plain 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... | Combine metrics extracted from a fastq file. | "Combine metrics extracted from a fastq file." | 63 | false | wdecoster/nanoget | process_fastq_plain | 5,080 | |
LDU_FT/acutesoftware/AIKIF/parse_miss_cann | LDU_FT | [
"<BEGIN>\n## `where_am_i`",
"high level function that can estimate where user is based \n on predefined setups.\n<END>",
"<BEGIN>\n## `dump_all`",
"prints all attributes and returns them as a dictionary \n (mainly for testing how it will all integrate)\n<END>",
"<BEGIN>\n## `summarise`",
"extrap... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_miss_cann API.
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 parse_miss_cann API.
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... | extracts names from the node to get
counts of miss + cann on both sides | "extracts names from the node to get \n counts of miss + cann on both sides" | 486 | false | acutesoftware/AIKIF | parse_miss_cann | 5,081 | |
LDU_FT/dmcc/PyStanfordDependencies/stem | LDU_FT | [
"<BEGIN>\n## `convert_trees`",
"Convert a list of Penn Treebank formatted strings (ptb_trees)\n into Stanford Dependencies. The dependencies are represented\n as a list of sentences (CoNLL.Corpus), where each sentence\n (CoNLL.Sentence) is itself a list of CoNLL.Token objects.",
" Cu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stem API.
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 stem API.
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... | Returns the stem of word with specific form and part-of-speech
tag according to the Stanford lemmatizer. Lemmas are cached. | "Returns the stem of word with specific form and part-of-speech\n tag according to the Stanford lemmatizer. Lemmas are cached." | 56 | false | dmcc/PyStanfordDependencies | stem | 5,082 | |
LDU_FT/bitcraft/PyTMX/build_rects | LDU_FT | [
"<BEGIN>\n## `default_image_loader`",
"This default image loader just returns filename, rect, and any flags\n<END>",
"<BEGIN>\n## `decode_gid`",
"Decode a GID from TMX data",
" as of 0.7.0 it determines if the tile should be flipped when rendered\n as of 0.8.0 bit 30 determines if GID is rotated",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_rects API.
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 build_rects API.
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... | generate a set of non-overlapping rects that represents the distribution
of the specified gid.
useful for generating rects for use in collision detection
Use at your own risk: this is experimental...will change in future
GID Note: You will need to add 1 to the GID reported by Tiled.
:param tm... | "generate a set of non-overlapping rects that represents the distribution\n of the specified gid.\n\n useful for generating rects for use in collision detection\n\n Use at your own risk: this is experimental...will change in future\n\n GID Note: You will need to add 1 to the GID reported by Tiled.\n\n ... | 134 | false | bitcraft/PyTMX | build_rects | 5,083 | |
LDU_FT/rdireen/spherepy/zeros_coefs | LDU_FT | [
"<BEGIN>\n## `sbessely`",
"Returns a vector of spherical bessel functions yn:\r",
" x: The argument.\r\n N: values of n will run from 0 to N-1.\n<END>",
"<BEGIN>\n## `sbesselj`",
"Returns a vector of spherical bessel functions jn:\r",
" x: The argument.\r\n N: values of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zeros_coefs API.
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 zeros_coefs API.
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 a ScalarCoefs object or a VectorCoeffs object where each of the
coefficients is set to 0. The structure is such that *nmax* is th largest
*n* can be in c[n, m], and *mmax* is the largest *m* can be for any *n*.
(See *ScalarCoefs* and *VectorCoefs* for details.)
Examples::
... | "Returns a ScalarCoefs object or a VectorCoeffs object where each of the \r\n coefficients is set to 0. The structure is such that *nmax* is th largest \r\n *n* can be in c[n, m], and *mmax* is the largest *m* can be for any *n*.\r\n (See *ScalarCoefs* and *VectorCoefs* for details.)\r\n \r\n\r\n Example... | 194 | false | rdireen/spherepy | zeros_coefs | 5,084 | |
LDU_FT/pyslackers/sir-bot-a-lot/_import_plugins | LDU_FT | [
"<BEGIN>\n## `_configure`",
"Configure the core of sirbot",
" Merge the config with the default core config and configure logging.\n The default logging level is `INFO`\n<END>",
"<BEGIN>\n## `_import_plugins`",
"Import and register plugin in the plugin manager.",
" The pluggy library ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _import_plugins API.
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 _import_plugins API.
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... | Import and register plugin in the plugin manager.
The pluggy library is used as plugin manager. | "Import and register plugin in the plugin manager.\n\n The pluggy library is used as plugin manager." | 27 | false | pyslackers/sir-bot-a-lot | _import_plugins | 5,085 | |
LDU_FT/JNRowe/upoints/dump_zone_file | LDU_FT | [
"<BEGIN>\n## `import_locations`",
"Parse zoneinfo zone description data files.",
" ``import_locations()`` returns a list of :class:`Zone` objects.",
" It expects data files in one of the following formats::",
" AN\t+1211-06900\tAmerica/Curacao\n AO\t-0848+01314\tAfrica/Lu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_zone_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_zone_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Generate a zoneinfo compatible zone description table.
Returns:
list: zoneinfo descriptions | "Generate a zoneinfo compatible zone description table.\n\n Returns:\n list: zoneinfo descriptions" | 438 | false | JNRowe/upoints | dump_zone_file | 5,086 | |
LDU_FT/OCA/odoorpc/list | LDU_FT | [
"<BEGIN>\n## `commit`",
"Commit dirty records to the server. This method is automatically\n called when the `auto_commit` option is set to `True` (default).\n It can be useful to set the former option to `False` to get better\n performance by reducing the number of RPC requests generated.",
... | 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... | Return a list of all stored sessions available in the
`rc_file` file:
.. doctest::
:options: +SKIP
>>> import odoorpc
>>> odoorpc.ODOO.list()
['foo', 'bar']
Use the :func:`save <odoorpc.ODOO.save>` and
:func:`load <odoorpc.ODOO.load>` me... | "Return a list of all stored sessions available in the\n `rc_file` file:\n\n .. doctest::\n :options: +SKIP\n\n >>> import odoorpc\n >>> odoorpc.ODOO.list()\n ['foo', 'bar']\n\n Use the :func:`save <odoorpc.ODOO.save>` and\n :func:`load <odoorpc.OD... | 264 | false | OCA/odoorpc | list | 5,087 | |
LDU_FT/pyroscope/pyrobase/copy_image_from_url | LDU_FT | [
"<BEGIN>\n## `bwrite`",
"Encode a given object to a file or stream.\n<END>",
"<BEGIN>\n## `decode`",
"Decode data in C{self.data} and return deserialized object.",
" @param check_trailer: Raise error if trailing junk is found in data?\n @raise BencodeError: Invalid data.\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_image_from_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_image_from_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Copy image from given URL and return upload metadata. | "Copy image from given URL and return upload metadata." | 57 | false | pyroscope/pyrobase | copy_image_from_url | 5,088 | |
LDU_FT/jedie/DragonPy/parse_srec | LDU_FT | [
"<BEGIN>\n## `create_environment`",
"Creates a new environment in ``home_dir``.",
" If ``site_packages`` is true, then the global ``site-packages/``\n directory will be on the path.",
" If ``clear`` is true (default False) then the environment will\n first be cleared.\n<END>",
"<BEGIN>\n## `path... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_srec API.
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_srec API.
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... | Extract the data portion of a given S-Record (without checksum)
Returns: the record type, the lenght of the data section, the write address, the data itself and the checksum | "Extract the data portion of a given S-Record (without checksum)\n Returns: the record type, the lenght of the data section, the write address, the data itself and the checksum" | 223 | false | jedie/DragonPy | parse_srec | 5,089 | |
LDU_FT/jaraco/jaraco.windows/enable_symlink_privilege | LDU_FT | [
"<BEGIN>\n## `CryptUnprotectData`",
"Returns a tuple of (description, data) where description is the\n\tthe description that was passed to the CryptProtectData call and\n\tdata is the decrypted result.\n<END>",
"<BEGIN>\n## `set_data`",
"Use this method to set the data for this blob\n<END>",
"<BEGIN>\n## `m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_symlink_privilege 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 enable_symlink_privilege API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Try to assign the symlink privilege to the current process token.
Return True if the assignment is successful. | "Try to assign the symlink privilege to the current process token.\n\tReturn True if the assignment is successful." | 119 | false | jaraco/jaraco.windows | enable_symlink_privilege | 5,090 | |
LDU_FT/i3visio/osrframework/unsearchable_fields | LDU_FT | [
"<BEGIN>\n## `getResults`",
"Function to obtain the Dictionarythat represents this object.",
" :param parFound: values to return.",
" :return: The output format will be like:\n [{\"type\" : \"i3visio.email\", \"value\": \"foo@bar.com\", \"attributes\": [] }, {\"type\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unsearchable_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unsearchable_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | A list of all the fields that can't be searched by.
For example: names/usernames that are too short, emails that are
invalid etc. | "A list of all the fields that can't be searched by.\n \n For example: names/usernames that are too short, emails that are \n invalid etc." | 598 | false | i3visio/osrframework | unsearchable_fields | 5,091 | |
LDU_FT/icometrix/dicom2nifti/_is_multiframe_4d | LDU_FT | [
"<BEGIN>\n## `_get_gdcmconv`",
"Get the full path to gdcmconv.\n If not found raise error\n<END>",
"<BEGIN>\n## `compress_directory`",
"This function can be used to convert a folder of jpeg compressed images to an uncompressed ones",
" :param dicom_directory: directory of dicom files to compress\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_multiframe_4d API.
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 _is_multiframe_4d API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Use this function to detect if a dicom series is a philips multiframe 4D dataset | "Use this function to detect if a dicom series is a philips multiframe 4D dataset" | 243 | false | icometrix/dicom2nifti | _is_multiframe_4d | 5,092 | |
LDU_FT/ioos/cc-plugin-ncei/get_lon_variable | LDU_FT | [
"<BEGIN>\n## `check_timeseries_id`",
"Checks that if a variable exists for the time series id it has the appropriate attributes",
" :param netCDF4.Dataset dataset: An open netCDF dataset\n<END>",
"<BEGIN>\n## `check_recommended_attributes`",
"Feature type specific check of global recommended attribut... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lon_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.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lon_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.
The ... | Returns the variable for longitude
:param netCDF4.Dataset nc: netCDF dataset | "Returns the variable for longitude\n\n :param netCDF4.Dataset nc: netCDF dataset" | 134 | false | ioos/cc-plugin-ncei | get_lon_variable | 5,093 | |
LDU_FT/fmenabe/python-dokuwiki/set | LDU_FT | [
"<BEGIN>\n## `date`",
"DokuWiki returns dates of `xmlrpclib`/`xmlrpc.client` ``DateTime``\n type and the format changes between DokuWiki versions ... This function\n convert *date* to a `datetime` object.\n<END>",
"<BEGIN>\n## `utc2local`",
"DokuWiki returns date with a +0000 timezone. This function con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc... | Set *media* from *_bytes*. *overwrite* parameter specify if the media
must be overwrite if it exists remotely. | "Set *media* from *_bytes*. *overwrite* parameter specify if the media\n must be overwrite if it exists remotely." | 32 | false | fmenabe/python-dokuwiki | set | 5,094 | |
LDU_FT/jahuth/litus/len | LDU_FT | [
"<BEGIN>\n## `create_timing_signals`",
"Creates a linear list/np.array of timestamps and a list of integers, specifying the sequence \n and number of levels.",
" The levels are first rotated on the first dimension, then the second and so on. If the \n last dimension is -1, the number of lev... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the len API.
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 len API.
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... | Calculates the length of the Label Dimension from its minimum, maximum and wether it is discrete.
`resolution`:
`units`: output units
`conversion_function`:
`end_at_end`: additional switch for continuous behaviour | "Calculates the length of the Label Dimension from its minimum, maximum and wether it is discrete.\n\n `resolution`: \n `units`: output units \n `conversion_function`: \n `end_at_end`: additional switch for continuous behaviour" | 190 | false | jahuth/litus | len | 5,095 | |
LDU_FT/twneale/visitors/get_nodekey | LDU_FT | [
"<BEGIN>\n## `continues`",
"Method decorator signifying that the visitor should not visit the\n current node's children once this method has been invoked.\n<END>",
"<BEGIN>\n## `get_methodnames`",
"Given a node, generate all names for matching visitor methods.\n<END>",
"<BEGIN>\n## `get_method`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nodekey API.
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_nodekey API.
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... | Given a particular token, check the visitor instance for methods
mathing the computed methodnames (the function is a generator). | "Given a particular token, check the visitor instance for methods\n mathing the computed methodnames (the function is a generator)." | 19 | false | twneale/visitors | get_nodekey | 5,096 | |
LDU_FT/dmwm/DBS/updateType | LDU_FT | [
"<BEGIN>\n## `inputChecks`",
"This is a function to check all the input for GET APIs.\n<END>",
"<BEGIN>\n## `validateStringInput`",
"To check if a string has the required format. This is only used for POST APIs.\n<END>",
"<BEGIN>\n## `execute`",
"Lists all primary datasets if pattern is not provided.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updateType API.
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 updateType API.
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... | Used to change the status of a dataset type (production/etc.) | "Used to change the status of a dataset type (production/etc.)" | 352 | false | dmwm/DBS | updateType | 5,097 | |
LDU_FT/tmbo/questionary/form | LDU_FT | [
"<BEGIN>\n## `default_values_of`",
"Return the defaults of the function `func`.\n<END>",
"<BEGIN>\n## `required_arguments`",
"Return all arguments of a function that do not have a default value.\n<END>",
"<BEGIN>\n## `text`",
"Prompt the user to enter a free text message.",
" This question type ca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the form API.
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 form API.
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... | Create a form with multiple questions.
The parameter name of a question will be the key for the answer in
the returned dict. | "Create a form with multiple questions.\n\n The parameter name of a question will be the key for the answer in\n the returned dict." | 84 | false | tmbo/questionary | form | 5,098 | |
LDU_FT/jonhadfield/creds/describe_users | LDU_FT | [
"<BEGIN>\n## `create_plan`",
"Determine what changes are required.",
" args:\n existing_users (Users): List of discovered users\n proposed_users (Users): List of proposed users\n purge_undefined (bool): Remove discovered users that have not been defined in proposed users list\n pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe_users API.
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 describe_users API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return a list of users matching a filter (if provided). | "Return a list of users matching a filter (if provided)." | 71 | false | jonhadfield/creds | describe_users | 5,099 | |
LDU_FT/AndrewAnnex/SpiceyPy/et2lst | LDU_FT | [
"<BEGIN>\n## `_distribution_info`",
"Creates the distribution name and the expected extension for the\n CSPICE package and returns it.",
" :return (distribution, extension) tuple where distribution is the best\n guess from the strings available within the platform_urls list\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the et2lst API.
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 et2lst API.
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 ... | Given an ephemeris epoch, compute the local solar time for
an object on the surface of a body at a specified longitude.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/et2lst_c.html
:param et: Epoch in seconds past J2000 epoch.
:type et: float
:param body: ID-code of the body of interest.
... | "Given an ephemeris epoch, compute the local solar time for\n an object on the surface of a body at a specified longitude.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/et2lst_c.html\n\n :param et: Epoch in seconds past J2000 epoch.\n :type et: float\n :param body: ID-code of the body of in... | 2,164 | true | AndrewAnnex/SpiceyPy | et2lst | 5,100 | |
LDU_FT/mezz64/pyEight/current_values | LDU_FT | [
"<BEGIN>\n## `fetch_userid`",
"Return the userid for the specified bed side.\n<END>",
"<BEGIN>\n## `room_temperature`",
"Return room temperature for both sides of bed.\n<END>",
"<BEGIN>\n## `heating_values`",
"Return a dict of all the current heating values.\n<END>",
"<BEGIN>\n## `current_sleep_stage`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the current_values API.
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 current_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return a dict of all the 'current' parameters. | "Return a dict of all the 'current' parameters." | 37 | false | mezz64/pyEight | current_values | 5,101 | |
LDU_FT/OpenAssets/openassets/leb128_decode | LDU_FT | [
"<BEGIN>\n## `issue`",
"Creates a transaction for issuing an asset.",
" :param TransferParameters issuance_spec: The parameters of the issuance.\n :param bytes metadata: The metadata to be embedded in the transaction.\n :param int fees: The fees to include in the transaction.\n :retu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the leb128_decode API.
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 leb128_decode API.
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... | Decodes a LEB128-encoded unsigned integer.
:param BufferedIOBase data: The buffer containing the LEB128-encoded integer to decode.
:return: The decoded integer.
:rtype: int | "Decodes a LEB128-encoded unsigned integer.\n\n :param BufferedIOBase data: The buffer containing the LEB128-encoded integer to decode.\n :return: The decoded integer.\n :rtype: int" | 60 | false | OpenAssets/openassets | leb128_decode | 5,102 | |
LDU_FT/python-odin/odinweb/values | LDU_FT | [
"<BEGIN>\n## `action`",
"Decorator to apply an action to a resource. An action is applied to a `detail` operation.\n<END>",
"<BEGIN>\n## `listing`",
"Decorator to configure an operation that returns a list of resources.\n<END>",
"<BEGIN>\n## `create`",
"Decorator to configure an operation that creates a r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the values API.
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 values API.
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 ... | Yield the last value on every key list.
:param multi: If set to `True` the iterator returned will have a pair
for each value of each key. Otherwise it will only
contain pairs for the lasted added of each key. | "Yield the last value on every key list.\n\n :param multi: If set to `True` the iterator returned will have a pair\n for each value of each key. Otherwise it will only\n contain pairs for the lasted added of each key." | 139 | false | python-odin/odinweb | values | 5,103 | |
LDU_FT/sci-bots/mpm/parse_args | LDU_FT | [
"<BEGIN>\n## `update_plugin_dialog`",
"Launch dialog to track status of update of specified plugin package.",
" .. versionadded:: 0.19",
" .. versionchanged:: 0.20\n Add support for updating multiple packages (update all **installed**\n plugins by default).",
" Add :data:`update_a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_args API.
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_args API.
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 arguments, returns ``(options, args)``. | "Parses arguments, returns ``(options, args)``." | 181 | false | sci-bots/mpm | parse_args | 5,104 | |
LDU_FT/Netflix-Skunkworks/swag-client/migrate | LDU_FT | [
"<BEGIN>\n## `create_swag_from_ctx`",
"Creates SWAG client from the current context.\n<END>",
"<BEGIN>\n## `list_service`",
"Retrieve accounts pertaining to named service.\n<END>",
"<BEGIN>\n## `migrate`",
"Transition from one SWAG schema to another.\n<END>",
"<BEGIN>\n## `propagate`",
"Transfers SWAG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the migrate API.
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 migrate API.
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... | Transition from one SWAG schema to another. | "Transition from one SWAG schema to another." | 48 | false | Netflix-Skunkworks/swag-client | migrate | 5,105 | |
LDU_FT/sci-bots/serial-device/_comports | LDU_FT | [
"<BEGIN>\n## `_comports`",
"Returns\n -------\n pandas.DataFrame\n Table containing descriptor, and hardware ID of each available COM\n port, indexed by port (e.g., \"COM4\").\n<END>",
"<BEGIN>\n## `comports`",
".. versionchanged:: 0.9\n Add :data:`check_available` keyword argument ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _comports API.
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 _comports API.
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
-------
pandas.DataFrame
Table containing descriptor, and hardware ID of each available COM
port, indexed by port (e.g., "COM4"). | "Returns\n -------\n pandas.DataFrame\n Table containing descriptor, and hardware ID of each available COM\n port, indexed by port (e.g., \"COM4\")." | 63 | false | sci-bots/serial-device | _comports | 5,106 | |
LDU_FT/hyperboria/python-cjdns/connectWithAdminInfo | LDU_FT | [
"<BEGIN>\n## `bdecode`",
"Decodes a bencoded bytearray and returns it as a python object\n<END>",
"<BEGIN>\n## `readme`",
"Reads a markdown file and returns the contents formatted as rst\n<END>",
"<BEGIN>\n## `_receiverThread`",
"Receiving messages from cjdns admin server\n<END>",
"<BEGIN>\n## `connect`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connectWithAdminInfo 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 connectWithAdminInfo API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Connect to cjdns admin with data from user file | "Connect to cjdns admin with data from user file" | 10 | false | hyperboria/python-cjdns | connectWithAdminInfo | 5,107 | |
LDU_FT/jgorset/facebook/interested_in | LDU_FT | [
"<BEGIN>\n## `cache`",
"Query or return the Graph API representation of this resource.\n<END>",
"<BEGIN>\n## `work`",
"A list of :class:`Employment` instances describing the user's work history.",
" Each structure has attributes ``employer``, ``position``, ``started_at`` and ``ended_at``.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interested_in API.
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 interested_in API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | A list of strings describing the genders the user is interested in. | "A list of strings describing the genders the user is interested in." | 20 | false | jgorset/facebook | interested_in | 5,108 | |
LDU_FT/openearth/mmi-python/recv_array | LDU_FT | [
"<BEGIN>\n## `key_occurrence`",
"Return a dict containing the value of the provided key and its uuid as\n value.\n<END>",
"<BEGIN>\n## `zmq_address`",
"Return a ZeroMQ address to the module with the provided key.\n<END>",
"<BEGIN>\n## `send_array`",
"send a numpy array with metadata over zmq",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recv_array API.
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 recv_array API.
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... | recv a metadata and an optional numpy array from a zmq socket
Optionally provide poll object to use recv_array with timeout
poll_timeout is in millis | "recv a metadata and an optional numpy array from a zmq socket\n\n Optionally provide poll object to use recv_array with timeout\n\n poll_timeout is in millis" | 30 | false | openearth/mmi-python | recv_array | 5,109 | |
LDU_FT/Yelp/detect-secrets/_get_value_and_line_offset | LDU_FT | [
"<BEGIN>\n## `determine_file_type`",
":param filename: str",
" :rtype: FileType\n<END>",
"<BEGIN>\n## `write_baseline_to_file`",
":type filename: str\n :type data: dict\n :rtype: None\n<END>",
"<BEGIN>\n## `load_baseline_from_string`",
"Initializes a SecretsCollection object from string.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_value_and_line_offset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_value_and_line_offset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Returns the index of the location of key, value pair in lines.
:type key: str
:param key: key, in config file.
:type values: str
:param values: values for key, in config file. This is plural,
because you can have multiple values per key. e.g.
>>> key =
... | "Returns the index of the location of key, value pair in lines.\n\n :type key: str\n :param key: key, in config file.\n\n :type values: str\n :param values: values for key, in config file. This is plural,\n because you can have multiple values per key. e.g.\n\n >>> key ... | 194 | false | Yelp/detect-secrets | _get_value_and_line_offset | 5,110 | |
LDU_FT/saxix/django-sysinfo/flatten | LDU_FT | [
"<BEGIN>\n## `merge`",
"merges b into a",
" >>> a={1:{\"a\":\"A\"},2:{\"b\":\"B\"}, 8:[]}\n >>> b={2:{\"c\":\"C\"},3:{\"d\":\"D\"}}",
" >>> c = merge(a, b)\n >>> c == a == {8: [], 1: {\"a\": \"A\"}, 2: {\"c\": \"C\", \"b\": \"B\"}, 3: {\"d\": \"D\"}}\n True",
" >>> c = merge(a, {1: \"a\"})... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten API.
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 flatten API.
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... | flatten(sequence) -> list
Returns a single, flat list which contains all elements retrieved
from the sequence and all recursively contained sub-sequences
(iterables).
Examples:
>>> [1, 2, [3,4], (5,6)]
[1, 2, [3, 4], (5, 6)]
>>> flatten([[[1,2,3], (42,None)], [4,5], [6], 7, (8,9,10)])
... | "flatten(sequence) -> list\n\n Returns a single, flat list which contains all elements retrieved\n from the sequence and all recursively contained sub-sequences\n (iterables).\n\n Examples:\n\n >>> [1, 2, [3,4], (5,6)]\n [1, 2, [3, 4], (5, 6)]\n\n >>> flatten([[[1,2,3], (42,None)], [4,5], [6], 7, (... | 33 | false | saxix/django-sysinfo | flatten | 5,111 | |
LDU_FT/ayust/kitnirc/start | LDU_FT | [
"<BEGIN>\n## `on_line`",
"Default handling for incoming lines.",
" This handler will automatically manage the following IRC messages:",
" PING:\n Responds with a PONG.\n PRIVMSG:\n Dispatches the PRIVMSG event.\n NOTICE:\n Dispatches the NOTICE event.\n MOTDSTART:\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Called when the module is loaded.
If the load is due to a reload of the module, then the 'reloading'
argument will be set to True. By default, this method calls the
controller's listen() for each event in the self.event_handlers dict. | "Called when the module is loaded.\n\n If the load is due to a reload of the module, then the 'reloading'\n argument will be set to True. By default, this method calls the\n controller's listen() for each event in the self.event_handlers dict." | 151 | false | ayust/kitnirc | start | 5,112 | |
LDU_FT/Oneiroe/PySimpleAutomata/afw_complementation | LDU_FT | [
"<BEGIN>\n## `dfa_word_acceptance`",
"Checks if a given **word** is accepted by a DFA,\n returning True/false.",
" The word w is accepted by a DFA if DFA has an accepting run\n on w. Since A is deterministic,\n :math:`w ∈ L(A)` if and only if :math:`ρ(s_0 , w) ∈ F` .",
" :param dict dfa: input ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the afw_complementation 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 afw_complementation 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 AFW reading the complemented language read by
input AFW.
Let :math:`A = (Σ, S, s^0 , ρ, F )`. Define :math:`Ā = (Σ, S,
s^0 , \overline{ρ}, S − F )`,
where :math:`\overline{ρ}(s, a) = \overline{ρ(s, a)}` for all
:math:`s ∈ S` and :math:`a ∈ Σ`.
That is, :math:`\overline{ρ}` is the dual... | "Returns a AFW reading the complemented language read by\n input AFW.\n\n Let :math:`A = (Σ, S, s^0 , ρ, F )`. Define :math:`Ā = (Σ, S,\n s^0 , \\overline{ρ}, S − F )`,\n where :math:`\\overline{ρ}(s, a) = \\overline{ρ(s, a)}` for all\n :math:`s ∈ S` and :math:`a ∈ Σ`.\n That is, :math:`\\overline{ρ}`... | 208 | false | Oneiroe/PySimpleAutomata | afw_complementation | 5,113 | |
LDU_FT/sashs/filebytes/_parseSymbols | LDU_FT | [
"<BEGIN>\n## `isSupportedContent`",
"Returns if the files are valid for this filetype\n<END>",
"<BEGIN>\n## `__parseKeyValueStore`",
"Returns a dictionary filled with the keys and values of the key value store\n<END>",
"<BEGIN>\n## `to_raw_address`",
"Converts the addr from a rva to a pointer to raw data ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parseSymbols API.
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 _parseSymbols API.
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... | Sets a list of symbols in each DYNSYM and SYMTAB section | "Sets a list of symbols in each DYNSYM and SYMTAB section" | 28 | false | sashs/filebytes | _parseSymbols | 5,114 | |
LDU_FT/molmod/molmod/compute_fd_hessian | LDU_FT | [
"<BEGIN>\n## `atom_criteria`",
"An auxiliary function to construct a dictionary of Criteria\n<END>",
"<BEGIN>\n## `_check_symbols`",
"the size must be the same as the length of the array numbers and all elements must be strings\n<END>",
"<BEGIN>\n## `from_geometry`",
"Construct a MolecularGraph object bas... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_fd_hessian 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 compute_fd_hessian 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... | Compute the Hessian using the finite difference method
Arguments:
| ``fun`` -- the function for which the Hessian should be computed,
more info below
| ``x0`` -- the point at which the Hessian must be computed
| ``epsilon`` -- a small scalar step size used to... | "Compute the Hessian using the finite difference method\n\n Arguments:\n | ``fun`` -- the function for which the Hessian should be computed,\n more info below\n | ``x0`` -- the point at which the Hessian must be computed\n | ``epsilon`` -- a small scalar step size ... | 657 | false | molmod/molmod | compute_fd_hessian | 5,115 | |
LDU_FT/HazyResearch/fonduer/get_gold_labels | LDU_FT | [
"<BEGIN>\n## `construct_stable_id`",
"Contruct a stable ID for a Context given its parent and its character\n offsets relative to the parent.\n<END>",
"<BEGIN>\n## `split_stable_id`",
"Split stable id, returning:",
" * Document (root) stable ID\n * Context polymorphic type\n * Charac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gold_labels API.
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_gold_labels API.
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... | Load sparse matrix of GoldLabels for each candidate_class.
:param cand_lists: The candidates to get gold labels for.
:type cand_lists: List of list of candidates.
:param annotator: A specific annotator key to get labels for. Default
None.
:type annotator: str
:return... | "Load sparse matrix of GoldLabels for each candidate_class.\n\n :param cand_lists: The candidates to get gold labels for.\n :type cand_lists: List of list of candidates.\n :param annotator: A specific annotator key to get labels for. Default\n None.\n :type annotator: str\n ... | 540 | false | HazyResearch/fonduer | get_gold_labels | 5,116 | |
LDU_FT/victorlei/smop/p_for_stmt | 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 p_for_stmt API.
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 p_for_stmt API.
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... | for_stmt : FOR ident EQ expr SEMI stmt_list END_STMT
| FOR LPAREN ident EQ expr RPAREN SEMI stmt_list END_STMT
| FOR matrix EQ expr SEMI stmt_list END_STMT | "for_stmt : FOR ident EQ expr SEMI stmt_list END_STMT\n | FOR LPAREN ident EQ expr RPAREN SEMI stmt_list END_STMT\n | FOR matrix EQ expr SEMI stmt_list END_STMT" | 69 | false | victorlei/smop | p_for_stmt | 5,117 | |
LDU_FT/Yubico/yubikey-manager/unlock | LDU_FT | [
"<BEGIN>\n## `openpgp`",
"Manage OpenPGP Application.",
" Examples:",
" \\b\n Set the retries for PIN, Reset Code and Admin PIN to 10:\n $ ykman openpgp set-retries 10 10 10",
" \\b\n Require touch to use the authentication key:\n $ ykman openpgp touch aut on\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unlock API.
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 unlock API.
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 ... | Verify U2F PIN for YubiKey FIPS.
Unlock the YubiKey FIPS and allow U2F registration. | "Verify U2F PIN for YubiKey FIPS.\n\n Unlock the YubiKey FIPS and allow U2F registration." | 180 | false | Yubico/yubikey-manager | unlock | 5,118 | |
LDU_FT/romanorac/discomll/predict | LDU_FT | [
"<BEGIN>\n## `random_init_map`",
"Assign datapoint `e` randomly to one of the `k` clusters.\n<END>",
"<BEGIN>\n## `estimate_map`",
"Find the cluster `i` that is closest to the datapoint `e`.\n<END>",
"<BEGIN>\n## `estimate_reduce`",
"Estimate the cluster centers for each cluster.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API.
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 predict API.
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... | Predict the closest clusters for the datapoints in input. | "Predict the closest clusters for the datapoints in input." | 77 | false | romanorac/discomll | predict | 5,119 | |
LDU_FT/macbre/elasticsearch-query/format_index | LDU_FT | [
"<BEGIN>\n## `format_index`",
":type prefix str\n :type timestamp int\n :type sep str\n :rtype: str\n<END>",
"<BEGIN>\n## `format_timestamp`",
"Format the UTC timestamp for Elasticsearch\n eg. 2014-07-09T08:37:18.000Z",
" @see https://docs.python.org/2/library/time.html#ti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_index API.
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... | :type prefix str
:type timestamp int
:type sep str
:rtype: str | ":type prefix str\n :type timestamp int\n :type sep str\n :rtype: str" | 30 | false | macbre/elasticsearch-query | format_index | 5,120 | |
LDU_FT/tkhyn/dirsync/_dirdiffandupdate | LDU_FT | [
"<BEGIN>\n## `load_cfg`",
"Load defaults from configuration file:\r\n - from the source/directory/.dirsync file (prioritary)\r\n - and/or a %HOME%/.dirsync user config file\n<END>",
"<BEGIN>\n## `_cmptimestamps`",
"Compare time stamps of two files and return True\n if file1 (source) is ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dirdiffandupdate API.
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 _dirdiffandupdate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Private function which does directory diff & update | "Private function which does directory diff & update" | 20 | false | tkhyn/dirsync | _dirdiffandupdate | 5,121 | |
LDU_FT/torfsen/service/send_signal | LDU_FT | [
"<BEGIN>\n## `_detach_process`",
"Detach daemon process.",
" Forks the current process into a parent and a detached child. The\n child process resides in its own process group, has no controlling\n terminal attached and is cleaned up by the init process.",
" Returns ``True`` for the parent and ``F... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_signal API.
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 send_signal API.
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... | Send a signal to the daemon process.
The signal must have been enabled using the ``signals``
parameter of :py:meth:`Service.__init__`. Otherwise, a
``ValueError`` is raised. | "Send a signal to the daemon process.\n\n The signal must have been enabled using the ``signals``\n parameter of :py:meth:`Service.__init__`. Otherwise, a\n ``ValueError`` is raised." | 40 | false | torfsen/service | send_signal | 5,122 | |
LDU_FT/AtomHash/evernode/create_email | LDU_FT | [
"<BEGIN>\n## `exists`",
"Checks if item already exists in database\n<END>",
"<BEGIN>\n## `save`",
"Easy save(insert or update) for db models\n<END>",
"<BEGIN>\n## `trans`",
"Root Example:\r\n Translator()\r\n Translator.trans('messages.hello')\r\n resources/lang/en/messages.lang will ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_email API.
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 create_email API.
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... | main function to construct and send email | "main function to construct and send email" | 56 | false | AtomHash/evernode | create_email | 5,123 | |
LDU_FT/syndbg/demonoid-api/parse_second_row | LDU_FT | [
"<BEGIN>\n## `get_params`",
"Static method that parses a given `url` and retrieves `url`'s parameters. Could also ignore empty value parameters.\n Handles parameters-only urls as `q=banana&peel=false`.",
" :param str url: url to parse\n :param bool ignore_empty: ignore empty value parameter... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_second_row API.
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 parse_second_row API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Static method that parses a given table row element by using helper methods `Parser.parse_category_subcategory_and_or_quality`,
`Parser.parse_torrent_link` and scrapping torrent's category, subcategory, quality, language, user, user url, torrent link, size,
comments, times completed, seeders and leecher... | "Static method that parses a given table row element by using helper methods `Parser.parse_category_subcategory_and_or_quality`,\n `Parser.parse_torrent_link` and scrapping torrent's category, subcategory, quality, language, user, user url, torrent link, size,\n comments, times completed, seeders and leec... | 27 | false | syndbg/demonoid-api | parse_second_row | 5,124 | |
LDU_FT/AmesCornish/buttersink/send | LDU_FT | [
"<BEGIN>\n## `update`",
"Update self and parent with intermediate progress.\n<END>",
"<BEGIN>\n## `close`",
"Stop overwriting display, or update parent.\n<END>",
"<BEGIN>\n## `transfer`",
"Transfer (large) data from sender to receiver.\n<END>",
"<BEGIN>\n## `display`",
"Friendly string for volume, usi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Return context manager for stream to send a (incremental) snapshot. | "Return context manager for stream to send a (incremental) snapshot." | 148 | false | AmesCornish/buttersink | send | 5,125 | |
LDU_FT/maximdanilchenko/aiohttp-apispec/setup_aiohttp_apispec | LDU_FT | [
"<BEGIN>\n## `setup_aiohttp_apispec`",
"aiohttp-apispec extension.",
" Usage:",
" .. code-block:: python",
" from aiohttp_apispec import docs, request_schema, setup_aiohttp_apispec\n from aiohttp import web\n from marshmallow import Schema, fields",
" class RequestSchema(... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_aiohttp_apispec 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 setup_aiohttp_apispec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | aiohttp-apispec extension.
Usage:
.. code-block:: python
from aiohttp_apispec import docs, request_schema, setup_aiohttp_apispec
from aiohttp import web
from marshmallow import Schema, fields
class RequestSchema(Schema):
id = fields.Int()
name = field... | "aiohttp-apispec extension.\n\n Usage:\n\n .. code-block:: python\n\n from aiohttp_apispec import docs, request_schema, setup_aiohttp_apispec\n from aiohttp import web\n from marshmallow import Schema, fields\n\n\n class RequestSchema(Schema):\n id = fields.Int()\n ... | 38 | false | maximdanilchenko/aiohttp-apispec | setup_aiohttp_apispec | 5,126 | |
LDU_FT/berkeley-cocosci/Wallace/nodes | LDU_FT | [
"<BEGIN>\n## `submission_successful`",
"Run when a participant submits successfully.\n<END>",
"<BEGIN>\n## `summary`",
"Summarize the participants' status codes.\n<END>",
"<BEGIN>\n## `experiment_property`",
"Get a property of the experiment by name.\n<END>",
"<BEGIN>\n## `ad_address`",
"Get the addre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nodes API.
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 nodes API.
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... | Get nodes associated with this participant.
Return a list of nodes associated with the participant. If specified,
``type`` filters by class. By default failed nodes are excluded, to
include only failed nodes use ``failed=True``, for all nodes use
``failed=all``. | "Get nodes associated with this participant.\n\n Return a list of nodes associated with the participant. If specified,\n ``type`` filters by class. By default failed nodes are excluded, to\n include only failed nodes use ``failed=True``, for all nodes use\n ``failed=all``." | 118 | false | berkeley-cocosci/Wallace | nodes | 5,127 | |
LDU_FT/NuGrid/NuGridPy/make_list | LDU_FT | [
"<BEGIN>\n## `_obsolete_plot_iso_abund_marco`",
"Interface to plot average over mass_range.",
" Parameters\n ----------\n directory : string\n Location of h5 file to plot. Needed for plot_tools.\n name_h5_file : string\n Name of h5 file. Needed for plot_tools.\n mass_range : list\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | provide the list of symbols to use according for the list of
species/arrays to plot.
Parameters
----------
default_symbol_list : list
Symbols that the user choose to use.
len_list_to_print : integer
len of list of species/arrays to print. | "provide the list of symbols to use according for the list of\n species/arrays to plot.\n\n Parameters\n ----------\n default_symbol_list : list\n Symbols that the user choose to use.\n len_list_to_print : integer\n len of list of species/arrays to print." | 713 | false | NuGrid/NuGridPy | make_list | 5,128 | |
LDU_FT/seznam/shelter/sigusr1_handler | LDU_FT | [
"<BEGIN>\n## `exitcode`",
"Process exit code. :const:`0` when process exited successfully,\n positive number when exception was occurred, negative number when\n process was signaled and :data:`None` when process has not exited\n yet.\n<END>",
"<BEGIN>\n## `run`",
"Tornado worker which han... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sigusr1_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sigusr1_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 e... | Handle SIGUSR1 signal. Call function which is defined in the
**settings.SIGUSR1_HANDLER**. | "Handle SIGUSR1 signal. Call function which is defined in the\n **settings.SIGUSR1_HANDLER**." | 61 | false | seznam/shelter | sigusr1_handler | 5,129 | |
LDU_FT/bokeh/bokeh/get_codeblock_node | LDU_FT | [
"<BEGIN>\n## `notify_owner`",
"A decorator for mutating methods of property container classes\n that notifies owners of the property container about mutating changes.",
" Args:\n func (callable) : the container method to wrap in a notification",
" Returns:\n wrapped method",
" Exam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_codeblock_node 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_codeblock_node 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... | this is copied from sphinx.directives.code.CodeBlock.run
it has been changed to accept code and language as an arguments instead
of reading from self | "this is copied from sphinx.directives.code.CodeBlock.run\n\n it has been changed to accept code and language as an arguments instead\n of reading from self" | 2,090 | true | bokeh/bokeh | get_codeblock_node | 5,130 | |
LDU_FT/troeger/opensubmit/downloadArchiveAction | LDU_FT | [
"<BEGIN>\n## `read_config`",
"Read configuration file, perform sanity check and return configuration\n dictionary used by other functions.\n<END>",
"<BEGIN>\n## `check_config`",
"Check the executor config file for consistency.\n<END>",
"<BEGIN>\n## `has_config`",
"Determine if the given config file... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the downloadArchiveAction 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 downloadArchiveAction API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Download selected submissions as archive, for targeted correction. | "Download selected submissions as archive, for targeted correction." | 254 | false | troeger/opensubmit | downloadArchiveAction | 5,131 | |
LDU_FT/fred49/linshare-api/add_field | LDU_FT | [
"<BEGIN>\n## `upload`",
"Upload a file to LinShare using its rest api.\n The uploaded document uuid will be returned\n<END>",
"<BEGIN>\n## `upload`",
"Upload a file to LinShare using its rest api.\n The uploaded document uuid will be returned\n<END>",
"<BEGIN>\n## `compute_key`",
"This funct... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_field API.
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 add_field API.
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... | Add a new field to the current ResourceBuilder.
Keyword arguments:
field -- field name
arg -- name of the attribute name in arg object (argparse)
value -- a default for this field, used for resource creation.
extended -- If set to true, the current fiel... | "Add a new field to the current ResourceBuilder.\n\n Keyword arguments:\n field -- field name\n arg -- name of the attribute name in arg object (argparse)\n value -- a default for this field, used for resource creation.\n extended -- If set to true, the curre... | 21 | false | fred49/linshare-api | add_field | 5,132 | |
LDU_FT/bcb/jsonrpcclient/random | LDU_FT | [
"<BEGIN>\n## `sort_response`",
"Sort the keys in a JSON-RPC response object.",
" This has no effect other than making it nicer to read. Useful in Python 3.5 only,\n dictionaries are already sorted in newer Python versions.",
" Example::",
" >>> json.dumps(sort_response({'id': 2, 'result': 5,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random API.
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 random API.
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 ... | A random string.
Not unique, but has around 1 in a million chance of collision (with the default 8
character length). e.g. 'fubui5e6'
Args:
length: Length of the random string.
chars: The characters to randomly choose from. | "A random string.\n\n Not unique, but has around 1 in a million chance of collision (with the default 8\n character length). e.g. 'fubui5e6'\n\n Args:\n length: Length of the random string.\n chars: The characters to randomly choose from." | 73 | false | bcb/jsonrpcclient | random | 5,133 | |
LDU_FT/materialsvirtuallab/monty/logged | LDU_FT | [
"<BEGIN>\n## `zopen`",
"This function wraps around the bz2, gzip and standard python's open\n function to deal intelligently with bzipped, gzipped or standard text\n files.",
" Args:\n filename (str/Path): filename or pathlib.Path.\n \\*args: Standard args for python open(..). E.g., 'r' f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logged API.
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 logged API.
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 ... | Useful logging decorator. If a method is logged, the beginning and end of
the method call will be logged at a pre-specified level.
Args:
level: Level to log method at. Defaults to DEBUG. | "Useful logging decorator. If a method is logged, the beginning and end of\n the method call will be logged at a pre-specified level.\n\n Args:\n level: Level to log method at. Defaults to DEBUG." | 238 | false | materialsvirtuallab/monty | logged | 5,134 | |
LDU_FT/bitshares/python-bitshares/returnFees | LDU_FT | [
"<BEGIN>\n## `decodeRPCErrorMsg`",
"Helper function to decode the raised Exception and give it a\n python Exception class\n<END>",
"<BEGIN>\n## `transfer`",
"Transfer an asset to another account.",
" :param str to: Recipient\n :param float amount: Amount to transfer\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the returnFees API.
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 returnFees API.
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... | Returns a dictionary of all fees that apply through the
network
Example output:
.. code-block:: js
{'proposal_create': {'fee': 400000.0},
'asset_publish_feed': {'fee': 1000.0}, 'account_create':
{'basic_fee': 950000.0, 'price_per_kby... | "Returns a dictionary of all fees that apply through the\n network\n\n Example output:\n\n .. code-block:: js\n\n {'proposal_create': {'fee': 400000.0},\n 'asset_publish_feed': {'fee': 1000.0}, 'account_create':\n {'basic_fee': 950000.0, 'pri... | 116 | false | bitshares/python-bitshares | returnFees | 5,135 | |
LDU_FT/jantman/pypi-download-stats/_shorten_version | LDU_FT | [
"<BEGIN>\n## `_path_for_file`",
"Generate the path on disk for a specified project and date.",
" :param project_name: the PyPI project name for the data\n :type project: str\n :param date: the date for the data\n :type date: datetime.datetime\n :return: path for where to store... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _shorten_version API.
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 _shorten_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | If ``ver`` is a dot-separated string with at least (num_components +1)
components, return only the first two. Else return the original string.
:param ver: version string
:type ver: str
:return: shortened (major, minor) version
:rtype: str | "If ``ver`` is a dot-separated string with at least (num_components +1)\n components, return only the first two. Else return the original string.\n\n :param ver: version string\n :type ver: str\n :return: shortened (major, minor) version\n :rtype: str" | 135 | false | jantman/pypi-download-stats | _shorten_version | 5,136 | |
LDU_FT/openfisca/openfisca-core/get_known_periods | LDU_FT | [
"<BEGIN>\n## `apply_thresholds`",
"Return one of the choices depending on the input position compared to thresholds, for each input.",
" >>> apply_thresholds(np.array([4]), [5, 7], [10, 15, 20])\n array([10])\n >>> apply_thresholds(np.array([5]), [5, 7], [10, 15, 20])\n array([10])\n >>> apply_th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_known_periods API.
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_known_periods API.
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 the list of periods the variable value is known for. | "Get the list of periods the variable value is known for." | 322 | false | openfisca/openfisca-core | get_known_periods | 5,137 | |
LDU_FT/inveniosoftware/invenio-github/disable | LDU_FT | [
"<BEGIN>\n## `get`",
"Return a repository.",
" :param integer user_id: User identifier.\n :param integer github_id: GitHub repository identifier.\n :param str name: GitHub repository full name.\n :returns: The repository object.\n :raises: :py:exc:`~sqlalchemy.orm.exc.NoResult... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disable API.
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 disable API.
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... | Disable webhooks for a repository.
Disables the webhook from a repository if it exists in the DB.
:param user_id: User identifier.
:param repo_id: GitHub id of the repository.
:param name: Fully qualified name of the repository. | "Disable webhooks for a repository.\n\n Disables the webhook from a repository if it exists in the DB.\n\n :param user_id: User identifier.\n :param repo_id: GitHub id of the repository.\n :param name: Fully qualified name of the repository." | 42 | false | inveniosoftware/invenio-github | disable | 5,138 | |
LDU_FT/Jayin/ETipsService/book_status | LDU_FT | [
"<BEGIN>\n## `_get_electricity_info_html`",
"get html",
" :param apart_id: 栋数\n :param meter_room: 宿舍号\n<END>",
"<BEGIN>\n## `get_electricity_info`",
"get electricity info",
" :param apart_id: 栋数\n :param meter_room: 宿舍号\n<END>",
"<BEGIN>\n## `get_wyu_news`",
"获取新闻列... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the book_status API.
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 book_status API.
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... | 查看图书借阅情况
:param ctrlno: 图书馆系统图书唯一标识
:return: {
'isbn': '',
'status_list': [],
} | "查看图书借阅情况\n :param ctrlno: 图书馆系统图书唯一标识\n :return: {\n 'isbn': '',\n 'status_list': [],\n }" | 26 | false | Jayin/ETipsService | book_status | 5,139 | |
LDU_FT/lvh/txeasymail/evaluate | LDU_FT | [
"<BEGIN>\n## `sendTemplate`",
"Simple case for sending some e-mail using a template.\n<END>",
"<BEGIN>\n## `buildMessage`",
"Builds a message from some headers and MIME parts.\n<END>",
"<BEGIN>\n## `_encodeHeader`",
"Encodes a header value.",
" Returns ASCII if possible, else returns an UTF-8 encoded... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate API.
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 evaluate API.
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... | Evaluates the markdown source in the given context, producing HTML
and (Markdown) plain text. Also interpolates the subject line with
the given context. | "Evaluates the markdown source in the given context, producing HTML\n and (Markdown) plain text. Also interpolates the subject line with\n the given context." | 15 | false | lvh/txeasymail | evaluate | 5,140 | |
LDU_FT/openid/JWTConnect-Python-CryptoJWT/update_keyjar | LDU_FT | [
"<BEGIN>\n## `encrypt`",
"Encrypts and authenticates the data provided as well as authenticating\n the associated_data.",
" :param msg: The message to be encrypted\n :param iv: MUST be present, at least 96-bit long\n :param auth_data: Associated data\n :return: The cipher text... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_keyjar API.
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 update_keyjar API.
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... | Go through the whole key jar, key bundle by key bundle and update them one
by one.
:param keyjar: The key jar to update | "Go through the whole key jar, key bundle by key bundle and update them one\n by one.\n\n :param keyjar: The key jar to update" | 399 | false | openid/JWTConnect-Python-CryptoJWT | update_keyjar | 5,141 | |
LDU_FT/wooster/biplist/intSize | LDU_FT | [
"<BEGIN>\n## `readPlist`",
"Raises NotBinaryPlistException, InvalidPlistException\n<END>",
"<BEGIN>\n## `getSizedInteger`",
"Numbers of 8 bytes are signed integers when they refer to numbers, but unsigned otherwise.\n<END>",
"<BEGIN>\n## `writeRoot`",
"Strategy is:\n - write header\n - wrap ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intSize API.
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 intSize API.
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 the number of bytes necessary to store the given integer. | "Returns the number of bytes necessary to store the given integer." | 14 | false | wooster/biplist | intSize | 5,142 | |
LDU_FT/romana/vpc-router/load_sub_plugins_from_str | LDU_FT | [
"<BEGIN>\n## `_do_tcp_check`",
"Attempt to establish a TCP connection.",
" If not successful, record the IP in the results dict.",
" Always closes the connection at the end.\n<END>",
"<BEGIN>\n## `do_health_checks`",
"Perform a health check on a list of IP addresses.",
" Each check ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_sub_plugins_from_str 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 load_sub_plugins_from_str API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Load plugin classes based on column separated list of plugin names.
Returns dict with plugin name as key and class as value. | "Load plugin classes based on column separated list of plugin names.\n\n Returns dict with plugin name as key and class as value." | 207 | false | romana/vpc-router | load_sub_plugins_from_str | 5,143 | |
LDU_FT/user-cont/colin/__remove_append_items | LDU_FT | [
"<BEGIN>\n## `run`",
"Runs the sanity checks for the target.",
" :param timeout: timeout per-check (in seconds)\n :param skips: name of checks to skip\n :param target: str (image name, ostree or dockertar)\n or ImageTarget\n or path/file-like object for dockerfile\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __remove_append_items 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 __remove_append_items API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | internal method, delete all append items (ends with +)
:param whole: pass thru 'whole' param to climb
:return: None | "internal method, delete all append items (ends with +)\n :param whole: pass thru 'whole' param to climb\n :return: None" | 114 | false | user-cont/colin | __remove_append_items | 5,144 | |
LDU_FT/vinci1it2000/schedula/get_sub_dsp_from_workflow | LDU_FT | [
"<BEGIN>\n## `register`",
"Creates a :class:`Blueprint.cls` and calls each deferred operation.",
" :param obj:\n The initialized object with which to call all deferred operations.\n :type obj: object",
" :param memo:\n A dictionary to cache registered Blueprints.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sub_dsp_from_workflow API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sub_dsp_from_workflow API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Returns the sub-dispatcher induced by the workflow from sources.
The induced sub-dispatcher of the dsp contains the reachable nodes and
edges evaluated with breadth-first-search on the workflow graph from
source nodes.
:param sources:
Source nodes for the breadth-first-sear... | "Returns the sub-dispatcher induced by the workflow from sources.\n\n The induced sub-dispatcher of the dsp contains the reachable nodes and\n edges evaluated with breadth-first-search on the workflow graph from\n source nodes.\n\n :param sources:\n Source nodes for the breadth-fi... | 765 | false | vinci1it2000/schedula | get_sub_dsp_from_workflow | 5,145 | |
LDU_FT/celliern/triflow/theano_compiler | LDU_FT | [
"<BEGIN>\n## `_compute_one_step`",
"Compute one step of the simulation, then update the timers.\n<END>",
"<BEGIN>\n## `compute`",
"Generator which yield the actual state of the system every dt.",
" Yields\n ------\n tuple : t, fields\n Actual time and updated fields container... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the theano_compiler API.
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 theano_compiler API.
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... | Take a triflow model and return optimized theano routines.
Parameters
----------
model: triflow.Model:
Model to compile
Returns
-------
(theano function, theano_function):
Optimized routine that compute the evolution equations and their
jacobian matrix. | "Take a triflow model and return optimized theano routines.\n\n Parameters\n ----------\n model: triflow.Model:\n Model to compile\n\n Returns\n -------\n (theano function, theano_function):\n Optimized routine that compute the evolution equations and their\n jacobian matrix." | 42 | false | celliern/triflow | theano_compiler | 5,146 | |
LDU_FT/belambert/edit-distance/main | LDU_FT | [
"<BEGIN>\n## `lowest_cost_action`",
"Given the following values, choose the action (insertion, deletion,\n or substitution), that results in the lowest cost (ties are broken using\n the 'match' score). This is used within the dynamic programming algorithm.",
" * ic - insertion cost",
" * dc - del... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
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 main API.
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... | Read two files line-by-line and print edit distances between each pair
of lines. Will terminate at the end of the shorter of the two files. | "Read two files line-by-line and print edit distances between each pair\n of lines. Will terminate at the end of the shorter of the two files." | 34 | false | belambert/edit-distance | main | 5,147 | |
LDU_FT/neovim/pynvim/restore_logging | LDU_FT | [
"<BEGIN>\n## `connection_made`",
"Used to signal `asyncio.Protocol` of a successful connection.\n<END>",
"<BEGIN>\n## `data_received`",
"Used to signal `asyncio.Protocol` of incoming data.\n<END>",
"<BEGIN>\n## `pipe_data_received`",
"Used to signal `asyncio.SubprocessProtocol` of incoming data.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restore_logging API.
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 restore_logging API.
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... | Re-enables logging statements in these lines whose logging level falls
between the specified minimum and maximum levels and which were disabled
by disable_logging() before. | "Re-enables logging statements in these lines whose logging level falls\n between the specified minimum and maximum levels and which were disabled\n by disable_logging() before." | 139 | false | neovim/pynvim | restore_logging | 5,148 | |
LDU_FT/jameslyons/pycipher/keyword_to_key | LDU_FT | [
"<BEGIN>\n## `encipher`",
"Encipher string using Atbash cipher.",
" Example::",
" ciphertext = Atbash().encipher(plaintext) ",
" :param string: The string to encipher.\n :param keep_punct: if true, punctuation and spacing are retained. If false, it is all removed. Default... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keyword_to_key API.
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 keyword_to_key API.
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... | convert a key word to a key by appending on the other letters of the alphabet.
e.g. MONARCHY -> MONARCHYBDEFGIJKLPQSTUVWXZ | "convert a key word to a key by appending on the other letters of the alphabet.\n e.g. MONARCHY -> MONARCHYBDEFGIJKLPQSTUVWXZ" | 135 | false | jameslyons/pycipher | keyword_to_key | 5,149 | |
LDU_FT/ets-labs/python-dependency-injector/import_cls | LDU_FT | [
"<BEGIN>\n## `import_cls`",
"Import class by its fully qualified name.",
" In terms of current example it is just a small helper function. Please,\n don't use it in production approaches.\n<END>",
"<BEGIN>\n## `find_all`",
"Return all found movies.",
" :rtype: list[movies.models.Movie]\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_cls API.
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 import_cls API.
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... | Import class by its fully qualified name.
In terms of current example it is just a small helper function. Please,
don't use it in production approaches. | "Import class by its fully qualified name.\n\n In terms of current example it is just a small helper function. Please,\n don't use it in production approaches." | 38 | false | ets-labs/python-dependency-injector | import_cls | 5,150 | |
LDU_FT/mickybart/python-atlasapi/getSpecs | LDU_FT | [
"<BEGIN>\n## `answer`",
"Answer will provide all necessary feedback for the caller",
" Args:\n c (int): HTTP Code\n details (dict): Response payload",
" Returns:\n dict: Response payload",
" Raises:\n ErrAtlasBadRequest\n ErrAtlasUn... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getSpecs API.
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 getSpecs API.
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 specs
Returns:
dict: Representation of the object | "Get specs\n \n Returns:\n dict: Representation of the object" | 42 | false | mickybart/python-atlasapi | getSpecs | 5,151 | |
LDU_FT/francois-vincent/clingon/make_script | LDU_FT | [
"<BEGIN>\n## `my_func`",
"Help docstring. v{VERSION}\n {message}\n<END>",
"<BEGIN>\n## `auto_update_attrs_from_kwargs`",
"this decorator will update the attributes of an\n instance object with all the kwargs of the decorated\n method, updated with the kwargs of the actual call.\n This saves ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_script API.
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 make_script API.
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... | v{VERSION}
This script makes a command line script out of a python script.
For example, 'clingon script.py' will copy or symlink script.py
(without the .py extension) to:
- <python-exe-path>/script (default),
- <target-path>/script if --target-path is specfied,
- ~/bin/script if --user is specif... | "v{VERSION}\n This script makes a command line script out of a python script.\n For example, 'clingon script.py' will copy or symlink script.py\n (without the .py extension) to:\n - <python-exe-path>/script (default),\n - <target-path>/script if --target-path is specfied,\n - ~/bin/script if --user is... | 19 | false | francois-vincent/clingon | make_script | 5,152 | |
LDU_FT/jvsteiner/merkletree/build_fun | LDU_FT | [
"<BEGIN>\n## `check_chain`",
"Verify a merkle chain to see if the Merkle root can be reproduced.\n<END>",
"<BEGIN>\n## `check_hex_chain`",
"Verify a merkle chain, with hashes hex encoded, to see if the Merkle root can be reproduced.\n<END>",
"<BEGIN>\n## `add_hash`",
"Add a Node based on a precomputed, he... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_fun API.
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 build_fun API.
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... | Calculate the merkle root and make references between nodes in the tree.
Written in functional style purely for fun. | "Calculate the merkle root and make references between nodes in the tree.\n Written in functional style purely for fun." | 24 | false | jvsteiner/merkletree | build_fun | 5,153 | |
LDU_FT/paulgb/penkit/l_system | LDU_FT | [
"<BEGIN>\n## `rotate_texture`",
"Rotates the given texture by a given angle.",
" Args:\n texture (texture): the texture to rotate\n rotation (float): the angle of rotation in degrees\n x_offset (float): the x component of the center of rotation (optional)\n y_offset (float): the y... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the l_system API.
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 l_system API.
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... | Generates a texture by running transformations on a turtle program.
First, the given transformations are applied to the axiom. This is
repeated `iterations` times. Then, the output is run as a turtle
program to get a texture, which is returned.
For more background see: https://en.wikipedia.org/wiki/L-... | "Generates a texture by running transformations on a turtle program.\n\n First, the given transformations are applied to the axiom. This is\n repeated `iterations` times. Then, the output is run as a turtle\n program to get a texture, which is returned.\n\n For more background see: https://en.wikipedia.org/... | 134 | false | paulgb/penkit | l_system | 5,154 | |
LDU_FT/SeleniumHQ/selenium/find_elements_by_xpath | LDU_FT | [
"<BEGIN>\n## `_make_w3c_caps`",
"Makes a W3C alwaysMatch capabilities object.",
" Filters out capability names that are not in the W3C spec. Spec-compliant\n drivers will reject requests containing unknown capability names.",
" Moves the Firefox profile, if present, from the old location to the new F... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_elements_by_xpath 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 find_elements_by_xpath API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Finds multiple elements by xpath.
:Args:
- xpath - The xpath locator of the elements to be found.
:Returns:
- list of WebElement - a list with elements if any was found. An
empty list if not
:Usage:
::
elements = driver.find_elements_... | "Finds multiple elements by xpath.\n\n :Args:\n - xpath - The xpath locator of the elements to be found.\n\n :Returns:\n - list of WebElement - a list with elements if any was found. An\n empty list if not\n\n :Usage:\n ::\n\n elements = driver.f... | 547 | false | SeleniumHQ/selenium | find_elements_by_xpath | 5,155 | |
LDU_FT/Robpol86/libnl/get_string | LDU_FT | [
"<BEGIN>\n## `nla_ok`",
"Check if the attribute header and payload can be accessed safely.",
" https://github.com/thom311/libnl/blob/libnl3_2_25/lib/attr.c#L148",
" Verifies that the header and payload do not exceed the number of bytes left in the attribute stream. This function\n must be called befo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 get_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... | r"""Use this to grab a "string" from a bytearray() stream.
C's printf() prints until it encounters a null byte (b'\0'). This function behaves the same.
Positional arguments:
stream -- bytearray stream of data.
Returns:
bytes() instance of any characters from the start of the stream until before t... | "r\"\"\"Use this to grab a \"string\" from a bytearray() stream.\n\n C's printf() prints until it encounters a null byte (b'\\0'). This function behaves the same.\n\n Positional arguments:\n stream -- bytearray stream of data.\n\n Returns:\n bytes() instance of any characters from the start of the stream... | 702 | false | Robpol86/libnl | get_string | 5,156 | |
LDU_FT/noirbizarre/pelican-frontmark/yaml_markdown_constructor | LDU_FT | [
"<BEGIN>\n## `image`",
"Copy-pasted from upstream class until\n https://github.com/rtfd/CommonMark-py/pull/90 is merged\n<END>",
"<BEGIN>\n## `code_block`",
"Output Pygments if required else use default html5 output\n<END>",
"<BEGIN>\n## `_parse`",
"Parse text with frontmatter, return metadata and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the yaml_markdown_constructor 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 yaml_markdown_constructor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Allows to optionnaly parse Markdown in multiline literals | "Allows to optionnaly parse Markdown in multiline literals" | 16 | false | noirbizarre/pelican-frontmark | yaml_markdown_constructor | 5,157 | |
LDU_FT/jedie/PyHardLinkBackup/reverse_func | LDU_FT | [
"<BEGIN>\n## `human_filesize`",
"'human-readable' file size (i.e. 13 KB, 4.1 MB, 102 bytes, etc).\n<END>",
"<BEGIN>\n## `dt2naturaltimesince`",
"datetime to a human readable representation with how old this entry is information\n e.g.:\n Jan. 27, 2016, 9:04 p.m. (31 minutes ago)\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse_func API.
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 reverse_func API.
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... | manage migrate backup_app 0003_auto_20160127_2002 | "manage migrate backup_app 0003_auto_20160127_2002" | 44 | false | jedie/PyHardLinkBackup | reverse_func | 5,158 | |
LDU_FT/nats-io/python-nats/_close | 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 _close API.
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 _close API.
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 ... | Takes the status on which it should leave the connection
and an optional boolean parameter to dispatch the disconnected
and close callbacks if there are any. | "Takes the status on which it should leave the connection\n and an optional boolean parameter to dispatch the disconnected\n and close callbacks if there are any." | 62 | false | nats-io/python-nats | _close | 5,159 | |
LDU_FT/swimlane/swimlane-python/search | LDU_FT | [
"<BEGIN>\n## `add_record_references`",
"Bulk operation to directly add record references without making any additional requests",
" Warnings:\n Does not perform any app, record, or target app/record validation",
" Args:\n app_id (str): Full App ID string\n record... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API.
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 search API.
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 ... | Shortcut to generate a new temporary search report using provided filters and return the resulting records
Args:
*filters (tuple): Zero or more filter tuples of (field_name, operator, field_value)
Keyword Args:
keywords (list(str)): List of strings of keywords to use in report ... | "Shortcut to generate a new temporary search report using provided filters and return the resulting records\n\n Args:\n *filters (tuple): Zero or more filter tuples of (field_name, operator, field_value)\n\n Keyword Args:\n keywords (list(str)): List of strings of keywords to use in ... | 273 | false | swimlane/swimlane-python | search | 5,160 | |
LDU_FT/jantman/webhook2lambda2sqs/destroy | LDU_FT | [
"<BEGIN>\n## `webhook2lambda2sqs_handler`",
"Main entry point/handler for the lambda function. Wraps\n :py:func:`~.handle_event` to ensure that we log detailed information if it\n raises an exception.",
" :param event: Lambda event that triggered the handler\n :type event: dict\n :param context: ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy API.
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 destroy API.
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... | Run a 'terraform destroy'
:param stream: whether or not to stream TF output in realtime
:type stream: bool | "Run a 'terraform destroy'\n\n :param stream: whether or not to stream TF output in realtime\n :type stream: bool" | 137 | false | jantman/webhook2lambda2sqs | destroy | 5,161 | |
LDU_FT/timmahrt/ProMo/_getSmallestDifference | LDU_FT | [
"<BEGIN>\n## `plotF0`",
"Plots the original data in a graph above the plot of the dtw'ed data\n<END>",
"<BEGIN>\n## `f0Morph`",
"Resynthesizes the pitch track from a source to a target wav file",
" fromPitchData and toPitchData should be segmented according to the\n portions that you want to morph. T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getSmallestDifference 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 _getSmallestDifference 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 value in inputList that is closest to targetVal
Iteratively splits the dataset in two, so it should be pretty fast | "Returns the value in inputList that is closest to targetVal\n \n Iteratively splits the dataset in two, so it should be pretty fast" | 75 | false | timmahrt/ProMo | _getSmallestDifference | 5,162 | |
LDU_FT/helixyte/everest/pop_configuration | LDU_FT | [
"<BEGIN>\n## `domain_relationship`",
"Returns a domain relationship equivalent with this resource\n relationship.\n<END>",
"<BEGIN>\n## `get_attribute_cardinality`",
"Returns the cardinality of the given resource attribute.",
" :returns: One of the constants defined in\n :class:`evererst.cons... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop_configuration API.
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 pop_configuration API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Pushes the currently active configuration from the stack of
configurations managed by this mapping.
:raises IndexError: If there is only one configuration in the stack. | "Pushes the currently active configuration from the stack of\n configurations managed by this mapping.\n\n :raises IndexError: If there is only one configuration in the stack." | 449 | false | helixyte/everest | pop_configuration | 5,163 | |
LDU_FT/sunlightlabs/django-locksmith/keys | LDU_FT | [
"<BEGIN>\n## `_active_keys_by_month`",
"Returns a dict of (year, month) -> active_keys. The dict will contain a key\n for each month observed in the data.\n<END>",
"<BEGIN>\n## `keys`",
"Lists API keys. Compatible with jQuery DataTables.\n<END>",
"<BEGIN>\n## `resolve_model`",
"model: Model class\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Lists API keys. Compatible with jQuery DataTables. | "Lists API keys. Compatible with jQuery DataTables." | 33 | false | sunlightlabs/django-locksmith | keys | 5,164 | |
LDU_FT/geomet/geomet/_dump_linestring | LDU_FT | [
"<BEGIN>\n## `block_splitter`",
"Creates a generator by slicing ``data`` into chunks of ``block_size``.",
" >>> data = range(10)\n >>> list(block_splitter(data, 2))\n [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9]]",
" If ``data`` cannot be evenly divided by ``block_size``, the last block will\n simpl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dump_linestring API.
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 _dump_linestring API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Dump a GeoJSON-like `dict` to a linestring WKB string.
Input parameters and output are similar to :func:`_dump_point`. | "Dump a GeoJSON-like `dict` to a linestring WKB string.\n\n Input parameters and output are similar to :func:`_dump_point`." | 120 | false | geomet/geomet | _dump_linestring | 5,165 | |
LDU_FT/assamite/creamas/add_connections | LDU_FT | [
"<BEGIN>\n## `configure_logger`",
"Configure logging behvior for the simulations.\n<END>",
"<BEGIN>\n## `fractal_dimension`",
"Estimates the fractal dimension of an image with box counting.\n Counts pixels with value 0 as empty and everything else as non-empty.\n Input image has to be grayscale.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_connections API.
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 add_connections API.
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... | Add agents from :attr:`conns` to :attr:`connections`.
:param list conns: A list of ``(addr, kwargs)``-tuples
:returns:
A boolean list, as returned by
:meth:`~creamas.core.agent.CreativeAgent.add_connections`. | "Add agents from :attr:`conns` to :attr:`connections`.\n\n :param list conns: A list of ``(addr, kwargs)``-tuples\n :returns:\n A boolean list, as returned by\n :meth:`~creamas.core.agent.CreativeAgent.add_connections`." | 529 | false | assamite/creamas | add_connections | 5,166 | |
LDU_FT/benoitkugler/abstractDataLibrary/thread_with_callback | LDU_FT | [
"<BEGIN>\n## `recherche`",
"abstractSearch in fields of collection and reset rendering.\n Returns number of results.\n If in_all is True, call get_all before doing the search.\n<END>",
"<BEGIN>\n## `launch_background_job`",
"Launch the callable job in background thread.\n Succes or failur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the thread_with_callback 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 thread_with_callback 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 thread emiting `state_changed` between each sub-requests.
:param on_error: callback str -> None
:param on_done: callback object -> None
:param requete_with_callback: Job to execute. monitor_callable -> None
:return: Non started thread | "Return a thread emiting `state_changed` between each sub-requests.\n\n :param on_error: callback str -> None\n :param on_done: callback object -> None\n :param requete_with_callback: Job to execute. monitor_callable -> None\n :return: Non started thread" | 131 | false | benoitkugler/abstractDataLibrary | thread_with_callback | 5,167 | |
LDU_FT/pazz/alot/extract_body | LDU_FT | [
"<BEGIN>\n## `determine_sender`",
"Inspect a given mail to reply/forward/bounce and find the most appropriate\n account to act from and construct a suitable From-Header to use.",
" :param mail: the email to inspect\n :type mail: `email.message.Message`\n :param action: intended use case: one of \"re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_body API.
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 extract_body API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Returns a string view of a Message.
If the `types` argument is set then any encoding types there will be used
as the prefered encoding to extract. If `types` is None then
:ref:`prefer_plaintext <prefer-plaintext>` will be consulted; if it is True
then text/plain parts will be returned, if it is false t... | "Returns a string view of a Message.\n\n If the `types` argument is set then any encoding types there will be used\n as the prefered encoding to extract. If `types` is None then\n :ref:`prefer_plaintext <prefer-plaintext>` will be consulted; if it is True\n then text/plain parts will be returned, if it is f... | 454 | false | pazz/alot | extract_body | 5,168 | |
LDU_FT/erget/StereoVision/get_frames_singleimage | LDU_FT | [
"<BEGIN>\n## `get_frames_singleimage`",
"Get current left and right frames from a single image,\n by splitting the image in half.\n<END>",
"<BEGIN>\n## `show_frames`",
"Show current frames from cameras.",
" ``wait`` is the wait interval in milliseconds before the window closes.\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_frames_singleimage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_frames_singleimage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Get current left and right frames from a single image,
by splitting the image in half. | "Get current left and right frames from a single image,\n by splitting the image in half." | 83 | false | erget/StereoVision | get_frames_singleimage | 5,169 | |
LDU_FT/charnley/rmsd/hungarian | LDU_FT | [
"<BEGIN>\n## `rmsd`",
"Calculate Root-mean-square deviation from two sets of vectors V and W.",
" Parameters\n ----------\n V : array\n (N,D) matrix, where N is points and D is dimension.\n W : array\n (N,D) matrix, where N is points and D is dimension.",
" Returns\n -------\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hungarian API.
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 hungarian API.
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... | Hungarian reordering.
Assume A and B are coordinates for atoms of SAME type only | "Hungarian reordering.\n\n Assume A and B are coordinates for atoms of SAME type only" | 66 | false | charnley/rmsd | hungarian | 5,170 | |
LDU_FT/juju/juju-bundlelib/_parse_unit | LDU_FT | [
"<BEGIN>\n## `isstring`",
"Report whether the given value is a byte or unicode string.\n<END>",
"<BEGIN>\n## `_parse_url`",
"Parse the given charm or bundle URL, provided as a string.",
" Return a tuple containing the entity reference fragments: schema, user,\n series, name and revision.\n Each fra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_unit API.
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 _parse_unit API.
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... | Parse a unit as part of the unit placement.
Return the unit as an integer or None.
Raise a ValueError if the unit is specified but it is not a digit. | "Parse a unit as part of the unit placement.\n\n Return the unit as an integer or None.\n Raise a ValueError if the unit is specified but it is not a digit." | 84 | false | juju/juju-bundlelib | _parse_unit | 5,171 | |
LDU_FT/mikejarrett/pipcheck/_parse_version | LDU_FT | [
"<BEGIN>\n## `get_updates`",
"When called, get the environment updates and write updates to a CSV\n file and if a new config has been provided, write a new configuration\n file.",
" Args:\n display_all_distributions (bool): Return distribution even if it is\n up-to... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_version API.
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 _parse_version API.
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... | Parse a version string.
Args:
version (str): A string representing a version e.g. '1.9rc2'
Returns:
tuple: major, minor, patch parts cast as integer and whether or not
it was a pre-release version. | "Parse a version string.\n\n Args:\n version (str): A string representing a version e.g. '1.9rc2'\n\n Returns:\n tuple: major, minor, patch parts cast as integer and whether or not\n it was a pre-release version." | 30 | false | mikejarrett/pipcheck | _parse_version | 5,172 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.