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/Azure/azure-cosmos-table-python/set_table_acl | LDU_FT | [
"<BEGIN>\n## `generate_account_shared_access_signature`",
"Generates a shared access signature for the table service.\n Use the returned signature with the sas_token parameter of TableService.",
" :param ResourceTypes resource_types:\n Specifies the resource types that are accessible wi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_table_acl API.
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 set_table_acl API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Sets stored access policies for the table that may be used with Shared
Access Signatures.
When you set permissions for a table, the existing permissions are replaced.
To update the table's permissions, call :func:`~get_table_acl` to fetch
all access policies associated with ... | "Sets stored access policies for the table that may be used with Shared \n Access Signatures. \n \n When you set permissions for a table, the existing permissions are replaced. \n To update the table's permissions, call :func:`~get_table_acl` to fetch \n all access policies associated... | 142 | false | Azure/azure-cosmos-table-python | set_table_acl | 12,373 | |
LDU_FT/diffeo/yakonfig/check_config | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a sub-object of this factory.",
" Instantiates the `configurable` object with the current saved\n :attr:`config`. This essentially translates to\n ``configurable(**config)``, except services defined in the\n parent and requested by `configurable` (by ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Check that the configuration for this object is valid.
This is a more restrictive check than for most :mod:`yakonfig`
objects. It will raise :exc:`yakonfig.ConfigurationError` if
`config` contains any keys that are not in the underlying
callable's parameter list (that is, extra unused ... | "Check that the configuration for this object is valid.\n\n This is a more restrictive check than for most :mod:`yakonfig`\n objects. It will raise :exc:`yakonfig.ConfigurationError` if\n `config` contains any keys that are not in the underlying\n callable's parameter list (that is, extra u... | 114 | false | diffeo/yakonfig | check_config | 12,374 | |
LDU_FT/tonybaloney/wily/get_archiver_index | LDU_FT | [
"<BEGIN>\n## `revisions`",
"Get the list of revisions.",
" :param path: the path to target.\n :type path: ``str``",
" :param max_revisions: the maximum number of revisions.\n :type max_revisions: ``int``",
" :return: A list of revisions.\n :rtype: ``list`` of :cla... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_archiver_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_archiver_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Get the contents of the archiver index file.
:param config: The configuration
:type config: :class:`wily.config.WilyConfig`
:param archiver: The name of the archiver type (e.g. 'git')
:type archiver: ``str``
:return: The index data
:rtype: ``dict`` | "Get the contents of the archiver index file.\n\n :param config: The configuration\n :type config: :class:`wily.config.WilyConfig`\n\n :param archiver: The name of the archiver type (e.g. 'git')\n :type archiver: ``str``\n \n :return: The index data\n :rtype: ``dict``" | 174 | false | tonybaloney/wily | get_archiver_index | 12,375 | |
LDU_FT/manahl/arctic/replace_one | LDU_FT | [
"<BEGIN>\n## `delete`",
"Delete all chunks for a symbol.",
" Which are, for the moment, fully contained in the passed in\n date_range.",
" Parameters\n ----------\n symbol : `str`\n symbol name for the item\n date_range : `date.DateRange`\n DateR... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_one API.
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 replace_one API.
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... | See http://api.mongodb.com/python/current/api/pymongo/collection.html#pymongo.collection.Collection.replace_one | "See http://api.mongodb.com/python/current/api/pymongo/collection.html#pymongo.collection.Collection.replace_one" | 429 | false | manahl/arctic | replace_one | 12,376 | |
LDU_FT/inspirehep/plotextractor/assemble_caption | LDU_FT | [
"<BEGIN>\n## `get_context`",
"Get context.",
" Given a relevant string from a TeX file, this function will extract text\n from it as far as it is deemed contextually relevant, either backwards or\n forwards in the text.\n The level of relevance allowed is configurable. When it reaches some\n poin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assemble_caption API.
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 assemble_caption API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Take the caption of a picture and put it all together
in a nice way. If it spans multiple lines, put it on one line. If it
contains controlled characters, strip them out. If it has tags we don't
want to worry about, get rid of them, etc.
:param: begin_line (int): the index of the line where the capt... | "Take the caption of a picture and put it all together\n in a nice way. If it spans multiple lines, put it on one line. If it\n contains controlled characters, strip them out. If it has tags we don't\n want to worry about, get rid of them, etc.\n\n :param: begin_line (int): the index of the line where th... | 80 | false | inspirehep/plotextractor | assemble_caption | 12,377 | |
LDU_FT/novopl/peltak/write_file | LDU_FT | [
"<BEGIN>\n## `start`",
"Create a new release branch.",
" Args:\n component (str):\n Version component to bump when creating the release. Can be *major*,\n *minor* or *patch*.\n exact (str):\n The exact version to set for the release. Overrides the component\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | --pretend aware file writing.
You can always write files manually but you should always handle the
--pretend case.
Args:
path (str):
content (str):
mode (str): | "--pretend aware file writing.\n\n You can always write files manually but you should always handle the\n --pretend case.\n\n Args:\n path (str):\n content (str):\n mode (str):" | 367 | false | novopl/peltak | write_file | 12,378 | |
LDU_FT/Azure/msrest-for-python/stream_download | LDU_FT | [
"<BEGIN>\n## `async_poller`",
"Async Poller for long running operations.",
" :param client: A msrest service client. Can be a SDK client and it will be casted to a ServiceClient.\n :type client: msrest.service_client.ServiceClient\n :param initial_response: The initial call response\n :type initial_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream_download API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream_download API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Generator for streaming request body data.
:param data: A response object to be streamed.
:param callback: Custom callback for monitoring progress. | "Generator for streaming request body data.\n\n :param data: A response object to be streamed.\n :param callback: Custom callback for monitoring progress." | 324 | false | Azure/msrest-for-python | stream_download | 12,379 | |
LDU_FT/MartinThoma/hwrt/_str2array | LDU_FT | [
"<BEGIN>\n## `classify_segmented_recording`",
"Use this function if you are sure you have a single symbol.",
" Parameters\n ----------\n recording : string\n The recording in JSON format",
" Returns\n -------\n list of dictionaries\n Each dictionary contains the keys 'symbol' a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _str2array API.
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 _str2array API.
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... | Reconstructs a numpy array from a plain-text string | "Reconstructs a numpy array from a plain-text string" | 558 | false | MartinThoma/hwrt | _str2array | 12,380 | |
LDU_FT/Parsely/probably/restore_from_disk | LDU_FT | [
"<BEGIN>\n## `_get_rho`",
"Return the least signifiant bit\n O(N) in the worst case\n<END>",
"<BEGIN>\n## `hash64`",
"Wrapper around mmh3.hash64 to get us single 64-bit value.",
" This also does the extra work of ensuring that we always treat the\n returned values as big-endian unsigned lon... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restore_from_disk API.
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 restore_from_disk API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Restore the state of the BF using previous snapshots.
:clean_old_snapshot: Delete the old snapshot on the disk (period < current - expiration) | "Restore the state of the BF using previous snapshots.\n\n :clean_old_snapshot: Delete the old snapshot on the disk (period < current - expiration)" | 33 | false | Parsely/probably | restore_from_disk | 12,381 | |
LDU_FT/pescadores/pescador/setup_data | LDU_FT | [
"<BEGIN>\n## `setup_data`",
"Load and shape data for training with Keras + Pescador.",
" Returns\n -------\n input_shape : tuple, len=3\n Shape of each sample; adapts to channel configuration of Keras.",
" X_train, y_train : np.ndarrays\n Images and labels for training.",
" X_te... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_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 extrac... | Load and shape data for training with Keras + Pescador.
Returns
-------
input_shape : tuple, len=3
Shape of each sample; adapts to channel configuration of Keras.
X_train, y_train : np.ndarrays
Images and labels for training.
X_test, y_test : np.ndarrays
Images and labels ... | "Load and shape data for training with Keras + Pescador.\n\n Returns\n -------\n input_shape : tuple, len=3\n Shape of each sample; adapts to channel configuration of Keras.\n\n X_train, y_train : np.ndarrays\n Images and labels for training.\n\n X_test, y_test : np.ndarrays\n Images... | 103 | false | pescadores/pescador | setup_data | 12,382 | |
LDU_FT/pesaply/sarafu/post_url | LDU_FT | [
"<BEGIN>\n## `get_account_details`",
"This method can be used in a number of scenarios:\n 1. When it is necessary to very account information\n 2. When there's a need to filter transactions by an account id\n 3. When account details (e.g. name of account) are needed\n<END>",
"<BEGIN>\n## `g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_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 extracte... | Internally used to retrieve the contents of a URL using
the POST request method.
The `form` parameter is a mechanize.HTMLForm object
This method will use a POST request type regardless of the method
used in the `form`. | "Internally used to retrieve the contents of a URL using\n the POST request method.\n The `form` parameter is a mechanize.HTMLForm object\n This method will use a POST request type regardless of the method\n used in the `form`." | 30 | false | pesaply/sarafu | post_url | 12,383 | |
LDU_FT/MattBroach/DjangoRestMultipleModels/get_empty_results | LDU_FT | [
"<BEGIN>\n## `paginate_queryset`",
"adds `max_count` as a running tally of the largest table size. Used for calculating\n next/previous links later\n<END>",
"<BEGIN>\n## `format_response`",
"replaces the `count` (the last queryset count) with the running `max_count` variable,\n to ensure accura... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_empty_results API.
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_empty_results API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Because the base result type is different depending on the return structure
(e.g. list for flat, dict for object), `get_result_type` initials the
`results` variable to the proper type | "Because the base result type is different depending on the return structure\n (e.g. list for flat, dict for object), `get_result_type` initials the\n `results` variable to the proper type" | 24 | false | MattBroach/DjangoRestMultipleModels | get_empty_results | 12,384 | |
LDU_FT/rfarley3/Kibana/safe_filename | LDU_FT | [
"<BEGIN>\n## `post_field_cache`",
"Where field_cache is a list of fields' mappings\n<END>",
"<BEGIN>\n## `check_mapping`",
"Assert minimum set of fields in cache, does not validate contents\n<END>",
"<BEGIN>\n## `get_index_mappings`",
"Converts all index's doc_types to .kibana\n<END>",
"<BEGIN>\n## `get... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_filename API.
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 safe_filename API.
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... | Santize obj name into fname and verify doesn't already exist | "Santize obj name into fname and verify doesn't already exist" | 27 | false | rfarley3/Kibana | safe_filename | 12,385 | |
LDU_FT/b-loyola/itglue-py/set_attributes | LDU_FT | [
"<BEGIN>\n## `set_attributes`",
"Set the value of multiple attributes.\n :param attributes_dict dict: a dictionary containing key-value pairs as attribute names and values to be set\n :returns: the resource itself\n<END>",
"<BEGIN>\n## `save`",
"Either creates a resource or updates it (if it alr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_attributes API.
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 set_attributes API.
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... | Set the value of multiple attributes.
:param attributes_dict dict: a dictionary containing key-value pairs as attribute names and values to be set
:returns: the resource itself | "Set the value of multiple attributes.\n :param attributes_dict dict: a dictionary containing key-value pairs as attribute names and values to be set\n :returns: the resource itself" | 22 | false | b-loyola/itglue-py | set_attributes | 12,386 | |
LDU_FT/Cito/DBUtils/reopen | LDU_FT | [
"<BEGIN>\n## `connection`",
"Get a steady, cached DB-API 2 connection from the pool.",
" If shareable is set and the underlying DB-API 2 allows it,\n then the connection may be shared with other threads.\n<END>",
"<BEGIN>\n## `unshare`",
"Decrease the share of a connection in the shared cache.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reopen API.
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 reopen API.
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 ... | Reopen the tough connection.
It will not complain if the connection cannot be reopened. | "Reopen the tough connection.\n\n It will not complain if the connection cannot be reopened." | 80 | false | Cito/DBUtils | reopen | 12,387 | |
LDU_FT/andycasey/sick/old_projection | LDU_FT | [
"<BEGIN>\n## `chains`",
"Create a plot showing the walker values for each parameter at every step.",
" :param xs:\n The samples. This should be a 3D :class:`numpy.ndarray` of size \n (``n_walkers``, ``n_steps``, ``n_parameters``).",
" :type xs:\n :class:`numpy.ndarray`",
" :par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the old_projection API.
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 old_projection API.
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... | Project the maximum likelihood values and sampled posterior points as
spectra.
:param model:
The model employed.
:type model:
:class:`sick.models.Model`
:param data:
The observed spectra.
:type data:
iterable of :class:`sick.specutils.Spectrum1D` objects
:pa... | "Project the maximum likelihood values and sampled posterior points as \n spectra.\n\n :param model:\n The model employed.\n\n :type model:\n :class:`sick.models.Model`\n\n :param data:\n The observed spectra.\n\n :type data:\n iterable of :class:`sick.specutils.Spectrum1D` ob... | 179 | false | andycasey/sick | old_projection | 12,388 | |
LDU_FT/bitlabstudio/django-user-media/dispatch | LDU_FT | [
"<BEGIN>\n## `get_context_data`",
"Adds `next` to the context.",
" This makes sure that the `next` parameter doesn't get lost if the\n form was submitted invalid.\n<END>",
"<BEGIN>\n## `get_success_url`",
"Returns the success URL.",
" This is either the given `next` URL parameter or t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Adds useful objects to the class and performs security checks. | "Adds useful objects to the class and performs security checks." | 24 | false | bitlabstudio/django-user-media | dispatch | 12,389 | |
LDU_FT/kaste/mockito-python/mock | LDU_FT | [
"<BEGIN>\n## `verify`",
"Central interface to verify interactions.",
" `verify` uses a fluent interface::",
" verify(<obj>, times=2).<method_name>(<args>)",
" `args` can be as concrete as necessary. Often a catch-all is enough,\n especially if you're working with strict mocks, bc they throw ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mock API.
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 mock API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Create 'empty' objects ('Mocks').
Will create an empty unconfigured object, that you can pass
around. All interactions (method calls) will be recorded and can be
verified using :func:`verify` et.al.
A plain `mock()` will be not `strict`, and thus all methods regardless
of the arguments will return... | "Create 'empty' objects ('Mocks').\n\n Will create an empty unconfigured object, that you can pass\n around. All interactions (method calls) will be recorded and can be\n verified using :func:`verify` et.al.\n\n A plain `mock()` will be not `strict`, and thus all methods regardless\n of the arguments wil... | 106 | false | kaste/mockito-python | mock | 12,390 | |
LDU_FT/SuperCowPowers/workbench/execute | LDU_FT | [
"<BEGIN>\n## `conn_log_graph`",
"Build up a graph (nodes and edges from a Bro conn.log)\n<END>",
"<BEGIN>\n## `dns_log_graph`",
"Build up a graph (nodes and edges from a Bro dns.log)\n<END>",
"<BEGIN>\n## `weird_log_graph`",
"Build up a graph (nodes and edges from a Bro weird.log)\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | # Map all tag names to indexes
tag_map = {tag.name:index for tag,index in enumerate(swf.tags)}
# FileAttribute Info
file_attr_tag = swf.tags[tag_map] | "# Map all tag names to indexes\n tag_map = {tag.name:index for tag,index in enumerate(swf.tags)}\n\n # FileAttribute Info\n file_attr_tag = swf.tags[tag_map]" | 328 | false | SuperCowPowers/workbench | execute | 12,391 | |
LDU_FT/stephen-bunn/file-config/_build_object_type | LDU_FT | [
"<BEGIN>\n## `on_yaml_imported`",
"The `pyyaml <https://pypi.org/project/pyyaml/>`_ import hook.",
" :param module yaml: The ``yaml`` module\n<END>",
"<BEGIN>\n## `on_yaml_dumps`",
"The `pyyaml <https://pypi.org/project/pyyaml/>`_ dumps method.",
" :param module yaml: The ``yaml`` module\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_object_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_object_type 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... | Builds schema definitions for object type values.
:param var: The object type value
:param List[str] property_path: The property path of the current type,
defaults to None, optional
:param property_path: [type], optional
:return: The built schema definition
:rtype: Dict[str, Any] | "Builds schema definitions for object type values.\n\n :param var: The object type value\n :param List[str] property_path: The property path of the current type,\n defaults to None, optional\n :param property_path: [type], optional\n :return: The built schema definition\n :rtype: Dict[str, Any]" | 215 | false | stephen-bunn/file-config | _build_object_type | 12,392 | |
LDU_FT/afilipovich/gglsbl/remove_hash_prefix_indices | LDU_FT | [
"<BEGIN>\n## `lookup_hash_prefix`",
"Lookup hash prefixes by cue (first 4 bytes of hash)",
" Returns a tuple of (value, negative_cache_expired).\n<END>",
"<BEGIN>\n## `store_full_hash`",
"Store full hash found for the given hash prefix\n<END>",
"<BEGIN>\n## `get_client_state`",
"Get a dict of kno... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_hash_prefix_indices 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 remove_hash_prefix_indices API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Remove records matching idices from a lexicographically-sorted local threat list. | "Remove records matching idices from a lexicographically-sorted local threat list." | 35 | false | afilipovich/gglsbl | remove_hash_prefix_indices | 12,393 | |
LDU_FT/commonsense/metanl/un_camel_case | LDU_FT | [
"<BEGIN>\n## `unicode_is_punctuation`",
"Test if a token is made entirely of Unicode characters of the following\n classes:",
" - P: punctuation\n - S: symbols\n - Z: separators\n - M: combining marks\n - C: control characters",
" >>> unicode_is_punctuation('word')\n False\n >>> uni... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the un_camel_case API.
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 un_camel_case API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | r"""
Splits apart words that are written in CamelCase.
Bugs:
- Non-ASCII characters are treated as lowercase letters, even if they are
actually capital letters.
Examples:
>>> un_camel_case('1984ZXSpectrumGames')
'1984 ZX Spectrum Games'
>>> un_camel_case('aaAa aaAaA 0aA AAAa!AAA'... | "r\"\"\"\n Splits apart words that are written in CamelCase.\n\n Bugs:\n\n - Non-ASCII characters are treated as lowercase letters, even if they are\n actually capital letters.\n\n Examples:\n\n >>> un_camel_case('1984ZXSpectrumGames')\n '1984 ZX Spectrum Games'\n\n >>> un_camel_case('aaAa aaA... | 70 | false | commonsense/metanl | un_camel_case | 12,394 | |
LDU_FT/defunkt/pystache/_make_section_node | LDU_FT | [
"<BEGIN>\n## `render`",
"Return the given template string rendered using the given context.\n<END>",
"<BEGIN>\n## `_get_value`",
"Retrieve a key's value from a context item.",
" Returns _NOT_FOUND if the key does not exist.",
" The ContextStack.get() docstring documents this function's intended beha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_section_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_section_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Create and return a section node for the parse tree. | "Create and return a section node for the parse tree." | 177 | false | defunkt/pystache | _make_section_node | 12,395 | |
LDU_FT/MoseleyBioinformaticsLab/mwtab/_to_gzipfile | LDU_FT | [
"<BEGIN>\n## `read`",
"Read data into a :class:`~mwtab.mwtab.MWTabFile` instance.",
" :param filehandle: file-like object.\n :type filehandle: :py:class:`io.TextIOWrapper`, :py:class:`gzip.GzipFile`,\n :py:class:`bz2.BZ2File`, :py:class:`zipfile.ZipFile`\n :return: ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_gzipfile API.
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 _to_gzipfile API.
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... | Convert file to gzip-compressed file.
:return: None
:rtype: :py:obj:`None` | "Convert file to gzip-compressed file.\n :return: None\n :rtype: :py:obj:`None`" | 74 | false | MoseleyBioinformaticsLab/mwtab | _to_gzipfile | 12,396 | |
LDU_FT/wadda/gps3/satellites_used | LDU_FT | [
"<BEGIN>\n## `stream_data`",
"Connect and command, point and shoot, flail and bail\n<END>",
"<BEGIN>\n## `unpack_data`",
"Iterates over socket response and unpacks values of object attributes.\n Sleeping here has the greatest response to cpu cycles short of blocking sockets\n<END>",
"<BEGIN>\n## `add... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the satellites_used API.
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 satellites_used API.
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... | Counts number of satellites used in calculation from total visible satellites
Arguments:
feed feed=data_stream.TPV['satellites']
Returns:
total_satellites(int):
used_satellites (int): | "Counts number of satellites used in calculation from total visible satellites\n Arguments:\n feed feed=data_stream.TPV['satellites']\n Returns:\n total_satellites(int):\n used_satellites (int):" | 30 | false | wadda/gps3 | satellites_used | 12,397 | |
LDU_FT/iancmcc/ouimeaux/blink | LDU_FT | [
"<BEGIN>\n## `get_func_full_args`",
"Return a list of (argument name, default value) tuples. If the argument\n does not have a default value, omit it in the tuple. Arguments such as\n *args and **kwargs are also included.\n<END>",
"<BEGIN>\n## `func_accepts_var_args`",
"Return True if function 'func' ac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blink API.
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 blink API.
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... | Toggle the switch once, then again after a delay (in seconds). | "Toggle the switch once, then again after a delay (in seconds)." | 48 | false | iancmcc/ouimeaux | blink | 12,398 | |
LDU_FT/agermanidis/autosub/validate | LDU_FT | [
"<BEGIN>\n## `srt_formatter`",
"Serialize a list of subtitles according to the SRT format, with optional time padding.\n<END>",
"<BEGIN>\n## `vtt_formatter`",
"Serialize a list of subtitles according to the VTT format, with optional time padding.\n<END>",
"<BEGIN>\n## `json_formatter`",
"Serialize a list ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
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 validate API.
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 that the CLI arguments passed to autosub are valid. | "Check that the CLI arguments passed to autosub are valid." | 14 | false | agermanidis/autosub | validate | 12,399 | |
LDU_FT/honzajavorek/tipi/_validate_index | LDU_FT | [
"<BEGIN>\n## `parent_tags`",
"Provides tags of all parent HTML elements.\n<END>",
"<BEGIN>\n## `involved_tags`",
"Provides all HTML tags directly involved in this string.\n<END>",
"<BEGIN>\n## `_parse`",
"Parse given string as HTML and return it's etree representation.\n<END>",
"<BEGIN>\n## `_analyze_tr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Validates given index, eventually raises errors. | "Validates given index, eventually raises errors." | 18 | false | honzajavorek/tipi | _validate_index | 12,400 | |
LDU_FT/alfredodeza/notario/not_empty | LDU_FT | [
"<BEGIN>\n## `create_store`",
"A helper for setting the _proxy and slapping the store\n object for us.",
" :return: A thread-local storage as a dictionary\n<END>",
"<BEGIN>\n## `string`",
"Validates a given input is of type string.",
" Example usage::",
" data = {'a' : 21}\n schem... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the not_empty API.
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 not_empty API.
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... | Validates the given input (has to be a valid data structure) is empty.
Input *has* to be one of: `list`, `dict`, or `string`.
It is specially useful when most of the validators being created are
dealing with data structures that should not be empty. | "Validates the given input (has to be a valid data structure) is empty.\n Input *has* to be one of: `list`, `dict`, or `string`.\n\n It is specially useful when most of the validators being created are\n dealing with data structures that should not be empty." | 86 | false | alfredodeza/notario | not_empty | 12,401 | |
LDU_FT/GGiecold/DBSCAN_multiplex/DBSCAN | LDU_FT | [
"<BEGIN>\n## `memory`",
"Determine the machine's memory specifications.",
" Returns\n -------\n mem_info : dictonary\n Holds the current values for the total, free and used memory of the system.\n<END>",
"<BEGIN>\n## `get_chunk_size`",
"Given a dimension of size 'N', determine the number of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DBSCAN API.
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 DBSCAN API.
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 ... | Performs Density-Based Spatial Clustering of Applications with Noise,
possibly on various subsamples or combinations of data-points extracted from the whole dataset, 'data'.
If the radius 'eps' is not provided by the user, it will be determined in an adaptive, data-dependent way
by a c... | "Performs Density-Based Spatial Clustering of Applications with Noise,\n possibly on various subsamples or combinations of data-points extracted from the whole dataset, 'data'.\n \n If the radius 'eps' is not provided by the user, it will be determined in an adaptive, data-dependent way \n b... | 48 | false | GGiecold/DBSCAN_multiplex | DBSCAN | 12,402 | |
LDU_FT/pylast/pylast/is_streamable | LDU_FT | [
"<BEGIN>\n## `cleanup_nodes`",
"Remove text nodes containing only whitespace\n<END>",
"<BEGIN>\n## `_collect_nodes`",
"Returns a sequence of dom.Node objects about as close to limit as possible\n<END>",
"<BEGIN>\n## `_extract_all`",
"Extracts all the values from the xml string. returning a list.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_streamable API.
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 is_streamable API.
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... | Returns True if the artist is streamable. | "Returns True if the artist is streamable." | 146 | false | pylast/pylast | is_streamable | 12,403 | |
LDU_FT/listen-lavender/webcrawl/modulepath | LDU_FT | [
"<BEGIN>\n## `_daemonize`",
"do the UNIX double-fork magic, see Stevens' \"Advanced \n Programming in the UNIX Environment\" for details (ISBN 0201563177)\n http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16\n<END>",
"<BEGIN>\n## `monitor`",
"Monitor the process, check whether it runs out of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modulepath API.
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 modulepath API.
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... | Find the relative path to its module of a python file if existing.
filename
string, name of a python file | "Find the relative path to its module of a python file if existing.\n\n filename\n string, name of a python file" | 23 | false | listen-lavender/webcrawl | modulepath | 12,404 | |
LDU_FT/ffalcinelli/pydivert/address_family | LDU_FT | [
"<BEGIN>\n## `check_filter`",
"Checks if the given packet filter string is valid with respect to the filter language.",
" The remapped function is WinDivertHelperCheckFilter::",
" BOOL WinDivertHelperCheckFilter(\n __in const char *filter,\n __in WINDIVERT_LAYER... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the address_family API.
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 address_family API.
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... | The packet address family:
- socket.AF_INET, if IPv4
- socket.AF_INET6, if IPv6
- None, otherwise. | "The packet address family:\n - socket.AF_INET, if IPv4\n - socket.AF_INET6, if IPv6\n - None, otherwise." | 67 | false | ffalcinelli/pydivert | address_family | 12,405 | |
LDU_FT/mozilla/amo-validator/print_summary | LDU_FT | [
"<BEGIN>\n## `decode`",
"Decode data employing some charset detection and including unicode BOM\n stripping.\n<END>",
"<BEGIN>\n## `get_context`",
"Returns a tuple containing the context for a line\n<END>",
"<BEGIN>\n## `_format_line`",
"Formats a line from the data to be the appropriate length\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_summary API.
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 print_summary API.
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... | Prints a summary of the validation process so far. | "Prints a summary of the validation process so far." | 94 | false | mozilla/amo-validator | print_summary | 12,406 | |
LDU_FT/pudo/jsongraph/execute | LDU_FT | [
"<BEGIN>\n## `base_uri`",
"Resolution base for JSON schema. Also used as the default\n graph ID for RDF.\n<END>",
"<BEGIN>\n## `resolver`",
"Resolver for JSON Schema references. This can be based around a\n file or HTTP-based resolution base URI.\n<END>",
"<BEGIN>\n## `store`",
"Backend stor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Run the data query and construct entities from it's results. | "Run the data query and construct entities from it's results." | 52 | false | pudo/jsongraph | execute | 12,407 | |
LDU_FT/pazz/alot/__cmp | LDU_FT | [
"<BEGIN>\n## `determine_sender`",
"Inspect a given mail to reply/forward/bounce and find the most appropriate\n account to act from and construct a suitable From-Header to use.",
" :param mail: the email to inspect\n :type mail: `email.message.Message`\n :param action: intended use case: one of \"re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __cmp API.
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 __cmp API.
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... | Shared helper for rich comparison operators.
This allows the comparison operators to be relatively simple and share
the complex logic.
If the username is not considered case sensitive then lower the
username of both self and the other, and handle that the other can be
either an... | "Shared helper for rich comparison operators.\n\n This allows the comparison operators to be relatively simple and share\n the complex logic.\n\n If the username is not considered case sensitive then lower the\n username of both self and the other, and handle that the other can be\n e... | 454 | false | pazz/alot | __cmp | 12,408 | |
LDU_FT/chaoss/grimoirelab-manuscripts/add_query | LDU_FT | [
"<BEGIN>\n## `overview`",
"Compute metrics in the overview section for enriched github issues\n indexes.\n Returns a dictionary. Each key in the dictionary is the name of\n a metric, the value is the value of that metric. Value can be\n a complex object (eg, a time series).",
" :param index: inde... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Add an es_dsl query object to the es_dsl Search object
:param key_val: a key-value pair(dict) containing the query to be added to the search object
:returns: self, which allows the method to be chainable with the other methods | "Add an es_dsl query object to the es_dsl Search object\n\n :param key_val: a key-value pair(dict) containing the query to be added to the search object\n :returns: self, which allows the method to be chainable with the other methods" | 271 | false | chaoss/grimoirelab-manuscripts | add_query | 12,409 | |
LDU_FT/restran/mountains/model_to_page_list | LDU_FT | [
"<BEGIN>\n## `set_dict_none_default`",
"对字典中为None的值,重新设置默认值\n :param dict_item:\n :param default_value:\n :return:\n<END>",
"<BEGIN>\n## `auto_model_name_recognize`",
"自动将 site-user 识别成 SiteUser\n :param model_name:\n :return:\n<END>",
"<BEGIN>\n## `model_to_select_list`",
"只选择 id 和 name,用来... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the model_to_page_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the model_to_page_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.
Th... | :param max_page_size:
:param model_class:
:param page_num:
:param page_size:
:param filter_dict:
:param order_by_list:
:param select_related_fields:
:param q_filter: Q(uuid__contains=keyword) | Q(memo__contains=keyword)
:param values:
:param to_json_method:
:return: | ":param max_page_size:\n :param model_class:\n :param page_num:\n :param page_size:\n :param filter_dict:\n :param order_by_list:\n :param select_related_fields:\n :param q_filter: Q(uuid__contains=keyword) | Q(memo__contains=keyword)\n :param values:\n :param to_json_method:\n :return:" | 81 | false | restran/mountains | model_to_page_list | 12,410 | |
LDU_FT/CogSciUOS/StudDP/deep_documents | LDU_FT | [
"<BEGIN>\n## `path`",
"Path of this node on Studip. Looks like Coures/folder/folder/document. Respects the renaming policies defined in the namemap\n<END>",
"<BEGIN>\n## `title`",
"get title of this node. If an entry for this course is found in the configuration namemap it is used, otherwise the default\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deep_documents API.
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 deep_documents API.
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... | list of all documents find in subtrees of this node | "list of all documents find in subtrees of this node" | 26 | false | CogSciUOS/StudDP | deep_documents | 12,411 | |
LDU_FT/kmike/django-generic-images/next | LDU_FT | [
"<BEGIN>\n## `attachedimage_form_factory`",
"Returns ModelForm class to be used in admin.\n 'lang' is the language for GearsUploader (can be 'en' and 'ru' at the\n moment).\n<END>",
"<BEGIN>\n## `attachedimages_inline_factory`",
"Returns InlineModelAdmin for attached images.\n 'lang' is t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API.
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 next API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Returns next image for same content_object and None if image is
the last. | "Returns next image for same content_object and None if image is\n the last." | 59 | false | kmike/django-generic-images | next | 12,412 | |
LDU_FT/ponty/confduino/hwpacks | LDU_FT | [
"<BEGIN>\n## `upgrade_many`",
"upgrade many libs.",
" source: http://arduino.cc/playground/Main/LibraryList",
" you can set your arduino path if it is not default\n os.environ['ARDUINO_HOME'] = '/home/...'\n<END>",
"<BEGIN>\n## `install_hwpack`",
"install hwpackrary from web or local files system... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hwpacks API.
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 hwpacks API.
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... | example::
{'Sanguino': {'sanguino': {'bootloader': {'extended_fuses': '0xFD',
'file': 'ATmegaBOOT_644P.hex',
'high_fuses': '0xDC',
'lock_bits': '0x0F',
... | "example::\n\n{'Sanguino': {'sanguino': {'bootloader': {'extended_fuses': '0xFD',\n 'file': 'ATmegaBOOT_644P.hex',\n 'high_fuses': '0xDC',\n 'lock_bits': '0x0F',\n ... | 61 | false | ponty/confduino | hwpacks | 12,413 | |
LDU_FT/omza/azurestoragewrap/getmodeldefinition | LDU_FT | [
"<BEGIN>\n## `getmessage`",
"parse self into unicode string as message content\n<END>",
"<BEGIN>\n## `register_model`",
"set up an Queueservice for an StorageQueueModel in your Azure Storage Account\n Will create the Queue if not exist!",
" required Parameter is:\n - storag... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getmodeldefinition 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 getmodeldefinition 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... | find modeldefinition for StorageTableModel or StorageTableQuery | "find modeldefinition for StorageTableModel or StorageTableQuery" | 34 | false | omza/azurestoragewrap | getmodeldefinition | 12,414 | |
LDU_FT/jamieleshaw/lurklib/topic | LDU_FT | [
"<BEGIN>\n## `find`",
"Finds needle in haystack.\n If needle is found return True, if not return False.\n Required arguments:\n * haystack - Text to search in.\n * needle - Text to search for.\n<END>",
"<BEGIN>\n## `send`",
"Send a raw string with the CR-LF appended to it.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the topic API.
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 topic API.
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... | Sets/gets the channel topic.
Required arguments:
* channel - Channel to set/get the topic for.
Optional arguments:
* topic - Topic to set.
If not specified the current channel topic will be returned. | "Sets/gets the channel topic.\n Required arguments:\n * channel - Channel to set/get the topic for.\n Optional arguments:\n * topic - Topic to set.\n If not specified the current channel topic will be returned." | 112 | false | jamieleshaw/lurklib | topic | 12,415 | |
LDU_FT/cohorte/cohorte-herald/__safe_errback | LDU_FT | [
"<BEGIN>\n## `main`",
"Runs the framework",
" :param http_port: HTTP port to listen to\n :param peer_name: Name of the peer\n :param node_name: Name (also, UID) of the node hosting the peer\n :param app_id: Application ID\n<END>",
"<BEGIN>\n## `_get_link`",
"Returns a link to the given peer",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __safe_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 __safe_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... | Safe use of the callback method, to avoid errors propagation
:param room_data: A RoomData object
:param err_condition: Category of error
:param err_text: Description of the error | "Safe use of the callback method, to avoid errors propagation\n\n :param room_data: A RoomData object\n :param err_condition: Category of error\n :param err_text: Description of the error" | 110 | false | cohorte/cohorte-herald | __safe_errback | 12,416 | |
LDU_FT/EventRegistry/event-registry-python/loadTopicPageFromER | LDU_FT | [
"<BEGIN>\n## `compute`",
"compute the list of most similar events for the given text\n<END>",
"<BEGIN>\n## `getUpdates`",
"Get the latest new or updated events from Event Registry\n NOTE: call this method exactly once per minute - calling it more frequently will return the same results multiple times,\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadTopicPageFromER 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 loadTopicPageFromER 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... | load an existing topic page from Event Registry based on the topic page URI
@param uri: uri of the topic page saved in your Event Registry account | "load an existing topic page from Event Registry based on the topic page URI\n @param uri: uri of the topic page saved in your Event Registry account" | 89 | false | EventRegistry/event-registry-python | loadTopicPageFromER | 12,417 | |
LDU_FT/vals/umis/mb_filter | LDU_FT | [
"<BEGIN>\n## `mutationhash`",
"produce a hash with each key a nedit distance substitution for a set of\n strings. values of the hash is the set of strings the substitution could\n have come from\n<END>",
"<BEGIN>\n## `substitution_set`",
"for a string, return a set of all possible substitutions\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mb_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mb_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 extract... | Filters umis with non-ACGT bases
Expects formatted fastq files. | "Filters umis with non-ACGT bases\n Expects formatted fastq files." | 62 | false | vals/umis | mb_filter | 12,418 | |
LDU_FT/bitprophet/ssh/add_string | LDU_FT | [
"<BEGIN>\n## `start_client`",
"Negotiate a new SSH2 session as a client. This is the first step after\n creating a new L{Transport}. A separate thread is created for protocol\n negotiation.",
" If an event is passed in, this method returns immediately. When\n negotiation is done (... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Add a string to the stream.
@param s: string to add
@type s: str | "Add a string to the stream.\n \n @param s: string to add\n @type s: str" | 272 | false | bitprophet/ssh | add_string | 12,419 | |
LDU_FT/rmed/pyemtmad/get_street_from_xy | LDU_FT | [
"<BEGIN>\n## `check_result`",
"Check the result of an API response.",
" Ideally, this should be done by checking that the value of the ``resultCode``\n attribute is 0, but there are endpoints that simply do not follow this rule.",
" Args:\n data (dict): Response obtained from the API endpoint.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_street_from_xy 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_street_from_xy 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... | Obtain a list of streets around the specified point.
Args:
latitude (double): Latitude in decimal degrees.
longitude (double): Longitude in decimal degrees.
radius (int): Radius (in meters) of the search.
lang (str): Language code (*es* or *en*).
Returns... | "Obtain a list of streets around the specified point.\n\n Args:\n latitude (double): Latitude in decimal degrees.\n longitude (double): Longitude in decimal degrees.\n radius (int): Radius (in meters) of the search.\n lang (str): Language code (*es* or *en*).\n\n ... | 114 | false | rmed/pyemtmad | get_street_from_xy | 12,420 | |
LDU_FT/PythonOptimizers/cygenja/get_locations_list | LDU_FT | [
"<BEGIN>\n## `set_parent`",
"Attach node to its parent.",
" Args:\n node: Parent node.",
" Note:\n ``node`` can be ``None``. In that case, the node is detached from its previous parent.\n<END>",
"<BEGIN>\n## `set_child_node`",
"Add one child node to this node.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_locations_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_locations_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.
Th... | Return the internal location list.
Args:
lower_bound:
upper_bound:
Returns: | "Return the internal location list.\n\n Args:\n lower_bound:\n upper_bound:\n\n Returns:" | 132 | false | PythonOptimizers/cygenja | get_locations_list | 12,421 | |
LDU_FT/mdavidsaver/p4p/defaultBuilder | LDU_FT | [
"<BEGIN>\n## `_sync`",
"I will wait until all pending handlers cothreads have completed\n<END>",
"<BEGIN>\n## `close`",
"Close PV, disconnecting any clients.",
" :param bool destroy: Indicate \"permanent\" closure. Current clients will not see subsequent open().\n :param bool sync: When block... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the defaultBuilder API.
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 defaultBuilder API.
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... | Reasonably sensible default handling of put builder | "Reasonably sensible default handling of put builder" | 201 | false | mdavidsaver/p4p | defaultBuilder | 12,422 | |
LDU_FT/marrow/cinje/fragment | LDU_FT | [
"<BEGIN>\n## `match`",
"Match lines prefixed with a hash (\"#\") mark that don't look like text.\n<END>",
"<BEGIN>\n## `stream`",
"Safely iterate a template generator, ignoring ``None`` values and optionally stream encoding.",
"\tUsed internally by ``cinje.flatten``, this allows for easy use of a template g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fragment API.
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 fragment API.
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... | Translate a template fragment into a callable function.
**Note:** Use of this function is discouraged everywhere except tests, as no caching is implemented at this time.
Only one function may be declared, either manually, or automatically. If automatic defintition is chosen the
resulting function takes no argume... | "Translate a template fragment into a callable function.\n\t\n\t**Note:** Use of this function is discouraged everywhere except tests, as no caching is implemented at this time.\n\t\n\tOnly one function may be declared, either manually, or automatically. If automatic defintition is chosen the\n\tresulting function take... | 66 | false | marrow/cinje | fragment | 12,423 | |
LDU_FT/jpscaletti/solution/_init_fields | LDU_FT | [
"<BEGIN>\n## `as_select`",
"Render the field as a `<select>` element.",
" :param **kwargs:\n Named paremeters used to generate the HTML attributes of each item.\n It follows the same rules as `get_html_attrs`\n<END>",
"<BEGIN>\n## `_clean_data`",
"This overwrite is neccesary for... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Creates the `_fields`, `_forms` asn `_sets` dicts.
Any properties which begin with an underscore or are not `Field`,
`Form` or `FormSet` **instances** are ignored by this method. | "Creates the `_fields`, `_forms` asn `_sets` dicts.\n\n Any properties which begin with an underscore or are not `Field`,\n `Form` or `FormSet` **instances** are ignored by this method." | 57 | false | jpscaletti/solution | _init_fields | 12,424 | |
LDU_FT/GNS3/gns3-server/_create_local_udp_tunnel | LDU_FT | [
"<BEGIN>\n## `_asyncio_open_serial_windows`",
"Open a windows named pipe",
" :returns: An IO like object\n<END>",
"<BEGIN>\n## `_asyncio_open_serial_unix`",
"Open a unix socket or a windows named pipe",
" :returns: An IO like object\n<END>",
"<BEGIN>\n## `_choose_capture_side`",
"Run capture on ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_local_udp_tunnel API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_local_udp_tunnel API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Creates a local UDP tunnel (pair of 2 NIOs, one for each direction)
:returns: source NIO and destination NIO. | "Creates a local UDP tunnel (pair of 2 NIOs, one for each direction)\n\n :returns: source NIO and destination NIO." | 1,412 | true | GNS3/gns3-server | _create_local_udp_tunnel | 12,425 | |
LDU_FT/mgedmin/imgdiff/diff_badness | LDU_FT | [
"<BEGIN>\n## `parse_color`",
"Parse a color value.",
" I've decided not to expect a leading '#' because it's a comment character\n in some shells.",
" >>> parse_color('4bf') == (0x44, 0xbb, 0xff, 0xff)\n True\n >>> parse_color('ccce') == (0xcc, 0xcc, 0xcc, 0xee)\n True\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diff_badness API.
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 diff_badness API.
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... | Estimate the "badness" value of a difference map.
Returns 0 if the pictures are identical
Returns a large number if the pictures are completely different
(e.g. a black field and a white field). More specifically, returns
``255 * width * height`` where ``(width, height) == diff.size``.
Returns so... | "Estimate the \"badness\" value of a difference map.\n\n Returns 0 if the pictures are identical\n\n Returns a large number if the pictures are completely different\n (e.g. a black field and a white field). More specifically, returns\n ``255 * width * height`` where ``(width, height) == diff.size``.\n\n ... | 65 | false | mgedmin/imgdiff | diff_badness | 12,426 | |
LDU_FT/theislab/scanpy/_set_default_colors_for_categorical_obs | 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 _set_default_colors_for_categorical_obs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_default_colors_for_categorical_obs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate... | Sets the adata.uns[value_to_plot + '_colors'] using default color palettes
Parameters
----------
adata : annData object
value_to_plot : name of a valid categorical observation
Returns
-------
None | "Sets the adata.uns[value_to_plot + '_colors'] using default color palettes\n\n Parameters\n ----------\n adata : annData object\n value_to_plot : name of a valid categorical observation\n\n Returns\n -------\n None" | 1,142 | true | theislab/scanpy | _set_default_colors_for_categorical_obs | 12,427 | |
LDU_FT/niklasf/python-chess/board | LDU_FT | [
"<BEGIN>\n## `open_tablebase`",
"Opens a collection of tables for probing. See\n :class:`~chess.syzygy.Tablebase`.",
" .. note::",
" Generally probing requires tablebase files for the specific\n material composition, **as well as** tablebase files with less pieces.\n This is importa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the board API.
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 board API.
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... | Gets a board with the position of the node.
It's a copy, so modifying the board will not alter the game. | "Gets a board with the position of the node.\n\n It's a copy, so modifying the board will not alter the game." | 367 | false | niklasf/python-chess | board | 12,428 | |
LDU_FT/mcs07/ChemDataExtractor/tidy_nlm_references | LDU_FT | [
"<BEGIN>\n## `train_punkt`",
"Train Punkt sentence splitter using sentences in input.\n<END>",
"<BEGIN>\n## `sentences`",
"Read input document, and output sentences.\n<END>",
"<BEGIN>\n## `_in_stoplist`",
"Return True if the entity is in the stoplist.\n<END>",
"<BEGIN>\n## `tag`",
"Run individual chem... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tidy_nlm_references 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 tidy_nlm_references 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... | Remove punctuation around references like brackets, commas, hyphens. | "Remove punctuation around references like brackets, commas, hyphens." | 243 | false | mcs07/ChemDataExtractor | tidy_nlm_references | 12,429 | |
LDU_FT/addisonlynch/iexfinance/get_historical_prices | LDU_FT | [
"<BEGIN>\n## `_sanitize_dates`",
"Return (datetime_start, datetime_end) tuple\r\n if start is None - default is 2015/01/01\r\n if end is None - default is today\n<END>",
"<BEGIN>\n## `get_social_sentiment`",
"Social Sentiment",
" .. warning:: Unstable endpoint. May return unexpected results.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_historical_prices 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_historical_prices API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Historical Prices
Reference: https://iexcloud.io/docs/api/#chart
Data Weighting: See IEX Cloud Docs
Parameters
----------
range: str, default '1m', optional
Chart range to return. See docs.
Choose from [`5y`,`2y`,`1y`,`ytd`,`6m`,`3m`,`1m`,`1d`... | "Historical Prices\r\n\r\n Reference: https://iexcloud.io/docs/api/#chart\r\n\r\n Data Weighting: See IEX Cloud Docs\r\n\r\n Parameters\r\n ----------\r\n range: str, default '1m', optional\r\n Chart range to return. See docs.\r\n Choose from [`5y`,`2y`,`1y`,`ytd... | 129 | false | addisonlynch/iexfinance | get_historical_prices | 12,430 | |
LDU_FT/ga4gh/ga4gh-client/_textOutput | LDU_FT | [
"<BEGIN>\n## `_run_search_request`",
"Runs the specified request at the specified object_name and\n instantiates an object of the specified class. We yield each object in\n listAttr. If pages of results are present, repeat this process\n until the pageToken is null.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _textOutput API.
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 _textOutput API.
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... | Outputs a text summary of the specified protocol objects, one
per line. | "Outputs a text summary of the specified protocol objects, one\n per line." | 104 | false | ga4gh/ga4gh-client | _textOutput | 12,431 | |
LDU_FT/chimera0/accel-brain-code/summarize | LDU_FT | [
"<BEGIN>\n## `draw`",
"Draws samples from the `true` distribution.\r",
" Returns:\r\n `np.ndarray` of samples.\n<END>",
"<BEGIN>\n## `generate`",
"Generate noise samples.\r",
" Returns:\r\n `np.ndarray` of samples.\n<END>",
"<BEGIN>\n## `generate`",
"Draws samples f... | 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... | Execute summarization.
Args:
document: The target document.
Abstractor: The object of AbstractableDoc.
similarity_filter The object of SimilarityFilter.
Returns:
dict data.
- "summarize_result": The list of summarized sent... | "Execute summarization.\n\n Args:\n document: The target document.\n Abstractor: The object of AbstractableDoc.\n similarity_filter The object of SimilarityFilter.\n\n Returns:\n dict data.\n - \"summarize_result\": The list of sum... | 550 | false | chimera0/accel-brain-code | summarize | 12,432 | |
LDU_FT/willhardy/django-seo/_with_inline | LDU_FT | [
"<BEGIN>\n## `_populate`",
"Populate this list by calling populate(), but only once.\n<END>",
"<BEGIN>\n## `_register_admin`",
"Register model in the admin, ignoring any previously registered models.\n Alternatively it could be used in the future to replace a previously \n registered model.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _with_inline API.
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 _with_inline API.
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... | Decorator for register function that adds an appropriate inline. | "Decorator for register function that adds an appropriate inline." | 36 | false | willhardy/django-seo | _with_inline | 12,433 | |
LDU_FT/synw/dataswim/count_nulls | LDU_FT | [
"<BEGIN>\n## `ndlayout_`",
"Create a Holoview NdLayout from a dictionnary of chart objects\n<END>",
"<BEGIN>\n## `layout_`",
"Returns a Holoview Layout from chart objects\n<END>",
"<BEGIN>\n## `_hline_bokeh_`",
"Returns an horizontal line from a column mean value\n<END>",
"<BEGIN>\n## `_sline_bokeh`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_nulls API.
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 count_nulls API.
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... | Count the number of null values in a column | "Count the number of null values in a column" | 393 | false | synw/dataswim | count_nulls | 12,434 | |
LDU_FT/shad7/tvrenamer/retrieve_files | LDU_FT | [
"<BEGIN>\n## `execute`",
"Renames a file based on the name generated using metadata.",
" :param str filename: absolute path and filename of original file\n :param str formatted_name: absolute path and new filename\n<END>",
"<BEGIN>\n## `get_series_by_name`",
"Perform lookup for series",
" :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Get list of files found in provided locations.
Search through the paths provided to find files for processing.
:returns: absolute path of filename
:rtype: list | "Get list of files found in provided locations.\n\n Search through the paths provided to find files for processing.\n\n :returns: absolute path of filename\n :rtype: list" | 135 | false | shad7/tvrenamer | retrieve_files | 12,435 | |
LDU_FT/kolypto/py-good/on_compiled | LDU_FT | [
"<BEGIN>\n## `message`",
"Convenience decorator that applies [`Msg()`](#msg) to a callable.",
" ```python\n from good import Schema, message",
" @message(u'Need a number')\n def intify(v):\n return int(v)\n ```",
" :param message: Error message to use instead\n :type message: uni... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_compiled API.
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 on_compiled API.
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... | When CompiledSchema compiles this marker, it sets informational values onto it.
Note that arguments may be provided in two incomplete sets,
e.g. (name, key_schema, None) and then (None, None, value_schema).
Thus, all assignments must be handled individually.
It is possible that a marke... | "When CompiledSchema compiles this marker, it sets informational values onto it.\n\n Note that arguments may be provided in two incomplete sets,\n e.g. (name, key_schema, None) and then (None, None, value_schema).\n Thus, all assignments must be handled individually.\n\n It is possible that ... | 118 | false | kolypto/py-good | on_compiled | 12,436 | |
LDU_FT/OnroerendErfgoed/skosprovider_getty/find | LDU_FT | [
"<BEGIN>\n## `get_by_id`",
"Get a :class:`skosprovider.skos.Concept` or :class:`skosprovider.skos.Collection` by id",
" :param (str) id: integer id of the :class:`skosprovider.skos.Concept` or :class:`skosprovider.skos.Concept`\n :return: corresponding :class:`skosprovider.skos.Concept` or :class:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
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 find API.
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... | Find concepts that match a certain query.
Currently query is expected to be a dict, so that complex queries can
be passed. You can use this dict to search for concepts or collections
with a certain label, with a certain type and for concepts that belong
to a certain collection.
... | "Find concepts that match a certain query.\n\n Currently query is expected to be a dict, so that complex queries can\n be passed. You can use this dict to search for concepts or collections\n with a certain label, with a certain type and for concepts that belong\n to a certain collection.\n\... | 36 | false | OnroerendErfgoed/skosprovider_getty | find | 12,437 | |
LDU_FT/Syndace/python-omemo/makeCallbackPromise | LDU_FT | [
"<BEGIN>\n## `coroutine`",
"Implementation of a coroutine.",
" Use as a decorator:\n @coroutine\n def foo():\n result = yield somePromise",
" The function passed should be a generator yielding instances of the Promise class\n (or compatible).\n The coroutine waits for the Promise to r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeCallbackPromise 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 makeCallbackPromise 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... | Take a function that reports its result using a callback and return a Promise that
listenes for this callback.
The function must accept a callback as its first parameter.
The callback must take two arguments:
- success : True or False
- result : The result of the operation if success is True or th... | "Take a function that reports its result using a callback and return a Promise that\n listenes for this callback.\n\n The function must accept a callback as its first parameter.\n The callback must take two arguments:\n - success : True or False\n - result : The result of the operation if success is Tru... | 45 | false | Syndace/python-omemo | makeCallbackPromise | 12,438 | |
LDU_FT/gunthercox/ChatterBot/compare | LDU_FT | [
"<BEGIN>\n## `get_response`",
"Return the bot's response based on the input.",
" :param statement: An statement object or string.\n :returns: A response to the input.\n :rtype: Statement",
" :param additional_response_selection_parameters: Parameters to pass to the\n cha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare API.
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 compare API.
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... | Compare the two input statements.
:return: The percent of similarity between the text of the statements.
:rtype: float | "Compare the two input statements.\n\n :return: The percent of similarity between the text of the statements.\n :rtype: float" | 158 | false | gunthercox/ChatterBot | compare | 12,439 | |
LDU_FT/mottosso/be/slice | LDU_FT | [
"<BEGIN>\n## `pager`",
"Decide what method to use for paging through text.\n<END>",
"<BEGIN>\n## `from_int`",
"Backwards-compatibility for the old retries format.\n<END>",
"<BEGIN>\n## `get_backoff_time`",
"Formula for computing the current backoff",
" :rtype: float\n<END>",
"<BEGIN>\n## `is_fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slice API.
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 slice API.
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... | Slice a template based on it's positional argument
Arguments:
index (int): Position at which to slice
template (str): Template to slice
Example:
>>> slice(0, "{cwd}/{0}/assets/{1}/{2}")
'{cwd}/{0}'
>>> slice(1, "{cwd}/{0}/assets/{1}/{2}")
'{cwd}/{0}/assets/{1}' | "Slice a template based on it's positional argument\n\n Arguments:\n index (int): Position at which to slice\n template (str): Template to slice\n\n Example:\n >>> slice(0, \"{cwd}/{0}/assets/{1}/{2}\")\n '{cwd}/{0}'\n >>> slice(1, \"{cwd}/{0}/assets/{1}/{2}\")\n '{cwd}/{... | 359 | false | mottosso/be | slice | 12,440 | |
LDU_FT/mgoral/subconvert/_findRow | LDU_FT | [
"<BEGIN>\n## `__parseFormat`",
"Actual parser. Please note that time_to is not required to process as not all subtitles\n provide it.\n<END>",
"<BEGIN>\n## `createSubtitle`",
"Returns a correct 'Subtitle' object from a text given in 'section'. If 'section' cannot\n be parsed, None is returned.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _findRow API.
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 _findRow API.
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... | Finds a row in a given model which has a column with a given
number. | "Finds a row in a given model which has a column with a given\n number." | 50 | false | mgoral/subconvert | _findRow | 12,441 | |
LDU_FT/Spirent/py-stcrestclient/upload | LDU_FT | [
"<BEGIN>\n## `url`",
"Construct a URL from the given components.\n<END>",
"<BEGIN>\n## `download_file`",
"Download a file.",
" If a timeout defined, it is not a time limit on the entire download;\n rather, an exception is raised if the server has not issued a response\n for timeout seco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload API.
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 upload API.
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 ... | Upload the specified file to the server. | "Upload the specified file to the server." | 102 | false | Spirent/py-stcrestclient | upload | 12,442 | |
LDU_FT/Kozea/pygal/compute_scale | LDU_FT | [
"<BEGIN>\n## `erfinv`",
"Approximation of the inverse error function\n https://en.wikipedia.org/wiki/Error_function\n #Approximation_with_elementary_functions\n<END>",
"<BEGIN>\n## `confidence_interval_continuous`",
"Continuous confidence interval from sample size and standard error\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_scale API.
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 compute_scale API.
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... | Compute an optimal scale between min and max | "Compute an optimal scale between min and max" | 147 | false | Kozea/pygal | compute_scale | 12,443 | |
LDU_FT/geopy/geopy/reverse | LDU_FT | [
"<BEGIN>\n## `_construct_url`",
"Construct geocoding request url. Overridden.",
" :param str base_api: Geocoding function base address - self.api\n or self.reverse_api.",
" :param dict params: Geocoding params.",
" :return: string URL.\n<END>",
"<BEGIN>\n## `geocode`",
"R... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse API.
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 reverse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return an address by location point.
:param query: The coordinates for which you wish to obtain the
closest human-readable addresses.
:type query: :class:`geopy.point.Point`, list or tuple of ``(latitude,
longitude)``, or string as ``"%(latitude)s, %(longitude)s"``.
:pa... | "Return an address by location point.\n\n :param query: The coordinates for which you wish to obtain the\n closest human-readable addresses.\n :type query: :class:`geopy.point.Point`, list or tuple of ``(latitude,\n longitude)``, or string as ``\"%(latitude)s, %(longitude)s\"``.\n\n ... | 405 | false | geopy/geopy | reverse | 12,444 | |
LDU_FT/rorr73/LifeSOSpy/parse_name | LDU_FT | [
"<BEGIN>\n## `has_value`",
"True if specified value exists in int enum; otherwise, False.\n<END>",
"<BEGIN>\n## `parse_name`",
"Parse specified name for IntEnum; return default if not found.\n<END>",
"<BEGIN>\n## `parse_value`",
"Parse specified value for IntEnum; return default if not found.\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_name API.
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_name API.
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... | Parse specified name for IntEnum; return default if not found. | "Parse specified name for IntEnum; return default if not found." | 84 | false | rorr73/LifeSOSpy | parse_name | 12,445 | |
LDU_FT/sanoma/django-arctic/get_tabs | 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_tabs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tabs API.
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... | Tabs format: (('name', 'url'), ...) or None if tabs are not used. | "Tabs format: (('name', 'url'), ...) or None if tabs are not used." | 85 | false | sanoma/django-arctic | get_tabs | 12,446 | |
LDU_FT/marshmallow-code/webargs/parse_arg | LDU_FT | [
"<BEGIN>\n## `dict2schema`",
"Generate a `marshmallow.Schema` class given a dictionary of\n `Fields <marshmallow.fields.Field>`.\n<END>",
"<BEGIN>\n## `is_json`",
"Indicates if this mimetype is JSON or not. By default a request\n is considered to include JSON data if the mimetype is\n ``application/... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_arg API.
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 parse_arg API.
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... | Parse a single argument from a request.
.. note::
This method does not perform validation on the argument.
:param str name: The name of the value.
:param marshmallow.fields.Field field: The marshmallow `Field` for the request
parameter.
:param req: The request o... | "Parse a single argument from a request.\n\n .. note::\n This method does not perform validation on the argument.\n\n :param str name: The name of the value.\n :param marshmallow.fields.Field field: The marshmallow `Field` for the request\n parameter.\n :param req: The ... | 108 | false | marshmallow-code/webargs | parse_arg | 12,447 | |
LDU_FT/alvinwan/TexSoup/all | LDU_FT | [
"<BEGIN>\n## `all`",
"r\"\"\"Returns all content in this node, regardless of whitespace or\n not. This includes all LaTeX needed to reconstruct the original source.",
" >>> from TexSoup import TexSoup\n >>> soup = TexSoup(r'''\n ... \\newcommand{reverseconcat}[3]{#3#2#1}\n ...... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API.
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 all API.
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... | r"""Returns all content in this expression, regardless of whitespace or
not. This includes all LaTeX needed to reconstruct the original source.
>>> expr1 = TexExpr('textbf', ('\n', 'hi'))
>>> expr2 = TexExpr('textbf', ('\n', 'hi'), preserve_whitespace=True)
>>> list(expr1.all) == list(e... | "r\"\"\"Returns all content in this expression, regardless of whitespace or\n not. This includes all LaTeX needed to reconstruct the original source.\n\n >>> expr1 = TexExpr('textbf', ('\\n', 'hi'))\n >>> expr2 = TexExpr('textbf', ('\\n', 'hi'), preserve_whitespace=True)\n >>> list(expr1.all... | 166 | false | alvinwan/TexSoup | all | 12,448 | |
LDU_FT/adamcharnock/swiftwind/populate | LDU_FT | [
"<BEGIN>\n## `get_amount_normal`",
"Get the amount due on the given billing cycle",
" For regular recurring costs this is simply `fixed_amount`. For\n one-off costs this is the portion of `fixed_amount` for the given\n billing_cycle.\n<END>",
"<BEGIN>\n## `get_amount_arrears_balance`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populate API.
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 populate API.
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... | Ensure the next X years of billing cycles exist | "Ensure the next X years of billing cycles exist" | 49 | false | adamcharnock/swiftwind | populate | 12,449 | |
LDU_FT/PBR/MQ2/add_qtl_to_marker | LDU_FT | [
"<BEGIN>\n## `add_qtl_to_marker`",
"Add the number of QTLs found for a given marker.",
" :arg marker, the marker we are looking for the QTL's.\n :arg qtls, the list of all QTLs found.\n<END>",
"<BEGIN>\n## `add_qtl_to_map`",
"This function adds to a genetic map for each marker the number\n of signi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_qtl_to_marker API.
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 add_qtl_to_marker API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Add the number of QTLs found for a given marker.
:arg marker, the marker we are looking for the QTL's.
:arg qtls, the list of all QTLs found. | "Add the number of QTLs found for a given marker.\n\n :arg marker, the marker we are looking for the QTL's.\n :arg qtls, the list of all QTLs found." | 98 | false | PBR/MQ2 | add_qtl_to_marker | 12,450 | |
LDU_FT/datawire/quark/get_doc | LDU_FT | [
"<BEGIN>\n## `visit_Method`",
"Ensure method has the same signature matching method on parent interface.",
" :param method: L{quarkc.ast.Method} instance.\n<END>",
"<BEGIN>\n## `urlparse`",
"Parse a quark file and, optionally, its recursive dependencies.",
" A quark file (main.q) is loaded v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_doc API.
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 get_doc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return a node's documentation as a string, pulling from annotations
or constructing a simple fake as needed. | "Return a node's documentation as a string, pulling from annotations\n or constructing a simple fake as needed." | 18 | false | datawire/quark | get_doc | 12,451 | |
LDU_FT/Shizmob/pydle/whois | LDU_FT | [
"<BEGIN>\n## `on_ctcp_version`",
"Built-in CTCP version as some networks seem to require it.\n<END>",
"<BEGIN>\n## `on_raw_privmsg`",
"Modify PRIVMSG to redirect CTCP messages.\n<END>",
"<BEGIN>\n## `on_raw_notice`",
"Modify NOTICE to redirect CTCP messages.\n<END>",
"<BEGIN>\n## `_register`",
"Hijack... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the whois API.
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 whois API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Return information about user.
This is an blocking asynchronous method: it has to be called from a coroutine, as follows:
info = await self.whois('Nick') | "Return information about user.\n This is an blocking asynchronous method: it has to be called from a coroutine, as follows:\n\n info = await self.whois('Nick')" | 96 | false | Shizmob/pydle | whois | 12,452 | |
LDU_FT/delfick/harpoon/commands | LDU_FT | [
"<BEGIN>\n## `a_temp_file`",
"Yield the name of a temporary file and ensure it's removed after use\n<END>",
"<BEGIN>\n## `run_container`",
"Run this image and all dependency images\n<END>",
"<BEGIN>\n## `run_deps`",
"Start containers for all our dependencies\n<END>",
"<BEGIN>\n## `stop_deps`",
"Stop t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commands API.
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 commands API.
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... | Memoize and return the flattened list of commands | "Memoize and return the flattened list of commands" | 149 | false | delfick/harpoon | commands | 12,453 | |
LDU_FT/sander76/aio-powerview-api/_sanitize_resources | LDU_FT | [
"<BEGIN>\n## `sanitize_resources`",
"Cleans up incoming scene data",
" :param resource: The dict with scene data to be sanitized.\n :returns: Cleaned up dict.\n<END>",
"<BEGIN>\n## `create_scene`",
"Creates am empty scene.",
" Scenemembers need to be added after the scene has been cre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sanitize_resources 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 _sanitize_resources 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... | Loops over incoming data looking for base64 encoded data and
converts them to a readable format. | "Loops over incoming data looking for base64 encoded data and\n converts them to a readable format." | 58 | false | sander76/aio-powerview-api | _sanitize_resources | 12,454 | |
LDU_FT/echonest/pyechonest/static | LDU_FT | [
"<BEGIN>\n## `write_xspf`",
"send me a list of (artist,title,mp3_url)\n<END>",
"<BEGIN>\n## `callm`",
"Call the api! \n Param_dict is a *regular* *python* *dictionary* so if you want to have multi-valued params\n put them in a list.",
" ** note, if we require 2.6, we can get rid of this timeout mun... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the static API.
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 static API.
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 ... | Get a static playlist
Args:
Kwargs:
type (str): a string representing the playlist type ('artist', 'artist-radio', ...)
artist_pick (str): How songs should be chosen for each artist
variety (float): A number between 0 and 1 specifying the variety of the playli... | "Get a static playlist\n \n Args:\n \n Kwargs:\n type (str): a string representing the playlist type ('artist', 'artist-radio', ...)\n \n artist_pick (str): How songs should be chosen for each artist\n \n variety (float): A number between 0 and 1 specifying the variety of ... | 438 | false | echonest/pyechonest | static | 12,455 | |
LDU_FT/ribozz/sphinx-argparse/listNode | LDU_FT | [
"<BEGIN>\n## `customWalker`",
"A convenience function to ease debugging. It will print the node structure that's returned from CommonMark",
" The usage would be something like:",
" >>> content = Parser().parse('Some big text block\\n===================\\n\\nwith content\\n')\n >>> customWalker(conten... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listNode API.
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 listNode API.
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... | A list (numbered or not)
For numbered lists, the suffix is only rendered as . in html | "A list (numbered or not)\n For numbered lists, the suffix is only rendered as . in html" | 37 | false | ribozz/sphinx-argparse | listNode | 12,456 | |
LDU_FT/cimatosa/progression/start | LDU_FT | [
"<BEGIN>\n## `_get_callargs`",
"Retrieve all arguments that `self.func` needs and\n return a dictionary with call arguments.\n<END>",
"<BEGIN>\n## `get_terminal_size`",
"Checks various methods to determine the terminal size",
" Methods:\n - shutil.get_terminal_size (only Python3)\n - fcntl.i... | 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... | uses multiprocess Process to call _wrapper_func in subprocess | "uses multiprocess Process to call _wrapper_func in subprocess" | 48 | false | cimatosa/progression | start | 12,457 | |
LDU_FT/jucacrispim/pylint-mongoengine/is_field_method | LDU_FT | [
"<BEGIN>\n## `node_is_subclass`",
"Checks if cls node has parent with subclass_name.\n<END>",
"<BEGIN>\n## `is_field_method`",
"Checks if a call to a field instance method is valid. A call is\n valid if the call is a method of the underlying type. So, in a StringField\n the methods from str are valid, i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_field_method API.
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 is_field_method API.
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... | Checks if a call to a field instance method is valid. A call is
valid if the call is a method of the underlying type. So, in a StringField
the methods from str are valid, in a ListField the methods from list are
valid and so on... | "Checks if a call to a field instance method is valid. A call is\n valid if the call is a method of the underlying type. So, in a StringField\n the methods from str are valid, in a ListField the methods from list are\n valid and so on..." | 22 | false | jucacrispim/pylint-mongoengine | is_field_method | 12,458 | |
LDU_FT/ShopRunner/apparate/update_job_libraries | LDU_FT | [
"<BEGIN>\n## `_update_value`",
"creates (if needed) and updates the value of the key in the config with a\n value entered by the user",
" Parameters\n ----------\n config: ConfigParser object\n existing configuration\n key: string\n key to update\n instruction: string\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_job_libraries 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_job_libraries API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | update libraries on jobs using same major version
Parameters
----------
logger: logging object
configured in cli_commands.py
job_list: list of strings
output of get_job_list
match: FilenameMatch object
match object with suffix
new_library_path: string
path to lib... | "update libraries on jobs using same major version\n\n Parameters\n ----------\n logger: logging object\n configured in cli_commands.py\n job_list: list of strings\n output of get_job_list\n match: FilenameMatch object\n match object with suffix\n new_library_path: string\n ... | 44 | false | ShopRunner/apparate | update_job_libraries | 12,459 | |
LDU_FT/aws/sagemaker-containers/_decode | LDU_FT | [
"<BEGIN>\n## `_orted_process`",
"Waits maximum of 5 minutes for orted process to start\n<END>",
"<BEGIN>\n## `_can_connect`",
"Checks if the connection to provided ``host`` and ``port`` is possible or not.\n Args:\n host (str): Hostname for the host to check connection.\n port (int):... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Decode an object to unicode.
Args:
obj (bytes or str or unicode or anything serializable): object to be decoded
Returns:
object decoded in unicode. | "Decode an object to unicode.\n Args:\n obj (bytes or str or unicode or anything serializable): object to be decoded\n Returns:\n object decoded in unicode." | 200 | false | aws/sagemaker-containers | _decode | 12,460 | |
LDU_FT/lappis-unb/salic-ml/execute_project_models_sql_scripts | LDU_FT | [
"<BEGIN>\n## `approved_funds`",
"Verifica se o valor total de um projeto é um\n outlier em relação\n aos projetos do mesmo seguimento cultural\n Dataframes: planilha_orcamentaria\n<END>",
"<BEGIN>\n## `complexidade`",
"Returns a value that indicates project health, currently FinancialIndicator\n i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_project_models_sql_scripts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_project_models_sql_scripts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | Used to get project information from MinC database
and convert to this application Project models.
Uses bulk_create if database is clean | "Used to get project information from MinC database\n and convert to this application Project models.\n Uses bulk_create if database is clean" | 102 | false | lappis-unb/salic-ml | execute_project_models_sql_scripts | 12,461 | |
LDU_FT/mongodb/motor/wrap_synchro | LDU_FT | [
"<BEGIN>\n## `chain_return_value`",
"Compatible way to return a value in all Pythons.",
" PEP 479, raise StopIteration(value) from a coroutine won't work forever,\n but \"return value\" doesn't work in Python 2. Instead, Motor methods that\n return values resolve a Future with it, and are implemented w... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_synchro API.
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 wrap_synchro API.
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... | If decorated Synchro function returns a Motor object, wrap in a Synchro
object. | "If decorated Synchro function returns a Motor object, wrap in a Synchro\n object." | 133 | false | mongodb/motor | wrap_synchro | 12,462 | |
LDU_FT/svartalf/python-opus/create | LDU_FT | [
"<BEGIN>\n## `create`",
"Allocates and initializes an encoder state.\n<END>",
"<BEGIN>\n## `encode`",
"Encodes an Opus frame",
" Returns string output payload\n<END>",
"<BEGIN>\n## `encode_float`",
"Encodes an Opus frame from floating point input\n<END>",
"<BEGIN>\n## `query`",
"Query encoder/dec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Allocates and initializes a decoder state | "Allocates and initializes a decoder state" | 20 | false | svartalf/python-opus | create | 12,463 | |
LDU_FT/nwilming/ocupy/spline_base2d | LDU_FT | [
"<BEGIN>\n## `path`",
"Constructs the path to categories, images and features.",
" This path function assumes that the following storage scheme is used on\n the hard disk to access categories, images and features:\n - categories: /impath/category\n - images: /impath/categ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spline_base2d API.
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 spline_base2d API.
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... | Computes a set of 2D spline basis functions.
The basis functions cover the entire space in height*width and can
for example be used to create fixation density maps.
Input:
width: int
width of each basis
height: int
height of each basis
nr_knots_x: i... | "Computes a set of 2D spline basis functions. \n \n The basis functions cover the entire space in height*width and can \n for example be used to create fixation density maps. \n\n Input:\n width: int\n width of each basis\n height: int \n height of each basis\n nr... | 310 | false | nwilming/ocupy | spline_base2d | 12,464 | |
LDU_FT/yougov/mongo-connector/map_db | LDU_FT | [
"<BEGIN>\n## `retry_until_ok`",
"Retry code block until it succeeds.",
" If it does not succeed in 120 attempts, the function re-raises any\n error the function raised on its last attempt.\n<END>",
"<BEGIN>\n## `apply_update`",
"Apply an update operation to a document.\n<END>",
"<BEGIN>\n## `bulk_up... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_db API.
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 map_db API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Given a plain source database, return the list of target databases.
Individual collections in a database can be mapped to different
target databases, so map_db can return multiple databases. This
function must return all target database names so we make the
following restrictions on wil... | "Given a plain source database, return the list of target databases.\n\n Individual collections in a database can be mapped to different\n target databases, so map_db can return multiple databases. This\n function must return all target database names so we make the\n following restrictions ... | 115 | false | yougov/mongo-connector | map_db | 12,465 | |
LDU_FT/s4int/robotframework-KafkaLibrary/seek_to_end | LDU_FT | [
"<BEGIN>\n## `connect_producer`",
"A Kafka client that publishes records to the Kafka cluster.",
" Keyword Arguments:\n - ``bootstrap_servers``: 'host[:port]' string (or list of 'host[:port]'\n strings) that the producer should contact to bootstrap initial\n cluster metadata. Thi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seek_to_end API.
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 seek_to_end API.
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... | Seek to the most recent available offset for partitions.
- ``topic_partition``: Optionally provide specific `TopicPartitions`,
otherwise default to all assigned partitions. | "Seek to the most recent available offset for partitions.\n \n - ``topic_partition``: Optionally provide specific `TopicPartitions`,\n otherwise default to all assigned partitions." | 42 | false | s4int/robotframework-KafkaLibrary | seek_to_end | 12,466 | |
LDU_FT/ensime/ensime-vim/get_setting | LDU_FT | [
"<BEGIN>\n## `buffer_typechecks_and_display`",
"Adds typecheck events to the buffer, and displays them right away.",
" This is a workaround for this issue:\n https://github.com/ensime/ensime-server/issues/1616\n<END>",
"<BEGIN>\n## `handle_typecheck_complete`",
"Handles ``NewScalaNotesEvent```... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_setting API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_setting API.
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 the value of a Vim variable ``g:ensime_{key}``
if it is set, and ``default`` otherwise. | "Returns the value of a Vim variable ``g:ensime_{key}``\n if it is set, and ``default`` otherwise." | 150 | false | ensime/ensime-vim | get_setting | 12,467 | |
LDU_FT/xflr6/graphviz/from_file | LDU_FT | [
"<BEGIN>\n## `command`",
"Return args list for ``subprocess.Popen`` and name of the rendered file.\n<END>",
"<BEGIN>\n## `run`",
"Run the command described by cmd and return its (stdout, stderr) tuple.\n<END>",
"<BEGIN>\n## `render`",
"Render file with Graphviz ``engine`` into ``format``, return result f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return an instance with the source string read from the given file.
Args:
filename: Filename for loading/saving the source.
directory: (Sub)directory for source loading/saving and rendering.
format: Rendering output format (``'pdf'``, ``'png'``, ...).
engine: Lay... | "Return an instance with the source string read from the given file.\n\n Args:\n filename: Filename for loading/saving the source.\n directory: (Sub)directory for source loading/saving and rendering.\n format: Rendering output format (``'pdf'``, ``'png'``, ...).\n engi... | 93 | false | xflr6/graphviz | from_file | 12,468 | |
LDU_FT/edeposit/edeposit.amqp.ftp/_parse | LDU_FT | [
"<BEGIN>\n## `load_users`",
"Read passwd file and return dict with users and all their settings.",
" Args:\n path (str, default settings.LOGIN_FILE): path of the file,\n which will be loaded (default :attr:`ftp.settings.LOGIN_FILE`).",
" Returns:\n (dict): username: {pass_hash, ... | 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 ... | 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 ... | Parse :attr:`raw_data`.
Returns:
MetadataFile: New MetadataFile with parsed data inside (namedtuples
are immutable). | "Parse :attr:`raw_data`.\n\n Returns:\n MetadataFile: New MetadataFile with parsed data inside (namedtuples\n are immutable)." | 166 | false | edeposit/edeposit.amqp.ftp | _parse | 12,469 | |
LDU_FT/frictionlessdata/tabulator-py/detect_encoding | LDU_FT | [
"<BEGIN>\n## `detect_scheme_and_format`",
"Detect scheme and format based on source and return as a tuple.",
" Scheme is a minimum 2 letters before `://` (will be lower cased).\n For example `http` from `http://example.com/table.csv`\n<END>",
"<BEGIN>\n## `detect_encoding`",
"Detect encoding of a byte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_encoding API.
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 detect_encoding API.
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... | Detect encoding of a byte string sample. | "Detect encoding of a byte string sample." | 35 | false | frictionlessdata/tabulator-py | detect_encoding | 12,470 | |
LDU_FT/bitcaster-io/bitcaster/channel_submit_row | LDU_FT | [
"<BEGIN>\n## `process_response`",
"Update the storage backend (i.e., save the messages).",
" Raise ValueError if not all messages could be stored and DEBUG is True.\n<END>",
"<BEGIN>\n## `route`",
"A decorator that is used to register a view function for a\n given URL rule. This does the same... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the channel_submit_row API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the channel_submit_row API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Display the row of buttons for delete and save. | "Display the row of buttons for delete and save." | 71 | false | bitcaster-io/bitcaster | channel_submit_row | 12,471 | |
LDU_FT/stephantul/somber/receptive_field | LDU_FT | [
"<BEGIN>\n## `_calculate_influence`",
"Pre-calculate the influence for a given value of sigma.",
" The neighborhood has size num_neurons * num_neurons, so for a\n 30 * 30 map, the neighborhood will be size (900, 900).",
" Parameters\n ----------\n neighborhood : float\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receptive_field API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receptive_field API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Calculate the receptive field of the SOM on some data.
The receptive field is the common ending of all sequences which
lead to the activation of a given BMU. If a SOM is well-tuned to
specific sequences, it will have longer receptive fields, and therefore
gives a better description of t... | "Calculate the receptive field of the SOM on some data.\n\n The receptive field is the common ending of all sequences which\n lead to the activation of a given BMU. If a SOM is well-tuned to\n specific sequences, it will have longer receptive fields, and therefore\n gives a better descriptio... | 123 | false | stephantul/somber | receptive_field | 12,472 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.