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/rene-aguirre/pywinusb/open | LDU_FT | [
"<BEGIN>\n## `hid_device_path_exists`",
"Test if required device_path is still valid\r\n (HID device connected to host)\n<END>",
"<BEGIN>\n## `find_all_hid_devices`",
"Finds all HID devices connected to the system\n<END>",
"<BEGIN>\n## `show_hids`",
"Check all HID devices conected to PC hosts.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
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 open API.
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... | Open HID device and obtain 'Collection Information'.
It effectively prepares the HidDevice object for reading and writing | "Open HID device and obtain 'Collection Information'.\r\n It effectively prepares the HidDevice object for reading and writing" | 61 | false | rene-aguirre/pywinusb | open | 17,573 | |
LDU_FT/aeguana/PyFileMaker/doFindAll | LDU_FT | [
"<BEGIN>\n## `key_dict`",
"Returns dict from_dict['unicode_save_field'] = 'original key with unicode'\n<END>",
"<BEGIN>\n## `makeFMData`",
"Returns FMData structure which is initialized by given dictionary\n<END>",
"<BEGIN>\n## `_setMaxRecords`",
"Specifies the maximum number of records you want returned ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doFindAll API.
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 doFindAll API.
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... | This function will perform the command -findall. | "This function will perform the command -findall." | 52 | false | aeguana/PyFileMaker | doFindAll | 17,574 | |
LDU_FT/ktdreyer/txbugzilla/_parse_errback | LDU_FT | [
"<BEGIN>\n## `find_tracker_url`",
"Given http://tracker.ceph.com/issues/16673 or\n tracker.ceph.com/issues/16673, return \"http://tracker.ceph.com\".\n<END>",
"<BEGIN>\n## `api_key_from_file`",
"Check bugzillarc for an API key for this Bugzilla URL.\n<END>",
"<BEGIN>\n## `call`",
"Make an XML-RPC call ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_errback API.
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_errback API.
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 an error from an XML-RPC call.
raises: ``IOError`` when the Twisted XML-RPC connection times out.
raises: ``BugzillaNotFoundException``
raises: ``BugzillaNotAuthorizedException``
raises: ``BugzillaException`` if we got a response from the XML-RPC
server but it is n... | "Parse an error from an XML-RPC call.\n\n raises: ``IOError`` when the Twisted XML-RPC connection times out.\n raises: ``BugzillaNotFoundException``\n raises: ``BugzillaNotAuthorizedException``\n raises: ``BugzillaException`` if we got a response from the XML-RPC\n server but ... | 30 | false | ktdreyer/txbugzilla | _parse_errback | 17,575 | |
LDU_FT/latchset/jwcrypto/make_signed_token | LDU_FT | [
"<BEGIN>\n## `encrypt`",
"Encrypt according to the selected encryption and hashing\n functions.",
" :param k: Encryption key (optional)\n :param a: Additional Authentication Data\n :param m: Plaintext",
" Returns a dictionary with the computed data.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_signed_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_signed_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Signs the payload.
Creates a JWS token with the header as the JWS protected header and
the claims as the payload. See (:class:`jwcrypto.jws.JWS`) for
details on the exceptions that may be reaised.
:param key: A (:class:`jwcrypto.jwk.JWK`) key. | "Signs the payload.\n\n Creates a JWS token with the header as the JWS protected header and\n the claims as the payload. See (:class:`jwcrypto.jws.JWS`) for\n details on the exceptions that may be reaised.\n\n :param key: A (:class:`jwcrypto.jwk.JWK`) key." | 101 | false | latchset/jwcrypto | make_signed_token | 17,576 | |
LDU_FT/cknoll/ipydex/custom_display | LDU_FT | [
"<BEGIN>\n## `format_frameinfo`",
"Takes a frameinfo object (from the inspect module)",
" returns a properly formated string\n<END>",
"<BEGIN>\n## `IPS`",
"Starts IPython embedded shell. This is similar to IPython.embed() but with some\n additional features:",
" 1. Print a list of the calling fra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the custom_display API.
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 custom_display API.
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... | lhs: left hand side
rhs: right hand side
This function serves to inject the string for the left hand side
of an assignment | "lhs: left hand side\n rhs: right hand side\n\n This function serves to inject the string for the left hand side\n of an assignment" | 45 | false | cknoll/ipydex | custom_display | 17,577 | |
LDU_FT/ska-sa/hypercube/update_dimension | LDU_FT | [
"<BEGIN>\n## `bytes_required`",
"Returns\n -------\n int\n Estimated number of bytes required by arrays registered\n on the cube, taking their extents into account.\n<END>",
"<BEGIN>\n## `register_dimension`",
"Registers a dimension on this cube.",
" .. code-block:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_dimension API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_dimension API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Update the dimension size and extents.
Parameters
----------
**update_dict : : dict: dict
A dictionary containing keywords passed through to
:meth:`~hypercube.dims.Dimension.update`
name : str
Name of the dimension to update | "Update the dimension size and extents.\n\n Parameters\n ----------\n **update_dict : : dict: dict\n A dictionary containing keywords passed through to\n :meth:`~hypercube.dims.Dimension.update`\n name : str\n Name of the dimension to update" | 163 | false | ska-sa/hypercube | update_dimension | 17,578 | |
LDU_FT/inveniosoftware/invenio-github/get | 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 get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Return a repository.
:param integer user_id: User identifier.
:param integer github_id: GitHub repository identifier.
:param str name: GitHub repository full name.
:returns: The repository object.
:raises: :py:exc:`~sqlalchemy.orm.exc.NoResultFound`: if the repository
... | "Return a repository.\n\n :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.NoResultFound`: if the repository\n ... | 42 | false | inveniosoftware/invenio-github | get | 17,579 | |
LDU_FT/mozilla/python_moztelemetry/mann_whitney_u | LDU_FT | [
"<BEGIN>\n## `add_expiration_postfix`",
"Formats the expiration version and adds a version postfix if needed.",
" :param expiration: the expiration version string.\n :return: the modified expiration string.\n<END>",
"<BEGIN>\n## `load_yaml_file`",
"Load a YAML file from disk, throw a ParserError on fa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mann_whitney_u API.
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 mann_whitney_u API.
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... | Computes the Mann-Whitney rank test on both samples.
Each sample is expected to be of the form::
{1: 5, 2: 20, 3: 12, ...}
Returns a named tuple with:
``u`` equal to min(U for sample1, U for sample2), and
``p`` equal to the p-value. | "Computes the Mann-Whitney rank test on both samples.\n\n Each sample is expected to be of the form::\n\n {1: 5, 2: 20, 3: 12, ...}\n\n Returns a named tuple with:\n ``u`` equal to min(U for sample1, U for sample2), and\n ``p`` equal to the p-value." | 122 | false | mozilla/python_moztelemetry | mann_whitney_u | 17,580 | |
LDU_FT/tensorflow/mesh/allreduce_ring | LDU_FT | [
"<BEGIN>\n## `make_layer_stack`",
"Configurable layer stack.",
" Args:\n layers: a list of subclasses of TransformerLayer\n num_layers: an integer\n Returns:\n a LayerStack\n<END>",
"<BEGIN>\n## `make_bitransformer`",
"Gin-configurable bitransformer constructor.",
" In your config file you nee... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allreduce_ring API.
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 allreduce_ring API.
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... | Compute the reduction of all Tensors and put the result everywhere.
Performance-optimized for a ring of devices.
Args:
xs: a list of n tf.Tensors
devices: a list of strings
reduction_fn_string: "SUM" or "MAX"
Returns:
a list of n Tensors
Raises:
ValueError: if devices is not a list of n s... | "Compute the reduction of all Tensors and put the result everywhere.\n\n Performance-optimized for a ring of devices.\n\n Args:\n xs: a list of n tf.Tensors\n devices: a list of strings\n reduction_fn_string: \"SUM\" or \"MAX\"\n\n Returns:\n a list of n Tensors\n Raises:\n ValueError: if devices is ... | 958 | false | tensorflow/mesh | allreduce_ring | 17,581 | |
LDU_FT/jbasko/configmanager/translate | LDU_FT | [
"<BEGIN>\n## `values`",
"Returns a mapping of items to their new values. The mapping includes only items whose value or raw string value\n has changed in the context.\n<END>",
"<BEGIN>\n## `changes`",
"Returns a mapping of items to their effective change objects which include the old values\n an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate API.
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 translate API.
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... | Given a built-in, an otherwise known type, or a name of known type, return its corresponding wrapper type::
>>> Types.translate(int)
<_IntType ('int', 'integer')>
>>> Types.translate('string')
<_StrType ('str', 'string', 'unicode')> | "Given a built-in, an otherwise known type, or a name of known type, return its corresponding wrapper type::\n\n >>> Types.translate(int)\n <_IntType ('int', 'integer')>\n\n >>> Types.translate('string')\n <_StrType ('str', 'string', 'unicode')>" | 120 | false | jbasko/configmanager | translate | 17,582 | |
LDU_FT/toumorokoshi/sprinter/__get_env_handle | LDU_FT | [
"<BEGIN>\n## `whitespace_smart_split`",
"Split a command by whitespace, taking care to not split on\n whitespace within quotes.",
" >>> whitespace_smart_split(\"test this \\\\\\\"in here\\\\\\\" again\")\n ['test', 'this', '\"in here\"', 'again']\n<END>",
"<BEGIN>\n## `sync`",
"execute the steps re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_env_handle API.
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_env_handle API.
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 filepath and filehandle to the .env file for the environment | "get the filepath and filehandle to the .env file for the environment" | 150 | false | toumorokoshi/sprinter | __get_env_handle | 17,583 | |
LDU_FT/quantumlib/Cirq/fswap | LDU_FT | [
"<BEGIN>\n## `_absorb_z_into_w`",
"Absorbs a Z^t gate into a W(a) flip.",
" [Where W(a) is shorthand for PhasedX(phase_exponent=a).]",
" Uses the following identity:\n ───W(a)───Z^t───\n ≡ ───W(a)───────────Z^t/2──────────Z^t/2─── (split Z)\n ≡ ───W(a)───W(a)───Z^-t/2───W(a)───Z^t/2... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fswap API.
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 fswap API.
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... | Decompose the Fermionic SWAP gate into two single-qubit gates and
one iSWAP gate.
Args:
p: the id of the first qubit
q: the id of the second qubit | "Decompose the Fermionic SWAP gate into two single-qubit gates and\n one iSWAP gate.\n\n Args:\n p: the id of the first qubit\n q: the id of the second qubit" | 1,764 | true | quantumlib/Cirq | fswap | 17,584 | |
LDU_FT/ConsenSys/mythril-classic/Not | LDU_FT | [
"<BEGIN>\n## `_get_account`",
"Get account by address.",
" :param address:\n :return:\n<END>",
"<BEGIN>\n## `_get_block_hash`",
"Get block hash by block number.",
" :param number:\n :return:\n<END>",
"<BEGIN>\n## `_get_head_block`",
"Get head block header.",
" :ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Not API.
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 Not API.
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... | Create a Not expression.
:param a:
:return: | "Create a Not expression.\n\n :param a:\n :return:" | 376 | false | ConsenSys/mythril-classic | Not | 17,585 | |
LDU_FT/slarse/pdfebc-core/if_callable_call_with_formatted_string | LDU_FT | [
"<BEGIN>\n## `send_with_attachments`",
"Send an email from the user (a gmail) to the receiver.",
" Args:\n subject (str): Subject of the email.\n message (str): A message.\n filepaths (list(str)): Filepaths to files to be attached.\n config (defaultdict): A defaultdict.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the if_callable_call_with_formatted_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the if_callable_call_with_formatted_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates... | If the callback is callable, format the string with the args and make a call.
Otherwise, do nothing.
Args:
callback (function): May or may not be callable.
formattable_string (str): A string with '{}'s inserted.
*args: A variable amount of arguments for the string formatting. Must corre... | "If the callback is callable, format the string with the args and make a call.\n Otherwise, do nothing.\n\n Args:\n callback (function): May or may not be callable.\n formattable_string (str): A string with '{}'s inserted.\n *args: A variable amount of arguments for the string formatting. Mus... | 56 | false | slarse/pdfebc-core | if_callable_call_with_formatted_string | 17,586 | |
LDU_FT/learningequality/iceqube/get_lambda_to_execute | LDU_FT | [
"<BEGIN>\n## `wait_for_job_update`",
"Blocks until a job given by job_id has updated its state (canceled, completed, progress updated, etc.)\n if timeout is not None, then this function raises iceqube.exceptions.TimeoutError.",
" :param job_id: the job's job_id to monitor for changes.\n :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lambda_to_execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lambda_to_execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | return a function that executes the function assigned to this job.
If job.track_progress is None (the default), the returned function accepts no argument
and simply needs to be called. If job.track_progress is True, an update_progress function
is passed in that can be used by the function to pr... | "return a function that executes the function assigned to this job.\n\n If job.track_progress is None (the default), the returned function accepts no argument\n and simply needs to be called. If job.track_progress is True, an update_progress function\n is passed in that can be used by the function ... | 93 | false | learningequality/iceqube | get_lambda_to_execute | 17,587 | |
LDU_FT/LucidtechAI/las-sdk-python/post_predictions | LDU_FT | [
"<BEGIN>\n## `predict`",
"Run inference and create prediction on document.\n This method takes care of creating and uploading a document specified by document_path.\n as well as running inference using model specified by model_name to create prediction on the document.",
" >>> from las impo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_predictions API.
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 post_predictions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Run inference and create a prediction, calls the POST /predictions endpoint.
>>> from las import Client
>>> client = Client(endpoint='<api endpoint>')
>>> client.post_predictions(document_id='<document id>', model_name='invoice')
:param document_id: The document id to run inference and... | "Run inference and create a prediction, calls the POST /predictions endpoint.\n\n >>> from las import Client\n >>> client = Client(endpoint='<api endpoint>')\n >>> client.post_predictions(document_id='<document id>', model_name='invoice')\n\n :param document_id: The document id to run infere... | 28 | false | LucidtechAI/las-sdk-python | post_predictions | 17,588 | |
LDU_FT/wangsix/vmo/_dist_obs_oracle | LDU_FT | [
"<BEGIN>\n## `main`",
"This example shows how to parse a music mxl file (music21 and musescore/finale required) \n and create a simple oracle representation. The output is a reshuffled midi stream shown\n in either musescore or finale based on your installation of music21. ",
" OPTIONAL ARGS:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dist_obs_oracle API.
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 _dist_obs_oracle API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | A helper function calculating distances between a feature and frames in oracle. | "A helper function calculating distances between a feature and frames in oracle." | 61 | false | wangsix/vmo | _dist_obs_oracle | 17,589 | |
LDU_FT/tensorpack/tensorpack/subproc_call | LDU_FT | [
"<BEGIN>\n## `CaffeLMDB`",
"Read a Caffe LMDB file where each value contains a ``caffe.Datum`` protobuf.\n Produces datapoints of the format: [HWC image, label].",
" Note that Caffe LMDB format is not efficient: it stores serialized raw\n arrays rather than JPEG images.",
" Args:\n lmdb_pat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subproc_call API.
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 subproc_call API.
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... | Execute a command with timeout, and return STDOUT and STDERR
Args:
cmd(str): the command to execute.
timeout(float): timeout in seconds.
Returns:
output(bytes), retcode(int). If timeout, retcode is -1. | "Execute a command with timeout, and return STDOUT and STDERR\n\n Args:\n cmd(str): the command to execute.\n timeout(float): timeout in seconds.\n\n Returns:\n output(bytes), retcode(int). If timeout, retcode is -1." | 1,105 | true | tensorpack/tensorpack | subproc_call | 17,590 | |
LDU_FT/jwodder/javaproperties/dump | LDU_FT | [
"<BEGIN>\n## `load_xml`",
"r\"\"\"\n Parse the contents of the file-like object ``fp`` as an XML properties file\n and return a `dict` of the key-value pairs.",
" Beyond basic XML well-formedness, `load_xml` only checks that the root\n element is named \"``properties``\" and that all of its ``<entry... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API.
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 dump API.
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... | Write the mapping to a file in simple line-oriented ``.properties``
format.
If the instance was originally created from a file or string with
`PropertiesFile.load()` or `PropertiesFile.loads()`, then the output
will include the comments and whitespace from the original input, and
... | "Write the mapping to a file in simple line-oriented ``.properties``\n format.\n\n If the instance was originally created from a file or string with\n `PropertiesFile.load()` or `PropertiesFile.loads()`, then the output\n will include the comments and whitespace from the original input, and\... | 115 | false | jwodder/javaproperties | dump | 17,591 | |
LDU_FT/mzucker/noteshrink/postprocess | LDU_FT | [
"<BEGIN>\n## `quantize`",
"Reduces the number of bits per channel in the given image.\n<END>",
"<BEGIN>\n## `pack_rgb`",
"Packs a 24-bit RGB triples into a single integer,\nworks on both arrays and tuples.\n<END>",
"<BEGIN>\n## `unpack_rgb`",
"Unpacks a single integer or array of integers into one or more... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the postprocess API.
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 postprocess API.
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... | Runs the postprocessing command on the file provided. | "Runs the postprocessing command on the file provided." | 34 | false | mzucker/noteshrink | postprocess | 17,592 | |
LDU_FT/theislab/scanpy/paul15 | LDU_FT | [
"<BEGIN>\n## `filter_cells`",
"Filter cell outliers based on counts and numbers of genes expressed.",
" For instance, only keep cells with at least `min_counts` counts or\n `min_genes` genes expressed. This is to filter measurement outliers,\n i.e. “unreliable” observations.",
" Only provide one o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paul15 API.
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 paul15 API.
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 ... | Development of Myeloid Progenitors [Paul15]_.
Non-logarithmized raw data.
The data has been sent out by Email from the Amit Lab. An R version for
loading the data can be found here
https://github.com/theislab/scAnalysisTutorial
Returns
-------
Annotated data matrix. | "Development of Myeloid Progenitors [Paul15]_.\n\n Non-logarithmized raw data.\n\n The data has been sent out by Email from the Amit Lab. An R version for\n loading the data can be found here\n https://github.com/theislab/scAnalysisTutorial\n\n Returns\n -------\n Annotated data matrix." | 1,142 | true | theislab/scanpy | paul15 | 17,593 | |
LDU_FT/ARMmbed/mbed-cloud-sdk-python/enrolled_device_id | LDU_FT | [
"<BEGIN>\n## `add_resource_subscription`",
"Subscribe to a resource path # noqa: E501",
"The Device Management Connect eventing model consists of observable resources. This means that endpoints can deliver updated resource content, periodically or with a more sophisticated solution-dependent logic. The OMA LwM... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enrolled_device_id 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 enrolled_device_id 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... | Sets the enrolled_device_id of this EnrollmentIdentity.
The ID of the device in the Device Directory once it has been registered.
:param enrolled_device_id: The enrolled_device_id of this EnrollmentIdentity.
:type: str | "Sets the enrolled_device_id of this EnrollmentIdentity.\n The ID of the device in the Device Directory once it has been registered.\n\n :param enrolled_device_id: The enrolled_device_id of this EnrollmentIdentity.\n :type: str" | 1,479 | true | ARMmbed/mbed-cloud-sdk-python | enrolled_device_id | 17,594 | |
LDU_FT/ntoll/uflash/unhexlify | LDU_FT | [
"<BEGIN>\n## `hexlify`",
"Takes the byte content of a Python script and returns a hex encoded\n version of it.",
" Based on the hexlify script in the microbit-micropython repository.\n<END>",
"<BEGIN>\n## `unhexlify`",
"Takes a hexlified script and turns it back into a string of Python code.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unhexlify API.
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 unhexlify API.
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... | Takes a hexlified script and turns it back into a string of Python code. | "Takes a hexlified script and turns it back into a string of Python code." | 37 | false | ntoll/uflash | unhexlify | 17,595 | |
LDU_FT/jslang/responsys/merge_list_members_RIID | LDU_FT | [
"<BEGIN>\n## `call`",
"Calls the service method defined with the arguments provided\n<END>",
"<BEGIN>\n## `connect`",
"Connects to the Responsys soap service",
" Uses the credentials passed to the client init to login and setup the session id returned.\n Returns True on successful connection, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_list_members_RIID 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 merge_list_members_RIID API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Responsys.mergeListMembersRIID call
Accepts:
InteractObject list_
RecordData record_data
ListMergeRule merge_rule
Returns a RecipientResult | "Responsys.mergeListMembersRIID call\n\n Accepts:\n InteractObject list_\n RecordData record_data\n ListMergeRule merge_rule\n\n Returns a RecipientResult" | 74 | false | jslang/responsys | merge_list_members_RIID | 17,596 | |
LDU_FT/yuce/pyswip/walk | LDU_FT | [
"<BEGIN>\n## `getAtomChars`",
"If t is an atom, return it as a string, otherwise raise InvalidTypeError.\n<END>",
"<BEGIN>\n## `getBool`",
"If t is of type bool, return it, otherwise raise InvalidTypeError.\n<END>",
"<BEGIN>\n## `getLong`",
"If t is of type long, return it, otherwise raise InvalidTypeErro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walk API.
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 walk API.
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... | This function is a 2-time recursive func,
that findin file in dirs
:parameters:
- `path` (str) - Directory path
- `name` (str) - Name of file, that we lookin for
:returns:
Path to the swipl so, path to the resource file
:returns type:
(str) | "This function is a 2-time recursive func,\n that findin file in dirs\n \n :parameters:\n - `path` (str) - Directory path\n - `name` (str) - Name of file, that we lookin for\n \n :returns:\n Path to the swipl so, path to the resource file\n\n :returns type:\n (str)" | 64 | false | yuce/pyswip | walk | 17,597 | |
LDU_FT/hyperledger-archives/indy-anoncreds/randomString | LDU_FT | [
"<BEGIN>\n## `get_hash_as_int`",
"Enumerate over the input tuple and generate a hash using the tuple values",
" :param args: sequence of either group or integer elements\n :param group: pairing group if an element is a group element\n :return:\n<END>",
"<BEGIN>\n## `randomString`",
"Generate a rand... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the randomString API.
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 randomString API.
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... | Generate a random string of the specified size.
Ensure that the size is less than the length of chars as this function uses random.choice
which uses random sampling without replacement.
:param size: size of the random string to generate
:param chars: the set of characters to use to generate the random... | "Generate a random string of the specified size.\n\n Ensure that the size is less than the length of chars as this function uses random.choice\n which uses random sampling without replacement.\n\n :param size: size of the random string to generate\n :param chars: the set of characters to use to generate the... | 48 | false | hyperledger-archives/indy-anoncreds | randomString | 17,598 | |
LDU_FT/zagaran/mongolia/insert | LDU_FT | [
"<BEGIN>\n## `exists`",
"Like __init__ but simply returns a boolean as to whether or not the\n object exists, rather than returning the whole object.",
" NOTE: if you pass in a single argument to exists, this will\n match against ID_KEY.",
" @param query: a dictionary specifying ke... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API.
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 insert API.
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 ... | Calls the create method of OBJTYPE
NOTE: this function is only properly usable on children classes that
have overridden either OBJTYPE or PATH.
@param data: the data of the new object to be created
@param **kwargs: forwarded to create
@raise DatabaseCon... | "Calls the create method of OBJTYPE\n \n NOTE: this function is only properly usable on children classes that\n have overridden either OBJTYPE or PATH.\n \n @param data: the data of the new object to be created\n @param **kwargs: forwarded to create\n \n @raise Da... | 95 | false | zagaran/mongolia | insert | 17,599 | |
LDU_FT/CartoDB/cartoframes/_setup_time | LDU_FT | [
"<BEGIN>\n## `get_scheme_cartocss`",
"Get TurboCARTO CartoCSS based on input parameters\n<END>",
"<BEGIN>\n## `custom`",
"Create a custom scheme.",
" Args:\n colors (list of str): List of hex values for styling data\n bins (int, optional): Number of bins to style by. If not given, the\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_time API.
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 _setup_time API.
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... | generates CartoCSS for time-based maps (torque) | "generates CartoCSS for time-based maps (torque)" | 217 | false | CartoDB/cartoframes | _setup_time | 17,600 | |
LDU_FT/architv/soccer-cli/list_team_codes | LDU_FT | [
"<BEGIN>\n## `get_team_scores`",
"Queries the API and gets the particular team scores\n<END>",
"<BEGIN>\n## `get_standings`",
"Queries the API and gets the standings for a particular league\n<END>",
"<BEGIN>\n## `get_league_scores`",
"Queries the API and fetches the scores for fixtures\n based upon... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_team_codes API.
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 list_team_codes API.
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... | List team names in alphabetical order of team ID, per league. | "List team names in alphabetical order of team ID, per league." | 50 | false | architv/soccer-cli | list_team_codes | 17,601 | |
LDU_FT/ladybug-tools/ladybug/_download_py2 | LDU_FT | [
"<BEGIN>\n## `project`",
"Return one vector projected on the vector other\n<END>",
"<BEGIN>\n## `rotate_around`",
"Return the vector rotated around axis through angle theta.",
" Right hand rule applies.\n<END>",
"<BEGIN>\n## `to_ip`",
"Return values in IP and the units to which the values have be... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_py2 API.
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 _download_py2 API.
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... | Download a file from a link in Python 2. | "Download a file from a link in Python 2." | 743 | false | ladybug-tools/ladybug | _download_py2 | 17,602 | |
LDU_FT/sensu-plugins/sensu-plugin-python/read_event | LDU_FT | [
"<BEGIN>\n## `__make_dynamic`",
"Create a method for each of the exit codes.\n<END>",
"<BEGIN>\n## `__exitfunction`",
"Method called by exit hook, ensures that both an exit code and\n output is supplied, also catches errors.\n<END>",
"<BEGIN>\n## `run`",
"Set up the event object, global settings an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_event API.
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 read_event API.
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... | Convert the piped check result (json) into a global 'event' dict | "Convert the piped check result (json) into a global 'event' dict" | 23 | false | sensu-plugins/sensu-plugin-python | read_event | 17,603 | |
LDU_FT/driftx/Telephus/describe_schema_versions | LDU_FT | [
"<BEGIN>\n## `set_keyspace`",
"switch all connections to another keyspace\n<END>",
"<BEGIN>\n## `retry`",
"Retry this factory's connection. It is assumed that a previous\n connection was attempted and failed- either before or after a\n successful connection.\n<END>",
"<BEGIN>\n## `prep_connect... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe_schema_versions 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 describe_schema_versions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | for each schema version present in the cluster, returns a list of nodes at that version.
hosts that do not respond will be under the key DatabaseDescriptor.INITIAL_VERSION.
the cluster is all on the same version if the size of the map is 1. | "for each schema version present in the cluster, returns a list of nodes at that version.\n hosts that do not respond will be under the key DatabaseDescriptor.INITIAL_VERSION.\n the cluster is all on the same version if the size of the map is 1." | 132 | false | driftx/Telephus | describe_schema_versions | 17,604 | |
LDU_FT/arne-cl/discoursegraphs/hildatree2dgparentedtree | LDU_FT | [
"<BEGIN>\n## `merging_cli`",
"simple commandline interface of the merging module.",
" This function is called when you use the ``discoursegraphs`` application\n directly on the command line.\n<END>",
"<BEGIN>\n## `add_node_ids_as_labels`",
"Adds the ID of each node of a discourse graph as a label (an ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hildatree2dgparentedtree 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 hildatree2dgparentedtree API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Convert the tree from HILDA's format into a conventional binary tree,
which can be easily converted into output formats like RS3. | "Convert the tree from HILDA's format into a conventional binary tree,\n which can be easily converted into output formats like RS3." | 846 | false | arne-cl/discoursegraphs | hildatree2dgparentedtree | 17,605 | |
LDU_FT/sqlboy/fileseq/conformPadding | LDU_FT | [
"<BEGIN>\n## `xfrange`",
"Returns a generator that yields the frames from start to stop, inclusive.\n In other words it adds or subtracts a frame, as necessary, to return the\n stop value as well, if the stepped range would touch that value.",
" Args:\n start (int):\n stop (int):\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the conformPadding API.
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 conformPadding API.
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... | Ensure alternate input padding formats are conformed
to formats defined in PAD_MAP
If chars is already a format defined in PAD_MAP, then
it is returned unmodified.
Example::
'#' -> '#'
'@@@@' -> '@@@@'
'%04d' -> '#'
Args:
char... | "Ensure alternate input padding formats are conformed\n to formats defined in PAD_MAP\n\n If chars is already a format defined in PAD_MAP, then\n it is returned unmodified.\n\n Example::\n '#' -> '#'\n '@@@@' -> '@@@@'\n '%04d' -> '#'\n\n Args:\n ... | 146 | false | sqlboy/fileseq | conformPadding | 17,606 | |
LDU_FT/bokeh/bokeh/accumulate_from_superclasses | 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 accumulate_from_superclasses 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 accumulate_from_superclasses API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Traverse the class hierarchy and accumulate the special sets of names
``MetaHasProps`` stores on classes:
Args:
name (str) : name of the special attribute to collect.
Typically meaningful values are: ``__container_props__``,
``__properties__``, ``__properties_with_refs__`` | "Traverse the class hierarchy and accumulate the special sets of names\n ``MetaHasProps`` stores on classes:\n\n Args:\n name (str) : name of the special attribute to collect.\n\n Typically meaningful values are: ``__container_props__``,\n ``__properties__``, ``__properties_with_refs_... | 2,090 | true | bokeh/bokeh | accumulate_from_superclasses | 17,607 | |
LDU_FT/SectorLabs/django-localized-fields/_get_populate_from_value | LDU_FT | [
"<BEGIN>\n## `save`",
"Saves this model instance to the database.\n<END>",
"<BEGIN>\n## `to_python`",
"Converts the value from a database value into a Python value.\n<END>",
"<BEGIN>\n## `get_prep_value`",
"Gets the value in a format to store into the database.\n<END>",
"<BEGIN>\n## `formfield`",
"Get... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_populate_from_value 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 _get_populate_from_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Gets the value to create a slug from in the specified language.
Arguments:
instance:
The model that the field resides on.
field_name:
The name of the field to generate a slug for.
language:
The language to generate the slug f... | "Gets the value to create a slug from in the specified language.\n\n Arguments:\n instance:\n The model that the field resides on.\n\n field_name:\n The name of the field to generate a slug for.\n\n language:\n The language to generate... | 117 | false | SectorLabs/django-localized-fields | _get_populate_from_value | 17,608 | |
LDU_FT/ryanjdillon/pyotelem/plot_data_filter | LDU_FT | [
"<BEGIN>\n## `plot_lf_hf`",
"Plot original signal, low-pass filtered, and high-pass filtered signals",
" Args\n ----\n x: ndarray\n Signal data array\n xlf: ndarray\n Low-pass filtered signal\n xhf: ndarray\n High-pass filtered signal\n title: str\n Main title of pl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_data_filter API.
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 plot_data_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Plot frequency response and filter overlay for butter filtered data
Args
----
data: ndarray
Signal array
data_f: float
Signal sampling rate
b: array_like
Numerator of a linear filter
a: array_like
Denominator of a linear filter
cutoff: float
Cutoff fr... | "Plot frequency response and filter overlay for butter filtered data\n\n Args\n ----\n data: ndarray\n Signal array\n data_f: float\n Signal sampling rate\n b: array_like\n Numerator of a linear filter\n a: array_like\n Denominator of a linear filter\n cutoff: float\n ... | 268 | false | ryanjdillon/pyotelem | plot_data_filter | 17,609 | |
LDU_FT/port-zero/mite/edit_entry | LDU_FT | [
"<BEGIN>\n## `request`",
"Low-level request interface to mite. Takes a HTTP request scheme (lower\n case!), a URL to request (relative), and optionally data to add to the\n request. Either returns the JSON body of the request or raises a \n HttpException.\n<END>",
"<BEGIN>\n## `get`",
"Lo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_entry API.
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 edit_entry API.
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... | Edits a time entry by ID. Takes the same data as `create_entry`, but
requires an ID to work. It also takes a `force` parameter that, when set
to True, allows administrators to edit locked entries. | "Edits a time entry by ID. Takes the same data as `create_entry`, but\n requires an ID to work. It also takes a `force` parameter that, when set\n to True, allows administrators to edit locked entries." | 32 | false | port-zero/mite | edit_entry | 17,610 | |
LDU_FT/thebjorn/pydeps/externals | LDU_FT | [
"<BEGIN>\n## `write`",
"Write ``txt`` to file and output stream (StringIO).\n<END>",
"<BEGIN>\n## `write_attributes`",
"Write comma separated attribute values (if exists).\n<END>",
"<BEGIN>\n## `is_noise`",
"Is this module just noise? (too common either at top or bottom of\n the graph).\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the externals API.
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 externals API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return a list of direct external dependencies of ``pkgname``.
Called for the ``pydeps --externals`` command. | "Return a list of direct external dependencies of ``pkgname``.\n Called for the ``pydeps --externals`` command." | 60 | false | thebjorn/pydeps | externals | 17,611 | |
LDU_FT/hatemile/hatemile-for-python/_validate_header | LDU_FT | [
"<BEGIN>\n## `_get_shortcut_prefix`",
"Returns the shortcut prefix of browser.",
" :param user_agent: The user agent of browser.\n :type user_agent: str\n :param standart_prefix: The default prefix.\n :type standart_prefix: str\n :return: The shortcut prefix of browser.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_header API.
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 _validate_header API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Validate the list that represents the table header.
:param hed: The list that represents the table header.
:type hed: list(list(hatemile.util.html.htmldomelement.HTMLDOMElement))
:return: True if the table header is valid or False if the table header
is not valid.
:rtyp... | "Validate the list that represents the table header.\n\n :param hed: The list that represents the table header.\n :type hed: list(list(hatemile.util.html.htmldomelement.HTMLDOMElement))\n :return: True if the table header is valid or False if the table header\n is not valid.\n ... | 202 | false | hatemile/hatemile-for-python | _validate_header | 17,612 | |
LDU_FT/balloob/pychromecast/adjusted_current_time | LDU_FT | [
"<BEGIN>\n## `new_connection_status`",
"Handle reception of a new ConnectionStatus.\n<END>",
"<BEGIN>\n## `register_listener`",
"Register a listener for audio group changes of cast uuid.\n On update will call:\n listener.added_to_multizone(group_uuid)\n The cast has been a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adjusted_current_time 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 adjusted_current_time 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 calculated current seek time of media in seconds | "Returns calculated current seek time of media in seconds" | 145 | false | balloob/pychromecast | adjusted_current_time | 17,613 | |
LDU_FT/bitlabstudio/django-libs/get_format_modules | LDU_FT | [
"<BEGIN>\n## `add_form_widget_attr`",
"Adds widget attributes to a bound form field.",
" This is helpful if you would like to add a certain class to all your forms\n (i.e. `form-control` to all form fields when you are using Bootstrap)::",
" {% load libs_tags %}\n {% for field in form.fiel... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_format_modules 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_format_modules 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... | Returns a list of the format modules found | "Returns a list of the format modules found" | 101 | false | bitlabstudio/django-libs | get_format_modules | 17,614 | |
LDU_FT/btr1975/ipaddresstools/random_cidr_mask | LDU_FT | [
"<BEGIN>\n## `ucast_ip_mask`",
"Function to check if a address is unicast and that the CIDR mask is good\n Args:\n ip_addr_and_mask: Unicast IP address and mask in the following format 192.168.1.1/24\n return_tuple: Set to True it returns a IP and mask in a tuple, set to False returns True or Fal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_cidr_mask API.
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 random_cidr_mask API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Function to generate a random CIDR value
:param
lowest_mask: An integer value for the lowest mask you want it to generate
:return:
A string of a random CIDR mask | "Function to generate a random CIDR value\n :param \n lowest_mask: An integer value for the lowest mask you want it to generate\n \n :return: \n A string of a random CIDR mask" | 46 | false | btr1975/ipaddresstools | random_cidr_mask | 17,615 | |
LDU_FT/ciena/afkak/decode_offset_commit_response | LDU_FT | [
"<BEGIN>\n## `_coerce_topic`",
"Ensure that the topic name is text string of a valid length.",
" :param topic: Kafka topic name. Valid characters are in the set ``[a-zA-Z0-9._-]``.\n :raises ValueError: when the topic name exceeds 249 bytes\n :raises TypeError: when the topic is not :class:`unicode` or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_offset_commit_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_offset_commit_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Decode bytes to an OffsetCommitResponse
:param bytes data: bytes to decode | "Decode bytes to an OffsetCommitResponse\n\n :param bytes data: bytes to decode" | 326 | false | ciena/afkak | decode_offset_commit_response | 17,616 | |
LDU_FT/bcbnz/pylabels/_calculate_edges | LDU_FT | [
"<BEGIN>\n## `partial_page`",
"Allows a page to be marked as already partially used so you can\n generate a PDF to print on the remaining labels.",
" Parameters\n ----------\n page: positive integer\n The page number to mark as partially used. The page must not have\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate_edges API.
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 _calculate_edges API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Calculate edges of the current label. Not intended for external use. | "Calculate edges of the current label. Not intended for external use." | 46 | false | bcbnz/pylabels | _calculate_edges | 17,617 | |
LDU_FT/wtsi-hgi/python-hgijson/build | LDU_FT | [
"<BEGIN>\n## `json_encoder_to_serializer`",
"Converts a `JSONEncoder` class into an equivalent `Serializer` class.\n :param encoder_cls: the encoder class type or a function that returns the type\n :return: the equivalent `Serializer` class\n<END>",
"<BEGIN>\n## `json_decoder_to_deserializer`",
"Convert... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API.
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 build API.
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... | Build a subclass of `MappingJSONDecoder`.
:return: the built subclass | "Build a subclass of `MappingJSONDecoder`.\n :return: the built subclass" | 32 | false | wtsi-hgi/python-hgijson | build | 17,618 | |
LDU_FT/eighthave/pyvendapin/was_packet_accepted | LDU_FT | [
"<BEGIN>\n## `_checksum`",
"calculate the XOR checksum of a packet in string format\n<END>",
"<BEGIN>\n## `was_packet_accepted`",
"parse the \"command\" byte from the response packet to get a \"response code\"\n<END>",
"<BEGIN>\n## `parsedata`",
"parse the data section of a packet, it can range from 0 to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the was_packet_accepted 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 was_packet_accepted 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... | parse the "command" byte from the response packet to get a "response code" | "parse the \"command\" byte from the response packet to get a \"response code\"" | 12 | false | eighthave/pyvendapin | was_packet_accepted | 17,619 | |
LDU_FT/jmbhughes/suvi-trainer/update_button_action | LDU_FT | [
"<BEGIN>\n## `process_file`",
"Open a single labeled image at path and get needed information, return as a dictionary\n<END>",
"<BEGIN>\n## `plot_counts`",
"plot the counts of a given theme from a created database over time\n<END>",
"<BEGIN>\n## `query_hek`",
"requests hek responses for a given time\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_button_action 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 update_button_action API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | when update button is clicked, refresh the data preview | "when update button is clicked, refresh the data preview" | 90 | false | jmbhughes/suvi-trainer | update_button_action | 17,620 | |
LDU_FT/C4ptainCrunch/ics.py/overlapping | LDU_FT | [
"<BEGIN>\n## `arrow_get`",
"this function exists because ICS uses ISO 8601 without dashes or\n colons, i.e. not ISO 8601 at all.\n<END>",
"<BEGIN>\n## `parse_duration`",
"Return a timedelta object from a string in the DURATION property format\n<END>",
"<BEGIN>\n## `timedelta_to_duration`",
"Return a st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overlapping API.
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 overlapping API.
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... | Iterates (in chronological order) over every event that has an intersection
with the timespan between `start` and `stop`
Args:
start : (Arrow object)
stop : (Arrow object) | "Iterates (in chronological order) over every event that has an intersection\n with the timespan between `start` and `stop`\n\n Args:\n start : (Arrow object)\n stop : (Arrow object)" | 50 | false | C4ptainCrunch/ics.py | overlapping | 17,621 | |
LDU_FT/knipknap/exscript/_parse_url | LDU_FT | [
"<BEGIN>\n## `get_protocol_from_name`",
"Returns the protocol class for the protocol with the given name.",
" :type name: str\n :param name: The name of the protocol.\n :rtype: Protocol\n :return: The protocol class.\n<END>",
"<BEGIN>\n## `create_protocol`",
"Returns an instance of the protoco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_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.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_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.
The extrac... | Given a urlencoded path, returns the path and the dictionary of
query arguments, all in Unicode. | "Given a urlencoded path, returns the path and the dictionary of\n query arguments, all in Unicode." | 683 | false | knipknap/exscript | _parse_url | 17,622 | |
LDU_FT/mrcagney/gtfstk/summarize | LDU_FT | [
"<BEGIN>\n## `get_stop_times`",
"Return a subset of ``feed.stop_times``.",
" Parameters\n ----------\n feed : Feed\n date : string\n YYYYMMDD date string restricting the output to trips active\n on the date",
" Returns\n -------\n DataFrame\n Subset of ``feed.stop_tim... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the summarize API.
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 summarize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return a DataFrame summarizing all GTFS tables in the given feed
or in the given table if specified.
Parameters
----------
feed : Feed
table : string
A GTFS table name, e.g. ``'stop_times'``
Returns
-------
DataFrame
Columns are
- ``'table'``: name of the GTFS ... | "Return a DataFrame summarizing all GTFS tables in the given feed\n or in the given table if specified.\n\n Parameters\n ----------\n feed : Feed\n table : string\n A GTFS table name, e.g. ``'stop_times'``\n\n Returns\n -------\n DataFrame\n Columns are\n\n - ``'table'``: na... | 474 | false | mrcagney/gtfstk | summarize | 17,623 | |
LDU_FT/brianhie/scanorama/silhouette_score | LDU_FT | [
"<BEGIN>\n## `silhouette_score`",
"Compute the mean Silhouette Coefficient of all samples.",
" The Silhouette Coefficient is calculated using the mean intra-cluster\n distance (``a``) and the mean nearest-cluster distance (``b``) for each\n sample. The Silhouette Coefficient for a sample is ``(b - a) ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the silhouette_score API.
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 silhouette_score API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Compute the mean Silhouette Coefficient of all samples.
The Silhouette Coefficient is calculated using the mean intra-cluster
distance (``a``) and the mean nearest-cluster distance (``b``) for each
sample. The Silhouette Coefficient for a sample is ``(b - a) / max(a,
b)``. To clarify, ``b`` is the di... | "Compute the mean Silhouette Coefficient of all samples.\n\n The Silhouette Coefficient is calculated using the mean intra-cluster\n distance (``a``) and the mean nearest-cluster distance (``b``) for each\n sample. The Silhouette Coefficient for a sample is ``(b - a) / max(a,\n b)``. To clarify, ``b`` is ... | 137 | false | brianhie/scanorama | silhouette_score | 17,624 | |
LDU_FT/edwards-lab/MVtest/print_result | LDU_FT | [
"<BEGIN>\n## `standardize`",
"Standardize the variables within a range [-1.0 and 1.0]",
" This replaces the local copies of this data. When it's time to\n scale back, use destandardize from the datasource for that.\n<END>",
"<BEGIN>\n## `destandardize`",
"Revert the betas and variance componen... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_result API.
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 print_result API.
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... | Print result to f
:param f: stream to print output
:param verbose: print all data or only the most important parts? | "Print result to f\n\n :param f: stream to print output\n :param verbose: print all data or only the most important parts?" | 44 | false | edwards-lab/MVtest | print_result | 17,625 | |
LDU_FT/osrg/ryu/serialize | LDU_FT | [
"<BEGIN>\n## `update`",
"Updates global configuration settings with given values.",
" First checks if given configuration values differ from current values.\n If any of the configuration values changed, generates a change event.\n Currently we generate change event for any configuration cha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API.
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 serialize API.
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... | Encode a packet and store the resulted bytearray in self.data.
This method is legal only when encoding a packet. | "Encode a packet and store the resulted bytearray in self.data.\n\n This method is legal only when encoding a packet." | 1,172 | true | osrg/ryu | serialize | 17,626 | |
LDU_FT/ucsb-cs-education/hairball/finalize | LDU_FT | [
"<BEGIN>\n## `main`",
"The entrypoint for the hairball command installed via setup.py.\n<END>",
"<BEGIN>\n## `path_to_key`",
"Return the sha1sum (key) belonging to the file at filepath.\n<END>",
"<BEGIN>\n## `key_to_path`",
"Return the fullpath to the file with sha1sum key.\n<END>",
"<BEGIN>\n## `load`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the finalize API.
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 finalize API.
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... | Output the default sprite names found in the project. | "Output the default sprite names found in the project." | 90 | false | ucsb-cs-education/hairball | finalize | 17,627 | |
LDU_FT/Yubico/python-pyhsm/walk_dir | LDU_FT | [
"<BEGIN>\n## `hexdump`",
"Produce a string hexdump of src, for debug output.\n<END>",
"<BEGIN>\n## `group`",
"Split data into chunks of num chars each\n<END>",
"<BEGIN>\n## `key_handle_to_int`",
"Turn \"123\" into 123 and \"KSM1\" into 827151179\n (0x314d534b, 'K' = 0x4b, S = '0x53', M = 0x4d).",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walk_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walk_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Check all files in `path' to see if there is any requests that
we should send out on the bus. | "Check all files in `path' to see if there is any requests that\n we should send out on the bus." | 310 | false | Yubico/python-pyhsm | walk_dir | 17,628 | |
LDU_FT/awslabs/aws-cfn-template-flip/to_json | LDU_FT | [
"<BEGIN>\n## `to_json`",
"Assume the input is YAML and convert to JSON\n<END>",
"<BEGIN>\n## `to_yaml`",
"Assume the input is JSON and convert to YAML\n<END>",
"<BEGIN>\n## `flip`",
"Figure out the input format and convert the data to the opposing output format\n<END>",
"<BEGIN>\n## `clean`",
"Clean u... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Assume the input is YAML and convert to JSON | "Assume the input is YAML and convert to JSON" | 12 | false | awslabs/aws-cfn-template-flip | to_json | 17,629 | |
LDU_FT/sanoma/django-arctic/get_ordering | LDU_FT | [
"<BEGIN>\n## `get_all_fields`",
"Returns a list of all field names on the instance.\n<END>",
"<BEGIN>\n## `query_string_ordering`",
"Add ordering param to the given query string\n :param context: template context\n :param value: examples would be '-id' or 'id'. A minus indicates that the\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ordering API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ordering API.
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... | Ordering used for queryset filtering (should not contain prefix). | "Ordering used for queryset filtering (should not contain prefix)." | 85 | false | sanoma/django-arctic | get_ordering | 17,630 | |
LDU_FT/n1analytics/python-paillier/_add_scalar | LDU_FT | [
"<BEGIN>\n## `generate_keypair`",
"Generate a paillier private key.",
" Output as JWK to given output file. Use \"-\" to output the private key to\n stdout. See the extract command to extract the public component of the\n private key.",
" Note:\n The default ID text includes the current tim... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_scalar API.
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 _add_scalar API.
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 E(a + b), given self=E(a) and b.
Args:
scalar: an int or float b, to be added to `self`.
Returns:
EncryptedNumber: E(a + b), calculated by encrypting b and
taking the product of E(a) and E(b) modulo
:attr:`~PaillierPublicKey.n` ** 2.
Raises:... | "Returns E(a + b), given self=E(a) and b.\n\n Args:\n scalar: an int or float b, to be added to `self`.\n\n Returns:\n EncryptedNumber: E(a + b), calculated by encrypting b and\n taking the product of E(a) and E(b) modulo\n :attr:`~PaillierPublicKey.n` ** 2.\n\n ... | 169 | false | n1analytics/python-paillier | _add_scalar | 17,631 | |
LDU_FT/vinci1it2000/schedula/define_plot_data | 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 define_plot_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the define_plot_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Defines the data to be plotted.
:param data:
All data.
:type data: dict
:param x_name:
x-axes name.
:type x_name: str
:param y_names:
y-axes names to be plotted.
:type y_names: str
:return:
Data to be plotted.
:rtype: list | "Defines the data to be plotted.\n\n :param data:\n All data.\n :type data: dict\n\n :param x_name:\n x-axes name.\n :type x_name: str\n\n :param y_names:\n y-axes names to be plotted.\n :type y_names: str\n\n :return:\n Data to be plotted.\n :rtype: list" | 765 | false | vinci1it2000/schedula | define_plot_data | 17,632 | |
LDU_FT/eqcorrscan/EQcorrscan/space_cluster | LDU_FT | [
"<BEGIN>\n## `_xcorr_interp`",
"Intrpolate around the maximum correlation value for sub-sample precision.",
" :param ccc: Cross-correlation array\n :type ccc: numpy.ndarray\n :param dt: sample interval\n :type dt: float",
" :return: Position of interpolated maximum in seconds from start of ccc\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the space_cluster API.
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 space_cluster API.
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... | Cluster a catalog by distance only.
Will compute the matrix of physical distances between events and utilize
the :mod:`scipy.clustering.hierarchy` module to perform the clustering.
:type catalog: obspy.core.event.Catalog
:param catalog: Catalog of events to clustered
:type d_thresh: float
:par... | "Cluster a catalog by distance only.\n\n Will compute the matrix of physical distances between events and utilize\n the :mod:`scipy.clustering.hierarchy` module to perform the clustering.\n\n :type catalog: obspy.core.event.Catalog\n :param catalog: Catalog of events to clustered\n :type d_thresh: float\... | 1,281 | true | eqcorrscan/EQcorrscan | space_cluster | 17,633 | |
LDU_FT/alpacahq/pylivetrader/make_eventrule | LDU_FT | [
"<BEGIN>\n## `_deprecated_getitem_method`",
"Create a deprecated ``__getitem__`` method that tells users to use\n getattr instead.",
" Parameters\n ----------\n name : str\n The name of the object in the warning message.\n attrs : iterable[str]\n The set of allowed attributes.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_eventrule API.
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 make_eventrule API.
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... | Constructs an event rule from the factory api. | "Constructs an event rule from the factory api." | 81 | false | alpacahq/pylivetrader | make_eventrule | 17,634 | |
LDU_FT/scizzorz/bumpy/_highlight | LDU_FT | [
"<BEGIN>\n## `_opts_to_dict`",
"Convert a tuple of options returned from getopt into a dictionary.\n<END>",
"<BEGIN>\n## `_highlight`",
"Return a string highlighted for a terminal.\n<END>",
"<BEGIN>\n## `task`",
"Register a function as a task, as well as applying any attributes.\n<END>",
"<BEGIN>\n## `v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _highlight API.
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 _highlight API.
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... | Return a string highlighted for a terminal. | "Return a string highlighted for a terminal." | 22 | false | scizzorz/bumpy | _highlight | 17,635 | |
LDU_FT/benjamin-hodgson/asynqp/delete | LDU_FT | [
"<BEGIN>\n## `open_channel`",
"Open a new channel on this connection.",
" This method is a :ref:`coroutine <coroutine>`.",
" :return: The new :class:`Channel` object.\n<END>",
"<BEGIN>\n## `close`",
"Close the connection by handshaking with the server.",
" This method is a :ref:`cor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Delete the exchange.
This method is a :ref:`coroutine <coroutine>`.
:keyword bool if_unused: If true, the exchange will only be deleted if
it has no queues bound to it. | "Delete the exchange.\n\n This method is a :ref:`coroutine <coroutine>`.\n\n :keyword bool if_unused: If true, the exchange will only be deleted if\n it has no queues bound to it." | 95 | false | benjamin-hodgson/asynqp | delete | 17,636 | |
LDU_FT/aacanakin/glim/main | LDU_FT | [
"<BEGIN>\n## `import_source`",
"Function imports a module given full path",
" Args\n ----\n module (string): the module name\n path (string): the full path of module\n pass_errors(boolean): the switch for function\n to skip errors or not.",
" Returns\n -------\n module (module): the... | 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... | The single entry point to glim command line interface.Main method is called
from pypi console_scripts key or by glim.py on root.This function
initializes a new app given the glim commands and app commands if app
exists.
Usage
-----
$ python glim/cli.py start
$ python glim.py start (on r... | "The single entry point to glim command line interface.Main method is called\n from pypi console_scripts key or by glim.py on root.This function\n initializes a new app given the glim commands and app commands if app\n exists.\n\n Usage\n -----\n $ python glim/cli.py start\n $ python glim.py st... | 74 | false | aacanakin/glim | main | 17,637 | |
LDU_FT/NickMonzillo/SmartCloud/dir_freq | LDU_FT | [
"<BEGIN>\n## `separate`",
"Takes text and separates it into a list of words\n<END>",
"<BEGIN>\n## `eliminate_repeats`",
"Returns a list of words that occur in the text. Eliminates stopwords.\n<END>",
"<BEGIN>\n## `wordcount`",
"Returns the count of the words in a file.\n<END>",
"<BEGIN>\n## `tuplecount`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dir_freq API.
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 dir_freq API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Returns a list of tuples of (word,# of directories it occurs) | "Returns a list of tuples of (word,# of directories it occurs)" | 28 | false | NickMonzillo/SmartCloud | dir_freq | 17,638 | |
LDU_FT/SUSE-Enceladus/ipa/_create_subnet | LDU_FT | [
"<BEGIN>\n## `_get_instance_state`",
"Attempt to retrieve the state of the instance.\n Raises:\n EC2CloudException: If the instance cannot be found.\n<END>",
"<BEGIN>\n## `_get_user_data`",
"Return formatted bash script string.",
" The public ssh key is added by cloud init to the i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_subnet API.
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 _create_subnet API.
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... | Create a subnet in the provided vnet and resource group. | "Create a subnet in the provided vnet and resource group." | 143 | false | SUSE-Enceladus/ipa | _create_subnet | 17,639 | |
LDU_FT/mfitzp/padua/box | LDU_FT | [
"<BEGIN>\n## `remove_rows_matching`",
"Return a ``DataFrame`` with rows where `column` values match `match` are removed.",
" The selected `column` series of values from the supplied Pandas ``DataFrame`` is compared\n to `match`, and those rows that match are removed from the DataFrame.",
" :param df:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the box API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the box API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Generate a box plot from pandas DataFrame with sample grouping.
Plot group mean, median and deviations for specific values (proteins) in the dataset. Plotting is controlled via
the `s` param, which is used as a search string along the y-axis. All matching values will be returned and plotted.
Multiple searc... | "Generate a box plot from pandas DataFrame with sample grouping.\n\n Plot group mean, median and deviations for specific values (proteins) in the dataset. Plotting is controlled via\n the `s` param, which is used as a search string along the y-axis. All matching values will be returned and plotted.\n Multiple ... | 266 | false | mfitzp/padua | box | 17,640 | |
LDU_FT/MarcoFavorito/pythomata/from_transitions | LDU_FT | [
"<BEGIN>\n## `from_transitions`",
"Initialize a DFA without explicitly specifying the set of states and the alphabet.",
" :param initial_state: the initial state.\n :param accepting_states: the accepting state.\n :param transition_function: the transition function.\n :return: the DFA... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_transitions API.
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 from_transitions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Initialize a DFA without explicitly specifying the set of states and the alphabet.
:param initial_state: the initial state.
:param accepting_states: the accepting state.
:param transition_function: the transition function.
:return: the DFA. | "Initialize a DFA without explicitly specifying the set of states and the alphabet.\n\n :param initial_state: the initial state.\n :param accepting_states: the accepting state.\n :param transition_function: the transition function.\n :return: the DFA." | 16 | false | MarcoFavorito/pythomata | from_transitions | 17,641 | |
LDU_FT/maxalbert/tohu/all_independent_generators | LDU_FT | [
"<BEGIN>\n## `augment_init_method`",
"Replace the existing cls.__init__() method with a new one which\n also initialises the field generators and similar bookkeeping.\n<END>",
"<BEGIN>\n## `find_field_generators`",
"Return dictionary with the names and instances of\n all tohu.BaseGenerator occurring in ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_independent_generators 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 all_independent_generators API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Return all generators in this namespace which are not clones. | "Return all generators in this namespace which are not clones." | 142 | false | maxalbert/tohu | all_independent_generators | 17,642 | |
LDU_FT/scarface-4711/denonavr/evaluate_scpd_xml | LDU_FT | [
"<BEGIN>\n## `exec_appcommand_post`",
"Prepare and execute a HTTP POST call to AppCommand.xml end point.",
" Returns XML ElementTree on success and None on fail.\n<END>",
"<BEGIN>\n## `get_status_xml`",
"Get status XML via HTTP and return it as XML ElementTree.\n<END>",
"<BEGIN>\n## `create_zones`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate_scpd_xml API.
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 evaluate_scpd_xml API.
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 and evaluate SCPD XML to identified URLs.
Returns dictionary with keys "host", "modelName", "friendlyName" and
"presentationURL" if a Denon AVR device was found and "False" if not. | "Get and evaluate SCPD XML to identified URLs.\n\n Returns dictionary with keys \"host\", \"modelName\", \"friendlyName\" and\n \"presentationURL\" if a Denon AVR device was found and \"False\" if not." | 85 | false | scarface-4711/denonavr | evaluate_scpd_xml | 17,643 | |
LDU_FT/apetrynet/pyfilemail/compress | LDU_FT | [
"<BEGIN>\n## `not_completed`",
"Decorator function to check if user is loged in.",
" :raises: :class:`FMBaseError` if not logged in\n<END>",
"<BEGIN>\n## `_parse_recipients`",
"Make sure we have a \",\" separated list of recipients",
" :param to: Recipient(s)\n :type to: (str,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compress API.
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 compress API.
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... | Compress files on the server side after transfer complete
and make zip available for download.
:rtype: ``bool`` | "Compress files on the server side after transfer complete\n and make zip available for download.\n\n :rtype: ``bool``" | 116 | false | apetrynet/pyfilemail | compress | 17,644 | |
LDU_FT/jim-easterbrook/pywws/current_pos | LDU_FT | [
"<BEGIN>\n## `read_data`",
"Receive data from the device.",
" If the read fails for any reason, an :obj:`IOError` exception\n is raised.",
" :param size: the number of bytes to read.",
" :type size: int",
" :return: the data received.",
" :rtype: list(int)\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the current_pos API.
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 current_pos API.
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... | Get circular buffer location where current data is being written. | "Get circular buffer location where current data is being written." | 210 | false | jim-easterbrook/pywws | current_pos | 17,645 | |
LDU_FT/jlmadurga/permabots/get | LDU_FT | [
"<BEGIN>\n## `process`",
"Render value_template of the parameter using context.",
" :param context: Processing context\n<END>",
"<BEGIN>\n## `post`",
"Process Telegram webhook.\n 1. Serialize Telegram message\n 2. Get an enabled Telegram bot\n 3. Create :class:`Update... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Get recipient by id
---
serializer: TelegramRecipientSerializer
responseMessages:
- code: 401
message: Not authenticated | "Get recipient by id\n ---\n serializer: TelegramRecipientSerializer\n responseMessages:\n - code: 401\n message: Not authenticated" | 152 | false | jlmadurga/permabots | get | 17,646 | |
LDU_FT/vcatalano/py-authorize/list | LDU_FT | [
"<BEGIN>\n## `prettify`",
"Return a pretty-printed XML string for the Element.\n<END>",
"<BEGIN>\n## `list`",
"Required Parameters:\n * searchType (str)\n - cardExpiringThisMonth\n - subscriptionActive\n - subscriptionInactive\n - subscriptionExpiringThisMonth"... | 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... | Required Parameters:
* searchType (str)
- cardExpiringThisMonth
- subscriptionActive
- subscriptionInactive
- subscriptionExpiringThisMonth
Optional Parameters:
* sorting
* orderBy (string)
- id
- name
... | "Required Parameters:\n * searchType (str)\n - cardExpiringThisMonth\n - subscriptionActive\n - subscriptionInactive\n - subscriptionExpiringThisMonth\n\n Optional Parameters:\n * sorting\n * orderBy (string)\n - id\n - ... | 11 | false | vcatalano/py-authorize | list | 17,647 | |
LDU_FT/ask/redish/intersection | LDU_FT | [
"<BEGIN>\n## `save`",
"Save this entry.",
" If the entry does not have an :attr:`id`, a new id will be assigned,\n and the :attr:`id` attribute set accordingly.",
" Pre-save processing of the fields saved can be done by\n overriding the :meth:`prepare_save` method.",
" Add... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intersection API.
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 intersection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return the intersection of two sets as a new set.
(i.e. all elements that are in both sets.)
Operates on either redish.types.Set or __builtins__.set. | "Return the intersection of two sets as a new set.\n\n (i.e. all elements that are in both sets.)\n\n Operates on either redish.types.Set or __builtins__.set." | 88 | false | ask/redish | intersection | 17,648 | |
LDU_FT/googleapis/dialogflow-python-client-v2/delete_entity | LDU_FT | [
"<BEGIN>\n## `from_service_account_file`",
"Creates an instance of this client using the provided credentials\n file.",
" Args:\n filename (str): The path to the service account private key json\n file.\n args: Additional arguments to pass to the constructor.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_entity API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_entity API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Delete entity with the given entity type and entity value. | "Delete entity with the given entity type and entity value." | 280 | false | googleapis/dialogflow-python-client-v2 | delete_entity | 17,649 | |
LDU_FT/wickerwaka/russound_rio/watch_zone | LDU_FT | [
"<BEGIN>\n## `_retrieve_cached_zone_variable`",
"Retrieves the cache state of the named variable for a particular\n zone. If the variable has not been cached then the UncachedVariable\n exception is raised.\n<END>",
"<BEGIN>\n## `_store_cached_zone_variable`",
"Stores the current known value of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watch_zone API.
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 watch_zone API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Add a zone to the watchlist.
Zones on the watchlist will push all
state changes (and those of the source they are currently connected to)
back to the client | "Add a zone to the watchlist.\n Zones on the watchlist will push all\n state changes (and those of the source they are currently connected to)\n back to the client" | 24 | false | wickerwaka/russound_rio | watch_zone | 17,650 | |
LDU_FT/postlund/pyatv/parse | LDU_FT | [
"<BEGIN>\n## `lookup_tag`",
"Look up a tag based on its key. Returns a DmapTag.\n<END>",
"<BEGIN>\n## `scan_for_apple_tvs`",
"Scan for Apple TVs using zeroconf (bonjour) and returns them.\n<END>",
"<BEGIN>\n## `add_service`",
"Handle callback from zeroconf when a service has been discovered.\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Parse a string represention of Credentials. | "Parse a string represention of Credentials." | 146 | false | postlund/pyatv | parse | 17,651 | |
LDU_FT/freshbooks/statsdecor/gauge | LDU_FT | [
"<BEGIN>\n## `increment`",
"Function decorator for incrementing a statsd stat whenever\n a function is invoked.",
" >>> from statsdecor.decorators import increment\n >>> @increment('my.metric')\n >>> def my_func():\n >>> pass\n<END>",
"<BEGIN>\n## `decrement`",
"Function decorator for dec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gauge API.
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 gauge API.
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... | Set the value for a gauge.
>>> import statsdecor
>>> statsdecor.gauge('my.metric', 10) | "Set the value for a gauge.\n\n >>> import statsdecor\n >>> statsdecor.gauge('my.metric', 10)" | 25 | false | freshbooks/statsdecor | gauge | 17,652 | |
LDU_FT/brunato/lograptor/match_rules | LDU_FT | [
"<BEGIN>\n## `make_text`",
"Make the text representation of a report data element.\n<END>",
"<BEGIN>\n## `make_html`",
"Make the text representation of a report element as html.\n<END>",
"<BEGIN>\n## `make_csv`",
"Get the text representation of a report element as csv.\n<END>",
"<BEGIN>\n## `make_format... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_rules API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_rules API.
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... | Process a log line data message with app's pattern rules.
Return a tuple with this data:
Element #0 (app_matched): True if a rule match, False otherwise;
Element #1 (has_full_match): True if a rule match and is a filter or the
app has not filters; False if a rule ma... | "Process a log line data message with app's pattern rules.\r\n Return a tuple with this data:\r\n\r\n Element #0 (app_matched): True if a rule match, False otherwise;\r\n Element #1 (has_full_match): True if a rule match and is a filter or the\r\n app has not filters; False i... | 121 | false | brunato/lograptor | match_rules | 17,653 | |
LDU_FT/inveniosoftware/invenio-userprofiles/username | LDU_FT | [
"<BEGIN>\n## `register_form_factory`",
"Factory for creating an extended user registration form.\n<END>",
"<BEGIN>\n## `confirm_register_form_factory`",
"Factory for creating a confirm register form.\n<END>",
"<BEGIN>\n## `_update_with_csrf_disabled`",
"Update the input dict with CSRF disabled depending o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the username API.
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 username API.
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... | Set username.
.. note:: The username will be converted to lowercase. The display name
will contain the original version. | "Set username.\n\n .. note:: The username will be converted to lowercase. The display name\n will contain the original version." | 20 | false | inveniosoftware/invenio-userprofiles | username | 17,654 | |
LDU_FT/juju/charm-helpers/_ows_check_charm_func | LDU_FT | [
"<BEGIN>\n## `get_ubuntu_release_from_sentry`",
"Get Ubuntu release codename from sentry unit.",
" :param sentry_unit: amulet sentry/service unit pointer\n :returns: list of strings - release codename, failure message\n<END>",
"<BEGIN>\n## `validate_services`",
"Validate that lists of commands... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ows_check_charm_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ows_check_charm_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.
... | Run a custom check function for the charm to see if it wants to
change the state. This is only run if not in 'maintenance' and
tests to see if the new state is more important that the previous
one determined by the interfaces/relations check.
@param state: the previously determined state so far.
@... | "Run a custom check function for the charm to see if it wants to\n change the state. This is only run if not in 'maintenance' and\n tests to see if the new state is more important that the previous\n one determined by the interfaces/relations check.\n\n @param state: the previously determined state so far.... | 1,689 | true | juju/charm-helpers | _ows_check_charm_func | 17,655 | |
LDU_FT/Neurosim-lab/netpyne/getSpktSpkid | LDU_FT | [
"<BEGIN>\n## `add_scalebar`",
"Add scalebars to axes\n Adds a set of scale bars to *ax*, matching the size to the ticks of the plot\n and optionally hiding the x and y axes\n - ax : the axis to attach ticks to\n - matchx,matchy : if True, set size of scale bars to spacing between ticks\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getSpktSpkid API.
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 getSpktSpkid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | return spike ids and times; with allCells=True just need to identify slice of time so can omit cellGids | "return spike ids and times; with allCells=True just need to identify slice of time so can omit cellGids" | 234 | false | Neurosim-lab/netpyne | getSpktSpkid | 17,656 | |
LDU_FT/gplepage/gvar/p2x | LDU_FT | [
"<BEGIN>\n## `deriv`",
"Compute *n*-th derivative of ``self``.",
" :param n: Number of derivatives.\n :type n: positive integer\n :returns: *n*-th derivative of ``self``.\n<END>",
"<BEGIN>\n## `integ`",
"Compute *n*-th indefinite integral of ``self``.",
" If *x0* is specified, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p2x API.
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 p2x API.
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... | Map parameters ``p`` to vector in x-space.
x-space is a vector space of dimension ``p.size``. Its axes are
in the directions specified by the eigenvectors of ``p``'s covariance
matrix, and distance along an axis is in units of the standard
deviation in that direction. | "Map parameters ``p`` to vector in x-space.\n\n x-space is a vector space of dimension ``p.size``. Its axes are\n in the directions specified by the eigenvectors of ``p``'s covariance\n matrix, and distance along an axis is in units of the standard\n deviation in that direction." | 206 | false | gplepage/gvar | p2x | 17,657 | |
LDU_FT/ga4gh/ga4gh-server/runGetRequest | LDU_FT | [
"<BEGIN>\n## `VerifierMiddleware`",
"Common wrapper for the authentication modules.\n * Parses the request before passing it on to the authentication module.\n * Sets 'pyoidc' cookie if authentication succeeds.\n * Redirects the user to complete the authentication.\n * Allows the user ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the runGetRequest API.
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 runGetRequest API.
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... | Runs a get request by converting the specified datamodel
object into its protocol representation. | "Runs a get request by converting the specified datamodel\n object into its protocol representation." | 768 | false | ga4gh/ga4gh-server | runGetRequest | 17,658 | |
LDU_FT/nirum/tableprint/header | LDU_FT | [
"<BEGIN>\n## `humantime`",
"Converts a time in seconds to a reasonable human readable time",
" Parameters\n ----------\n t : float\n The number of seconds",
" Returns\n -------\n time : string\n The human readable formatted value of the given time\n<END>",
"<BEGIN>\n## `ansi_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the header API.
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 header API.
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 a formatted row of column header strings
Parameters
----------
headers : list of strings
A list of n strings, the column headers
width : int
The width of each column (Default: 11)
style : string or tuple, optional
A formatting style (see STYLES)
Returns
--... | "Returns a formatted row of column header strings\n\n Parameters\n ----------\n headers : list of strings\n A list of n strings, the column headers\n\n width : int\n The width of each column (Default: 11)\n\n style : string or tuple, optional\n A formatting style (see STYLES)\n\n ... | 49 | false | nirum/tableprint | header | 17,659 | |
LDU_FT/bykof/billomapy/update_invoice_comment | LDU_FT | [
"<BEGIN>\n## `_create_get_request`",
"Creates a get request and return the response data\n<END>",
"<BEGIN>\n## `_create_put_request`",
"Creates a put request and return the response data\n<END>",
"<BEGIN>\n## `_create_delete_request`",
"Creates a post request and return the response data\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_invoice_comment 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 update_invoice_comment API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Updates an invoice comment
:param invoice_comment_id: the invoice comment id
:param invoice_comment_dict: dict
:return: dict | "Updates an invoice comment\n\n :param invoice_comment_id: the invoice comment id\n :param invoice_comment_dict: dict\n :return: dict" | 502 | false | bykof/billomapy | update_invoice_comment | 17,660 | |
LDU_FT/edx/django-config-models/as_view | LDU_FT | [
"<BEGIN>\n## `get_serializer_class`",
"Returns a ConfigurationModel serializer class for the supplied configuration_model.\n<END>",
"<BEGIN>\n## `deserialize_json`",
"Given a stream containing JSON, deserializers the JSON into ConfigurationModel instances.",
" The stream is expected to be in the followin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_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 extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_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 extracted... | Overrides as_view to add atomic transaction. | "Overrides as_view to add atomic transaction." | 55 | false | edx/django-config-models | as_view | 17,661 | |
LDU_FT/jaredLunde/redis_structures/get | LDU_FT | [
"<BEGIN>\n## `_hashed_key`",
"Returns 16-digit numeric hash of the redis key\n<END>",
"<BEGIN>\n## `expire_at`",
"Sets the expiration time of :prop:key_prefix to @_time\n @_time: absolute Unix timestamp (seconds since January 1, 1970)\n<END>",
"<BEGIN>\n## `pexpire_at`",
"Sets the expiration ti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Gets @key from :prop:key_prefix, defaulting to @default | "Gets @key from :prop:key_prefix, defaulting to @default" | 216 | false | jaredLunde/redis_structures | get | 17,662 | |
LDU_FT/nikhilkumarsingh/content-downloader/start | LDU_FT | [
"<BEGIN>\n## `download_parallel_gui`",
"called when paralled downloading is true\n<END>",
"<BEGIN>\n## `download_series_gui`",
"called when user wants serial downloading\n<END>",
"<BEGIN>\n## `start`",
"function to initialize thread for downloading\n<END>",
"<BEGIN>\n## `read_bytes`",
"reading bytes; ... | 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... | function to initialize thread for downloading | "function to initialize thread for downloading" | 37 | false | nikhilkumarsingh/content-downloader | start | 17,663 | |
LDU_FT/Rockhopper-Technologies/enlighten/refresh | LDU_FT | [
"<BEGIN>\n## `_check_bool`",
"Used as an error handler for Windows calls\n Gets last error if call is not successful\n<END>",
"<BEGIN>\n## `get_csbi`",
"Returns a CONSOLE_SCREEN_BUFFER_INFO structure for the given console or stdout\n<END>",
"<BEGIN>\n## `enable_vt_mode`",
"Enables virtual terminal proc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh API.
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 refresh API.
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... | Args:
flush(bool): Flush stream after writing progress bar (Default:True)
elapsed(float): Time since started. Automatically determined if :py:data:`None`
Redraw progress bar | "Args:\n flush(bool): Flush stream after writing progress bar (Default:True)\n elapsed(float): Time since started. Automatically determined if :py:data:`None`\n\n Redraw progress bar" | 104 | false | Rockhopper-Technologies/enlighten | refresh | 17,664 | |
LDU_FT/petrjasek/eve-elastic/_process_bulk_chunk | LDU_FT | [
"<BEGIN>\n## `get_dates`",
"Return list of datetime fields for given schema.\n<END>",
"<BEGIN>\n## `set_filters`",
"Put together all filters we have and set them as 'and' filter\n within filtered query.",
" :param query: elastic query being constructed\n :param base_filters: all filters set outside... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_bulk_chunk 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_bulk_chunk 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... | Send a bulk request to elasticsearch and process the output. | "Send a bulk request to elasticsearch and process the output." | 106 | false | petrjasek/eve-elastic | _process_bulk_chunk | 17,665 | |
LDU_FT/darkfeline/animanager/command | LDU_FT | [
"<BEGIN>\n## `_clean_fields`",
"Clean lookup fields and check for errors.\n<END>",
"<BEGIN>\n## `select`",
"Perform an arbitrary SQL SELECT WHERE on the anime table.",
" By nature of \"arbitrary query\", this is vulnerable to injection, use only\n trusted values for `where_query`.",
" This will \... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API.
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 command API.
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... | Fix cache issues caused by schema pre-v4. | "Fix cache issues caused by schema pre-v4." | 69 | false | darkfeline/animanager | command | 17,666 | |
LDU_FT/videntity/django-djmongo/httpauth_login_required | LDU_FT | [
"<BEGIN>\n## `httpauth_login_required`",
"Put this decorator before your view to check if the user is logged in\n via httpauth and return a JSON 401 error if he/she is not.\n<END>",
"<BEGIN>\n## `ip_verification_required`",
"Put this decorator before your view to check if the function is coming from an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the httpauth_login_required 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 httpauth_login_required API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Put this decorator before your view to check if the user is logged in
via httpauth and return a JSON 401 error if he/she is not. | "Put this decorator before your view to check if the user is logged in\n via httpauth and return a JSON 401 error if he/she is not." | 24 | false | videntity/django-djmongo | httpauth_login_required | 17,667 | |
LDU_FT/dlecocq/nsq-py/hexify | LDU_FT | [
"<BEGIN>\n## `pack_iterable`",
"Pack an iterable of messages in the TCP protocol format\n<END>",
"<BEGIN>\n## `hexify`",
"Print out printable characters, but others in hex\n<END>",
"<BEGIN>\n## `distribute`",
"Generator for (count, object) tuples that distributes count evenly among\n the provided objec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hexify API.
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 hexify API.
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 ... | Print out printable characters, but others in hex | "Print out printable characters, but others in hex" | 54 | false | dlecocq/nsq-py | hexify | 17,668 | |
LDU_FT/LionelAuroux/cnorm/declallvars | LDU_FT | [
"<BEGIN>\n## `declfuncs`",
"generator on all declaration of functions\n<END>",
"<BEGIN>\n## `func`",
"return the first func defined named name\n<END>",
"<BEGIN>\n## `type`",
"return the first complete definition of type 'name\n<END>",
"<BEGIN>\n## `declallfuncs`",
"generator on all declaration of func... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the declallvars API.
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 declallvars API.
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... | generator on all declaration of variable | "generator on all declaration of variable" | 10 | false | LionelAuroux/cnorm | declallvars | 17,669 | |
LDU_FT/devopshq/artifactory/read_config | LDU_FT | [
"<BEGIN>\n## `_create_and_update`",
"Create or update request, re-read object from Artifactory\n :return: None\n<END>",
"<BEGIN>\n## `read`",
"Read object from artifactory. Fill object if exist\n :return:\n True if object exist,\n False else\n<END>",
"<BEGIN>\n## `_create_json`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Read configuration file and produce a dictionary of the following structure:
{'<instance1>': {'username': '<user>', 'password': '<pass>',
'verify': <True/False>, 'cert': '<path-to-cert>'}
'<instance2>': {...},
...}
Format of the file:
[https://artifactory-instance.... | "Read configuration file and produce a dictionary of the following structure:\n\n {'<instance1>': {'username': '<user>', 'password': '<pass>',\n 'verify': <True/False>, 'cert': '<path-to-cert>'}\n '<instance2>': {...},\n ...}\n\n Format of the file:\n [https://artifactory-... | 104 | false | devopshq/artifactory | read_config | 17,670 | |
LDU_FT/AustralianSynchrotron/lightflow/from_celery | LDU_FT | [
"<BEGIN>\n## `is_connected`",
"Returns the connection status of the data store.",
" Returns:\n bool: ``True`` if the data store is connected to the MongoDB server.\n<END>",
"<BEGIN>\n## `connect`",
"Establishes a connection to the MongoDB server.",
" Use the MongoProxy library in ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_celery API.
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 from_celery API.
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... | Create a BrokerStats object from the dictionary returned by celery.
Args:
broker_dict (dict): The dictionary as returned by celery.
Returns:
BrokerStats: A fully initialized BrokerStats object. | "Create a BrokerStats object from the dictionary returned by celery.\n\n Args:\n broker_dict (dict): The dictionary as returned by celery.\n\n Returns:\n BrokerStats: A fully initialized BrokerStats object." | 404 | false | AustralianSynchrotron/lightflow | from_celery | 17,671 | |
LDU_FT/jason-weirather/py-seq-tools/target_sequence_length | LDU_FT | [
"<BEGIN>\n## `sort_ranges`",
"from an array of ranges, make a sorted array of ranges",
" :param inranges: List of GenomicRange data\n :type inranges: GenomicRange[]\n :returns: a new sorted GenomicRange list\n :rtype: GenomicRange[]\n<END>",
"<BEGIN>\n## `merge_ranges`",
"from a list of genomic range or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the target_sequence_length API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the target_sequence_length API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Get the length of the target sequence. length of the entire chromosome
throws an error if there is no information available
:return: length
:rtype: int | "Get the length of the target sequence. length of the entire chromosome\n\n throws an error if there is no information available\n\n :return: length\n :rtype: int" | 449 | false | jason-weirather/py-seq-tools | target_sequence_length | 17,672 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.