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/contains-io/typet/_get_args | LDU_FT | [
"<BEGIN>\n## `_get_bases`",
"Get the base and meta classes to use in creating a subclass.",
" Args:\n type_: The type to subclass.",
" Returns:\n A tuple containing two values: a base class, and a metaclass.\n<END>",
"<BEGIN>\n## `_instantiate`",
"Instantiate the object... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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.
The extract... | Return the parameters necessary to check type boundaries.
Args:
args: A tuple with two or three elements: a type, a slice
representing the minimum and maximum lengths allowed for values
of that type and, optionally, a function to use on values
before ... | "Return the parameters necessary to check type boundaries.\n\n Args:\n args: A tuple with two or three elements: a type, a slice\n representing the minimum and maximum lengths allowed for values\n of that type and, optionally, a function to use on values\n ... | 78 | false | contains-io/typet | _get_args | 25,673 | |
LDU_FT/mohamedattahri/PyXMLi/compute | LDU_FT | [
"<BEGIN>\n## `c14n`",
"Applies c14n to the xml input\n @param xml: str\n @return: str\n<END>",
"<BEGIN>\n## `sign`",
"Return xmldsig XML string from xml_string of XML.\n @param xml: str of bytestring xml to sign\n @param private: publicKey Private key\n @param public: publicKey Public key\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute API.
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 compute API.
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... | Computes the amount of the treatment.
@param base:float Gross
@return: Decimal | "Computes the amount of the treatment.\n @param base:float Gross\n @return: Decimal" | 102 | false | mohamedattahri/PyXMLi | compute | 25,674 | |
LDU_FT/blueset/ehForwarderBot/prerequisite_check | LDU_FT | [
"<BEGIN>\n## `self`",
"Set the chat as yourself.\n In this context, \"yourself\" means the user behind the master channel.\n Every channel should relate this to the corresponding target.",
" Returns:\n EFBChat: This object.\n<END>",
"<BEGIN>\n## `system`",
"Set the chat as a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prerequisite_check 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 prerequisite_check 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... | Check prerequisites of the framework, including Python version, installation of
modules, etc.
Returns:
Optional[str]: If the check is not passed, return error message regarding
failed test case. None is returned otherwise. | "Check prerequisites of the framework, including Python version, installation of\n modules, etc.\n\n Returns:\n Optional[str]: If the check is not passed, return error message regarding\n failed test case. None is returned otherwise." | 66 | false | blueset/ehForwarderBot | prerequisite_check | 25,675 | |
LDU_FT/dossier/dossier.models/_generate_report_single | LDU_FT | [
"<BEGIN>\n## `run`",
"Generate the report to the given output.",
" :param output: writable file-like object or file path\n<END>",
"<BEGIN>\n## `_generate_report_all`",
"Generate report for all subfolders contained by self.folder_id.\n<END>",
"<BEGIN>\n## `_generate_report_single`",
"Generate repo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_report_single 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 _generate_report_single API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Generate report for subfolder given by sid .
The main purpose of this method is to make sure the subfolder given by
sid does indeed exist. All real work is delegated to
_generate_for_subfolder.
:param sid: The subfolder id
Private method. | "Generate report for subfolder given by sid .\n\n The main purpose of this method is to make sure the subfolder given by\n sid does indeed exist. All real work is delegated to\n _generate_for_subfolder.\n\n :param sid: The subfolder id\n\n Private method." | 217 | false | dossier/dossier.models | _generate_report_single | 25,676 | |
LDU_FT/linode/linode_api4-python/mutate | LDU_FT | [
"<BEGIN>\n## `nodes`",
"This is a special derived_class relationship because NodeBalancerNode is the\n only api object that requires two parent_ids\n<END>",
"<BEGIN>\n## `load_ssl_data`",
"A convenience method that loads a cert and a key from files and sets them\n on this object. This can make ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mutate API.
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 mutate API.
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 ... | Upgrades this Instance to the latest generation type | "Upgrades this Instance to the latest generation type" | 232 | false | linode/linode_api4-python | mutate | 25,677 | |
LDU_FT/miso-belica/sumy/compute_tf | LDU_FT | [
"<BEGIN>\n## `_compute_tf`",
"Computes the normalized term frequency as explained in http://www.tfidf.com/\n<END>",
"<BEGIN>\n## `f_score`",
"Computation of F-Score measure. It is computed as\n F(E) = ( (W^2 + 1) * P(E) * R(E) ) / ( W^2 * P(E) + R(E) ), where:",
" - P(E) is precision metrics of extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_tf API.
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 compute_tf API.
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... | Computes the normalized term frequency as explained in http://www.tfidf.com/
:type sentences: [sumy.models.dom.Sentence] | "Computes the normalized term frequency as explained in http://www.tfidf.com/\n\n :type sentences: [sumy.models.dom.Sentence]" | 66 | false | miso-belica/sumy | compute_tf | 25,678 | |
LDU_FT/Duke-GCB/DukeDSClient/plural_fmt | LDU_FT | [
"<BEGIN>\n## `_create_parser`",
"Create a parser hooking up the command methods below to be run when chosen.\n :return: CommandParser parser with commands attached.\n<END>",
"<BEGIN>\n## `_check_pypi_version`",
"When the version is out of date or we have trouble retrieving it print a error to stderr an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plural_fmt API.
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 plural_fmt API.
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... | pluralize name if necessary and combine with cnt
:param name: str name of the item type
:param cnt: int number items of this type
:return: str name and cnt joined | "pluralize name if necessary and combine with cnt\n :param name: str name of the item type\n :param cnt: int number items of this type\n :return: str name and cnt joined" | 440 | false | Duke-GCB/DukeDSClient | plural_fmt | 25,679 | |
LDU_FT/askedrelic/libgreader/subscribe | LDU_FT | [
"<BEGIN>\n## `get`",
"Convenience method for requesting to google with proper cookies/params.\n<END>",
"<BEGIN>\n## `post`",
"Convenience method for requesting to google with proper cookies/params.\n<END>",
"<BEGIN>\n## `_getAuth`",
"Main step in authorizing with Reader.\n Sends request to Google C... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extract... | 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 extract... | Adds a feed to the top-level subscription list
Ubscribing seems idempotent, you can subscribe multiple times
without error
returns True or throws HTTPError | "Adds a feed to the top-level subscription list\n\n Ubscribing seems idempotent, you can subscribe multiple times\n without error\n\n returns True or throws HTTPError" | 47 | false | askedrelic/libgreader | subscribe | 25,680 | |
LDU_FT/fronzbot/blinkpy/request_videos | LDU_FT | [
"<BEGIN>\n## `refresh`",
"Get all blink cameras and pulls their most recent status.\n<END>",
"<BEGIN>\n## `attributes`",
"Return dictionary of all camera attributes.\n<END>",
"<BEGIN>\n## `snap_picture`",
"Take a picture with camera to create a new thumbnail.\n<END>",
"<BEGIN>\n## `image_to_file`",
"W... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_videos API.
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 request_videos API.
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... | Perform a request for videos.
:param blink: Blink instance.
:param time: Get videos since this time. In epoch seconds.
:param page: Page number to get videos from. | "Perform a request for videos.\n\n :param blink: Blink instance.\n :param time: Get videos since this time. In epoch seconds.\n :param page: Page number to get videos from." | 71 | false | fronzbot/blinkpy | request_videos | 25,681 | |
LDU_FT/skojaku/core-periphery-detection/_to_edge_list | LDU_FT | [
"<BEGIN>\n## `detect`",
"Detect a single core-periphery pair.",
"\t\tParameters\n\t\t----------\n\t\tG : NetworkX graph object",
"\t\tExamples\n\t\t--------\n\t\t>>> import networkx as nx\n\t\t>>> import cpalgorithm as cpa\n\t\t>>> G = nx.karate_club_graph() # load the karate club network. \n\t\t>>> rb = cp.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_edge_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_edge_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Transform NetworkX object to an edge list.
Parameters
----------
G : Graph object.
Returns
-------
node_pairs : (M, 2) numpy array, where M is the number of edges. node_pairs[i,0] and node_pairs[i,1] are the endpoints of the ith edge.
w : Mx1 numpy array. w[i] is the weight of the ith edge.
... | "Transform NetworkX object to an edge list. \n\t\t\n\t\tParameters\n\t\t----------\n\t\tG : Graph object. \n\t\t\n\t\t\n\t\tReturns\n\t\t-------\n\t\tnode_pairs : (M, 2) numpy array, where M is the number of edges. node_pairs[i,0] and node_pairs[i,1] are the endpoints of the ith edge. \n\t\tw : Mx1 numpy array. w[i] i... | 24 | false | skojaku/core-periphery-detection | _to_edge_list | 25,682 | |
LDU_FT/zyga/json-schema-validator/properties | LDU_FT | [
"<BEGIN>\n## `type`",
"Type of a valid object.",
" Type may be a JSON type name or a list of such names. Valid JSON type\n names are ``string``, ``number``, ``integer``, ``boolean``, ``object``,\n ``array``, ``any`` (default).\n<END>",
"<BEGIN>\n## `properties`",
"Schema for particular ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the properties API.
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 properties API.
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... | Schema for particular properties of the object. | "Schema for particular properties of the object." | 48 | false | zyga/json-schema-validator | properties | 25,683 | |
LDU_FT/SmartTeleMax/iktomi/command_schema | LDU_FT | [
"<BEGIN>\n## `pare`",
"Pare text to have maximum size and add etc to the end if it's\n changed\n<END>",
"<BEGIN>\n## `quoteattrs`",
"Takes dict of attributes and returns their HTML representation\n<END>",
"<BEGIN>\n## `quote_js`",
"Quotes text to be used as JavaScript string in HTML templates. The\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command_schema API.
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 command_schema API.
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... | Prints current database schema (according sqlalchemy database model)::
./manage.py sqla:schema [name] | "Prints current database schema (according sqlalchemy database model)::\n\n ./manage.py sqla:schema [name]" | 196 | false | SmartTeleMax/iktomi | command_schema | 25,684 | |
LDU_FT/shaunduncan/nosqlite/find_and_modify | LDU_FT | [
"<BEGIN>\n## `_eq`",
"Returns True if the value of a document field is equal to a given value\n<END>",
"<BEGIN>\n## `_gt`",
"Returns True if the value of a document field is greater than a given value\n<END>",
"<BEGIN>\n## `_lt`",
"Returns True if the value of a document field is less than a given value\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_and_modify API.
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 find_and_modify API.
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... | Finds documents in this collection that match a given query and updates them | "Finds documents in this collection that match a given query and updates them" | 53 | false | shaunduncan/nosqlite | find_and_modify | 25,685 | |
LDU_FT/pmichali/whodunit/merge_user_commits | LDU_FT | [
"<BEGIN>\n## `build_owner`",
"Factory for creating owners, based on --sort option.\n<END>",
"<BEGIN>\n## `collect_modules`",
"Generator to look for git files in tree. Will handle all lines.\n<END>",
"<BEGIN>\n## `collect_blame_info`",
"Runs git blame on files, for the specified sets of line ranges.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_user_commits 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 merge_user_commits 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... | Merge all the commits for the user.
Aggregate line counts, and use the most recent commit (by date/time)
as the representative commit for the user. | "Merge all the commits for the user.\n\n Aggregate line counts, and use the most recent commit (by date/time)\n as the representative commit for the user." | 30 | false | pmichali/whodunit | merge_user_commits | 25,686 | |
LDU_FT/ratt-ru/PyMORESANE/gpu_r2c_fft | LDU_FT | [
"<BEGIN>\n## `iuwt_decomposition`",
"This function serves as a handler for the different implementations of the IUWT decomposition. It allows the\n different methods to be used almost interchangeably.",
" INPUTS:\n in1 (no default): Array on which the decomposition is to be perfor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gpu_r2c_fft API.
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 gpu_r2c_fft API.
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... | This function makes use of the scikits implementation of the FFT for GPUs to take the real to complex FFT.
INPUTS:
in1 (no default): The array on which the FFT is to be performed.
is_gpuarray (default=True): Boolean specifier for whether or not input is on the gpu.
store_on_gp... | "This function makes use of the scikits implementation of the FFT for GPUs to take the real to complex FFT.\n\n INPUTS:\n in1 (no default): The array on which the FFT is to be performed.\n is_gpuarray (default=True): Boolean specifier for whether or not input is on the gpu.\n store... | 125 | false | ratt-ru/PyMORESANE | gpu_r2c_fft | 25,687 | |
LDU_FT/CZ-NIC/yangson/_deref | LDU_FT | [
"<BEGIN>\n## `schema_root`",
"Return the root node of the receiver's schema.\n<END>",
"<BEGIN>\n## `iname`",
"Return the instance name corresponding to the receiver.\n<END>",
"<BEGIN>\n## `_node_digest`",
"Return dictionary of receiver's properties suitable for clients.\n<END>",
"<BEGIN>\n## `_iname2qna... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _deref API.
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 _deref API.
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 ... | XPath: return the list of nodes that the receiver refers to. | "XPath: return the list of nodes that the receiver refers to." | 352 | false | CZ-NIC/yangson | _deref | 25,688 | |
LDU_FT/Thibauth/python-pushover/message | LDU_FT | [
"<BEGIN>\n## `poll`",
"If the message request has a priority of 2, Pushover keeps sending\n the same notification until the client acknowledges it. Calling the\n :func:`poll` function fetches the status of the :class:`MessageRequest`\n object until the notifications either expires, is acknowl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Send `message` to the user specified by `user`. It is possible
to specify additional properties of the message by passing keyword
arguments. The list of valid keywords is ``title, priority, sound,
callback, timestamp, url, url_title, device, retry, expire and html``
which are described i... | "Send `message` to the user specified by `user`. It is possible\n to specify additional properties of the message by passing keyword\n arguments. The list of valid keywords is ``title, priority, sound,\n callback, timestamp, url, url_title, device, retry, expire and html``\n which are descri... | 17 | false | Thibauth/python-pushover | message | 25,689 | |
LDU_FT/luckydonald/pytgbot/to_array | LDU_FT | [
"<BEGIN>\n## `to_array`",
"Serializes this StickerSet to a dictionary.",
" :return: dictionary representation of this object.\n :rtype: dict\n<END>",
"<BEGIN>\n## `from_array`",
"Deserialize a new StickerSet from a given dictionary.",
" :return: new StickerSet instance.\n :rtyp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_array API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_array API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Serializes this KeyboardButton to a dictionary.
:return: dictionary representation of this object.
:rtype: dict | "Serializes this KeyboardButton to a dictionary.\n\n :return: dictionary representation of this object.\n :rtype: dict" | 1,048 | true | luckydonald/pytgbot | to_array | 25,690 | |
LDU_FT/arviz-devs/arviz/_rhat_ufunc | LDU_FT | [
"<BEGIN>\n## `generate_dims_coords`",
"Generate default dimensions and coordinates for a variable.",
" Parameters\n ----------\n shape : tuple[int]\n Shape of the variable\n var_name : str\n Name of the variable. Used in the default name, if necessary\n dims : list\n List of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rhat_ufunc API.
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 _rhat_ufunc API.
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... | Ufunc for computing effective sample size.
This can be used on an xarray Dataset, using
`xr.apply_ufunc(_neff_ufunc, ..., input_core_dims=(('chain', 'draw'),)) | "Ufunc for computing effective sample size.\n\n This can be used on an xarray Dataset, using\n `xr.apply_ufunc(_neff_ufunc, ..., input_core_dims=(('chain', 'draw'),))" | 674 | false | arviz-devs/arviz | _rhat_ufunc | 25,691 | |
LDU_FT/inveniosoftware/invenio-records/get_record | LDU_FT | [
"<BEGIN>\n## `validate`",
"r\"\"\"Validate record according to schema defined in ``$schema`` key.",
" :Keyword Arguments:\n * **format_checker** --\n A ``format_checker`` is an instance of class\n :class:`jsonschema.FormatChecker` containing business logic to\n v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_record API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_record API.
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... | Retrieve the record by id.
Raise a database exception if the record does not exist.
:param id_: record ID.
:param with_deleted: If `True` then it includes deleted records.
:returns: The :class:`Record` instance. | "Retrieve the record by id.\n\n Raise a database exception if the record does not exist.\n\n :param id_: record ID.\n :param with_deleted: If `True` then it includes deleted records.\n :returns: The :class:`Record` instance." | 55 | false | inveniosoftware/invenio-records | get_record | 25,692 | |
LDU_FT/RedFantom/ttkthemes/get_temp_directory | LDU_FT | [
"<BEGIN>\n## `screenshot_themes`",
"Take a screenshot for all themes available\n<END>",
"<BEGIN>\n## `_load_themes`",
"Load the themes into the Tkinter interpreter\n<END>",
"<BEGIN>\n## `_append_theme_dir`",
"Append a theme dir to the Tk interpreter auto_path\n<END>",
"<BEGIN>\n## `set_theme`",
"Set n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_temp_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_temp_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.
Th... | Return an absolute path to an existing temporary directory | "Return an absolute path to an existing temporary directory" | 54 | false | RedFantom/ttkthemes | get_temp_directory | 25,693 | |
LDU_FT/tchellomello/python-amcrest/record_mode | LDU_FT | [
"<BEGIN>\n## `record_config`",
"rec_opt is the Record options listed as example below:",
" +----------------------+--------+------------------------------------+\n | ParamName | Value | Description |\n +----------------------+--------+---------------------... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the record_mode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the record_mode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Params:
channel:
video index, start from 0
record_opt:
+----------------------------+-----------------+-------------------+
| ParamName | ParamValue type | Description |
+----------------------------+-----------------+-------------------+
... | "Params:\n\n channel:\n video index, start from 0\n\n record_opt:\n +----------------------------+-----------------+-------------------+\n | ParamName | ParamValue type | Description |\n +----------------------------+-----------------+-------------------+... | 105 | false | tchellomello/python-amcrest | record_mode | 25,694 | |
LDU_FT/spacetelescope/pysynphot/countrate | LDU_FT | [
"<BEGIN>\n## `setUpClass`",
"Always overridden by the child cases, but let's put some\n real values in here to test with\n<END>",
"<BEGIN>\n## `extract_keywords`",
"Helper function",
" Parameters\n ----------\n icss : string\n comma-separated string",
" Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the countrate API.
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 countrate API.
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... | Calculate effective stimulus in count/s.
Also see :ref:`pysynphot-formula-countrate` and
:ref:`pysynphot-formula-effstim`.
.. note::
This is the calculation performed when the ETC invokes
``countrate``.
Parameters
-----------
binned : bool
... | "Calculate effective stimulus in count/s.\n Also see :ref:`pysynphot-formula-countrate` and\n :ref:`pysynphot-formula-effstim`.\n\n .. note::\n\n This is the calculation performed when the ETC invokes\n ``countrate``.\n\n Parameters\n -----------\n binned ... | 600 | false | spacetelescope/pysynphot | countrate | 25,695 | |
LDU_FT/astropy/regions/get_local_directory_dist | LDU_FT | [
"<BEGIN>\n## `ds9_objects_to_string`",
"Converts a `list` of `~regions.Region` to DS9 region string.",
" Parameters\n ----------\n regions : `list`\n List of `~regions.Region` objects\n coordsys : `str`, optional\n This overrides the coordinate system frame for all regions.\n De... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_local_directory_dist API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_local_directory_dist API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Handle importing a vendored package from a subdirectory of the source
distribution. | "Handle importing a vendored package from a subdirectory of the source\n distribution." | 237 | false | astropy/regions | get_local_directory_dist | 25,696 | |
LDU_FT/samirelanduk/quickplots/vertical_padding | LDU_FT | [
"<BEGIN>\n## `color`",
"Returns or sets (if a value is provided) the series' colour.",
" :param str color: If given, the series' colour will be set to this.\n :rtype: ``str``\n<END>",
"<BEGIN>\n## `name`",
"Returns or sets (if a value is provided) the series' name.",
" :param str name... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vertical_padding API.
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 vertical_padding API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns or sets (if a value is provided) the chart's vertical
padding. This determines how much space will be above and below the
display area, as a proportion of overall height, and should be a value
between 0 and 0.5
:param float padding: If given, the chart's vertical_padding\
... | "Returns or sets (if a value is provided) the chart's vertical\n padding. This determines how much space will be above and below the\n display area, as a proportion of overall height, and should be a value\n between 0 and 0.5\n\n :param float padding: If given, the chart's vertical_padding\\... | 112 | false | samirelanduk/quickplots | vertical_padding | 25,697 | |
LDU_FT/solute/python-tint/_hex_to_rgb | LDU_FT | [
"<BEGIN>\n## `_hex_to_rgb`",
">>> _hex_to_rgb(\"007fff\")\n (0, 127, 255)\n<END>",
"<BEGIN>\n## `add_colors_from_file`",
"Add color definition to a given color system.",
" You may pass either a file-like object or a filename string pointing\n to a color definition csv file. Each line in tha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _hex_to_rgb API.
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 _hex_to_rgb API.
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... | >>> _hex_to_rgb("007fff")
(0, 127, 255) | ">>> _hex_to_rgb(\"007fff\")\n (0, 127, 255)" | 29 | false | solute/python-tint | _hex_to_rgb | 25,698 | |
LDU_FT/rbuffat/pyepw/hour | LDU_FT | [
"<BEGIN>\n## `read`",
"Read values.",
" Args:\n vals (list): list of strings representing values\n<END>",
"<BEGIN>\n## `city`",
"Corresponds to IDD Field `city`",
" Args:\n value (str): value for IDD Field `city`\n if `value` is None it will not be checke... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hour API.
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 hour API.
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... | Corresponds to IDD Field `hour`
Args:
value (int): value for IDD Field `hour`
value >= 1
value <= 24
if `value` is None it will not be checked against the
specification and is assumed to be a missing value
Raises:
... | "Corresponds to IDD Field `hour`\n\n Args:\n value (int): value for IDD Field `hour`\n value >= 1\n value <= 24\n if `value` is None it will not be checked against the\n specification and is assumed to be a missing value\n\n Raises:\n ... | 675 | false | rbuffat/pyepw | hour | 25,699 | |
LDU_FT/refnode/liquid/skip_until | LDU_FT | [
"<BEGIN>\n## `text_coords`",
"r\"\"\"\n Transform a simple index into a human-readable position in a string.",
" This function accepts a string and an index, and will return a triple of\n `(lineno, columnno, line)` representing the position through the text. It's\n useful for displaying a string ind... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the skip_until API.
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 skip_until API.
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... | Like :meth:`scan_until`, but return the number of characters matched.
>>> s = Scanner("test string")
>>> s.skip_until(' ')
5 | "Like :meth:`scan_until`, but return the number of characters matched.\n\n >>> s = Scanner(\"test string\")\n >>> s.skip_until(' ')\n 5" | 54 | false | refnode/liquid | skip_until | 25,700 | |
LDU_FT/rtfd/sphinxcontrib-dotnetdomain/add_target_and_index | LDU_FT | [
"<BEGIN>\n## `parse_signature`",
"Parse signature declartion string",
" Uses :py:attr:`signature_pattern` to parse out pieces of constraint\n signatures. Pattern should provide the following named groups:",
" prefix\n Object prefix, such as a namespace",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_target_and_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_target_and_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Add objects to the domain list of objects
This uses the directive short name along with the full object name to
create objects and nodes that are type and name unique. | "Add objects to the domain list of objects\n\n This uses the directive short name along with the full object name to\n create objects and nodes that are type and name unique." | 37 | false | rtfd/sphinxcontrib-dotnetdomain | add_target_and_index | 25,701 | |
LDU_FT/coinbase/coinbase-python/_build_session | LDU_FT | [
"<BEGIN>\n## `set_primary`",
"https://developers.coinbase.com/api/v2#set-account-as-primary\n<END>",
"<BEGIN>\n## `modify`",
"https://developers.coinbase.com/api#modify-an-account\n<END>",
"<BEGIN>\n## `get_address`",
"https://developers.coinbase.com/api/v2#show-addresss\n<END>",
"<BEGIN>\n## `get_addre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_session API.
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 _build_session API.
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... | Internal helper for creating a requests `session` with the correct
authentication handling. | "Internal helper for creating a requests `session` with the correct\n authentication handling." | 166 | false | coinbase/coinbase-python | _build_session | 25,702 | |
LDU_FT/mdiener/grace/p_with_statement | LDU_FT | [
"<BEGIN>\n## `visit`",
"Returns a generator that walks all children recursively.\n<END>",
"<BEGIN>\n## `list_js_files`",
"Generator for all JavaScript files in the directory, recursively",
" >>> 'examples/module.js' in list(list_js_files('examples'))\n True\n<END>",
"<BEGIN>\n## `save_file`",
"Sav... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_with_statement API.
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 p_with_statement API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | with_statement : WITH LPAREN expr RPAREN statement | "with_statement : WITH LPAREN expr RPAREN statement" | 188 | false | mdiener/grace | p_with_statement | 25,703 | |
LDU_FT/Kentzo/git-archive-all/run_git_shell | LDU_FT | [
"<BEGIN>\n## `create`",
"Create the archive at output_file_path.",
" Type of the archive is determined either by extension of output_file_path or by output_format.\n Supported formats are: gz, zip, bz2, xz, tar, tgz, txz",
" @param output_path: Output file path.\n @type output_path... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_git_shell API.
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 run_git_shell API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Runs git shell command, reads output and decodes it into unicode string.
@param cmd: Command to be executed.
@type cmd: str
@type cwd: str
@param cwd: Working directory.
@rtype: str
@return: Output of the command.
@raise CalledProcessError: Raises exception i... | "Runs git shell command, reads output and decodes it into unicode string.\n\n @param cmd: Command to be executed.\n @type cmd: str\n\n @type cwd: str\n @param cwd: Working directory.\n\n @rtype: str\n @return: Output of the command.\n\n @raise CalledProcessError: Raises... | 35 | false | Kentzo/git-archive-all | run_git_shell | 25,704 | |
LDU_FT/Synerty/pytmpdir/_realPath | LDU_FT | [
"<BEGIN>\n## `pathNames`",
"Path Names",
" @return: A list of path + name of each file, relative to the root\n directory.\n<END>",
"<BEGIN>\n## `paths`",
"Paths",
" @return: A list of the paths, effectively a list of relative\n directory names.\n<END>",
"<BEGIN>\n## `getFile`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _realPath API.
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 _realPath API.
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... | Private Real Path
Get path name.
@param newPathName: variable for new path name if passed argument.
@type newPathName: String
@return: Path Name as string. | "Private Real Path\n\n Get path name.\n\n @param newPathName: variable for new path name if passed argument.\n @type newPathName: String\n @return: Path Name as string." | 76 | false | Synerty/pytmpdir | _realPath | 25,705 | |
LDU_FT/AoiKuiyuyou/AoikLiveReload/run_watcher | LDU_FT | [
"<BEGIN>\n## `main`",
"Main function.",
" :return:\n None.\n<END>",
"<BEGIN>\n## `start_watcher_thread`",
"Start watcher thread.",
" :return:\n Watcher thread object.\n<END>",
"<BEGIN>\n## `run_watcher`",
"Watcher thread's function.",
" :return:\n None.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_watcher API.
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 run_watcher API.
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... | Watcher thread's function.
:return:
None. | "Watcher thread's function.\n\n :return:\n None." | 216 | false | AoiKuiyuyou/AoikLiveReload | run_watcher | 25,706 | |
LDU_FT/escalant3/pyblueprints/getIndices | LDU_FT | [
"<BEGIN>\n## `addVertex`",
"Add param declared for compability with the API. Neo4j\n creates the id automatically\n @params _id: Node unique identifier",
" @returns The created Vertex or None\n<END>",
"<BEGIN>\n## `getVertex`",
"Retrieves an existing vertex from the graph\n @para... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getIndices API.
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 getIndices API.
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... | Returns a generator function over all the existing indexes
@returns A generator function over all rhe Index objects | "Returns a generator function over all the existing indexes\n\n @returns A generator function over all rhe Index objects" | 36 | false | escalant3/pyblueprints | getIndices | 25,707 | |
LDU_FT/ponty/eagexp/export_partlist_to_file | LDU_FT | [
"<BEGIN>\n## `export_image3d`",
"Exporting eagle .brd file into 3D image file\n using Eagle3D and povray.\n GUI is not displayed if ``pyvirtualdisplay`` is installed.\n If export is blocked somehow (e.g. popup window is displayed) then after timeout operation is canceled with exception.\n Problem can ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_partlist_to_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_partlist_to_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | call eagle and export sch or brd to partlist text file
:param input: .sch or .brd file name
:param output: text file name
:param timeout: int
:param showgui: Bool, True -> do not hide eagle GUI
:rtype: None | "call eagle and export sch or brd to partlist text file\n\n :param input: .sch or .brd file name\n :param output: text file name\n :param timeout: int\n :param showgui: Bool, True -> do not hide eagle GUI\n :rtype: None" | 35 | false | ponty/eagexp | export_partlist_to_file | 25,708 | |
LDU_FT/thespacedoctor/tastic/main | LDU_FT | [
"<BEGIN>\n## `projects`",
"*All child projects of this taskpaper object*",
" **Usage:**",
" Given a taskpaper document object (`doc`), to get a list of the project objects found within the document use:",
" .. code-block:: python",
" docProjects = doc.projects",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | *The main function used when ``cl_utils.py`` is run as a single script from the cl, or when installed as a cl command* | "*The main function used when ``cl_utils.py`` is run as a single script from the cl, or when installed as a cl command*" | 285 | false | thespacedoctor/tastic | main | 25,709 | |
LDU_FT/guaix-ucm/numina/flatcombine | LDU_FT | [
"<BEGIN>\n## `combine`",
"Combine HDUList objects using algorithm 'method\n<END>",
"<BEGIN>\n## `logging_from_debugplot`",
"Set debugging level based on debugplot value.",
" Parameters\n ----------\n debugplot : int\n Debugging level for messages and plots. For details see\n '... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatcombine API.
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 flatcombine API.
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... | Combine flat arrays.
:param arrays: a list of arrays
:param masks: a list of mask arrays, True values are masked
:param dtype: data type of the output
:param out: optional output, with one more axis than the input arrays
:param blank: non-positive values are substituted by this on output
:retur... | "Combine flat arrays.\n\n :param arrays: a list of arrays\n :param masks: a list of mask arrays, True values are masked\n :param dtype: data type of the output\n :param out: optional output, with one more axis than the input arrays\n :param blank: non-positive values are substituted by this on output\n ... | 605 | false | guaix-ucm/numina | flatcombine | 25,710 | |
LDU_FT/aisthesis/pynance/get | LDU_FT | [
"<BEGIN>\n## `optimize`",
"Return parameters for portfolio optimization.",
" Parameters\n ----------\n exp_rets : ndarray\n Vector of expected returns for each investment..\n covs : ndarray\n Covariance matrix for the given investments.",
" Returns\n ---------\n a : ndarray\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Metrics for covered calls.
Parameters
----------
eqprice : float
Price at which stock is purchased.
callprice : float
Price for which call is sold.
strike : float
Strike price of call sold.
shares : int, optional
Number of shares of stock. Defaults to 1.
buyc... | "Metrics for covered calls.\n\n Parameters\n ----------\n eqprice : float\n Price at which stock is purchased.\n callprice : float\n Price for which call is sold.\n strike : float\n Strike price of call sold.\n shares : int, optional\n Number of shares of stock. Defaults to... | 231 | false | aisthesis/pynance | get | 25,711 | |
LDU_FT/slickqa/python-client/find | LDU_FT | [
"<BEGIN>\n## `find`",
"You can pass in the appropriate model object from the queries module,\n or a dictionary with the keys and values for the query,\n or a set of key=value parameters.\n<END>",
"<BEGIN>\n## `findOne`",
"Perform a find, with the same options present, but only return a maximum o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You can pass in the appropriate model object from the queries module,
or a dictionary with the keys and values for the query,
or a set of key=value parameters. | "You can pass in the appropriate model object from the queries module,\n or a dictionary with the keys and values for the query,\n or a set of key=value parameters." | 37 | false | slickqa/python-client | find | 25,712 | |
LDU_FT/secdev/scapy/snapshot | LDU_FT | [
"<BEGIN>\n## `_get_npcap_config`",
"Get a Npcap parameter matching key in the registry.",
" List:\n AdminOnly, DefaultFilterSettings, DltNull, Dot11Adapters, Dot11Support\n LoopbackAdapter, LoopbackSupport, NdisImPlatformBindingOptions, VlanSupport\n WinPcapCompatible\n<END>",
"<BEGIN>\n## `_exec_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the snapshot API.
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 snapshot API.
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... | This is used mostly as a way to keep the cipher state and the seq_num. | "This is used mostly as a way to keep the cipher state and the seq_num." | 1,329 | true | secdev/scapy | snapshot | 25,713 | |
LDU_FT/juju-solutions/jujuresources/serve | LDU_FT | [
"<BEGIN>\n## `config_get`",
"Helper to access a Juju config option when charmhelpers is not available.",
" :param str option_name: Name of the config option to get the value of\n<END>",
"<BEGIN>\n## `fetch`",
"Attempt to fetch all resources for a charm.",
" :param list which: A name, or a list of on... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serve API.
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 serve API.
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... | Run a light-weight HTTP server hosting previously mirrored resources | "Run a light-weight HTTP server hosting previously mirrored resources" | 34 | false | juju-solutions/jujuresources | serve | 25,714 | |
LDU_FT/tundish/turberfield-dialogue/read | LDU_FT | [
"<BEGIN>\n## `options`",
"Generate folders to best match metadata.",
" The results will be a single, perfectly matched folder, or the two nearest\n neighbours of an imperfect match.",
" :param dict data: metadata matching criteria.",
" This method is a generator. It yields\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
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 read API.
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... | Read a block of text as a docutils document.
:param str text: Scene script text.
:param str name: An optional name for the document.
:return: A document object. | "Read a block of text as a docutils document.\n\n :param str text: Scene script text.\n :param str name: An optional name for the document.\n :return: A document object." | 63 | false | tundish/turberfield-dialogue | read | 25,715 | |
LDU_FT/subdownloader/subdownloader/get_osdb_hash | LDU_FT | [
"<BEGIN>\n## `do_po`",
"Update all po files with the data in the pot reference file.\n<END>",
"<BEGIN>\n## `configuration_get_default_folder`",
"Return the default folder where user-specific data is stored.\n This depends of the system on which Python is running,\n :return: path to the user-specific con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_osdb_hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_osdb_hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get the hash of this local videofile
:return: hash as string | "Get the hash of this local videofile\n :return: hash as string" | 87 | false | subdownloader/subdownloader | get_osdb_hash | 25,716 | |
LDU_FT/harmsm/PyCmdMessenger/_send_float | LDU_FT | [
"<BEGIN>\n## `send`",
"Send a command (which may or may not have associated arguments) to an \n arduino using the CmdMessage protocol. The command and any parameters\n should be passed as direct arguments to send. ",
" arg_formats is an optional string that specifies the formats to use fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_float API.
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 _send_float API.
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... | Return a float as a IEEE 754 format bytes object. | "Return a float as a IEEE 754 format bytes object." | 33 | false | harmsm/PyCmdMessenger | _send_float | 25,717 | |
LDU_FT/kubernetes-client/python/connect_head_namespaced_pod_proxy | LDU_FT | [
"<BEGIN>\n## `delete_namespaced_horizontal_pod_autoscaler`",
"delete a HorizontalPodAutoscaler\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.delete_namespaced_horizontal_pod_autoscaler(name, nam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_head_namespaced_pod_proxy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_head_namespaced_pod_proxy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | connect HEAD requests to proxy of Pod
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.connect_head_namespaced_pod_proxy(name, namespace, async_req=True)
>>> result = thread.get()
:param as... | "connect HEAD requests to proxy of Pod\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.connect_head_namespaced_pod_proxy(name, namespace, async_req=True)\n >>> result = thread.get()\n\n :p... | 1,652 | true | kubernetes-client/python | connect_head_namespaced_pod_proxy | 25,718 | |
LDU_FT/epandurski/flask_signalbus/get_pk_values | LDU_FT | [
"<BEGIN>\n## `get_instance`",
"Return a model instance in ``db.session``.",
" :param instance_or_pk: An instance of this model class, or a\n primary key. A composite primary key can be passed as a\n tuple.",
" Example::",
" @db.atomic\n def increase_account_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pk_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pk_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return a primary key as a tuple.
:param instance_or_pk: An instance of this model class, or a
primary key. A composite primary key can be passed as a
tuple. | "Return a primary key as a tuple.\n\n :param instance_or_pk: An instance of this model class, or a\n primary key. A composite primary key can be passed as a\n tuple." | 53 | false | epandurski/flask_signalbus | get_pk_values | 25,719 | |
LDU_FT/cdgriffith/Reusables/pushd | LDU_FT | [
"<BEGIN>\n## `datetime_format`",
"Replaces format style phrases (listed in the dt_exps dictionary)\n with this datetime instance's information.",
" .. code :: python",
" reusables.datetime_format(\"Hey, it's {month-full} already!\")\n \"Hey, it's March already!\"",
" :param desired_fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pushd API.
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 pushd API.
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... | Change working directories in style and stay organized!
:param directory: Where do you want to go and remember?
:return: saved directory stack | "Change working directories in style and stay organized!\n\n :param directory: Where do you want to go and remember?\n :return: saved directory stack" | 320 | false | cdgriffith/Reusables | pushd | 25,720 | |
LDU_FT/franciscogarate/pyliferisk/tAx | LDU_FT | [
"<BEGIN>\n## `qx`",
"qx: Returns the probability that a life aged x dies before 1 year\n With the convention: the true probability is qx/1000\n Args:\n mt: the mortality table\n x: the age as integer number.\n<END>",
"<BEGIN>\n## `lx`",
"lx : Returns the number of survivors at begi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tAx API.
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 tAx API.
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... | n/Ax : Returns the EPV (net single premium) of a deferred whole life insurance. | "n/Ax : Returns the EPV (net single premium) of a deferred whole life insurance." | 39 | false | franciscogarate/pyliferisk | tAx | 25,721 | |
LDU_FT/Synerty/pytmpdir/remove | LDU_FT | [
"<BEGIN>\n## `pathNames`",
"Path Names",
" @return: A list of path + name of each file, relative to the root\n directory.\n<END>",
"<BEGIN>\n## `paths`",
"Paths",
" @return: A list of the paths, effectively a list of relative\n directory names.\n<END>",
"<BEGIN>\n## `getFile`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Remove
Removes the file from the Directory object, file on file system
remains on disk. | "Remove\n\n Removes the file from the Directory object, file on file system\n remains on disk." | 76 | false | Synerty/pytmpdir | remove | 25,722 | |
LDU_FT/deep-compute/deeputil/smallest | LDU_FT | [
"<BEGIN>\n## `FunctionTimer`",
"To check execution time of a function\n borrowed from https://medium.com/pythonhive/python-decorator-to-measure-the-execution-time-of-methods-fa04cb6bb36d",
" >>> def logger(details, args, kwargs): #some function that uses the time output\n ... print(details)\n ..... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smallest API.
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 smallest API.
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 the item with the lowest priority.
Raises IndexError if the object is empty. | "Return the item with the lowest priority.\n\n Raises IndexError if the object is empty." | 68 | false | deep-compute/deeputil | smallest | 25,723 | |
LDU_FT/ubleipzig/marcx/firstvalue | LDU_FT | [
"<BEGIN>\n## `valuegetter`",
"Modelled after `operator.itemgetter`. Takes a variable\n number of specs and returns a function, which applied to\n any `pymarc.Record` returns the matching values.",
" Specs are in the form `field` or `field.subfield`, e.g.\n `020` or `020.9`.",
" Example:",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the firstvalue API.
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 firstvalue API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return the [first] [v]alue or the value given by the keyword
argument `default` if not value exists. `default` defaults to `None`. | "Return the [first] [v]alue or the value given by the keyword\n argument `default` if not value exists. `default` defaults to `None`." | 44 | false | ubleipzig/marcx | firstvalue | 25,724 | |
LDU_FT/samirelanduk/quickplots/y_label | LDU_FT | [
"<BEGIN>\n## `color`",
"Returns or sets (if a value is provided) the series' colour.",
" :param str color: If given, the series' colour will be set to this.\n :rtype: ``str``\n<END>",
"<BEGIN>\n## `name`",
"Returns or sets (if a value is provided) the series' name.",
" :param str name... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the y_label API.
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 y_label API.
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 or sets (if a value is provided) the chart's y-axis label.
:param str y_label: If given, the chart's y_label will be set to this.
:rtype: ``str`` | "Returns or sets (if a value is provided) the chart's y-axis label.\n\n :param str y_label: If given, the chart's y_label will be set to this.\n :rtype: ``str``" | 112 | false | samirelanduk/quickplots | y_label | 25,725 | |
LDU_FT/MisterWil/abodepy/_sound_settings | 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 _sound_settings API.
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 _sound_settings API.
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... | Will validate sound settings and values, returns data packet. | "Will validate sound settings and values, returns data packet." | 53 | false | MisterWil/abodepy | _sound_settings | 25,726 | |
LDU_FT/amigocloud/python-amigocloud/upload_datafile | LDU_FT | [
"<BEGIN>\n## `upload_file`",
"Generic method to upload files to AmigoCloud. Can be used for different\n API endpoints.\n `file_obj` could be a file-like object or a filepath.\n If the size of the file is greater than MAX_SIZE_SIMPLE_UPLOAD (8MB)\n `chunked_upload_url` will be used, oth... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_datafile API.
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 upload_datafile API.
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... | Upload datafile to a project. The file must be a supported format or a
zip file containing supported formats.
To see the formats we support, go to this URL:
http://help.amigocloud.com/hc/en-us/articles/202413410-Supported-Format | "Upload datafile to a project. The file must be a supported format or a\n zip file containing supported formats.\n To see the formats we support, go to this URL:\n http://help.amigocloud.com/hc/en-us/articles/202413410-Supported-Format" | 10 | false | amigocloud/python-amigocloud | upload_datafile | 25,727 | |
LDU_FT/inasafe/inasafe/set_mode_label_to_keywords_creation | LDU_FT | [
"<BEGIN>\n## `dict`",
"dictionary representation of the metadata.",
" :return: dictionary representation of the metadata\n :rtype: dict\n<END>",
"<BEGIN>\n## `xml`",
"xml representation of the metadata.",
" :return: xml representation of the metadata\n :rtype: ElementTree.Eleme... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_mode_label_to_keywords_creation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_mode_label_to_keywords_creation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | Set the mode label to the Keywords Creation/Update mode. | "Set the mode label to the Keywords Creation/Update mode." | 4,163 | true | inasafe/inasafe | set_mode_label_to_keywords_creation | 25,728 | |
LDU_FT/limpyd/redis-limpyd-extensions/dynamic_filter | LDU_FT | [
"<BEGIN>\n## `get_name_for`",
"Return the name for the current dynamic field, accepting a limpyd\n instance for the dynamic part\n<END>",
"<BEGIN>\n## `_attach_to_model`",
"Check that the model can handle dynamic fields\n<END>",
"<BEGIN>\n## `pattern`",
"Return the pattern used to check if a field ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dynamic_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dynamic_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Add a filter to the collection, using a dynamic field. The key part of
the filter is composed using the field_name, which must be the field
name of a dynamic field on the attached model, and a dynamic part.
The index_suffix allow to specify which index to use. It's an empty string
by def... | "Add a filter to the collection, using a dynamic field. The key part of\n the filter is composed using the field_name, which must be the field\n name of a dynamic field on the attached model, and a dynamic part.\n The index_suffix allow to specify which index to use. It's an empty string\n b... | 46 | false | limpyd/redis-limpyd-extensions | dynamic_filter | 25,729 | |
LDU_FT/Azure/msrest-for-python/signed_session | 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 signed_session API.
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 signed_session API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Create requests session with any required auth headers
applied.
If a session object is provided, configure it directly. Otherwise,
create a new session and return it.
:param session: The session to configure for authentication
:type session: requests.Session
:rtype: req... | "Create requests session with any required auth headers\n applied.\n\n If a session object is provided, configure it directly. Otherwise,\n create a new session and return it.\n\n :param session: The session to configure for authentication\n :type session: requests.Session\n :r... | 324 | false | Azure/msrest-for-python | signed_session | 25,730 | |
LDU_FT/vpelletier/python-libusb1/get_iso_packet_buffer_list | LDU_FT | [
"<BEGIN>\n## `newStruct`",
"Create a ctype structure class based on USB standard field naming\n (type-prefixed).\n<END>",
"<BEGIN>\n## `get_iso_packet_buffer_list`",
"Python-specific helper extracting a list of iso packet buffers.\n<END>",
"<BEGIN>\n## `get_extra`",
"Python-specific helper to access \"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_iso_packet_buffer_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_iso_packet_buffer_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Python-specific helper extracting a list of iso packet buffers. | "Python-specific helper extracting a list of iso packet buffers." | 136 | false | vpelletier/python-libusb1 | get_iso_packet_buffer_list | 25,731 | |
LDU_FT/bertrandvidal/parse_this/_prepare_doc | LDU_FT | [
"<BEGIN>\n## `_get_args_and_defaults`",
"Return a list of 2-tuples - the argument name and its default value or\n a special value that indicates there is no default value.",
" Args:\n args: list of argument name\n defaults: tuple of default values\n<END>",
"<BEGIN>\n## `_prepare_doc`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_doc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_doc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | From the function docstring get the arg parse description and arguments
help message. If there is no docstring simple description and help
message are created.
Args:
func: the function that needs argument parsing
args: name of the function arguments
delimiter_chars: characte... | "From the function docstring get the arg parse description and arguments\n help message. If there is no docstring simple description and help\n message are created.\n\n Args:\n func: the function that needs argument parsing\n args: name of the function arguments\n delimiter_chars: ... | 52 | false | bertrandvidal/parse_this | _prepare_doc | 25,732 | |
LDU_FT/erinxocon/requests-xml/lxml | LDU_FT | [
"<BEGIN>\n## `raw_xml`",
"Bytes representation of the XML content.\n (`learn more <http://www.diveintopython3.net/strings.html>`_).\n<END>",
"<BEGIN>\n## `xml`",
"Unicode representation of the XML content\n (`learn more <http://www.diveintopython3.net/strings.html>`_).\n<END>",
"<BEGIN>\n## `p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lxml API.
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 lxml API.
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... | `lxml <http://lxml.de>`_ representation of the
:class:`Element <Element>` or :class:`XML <XML>`. | "`lxml <http://lxml.de>`_ representation of the\n :class:`Element <Element>` or :class:`XML <XML>`." | 33 | false | erinxocon/requests-xml | lxml | 25,733 | |
LDU_FT/hollenstein/maspy/continuityGrouping | LDU_FT | [
"<BEGIN>\n## `_getArrays`",
"Return arrays with equal size of item attributes from a list of sorted\n \"items\" for fast and convenient data processing.",
" :param attr: list of item attributes that should be added to the returned\n array.\n :param defaultValue: if an item is missing an attribut... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the continuityGrouping 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 continuityGrouping 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... | #TODO docstring
:param values: ``numpy.array`` containg ``int`` or ``float``, must be sorted
:param limit: the maximal difference between two values, if this number is
exceeded a new group is generated
:returns: a list containing array start and end positions of continuous
groups | "#TODO docstring\n\n :param values: ``numpy.array`` containg ``int`` or ``float``, must be sorted\n :param limit: the maximal difference between two values, if this number is\n exceeded a new group is generated\n\n :returns: a list containing array start and end positions of continuous\n groups" | 742 | false | hollenstein/maspy | continuityGrouping | 25,734 | |
LDU_FT/llimllib/limbo/post_reaction | LDU_FT | [
"<BEGIN>\n## `loop`",
"Run the main loop",
" server is a limbo Server object\n test_loop, if present, is a number of times to run the loop\n<END>",
"<BEGIN>\n## `weather`",
"Get the weather for a place given by searchterm",
" Returns a title and a list of forecasts.",
" The title describes t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_reaction API.
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 post_reaction API.
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... | Send a reaction to a message using slack Event API | "Send a reaction to a message using slack Event API" | 35 | false | llimllib/limbo | post_reaction | 25,735 | |
LDU_FT/dnouri/nolearn/get_receptive_field | LDU_FT | [
"<BEGIN>\n## `plot_conv_weights`",
"Plot the weights of a specific layer.",
" Only really makes sense with convolutional layers.",
" Parameters\n ----------\n layer : lasagne.layers.Layer\n<END>",
"<BEGIN>\n## `plot_conv_activity`",
"Plot the acitivities of a specific layer.",
" Only real... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_receptive_field API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_receptive_field API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Get the real filter sizes of each layer involved in
convoluation. See Xudong Cao:
https://www.kaggle.com/c/datasciencebowl/forums/t/13166/happy-lantern-festival-report-and-code
This does not yet take into consideration feature pooling,
padding, striding and similar gimmicks. | "Get the real filter sizes of each layer involved in\n convoluation. See Xudong Cao:\n https://www.kaggle.com/c/datasciencebowl/forums/t/13166/happy-lantern-festival-report-and-code\n This does not yet take into consideration feature pooling,\n padding, striding and similar gimmicks." | 64 | false | dnouri/nolearn | get_receptive_field | 25,736 | |
LDU_FT/MisanthropicBit/colorise/cprint | LDU_FT | [
"<BEGIN>\n## `set_color`",
"Set the current colors.",
" If no arguments are given, sets default colors.\n<END>",
"<BEGIN>\n## `cprint`",
"Print a colored string to the target handle.",
" fg and bg specify foreground- and background colors, respectively. The\n remaining keyword arguments are the s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cprint API.
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 cprint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Print a colored string to the target handle.
fg and bg specify foreground- and background colors, respectively. The
remaining keyword arguments are the same as for Python's built-in print
function. Colors are returned to their defaults before the function
returns. | "Print a colored string to the target handle.\n\n fg and bg specify foreground- and background colors, respectively. The\n remaining keyword arguments are the same as for Python's built-in print\n function. Colors are returned to their defaults before the function\n returns." | 31 | false | MisanthropicBit/colorise | cprint | 25,737 | |
LDU_FT/crocs-muni/roca/process_js_certs | LDU_FT | [
"<BEGIN>\n## `error_message`",
"Formats exception message + cause\n :param e:\n :param message:\n :param cause:\n :return: formatted message, includes cause if any is set\n<END>",
"<BEGIN>\n## `format_pgp_key`",
"Formats PGP key in 16hex digits\n :param key:\n :return:\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_js_certs API.
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 process_js_certs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Process one certificate from JSON
:param data:
:param name:
:param idx:
:param sub_idx:
:return: | "Process one certificate from JSON\n :param data:\n :param name:\n :param idx:\n :param sub_idx:\n :return:" | 133 | false | crocs-muni/roca | process_js_certs | 25,738 | |
LDU_FT/jwkvam/plotlywrapper/show | LDU_FT | [
"<BEGIN>\n## `_detect_notebook`",
"Detect if code is running in a Jupyter Notebook.",
" This isn't 100% correct but seems good enough",
" Returns\n -------\n bool\n True if it detects this is a notebook, otherwise False.\n<END>",
"<BEGIN>\n## `_try_pydatetime`",
"Try to convert to panda... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Display the chart.
Parameters
----------
filename : str, optional
Save plot to this filename, otherwise it's saved to a temporary file.
show_link : bool, optional
Show link to plotly.
auto_open : bool, optional
Automatically open the plot (in ... | "Display the chart.\n\n Parameters\n ----------\n filename : str, optional\n Save plot to this filename, otherwise it's saved to a temporary file.\n show_link : bool, optional\n Show link to plotly.\n auto_open : bool, optional\n Automatically open the... | 87 | false | jwkvam/plotlywrapper | show | 25,739 | |
LDU_FT/limodou/uliweb/serialize | LDU_FT | [
"<BEGIN>\n## `get_frame_info`",
"Return a dict of information about a given traceback.\n<END>",
"<BEGIN>\n## `get_sort_field`",
"Get sort column info according request, the data format just likes:\r",
" ?sort=fieldA.asc&sort=fieldB.desc\r",
" or:\r",
" ?sort=fieldA&sort=fieldB&order... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Serialize the secure cookie into a string.
If expires is provided, the session will be automatically invalidated
after expiration when you unseralize it. This provides better
protection against session cookie theft.
:param expires: an optional expiration date for the cookie (a
... | "Serialize the secure cookie into a string.\n\n If expires is provided, the session will be automatically invalidated\n after expiration when you unseralize it. This provides better\n protection against session cookie theft.\n\n :param expires: an optional expiration date for the cookie (a\n... | 886 | false | limodou/uliweb | serialize | 25,740 | |
LDU_FT/rob-smallshire/trailer/read_gpx | LDU_FT | [
"<BEGIN>\n## `visit_GpxModel`",
"Render a GPXModel as a single JSON structure.\n<END>",
"<BEGIN>\n## `visit_Metadata`",
"Render GPX Metadata as a single JSON structure.\n<END>",
"<BEGIN>\n## `read_gpx`",
"Parse a GPX file into a GpxModel.",
" Args:\n xml: A file-like-object opened in binary mo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_gpx API.
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 read_gpx API.
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... | Parse a GPX file into a GpxModel.
Args:
xml: A file-like-object opened in binary mode - that is containing
bytes rather than characters. The root element of the XML should
be a <gpx> element containing a version attribute. GPX versions
1.1 is supported.
gpxns... | "Parse a GPX file into a GpxModel.\n\n Args:\n xml: A file-like-object opened in binary mode - that is containing\n bytes rather than characters. The root element of the XML should\n be a <gpx> element containing a version attribute. GPX versions\n 1.1 is supported.\n\n ... | 30 | false | rob-smallshire/trailer | read_gpx | 25,741 | |
LDU_FT/mozilla/DeepSpeech/exec_command | LDU_FT | [
"<BEGIN>\n## `reduce_filename`",
"r'''\n Expects something like /tmp/tmpAjry4Gdsbench/test.weights.e5.XXX.YYY.pb\n Where XXX is a variation on the model size for example\n And where YYY is a const related to the training dataset\n<END>",
"<BEGIN>\n## `keep_only_digits`",
"r'''\n local helper to ju... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exec_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exec_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | r'''
Helper to exec locally (subprocess) or remotely (paramiko) | "r'''\n Helper to exec locally (subprocess) or remotely (paramiko)" | 98 | false | mozilla/DeepSpeech | exec_command | 25,742 | |
LDU_FT/GemHQ/round-py/create | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a new Device object.",
" Devices tie Users and Applications together. For your Application to\n access and act on behalf of a User, the User must authorize a Device\n created by your Application.",
" This function will return a `device_token` which y... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create a new User object and add it to this Users collection.
In addition to creating a user, this call will create a device for that
user, whose device_token will be returned from this call. Store the
device_token, as it's required to complete Gem-Device authentication
after the user a... | "Create a new User object and add it to this Users collection.\n\n In addition to creating a user, this call will create a device for that\n user, whose device_token will be returned from this call. Store the\n device_token, as it's required to complete Gem-Device authentication\n after the ... | 136 | false | GemHQ/round-py | create | 25,743 | |
LDU_FT/ianepperson/pyredminews/_objectify | LDU_FT | [
"<BEGIN>\n## `journals`",
"Retrieve journals attribute for this very Issue\n<END>",
"<BEGIN>\n## `save`",
"Save all changes back to Redmine with optional notes.\n<END>",
"<BEGIN>\n## `set_status`",
"Save all changes and set to the given new_status\n<END>",
"<BEGIN>\n## `_objectify`",
"Return an object... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _objectify API.
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 _objectify API.
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 an object derived from the given json data. | "Return an object derived from the given json data." | 45 | false | ianepperson/pyredminews | _objectify | 25,744 | |
LDU_FT/raghakot/keras-vis/get_img_shape | LDU_FT | [
"<BEGIN>\n## `visualize_activation_with_losses`",
"Generates the `input_tensor` that minimizes the weighted `losses`. This function is intended for advanced\n use cases where a custom loss is desired.",
" Args:\n input_tensor: An input tensor of shape: `(samples, channels, image_dims...)` if `image... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_img_shape API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_img_shape API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns image shape in a backend agnostic manner.
Args:
img: An image tensor of shape: `(channels, image_dims...)` if data_format='channels_first' or
`(image_dims..., channels)` if data_format='channels_last'.
Returns:
Tuple containing image shape information in `(samples, channels... | "Returns image shape in a backend agnostic manner.\n\n Args:\n img: An image tensor of shape: `(channels, image_dims...)` if data_format='channels_first' or\n `(image_dims..., channels)` if data_format='channels_last'.\n\n Returns:\n Tuple containing image shape information in `(samples, ... | 138 | false | raghakot/keras-vis | get_img_shape | 25,745 | |
LDU_FT/deschler/django-modeltranslation/patch_clean_fields | LDU_FT | [
"<BEGIN>\n## `autodiscover`",
"Auto-discover INSTALLED_APPS translation.py modules and fail silently when\n not present. This forces an import on them to register.\n Also import explicit modules.\n<END>",
"<BEGIN>\n## `register`",
"Registers the given model(s) with the given translation options.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_clean_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_clean_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Patch clean_fields method to handle different form types submission. | "Patch clean_fields method to handle different form types submission." | 122 | false | deschler/django-modeltranslation | patch_clean_fields | 25,746 | |
LDU_FT/ianepperson/telnetsrvlib/inputcooker | LDU_FT | [
"<BEGIN>\n## `inputcooker_store_queue`",
"Put the cooked data in the input queue (no locking needed)\n<END>",
"<BEGIN>\n## `streamserver_handle`",
"Translate this class for use in a StreamServer\n<END>",
"<BEGIN>\n## `check_channel_shell_request`",
"Request to start a shell on the given channel\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inputcooker API.
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 inputcooker API.
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... | Input Cooker - Transfer from raw queue to cooked queue.
Set self.eof when connection is closed. Don't block unless in
the midst of an IAC sequence. | "Input Cooker - Transfer from raw queue to cooked queue.\n\n Set self.eof when connection is closed. Don't block unless in\n the midst of an IAC sequence." | 45 | false | ianepperson/telnetsrvlib | inputcooker | 25,747 | |
LDU_FT/mikhaildubov/AST-text-analysis/keyphrases_table | LDU_FT | [
"<BEGIN>\n## `traverse_depth_first_pre_order`",
"Visits the internal \"nodes\" of the enhanced suffix array in depth-first pre-order.",
" Based on Abouelhoda et al. (2004).\n<END>",
"<BEGIN>\n## `traverse_depth_first_post_order`",
"Visits the internal \"nodes\" of the enhanced suffix array in depth-f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keyphrases_table API.
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 keyphrases_table API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Constructs the keyphrases table, containing their matching scores in a set of texts.
The resulting table is stored as a dictionary of dictionaries,
where the entry table["keyphrase"]["text"] corresponds
to the matching score (0 <= score <= 1) of keyphrase "keyphrase"
in the text named "text".
... | "Constructs the keyphrases table, containing their matching scores in a set of texts.\n\n The resulting table is stored as a dictionary of dictionaries,\n where the entry table[\"keyphrase\"][\"text\"] corresponds\n to the matching score (0 <= score <= 1) of keyphrase \"keyphrase\"\n in the text named \"tex... | 52 | false | mikhaildubov/AST-text-analysis | keyphrases_table | 25,748 | |
LDU_FT/junaruga/rpm-py-installer/sh_e_out | LDU_FT | [
"<BEGIN>\n## `download_and_install`",
"Download and install RPM Python binding.\n<END>",
"<BEGIN>\n## `add_patchs_to_build_without_pkg_config`",
"Add patches to remove pkg-config command and rpm.pc part.",
" Replace with given library_path: lib_dir and include_path: include_dir\n without rpm.p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sh_e_out API.
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 sh_e_out API.
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... | Run the command. and returns the stdout. | "Run the command. and returns the stdout." | 67 | false | junaruga/rpm-py-installer | sh_e_out | 25,749 | |
LDU_FT/vpelletier/python-functionfs/onAIOCompletion | LDU_FT | [
"<BEGIN>\n## `getInterfaceInAllSpeeds`",
"Produce similar fs, hs and ss interface and endpoints descriptors.\n Should be useful for devices desiring to work in all 3 speeds with maximum\n endpoint wMaxPacketSize. Reduces data duplication from descriptor\n declarations.\n Not intended to cover fancy co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the onAIOCompletion API.
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 onAIOCompletion API.
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... | Call when eventfd notified events are available. | "Call when eventfd notified events are available." | 40 | false | vpelletier/python-functionfs | onAIOCompletion | 25,750 | |
LDU_FT/fogleman/pg/dot | LDU_FT | [
"<BEGIN>\n## `delete_all`",
"Calls `delete()` on all members of `obj` that are recognized as\n instances of `pg` objects.\n<END>",
"<BEGIN>\n## `_glfw_get_version`",
"Queries and returns the library version tuple or None by using a\n subprocess.\n<END>",
"<BEGIN>\n## `set_error_callback`",
"Sets the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dot API.
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 dot API.
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... | Computes the dot product of two vectors. | "Computes the dot product of two vectors." | 39 | false | fogleman/pg | dot | 25,751 | |
LDU_FT/uw-it-aca/uw-restclients/_json_to_evaluation | LDU_FT | [
"<BEGIN>\n## `new_regid_custom_field`",
"Return a BridgeCustomField object for REGID\n to be used in a POST, PATCH request\n<END>",
"<BEGIN>\n## `get_reservations`",
"Return a list of reservations matching the passed filter.\n Supported kwargs are listed at\n http://knowledge25.collegenet.com/display... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _json_to_evaluation 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 _json_to_evaluation 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... | Only keep the data for online evaluations.
Two scenarios for multiple instructors:
1) all of the co-instructors may be evaluated online as a group,
sharing the eval URL.
2) each co-instructor may be evaluated individually,
with separate eval URLs. | "Only keep the data for online evaluations.\n Two scenarios for multiple instructors:\n 1) all of the co-instructors may be evaluated online as a group,\n sharing the eval URL.\n 2) each co-instructor may be evaluated individually,\n with separate eval URLs." | 129 | false | uw-it-aca/uw-restclients | _json_to_evaluation | 25,752 | |
LDU_FT/inspirehep/inspire-dojson/title_translations | LDU_FT | [
"<BEGIN>\n## `normalize_rank`",
"Normalize a rank in order to be schema-compliant.\n<END>",
"<BEGIN>\n## `get_recid_from_ref`",
"Retrieve recid from jsonref reference object.",
" If no recid can be parsed, returns None.\n<END>",
"<BEGIN>\n## `absolute_url`",
"Returns an absolute URL from a URL relati... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the title_translations 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 title_translations 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... | Populate the ``title_translations`` key. | "Populate the ``title_translations`` key." | 163 | false | inspirehep/inspire-dojson | title_translations | 25,753 | |
LDU_FT/jbeluch/xbmcswift2/setup_log | LDU_FT | [
"<BEGIN>\n## `display_listitems`",
"Displays a list of items along with the index to enable a user\n to select an item.\n<END>",
"<BEGIN>\n## `display_video`",
"Prints a message for a playing video and displays the parent\n listitem.\n<END>",
"<BEGIN>\n## `get_user_choice`",
"Returns the selected it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_log API.
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 setup_log API.
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... | Returns a logging instance for the provided name. The returned
object is an instance of logging.Logger. Logged messages will be
printed to stderr when running in the CLI, or forwarded to XBMC's
log when running in XBMC mode. | "Returns a logging instance for the provided name. The returned\n object is an instance of logging.Logger. Logged messages will be\n printed to stderr when running in the CLI, or forwarded to XBMC's\n log when running in XBMC mode." | 164 | false | jbeluch/xbmcswift2 | setup_log | 25,754 | |
LDU_FT/ubernostrum/django-registration/get | LDU_FT | [
"<BEGIN>\n## `dispatch`",
"Check that user signup is allowed before even bothering to\n dispatch or do other processing.\n<END>",
"<BEGIN>\n## `get`",
"The base activation logic; subclasses should leave this method\n alone and implement activate(), which is called from this\n method.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | The base activation logic; subclasses should leave this method
alone and implement activate(), which is called from this
method. | "The base activation logic; subclasses should leave this method\n alone and implement activate(), which is called from this\n method." | 20 | false | ubernostrum/django-registration | get | 25,755 | |
LDU_FT/flo-compbio/genometools/write_sparse | LDU_FT | [
"<BEGIN>\n## `sum`",
"Sum over rows or columns.",
" Overrides the default `pandas.DataFrame.sum()` function to prevent\n temporary in-memory copies.\n<END>",
"<BEGIN>\n## `get_heatmap`",
"Generate a heatmap (`ExpHeatmap`) of the matrix.",
" See :class:`ExpHeatmap` constructor for keyw... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_sparse API.
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 write_sparse API.
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... | Write a sparse representation to a tab-delimited text file.
TODO: docstring | "Write a sparse representation to a tab-delimited text file.\n \n TODO: docstring" | 496 | false | flo-compbio/genometools | write_sparse | 25,756 | |
LDU_FT/dschreij/python-mediadecoder/__calculate_audio_frames | LDU_FT | [
"<BEGIN>\n## `get_frame`",
"Callback function for the audio stream. Don't use directly.\n<END>",
"<BEGIN>\n## `queue`",
"Sets the audioqueue.",
"\t\tParameters\n\t\t----------\n\t\tvalue : queue.Queue\n\t\t\tThe buffer from which audioframes are received.\n<END>",
"<BEGIN>\n## `loop`",
"Indicates whethe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __calculate_audio_frames 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 __calculate_audio_frames API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Aligns audio with video.
This should be called for instance after a seeking operation or resuming
from a pause. | "Aligns audio with video. \n\t\tThis should be called for instance after a seeking operation or resuming \n\t\tfrom a pause." | 75 | false | dschreij/python-mediadecoder | __calculate_audio_frames | 25,757 | |
LDU_FT/quantmind/dynts/ascolumn | LDU_FT | [
"<BEGIN>\n## `jstimestamp_slow`",
"Convert a date or datetime object into a javsacript timestamp\n<END>",
"<BEGIN>\n## `jstimestamp`",
"Convert a date or datetime object into a javsacript timestamp.\n<END>",
"<BEGIN>\n## `rolling`",
"Fast rolling operation with O(log n) updates where n is the\n win... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ascolumn API.
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 ascolumn API.
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... | Convert ``x`` into a ``column``-type ``numpy.ndarray``. | "Convert ``x`` into a ``column``-type ``numpy.ndarray``." | 159 | false | quantmind/dynts | ascolumn | 25,758 | |
LDU_FT/erdc/RAPIDpy/generate_qinit_from_past_qout | LDU_FT | [
"<BEGIN>\n## `generate_single_return_period`",
"This function calculates a single return period for a single reach\n<END>",
"<BEGIN>\n## `generate_return_periods`",
"Generate return period from RAPID Qout file\n<END>",
"<BEGIN>\n## `get_poly_area_geo`",
"Calculates the area in meters squared of the indivi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_qinit_from_past_qout API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_qinit_from_past_qout API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Generate qinit from a RAPID qout file
Parameters
----------
qinit_file: str
Path to output qinit_file.
time_index: int, optional
Index of simulation to generate initial flow file.
Default is the last index.
out_datetime: :obj:`datetime.datetim... | "Generate qinit from a RAPID qout file\n\n Parameters\n ----------\n qinit_file: str\n Path to output qinit_file.\n time_index: int, optional\n Index of simulation to generate initial flow file.\n Default is the last index.\n out_datetime: :obj:`dateti... | 502 | false | erdc/RAPIDpy | generate_qinit_from_past_qout | 25,759 | |
LDU_FT/datascopeanalytics/traces/normalized | LDU_FT | [
"<BEGIN>\n## `duration_to_number`",
"If duration is already a numeric type, then just return\n duration. If duration is a timedelta, return a duration in\n seconds.",
" TODO: allow for multiple types of units.\n<END>",
"<BEGIN>\n## `convert_args_to_list`",
"Convert all iterable pairs of inputs into... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalized API.
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 normalized API.
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 normalized version of the histogram where the values sum
to one. | "Return a normalized version of the histogram where the values sum\n to one." | 73 | false | datascopeanalytics/traces | normalized | 25,760 | |
LDU_FT/vmirly/pyclust/_kmeans | LDU_FT | [
"<BEGIN>\n## `_update_centers`",
"Update Cluster Centers:\n calculate the mean of feature vectors for each cluster.",
" distance can be a string or callable.\n<END>",
"<BEGIN>\n## `_kmedoids_run`",
"Run a single trial of k-medoids clustering\n on dataset X, and given number of cluste... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _kmeans API.
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 _kmeans API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Run multiple trials of k-means clustering,
and outputt he best centers, and cluster labels | "Run multiple trials of k-means clustering,\n and outputt he best centers, and cluster labels" | 47 | false | vmirly/pyclust | _kmeans | 25,761 | |
LDU_FT/productml/blurr/write_output_file | LDU_FT | [
"<BEGIN>\n## `run_evaluate`",
"Overrides the base evaluation to set the value to the evaluation result of the value\n expression in the schema\n<END>",
"<BEGIN>\n## `set`",
"Sets the value of a key to a supplied value\n<END>",
"<BEGIN>\n## `increment`",
"Increments the value set against a key. If ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_output_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_output_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Basic helper function to persist data to disk.
If window BTS was provided then the window BTS output to written in csv format, otherwise,
the streaming BTS output is written in JSON format to the `path` provided
:param path: Path where the output should be written.
:param per_identity_... | "Basic helper function to persist data to disk.\n\n If window BTS was provided then the window BTS output to written in csv format, otherwise,\n the streaming BTS output is written in JSON format to the `path` provided\n\n :param path: Path where the output should be written.\n :param per_id... | 119 | false | productml/blurr | write_output_file | 25,762 | |
LDU_FT/ayust/kitnirc/_parse_part | LDU_FT | [
"<BEGIN>\n## `on_line`",
"Default handling for incoming lines.",
" This handler will automatically manage the following IRC messages:",
" PING:\n Responds with a PONG.\n PRIVMSG:\n Dispatches the PRIVMSG event.\n NOTICE:\n Dispatches the NOTICE event.\n MOTDSTART:\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_part API.
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 _parse_part API.
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... | Parse a PART and update channel states, then dispatch events.
Note that two events are dispatched here:
- PART, because a user parted the channel
- MEMBERS, because the channel's members changed | "Parse a PART and update channel states, then dispatch events.\n\n Note that two events are dispatched here:\n - PART, because a user parted the channel\n - MEMBERS, because the channel's members changed" | 151 | false | ayust/kitnirc | _parse_part | 25,763 | |
LDU_FT/NicolasLM/spinach/add | LDU_FT | [
"<BEGIN>\n## `_reset`",
"Initialization that must happen before the arbiter is (re)started\n<END>",
"<BEGIN>\n## `attach_tasks`",
"Attach a set of tasks.",
" A task cannot be scheduled or executed before it is attached to an\n Engine.",
" >>> tasks = Tasks()\n >>> spin.attach_t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Register a task function.
:arg func: a callable to be executed
:arg name: name of the task, used later to schedule jobs
:arg queue: queue of the task, the default is used if not provided
:arg max_retries: maximum number of retries, the default is used if
not provided
... | "Register a task function.\n\n :arg func: a callable to be executed\n :arg name: name of the task, used later to schedule jobs\n :arg queue: queue of the task, the default is used if not provided\n :arg max_retries: maximum number of retries, the default is used if\n not provided... | 93 | false | NicolasLM/spinach | add | 25,764 | |
LDU_FT/aboSamoor/polyglot/detect | LDU_FT | [
"<BEGIN>\n## `most_frequent`",
"Only most frequent k words to be included in the embeddings.\n<END>",
"<BEGIN>\n## `normalize_words`",
"Normalize embeddings matrix row-wise.",
" Args:\n ord: normalization order. Possible values {1, 2, 'inf', '-inf'}\n<END>",
"<BEGIN>\n## `nearest_neighbors`",
"R... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect API.
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 detect API.
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 ... | Decide which language is used to write the text.
The method tries first to detect the language with high reliability. If
that is not possible, the method switches to best effort strategy.
Args:
text (string): A snippet of text, the longer it is the more reliable we
can detect t... | "Decide which language is used to write the text.\n\n The method tries first to detect the language with high reliability. If\n that is not possible, the method switches to best effort strategy.\n\n\n Args:\n text (string): A snippet of text, the longer it is the more reliable we\n can... | 189 | false | aboSamoor/polyglot | detect | 25,765 | |
LDU_FT/vulndb/python-sdk/handle_ref | LDU_FT | [
"<BEGIN>\n## `from_file`",
"This is an alternative \"constructor\" for the DBVuln class which loads\n the data from a file.",
" :param db_file: Contents of a json file from the DB\n :param language: The user's language (en, es, etc.)\n<END>",
"<BEGIN>\n## `from_id`",
"This is an alterna... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_ref API.
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 handle_ref API.
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... | Receives something like:
{
"$ref": "#/files/description/1"
},
Or:
{
"$ref": "#/files/fix/39"
}
And returns the contents of the description or fix file.
:param attr: A dict containing a reference
:param language: T... | "Receives something like:\n\n {\n \"$ref\": \"#/files/description/1\"\n },\n\n Or:\n\n {\n \"$ref\": \"#/files/fix/39\"\n }\n\n And returns the contents of the description or fix file.\n\n :param attr: A dict containing a reference\n ... | 26 | false | vulndb/python-sdk | handle_ref | 25,766 | |
LDU_FT/thunder-project/thunder/crosscorr | LDU_FT | [
"<BEGIN>\n## `fromrdd`",
"Load images from a Spark RDD.",
" Input RDD must be a collection of key-value pairs\n where keys are singleton tuples indexing images,\n and values are 2d or 3d ndarrays.",
" Parameters\n ----------\n rdd : SparkRDD\n An RDD containing the images.",
" di... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crosscorr API.
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 crosscorr API.
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... | Cross correlate series data against another signal.
Parameters
----------
signal : array
Signal to correlate against (must be 1D).
lag : int
Range of lags to consider, will cover (-lag, +lag). | "Cross correlate series data against another signal.\n\n Parameters\n ----------\n signal : array\n Signal to correlate against (must be 1D).\n\n lag : int\n Range of lags to consider, will cover (-lag, +lag)." | 420 | false | thunder-project/thunder | crosscorr | 25,767 | |
LDU_FT/zooniverse/panoptes-python-client/generate_export | LDU_FT | [
"<BEGIN>\n## `find`",
"Like :py:meth:`.PanoptesObject.find` but can also query by user and\n project.",
" - **user** and **project** can be either a :py:class:`.User` and\n :py:class:`.Project` instance respectively, or they can be given as\n IDs. If either argument is given, the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_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 e... | Start a new export.
- **export_type** is a string specifying which type of export to start.
Returns a :py:class:`dict` containing metadata for the new export. | "Start a new export.\n\n - **export_type** is a string specifying which type of export to start.\n\n Returns a :py:class:`dict` containing metadata for the new export." | 104 | false | zooniverse/panoptes-python-client | generate_export | 25,768 | |
LDU_FT/pavelsof/ipatok/is_diacritic | LDU_FT | [
"<BEGIN>\n## `normalise`",
"Convert each character of the string to the normal form in which it was\n\tdefined in the IPA spec. This would be normal form D, except for the\n\tvoiceless palatar fricative (ç) which should be in normal form C.",
"\tHelper for tokenise_word(string, ..).\n<END>",
"<BEGIN>\n## `gro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_diacritic API.
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 is_diacritic API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Check whether the character is a diacritic (as opposed to a letter or a
suprasegmental).
In strict mode return True only if the diacritic is part of the IPA spec. | "Check whether the character is a diacritic (as opposed to a letter or a\n\tsuprasegmental).\n\n\tIn strict mode return True only if the diacritic is part of the IPA spec." | 47 | false | pavelsof/ipatok | is_diacritic | 25,769 | |
LDU_FT/jic-dtool/dtool-irods/_create_structure | LDU_FT | [
"<BEGIN>\n## `_put_obj`",
"Put python object into iRODS as JSON text.\n<END>",
"<BEGIN>\n## `list_dataset_uris`",
"Return list containing URIs in base_uri.\n<END>",
"<BEGIN>\n## `get_item_abspath`",
"Return absolute path at which item content can be accessed.",
" :param identifier: item identifie... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_structure API.
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 _create_structure API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Create necessary structure to hold a dataset. | "Create necessary structure to hold a dataset." | 23 | false | jic-dtool/dtool-irods | _create_structure | 25,770 | |
LDU_FT/PyPSA/PyPSA/madd | LDU_FT | [
"<BEGIN>\n## `generate_dummy_graph`",
"Generate a dummy graph to feed to the FIAS libraries.\n It adds the \"pos\" attribute and removes the 380 kV duplicate\n buses when the buses have been split, so that all load and generation\n is attached to the 220kV bus.\n<END>",
"<BEGIN>\n## `voronoi_partition`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the madd API.
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 madd API.
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... | Add multiple components to the network, along with their attributes.
Make sure when adding static attributes as pandas Series that they are indexed
by names. Make sure when adding time-varying attributes as pandas DataFrames that
their index is a superset of network.snapshots and their columns ... | "Add multiple components to the network, along with their attributes.\n\n Make sure when adding static attributes as pandas Series that they are indexed\n by names. Make sure when adding time-varying attributes as pandas DataFrames that\n their index is a superset of network.snapshots and their col... | 291 | false | PyPSA/PyPSA | madd | 25,771 | |
LDU_FT/The-Politico/politico-civic-election/get_delegates | LDU_FT | [
"<BEGIN>\n## `save`",
"**uid**: :code:`{office.uid}_{cycle.uid}_race`\n<END>",
"<BEGIN>\n## `save`",
"**uid**: :code:`division_cycle_ballotmeasure:{number}`\n<END>",
"<BEGIN>\n## `save`",
"**uid**: :code:`{race.uid}_election:{election_day}-{party}`\n<END>",
"<BEGIN>\n## `get_candidates`",
"Get all Can... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_delegates API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_delegates API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get all pledged delegates for any candidate in this election. | "Get all pledged delegates for any candidate in this election." | 32 | false | The-Politico/politico-civic-election | get_delegates | 25,772 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.