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/tylerbutler/engineer/tagged | LDU_FT | [
"<BEGIN>\n## `ensure_exists`",
"Ensures a given path *p* exists.",
" If a path to a file is passed in, then the path to the file will be checked. This can be overridden by passing a\n value of ``True`` to ``assume_dirs``, in which case the paths will be assumed to be to directories, not files.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tagged API.
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 tagged API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Returns a new PostCollection containing the subset of posts that are tagged with *tag*. | "Returns a new PostCollection containing the subset of posts that are tagged with *tag*." | 44 | false | tylerbutler/engineer | tagged | 31,073 | |
LDU_FT/pytest-dev/pytest-xdist/schedule | LDU_FT | [
"<BEGIN>\n## `has_pending`",
"Return True if there are pending test items.",
" This indicates that collection has finished and nodes are still\n processing test items, so this can be thought of as\n \"the scheduler is active\".\n<END>",
"<BEGIN>\n## `add_node`",
"Add a new node to the s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule API.
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 schedule API.
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... | Initiate distribution of the test collection.
Initiate scheduling of the items across the nodes. If this gets called
again later it behaves the same as calling ``._reschedule()`` on all
nodes so that newly added nodes will start to be used.
If ``.collection_is_completed`` is True, thi... | "Initiate distribution of the test collection.\n\n Initiate scheduling of the items across the nodes. If this gets called\n again later it behaves the same as calling ``._reschedule()`` on all\n nodes so that newly added nodes will start to be used.\n\n If ``.collection_is_completed`` is Tr... | 92 | false | pytest-dev/pytest-xdist | schedule | 31,074 | |
LDU_FT/EventTeam/beliefs/contains | LDU_FT | [
"<BEGIN>\n## `size`",
"Size of LazyCell: the size of the intension plus accounting for\n excluded and included additions.",
" The exclusions are assumed to be part of the set\n The inclusions are assumed to NOT be part of the intension\n<END>",
"<BEGIN>\n## `update`",
"Updates intensio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contains API.
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 contains API.
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... | Allows the 'in' operator to work for checking if a particular key (or keypath)
is inside the dictionary. | "Allows the 'in' operator to work for checking if a particular key (or keypath)\n is inside the dictionary." | 158 | false | EventTeam/beliefs | contains | 31,075 | |
LDU_FT/junaruga/rpm-py-installer/curl_remote_name | LDU_FT | [
"<BEGIN>\n## `download_and_install`",
"Download and install RPM Python binding.\n<END>",
"<BEGIN>\n## `add_patchs_to_build_without_pkg_config`",
"Add patches to remove pkg-config command and rpm.pc part.",
" Replace with given library_path: lib_dir and include_path: include_dir\n without rpm.p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the curl_remote_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the curl_remote_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 ... | Download file_url, and save as a file name of the URL.
It behaves like "curl -O or --remote-name".
It raises HTTPError if the file_url not found. | "Download file_url, and save as a file name of the URL.\n\n It behaves like \"curl -O or --remote-name\".\n It raises HTTPError if the file_url not found." | 67 | false | junaruga/rpm-py-installer | curl_remote_name | 31,076 | |
LDU_FT/Karaage-Cluster/karaage/start | LDU_FT | [
"<BEGIN>\n## `_gen_project_trend_graph`",
"Generates a bar graph for a project",
" Keyword arguments:\n project -- Project\n start -- start date\n end -- end date\n<END>",
"<BEGIN>\n## `synchronise`",
"If task already queued, running, or finished, don't restart.\n<END>",
"<BEGIN>\n## `send_bou... | 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... | Continue the state machine at first state. | "Continue the state machine at first state." | 214 | false | Karaage-Cluster/karaage | start | 31,077 | |
LDU_FT/djgagne/hagelslag/load_obs | LDU_FT | [
"<BEGIN>\n## `label`",
"Label input grid with hysteresis method.",
" Args:\n input_grid: 2D array of values.",
" Returns:\n Labeled output grid.\n<END>",
"<BEGIN>\n## `size_filter`",
"Remove labeled objects that do not meet size threshold criteria.",
" Args:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_obs API.
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 load_obs API.
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... | Loads observations and masking grid (if needed).
:param mask_threshold: Values greater than the threshold are kept, others are masked.
:return: | "Loads observations and masking grid (if needed).\n\n :param mask_threshold: Values greater than the threshold are kept, others are masked.\n :return:" | 530 | false | djgagne/hagelslag | load_obs | 31,078 | |
LDU_FT/pysal/mapclassify/bin | LDU_FT | [
"<BEGIN>\n## `quantile`",
"Calculates the quantiles for an array",
" Parameters\n ----------\n y : array\n (n,1), values to classify\n k : int\n number of quantiles",
" Returns\n -------\n q : array\n (n,1), quantile values",
" Examples\n -----... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bin API.
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 bin API.
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... | bin interval/ratio data
Parameters
----------
y : array
(n,q), values to bin
bins : array
(k,1), upper bounds of each bin (monotonic)
Returns
-------
b : array
(n,q), values of values between 0 and k-1
Examples
--------
>>> import numpy as np
>>>... | "bin interval/ratio data\n\n Parameters\n ----------\n y : array\n (n,q), values to bin\n bins : array\n (k,1), upper bounds of each bin (monotonic)\n\n Returns\n -------\n b : array\n (n,q), values of values between 0 and k-1\n\n Examples\n --------\n >>> import nu... | 87 | false | pysal/mapclassify | bin | 31,079 | |
LDU_FT/tarvitz/django-unity-asset-server-http-client/get_blob_hash | LDU_FT | [
"<BEGIN>\n## `blob`",
"fetch large object from pg and gives it back to user via HTTP 1.1\n request",
" :param request: django request instance\n :param pk: requested resource primary key\n :rtype: django.http.HttpResponse\n :rtype: HttpResponse\n :return: file with its ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_blob_hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_blob_hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | get hash instance of blob content
:param h: callable hash generator
:type h: builtin_function_or_method
:rtype: _hashlib.HASH
:return: hash instance | "get hash instance of blob content\n\n :param h: callable hash generator\n :type h: builtin_function_or_method\n :rtype: _hashlib.HASH\n :return: hash instance" | 16 | false | tarvitz/django-unity-asset-server-http-client | get_blob_hash | 31,080 | |
LDU_FT/mapbox/mapbox-sdk-py/_validate_tileset | LDU_FT | [
"<BEGIN>\n## `_geom_points`",
"GeoJSON geometry to a sequence of point tuples\n<END>",
"<BEGIN>\n## `read_points`",
"Iterable of features to a sequence of point tuples\n Where \"features\" can be either GeoJSON mappings\n or objects implementing the geo_interface\n<END>",
"<BEGIN>\n## `encode_waypoint... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_tileset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_tileset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Validate the tileset name and
ensure that it includes the username | "Validate the tileset name and\n ensure that it includes the username" | 212 | false | mapbox/mapbox-sdk-py | _validate_tileset | 31,081 | |
LDU_FT/Parsely/schemato/_get_document | LDU_FT | [
"<BEGIN>\n## `validate`",
"Iterate over all triples in the graph and validate each one\n appropriately\n<END>",
"<BEGIN>\n## `_check_triple`",
"compare triple to ontology, return error or None\n<END>",
"<BEGIN>\n## `_validate_class`",
"return error if class `cl` is not found in the ontology\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_document API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_document API.
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... | helper, open a file or url and return the content and identifier | "helper, open a file or url and return the content and identifier" | 32 | false | Parsely/schemato | _get_document | 31,082 | |
LDU_FT/gouthambs/Flask-Blogging/_create_user_posts_table | LDU_FT | [
"<BEGIN>\n## `init_app`",
"Initialize the engine.",
" :param app: The app to use\n :type app: Object\n :param storage: The blog storage instance that implements the\n :type storage: Object\n :param cache: (Optional) A Flask-Cache object to enable caching\n :type cache: ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_user_posts_table 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_user_posts_table API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Creates the table to store association info between user and blog
posts.
:return: | "Creates the table to store association info between user and blog\n posts.\n :return:" | 53 | false | gouthambs/Flask-Blogging | _create_user_posts_table | 31,083 | |
LDU_FT/EliotBerriot/lifter/set | LDU_FT | [
"<BEGIN>\n## `_execute`",
"We have to override this because in some situation\n (such as with Filebackend, or any dummy backend)\n we have to parse / adapt results *before* when can execute the query\n<END>",
"<BEGIN>\n## `get`",
"Get the given key from the cache, if present.\n A default ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Set the given key to the given value in the cache.
A timeout may be provided, otherwise, the :py:attr:`Cache.default_timeout`
will be used.
:param key: the key to which the value will be bound
:type key: str
:param value: the value to store in the cache
:param timeout: t... | "Set the given key to the given value in the cache.\n A timeout may be provided, otherwise, the :py:attr:`Cache.default_timeout`\n will be used.\n\n :param key: the key to which the value will be bound\n :type key: str\n :param value: the value to store in the cache\n :param ti... | 29 | false | EliotBerriot/lifter | set | 31,084 | |
LDU_FT/Hackerfleet/hfos/_send_acceptance | LDU_FT | [
"<BEGIN>\n## `_augment_book`",
"Checks if the newly created object is a book and only has an ISBN.\n If so, tries to fetch the book data off the internet.",
" :param uuid: uuid of book to augment\n :param client: requesting client\n<END>",
"<BEGIN>\n## `serial_ports`",
"Lists serial por... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_acceptance API.
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 _send_acceptance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Send an acceptance mail to an open enrolment | "Send an acceptance mail to an open enrolment" | 344 | false | Hackerfleet/hfos | _send_acceptance | 31,085 | |
LDU_FT/b3j0f/utils/find_embedding | LDU_FT | [
"<BEGIN>\n## `find_ctx`",
"Get the right ctx related to input elt.",
" In order to keep safe memory as much as possible, it is important to find\n the right context element. For example, instead of putting properties on\n a function at the level of an instance, it is important to save such\n propert... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_embedding API.
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 find_embedding API.
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... | Try to get elt embedding elements.
:param embedding: embedding element. Must have a module.
:return: a list of [module [,class]*] embedding elements which define elt.
:rtype: list | "Try to get elt embedding elements.\n\n :param embedding: embedding element. Must have a module.\n\n :return: a list of [module [,class]*] embedding elements which define elt.\n :rtype: list" | 169 | false | b3j0f/utils | find_embedding | 31,086 | |
LDU_FT/edx/i18n-tools/get_valid_commands | LDU_FT | [
"<BEGIN>\n## `default_config_filename`",
"Returns the default name of the configuration file.\n<END>",
"<BEGIN>\n## `read_config`",
"Returns data found in config file (as dict), or raises exception if file not found\n<END>",
"<BEGIN>\n## `rtl_langs`",
"Returns the set of translated RTL language codes pres... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_valid_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_valid_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.
Th... | Returns valid commands.
Returns:
commands (list): List of valid commands | "Returns valid commands.\n\n Returns:\n commands (list): List of valid commands" | 117 | false | edx/i18n-tools | get_valid_commands | 31,087 | |
LDU_FT/mrname/haralyzer/time_to_first_byte | LDU_FT | [
"<BEGIN>\n## `get_load_times`",
"Just a ``list`` of the load times of a certain asset type for each page",
" :param asset_type: ``str`` of the asset type to return load times for\n<END>",
"<BEGIN>\n## `get_stdev`",
"Returns the standard deviation for a set of a certain asset type.",
" :param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time_to_first_byte 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 time_to_first_byte 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... | The aggregate time to first byte for all pages. | "The aggregate time to first byte for all pages." | 72 | false | mrname/haralyzer | time_to_first_byte | 31,088 | |
LDU_FT/jpype-project/jpype/_get_from_java_home | LDU_FT | [
"<BEGIN>\n## `_javahome_binary`",
"for osx > 10.5 we have the nice util /usr/libexec/java_home available. Invoke it and\n return its output. It seems this tool has been removed in osx 10.9.\n<END>",
"<BEGIN>\n## `_get_from_registry`",
"Retrieves the path to the default Java installation stored in the\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_from_java_home API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_from_java_home 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... | Retrieves the Java library path according to the JAVA_HOME environment
variable
:return: The path to the JVM library, or None | "Retrieves the Java library path according to the JAVA_HOME environment\n variable\n\n :return: The path to the JVM library, or None" | 46 | false | jpype-project/jpype | _get_from_java_home | 31,089 | |
LDU_FT/apache/spark/setRandomCenters | LDU_FT | [
"<BEGIN>\n## `_parse_datatype_string`",
"Parses the given data type string to a :class:`DataType`. The data type string format equals\n to :class:`DataType.simpleString`, except that top level struct type can omit\n the ``struct<>`` and atomic types use ``typeName()`` as their format, e.g. use ``byte`` inst... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setRandomCenters API.
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 setRandomCenters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Set the initial centres to be random samples from
a gaussian population with constant weights. | "Set the initial centres to be random samples from\n a gaussian population with constant weights." | 2,386 | true | apache/spark | setRandomCenters | 31,090 | |
LDU_FT/kiwiz/gkeepapi/append | LDU_FT | [
"<BEGIN>\n## `login`",
"Authenticate to Google with the provided credentials.",
" Args:\n email (str): The account to use.\n password (str): The account password.\n android_id (str): An identifier for this client.",
" Raises:\n LoginException: If there... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append API.
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 append API.
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 ... | Add an annotation.
Args:
annotation (gkeepapi.node.Annotation): An Annotation object.
Returns:
gkeepapi.node.Annotation: The Annotation. | "Add an annotation.\n\n Args:\n annotation (gkeepapi.node.Annotation): An Annotation object.\n\n Returns:\n gkeepapi.node.Annotation: The Annotation." | 164 | false | kiwiz/gkeepapi | append | 31,091 | |
LDU_FT/bfrog/whizzer/_readable | LDU_FT | [
"<BEGIN>\n## `remote`",
"Decorator that adds a remote attribute to a function.",
" fn -- function being decorated\n name -- aliased name of the function, used for remote proxies\n types -- a argument type specifier, can be used to ensure\n arguments are of the correct type\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _readable API.
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 _readable API.
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... | Called by the pyev watcher (self.read_watcher) whenever the socket
is readable.
This means either the socket has been closed or there is a new
client connection waiting. | "Called by the pyev watcher (self.read_watcher) whenever the socket\n is readable.\n \n This means either the socket has been closed or there is a new\n client connection waiting." | 107 | false | bfrog/whizzer | _readable | 31,092 | |
LDU_FT/MacHu-GWU/crawlib-project/_create_driver | LDU_FT | [
"<BEGIN>\n## `create_cache`",
"Create a html cache. Html string will be automatically compressed.",
" :param directory: path for the cache directory.\n :param compress_level: 0 ~ 9, 9 is slowest and smallest.\n :param kwargs: other arguments.\n :return: a `diskcache.Cache()`\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_driver API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_driver API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Create webdriver, assign it to ``self.driver``, and run webdriver
initiation process, which is usually used for manual login. | "Create webdriver, assign it to ``self.driver``, and run webdriver\n initiation process, which is usually used for manual login." | 77 | false | MacHu-GWU/crawlib-project | _create_driver | 31,093 | |
LDU_FT/hwmrocker/smtplibaio/data | LDU_FT | [
"<BEGIN>\n## `read_reply`",
"Reads a reply from the server.",
" Raises:\n ConnectionResetError: If the connection with the server is lost\n (we can't read any response anymore). Or if the server\n replies without a proper return code.",
" Returns:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | Sends a SMTP 'DATA' command. - Transmits the message to the server.
If ``email_message`` is a bytes object, sends it as it is. Else,
makes all the required changes so it can be safely trasmitted to the
SMTP server.`
For further details, please check out `RFC 5321 § 4.1.1.4`_.
... | "Sends a SMTP 'DATA' command. - Transmits the message to the server.\n\n If ``email_message`` is a bytes object, sends it as it is. Else,\n makes all the required changes so it can be safely trasmitted to the\n SMTP server.`\n\n For further details, please check out `RFC 5321 § 4.1.1.4`_.\n\... | 140 | false | hwmrocker/smtplibaio | data | 31,094 | |
LDU_FT/pudo/jsongraph/base_uri | 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 base_uri API.
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 base_uri API.
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... | Resolution base for JSON schema. Also used as the default
graph ID for RDF. | "Resolution base for JSON schema. Also used as the default\n graph ID for RDF." | 52 | false | pudo/jsongraph | base_uri | 31,095 | |
LDU_FT/webrecorder/pywb/load_cdx_for_dupe | LDU_FT | [
"<BEGIN>\n## `read_last_line`",
"Read last line from a seekable file. Start reading\n from buff before end of file, and double backwards seek\n until line break is found. If reached beginning of file\n (no lines), just return whole file\n<END>",
"<BEGIN>\n## `load`",
"Load a file-like reader from the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_cdx_for_dupe API.
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 load_cdx_for_dupe API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | If a cdx_server is available, return response from server,
otherwise empty list | "If a cdx_server is available, return response from server,\n otherwise empty list" | 227 | false | webrecorder/pywb | load_cdx_for_dupe | 31,096 | |
LDU_FT/Garee/pytodoist/add_location_reminder | LDU_FT | [
"<BEGIN>\n## `login`",
"Login to Todoist.",
" :param email: The user's email address.\n :type email: str\n :param password: The user's password.\n :type password: str\n :return: The HTTP response to the request.\n :rtype: :class:`requests.Response`",
" >>> from... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_location_reminder 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 add_location_reminder API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Add a reminder to the task which activates on at a given location.
.. warning:: Requires Todoist premium.
:param service: ```email```, ```sms``` or ```push``` for mobile.
:type service: str
:param name: An alias for the location.
:type name: str
:param lat: The location... | "Add a reminder to the task which activates on at a given location.\n\n .. warning:: Requires Todoist premium.\n\n :param service: ```email```, ```sms``` or ```push``` for mobile.\n :type service: str\n :param name: An alias for the location.\n :type name: str\n :param lat: The... | 237 | false | Garee/pytodoist | add_location_reminder | 31,097 | |
LDU_FT/bintoro/overloading.py/find_base_generic | LDU_FT | [
"<BEGIN>\n## `overload`",
"May be used as a shortcut for ``overloaded`` and ``overloads(f)``\n when the overloaded function `f` can be automatically identified.\n<END>",
"<BEGIN>\n## `overloaded`",
"Introduces a new overloaded function and registers its first implementation.\n<END>",
"<BEGIN>\n## `regist... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_base_generic API.
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 find_base_generic API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Locates the underlying generic whose structure and behavior are known.
For example, the base generic of a type that inherits from `typing.Mapping[T, int]`
is `typing.Mapping`. | "Locates the underlying generic whose structure and behavior are known.\n\n For example, the base generic of a type that inherits from `typing.Mapping[T, int]`\n is `typing.Mapping`." | 29 | false | bintoro/overloading.py | find_base_generic | 31,098 | |
LDU_FT/dahlia/sqlalchemy-imageattach/store | LDU_FT | [
"<BEGIN>\n## `readlines`",
"Reads until EOF using :meth:`readline()`.",
" :param sizehint: if it's present, instead of reading up to EOF,\n whole lines totalling approximately ``sizehint``\n bytes (or more to accommodate a final whole line)\n :type s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store API.
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 store API.
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... | Stores the actual data ``file`` of the given ``image``.
::
with open(imagefile, 'rb') as f:
store.store(image, f)
:param image: the image to store its actual data file
:type image: :class:`sqlalchemy_imageattach.entity.Image`
:param file: the image file to p... | "Stores the actual data ``file`` of the given ``image``.\n ::\n\n with open(imagefile, 'rb') as f:\n store.store(image, f)\n\n :param image: the image to store its actual data file\n :type image: :class:`sqlalchemy_imageattach.entity.Image`\n :param file: the image ... | 145 | false | dahlia/sqlalchemy-imageattach | store | 31,099 | |
LDU_FT/jonhadfield/creds/create_plan | LDU_FT | [
"<BEGIN>\n## `create_plan`",
"Determine what changes are required.",
" args:\n existing_users (Users): List of discovered users\n proposed_users (Users): List of proposed users\n purge_undefined (bool): Remove discovered users that have not been defined in proposed users list\n pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_plan API.
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 create_plan API.
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... | Determine what changes are required.
args:
existing_users (Users): List of discovered users
proposed_users (Users): List of proposed users
purge_undefined (bool): Remove discovered users that have not been defined in proposed users list
protected_users (list): List of users' names t... | "Determine what changes are required.\n\n args:\n existing_users (Users): List of discovered users\n proposed_users (Users): List of proposed users\n purge_undefined (bool): Remove discovered users that have not been defined in proposed users list\n protected_users (list): List of users' ... | 71 | false | jonhadfield/creds | create_plan | 31,100 | |
LDU_FT/lago-project/lago/get_env_dict | LDU_FT | [
"<BEGIN>\n## `expose`",
"Decorator to be used with :class:`SDKWrapper`. This decorator indicates\n that the wrapped method or class should be exposed in the proxied object.",
" Args:\n func(types.FunctionType/types.MethodType): function to decorate",
" Returns:\n None\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_env_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_env_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Read all Lago variables from the environment.
The lookup format is:
LAGO_VARNAME - will land into 'lago' section
LAGO__SECTION1__VARNAME - will land into 'section1' section, notice
the double '__'.
LAGO__LONG_SECTION_NAME__VARNAME - will land into 'long_section_name'
Returns:
dict: dic... | "Read all Lago variables from the environment.\n The lookup format is:\n LAGO_VARNAME - will land into 'lago' section\n LAGO__SECTION1__VARNAME - will land into 'section1' section, notice\n the double '__'.\n LAGO__LONG_SECTION_NAME__VARNAME - will land into 'long_section_name'\n\n\n Returns:\n ... | 718 | false | lago-project/lago | get_env_dict | 31,101 | |
LDU_FT/InspectorMustache/base16-builder-python/inject_mode | LDU_FT | [
"<BEGIN>\n## `get_parent_dir`",
"Get the directory $level levels above $base_dir.\n<END>",
"<BEGIN>\n## `get_pystache_parsed`",
"Return a ParsedTemplate instance based on the contents of\n $mustache_file.\n<END>",
"<BEGIN>\n## `get_template_dirs`",
"Return a set of all template directories.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inject_mode API.
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 inject_mode API.
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... | Check command line arguments and run build function. | "Check command line arguments and run build function." | 50 | false | InspectorMustache/base16-builder-python | inject_mode | 31,102 | |
LDU_FT/yougov/mongo-connector/match_replace_regex | 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 match_replace_regex 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 match_replace_regex API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Return the new mapped namespace if the src_namespace matches the
regex. | "Return the new mapped namespace if the src_namespace matches the\n regex." | 115 | false | yougov/mongo-connector | match_replace_regex | 31,103 | |
LDU_FT/MartinThoma/hwrt/_is_out_of_order | 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 _is_out_of_order API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_out_of_order API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Check if a given segmentation is out of order.
Examples
--------
>>> _is_out_of_order([[0, 1, 2, 3]])
False
>>> _is_out_of_order([[0, 1], [2, 3]])
False
>>> _is_out_of_order([[0, 1, 3], [2]])
True | "Check if a given segmentation is out of order.\n\n Examples\n --------\n >>> _is_out_of_order([[0, 1, 2, 3]])\n False\n >>> _is_out_of_order([[0, 1], [2, 3]])\n False\n >>> _is_out_of_order([[0, 1, 3], [2]])\n True" | 558 | false | MartinThoma/hwrt | _is_out_of_order | 31,104 | |
LDU_FT/pandas-dev/pandas/evaluate | LDU_FT | [
"<BEGIN>\n## `to_offset`",
"Return DateOffset object from string or tuple representation\n or datetime.timedelta object",
" Parameters\n ----------\n freq : str, tuple, datetime.timedelta, DateOffset or None",
" Returns\n -------\n DateOffset\n None if freq is None.",
" Raises... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | evaluate and return the expression of the op on a and b
Parameters
----------
op : the actual operand
op_str: the string version of the op
a : left operand
b : right operand
use_numexpr : whether to try to use numexpr (default True) | "evaluate and return the expression of the op on a and b\n\n Parameters\n ----------\n\n op : the actual operand\n op_str: the string version of the op\n a : left operand\n b : right operand\n use_numexpr : whether to try to use numexpr (default True)" | 8,110 | true | pandas-dev/pandas | evaluate | 31,105 | |
LDU_FT/istresearch/scrapy-cluster/_get_key_value | LDU_FT | [
"<BEGIN>\n## `load`",
"Load the settings dict",
" @param local: The local settings filename to use\n @param default: The default settings module to read\n @return: A dict of the loaded settings\n<END>",
"<BEGIN>\n## `load_from_string`",
"Loads settings from a settings_string. Expects an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_key_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_key_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns the proper key value for the stats
@param key: the redis key
@param is_hll: the key is a HyperLogLog, else is a sorted set | "Returns the proper key value for the stats\n\n @param key: the redis key\n @param is_hll: the key is a HyperLogLog, else is a sorted set" | 269 | false | istresearch/scrapy-cluster | _get_key_value | 31,106 | |
LDU_FT/danielhrisca/asammdf/close | LDU_FT | [
"<BEGIN>\n## `extract_cncomment_xml`",
"extract *TX* tag or otherwise the *common_properties* from a xml comment",
" Paremeters\n ----------\n comment : str\n xml string comment",
" Returns\n -------\n comment : str\n extracted string\n<END>",
"<BEGIN>\n## `matlab_compatible`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | if the MDF was created with memory='minimum' and new
channels have been appended, then this must be called just before the
object is not used anymore to clean-up the temporary file | "if the MDF was created with memory='minimum' and new\n channels have been appended, then this must be called just before the\n object is not used anymore to clean-up the temporary file" | 381 | false | danielhrisca/asammdf | close | 31,107 | |
LDU_FT/abw333/dominoes/_add_left | LDU_FT | [
"<BEGIN>\n## `_randomized_hands`",
":return: 4 hands, obtained by shuffling the 28 dominoes used in\n this variation of the game, and distributing them evenly\n<END>",
"<BEGIN>\n## `_validate_player`",
"Checks that a player is a valid player. Valid players are: 0, 1, 2, and 3.",
" :param int ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_left API.
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_left API.
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... | Adds the provided domino to the left end of the board.
:param Domino d: domino to add
:return: None
:raises EndsMismatchException: if the values do not match | "Adds the provided domino to the left end of the board.\n\n :param Domino d: domino to add\n :return: None\n :raises EndsMismatchException: if the values do not match" | 70 | false | abw333/dominoes | _add_left | 31,108 | |
LDU_FT/ucbvislab/radiotool/smooth_hanning | LDU_FT | [
"<BEGIN>\n## `analysis`",
"Get musical analysis of the song using the librosa library\n<END>",
"<BEGIN>\n## `read_frames`",
"Read ``n`` frames from the track, starting\n with the current frame",
" :param integer n: Number of frames to read\n :param integer channels: Number of channels t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smooth_hanning API.
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 smooth_hanning API.
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... | smooth a 1D array using a hanning window with requested size. | "smooth a 1D array using a hanning window with requested size." | 107 | false | ucbvislab/radiotool | smooth_hanning | 31,109 | |
LDU_FT/oasiswork/zimsoap/delete_messages | LDU_FT | [
"<BEGIN>\n## `from_dict`",
"Given a dict in python-zimbra format or XML, generate\n a Python object.\n<END>",
"<BEGIN>\n## `property`",
"Returns a property value",
" :param: default will return that value if the property is not found,\n else, will raise a KeyError.\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_messages API.
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 delete_messages API.
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... | Delete selected messages for the current user
:param ids: list of ids | "Delete selected messages for the current user\n\n :param ids: list of ids" | 242 | false | oasiswork/zimsoap | delete_messages | 31,110 | |
LDU_FT/jldbc/pybaseball/team_pitching | LDU_FT | [
"<BEGIN>\n## `process_win_streak`",
"Convert \"+++\"/\"---\" formatted win/loss streak column into a +/- integer column\n<END>",
"<BEGIN>\n## `split_request`",
"Splits Statcast queries to avoid request timeouts\n<END>",
"<BEGIN>\n## `statcast_pitcher`",
"Pulls statcast pitch-level data from Baseball Savan... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the team_pitching API.
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 team_pitching API.
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... | Get season-level pitching data aggregated by team.
ARGUMENTS:
start_season : int : first season you want data for (or the only season if you do not specify an end_season)
end_season : int : final season you want data for
league : "all", "nl", or "al"
ind : int : =1 if you want individual season l... | "Get season-level pitching data aggregated by team. \n\n ARGUMENTS:\n start_season : int : first season you want data for (or the only season if you do not specify an end_season)\n end_season : int : final season you want data for \n league : \"all\", \"nl\", or \"al\"\n ind : int : =1 if you want indivi... | 46 | false | jldbc/pybaseball | team_pitching | 31,111 | |
LDU_FT/InQuest/python-sandboxapi/_request | LDU_FT | [
"<BEGIN>\n## `_request`",
"Robustness wrapper. Tries up to 3 times to dance with the Sandbox API.",
" :type uri: str\n :param uri: URI to append to base_url.\n :type params: dict\n :param params: Optional parameters for API.\n :type files: dict\n :param f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API.
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 _request API.
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... | Override the parent _request method.
We have to do this here because FireEye requires some extra
authentication steps. | "Override the parent _request method.\n\n We have to do this here because FireEye requires some extra\n authentication steps." | 93 | false | InQuest/python-sandboxapi | _request | 31,112 | |
LDU_FT/JnyJny/Geometry/a_neg | LDU_FT | [
"<BEGIN>\n## `nearly_eq`",
"implementation based on:",
" http://floating-point-gui.de/errors/comparison/\n<END>",
"<BEGIN>\n## `_convert`",
":other: Point or point equivalent\n :ignorescalars: optional boolean\n :return: Point",
" Class private method for converting 'other' into a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the a_neg API.
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 a_neg API.
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... | Negative antipodal point on the major axis, Point class. | "Negative antipodal point on the major axis, Point class." | 184 | false | JnyJny/Geometry | a_neg | 31,113 | |
LDU_FT/aht/stream.py/shutdown | LDU_FT | [
"<BEGIN>\n## `returned`",
"Generate a random walk and return True if the walker has returned to\n\tthe origin after taking `n` steps.\n<END>",
"<BEGIN>\n## `first_return`",
"Generate a random walk and return its length upto the moment\n\tthat the walker first returns to the origin.",
"\tIt is mathematically... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shutdown API.
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 shutdown API.
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... | Shut down the Executor. Suspend all waiting jobs.
Running workers will terminate after finishing their current job items.
The call will block until all workers are terminated. | "Shut down the Executor. Suspend all waiting jobs.\n\t\t\n\t\tRunning workers will terminate after finishing their current job items.\n\t\tThe call will block until all workers are terminated." | 35 | false | aht/stream.py | shutdown | 31,114 | |
LDU_FT/OSLL/jabba/depends_on | LDU_FT | [
"<BEGIN>\n## `depends_on`",
"Analysis function",
" Get list of files that depend on given configs\n If there is 'graph=name' in analysis parameters, instead graph of includes will be rendered into name.svg\n<END>",
"<BEGIN>\n## `parse_from_args`",
"Parse an array of string from argparser\n to Synon... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the depends_on API.
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 depends_on API.
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... | Analysis function
Get list of files that depend on given configs
If there is 'graph=name' in analysis parameters, instead graph of includes will be rendered into name.svg | "Analysis function\n\n Get list of files that depend on given configs\n If there is 'graph=name' in analysis parameters, instead graph of includes will be rendered into name.svg" | 41 | false | OSLL/jabba | depends_on | 31,115 | |
LDU_FT/nyaruka/smartmin/extract_operations | LDU_FT | [
"<BEGIN>\n## `_read_requirements`",
"Parses a file for pip installation requirements.\n<END>",
"<BEGIN>\n## `get_list_class`",
"Returns the class to use for the passed in list. We just build something up\n from the object type for the list.\n<END>",
"<BEGIN>\n## `format_datetime`",
"Formats a date, co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_operations 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 extract_operations 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... | Extract SQL operations from the given migrations | "Extract SQL operations from the given migrations" | 118 | false | nyaruka/smartmin | extract_operations | 31,116 | |
LDU_FT/lepture/terminal/config | LDU_FT | [
"<BEGIN>\n## `log`",
"print a log test",
" :param verbose: show more logs\n<END>",
"<BEGIN>\n## `is_color_supported`",
"Find out if your terminal environment supports color.\n<END>",
"<BEGIN>\n## `rgb2ansi`",
"Convert an RGB color to 256 ansi graphics.\n<END>",
"<BEGIN>\n## `colorize`",
"Colorize... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Config the behavior of :class:`Logger`.
Control the output to show :class:`Logger.verbose` log::
log.config(verbose=True)
Control the output to show only the :class:`Logger.warn` and
:class:`Logger.error` log::
log.config(quiet=True) | "Config the behavior of :class:`Logger`.\n\n Control the output to show :class:`Logger.verbose` log::\n\n log.config(verbose=True)\n\n Control the output to show only the :class:`Logger.warn` and\n :class:`Logger.error` log::\n\n log.config(quiet=True)" | 71 | false | lepture/terminal | config | 31,117 | |
LDU_FT/JensAstrup/pyOutlook/get_message | LDU_FT | [
"<BEGIN>\n## `auto_reply_message`",
"The account's Internal auto reply message. Setting the value will change the auto reply message of the\n account, automatically setting the status to enabled (but not altering the schedule).\n<END>",
"<BEGIN>\n## `set_auto_reply`",
"Set an automatic reply for the a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Gets message matching provided id.
the Outlook email matching the provided message_id.
Args:
message_id: A string for the intended message, provided by Outlook
Returns:
:class:`Message <pyOutlook.core.message.Message>` | "Gets message matching provided id.\n\n the Outlook email matching the provided message_id.\n\n Args:\n message_id: A string for the intended message, provided by Outlook\n\n Returns:\n :class:`Message <pyOutlook.core.message.Message>`" | 99 | false | JensAstrup/pyOutlook | get_message | 31,118 | |
LDU_FT/mikedh/trimesh/vector_product | LDU_FT | [
"<BEGIN>\n## `face_adjacency`",
"Returns an (n,2) list of face indices.\n Each pair of faces in the list shares an edge, making them adjacent.",
" Parameters\n ----------\n faces : (n, 3) int, or None\n List of vertex indices representing triangles\n mesh : Trimesh object\n If passe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vector_product API.
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 vector_product API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return vector perpendicular to vectors.
>>> v = vector_product([2, 0, 0], [0, 3, 0])
>>> np.allclose(v, [0, 0, 6])
True
>>> v0 = [[2, 0, 0, 2], [0, 2, 0, 2], [0, 0, 2, 2]]
>>> v1 = [[3], [0], [0]]
>>> v = vector_product(v0, v1)
>>> np.allclose(v, [[0, 0, 0, 0], [0, 0, 6, 6], [0, -6, 0, -6]]... | "Return vector perpendicular to vectors.\n\n >>> v = vector_product([2, 0, 0], [0, 3, 0])\n >>> np.allclose(v, [0, 0, 6])\n True\n >>> v0 = [[2, 0, 0, 2], [0, 2, 0, 2], [0, 0, 2, 2]]\n >>> v1 = [[3], [0], [0]]\n >>> v = vector_product(v0, v1)\n >>> np.allclose(v, [[0, 0, 0, 0], [0, 0, 6, 6], [0, -6... | 2,650 | true | mikedh/trimesh | vector_product | 31,119 | |
LDU_FT/dailymuse/oz/set_cache_buster | LDU_FT | [
"<BEGIN>\n## `db`",
"Gets the SQLALchemy session for this request\n<END>",
"<BEGIN>\n## `_sqlalchemy_on_finish`",
"Closes the sqlalchemy transaction. Rolls back if an error occurred.\n<END>",
"<BEGIN>\n## `_sqlalchemy_on_connection_close`",
"Rollsback and closes the active session, since the client discon... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cache_buster API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cache_buster API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Sets the cache buster value for a given file path | "Sets the cache buster value for a given file path" | 58 | false | dailymuse/oz | set_cache_buster | 31,120 | |
LDU_FT/summa-tx/riemann/validate_bytes | LDU_FT | [
"<BEGIN>\n## `addsalt`",
"adds a salt to the hash function (OPTIONAL)\n should be called AFTER Init, and BEFORE update\n salt: a bytestring, length determined by hashbitlen.\n if not of sufficient length, the bytestring\n will be assumed to be a big endia... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_bytes API.
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 validate_bytes API.
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... | Raises ValueError if data is not bytes.
Raises ValueError if len(data) is not length.
Length may be None for unknown lengths (e.g. scripts).
length=None will allow 0 length data. | "Raises ValueError if data is not bytes.\n Raises ValueError if len(data) is not length.\n Length may be None for unknown lengths (e.g. scripts).\n length=None will allow 0 length data." | 132 | false | summa-tx/riemann | validate_bytes | 31,121 | |
LDU_FT/fedora-infra/fmn.rules/_get_users_of_group | LDU_FT | [
"<BEGIN>\n## `pagure_specific_project_filter`",
"Particular pagure projects",
" Adding this rule allows you to get notifications for one or more\n `pagure.io <https://pagure.io>`_ projects. Specify multiple\n projects by separating them with a comma ','.\n<END>",
"<BEGIN>\n## `pagure_specific_proj... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_users_of_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_users_of_group 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... | Utility to query fas for users of a group. | "Utility to query fas for users of a group." | 95 | false | fedora-infra/fmn.rules | _get_users_of_group | 31,122 | |
LDU_FT/chaimleib/intervaltree/gt | LDU_FT | [
"<BEGIN>\n## `refresh_balance`",
"Recalculate self.balance and self.depth based on child node values.\n<END>",
"<BEGIN>\n## `compute_depth`",
"Recursively computes true depth of the subtree. Should only\n be needed for debugging. Unless something is wrong, the\n depth field should reflect the co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gt API.
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 docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gt API.
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 docu... | Strictly greater than. Returns True if no part of this Interval
extends lower than or into other.
:raises ValueError: if either self or other is a null Interval
:param other: Interval or point
:return: True or False
:rtype: bool | "Strictly greater than. Returns True if no part of this Interval\n extends lower than or into other.\n :raises ValueError: if either self or other is a null Interval\n :param other: Interval or point\n :return: True or False\n :rtype: bool" | 139 | false | chaimleib/intervaltree | gt | 31,123 | |
LDU_FT/akfullfo/taskforce/_close | LDU_FT | [
"<BEGIN>\n## `_format`",
"Returns the response tuple according to the selected format.\n A format is available if the method \"_format_xxx\" is callable.\n The default format is json.\n<END>",
"<BEGIN>\n## `version`",
"Return the taskforce version.",
" Supports standard options.\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _close API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _close API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Close the descriptor used for a path regardless
of mode. | "Close the descriptor used for a path regardless\n of mode." | 290 | false | akfullfo/taskforce | _close | 31,124 | |
LDU_FT/astroswego/plotypus/pmap | LDU_FT | [
"<BEGIN>\n## `Lomb_Scargle`",
"Returns the period of *data* according to the\n `Lomb-Scargle periodogram <https://en.wikipedia.org/wiki/Least-squares_spectral_analysis#The_Lomb.E2.80.93Scargle_periodogram>`_.",
" **Parameters**",
" data : array-like, shape = [n_samples, 2] or [n_samples, 3]\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pmap API.
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 pmap API.
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... | pmap(func, args, processes=None, callback=do_nothing, **kwargs)
Parallel equivalent of ``map(func, args)``, with the additional ability of
providing keyword arguments to func, and a callback function which is
applied to each element in the returned list. Unlike map, the output is a
non-lazy list. If *p... | "pmap(func, args, processes=None, callback=do_nothing, **kwargs)\n\n Parallel equivalent of ``map(func, args)``, with the additional ability of\n providing keyword arguments to func, and a callback function which is\n applied to each element in the returned list. Unlike map, the output is a\n non-lazy list.... | 152 | false | astroswego/plotypus | pmap | 31,125 | |
LDU_FT/crackinglandia/pype32/_parseRelocsDirectory | LDU_FT | [
"<BEGIN>\n## `showSectionsHeaders`",
"Prints IMAGE_SECTION_HEADER for every section present in the file.\n<END>",
"<BEGIN>\n## `getFields`",
"Returns all the class attributues.",
" @rtype: dict\n @return: A dictionary containing all the class attributes.\n<END>",
"<BEGIN>\n## `parse`",
"Re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parseRelocsDirectory 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 _parseRelocsDirectory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Parses the relocation directory.
@type rva: int
@param rva: The RVA where the relocation directory starts.
@type size: int
@param size: The size of the relocation directory.
@type magic: int
@param magic: (Optional) The type of PE. This value c... | "Parses the relocation directory.\n \n @type rva: int \n @param rva: The RVA where the relocation directory starts.\n \n @type size: int\n @param size: The size of the relocation directory.\n \n @type magic: int\n @param magic: (Optional) The type of PE. Th... | 428 | false | crackinglandia/pype32 | _parseRelocsDirectory | 31,126 | |
LDU_FT/cbrand/vpnchooser/sync | LDU_FT | [
"<BEGIN>\n## `check`",
"Checks the given password with the one stored\n in the database\n<END>",
"<BEGIN>\n## `connect`",
"Connects the client to the server and\n returns it.\n<END>",
"<BEGIN>\n## `server_rules`",
"Reads the server rules from the client\n and returns it.\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API.
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 sync API.
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... | Synchronizes the given ruleset with the
one on the server and adds the not yet
existing rules to the server.
:type rules: collections.Iterable[Rule] | "Synchronizes the given ruleset with the\n one on the server and adds the not yet\n existing rules to the server.\n :type rules: collections.Iterable[Rule]" | 38 | false | cbrand/vpnchooser | sync | 31,127 | |
LDU_FT/crypto101/arthur/display | LDU_FT | [
"<BEGIN>\n## `_unhandledInput`",
"Handles input events that weren't handled anywhere else.\n<END>",
"<BEGIN>\n## `_runPopUp`",
"Displays the pop-up on the workbench and gets a completion\n notification deferred. When that fires, undisplay the pop-up and\n return the result of the notification deferred v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Displays the given tool above the current layer, and sets the
title to its name. | "Displays the given tool above the current layer, and sets the\n title to its name." | 40 | false | crypto101/arthur | display | 31,128 | |
LDU_FT/portantier/habu/cmd_server_ftp | LDU_FT | [
"<BEGIN>\n## `cmd_arp_poison`",
"Send ARP 'is-at' packets to each victim, poisoning their\n ARP tables for send the traffic to your system.",
" Note: If you want a full working Man In The Middle attack, you need\n to enable the packet forwarding on your operating system to act like a\n router. You c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_server_ftp API.
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 cmd_server_ftp API.
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... | Basic fake FTP server, whith the only purpose to steal user credentials.
Supports SSL/TLS.
Example:
\b
# sudo habu.server.ftp --ssl --ssl-cert /tmp/cert.pem --ssl-key /tmp/key.pem
Listening on port 21
Accepted connection from ('192.168.0.27', 56832)
Credentials collected from 192.168.0.27... | "Basic fake FTP server, whith the only purpose to steal user credentials.\n\n Supports SSL/TLS.\n\n Example:\n\n \\b\n # sudo habu.server.ftp --ssl --ssl-cert /tmp/cert.pem --ssl-key /tmp/key.pem\n Listening on port 21\n Accepted connection from ('192.168.0.27', 56832)\n Credentials collected from ... | 304 | false | portantier/habu | cmd_server_ftp | 31,129 | |
LDU_FT/carljm/django-adminfiles/_get_field | LDU_FT | [
"<BEGIN>\n## `get_uploads`",
"Return a generator yielding uploads referenced in the given text.\n<END>",
"<BEGIN>\n## `parse_match`",
"Accept an re match object resulting from an ``UPLOAD_RE`` match\n and return a two-tuple where the first element is the\n corresponding ``FileUpload`` and the second is ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 extrac... | This is here to support ``MarkupField``. It's a little ugly to
have that support baked-in; other option would be to have a
generic way (via setting?) to override how attribute values are
fetched from content model instances. | "This is here to support ``MarkupField``. It's a little ugly to\n have that support baked-in; other option would be to have a\n generic way (via setting?) to override how attribute values are\n fetched from content model instances." | 67 | false | carljm/django-adminfiles | _get_field | 31,130 | |
LDU_FT/dagwieers/vmguestlib/GetMemSharedSavedMB | LDU_FT | [
"<BEGIN>\n## `OpenHandle`",
"Gets a handle for use with other vSphere Guest API functions. The guest library\n handle provides a context for accessing information about the virtual machine.",
" Virtual machine statistics and state data are associated with a particular guest library\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetMemSharedSavedMB 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 GetMemSharedSavedMB 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... | Retrieves the estimated amount of physical memory on the host saved
from copy-on-write (COW) shared guest physical memory. | "Retrieves the estimated amount of physical memory on the host saved\n from copy-on-write (COW) shared guest physical memory." | 50 | false | dagwieers/vmguestlib | GetMemSharedSavedMB | 31,131 | |
LDU_FT/Sheeprider/BitBucket-api/get_tags | LDU_FT | [
"<BEGIN>\n## `auth`",
"Return credentials for current Bitbucket user.\n<END>",
"<BEGIN>\n## `authorize`",
"Call this with your consumer key, secret and callback URL, to\n generate a token for verification.\n<END>",
"<BEGIN>\n## `verify`",
"After converting the token into verifier, call this to fina... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tags API.
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_tags API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Get a single repository on Bitbucket and return its tags. | "Get a single repository on Bitbucket and return its tags." | 39 | false | Sheeprider/BitBucket-api | get_tags | 31,132 | |
LDU_FT/rigetti/grove/probabilities | LDU_FT | [
"<BEGIN>\n## `_prepare_c_jk_m`",
"Prepare the coefficient matrix for state tomography. This function uses sparse matrices\n for much greater efficiency.\n The coefficient matrix is defined as:",
" .. math::",
" C_{(jk)m} = \\tr{\\Pi_{s_j} \\Lambda_k(P_m)} = \\sum_{r}\\pi_{jr}(\\mathcal{R}_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the probabilities API.
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 probabilities API.
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 the probability of each state given a particular set of angles.
:param angles: A concatenated list of angles [betas]+[gammas]
:return: The probabilities of each outcome given those angles. | "Computes the probability of each state given a particular set of angles.\n\n :param angles: A concatenated list of angles [betas]+[gammas]\n :return: The probabilities of each outcome given those angles." | 428 | false | rigetti/grove | probabilities | 31,133 | |
LDU_FT/glenfant/openxmllib/openXmlDocument | LDU_FT | [
"<BEGIN>\n## `mimeType`",
"The official MIME type for this document, guessed from the extensions\n of the :py:attr:`openxmllib.document.Document.filename` attribute, as\n opposed to the :py:attr:`openxmllib.document.Document.mime_type`\n attribute.",
" :return: ``application/xxx`` fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the openXmlDocument API.
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 openXmlDocument API.
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... | **Factory function**
Will guess what document type is best suited and return the appropriate
document type.
User must provide either ``path``, ``file_``, ``data`` or ``url`` parameter.
:param path: file path in the local filesystem to a document.
:param file_: a file (like) object to a document (m... | "**Factory function**\n\n Will guess what document type is best suited and return the appropriate\n document type.\n User must provide either ``path``, ``file_``, ``data`` or ``url`` parameter.\n\n :param path: file path in the local filesystem to a document.\n :param file_: a file (like) object to a doc... | 37 | false | glenfant/openxmllib | openXmlDocument | 31,134 | |
LDU_FT/rkhleics/wagtailmodeladmin/get_ordering | LDU_FT | [
"<BEGIN>\n## `process_request`",
"Ignore unnecessary actions for static file requests, posts, or ajax\n requests. We're only interested in redirecting following a 'natural'\n request redirection to the `wagtailadmin_explore_root` or\n `wagtailadmin_explore` views.\n<END>",
"<BEGIN>\n## `get... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ordering API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ordering API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Returns the list of ordering fields for the change list.
First we check the get_ordering() method in model admin, then we check
the object's default ordering. Then, any manually-specified ordering
from the query string overrides anything. Finally, a deterministic
order is guaranteed by e... | "Returns the list of ordering fields for the change list.\n First we check the get_ordering() method in model admin, then we check\n the object's default ordering. Then, any manually-specified ordering\n from the query string overrides anything. Finally, a deterministic\n order is guaranteed... | 52 | false | rkhleics/wagtailmodeladmin | get_ordering | 31,135 | |
LDU_FT/BetterWorks/django-anonymizer/small_integer | LDU_FT | [
"<BEGIN>\n## `varchar`",
"Returns a chunk of text, of maximum length 'max_length'\n<END>",
"<BEGIN>\n## `simple_pattern`",
"Use a simple pattern to make the field - # is replaced with a random number,\n ? with a random letter.\n<END>",
"<BEGIN>\n## `datetime`",
"Returns a random datetime. If 'val' ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the small_integer API.
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 small_integer API.
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 a random small integer (for a Django SmallIntegerField) | "Returns a random small integer (for a Django SmallIntegerField)" | 57 | false | BetterWorks/django-anonymizer | small_integer | 31,136 | |
LDU_FT/roanuz/py-cricket/get_active_token | LDU_FT | [
"<BEGIN>\n## `set_value`",
"Set key value to the file.",
" The fuction will be make the key and value to dictinary formate.\n If its exist then it will update the current new key value to\n the file.\n Arg:\n key : cache key\n value : cache value\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_active_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_active_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Getting the valid access token.
Access token expires every 24 hours, It will expires then it will
generate a new token.
Return:
active access token | "Getting the valid access token.\n\n Access token expires every 24 hours, It will expires then it will\n generate a new token.\n Return:\n active access token" | 72 | false | roanuz/py-cricket | get_active_token | 31,137 | |
LDU_FT/jayferg/faderport/blink | LDU_FT | [
"<BEGIN>\n## `find_faderport_input_name`",
"Find the MIDI input name for a connected FaderPort.",
" NOTE! Untested for more than one FaderPort attached.\n :param number: 0 unless you've got more than one FaderPort attached.\n In which case 0 is the first, 1 is the second etc\n :return... | 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... | Blink all the lights on and off at once.
NOTE! Does not remember prior state of lights and will finish
with all lights off.
:param interval: The length in seconds of an ON/OFF cycle
:param n: How many times to cycle ON and OFF
:return: | "Blink all the lights on and off at once.\n NOTE! Does not remember prior state of lights and will finish\n with all lights off.\n :param interval: The length in seconds of an ON/OFF cycle\n :param n: How many times to cycle ON and OFF\n :return:" | 25 | false | jayferg/faderport | blink | 31,138 | |
LDU_FT/honzajavorek/redis-collections/distance_between | LDU_FT | [
"<BEGIN>\n## `getmany`",
"Return a list of values corresponding to the keys in the iterable of\n *keys*.\n If a key is not present in the collection, its corresponding value will\n be :obj:`None`.",
" .. note::\n This method is not implemented by standard Python dictionary... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distance_between API.
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 distance_between API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Return the great-circle distance between *place_1* and *place_2*,
in the *unit* specified.
The default unit is ``'km'``, but ``'m'``, ``'mi'``, and ``'ft'`` can
also be specified. | "Return the great-circle distance between *place_1* and *place_2*,\n in the *unit* specified.\n\n The default unit is ``'km'``, but ``'m'``, ``'mi'``, and ``'ft'`` can\n also be specified." | 147 | false | honzajavorek/redis-collections | distance_between | 31,139 | |
LDU_FT/camsci/meteor-pi/first_from_generator | LDU_FT | [
"<BEGIN>\n## `connect`",
"Connect to a host on a given port.\n If the hostname ends with a colon (`:') followed by a number, and\n there is no port specified, that suffix will be stripped off and the\n number interpreted as the port number to use.\n<END>",
"<BEGIN>\n## `waiting`",
"Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the first_from_generator 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 first_from_generator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Pull the first value from a generator and return it, closing the generator
:param generator:
A generator, this will be mapped onto a list and the first item extracted.
:return:
None if there are no items, or the first item otherwise.
:internal: | "Pull the first value from a generator and return it, closing the generator\n\n :param generator:\n A generator, this will be mapped onto a list and the first item extracted.\n :return:\n None if there are no items, or the first item otherwise.\n :internal:" | 210 | false | camsci/meteor-pi | first_from_generator | 31,140 | |
LDU_FT/rocky/python-filecache/remove_remap_file | LDU_FT | [
"<BEGIN>\n## `pyc2py`",
"Find corresponding .py name given a .pyc or .pyo\n<END>",
"<BEGIN>\n## `clear_file_cache`",
"Clear the file cache. If no filename is given clear it entirely.\n if a filename is given, clear just that filename.\n<END>",
"<BEGIN>\n## `clear_file_format_cache`",
"Remove syntax-for... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_remap_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_remap_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... | Remove any mapping for *filename* and return that if it exists | "Remove any mapping for *filename* and return that if it exists" | 32 | false | rocky/python-filecache | remove_remap_file | 31,141 | |
LDU_FT/riga/law/delegate_voms_proxy_glite | LDU_FT | [
"<BEGIN>\n## `full_parser`",
"Returns the full *ArgumentParser* used by the luigi ``CmdlineParser``. The returned instance is\n cached.\n<END>",
"<BEGIN>\n## `root_task_parser`",
"Returns a new *ArgumentParser* instance that only contains paremeter actions of the root task.\n The returned instance is ca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delegate_voms_proxy_glite API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delegate_voms_proxy_glite API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Delegates the voms proxy via gLite to an *endpoint*, e.g.
``grid-ce.physik.rwth-aachen.de:8443``. *stdout* and *stderr* are passed to the *Popen*
constructor for executing the ``glite-ce-delegate-proxy`` command. When *cache* is *True*, a
json file is created alongside the proxy file, which stores the deleg... | "Delegates the voms proxy via gLite to an *endpoint*, e.g.\n ``grid-ce.physik.rwth-aachen.de:8443``. *stdout* and *stderr* are passed to the *Popen*\n constructor for executing the ``glite-ce-delegate-proxy`` command. When *cache* is *True*, a\n json file is created alongside the proxy file, which stores the d... | 279 | false | riga/law | delegate_voms_proxy_glite | 31,142 | |
LDU_FT/c-w/gutenberg/get_etexts | LDU_FT | [
"<BEGIN>\n## `_etextno_to_uri_subdirectory`",
"Returns the subdirectory that an etextno will be found in a gutenberg\n mirror. Generally, one finds the subdirectory by separating out each digit\n of the etext number, and uses it for a directory. The exception here is for\n etext numbers less than 10, whi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_etexts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_etexts API.
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... | Looks up all the texts that have meta-data matching some criterion.
Arguments:
feature_name (str): The meta-data on which to select the texts.
value (str): The value of the meta-data on which to filter the texts.
Returns:
frozenset: The set of all the Project Gutenberg text identifiers... | "Looks up all the texts that have meta-data matching some criterion.\n\n Arguments:\n feature_name (str): The meta-data on which to select the texts.\n value (str): The value of the meta-data on which to filter the texts.\n\n Returns:\n frozenset: The set of all the Project Gutenberg text ide... | 70 | false | c-w/gutenberg | get_etexts | 31,143 | |
LDU_FT/btel/svg_utils/to | LDU_FT | [
"<BEGIN>\n## `fromfile`",
"Open SVG figure from file.",
" Parameters\n ----------\n fname : str\n name of the SVG file",
" Returns\n -------\n SVGFigure\n newly created :py:class:`SVGFigure` initialised with the file content\n<END>",
"<BEGIN>\n## `fromstring`",
"Create a SV... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to API.
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 docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to API.
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 docu... | Convert to a given unit.
Parameters
----------
unit : str
Name of the unit to convert to.
Returns
-------
u : Unit
new Unit object with the requested unit and computed value. | "Convert to a given unit.\n\n Parameters\n ----------\n unit : str\n Name of the unit to convert to.\n\n Returns\n -------\n u : Unit\n new Unit object with the requested unit and computed value." | 63 | false | btel/svg_utils | to | 31,144 | |
LDU_FT/TracyWebTech/django-revproxy/get_encoded_query_params | LDU_FT | [
"<BEGIN>\n## `should_stream`",
"Function to verify if the proxy_response must be converted into\n a stream.This will be done by checking the proxy_response content-length\n and verify if its length is bigger than one stipulated\n by MIN_STREAMING_LENGTH.",
" :param proxy_response: An Instance of url... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_encoded_query_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_encoded_query_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Return encoded query params to be used in proxied request | "Return encoded query params to be used in proxied request" | 41 | false | TracyWebTech/django-revproxy | get_encoded_query_params | 31,145 | |
LDU_FT/Robpol86/flake8-pydocstyle/parse_options | LDU_FT | [
"<BEGIN>\n## `load_file`",
"Read file to memory.",
" For stdin sourced files, this function does something super duper incredibly hacky and shameful. So so shameful. I'm\n obtaining the original source code of the target module from the only instance of pycodestyle.Checker through the\n Python garbage ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_options API.
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... | Read parsed options from flake8.
:param options: Options to add to flake8's command line options. | "Read parsed options from flake8.\n\n :param options: Options to add to flake8's command line options." | 20 | false | Robpol86/flake8-pydocstyle | parse_options | 31,146 | |
LDU_FT/frawau/aiolifx/datagram_received | LDU_FT | [
"<BEGIN>\n## `mac_to_ipv6_linklocal`",
"Translate a MAC address into an IPv6 address in the prefixed network.",
" This function calculates the EUI (Extended Unique Identifier) from the given\n MAC address and prepend the needed prefix to come up with a valid IPv6 address.\n The default prefix is the li... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datagram_received API.
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 datagram_received API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Method run when data is received from the devices
This method will unpack the data according to the LIFX protocol.
If a new device is found, the Light device will be created and started aa
a DatagramProtocol and will be registered with the parent.
:param data: raw data
... | "Method run when data is received from the devices\n\n This method will unpack the data according to the LIFX protocol.\n If a new device is found, the Light device will be created and started aa\n a DatagramProtocol and will be registered with the parent.\n\n :param data: raw data\n ... | 134 | false | frawau/aiolifx | datagram_received | 31,147 | |
LDU_FT/aloetesting/aloe_django/_create_models_for_relation_step | LDU_FT | [
"<BEGIN>\n## `run_from_argv`",
"Set the default Gherkin test runner for its options to be parsed.\n<END>",
"<BEGIN>\n## `django_url`",
"The URL for a page from the test server.",
" :param step: A Gherkin step\n :param url: If specified, the relative URL to append.\n<END>",
"<BEGIN>\n## `_models_gene... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_models_for_relation_step API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_models_for_relation_step API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | Create a new model linked to the given model.
Syntax:
And `model` with `field` "`value`" has `new model` in the database:
Example:
.. code-block:: gherkin
And project with name "Ball Project" has goals in the database:
| description |
... | "Create a new model linked to the given model.\n\n Syntax:\n\n And `model` with `field` \"`value`\" has `new model` in the database:\n\n Example:\n\n .. code-block:: gherkin\n\n And project with name \"Ball Project\" has goals in the database:\n | description ... | 58 | false | aloetesting/aloe_django | _create_models_for_relation_step | 31,148 | |
LDU_FT/Chilipp/docrep/safe_modulo | LDU_FT | [
"<BEGIN>\n## `safe_modulo`",
"Safe version of the modulo operation (%) of strings",
" Parameters\n ----------\n s: str\n string to apply the modulo operation with\n meta: dict or tuple\n meta informations to insert (usually via ``s % meta``)\n checked: {'KEY', 'VALUE'}, optional\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_modulo API.
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 safe_modulo API.
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... | Safe version of the modulo operation (%) of strings
Parameters
----------
s: str
string to apply the modulo operation with
meta: dict or tuple
meta informations to insert (usually via ``s % meta``)
checked: {'KEY', 'VALUE'}, optional
Security parameter for the recursive stru... | "Safe version of the modulo operation (%) of strings\n\n Parameters\n ----------\n s: str\n string to apply the modulo operation with\n meta: dict or tuple\n meta informations to insert (usually via ``s % meta``)\n checked: {'KEY', 'VALUE'}, optional\n Security parameter for the recu... | 136 | false | Chilipp/docrep | safe_modulo | 31,149 | |
LDU_FT/72squared/redpipe/delete | LDU_FT | [
"<BEGIN>\n## `connect_redis`",
"Connect your redis-py instance to redpipe.",
" Example:",
" .. code:: python",
" redpipe.connect_redis(redis.StrictRedis(), name='users')",
" Do this during your application bootstrapping.",
" You can also pass a redis-py-cluster instance to this method... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Remove the key from redis
:param names: tuple of strings - The keys to remove from redis.
:return: Future() | "Remove the key from redis\n\n :param names: tuple of strings - The keys to remove from redis.\n :return: Future()" | 376 | false | 72squared/redpipe | delete | 31,150 | |
LDU_FT/sryza/spark-timeseries/fit_model | LDU_FT | [
"<BEGIN>\n## `fit_model`",
"Fits an EWMA model to a time series. Uses the first point in the time series as a starting\n value. Uses sum squared error as an objective function to optimize to find smoothing parameter\n The model for EWMA is recursively defined as S_t = (1 - a) * X_t + a * S_{t-1}, where\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_model API.
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 fit_model API.
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... | Fits an AR(1) + GARCH(1, 1) model to the given time series.
Parameters
----------
ts:
the time series to which we want to fit a AR+GARCH model as a Numpy array
Returns an ARGARCH model | "Fits an AR(1) + GARCH(1, 1) model to the given time series.\n \n Parameters\n ----------\n ts:\n the time series to which we want to fit a AR+GARCH model as a Numpy array\n \n Returns an ARGARCH model" | 137 | false | sryza/spark-timeseries | fit_model | 31,151 | |
LDU_FT/log2timeline/dfdatetime/_GetNormalizedTimestamp | LDU_FT | [
"<BEGIN>\n## `_GetNormalizedTimestamp`",
"Retrieves the normalized timestamp.",
" Returns:\n decimal.Decimal: normalized timestamp, which contains the number of\n seconds since January 1, 1970 00:00:00 and a fraction of second used\n for increased precision, or None if the normalized t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _GetNormalizedTimestamp 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 _GetNormalizedTimestamp API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Retrieves the normalized timestamp.
Returns:
decimal.Decimal: normalized timestamp, which contains the number of
seconds since January 1, 1970 00:00:00 and a fraction of second used
for increased precision, or None if the normalized timestamp cannot be
determined. | "Retrieves the normalized timestamp.\n\n Returns:\n decimal.Decimal: normalized timestamp, which contains the number of\n seconds since January 1, 1970 00:00:00 and a fraction of second used\n for increased precision, or None if the normalized timestamp cannot be\n determined." | 244 | false | log2timeline/dfdatetime | _GetNormalizedTimestamp | 31,152 | |
LDU_FT/aloetesting/aloe_webdriver/should_see_link_text | LDU_FT | [
"<BEGIN>\n## `string_literal`",
"Choose a string literal that can wrap our string.",
" If your string contains a ``\\'`` the result will be wrapped in ``\\\"``.\n If your string contains a ``\\\"`` the result will be wrapped in ``\\'``.",
" Cannot currently handle strings which contain both ``\\\"`` ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the should_see_link_text 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 should_see_link_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Assert a link with the provided text points to the provided URL. | "Assert a link with the provided text points to the provided URL." | 158 | false | aloetesting/aloe_webdriver | should_see_link_text | 31,153 | |
LDU_FT/tkem/cachetools/popitem | LDU_FT | [
"<BEGIN>\n## `popitem`",
"Remove and return the `(key, value)` pair least recently used.\n<END>",
"<BEGIN>\n## `lfu_cache`",
"Decorator to wrap a function with a memoizing callable that saves\n up to `maxsize` results based on a Least Frequently Used (LFU)\n algorithm.\n<END>",
"<BEGIN>\n## `lru_cache... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the popitem API.
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 popitem API.
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... | Remove and return the `(key, value)` pair least recently used. | "Remove and return the `(key, value)` pair least recently used." | 24 | false | tkem/cachetools | popitem | 31,154 | |
LDU_FT/KarchinLab/probabilistic2020/handle_tsg_results | LDU_FT | [
"<BEGIN>\n## `compute_indel_length`",
"Computes the indel length accounting for wether it is an insertion or\n deletion.",
" Parameters\n ----------\n fs_df : pd.DataFrame\n mutation input as dataframe only containing indel mutations",
" Returns\n -------\n indel_len : pd.Series\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_tsg_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_tsg_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.
Th... | Handles result from TSG results.
Takes in output from multiprocess_permutation function and converts to
a better formatted dataframe.
Parameters
----------
permutation_result : list
output from multiprocess_permutation
Returns
-------
permutation_df : pd.DataFrame
form... | "Handles result from TSG results.\n\n Takes in output from multiprocess_permutation function and converts to\n a better formatted dataframe.\n\n Parameters\n ----------\n permutation_result : list\n output from multiprocess_permutation\n\n Returns\n -------\n permutation_df : pd.DataFrame... | 281 | false | KarchinLab/probabilistic2020 | handle_tsg_results | 31,155 | |
LDU_FT/jmoiron/johnny-cache/celery_enable_all | LDU_FT | [
"<BEGIN>\n## `disallowed_table`",
"Returns True if a set of tables is in the blacklist or, if a whitelist is set,\n any of the tables is not in the whitelist. False otherwise.\n<END>",
"<BEGIN>\n## `invalidate`",
"Invalidate the current generation for one or more tables. The arguments\n can be either s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the celery_enable_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the celery_enable_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... | Enable johnny-cache in all celery tasks, clearing the local-store
after each task. | "Enable johnny-cache in all celery tasks, clearing the local-store\n after each task." | 38 | false | jmoiron/johnny-cache | celery_enable_all | 31,156 | |
LDU_FT/noirbizarre/minibench/run | LDU_FT | [
"<BEGIN>\n## `load_module`",
"Load a module into name given its filename\n<END>",
"<BEGIN>\n## `humanize`",
"Transform code conventions to human readable strings\n<END>",
"<BEGIN>\n## `end`",
"Dump the report into the output file.",
" If the file directory does not exists, it will be created.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Collect all tests to run and run them.
Each method will be run :attr:`Benchmark.times`. | "Collect all tests to run and run them.\n\n Each method will be run :attr:`Benchmark.times`." | 17 | false | noirbizarre/minibench | run | 31,157 | |
LDU_FT/rosenbrockc/fortpy/_ctypes_ex_assign | LDU_FT | [
"<BEGIN>\n## `setup_regex`",
"Sets up the patterns and compiled regex objects for parsing types.\n<END>",
"<BEGIN>\n## `parse_signature`",
"Parses the specified line as a new version of the signature for 'element'.",
" :arg statement: the string that has the new signature.\n :arg element: the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ctypes_ex_assign API.
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 _ctypes_ex_assign API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Return a list of code lines to allocate and assign the local parameter definitions
that match those in the signature of the wrapped executable. | "Return a list of code lines to allocate and assign the local parameter definitions\n that match those in the signature of the wrapped executable." | 929 | false | rosenbrockc/fortpy | _ctypes_ex_assign | 31,158 | |
LDU_FT/nteract/papermill/papermill | LDU_FT | [
"<BEGIN>\n## `papermill`",
"This utility executes a single notebook on a container.",
" Papermill takes a source notebook, applies parameters to the source\n notebook, executes the notebook with the specified kernel, and saves the\n output in the destination notebook.\n<END>",
"<BEGIN>\n## `catch_nb_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the papermill API.
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 papermill API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | This utility executes a single notebook on a container.
Papermill takes a source notebook, applies parameters to the source
notebook, executes the notebook with the specified kernel, and saves the
output in the destination notebook. | "This utility executes a single notebook on a container.\n\n Papermill takes a source notebook, applies parameters to the source\n notebook, executes the notebook with the specified kernel, and saves the\n output in the destination notebook." | 99 | false | nteract/papermill | papermill | 31,159 | |
LDU_FT/g2p/bedup/fopenat | LDU_FT | [
"<BEGIN>\n## `find_inodes_in_use`",
"Find which of these inodes are in use, and give their open modes.",
" Does not count the passed fds as an use of the inode they point to,\n but if the current process has the same inodes open with different\n file descriptors these will be listed.",
" Looks at ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fopenat API.
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 fopenat API.
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... | Does openat read-only, then does fdopen to get a file object | "Does openat read-only, then does fdopen to get a file object" | 16 | false | g2p/bedup | fopenat | 31,160 | |
LDU_FT/matllubos/django-is-core/save_form | LDU_FT | [
"<BEGIN>\n## `short_description`",
"Sets 'short_description' attribute (this attribute is in exports to generate header name).\n<END>",
"<BEGIN>\n## `redirect_to_login`",
"Redirects the user to the login page, passing the given 'next' page\n<END>",
"<BEGIN>\n## `_check_permission`",
"If customer is not au... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_form API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_form API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Contains formset save, prepare obj for saving | "Contains formset save, prepare obj for saving" | 66 | false | matllubos/django-is-core | save_form | 31,161 | |
LDU_FT/tehmaze/natural/size | LDU_FT | [
"<BEGIN>\n## `ordinal`",
"Converts a number to its ordinal representation.",
" :param value: number",
" >>> print(ordinal(1))\n 1st\n >>> print(ordinal(11))\n 11th\n >>> print(ordinal(101))\n 101st\n >>> print(ordinal(104))\n 104th\n >>> print(ordinal(113))\n 113th\n >>> pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Retrieve the size of a file.
:param filename: name of the file
>>> size('/etc/mime.types') # doctest: +SKIP
23.70 kB | "Retrieve the size of a file.\n\n :param filename: name of the file\n\n >>> size('/etc/mime.types') # doctest: +SKIP\n 23.70 kB" | 153 | false | tehmaze/natural | size | 31,162 | |
LDU_FT/bintoro/overloading.py/derive_configuration | LDU_FT | [
"<BEGIN>\n## `overload`",
"May be used as a shortcut for ``overloaded`` and ``overloads(f)``\n when the overloaded function `f` can be automatically identified.\n<END>",
"<BEGIN>\n## `overloaded`",
"Introduces a new overloaded function and registers its first implementation.\n<END>",
"<BEGIN>\n## `regist... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the derive_configuration API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the derive_configuration API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Collect the nearest type variables and effective parameters from the type,
its bases, and their origins as necessary. | "Collect the nearest type variables and effective parameters from the type,\n its bases, and their origins as necessary." | 29 | false | bintoro/overloading.py | derive_configuration | 31,163 | |
LDU_FT/blockchain/api-v1-client-python/get_tx | LDU_FT | [
"<BEGIN>\n## `get_ticker`",
"Call the 'ticker' method and return a dictionary\n of :class:`Currency` objects.",
" :param str api_code: Blockchain.info API code (optional)\n :return: a dictionary in the format of ccy_symbol(str):currency(:class:`Currency`)\n<END>",
"<BEGIN>\n## `to_btc`",
"Call the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tx API.
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_tx API.
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 single transaction based on a transaction hash.
:param str tx_id: transaction hash to look up
:param str api_code: Blockchain.info API code (optional)
:return: an instance of :class:`Transaction` class | "Get a single transaction based on a transaction hash.\n\n :param str tx_id: transaction hash to look up\n :param str api_code: Blockchain.info API code (optional)\n :return: an instance of :class:`Transaction` class" | 78 | false | blockchain/api-v1-client-python | get_tx | 31,164 | |
LDU_FT/ahmontero/dop/show_ssh_key | LDU_FT | [
"<BEGIN>\n## `droplets`",
"This method returns the list of droplets\n<END>",
"<BEGIN>\n## `reboot_droplet`",
"This method allows you to reboot a droplet. This is the preferred method\n to use if a server is not responding.\n<END>",
"<BEGIN>\n## `power_cycle_droplet`",
"This method allows you to pow... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_ssh_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_ssh_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | This method shows a specific public SSH key in your account that can be
added to a droplet. | "This method shows a specific public SSH key in your account that can be\n added to a droplet." | 102 | false | ahmontero/dop | show_ssh_key | 31,165 | |
LDU_FT/makyo/prose-wc/prose_wc | LDU_FT | [
"<BEGIN>\n## `setup`",
"Sets up the ArgumentParser.",
" Args:\n argv: an array of arguments\n<END>",
"<BEGIN>\n## `prose_wc`",
"Processes data provided to print a count object, or update a file.",
" Args:\n args: an ArgumentParser object returned by setup()\n<END>",
"<BEGIN>\n## `mar... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prose_wc API.
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 prose_wc API.
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... | Processes data provided to print a count object, or update a file.
Args:
args: an ArgumentParser object returned by setup() | "Processes data provided to print a count object, or update a file.\n\n Args:\n args: an ArgumentParser object returned by setup()" | 18 | false | makyo/prose-wc | prose_wc | 31,166 | |
LDU_FT/openSUSE/py2pack/_get_template_dirs | LDU_FT | [
"<BEGIN>\n## `_get_template_dirs`",
"existing directories where to search for jinja2 templates. The order\n is important. The first found template from the first found dir wins!\n<END>",
"<BEGIN>\n## `_license_from_classifiers`",
"try to get a license from the classifiers\n<END>",
"<BEGIN>\n## `_requirem... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_template_dirs 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_template_dirs 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... | existing directories where to search for jinja2 templates. The order
is important. The first found template from the first found dir wins! | "existing directories where to search for jinja2 templates. The order\n is important. The first found template from the first found dir wins!" | 21 | false | openSUSE/py2pack | _get_template_dirs | 31,167 | |
LDU_FT/aloetesting/aloe_django/django_url | LDU_FT | [
"<BEGIN>\n## `run_from_argv`",
"Set the default Gherkin test runner for its options to be parsed.\n<END>",
"<BEGIN>\n## `django_url`",
"The URL for a page from the test server.",
" :param step: A Gherkin step\n :param url: If specified, the relative URL to append.\n<END>",
"<BEGIN>\n## `_models_gene... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the django_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the django_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | The URL for a page from the test server.
:param step: A Gherkin step
:param url: If specified, the relative URL to append. | "The URL for a page from the test server.\n\n :param step: A Gherkin step\n :param url: If specified, the relative URL to append." | 58 | false | aloetesting/aloe_django | django_url | 31,168 | |
LDU_FT/qwilka/vn-tree/set_data | LDU_FT | [
"<BEGIN>\n## `add_child`",
"Add a child node to the current node instance.",
" :param node: the child node instance.\n :type node: Node\n :returns: The new child node instance. \n :rtype: Node\n<END>",
"<BEGIN>\n## `remove_child`",
"Remove a child node from the current node ins... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Set a value in the instance `data` dict.
:param keys: the `data` dict keys referencing the value in the `data` dict.
:type keys: str
:param value: the value to be set in the `data` dict. Note that
`value` is a keyword-only argument.
:returns: `True` if successful. | "Set a value in the instance `data` dict.\n\n :param keys: the `data` dict keys referencing the value in the `data` dict.\n :type keys: str \n :param value: the value to be set in the `data` dict. Note that\n `value` is a keyword-only argument.\n :returns: `True` if successful." | 59 | false | qwilka/vn-tree | set_data | 31,169 | |
LDU_FT/Morrolan/surrealism/__replace_nouns | LDU_FT | [
"<BEGIN>\n## `show_faults`",
"Return all valid/active faults ordered by ID to allow the user to pick and choose.",
" :return: List of Tuples where the Tuple elements are: (fault id, fault template)\n<END>",
"<BEGIN>\n## `show_sentences`",
"Return all valid/active sentences ordered by ID to allow the us... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __replace_nouns API.
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 __replace_nouns API.
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... | Lets find and replace all instances of #NOUN
:param _sentence:
:param counts: | "Lets find and replace all instances of #NOUN\n :param _sentence:\n :param counts:" | 48 | false | Morrolan/surrealism | __replace_nouns | 31,170 | |
LDU_FT/splunk/splunk-sdk-python/write_xml_document | LDU_FT | [
"<BEGIN>\n## `dispatch`",
"Instantiates and executes a search command class",
" This function implements a `conditional script stanza <https://docs.python.org/2/library/__main__.html>`_ based on the value of\n :code:`module_name`::",
" if module_name is None or module_name == '__main__':\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_xml_document 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 write_xml_document 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... | Writes a string representation of an
``ElementTree`` object to the output stream.
:param document: An ``ElementTree`` object. | "Writes a string representation of an\n ``ElementTree`` object to the output stream.\n\n :param document: An ``ElementTree`` object." | 747 | false | splunk/splunk-sdk-python | write_xml_document | 31,171 | |
LDU_FT/predicador37/pyjstat/get_value_index | LDU_FT | [
"<BEGIN>\n## `check_version_2`",
"Checks if json-stat version attribute exists and is equal or greater \\\n than 2.0 for a given dataset.",
" Args:\n dataset (OrderedDict): data in JSON-stat format, previously \\\n deserialized to a python object by \\\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value_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 get_value_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... | Converts a list of dimensions’ indices into a numeric value index.
Args:
indices(list): list of dimension's indices.
Returns:
num(int): numeric value index. | "Converts a list of dimensions’ indices into a numeric value index.\n\n Args:\n indices(list): list of dimension's indices.\n\n Returns:\n num(int): numeric value index." | 81 | false | predicador37/pyjstat | get_value_index | 31,172 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.