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/MycroftAI/adapt/bronk | LDU_FT | [
"<BEGIN>\n## `lookup`",
"TODO: Implement trie lookup with edit distance",
" Args:\n iterable(list?): key used to find what is requested this could\n be a generator.\n index(int): index of what is requested\n gather(bool): of weather to gather or not\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bronk API.
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 bronk API.
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... | This is used to fine cliques and remove them from graph
Args:
graph (graph): this is the graph of verticies to search for
cliques
p (list): this is a list of the verticies to search
r (list): used by bronk for the search
x (list): used by bronk for the search
Yields... | "This is used to fine cliques and remove them from graph\n\n Args:\n graph (graph): this is the graph of verticies to search for\n cliques\n p (list): this is a list of the verticies to search\n r (list): used by bronk for the search\n x (list): used by bronk for the search\n\n... | 178 | false | MycroftAI/adapt | bronk | 7,873 | |
LDU_FT/yyuu/botornado/Inventory | LDU_FT | [
"<BEGIN>\n## `save`",
"Saves this item to SDB.",
" :param bool replace: If ``True``, delete any attributes on the remote\n SDB item that have a ``None`` value on this object.\n<END>",
"<BEGIN>\n## `add_value`",
"Helps set or add to attributes on this item. If you are adding a new\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Inventory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Inventory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Returns a list of Server instances, one for each Server object
persisted in the db | "Returns a list of Server instances, one for each Server object\n persisted in the db" | 2,931 | true | yyuu/botornado | Inventory | 7,874 | |
LDU_FT/innogames/polysh/handle_read | LDU_FT | [
"<BEGIN>\n## `process_input_buffer`",
"Send the content of the input buffer to all remote processes, this must\n be called in the main thread\n<END>",
"<BEGIN>\n## `write_main_socket`",
"Synchronous write to the main socket, wait for ACK\n<END>",
"<BEGIN>\n## `get_stdin_pid`",
"Try to get the PID of th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | We got some output from a remote shell, this is one of the state
machine | "We got some output from a remote shell, this is one of the state\n machine" | 66 | false | innogames/polysh | handle_read | 7,875 | |
LDU_FT/schneiderfelipe/pyrrole/to_digraph | LDU_FT | [
"<BEGIN>\n## `_parse_chemical_equation`",
"Parse the chemical equation mini-language.",
" See the docstring of `ChemicalEquation` for more.",
" Parameters\n ----------\n value : `str`\n A string in chemical equation mini-language.",
" Returns\n -------\n mapping\n A mappin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_digraph API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_digraph API.
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... | Compute a directed graph for the chemical system.
Returns
-------
digraph : `networkx.DiGraph`
Graph nodes are reactants and/or products of chemical equations,
while edges represent the equations themselves. Double ended edges
are used to represent equilibria... | "Compute a directed graph for the chemical system.\n\n Returns\n -------\n digraph : `networkx.DiGraph`\n Graph nodes are reactants and/or products of chemical equations,\n while edges represent the equations themselves. Double ended edges\n are used to represent eq... | 153 | false | schneiderfelipe/pyrrole | to_digraph | 7,876 | |
LDU_FT/Varkal/chuda/enrich_app | LDU_FT | [
"<BEGIN>\n## `enrich_app`",
"Add a new property to the app (with setattr)",
" Args:\n name (str): the name of the new property\n value (any): the value of the new property\n<END>",
"<BEGIN>\n## `autorun`",
"Call the run method of the decorated class if the current file is the ma... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enrich_app API.
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 enrich_app API.
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... | Add a new property to the app (with setattr)
Args:
name (str): the name of the new property
value (any): the value of the new property | "Add a new property to the app (with setattr)\n\n Args:\n name (str): the name of the new property\n value (any): the value of the new property" | 44 | false | Varkal/chuda | enrich_app | 7,877 | |
LDU_FT/h2oai/datatable/get_files | LDU_FT | [
"<BEGIN>\n## `_parse_row`",
"Scan a single row from an Excel file, and return the list of ranges\n corresponding to each consecutive span of non-empty cells in this row.\n If all cells are empty, return an empty list. Each \"range\" in the list\n is a tuple of the form `(startcol, endcol)`.",
" For ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return the list of all source/header files in `c/` directory.
The files will have pathnames relative to the current folder, for example
"c/csv/reader_utils.cc". | "Return the list of all source/header files in `c/` directory.\n\n The files will have pathnames relative to the current folder, for example\n \"c/csv/reader_utils.cc\"." | 49 | false | h2oai/datatable | get_files | 7,878 | |
LDU_FT/softwarefactory-project/distroinfo/parse_info | LDU_FT | [
"<BEGIN>\n## `get_info`",
"Get data from distroinfo instance.",
" :param apply_tag: apply supplied tag to info\n :param info_dicts: return packages and releases as dicts\n :return: parsed info metadata\n<END>",
"<BEGIN>\n## `strip_project_url`",
"strip proto:// | openstack/ prefixes and... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 extrac... | Parse raw rdoinfo metadata inplace.
:param raw_info: raw info to parse
:param apply_tag: tag to apply
:returns: dictionary containing all packages in rdoinfo | "Parse raw rdoinfo metadata inplace.\n\n :param raw_info: raw info to parse\n :param apply_tag: tag to apply\n :returns: dictionary containing all packages in rdoinfo" | 15 | false | softwarefactory-project/distroinfo | parse_info | 7,879 | |
LDU_FT/tilde-lab/tilde/_findSegment | LDU_FT | [
"<BEGIN>\n## `wrap_cell`",
"Cell wrappers\n for customizing the GUI data table",
" TODO : must coincide with hierarchy!\n TODO : simplify this!\n<END>",
"<BEGIN>\n## `meminfo`",
"Get the amount of memory and swap, Mebibytes\n<END>",
"<BEGIN>\n## `serial_number`",
"Get the serial number. Require... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _findSegment API.
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 _findSegment API.
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... | :param x: x value to place in segment defined by the xData (instantiation)
:return: The lower index in the segment | ":param x: x value to place in segment defined by the xData (instantiation)\n :return: The lower index in the segment" | 68 | false | tilde-lab/tilde | _findSegment | 7,880 | |
LDU_FT/CellProfiler/centrosome/fill_labeled_holes | LDU_FT | [
"<BEGIN>\n## `fill_labeled_holes`",
"Fill all background pixels that are holes inside the foreground",
" A pixel is a hole inside a foreground object if",
" * there is no path from the pixel to the edge AND",
" * there is no path from the pixel to any other non-hole\n pixel AND",
" * ther... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_labeled_holes 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 fill_labeled_holes 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... | Fill all background pixels that are holes inside the foreground
A pixel is a hole inside a foreground object if
* there is no path from the pixel to the edge AND
* there is no path from the pixel to any other non-hole
pixel AND
* there is no path from the pixel to two similarly-... | "Fill all background pixels that are holes inside the foreground\n \n A pixel is a hole inside a foreground object if\n \n * there is no path from the pixel to the edge AND\n \n * there is no path from the pixel to any other non-hole\n pixel AND\n \n * there is no path from the pixel to two ... | 668 | false | CellProfiler/centrosome | fill_labeled_holes | 7,881 | |
LDU_FT/pbrisk/timewave/evolve | LDU_FT | [
"<BEGIN>\n## `initialize_worker`",
"inits producer for a simulation run on a single process\n<END>",
"<BEGIN>\n## `initialize_path`",
"inits producer for next path, i.e. sets current state to initial state\n<END>",
"<BEGIN>\n## `evolve`",
"evolve to the new process state at the next date, i.e. do one step... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evolve API.
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 evolve API.
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 ... | evolve to the new process state at the next date, i.e. do one step in the simulation
:param date new_date: date of the new state
:return State: | "evolve to the new process state at the next date, i.e. do one step in the simulation\n\n :param date new_date: date of the new state\n :return State:" | 50 | false | pbrisk/timewave | evolve | 7,882 | |
LDU_FT/gusdan/geoindex/get_nearest_points | LDU_FT | [
"<BEGIN>\n## `distance_to`",
"Calculate distance in miles or kilometers between current and other\n passed point.\n<END>",
"<BEGIN>\n## `rad_latitude`",
"Lazy conversion degrees latitude to radians.\n<END>",
"<BEGIN>\n## `rad_longitude`",
"Lazy conversion degrees longitude to radians.\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nearest_points 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_nearest_points 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 list of geo points from circle with given center and radius
:param center_point: GeoPoint with center of search circle
:param radius: radius of search circle
:return: generator with tuple with GeoPoints and distance | "return list of geo points from circle with given center and radius\n :param center_point: GeoPoint with center of search circle\n :param radius: radius of search circle\n :return: generator with tuple with GeoPoints and distance" | 14 | false | gusdan/geoindex | get_nearest_points | 7,883 | |
LDU_FT/facelessuser/soupsieve/match_selectors | LDU_FT | [
"<BEGIN>\n## `get_version`",
"Get version and version_info without importing the entire module.\n<END>",
"<BEGIN>\n## `css_unescape`",
"Unescape CSS value.",
" Strings allow for spanning the value on multiple strings by escaping a new line.\n<END>",
"<BEGIN>\n## `parse_attribute_selector`",
"Create a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_selectors API.
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 match_selectors API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Check if element matches one of the selectors. | "Check if element matches one of the selectors." | 39 | false | facelessuser/soupsieve | match_selectors | 7,884 | |
LDU_FT/diging/tethne/read | LDU_FT | [
"<BEGIN>\n## `to_dxgmml`",
"Writes a :class:`.GraphCollection` to\n `dynamic XGMML. <https://code.google.com/p/dynnetwork/wiki/DynamicXGMML>`_.",
" Dynamic XGMML is a schema for describing dynamic networks in Cytoscape 3.0.\n This method assumes that `Graph` indices are orderable points in time\n (e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Read bibliographic data from Zotero RDF.
Examples
--------
Assuming that the Zotero collection was exported to the directory
``/my/working/dir`` with the name ``myCollection``, a subdirectory should
have been created at ``/my/working/dir/myCollection``, and an RDF file
should exist at ``/my/wor... | "Read bibliographic data from Zotero RDF.\n\n Examples\n --------\n Assuming that the Zotero collection was exported to the directory\n ``/my/working/dir`` with the name ``myCollection``, a subdirectory should\n have been created at ``/my/working/dir/myCollection``, and an RDF file\n should exist at `... | 497 | false | diging/tethne | read | 7,885 | |
LDU_FT/jeffh/pyconstraints/is_feasible | LDU_FT | [
"<BEGIN>\n## `extract_values`",
"Returns a tuple of the values that pertain to this constraint.",
" It simply filters all values to by the variables this constraint uses.\n<END>",
"<BEGIN>\n## `keys`",
"Returns all the keys this object can return proper values for.\n<END>",
"<BEGIN>\n## `values`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_feasible API.
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 is_feasible API.
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 True if the given solution's derivatives may have potential
valid, complete solutions. | "Returns True if the given solution's derivatives may have potential\n valid, complete solutions." | 30 | false | jeffh/pyconstraints | is_feasible | 7,886 | |
LDU_FT/rdo-management/python-rdomanager-oscplugin/_deploy_tripleo_heat_templates | LDU_FT | [
"<BEGIN>\n## `_csv_to_nodes_dict`",
"Convert CSV to a list of dicts formatted for os_cloud_config",
" Given a CSV file in the format below, convert it into the\n structure expected by os_could_config JSON files.",
" pm_type, pm_addr, pm_user, pm_password, mac\n<END>",
"<BEGIN>\n## `build_option_par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _deploy_tripleo_heat_templates API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _deploy_tripleo_heat_templates API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Deploy the fixed templates in TripleO Heat Templates | "Deploy the fixed templates in TripleO Heat Templates" | 85 | false | rdo-management/python-rdomanager-oscplugin | _deploy_tripleo_heat_templates | 7,887 | |
LDU_FT/wroberts/fsed/sub_escapes | LDU_FT | [
"<BEGIN>\n## `open_file`",
"Opens a file for access with the given mode. This function\n transparently wraps gzip and xz files as well as normal files.\n You can also open zip files using syntax like:",
" f = utils.open_file('../semcor-parsed.zip:semcor000.txt')\n<END>",
"<BEGIN>\n## `boundary_trans... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sub_escapes API.
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 sub_escapes API.
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... | Process escaped characters in ``sval``.
Arguments:
- `sval`: | "Process escaped characters in ``sval``.\n\n Arguments:\n - `sval`:" | 50 | false | wroberts/fsed | sub_escapes | 7,888 | |
LDU_FT/HazyResearch/metal/_break_ties | LDU_FT | [
"<BEGIN>\n## `plot_probabilities_histogram`",
"Plot a histogram from a numpy array of probabilities",
" Args:\n Y_p: An [n] or [n, 1] np.ndarray of probabilities (floats in [0,1])\n<END>",
"<BEGIN>\n## `plot_predictions_histogram`",
"Plot a histogram comparing int predictions vs true labels by cla... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _break_ties API.
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 _break_ties API.
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... | Break ties in each row of a tensor according to the specified policy
Args:
Y_s: An [n, k] np.ndarray of probabilities
break_ties: A tie-breaking policy:
"abstain": return an abstain vote (0)
"random": randomly choose among the tied options
... | "Break ties in each row of a tensor according to the specified policy\n\n Args:\n Y_s: An [n, k] np.ndarray of probabilities\n break_ties: A tie-breaking policy:\n \"abstain\": return an abstain vote (0)\n \"random\": randomly choose among the tied options\n ... | 326 | false | HazyResearch/metal | _break_ties | 7,889 | |
LDU_FT/saltant-org/saltant-py/create | LDU_FT | [
"<BEGIN>\n## `sync`",
"Sync this model with latest data on the saltant server.",
" Note that in addition to returning the updated object, it also\n updates the existing object.",
" Returns:\n :class:`saltant.models.base_task_type.BaseTaskType`:\n This task type i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create a task queue.
Args:
name (str): The name of the task queue.
description (str, optional): A description of the task queue.
private (bool, optional): A boolean specifying whether the
queue is exclusive to its creator. Defaults to False.
runs_... | "Create a task queue.\n\n Args:\n name (str): The name of the task queue.\n description (str, optional): A description of the task queue.\n private (bool, optional): A boolean specifying whether the\n queue is exclusive to its creator. Defaults to False.\n ... | 134 | false | saltant-org/saltant-py | create | 7,890 | |
LDU_FT/open-contracting/ocds-merge/get_merge_rules | LDU_FT | [
"<BEGIN>\n## `_get_merge_rules`",
"Yields merge rules as key-value pairs, in which the first element is a JSON path as a tuple, and the second element\n is a list of merge properties whose values are `true`.\n<END>",
"<BEGIN>\n## `get_merge_rules`",
"Returns merge rules as key-value pairs, in which the key... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_merge_rules API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_merge_rules API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Returns merge rules as key-value pairs, in which the key is a JSON path as a tuple, and the value is a list of
merge properties whose values are `true`. | "Returns merge rules as key-value pairs, in which the key is a JSON path as a tuple, and the value is a list of\n merge properties whose values are `true`." | 17 | false | open-contracting/ocds-merge | get_merge_rules | 7,891 | |
LDU_FT/ahwillia/tensortools/mcp_als | LDU_FT | [
"<BEGIN>\n## `unfold`",
"Returns the mode-`mode` unfolding of `tensor`.",
" Parameters\n ----------\n tensor : ndarray\n mode : int",
" Returns\n -------\n ndarray\n unfolded_tensor of shape ``(tensor.shape[mode], -1)``",
" Author\n ------\n Jean Kossaifi <https://github... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mcp_als API.
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 mcp_als API.
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... | Fits CP Decomposition with missing data using Alternating Least Squares (ALS).
Parameters
----------
X : (I_1, ..., I_N) array_like
A tensor with ``X.ndim >= 3``.
rank : integer
The `rank` sets the number of components to be computed.
mask : (I_1, ..., I_N) array_like
A bi... | "Fits CP Decomposition with missing data using Alternating Least Squares (ALS).\n\n Parameters\n ----------\n X : (I_1, ..., I_N) array_like\n A tensor with ``X.ndim >= 3``.\n\n rank : integer\n The `rank` sets the number of components to be computed.\n\n mask : (I_1, ..., I_N) array_like\n... | 158 | false | ahwillia/tensortools | mcp_als | 7,892 | |
LDU_FT/tadashi-aikawa/owlmixin/dump_json | LDU_FT | [
"<BEGIN>\n## `from_dict`",
"From dict to instance",
" :param d: Dict\n :param force_snake_case: Keys are transformed to snake case in order to compliant PEP8 if True\n :param force_cast: Cast forcibly if True\n :param restrict: Prohibit extra parameters if True\n :return: Inst... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | :param list | dict data:
:param Optional[int] indent:
:rtype: unicode | ":param list | dict data:\n :param Optional[int] indent:\n :rtype: unicode" | 248 | false | tadashi-aikawa/owlmixin | dump_json | 7,893 | |
LDU_FT/phalt/beckett/_call_api_many_related_resources | LDU_FT | [
"<BEGIN>\n## `set_attributes`",
"Set the resource attributes from the kwargs.\n Only sets items in the `self.Meta.attributes` white list.",
" Subclass this method to customise attributes.",
" Args:\n kwargs: Keyword arguements passed into the init of this class\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _call_api_many_related_resources API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _call_api_many_related_resources API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | For HypermediaResource - make an API call to a list of known URLs | "For HypermediaResource - make an API call to a list of known URLs" | 53 | false | phalt/beckett | _call_api_many_related_resources | 7,894 | |
LDU_FT/eaton-lab/toytree/populate | LDU_FT | [
"<BEGIN>\n## `_translate_nodes`",
"Convert node names into node instances...\n<END>",
"<BEGIN>\n## `add_child`",
"Adds a new child to this node. If child node is not suplied\n as an argument, a new node instance will be created.",
" Parameters\n ----------",
" child: \n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populate API.
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 populate API.
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... | Generates a random topology by populating current node.
:argument None names_library: If provided, names library
(list, set, dict, etc.) will be used to name nodes.
:argument False reuse_names: If True, node names will not be
necessarily unique, which makes the process a bit more
... | "Generates a random topology by populating current node.\n\n :argument None names_library: If provided, names library\n (list, set, dict, etc.) will be used to name nodes.\n\n :argument False reuse_names: If True, node names will not be\n necessarily unique, which makes the process a bit... | 332 | false | eaton-lab/toytree | populate | 7,895 | |
LDU_FT/perrygeo/python-rasterstats/bounds_window | LDU_FT | [
"<BEGIN>\n## `zonalstats`",
"zonalstats generates summary statistics of geospatial raster datasets\n based on vector features.",
" The input arguments to zonalstats should be valid GeoJSON Features. (see cligj)",
" The output GeoJSON will be mostly unchanged but have additional properties per feature... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bounds_window API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bounds_window API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Create a full cover rasterio-style window | "Create a full cover rasterio-style window" | 73 | false | perrygeo/python-rasterstats | bounds_window | 7,896 | |
LDU_FT/jeffbuttars/upkg/installed | LDU_FT | [
"<BEGIN>\n## `exec`",
"todo: Docstring for exec",
" :param args: arg description\n :type args: type description\n :return:\n :rtype:\n<END>",
"<BEGIN>\n## `exec`",
"todo: Docstring for exec",
" :param args: arg description\n :type args: type description\n :... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the installed API.
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 installed API.
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... | todo: Docstring for installed
:param name: arg description
:type name: type description
:return:
:rtype: | "todo: Docstring for installed\n\n :param name: arg description\n :type name: type description\n :return:\n :rtype:" | 76 | false | jeffbuttars/upkg | installed | 7,897 | |
LDU_FT/fozzle/python-brotherprint/select_char_code_table | LDU_FT | [
"<BEGIN>\n## `initialize`",
"Calling this function initializes the printer.",
" Args:\n None\n Returns:\n None\n Raises:\n None\n<END>",
"<BEGIN>\n## `select_charset`",
"Select international character set and changes codes in code table accordingly",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_char_code_table API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_char_code_table API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Select character code table, from tree built in ones.
Args:
table: The desired character code table. Choose from 'standard', 'eastern european', 'western european', and 'spare'
Returns:
None
Raises:
RuntimeError: Invalid chartable. | "Select character code table, from tree built in ones.\n \n Args:\n table: The desired character code table. Choose from 'standard', 'eastern european', 'western european', and 'spare'\n Returns:\n None\n Raises:\n RuntimeError: Invalid chartable." | 113 | false | fozzle/python-brotherprint | select_char_code_table | 7,898 | |
LDU_FT/Yipit/ejson/_converter | LDU_FT | [
"<BEGIN>\n## `deserialize_time`",
"Return a time instance based on the values of the data param\n<END>",
"<BEGIN>\n## `dumps`",
"A wrapper around `json.dumps` that can handle objects that json\n module is not aware.",
" This function is aware of a list of custom serializers that can be\n registered... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _converter API.
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 _converter API.
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... | Internal function that will be passed to the native `json.dumps`.
This function uses the `REGISTRY` of serializers and try to convert
a given instance to an object that json.dumps can understand. | "Internal function that will be passed to the native `json.dumps`.\n\n This function uses the `REGISTRY` of serializers and try to convert\n a given instance to an object that json.dumps can understand." | 13 | false | Yipit/ejson | _converter | 7,899 | |
LDU_FT/infobloxopen/infoblox-client/_parse_reply | LDU_FT | [
"<BEGIN>\n## `generate_duid`",
"DUID is consisted of 10 hex numbers.",
" 0x00 + mac with last 3 hex + mac with 6 hex\n<END>",
"<BEGIN>\n## `try_value_to_bool`",
"Tries to convert value into boolean.",
" strict_mode is True:\n - Only string representation of str(True) and str(False)\n are con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_reply API.
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_reply API.
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... | Tries to parse reply from NIOS.
Raises exception with content if reply is not in json format | "Tries to parse reply from NIOS.\n\n Raises exception with content if reply is not in json format" | 56 | false | infobloxopen/infoblox-client | _parse_reply | 7,900 | |
LDU_FT/architv/soccer-cli/live_scores | LDU_FT | [
"<BEGIN>\n## `get_team_scores`",
"Queries the API and gets the particular team scores\n<END>",
"<BEGIN>\n## `get_standings`",
"Queries the API and gets the standings for a particular league\n<END>",
"<BEGIN>\n## `get_league_scores`",
"Queries the API and fetches the scores for fixtures\n based upon... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the live_scores API.
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 live_scores API.
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... | Prints the live scores in a pretty format | "Prints the live scores in a pretty format" | 50 | false | architv/soccer-cli | live_scores | 7,901 | |
LDU_FT/jut-io/jut-python-tools/push_json_file | LDU_FT | [
"<BEGIN>\n## `_print_jobs`",
"internal method to print the provided jobs array in a nice tabular\n format\n<END>",
"<BEGIN>\n## `debug`",
"debug output goes to stderr so you can still redirect the stdout to a file\n or another program. Controlled by the JUT_DEBUG environment variable being\n present\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push_json_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push_json_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | read the json file provided and POST in batches no bigger than the
batch_size specified to the specified url. | "read the json file provided and POST in batches no bigger than the\n batch_size specified to the specified url." | 72 | false | jut-io/jut-python-tools | push_json_file | 7,902 | |
LDU_FT/icometrix/dicom2nifti/_get_slice_pixeldata | LDU_FT | [
"<BEGIN>\n## `_get_gdcmconv`",
"Get the full path to gdcmconv.\n If not found raise error\n<END>",
"<BEGIN>\n## `compress_directory`",
"This function can be used to convert a folder of jpeg compressed images to an uncompressed ones",
" :param dicom_directory: directory of dicom files to compress\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_slice_pixeldata 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_slice_pixeldata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | the slice and intercept calculation can cause the slices to have different dtypes
we should get the correct dtype that can cover all of them
:type dicom_slice: pydicom object
:param dicom_slice: slice to get the pixeldata for | "the slice and intercept calculation can cause the slices to have different dtypes\n we should get the correct dtype that can cover all of them\n\n :type dicom_slice: pydicom object\n :param dicom_slice: slice to get the pixeldata for" | 243 | false | icometrix/dicom2nifti | _get_slice_pixeldata | 7,903 | |
LDU_FT/matllubos/django-is-core/get_widget | LDU_FT | [
"<BEGIN>\n## `short_description`",
"Sets 'short_description' attribute (this attribute is in exports to generate header name).\n<END>",
"<BEGIN>\n## `redirect_to_login`",
"Redirects the user to the login page, passing the given 'next' page\n<END>",
"<BEGIN>\n## `_check_permission`",
"If customer is not au... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_widget API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_widget API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns concrete widget that will be used for rendering table filter. | "Returns concrete widget that will be used for rendering table filter." | 66 | false | matllubos/django-is-core | get_widget | 7,904 | |
LDU_FT/MultipedRobotics/pyxl320/read | LDU_FT | [
"<BEGIN>\n## `makeServoIDPacket`",
"Given the current ID, returns a packet to set the servo to a new ID\n<END>",
"<BEGIN>\n## `packetToDict`",
"Given a packet, this turns it into a dictionary ... is this useful?",
"\tin: packet, array of numbers\n\tout: dictionary (key, value)\n<END>",
"<BEGIN>\n## `sweep... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Reads a Json file
in: file name
out: length of file, dictionary | "Reads a Json file\n\t\tin: file name\n\t\tout: length of file, dictionary" | 71 | false | MultipedRobotics/pyxl320 | read | 7,905 | |
LDU_FT/dariosky/wfcli/list_domains | LDU_FT | [
"<BEGIN>\n## `is_website_affected`",
"Tell if the website is affected by the domain change\n<END>",
"<BEGIN>\n## `get_affected_domains`",
"Return a list of all affected domain and subdomains\n<END>",
"<BEGIN>\n## `website_exists_as_secure`",
"Return true if the website has an equivalent that is secure\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_domains API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_domains API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return all domains. Domain is a key, so group by them | "Return all domains. Domain is a key, so group by them" | 22 | false | dariosky/wfcli | list_domains | 7,906 | |
LDU_FT/kgori/treeCl/maximise | LDU_FT | [
"<BEGIN>\n## `brent_optimise`",
"Optimise ML distance between two partials. min and max set brackets\n<END>",
"<BEGIN>\n## `pairdists`",
"Load an alignment, calculate all pairwise distances and variances\n model parameter must be a Substitution model type from phylo_utils\n<END>",
"<BEGIN>\n## `write... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maximise API.
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 maximise API.
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... | The Maximisation step of the CEM algorithm | "The Maximisation step of the CEM algorithm" | 389 | false | kgori/treeCl | maximise | 7,907 | |
LDU_FT/xray7224/PyPump/members | LDU_FT | [
"<BEGIN>\n## `verifier`",
"Will ask user to click link to accept app and write code\n<END>",
"<BEGIN>\n## `post_note`",
"Post note and return the URL of the posted note\n<END>",
"<BEGIN>\n## `get_obj_id`",
"Get the id of a PumpObject.",
" :param item: id string or PumpObject\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the members API.
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 members API.
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... | :class:`Feed <pypump.models.feed.Feed>` of collection members. | ":class:`Feed <pypump.models.feed.Feed>` of collection members." | 100 | false | xray7224/PyPump | members | 7,908 | |
LDU_FT/hfaran/piazza-api/_handle_error | LDU_FT | [
"<BEGIN>\n## `user_login`",
"Login with email, password and get back a session cookie",
" :type email: str\n :param email: The email used for authentication\n :type password: str\n :param password: The password used for authentication\n<END>",
"<BEGIN>\n## `demo_login`",
"Authe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_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.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_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.
The ext... | Check result for error
:type result: dict
:param result: response body
:type err_msg: str
:param err_msg: The message given to the :class:`RequestError` instance
raised
:returns: Actual result from result
:raises RequestError: If result has error | "Check result for error\n\n :type result: dict\n :param result: response body\n :type err_msg: str\n :param err_msg: The message given to the :class:`RequestError` instance\n raised\n :returns: Actual result from result\n :raises RequestError: If result has error" | 100 | false | hfaran/piazza-api | _handle_error | 7,909 | |
LDU_FT/StellarCN/py-stellar-base/to_xdr_object | LDU_FT | [
"<BEGIN>\n## `get`",
"Retrieve the account data that corresponds to this :class:`Address`.",
" Retrieve the account data from Horizon for the account that corresponds\n to this :class:`Address`. Attempt to retrieve the following attributes\n from Horizon:",
" * Sequence Number\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_xdr_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_xdr_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Creates an XDR Operation object that represents this
:class:`ChangeTrust`. | "Creates an XDR Operation object that represents this\n :class:`ChangeTrust`." | 411 | false | StellarCN/py-stellar-base | to_xdr_object | 7,910 | |
LDU_FT/tommyod/streprogen/all_equal | LDU_FT | [
"<BEGIN>\n## `_set_scalers`",
"Set the variables self._scalers as given by self.scalers,\n if self.scalers is None, then a default value is used.\n<END>",
"<BEGIN>\n## `_validate`",
"The purpose of this method is to verify that the user has set sensible\n values for the training program before r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_equal API.
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 all_equal API.
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... | Checks whether all items in an iterable are equal.
Parameters
----------
iterable
An iterable, e.g. a string og a list.
Returns
-------
boolean
True or False.
Examples
-------
>>> all_equal([2, 2, 2])
True
>>> all_equal([1, 2, 3])
False | "Checks whether all items in an iterable are equal.\n\n Parameters\n ----------\n iterable\n An iterable, e.g. a string og a list.\n\n Returns\n -------\n boolean\n True or False.\n \n Examples\n -------\n >>> all_equal([2, 2, 2])\n True\n >>> all_equal([1, 2, 3])\n ... | 129 | false | tommyod/streprogen | all_equal | 7,911 | |
LDU_FT/fossasia/AYABInterface/parallelize | LDU_FT | [
"<BEGIN>\n## `get`",
"Return the needle positions or None.",
" :param int line_number: the number of the line\n :rtype: list\n :return: the needle positions for a specific line specified by\n :paramref:`line_number` or :obj:`None` if no were given\n<END>",
"<BEGIN>\n## `get_bytes... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parallelize API.
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 parallelize API.
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... | Start a parallel thread for receiving messages.
If :meth:`start` was no called before, start will be called in the
thread.
The thread calls :meth:`receive_message` until the :attr:`state`
:meth:`~AYABInterface.communication.states.State.is_connection_closed`.
:param float secon... | "Start a parallel thread for receiving messages.\n\n If :meth:`start` was no called before, start will be called in the\n thread.\n The thread calls :meth:`receive_message` until the :attr:`state`\n :meth:`~AYABInterface.communication.states.State.is_connection_closed`.\n\n :param flo... | 79 | false | fossasia/AYABInterface | parallelize | 7,912 | |
LDU_FT/wtolson/gnsq/multipublish_http | LDU_FT | [
"<BEGIN>\n## `read_response`",
"Read an individual response from nsqd.",
" :returns: tuple of the frame type and the processed data.\n<END>",
"<BEGIN>\n## `identify`",
"Update client metadata on the server and negotiate features.",
" :returns: nsqd response data if there was feature negotiat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multipublish_http API.
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 multipublish_http API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Use :meth:`NsqdHTTPClient.multipublish` instead.
.. deprecated:: 1.0.0 | "Use :meth:`NsqdHTTPClient.multipublish` instead.\n\n .. deprecated:: 1.0.0" | 96 | false | wtolson/gnsq | multipublish_http | 7,913 | |
LDU_FT/capnproto/pycapnp/fetch_archive | LDU_FT | [
"<BEGIN>\n## `localpath`",
"construct an absolute path from a list relative to the root pycapnp directory\n<END>",
"<BEGIN>\n## `fetch_archive`",
"download an archive to a specific location\n<END>",
"<BEGIN>\n## `stage_platform_hpp`",
"stage platform.hpp into libcapnp sources",
" Tries ./configure fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_archive API.
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 fetch_archive API.
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... | download an archive to a specific location | "download an archive to a specific location" | 44 | false | capnproto/pycapnp | fetch_archive | 7,914 | |
LDU_FT/rdo-management/python-rdomanager-oscplugin/generate_overcloud_passwords | LDU_FT | [
"<BEGIN>\n## `_csv_to_nodes_dict`",
"Convert CSV to a list of dicts formatted for os_cloud_config",
" Given a CSV file in the format below, convert it into the\n structure expected by os_could_config JSON files.",
" pm_type, pm_addr, pm_user, pm_password, mac\n<END>",
"<BEGIN>\n## `build_option_par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_overcloud_passwords API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_overcloud_passwords API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Create the passwords needed for the overcloud
This will create the set of passwords required by the overcloud, store
them in the output file path and return a dictionary of passwords. If the
file already exists the existing passwords will be returned instead, | "Create the passwords needed for the overcloud\n\n This will create the set of passwords required by the overcloud, store\n them in the output file path and return a dictionary of passwords. If the\n file already exists the existing passwords will be returned instead," | 85 | false | rdo-management/python-rdomanager-oscplugin | generate_overcloud_passwords | 7,915 | |
LDU_FT/OpenHumans/open-humans-api/get_all_results | LDU_FT | [
"<BEGIN>\n## `guess_tags`",
"Function to get potential tags for files using the file names.",
" :param filename: This field is the name of file.\n<END>",
"<BEGIN>\n## `characterize_local_files`",
"Collate local file info as preperation for Open Humans upload.",
" Note: Files with filesize > max_byte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_results API.
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_results API.
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... | Given starting API query for Open Humans, iterate to get all results.
:param starting page: This field is the first page, starting from which
results will be obtained. | "Given starting API query for Open Humans, iterate to get all results.\n\n :param starting page: This field is the first page, starting from which\n results will be obtained." | 162 | false | OpenHumans/open-humans-api | get_all_results | 7,916 | |
LDU_FT/python-rope/rope/update_resource | LDU_FT | [
"<BEGIN>\n## `find_occurrences`",
"Return a list of `Location`\\s",
" If `unsure` is `True`, possible matches are returned, too. You\n can use `Location.unsure` to see which are unsure occurrences.\n `resources` can be a list of `rope.base.resource.File`\\s that\n should be searched for occurrences... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_resource API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_resource API.
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... | Update the cache for global names in `resource` | "Update the cache for global names in `resource`" | 312 | false | python-rope/rope | update_resource | 7,917 | |
LDU_FT/budacom/trading-bots/populate | LDU_FT | [
"<BEGIN>\n## `fetch_deposits`",
"Fetch latest deposits, must provide a limit.\n<END>",
"<BEGIN>\n## `fetch_deposits_since`",
"Fetch all deposits since the given timestamp.\n<END>",
"<BEGIN>\n## `fetch_withdrawals`",
"Fetch latest withdrawals, must provide a limit.\n<END>",
"<BEGIN>\n## `fetch_withdrawal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populate API.
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 populate API.
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... | Load bots.
Import each bot module.
It is thread-safe and idempotent, but not re-entrant. | "Load bots.\n Import each bot module.\n It is thread-safe and idempotent, but not re-entrant." | 62 | false | budacom/trading-bots | populate | 7,918 | |
LDU_FT/qiniu/python-sdk/update_service | LDU_FT | [
"<BEGIN>\n## `execute`",
"执行持久化处理:",
" Args:\n key: 待处理的源文件\n fops: 处理详细操作,规格详见 https://developer.qiniu.com/dora/manual/1291/persistent-data-processing-pfop\n force: 强制执行持久化处理开关",
" Returns:\n 一个dict变量,返回持久化处理的persistentId,类似{\"persistentId\": 54... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_service API.
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 update_service API.
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... | 更新服务
更新指定名称服务的配置如容器镜像等参数,容器被重新部署后生效。
如果指定manualUpdate参数,则需要额外调用 部署服务 接口并指定参数进行部署;处于人工升级模式的服务禁止执行其他修改操作。
如果不指定manualUpdate参数,平台会自动完成部署。
Args:
- stack: 服务所属的服务组名称
- service: 服务名
- args: 服务具体描述请求参数(json),参考 http://kirk-docs.qiniu.com/apidocs/
... | "更新服务\n\n 更新指定名称服务的配置如容器镜像等参数,容器被重新部署后生效。\n 如果指定manualUpdate参数,则需要额外调用 部署服务 接口并指定参数进行部署;处于人工升级模式的服务禁止执行其他修改操作。\n 如果不指定manualUpdate参数,平台会自动完成部署。\n\n Args:\n - stack: 服务所属的服务组名称\n - service: 服务名\n - args: 服务具体描述请求参数(json),参考 http://kirk-docs.qiniu.com/a... | 337 | false | qiniu/python-sdk | update_service | 7,919 | |
LDU_FT/Numigi/gitoo/parse_url | LDU_FT | [
"<BEGIN>\n## `temp_repo`",
"Clone a git repository inside a temporary folder, yield the folder then delete the folder.",
" :param string url: url of the repo to clone.\n :param string branch: name of the branch to checkout to.\n :param string commit: Optional commit rev to checkout to. If mentioned, th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Parse the given url and update it with environment value if required.
:param basestring url:
:rtype: basestring
:raise: KeyError if environment variable is needed but not found. | "Parse the given url and update it with environment value if required.\n\n :param basestring url:\n :rtype: basestring\n :raise: KeyError if environment variable is needed but not found." | 40 | false | Numigi/gitoo | parse_url | 7,920 | |
LDU_FT/lemieuxl/pyGenClean/processTPED | LDU_FT | [
"<BEGIN>\n## `main`",
"The main function of the module.",
" :param argString: the options.",
" :type argString: list",
" These are the steps:",
" 1. Prints the options.\n 2. If there are ``summarized_intensities`` provided, reads the files\n (:py:func:`read_summarized_intensities`) an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the processTPED API.
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 processTPED API.
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... | Process the TPED file.
:param uniqueSamples: the position of unique samples.
:param duplicatedSamples: the position of duplicated samples.
:param fileName: the name of the file.
:param prefix: the prefix of all the files.
:type uniqueSamples: dict
:type duplicatedSamples: collections.defaultdi... | "Process the TPED file.\n\n :param uniqueSamples: the position of unique samples.\n :param duplicatedSamples: the position of duplicated samples.\n :param fileName: the name of the file.\n :param prefix: the prefix of all the files.\n\n :type uniqueSamples: dict\n :type duplicatedSamples: collections.... | 1,109 | true | lemieuxl/pyGenClean | processTPED | 7,921 | |
LDU_FT/dls-controls/pymalcolm/pause | LDU_FT | [
"<BEGIN>\n## `camel_to_title`",
"Takes a camelCaseFieldName and returns an Title Case Field Name",
" Args:\n name (str): E.g. camelCaseFieldName",
" Returns:\n str: Title Case converted name. E.g. Camel Case Field Name\n<END>",
"<BEGIN>\n## `snake_to_camel`",
"Takes a snake_field_name ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pause API.
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 pause API.
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... | Pause a run() so that resume() can be called later, or seek within
an Armed or Paused state.
The original call to run() will not be interrupted by pause(), it will
wait until the scan completes or is aborted.
Normally it will return in Paused state. If the user aborts then it will
... | "Pause a run() so that resume() can be called later, or seek within\n an Armed or Paused state.\n\n The original call to run() will not be interrupted by pause(), it will\n wait until the scan completes or is aborted.\n\n Normally it will return in Paused state. If the user aborts then it wi... | 332 | false | dls-controls/pymalcolm | pause | 7,922 | |
LDU_FT/kensho-technologies/graphql-compiler/_first_step_to_match | LDU_FT | [
"<BEGIN>\n## `lower_ir`",
"Lower the IR into an IR form that can be represented in Gremlin queries.",
" Args:\n ir_blocks: list of IR blocks to lower into Gremlin-compatible form\n query_metadata_table: QueryMetadataTable object containing all metadata collected during\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _first_step_to_match 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 _first_step_to_match API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Transform the very first MATCH step into a MATCH query string. | "Transform the very first MATCH step into a MATCH query string." | 786 | false | kensho-technologies/graphql-compiler | _first_step_to_match | 7,923 | |
LDU_FT/tjcsl/cslbot/cmd | LDU_FT | [
"<BEGIN>\n## `cmd`",
"Babbles like a user\n Syntax: {command} [nick] [--length <1|2>] [--start <word>]\n<END>",
"<BEGIN>\n## `cmd`",
"Gets a random distro.",
" Syntax: {command}\n<END>",
"<BEGIN>\n## `cmd`",
"Returns the Discordian date.",
" Syntax: {command}\n<END>",
"<BEGIN>\n## `cmd`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Gets a random distro.
Syntax: {command} | "Gets a random distro.\n\n Syntax: {command}" | 357 | false | tjcsl/cslbot | cmd | 7,924 | |
LDU_FT/vsergeev/python-periphery/transfer | LDU_FT | [
"<BEGIN>\n## `read`",
"Read the brightness of the LED.",
" Returns:\n int: Current brightness.",
" Raises:\n LEDError: if an I/O or OS error occurs.\n<END>",
"<BEGIN>\n## `write`",
"Set the brightness of the LED to `brightness`.",
" `brightness` can be a boolea... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transfer API.
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 transfer API.
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... | Shift out `data` and return shifted in data.
Args:
data (bytes, bytearray, list): a byte array or list of 8-bit integers to shift out.
Returns:
bytes, bytearray, list: data shifted in.
Raises:
SPIError: if an I/O or OS error occurs.
TypeError: i... | "Shift out `data` and return shifted in data.\n\n Args:\n data (bytes, bytearray, list): a byte array or list of 8-bit integers to shift out.\n\n Returns:\n bytes, bytearray, list: data shifted in.\n\n Raises:\n SPIError: if an I/O or OS error occurs.\n T... | 86 | false | vsergeev/python-periphery | transfer | 7,925 | |
LDU_FT/tundish/turberfield-dialogue/run | LDU_FT | [
"<BEGIN>\n## `options`",
"Generate folders to best match metadata.",
" The results will be a single, perfectly matched folder, or the two nearest\n neighbours of an imperfect match.",
" :param dict data: metadata matching criteria.",
" This method is a generator. It yields\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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... | Select a cast and perform the next scene.
:param bool react: If `True`, then Property directives are executed
at the point they are encountered. Pass `False` to skip them
so they can be enacted later on.
:param bool strict: Only fully-cast scripts to be performed.
:param... | "Select a cast and perform the next scene.\n\n :param bool react: If `True`, then Property directives are executed\n at the point they are encountered. Pass `False` to skip them\n so they can be enacted later on.\n :param bool strict: Only fully-cast scripts to be performed.\n ... | 63 | false | tundish/turberfield-dialogue | run | 7,926 | |
LDU_FT/mardix/Juice/git_push_to_master | LDU_FT | [
"<BEGIN>\n## `get_env`",
"Return the Capitalize environment name\n It can be used to retrieve class base config\n Default: Development\n :returns: str\n<END>",
"<BEGIN>\n## `init_app`",
"To bind middlewares, plugins that needs the 'app' object to init\n Bound middlewares will be assigned on cls.in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the git_push_to_master 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 git_push_to_master 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... | To push to master
:param cwd:
:param hosts:
:param force:
:return: | "To push to master\n :param cwd:\n :param hosts:\n :param force:\n :return:" | 101 | false | mardix/Juice | git_push_to_master | 7,927 | |
LDU_FT/facelessuser/backrefs/gen_posix | LDU_FT | [
"<BEGIN>\n## `download_unicodedata`",
"Download Unicode data scripts and blocks.\n<END>",
"<BEGIN>\n## `get_unicodedata`",
"Ensure we have Unicode data to generate Unicode tables.\n<END>",
"<BEGIN>\n## `posix_props`",
"Insert POSIX properties.",
" Posix style properties are not as forgiving\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_posix API.
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 gen_posix API.
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... | Generate the bytes posix table and write out to file. | "Generate the bytes posix table and write out to file." | 75 | false | facelessuser/backrefs | gen_posix | 7,928 | |
LDU_FT/openstack/swauth/is_user_reseller_admin | LDU_FT | [
"<BEGIN>\n## `filter_factory`",
"Returns a WSGI filter app for use with paste.deploy.\n<END>",
"<BEGIN>\n## `make_pre_authed_request`",
"Nearly the same as swift.common.wsgi.make_pre_authed_request\n except that this also always sets the 'swift.source' and user\n agent.",
" Newer Swift ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_user_reseller_admin 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 is_user_reseller_admin API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Returns True if the user is a .reseller_admin.
:param account: account user is part of
:param user: the user
:returns: True if user .reseller_admin, False
if user is not a reseller_admin and None if the user
doesn't exist. | "Returns True if the user is a .reseller_admin.\n\n :param account: account user is part of\n :param user: the user\n :returns: True if user .reseller_admin, False\n if user is not a reseller_admin and None if the user\n doesn't exist." | 133 | false | openstack/swauth | is_user_reseller_admin | 7,929 | |
LDU_FT/ehansis/ozelot/store | LDU_FT | [
"<BEGIN>\n## `_query`",
"Base query for an url and xpath",
" Args:\n url (str): URL to search\n xpath (str): xpath to search (may be ``None``)\n<END>",
"<BEGIN>\n## `get`",
"Get a URL via the cache.",
" If the URL exists in the cache, return the cached value. Otherwise ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store API.
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 store API.
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... | Store entities and their attributes
Args:
df (pandas.DataFrame): data to store (storing appends 'id' and 'type' columns!)
attribute_columns (list(str)): list of column labels that define attributes | "Store entities and their attributes\n\n Args:\n df (pandas.DataFrame): data to store (storing appends 'id' and 'type' columns!)\n attribute_columns (list(str)): list of column labels that define attributes" | 203 | false | ehansis/ozelot | store | 7,930 | |
LDU_FT/Robpol86/libnl/_get | LDU_FT | [
"<BEGIN>\n## `nla_ok`",
"Check if the attribute header and payload can be accessed safely.",
" https://github.com/thom311/libnl/blob/libnl3_2_25/lib/attr.c#L148",
" Verifies that the header and payload do not exceed the number of bytes left in the attribute stream. This function\n must be called befo... | 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 do... | 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 do... | Handle calling the parser function to convert bytearray data into Python data types.
Positional arguments:
out_parsed -- dictionary to update with parsed data and string keys.
in_bss -- dictionary of integer keys and bytearray values.
key -- key string to lookup (must be a variable name in libnl.nl8021... | "Handle calling the parser function to convert bytearray data into Python data types.\n\n Positional arguments:\n out_parsed -- dictionary to update with parsed data and string keys.\n in_bss -- dictionary of integer keys and bytearray values.\n key -- key string to lookup (must be a variable name in libnl.... | 702 | false | Robpol86/libnl | _get | 7,931 | |
LDU_FT/pmacosta/pmisc/isnumber | LDU_FT | [
"<BEGIN>\n## `make_dir`",
"Create the directory of a fully qualified file name if it does not exist.",
" :param fname: File name\n :type fname: string",
" Equivalent to these Bash shell commands:",
" .. code-block:: bash",
" $ fname=\"${HOME}/mydir/myfile.txt\"\n $ dir=$(dirname... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isnumber API.
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 isnumber API.
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... | Test if the argument is a number (complex, float or integer).
:param obj: Object
:type obj: any
:rtype: boolean | "Test if the argument is a number (complex, float or integer).\n\n :param obj: Object\n :type obj: any\n\n :rtype: boolean" | 151 | false | pmacosta/pmisc | isnumber | 7,932 | |
LDU_FT/dr-leo/pandaSDMX/odo_register | LDU_FT | [
"<BEGIN>\n## `namedtuple`",
"Returns a new subclass of tuple with named fields.\n This is a patched version of collections.namedtuple from the stdlib.\n Unlike the latter, it accepts non-identifier strings as field names.\n All values are accessible through dict syntax. Fields whose names are\n identi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the odo_register API.
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 odo_register API.
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... | Enable conversion of .sdmx files with odo (http://odo.readthedocs.org).
Adds conversion from sdmx to PD.DataFrame to odo graph.
Note that native discovery of sdmx files is not yet supported. odo will thus
convert to PD.DataFrame
and discover the data shape from there. | "Enable conversion of .sdmx files with odo (http://odo.readthedocs.org).\n Adds conversion from sdmx to PD.DataFrame to odo graph.\n Note that native discovery of sdmx files is not yet supported. odo will thus \n convert to PD.DataFrame\n and discover the data shape from there." | 86 | false | dr-leo/pandaSDMX | odo_register | 7,933 | |
LDU_FT/yougov/vr.common/_retry | LDU_FT | [
"<BEGIN>\n## `str_to_pool`",
"Given a string containing an nginx upstream section, return the pool name\n and list of nodes.\n<END>",
"<BEGIN>\n## `get_buildfile_path`",
"Path to which a build tarball should be downloaded.\n<END>",
"<BEGIN>\n## `_retry`",
"Try to call f(*args, **kwargs) \"n\" times bef... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _retry API.
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 _retry API.
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 ... | Try to call f(*args, **kwargs) "n" times before giving up. Wait
2**n seconds before retries. | "Try to call f(*args, **kwargs) \"n\" times before giving up. Wait\n 2**n seconds before retries." | 49 | false | yougov/vr.common | _retry | 7,934 | |
LDU_FT/thecynic/pylutron/__do_query_state | LDU_FT | [
"<BEGIN>\n## `_send_locked`",
"Sends the specified command to the lutron controller.",
" Assumes self._lock is held.\n<END>",
"<BEGIN>\n## `_do_login_locked`",
"Executes the login procedure (telnet) as well as setting up some\n connection defaults like turning off the prompt, etc.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __do_query_state API.
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 __do_query_state API.
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 to perform the actual query for the current LED state. | "Helper to perform the actual query for the current LED state." | 73 | false | thecynic/pylutron | __do_query_state | 7,935 | |
LDU_FT/tkf/rash/add_and_matches | 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 add_and_matches API.
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 add_and_matches API.
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... | Add AND conditions to match to `params`.
:type matcher: str or callable
:arg matcher: if `str`, `matcher.format` is used.
:type lhs: str
:arg lhs: the first argument to `matcher`.
:type params: list
:arg params: each element should be able to feed into sqlit... | "Add AND conditions to match to `params`.\n\n :type matcher: str or callable\n :arg matcher: if `str`, `matcher.format` is used.\n :type lhs: str\n :arg lhs: the first argument to `matcher`.\n :type params: list\n :arg params: each element should be able to feed in... | 142 | false | tkf/rash | add_and_matches | 7,936 | |
LDU_FT/hayd/pep8radius/fix_code | LDU_FT | [
"<BEGIN>\n## `fix_file`",
"Calls fix_code on the source code from the passed in file over the given\n line_ranges.",
" - If diff then this returns the udiff for the changes, otherwise\n returns the fixed code.\n - If in_place the changes are written to the file.\n<END>",
"<BEGIN>\n## `fix_code`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_code API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_code API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Apply autopep8 over the line_ranges, returns the corrected code.
Note: though this is not checked for line_ranges should not overlap.
Example
-------
>>> code = "def f( x ):\\n if True:\\n return 2*x"
>>> print(fix_code(code, [(1, 1), (3, 3)]))
def f(x):
if True:
return 2... | "Apply autopep8 over the line_ranges, returns the corrected code.\n\n Note: though this is not checked for line_ranges should not overlap.\n\n Example\n -------\n >>> code = \"def f( x ):\\\\n if True:\\\\n return 2*x\"\n >>> print(fix_code(code, [(1, 1), (3, 3)]))\n def f(x):\n if True:\n ... | 57 | false | hayd/pep8radius | fix_code | 7,937 | |
LDU_FT/pyhys/minimalmodbus/read_long | LDU_FT | [
"<BEGIN>\n## `_checkSetpointValue`",
"Check that the given setpointvalue is valid.",
" Args:\n * setpointvalue (numerical): The setpoint value to be checked. Must be positive.\n * maxvalue (numerical): Upper limit for setpoint value. Must be positive.",
" Raises:\n TypeError, ValueE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_long API.
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 read_long API.
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... | Read a long integer (32 bits) from the slave.
Long integers (32 bits = 4 bytes) are stored in two consecutive 16-bit registers in the slave.
Args:
* registeraddress (int): The slave register start address (use decimal numbers, not hex).
* functioncode (int): Modbus function cod... | "Read a long integer (32 bits) from the slave.\n\n Long integers (32 bits = 4 bytes) are stored in two consecutive 16-bit registers in the slave.\n\n Args:\n * registeraddress (int): The slave register start address (use decimal numbers, not hex).\n * functioncode (int): Modbus funct... | 357 | false | pyhys/minimalmodbus | read_long | 7,938 | |
LDU_FT/google/neuroglancer/members | LDU_FT | [
"<BEGIN>\n## `stop`",
"Stop the server, invalidating any viewer URLs.",
" This allows any previously-referenced data arrays to be garbage collected if there are no other\n references to them.\n<END>",
"<BEGIN>\n## `defer_callback`",
"Register `callback` to run in the server event loop thread.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the members API.
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 members API.
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... | Yields the members of the equivalence class containing `x`. | "Yields the members of the equivalence class containing `x`." | 46 | false | google/neuroglancer | members | 7,939 | |
LDU_FT/jwhitlock/drf-cached-instances/choice_default_invalidator | LDU_FT | [
"<BEGIN>\n## `user_default_serializer`",
"Convert a User to a cached instance representation.\n<END>",
"<BEGIN>\n## `user_default_add_related_pks`",
"Add related primary keys to a User instance.\n<END>",
"<BEGIN>\n## `group_default_invalidator`",
"Invalidated cached items when the Group changes.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choice_default_invalidator 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 choice_default_invalidator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Invalidated cached items when the Choice changes. | "Invalidated cached items when the Choice changes." | 75 | false | jwhitlock/drf-cached-instances | choice_default_invalidator | 7,940 | |
LDU_FT/delfick/aws_syncr/validate_account | LDU_FT | [
"<BEGIN>\n## `catch_boto_400`",
"Turn a BotoServerError 400 into a BadAmazon\n<END>",
"<BEGIN>\n## `change`",
"Print out a change and then do the change if not doing a dry run\n<END>",
"<BEGIN>\n## `compare_two_documents`",
"Compare two documents by converting them into json objects and back to strings an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_account API.
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 validate_account API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Make sure we are able to connect to the right account | "Make sure we are able to connect to the right account" | 40 | false | delfick/aws_syncr | validate_account | 7,941 | |
LDU_FT/kata198/python-subprocess2/runGetOutput | LDU_FT | [
"<BEGIN>\n## `runGetResults`",
"runGetResults - Simple method to run a command and return the results of the execution as a dict.",
" @param cmd <str/list> - String of command and arguments, or list of command and arguments",
" If cmd is a string, the command will be executed as if r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the runGetOutput API.
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 runGetOutput API.
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... | runGetOutput - Simply runs a command and returns the output as a string. Use #runGetResults if you need something more complex.
@param cmd <str/list> - String of command and arguments, or list of command and arguments
If cmd is a string, the command will be executed as if ran exactly as wr... | "runGetOutput - Simply runs a command and returns the output as a string. Use #runGetResults if you need something more complex.\n\n @param cmd <str/list> - String of command and arguments, or list of command and arguments\n\n If cmd is a string, the command will be executed as if ran exactly ... | 56 | false | kata198/python-subprocess2 | runGetOutput | 7,942 | |
LDU_FT/brunato/lograptor/apptags | LDU_FT | [
"<BEGIN>\n## `make_text`",
"Make the text representation of a report data element.\n<END>",
"<BEGIN>\n## `make_html`",
"Make the text representation of a report element as html.\n<END>",
"<BEGIN>\n## `make_csv`",
"Get the text representation of a report element as csv.\n<END>",
"<BEGIN>\n## `make_format... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apptags API.
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 apptags API.
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... | Map from log app-name to an application. | "Map from log app-name to an application." | 121 | false | brunato/lograptor | apptags | 7,943 | |
LDU_FT/CTPUG/wafer/check_schedule | LDU_FT | [
"<BEGIN>\n## `build_object`",
"Override django-bakery to skip profiles that raise 404\n<END>",
"<BEGIN>\n## `generate_schedule`",
"Helper function which creates an ordered list of schedule days\n<END>",
"<BEGIN>\n## `get_context_data`",
"Allow adding a 'render_description' parameter\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_schedule API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_schedule API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Helper routine to easily test if the schedule is valid | "Helper routine to easily test if the schedule is valid" | 72 | false | CTPUG/wafer | check_schedule | 7,944 | |
LDU_FT/fuzeman/trakt.py/to_dict | LDU_FT | [
"<BEGIN>\n## `lookup`",
"Lookup items by their Trakt, IMDB, TMDB, TVDB, or TVRage ID.",
" **Note:** If you lookup an identifier without a :code:`media` type specified it\n might return multiple items if the :code:`service` is not globally unique.",
" :param id: Identifier value to lookup\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Dump episode to a dictionary.
:return: Episode dictionary
:rtype: :class:`~python:dict` | "Dump episode to a dictionary.\n\n :return: Episode dictionary\n :rtype: :class:`~python:dict`" | 227 | false | fuzeman/trakt.py | to_dict | 7,945 | |
LDU_FT/manahl/arctic/multicolumn_store_with_uncompressed_write | LDU_FT | [
"<BEGIN>\n## `delete`",
"Delete all chunks for a symbol.",
" Which are, for the moment, fully contained in the passed in\n date_range.",
" Parameters\n ----------\n symbol : `str`\n symbol name for the item\n date_range : `date.DateRange`\n DateR... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multicolumn_store_with_uncompressed_write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indica... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multicolumn_store_with_uncompressed_write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indica... | The database state created by this fixture is equivalent to the following operations using arctic 1.40
or previous:
arctic.initialize_library('arctic_test.TEST', m.VERSION_STORE, segment='month')
library = arctic.get_library('arctic_test.TEST')
df = pd.DataFrame([[1,2], [3,4]], index=['x','... | "The database state created by this fixture is equivalent to the following operations using arctic 1.40\n or previous:\n\n arctic.initialize_library('arctic_test.TEST', m.VERSION_STORE, segment='month')\n library = arctic.get_library('arctic_test.TEST')\n df = pd.DataFrame([[1,2], [3,4]], index=... | 429 | false | manahl/arctic | multicolumn_store_with_uncompressed_write | 7,946 | |
LDU_FT/mathandy/svgpathtools/point_to_t | LDU_FT | [
"<BEGIN>\n## `big_bounding_box`",
"Finds a BB containing a collection of paths, Bezier path segments, and\n points (given as complex numbers).\n<END>",
"<BEGIN>\n## `disvg`",
"Takes in a list of paths and creates an SVG file containing said paths.\n REQUIRED INPUTS:\n :param paths - a list of pat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the point_to_t API.
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 point_to_t API.
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... | If the point lies on the Arc, returns its `t` parameter.
If the point does not lie on the Arc, returns None.
This function only works on Arcs with rotation == 0.0 | "If the point lies on the Arc, returns its `t` parameter.\n If the point does not lie on the Arc, returns None.\n This function only works on Arcs with rotation == 0.0" | 252 | false | mathandy/svgpathtools | point_to_t | 7,947 | |
LDU_FT/Chilipp/docrep/keep_types_s | LDU_FT | [
"<BEGIN>\n## `safe_modulo`",
"Safe version of the modulo operation (%) of strings",
" Parameters\n ----------\n s: str\n string to apply the modulo operation with\n meta: dict or tuple\n meta informations to insert (usually via ``s % meta``)\n checked: {'KEY', 'VALUE'}, optional\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keep_types_s API.
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 keep_types_s API.
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... | Keep the given types from a string
Same as :meth:`keep_types` but does not use the :attr:`params`
dictionary
Parameters
----------
s: str
The string of the returns like section
types: list of str
The type identifiers to keep
Returns
... | "Keep the given types from a string\n\n Same as :meth:`keep_types` but does not use the :attr:`params`\n dictionary\n\n Parameters\n ----------\n s: str\n The string of the returns like section\n types: list of str\n The type identifiers to keep\n\n ... | 136 | false | Chilipp/docrep | keep_types_s | 7,948 | |
LDU_FT/Garee/pytodoist/_update_notification_settings | LDU_FT | [
"<BEGIN>\n## `login`",
"Login to Todoist.",
" :param email: The user's email address.\n :type email: str\n :param password: The user's password.\n :type password: str\n :return: The HTTP response to the request.\n :rtype: :class:`requests.Response`",
" >>> from... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_notification_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_notification_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Update the settings of a an events notifications.
:param event: Update the notification settings of this event.
:type event: str
:param service: The notification service to update.
:type service: str
:param should_notify: Notify if this is ``1``.
:type should_notify: int | "Update the settings of a an events notifications.\n\n :param event: Update the notification settings of this event.\n :type event: str\n :param service: The notification service to update.\n :type service: str\n :param should_notify: Notify if this is ``1``.\n :type should_not... | 237 | false | Garee/pytodoist | _update_notification_settings | 7,949 | |
LDU_FT/aio-libs/aiohttp-devtools/modify_request | LDU_FT | [
"<BEGIN>\n## `modify_main_app`",
"Modify the app we're serving to make development easier, eg.\n * modify responses to add the livereload snippet\n * set ``static_root_url`` on the app\n * setup the debug toolbar\n<END>",
"<BEGIN>\n## `src_reload`",
"prompt each connected browser to reload by sending... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Apply common path conventions eg. / > /index.html, /foobar > /foobar.html | "Apply common path conventions eg. / > /index.html, /foobar > /foobar.html" | 32 | false | aio-libs/aiohttp-devtools | modify_request | 7,950 | |
LDU_FT/nsavch/python-xonotic-db/get | LDU_FT | [
"<BEGIN>\n## `parse_line`",
"Parse a line from database\n :param line: line to parse\n<END>",
"<BEGIN>\n## `save`",
"Write database to a file. If a file with the specified name exists it's backed up\n :param file_path: file path\n<END>",
"<BEGIN>\n## `filter`",
"Filter database key by patter... | 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... | Print a value for the specified key. If key is not found xon_db exists with code 1. | "Print a value for the specified key. If key is not found xon_db exists with code 1." | 20 | false | nsavch/python-xonotic-db | get | 7,951 | |
LDU_FT/meowklaski/custom_inherit/parse_numpy_doc | LDU_FT | [
"<BEGIN>\n## `parse_napoleon_doc`",
"Extract the text from the various sections of a numpy-formatted docstring.",
" Parameters\n ----------\n doc: Union[str, None]\n The docstring to parse.",
" style: str\n 'google' or 'numpy'",
" Returns\n ---... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_numpy_doc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_numpy_doc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Extract the text from the various sections of a numpy-formatted docstring.
Parameters
----------
doc: Union[str, None]
Returns
-------
OrderedDict[str, Union[None,str]]
The extracted numpy-styled docstring sections. | "Extract the text from the various sections of a numpy-formatted docstring.\n\n Parameters\n ----------\n doc: Union[str, None]\n\n Returns\n -------\n OrderedDict[str, Union[None,str]]\n The extracted numpy-styled docstring sections." | 54 | false | meowklaski/custom_inherit | parse_numpy_doc | 7,952 | |
LDU_FT/deshima-dev/decode/ones | LDU_FT | [
"<BEGIN>\n## `xarrayfunc`",
"Make a function compatible with xarray.DataArray.",
" This function is intended to be used as a decorator like::",
" >>> @dc.xarrayfunc\n >>> def func(array):\n ... # do something\n ... return newarray\n >>>\n >>> result = func(... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ones API.
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 ones API.
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... | Create an array of given shape and type, filled with ones.
Args:
shape (sequence of ints): 2D shape of the array.
dtype (data-type, optional): Desired data-type for the array.
kwargs (optional): Other arguments of the array (*coords, attrs, and name).
Returns:
array (decode.arr... | "Create an array of given shape and type, filled with ones.\n\n Args:\n shape (sequence of ints): 2D shape of the array.\n dtype (data-type, optional): Desired data-type for the array.\n kwargs (optional): Other arguments of the array (*coords, attrs, and name).\n\n Returns:\n array (d... | 137 | false | deshima-dev/decode | ones | 7,953 | |
LDU_FT/transmogrifier/pidigits/piGenGosper | LDU_FT | [
"<BEGIN>\n## `getTauLambert`",
"Returns a list containing first n digits of Pi\n<END>",
"<BEGIN>\n## `piGenLeibniz`",
"A generator function that yields the digits of Pi\n<END>",
"<BEGIN>\n## `getPiLeibniz`",
"Returns a list containing first n digits of Pi\n<END>",
"<BEGIN>\n## `piGenGosper`",
"A gener... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the piGenGosper API.
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 piGenGosper API.
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... | A generator function that yields the digits of Pi | "A generator function that yields the digits of Pi" | 14 | false | transmogrifier/pidigits | piGenGosper | 7,954 | |
LDU_FT/mdiener/grace/p_iteration_statement_5 | LDU_FT | [
"<BEGIN>\n## `visit`",
"Returns a generator that walks all children recursively.\n<END>",
"<BEGIN>\n## `list_js_files`",
"Generator for all JavaScript files in the directory, recursively",
" >>> 'examples/module.js' in list(list_js_files('examples'))\n True\n<END>",
"<BEGIN>\n## `save_file`",
"Sav... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_iteration_statement_5 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 p_iteration_statement_5 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | iteration_statement : \
FOR LPAREN VAR identifier IN expr RPAREN statement | "iteration_statement : \\\n FOR LPAREN VAR identifier IN expr RPAREN statement" | 188 | false | mdiener/grace | p_iteration_statement_5 | 7,955 | |
LDU_FT/rbarrois/confutils/get | LDU_FT | [
"<BEGIN>\n## `update`",
"Replace all lines matching `old_line` with `new_line`.",
" If ``once`` is set to True, remove only the first instance.\n<END>",
"<BEGIN>\n## `update`",
"Replace all lines matching `old_line` with `new_line`.",
" If ``once`` is set to True, remove only the first insta... | 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 a value from its key.
Retrieval steps are:
1) Normalize the key
2) For each option group:
a) Retrieve the value at that key
b) If no value exists, continue
c) If the value is an instance of 'Default', continue
d) Otherwise, return the value
... | "Retrieve a value from its key.\n\n Retrieval steps are:\n 1) Normalize the key\n 2) For each option group:\n a) Retrieve the value at that key\n b) If no value exists, continue\n c) If the value is an instance of 'Default', continue\n d) Otherwise, return th... | 42 | false | rbarrois/confutils | get | 7,956 | |
LDU_FT/VIVelev/PyDojoML/entropy | LDU_FT | [
"<BEGIN>\n## `accuracy_score`",
"Calculates the fraction of the correctly\n classified samples over all.",
" Parameters:\n -----------\n y : vector, shape (n_samples,)\n The target labels.",
" y_pred : vector, shape (n_samples,)\n The predicted labels.",
" Returns:\n --------\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the entropy API.
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 entropy API.
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 Entropy Impurity for a list of samples. | "Calculate the Entropy Impurity for a list of samples." | 170 | false | VIVelev/PyDojoML | entropy | 7,957 | |
LDU_FT/google/apitools/_JsonValueToPythonValue | LDU_FT | [
"<BEGIN>\n## `_urljoin`",
"Custom urljoin replacement supporting : before / in url.\n<END>",
"<BEGIN>\n## `_SetCredentials`",
"Fetch credentials, and set them for this client.",
" Note that we can't simply return credentials, since creating them\n may involve side-effecting self.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _JsonValueToPythonValue 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 _JsonValueToPythonValue API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Convert the given JsonValue to a json string. | "Convert the given JsonValue to a json string." | 629 | false | google/apitools | _JsonValueToPythonValue | 7,958 | |
LDU_FT/agile-geoscience/welly/add_deviation | LDU_FT | [
"<BEGIN>\n## `sharey`",
"Shared axes limits without shared locators, ticks, etc.",
" By Joe Kington\n<END>",
"<BEGIN>\n## `fix_ticks`",
"Center ticklabels and hide any outside axes limits.",
" By Joe Kington\n<END>",
"<BEGIN>\n## `flatten_list`",
"Unpacks lists in a list:",
" [1, 2, [3,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_deviation API.
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_deviation API.
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... | Add a deviation survey to this instance, and try to compute a position
log from it. | "Add a deviation survey to this instance, and try to compute a position\n log from it." | 325 | false | agile-geoscience/welly | add_deviation | 7,959 | |
LDU_FT/jeffh/pyconstraints/satisfies_constraints | LDU_FT | [
"<BEGIN>\n## `extract_values`",
"Returns a tuple of the values that pertain to this constraint.",
" It simply filters all values to by the variables this constraint uses.\n<END>",
"<BEGIN>\n## `keys`",
"Returns all the keys this object can return proper values for.\n<END>",
"<BEGIN>\n## `values`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the satisfies_constraints 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 satisfies_constraints 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 True if the given solution is satisfied by all the constraints. | "Return True if the given solution is satisfied by all the constraints." | 30 | false | jeffh/pyconstraints | satisfies_constraints | 7,960 | |
LDU_FT/bwohlberg/sporco/ystep | LDU_FT | [
"<BEGIN>\n## `pyfftw_byte_aligned`",
"Construct a byte-aligned array for efficient use by :mod:`pyfftw`.\n This function is a wrapper for :func:`pyfftw.byte_align`",
" Parameters\n ----------\n array : ndarray\n Input array\n dtype : dtype, optional (default None)\n Output array dtype\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ystep API.
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 ystep API.
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... | r"""Minimise Augmented Lagrangian with respect to
:math:`\mathbf{y}`. | "r\"\"\"Minimise Augmented Lagrangian with respect to\n :math:`\\mathbf{y}`." | 1,237 | true | bwohlberg/sporco | ystep | 7,961 | |
LDU_FT/sastrarobotics/pyHerkulex/set_servo_speed | LDU_FT | [
"<BEGIN>\n## `connect`",
"Connect to the Herkulex bus",
" Connect to serial port to which Herkulex Servos are attatched",
" Args:\n portname (str): The serial port name\n baudrate (int): The serial port baudrate\n Raises:\n SerialException: Error occured while opening serial port... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_servo_speed API.
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 set_servo_speed API.
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... | Set the Herkulex in continuous rotation mode
Args:
goalspeed (int): the speed , range -1023 to 1023
led (int): the LED color
0x00 LED off
0x04 GREEN
0x08 BLUE
0x10 RED | "Set the Herkulex in continuous rotation mode\n\n Args:\n\n goalspeed (int): the speed , range -1023 to 1023\n led (int): the LED color\n 0x00 LED off\n 0x04 GREEN\n 0x08 BLUE\n 0x10 RED" | 102 | false | sastrarobotics/pyHerkulex | set_servo_speed | 7,962 | |
LDU_FT/tarbell-project/tarbell/render_file | LDU_FT | [
"<BEGIN>\n## `_get_or_create_config`",
"Get or create a Tarbell configuration directory.\n<END>",
"<BEGIN>\n## `slughifi`",
"High Fidelity slugify - slughifi.py, v 0.1",
" Examples :",
" >>> text = 'C\\'est déjà l\\'été.'",
" >>> slughifi(text)\n 'cest-deja-lete'",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Like :py:func:`read_file`, except that the file is rendered as a Jinja template
using the current context. If `absolute` is True, use absolute path, otherwise
path is assumed to be relative to Tarbell template root dir.
For example:
.. code-block:: html+jinja
<div class="chapter... | "Like :py:func:`read_file`, except that the file is rendered as a Jinja template \n using the current context. If `absolute` is True, use absolute path, otherwise \n path is assumed to be relative to Tarbell template root dir.\n \n For example:\n\n .. code-block:: html+jinja\n \n <div class... | 66 | false | tarbell-project/tarbell | render_file | 7,963 | |
LDU_FT/open-homeautomation/pknx/run_updater_in_background | LDU_FT | [
"<BEGIN>\n## `ip_to_array`",
"Convert a string representing an IPv4 address to 4 bytes.\n<END>",
"<BEGIN>\n## `int_to_array`",
"Convert an length byte integer to an array of bytes.\n<END>",
"<BEGIN>\n## `parse_group_address`",
"Parse KNX group addresses and return the address as an integer.",
" This ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_updater_in_background API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_updater_in_background API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Starts a thread that runs the updater in the background. | "Starts a thread that runs the updater in the background." | 80 | false | open-homeautomation/pknx | run_updater_in_background | 7,964 | |
LDU_FT/Equitable/trump/try_to_get | 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 try_to_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the try_to_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 extrac... | Gets a Symbol based on name, which may or may not exist.
Parameters
----------
symbol : str
Returns
-------
Symbol or None.
Note
----
Use .get(), if the symbol should exist, and an exception
is nee... | "Gets a Symbol based on name, which may or may not exist.\r\n \r\n Parameters\r\n ----------\r\n symbol : str\r\n \r\n Returns\r\n -------\r\n Symbol or None. \r\n \r\n Note\r\n ----\r\n Use .get(), if the symbol should exist, and an e... | 177 | false | Equitable/trump | try_to_get | 7,965 | |
LDU_FT/eisensheng/kaviar/kv_format_object | LDU_FT | [
"<BEGIN>\n## `_version_find_existing`",
"Returns set of existing versions in this repository. This\n information is backed by previously used version tags in git.\n Available tags are pulled from origin repository before.",
" :return:\n available versions\n :rtype:\n set\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kv_format_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kv_format_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Formats an object's attributes. Useful for object representation
implementation. Will skip methods or private attributes.
For more details see :func:`kv_format`.
:param o:
Object to format.
:param collections.Sequence keys:
Explicit list of attributes to format. ``None`` means all p... | "Formats an object's attributes. Useful for object representation\n implementation. Will skip methods or private attributes.\n\n For more details see :func:`kv_format`.\n\n :param o:\n Object to format.\n :param collections.Sequence keys:\n Explicit list of attributes to format. ``None`` me... | 27 | false | eisensheng/kaviar | kv_format_object | 7,966 | |
LDU_FT/mitodl/PyLmod/get_group_id | LDU_FT | [
"<BEGIN>\n## `unravel_sections`",
"Unravels section type dictionary into flat list of sections with\n section type set as an attribute.",
" Args:\n section_data(dict): Data return from py:method::get_sections",
" Returns:\n list: Flat list of sections with ``sectionT... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_group_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_group_id API.
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 group id based on uuid.
Args:
uuid (str): optional uuid. defaults to self.cuuid
Raises:
PyLmodUnexpectedData: No group data was returned.
requests.RequestException: Exception connection error
Returns:
int: numeric group id | "Get group id based on uuid.\n\n Args:\n uuid (str): optional uuid. defaults to self.cuuid\n\n Raises:\n PyLmodUnexpectedData: No group data was returned.\n requests.RequestException: Exception connection error\n\n Returns:\n int: numeric group id" | 190 | false | mitodl/PyLmod | get_group_id | 7,967 | |
LDU_FT/typemytype/booleanOperations/getData | LDU_FT | [
"<BEGIN>\n## `_prepPointsForSegments`",
"Move any off curves at the end of the contour\n to the beginning of the contour. This makes\n segmentation easier.\n<END>",
"<BEGIN>\n## `_reversePoints`",
"Reverse the points. This differs from the\n reversal point pen in RoboFab in that it doesn't\n worry... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getData API.
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 getData API.
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 list of normalized InputPoint objects
for the contour drawn with this pen. | "Return a list of normalized InputPoint objects\n for the contour drawn with this pen." | 24 | false | typemytype/booleanOperations | getData | 7,968 | |
LDU_FT/roboogle/gtkmvc3/setup_column | LDU_FT | [
"<BEGIN>\n## `__create_log_props`",
"Creates all the logical property.",
" The list of names of properties to be created is passed\n with frozenset log_props. The getter/setter information is\n taken from _{get,set}dict.",
" This method resolves also wildcards in names, and perform... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_column API.
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 setup_column API.
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... | Set up a :class:`TreeView` to display attributes of Python objects
stored in its :class:`TreeModel`.
This assumes that :class:`TreeViewColumn` instances have already
been added and :class:`CellRenderer` instances packed into them.
Both can be done in Glade.
*model* is the insta... | "Set up a :class:`TreeView` to display attributes of Python objects\n stored in its :class:`TreeModel`.\n\n This assumes that :class:`TreeViewColumn` instances have already\n been added and :class:`CellRenderer` instances packed into them.\n Both can be done in Glade.\n\n *model* is t... | 300 | false | roboogle/gtkmvc3 | setup_column | 7,969 | |
LDU_FT/pauleveritt/kaybee/resource_references | LDU_FT | [
"<BEGIN>\n## `render`",
"Given a Sphinx builder and context with sphinx_app in it,\n generate HTML\n<END>",
"<BEGIN>\n## `in_navitem`",
"Given href of nav item, determine if resource is in it\n<END>",
"<BEGIN>\n## `is_published`",
"Return true if this resource has published date in the past\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_references API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_references API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Resolve and return reference resources pointed to by object
Fields in resource.props can flag that they are references by
using the references type. This method scans the model,
finds any fields that are references, and returns the
reference resources pointed to by those references.... | "Resolve and return reference resources pointed to by object\n\n Fields in resource.props can flag that they are references by\n using the references type. This method scans the model,\n finds any fields that are references, and returns the\n reference resources pointed to by those refer... | 71 | false | pauleveritt/kaybee | resource_references | 7,970 | |
LDU_FT/blue-yonder/tsfresh/fit | LDU_FT | [
"<BEGIN>\n## `_function_with_partly_reduce`",
"Small helper function to call a function (map_function)\n on a list of data chunks (chunk_list) and convert the results into\n a flattened list.",
" This function is used to send chunks of data with a size larger than 1 to\n the workers in parallel and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Extract the information, which of the features are relevent using the given target.
For more information, please see the :func:`~tsfresh.festure_selection.festure_selector.check_fs_sig_bh`
function. All columns in the input data sample are treated as feature. The index of all
rows in X must be ... | "Extract the information, which of the features are relevent using the given target.\n\n For more information, please see the :func:`~tsfresh.festure_selection.festure_selector.check_fs_sig_bh`\n function. All columns in the input data sample are treated as feature. The index of all\n rows in X mus... | 615 | false | blue-yonder/tsfresh | fit | 7,971 | |
LDU_FT/facelessuser/backrefs/not_explicitly_defined | LDU_FT | [
"<BEGIN>\n## `download_unicodedata`",
"Download Unicode data scripts and blocks.\n<END>",
"<BEGIN>\n## `get_unicodedata`",
"Ensure we have Unicode data to generate Unicode tables.\n<END>",
"<BEGIN>\n## `posix_props`",
"Insert POSIX properties.",
" Posix style properties are not as forgiving\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the not_explicitly_defined 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 not_explicitly_defined API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Compose a table with the specified entry name of values not explicitly defined. | "Compose a table with the specified entry name of values not explicitly defined." | 75 | false | facelessuser/backrefs | not_explicitly_defined | 7,972 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.