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/tableau/document-api-python/username | LDU_FT | [
"<BEGIN>\n## `xml_open`",
"Opens the provided 'filename'. Handles detecting if the file is an archive,\n detecting the document version, and validating the root tag.\n<END>",
"<BEGIN>\n## `find_file_in_zip`",
"Returns the twb/tds file from a Tableau packaged file format. Packaged\n files can contain cac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the username API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the username API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Set the connection's username property.
Args:
value: New username value. String.
Returns:
Nothing. | "Set the connection's username property.\n\n Args:\n value: New username value. String.\n\n Returns:\n Nothing." | 55 | false | tableau/document-api-python | username | 11,573 | |
LDU_FT/fooelisa/pyiosxr/_execute_show | LDU_FT | [
"<BEGIN>\n## `make_rpc_call`",
"Allow a user to query a device directly using XML-requests.",
" :param rpc_command: (str) rpc command such as:\n <Get><Operational><LLDP><NodeTable></NodeTable></LLDP></Operational></Get>\n<END>",
"<BEGIN>\n## `open`",
"Open a connectio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute_show API.
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 _execute_show API.
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... | Executes an operational show-type command. | "Executes an operational show-type command." | 38 | false | fooelisa/pyiosxr | _execute_show | 11,574 | |
LDU_FT/dsandersAzure/python_digits/word | LDU_FT | [
"<BEGIN>\n## `word`",
"Property of the DigitWord returning (or setting) the DigitWord as a list of integers (or\n string representations) of DigitModel. The property is called during instantiation as the\n property validates the value passed and ensures that all digits are valid.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the word API.
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 word API.
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... | Property of the DigitWord returning (or setting) the DigitWord as a list of integers (or
string representations) of DigitModel. The property is called during instantiation as the
property validates the value passed and ensures that all digits are valid. The values can
be passed as ANY iterable | "Property of the DigitWord returning (or setting) the DigitWord as a list of integers (or\n string representations) of DigitModel. The property is called during instantiation as the\n property validates the value passed and ensures that all digits are valid. The values can\n be passed as ANY iterab... | 10 | false | dsandersAzure/python_digits | word | 11,575 | |
LDU_FT/aaugustin/websockets/read_request | LDU_FT | [
"<BEGIN>\n## `ensure_open`",
"Check that the WebSocket connection is open.",
" Raise :exc:`~websockets.exceptions.ConnectionClosed` if it isn't.\n<END>",
"<BEGIN>\n## `transfer_data`",
"Read incoming messages and put them in a queue.",
" This coroutine runs in a task until the closing handsh... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 extr... | Read an HTTP/1.1 GET request from ``stream``.
``stream`` is an :class:`~asyncio.StreamReader`.
Return ``(path, headers)`` where ``path`` is a :class:`str` and
``headers`` is a :class:`Headers` instance.
``path`` isn't URL-decoded or validated in any way.
Non-ASCII characters are represented with... | "Read an HTTP/1.1 GET request from ``stream``.\n\n ``stream`` is an :class:`~asyncio.StreamReader`.\n\n Return ``(path, headers)`` where ``path`` is a :class:`str` and\n ``headers`` is a :class:`Headers` instance.\n\n ``path`` isn't URL-decoded or validated in any way.\n\n Non-ASCII characters are repres... | 346 | false | aaugustin/websockets | read_request | 11,576 | |
LDU_FT/lazygunner/xunleipy/extractTwos | LDU_FT | [
"<BEGIN>\n## `euclid`",
"returns the Greatest Common Divisor of a and b\n<END>",
"<BEGIN>\n## `coPrime`",
"returns 'True' if the values in the list L are all co-prime\n otherwise, it returns 'False'.\n<END>",
"<BEGIN>\n## `extendedEuclid`",
"return a tuple of three values: x, y and z, such that x is... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extractTwos API.
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 extractTwos API.
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... | m is a positive integer. A tuple (s, d) of integers is returned
such that m = (2 ** s) * d. | "m is a positive integer. A tuple (s, d) of integers is returned\n such that m = (2 ** s) * d." | 33 | false | lazygunner/xunleipy | extractTwos | 11,577 | |
LDU_FT/Nukesor/pueue/clean | LDU_FT | [
"<BEGIN>\n## `clean`",
"Clean queue items from a previous session.",
" In case a previous session crashed and there are still some running\n entries in the queue ('running', 'stopping', 'killing'), we clean those\n and enqueue them again.\n<END>",
"<BEGIN>\n## `clear`",
"Remove all comp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API.
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 clean API.
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... | Clean queue items from a previous session.
In case a previous session crashed and there are still some running
entries in the queue ('running', 'stopping', 'killing'), we clean those
and enqueue them again. | "Clean queue items from a previous session.\n\n In case a previous session crashed and there are still some running\n entries in the queue ('running', 'stopping', 'killing'), we clean those\n and enqueue them again." | 104 | false | Nukesor/pueue | clean | 11,578 | |
LDU_FT/proycon/clam/valuefrompostdata | LDU_FT | [
"<BEGIN>\n## `convertforinput`",
"Convert from target format into one of the source formats. Relevant if converters are used in InputTemplates. Metadata already is metadata for the to-be-generated file. 'filepath' is both the source and the target file, the source file will be erased and overwritten with the conv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valuefrompostdata API.
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 valuefrompostdata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | This parameter method searches the POST data and retrieves the values it needs. It does not set the value yet though, but simply returns it. Needs to be explicitly passed to parameter.set(). It typically returns the default None when something is left unset (but that default can be overridden) | "This parameter method searches the POST data and retrieves the values it needs. It does not set the value yet though, but simply returns it. Needs to be explicitly passed to parameter.set(). It typically returns the default None when something is left unset (but that default can be overridden)" | 194 | false | proycon/clam | valuefrompostdata | 11,579 | |
LDU_FT/pip-services3-python/pip-services3-commons-python/to_nullable_array | LDU_FT | [
"<BEGIN>\n## `equals_as`",
"Compares this object value to specified specified value.\n When direct comparison gives negative results it converts\n values to type specified by type code and compare them again.",
" :param value_type: the Typecode type that defined the type of the result",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_nullable_array API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_nullable_array API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Converts value into array object.
Single values are converted into arrays with a single element.
:param value: the value to convert.
:return: array object or None when value is None. | "Converts value into array object.\n Single values are converted into arrays with a single element.\n\n :param value: the value to convert.\n\n :return: array object or None when value is None." | 811 | false | pip-services3-python/pip-services3-commons-python | to_nullable_array | 11,580 | |
LDU_FT/xoolive/traffic/xy_time | LDU_FT | [
"<BEGIN>\n## `closest_point_of_approach`",
"Computes a CPA dataframe for all pairs of trajectories candidates for\n being separated by less than lateral_separation in vertical_separation.",
" In order to be computed efficiently, the method needs the following\n parameters:",
" - projection: a firs... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xy_time API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xy_time API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Iterates on longitudes, latitudes and timestamps. | "Iterates on longitudes, latitudes and timestamps." | 147 | false | xoolive/traffic | xy_time | 11,581 | |
LDU_FT/GiulioRossetti/ndlib/iteration | LDU_FT | [
"<BEGIN>\n## `set_initial_status`",
"Override behaviour of methods in class DiffusionModel.\n Overwrites initial status using random real values.\n Generates random node profiles.\n<END>",
"<BEGIN>\n## `iteration`",
"Execute a single model iteration",
" :return: Iteration_id, Incrementa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iteration API.
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 iteration API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Execute a single model iteration
:return: Iteration_id, Incremental node status (dictionary node->status) | "Execute a single model iteration\n\n :return: Iteration_id, Incremental node status (dictionary node->status)" | 56 | false | GiulioRossetti/ndlib | iteration | 11,582 | |
LDU_FT/johnnoone/json-spec/add | LDU_FT | [
"<BEGIN>\n## `check`",
"Check if value exists into object.",
" :param doc: the document base\n :param pointer: the path to search in\n :param expected: the expected value\n :param raise_onerror: should raise on error?\n :return: boolean\n<END>",
"<BEGIN>\n## `add`",
"Add element to sequence, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Add element to sequence, member to mapping.
:param doc: the document base
:param pointer: the path to add in it
:param value: the new value
:return: the new object | "Add element to sequence, member to mapping.\n\n :param doc: the document base\n :param pointer: the path to add in it\n :param value: the new value\n :return: the new object" | 113 | false | johnnoone/json-spec | add | 11,583 | |
LDU_FT/ravenac95/lxc4u/default_setup | LDU_FT | [
"<BEGIN>\n## `load_from_file`",
"Load the meta data given a file_path or empty meta data\n<END>",
"<BEGIN>\n## `default_setup`",
"The default API setup for lxc4u",
" This is the API that you access globally from lxc4u.\n<END>",
"<BEGIN>\n## `lxc_path`",
"Returns the LXC path (default on ubuntu is /va... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_setup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_setup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | The default API setup for lxc4u
This is the API that you access globally from lxc4u. | "The default API setup for lxc4u\n\n This is the API that you access globally from lxc4u." | 15 | false | ravenac95/lxc4u | default_setup | 11,584 | |
LDU_FT/askedrelic/libgreader/getUserSignupDate | LDU_FT | [
"<BEGIN>\n## `get`",
"Convenience method for requesting to google with proper cookies/params.\n<END>",
"<BEGIN>\n## `post`",
"Convenience method for requesting to google with proper cookies/params.\n<END>",
"<BEGIN>\n## `_getAuth`",
"Main step in authorizing with Reader.\n Sends request to Google C... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getUserSignupDate API.
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 getUserSignupDate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Returns the human readable date of when the user signed up for google reader. | "Returns the human readable date of when the user signed up for google reader." | 47 | false | askedrelic/libgreader | getUserSignupDate | 11,585 | |
LDU_FT/Skype4Py/Skype4Py/AddMembers | LDU_FT | [
"<BEGIN>\n## `AsyncSearchUsers`",
"Asynchronously searches for Skype users.",
" :Parameters:\n Target : unicode\n Search target (name or email address).",
" :return: A search identifier. It will be passed along with the results to the\n `SkypeEvents.AsyncSearc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AddMembers API.
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 AddMembers API.
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... | Adds new members to the chat.
:Parameters:
Members : `User`
One or more users to add. | "Adds new members to the chat.\n\n :Parameters:\n Members : `User`\n One or more users to add." | 213 | false | Skype4Py/Skype4Py | AddMembers | 11,586 | |
LDU_FT/Nixiware/viper/dispatch | LDU_FT | [
"<BEGIN>\n## `send`",
"Sends an email using the SMTP connection.",
" :param recipient: <tuple> recipient's email address as the first element and their name as an optional second\n element\n :param subject: <str> mail subject\n :param message: <str> mail content (... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Dispatch the request to the appropriate handler.
:param requestProtocol: <AbstractApplicationInterfaceProtocol> request protocol
:param requestPayload: <dict> request
:param version: <float> version
:param method: <str> method name
:param parameters: <dict> data para... | "Dispatch the request to the appropriate handler.\n\n :param requestProtocol: <AbstractApplicationInterfaceProtocol> request protocol\n :param requestPayload: <dict> request\n :param version: <float> version\n :param method: <str> method name\n :param parameters: <dict> da... | 72 | false | Nixiware/viper | dispatch | 11,587 | |
LDU_FT/cthorey/pdsimage/lambert_window | LDU_FT | [
"<BEGIN>\n## `_category`",
"Type of the image: LOLA or WAC",
" Note: Specify the attribute ``grid``, ``img`` and ``lbl`\n<END>",
"<BEGIN>\n## `_user_yes_no_query`",
"Helper asking if the user want to download the file",
" Note:\n Dowloading huge file can take a while\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lambert_window API.
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 lambert_window API.
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... | Square Lambert Azimuthal equal area projection of
a window centered at (lat0, long0) with a given radius (km).
Args:
radius(float): Radius of the window (km).
lat0(float): Latitude at the center (degree).
long0(float): Longitude at the center (degree).
Retur... | "Square Lambert Azimuthal equal area projection of\n a window centered at (lat0, long0) with a given radius (km).\n\n Args:\n radius(float): Radius of the window (km).\n lat0(float): Latitude at the center (degree).\n long0(float): Longitude at the center (degree).\n\n ... | 106 | false | cthorey/pdsimage | lambert_window | 11,588 | |
LDU_FT/StanfordVL/robosuite/get_control | LDU_FT | [
"<BEGIN>\n## `clear_objects`",
"Clears objects with name @obj out of the task space. This is useful\n for supporting task modes with single types of objects, as in\n @self.single_object_mode without changing the model definition.\n<END>",
"<BEGIN>\n## `staged_rewards`",
"Returns staged rewards b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_control API.
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_control API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Returns joint velocities to control the robot after the target end effector
positions and orientations are updated from arguments @left and @right.
If no arguments are provided, joint velocities will be computed based
on the previously recorded target.
Args:
left (dict): A ... | "Returns joint velocities to control the robot after the target end effector \n positions and orientations are updated from arguments @left and @right.\n If no arguments are provided, joint velocities will be computed based\n on the previously recorded target.\n\n Args:\n left (di... | 354 | false | StanfordVL/robosuite | get_control | 11,589 | |
LDU_FT/metagriffin/morph/isseq | LDU_FT | [
"<BEGIN>\n## `isseq`",
"Returns True if `obj` is a sequence-like object (but not a string or\n dict); i.e. a tuple, list, subclass thereof, or having an interface\n that supports iteration.\n<END>",
"<BEGIN>\n## `isdict`",
"Returns True if `obj` is a dict-like object (but not a string or\n list); i.e. a di... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isseq API.
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 isseq API.
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... | Returns True if `obj` is a sequence-like object (but not a string or
dict); i.e. a tuple, list, subclass thereof, or having an interface
that supports iteration. | "Returns True if `obj` is a sequence-like object (but not a string or\n dict); i.e. a tuple, list, subclass thereof, or having an interface\n that supports iteration." | 23 | false | metagriffin/morph | isseq | 11,590 | |
LDU_FT/BDNYC/astrodbkit/inventory | LDU_FT | [
"<BEGIN>\n## `dict_tovot`",
"Converts dictionary table **tabdata** to a VOTable with name **tabname**",
" Parameters\n ----------\n tabdata: list\n SQL query dictionary list from running query_dict.execute()\n tabname: str\n The name of the VOTable to be created\n phot: bool\n Para... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inventory API.
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 inventory API.
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... | Prints a summary of all objects in the database. Input string or list of strings in **ID** or **unum**
for specific objects.
Parameters
----------
source_id: int
The id from the SOURCES table whose data across all tables is to be printed.
fetch: bool
Retu... | "Prints a summary of all objects in the database. Input string or list of strings in **ID** or **unum**\n for specific objects.\n\n Parameters\n ----------\n source_id: int\n The id from the SOURCES table whose data across all tables is to be printed.\n fetch: bool\n ... | 166 | false | BDNYC/astrodbkit | inventory | 11,591 | |
LDU_FT/honeynet/beeswarm/_process_list | LDU_FT | [
"<BEGIN>\n## `setup_db`",
"Sets up the database schema and adds defaults.\n :param connection_string: Database URL. e.g: sqlite:///filename.db\n This is usually taken from the config file.\n<END>",
"<BEGIN>\n## `start_pty_request`",
"Start a PTY - intended to run it a (green)th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Processes a line of 'ls -l' output, and updates state accordingly.
:param list_line: Line to process | "Processes a line of 'ls -l' output, and updates state accordingly.\n\n :param list_line: Line to process" | 112 | false | honeynet/beeswarm | _process_list | 11,592 | |
LDU_FT/jpatrickdill/faste/oldest | LDU_FT | [
"<BEGIN>\n## `rr_cache`",
"Random Replacement cache decorator, implementing :class:`faste.caches.RRCache`",
" :keyword int max_size: max cache size\n<END>",
"<BEGIN>\n## `lru_cache`",
"Least Recently Used cache decorator, implementing :class:`faste.caches.LRUCache`",
" :keyword max_size: max cache s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the oldest API.
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 oldest API.
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 ... | Gets key, value pair for oldest item in cache
:returns: tuple | "Gets key, value pair for oldest item in cache\n\n :returns: tuple" | 22 | false | jpatrickdill/faste | oldest | 11,593 | |
LDU_FT/fedora-python/pyp2rpm/format_options | LDU_FT | [
"<BEGIN>\n## `cut_to_length`",
"Shorten given text on first delimiter after given number\n of characters.\n<END>",
"<BEGIN>\n## `get_interpreter_path`",
"Return the executable of a specified or current version.\n<END>",
"<BEGIN>\n## `license_from_trove`",
"Finds out license from list of trove classifie... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_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 ex... | Writes SCL related options into the formatter as a separate
group. | "Writes SCL related options into the formatter as a separate\n group." | 140 | false | fedora-python/pyp2rpm | format_options | 11,594 | |
LDU_FT/probcomp/crosscat/classes | LDU_FT | [
"<BEGIN>\n## `find`",
"Find current canonical representative equivalent to node.",
" Adjust the parent pointer of each node along the way to the root\n to point directly at the root for inverse-Ackerman-fast access.\n<END>",
"<BEGIN>\n## `union`",
"Assert equality of two nodes a and b so find(a) is fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the classes API.
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 classes API.
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... | Compute mapping from element to list of equivalent elements.
`equivalences` is an iterable of (x, y) tuples representing
equivalences x ~ y.
Returns an OrderedDict mapping each x to the list of elements
equivalent to x. | "Compute mapping from element to list of equivalent elements.\n\n `equivalences` is an iterable of (x, y) tuples representing\n equivalences x ~ y.\n\n Returns an OrderedDict mapping each x to the list of elements\n equivalent to x." | 92 | false | probcomp/crosscat | classes | 11,595 | |
LDU_FT/CS207-Final-Project-Group-10/cs207-FinalProject/accel_ES_fl | LDU_FT | [
"<BEGIN>\n## `configuration_ES`",
"Get the positions and velocities of the earth and sun from date t0 to t1.\n Returned as a tuple q, v\n q: Nx3 array of positions (x, y, z) in the J2000.0 coordinate frame.\n<END>",
"<BEGIN>\n## `plot_ES`",
"Plot the earth-sun orbits.\n q is a Tx6 array. T indexes t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accel_ES_fl API.
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 accel_ES_fl API.
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... | Accelaration in the earth-sun system using Fluxion potential energy | "Accelaration in the earth-sun system using Fluxion potential energy" | 92 | false | CS207-Final-Project-Group-10/cs207-FinalProject | accel_ES_fl | 11,596 | |
LDU_FT/acorg/dark-matter/fastaSubtract | LDU_FT | [
"<BEGIN>\n## `iter`",
"Extract BLAST records and yield C{ReadAlignments} instances.",
" For each file except the first, check that the BLAST parameters are\n compatible with those found (above, in __init__) in the first file.",
" @return: A generator that yields C{ReadAlignments} instance... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fastaSubtract API.
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 fastaSubtract API.
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... | Given a list of open file descriptors, each with FASTA content,
remove the reads found in the 2nd, 3rd, etc files from the first file
in the list.
@param fastaFiles: a C{list} of FASTA filenames.
@raises IndexError: if passed an empty list.
@return: An iterator producing C{Bio.SeqRecord} instances ... | "Given a list of open file descriptors, each with FASTA content,\n remove the reads found in the 2nd, 3rd, etc files from the first file\n in the list.\n\n @param fastaFiles: a C{list} of FASTA filenames.\n @raises IndexError: if passed an empty list.\n @return: An iterator producing C{Bio.SeqRecord} ins... | 601 | false | acorg/dark-matter | fastaSubtract | 11,597 | |
LDU_FT/dhocker/udmx-pyusb/close | LDU_FT | [
"<BEGIN>\n## `add_values`",
"Adds an alias with list of values to the channel/value dictionary.\n<END>",
"<BEGIN>\n## `are_valid_values`",
"Determines if a list of values are valid DMX values (0-255).\n<END>",
"<BEGIN>\n## `load_rc_file`",
"Load the contents of the resource file ~/.uDMXrc\n<END>",
"<BEG... | 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... | Close and release the current usb device.
:return: None | "Close and release the current usb device.\n :return: None" | 22 | false | dhocker/udmx-pyusb | close | 11,598 | |
LDU_FT/sanoma/django-arctic/is_list_of_list | LDU_FT | [
"<BEGIN>\n## `get_all_fields`",
"Returns a list of all field names on the instance.\n<END>",
"<BEGIN>\n## `query_string_ordering`",
"Add ordering param to the given query string\n :param context: template context\n :param value: examples would be '-id' or 'id'. A minus indicates that the\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_list_of_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_list_of_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | check whether the item is list (tuple)
and consist of list (tuple) elements | "check whether the item is list (tuple)\n and consist of list (tuple) elements" | 85 | false | sanoma/django-arctic | is_list_of_list | 11,599 | |
LDU_FT/robertmartin8/PyPortfolioOpt/portfolio_performance | LDU_FT | [
"<BEGIN>\n## `negative_sharpe`",
"Calculate the negative Sharpe ratio of a portfolio",
" :param weights: asset weights of the portfolio\n :type weights: np.ndarray\n :param expected_returns: expected return of each asset\n :type expected_returns: pd.Series\n :param cov_matrix: the covariance matr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the portfolio_performance 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 portfolio_performance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | After optimising, calculate (and optionally print) the performance of the optimal
portfolio. Currently calculates expected return, volatility, and the Sharpe ratio.
:param expected_returns: expected returns for each asset. Set to None if
optimising for volatility only.
:type ex... | "After optimising, calculate (and optionally print) the performance of the optimal\n portfolio. Currently calculates expected return, volatility, and the Sharpe ratio.\n\n :param expected_returns: expected returns for each asset. Set to None if\n optimising for volatility only.\n :t... | 90 | false | robertmartin8/PyPortfolioOpt | portfolio_performance | 11,600 | |
LDU_FT/openvax/varcode/trim_shared_suffix | LDU_FT | [
"<BEGIN>\n## `translate_codon`",
"Translate a single codon into a single amino acid or stop '*'",
" Parameters\n ----------\n codon : str\n Expected to be of length 3\n aa_pos : int\n Codon/amino acid offset into the protein (starting from 0)\n<END>",
"<BEGIN>\n## `translate`",
"Tr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trim_shared_suffix 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 trim_shared_suffix 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... | Reuse the `trim_shared_prefix` function above to implement similar
functionality for string suffixes.
Given ref='ABC' and alt='BC', we first revese both strings:
reverse_ref = 'CBA'
reverse_alt = 'CB'
and then the result of calling trim_shared_prefix will be:
('A', '', 'CB')
We ... | "Reuse the `trim_shared_prefix` function above to implement similar\n functionality for string suffixes.\n\n Given ref='ABC' and alt='BC', we first revese both strings:\n reverse_ref = 'CBA'\n reverse_alt = 'CB'\n and then the result of calling trim_shared_prefix will be:\n ('A', '', 'CB')... | 344 | false | openvax/varcode | trim_shared_suffix | 11,601 | |
LDU_FT/aaren/notedown/to_notebook | LDU_FT | [
"<BEGIN>\n## `ftdetect`",
"Determine if filename is markdown or notebook,\n based on the file extension.\n<END>",
"<BEGIN>\n## `get_caption_comments`",
"Retrieve an id and a caption from a code cell.",
" If the code cell content begins with a commented\n block that looks like",
" ## fig:id\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_notebook API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_notebook API.
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... | Convert the markdown string s to an IPython notebook.
Returns a notebook. | "Convert the markdown string s to an IPython notebook.\n\n Returns a notebook." | 39 | false | aaren/notedown | to_notebook | 11,602 | |
LDU_FT/wdbm/shijian/split_list | LDU_FT | [
"<BEGIN>\n## `tail`",
"Return a specified number of last lines of a specified file. If there is an\n error or the file does not exist, return False.\n<END>",
"<BEGIN>\n## `convert_type_list_elements`",
"Recursively convert all elements and all elements of all sublists of a list\n to a specified type and... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | This function splits a list into a specified number of lists. It returns a
list of lists that correspond to these parts. Negative numbers of parts are
not accepted and numbers of parts greater than the number of elements in the
list result in the maximum possible number of lists being returned. | "This function splits a list into a specified number of lists. It returns a\n list of lists that correspond to these parts. Negative numbers of parts are\n not accepted and numbers of parts greater than the number of elements in the\n list result in the maximum possible number of lists being returned." | 37 | false | wdbm/shijian | split_list | 11,603 | |
LDU_FT/fictorial/pygameui/main | LDU_FT | [
"<BEGIN>\n## `value_for_keypath`",
"Get value from walking key path with start object obj.\n<END>",
"<BEGIN>\n## `set_value_for_keypath`",
"Set attribute value new_value at key path of start object obj.\n<END>",
"<BEGIN>\n## `view_for_image_named`",
"Create an ImageView for the given image.\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Install or upgrade setuptools and EasyInstall | "Install or upgrade setuptools and EasyInstall" | 53 | false | fictorial/pygameui | main | 11,604 | |
LDU_FT/rauenzi/discordbot.py/disable | LDU_FT | [
"<BEGIN>\n## `stop_pages`",
"stops the interactive pagination session\n<END>",
"<BEGIN>\n## `paginate`",
"Actually paginate the entries and run the interactive loop if necessary.\n<END>",
"<BEGIN>\n## `_do`",
"Repeats a command a specified number of times.\n<END>",
"<BEGIN>\n## `disable`",
"Disables a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disable API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disable API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Disables a command for this server.
You must have Manage Server permissions or the
Bot Admin role to use this command. | "Disables a command for this server.\n\n You must have Manage Server permissions or the\n Bot Admin role to use this command." | 52 | false | rauenzi/discordbot.py | disable | 11,605 | |
LDU_FT/globality-corp/microcosm-flask/configure_deletefor | LDU_FT | [
"<BEGIN>\n## `_serialize`",
"Serialize value as a timestamp, either as a Unix timestamp (in float second) or a UTC isoformat string.\n<END>",
"<BEGIN>\n## `_deserialize`",
"Deserialize value as a Unix timestamp (in float seconds).",
" Handle both numeric and UTC isoformat strings.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_deletefor 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 configure_deletefor 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... | Register a delete-for relation endpoint.
The definition's func should be a delete function, which must:
- accept kwargs for path data
- return truthy/falsey
:param ns: the namespace
:param definition: the endpoint definition | "Register a delete-for relation endpoint.\n\n The definition's func should be a delete function, which must:\n - accept kwargs for path data\n - return truthy/falsey\n\n :param ns: the namespace\n :param definition: the endpoint definition" | 309 | false | globality-corp/microcosm-flask | configure_deletefor | 11,606 | |
LDU_FT/materialsproject/pymatgen/_get_symmetry | LDU_FT | [
"<BEGIN>\n## `ion_or_solid_comp_object`",
"Returns either an ion object or composition object given\n a formula.",
" Args:\n formula: String formula. Eg. of ion: NaOH(aq), Na[+];\n Eg. of solid: Fe2O3(s), Fe(s), Na2O",
" Returns:\n Composition/Ion object\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_symmetry API.
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_symmetry API.
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 the symmetry operations associated with the structure.
Returns:
Symmetry operations as a tuple of two equal length sequences.
(rotations, translations). "rotations" is the numpy integer array
of the rotation matrices for scaled positions
"translations" gives ... | "Get the symmetry operations associated with the structure.\n\n Returns:\n Symmetry operations as a tuple of two equal length sequences.\n (rotations, translations). \"rotations\" is the numpy integer array\n of the rotation matrices for scaled positions\n \"translatio... | 6,523 | true | materialsproject/pymatgen | _get_symmetry | 11,607 | |
LDU_FT/mretegan/crispy/populateWidget | LDU_FT | [
"<BEGIN>\n## `loadFromDisk`",
"Read the spectra from the files generated by Quanty and store them\n as a list of spectum objects.\n<END>",
"<BEGIN>\n## `populateWidget`",
"Populate the widget using data stored in the state\n object. The order in which the individual widgets are populated\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populateWidget API.
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 populateWidget API.
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... | Populate the widget using data stored in the state
object. The order in which the individual widgets are populated
follows their arrangment.
The models are recreated every time the function is called.
This might seem to be an overkill, but in practice it is very fast.
Don't try ... | "Populate the widget using data stored in the state\n object. The order in which the individual widgets are populated\n follows their arrangment.\n\n The models are recreated every time the function is called.\n This might seem to be an overkill, but in practice it is very fast.\n Don... | 38 | false | mretegan/crispy | populateWidget | 11,608 | |
LDU_FT/facelessuser/backrefs/get_indic_positional_category_property | LDU_FT | [
"<BEGIN>\n## `download_unicodedata`",
"Download Unicode data scripts and blocks.\n<END>",
"<BEGIN>\n## `get_unicodedata`",
"Ensure we have Unicode data to generate Unicode tables.\n<END>",
"<BEGIN>\n## `posix_props`",
"Insert POSIX properties.",
" Posix style properties are not as forgiving\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_indic_positional_category_property API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_indic_positional_category_property API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates... | Get `INDIC POSITIONAL/MATRA CATEGORY` property. | "Get `INDIC POSITIONAL/MATRA CATEGORY` property." | 75 | false | facelessuser/backrefs | get_indic_positional_category_property | 11,609 | |
LDU_FT/posativ/isso/unsubscribe | LDU_FT | [
"<BEGIN>\n## `anonymize`",
"Anonymize IPv4 and IPv6 :param remote_addr: to /24 (zero'd)\n and /48 (zero'd).\n<END>",
"<BEGIN>\n## `thread`",
"Extract <h1> title from web page. The title is *probably* the text node,\n which is the nearest H1 node in context to an element with the `isso-thread` id.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unsubscribe API.
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 unsubscribe API.
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... | Turn off email notifications for replies to this comment. | "Turn off email notifications for replies to this comment." | 61 | false | posativ/isso | unsubscribe | 11,610 | |
LDU_FT/ska-sa/katcp-python/join | LDU_FT | [
"<BEGIN>\n## `request_time`",
"Return the current time in ms since the Unix Epoch.\n<END>",
"<BEGIN>\n## `request_raw_reverse`",
"A raw request handler to demonstrate the calling convention if\n @request decoraters are not used. Reverses the message arguments.\n<END>",
"<BEGIN>\n## `transform_future`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join API.
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 join API.
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... | Rejoin the server thread.
Parameters
----------
timeout : float or None, optional
Time in seconds to wait for the thread to finish.
Notes
-----
If the ioloop is not managed, this function will block until the server
port is closed, meaning a new serv... | "Rejoin the server thread.\n\n Parameters\n ----------\n timeout : float or None, optional\n Time in seconds to wait for the thread to finish.\n\n Notes\n -----\n If the ioloop is not managed, this function will block until the server\n port is closed, meaning... | 905 | false | ska-sa/katcp-python | join | 11,611 | |
LDU_FT/ryukinix/decorating/auto_message | LDU_FT | [
"<BEGIN>\n## `default_arguments`",
"Returns the available kwargs of the called class\n<END>",
"<BEGIN>\n## `recreate`",
"Recreate the class based in your args, multiple uses\n<END>",
"<BEGIN>\n## `check_arguments`",
"Put warnings of arguments whose can't be handle by the class\n<END>",
"<BEGIN>\n## `col... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auto_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auto_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 extr... | Try guess the message by the args passed
args: a set of args passed on the wrapper __call__ in
the definition above.
if the object already have some message (defined in __init__),
we don't change that. If the first arg is a function, so is decorated
without argument, use ... | "Try guess the message by the args passed\n\n args: a set of args passed on the wrapper __call__ in\n the definition above.\n\n if the object already have some message (defined in __init__),\n we don't change that. If the first arg is a function, so is decorated\n without argume... | 41 | false | ryukinix/decorating | auto_message | 11,612 | |
LDU_FT/AoiKuiyuyou/AoikImportUtil-Python/import_name | LDU_FT | [
"<BEGIN>\n## `import_code`",
"Create a module object by code.\n @param mod_code: the code that the module contains.",
" @param mod_name: module name.\n<END>",
"<BEGIN>\n## `import_name`",
"Import a module by module name.",
" @param mod_name: module name.\n<END>",
"<BEGIN>\n## `import_path`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_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 extra... | Import a module by module name.
@param mod_name: module name. | "Import a module by module name.\n\n @param mod_name: module name." | 31 | false | AoiKuiyuyou/AoikImportUtil-Python | import_name | 11,613 | |
LDU_FT/ghackebeil/PyORAM/basek_string_to_base10_integer | LDU_FT | [
"<BEGIN>\n## `intdivceil`",
"Returns the exact value of ceil(x // y).\n No floating point calculations are used.\n Requires positive integer types. The result\n is undefined if at least one of the inputs\n is floating point.\n<END>",
"<BEGIN>\n## `chunkiter`",
"Chunk an iterator of unknown size. T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the basek_string_to_base10_integer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the basek_string_to_base10_integer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Convert a base k string into an integer. | "Convert a base k string into an integer." | 20 | false | ghackebeil/PyORAM | basek_string_to_base10_integer | 11,614 | |
LDU_FT/ml31415/numpy-groupies/step_count | LDU_FT | [
"<BEGIN>\n## `aggregate_group_loop`",
"wraps func in lambda which prevents aggregate_numpy from\n recognising and optimising it. Instead it groups and loops.\n<END>",
"<BEGIN>\n## `step_count`",
"Return the amount of index changes within group_idx.\n<END>",
"<BEGIN>\n## `step_indices`",
"Return the edg... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_count API.
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 step_count API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return the amount of index changes within group_idx. | "Return the amount of index changes within group_idx." | 56 | false | ml31415/numpy-groupies | step_count | 11,615 | |
LDU_FT/idlesign/uwsgiconf/configure | LDU_FT | [
"<BEGIN>\n## `set_exit_events`",
"Do exit on certain events",
" :param bool no_workers: Shutdown uWSGI when no workers are running.",
" :param bool idle: Shutdown uWSGI when idle.",
" :param bool reload: Force exit even if a reload is requested.",
" :param bool sig_term: Exit o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API.
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 configure API.
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... | Configures broodlord mode and returns emperor and zerg sections.
:rtype: tuple | "Configures broodlord mode and returns emperor and zerg sections.\n\n :rtype: tuple" | 1,094 | true | idlesign/uwsgiconf | configure | 11,616 | |
LDU_FT/lobocv/crashreporter/get_object_references | LDU_FT | [
"<BEGIN>\n## `setup_smtp`",
"Set up the crash reporter to send reports via email using SMTP",
" :param host: SMTP host\n :param port: SMTP port\n :param user: sender email address\n :param passwd: sender email password\n :param recipients: list or comma separated string of rec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object_references API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object_references API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Find the values of referenced attributes of objects within the traceback scope.
:param tb: traceback
:return: list of tuples containing (variable name, value) | "Find the values of referenced attributes of objects within the traceback scope.\n\n :param tb: traceback\n :return: list of tuples containing (variable name, value)" | 59 | false | lobocv/crashreporter | get_object_references | 11,617 | |
LDU_FT/openfisca/openfisca-core/apply_reform | LDU_FT | [
"<BEGIN>\n## `apply_thresholds`",
"Return one of the choices depending on the input position compared to thresholds, for each input.",
" >>> apply_thresholds(np.array([4]), [5, 7], [10, 15, 20])\n array([10])\n >>> apply_thresholds(np.array([5]), [5, 7], [10, 15, 20])\n array([10])\n >>> apply_th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_reform API.
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 apply_reform API.
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... | Generates a new tax and benefit system applying a reform to the tax and benefit system.
The current tax and benefit system is **not** mutated.
:param string reform_path: The reform to apply. Must respect the format *installed_package.sub_module.reform*
:returns: A reformed tax and benefit sys... | "Generates a new tax and benefit system applying a reform to the tax and benefit system.\n\n The current tax and benefit system is **not** mutated.\n\n :param string reform_path: The reform to apply. Must respect the format *installed_package.sub_module.reform*\n\n :returns: A reformed tax and bene... | 322 | false | openfisca/openfisca-core | apply_reform | 11,618 | |
LDU_FT/TestInABox/stackInABox/handle | LDU_FT | [
"<BEGIN>\n## `httpretty_callback`",
"httpretty request handler.",
" converts a call intercepted by httpretty to\n the stack-in-a-box infrastructure",
" :param request: request object\n :param uri: the uri of the request\n :param headers: headers for the response",
" :returns: tuple - (int,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Request handler interface.
:param request: Python requests Request object
:param uri: URI of the request | "Request handler interface.\n\n :param request: Python requests Request object\n :param uri: URI of the request" | 124 | false | TestInABox/stackInABox | handle | 11,619 | |
LDU_FT/openeemeter/eemeter/temperature_data_from_json | LDU_FT | [
"<BEGIN>\n## `as_freq`",
"Resample data to a different frequency.",
" This method can be used to upsample or downsample meter data. The\n assumption it makes to do so is that meter data is constant and averaged\n over the given periods. For instance, to convert billing-period data to\n daily data, t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the temperature_data_from_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the temperature_data_from_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Load temperature data from json. (Must be given in degrees
Fahrenheit).
Default format::
[
['2017-01-01T00:00:00+00:00', 3.5],
['2017-01-01T01:00:00+00:00', 5.4],
['2017-01-01T02:00:00+00:00', 7.4],
]
Parameters
----------
data : :any:`list`
... | "Load temperature data from json. (Must be given in degrees\n Fahrenheit).\n\n Default format::\n\n [\n ['2017-01-01T00:00:00+00:00', 3.5],\n ['2017-01-01T01:00:00+00:00', 5.4],\n ['2017-01-01T02:00:00+00:00', 7.4],\n ]\n\n Parameters\n ----------\n data : :... | 213 | false | openeemeter/eemeter | temperature_data_from_json | 11,620 | |
LDU_FT/pudo/dataset/normalize_table_name | LDU_FT | [
"<BEGIN>\n## `normalize_column_name`",
"Check if a string is a reasonable thing to use as a column name.\n<END>",
"<BEGIN>\n## `normalize_table_name`",
"Check if the table name is obviously invalid.\n<END>",
"<BEGIN>\n## `safe_url`",
"Remove password from printed connection URLs.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_table_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_table_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.
... | Check if the table name is obviously invalid. | "Check if the table name is obviously invalid." | 128 | false | pudo/dataset | normalize_table_name | 11,621 | |
LDU_FT/pmneila/morphsnakes/checkerboard_level_set | LDU_FT | [
"<BEGIN>\n## `visual_callback_2d`",
"Returns a callback than can be passed as the argument `iter_callback`\n of `morphological_geodesic_active_contour` and\n `morphological_chan_vese` for visualizing the evolution\n of the levelsets. Only works for 2D images.",
" Parameters\n ----------\n back... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkerboard_level_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.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkerboard_level_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.... | Create a checkerboard level set with binary values.
Parameters
----------
image_shape : tuple of positive integers
Shape of the image.
square_size : int, optional
Size of the squares of the checkerboard. It defaults to 5.
Returns
-------
out : array with shape `image_shape`... | "Create a checkerboard level set with binary values.\n\n Parameters\n ----------\n image_shape : tuple of positive integers\n Shape of the image.\n square_size : int, optional\n Size of the squares of the checkerboard. It defaults to 5.\n\n Returns\n -------\n out : array with shape `... | 66 | false | pmneila/morphsnakes | checkerboard_level_set | 11,622 | |
LDU_FT/hackedd/gw2api/encode_item_link | LDU_FT | [
"<BEGIN>\n## `set_cache_dir`",
"Set the directory to cache JSON responses from most API endpoints.\n<END>",
"<BEGIN>\n## `get_cached`",
"Request a resource form the API, first checking if there is a cached\n response available. Returns the parsed JSON data.\n<END>",
"<BEGIN>\n## `skin_details`",
"T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_item_link API.
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 encode_item_link API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Encode a chat link for an item (or a stack of items).
:param item_id: the Id of the item
:param number: the number of items in the stack
:param skin_id: the id of the skin applied to the item
:param upgrade1: the id of the first upgrade component
:param upgrade2: the id of the second upgrade compon... | "Encode a chat link for an item (or a stack of items).\n\n :param item_id: the Id of the item\n :param number: the number of items in the stack\n :param skin_id: the id of the skin applied to the item\n :param upgrade1: the id of the first upgrade component\n :param upgrade2: the id of the second upgrade... | 188 | false | hackedd/gw2api | encode_item_link | 11,623 | |
LDU_FT/automl/HpBandSter/logged_results_to_HBS_result | LDU_FT | [
"<BEGIN>\n## `get_config`",
"Function to sample a new configuration",
"\t\t\tThis function is called inside Hyperband to query a new configuration",
"\t\t\tParameters:\n\t\t\t-----------\n\t\t\tbudget: float\n\t\t\t\tthe budget for which this configuration is scheduled",
"\t\t\treturns: config\n\t\t\t\tshou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logged_results_to_HBS_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logged_results_to_HBS_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | function to import logged 'live-results' and return a HB_result object
You can load live run results with this function and the returned
HB_result object gives you access to the results the same way
a finished run would.
Parameters
----------
directory: str
the directory containing the results.json and confi... | "function to import logged 'live-results' and return a HB_result object\n\n\tYou can load live run results with this function and the returned\n\tHB_result object gives you access to the results the same way\n\ta finished run would.\n\t\n\tParameters\n\t----------\n\tdirectory: str\n\t\tthe directory containing the res... | 188 | false | automl/HpBandSter | logged_results_to_HBS_result | 11,624 | |
LDU_FT/abe-winter/pg13-py/p_case | LDU_FT | [
"<BEGIN>\n## `names_from_exp`",
"Return a list of AttrX and NameX from the expression.\n<END>",
"<BEGIN>\n## `classify_wherex`",
"helper for wherex_to_rowlist. returns [SingleTableCond,...], [CartesianCond,...]\n<END>",
"<BEGIN>\n## `table_to_rowlist`",
"helper for wherex_to_rowlist. (table.Table, [exp, .... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_case API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_case API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | expression : kw_case whenlist kw_else expression kw_end
| kw_case whenlist kw_end | "expression : kw_case whenlist kw_else expression kw_end\n | kw_case whenlist kw_end" | 182 | false | abe-winter/pg13-py | p_case | 11,625 | |
LDU_FT/getsentry/libsourcemap/from_memdb | LDU_FT | [
"<BEGIN>\n## `from_json`",
"Parses a JSON string into either a view or an index. If auto flatten\n is enabled a sourcemap index that does not contain external references is\n automatically flattened into a view. By default if an index would be\n returned an `IndexedSourceMap` error is raised instead wh... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_memdb API.
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 from_memdb API.
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... | Creates a sourcemap view from MemDB bytes. | "Creates a sourcemap view from MemDB bytes." | 22 | false | getsentry/libsourcemap | from_memdb | 11,626 | |
LDU_FT/pdkit/pdkit/separate_walks_turns | LDU_FT | [
"<BEGIN>\n## `load`",
"This is a general load data method where the format of data to load can be passed as a parameter,",
" :param str filename: The path to load data from\n :param str format_file: format of the file. Default is CloudUPDRS. Set to mpower for mpower data.\n :ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the separate_walks_turns 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 separate_walks_turns API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Will separate peaks into the clusters by following the trend in the clusters array.
This is usedful because scipy's k-mean clustering will give us a continous clusters
array.
:param clusters array: A continous array representing different classes.
:param peaks array: The peaks t... | "Will separate peaks into the clusters by following the trend in the clusters array.\n This is usedful because scipy's k-mean clustering will give us a continous clusters\n array.\n \n :param clusters array: A continous array representing different classes.\n :param peaks array: The p... | 344 | false | pdkit/pdkit | separate_walks_turns | 11,627 | |
LDU_FT/jalanb/pysyte/extend_values | LDU_FT | [
"<BEGIN>\n## `get_caselessly`",
"Find the sought key in the given dictionary regardless of case",
" >>> things = {'Fred' : 9}\n >>> print(get_caselessly(things, 'fred'))\n 9\n<END>",
"<BEGIN>\n## `append_value`",
"Append those items to the values for that key\n<END>",
"<BEGIN>\n## `extend_values`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Extend the values for that key with the items | "Extend the values for that key with the items" | 224 | false | jalanb/pysyte | extend_values | 11,628 | |
LDU_FT/elifesciences/proofreader-python/_get_whitelist_licenses | LDU_FT | [
"<BEGIN>\n## `col_widths`",
"Get MAX possible width of each column in the table.",
" :return: defaultdict\n<END>",
"<BEGIN>\n## `_marker_line`",
"Generate a correctly sized marker line.",
" e.g.",
" '+------------------+---------+----------+---------+'",
" :return: str\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_whitelist_licenses API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_whitelist_licenses API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Get whitelist license names from config file.
:param config_path: str
:return: list | "Get whitelist license names from config file.\n\n :param config_path: str\n :return: list" | 44 | false | elifesciences/proofreader-python | _get_whitelist_licenses | 11,629 | |
LDU_FT/eelregit/mcfit/inv | LDU_FT | [
"<BEGIN>\n## `_deriv`",
"Real deriv is to :math:`t`, complex deriv is to :math:`\\ln t`\n<END>",
"<BEGIN>\n## `inv`",
"Invert the transform.",
" After calling this method, calling the instance will do the inverse\n transform. Calling this twice return the instance to the original\n tran... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inv API.
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 inv API.
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... | Invert the transform.
After calling this method, calling the instance will do the inverse
transform. Calling this twice return the instance to the original
transform. | "Invert the transform.\n\n After calling this method, calling the instance will do the inverse\n transform. Calling this twice return the instance to the original\n transform." | 22 | false | eelregit/mcfit | inv | 11,630 | |
LDU_FT/mcieslik-mctp/papy/get_task | LDU_FT | [
"<BEGIN>\n## `_inspect`",
"(internal) Determines the type of a given ``object``. Discriminates between \n ``Piper``, ``Worker``, ``FunctionType`` and ``Iterable`` instances. It \n returns a ``tuple`` of boolean variables i.e: (is_piper, is_worker, \n is_function, is_iterable_of_pipers, is_iterable_of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_task API.
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_task API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Returns an iterator which results are limited to one **task**. The
default iterator the one which e.g. will be used in a for loop is the
iterator for the first task (task =0). The returned iterator is a
``_NuMapTask`` instance.
Compare::
for result_from_task_0 in ... | "Returns an iterator which results are limited to one **task**. The \n default iterator the one which e.g. will be used in a for loop is the\n iterator for the first task (task =0). The returned iterator is a \n ``_NuMapTask`` instance.\n \n Compare::\n\n for result_from_ta... | 323 | false | mcieslik-mctp/papy | get_task | 11,631 | |
LDU_FT/diux-dev/ncluster/logdir | LDU_FT | [
"<BEGIN>\n## `make_job`",
"Create a job using current backend. Blocks until all tasks are up and initialized.",
" Args:\n name: name of the job\n run_name: name of the run (auto-assigned if empty)\n num_tasks: number of tasks\n install_script: bash-runnable script\n **kwargs:",
" Returns:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logdir API.
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 logdir API.
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 logging directory, creating one if necessary. See "Logdir" section of design doc on naming convention. | "Returns logging directory, creating one if necessary. See \"Logdir\" section of design doc on naming convention." | 136 | false | diux-dev/ncluster | logdir | 11,632 | |
LDU_FT/alvinwan/tex2py/parseTopDepth | LDU_FT | [
"<BEGIN>\n## `findHierarchy`",
"Find hierarchy for the LaTeX source.",
" >>> TOC.fromLatex(r'\\subsection{yo}\\section{hello}').findHierarchy()\n ('section', 'subsection')\n >>> TOC.fromLatex(\n ... r'\\subsubsubsection{huh}\\subsubsection{hah}').findHierarchy()\n ('subsubsect... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parseTopDepth API.
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 parseTopDepth API.
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... | Parse tex for highest tag in hierarchy
>>> TOC.fromLatex('\\section{Hah}\\subsection{No}').parseTopDepth()
1
>>> s = '\\subsubsubsection{Yo}\\subsubsection{Hah}'
>>> TOC.fromLatex(s).parseTopDepth()
1
>>> h = ('section', 'subsubsection', 'subsubsubsection')
>>> T... | "Parse tex for highest tag in hierarchy\n\n >>> TOC.fromLatex('\\\\section{Hah}\\\\subsection{No}').parseTopDepth()\n 1\n >>> s = '\\\\subsubsubsection{Yo}\\\\subsubsection{Hah}'\n >>> TOC.fromLatex(s).parseTopDepth()\n 1\n >>> h = ('section', 'subsubsection', 'subsubsubsection... | 18 | false | alvinwan/tex2py | parseTopDepth | 11,633 | |
LDU_FT/bioidiap/bob.ip.facedetect/scales | LDU_FT | [
"<BEGIN>\n## `add`",
"Adds a new strong classifier with the given threshold to the cascade.",
" **Parameters:**",
" classifier : :py:class:`bob.learn.boosting.BoostedMachine`\n A strong classifier to add",
" ``threshold`` : float\n The classification threshold for this cascade step",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scales API.
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 scales API.
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 ... | scales(image) -> scale, shape
Computes the all possible scales for the given image and yields a tuple of the scale and the scaled image shape as an iterator.
**Parameters::**
``image`` : array_like(2D or 3D)
The image, for which the scales should be computed
**Yields:**
``scale`` : float
... | "scales(image) -> scale, shape\n\n Computes the all possible scales for the given image and yields a tuple of the scale and the scaled image shape as an iterator.\n\n **Parameters::**\n\n ``image`` : array_like(2D or 3D)\n The image, for which the scales should be computed\n\n **Yields:**\n\n ``scal... | 246 | false | bioidiap/bob.ip.facedetect | scales | 11,634 | |
LDU_FT/open-homeautomation/pknx/init_group | LDU_FT | [
"<BEGIN>\n## `ip_to_array`",
"Convert a string representing an IPv4 address to 4 bytes.\n<END>",
"<BEGIN>\n## `int_to_array`",
"Convert an length byte integer to an array of bytes.\n<END>",
"<BEGIN>\n## `parse_group_address`",
"Parse KNX group addresses and return the address as an integer.",
" This ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_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.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_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.
The extrac... | Initilize the CEMI frame with the given destination address. | "Initilize the CEMI frame with the given destination address." | 80 | false | open-homeautomation/pknx | init_group | 11,635 | |
LDU_FT/sourceperl/pyModbusTCP/open | LDU_FT | [
"<BEGIN>\n## `start`",
"Start the server.",
" Do nothing if server is already running.\n This function will block if no_block is not set to True.\n<END>",
"<BEGIN>\n## `stop`",
"Stop the server.",
" Do nothing if server is already not running.\n<END>",
"<BEGIN>\n## `host`",
"Get o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Connect to modbus server (open TCP connection)
:returns: connect status (True if open)
:rtype: bool | "Connect to modbus server (open TCP connection)\n\n :returns: connect status (True if open)\n :rtype: bool" | 96 | false | sourceperl/pyModbusTCP | open | 11,636 | |
LDU_FT/PierreRust/apigpio/script_status | LDU_FT | [
"<BEGIN>\n## `u2i`",
"Converts a 32 bit unsigned number to signed.",
" uint32:= an unsigned 32 bit number",
" ...\n print(u2i(4294967272))\n -24\n print(u2i(37))\n 37\n ...\n<END>",
"<BEGIN>\n## `_u2i`",
"Converts a 32 bit unsigned number to signed. If the number\n is negative it ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the script_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the script_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns the run status of a stored script as well as the
current values of parameters 0 to 9.
script_id:= id of stored script.
The run status may be
. .
PI_SCRIPT_INITING
PI_SCRIPT_HALTED
PI_SCRIPT_RUNNING
PI_SCRIPT_WAITING
PI_SCRIPT_FAILED
... | "Returns the run status of a stored script as well as the\n current values of parameters 0 to 9.\n\n script_id:= id of stored script.\n\n The run status may be\n\n . .\n PI_SCRIPT_INITING\n PI_SCRIPT_HALTED\n PI_SCRIPT_RUNNING\n PI_SCRIPT_WAITING\n PI_SCRIP... | 102 | false | PierreRust/apigpio | script_status | 11,637 | |
LDU_FT/rtfd/recommonmark/apply | LDU_FT | [
"<BEGIN>\n## `reset`",
"Reset the state of state machine.",
" After reset, self and self.state can be used to\n passed to docutils.parsers.rst.Directive.run",
" Parameters\n ----------\n document: docutils document\n Current document of the node.\n parent: ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply API.
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 apply API.
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... | Apply the transformation by configuration. | "Apply the transformation by configuration." | 42 | false | rtfd/recommonmark | apply | 11,638 | |
LDU_FT/pymacaron/pymacaron/is_ec2_instance | LDU_FT | [
"<BEGIN>\n## `load_clients`",
"Generate client libraries for the given apis, without starting an\n api server\n<END>",
"<BEGIN>\n## `load_apis`",
"Load all swagger files found at the given path, except those whose\n names are in the 'ignore' list\n<END>",
"<BEGIN>\n## `publish_apis`",
"Publi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ec2_instance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ec2_instance API.
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... | Try fetching instance metadata at 'curl http://169.254.169.254/latest/meta-data/'
to see if host is on an ec2 instance | "Try fetching instance metadata at 'curl http://169.254.169.254/latest/meta-data/'\n to see if host is on an ec2 instance" | 47 | false | pymacaron/pymacaron | is_ec2_instance | 11,639 | |
LDU_FT/b3j0f/annotation/on_bind_target | LDU_FT | [
"<BEGIN>\n## `mixin_function_or_method`",
"Mixin a routine into the target.",
" :param routine: routine to mix in target.\n :param str name: mixin name. Routine name by default.\n :param bool isbound: If True (False by default), the mixin result is a\n bound method to target.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_bind_target API.
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 on_bind_target API.
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... | Fired after target is bound to self.
:param target: newly bound target.
:param ctx: target ctx. | "Fired after target is bound to self.\n\n :param target: newly bound target.\n :param ctx: target ctx." | 84 | false | b3j0f/annotation | on_bind_target | 11,640 | |
LDU_FT/peterldowns/python-mustache/load_file | LDU_FT | [
"<BEGIN>\n## `get_match_info`",
"Given a template and a regex match within said template, return a\n dictionary of information about the match to be used to help parse the\n template.\n<END>",
"<BEGIN>\n## `get_tag_context`",
"Given a tag name, return its associated value as defined in the current\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Given an existing path, attempt to load it as a unicode string. | "Given an existing path, attempt to load it as a unicode string." | 33 | false | peterldowns/python-mustache | load_file | 11,641 | |
LDU_FT/nfcpy/nfcpy/search_service_code | LDU_FT | [
"<BEGIN>\n## `reset_mode`",
"Send a Reset command to set the operation mode to 0.\n<END>",
"<BEGIN>\n## `sense_tta`",
"Activate the RF field and probe for a Type A Target.",
" The RC-S956 can discover all Type A Targets (Type 1 Tag, Type\n 2 Tag, and Type 4A Tag) at 106 kbps. Due to firmware\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_service_code 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 search_service_code 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... | Search for a service code that corresponds to an index.
The Search Service Code command provides access to the
iterable list of services and areas within the activated
system. The *service_index* argument may be any value from 0
to 0xffff. As long as there is a service or area found for... | "Search for a service code that corresponds to an index.\n\n The Search Service Code command provides access to the\n iterable list of services and areas within the activated\n system. The *service_index* argument may be any value from 0\n to 0xffff. As long as there is a service or area fou... | 452 | false | nfcpy/nfcpy | search_service_code | 11,642 | |
LDU_FT/RPi-Distro/python-gpiozero/backward | LDU_FT | [
"<BEGIN>\n## `toggle`",
"Toggle all the output devices. For each device, if it's on, turn it\n off; if it's off, turn it on.\n<END>",
"<BEGIN>\n## `on`",
"If no arguments are specified, turn all the LEDs on. If arguments are\n specified, they must be the indexes of the LEDs you wish to turn on.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backward API.
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 backward API.
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... | Drive the robot backward by running both motors backward.
:param float speed:
Speed at which to drive the motors, as a value between 0 (stopped)
and 1 (full speed). The default is 1. | "Drive the robot backward by running both motors backward.\n\n :param float speed:\n Speed at which to drive the motors, as a value between 0 (stopped)\n and 1 (full speed). The default is 1." | 291 | false | RPi-Distro/python-gpiozero | backward | 11,643 | |
LDU_FT/splunk/splunk-sdk-python/attach | 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 attach API.
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 attach API.
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 ... | Opens a stream (a writable socket) for writing events to the index.
:param host: The host value for events written to the stream.
:type host: ``string``
:param source: The source value for events written to the stream.
:type source: ``string``
:param sourcetype: The sourcetype v... | "Opens a stream (a writable socket) for writing events to the index.\n\n :param host: The host value for events written to the stream.\n :type host: ``string``\n :param source: The source value for events written to the stream.\n :type source: ``string``\n :param sourcetype: The sourc... | 747 | false | splunk/splunk-sdk-python | attach | 11,644 | |
LDU_FT/glormph/msstitch/generate_coverage | LDU_FT | [
"<BEGIN>\n## `parse_input`",
"Build peptide table has no input file (though it has a lookup),\n which is why we set it to outfile name so the infile fetching\n and outfile creating wont error.\n<END>",
"<BEGIN>\n## `set_feature_generator`",
"Generates proteins with quant from the lookup table\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_coverage API.
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 generate_coverage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | From a dict containing protein accessions and sequences/PSM sequences,
this function returns a generator that calculates coverages for each
protein and returns the accession and coverage percentage.
Coverage is done by finding peptides in the protein seq using seq.index
and marking the range. May be slo... | "From a dict containing protein accessions and sequences/PSM sequences,\n this function returns a generator that calculates coverages for each\n protein and returns the accession and coverage percentage.\n Coverage is done by finding peptides in the protein seq using seq.index\n and marking the range. May b... | 233 | false | glormph/msstitch | generate_coverage | 11,645 | |
LDU_FT/CameronLonsdale/lantern/_calculate_chi_squared | LDU_FT | [
"<BEGIN>\n## `frequency_to_probability`",
"Transform a ``frequency_map`` into a map of probability using the sum of all frequencies as the total.",
" Example:\n >>> frequency_to_probability({'a': 2, 'b': 2})\n {'a': 0.5, 'b': 0.5}",
" Args:\n frequency_map (dict): The dictionary to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate_chi_squared 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 _calculate_chi_squared API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | A measure of the observed frequency of the symbol versus the expected frequency.
If the value is 0 then the texts are exactly alike for that symbol. | "A measure of the observed frequency of the symbol versus the expected frequency.\n If the value is 0 then the texts are exactly alike for that symbol." | 131 | false | CameronLonsdale/lantern | _calculate_chi_squared | 11,646 | |
LDU_FT/yatiml/yatiml/__sweeten | LDU_FT | [
"<BEGIN>\n## `class_subobjects`",
"Find the aggregated subobjects of an object.",
" These are the public attributes.",
" Args:\n class_: The class whose subobjects to return.",
" Yields:\n Tuples (name, type, required) describing subobjects.\n<END>",
"<BEGIN>\n## `__sweeten`",
"Ap... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __sweeten API.
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 __sweeten API.
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... | Applies the user's yatiml_sweeten() function(s), if any.
Sweetening is done for the base classes first, then for the \
derived classes, down the hierarchy to the class we're \
constructing.
Args:
dumper: The dumper that is dumping this object.
class_: The type o... | "Applies the user's yatiml_sweeten() function(s), if any.\n\n Sweetening is done for the base classes first, then for the \\\n derived classes, down the hierarchy to the class we're \\\n constructing.\n\n Args:\n dumper: The dumper that is dumping this object.\n class_:... | 224 | false | yatiml/yatiml | __sweeten | 11,647 | |
LDU_FT/maxpumperla/elephas/get_neutral | LDU_FT | [
"<BEGIN>\n## `add_params`",
"Add two lists of parameters one by one",
" :param param_list_left: list of numpy arrays\n :param param_list_right: list of numpy arrays\n :return: list of numpy arrays\n<END>",
"<BEGIN>\n## `subtract_params`",
"Subtract two lists of parameters",
" :param param_list... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_neutral API.
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_neutral API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Get list of zero-valued numpy arrays for
specified list of numpy arrays
:param array_list: list of numpy arrays
:return: list of zeros of same shape as input | "Get list of zero-valued numpy arrays for\n specified list of numpy arrays\n\n :param array_list: list of numpy arrays\n :return: list of zeros of same shape as input" | 87 | false | maxpumperla/elephas | get_neutral | 11,648 | |
LDU_FT/port-zero/mite/create_customer | LDU_FT | [
"<BEGIN>\n## `request`",
"Low-level request interface to mite. Takes a HTTP request scheme (lower\n case!), a URL to request (relative), and optionally data to add to the\n request. Either returns the JSON body of the request or raises a \n HttpException.\n<END>",
"<BEGIN>\n## `get`",
"Lo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_customer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_customer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Creates a customer with a name. All other parameters are optional. They
are: `note`, `active_hourly_rate`, `hourly_rate`,
`hourly_rates_per_service`, and `archived`. | "Creates a customer with a name. All other parameters are optional. They\n are: `note`, `active_hourly_rate`, `hourly_rate`,\n `hourly_rates_per_service`, and `archived`." | 32 | false | port-zero/mite | create_customer | 11,649 | |
LDU_FT/onnx/onnxmltools/check_input_and_output_types | LDU_FT | [
"<BEGIN>\n## `apply_cast`",
":param to: enum defined in ONNX TensorProto.DataType, for example, TensorProto.FLOAT and TensorProto.INT64.\n<END>",
"<BEGIN>\n## `apply_gemm`",
"Applies operator `gemm <https://github.com/onnx/onnx/blob/master/docs/Operators.md#gemm>`.\n<END>",
"<BEGIN>\n## `apply_upsample`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_input_and_output_types API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_input_and_output_types API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Check if the type(s) of input(s)/output(s) is(are) correct
:param operator: A Operator object
:param good_input_types: A list of allowed input types (e.g., [FloatTensorType, Int64TensorType]) or None. None
means that we skip the check of the input types.
:param good_output_types: A list of allowed outp... | "Check if the type(s) of input(s)/output(s) is(are) correct\n\n :param operator: A Operator object\n :param good_input_types: A list of allowed input types (e.g., [FloatTensorType, Int64TensorType]) or None. None\n means that we skip the check of the input types.\n :param good_output_types: A list of allowe... | 300 | false | onnx/onnxmltools | check_input_and_output_types | 11,650 | |
LDU_FT/diging/tethne/attribs_to_string | LDU_FT | [
"<BEGIN>\n## `to_dxgmml`",
"Writes a :class:`.GraphCollection` to\n `dynamic XGMML. <https://code.google.com/p/dynnetwork/wiki/DynamicXGMML>`_.",
" Dynamic XGMML is a schema for describing dynamic networks in Cytoscape 3.0.\n This method assumes that `Graph` indices are orderable points in time\n (e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attribs_to_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attribs_to_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | A more specific version of the subdict utility aimed at handling
node and edge attribute dictionaries for NetworkX file formats such as
gexf (which does not allow attributes to have a list type) by making
them writable in those formats | "A more specific version of the subdict utility aimed at handling\n node and edge attribute dictionaries for NetworkX file formats such as\n gexf (which does not allow attributes to have a list type) by making\n them writable in those formats" | 497 | false | diging/tethne | attribs_to_string | 11,651 | |
LDU_FT/yero13/na3x/sort_set | LDU_FT | [
"<BEGIN>\n## `agg_multi_func`",
"Aggregates several functions\n :param values: list of objects (dict)\n :param agg_field: target field to calculate aggregates\n :param agg_funcs: list of aggregate functions\n :param group_by: field used to determine group\n :return: dict {agg_fu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_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 extracte... | Apply sorting to input dataset
:param input:
:param params:
:return: sorted data | "Apply sorting to input dataset\n :param input:\n :param params:\n :return: sorted data" | 82 | false | yero13/na3x | sort_set | 11,652 | |
LDU_FT/InQuest/python-sandboxapi/analyses | 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 analyses API.
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 analyses API.
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... | Retrieve a list of analyzed samples.
:rtype: list
:return: List of objects referencing each analyzed file. | "Retrieve a list of analyzed samples.\n\n :rtype: list\n :return: List of objects referencing each analyzed file." | 93 | false | InQuest/python-sandboxapi | analyses | 11,653 | |
LDU_FT/openego/eTraGo/graph_from_edges | LDU_FT | [
"<BEGIN>\n## `tsam_cluster`",
"Parameters\n ----------\n df : pd.DataFrame\n DataFrame with timeseries to cluster",
" Returns\n -------\n timeseries : pd.DataFrame\n Clustered timeseries\n<END>",
"<BEGIN>\n## `update_data_frames`",
"Updates the snapshots, snapshots weights and t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the graph_from_edges API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the graph_from_edges API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Constructs an undirected multigraph from a list containing data on
weighted edges.
Parameters
----------
edges : list
List of tuples each containing first node, second node, weight, key.
Returns
-------
M : :class:`networkx.classes.multigraph.MultiGraph | "Constructs an undirected multigraph from a list containing data on\n weighted edges.\n\n Parameters\n ----------\n edges : list\n List of tuples each containing first node, second node, weight, key.\n\n Returns\n -------\n M : :class:`networkx.classes.multigraph.MultiGraph" | 318 | false | openego/eTraGo | graph_from_edges | 11,654 | |
LDU_FT/opereto/pyopereto/get_process_flow | LDU_FT | [
"<BEGIN>\n## `get_service_version`",
"get_service_version(self, service_id, mode='production', version='default')",
" | Get a specific version details of a given service. Opereto will try to fetch the requested service version. If not found, it will return the default production version. The \"actual_ver... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_process_flow API.
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_process_flow API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | get_process_flow(self, pid=None)
Get process in flow context. The response returns a sub-tree of the whole flow containing the requested process, its direct children processes, and all ancestors.
You can navigate within the flow backword and forward by running this call on the children or ancestors of ... | "get_process_flow(self, pid=None)\n\n Get process in flow context. The response returns a sub-tree of the whole flow containing the requested process, its direct children processes, and all ancestors.\n You can navigate within the flow backword and forward by running this call on the children or ancestors... | 220 | false | opereto/pyopereto | get_process_flow | 11,655 | |
LDU_FT/xray7224/PyPump/remove | LDU_FT | [
"<BEGIN>\n## `verifier`",
"Will ask user to click link to accept app and write code\n<END>",
"<BEGIN>\n## `post_note`",
"Post note and return the URL of the posted note\n<END>",
"<BEGIN>\n## `get_obj_id`",
"Get the id of a PumpObject.",
" :param item: id string or PumpObject\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API.
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 remove API.
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 ... | Removes a member from the collection.
:param obj: Object to remove.
Example:
>>> mycollection.remove(pump.Person('bob@example.org')) | "Removes a member from the collection.\n\n :param obj: Object to remove.\n\n Example:\n >>> mycollection.remove(pump.Person('bob@example.org'))" | 100 | false | xray7224/PyPump | remove | 11,656 | |
LDU_FT/dsoprea/NsqSpinner/msg_timeout | LDU_FT | [
"<BEGIN>\n## `__send_rdy`",
"Determine the RDY value, and set it. It can either be a static value\n a callback, or None. If it's None, we'll calculate the value based on\n our limits and connection counts.",
" The documentation recommends starting with (1), but since we are always\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the msg_timeout API.
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 msg_timeout API.
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... | msg_timeout (nsqd 0.2.28+) configure the server-side message timeout
for messages delivered to this client. | "msg_timeout (nsqd 0.2.28+) configure the server-side message timeout \n for messages delivered to this client." | 50 | false | dsoprea/NsqSpinner | msg_timeout | 11,657 | |
LDU_FT/ska-sa/kittens/weakref_proxy | LDU_FT | [
"<BEGIN>\n## `load_icons`",
"load all icons found in path, subdirs '<package>/icons/<appname>'.\n Package is optional.\n<END>",
"<BEGIN>\n## `assign`",
"Reassign pixmap or xpm string array to wrapper\n<END>",
"<BEGIN>\n## `_load`",
"load all icons found in path, subdirs 'icons/appname\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the weakref_proxy API.
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 weakref_proxy API.
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 either a weakref.proxy for the object, or if object is already a proxy,
returns itself. | "returns either a weakref.proxy for the object, or if object is already a proxy,\n returns itself." | 16 | false | ska-sa/kittens | weakref_proxy | 11,658 | |
LDU_FT/ArangoDB-Community/pyArango/save | LDU_FT | [
"<BEGIN>\n## `_create`",
"Creates an index of any type according to postData\n<END>",
"<BEGIN>\n## `createVertex`",
"adds a vertex to the graph and returns it\n<END>",
"<BEGIN>\n## `deleteVertex`",
"deletes a vertex from the graph as well as al linked edges\n<END>",
"<BEGIN>\n## `link`",
"A shorthand ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
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 save API.
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... | Works like Document's except that you must specify '_from' and '_to' vertices before.
There's also a links() function especially for first saves. | "Works like Document's except that you must specify '_from' and '_to' vertices before.\n There's also a links() function especially for first saves." | 105 | false | ArangoDB-Community/pyArango | save | 11,659 | |
LDU_FT/equinor/segyio/xline | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a new segy file.",
" Create a new segy file with the geometry and properties given by `spec`.\n This enables creating SEGY files from your data. The created file supports\n all segyio modes, but has an emphasis on writing. The spec must be\n complete, otherwise an exc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xline API.
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 xline API.
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... | Interact with segy in crossline mode
Returns
-------
xline : Line or None
Raises
------
ValueError
If the file is unstructured
Notes
-----
.. versionadded:: 1.1 | "Interact with segy in crossline mode\n\n Returns\n -------\n xline : Line or None\n\n Raises\n ------\n ValueError\n If the file is unstructured\n\n Notes\n -----\n .. versionadded:: 1.1" | 250 | false | equinor/segyio | xline | 11,660 | |
LDU_FT/mongolab/mongoctl/get_repl_lag | LDU_FT | [
"<BEGIN>\n## `ensure_dir`",
"If DIR_PATH does not exist, makes it. Failing that, raises Exception.\n Returns True if dir already existed; False if it had to be made.\n<END>",
"<BEGIN>\n## `is_same_host`",
"Returns true if host1 == host2 OR map to the same host (using DNS)\n<END>",
"<BEGIN>\n## `is_same_a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_repl_lag API.
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_repl_lag API.
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... | Given two 'members' elements from rs.status(),
return lag between their optimes (in secs). | "Given two 'members' elements from rs.status(),\n return lag between their optimes (in secs)." | 46 | false | mongolab/mongoctl | get_repl_lag | 11,661 | |
LDU_FT/geophysics-ubonn/crtomo_tools/sipdir_is_finished | LDU_FT | [
"<BEGIN>\n## `clear_measurements`",
"Remove all measurements from self.measurements. Reset the\n measurement counter. All ID are invalidated.\n<END>",
"<BEGIN>\n## `add_measurements`",
"Add new measurements to this instance",
" Parameters\n ----------\n measurements: numpy.ndarra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sipdir_is_finished 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 sipdir_is_finished API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Return the state of modeling and inversion for a given SIP dir. The
result does not take into account sensitivities or potentials, as
optionally generated by CRMod.
Parameters
----------
sipdir: string
Directory to check
Returns
-------
crmod_is_finished: bool
True if a... | "Return the state of modeling and inversion for a given SIP dir. The\n result does not take into account sensitivities or potentials, as\n optionally generated by CRMod.\n\n Parameters\n ----------\n sipdir: string\n Directory to check\n\n Returns\n -------\n crmod_is_finished: bool\n ... | 525 | false | geophysics-ubonn/crtomo_tools | sipdir_is_finished | 11,662 | |
LDU_FT/MozillaSecurity/fuzzfetch/extract_zip | LDU_FT | [
"<BEGIN>\n## `_si`",
"Format a number using base-2 SI prefixes\n<END>",
"<BEGIN>\n## `_extract_file`",
"Extract files while explicitly setting the proper permissions\n<END>",
"<BEGIN>\n## `build_string`",
"Taskcluster denotes builds in one of two formats - i.e. linux64-asan or linux64-asan-opt\n Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_zip API.
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 extract_zip API.
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... | Download and extract a zip artifact
@type suffix:
@param suffix:
@type path:
@param path: | "Download and extract a zip artifact\n\n @type suffix:\n @param suffix:\n\n @type path:\n @param path:" | 60 | false | MozillaSecurity/fuzzfetch | extract_zip | 11,663 | |
LDU_FT/KnorrFG/pyparadigm/unicode_char | LDU_FT | [
"<BEGIN>\n## `_normalize`",
"rescales a numpy array, so that min is 0 and max is 255\n<END>",
"<BEGIN>\n## `to_24bit_gray`",
"returns a matrix that contains RGB channels, and colors scaled\n from 0 to 255\n<END>",
"<BEGIN>\n## `apply_color_map`",
"returns an RGB matrix scaled by a matplotlib color map\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unicode_char API.
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 unicode_char API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | returns a handler that listens for unicode characters | "returns a handler that listens for unicode characters" | 86 | false | KnorrFG/pyparadigm | unicode_char | 11,664 | |
LDU_FT/robotpy/pyfrc/drive | LDU_FT | [
"<BEGIN>\n## `compute`",
"Call this when vision processing should be enabled",
" :param now: The value passed to ``update_sim``\n :param x: Returned from physics_controller.get_position\n :param y: Returned from physics_controller.get_position\n :param angle... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drive API.
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 drive API.
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... | Call this from your :func:`PhysicsEngine.update_sim` function.
Will update the robot's position on the simulation field.
You can either calculate the speed & rotation manually, or you
can use the predefined functions in :mod:`pyfrc.physics.drivetrains`.
The outpu... | "Call this from your :func:`PhysicsEngine.update_sim` function.\n Will update the robot's position on the simulation field.\n\n You can either calculate the speed & rotation manually, or you\n can use the predefined functions in :mod:`pyfrc.physics.drivetrains`.\n \n Th... | 109 | false | robotpy/pyfrc | drive | 11,665 | |
LDU_FT/r0x0r/pywebview/create_window | LDU_FT | [
"<BEGIN>\n## `base_uri`",
"Get absolute path to resource, works for dev and for PyInstaller\n<END>",
"<BEGIN>\n## `parse_file_type`",
":param file_type: file type string 'description (*.file_extension1;*.file_extension2)' as required by file filter in create_file_dialog\n :return: (description, file extens... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_window API.
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 create_window API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Create a web view window using a native GUI. The execution blocks after this function is invoked, so other
program logic must be executed in a separate thread.
:param title: Window title
:param url: URL to load
:param width: window width. Default is 800px
:param height:window height. Default is 600p... | "Create a web view window using a native GUI. The execution blocks after this function is invoked, so other\n program logic must be executed in a separate thread.\n :param title: Window title\n :param url: URL to load\n :param width: window width. Default is 800px\n :param height:window height. Default i... | 33 | false | r0x0r/pywebview | create_window | 11,666 | |
LDU_FT/Microsoft/LightGBM/fit | LDU_FT | [
"<BEGIN>\n## `check_dependicies`",
"Check the dynamic symbol versions.",
" Parameters\n ----------\n objdump_string : string\n The dynamic symbol table entries of the file (result of `objdump -T` command).\n<END>",
"<BEGIN>\n## `_objective_function_wrapper`",
"Decorate an objective function.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API.
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 fit API.
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... | Build a gradient boosting model from the training set (X, y).
Parameters
----------
X : array-like or sparse matrix of shape = [n_samples, n_features]
Input feature matrix.
y : array-like of shape = [n_samples]
The target values (class labels in classification, r... | "Build a gradient boosting model from the training set (X, y).\n\n Parameters\n ----------\n X : array-like or sparse matrix of shape = [n_samples, n_features]\n Input feature matrix.\n y : array-like of shape = [n_samples]\n The target values (class labels in classific... | 379 | false | Microsoft/LightGBM | fit | 11,667 | |
LDU_FT/theislab/scanpy/louvain | LDU_FT | [
"<BEGIN>\n## `filter_cells`",
"Filter cell outliers based on counts and numbers of genes expressed.",
" For instance, only keep cells with at least `min_counts` counts or\n `min_genes` genes expressed. This is to filter measurement outliers,\n i.e. “unreliable” observations.",
" Only provide one o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the louvain API.
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 louvain API.
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... | Cluster cells into subgroups [Blondel08]_ [Levine15]_ [Traag17]_.
Cluster cells using the Louvain algorithm [Blondel08]_ in the implementation
of [Traag17]_. The Louvain algorithm has been proposed for single-cell
analysis by [Levine15]_.
This requires having ran :func:`~scanpy.pp.neighbors` or :func:... | "Cluster cells into subgroups [Blondel08]_ [Levine15]_ [Traag17]_.\n\n Cluster cells using the Louvain algorithm [Blondel08]_ in the implementation\n of [Traag17]_. The Louvain algorithm has been proposed for single-cell\n analysis by [Levine15]_.\n\n This requires having ran :func:`~scanpy.pp.neighbors` or... | 1,142 | true | theislab/scanpy | louvain | 11,668 | |
LDU_FT/openstates/billy/get_scraper | LDU_FT | [
"<BEGIN>\n## `decimal_format`",
"Format a decimal.Decimal like to 2 decimal places.\n<END>",
"<BEGIN>\n## `notification_preference`",
"Display two radio buttons for turning notifications on or off.\n The default value is is have alerts_on = True.\n<END>",
"<BEGIN>\n## `committee_object`",
"If the commi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_scraper API.
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_scraper API.
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... | import a scraper from the scraper registry | "import a scraper from the scraper registry" | 168 | false | openstates/billy | get_scraper | 11,669 | |
LDU_FT/wrongwaycn/ssdb-py/rscan | LDU_FT | [
"<BEGIN>\n## `execute`",
"Execute all the commands in the current pipeline\n<END>",
"<BEGIN>\n## `execute_command`",
"Execute a command and return a parsed response.\n<END>",
"<BEGIN>\n## `incr`",
"Increase the value at key ``name`` by ``amount``. If no key exists, the value\n will be initialized a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rscan API.
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 rscan API.
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... | Scan and return a dict mapping key/value in the top ``limit`` keys between
``name_start`` and ``name_end`` in descending order
.. note:: The range is (``name_start``, ``name_end``]. ``name_start``
isn't in the range, but ``name_end`` is.
:param string name_start: The upper bound(not... | "Scan and return a dict mapping key/value in the top ``limit`` keys between\n ``name_start`` and ``name_end`` in descending order\n\n .. note:: The range is (``name_start``, ``name_end``]. ``name_start``\n isn't in the range, but ``name_end`` is.\n\n :param string name_start: The upper bo... | 215 | false | wrongwaycn/ssdb-py | rscan | 11,670 | |
LDU_FT/eventbrite/pysoa/execute_job | LDU_FT | [
"<BEGIN>\n## `dict_to_hashable`",
"Takes a dict and returns an immutable, hashable version of that dict that can be used as a key in dicts or as a\n set value. Any two dicts passed in with the same content are guaranteed to return the same value. Any two dicts\n passed in with different content are guarante... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_job API.
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 execute_job API.
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... | Processes and runs the action requests contained in the job and returns a `JobResponse`.
:param job_request: The job request
:type job_request: dict
:return: A `JobResponse` object
:rtype: JobResponse | "Processes and runs the action requests contained in the job and returns a `JobResponse`.\n\n :param job_request: The job request\n :type job_request: dict\n\n :return: A `JobResponse` object\n :rtype: JobResponse" | 178 | false | eventbrite/pysoa | execute_job | 11,671 | |
LDU_FT/limix/numpy-sugar/dotd | LDU_FT | [
"<BEGIN>\n## `dotd`",
"r\"\"\"Diagonal of :math:`\\mathrm A\\mathrm B^\\intercal`.",
" If ``A`` is :math:`n\\times p` and ``B`` is :math:`p\\times n`, it is done in\n :math:`O(pn)`.",
" Args:\n A (array_like): Left matrix.\n B (array_like): Right matrix.\n out (:class:`numpy.ndar... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dotd API.
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 dotd API.
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... | r"""Diagonal of :math:`\mathrm A\mathrm B^\intercal`.
If ``A`` is :math:`n\times p` and ``B`` is :math:`p\times n`, it is done in
:math:`O(pn)`.
Args:
A (array_like): Left matrix.
B (array_like): Right matrix.
Returns:
:class:`numpy.ndarray`: Resulting diagonal. | "r\"\"\"Diagonal of :math:`\\mathrm A\\mathrm B^\\intercal`.\n\n If ``A`` is :math:`n\\times p` and ``B`` is :math:`p\\times n`, it is done in\n :math:`O(pn)`.\n\n Args:\n A (array_like): Left matrix.\n B (array_like): Right matrix.\n\n Returns:\n :class:`numpy.ndarray`: Resulting diago... | 124 | false | limix/numpy-sugar | dotd | 11,672 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.