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/happyleavesaoc/python-orvibo/_subscribe | LDU_FT | [
"<BEGIN>\n## `_setup`",
"Set up module.",
" Open a UDP socket, and listen in a thread.\n<END>",
"<BEGIN>\n## `discover`",
"Discover devices on the local network.",
" :param timeout: Optional timeout in seconds.\n :returns: Set of discovered host addresses.\n<END>",
"<BEGIN>\n## `_discover_mac`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _subscribe API.
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 _subscribe API.
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... | Subscribe to the device.
A subscription serves two purposes:
- Returns state (on/off).
- Enables state changes on the device
for a short period of time. | "Subscribe to the device.\n\n A subscription serves two purposes:\n - Returns state (on/off).\n - Enables state changes on the device\n for a short period of time." | 31 | false | happyleavesaoc/python-orvibo | _subscribe | 142,173 | |
LDU_FT/booktype/python-ooxml/_get_numbering | LDU_FT | [
"<BEGIN>\n## `parse_drawing`",
"Parse drawing element.",
" We don't do much with drawing element. We can find embeded image but we don't do more than that.\n<END>",
"<BEGIN>\n## `parse_paragraph`",
"Parse paragraph element.",
" Some other elements could be found inside of paragraph element (math, li... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_numbering API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_numbering API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns type for the list.
:Returns:
Returns type for the list. Returns "bullet" by default or in case of an error. | "Returns type for the list.\n\n :Returns:\n Returns type for the list. Returns \"bullet\" by default or in case of an error." | 117 | false | booktype/python-ooxml | _get_numbering | 142,174 | |
LDU_FT/pytorch/text/download_from_url | LDU_FT | [
"<BEGIN>\n## `load_vectors`",
"Arguments:\n vectors: one of or a list containing instantiations of the\n GloVe, CharNGram, or Vectors classes. Alternatively, one\n of or a list of available pretrained vectors:\n charngram.100d\n fasttext.en.30... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_from_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_from_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Download file, with logic (from tensor2tensor) for Google Drive | "Download file, with logic (from tensor2tensor) for Google Drive" | 131 | false | pytorch/text | download_from_url | 142,175 | |
LDU_FT/d11wtq/dockerpty/after_scenario | LDU_FT | [
"<BEGIN>\n## `before_all`",
"Pulls down busybox:latest before anything is tested.\n<END>",
"<BEGIN>\n## `after_scenario`",
"Cleans up docker containers used as test fixtures after test completes.\n<END>",
"<BEGIN>\n## `set_blocking`",
"Set the given file-descriptor blocking or non-blocking.",
" Retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the after_scenario API.
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 after_scenario API.
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... | Cleans up docker containers used as test fixtures after test completes. | "Cleans up docker containers used as test fixtures after test completes." | 66 | false | d11wtq/dockerpty | after_scenario | 142,176 | |
LDU_FT/jesford/cluster-lensing/c_DuttonMaccio | LDU_FT | [
"<BEGIN>\n## `calc_delta_c`",
"Calculate characteristic overdensity from concentration.",
" Parameters\n ----------\n c200 : ndarray or float\n Cluster concentration parameter.",
" Returns\n ----------\n ndarray or float\n Cluster characteristic overdensity, of same type as c20... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the c_DuttonMaccio API.
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 c_DuttonMaccio API.
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... | Concentration from c(M) relation in Dutton & Maccio (2014).
Parameters
----------
z : float or array_like
Redshift(s) of halos.
m : float or array_like
Mass(es) of halos (m200 definition), in units of solar masses.
h : float, optional
Hubble parameter. Default is from Planck... | "Concentration from c(M) relation in Dutton & Maccio (2014).\n\n Parameters\n ----------\n z : float or array_like\n Redshift(s) of halos.\n m : float or array_like\n Mass(es) of halos (m200 definition), in units of solar masses.\n h : float, optional\n Hubble parameter. Default is f... | 55 | false | jesford/cluster-lensing | c_DuttonMaccio | 142,177 | |
LDU_FT/arokem/python-matlab-bridge/post_gist | LDU_FT | [
"<BEGIN>\n## `split_pulls`",
"split a list of closed issues into non-PR Issues and Pull Requests\n<END>",
"<BEGIN>\n## `issues_closed_since`",
"Get all issues closed since a particular point in time. period\n can either be a datetime object, or a timedelta object. In the\n latter case, it is used as a t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_gist API.
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 post_gist API.
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... | Post some text to a Gist, and return the URL. | "Post some text to a Gist, and return the URL." | 58 | false | arokem/python-matlab-bridge | post_gist | 142,178 | |
LDU_FT/SuperCowPowers/bat/make_dict | LDU_FT | [
"<BEGIN>\n## `readlines`",
"Open the file for reading and yield lines as they are added\n<END>",
"<BEGIN>\n## `readrows`",
"The readrows method reads simply 'combines' the rows of\n multiple files OR gunzips the file and then reads the rows\n<END>",
"<BEGIN>\n## `most_recent`",
"Recursively insp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Internal method that makes sure any dictionary elements
are properly cast into the correct types. | "Internal method that makes sure any dictionary elements\n are properly cast into the correct types." | 79 | false | SuperCowPowers/bat | make_dict | 142,179 | |
LDU_FT/agile4you/bottle-neck/from_status | LDU_FT | [
"<BEGIN>\n## `wrap_callable`",
"Wraps function-based callable_obj into a `Route` instance, else\n proxies a `bottle_neck.handlers.BaseHandler` subclass instance.",
" Args:\n uri (str): The uri relative path.\n methods (tuple): A tuple of valid method strings.\n ca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Returns a class method from bottle.HTTPError.status_line attribute.
Useful for patching `bottle.HTTPError` for web services.
Args:
status_line (str): bottle.HTTPError.status_line text.
msg: The message data for response.
Returns:
Class method based on statu... | "Returns a class method from bottle.HTTPError.status_line attribute.\n Useful for patching `bottle.HTTPError` for web services.\n\n Args:\n status_line (str): bottle.HTTPError.status_line text.\n msg: The message data for response.\n\n Returns:\n Class method based... | 81 | false | agile4you/bottle-neck | from_status | 142,180 | |
LDU_FT/shaypal5/utilitime/shift_dateint | LDU_FT | [
"<BEGIN>\n## `utc_offset_by_timezone`",
"Returns the UTC offset of the given timezone in hours.",
" Arguments\n ---------\n timezone_name: str\n A string with a name of a timezone.",
" Returns\n -------\n int\n The UTC offset of the given timezone, in hours.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shift_dateint API.
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 shift_dateint API.
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... | Shifts the given dateint by the given amount of days.
Arguments
---------
dateint : int
An integer object decipting a specific calendaric day; e.g. 20161225.
days : int
The number of days to shift the given dateint by. A negative number
shifts the dateint backwards.
Returns... | "Shifts the given dateint by the given amount of days.\n\n Arguments\n ---------\n dateint : int\n An integer object decipting a specific calendaric day; e.g. 20161225.\n days : int\n The number of days to shift the given dateint by. A negative number\n shifts the dateint backwards.\n\n... | 75 | false | shaypal5/utilitime | shift_dateint | 142,181 | |
LDU_FT/anchore/anchore/export | LDU_FT | [
"<BEGIN>\n## `get_current_user_info`",
"Return the metadata about the current user as supplied by the anchore.io service. Includes permissions and tier access.",
" :return: Dict of user metadata\n<END>",
"<BEGIN>\n## `sync`",
"Sync (download) latest policies from the Anchore.io service.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export API.
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 export API.
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 ... | Export image anchore data to a JSON file. | "Export image anchore data to a JSON file." | 151 | false | anchore/anchore | export | 142,182 | |
LDU_FT/jamieleshaw/lurklib/restart | LDU_FT | [
"<BEGIN>\n## `find`",
"Finds needle in haystack.\n If needle is found return True, if not return False.\n Required arguments:\n * haystack - Text to search in.\n * needle - Text to search for.\n<END>",
"<BEGIN>\n## `send`",
"Send a raw string with the CR-LF appended to it.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restart API.
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 restart API.
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... | Tells the IRCd to restart.
Optional arguments:
* password='' - Restart command password. | "Tells the IRCd to restart.\n Optional arguments:\n * password='' - Restart command password." | 112 | false | jamieleshaw/lurklib | restart | 142,183 | |
LDU_FT/DBuildService/dockerfile-parse/content | LDU_FT | [
"<BEGIN>\n## `image_from`",
":param from_value: string like \"image:tag\" or \"image:tag AS name\"\n :return: tuple of the image and stage name, e.g. (\"image:tag\", None)\n<END>",
"<BEGIN>\n## `lines`",
":return: list containing lines (unicode) from Dockerfile\n<END>",
"<BEGIN>\n## `lines`",
"Fill Doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the content API.
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 content API.
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... | Overwrite Dockerfile with specified content
:param content: string to be written to Dockerfile | "Overwrite Dockerfile with specified content\n :param content: string to be written to Dockerfile" | 58 | false | DBuildService/dockerfile-parse | content | 142,184 | |
LDU_FT/joferkington/mpldatacursor/image_props | LDU_FT | [
"<BEGIN>\n## `_event_ignored`",
"Decide whether or not to ignore a click/hover event.\n<END>",
"<BEGIN>\n## `_show_annotation_box`",
"Update an existing box or create an annotation box for an event.\n<END>",
"<BEGIN>\n## `event_info`",
"Get a dict of info for the artist selected by \"event\".\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image_props API.
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 image_props API.
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 information for a pick event on an ``AxesImage`` artist. Returns a dict
of "i" & "j" index values of the image for the point clicked, and "z": the
(uninterpolated) value of the image at i,j.
Parameters
-----------
event : PickEvent
The pick event to process
Returns
--------
... | "Get information for a pick event on an ``AxesImage`` artist. Returns a dict\n of \"i\" & \"j\" index values of the image for the point clicked, and \"z\": the\n (uninterpolated) value of the image at i,j.\n\n Parameters\n -----------\n event : PickEvent\n The pick event to process\n\n Returns\... | 80 | false | joferkington/mpldatacursor | image_props | 142,185 | |
LDU_FT/eallik/spinoff/addWriter | LDU_FT | [
"<BEGIN>\n## `deferToGreenletPool`",
"Call function using a greenlet from the given pool and return the result as a Deferred\n<END>",
"<BEGIN>\n## `deferToGreenlet`",
"Call function using a greenlet and return the result as a Deferred\n<END>",
"<BEGIN>\n## `callMultipleInGreenlet`",
"Call a list of functi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addWriter API.
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 addWriter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Add a FileDescriptor for notification of data available to write. | "Add a FileDescriptor for notification of data available to write." | 60 | false | eallik/spinoff | addWriter | 142,186 | |
LDU_FT/EnigmaBridge/client.py/encrypt_with_import_key | LDU_FT | [
"<BEGIN>\n## `to_bytes`",
"Converts input to a byte string.\n Typically used in PyCrypto as an argument (e.g., key, iv)",
" :param x: string (does nothing), bytearray, array with numbers\n :return:\n<END>",
"<BEGIN>\n## `to_long`",
"Converts input to a long number (arbitrary precision python long)\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt_with_import_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt_with_import_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Encrypts plain buffer with the import key
:param plain:
:return: | "Encrypts plain buffer with the import key\n :param plain:\n :return:" | 107 | false | EnigmaBridge/client.py | encrypt_with_import_key | 142,187 | |
LDU_FT/utek/pyseaweed/head | LDU_FT | [
"<BEGIN>\n## `get_file`",
"Get file from WeedFS.",
" Returns file content. May be problematic for large files as content is\n stored in memory.",
" Args:\n **fid**: File identifier <volume_id>,<file_name_hash>",
" Returns:\n Content of the file with provided... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the head API.
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 head API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Returns response to http HEAD
on provided url | "Returns response to http HEAD\n on provided url" | 67 | false | utek/pyseaweed | head | 142,188 | |
LDU_FT/mrstephenneal/mysql-toolkit/_fetch | LDU_FT | [
"<BEGIN>\n## `count_rows_duplicates`",
"Get the number of rows that do not contain distinct values.\n<END>",
"<BEGIN>\n## `count_rows`",
"Get the number of rows in a particular table.\n<END>",
"<BEGIN>\n## `count_rows_distinct`",
"Get the number distinct of rows in a particular table.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fetch API.
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 _fetch API.
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 ... | Execute a SQL query and return a result.
Recursively disconnect and reconnect to the database
if an error occurs. | "Execute a SQL query and return a result.\n\n Recursively disconnect and reconnect to the database\n if an error occurs." | 204 | false | mrstephenneal/mysql-toolkit | _fetch | 142,189 | |
LDU_FT/mkoura/dump2polarion/import_junit | LDU_FT | [
"<BEGIN>\n## `only_passed_and_wait`",
"Returns PASS and WAIT results only, skips everything else.\n<END>",
"<BEGIN>\n## `insert_source_info`",
"Adds info about source of test result if available.\n<END>",
"<BEGIN>\n## `setup_parametrization`",
"Modifies result's data according to the parametrization setti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_junit API.
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 import_junit API.
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... | Reads the content of the junit-results file produced by pytest and returns imported data. | "Reads the content of the junit-results file produced by pytest and returns imported data." | 107 | false | mkoura/dump2polarion | import_junit | 142,190 | |
LDU_FT/myaooo/pysbrl/print_rule | LDU_FT | [
"<BEGIN>\n## `print_rule`",
"print the rule in a nice way\n :param rule: An instance of Rule\n :param feature_names: a list of n_features feature names,\n :param category_names: the names of the categories of each feature.\n :param label: Can take two values, 'label': just print the label as output, o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_rule API.
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 print_rule API.
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... | print the rule in a nice way
:param rule: An instance of Rule
:param feature_names: a list of n_features feature names,
:param category_names: the names of the categories of each feature.
:param label: Can take two values, 'label': just print the label as output, or 'prob': print the prob distribution.
... | "print the rule in a nice way\n :param rule: An instance of Rule\n :param feature_names: a list of n_features feature names,\n :param category_names: the names of the categories of each feature.\n :param label: Can take two values, 'label': just print the label as output, or 'prob': print the prob distribut... | 29 | false | myaooo/pysbrl | print_rule | 142,191 | |
LDU_FT/BrianHicks/emit/register_route | LDU_FT | [
"<BEGIN>\n## `parse_querystring`",
"parse a querystring into keys and values\n<END>",
"<BEGIN>\n## `node`",
"\\\n Decorate a function to make it a node.",
" .. note::\n decorating as a node changes the function signature. Nodes should\n accept a single argument, which will ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_route API.
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 register_route API.
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... | Add routes to the routing dictionary
:param origins: a number of origins to register
:type origins: :py:class:`str` or iterable of :py:class:`str` or None
:param destination: where the origins should point to
:type destination: :py:class:`str`
Routing dictionary takes the follo... | "Add routes to the routing dictionary\n\n :param origins: a number of origins to register\n :type origins: :py:class:`str` or iterable of :py:class:`str` or None\n :param destination: where the origins should point to\n :type destination: :py:class:`str`\n\n Routing dictionary takes t... | 50 | false | BrianHicks/emit | register_route | 142,192 | |
LDU_FT/bigchaindb/bigchaindb-driver/_input_valid | LDU_FT | [
"<BEGIN>\n## `info`",
"Retrieves information of the node being connected to via the\n root endpoint ``'/'``.",
" Args:\n headers (dict): Optional headers to pass to the request.",
" Returns:\n dict: Details of the node that this instance is connected\n to.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _input_valid API.
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 _input_valid API.
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... | Validates a single Input against a single Output.
Note:
In case of a `CREATE` Transaction, this method
does not validate against `output_condition_uri`.
Args:
input_ (:class:`~bigchaindb.common.transaction.
Input`) The Input t... | "Validates a single Input against a single Output.\n\n Note:\n In case of a `CREATE` Transaction, this method\n does not validate against `output_condition_uri`.\n\n Args:\n input_ (:class:`~bigchaindb.common.transaction.\n Input`) Th... | 169 | false | bigchaindb/bigchaindb-driver | _input_valid | 142,193 | |
LDU_FT/pavlin-policar/openTSNE/to_new | LDU_FT | [
"<BEGIN>\n## `has_c_library`",
"Check whether a C/C++ library is available on the system to the compiler.",
" Parameters\n ----------\n library: str\n The library we want to check for e.g. if we are interested in FFTW3, we\n want to check for `fftw3.h`, so this parameter will be `fftw3`.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_new API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_new API.
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 the affinities of new samples to the initial samples.
This is necessary for embedding new data points into an existing
embedding.
Parameters
----------
data: np.ndarray
The data points to be added to the existing embedding.
k: int
The nu... | "Compute the affinities of new samples to the initial samples.\n\n This is necessary for embedding new data points into an existing\n embedding.\n\n Parameters\n ----------\n data: np.ndarray\n The data points to be added to the existing embedding.\n\n k: int\n ... | 181 | false | pavlin-policar/openTSNE | to_new | 142,194 | |
LDU_FT/persephone-tools/persephone/initialize_media_descriptor | LDU_FT | [
"<BEGIN>\n## `handle_unhandled_exception`",
"Handler for unhandled exceptions that will write to the logs\n<END>",
"<BEGIN>\n## `write_transcriptions`",
"Write the utterance transcriptions to files in the tgt_dir. Is lazy and\n checks if the file already exists.",
" Args:\n utterances: A list o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_media_descriptor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_media_descriptor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Returns the media descriptor for the first media descriptor where
the file can be found. | "Returns the media descriptor for the first media descriptor where\n the file can be found." | 219 | false | persephone-tools/persephone | initialize_media_descriptor | 142,195 | |
LDU_FT/rigetti/pyquil/_noise_model_program_header | LDU_FT | [
"<BEGIN>\n## `to_latex`",
"Translates a given pyquil Program to a TikZ picture in a Latex document.",
" :param Program circuit: The circuit to be drawn, represented as a pyquil program.\n :param dict settings: An optional dictionary with settings for drawing the circuit. See `get_default_settings`\n i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _noise_model_program_header API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _noise_model_program_header API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Generate the header for a pyquil Program that uses ``noise_model`` to overload noisy gates.
The program header consists of 3 sections:
- The ``DEFGATE`` statements that define the meaning of the newly introduced "noisy" gate
names.
- The ``PRAGMA ADD-KRAUS`` statements to overload these n... | "Generate the header for a pyquil Program that uses ``noise_model`` to overload noisy gates.\n The program header consists of 3 sections:\n\n - The ``DEFGATE`` statements that define the meaning of the newly introduced \"noisy\" gate\n names.\n - The ``PRAGMA ADD-KRAUS`` statements to overload... | 1,152 | true | rigetti/pyquil | _noise_model_program_header | 142,196 | |
LDU_FT/GluuFederation/oxd-python/update_site | LDU_FT | [
"<BEGIN>\n## `register_site`",
"Function to register the site and generate a unique ID for the site",
" Returns:\n **string:** The ID of the site (also called client id) if the registration is successful",
" Raises:\n **OxdServerError:** If the site registration fails.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_site API.
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 update_site API.
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... | Function to update the site's information with OpenID Provider.
This should be called after changing the values in the cfg file.
Parameters:
* **client_secret_expires_at (long, OPTIONAL):** milliseconds since 1970, can be used to extends client lifetime
Returns:
**bool:... | "Function to update the site's information with OpenID Provider.\n This should be called after changing the values in the cfg file.\n\n Parameters:\n * **client_secret_expires_at (long, OPTIONAL):** milliseconds since 1970, can be used to extends client lifetime\n\n Returns:\n ... | 124 | false | GluuFederation/oxd-python | update_site | 142,197 | |
LDU_FT/maxfischer2781/chainlet/_dismiss_worker | LDU_FT | [
"<BEGIN>\n## `skip_pickle_inject`",
"skip global wrapper._raw_slave names used only for pickle support\n<END>",
"<BEGIN>\n## `wraplet_signature`",
"have wrapplets use the signature of the slave\n<END>",
"<BEGIN>\n## `_chain_forks`",
"Detect whether a sequence of elements leads to a fork of streams\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dismiss_worker API.
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 _dismiss_worker API.
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... | Dismiss ``worker`` unless it is still required | "Dismiss ``worker`` unless it is still required" | 95 | false | maxfischer2781/chainlet | _dismiss_worker | 142,198 | |
LDU_FT/BD2KOnFHIR/i2b2model/add_connection_args | LDU_FT | [
"<BEGIN>\n## `change_column_length`",
"Change the column length in the supplied table\n<END>",
"<BEGIN>\n## `_db_urls`",
"Return the crc and ontology db urls\n :param opts: options\n :return: Tuple w/ crc and ontology url\n<END>",
"<BEGIN>\n## `_tables`",
"Return a list of all known tables a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_connection_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_connection_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Add the database connection arguments to the supplied parser
:param parser: parser to add arguments to
:param strong_config_file: If True, force --conf to be processed. This is strictly a test for programming errors,
and has to be skipped due to removefacts function.
:return: parser | "Add the database connection arguments to the supplied parser\n\n :param parser: parser to add arguments to\n :param strong_config_file: If True, force --conf to be processed. This is strictly a test for programming errors,\n and has to be skipped due to removefacts function.\n :return: parser" | 64 | false | BD2KOnFHIR/i2b2model | add_connection_args | 142,199 | |
LDU_FT/matousc89/padasip/PCA_components | LDU_FT | [
"<BEGIN>\n## `standardize_back`",
"This is function for de-standarization of input series.",
" **Args:**",
" * `xs` : standardized input (1 dimensional array)",
" * `offset` : offset to add (float).",
" * `scale` : scale (float).",
" **Returns:**",
" * `x` : original (destandardised)... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the PCA_components API.
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 PCA_components API.
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... | Principal Component Analysis helper to check out eigenvalues of components.
**Args:**
* `x` : input matrix (2d array), every row represents new sample
**Returns:**
* `components`: sorted array of principal components eigenvalues | "Principal Component Analysis helper to check out eigenvalues of components.\n\n **Args:**\n\n * `x` : input matrix (2d array), every row represents new sample\n\n **Returns:**\n \n * `components`: sorted array of principal components eigenvalues" | 327 | false | matousc89/padasip | PCA_components | 142,200 | |
LDU_FT/afilipovich/gglsbl/store_full_hash | LDU_FT | [
"<BEGIN>\n## `lookup_hash_prefix`",
"Lookup hash prefixes by cue (first 4 bytes of hash)",
" Returns a tuple of (value, negative_cache_expired).\n<END>",
"<BEGIN>\n## `store_full_hash`",
"Store full hash found for the given hash prefix\n<END>",
"<BEGIN>\n## `get_client_state`",
"Get a dict of kno... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_full_hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_full_hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Store full hash found for the given hash prefix | "Store full hash found for the given hash prefix" | 35 | false | afilipovich/gglsbl | store_full_hash | 142,201 | |
LDU_FT/martinmcbride/pysound/square_wave | LDU_FT | [
"<BEGIN>\n## `create_buffer`",
"If the value is a float, create a numpy array of the required length, filled with value\n If the value is a numpy array, check its length\n Otherwise throw a type error\n<END>",
"<BEGIN>\n## `set_time`",
"Update the length of the buffer in seconds\n :param time: nu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the square_wave API.
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 square_wave API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Generate a square wave
:param params: buffer parameters, controls length of signal created
:param frequency: wave frequency (array or value)
:param amplitude: wave amplitude (array or value)
:param offset: offset of wave mean from zero (array or value)
:param ratio: ratio of high to low time (array ... | "Generate a square wave\n :param params: buffer parameters, controls length of signal created\n :param frequency: wave frequency (array or value)\n :param amplitude: wave amplitude (array or value)\n :param offset: offset of wave mean from zero (array or value)\n :param ratio: ratio of high to low time (... | 28 | false | martinmcbride/pysound | square_wave | 142,202 | |
LDU_FT/satellogic/telluric/tileserver_optimized_raster | LDU_FT | [
"<BEGIN>\n## `join`",
"This method takes a list of rasters and returns a raster that is constructed of all of them\n<END>",
"<BEGIN>\n## `merge_all`",
"Merge a list of rasters, cropping by a region of interest.\n There are cases that the roi is not precise enough for this cases one can use,\n the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tileserver_optimized_raster API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tileserver_optimized_raster API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | This method converts a raster to a tileserver optimized raster.
The method will reproject the raster to align to the xyz system, in resolution and projection
It will also create overviews
And finally it will arragne the raster in a cog way.
You could take the dest file upload it to a web... | "This method converts a raster to a tileserver optimized raster.\n The method will reproject the raster to align to the xyz system, in resolution and projection\n It will also create overviews\n And finally it will arragne the raster in a cog way.\n You could take the dest file upload it to ... | 261 | false | satellogic/telluric | tileserver_optimized_raster | 142,203 | |
LDU_FT/openstax/cnx-archive/find_migrations_directory | LDU_FT | [
"<BEGIN>\n## `redirect_legacy_content`",
"Redirect from legacy /content/id/version to new /contents/uuid@version.",
" Handles collection context (book) as well.\n<END>",
"<BEGIN>\n## `robots`",
"Return a simple \"don't index me\" robots.txt file.\n<END>",
"<BEGIN>\n## `_get_sql`",
"Returns the conten... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_migrations_directory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_migrations_directory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Finds and returns the location of the database migrations directory.
This function is used from a setuptools entry-point for db-migrator. | "Finds and returns the location of the database migrations directory.\n This function is used from a setuptools entry-point for db-migrator." | 208 | false | openstax/cnx-archive | find_migrations_directory | 142,204 | |
LDU_FT/uuazed/numerapi/leaderboard | LDU_FT | [
"<BEGIN>\n## `_unzip_file`",
"unzips file located at src_path into destination_path\n<END>",
"<BEGIN>\n## `get_dataset_url`",
"Fetch url of the current dataset.",
" Args:\n tournament (int, optional): ID of the tournament, defaults to 1",
" Returns:\n str: url of the cu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the leaderboard API.
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 leaderboard API.
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... | Retrieves the leaderboard for the given round. | "Retrieves the leaderboard for the given round." | 163 | false | uuazed/numerapi | leaderboard | 142,205 | |
LDU_FT/nitely/django-hooks/unregister | LDU_FT | [
"<BEGIN>\n## `register`",
"Register a new hook. Not required (see :py:func:`.connect` method)",
" :param str name: The hook name\n :return: Django signal\n :rtype: :py:class:`django.dispatch.Signal`\n<END>",
"<BEGIN>\n## `connect`",
"Connects a function to a hook.\\\n Creates the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unregister API.
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 unregister API.
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... | Remove a previously registered callback
:param str name: Hook name
:param callable func: A function reference\
that was registered previously | "Remove a previously registered callback\n\n :param str name: Hook name\n :param callable func: A function reference\\\n that was registered previously" | 39 | false | nitely/django-hooks | unregister | 142,206 | |
LDU_FT/asphalt-framework/asphalt/add_resource_factory | LDU_FT | [
"<BEGIN>\n## `run_application`",
"Configure logging and start the given root component in the default asyncio event loop.",
" Assuming the root component was started successfully, the event loop will continue running\n until the process is terminated.",
" Initializes the logging system first based on... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_resource_factory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_resource_factory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Add a resource factory to this context.
This will cause a ``resource_added`` event to be dispatched.
A resource factory is a callable that generates a "contextual" resource when it is
requested by either using any of the methods :meth:`get_resource`, :meth:`require_resource`
or :meth:`... | "Add a resource factory to this context.\n\n This will cause a ``resource_added`` event to be dispatched.\n\n A resource factory is a callable that generates a \"contextual\" resource when it is\n requested by either using any of the methods :meth:`get_resource`, :meth:`require_resource`\n o... | 143 | false | asphalt-framework/asphalt | add_resource_factory | 142,207 | |
LDU_FT/SatelliteQE/nailgun/search | LDU_FT | [
"<BEGIN>\n## `main`",
"Create an identical user account on a pair of satellites.\n<END>",
"<BEGIN>\n## `get_organization_id`",
"Return the ID of the organization with label ``label``.",
" :param server_config: A dict of information about the server being talked\n to. The dict should include the ke... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Search for entities.
At its simplest, this method searches for all entities of a given kind.
For example, to ask for all
:class:`nailgun.entities.LifecycleEnvironment` entities::
LifecycleEnvironment().search()
Values on an entity are used to generate a search query, and t... | "Search for entities.\n\n At its simplest, this method searches for all entities of a given kind.\n For example, to ask for all\n :class:`nailgun.entities.LifecycleEnvironment` entities::\n\n LifecycleEnvironment().search()\n\n Values on an entity are used to generate a search que... | 695 | false | SatelliteQE/nailgun | search | 142,208 | |
LDU_FT/rsinger86/drf-flex-fields/_get_expand_input | LDU_FT | [
"<BEGIN>\n## `_make_expanded_field_serializer`",
"Returns an instance of the dynamically created nested serializer.\n<END>",
"<BEGIN>\n## `_import_serializer_class`",
"Resolves a dot-notation string to serializer class.\n <app>.<SerializerName> will automatically be interpreted as:\n <app>.seria... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_expand_input API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_expand_input API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | If expand value is explicitliy passed, just return it.
If parsing from request, ensure that the value complies with
the "permitted_expands" list passed into the context from the
FlexFieldsMixin. | "If expand value is explicitliy passed, just return it.\n If parsing from request, ensure that the value complies with\n the \"permitted_expands\" list passed into the context from the\n FlexFieldsMixin." | 16 | false | rsinger86/drf-flex-fields | _get_expand_input | 142,209 | |
LDU_FT/SHDShim/pytheos/bm3_dPdV | LDU_FT | [
"<BEGIN>\n## `constq_grun`",
"calculate Gruneisen parameter for constant q",
" :param v: unit-cell volume in A^3\n :param v0: unit-cell volume in A^3 at 1 bar\n :param gamma0: Gruneisen parameter at 1 bar\n :param q: logarithmic derivative of Grunseinen parameter\n :return: Gruneisen parameter at... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bm3_dPdV API.
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 bm3_dPdV API.
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... | calculate dP/dV for numerical calculation of bulk modulus
according to test this differs from analytical result by 1.e-5
:param v: volume
:param v0: volume at reference conditions
:param k0: bulk modulus at reference conditions
:param k0p: pressure derivative of bulk modulus at different conditions... | "calculate dP/dV for numerical calculation of bulk modulus\n according to test this differs from analytical result by 1.e-5\n\n :param v: volume\n :param v0: volume at reference conditions\n :param k0: bulk modulus at reference conditions\n :param k0p: pressure derivative of bulk modulus at different con... | 234 | false | SHDShim/pytheos | bm3_dPdV | 142,210 | |
LDU_FT/kurtbrose/pyjks/new | LDU_FT | [
"<BEGIN>\n## `new`",
"Helper function to create a new TrustedCertEntry.",
" :param str alias: The alias for the Trusted Cert Entry\n :param str certs: The certificate, as a byte string.",
" :returns: A loaded :class:`TrustedCertEntry` instance, ready\n to be placed in a keystore.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new API.
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 new API.
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... | Helper function to create a new TrustedCertEntry.
:param str alias: The alias for the Trusted Cert Entry
:param str certs: The certificate, as a byte string.
:returns: A loaded :class:`TrustedCertEntry` instance, ready
to be placed in a keystore. | "Helper function to create a new TrustedCertEntry.\n\n :param str alias: The alias for the Trusted Cert Entry\n :param str certs: The certificate, as a byte string.\n\n :returns: A loaded :class:`TrustedCertEntry` instance, ready\n to be placed in a keystore." | 104 | false | kurtbrose/pyjks | new | 142,211 | |
LDU_FT/zxylvlp/PingPHP/p_InClassDef | LDU_FT | [
"<BEGIN>\n## `t_DOCCOMMENT`",
"r'((\\'\\'\\'((?!\\'\\'\\')[\\s\\S])*\\'\\'\\')|(\\'{6,8})|(\"\"\"((?!\"\"\")[\\s\\S])*\"\"\")|(\"{6,8}))[ \\t]*\\n\n<END>",
"<BEGIN>\n## `t_NATIVEPHP`",
"r'<\\?php((?!<\\?php)[\\s\\S])*\\?>[ \\t]*(?=\\n)\n<END>",
"<BEGIN>\n## `t_INDENTIFIER`",
"r'(\\$?[_a-zA-Z][_a-zA-Z0-9]*... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_InClassDef API.
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 p_InClassDef API.
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... | InClassDef : Embeded
| JustStrStatement
| DataMemberDef
| ConstDef
| MemberFuncDef
| ABSTRACT MemberFuncDec
| UseTrait | "InClassDef : Embeded\n | JustStrStatement\n | DataMemberDef\n | ConstDef\n | MemberFuncDef\n | ABSTRACT MemberFuncDec\n | UseTrait" | 74 | false | zxylvlp/PingPHP | p_InClassDef | 142,212 | |
LDU_FT/pyusb/pyusb/langids | LDU_FT | [
"<BEGIN>\n## `_try_get_string`",
"try to get a string, but return a string no matter what\n<END>",
"<BEGIN>\n## `_try_lookup`",
"try to get a string from the lookup table, return \"\" instead of key\n error\n<END>",
"<BEGIN>\n## `find`",
"r\"\"\"Find an USB device and return it.",
" find() is the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the langids API.
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 langids API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return the USB device's supported language ID codes.
These are 16-bit codes familiar to Windows developers, where for
example instead of en-US you say 0x0409. USB_LANGIDS.pdf on the usb.org
developer site for more info. String requests using a LANGID not
in this array should not be sent... | "Return the USB device's supported language ID codes.\n\n These are 16-bit codes familiar to Windows developers, where for\n example instead of en-US you say 0x0409. USB_LANGIDS.pdf on the usb.org\n developer site for more info. String requests using a LANGID not\n in this array should not b... | 229 | false | pyusb/pyusb | langids | 142,213 | |
LDU_FT/cackharot/suds-py3/parse | LDU_FT | [
"<BEGIN>\n## `genprefix`",
"Generate a prefix.\n @param node: An XML node on which the prefix will be used.\n @type node: L{sax.element.Element}\n @param ns: A namespace needing an unique prefix.\n @type ns: (prefix, uri)\n @return: The I{ns} with a new prefix.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Parse the string date.
This supports the subset of ISO8601 used by xsd:time, but is lenient
with what is accepted, handling most reasonable syntax.
@param value: A time string.
@type value: str
@return: A time object.
@rtype: B{datetime}.I{time} | "Parse the string date.\n\n This supports the subset of ISO8601 used by xsd:time, but is lenient\n with what is accepted, handling most reasonable syntax.\n\n @param value: A time string.\n @type value: str\n @return: A time object.\n @rtype: B{datetime}.I{time}" | 387 | false | cackharot/suds-py3 | parse | 142,214 | |
LDU_FT/toomore/goristock/loaddate | LDU_FT | [
"<BEGIN>\n## `output`",
"re = \"\"\"<table>\n <tr><td>%(name)s</td><td>%(c)s</td><td>%(range)+.2f(%(pp)+.2f%%)</td></tr>\n <tr><td>%(stock_no)s</td><td>%(value)s</td><td>%(time)s</td></tr></table>\"\"\" % {\n<END>",
"<BEGIN>\n## `Rt_display`",
"For real time stock display\n 即時盤用,顯示目... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loaddate API.
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 loaddate API.
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... | 載入檔案
檔案依據 http://www.twse.com.tw/ch/trading/trading_days.php | "載入檔案\n 檔案依據 http://www.twse.com.tw/ch/trading/trading_days.php" | 62 | false | toomore/goristock | loaddate | 142,215 | |
LDU_FT/openstack/pyghmi/process_event | LDU_FT | [
"<BEGIN>\n## `get_bootdev`",
"Get current boot device override information.",
" :raises: PyghmiException on error\n :returns: dict\n<END>",
"<BEGIN>\n## `set_bootdev`",
"Set boot device to use on next reboot",
" :param bootdev:\n *network -- Request network boot... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_event API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_event API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Modify an event according with OEM understanding.
Given an event, allow an OEM module to augment it. For example,
event data fields can have OEM bytes. Other times an OEM may wish
to apply some transform to some field to suit their conventions. | "Modify an event according with OEM understanding.\n\n Given an event, allow an OEM module to augment it. For example,\n event data fields can have OEM bytes. Other times an OEM may wish\n to apply some transform to some field to suit their conventions." | 273 | false | openstack/pyghmi | process_event | 142,216 | |
LDU_FT/CameronLonsdale/lantern/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 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.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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.
The extra... | Calculate the Chi Squared statistic by comparing ``source_frequency`` with ``target_frequency``.
Example:
>>> chi_squared({'a': 2, 'b': 3}, {'a': 1, 'b': 2})
0.1
Args:
source_frequency (dict): Frequency map of the text you are analyzing
target_frequency (dict): Frequency map of... | "Calculate the Chi Squared statistic by comparing ``source_frequency`` with ``target_frequency``.\n\n Example:\n >>> chi_squared({'a': 2, 'b': 3}, {'a': 1, 'b': 2})\n 0.1\n\n Args:\n source_frequency (dict): Frequency map of the text you are analyzing\n target_frequency (dict): Frequen... | 131 | false | CameronLonsdale/lantern | chi_squared | 142,217 | |
LDU_FT/curious-containers/cc-core/red_get_mount_connectors | LDU_FT | [
"<BEGIN>\n## `brief_exception_text`",
"Returns the Exception class and the message of the exception as string.",
" :param exception: The exception to format\n :param secret_values: Values to hide in output\n<END>",
"<BEGIN>\n## `print_exception`",
"Prints the exception message and the name of the exce... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the red_get_mount_connectors API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the red_get_mount_connectors API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Returns a list of mounting connectors
:param red_data: The red data to be searched
:param ignore_outputs: If outputs should be ignored
:return: A list of connectors with active mount option. | "Returns a list of mounting connectors\n\n :param red_data: The red data to be searched\n :param ignore_outputs: If outputs should be ignored\n :return: A list of connectors with active mount option." | 96 | false | curious-containers/cc-core | red_get_mount_connectors | 142,218 | |
LDU_FT/google/tangent/is_insert_grad_of_statement | LDU_FT | [
"<BEGIN>\n## `compile_file`",
"Compile by saving to file and importing that.",
" Compiling the AST/source code this way ensures that the source code is\n readable by e.g. `pdb` or `inspect`.",
" Args:\n source: The code to compile, either as a string or as an AST.\n globals_: A dictionary of variable... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_insert_grad_of_statement API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_insert_grad_of_statement API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Check whether a context manager calls `insert_grad_of`.
Args:
node: The context manager node.
Returns:
Whether or not this node contains `insert_grad_of` calls.
Raises:
ValueError: If the `insert_grad_of` calls are mixed with other calls. | "Check whether a context manager calls `insert_grad_of`.\n\n Args:\n node: The context manager node.\n\n Returns:\n Whether or not this node contains `insert_grad_of` calls.\n\n Raises:\n ValueError: If the `insert_grad_of` calls are mixed with other calls." | 368 | false | google/tangent | is_insert_grad_of_statement | 142,219 | |
LDU_FT/RI-imaging/qpsphere/download_binaries | LDU_FT | [
"<BEGIN>\n## `interpolate_grid`",
"Return the 2D field averaged radially w.r.t. the center\n<END>",
"<BEGIN>\n## `rytov`",
"Field behind a dielectric sphere in the Rytov approximation",
" Parameters\n ----------\n radius: float\n Radius of the sphere [m]\n sphere_index: float\n Ref... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_binaries API.
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 download_binaries API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Download all binaries for the current platform
Parameters
----------
package_dir: bool
If set to `True`, the binaries will be downloaded to the
`resources` directory of the qpsphere package instead of
to the users application data directory. Note that this
might require admi... | "Download all binaries for the current platform\n\n Parameters\n ----------\n package_dir: bool\n If set to `True`, the binaries will be downloaded to the\n `resources` directory of the qpsphere package instead of\n to the users application data directory. Note that this\n might req... | 179 | false | RI-imaging/qpsphere | download_binaries | 142,220 | |
LDU_FT/b3j0f/annotation/in_memory | 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 in_memory API.
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 in_memory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | :return: True if self is in a global memory of annotations. | ":return: True if self is in a global memory of annotations." | 84 | false | b3j0f/annotation | in_memory | 142,221 | |
LDU_FT/NICTA/revrand/grad | LDU_FT | [
"<BEGIN>\n## `fit`",
"r\"\"\"\n Learn the parameters of a Bayesian generalized linear model (GLM).",
" Parameters\n ----------\n X : ndarray\n (N, d) array input dataset (N samples, d dimensions).\n y : ndarray\n (N,) array targets (N samples)\n li... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grad API.
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 grad API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Return the gradient of the basis function for each parameter.
Parameters
----------
X : ndarray
(N, d) array of observations where N is the number of samples, and
d is the dimensionality of X.
*params : optional
parameter aguments, these are the param... | "Return the gradient of the basis function for each parameter.\n\n Parameters\n ----------\n X : ndarray\n (N, d) array of observations where N is the number of samples, and\n d is the dimensionality of X.\n *params : optional\n parameter aguments, these are ... | 535 | false | NICTA/revrand | grad | 142,222 | |
LDU_FT/theislab/scanpy/detect_branching | 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 detect_branching API.
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 detect_branching API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Detect branching on given segment.
Updates all list parameters inplace.
Call function _detect_branching and perform bookkeeping on segs and
segs_tips.
Parameters
----------
segs : list of np.ndarray
Dchosen distance matrix restricted to segment.
seg... | "Detect branching on given segment.\n\n Updates all list parameters inplace.\n\n Call function _detect_branching and perform bookkeeping on segs and\n segs_tips.\n\n Parameters\n ----------\n segs : list of np.ndarray\n Dchosen distance matrix restricted to segment.\... | 1,142 | true | theislab/scanpy | detect_branching | 142,223 | |
LDU_FT/systemd/python-systemd/wait | LDU_FT | [
"<BEGIN>\n## `get_catalog`",
"Return catalog entry for the specified ID.",
" `mid` should be either a UUID or a 32 digit hex number.\n<END>",
"<BEGIN>\n## `stream`",
"r\"\"\"Return a file object wrapping a stream to journal.",
" Log messages written to this file as simple newline sepearted text stri... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait API.
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 wait API.
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... | Wait for a change in the journal.
`timeout` is the maximum time in seconds to wait, or None which
means to wait forever.
Returns one of NOP (no change), APPEND (new entries have been added to
the end of the journal), or INVALIDATE (journal files have been added or
removed). | "Wait for a change in the journal.\n\n `timeout` is the maximum time in seconds to wait, or None which\n means to wait forever.\n\n Returns one of NOP (no change), APPEND (new entries have been added to\n the end of the journal), or INVALIDATE (journal files have been added or\n remov... | 70 | false | systemd/python-systemd | wait | 142,224 | |
LDU_FT/lemieuxl/pyGenClean/order_qc_dir | LDU_FT | [
"<BEGIN>\n## `main`",
"The main function of the module.",
" :param argString: the options.",
" :type argString: list",
" These are the steps:",
" 1. Prints the options.\n 2. If there are ``summarized_intensities`` provided, reads the files\n (:py:func:`read_summarized_intensities`) an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the order_qc_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the order_qc_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Order the QC directory names according to their date.
:param dirnames: the list of directories to merge data from.
:type dirnames: list
:returns: the sorted list of directories
:rtype: list | "Order the QC directory names according to their date.\n\n :param dirnames: the list of directories to merge data from.\n\n :type dirnames: list\n\n :returns: the sorted list of directories\n :rtype: list" | 1,109 | true | lemieuxl/pyGenClean | order_qc_dir | 142,225 | |
LDU_FT/openSUSE/py2pack/_license_from_classifiers | LDU_FT | [
"<BEGIN>\n## `_get_template_dirs`",
"existing directories where to search for jinja2 templates. The order\n is important. The first found template from the first found dir wins!\n<END>",
"<BEGIN>\n## `_license_from_classifiers`",
"try to get a license from the classifiers\n<END>",
"<BEGIN>\n## `_requirem... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _license_from_classifiers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _license_from_classifiers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | try to get a license from the classifiers | "try to get a license from the classifiers" | 21 | false | openSUSE/py2pack | _license_from_classifiers | 142,226 | |
LDU_FT/tylerbutler/propane/dbsafe_encode | LDU_FT | [
"<BEGIN>\n## `dict_to_querystring`",
"Converts a dict to a querystring suitable to be appended to a URL.\n<END>",
"<BEGIN>\n## `space_out_camel_case`",
"Adds spaces to a camel case string. Failure to space out string returns the original string.",
" >>> space_out_camel_case('DMLSServicesOtherBSTextLLC')... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dbsafe_encode API.
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 dbsafe_encode API.
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... | We use deepcopy() here to avoid a problem with cPickle, where dumps
can generate different character streams for same lookup value if
they are referenced differently.
The reason this is important is because we do all of our lookups as
simple string matches, thus the character streams must be the same
... | "We use deepcopy() here to avoid a problem with cPickle, where dumps\n can generate different character streams for same lookup value if\n they are referenced differently.\n\n The reason this is important is because we do all of our lookups as\n simple string matches, thus the character streams must be the ... | 44 | false | tylerbutler/propane | dbsafe_encode | 142,227 | |
LDU_FT/Shapeways/coyote_framework/is_present_no_wait | LDU_FT | [
"<BEGIN>\n## `get_login_form_component`",
"Initializes and returns the login form component",
" @rtype: LoginForm\n @return: Initialized component\n<END>",
"<BEGIN>\n## `objectify`",
"Converts a dictionary into a named tuple (shallow)\n<END>",
"<BEGIN>\n## `create_directory`",
"Creates a d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_present_no_wait 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 is_present_no_wait 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... | Determines whether an element is present on the page with no wait
@type locator: webdriverwrapper.support.locator.Locator
@param locator: the locator or css string used to query the element | "Determines whether an element is present on the page with no wait\n\n @type locator: webdriverwrapper.support.locator.Locator\n @param locator: the locator or css string used to query the element" | 370 | false | Shapeways/coyote_framework | is_present_no_wait | 142,228 | |
LDU_FT/praekelt/django-order/create_order_classes | LDU_FT | [
"<BEGIN>\n## `user_order_by`",
"Queryset method ordering objects by user ordering field.\n<END>",
"<BEGIN>\n## `create_order_classes`",
"Create order model and admin class.\n Add order model to order.models module and register admin class.\n Connect ordered_objects manager to related model.\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_order_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_order_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.
... | Create order model and admin class.
Add order model to order.models module and register admin class.
Connect ordered_objects manager to related model. | "Create order model and admin class.\n Add order model to order.models module and register admin class.\n Connect ordered_objects manager to related model." | 14 | false | praekelt/django-order | create_order_classes | 142,229 | |
LDU_FT/Vito2015/pyextend/json2csv | LDU_FT | [
"<BEGIN>\n## `haversine`",
"Compute km by geo-coordinates\n See also: haversine define https://en.wikipedia.org/wiki/Haversine_formula\n<END>",
"<BEGIN>\n## `calc_distance`",
"Calc distance (km) by geo-coordinates.\n @:param lng1: first coordinate.lng\n @:param lat1: first coordinate.lat\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json2csv API.
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 json2csv API.
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... | Format a json string to csv like.
:param json_str: json object string
:param show_header: can returns csv header line
:param separator: csv column format separator
:return: if show_header=False: a string like csv formatting;
if show_header=True: a tuple (header, csv string) | "Format a json string to csv like.\n :param json_str: json object string\n :param show_header: can returns csv header line\n :param separator: csv column format separator\n :return: if show_header=False: a string like csv formatting;\n if show_header=True: a tuple (header, csv string)" | 42 | false | Vito2015/pyextend | json2csv | 142,230 | |
LDU_FT/carpedm20/fbchat/onPollCreated | LDU_FT | [
"<BEGIN>\n## `_generatePayload`",
"Adds the following defaults to the payload:\n __rev, __user, __a, ttstamp, fb_dtsg, __req\n<END>",
"<BEGIN>\n## `_fix_fb_errors`",
"This fixes \"Please try closing and re-opening your browser window\" errors (1357004)\n This error usually happens after 1-2 da... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the onPollCreated API.
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 onPollCreated API.
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... | Called when the client is listening, and somebody creates a group poll
:param mid: The action ID
:param poll: Created poll
:param author_id: The ID of the person who created the poll
:param thread_id: Thread ID that the action was sent to. See :ref:`intro_threads`
:param thread_... | "Called when the client is listening, and somebody creates a group poll\n\n :param mid: The action ID\n :param poll: Created poll\n :param author_id: The ID of the person who created the poll\n :param thread_id: Thread ID that the action was sent to. See :ref:`intro_threads`\n :param ... | 337 | false | carpedm20/fbchat | onPollCreated | 142,231 | |
LDU_FT/edeposit/edeposit.amqp.harvester/_process_book | LDU_FT | [
"<BEGIN>\n## `save_cache`",
"Save cahce to the disk.",
" Args:\n cache (set): Set with cached data.\n<END>",
"<BEGIN>\n## `load_cache`",
"Load cache from the disk.",
" Return:\n set: Deserialized data from disk.\n<END>",
"<BEGIN>\n## `filter_publication`",
"Deduplication function, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_book API.
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_book API.
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 available informations about book from the book details page.
Args:
html_chunk (obj): HTMLElement containing slice of the page with details.
Returns:
obj: :class:`structures.Publication` instance with book details. | "Parse available informations about book from the book details page.\n\n Args:\n html_chunk (obj): HTMLElement containing slice of the page with details.\n\n Returns:\n obj: :class:`structures.Publication` instance with book details." | 303 | false | edeposit/edeposit.amqp.harvester | _process_book | 142,232 | |
LDU_FT/tensorpack/tensorpack/maskrcnn_loss | LDU_FT | [
"<BEGIN>\n## `CaffeLMDB`",
"Read a Caffe LMDB file where each value contains a ``caffe.Datum`` protobuf.\n Produces datapoints of the format: [HWC image, label].",
" Note that Caffe LMDB format is not efficient: it stores serialized raw\n arrays rather than JPEG images.",
" Args:\n lmdb_pat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maskrcnn_loss API.
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 maskrcnn_loss API.
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... | Args:
mask_logits: #fg x #category xhxw
fg_labels: #fg, in 1~#class, int64
fg_target_masks: #fgxhxw, float32 | "Args:\n mask_logits: #fg x #category xhxw\n fg_labels: #fg, in 1~#class, int64\n fg_target_masks: #fgxhxw, float32" | 1,105 | true | tensorpack/tensorpack | maskrcnn_loss | 142,233 | |
LDU_FT/Azure/msrest-for-python/deserialize_decimal | LDU_FT | [
"<BEGIN>\n## `async_poller`",
"Async Poller for long running operations.",
" :param client: A msrest service client. Can be a SDK client and it will be casted to a ServiceClient.\n :type client: msrest.service_client.ServiceClient\n :param initial_response: The initial call response\n :type initial_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize_decimal 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 deserialize_decimal 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... | Deserialize string into Decimal object.
:param str attr: response string to be deserialized.
:rtype: Decimal
:raises: DeserializationError if string format invalid. | "Deserialize string into Decimal object.\n\n :param str attr: response string to be deserialized.\n :rtype: Decimal\n :raises: DeserializationError if string format invalid." | 324 | false | Azure/msrest-for-python | deserialize_decimal | 142,234 | |
LDU_FT/boundlessgeo/lib-qgis-commons/readSettings | LDU_FT | [
"<BEGIN>\n## `get_oauth_authcfg`",
"Check if the given authcfg_id (or the default) exists, and if it's valid\n OAuth2, return the configuration or None\n<END>",
"<BEGIN>\n## `setup_oauth`",
"Setup oauth configuration to access the BCS API,\n return authcfg_id on success, None on failure\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readSettings API.
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 readSettings API.
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... | Reads the settings corresponding to the plugin from where the method is called.
This function has to be called in the __init__ method of the plugin class.
Settings are stored in a settings.json file in the plugin folder.
Here is an eample of such a file:
[
{"name":"mysetting",
"label": "My set... | "Reads the settings corresponding to the plugin from where the method is called.\n This function has to be called in the __init__ method of the plugin class.\n Settings are stored in a settings.json file in the plugin folder.\n Here is an eample of such a file:\n\n [\n {\"name\":\"mysetting\",\n \"la... | 72 | false | boundlessgeo/lib-qgis-commons | readSettings | 142,235 | |
LDU_FT/marshallward/f90nml/_parse_value | LDU_FT | [
"<BEGIN>\n## `write`",
"Save a namelist to disk using either a file object or its file path.",
" File object usage:",
" >>> with open(nml_path, 'w') as nml_file:\n >>> f90nml.write(nml, nml_file)",
" File path usage:",
" >>> f90nml.write(nml, 'data.nml')",
" This function is equiva... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Convert string repr of Fortran type to equivalent Python type. | "Convert string repr of Fortran type to equivalent Python type." | 98 | false | marshallward/f90nml | _parse_value | 142,236 | |
LDU_FT/sailthru/relay/oscillating_setpoint | LDU_FT | [
"<BEGIN>\n## `create_ramp_plan`",
"Formulate and execute on a plan to slowly add heat or cooling to the system",
" `err` initial error (PV - SP)\n `ramp` the size of the ramp",
" A ramp plan might yield MVs in this order at every timestep:\n [5, 0, 4, 0, 3, 0, 2, 0, 1]\n where err == 5 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the oscillating_setpoint 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 oscillating_setpoint 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 basic example of a target that you may want to approximate.
If you have a thermostat, this is a temperature setting.
This target can't change too often | "A basic example of a target that you may want to approximate.\n\n If you have a thermostat, this is a temperature setting.\n This target can't change too often" | 32 | false | sailthru/relay | oscillating_setpoint | 142,237 | |
LDU_FT/koordinates/python-client/start_update | LDU_FT | [
"<BEGIN>\n## `create`",
"Create single permission for the given object.",
" :param Permission permission: A single Permission object to be set.\n<END>",
"<BEGIN>\n## `set`",
"Set the object permissions. If the parent object already has permissions, they will be overwritten.",
" :param [] per... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_update API.
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 start_update API.
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... | A shortcut to create a new version and start importing it.
Effectively the same as :py:meth:`.create_draft_version` followed by :py:meth:`koordinates.layers.Layer.start_import`.
:rtype: Layer
:return: the new version
:raises Conflict: if there is already a draft version for this layer. | "A shortcut to create a new version and start importing it.\n Effectively the same as :py:meth:`.create_draft_version` followed by :py:meth:`koordinates.layers.Layer.start_import`.\n\n :rtype: Layer\n :return: the new version\n :raises Conflict: if there is already a draft version for this l... | 178 | false | koordinates/python-client | start_update | 142,238 | |
LDU_FT/gwastro/pycbc-glue/write_concrete_dag | LDU_FT | [
"<BEGIN>\n## `component_offsetvectors`",
"Given an iterable of offset vectors, return the shortest list of\n\tthe unique n-instrument offset vectors from which all the vectors\n\tin the input iterable can be constructed. This can be used to\n\tdetermine the minimal set of n-instrument coincs required to\n\tconst... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_concrete_dag API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_concrete_dag 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... | Write all the nodes in the DAG to the DAG file. | "Write all the nodes in the DAG to the DAG file." | 1,048 | true | gwastro/pycbc-glue | write_concrete_dag | 142,239 | |
LDU_FT/rliebz/whoswho/_determine_weights | LDU_FT | [
"<BEGIN>\n## `deep_compare`",
"Compares each field of the name one at a time to see if they match.\n Each name field has context-specific comparison logic.",
" :param Name other: other Name for comparison\n :return bool: whether the two names are compatible\n<END>",
"<BEGIN>\n## `ratio_de... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _determine_weights 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 _determine_weights 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 weights of name components based on whether or not they were
omitted | "Return weights of name components based on whether or not they were\n omitted" | 38 | false | rliebz/whoswho | _determine_weights | 142,240 | |
LDU_FT/sundarnagarajan/py25519/get_dirtree | LDU_FT | [
"<BEGIN>\n## `sign`",
"msg-->str or bytes\n Returns-->bytes\n<END>",
"<BEGIN>\n## `verify`",
"sig-->bytes\n msg-->str or bytes\n Returns-->boolean\n<END>",
"<BEGIN>\n## `get_dirtree`",
"module_name-->str: must be name of a dir under current working dir\n dirlist-->list of str: must... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dirtree API.
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_dirtree API.
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... | module_name-->str: must be name of a dir under current working dir
dirlist-->list of str: must all be names of dirs under module_name | "module_name-->str: must be name of a dir under current working dir\n dirlist-->list of str: must all be names of dirs under module_name" | 16 | false | sundarnagarajan/py25519 | get_dirtree | 142,241 | |
LDU_FT/kgaughan/dbkit/query | LDU_FT | [
"<BEGIN>\n## `strip_accents`",
"Strip accents to prepare for slugification.\n<END>",
"<BEGIN>\n## `slugify`",
"Converts the given string to a URL slug.\n<END>",
"<BEGIN>\n## `_make_connect`",
"Returns a function capable of making connections with a particular\n driver given the supplied credentials.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Execute a query. This returns an iterator of the result set. | "Execute a query. This returns an iterator of the result set." | 55 | false | kgaughan/dbkit | query | 142,242 | |
LDU_FT/FlaskGuys/Flask-Imagine/outbound_sizes | LDU_FT | [
"<BEGIN>\n## `apply`",
"Apply filter to resource\n :param resource: Image\n :return: Image\n<END>",
"<BEGIN>\n## `get_item`",
"Get resource item\n :param path: string\n :return: PIL.Image\n<END>",
"<BEGIN>\n## `create_cached_item`",
"Create cached resource item\n :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the outbound_sizes API.
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 outbound_sizes API.
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... | Calculate new image sizes for outbound mode
:param original_width: int
:param original_height: int
:param target_width: int
:param target_height: int
:return: tuple(int, int) | "Calculate new image sizes for outbound mode\n :param original_width: int\n :param original_height: int\n :param target_width: int\n :param target_height: int\n :return: tuple(int, int)" | 66 | false | FlaskGuys/Flask-Imagine | outbound_sizes | 142,243 | |
LDU_FT/coleifer/huey/sleep_for_interval | LDU_FT | [
"<BEGIN>\n## `crontab`",
"Convert a \"crontab\"-style set of parameters into a test function that will\n return True when the given datetime matches the parameters set forth in\n the crontab.",
" For day-of-week, 0=Sunday and 6=Saturday.",
" Acceptable inputs:\n * = every distinct value\n */... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sleep_for_interval 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 sleep_for_interval 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... | Sleep for a given interval with respect to the start timestamp.
So, if the start timestamp is 1337 and nseconds is 10, the method will
actually sleep for nseconds - (current_timestamp - start_timestamp). So
if the current timestamp is 1340, we'll only sleep for 7 seconds (the
goal being... | "Sleep for a given interval with respect to the start timestamp.\n\n So, if the start timestamp is 1337 and nseconds is 10, the method will\n actually sleep for nseconds - (current_timestamp - start_timestamp). So\n if the current timestamp is 1340, we'll only sleep for 7 seconds (the\n goal... | 26 | false | coleifer/huey | sleep_for_interval | 142,244 | |
LDU_FT/watson-developer-cloud/python-sdk/_to_dict | LDU_FT | [
"<BEGIN>\n## `synthesize_using_websocket`",
"Synthesizes text to spoken audio using web sockets. It supports the use of\n the SSML <mark> element to identify the location of user-specified markers in the audio.\n It can also return timing information for all strings of the input text.\n Note:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return a json dictionary representing this model. | "Return a json dictionary representing this model." | 1,254 | true | watson-developer-cloud/python-sdk | _to_dict | 142,245 | |
LDU_FT/kata198/AdvancedHTMLParser/getPeersWithAttrValues | LDU_FT | [
"<BEGIN>\n## `getRootNodes`",
"getRootNodes - Gets all objects at the \"root\" (first level; no parent). Use this if you may have multiple roots (not children of <html>)\n Use this method to get objects, for example, in an AJAX request where <html> may not be your root.",
" Note: I... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getPeersWithAttrValues 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 getPeersWithAttrValues API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | getPeersWithAttrValues - Gets peers (elements on same level) whose attribute given by #attrName
are in the list of possible vaues #attrValues
@param attrName - Name of attribute
@param attrValues - List of possible values which will match
@return - None if no paren... | "getPeersWithAttrValues - Gets peers (elements on same level) whose attribute given by #attrName \n are in the list of possible vaues #attrValues\n\n @param attrName - Name of attribute\n @param attrValues - List of possible values which will match\n\n @return - None if n... | 541 | false | kata198/AdvancedHTMLParser | getPeersWithAttrValues | 142,246 | |
LDU_FT/mapillary/mapillary_tools/extract_geo | LDU_FT | [
"<BEGIN>\n## `convert_from_gps_time`",
"Convert gps time in ticks to standard time.\n<END>",
"<BEGIN>\n## `upload`",
"Upload local images to Mapillary\n Args:\n import_path: Directory path to where the images are stored.\n verbose: Print extra warnings and errors.\n skip_subfolders: Sk... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_geo API.
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_geo API.
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... | Extract geo-related information from exif | "Extract geo-related information from exif" | 96 | false | mapillary/mapillary_tools | extract_geo | 142,247 | |
LDU_FT/KimiNewt/pyshark/get_default_value | LDU_FT | [
"<BEGIN>\n## `get_field`",
"Gets the XML field object of the given name.\n<END>",
"<BEGIN>\n## `get_field_value`",
"Tries getting the value of the given field.\n Tries it in the following order: show (standard nice display), value (raw value), showname (extended nice display).",
" :param name:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Gets the best 'value' string this field has. | "Gets the best 'value' string this field has." | 91 | false | KimiNewt/pyshark | get_default_value | 142,248 | |
LDU_FT/adewes/blitzdb/deserialize | LDU_FT | [
"<BEGIN>\n## `commit`",
"Commit all pending transactions to the database.",
" .. admonition:: Warning",
" This operation can be **expensive** in runtime if a large number of\n documents (>100.000) is contained in the database, since it will\n cause all database indexes ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API.
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 deserialize API.
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... | Deserializes a given object, i.e. converts references to other (known) `Document` objects by lazy instances of the
corresponding class. This allows the automatic fetching of related documents from the database as required.
:param obj: The object to be deserialized.
:returns: The deserialized o... | "Deserializes a given object, i.e. converts references to other (known) `Document` objects by lazy instances of the\n corresponding class. This allows the automatic fetching of related documents from the database as required.\n\n :param obj: The object to be deserialized.\n\n :returns: The deserial... | 141 | false | adewes/blitzdb | deserialize | 142,249 | |
LDU_FT/maikelboogerd/eventcore/event_subscriber | LDU_FT | [
"<BEGIN>\n## `event_subscriber`",
"Register a method, which gets called when this event triggers.\n :param event: the event to register the decorator method on.\n<END>",
"<BEGIN>\n## `dispatch_event`",
"Dispatch an event when the decorated method is called.\n :param event: the event class to instantiate... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event_subscriber API.
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 event_subscriber API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Register a method, which gets called when this event triggers.
:param event: the event to register the decorator method on. | "Register a method, which gets called when this event triggers.\n :param event: the event to register the decorator method on." | 12 | false | maikelboogerd/eventcore | event_subscriber | 142,250 | |
LDU_FT/stefanfoulis/django-sendsms/_parse_response | LDU_FT | [
"<BEGIN>\n## `_send`",
"Private method for send one message.",
" :param SmsMessage message: SmsMessage class instance.\n :returns: True if message is sended else False\n :rtype: bool\n<END>",
"<BEGIN>\n## `send_messages`",
"Sends one or more SmsMessage objects and returns the number of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_response API.
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... | Takes a result page of sending the sms, returns an extracted tuple:
('numeric_err_code', '<sent_queued_message_id>', '<smsglobalmsgid>')
Returns None if unable to extract info from result_page, it should be
safe to assume that it was either a failed result or worse, the interface
con... | "Takes a result page of sending the sms, returns an extracted tuple:\n ('numeric_err_code', '<sent_queued_message_id>', '<smsglobalmsgid>')\n Returns None if unable to extract info from result_page, it should be\n safe to assume that it was either a failed result or worse, the interface\n ... | 43 | false | stefanfoulis/django-sendsms | _parse_response | 142,251 | |
LDU_FT/cjdrake/pyeda/espresso_exprs | LDU_FT | [
"<BEGIN>\n## `ripple_carry_add`",
"Return symbolic logic for an N-bit ripple carry adder.\n<END>",
"<BEGIN>\n## `kogge_stone_add`",
"Return symbolic logic for an N-bit Kogge-Stone adder.\n<END>",
"<BEGIN>\n## `brent_kung_add`",
"Return symbolic logic for an N-bit Brent-Kung adder.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the espresso_exprs API.
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 espresso_exprs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return a tuple of expressions optimized using Espresso.
The variadic *exprs* argument is a sequence of expressions.
For example::
>>> from pyeda.boolalg.expr import exprvar
>>> a, b, c = map(exprvar, 'abc')
>>> f1 = Or(And(~a, ~b, ~c), And(~a, ~b, c), And(a, ~b, c), And(a, b, c), And(a, ... | "Return a tuple of expressions optimized using Espresso.\n\n The variadic *exprs* argument is a sequence of expressions.\n\n For example::\n\n >>> from pyeda.boolalg.expr import exprvar\n >>> a, b, c = map(exprvar, 'abc')\n >>> f1 = Or(And(~a, ~b, ~c), And(~a, ~b, c), And(a, ~b, c), And(a, b, c)... | 410 | false | cjdrake/pyeda | espresso_exprs | 142,252 | |
LDU_FT/nyrkovalex/httpsrv/assert_no_pending | LDU_FT | [
"<BEGIN>\n## `status`",
"Respond with given status and no content",
" :type status: int\n :param status: status code to return",
" :type headers: dict\n :param headers: dictionary of headers to add to response",
" :returns: itself\n :rtype: Rule\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_no_pending API.
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 assert_no_pending API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Raises a :class:`PendingRequestsLeftException` error if server has target rule
non-resolved.
When target_rule argument is ommitted raises if server has any pending
expectations.
Useful in ``tearDown()`` test method to verify that test had correct expectations
:type target_rule... | "Raises a :class:`PendingRequestsLeftException` error if server has target rule\n non-resolved.\n\n When target_rule argument is ommitted raises if server has any pending\n expectations.\n\n Useful in ``tearDown()`` test method to verify that test had correct expectations\n\n :type ta... | 49 | false | nyrkovalex/httpsrv | assert_no_pending | 142,253 | |
LDU_FT/MisterWil/abodepy/_on_automation_update | LDU_FT | [
"<BEGIN>\n## `map_event_code`",
"Map a specific event_code to an event group.\n<END>",
"<BEGIN>\n## `desc`",
"Get a short description of the automation.\n<END>",
"<BEGIN>\n## `_get_numeric_status`",
"Extract the numeric value from the statuses object.\n<END>",
"<BEGIN>\n## `is_on`",
"Get sensor state.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _on_automation_update 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 _on_automation_update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Automation update broadcast from Abode SocketIO server. | "Automation update broadcast from Abode SocketIO server." | 53 | false | MisterWil/abodepy | _on_automation_update | 142,254 | |
LDU_FT/globality-corp/microcosm-postgres/make_script_directory | LDU_FT | [
"<BEGIN>\n## `create_temporary_table`",
"Create a new temporary table from another table.\n<END>",
"<BEGIN>\n## `get_current_head`",
"Get the current database head revision, if any.\n<END>",
"<BEGIN>\n## `flushing`",
"Flush the current session, handling common errors.\n<END>",
"<BEGIN>\n## `retrieve`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_script_directory 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 make_script_directory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Alembic uses a "script directory" to encapsulate its `env.py` file, its migrations
directory, and its `script.py.mako` revision template.
We'd rather not have such a directory at all as the default `env.py` rarely works
without manipulation, migrations are better saved in a location within the source tree... | "Alembic uses a \"script directory\" to encapsulate its `env.py` file, its migrations\n directory, and its `script.py.mako` revision template.\n\n We'd rather not have such a directory at all as the default `env.py` rarely works\n without manipulation, migrations are better saved in a location within the sour... | 110 | false | globality-corp/microcosm-postgres | make_script_directory | 142,255 | |
LDU_FT/wind-python/windpowerlib/initialize_wind_farms | LDU_FT | [
"<BEGIN>\n## `reduce_wind_speed`",
"r\"\"\"\n Reduces wind speed by a wind efficiency curve.",
" The wind efficiency curves are provided in the windpowerlib and were\n calculated in the dena-Netzstudie II and in the work of Knorr\n (see [1]_ and [2]_).",
" Parameters\n ----------\n wind_s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_wind_farms 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 initialize_wind_farms API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | r"""
Initializes two :class:`~.wind_farm.WindFarm` objects.
This function shows how to initialize a WindFarm object. You need to
provide at least a name and a the wind farm's wind turbine fleet as done
below for 'example_farm'. Optionally you can provide a wind farm efficiency
(which can be constan... | "r\"\"\"\n Initializes two :class:`~.wind_farm.WindFarm` objects.\n\n This function shows how to initialize a WindFarm object. You need to\n provide at least a name and a the wind farm's wind turbine fleet as done\n below for 'example_farm'. Optionally you can provide a wind farm efficiency\n (which can ... | 249 | false | wind-python/windpowerlib | initialize_wind_farms | 142,256 | |
LDU_FT/rgmining/ria/retrieve_reviewers | LDU_FT | [
"<BEGIN>\n## `update`",
"Update reviewers' anomalous scores and products' summaries.",
" Returns:\n maximum absolute difference between old summary and new one, and\n old anomalous score and new one.\n<END>",
"<BEGIN>\n## `anomalous_score`",
"Anomalous score of this reviewer.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_reviewers 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 retrieve_reviewers 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... | Retrieve reviewers who reviewed a given product.
Args:
product: A product specifying reviewers.
Returns:
A list of reviewers who review the product.
Raises:
TypeError: when given product isn't instance of specified product
class when this graph is con... | "Retrieve reviewers who reviewed a given product.\n\n Args:\n product: A product specifying reviewers.\n\n Returns:\n A list of reviewers who review the product.\n\n Raises:\n TypeError: when given product isn't instance of specified product\n class when this g... | 87 | false | rgmining/ria | retrieve_reviewers | 142,257 | |
LDU_FT/cloudtools/stacker/parameterized_codec | LDU_FT | [
"<BEGIN>\n## `handle`",
"Returns the value of a key for a given hook in hook_data.",
" Format of value:",
" <hook_name>::<key>\n<END>",
"<BEGIN>\n## `resolve_variables`",
"Given a list of variables, resolve all of them.",
" Args:\n variables (list of :class:`stacker.variables... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parameterized_codec 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 parameterized_codec 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... | Parameterize a string, possibly encoding it as Base64 afterwards
Args:
raw (`str` | `bytes`): String to be processed. Byte strings will be
interpreted as UTF-8.
b64 (`bool`): Whether to wrap the output in a Base64 CloudFormation
call
Returns:
:class:`troposphere... | "Parameterize a string, possibly encoding it as Base64 afterwards\n\n Args:\n raw (`str` | `bytes`): String to be processed. Byte strings will be\n interpreted as UTF-8.\n b64 (`bool`): Whether to wrap the output in a Base64 CloudFormation\n call\n\n Returns:\n :class:`t... | 733 | false | cloudtools/stacker | parameterized_codec | 142,258 | |
LDU_FT/Spirent/py-stcrestclient/disconnect | LDU_FT | [
"<BEGIN>\n## `url`",
"Construct a URL from the given components.\n<END>",
"<BEGIN>\n## `download_file`",
"Download a file.",
" If a timeout defined, it is not a time limit on the entire download;\n rather, an exception is raised if the server has not issued a response\n for timeout seco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect API.
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 disconnect API.
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... | Remove connection with one or more chassis.
Arguments:
chassis_list -- List of chassis (IP addresses or DNS names) | "Remove connection with one or more chassis.\n\n Arguments:\n chassis_list -- List of chassis (IP addresses or DNS names)" | 102 | false | Spirent/py-stcrestclient | disconnect | 142,259 | |
LDU_FT/yjzhang/uncurl_python/log_ncr | LDU_FT | [
"<BEGIN>\n## `_create_m_objective`",
"Creates an objective function and its derivative for M, given W and X",
" Args:\n w (array): clusters x cells\n X (array): genes x cells\n<END>",
"<BEGIN>\n## `initialize_from_assignments`",
"Creates a weight initialization matrix from Poisson clusterin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_ncr API.
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 log_ncr API.
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 log(nCr(a,b)), given that b<a. Does not assume that a and b
are integers (uses log-gamma). | "Returns log(nCr(a,b)), given that b<a. Does not assume that a and b\n are integers (uses log-gamma)." | 265 | false | yjzhang/uncurl_python | log_ncr | 142,260 | |
LDU_FT/swistakm/graceful/describe | LDU_FT | [
"<BEGIN>\n## `authentication_required`",
"Ensure that user is authenticated otherwise return ``401 Unauthorized``.",
" If request fails to authenticate this authorization hook will also\n include list of ``WWW-Athenticate`` challenges.",
" Args:\n req (falcon.Request): the request object.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe API.
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 describe API.
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... | Extend default endpoint description with serializer description. | "Extend default endpoint description with serializer description." | 209 | false | swistakm/graceful | describe | 142,261 | |
LDU_FT/PSU-OIT-ARC/elasticmodels/existing_analysis | LDU_FT | [
"<BEGIN>\n## `ListField`",
"This wraps a field so that when get_from_instance is called, the field's\n values are iterated over\n<END>",
"<BEGIN>\n## `get_from_instance`",
"Given an object to index with ES, return the value that should be put\n into ES for this field\n<END>",
"<BEGIN>\n## `cleaned... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the existing_analysis API.
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 existing_analysis API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Get the existing analysis for the `using` Elasticsearch connection | "Get the existing analysis for the `using` Elasticsearch connection" | 29 | false | PSU-OIT-ARC/elasticmodels | existing_analysis | 142,262 | |
LDU_FT/tinybike/coinbridge/getaccountaddress | LDU_FT | [
"<BEGIN>\n## `payment`",
"Convenience method for sending Bitcoins.",
" Send coins from origin to destination. Calls record_tx to log the\n transaction to database. Uses free, instant \"move\" transfers\n if addresses are both local (in the same wallet), and standard\n \"sendfrom\" t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getaccountaddress API.
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 getaccountaddress API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Get the coin address associated with a user id.
If the specified user id does not yet have an address for this
coin, then generate one.
Args:
user_id (str): this user's unique identifier
Returns:
str: Base58Check address for this account | "Get the coin address associated with a user id.\n\n If the specified user id does not yet have an address for this\n coin, then generate one.\n\n Args:\n user_id (str): this user's unique identifier\n\n Returns:\n str: Base58Check address for this account" | 48 | false | tinybike/coinbridge | getaccountaddress | 142,263 | |
LDU_FT/hotdoc/hotdoc/access_specifier | LDU_FT | [
"<BEGIN>\n## `connect`",
"@slot: The method to be called on signal emission",
" Connects to @slot\n<END>",
"<BEGIN>\n## `connect_after`",
"@slot: The method to be called at last stage of signal emission",
" Connects to the signal after the signals has been handled by other\n connect c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the access_specifier API.
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 access_specifier API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Retrieves the access specifier (if any) of the entity pointed at by the
cursor. | "Retrieves the access specifier (if any) of the entity pointed at by the\n cursor." | 266 | false | hotdoc/hotdoc | access_specifier | 142,264 | |
LDU_FT/contentful/contentful-management.py/to_json | LDU_FT | [
"<BEGIN>\n## `create`",
"Creates an entry with a given ID (optional) and attributes.\n<END>",
"<BEGIN>\n## `create`",
"Creates a webhook with given attributes.\n<END>",
"<BEGIN>\n## `camel_case`",
"Returns a camel-cased version of a string.",
" :param a_string: any :class:`str` object.",
" Usage... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Returns the JSON representation of the API key. | "Returns the JSON representation of the API key." | 161 | false | contentful/contentful-management.py | to_json | 142,265 | |
LDU_FT/asifpy/django-crudbuilder/import_crud | LDU_FT | [
"<BEGIN>\n## `extract_args`",
"Takes any arguments like a model and crud, or just one of\n those, in any order, and return a model and crud.\n<END>",
"<BEGIN>\n## `register`",
"Register a crud.",
" Two unordered arguments are accepted, at least one should be passed:\n - a model,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_crud API.
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_crud API.
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 crud module and register all model cruds which it contains | "Import crud module and register all model cruds which it contains" | 31 | false | asifpy/django-crudbuilder | import_crud | 142,266 | |
LDU_FT/calmjs/calmjs/compile | LDU_FT | [
"<BEGIN>\n## `make_choice_validator`",
"Returns a callable that accepts the choices provided.",
" Choices should be provided as a list of 2-tuples, where the first\n element is a string that should match user input (the key); the\n second being the value associated with the key.",
" The callable b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile API.
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 compile API.
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... | Generic step that compiles from a spec to build the specified
things into the build directory `build_dir`, by gathering all
the files and feed them through the transpilation process or by
simple copying. | "Generic step that compiles from a spec to build the specified\n things into the build directory `build_dir`, by gathering all\n the files and feed them through the transpilation process or by\n simple copying." | 361 | false | calmjs/calmjs | compile | 142,267 | |
LDU_FT/mokelly/wabbit_wappa/get_example | LDU_FT | [
"<BEGIN>\n## `make_command_line`",
"Construct a command line for VW, with each named argument corresponding\n to a VW option.\n Single character keys are mapped to single-dash options,\n e.g. 'b=20' yields '-b 20',\n while multiple character keys map to double-dash options:\n 'quiet=True' yield... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_example API.
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_example API.
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... | Make an example for training and testing. Outputs a tuple
(label, features) where label is +1 if capital letters are the majority,
and -1 otherwise; and features is a list of letters. | "Make an example for training and testing. Outputs a tuple\r\n (label, features) where label is +1 if capital letters are the majority,\r\n and -1 otherwise; and features is a list of letters." | 39 | false | mokelly/wabbit_wappa | get_example | 142,268 | |
LDU_FT/ska-sa/spead2/add_to_heap | LDU_FT | [
"<BEGIN>\n## `add_to_heap`",
"Update a heap to contains all the new items and item descriptors\n since the last call.",
" Parameters\n ----------\n heap : :py:class:`Heap`\n The heap to update.\n descriptors : {'stale', 'all', 'none'}\n Which descriptors ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_to_heap API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_to_heap API.
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... | Update a heap to contains all the new items and item descriptors
since the last call.
Parameters
----------
heap : :py:class:`Heap`
The heap to update.
descriptors : {'stale', 'all', 'none'}
Which descriptors to send. The default ('stale') sends only
... | "Update a heap to contains all the new items and item descriptors\n since the last call.\n\n Parameters\n ----------\n heap : :py:class:`Heap`\n The heap to update.\n descriptors : {'stale', 'all', 'none'}\n Which descriptors to send. The default ('stale') sends ... | 43 | false | ska-sa/spead2 | add_to_heap | 142,269 | |
LDU_FT/QualiSystems/cloudshell-networking-devices/get_device_name | LDU_FT | [
"<BEGIN>\n## `create_networking_resource_from_context`",
"Creates an instance of Networking Resource by given context\n :param shell_name: Shell Name\n :type shell_name: str\n :param supported_os: list of supported OS\n :type supported_os: list\n :param context: cloudshell.shell.core.driver_context... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_device_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_device_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 e... | Get device name by its SNMP sysObjectID property from the file map
:param str file_name:
:param str sys_obj_id:
:param str delimiter:
:rtype: str | "Get device name by its SNMP sysObjectID property from the file map\n\n :param str file_name:\n :param str sys_obj_id:\n :param str delimiter:\n :rtype: str" | 87 | false | QualiSystems/cloudshell-networking-devices | get_device_name | 142,270 | |
LDU_FT/bastikr/boolean.py/definition | LDU_FT | [
"<BEGIN>\n## `definition`",
"Return a tuple of this algebra defined elements and types as:\n (TRUE, FALSE, NOT, AND, OR, Symbol)\n<END>",
"<BEGIN>\n## `parse`",
"Return a boolean expression parsed from `expr` either a unicode string\n or tokens iterable.",
" Optionally simplify the expr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the definition API.
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 definition API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return a tuple of this algebra defined elements and types as:
(TRUE, FALSE, NOT, AND, OR, Symbol) | "Return a tuple of this algebra defined elements and types as:\n (TRUE, FALSE, NOT, AND, OR, Symbol)" | 71 | false | bastikr/boolean.py | definition | 142,271 | |
LDU_FT/robertmartin8/PyPortfolioOpt/_make_valid_bounds | 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 _make_valid_bounds API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_valid_bounds 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... | Private method: process input bounds into a form acceptable by scipy.optimize,
and check the validity of said bounds.
:param test_bounds: minimum and maximum weight of an asset
:type test_bounds: tuple
:raises ValueError: if ``test_bounds`` is not a tuple of length two.
:raises ... | "Private method: process input bounds into a form acceptable by scipy.optimize,\n and check the validity of said bounds.\n\n :param test_bounds: minimum and maximum weight of an asset\n :type test_bounds: tuple\n :raises ValueError: if ``test_bounds`` is not a tuple of length two.\n :... | 90 | false | robertmartin8/PyPortfolioOpt | _make_valid_bounds | 142,272 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.