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/ioos/cc-plugin-ncei/get_unitless_standard_names | LDU_FT | [
"<BEGIN>\n## `check_timeseries_id`",
"Checks that if a variable exists for the time series id it has the appropriate attributes",
" :param netCDF4.Dataset dataset: An open netCDF dataset\n<END>",
"<BEGIN>\n## `check_recommended_attributes`",
"Feature type specific check of global recommended attribut... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unitless_standard_names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unitless_standard_names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Returns a list of valid standard_names that are allowed to be unitless | "Returns a list of valid standard_names that are allowed to be unitless" | 134 | false | ioos/cc-plugin-ncei | get_unitless_standard_names | 9,073 | |
LDU_FT/ska-sa/purr/stddev_samples | LDU_FT | [
"<BEGIN>\n## `rotate`",
"Rotate a coordinate around point (0,0).\n - x and y specify the coordinate.\n - degree is a number from 0 to 360.\n Returns a new coordinate.\n<END>",
"<BEGIN>\n## `_compute_bounding_box`",
"Given the list of coordinates (x,y), this procedure computes\n the smallest rectan... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stddev_samples API.
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 stddev_samples API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Create a sample list that contains the mean and standard deviation of the original list. Each element in the returned list contains following values: [MEAN, STDDEV, MEAN - STDDEV*delta, MEAN + STDDEV*delta].
>>> chart_data.stddev_samples([ [1, 10, 15, 12, 15], [2, 5, 10, 5, 10], [3, 32, 33, 35, 36], [4,16,66, 67, 68] ... | "Create a sample list that contains the mean and standard deviation of the original list. Each element in the returned list contains following values: [MEAN, STDDEV, MEAN - STDDEV*delta, MEAN + STDDEV*delta].\n\n>>> chart_data.stddev_samples([ [1, 10, 15, 12, 15], [2, 5, 10, 5, 10], [3, 32, 33, 35, 36], [4,16,66, 67, 6... | 265 | false | ska-sa/purr | stddev_samples | 9,074 | |
LDU_FT/linnarsson-lab/loompy/map | LDU_FT | [
"<BEGIN>\n## `create_append`",
"**DEPRECATED** - Use `new` instead; see https://github.com/linnarsson-lab/loompy/issues/42\n<END>",
"<BEGIN>\n## `new`",
"Create an empty Loom file, and return it as a context manager.\n<END>",
"<BEGIN>\n## `create`",
"Create a new Loom file from the given data.",
"\tArgs... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map API.
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 map API.
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... | Apply a function along an axis without loading the entire dataset in memory.
Args:
f: Function(s) that takes a numpy ndarray as argument
axis: Axis along which to apply the function (0 = rows, 1 = columns)
chunksize: Number of rows (columns) to load per chunk
selection: Columns (rows) to include
... | "Apply a function along an axis without loading the entire dataset in memory.\n\n\t\tArgs:\n\t\t\tf:\t\tFunction(s) that takes a numpy ndarray as argument\n\n\t\t\taxis:\t\tAxis along which to apply the function (0 = rows, 1 = columns)\n\n\t\t\tchunksize: Number of rows (columns) to load per chunk\n\n\t\t\tselection: C... | 170 | false | linnarsson-lab/loompy | map | 9,075 | |
LDU_FT/argaen/aiocache/increment | LDU_FT | [
"<BEGIN>\n## `loads`",
"Deserialize value using ``msgpack.loads``.",
" :param value: bytes\n :returns: obj\n<END>",
"<BEGIN>\n## `parse_uri_path`",
"Given a uri path, return the Redis specific configuration\n options in that path string according to iana definition\n http://www.i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extract... | Increments value stored in key by delta (can be negative). If key doesn't
exist, it creates the key with delta as value.
:param key: str key to check
:param delta: int amount to increment/decrement
:param namespace: str alternative namespace to use
:param timeout: int or float i... | "Increments value stored in key by delta (can be negative). If key doesn't\n exist, it creates the key with delta as value.\n\n :param key: str key to check\n :param delta: int amount to increment/decrement\n :param namespace: str alternative namespace to use\n :param timeout: int or ... | 77 | false | argaen/aiocache | increment | 9,076 | |
LDU_FT/shexSpec/grammar/numeric_literal_to_type | LDU_FT | [
"<BEGIN>\n## `visitNodeConstraintLiteral`",
"nodeConstraint: KW_LITERAL xsFacet* # nodeConstraintLiteral\n<END>",
"<BEGIN>\n## `visitNodeConstraintNonLiteral`",
"nodeConstraint: nonLiteralKind stringFacet* # nodeConstraintNonLiteral\n<END>",
"<BEGIN>\n## `visitNodeConstraintDatatype`",
"nodeConstraint: d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the numeric_literal_to_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the numeric_literal_to_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... | numericLiteral: INTEGER | DECIMAL | DOUBLE | "numericLiteral: INTEGER | DECIMAL | DOUBLE" | 93 | false | shexSpec/grammar | numeric_literal_to_type | 9,077 | |
LDU_FT/tariqdaouda/rabaDB/_attachToObject | LDU_FT | [
"<BEGIN>\n## `removeFromRegistery`",
"Removes an object/rabalist from registery. This is useful if you want to allow the garbage collector to free the memory\n\ttaken by the objects you've already loaded. Be careful might cause some discrepenties in your scripts. For objects,\n\tcascades to free the registeries o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _attachToObject API.
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 _attachToObject API.
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... | Attaches the rabalist to a raba object. Only attached rabalists can be saved | "Attaches the rabalist to a raba object. Only attached rabalists can be saved" | 55 | false | tariqdaouda/rabaDB | _attachToObject | 9,078 | |
LDU_FT/storax/jinjaapidoc/main | LDU_FT | [
"<BEGIN>\n## `prepare_dir`",
"Create apidoc dir, delete contents if delete is True.",
" :param app: the sphinx app\n :type app: :class:`sphinx.application.Sphinx`\n :param directory: the apidoc directory. you can use relative paths here\n :type directory: str\n :param delete: if True, deletes the... | 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... | Parse the config of the app and initiate the generation process
:param app: the sphinx app
:type app: :class:`sphinx.application.Sphinx`
:returns: None
:rtype: None
:raises: None | "Parse the config of the app and initiate the generation process\n\n :param app: the sphinx app\n :type app: :class:`sphinx.application.Sphinx`\n :returns: None\n :rtype: None\n :raises: None" | 58 | false | storax/jinjaapidoc | main | 9,079 | |
LDU_FT/rigetti/pyquil/from_compact_str | LDU_FT | [
"<BEGIN>\n## `to_latex`",
"Translates a given pyquil Program to a TikZ picture in a Latex document.",
" :param Program circuit: The circuit to be drawn, represented as a pyquil program.\n :param dict settings: An optional dictionary with settings for drawing the circuit. See `get_default_settings`\n i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_compact_str API.
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 from_compact_str API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Construct a PauliTerm from the result of str(pauli_term) | "Construct a PauliTerm from the result of str(pauli_term)" | 1,152 | true | rigetti/pyquil | from_compact_str | 9,080 | |
LDU_FT/arve0/leicascanningtemplate/field | LDU_FT | [
"<BEGIN>\n## `well_fields`",
"All ScanFieldData elements of given well.",
" Parameters\n ----------\n well_x : int\n well_y : int",
" Returns\n -------\n list of lxml.objectify.ObjectifiedElement\n All ScanFieldData elements of given well.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the field API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the field API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | ScanFieldData of specified field.
Parameters
----------
well_x : int
well_y : int
field_x : int
field_y : int
Returns
-------
lxml.objectify.ObjectifiedElement
ScanFieldArray/ScanFieldData element. | "ScanFieldData of specified field.\n\n Parameters\n ----------\n well_x : int\n well_y : int\n field_x : int\n field_y : int\n\n Returns\n -------\n lxml.objectify.ObjectifiedElement\n ScanFieldArray/ScanFieldData element." | 36 | false | arve0/leicascanningtemplate | field | 9,081 | |
LDU_FT/ctuning/ck/parse_cid | LDU_FT | [
"<BEGIN>\n## `call_ck`",
"Input: {\n Input for CK\n }",
" Output: {\n return - return code = 0, if successful\n > 0, if error\n (error) - error text if return > 0",
" (stdout) - stdout, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_cid API.
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 parse_cid API.
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... | Input: {
cid - in format (REPO_UOA:)MODULE_UOA:DATA_UOA
(cur_cid) - output of function 'detect_cid_in_current_path'
(ignore_error) - if 'yes', ignore wrong format
}
Output: {
return - return code = 0, if successful
... | "Input: {\n cid - in format (REPO_UOA:)MODULE_UOA:DATA_UOA \n (cur_cid) - output of function 'detect_cid_in_current_path'\n (ignore_error) - if 'yes', ignore wrong format\n }\n\n Output: {\n return - return code = 0, if successful... | 640 | false | ctuning/ck | parse_cid | 9,082 | |
LDU_FT/vuolter/autoupgrade/upgrade | LDU_FT | [
"<BEGIN>\n## `smartupgrade`",
"Upgrade the package if there is a later version available.\n Args:\n restart: restart app if True\n dependencies: update package dependencies if True (see pip --no-deps)\n prerelease: update to pre-release and development versions\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upgrade API.
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 upgrade API.
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... | Upgrade the package unconditionaly
Args:
dependencies: update package dependencies if True (see pip --no-deps)
prerelease: update to pre-release and development versions
force: reinstall all packages even if they are already up-to-date
Returns True if pip was sucessfu... | "Upgrade the package unconditionaly\n Args:\n dependencies: update package dependencies if True (see pip --no-deps)\n prerelease: update to pre-release and development versions\n force: reinstall all packages even if they are already up-to-date\n Returns True if pip was su... | 12 | false | vuolter/autoupgrade | upgrade | 9,083 | |
LDU_FT/matthiask/django-cte-forest/prepare_delete_grandmother | LDU_FT | [
"<BEGIN>\n## `_ensure_parameters`",
"Attempts to load and verify the CTE node parameters. Will use\n default values for all missing parameters, and raise an exception if\n a parameter's value cannot be verified. This method will only\n perform these actions once, and set the :attr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_delete_grandmother API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_delete_grandmother API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Prepares a given :class:`CTENode` `node` for deletion, by executing
the :const:`DELETE_METHOD_GRANDMOTHER` semantics. Descendant nodes,
if present, will be moved; in this case the optional `position` can
be a ``callable`` which is invoked prior to each move operation (see
... | "Prepares a given :class:`CTENode` `node` for deletion, by executing\n the :const:`DELETE_METHOD_GRANDMOTHER` semantics. Descendant nodes,\n if present, will be moved; in this case the optional `position` can\n be a ``callable`` which is invoked prior to each move operation (see\n ... | 153 | false | matthiask/django-cte-forest | prepare_delete_grandmother | 9,084 | |
LDU_FT/kennethreitz/legit/switch | LDU_FT | [
"<BEGIN>\n## `unstash_index`",
"Returns an unstash index if one is available.\n<END>",
"<BEGIN>\n## `unstash_it`",
"Unstashes changes from current branch for branch sync.\n Requires prior code setting self.stash_index.\n<END>",
"<BEGIN>\n## `smart_pull`",
"'git log --merges origin/master..master'\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the switch API.
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 switch API.
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 ... | Switches from one branch to another, safely stashing and restoring local changes. | "Switches from one branch to another, safely stashing and restoring local changes." | 25 | false | kennethreitz/legit | switch | 9,085 | |
LDU_FT/aisthesis/pynance/equities | LDU_FT | [
"<BEGIN>\n## `optimize`",
"Return parameters for portfolio optimization.",
" Parameters\n ----------\n exp_rets : ndarray\n Vector of expected returns for each investment..\n covs : ndarray\n Covariance matrix for the given investments.",
" Returns\n ---------\n a : ndarray\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the equities API.
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 equities API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return a DataFrame of current US equities.
.. versionadded:: 0.4.0
.. versionchanged:: 0.5.0
Return a DataFrame
Parameters
----------
country : str, optional
Country code for equities to return, defaults to 'US'.
Returns
-------
eqs : :class:`pandas.DataFrame`
... | "Return a DataFrame of current US equities.\n\n .. versionadded:: 0.4.0\n\n .. versionchanged:: 0.5.0\n Return a DataFrame\n\n Parameters\n ----------\n country : str, optional\n Country code for equities to return, defaults to 'US'.\n\n Returns\n -------\n eqs : :class:`pandas.Data... | 231 | false | aisthesis/pynance | equities | 9,086 | |
LDU_FT/ethereum/eth-abi/invalidate_value | LDU_FT | [
"<BEGIN>\n## `abbr`",
"Converts a value into its string representation and abbreviates that\n representation based on the given length `limit` if necessary.\n<END>",
"<BEGIN>\n## `invalidate_value`",
"Throws a standard exception for when a value is not encodable by an\n encoder.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invalidate_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invalidate_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Throws a standard exception for when a value is not encodable by an
encoder. | "Throws a standard exception for when a value is not encodable by an\n encoder." | 57 | false | ethereum/eth-abi | invalidate_value | 9,087 | |
LDU_FT/jalanb/pysyte/rebase | LDU_FT | [
"<BEGIN>\n## `get_caselessly`",
"Find the sought key in the given dictionary regardless of case",
" >>> things = {'Fred' : 9}\n >>> print(get_caselessly(things, 'fred'))\n 9\n<END>",
"<BEGIN>\n## `append_value`",
"Append those items to the values for that key\n<END>",
"<BEGIN>\n## `extend_values`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rebase API.
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 rebase API.
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 ... | Rebase branch onto upstream
If branch is empty, use current branch | "Rebase branch onto upstream\n\n If branch is empty, use current branch" | 224 | false | jalanb/pysyte | rebase | 9,088 | |
LDU_FT/gplepage/gvar/tri_diag_solve | LDU_FT | [
"<BEGIN>\n## `deriv`",
"Compute *n*-th derivative of ``self``.",
" :param n: Number of derivatives.\n :type n: positive integer\n :returns: *n*-th derivative of ``self``.\n<END>",
"<BEGIN>\n## `integ`",
"Compute *n*-th indefinite integral of ``self``.",
" If *x0* is specified, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tri_diag_solve API.
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 tri_diag_solve API.
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... | Solve a[i] * x[i-1] + b[i] * x[i] + c[i] * x[i+1] = d[i] for x[i]
Adapted from: http://en.wikipedia.org/wiki/Tridiagonal_matrix_algorithm. | "Solve a[i] * x[i-1] + b[i] * x[i] + c[i] * x[i+1] = d[i] for x[i]\n\n Adapted from: http://en.wikipedia.org/wiki/Tridiagonal_matrix_algorithm." | 206 | false | gplepage/gvar | tri_diag_solve | 9,089 | |
LDU_FT/ocslegna/auto_py_torrent/insert | LDU_FT | [
"<BEGIN>\n## `get_parser`",
"Load parser for command line arguments.",
" It parses argv/input into args variable.\n<END>",
"<BEGIN>\n## `insert`",
"Insert args values into instance variables.\n<END>",
"<BEGIN>\n## `run_it`",
"Search and download torrents until the user says it so.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API.
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 insert API.
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 ... | Insert args values into instance variables. | "Insert args values into instance variables." | 21 | false | ocslegna/auto_py_torrent | insert | 9,090 | |
LDU_FT/hanguokai/youku/remove_none_value | LDU_FT | [
"<BEGIN>\n## `check_error`",
"Youku error should return in json form, like:\n HTTP 400\n {\n \"error\":{\n \"code\":120010223,\n \"type\":\"UploadsException\",\n \"description\":\"Expired upload token\"\n }\n }",
" But error also maybe in response url p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_none_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_none_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | remove item from dict if value is None.
return new dict. | "remove item from dict if value is None.\n return new dict." | 120 | false | hanguokai/youku | remove_none_value | 9,091 | |
LDU_FT/peopledoc/workalendar/sub_working_days | LDU_FT | [
"<BEGIN>\n## `get_variable_days`",
"Add Late Summer holiday (First Monday of September)\n<END>",
"<BEGIN>\n## `iso_register`",
"Registers Calendar class as country or region in IsoRegistry.",
" Registered country must set class variables ``iso`` using this decorator.",
" >>> from workalendar.core im... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sub_working_days API.
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 sub_working_days API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Substract `delta` working days to the date.
This method is a shortcut / helper. Users may want to use either::
cal.add_working_days(my_date, -7)
cal.sub_working_days(my_date, 7)
The other parameters are to be used exactly as in the
``add_working_days`` method.
... | "Substract `delta` working days to the date.\n\n This method is a shortcut / helper. Users may want to use either::\n\n cal.add_working_days(my_date, -7)\n cal.sub_working_days(my_date, 7)\n\n The other parameters are to be used exactly as in the\n ``add_working_days`` method.... | 106 | false | peopledoc/workalendar | sub_working_days | 9,092 | |
LDU_FT/django-getpaid/django-plans/get_all_context | LDU_FT | [
"<BEGIN>\n## `import_name`",
"import module given by str or pass the module if it is not str\n<END>",
"<BEGIN>\n## `account_status`",
"Set following ``RequestContext`` variables:",
" * ``ACCOUNT_EXPIRED = boolean``, account was expired state,\n * ``ACCOUNT_NOT_ACTIVE = boolean``, set when account is... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_context API.
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_all_context API.
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... | Retrieves Plan and Pricing for current order creation | "Retrieves Plan and Pricing for current order creation" | 23 | false | django-getpaid/django-plans | get_all_context | 9,093 | |
LDU_FT/jeffreystarr/dateinfer/infer | LDU_FT | [
"<BEGIN>\n## `infer`",
"Returns a datetime.strptime-compliant format string for parsing the *most likely* date format\n used in examples. examples is a list containing example date strings.\n<END>",
"<BEGIN>\n## `_apply_rewrites`",
"Return a list of date elements by applying rewrites to the initial date el... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the infer API.
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 infer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Returns a datetime.strptime-compliant format string for parsing the *most likely* date format
used in examples. examples is a list containing example date strings. | "Returns a datetime.strptime-compliant format string for parsing the *most likely* date format\n used in examples. examples is a list containing example date strings." | 22 | false | jeffreystarr/dateinfer | infer | 9,094 | |
LDU_FT/josiah-wolf-oberholtzer/uqbar/on_build_finished | LDU_FT | [
"<BEGIN>\n## `_build_mappings`",
"Collect all bases and organize into parent/child mappings.\n<END>",
"<BEGIN>\n## `_collect_classes`",
"Collect all classes defined in/under ``package_paths``.\n<END>",
"<BEGIN>\n## `find_common_prefix`",
"Find the common prefix of two or more paths.",
" ::",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_build_finished API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_build_finished API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Hooks into Sphinx's ``build-finished`` event. | "Hooks into Sphinx's ``build-finished`` event." | 123 | false | josiah-wolf-oberholtzer/uqbar | on_build_finished | 9,095 | |
LDU_FT/rmed/pyemtmad/get_stops_line | LDU_FT | [
"<BEGIN>\n## `check_result`",
"Check the result of an API response.",
" Ideally, this should be done by checking that the value of the ``resultCode``\n attribute is 0, but there are endpoints that simply do not follow this rule.",
" Args:\n data (dict): Response obtained from the API endpoint.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stops_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stops_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 ex... | Obtain information on the stops of the given lines.
Arguments:
lines (list[int] | int): Lines to query, may be empty to get
all the lines.
direction (str): Optional, either *forward* or *backward*.
lang (str): Language code (*es* or *en*).
Returns:
... | "Obtain information on the stops of the given lines.\n\n Arguments:\n lines (list[int] | int): Lines to query, may be empty to get\n all the lines.\n direction (str): Optional, either *forward* or *backward*.\n lang (str): Language code (*es* or *en*).\n\n R... | 114 | false | rmed/pyemtmad | get_stops_line | 9,096 | |
LDU_FT/robertmartin8/PyPortfolioOpt/shrink | LDU_FT | [
"<BEGIN>\n## `negative_sharpe`",
"Calculate the negative Sharpe ratio of a portfolio",
" :param weights: asset weights of the portfolio\n :type weights: np.ndarray\n :param expected_returns: expected return of each asset\n :type expected_returns: pd.Series\n :param cov_matrix: the covariance matr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shrink API.
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 shrink API.
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 ... | Calculate the Constant-Correlation covariance matrix.
:return: shrunk sample covariance matrix
:rtype: np.ndarray | "Calculate the Constant-Correlation covariance matrix.\n\n :return: shrunk sample covariance matrix\n :rtype: np.ndarray" | 90 | false | robertmartin8/PyPortfolioOpt | shrink | 9,097 | |
LDU_FT/HumanCellAtlas/dcp-cli/list | LDU_FT | [
"<BEGIN>\n## `get_checksum_metadata_tag`",
"Returns a map of checksum values by the name of the hashing function that produced it.\n<END>",
"<BEGIN>\n## `get_credentials`",
"Return a set of credentials that may be used to access the Upload Area folder in the S3 bucket\n :return: a dict containing AWS c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | A generator that yields information about each file in the upload area
:param detail: return detailed file information (slower)
:return: a list of dicts containing at least 'name', or more of detail was requested | "A generator that yields information about each file in the upload area\n :param detail: return detailed file information (slower)\n :return: a list of dicts containing at least 'name', or more of detail was requested" | 140 | false | HumanCellAtlas/dcp-cli | list | 9,098 | |
LDU_FT/JawboneHealth/jhhalchemy/read_by | LDU_FT | [
"<BEGIN>\n## `read_by`",
"filter_by query helper that handles soft delete logic. If your query conditions require expressions, use read.",
" :param removed: whether to include soft-deleted rows\n :param kwargs: where clause mappings to pass to filter_by\n :return: row object generator\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_by API.
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_by API.
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... | filter_by query helper that handles soft delete logic. If your query conditions require expressions, use read.
:param removed: whether to include soft-deleted rows
:param kwargs: where clause mappings to pass to filter_by
:return: row object generator | "filter_by query helper that handles soft delete logic. If your query conditions require expressions, use read.\n\n :param removed: whether to include soft-deleted rows\n :param kwargs: where clause mappings to pass to filter_by\n :return: row object generator" | 23 | false | JawboneHealth/jhhalchemy | read_by | 9,099 | |
LDU_FT/jelmer/python-fastimport/utf8_bytes_string | LDU_FT | [
"<BEGIN>\n## `check_path`",
"Check that a path is legal.",
" :return: the path if all is OK\n :raise ValueError: if the path is illegal\n<END>",
"<BEGIN>\n## `format_path`",
"Format a path in utf8, quoting it if necessary.\n<END>",
"<BEGIN>\n## `format_who_when`",
"Format a tuple of name,email,sec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the utf8_bytes_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the utf8_bytes_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Convert a string to a bytes string (if necessary, encode in utf8) | "Convert a string to a bytes string (if necessary, encode in utf8)" | 100 | false | jelmer/python-fastimport | utf8_bytes_string | 9,100 | |
LDU_FT/timmahrt/pysle/search | LDU_FT | [
"<BEGIN>\n## `spellCheckTextgrid`",
"Spell check words by using the praatio spellcheck function",
" Incorrect items are noted in a new tier and optionally\n printed to the screen\n<END>",
"<BEGIN>\n## `naiveWordAlignment`",
"Performs naive alignment for utterances in a textgrid",
" Naive alig... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | for help on isletool.LexicalTool.search(), see see isletool.search() | "for help on isletool.LexicalTool.search(), see see isletool.search()" | 60 | false | timmahrt/pysle | search | 9,101 | |
LDU_FT/the01/python-floscraper/load_scrap | LDU_FT | [
"<BEGIN>\n## `prepare_headers`",
"Prepare headers object for request (add cache information",
" :param headers: Headers object\n :type headers: dict\n :param cache_info: Cache information to add\n :type cache_info: floscraper.models.CacheInfo\n :return: Prepared headers\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_scrap API.
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 load_scrap API.
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... | Load scraper settings from file
:param path: Path to file
:type path: str
:rtype: None
:raises WEBFileException: Failed to load settings
:raises WEBParameterException: Missing parameters in file | "Load scraper settings from file\n\n :param path: Path to file\n :type path: str\n :rtype: None\n :raises WEBFileException: Failed to load settings\n :raises WEBParameterException: Missing parameters in file" | 50 | false | the01/python-floscraper | load_scrap | 9,102 | |
LDU_FT/paylogic/halogen/deserialize | LDU_FT | [
"<BEGIN>\n## `to_dict`",
"Return a dictionary representation of the error.",
" :return: A dict with the keys:\n - attr: Attribute which contains the error, or \"<root>\" if it refers to the schema root.\n - errors: A list of dictionary representations of the errors.\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Deserialize the attribute from a HAL structure.
Get the value from the HAL structure from the attribute's compartment
using the attribute's name as a key, convert it using the attribute's
type. Schema will either return it to parent schema or will assign
to the output value if specifie... | "Deserialize the attribute from a HAL structure.\n\n Get the value from the HAL structure from the attribute's compartment\n using the attribute's name as a key, convert it using the attribute's\n type. Schema will either return it to parent schema or will assign\n to the output value if sp... | 51 | false | paylogic/halogen | deserialize | 9,103 | |
LDU_FT/miguelgrinberg/climax/_subgroup | LDU_FT | [
"<BEGIN>\n## `command`",
"Decorator to define a command.",
" The arguments to this decorator are those of the\n `ArgumentParser <https://docs.python.org/3/library/argparse.html\\\n#argumentparser-objects>`_\n object constructor.\n<END>",
"<BEGIN>\n## `_subcommand`",
"Decorator to define a subcomman... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _subgroup API.
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 _subgroup API.
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... | Decorator to define a subgroup.
This decorator is used for the group's @group decorator. | "Decorator to define a subgroup.\n\n This decorator is used for the group's @group decorator." | 18 | false | miguelgrinberg/climax | _subgroup | 9,104 | |
LDU_FT/adobe-apiplatform/umapi-client.py/_execute_batch | LDU_FT | [
"<BEGIN>\n## `status`",
"Return the connection status, both locally and remotely.",
" The local connection status is a dictionary that gives:\n * the count of multiple queries sent to the server.\n * the count of single queries sent to the server.\n * the count of actions sent to the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute_batch API.
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 _execute_batch API.
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... | Execute a single batch of Actions.
For each action that has a problem, we annotate the action with the
error information for that action, and we return the number of
successful actions in the batch.
:param actions: the list of Action objects to be executed
:return: count of succe... | "Execute a single batch of Actions.\n For each action that has a problem, we annotate the action with the\n error information for that action, and we return the number of\n successful actions in the batch.\n :param actions: the list of Action objects to be executed\n :return: count of... | 78 | false | adobe-apiplatform/umapi-client.py | _execute_batch | 9,105 | |
LDU_FT/nlm/nagplug/get_message | LDU_FT | [
"<BEGIN>\n## `set_timeout`",
"set the timeout for plugin operations\n when timeout is reached, exit properly with nagios-compliant output",
" arguments:\n timeout: timeout in seconds\n code: exit status code\n<END>",
"<BEGIN>\n## `exit`",
"manual exit from the plugin",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | the final message for mult-checks
arguments:
msglevels: an array of all desired levels (ex: [CRITICAL, WARNING])
joiner: string used to join all messages (default: ', ')
returns:
one-line message created with input results
or None if there are none | "the final message for mult-checks\n\n arguments:\n msglevels: an array of all desired levels (ex: [CRITICAL, WARNING])\n joiner: string used to join all messages (default: ', ')\n\n returns:\n one-line message created with input results\n or None if there are n... | 37 | false | nlm/nagplug | get_message | 9,106 | |
LDU_FT/serkanyersen/underscore.py/any | LDU_FT | [
"<BEGIN>\n## `obj`",
"Returns passed object but if chain method is used\n returns the last processed result\n<END>",
"<BEGIN>\n## `_wrap`",
"Returns result but ig chain method is used\n returns the object itself so we can chain\n<END>",
"<BEGIN>\n## `_toOriginal`",
"Pitty attempt to convert ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the any API.
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 any API.
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... | Determine if at least one element in the object
matches a truth test. | "Determine if at least one element in the object\n matches a truth test." | 130 | false | serkanyersen/underscore.py | any | 9,107 | |
LDU_FT/polysquare/polysquare-setuptools-lint/_run_prospector_on | LDU_FT | [
"<BEGIN>\n## `_custom_argv`",
"Overwrite argv[1:] with argv, restore on exit.\n<END>",
"<BEGIN>\n## `_patched_pep257`",
"Monkey-patch pep257 after imports to avoid info logging.\n<END>",
"<BEGIN>\n## `_stamped_deps`",
"Run func, assumed to have dependencies as its first argument.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_prospector_on API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_prospector_on API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Run prospector on filename, using the specified tools.
This function enables us to run different tools on different
classes of files, which is necessary in the case of tests. | "Run prospector on filename, using the specified tools.\n\n This function enables us to run different tools on different\n classes of files, which is necessary in the case of tests." | 28 | false | polysquare/polysquare-setuptools-lint | _run_prospector_on | 9,108 | |
LDU_FT/quizl/quizler/api_call | LDU_FT | [
"<BEGIN>\n## `get_api_envs`",
"Get required API keys from environment variables.\n<END>",
"<BEGIN>\n## `api_call`",
"Call given API end_point with API keys.\n :param method: HTTP method (e.g. 'get', 'delete').\n :param end_point: API endpoint (e.g. 'users/john/sets').\n :param params: Dictionary to b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_call API.
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 api_call API.
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... | Call given API end_point with API keys.
:param method: HTTP method (e.g. 'get', 'delete').
:param end_point: API endpoint (e.g. 'users/john/sets').
:param params: Dictionary to be sent in the query string (e.g. {'myparam': 'myval'})
:param client_id: Quizlet client ID as string.
:param access_token:... | "Call given API end_point with API keys.\n :param method: HTTP method (e.g. 'get', 'delete').\n :param end_point: API endpoint (e.g. 'users/john/sets').\n :param params: Dictionary to be sent in the query string (e.g. {'myparam': 'myval'})\n :param client_id: Quizlet client ID as string.\n :param access_... | 20 | false | quizl/quizler | api_call | 9,109 | |
LDU_FT/materialsproject/custodian/run | LDU_FT | [
"<BEGIN>\n## `from_spec`",
"Load a Custodian instance where the jobs are specified from a\n structure and a spec dict. This allows simple\n custom job sequences to be constructed quickly via a YAML file.",
" Args:\n spec (dict): A dict specifying job. A sample of the dict in\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Perform the actual QChem run.
Returns:
(subprocess.Popen) Used for monitoring. | "Perform the actual QChem run.\n\n Returns:\n (subprocess.Popen) Used for monitoring." | 90 | false | materialsproject/custodian | run | 9,110 | |
LDU_FT/Equitable/trump/build_tri | LDU_FT | [
"<BEGIN>\n## `create`",
"Create, or get if exists, a Symbol.\r",
" Parameters\r\n ----------\r\n name : str\r\n A symbol's name is a primary key, used across\r\n the Trump ORM.\r\n description : str, optional\r\n An arbitrary string, used to store use... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_tri API.
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 build_tri API.
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... | Looks at each column, and chooses the feed with the most recent data
point. Honours the Trump override/failsafe logic. | "Looks at each column, and chooses the feed with the most recent data\n point. Honours the Trump override/failsafe logic." | 177 | false | Equitable/trump | build_tri | 9,111 | |
LDU_FT/pyviz/geoviews/from_shapefile | LDU_FT | [
"<BEGIN>\n## `coord_to_dimension`",
"Converts an iris coordinate to a HoloViews dimension.\n<END>",
"<BEGIN>\n## `sort_coords`",
"Sorts a list of DimCoords trying to ensure that\n dates and pressure levels appear first and the\n longitude and latitude appear last in the correct\n order.\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_shapefile API.
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 from_shapefile API.
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... | Loads a shapefile from disk and optionally merges
it with a dataset. See ``from_records`` for full
signature.
Parameters
----------
records: list of cartopy.io.shapereader.Record
Iterator containing Records.
dataset: holoviews.Dataset
Any HoloViews ... | "Loads a shapefile from disk and optionally merges\n it with a dataset. See ``from_records`` for full\n signature.\n\n Parameters\n ----------\n records: list of cartopy.io.shapereader.Record\n Iterator containing Records.\n dataset: holoviews.Dataset\n Any ... | 106 | false | pyviz/geoviews | from_shapefile | 9,112 | |
LDU_FT/PyCQA/astroid/repr_tree | LDU_FT | [
"<BEGIN>\n## `_handle_blacklist`",
"remove files/directories in the black list",
" dirnames/filenames are usually from os.walk\n<END>",
"<BEGIN>\n## `load_module_from_name`",
"Load a Python module from its name.",
" :type dotted_name: str\n :param dotted_name: python name of a module or package",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repr_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repr_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 extract... | Get a string representation of the AST from this node.
:param ids: If true, includes the ids with the node type names.
:type ids: bool
:param include_linenos: If true, includes the line numbers and
column offsets.
:type include_linenos: bool
:param ast_state: If tr... | "Get a string representation of the AST from this node.\n\n :param ids: If true, includes the ids with the node type names.\n :type ids: bool\n\n :param include_linenos: If true, includes the line numbers and\n column offsets.\n :type include_linenos: bool\n\n :param ast_st... | 1,051 | true | PyCQA/astroid | repr_tree | 9,113 | |
LDU_FT/uber/doubles/add_allowance | LDU_FT | [
"<BEGIN>\n## `set_value`",
"Set the value of the target.",
" :param obj value: The value to set.\n<END>",
"<BEGIN>\n## `patch_class`",
"Create a new class based on the input_class.",
" :param class input_class: The class to patch.\n :rtype class:\n<END>",
"<BEGIN>\n## `clear`",
"Clears a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_allowance API.
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 add_allowance API.
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... | Adds a new allowance for the method.
:param: tuple caller: A tuple indicating where the method was called
:return: The new ``Allowance``.
:rtype: Allowance | "Adds a new allowance for the method.\n\n :param: tuple caller: A tuple indicating where the method was called\n :return: The new ``Allowance``.\n :rtype: Allowance" | 171 | false | uber/doubles | add_allowance | 9,114 | |
LDU_FT/dossier/dossier.models/emails | LDU_FT | [
"<BEGIN>\n## `run`",
"Generate the report to the given output.",
" :param output: writable file-like object or file path\n<END>",
"<BEGIN>\n## `_generate_report_all`",
"Generate report for all subfolders contained by self.folder_id.\n<END>",
"<BEGIN>\n## `_generate_report_single`",
"Generate repo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emails API.
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 emails API.
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 list of phone numbers without punctuation. | "Returns list of phone numbers without punctuation." | 217 | false | dossier/dossier.models | emails | 9,115 | |
LDU_FT/dfm/celerite/predict | LDU_FT | [
"<BEGIN>\n## `compute`",
"Compute the extended form of the covariance matrix and factorize",
" Args:\n x (array[n]): The independent coordinates of the data points.\n This array must be _sorted_ in ascending order.\n yerr (Optional[float or array[n]]): The measurement... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API.
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 predict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Compute the conditional predictive distribution of the model
You must call :func:`GP.compute` before this method.
Args:
y (array[n]): The observations at coordinates ``x`` from
:func:`GP.compute`.
t (Optional[array[ntest]]): The independent coordinates where the... | "Compute the conditional predictive distribution of the model\n\n You must call :func:`GP.compute` before this method.\n\n Args:\n y (array[n]): The observations at coordinates ``x`` from\n :func:`GP.compute`.\n t (Optional[array[ntest]]): The independent coordinates w... | 64 | false | dfm/celerite | predict | 9,116 | |
LDU_FT/psss/fmf/prune | LDU_FT | [
"<BEGIN>\n## `_initialize`",
"Find metadata tree root, detect format version\n<END>",
"<BEGIN>\n## `update`",
"Update metadata, handle virtual hierarchy\n<END>",
"<BEGIN>\n## `get`",
"Get attribute value or return default",
" Whole data dictionary is returned when no attribute provided.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prune API.
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 prune API.
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... | Filter tree nodes based on given criteria | "Filter tree nodes based on given criteria" | 28 | false | psss/fmf | prune | 9,117 | |
LDU_FT/modin-project/modin/block_widths | LDU_FT | [
"<BEGIN>\n## `_read_sql_with_offset_pandas_on_ray`",
"Use a Ray task to read a chunk of SQL source.",
" Note: Ray functions are not detected by codecov (thus pragma: no cover)\n<END>",
"<BEGIN>\n## `read_sql`",
"Read SQL query or database table into a DataFrame.",
" Args:\n sql: strin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the block_widths API.
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 block_widths API.
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... | Gets the widths of the blocks.
Note: This works with the property structure `_widths_cache` to avoid
having to recompute these values each time they are needed. | "Gets the widths of the blocks.\n\n Note: This works with the property structure `_widths_cache` to avoid\n having to recompute these values each time they are needed." | 811 | false | modin-project/modin | block_widths | 9,118 | |
LDU_FT/zarr-developers/zarr/digest | LDU_FT | [
"<BEGIN>\n## `group`",
"Create a group.",
" Parameters\n ----------\n store : MutableMapping or string, optional\n Store or path to directory in file system.\n overwrite : bool, optional\n If True, delete any pre-existing data in `store` at `path` before\n creating the group.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the digest API.
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 digest API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Compute a checksum for the data. Default uses sha1 for speed.
Examples
--------
>>> import binascii
>>> import zarr
>>> z = zarr.empty(shape=(10000, 10000), chunks=(1000, 1000))
>>> binascii.hexlify(z.digest())
b'041f90bc7a571452af4f850a8ca2c6cddfa8a1ac'
... | "Compute a checksum for the data. Default uses sha1 for speed.\n\n Examples\n --------\n >>> import binascii\n >>> import zarr\n >>> z = zarr.empty(shape=(10000, 10000), chunks=(1000, 1000))\n >>> binascii.hexlify(z.digest())\n b'041f90bc7a571452af4f850a8ca2c6cddfa8a1ac'... | 436 | false | zarr-developers/zarr | digest | 9,119 | |
LDU_FT/paolodragone/pymzn/add_package | LDU_FT | [
"<BEGIN>\n## `minizinc`",
"Coroutine version of the ``pymzn.minizinc`` function.",
" Parameters\n ----------\n max_queue_size : int\n Maximum number of solutions in the queue between the solution parser and\n the returned solution stream. When the queue is full, the solver\n execut... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_package API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_package API.
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... | Adds the given package to the template search routine | "Adds the given package to the template search routine" | 102 | false | paolodragone/pymzn | add_package | 9,120 | |
LDU_FT/google/importlab/get_absolute_name | LDU_FT | [
"<BEGIN>\n## `convert_to_path`",
"Converts \".module\" to \"./module\", \"..module\" to \"../module\", etc.\n<END>",
"<BEGIN>\n## `infer_module_name`",
"Convert a python filename to a module relative to pythonpath.\n<END>",
"<BEGIN>\n## `get_absolute_name`",
"Joins a package name and a relative name.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_absolute_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_absolute_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Joins a package name and a relative name.
Args:
package: A dotted name, e.g. foo.bar.baz
relative_name: A dotted name with possibly some leading dots, e.g. ..x.y
Returns:
The relative name appended to the parent's package, after going up one
level for each leading dot.
e.g.... | "Joins a package name and a relative name.\n\n Args:\n package: A dotted name, e.g. foo.bar.baz\n relative_name: A dotted name with possibly some leading dots, e.g. ..x.y\n\n Returns:\n The relative name appended to the parent's package, after going up one\n level for each leading dot.\n ... | 65 | false | google/importlab | get_absolute_name | 9,121 | |
LDU_FT/nion-software/nionswift/end_data_item_live | LDU_FT | [
"<BEGIN>\n## `get_string`",
"Return a string value that the user enters. Raises exception for cancel.\n<END>",
"<BEGIN>\n## `__accept_reject`",
"Return a boolean value for accept/reject.\n<END>",
"<BEGIN>\n## `item_transaction`",
"Begin transaction state for item.",
" A transaction state is exist... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the end_data_item_live 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 end_data_item_live 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... | Ends a live state for the data item.
The live-ness property is propagated to dependent data items, similar to the transactions.
This method is thread safe. | "Ends a live state for the data item.\n\n The live-ness property is propagated to dependent data items, similar to the transactions.\n\n This method is thread safe." | 690 | false | nion-software/nionswift | end_data_item_live | 9,122 | |
LDU_FT/lsbardel/python-stdnet/update_or_create | LDU_FT | [
"<BEGIN>\n## `load_iterable`",
"Load an ``iterable``.",
" By default it returns a generator of data loaded via the\n :meth:`loads` method.",
" :param iterable: an iterable over data to load.\n :param session: Optional :class:`stdnet.odm.Session`.\n :return: an iterable over ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_or_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_or_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 ... | Update or create a new instance of ``model``.
This method can raise an exception if the ``kwargs`` dictionary
contains field data that does not validate.
:param model: a :class:`StdModel`
:param kwargs: dictionary of parameters.
:returns: A two elements tuple containing ... | "Update or create a new instance of ``model``.\r\n\r\n This method can raise an exception if the ``kwargs`` dictionary\r\n contains field data that does not validate.\r\n\r\n :param model: a :class:`StdModel`\r\n :param kwargs: dictionary of parameters.\r\n :returns: A two elements tu... | 387 | false | lsbardel/python-stdnet | update_or_create | 9,123 | |
LDU_FT/IAMconsortium/pyam/compare | LDU_FT | [
"<BEGIN>\n## `read_ix`",
"Read timeseries data from an ixmp object",
" Parameters\n ----------\n ix: ixmp.TimeSeries or ixmp.Scenario\n this option requires the ixmp package as a dependency\n kwargs: arguments passed to ixmp.TimeSeries.timeseries()\n<END>",
"<BEGIN>\n## `requires_package`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare API.
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 compare API.
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... | Compare the data in two IamDataFrames and return a pd.DataFrame
Parameters
----------
left, right: IamDataFrames
the IamDataFrames to be compared
left_label, right_label: str, default `left`, `right`
column names of the returned dataframe
drop_close: bool, default True
remov... | "Compare the data in two IamDataFrames and return a pd.DataFrame\n\n Parameters\n ----------\n left, right: IamDataFrames\n the IamDataFrames to be compared\n left_label, right_label: str, default `left`, `right`\n column names of the returned dataframe\n drop_close: bool, default True\n ... | 256 | false | IAMconsortium/pyam | compare | 9,124 | |
LDU_FT/quantopian/empyrical/down_capture | LDU_FT | [
"<BEGIN>\n## `_adjust_returns`",
"Returns the returns series adjusted by adjustment_factor. Optimizes for the\n case of adjustment_factor being 0 by returning returns itself, not a copy!",
" Parameters\n ----------\n returns : pd.Series or np.ndarray\n adjustment_factor : pd.Series or np.ndarray ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the down_capture API.
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 down_capture API.
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... | Compute the capture ratio for periods when the benchmark return is negative
Parameters
----------
returns : pd.Series or np.ndarray
Returns of the strategy, noncumulative.
- See full explanation in :func:`~empyrical.stats.cum_returns`.
factor_returns : pd.Series or np.ndarray
No... | "Compute the capture ratio for periods when the benchmark return is negative\n\n Parameters\n ----------\n returns : pd.Series or np.ndarray\n Returns of the strategy, noncumulative.\n - See full explanation in :func:`~empyrical.stats.cum_returns`.\n factor_returns : pd.Series or np.ndarray\n ... | 253 | false | quantopian/empyrical | down_capture | 9,125 | |
LDU_FT/django-treebeard/django-treebeard/get_descendants_group_count | LDU_FT | [
"<BEGIN>\n## `get_foreign_keys`",
"Get foreign keys and models they refer to, so we can pre-process\n the data for load_bulk\n<END>",
"<BEGIN>\n## `_process_foreign_keys`",
"For each foreign key try to load the actual object so load_bulk\n doesn't fail trying to load an int where django expects ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_descendants_group_count API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_descendants_group_count API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Helper for a very common case: get a group of siblings and the number
of *descendants* (not only children) in every sibling.
:param parent:
The parent of the siblings to return. If no parent is given, the
root nodes will be returned.
:returns:
A `list` (**... | "Helper for a very common case: get a group of siblings and the number\n of *descendants* (not only children) in every sibling.\n\n :param parent:\n\n The parent of the siblings to return. If no parent is given, the\n root nodes will be returned.\n\n :returns:\n\n A... | 194 | false | django-treebeard/django-treebeard | get_descendants_group_count | 9,126 | |
LDU_FT/stuaxo/vext/init_path | LDU_FT | [
"<BEGIN>\n## `do_enable`",
"Uncomment any lines that start with #import in the .pth file\n<END>",
"<BEGIN>\n## `do_disable`",
"Comment any lines that start with import in the .pth file\n<END>",
"<BEGIN>\n## `do_check`",
"Attempt to import everything in the 'test-imports' section of specified\n vext_fil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_path API.
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 init_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Add any new modules that are directories to the PATH | "Add any new modules that are directories to the PATH" | 64 | false | stuaxo/vext | init_path | 9,127 | |
LDU_FT/scott-maddox/openbandparams/get_parameter | LDU_FT | [
"<BEGIN>\n## `GaP_Eg_Gamma`",
"Returns the Gamma-valley bandgap, Eg_Gamma, in electron Volts at a\n given temperature, T, in Kelvin (default: 300 K).",
" GaP has a unique Gamma-gap temperature dependence.\n<END>",
"<BEGIN>\n## `_has_x`",
"Returns True if x is explicitly defined in kwargs\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parameter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parameter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns the named parameter if present, or the value of `default`,
otherwise. | "Returns the named parameter if present, or the value of `default`,\n otherwise." | 68 | false | scott-maddox/openbandparams | get_parameter | 9,128 | |
LDU_FT/RJT1990/pyflux/full_neg_loglik | LDU_FT | [
"<BEGIN>\n## `_get_scale_and_shape`",
"Obtains model scale, shape and skewness latent variables",
" Parameters\n ----------\n transformed_lvs : np.array\n Transformed latent variable vector",
" Returns\n ----------\n - Tuple of model scale, model shape, mod... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_neg_loglik API.
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 full_neg_loglik API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Creates the negative log marginal likelihood of the model
Parameters
----------
beta : np.array
Contains untransformed starting values for latent variables
Returns
----------
The negative log marginal logliklihood of the model | "Creates the negative log marginal likelihood of the model\n \n Parameters\n ----------\n beta : np.array\n Contains untransformed starting values for latent variables\n \n Returns\n ----------\n The negative log marginal logliklihood of the model" | 1,462 | true | RJT1990/pyflux | full_neg_loglik | 9,129 | |
LDU_FT/michaeljohnbarr/django-timezone-utils/to_python | LDU_FT | [
"<BEGIN>\n## `get_choices`",
"Retrieves timezone choices from any iterable (normally pytz).\n<END>",
"<BEGIN>\n## `validate`",
"Validates value and throws ValidationError. Subclasses should override\n this to provide validation logic.\n<END>",
"<BEGIN>\n## `get_prep_value`",
"Converts timezone inst... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_python API.
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 to_python API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Returns a datetime.tzinfo instance for the value. | "Returns a datetime.tzinfo instance for the value." | 28 | false | michaeljohnbarr/django-timezone-utils | to_python | 9,130 | |
LDU_FT/joshspeagle/dynesty/_get_nsamps_samples_n | LDU_FT | [
"<BEGIN>\n## `runplot`",
"Plot live points, ln(likelihood), ln(weight), and ln(evidence)\n as a function of ln(prior volume).",
" Parameters\n ----------\n results : :class:`~dynesty.results.Results` instance\n A :class:`~dynesty.results.Results` instance from a nested\n sampling run."... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_nsamps_samples_n 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_nsamps_samples_n API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Helper function for calculating the number of samples
Parameters
----------
res : :class:`~dynesty.results.Results` instance
The :class:`~dynesty.results.Results` instance taken from a previous
nested sampling run.
Returns
-------
nsamps: int
The total number of samples... | "Helper function for calculating the number of samples\n\n Parameters\n ----------\n res : :class:`~dynesty.results.Results` instance\n The :class:`~dynesty.results.Results` instance taken from a previous\n nested sampling run.\n\n Returns\n -------\n nsamps: int\n The total numbe... | 709 | false | joshspeagle/dynesty | _get_nsamps_samples_n | 9,131 | |
LDU_FT/projecthamster/hamster/get_matrix | 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 get_matrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_matrix API.
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 sprite's current transformation matrix | "return sprite's current transformation matrix" | 249 | false | projecthamster/hamster | get_matrix | 9,132 | |
LDU_FT/brutasse/rache/job_details | LDU_FT | [
"<BEGIN>\n## `job_details`",
"Returns the job data with its scheduled timestamp.",
" :param job_id: the ID of the job to retrieve.\n<END>",
"<BEGIN>\n## `schedule_job`",
"Schedules a job.",
" :param job_id: unique identifier for this job\n :param schedule_in: number of seconds from now in which t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extra... | Returns the job data with its scheduled timestamp.
:param job_id: the ID of the job to retrieve. | "Returns the job data with its scheduled timestamp.\n\n :param job_id: the ID of the job to retrieve." | 18 | false | brutasse/rache | job_details | 9,133 | |
LDU_FT/binarydud/pyres/safe_str_to_class | LDU_FT | [
"<BEGIN>\n## `perform`",
"This method converts payload into args and calls the ``perform``\n method on the payload class.",
" Before calling ``perform``, a ``before_perform`` class method\n is called, if it exists. It takes a dictionary as an argument;\n currently the only things st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_str_to_class API.
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 safe_str_to_class API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Helper function to map string class names to module classes. | "Helper function to map string class names to module classes." | 35 | false | binarydud/pyres | safe_str_to_class | 9,134 | |
LDU_FT/plaid/plaid-python/get | LDU_FT | [
"<BEGIN>\n## `create`",
"Generate a public token for sandbox testing.",
" :param str institution_id:",
" :param [str] initial_products:",
" :param str webhook:\n<END>",
"<BEGIN>\n## `get`",
"Return accounts and transactions for an item.\n (`HTTP docs <https://pla... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Retrieve account and routing numbers for checking and savings accounts.
(`HTTP docs <https://plaid.com/docs/api/#auth>`__)
:param str access_token:
:param [str] account_ids: A list of account_ids to retrieve for
the item. Optional. | "Retrieve account and routing numbers for checking and savings accounts.\n (`HTTP docs <https://plaid.com/docs/api/#auth>`__)\n\n :param str access_token:\n :param [str] account_ids: A list of account_ids to retrieve for\n the item. Optional." | 36 | false | plaid/plaid-python | get | 9,135 | |
LDU_FT/wroberts/pygermanet/warn_attribs | LDU_FT | [
"<BEGIN>\n## `load_germanet`",
"Loads a GermaNet instance connected to the given MongoDB instance.",
" Arguments:\n - `host`: the hostname of the MongoDB instance\n - `port`: the port number of the MongoDB instance\n - `database_name`: the name of the GermaNet database on the\n MongoDB instance... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the warn_attribs API.
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 warn_attribs API.
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... | Error checking of XML input: check that the given node has certain
required attributes, and does not have any unrecognised
attributes.
Arguments:
- `loc`: a string with some information about the location of the
error in the XML file
- `node`: the node to check
- `recognised_attribs`: a s... | "Error checking of XML input: check that the given node has certain\n required attributes, and does not have any unrecognised\n attributes.\n\n Arguments:\n - `loc`: a string with some information about the location of the\n error in the XML file\n - `node`: the node to check\n - `recognised_attr... | 61 | false | wroberts/pygermanet | warn_attribs | 9,136 | |
LDU_FT/CEA-COSMIC/ModOpt/_op_method | LDU_FT | [
"<BEGIN>\n## `add_args_kwargs`",
"Add Args and Kwargs",
" This wrapper adds support for additional arguments and keyword arguments to\n any callable function",
" Parameters\n ----------\n func : function\n Callable function",
" Returns\n -------\n function wrapper\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _op_method API.
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 _op_method API.
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... | Operator
This method returns the input data after the singular values have been
thresholded
Parameters
----------
data : np.ndarray
Input data array
extra_factor : float
Additional multiplication factor
Returns
-------
np... | "Operator\n\n This method returns the input data after the singular values have been\n thresholded\n\n Parameters\n ----------\n data : np.ndarray\n Input data array\n extra_factor : float\n Additional multiplication factor\n\n Returns\n ----... | 565 | false | CEA-COSMIC/ModOpt | _op_method | 9,137 | |
LDU_FT/mfitzp/padua/comparedist | LDU_FT | [
"<BEGIN>\n## `remove_rows_matching`",
"Return a ``DataFrame`` with rows where `column` values match `match` are removed.",
" The selected `column` series of values from the supplied Pandas ``DataFrame`` is compared\n to `match`, and those rows that match are removed from the DataFrame.",
" :param df:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the comparedist API.
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 comparedist API.
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... | Compare the distributions of two DataFrames giving visualisations of:
- individual and combined distributions
- distribution of non-common values
- distribution of non-common values vs. each side
Plot distribution as area (fill_between) + mean, median vertical bars.
:param df1: `pandas.DataFram... | "Compare the distributions of two DataFrames giving visualisations of:\n - individual and combined distributions\n - distribution of non-common values\n - distribution of non-common values vs. each side\n\n Plot distribution as area (fill_between) + mean, median vertical bars.\n\n :param df1: `pandas.... | 266 | false | mfitzp/padua | comparedist | 9,138 | |
LDU_FT/b3j0f/utils/put | LDU_FT | [
"<BEGIN>\n## `find_ctx`",
"Get the right ctx related to input elt.",
" In order to keep safe memory as much as possible, it is important to find\n the right context element. For example, instead of putting properties on\n a function at the level of an instance, it is important to save such\n propert... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API.
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 put API.
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... | Decorator dedicated to put properties on an element. | "Decorator dedicated to put properties on an element." | 169 | false | b3j0f/utils | put | 9,139 | |
LDU_FT/lmcinnes/umap/transform | LDU_FT | [
"<BEGIN>\n## `tau_rand_int`",
"A fast (pseudo)-random number generator.",
" Parameters\n ----------\n state: array of int64, shape (3,)\n The internal state of the rng",
" Returns\n -------\n A (pseudo)-random int32 value\n<END>",
"<BEGIN>\n## `norm`",
"Compute the (standard l2) n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API.
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 transform API.
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... | Transform X into the existing embedded space and return that
transformed output.
Parameters
----------
X : array, shape (n_samples, n_features)
New data to be transformed.
Returns
-------
X_new : array, shape (n_samples, n_components)
Emb... | "Transform X into the existing embedded space and return that\n transformed output.\n\n Parameters\n ----------\n X : array, shape (n_samples, n_features)\n New data to be transformed.\n\n Returns\n -------\n X_new : array, shape (n_samples, n_components)\n ... | 255 | false | lmcinnes/umap | transform | 9,140 | |
LDU_FT/koszullab/instaGRAAL/calc_cov_x | LDU_FT | [
"<BEGIN>\n## `estimate_parameters_rippe`",
"estimation by least square optimization of Rippe parameters on the\n experimental data\n :param max_dist_kb:\n :param size_bin_kb:\n<END>",
"<BEGIN>\n## `estimate_parameters`",
"estimation by least square optimization of Rippe parameters on the\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_cov_x API.
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 calc_cov_x API.
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... | Calculate cov_x from fjac, ipvt and p as is done in leastsq | "Calculate cov_x from fjac, ipvt and p as is done in leastsq" | 116 | false | koszullab/instaGRAAL | calc_cov_x | 9,141 | |
LDU_FT/sosreport/sos/collect_iptable | LDU_FT | [
"<BEGIN>\n## `build_query_cmd`",
"Builds the command needed to invoke the pgsql query as the postgres\n user.\n The query requires significant quoting work to satisfy both the\n shell and postgres parsing requirements. Note that this will generate\n a large amount of quoting in sos log... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_iptable API.
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 collect_iptable API.
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... | When running the iptables command, it unfortunately auto-loads
the modules before trying to get output. Some people explicitly
don't want this, so check if the modules are loaded before running
the command. If they aren't loaded, there can't possibly be any
relevant rules in that table | "When running the iptables command, it unfortunately auto-loads\n the modules before trying to get output. Some people explicitly\n don't want this, so check if the modules are loaded before running\n the command. If they aren't loaded, there can't possibly be any\n relevant rules in that ... | 286 | false | sosreport/sos | collect_iptable | 9,142 | |
LDU_FT/Duke-GCB/DukeDSClient/register_list_command | LDU_FT | [
"<BEGIN>\n## `_create_parser`",
"Create a parser hooking up the command methods below to be run when chosen.\n :return: CommandParser parser with commands attached.\n<END>",
"<BEGIN>\n## `_check_pypi_version`",
"When the version is out of date or we have trouble retrieving it print a error to stderr an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_list_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_list_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.
... | Add 'list' command to get a list of projects or details about one project.
:param list_func: function: run when user choses this option. | "Add 'list' command to get a list of projects or details about one project.\n :param list_func: function: run when user choses this option." | 440 | false | Duke-GCB/DukeDSClient | register_list_command | 9,143 | |
LDU_FT/cisco-sas/kitty/get_model_info | LDU_FT | [
"<BEGIN>\n## `update`",
"update db entry",
" :param field_dict: dictionary of fields and values\n :param where_clause: where clause for the update\n<END>",
"<BEGIN>\n## `insert`",
"insert new db entry",
" :param fields: list of fields to insert\n :param values: list of values t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_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 ex... | :return: dictionary of information about this model | ":return: dictionary of information about this model" | 331 | false | cisco-sas/kitty | get_model_info | 9,144 | |
LDU_FT/davidrpugh/pyCollocation/_basis_spline_factory | LDU_FT | [
"<BEGIN>\n## `_basis_spline_factory`",
"Return a B-Spline given some coefficients.\n<END>",
"<BEGIN>\n## `derivatives_factory`",
"Given some coefficients, return a the derivative of a B-spline.\n<END>",
"<BEGIN>\n## `functions_factory`",
"Given some coefficients, return a B-spline.\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _basis_spline_factory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _basis_spline_factory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Return a B-Spline given some coefficients. | "Return a B-Spline given some coefficients." | 44 | false | davidrpugh/pyCollocation | _basis_spline_factory | 9,145 | |
LDU_FT/spoqa/tsukkomi/check_return | LDU_FT | [
"<BEGIN>\n## `check_type`",
"Check given ``value``'s type.",
" :param value: given argument\n :param hint: expected type of given ``value``.\n as like :mod:`typing` interprets, :const:`None` is interpreted\n as :class:`types.NoneType`\n :type hint: :class:`typing.Optiona... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_return API.
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_return API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Check return type, raise :class:`TypeError` if return type is not
expected type.
:param str callable_name: callable name of :func:`~.typechecked` checked
:param r: returned result
:param hints: assumed type of given ``r`` | "Check return type, raise :class:`TypeError` if return type is not\n expected type.\n\n :param str callable_name: callable name of :func:`~.typechecked` checked\n :param r: returned result\n :param hints: assumed type of given ``r``" | 26 | false | spoqa/tsukkomi | check_return | 9,146 | |
LDU_FT/tkf/rash/join | LDU_FT | [
"<BEGIN>\n## `concat_expr`",
"Concatenate `conditions` with `operator` and wrap it by ().",
" It returns a string in a list or empty list, if `conditions` is empty.\n<END>",
"<BEGIN>\n## `join`",
"Join `source`.",
" >>> sc = SQLConstructor('main', ['c1', 'c2'])\n >>> sc.join('sub', 'JOIN'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Join `source`.
>>> sc = SQLConstructor('main', ['c1', 'c2'])
>>> sc.join('sub', 'JOIN', 'main.id = sub.id')
>>> (sql, params, keys) = sc.compile()
>>> sql
'SELECT c1, c2 FROM main JOIN sub ON main.id = sub.id'
It is possible to pass another `SQLConstructor` as a source.... | "Join `source`.\n\n >>> sc = SQLConstructor('main', ['c1', 'c2'])\n >>> sc.join('sub', 'JOIN', 'main.id = sub.id')\n >>> (sql, params, keys) = sc.compile()\n >>> sql\n 'SELECT c1, c2 FROM main JOIN sub ON main.id = sub.id'\n\n It is possible to pass another `SQLConstructor` as ... | 142 | false | tkf/rash | join | 9,147 | |
LDU_FT/pymoca/pymoca/plot | LDU_FT | [
"<BEGIN>\n## `call`",
"Convenience method for calling methods with walker.\n<END>",
"<BEGIN>\n## `der`",
"Get the derivative of the variable, create it if it doesn't exist.\n<END>",
"<BEGIN>\n## `log`",
"Convenience function for printing indenting debug output.\n<END>",
"<BEGIN>\n## `flatten_component_r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API.
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 plot API.
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... | Plot simulation data.
:data: A dictionary of arrays.
:fields: A list of variables you want to plot (e.g. ['x', y', 'c']) | "Plot simulation data.\n :data: A dictionary of arrays.\n :fields: A list of variables you want to plot (e.g. ['x', y', 'c'])" | 61 | false | pymoca/pymoca | plot | 9,148 | |
LDU_FT/cole/aiosmtplib/execute_command | LDU_FT | [
"<BEGIN>\n## `connection_made`",
"Modified ``connection_made`` that supports upgrading our transport in\n place using STARTTLS.",
" We set the _transport directly on the StreamReader, rather than calling\n set_transport (which will raise an AssertionError on upgrade).\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_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 e... | Sends an SMTP command along with any args to the server, and returns
a response. | "Sends an SMTP command along with any args to the server, and returns\n a response." | 142 | false | cole/aiosmtplib | execute_command | 9,149 | |
LDU_FT/bcb/jsonrpcclient/parse | LDU_FT | [
"<BEGIN>\n## `sort_response`",
"Sort the keys in a JSON-RPC response object.",
" This has no effect other than making it nicer to read. Useful in Python 3.5 only,\n dictionaries are already sorted in newer Python versions.",
" Example::",
" >>> json.dumps(sort_response({'id': 2, 'result': 5,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Parses response text, returning JSONRPCResponse objects.
Args:
response_text: JSON-RPC response string.
batch: If the response_text is an empty string, this determines how to parse.
validate_against_schema: Validate against the json-rpc schema.
Returns:
Either a JSONRPCResponse... | "Parses response text, returning JSONRPCResponse objects.\n\n Args:\n response_text: JSON-RPC response string.\n batch: If the response_text is an empty string, this determines how to parse.\n validate_against_schema: Validate against the json-rpc schema.\n\n Returns:\n Either a JSONRP... | 73 | false | bcb/jsonrpcclient | parse | 9,150 | |
LDU_FT/PyThaiNLP/pythainlp/thai_to_eng | LDU_FT | [
"<BEGIN>\n## `spell`",
":param str word: word to check spelling\n :param str engine:\n * pn - Peter Norvig's algorithm (default)\n :return: list of words\n<END>",
"<BEGIN>\n## `get_corpus`",
"Read corpus from file and return a frozenset",
" :param string filename: file corpus\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the thai_to_eng API.
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 thai_to_eng API.
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... | Correct text in one language that is incorrectly-typed with a keyboard layout in another language. (type Thai with English keyboard)
:param str text: Incorrect input (type English with Thai keyboard)
:return: English text | "Correct text in one language that is incorrectly-typed with a keyboard layout in another language. (type Thai with English keyboard)\n\n :param str text: Incorrect input (type English with Thai keyboard)\n :return: English text" | 190 | false | PyThaiNLP/pythainlp | thai_to_eng | 9,151 | |
LDU_FT/PyCQA/pyflakes/isDocstring | LDU_FT | [
"<BEGIN>\n## `syntaxError`",
"There was a syntax error in C{filename}.",
" @param filename: The path to the file with the syntax error.\n @ptype filename: C{unicode}\n @param msg: An explanation of the syntax error.\n @ptype msg: C{unicode}\n @param lineno: The line number whe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isDocstring API.
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 isDocstring API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Determine if the given node is a docstring, as long as it is at the
correct place in the node tree. | "Determine if the given node is a docstring, as long as it is at the\n correct place in the node tree." | 54 | false | PyCQA/pyflakes | isDocstring | 9,152 | |
LDU_FT/Unidata/MetPy/geodesic | LDU_FT | [
"<BEGIN>\n## `warn_deprecated`",
"Display deprecation warning in a standard way.",
" Parameters\n ----------\n since : str\n The release at which this API became deprecated.",
" message : str, optional\n Override the default deprecation message. The format\n specifier `%(name... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the geodesic API.
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 geodesic API.
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... | r"""Construct a geodesic path between two points.
This function acts as a wrapper for the geodesic construction available in `pyproj`.
Parameters
----------
crs: `cartopy.crs`
Cartopy Coordinate Reference System to use for the output
start: (2, ) array_like
A latitude-longitude pai... | "r\"\"\"Construct a geodesic path between two points.\n\n This function acts as a wrapper for the geodesic construction available in `pyproj`.\n\n Parameters\n ----------\n crs: `cartopy.crs`\n Cartopy Coordinate Reference System to use for the output\n start: (2, ) array_like\n A latitude-... | 1,193 | true | Unidata/MetPy | geodesic | 9,153 | |
LDU_FT/deepmind/sonnet/train | LDU_FT | [
"<BEGIN>\n## `generate_code`",
"Generates code samples.",
" Args:\n max_length: int. max literal length.\n max_nest: int. max nesting level.\n ops: CodeOp. set of allowable operations.",
" Returns:\n 1. (str) output value.\n 2. (str) Code operation.\n<END>",
"<BEGIN>\n## `get_tokens`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the train API.
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 train API.
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... | Trains a deep LSTM model on the Tiny Shakespeare dataset. | "Trains a deep LSTM model on the Tiny Shakespeare dataset." | 937 | false | deepmind/sonnet | train | 9,154 | |
LDU_FT/trehn/termdown/format_seconds | LDU_FT | [
"<BEGIN>\n## `format_seconds`",
"Returns a human-readable string representation of the given amount\n of seconds.\n<END>",
"<BEGIN>\n## `graceful_ctrlc`",
"Makes the decorated function exit with code 1 on CTRL+C.\n<END>",
"<BEGIN>\n## `pad_to_size`",
"Adds whitespace to text to center it within a frame... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_seconds API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_seconds API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns a human-readable string representation of the given amount
of seconds. | "Returns a human-readable string representation of the given amount\n of seconds." | 12 | false | trehn/termdown | format_seconds | 9,155 | |
LDU_FT/geopy/geopy/_parse_place | LDU_FT | [
"<BEGIN>\n## `_construct_url`",
"Construct geocoding request url. Overridden.",
" :param str base_api: Geocoding function base address - self.api\n or self.reverse_api.",
" :param dict params: Geocoding params.",
" :return: string URL.\n<END>",
"<BEGIN>\n## `geocode`",
"R... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_place API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_place API.
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... | Get the location, lat, lng and place from a single json place. | "Get the location, lat, lng and place from a single json place." | 405 | false | geopy/geopy | _parse_place | 9,156 | |
LDU_FT/bpsmith/tia/dmi | LDU_FT | [
"<BEGIN>\n## `sma`",
"If n is 0 then return the ltd mean; else return the n day mean\n<END>",
"<BEGIN>\n## `true_range`",
"http://en.wikipedia.org/wiki/Average_true_range\n The greatest of the following:\n - Current High less the current Low\n - Current High less the previous Close (absolute value)\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dmi API.
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 dmi API.
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... | Return the dmi+, dmi-, Average directional index
( http://en.wikipedia.org/wiki/Average_Directional_Index )
TODO - break up calcuat | "Return the dmi+, dmi-, Average directional index\n ( http://en.wikipedia.org/wiki/Average_Directional_Index )\n TODO - break up calcuat" | 226 | false | bpsmith/tia | dmi | 9,157 | |
LDU_FT/benedictpaten/sonLib/fastaReadHeaders | LDU_FT | [
"<BEGIN>\n## `linOriginRegression`",
"computes a linear regression starting at zero\n<END>",
"<BEGIN>\n## `close`",
"check two float values are within a bound of one another\n<END>",
"<BEGIN>\n## `filterOverlappingAlignments`",
"Filter alignments to be non-overlapping.\n<END>",
"<BEGIN>\n## `binaryTree_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fastaReadHeaders API.
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 fastaReadHeaders API.
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 list of fasta header lines, excluding | "Returns a list of fasta header lines, excluding" | 80 | false | benedictpaten/sonLib | fastaReadHeaders | 9,158 | |
LDU_FT/ModisWorks/modis/download_next_song_cache | LDU_FT | [
"<BEGIN>\n## `success`",
"Creates an embed UI containing a hex color message",
" Args:\n channel (discord.Channel): The Discord channel to bind the embed to\n image (str): The url of the image to add\n hex_str (str): The hex value",
" Returns:\n ui (ui_embed.UI): The embed UI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_next_song_cache 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 download_next_song_cache API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Downloads the next song in the queue to the cache | "Downloads the next song in the queue to the cache" | 278 | false | ModisWorks/modis | download_next_song_cache | 9,159 | |
LDU_FT/warner/magic-wormhole/receive | LDU_FT | [
"<BEGIN>\n## `receive`",
"I implement 'wormhole receive'. I return a Deferred that fires with\n None (for success), or signals one of the following errors:\n * WrongPasswordError: the two sides didn't use matching passwords\n * Timeout: something didn't happen fast enough for our tastes\n * TransferEr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receive API.
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 receive API.
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... | Receive a text message, file, or directory (from 'wormhole send') | "Receive a text message, file, or directory (from 'wormhole send')" | 36 | false | warner/magic-wormhole | receive | 9,160 | |
LDU_FT/sublee/etc/canonicalize | LDU_FT | [
"<BEGIN>\n## `registry`",
"Generates a meta class to index sub classes by their keys.\n<END>",
"<BEGIN>\n## `refresh`",
"Sets only a TTL of a key. The waiters doesn't receive notification\n by this operation.\n<END>",
"<BEGIN>\n## `append`",
"Creates a new automatically increasing key in the given... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the canonicalize API.
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 canonicalize API.
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 canonical :class:`etc.Node` object from this mock node. | "Generates a canonical :class:`etc.Node` object from this mock node." | 24 | false | sublee/etc | canonicalize | 9,161 | |
LDU_FT/adamreeve/npTDMS/group_channels | LDU_FT | [
"<BEGIN>\n## `to_file`",
"Wrapper around ndarray.tofile to support any file-like object\n<END>",
"<BEGIN>\n## `write_segment`",
"Write a segment of data to a TDMS file",
" :param objects: A list of TdmsObject instances to write\n<END>",
"<BEGIN>\n## `fromfile`",
"Wrapper around np.fromfile to sup... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_channels API.
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 group_channels API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns a list of channel objects for the given group
:param group: Name of the group to get channels for.
:rtype: List of :class:`TdmsObject` objects. | "Returns a list of channel objects for the given group\n\n :param group: Name of the group to get channels for.\n :rtype: List of :class:`TdmsObject` objects." | 65 | false | adamreeve/npTDMS | group_channels | 9,162 | |
LDU_FT/mithro/python-datetime-tz/utcnow | LDU_FT | [
"<BEGIN>\n## `_tzinfome`",
"Gets a tzinfo object from a string.",
" Args:\n tzinfo: A string (or string like) object, or a datetime.tzinfo object.",
" Returns:\n An datetime.tzinfo object.",
" Raises:\n UnknownTimeZoneError: If the timezone given can't be decoded.\n<END>",
"<BEGIN>\n## `locali... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the utcnow API.
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 utcnow API.
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 a new datetime representing UTC day and time. | "Return a new datetime representing UTC day and time." | 89 | false | mithro/python-datetime-tz | utcnow | 9,163 | |
LDU_FT/sphinx-gallery/sphinx-gallery/save_notebook | LDU_FT | [
"<BEGIN>\n## `extract_object_names_from_docs`",
"Add matches from the text blocks (must be full names!)\n<END>",
"<BEGIN>\n## `identify_names`",
"Builds a codeobj summary by identifying and resolving used names.\n<END>",
"<BEGIN>\n## `scan_used_functions`",
"save variables so we can later add links to the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_notebook API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_notebook API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Saves the Jupyter work_notebook to write_file | "Saves the Jupyter work_notebook to write_file" | 169 | false | sphinx-gallery/sphinx-gallery | save_notebook | 9,164 | |
LDU_FT/robotframework/Rammbock/conditional | LDU_FT | [
"<BEGIN>\n## `log_background_messages`",
"Forwards messages logged on background to Robot Framework log.",
" By default forwards all messages logged by all threads, but can be\n limited to a certain thread by passing thread's name as an argument.",
" Logged messages are removed from the m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the conditional API.
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 conditional API.
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... | Defines a 'condition' when conditional element of 'name' exists if `condition` is true.
`condition` can contain multiple conditions combined together using Logical Expressions(&&,||).
Example:
| Conditional | mycondition == 1 | foo |
| u8 | myelement | 42 |
| End conditional ... | "Defines a 'condition' when conditional element of 'name' exists if `condition` is true.\n\n `condition` can contain multiple conditions combined together using Logical Expressions(&&,||).\n\n Example:\n | Conditional | mycondition == 1 | foo |\n | u8 | myelement | 42 |\n | End cond... | 234 | false | robotframework/Rammbock | conditional | 9,165 | |
LDU_FT/textX/textX/metamodel_from_str | LDU_FT | [
"<BEGIN>\n## `needs_to_be_resolved`",
"This function determines, if a reference (CrossReference) needs to be\n resolved or not (while creating the model, while resolving references).",
" Args:\n parent_obj: the object containing the attribute to be resolved.\n attr_name: the attribute identi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metamodel_from_str 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 metamodel_from_str 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... | Creates a new metamodel from the textX description given as a string.
Args:
lang_desc(str): A textX language description.
metamodel(TextXMetaModel): A metamodel that should be used.
other params: See TextXMetaModel. | "Creates a new metamodel from the textX description given as a string.\n\n Args:\n lang_desc(str): A textX language description.\n metamodel(TextXMetaModel): A metamodel that should be used.\n other params: See TextXMetaModel." | 140 | false | textX/textX | metamodel_from_str | 9,166 | |
LDU_FT/python-diamond/Diamond/get_default_config | LDU_FT | [
"<BEGIN>\n## `utc_to_local`",
":param utc_dt: datetime in UTC\n :return: datetime in the local timezone\n<END>",
"<BEGIN>\n## `get_zones`",
":param auth_kwargs:\n :param region: region to get the availability zones for\n :return: list of availability zones\n<END>",
"<BEGIN>\n## `publish_delayed_met... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Return the default config for the handler | "Return the default config for the handler" | 454 | false | python-diamond/Diamond | get_default_config | 9,167 | |
LDU_FT/Spinmob/spinmob/set_column_stretch | LDU_FT | [
"<BEGIN>\n## `get_data`",
"Currently pretends to talk to an instrument and get back the magnitud\n and phase of the measurement.\n<END>",
"<BEGIN>\n## `Set`",
"Sets the key-value pair and dumps to the preferences file.\n<END>",
"<BEGIN>\n## `MakeDir`",
"Creates a directory of the specified path in the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_column_stretch 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 set_column_stretch 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... | Sets the column stretch. Larger numbers mean it will expand more to
fill space. | "Sets the column stretch. Larger numbers mean it will expand more to\n fill space." | 745 | false | Spinmob/spinmob | set_column_stretch | 9,168 | |
LDU_FT/ucsb-cs-education/hairball/analyze | LDU_FT | [
"<BEGIN>\n## `main`",
"The entrypoint for the hairball command installed via setup.py.\n<END>",
"<BEGIN>\n## `path_to_key`",
"Return the sha1sum (key) belonging to the file at filepath.\n<END>",
"<BEGIN>\n## `key_to_path`",
"Return the fullpath to the file with sha1sum key.\n<END>",
"<BEGIN>\n## `load`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze API.
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 analyze API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Run and return the results of the VariableInitialization plugin. | "Run and return the results of the VariableInitialization plugin." | 90 | false | ucsb-cs-education/hairball | analyze | 9,169 | |
LDU_FT/rauenzi/discordbot.py/format | LDU_FT | [
"<BEGIN>\n## `stop_pages`",
"stops the interactive pagination session\n<END>",
"<BEGIN>\n## `paginate`",
"Actually paginate the entries and run the interactive loop if necessary.\n<END>",
"<BEGIN>\n## `_do`",
"Repeats a command a specified number of times.\n<END>",
"<BEGIN>\n## `disable`",
"Disables a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API.
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 format API.
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 ... | Handles the actual behaviour involved with formatting.
To change the behaviour, this method should be overridden.
Returns
--------
list
A paginated output of the help command. | "Handles the actual behaviour involved with formatting.\n To change the behaviour, this method should be overridden.\n Returns\n --------\n list\n A paginated output of the help command." | 52 | false | rauenzi/discordbot.py | format | 9,170 | |
LDU_FT/NoviceLive/pat/from_chars | LDU_FT | [
"<BEGIN>\n## `main`",
"Customizable Lazy Exploit Pattern Utility.\n<END>",
"<BEGIN>\n## `from_chars`",
"Construct a Pat object from the specified string\n and optimal position count.\n<END>",
"<BEGIN>\n## `create`",
"Create a pattern of the specified length.\n<END>",
"<BEGIN>\n## `most_even_chunk... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_chars API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_chars API.
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... | Construct a Pat object from the specified string
and optimal position count. | "Construct a Pat object from the specified string\n and optimal position count." | 10 | false | NoviceLive/pat | from_chars | 9,171 | |
LDU_FT/heikomuller/sco-client/update_state_error | LDU_FT | [
"<BEGIN>\n## `download_file`",
"Download attached file as temporary file.",
" Parameters\n ----------\n url : string\n SCO-API download Url\n suffix : string, optional\n If suffix is specified, the name of the downloaded file will end with\n that suffix, otherwise there will be ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_state_error 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 update_state_error 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... | Update the state of the model run to 'FAILED'. Expects a list of
error messages.
Raises an exception if update fails or resource is unknown.
Parameters
----------
errors : List(string)
List of error messages
Returns
-------
ModelRunHandle
... | "Update the state of the model run to 'FAILED'. Expects a list of\n error messages.\n\n Raises an exception if update fails or resource is unknown.\n\n Parameters\n ----------\n errors : List(string)\n List of error messages\n\n Returns\n -------\n Mode... | 164 | false | heikomuller/sco-client | update_state_error | 9,172 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.