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/pedrotgn/pyactor/result | LDU_FT | [
"<BEGIN>\n## `set_context`",
"This function initializes the context of execution deciding which\n type of threads are being used: classic python threads or green\n threads, provided by Gevent.",
" This should be called first of all in every execution, otherwise,\n the library would not work.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result API.
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 result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Returns the result of the call that the future represents.
:param timeout: The number of seconds to wait for the result
if the future has not been completed. None, the default,
sets no limit.
:returns: The result of the call that the future represents.
:raises: TimeoutEr... | "Returns the result of the call that the future represents.\n\n :param timeout: The number of seconds to wait for the result\n if the future has not been completed. None, the default,\n sets no limit.\n :returns: The result of the call that the future represents.\n :raises: Ti... | 102 | false | pedrotgn/pyactor | result | 21,973 | |
LDU_FT/Cadasta/django-tutelary/allow | LDU_FT | [
"<BEGIN>\n## `permission_required`",
"Permission checking decorator -- works like the\n ``permission_required`` decorator in the default Django\n authentication system, except that it takes a sequence of actions\n to check, an object must be supplied, and the user must have\n permission to perform all... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allow API.
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 allow API.
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... | Determine where a given action on a given object is allowed. | "Determine where a given action on a given object is allowed." | 50 | false | Cadasta/django-tutelary | allow | 21,974 | |
LDU_FT/GemHQ/round-py/get_netki_domains | 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 get_netki_domains API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_netki_domains API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Return the Applications NetkiDomains object, populating it if fetch
is True. | "Return the Applications NetkiDomains object, populating it if fetch\n is True." | 136 | false | GemHQ/round-py | get_netki_domains | 21,975 | |
LDU_FT/neighbordog/deviantart/delete_notes_folder | LDU_FT | [
"<BEGIN>\n## `auth`",
"Authenticates user and retrieves (and refreshes) access token",
" :param code: code provided after redirect (authorization_code only)\n :param refresh_token: the refresh_token to update access_token without authorization\n<END>",
"<BEGIN>\n## `auth_uri`",
"The authorzati... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_notes_folder 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 delete_notes_folder 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... | Delete note folder
:param folderid: The UUID of the folder to delete | "Delete note folder\n\n :param folderid: The UUID of the folder to delete" | 132 | false | neighbordog/deviantart | delete_notes_folder | 21,976 | |
LDU_FT/google/prettytensor/length_squared | LDU_FT | [
"<BEGIN>\n## `_remove_non_methods`",
"Removes any object in dict that is not a registered method.\n<END>",
"<BEGIN>\n## `regularizer`",
"Wraps a regularizer in a parameter-function.",
" Args:\n name: The name scope for this regularizer.\n regularization_fn: A function with signature:\n fn(variab... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the length_squared API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the length_squared API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Computes the squared length of x.
Args:
x: A tensor.
keep_dims: If true, reduction does not change the rank of the input.
name: Optional name for this op.
reduction_dim: The dimension to reduce, by default choose the last one
and if no shape is specified guess 1.
Returns:
The squared leng... | "Computes the squared length of x.\n\n Args:\n x: A tensor.\n keep_dims: If true, reduction does not change the rank of the input.\n name: Optional name for this op.\n reduction_dim: The dimension to reduce, by default choose the last one\n and if no shape is specified guess 1.\n Returns:\n The sq... | 551 | false | google/prettytensor | length_squared | 21,977 | |
LDU_FT/idlesign/django-sitecats/get_category_lists | LDU_FT | [
"<BEGIN>\n## `get_category_lists`",
"Returns a list of CategoryList objects, associated with\n this model instance.",
" :param dict|None init_kwargs:\n :param list|None additional_parents_aliases:\n :rtype: list|CategoryRequestHandler\n :return:\n<END>",
"<BEGIN>\n## `enable... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_category_lists 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_category_lists API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Returns a list of CategoryList objects, associated with
this model instance.
:param dict|None init_kwargs:
:param list|None additional_parents_aliases:
:rtype: list|CategoryRequestHandler
:return: | "Returns a list of CategoryList objects, associated with\n this model instance.\n\n :param dict|None init_kwargs:\n :param list|None additional_parents_aliases:\n :rtype: list|CategoryRequestHandler\n :return:" | 73 | false | idlesign/django-sitecats | get_category_lists | 21,978 | |
LDU_FT/taxpon/pymesh/__ascii_reader | LDU_FT | [
"<BEGIN>\n## `set_initial_values`",
"Set initial values form existing self.data value\n :return: None\n<END>",
"<BEGIN>\n## `rotate_x`",
"Rotate mesh around x-axis",
" :param float deg: Rotation angle (degree)\n :return:\n<END>",
"<BEGIN>\n## `translate_x`",
"Translate mesh for x-di... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __ascii_reader API.
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 __ascii_reader API.
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... | :param fh:
:param header:
:return: | ":param fh:\n :param header:\n :return:" | 28 | false | taxpon/pymesh | __ascii_reader | 21,979 | |
LDU_FT/WebarchivCZ/WA-KAT/get_remote_info | LDU_FT | [
"<BEGIN>\n## `_convert_metadata`",
"Convert metadata from WA-KAT to Dublin core dictionary like structure,\n which may be easily converted to xml using :mod:`xmltodict` module.",
" Args:\n data (dict): Nested WA-KAT data. See tests for example.",
" Returns:\n dict: Dict in dublin core f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_remote_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_remote_info API.
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... | Download data and convert them to dict used in frontend.
Args:
url_id (str): ID used as identification in Seeder.
Returns:
dict: Dict with data for frontend or None in case of error. | "Download data and convert them to dict used in frontend.\n\n Args:\n url_id (str): ID used as identification in Seeder.\n\n Returns:\n dict: Dict with data for frontend or None in case of error." | 401 | false | WebarchivCZ/WA-KAT | get_remote_info | 21,980 | |
LDU_FT/zkbt/the-friendly-stars/input | LDU_FT | [
"<BEGIN>\n## `from_coordinates`",
"Iniitalize a constellation object.",
" Parameters\n ----------",
" ra, dec, distance, pm_ra_cosdec, pm_dec, radial_velocity\n These must be able to initialize a SkyCoord.\n id : list, array\n Identifications for the entries.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the input API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the input API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | If verbose=True and terse=False, this will print to terminal. Otherwise, it won't. | "If verbose=True and terse=False, this will print to terminal. Otherwise, it won't." | 52 | false | zkbt/the-friendly-stars | input | 21,981 | |
LDU_FT/pyout/pyout/_proc_group | LDU_FT | [
"<BEGIN>\n## `validate`",
"Check `style` against pyout.styling.schema.",
" Parameters\n ----------\n style : dict\n Style object to validate.",
" Raises\n ------\n StyleValidationError if `style` is not valid.\n<END>",
"<BEGIN>\n## `value_type`",
"Classify `value` of bold, color, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _proc_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _proc_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return whether group is "default" or "override".
In the case of "override", the self.fields pre-format and post-format
processors will be set under the "override" key.
Parameters
----------
style : dict
A style that follows the schema defined in pyout.elements.
... | "Return whether group is \"default\" or \"override\".\n\n In the case of \"override\", the self.fields pre-format and post-format\n processors will be set under the \"override\" key.\n\n Parameters\n ----------\n style : dict\n A style that follows the schema defined in pyo... | 92 | false | pyout/pyout | _proc_group | 21,982 | |
LDU_FT/mozilla/amo-validator/get_objects | LDU_FT | [
"<BEGIN>\n## `decode`",
"Decode data employing some charset detection and including unicode BOM\n stripping.\n<END>",
"<BEGIN>\n## `get_context`",
"Returns a tuple containing the context for a line\n<END>",
"<BEGIN>\n## `_format_line`",
"Formats a line from the data to be the appropriate length\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_objects API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_objects API.
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... | Same as get_object, except returns a list of objects which
satisfy the query rather than a single result. | "Same as get_object, except returns a list of objects which\n satisfy the query rather than a single result." | 94 | false | mozilla/amo-validator | get_objects | 21,983 | |
LDU_FT/intake/intake/on_click_search_widget | LDU_FT | [
"<BEGIN>\n## `expand_defaults`",
"Compile env, client_env, shell and client_shell commands\n<END>",
"<BEGIN>\n## `get`",
"Instantiate the DataSource for the given parameters\n<END>",
"<BEGIN>\n## `_load`",
"Load text of fcatalog file and pass to parse",
" Will do nothing if autoreload is off and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_click_search_widget API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_click_search_widget API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | When the search control is toggled, set visibility and hand down cats | "When the search control is toggled, set visibility and hand down cats" | 280 | false | intake/intake | on_click_search_widget | 21,984 | |
LDU_FT/androguard/androguard/read_b | LDU_FT | [
"<BEGIN>\n## `go`",
"Launch the analysis.",
" this will start a total of `max_fetcher` threads.\n<END>",
"<BEGIN>\n## `filter_file`",
"This method is called in order to filer a specific app",
" :param log: an object which corresponds to a unique app\n :param bytes fileraw: the raw fil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_b API.
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 read_b API.
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 ... | Read bytes with length `size` without incrementing the current offset
:param int size: length to read in bytes
:rtype: bytearray | "Read bytes with length `size` without incrementing the current offset\n\n :param int size: length to read in bytes\n :rtype: bytearray" | 823 | false | androguard/androguard | read_b | 21,985 | |
LDU_FT/takuti/flurs/recall | LDU_FT | [
"<BEGIN>\n## `__create_proj_mat`",
"Create a random projection matrix",
" [1] D. Achlioptas. Database-friendly random projections: Johnson-Lindenstrauss with binary coins.\n [2] P. Li, et al. Very sparse random projections.",
" http://scikit-learn.org/stable/modules/random_projection.html... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recall API.
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 recall API.
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 ... | Recall@k.
Args:
truth (numpy 1d array): Set of truth samples.
recommend (numpy 1d array): Ordered set of recommended samples.
k (int): Top-k items in `recommend` will be recommended.
Returns:
float: Recall@k. | "Recall@k.\n\n Args:\n truth (numpy 1d array): Set of truth samples.\n recommend (numpy 1d array): Ordered set of recommended samples.\n k (int): Top-k items in `recommend` will be recommended.\n\n Returns:\n float: Recall@k." | 74 | false | takuti/flurs | recall | 21,986 | |
LDU_FT/peterldowns/djoauth2/assert_200 | LDU_FT | [
"<BEGIN>\n## `update_parameters`",
"Updates a URL's existing GET parameters.",
" :param url: a base URL to which to add additional parameters.\n :param parameters: a dictionary of parameters, any mix of\n unicode and string objects as the parameters and the values.\n :parameter encoding: the byte encoding... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_200 API.
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 assert_200 API.
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... | Check that a HTTP response returned 200. | "Check that a HTTP response returned 200." | 70 | false | peterldowns/djoauth2 | assert_200 | 21,987 | |
LDU_FT/flashashen/flange/backoff_iter | LDU_FT | [
"<BEGIN>\n## `search`",
"find matches for the given path expression in the data",
" :param path_expression: path tuple or string\n :return:\n<END>",
"<BEGIN>\n## `split_iter`",
"Splits an iterable based on a separator, *sep*, a max of\n *maxsplit* times (no max by default). *sep* can be:",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backoff_iter API.
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 backoff_iter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Generates a sequence of geometrically-increasing floats, suitable
for usage with `exponential backoff`_. Starts with *start*,
increasing by *factor* until *stop* is reached, optionally
stopping iteration once *count* numbers are yielded. *factor*
defaults to 2. In general retrying with properly-configur... | "Generates a sequence of geometrically-increasing floats, suitable\n for usage with `exponential backoff`_. Starts with *start*,\n increasing by *factor* until *stop* is reached, optionally\n stopping iteration once *count* numbers are yielded. *factor*\n defaults to 2. In general retrying with properly-con... | 132 | false | flashashen/flange | backoff_iter | 21,988 | |
LDU_FT/dbcli/athenacli/output | LDU_FT | [
"<BEGIN>\n## `refresher`",
"Decorator to add the decorated function to the dictionary of\n refreshers. Any function decorated with a @refresher will be executed as\n part of the completion refresh routine.\n<END>",
"<BEGIN>\n## `refresh`",
"Creates a SQLCompleter object and populates it with the relevan... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output API.
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 output API.
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 ... | Output text to stdout or a pager command.
The status text is not outputted to pager or files.
The message will be logged in the audit log, if enabled. The
message will be written to the tee file, if enabled. The
message will be written to the output file, if enabled. | "Output text to stdout or a pager command.\n The status text is not outputted to pager or files.\n The message will be logged in the audit log, if enabled. The\n message will be written to the tee file, if enabled. The\n message will be written to the output file, if enabled." | 95 | false | dbcli/athenacli | output | 21,989 | |
LDU_FT/KrishnaswamyLab/graphtools/_reduce_data | LDU_FT | [
"<BEGIN>\n## `set_params`",
"Set parameters on this object",
" Safe setter method - attributes should not be modified directly as some\n changes are not valid.\n Valid parameters:\n - n_jobs\n - random_state\n - verbose\n Invalid parameters: (these would require ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reduce_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reduce_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Private method to reduce data dimension.
If data is dense, uses randomized PCA. If data is sparse, uses
randomized SVD.
TODO: should we subtract and store the mean?
Returns
-------
Reduced data matrix | "Private method to reduce data dimension.\n\n If data is dense, uses randomized PCA. If data is sparse, uses\n randomized SVD.\n TODO: should we subtract and store the mean?\n\n Returns\n -------\n Reduced data matrix" | 207 | false | KrishnaswamyLab/graphtools | _reduce_data | 21,990 | |
LDU_FT/cltl/KafNafParserPy/get_chunk | LDU_FT | [
"<BEGIN>\n## `set_id`",
"Set the property identifier\n @type pid: string\n @param pid: property identifier\n<END>",
"<BEGIN>\n## `add_property`",
"Adds a new property to the property layer\n @type pid: string\n @param pid: property identifier\n @type label: string\n @... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_chunk API.
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_chunk API.
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 the chunk object for the supplied identifier
@type chunk_id: string
@param chunk_id: chunk identifier | "Returns the chunk object for the supplied identifier\n @type chunk_id: string\n @param chunk_id: chunk identifier" | 270 | false | cltl/KafNafParserPy | get_chunk | 21,991 | |
LDU_FT/aws/chalice/get_function_policy | LDU_FT | [
"<BEGIN>\n## `create_from_lambda_arn`",
"Create a LogRetriever from a client and lambda arn.",
" :type client: botocore.client.Logs\n :param client: A ``logs`` client.",
" :type lambda_arn: str\n :param lambda_arn: The ARN of the lambda function.",
" :return: An instance o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_function_policy 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_function_policy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Return the function policy for a lambda function.
This function will extract the policy string as a json document
and return the json.loads(...) version of the policy. | "Return the function policy for a lambda function.\n\n This function will extract the policy string as a json document\n and return the json.loads(...) version of the policy." | 96 | false | aws/chalice | get_function_policy | 21,992 | |
LDU_FT/GeospatialPython/pyshp/iterShapes | LDU_FT | [
"<BEGIN>\n## `signed_area`",
"Return the signed area enclosed by a ring using the linear time\r\n algorithm. A value >= 0 indicates a counter-clockwise oriented ring.\n<END>",
"<BEGIN>\n## `as_dict`",
"Returns this Record as a dictionary using the field names as keys\r\n :return: dict\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterShapes API.
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 iterShapes API.
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... | Serves up shapes in a shapefile as an iterator. Useful
for handling large shapefiles. | "Serves up shapes in a shapefile as an iterator. Useful\r\n for handling large shapefiles." | 82 | false | GeospatialPython/pyshp | iterShapes | 21,993 | |
LDU_FT/tomplus/kubernetes_asyncio/connect_delete_namespaced_service_proxy | LDU_FT | [
"<BEGIN>\n## `raw`",
"Sets the raw of this RuntimeRawExtension.",
" Raw is the underlying serialization of this object. # noqa: E501",
" :param raw: The raw of this RuntimeRawExtension. # noqa: E501\n :type: str\n<END>",
"<BEGIN>\n## `delete_namespaced_cron_job`",
"delete_namespaced... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_delete_namespaced_service_proxy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_delete_namespaced_service_proxy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate... | connect_delete_namespaced_service_proxy # noqa: E501
connect DELETE requests to proxy of Service # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.connect_delete_namespaced_service_pr... | "connect_delete_namespaced_service_proxy # noqa: E501\n\n connect DELETE requests to proxy of Service # noqa: E501\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_delete_namespaced_serv... | 1,540 | true | tomplus/kubernetes_asyncio | connect_delete_namespaced_service_proxy | 21,994 | |
LDU_FT/visualfabriq/bquery/cache_factor | LDU_FT | [
"<BEGIN>\n## `rm_file_or_dir`",
"Helper function to clean a certain filepath",
" Parameters\n ----------\n path",
" Returns\n -------\n<END>",
"<BEGIN>\n## `cache_valid`",
"Checks whether the column has a factorization that exists and is not older than the source",
" :param col:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache_factor API.
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 cache_factor API.
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... | Existing todos here are: these should be hidden helper carrays
As in: not normal columns that you would normally see as a user
The factor (label index) carray is as long as the original carray
(and the rest of the table therefore)
But the (unique) values carray is not as long (as long a... | "Existing todos here are: these should be hidden helper carrays\n As in: not normal columns that you would normally see as a user\n\n The factor (label index) carray is as long as the original carray\n (and the rest of the table therefore)\n But the (unique) values carray is not as long (as ... | 60 | false | visualfabriq/bquery | cache_factor | 21,995 | |
LDU_FT/perrygeo/python-rasterstats/zonalstats | LDU_FT | [
"<BEGIN>\n## `zonalstats`",
"zonalstats generates summary statistics of geospatial raster datasets\n based on vector features.",
" The input arguments to zonalstats should be valid GeoJSON Features. (see cligj)",
" The output GeoJSON will be mostly unchanged but have additional properties per feature... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zonalstats API.
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 zonalstats API.
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... | zonalstats generates summary statistics of geospatial raster datasets
based on vector features.
The input arguments to zonalstats should be valid GeoJSON Features. (see cligj)
The output GeoJSON will be mostly unchanged but have additional properties per feature
describing the summary statistics (min,... | "zonalstats generates summary statistics of geospatial raster datasets\n based on vector features.\n\n The input arguments to zonalstats should be valid GeoJSON Features. (see cligj)\n\n The output GeoJSON will be mostly unchanged but have additional properties per feature\n describing the summary statistic... | 73 | false | perrygeo/python-rasterstats | zonalstats | 21,996 | |
LDU_FT/aacanakin/glim/dispatch | LDU_FT | [
"<BEGIN>\n## `import_source`",
"Function imports a module given full path",
" Args\n ----\n module (string): the module name\n path (string): the full path of module\n pass_errors(boolean): the switch for function\n to skip errors or not.",
" Returns\n -------\n module (module): the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Function runs the active command.
Args
----
command (glim.command.Command): the command object.
app (glim.app.App): the glim app object.
Note:
Exception handling should be done in Command class
itself. If not, an unhandled exception may result
... | "Function runs the active command.\n\n Args\n ----\n command (glim.command.Command): the command object.\n app (glim.app.App): the glim app object.\n\n Note:\n Exception handling should be done in Command class\n itself. If not, an unhandled exception may result\... | 74 | false | aacanakin/glim | dispatch | 21,997 | |
LDU_FT/six8/corona-cipr/build | LDU_FT | [
"<BEGIN>\n## `update`",
"Update an existing cipr project to the latest intalled version.\n<END>",
"<BEGIN>\n## `install`",
"Install a package from github and make it available for use.\n<END>",
"<BEGIN>\n## `packages`",
"List installed packages for this project\n<END>",
"<BEGIN>\n## `run`",
"Run curre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API.
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 build API.
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... | Build the current project for distribution | "Build the current project for distribution" | 16 | false | six8/corona-cipr | build | 21,998 | |
LDU_FT/numberoverzero/bloop/stream | LDU_FT | [
"<BEGIN>\n## `ordered`",
"Return sorted version of nested dicts/lists for comparing.",
" Modified from:\n http://stackoverflow.com/a/25851972\n<END>",
"<BEGIN>\n## `dump_key`",
"dump the hash (and range, if there is one) key(s) of an object into\n a dynamo-friendly format.",
" returns {dynamo_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream API.
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 stream API.
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 :class:`~bloop.stream.Stream` that provides approximate chronological ordering.
.. code-block:: pycon
# Create a user so we have a record
>>> engine = Engine()
>>> user = User(id=3, email="user@domain.com")
>>> engine.save(user)
>>> user.ema... | "Create a :class:`~bloop.stream.Stream` that provides approximate chronological ordering.\n\n .. code-block:: pycon\n\n # Create a user so we have a record\n >>> engine = Engine()\n >>> user = User(id=3, email=\"user@domain.com\")\n >>> engine.save(user)\n >... | 288 | false | numberoverzero/bloop | stream | 21,999 | |
LDU_FT/jenisys/parse_type/make_type | LDU_FT | [
"<BEGIN>\n## `build_type_dict`",
"Builds type dictionary for user-defined type converters,\n used by :mod:`parse` module.\n This requires that each type converter has a \"name\" attribute.",
" :param converters: List of type converters (parse_types)\n :return: Type converter dictionary\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Build new type name according to CardinalityField naming scheme.
:param basename: Type basename of primary type (as string).
:param cardinality: Cardinality of the new type (as Cardinality item).
:return: Type name with CardinalityField suffix (if needed) | "Build new type name according to CardinalityField naming scheme.\n\n :param basename: Type basename of primary type (as string).\n :param cardinality: Cardinality of the new type (as Cardinality item).\n :return: Type name with CardinalityField suffix (if needed)" | 115 | false | jenisys/parse_type | make_type | 22,000 | |
LDU_FT/astropy/regions/to_polygon | 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 to_polygon API.
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 to_polygon API.
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 4-cornered polygon equivalent to this rectangle | "Return a 4-cornered polygon equivalent to this rectangle" | 237 | false | astropy/regions | to_polygon | 22,001 | |
LDU_FT/totalgood/pugnlp/sudo_yield_file_lines | LDU_FT | [
"<BEGIN>\n## `make_datetime`",
"Coerce a datetime or string into datetime.datetime object",
" Arguments:\n dt (str or datetime.datetime or atetime.time or numpy.Timestamp): time or date\n to be coerced into a `datetime.date` object",
" Returns:\n datetime.time: Time of day portion of a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sudo_yield_file_lines 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 sudo_yield_file_lines API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | r"""Cat a file iterating/yielding one line at a time,
shell will execute: `sudo cat $file_path` so if your shell doesn't have sudo or cat, no joy
Input:
file_path(str): glob stars are fine
>> for line in sudo_yield_file_lines('/etc/NetworkManager/system-connections/*') | "r\"\"\"Cat a file iterating/yielding one line at a time,\n\n shell will execute: `sudo cat $file_path` so if your shell doesn't have sudo or cat, no joy\n Input:\n file_path(str): glob stars are fine\n\n >> for line in sudo_yield_file_lines('/etc/NetworkManager/system-connections/*')" | 433 | false | totalgood/pugnlp | sudo_yield_file_lines | 22,002 | |
LDU_FT/sander76/aio-powerview-api/create_scene | LDU_FT | [
"<BEGIN>\n## `sanitize_resources`",
"Cleans up incoming scene data",
" :param resource: The dict with scene data to be sanitized.\n :returns: Cleaned up dict.\n<END>",
"<BEGIN>\n## `create_scene`",
"Creates am empty scene.",
" Scenemembers need to be added after the scene has been cre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_scene API.
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 create_scene API.
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... | Create a scene and returns the scene object.
:raises PvApiError when something is wrong with the hub. | "Create a scene and returns the scene object.\n\n :raises PvApiError when something is wrong with the hub." | 58 | false | sander76/aio-powerview-api | create_scene | 22,003 | |
LDU_FT/weijia/djangoautoconf/load_template_source | LDU_FT | [
"<BEGIN>\n## `load_template_source`",
"Template loader that loads templates from a ZIP file.\n<END>",
"<BEGIN>\n## `set_settings_env`",
"Add all application folders\n :param executable_folder: the folder that contains local and external_app_repos\n :return:\n<END>",
"<BEGIN>\n## `all_valid`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_template_source 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 load_template_source API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Template loader that loads templates from zipped modules. | "Template loader that loads templates from zipped modules." | 32 | false | weijia/djangoautoconf | load_template_source | 22,004 | |
LDU_FT/KeplerGO/K2fov/_getCampaignDict | LDU_FT | [
"<BEGIN>\n## `angSepVincenty`",
"Vincenty formula for distances on a sphere\n<END>",
"<BEGIN>\n## `parse_file`",
"Parse a comma-separated file with columns \"ra,dec,magnitude\".\n<END>",
"<BEGIN>\n## `K2onSilicon`",
"Checks whether targets are on silicon during a given campaign.",
" This function wil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getCampaignDict API.
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 _getCampaignDict API.
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 a dictionary specifying the details of all campaigns. | "Returns a dictionary specifying the details of all campaigns." | 185 | false | KeplerGO/K2fov | _getCampaignDict | 22,005 | |
LDU_FT/projecthamster/hamster/gdk | LDU_FT | [
"<BEGIN>\n## `set_start_time`",
"set the start time. when start time is set, drop down list\n will start from start time and duration will be displayed in\n brackets\n<END>",
"<BEGIN>\n## `parse_fact`",
"tries to extract fact fields from the string\n the optional arguments in the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gdk API.
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 gdk API.
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... | returns gdk.Color object of the given color | "returns gdk.Color object of the given color" | 249 | false | projecthamster/hamster | gdk | 22,006 | |
LDU_FT/ivknv/s3m/execute | LDU_FT | [
"<BEGIN>\n## `normalize_path`",
">>> normalize_path(\"/a/b/c/\")\n '/a/b/c'\n >>> normalize_path(\"/a/b/c\")\n '/a/b/c'\n >>> normalize_path(\"/a/b/c////////\")\n '/a/b/c'\n >>> normalize_path(\"///a/b/c\")\n '/a/b/c'\n >>> normalize_path(\"/a/././b/../b/c/\")\n '/a/b/c'\n >>> normal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Analogous to :any:`sqlite3.Cursor.execute`
:returns: self | "Analogous to :any:`sqlite3.Cursor.execute`\n\n :returns: self" | 27 | false | ivknv/s3m | execute | 22,007 | |
LDU_FT/paddycarey/dweepy/_check_stream_timeout | LDU_FT | [
"<BEGIN>\n## `_request`",
"Make HTTP request, raising an exception if it fails.\n<END>",
"<BEGIN>\n## `dweet_for`",
"Send a dweet to dweet.io for a thing with a known name\n<END>",
"<BEGIN>\n## `remove_lock`",
"Remove a lock (no matter what it's connected to).\n<END>",
"<BEGIN>\n## `lock`",
"Lock a th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_stream_timeout API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_stream_timeout API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Check if the timeout has been reached and raise a `StopIteration` if so. | "Check if the timeout has been reached and raise a `StopIteration` if so." | 18 | false | paddycarey/dweepy | _check_stream_timeout | 22,008 | |
LDU_FT/hfaran/Tornado-JSON/get_object_defaults | LDU_FT | [
"<BEGIN>\n## `_validate_example`",
"Validates example against schema",
" :returns: Formatted example if example exists and validates, otherwise None\n :raises ValidationError: If example does not validate against the schema\n<END>",
"<BEGIN>\n## `_get_rh_methods`",
"Yield all HTTP methods in ``rh`` th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object_defaults 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_object_defaults 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... | Extracts default values dict (nested) from an type object schema.
:param object_schema: Schema type object
:type object_schema: dict
:returns: Nested dict with defaults values | "Extracts default values dict (nested) from an type object schema.\n\n :param object_schema: Schema type object\n :type object_schema: dict\n :returns: Nested dict with defaults values" | 61 | false | hfaran/Tornado-JSON | get_object_defaults | 22,009 | |
LDU_FT/googleapis/google-auth-library-python/padded_urlsafe_b64decode | LDU_FT | [
"<BEGIN>\n## `_convert_oauth2_credentials`",
"Converts to :class:`google.oauth2.credentials.Credentials`.",
" Args:\n credentials (Union[oauth2client.client.OAuth2Credentials,\n oauth2client.client.GoogleCredentials]): The credentials to\n convert.",
" Returns:\n goog... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the padded_urlsafe_b64decode 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 padded_urlsafe_b64decode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Decodes base64 strings lacking padding characters.
Google infrastructure tends to omit the base64 padding characters.
Args:
value (Union[str, bytes]): The encoded value.
Returns:
bytes: The decoded value | "Decodes base64 strings lacking padding characters.\n\n Google infrastructure tends to omit the base64 padding characters.\n\n Args:\n value (Union[str, bytes]): The encoded value.\n\n Returns:\n bytes: The decoded value" | 311 | false | googleapis/google-auth-library-python | padded_urlsafe_b64decode | 22,010 | |
LDU_FT/santosjorge/cufflinks/_set_axis | LDU_FT | [
"<BEGIN>\n## `to_df`",
"Extracts the data from a Plotly Figure",
" Parameters\n ----------\n figure : plotly_figure\n Figure from which data will be \n extracted",
" Returns a DataFrame or list of DataFrame\n<END>",
"<BEGIN>\n## `to_rgba`",
"Converts from hex|rgb ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_axis API.
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 _set_axis API.
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... | Sets the axis in which each trace should appear
If the axis doesn't exist then a new axis is created
Parameters:
-----------
traces : list(str)
List of trace names
on : string
The axis in which the traces should be placed.
If this is not indicated then a new axis will be
created
side : string
S... | "Sets the axis in which each trace should appear\n\tIf the axis doesn't exist then a new axis is created\n\n\tParameters:\n\t-----------\n\t\ttraces : list(str)\n\t\t\tList of trace names\n\t\ton : string\n\t\t\tThe axis in which the traces should be placed.\n\t\t\tIf this is not indicated then a new axis will be\n\t\t... | 328 | false | santosjorge/cufflinks | _set_axis | 22,011 | |
LDU_FT/nchopin/particles/copyto_at | LDU_FT | [
"<BEGIN>\n## `all_distinct`",
"Returns the list [l[i] for i in idx] \n When needed, objects l[i] are replaced by a copy, to make sure that\n the elements of the list are all distinct",
" Parameters\n ---------\n l: iterable\n idx: iterable that generates ints (e.g. ndarray of ints)",
" Re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copyto_at API.
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 copyto_at API.
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... | Copy to at a given location.
Parameters
----------
n: int
index where to copy
src: `ThetaParticles` object
source
m: int
index of the element to be copied
Note
----
Basically, does self[n] <- src[m] | "Copy to at a given location. \n\n Parameters\n ----------\n n: int \n index where to copy \n src: `ThetaParticles` object\n source\n m: int\n index of the element to be copied\n\n Note\n ----\n Basically, does self[n] <- src[m]" | 249 | false | nchopin/particles | copyto_at | 22,012 | |
LDU_FT/avinassh/haxor/get_users_by_ids | LDU_FT | [
"<BEGIN>\n## `_get_sync`",
"Internal method used for GET requests",
" Args:\n url (str): URL to fetch",
" Returns:\n Individual URL request's response",
" Raises:\n HTTPError: If HTTP request failed.\n<END>",
"<BEGIN>\n## `_get_async`",
"Asynchronous i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_users_by_ids API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_users_by_ids API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Given a list of user ids, return all the User objects | "Given a list of user ids, return all the User objects" | 77 | false | avinassh/haxor | get_users_by_ids | 22,013 | |
LDU_FT/django-fluent/django-fluent-blogs/get_entry_model | LDU_FT | [
"<BEGIN>\n## `formfield_for_dbfield`",
"Allow formfield_overrides to contain field names too.\n<END>",
"<BEGIN>\n## `published`",
"Return only published entries for the current site.\n<END>",
"<BEGIN>\n## `authors`",
"Return the entries written by the given usernames\n When multiple tags are provid... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_entry_model API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_entry_model API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return the actual entry model that is in use.
This function reads the :ref:`FLUENT_BLOGS_ENTRY_MODEL` setting to find the model.
The model is automatically registered with *django-fluent-comments*
and *django-any-urlfield* when it's installed. | "Return the actual entry model that is in use.\n\n This function reads the :ref:`FLUENT_BLOGS_ENTRY_MODEL` setting to find the model.\n The model is automatically registered with *django-fluent-comments*\n and *django-any-urlfield* when it's installed." | 54 | false | django-fluent/django-fluent-blogs | get_entry_model | 22,014 | |
LDU_FT/cmutel/constructive_geometries/intersects | LDU_FT | [
"<BEGIN>\n## `has_gis`",
"Skip function execution if there are no presamples\n<END>",
"<BEGIN>\n## `sha256`",
"Generate SHA 256 hash for file at `filepath`\n<END>",
"<BEGIN>\n## `check_data`",
"Check that definitions file is present, and that faces file is readable.\n<END>",
"<BEGIN>\n## `load_definitio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intersects API.
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 intersects API.
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... | Get all locations that intersect this location.
Note that sorting is done by first by number of faces intersecting ``key``; the total number of faces in the intersected region is only used to break sorting ties.
If the ``resolved_row`` context manager is not used, ``RoW`` doesn't have a spatial defini... | "Get all locations that intersect this location.\n\n Note that sorting is done by first by number of faces intersecting ``key``; the total number of faces in the intersected region is only used to break sorting ties.\n\n If the ``resolved_row`` context manager is not used, ``RoW`` doesn't have a spatial d... | 55 | false | cmutel/constructive_geometries | intersects | 22,015 | |
LDU_FT/axltxl/m2bk/make_tarball | LDU_FT | [
"<BEGIN>\n## `chkstr`",
"Small routine for checking whether a string is empty\n even a string",
" :param s: the string in question\n :param v: variable name\n<END>",
"<BEGIN>\n## `load`",
"Load this driver",
" Note that if either aws_access_key_id or aws_secret_access_key are\n not specifie... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_tarball API.
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 make_tarball API.
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... | Make gzipped tarball from a source directory
:param src_dir: source directory
:raises TypeError: if src_dir is not str | "Make gzipped tarball from a source directory\n\n :param src_dir: source directory\n :raises TypeError: if src_dir is not str" | 83 | false | axltxl/m2bk | make_tarball | 22,016 | |
LDU_FT/OSLL/jabba/inject_include_info | LDU_FT | [
"<BEGIN>\n## `depends_on`",
"Analysis function",
" Get list of files that depend on given configs\n If there is 'graph=name' in analysis parameters, instead graph of includes will be rendered into name.svg\n<END>",
"<BEGIN>\n## `parse_from_args`",
"Parse an array of string from argparser\n to Synon... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inject_include_info 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 inject_include_info 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... | Wrap a dictionary into dict that contains config itself
and include info | "Wrap a dictionary into dict that contains config itself\n and include info" | 41 | false | OSLL/jabba | inject_include_info | 22,017 | |
LDU_FT/robotools/fontParts/normalizeBPointType | LDU_FT | [
"<BEGIN>\n## `_set_unicode`",
"Assign the primary unicode to the glyph.\n This will be an integer or None.",
" Subclasses may override this method.\n<END>",
"<BEGIN>\n## `_get_leftMargin`",
"This must return an int or float.\n If the glyph has no outlines, this must return `None`.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalizeBPointType 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 normalizeBPointType 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... | Normalizes bPoint type.
* **value** must be an string.
* **value** must be one of the following:
+--------+
| corner |
+--------+
| curve |
+--------+
* Returned value will be an unencoded ``unicode`` string. | "Normalizes bPoint type.\n\n * **value** must be an string.\n * **value** must be one of the following:\n\n +--------+\n | corner |\n +--------+\n | curve |\n +--------+\n\n * Returned value will be an unencoded ``unicode`` string." | 646 | false | robotools/fontParts | normalizeBPointType | 22,018 | |
LDU_FT/calvinku96/labreporthelper/get_bestfit_line | LDU_FT | [
"<BEGIN>\n## `generate_datasets_list`",
"generate datasets list to activate",
" args:\n settings: dictionary\n from settings file\n argv: list\n from sys.argv\n<END>",
"<BEGIN>\n## `do_label`",
"Create label for x and y axis, title and suptitle\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bestfit_line API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bestfit_line API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Method to get bestfit line using the defined
self.bestfit_func method
args:
x_min: scalar, default=min(x)
minimum x value of the line
x_max: scalar, default=max(x)
maximum x value of the line
resolution: int, default=1000
... | "Method to get bestfit line using the defined\n self.bestfit_func method\n\n args:\n x_min: scalar, default=min(x)\n minimum x value of the line\n x_max: scalar, default=max(x)\n maximum x value of the line\n resolution: int, default=1000\n ... | 57 | false | calvinku96/labreporthelper | get_bestfit_line | 22,019 | |
LDU_FT/edwards-lab/libGWAS/process_genotypes | LDU_FT | [
"<BEGIN>\n## `load_genotypes`",
"This really just intializes the file by opening it up.\n<END>",
"<BEGIN>\n## `process_genotypes`",
"Parse pedigree line and remove excluded individuals from geno",
" Translates alleles into numerical genotypes (0, 1, 2) counting\n number of minor alleles.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_genotypes API.
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_genotypes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Parse pedigree line and remove excluded individuals from geno
Translates alleles into numerical genotypes (0, 1, 2) counting
number of minor alleles.
Throws exceptions if an there are not 2 distinct alleles | "Parse pedigree line and remove excluded individuals from geno\n\n Translates alleles into numerical genotypes (0, 1, 2) counting\n number of minor alleles.\n\n Throws exceptions if an there are not 2 distinct alleles" | 142 | false | edwards-lab/libGWAS | process_genotypes | 22,020 | |
LDU_FT/ga4gh/ga4gh-server/insertIndividual | LDU_FT | [
"<BEGIN>\n## `VerifierMiddleware`",
"Common wrapper for the authentication modules.\n * Parses the request before passing it on to the authentication module.\n * Sets 'pyoidc' cookie if authentication succeeds.\n * Redirects the user to complete the authentication.\n * Allows the user ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insertIndividual API.
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 insertIndividual API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Inserts the specified individual into this repository. | "Inserts the specified individual into this repository." | 768 | false | ga4gh/ga4gh-server | insertIndividual | 22,021 | |
LDU_FT/xflr6/graphviz/command | LDU_FT | [
"<BEGIN>\n## `command`",
"Return args list for ``subprocess.Popen`` and name of the rendered file.\n<END>",
"<BEGIN>\n## `run`",
"Run the command described by cmd and return its (stdout, stderr) tuple.\n<END>",
"<BEGIN>\n## `render`",
"Render file with Graphviz ``engine`` into ``format``, return result f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted... | Return args list for ``subprocess.Popen`` and name of the rendered file. | "Return args list for ``subprocess.Popen`` and name of the rendered file." | 93 | false | xflr6/graphviz | command | 22,022 | |
LDU_FT/twitter/cdk/main | LDU_FT | [
"<BEGIN>\n## `set_default_theme`",
"Set default theme name based in config file.\n<END>",
"<BEGIN>\n## `pick_theme`",
"Return theme name based on manual input, prefs file, or default to \"plain\".\n<END>",
"<BEGIN>\n## `pref_init`",
"Can be called without penalty. Create ~/.cdk dir if it doesn't\n exis... | 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... | Entry point for choosing what subcommand to run. Really should be using asciidocapi | "Entry point for choosing what subcommand to run. Really should be using asciidocapi" | 10 | false | twitter/cdk | main | 22,023 | |
LDU_FT/git-afsantos/bonsai/_set_increment | LDU_FT | [
"<BEGIN>\n## `_build_for_statement`",
"NOTE: this is not a complete implementation of for loop parsing.\n Turns out for loops allow a number of wacky things going on,\n such as declaring a variable in place of a condition.\n These more peculiar cases are not covered. See\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_increment API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_increment API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Set the increment statement for this loop (e.g. in a `for`). | "Set the increment statement for this loop (e.g. in a `for`)." | 111 | false | git-afsantos/bonsai | _set_increment | 22,024 | |
LDU_FT/sanger-pathogens/ariba/insert_size | LDU_FT | [
"<BEGIN>\n## `_update_threads`",
"Update available thread count post-construction.\n To be called any number of times from run() method\n<END>",
"<BEGIN>\n## `_report_completion`",
"Update shared counters to signal that we are done with this cluster.\n Call just before exiting run() method (in a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Returns insert size, defined as distance from outer edges of reads (and assumes gap length of zero) | "Returns insert size, defined as distance from outer edges of reads (and assumes gap length of zero)" | 105 | false | sanger-pathogens/ariba | insert_size | 22,025 | |
LDU_FT/lukaszb/monolith/autocomplete | LDU_FT | [
"<BEGIN>\n## `import_class`",
"Returns class from the given path.",
" For example, in order to get class located at\n ``mypackage.subpackage.MyClass``:",
" try:\n hgrepo = import_class('mypackage.subpackage.MyClass')\n except ImportError:\n # hadle error\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the autocomplete API.
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 autocomplete API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | If *completion* is enabled, this method would write to ``self.stdout``
completion words separated with space. | "If *completion* is enabled, this method would write to ``self.stdout``\n completion words separated with space." | 23 | false | lukaszb/monolith | autocomplete | 22,026 | |
LDU_FT/jazzband/django-model-utils/changed | LDU_FT | [
"<BEGIN>\n## `_get_subclasses_recurse`",
"Given a Model class, find all related objects, exploring children\n recursively, returning a `list` of strings representing the\n relations for select_related\n<END>",
"<BEGIN>\n## `_get_ancestors_path`",
"Serves as an opposite to _get_subclasses_recurse... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the changed API.
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 changed API.
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 dict of fields that changed since save (with old values) | "Returns dict of fields that changed since save (with old values)" | 30 | false | jazzband/django-model-utils | changed | 22,027 | |
LDU_FT/kkroening/ffmpeg-python/concat | LDU_FT | [
"<BEGIN>\n## `get_args`",
"Build command-line arguments to be passed to ffmpeg.\n<END>",
"<BEGIN>\n## `compile`",
"Build command-line for invoking ffmpeg.",
" The :meth:`run` function uses this to build the commnad line\n arguments and should work in most cases, but calling this function\n directly... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the concat API.
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 concat API.
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 ... | Concatenate audio and video streams, joining them together one after the other.
The filter works on segments of synchronized video and audio streams. All segments must have the same number of
streams of each type, and that will also be the number of streams at output.
Args:
unsafe: Activate unsafe... | "Concatenate audio and video streams, joining them together one after the other.\n\n The filter works on segments of synchronized video and audio streams. All segments must have the same number of\n streams of each type, and that will also be the number of streams at output.\n\n Args:\n unsafe: Activate... | 149 | false | kkroening/ffmpeg-python | concat | 22,028 | |
LDU_FT/cslarsen/crianza/tokentype | LDU_FT | [
"<BEGIN>\n## `xcompile`",
"Parses Crianza source code and returns a native Python function.",
" Args:\n args: The resulting function's number of input parameters.",
" Returns:\n A callable Python function.\n<END>",
"<BEGIN>\n## `xeval`",
"Compiles to native Python bytecode and runs pro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokentype API.
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 tokentype API.
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... | Parses string and returns a (Tokenizer.TYPE, value) tuple. | "Parses string and returns a (Tokenizer.TYPE, value) tuple." | 106 | false | cslarsen/crianza | tokentype | 22,029 | |
LDU_FT/casebeer/audiogen/sample_all | LDU_FT | [
"<BEGIN>\n## `arcfour`",
"Return a generator for the ARCFOUR/RC4 pseudorandom keystream for the \n\t key provided. Keys should be byte strings or sequences of ints.\n<END>",
"<BEGIN>\n## `arcfour_drop`",
"Return a generator for the RC4-drop pseudorandom keystream given by \n\t the key and number of bytes ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample_all API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample_all API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Convert list of audio waveform generators into list of packed sample generators. | "Convert list of audio waveform generators into list of packed sample generators." | 44 | false | casebeer/audiogen | sample_all | 22,030 | |
LDU_FT/iskandr/fancyimpute/_impute_one_feature | LDU_FT | [
"<BEGIN>\n## `_svd_step`",
"Returns reconstructed X from low-rank thresholded SVD and\n the rank achieved.\n<END>",
"<BEGIN>\n## `fill`",
"Parameters\n ----------\n X : np.array\n Data array containing NaN entries",
" missing_mask : np.array\n Boolean array ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _impute_one_feature 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 _impute_one_feature 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... | Impute a single feature from the others provided.
This function predicts the missing values of one of the features using
the current estimates of all the other features. The ``predictor`` must
support ``return_std=True`` in its ``predict`` method for this function
to work.
Para... | "Impute a single feature from the others provided.\n\n This function predicts the missing values of one of the features using\n the current estimates of all the other features. The ``predictor`` must\n support ``return_std=True`` in its ``predict`` method for this function\n to work.\n\n ... | 137 | false | iskandr/fancyimpute | _impute_one_feature | 22,031 | |
LDU_FT/jorisroovers/gitlint/_apply_line_rules | LDU_FT | [
"<BEGIN>\n## `find_rule_classes`",
"Searches a given directory or python module for rule classes. This is done by\n adding the directory path to the python path, importing the modules and then finding\n any Rule class in those modules.",
" :param extra_path: absolute directory or file path to search fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_line_rules API.
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 _apply_line_rules API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Iterates over the lines in a given list of lines and validates a given list of rules against each line | "Iterates over the lines in a given list of lines and validates a given list of rules against each line" | 58 | false | jorisroovers/gitlint | _apply_line_rules | 22,032 | |
LDU_FT/aconrad/pycobertura/reconcile_lines | LDU_FT | [
"<BEGIN>\n## `line_rate`",
"Return the global line rate of the coverage report. If the\n `filename` file is given, return the line rate of the file.\n<END>",
"<BEGIN>\n## `branch_rate`",
"Return the global branch rate of the coverage report. If the\n `filename` file is given, return the branch r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reconcile_lines API.
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 reconcile_lines API.
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... | Return a dict `{lineno1: lineno2}` which reconciles line numbers `lineno1`
of list `lines1` to line numbers `lineno2` of list `lines2`. Only lines
that are common in both sets are present in the dict, lines unique to one
of the sets are omitted. | "Return a dict `{lineno1: lineno2}` which reconciles line numbers `lineno1`\n of list `lines1` to line numbers `lineno2` of list `lines2`. Only lines\n that are common in both sets are present in the dict, lines unique to one\n of the sets are omitted." | 53 | false | aconrad/pycobertura | reconcile_lines | 22,033 | |
LDU_FT/muckamuck/stackility/print_stack_events | LDU_FT | [
"<BEGIN>\n## `_init_boto3_clients`",
"The utililty requires boto3 clients to CloudFormation.",
" Args:\n None",
" Returns:\n Good or Bad; True or False\n<END>",
"<BEGIN>\n## `determine_drift`",
"Determine the drift of the stack.",
" Args:\n None",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_stack_events 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 print_stack_events 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... | List events from the given stack
Args:
None
Returns:
None | "List events from the given stack\n\n Args:\n None\n\n Returns:\n None" | 89 | false | muckamuck/stackility | print_stack_events | 22,034 | |
LDU_FT/luismasuelli/django-trackmodels-ritual/get_attachment_content | LDU_FT | [
"<BEGIN>\n## `lookups`",
"Performs lookup in the same way the reporting tool allows to generate a report.\n :param request: Current request\n :param model_admin: Current model admin. It must implement get_period_options as returning a list of (k, v).\n :raises: AttributeError, ValueError, or ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attachment_content API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attachment_content API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Returns the generated file content.
:param request: The request being processed.
:param queryset: The model class being processed.
:return: The report content (usually expressed in raw bytes but could be unicode as well). | "Returns the generated file content.\n :param request: The request being processed.\n :param queryset: The model class being processed.\n :return: The report content (usually expressed in raw bytes but could be unicode as well)." | 28 | false | luismasuelli/django-trackmodels-ritual | get_attachment_content | 22,035 | |
LDU_FT/fbcotter/py3nvml/nvmlDeviceSetGpuOperationMode | LDU_FT | [
"<BEGIN>\n## `grab_gpus`",
"Checks for gpu availability and sets CUDA_VISIBLE_DEVICES as such.",
" Note that this function does not do anything to 'reserve' gpus, it only\n limits what GPUS your program can see by altering the CUDA_VISIBLE_DEVICES\n variable. Other programs can still come along and sna... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nvmlDeviceSetGpuOperationMode 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 nvmlDeviceSetGpuOperationMode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | r"""
/**
* Sets new GOM. See \a nvmlGpuOperationMode_t for details.
*
* For GK110 M-class and X-class Tesla &tm; products from the Kepler family.
* Modes \ref NVML_GOM_LOW_DP and \ref NVML_GOM_ALL_ON are supported on fully supported GeForce products.
* Not supported on Quadro ® and Tesl... | "r\"\"\"\n /**\n * Sets new GOM. See \\a nvmlGpuOperationMode_t for details.\n *\n * For GK110 M-class and X-class Tesla &tm; products from the Kepler family.\n * Modes \\ref NVML_GOM_LOW_DP and \\ref NVML_GOM_ALL_ON are supported on fully supported GeForce products.\n * Not supported on Quadro &... | 336 | false | fbcotter/py3nvml | nvmlDeviceSetGpuOperationMode | 22,036 | |
LDU_FT/josuebrunel/myql/use | LDU_FT | [
"<BEGIN>\n## `get_current_info`",
"get_current_info() uses the yahoo.finance.quotes datatable to get all of the stock information presented in the main table on a typical stock page \n and a bunch of data from the key statistics page.\n<END>",
"<BEGIN>\n## `get_news_feed`",
"get_news_feed() uses the rs... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use API.
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 use API.
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... | Changes the data provider
>>> yql.use('http://myserver.com/mytables.xml') | "Changes the data provider\n >>> yql.use('http://myserver.com/mytables.xml')" | 44 | false | josuebrunel/myql | use | 22,037 | |
LDU_FT/kakwa/ldapcherry/_normalize_group_attrs | LDU_FT | [
"<BEGIN>\n## `get_param`",
"Get a parameter in config (handle default value)",
" :param param: name of the parameter to recover\n :type param: string\n :param default: the default value, raises an exception\n if param is not in configuration and default\n is None (whic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _normalize_group_attrs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _normalize_group_attrs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Normalize the attributes used to set groups
If it's a list of one element, it just become this
element.
It raises an error if the attribute doesn't exist
or if it's multivaluated. | "Normalize the attributes used to set groups\n If it's a list of one element, it just become this\n element.\n It raises an error if the attribute doesn't exist\n or if it's multivaluated." | 83 | false | kakwa/ldapcherry | _normalize_group_attrs | 22,038 | |
LDU_FT/abarker/pdfCropMargins/get_parent_directory | LDU_FT | [
"<BEGIN>\n## `get_bounding_box_list`",
"Calculate a bounding box for each page in the document. The first\n argument is the filename of the document's original PDF file, the second is\n the PdfFileReader for the document. The argument full_page_box_list is a list\n of the full-page-size boxes (which is... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parent_directory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parent_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.
... | Like os.path.dirname except it returns the absolute name of the parent
of the dirname directory. No symbolic link expansion (os.path.realpath)
or user expansion (os.path.expanduser) is done. | "Like os.path.dirname except it returns the absolute name of the parent\n of the dirname directory. No symbolic link expansion (os.path.realpath)\n or user expansion (os.path.expanduser) is done." | 71 | false | abarker/pdfCropMargins | get_parent_directory | 22,039 | |
LDU_FT/apache/spark/createExternalTable | LDU_FT | [
"<BEGIN>\n## `_parse_datatype_string`",
"Parses the given data type string to a :class:`DataType`. The data type string format equals\n to :class:`DataType.simpleString`, except that top level struct type can omit\n the ``struct<>`` and atomic types use ``typeName()`` as their format, e.g. use ``byte`` inst... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createExternalTable 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 createExternalTable 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... | Creates a table based on the dataset in a data source.
It returns the DataFrame associated with the external table.
The data source is specified by the ``source`` and a set of ``options``.
If ``source`` is not specified, the default data source configured by
``spark.sql.sources.default... | "Creates a table based on the dataset in a data source.\n\n It returns the DataFrame associated with the external table.\n\n The data source is specified by the ``source`` and a set of ``options``.\n If ``source`` is not specified, the default data source configured by\n ``spark.sql.sources.... | 2,386 | true | apache/spark | createExternalTable | 22,040 | |
LDU_FT/pricingassistant/mongokat/_get_object | LDU_FT | [
"<BEGIN>\n## `_get_string`",
"Decode a BSON string to python unicode string.\n<END>",
"<BEGIN>\n## `_get_object`",
"Decode a BSON subdocument to opts.document_class or bson.dbref.DBRef.\n<END>",
"<BEGIN>\n## `_get_boolean`",
"Decode a BSON true/false to python True/False.\n<END>",
"<BEGIN>\n## `_get_dat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_object API.
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... | Decode a BSON subdocument to opts.document_class or bson.dbref.DBRef. | "Decode a BSON subdocument to opts.document_class or bson.dbref.DBRef." | 55 | false | pricingassistant/mongokat | _get_object | 22,041 | |
LDU_FT/ECESeniorDesign/lazy_record/create | LDU_FT | [
"<BEGIN>\n## `does_not_mutate`",
"Prevents methods from mutating the receiver\n<END>",
"<BEGIN>\n## `find_by`",
"Find first record subject to restrictions in +kwargs+, raising\n RecordNotFound if no such record exists.\n<END>",
"<BEGIN>\n## `first`",
"Returns the first record in the query (sorting ... | 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 ... | Creates a new record suject to the restructions in the query and with
the passed +attributes+. Operates using `build`. | "Creates a new record suject to the restructions in the query and with\n the passed +attributes+. Operates using `build`." | 78 | false | ECESeniorDesign/lazy_record | create | 22,042 | |
LDU_FT/andycasey/sick/human_readable_digit | LDU_FT | [
"<BEGIN>\n## `chains`",
"Create a plot showing the walker values for each parameter at every step.",
" :param xs:\n The samples. This should be a 3D :class:`numpy.ndarray` of size \n (``n_walkers``, ``n_steps``, ``n_parameters``).",
" :type xs:\n :class:`numpy.ndarray`",
" :par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the human_readable_digit 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 human_readable_digit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Return a digit in a human-readable string form.
:param number:
The obfuscated number.
:type number:
float
:returns:
A more human-readable version of the input number.
:rtype:
str | "Return a digit in a human-readable string form.\n\n :param number:\n The obfuscated number.\n\n :type number:\n float\n\n :returns:\n A more human-readable version of the input number.\n\n :rtype:\n str" | 179 | false | andycasey/sick | human_readable_digit | 22,043 | |
LDU_FT/EpistasisLab/tpot/_preprocess_individuals | LDU_FT | [
"<BEGIN>\n## `auto_select_categorical_features`",
"Make a feature mask of categorical features in X.",
" Features with less than 10 unique values are considered categorical.",
" Parameters\n ----------\n X : array-like or sparse matrix, shape=(n_samples, n_features)\n Dense array or sparse ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _preprocess_individuals 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 _preprocess_individuals API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Preprocess DEAP individuals before pipeline evaluation.
Parameters
----------
individuals: a list of DEAP individual
One individual is a list of pipeline operators and model parameters that can be
compiled by DEAP into a callable function
Returns
-------... | "Preprocess DEAP individuals before pipeline evaluation.\n\n Parameters\n ----------\n individuals: a list of DEAP individual\n One individual is a list of pipeline operators and model parameters that can be\n compiled by DEAP into a callable function\n\n Returns\n ... | 249 | false | EpistasisLab/tpot | _preprocess_individuals | 22,044 | |
LDU_FT/jdowner/gist/edit | LDU_FT | [
"<BEGIN>\n## `send`",
"Prepare and send a request",
" Arguments:\n request: a Request object that is not yet prepared\n stem: a path to append to the root URL",
" Returns:\n The response to the request\n<END>",
"<BEGIN>\n## `list`",
"Returns a list of the use... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit API.
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 edit API.
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... | Edit a gist
The files in the gist a cloned to a temporary directory and passed to
the default editor (defined by the EDITOR environmental variable). When
the user exits the editor, they will be provided with a prompt to
commit the changes, which will then be pushed to the remote.
... | "Edit a gist\n\n The files in the gist a cloned to a temporary directory and passed to\n the default editor (defined by the EDITOR environmental variable). When\n the user exits the editor, they will be provided with a prompt to\n commit the changes, which will then be pushed to the remote.\... | 35 | false | jdowner/gist | edit | 22,045 | |
LDU_FT/push-things/django-th/get_tags | LDU_FT | [
"<BEGIN>\n## `available_services`",
"get the available services to be activated",
" read the models dir to find the services installed\n to be added to the system by the administrator\n<END>",
"<BEGIN>\n## `handle`",
"get all the triggers that need to be handled\n<END>",
"<BEGIN>\n## `read_d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tags API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tags API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | get the tags if any
:param model: the model object to request
:param trigger_id: the id of the related trigger
:return: tags string | "get the tags if any\n :param model: the model object to request\n :param trigger_id: the id of the related trigger\n :return: tags string" | 277 | false | push-things/django-th | get_tags | 22,046 | |
LDU_FT/ArduPilot/MAVProxy/param_help_tree | LDU_FT | [
"<BEGIN>\n## `child_task`",
"child process - this holds all the GUI elements\n<END>",
"<BEGIN>\n## `load_tile_lowres`",
"load a lower resolution tile from cache to fill in a\n map while waiting for a higher resolution tile\n<END>",
"<BEGIN>\n## `area_to_image`",
"return an RGB image for an area of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the param_help_tree API.
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 param_help_tree API.
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... | return a "help tree", a map between a parameter and its metadata. May return None if help is not available | "return a \"help tree\", a map between a parameter and its metadata. May return None if help is not available" | 404 | false | ArduPilot/MAVProxy | param_help_tree | 22,047 | |
LDU_FT/datacamp/sqlwhat/check_result | LDU_FT | [
"<BEGIN>\n## `has_no_error`",
"Check whether the submission did not generate a runtime error.",
" Simply use ``Ex().has_no_error()`` in your SCT whenever you want to check for errors.\n By default, after the entire SCT finished executing, ``sqlwhat`` will check\n for errors before marking the exercise ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_result API.
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... | High level function which wraps other SCTs for checking results.
``check_result()``
* uses ``lowercase()``, then
* runs ``check_all_columns()`` on the state produced by ``lowercase()``, then
* runs ``has_equal_value`` on the state produced by ``check_all_columns()``. | "High level function which wraps other SCTs for checking results.\n \n ``check_result()``\n\n * uses ``lowercase()``, then\n * runs ``check_all_columns()`` on the state produced by ``lowercase()``, then\n * runs ``has_equal_value`` on the state produced by ``check_all_columns()``." | 90 | false | datacamp/sqlwhat | check_result | 22,048 | |
LDU_FT/abhinav/reversible/execute | LDU_FT | [
"<BEGIN>\n## `gen`",
"Allows using a generator to chain together reversible actions.",
" This decorator may be added to a generator that yields reversible actions\n (any object with a ``.forwards()`` and ``.backwards()`` method). These may\n be constructed manually or via :py:func:`reversible.action`. ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Execute the given action.
An action is any object with a ``forwards()`` and ``backwards()`` method.
.. code-block:: python
class CreateUser(object):
def __init__(self, userinfo):
self.userinfo = userinfo
self.user_id = None
def forwards(self)... | "Execute the given action.\n\n An action is any object with a ``forwards()`` and ``backwards()`` method.\n\n .. code-block:: python\n\n class CreateUser(object):\n\n def __init__(self, userinfo):\n self.userinfo = userinfo\n self.user_id = None\n\n def f... | 60 | false | abhinav/reversible | execute | 22,049 | |
LDU_FT/sorgerlab/indra/_is_reference | LDU_FT | [
"<BEGIN>\n## `group_and_sort_statements`",
"Group statements by type and arguments, and sort by prevalence.",
" Parameters\n ----------\n stmt_list : list[Statement]\n A list of INDRA statements.\n ev_totals : dict{int: int}\n A dictionary, keyed by statement hash (shallow) with counts... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_reference API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_reference API.
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 True if the element is an entity reference. | "Return True if the element is an entity reference." | 2,493 | true | sorgerlab/indra | _is_reference | 22,050 | |
LDU_FT/matrix-org/matrix-python-sdk/listen_forever | LDU_FT | [
"<BEGIN>\n## `set_user_profile`",
"Set user profile within a room.",
" This sets displayname and avatar_url for the logged in user only in a\n specific room. It does not change the user's global user profile.\n<END>",
"<BEGIN>\n## `send_html`",
"Send an html formatted message.",
" Arg... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listen_forever API.
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 listen_forever API.
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... | Keep listening for events forever.
Args:
timeout_ms (int): How long to poll the Home Server for before
retrying.
exception_handler (func(exception)): Optional exception handler
function which can be used to handle exceptions in the caller
thr... | "Keep listening for events forever.\n\n Args:\n timeout_ms (int): How long to poll the Home Server for before\n retrying.\n exception_handler (func(exception)): Optional exception handler\n function which can be used to handle exceptions in the caller\n ... | 304 | false | matrix-org/matrix-python-sdk | listen_forever | 22,051 | |
LDU_FT/kaustavdm/pyAvroPhonetic/match_rule_patterns | LDU_FT | [
"<BEGIN>\n## `count_vowels`",
"Count number of occurrences of vowels in a given string\n<END>",
"<BEGIN>\n## `count_consonants`",
"Count number of occurrences of consonants in a given string\n<END>",
"<BEGIN>\n## `is_exact`",
"Check exact occurrence of needle in haystack\n<END>",
"<BEGIN>\n## `fix_strin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_rule_patterns API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_rule_patterns 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... | Matches given text at cursor position with rule patterns
Returns a dictionary of four elements:
- "matched" - Bool: depending on if match found
- "found" - string/None: Value of matched pattern's 'find' key or none
- "replaced": string Replaced string if match found else input string at
cursor
... | "Matches given text at cursor position with rule patterns\n\n Returns a dictionary of four elements:\n\n - \"matched\" - Bool: depending on if match found\n - \"found\" - string/None: Value of matched pattern's 'find' key or none\n - \"replaced\": string Replaced string if match found else input string at\n... | 29 | false | kaustavdm/pyAvroPhonetic | match_rule_patterns | 22,052 | |
LDU_FT/learningequality/iceqube/schedule | LDU_FT | [
"<BEGIN>\n## `wait_for_job_update`",
"Blocks until a job given by job_id has updated its state (canceled, completed, progress updated, etc.)\n if timeout is not None, then this function raises iceqube.exceptions.TimeoutError.",
" :param job_id: the job's job_id to monitor for changes.\n :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Schedules a function func for execution.
One special parameter is track_progress. If passed in and not None, the func will be passed in a
keyword parameter called update_progress:
def update_progress(progress, total_progress, stage=""):
The running function can call the update_progres... | "Schedules a function func for execution.\n\n One special parameter is track_progress. If passed in and not None, the func will be passed in a\n keyword parameter called update_progress:\n\n def update_progress(progress, total_progress, stage=\"\"):\n\n The running function can call the upda... | 93 | false | learningequality/iceqube | schedule | 22,053 | |
LDU_FT/bambinos/bambi/update | LDU_FT | [
"<BEGIN>\n## `reset`",
"Reset PyMC3 model and all tracked distributions and parameters.\n<END>",
"<BEGIN>\n## `build`",
"Compile the PyMC3 model from an abstract model specification.\n Args:\n spec (Model): A bambi Model instance containing the abstract\n specification of the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Update the model arguments with additional arguments.
Args:
kwargs (dict): Optional keyword arguments to add to prior args. | "Update the model arguments with additional arguments.\n\n Args:\n kwargs (dict): Optional keyword arguments to add to prior args." | 88 | false | bambinos/bambi | update | 22,054 | |
LDU_FT/ryanvarley/ExoData/isTransiting | LDU_FT | [
"<BEGIN>\n## `load_db_from_url`",
"Loads the database from a gzipped version of the system folder, by default the one located in the oec_gzip repo\n in the OpenExoplanetCatalogue GitHub group.",
" The database is loaded from the url in memory",
" :param url: url to load (must be gzipped version of sy... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isTransiting API.
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 isTransiting API.
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... | Checks the the istransiting tag to see if the planet transits. Note that this only works as of catalogue
version ee12343381ae4106fd2db908e25ffc537a2ee98c (11th March 2014) where the istransiting tag was implemented | "Checks the the istransiting tag to see if the planet transits. Note that this only works as of catalogue\n version ee12343381ae4106fd2db908e25ffc537a2ee98c (11th March 2014) where the istransiting tag was implemented" | 133 | false | ryanvarley/ExoData | isTransiting | 22,055 | |
LDU_FT/Capitains/MyCapytain/getMetadata | LDU_FT | [
"<BEGIN>\n## `call`",
"Call an endpoint given the parameters",
" :param parameters: Dictionary of parameters\n :type parameters: dict\n :rtype: text\n<END>",
"<BEGIN>\n## `getValidReff`",
"Retrieve valid urn-references for a text",
" :param urn: URN identifying the text\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getMetadata API.
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 getMetadata API.
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... | Request metadata about a text or a collection
:param objectId: Filter for some object identifier
:param filters: Kwargs parameters. URN and Inv are available
:return: GetCapabilities CTS API request response | "Request metadata about a text or a collection\n\n :param objectId: Filter for some object identifier\n :param filters: Kwargs parameters. URN and Inv are available\n :return: GetCapabilities CTS API request response" | 473 | false | Capitains/MyCapytain | getMetadata | 22,056 | |
LDU_FT/etobella/python-xmlsig/verify | LDU_FT | [
"<BEGIN>\n## `sign`",
"Signs a Signature node\n :param node: Signature node \n :type node: lxml.etree.Element\n :return: None\n<END>",
"<BEGIN>\n## `fill_key_info`",
"Fills the KeyInfo node\n :param key_info: KeyInfo node \n :type key_info: lxml.etree.Element\n :param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API.
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 verify API.
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 ... | Verifies a signature
:param node: Signature node
:type node: lxml.etree.Element
:return: None | "Verifies a signature\n :param node: Signature node\n :type node: lxml.etree.Element\n :return: None" | 36 | false | etobella/python-xmlsig | verify | 22,057 | |
LDU_FT/ckan/losser/_table_to_csv | LDU_FT | [
"<BEGIN>\n## `make_parser`",
"Return an argparse.ArgumentParser object with losser's arguments.",
" Other projects can call this to get an ArgumentParser with losser's\n command line interface to use as a parent parser for their own parser.\n For example::",
" parent_parser = losser.cli.make_p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _table_to_csv API.
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 _table_to_csv API.
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 the given table converted to a CSV string.
:param table: the table to convert
:type table: list of OrderedDicts each with the same keys in the same
order
:rtype: UTF8-encoded, CSV-formatted string | "Return the given table converted to a CSV string.\n\n :param table: the table to convert\n :type table: list of OrderedDicts each with the same keys in the same\n order\n\n :rtype: UTF8-encoded, CSV-formatted string" | 45 | false | ckan/losser | _table_to_csv | 22,058 | |
LDU_FT/lehins/django-smartfields/set_status | LDU_FT | [
"<BEGIN>\n## `process`",
"Processing is triggered by field's pre_save method. It will be\n executed if field's value has been changed (known through descriptor and\n stashing logic) or if model instance has never been saved before,\n i.e. no pk set, because there is a chance that field was in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Sets the field status for up to 5 minutes. | "Sets the field status for up to 5 minutes." | 16 | false | lehins/django-smartfields | set_status | 22,059 | |
LDU_FT/mosdef-hub/mbuild/xyz_with_ports | LDU_FT | [
"<BEGIN>\n## `calc_dihedral`",
"Calculates a dihedral angle",
" Here, two planes are defined by (point1, point2, point3) and\n (point2, point3, point4). The angle between them is returned.",
" Parameters\n ----------\n point1, point2, point3, point4 : array-like, shape=(3,), dtype=float\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xyz_with_ports API.
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 xyz_with_ports API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return all particle coordinates in this compound including ports.
Returns
-------
pos : np.ndarray, shape=(n, 3), dtype=float
Array with the positions of all particles and ports. | "Return all particle coordinates in this compound including ports.\n\n Returns\n -------\n pos : np.ndarray, shape=(n, 3), dtype=float\n Array with the positions of all particles and ports." | 463 | false | mosdef-hub/mbuild | xyz_with_ports | 22,060 | |
LDU_FT/SMTG-UCL/sumo/pretty_subplot | LDU_FT | [
"<BEGIN>\n## `kpath_from_seekpath`",
"r\"\"\"Convert seekpath-formatted kpoints path to sumo-preferred format.",
" If 'GAMMA' is used as a label this will be replaced by '\\Gamma'.",
" Args:\n seekpath (list): A :obj:`list` of 2-tuples containing the labels at\n each si... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_subplot API.
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 pretty_subplot API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Get a :obj:`matplotlib.pyplot` subplot object with pretty defaults.
Args:
nrows (int): The number of rows in the subplot.
ncols (int): The number of columns in the subplot.
width (:obj:`float`, optional): The width of the plot.
height (:obj:`float`, optional): The height of the plot... | "Get a :obj:`matplotlib.pyplot` subplot object with pretty defaults.\n\n Args:\n nrows (int): The number of rows in the subplot.\n ncols (int): The number of columns in the subplot.\n width (:obj:`float`, optional): The width of the plot.\n height (:obj:`float`, optional): The height of t... | 449 | false | SMTG-UCL/sumo | pretty_subplot | 22,061 | |
LDU_FT/jut-io/jut-python-tools/get_job_details | LDU_FT | [
"<BEGIN>\n## `_print_jobs`",
"internal method to print the provided jobs array in a nice tabular\n format\n<END>",
"<BEGIN>\n## `debug`",
"debug output goes to stderr so you can still redirect the stdout to a file\n or another program. Controlled by the JUT_DEBUG environment variable being\n present\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_job_details API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_job_details API.
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... | return job details for a specific job id | "return job details for a specific job id" | 72 | false | jut-io/jut-python-tools | get_job_details | 22,062 | |
LDU_FT/saulpw/visidata/ColumnAttr | LDU_FT | [
"<BEGIN>\n## `expand_cols_deep`",
"expand all visible columns of containers to the given depth (0=fully)\n<END>",
"<BEGIN>\n## `load_pyobj`",
"Return Sheet object of appropriate type for given sources in `args`.\n<END>",
"<BEGIN>\n## `getPublicAttrs`",
"Return all public attributes (not methods or `_`-pre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ColumnAttr API.
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 ColumnAttr API.
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... | Column using getattr/setattr of given attr. | "Column using getattr/setattr of given attr." | 249 | false | saulpw/visidata | ColumnAttr | 22,063 | |
LDU_FT/hearsaycorp/normalize/itemtypes | LDU_FT | [
"<BEGIN>\n## `path`",
"The path attribute returns a stringified, concise representation of\n the MultiFieldSelector. It can be reversed by the ``from_path``\n constructor.\n<END>",
"<BEGIN>\n## `get`",
"Creates a copy of the passed object which only contains the parts\n which are pointed... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the itemtypes API.
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 itemtypes API.
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... | Like :py:meth:`normalize.visitor.VisitorPattern.aggregate`, but
returns . This will normally only get called with a single type. | "Like :py:meth:`normalize.visitor.VisitorPattern.aggregate`, but\n returns . This will normally only get called with a single type." | 210 | false | hearsaycorp/normalize | itemtypes | 22,064 | |
LDU_FT/b3j0f/conf/loadmodules | LDU_FT | [
"<BEGIN>\n## `pathresource`",
"Returns specific resource.",
" :param str rscpath: resource path.\n :param Logger logger: logger to use.\n :param bool error: raise internal error if True (False by default).\n :param bool force: create the resource even if rscpath does not exist.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadmodules API.
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 loadmodules API.
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... | ry to (re)load modules and return loaded modules.
:param modules: list of module (name) to load.
:param bool rel: flag for forcing reload of module. Default is this
rel flag (false by default).
:rtype: list
:return: loaded modules. | "ry to (re)load modules and return loaded modules.\n\n :param modules: list of module (name) to load.\n :param bool rel: flag for forcing reload of module. Default is this\n rel flag (false by default).\n :rtype: list\n :return: loaded modules." | 151 | false | b3j0f/conf | loadmodules | 22,065 | |
LDU_FT/jxtech/wechatpy/update_articles | LDU_FT | [
"<BEGIN>\n## `add_articles`",
"新增永久图文素材\n 详情请参考\n https://mp.weixin.qq.com/wiki?id=mp1494572718_WzHIY",
" :param articles: 图文素材数组\n :type articles: list[dict]\n :return: 返回的 JSON 数据包\n<END>",
"<BEGIN>\n## `add`",
"新增其它类型永久素材\n 详情请参考\n http://mp.weixin.qq.com/... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_articles API.
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 update_articles API.
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... | 修改永久图文素材
详情请参考
http://mp.weixin.qq.com/wiki/4/19a59cba020d506e767360ca1be29450.html
:param media_id: 要修改的图文消息的 id
:param index: 要更新的文章在图文消息中的位置(多图文消息时,此字段才有意义),第一篇为 0
:param articles: 图文素材数组
:return: 返回的 JSON 数据包 | "修改永久图文素材\n 详情请参考\n http://mp.weixin.qq.com/wiki/4/19a59cba020d506e767360ca1be29450.html\n\n :param media_id: 要修改的图文消息的 id\n :param index: 要更新的文章在图文消息中的位置(多图文消息时,此字段才有意义),第一篇为 0\n :param articles: 图文素材数组\n :return: 返回的 JSON 数据包" | 813 | false | jxtech/wechatpy | update_articles | 22,066 | |
LDU_FT/pyvisa/pyvisa-py/assert_trigger | LDU_FT | [
"<BEGIN>\n## `get_debug_info`",
"Return a list of lines with backend info.\n<END>",
"<BEGIN>\n## `_register`",
"Creates a random but unique session handle for a session object,\n register it in the sessions dictionary and return the value",
" :param obj: a session object.\n :return: ses... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_trigger API.
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 assert_trigger API.
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... | Asserts software or hardware trigger.
Corresponds to viAssertTrigger function of the VISA library.
:param session: Unique logical identifier to a session.
:param protocol: Trigger protocol to use during assertion. (Constants.PROT*)
:return: return value of the library call.
:rt... | "Asserts software or hardware trigger.\n\n Corresponds to viAssertTrigger function of the VISA library.\n\n :param session: Unique logical identifier to a session.\n :param protocol: Trigger protocol to use during assertion. (Constants.PROT*)\n :return: return value of the library call.\n ... | 71 | false | pyvisa/pyvisa-py | assert_trigger | 22,067 | |
LDU_FT/hyperledger/sawtooth-core/is_transaction_signer_authorized | LDU_FT | [
"<BEGIN>\n## `run_callback`",
"Calls the callback_func, passing in the two positional arguments,\n conditionally waiting if the callback function hasn't been set yet.\n Meant to be run in a threadpool owned by the FutureCollection.",
" Returns:\n None\n<END>",
"<BEGIN>\n## `add... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_transaction_signer_authorized API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_transaction_signer_authorized API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | Check the transaction signing key against the allowed transactor
permissions. The roles being checked are the following, from first
to last:
"transactor.transaction_signer.<TP_Name>"
"transactor.transaction_signer"
"transactor"
"def... | "Check the transaction signing key against the allowed transactor\n permissions. The roles being checked are the following, from first\n to last:\n \"transactor.transaction_signer.<TP_Name>\"\n \"transactor.transaction_signer\"\n \"transactor\"\n ... | 876 | false | hyperledger/sawtooth-core | is_transaction_signer_authorized | 22,068 | |
LDU_FT/nicferrier/md/cmd | LDU_FT | [
"<BEGIN>\n## `_list`",
"Do structured list output.",
" Sorts the list by date, possibly reversed, filtered from 'since'.",
" The returned list is: foldername, message key, message object\n<END>",
"<BEGIN>\n## `ls`",
"Do standard text list of the folder to the stream.",
" 'foldername... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd API.
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 cmd API.
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... | Executes the specified command on the remote host.
The cmd must be format safe, this means { and } must be doubled, thusly:
echo /var/local/maildir/{{cur,new}}
the cmd can include the format word 'maildir' to be replaced
by self.directory. eg:
echo {maildir}/{{cur,new}} | "Executes the specified command on the remote host.\n\n The cmd must be format safe, this means { and } must be doubled, thusly:\n\n echo /var/local/maildir/{{cur,new}}\n\n the cmd can include the format word 'maildir' to be replaced\n by self.directory. eg:\n\n echo {maildir}/{{c... | 135 | false | nicferrier/md | cmd | 22,069 | |
LDU_FT/HiPERCAM/hcam_widgets/setExpert | LDU_FT | [
"<BEGIN>\n## `update`",
"Adds a handler to save to a file. Includes debug stuff.\n<END>",
"<BEGIN>\n## `saveJSON`",
"Saves the current setup to disk.",
" g : hcam_drivers.globals.Container\n Container with globals",
" data : dict\n The current setup in JSON compatible dictionary format.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setExpert API.
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 setExpert API.
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... | Turns on 'expert' status whereby the button is always enabled,
regardless of its activity status. | "Turns on 'expert' status whereby the button is always enabled,\n regardless of its activity status." | 233 | false | HiPERCAM/hcam_widgets | setExpert | 22,070 | |
LDU_FT/jpablo128/simplystatic/do_serve | LDU_FT | [
"<BEGIN>\n## `make_site_obj`",
"Instantiate and return the site. This will be used for all commands\n<END>",
"<BEGIN>\n## `random_md_page`",
"Generate random markdown page content..",
" If the parameters are zero, instead of a fixed number of elements \n it uses a random number.\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_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 extracte... | Serve the site on localhost, for testing/development. | "Serve the site on localhost, for testing/development." | 85 | false | jpablo128/simplystatic | do_serve | 22,071 | |
LDU_FT/xsleonard/pystmark/load_from | LDU_FT | [
"<BEGIN>\n## `send`",
"Send a message.",
" :param message: Message to send.\n :type message: `dict` or :class:`Message`\n :param api_key: Your Postmark API key. Required, if `test` is not `True`.\n :param secure: Use the https scheme for the Postmark API.\n Defaults to `True`\n :param test... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from API.
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... | Create a :class:`Message` by merging `other` with `self`.
Values from `other` will be copied to `self` if the value was not
set on `self` and is set on `other`.
:param other: The :class:`Message` to copy defaults from.
:type other: :class:`Message`
:param \*\*kwargs: Additional ... | "Create a :class:`Message` by merging `other` with `self`.\n Values from `other` will be copied to `self` if the value was not\n set on `self` and is set on `other`.\n\n :param other: The :class:`Message` to copy defaults from.\n :type other: :class:`Message`\n :param \\*\\*kwargs: Ad... | 113 | false | xsleonard/pystmark | load_from | 22,072 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.