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/faide/py3o.template/__prepare_namespaces | LDU_FT | [
"<BEGIN>\n## `detect_keep_boundary`",
"a helper to inspect a link and see if we should keep the link boundary\n<END>",
"<BEGIN>\n## `move_siblings`",
"a helper function that will replace a start/end node pair\n by a new containing element, effectively moving all in-between siblings\n This is particularl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __prepare_namespaces 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 __prepare_namespaces API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | create proper namespaces for our document | "create proper namespaces for our document" | 46 | false | faide/py3o.template | __prepare_namespaces | 39,473 | |
LDU_FT/opencobra/memote/find_reactions_with_identical_genes | LDU_FT | [
"<BEGIN>\n## `validate`",
"Use a defined schema to validate the medium table format.\n<END>",
"<BEGIN>\n## `apply`",
"Set the defined medium on the given model.\n<END>",
"<BEGIN>\n## `find_transported_elements`",
"Return a dictionary showing the amount of transported elements of a rxn.",
" Collects t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_reactions_with_identical_genes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_reactions_with_identical_genes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | Return reactions that have identical genes.
Identify duplicate reactions globally by checking if any
two reactions have the same genes.
This can be useful to curate merged models or to clean-up bulk model
modifications, but also to identify promiscuous enzymes.
The heuristic compares reactions in a... | "Return reactions that have identical genes.\n\n Identify duplicate reactions globally by checking if any\n two reactions have the same genes.\n This can be useful to curate merged models or to clean-up bulk model\n modifications, but also to identify promiscuous enzymes.\n The heuristic compares reactio... | 508 | false | opencobra/memote | find_reactions_with_identical_genes | 39,474 | |
LDU_FT/castelao/oceansdb/extract | LDU_FT | [
"<BEGIN>\n## `cropIndices`",
"Return the indices to crop dataset",
" Assuming that the dataset have the dimensions given by\n dims, this function return the indices to conform with\n the given coordinates (lat, lon, ...)\n<END>",
"<BEGIN>\n## `dbsource`",
"Return which file(s) to us... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract API.
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 extract API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | For now only the nearest value
For now only for one position, not an array of positions
longitude 0-360 | "For now only the nearest value\n For now only for one position, not an array of positions\n longitude 0-360" | 39 | false | castelao/oceansdb | extract | 39,475 | |
LDU_FT/pmacosta/pexdoc/_merge_cdicts | LDU_FT | [
"<BEGIN>\n## `func`",
"r\"\"\"\n Print your name.",
" :param name: Name to print\n :type name: string",
" .. [[[cog cog.out(exobj.get_sphinx_autodoc(width=69))]]]\n .. [[[end]]]\n<END>",
"<BEGIN>\n## `get_function_args`",
"Return tuple of the function argument names in the order of the fun... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _merge_cdicts API.
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 _merge_cdicts API.
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... | Merge callable look-up tables from two objects. | "Merge callable look-up tables from two objects." | 220 | false | pmacosta/pexdoc | _merge_cdicts | 39,476 | |
LDU_FT/willkg/socorro-siggen/_do_generate | LDU_FT | [
"<BEGIN>\n## `_get_file_content`",
"Return a tuple, each value being a line of the source file.",
" Remove empty lines and comments (lines starting with a '#').\n<END>",
"<BEGIN>\n## `main`",
"Takes crash data via stdin and generates a Socorro signature\n<END>",
"<BEGIN>\n## `convert_to_crash_data`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _do_generate API.
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 _do_generate API.
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... | each element of signatureList names a frame in the crash stack; and is:
- a prefix of a relevant frame: Append this element to the signature
- a relevant frame: Append this element and stop looking
- irrelevant: Append this element only after seeing a prefix frame
The signature is ... | "each element of signatureList names a frame in the crash stack; and is:\n - a prefix of a relevant frame: Append this element to the signature\n - a relevant frame: Append this element and stop looking\n - irrelevant: Append this element only after seeing a prefix frame\n The signatur... | 66 | false | willkg/socorro-siggen | _do_generate | 39,477 | |
LDU_FT/crate/crash/_normalize_tabular_data | LDU_FT | [
"<BEGIN>\n## `_padleft`",
"Flush right.",
" >>> _padleft(6, '\\u044f\\u0439\\u0446\\u0430') == ' \\u044f\\u0439\\u0446\\u0430'\n True\n<END>",
"<BEGIN>\n## `_visible_width`",
"Visible width of a printed string. ANSI color codes are removed.",
" >>> _visible_width('\\x1b[31mhello\\x1b[0m'), _visi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _normalize_tabular_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _normalize_tabular_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Transform a supported data type to a list of lists, and a list of headers.
Supported tabular data types:
* list-of-lists or another iterable of iterables
* list of named tuples (usually used with headers="keys")
* list of dicts (usually used with headers="keys")
* list of OrderedDicts (usually ... | "Transform a supported data type to a list of lists, and a list of headers.\n\n Supported tabular data types:\n\n * list-of-lists or another iterable of iterables\n\n * list of named tuples (usually used with headers=\"keys\")\n\n * list of dicts (usually used with headers=\"keys\")\n\n * list of Ordered... | 90 | false | crate/crash | _normalize_tabular_data | 39,478 | |
LDU_FT/RaRe-Technologies/smart_open/seek | LDU_FT | [
"<BEGIN>\n## `extract_kwargs`",
"Extract keyword argument documentation from a function's docstring.",
" Parameters\n ----------\n docstring: str\n The docstring to extract keyword arguments from.",
" Returns\n -------\n list of (str, str, list str)",
" str\n The name of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seek API.
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 seek API.
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... | Seek to the specified position.
:param int offset: The offset in bytes.
:param int whence: Where the offset is from.
Returns the position after seeking. | "Seek to the specified position.\n\n :param int offset: The offset in bytes.\n :param int whence: Where the offset is from.\n\n Returns the position after seeking." | 150 | false | RaRe-Technologies/smart_open | seek | 39,479 | |
LDU_FT/twidi/py-dataql/can_solve | LDU_FT | [
"<BEGIN>\n## `EntryPoints`",
"Returns an object to use as entry point when calling ``registry.solve_resource``.",
" When calling ``registry.solve_resource`` on a \"root\" resource, we don't have any value.\n This function will create a object to use as a first value and is used to specify which\n entry... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_solve API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_solve API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Tells if the solver is able to resolve the given filter.
Arguments
---------
filter_ : subclass of dataql.resources.BaseFilter
The subclass or ``BaseFilter`` to check if it is solvable by the current solver class.
Returns
-------
boolean
``True``... | "Tells if the solver is able to resolve the given filter.\n\n Arguments\n ---------\n filter_ : subclass of dataql.resources.BaseFilter\n The subclass or ``BaseFilter`` to check if it is solvable by the current solver class.\n\n Returns\n -------\n boolean\n ... | 210 | false | twidi/py-dataql | can_solve | 39,480 | |
LDU_FT/jaraco/keyrings.alt/set_password | LDU_FT | [
"<BEGIN>\n## `_ensure_file_path`",
"Ensure the storage path exists.\n If it doesn't, create it with \"go-rwx\" permissions.\n<END>",
"<BEGIN>\n## `delete_password`",
"Delete the password for the username of the service.\n<END>",
"<BEGIN>\n## `get_password`",
"Get password of the username for the se... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_password API.
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 set_password API.
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 password for the username of the service | "Set password for the username of the service" | 43 | false | jaraco/keyrings.alt | set_password | 39,481 | |
LDU_FT/bovee/Aston/parse_ion_string | LDU_FT | [
"<BEGIN>\n## `simple_integrate`",
"Integrate each peak naively; without regard to overlap.",
" This is used as the terminal step by most of the other integrators.\n<END>",
"<BEGIN>\n## `drop_integrate`",
"Resolves overlap by breaking at the minimum value.\n<END>",
"<BEGIN>\n## `_integrate_mpwrap`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_ion_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_ion_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Recursive string parser that handles "ion" strings. | "Recursive string parser that handles \"ion\" strings." | 89 | false | bovee/Aston | parse_ion_string | 39,482 | |
LDU_FT/psd-tools/psd-tools/bbox | LDU_FT | [
"<BEGIN>\n## `open`",
"Open the smart object as binary IO.",
" :param external_dir: Path to the directory of the external file.",
" Example::",
" with layer.smart_object.open() as f:\n data = f.read()\n<END>",
"<BEGIN>\n## `data`",
"Embedded file content, or empty... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bbox API.
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 bbox API.
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... | Minimal bounding box that contains all the visible layers.
Use :py:attr:`~psd_tools.api.psd_image.PSDImage.viewbox` to get
viewport bounding box. When the psd is empty, bbox is equal to the
canvas bounding box.
:return: (left, top, right, bottom) `tuple`. | "Minimal bounding box that contains all the visible layers.\n\n Use :py:attr:`~psd_tools.api.psd_image.PSDImage.viewbox` to get\n viewport bounding box. When the psd is empty, bbox is equal to the\n canvas bounding box.\n\n :return: (left, top, right, bottom) `tuple`." | 173 | false | psd-tools/psd-tools | bbox | 39,483 | |
LDU_FT/samluescher/django-media-tree/get_object | LDU_FT | [
"<BEGIN>\n## `i18n_javascript`",
"Displays the i18n JavaScript that the Django admin requires.",
" This takes into account the USE_I18N setting. If it's set to False, the\n generated JavaScript will be leaner and faster.\n<END>",
"<BEGIN>\n## `file_links`",
"Turns a (optionally nested) list of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns the object the view is displaying.
By default this requires `self.queryset` and a `pk` or `path` argument
in the URLconf, but subclasses can override this to return any object. | "Returns the object the view is displaying.\n\n By default this requires `self.queryset` and a `pk` or `path` argument\n in the URLconf, but subclasses can override this to return any object." | 96 | false | samluescher/django-media-tree | get_object | 39,484 | |
LDU_FT/openstack/networking-arista/delete_instance_if_removed | LDU_FT | [
"<BEGIN>\n## `synchronize`",
"Synchronizes Router DB from Neturon DB with EOS.",
" Walks through the Neturon Db and ensures that all the routers\n created in Netuton DB match with EOS. After creating appropriate\n routers, it ensures to add interfaces as well.\n Uses idempotent prope... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_instance_if_removed 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 delete_instance_if_removed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Enqueue instance delete if it's no longer in the db | "Enqueue instance delete if it's no longer in the db" | 213 | false | openstack/networking-arista | delete_instance_if_removed | 39,485 | |
LDU_FT/koszullab/instaGRAAL/plot_info_frags | LDU_FT | [
"<BEGIN>\n## `estimate_parameters_rippe`",
"estimation by least square optimization of Rippe parameters on the\n experimental data\n :param max_dist_kb:\n :param size_bin_kb:\n<END>",
"<BEGIN>\n## `estimate_parameters`",
"estimation by least square optimization of Rippe parameters on the\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_info_frags API.
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 plot_info_frags API.
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... | A crude way to visualize new scaffolds according to their origin on the
initial scaffolding. Each scaffold spawns a new plot. Orientations are
represented by different colors. | "A crude way to visualize new scaffolds according to their origin on the\n initial scaffolding. Each scaffold spawns a new plot. Orientations are\n represented by different colors." | 116 | false | koszullab/instaGRAAL | plot_info_frags | 39,486 | |
LDU_FT/denniskempin/safetynet/_CollectArguments | LDU_FT | [
"<BEGIN>\n## `_ValidateValue`",
"Validate a single value with type_check.\n<END>",
"<BEGIN>\n## `_ParseTypeCheckString`",
"Convert string version of a type_check into a python instance.",
" Type checks can be either defined directly in python code or in a string.\n The syntax is exactly the same since we ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _CollectArguments API.
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 _CollectArguments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Merges positional and keyword arguments into a single dict. | "Merges positional and keyword arguments into a single dict." | 27 | false | denniskempin/safetynet | _CollectArguments | 39,487 | |
LDU_FT/secdev/scapy/compute_tls13_next_traffic_secrets | LDU_FT | [
"<BEGIN>\n## `_get_npcap_config`",
"Get a Npcap parameter matching key in the registry.",
" List:\n AdminOnly, DefaultFilterSettings, DltNull, Dot11Adapters, Dot11Support\n LoopbackAdapter, LoopbackSupport, NdisImPlatformBindingOptions, VlanSupport\n WinPcapCompatible\n<END>",
"<BEGIN>\n## `_exec_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_tls13_next_traffic_secrets API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_tls13_next_traffic_secrets API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | Ciphers key and IV are updated accordingly. | "Ciphers key and IV are updated accordingly." | 1,329 | true | secdev/scapy | compute_tls13_next_traffic_secrets | 39,488 | |
LDU_FT/MisterY/gnucash-portfolio/database_path | LDU_FT | [
"<BEGIN>\n## `get_next_occurrence`",
"Calculates the next occurrence date for scheduled transaction.\n Mimics the recurrenceNextInstance() function from GnuCash.\n Still not fully complete but handles the main cases I use.\n<END>",
"<BEGIN>\n## `handle_friday`",
"Extracted the calculation for when the n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the database_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the database_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Full database path. Includes the default location + the database filename. | "Full database path. Includes the default location + the database filename." | 157 | false | MisterY/gnucash-portfolio | database_path | 39,489 | |
LDU_FT/thiderman/doge/shuffle | LDU_FT | [
"<BEGIN>\n## `get`",
"Get one item. This will rotate the deque one step. Repeated gets will\n return different items.\n<END>",
"<BEGIN>\n## `shuffle`",
"Shuffle the deque",
" Deques themselves do not support this, so this will make all items into\n a list, shuffle that list, clear the d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shuffle API.
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 shuffle API.
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... | Shuffle the deque
Deques themselves do not support this, so this will make all items into
a list, shuffle that list, clear the deque, and then re-init the deque. | "Shuffle the deque\n\n Deques themselves do not support this, so this will make all items into\n a list, shuffle that list, clear the deque, and then re-init the deque." | 17 | false | thiderman/doge | shuffle | 39,490 | |
LDU_FT/sods/ods/olympic_sprints | LDU_FT | [
"<BEGIN>\n## `display_url`",
"Displaying URL in an IPython notebook to allow the user to click and check on information. With thanks to Fernando Perez for putting together the implementation!\n :param target: the url to display.\n :type target: string.\n<END>",
"<BEGIN>\n## `iframe_url`",
"Produce an if... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the olympic_sprints API.
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 olympic_sprints API.
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... | All olympics sprint winning times for multiple output prediction. | "All olympics sprint winning times for multiple output prediction." | 67 | false | sods/ods | olympic_sprints | 39,491 | |
LDU_FT/pmacosta/pmisc/ishex | 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 ishex API.
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 ishex API.
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... | Test if the argument is a string representing a valid hexadecimal digit.
:param obj: Object
:type obj: any
:rtype: boolean | "Test if the argument is a string representing a valid hexadecimal digit.\n\n :param obj: Object\n :type obj: any\n\n :rtype: boolean" | 151 | false | pmacosta/pmisc | ishex | 39,492 | |
LDU_FT/bearyinnovative/bearychat.py/get | LDU_FT | [
"<BEGIN>\n## `request`",
"Perform a request.",
" Args:\n request_method: HTTP method for this request.\n api_method: API method name for this request.\n *args: Extra arguments to pass to the request.\n **kwargs: Extra keyword arguments to pass to the request.",... | 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... | Sends a GET request
Returns:
RTMResponse | "Sends a GET request\n\n Returns:\n RTMResponse" | 68 | false | bearyinnovative/bearychat.py | get | 39,493 | |
LDU_FT/fracpete/python-weka-wrapper3/ndarray_to_instances | LDU_FT | [
"<BEGIN>\n## `main`",
"Runs a clusterer from the command-line. Calls JVM start/stop automatically.\n Use -h to see all options.\n<END>",
"<BEGIN>\n## `update_clusterer`",
"Updates the clusterer with the instance.",
" :param inst: the Instance to update the clusterer with\n :type inst: Insta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ndarray_to_instances 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 ndarray_to_instances API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Converts the numpy matrix into an Instances object and returns it.
:param array: the numpy ndarray to convert
:type array: numpy.darray
:param relation: the name of the dataset
:type relation: str
:param att_template: the prefix to use for the attribute names, "#" is the 1-based index,
... | "Converts the numpy matrix into an Instances object and returns it.\n\n :param array: the numpy ndarray to convert\n :type array: numpy.darray\n :param relation: the name of the dataset\n :type relation: str\n :param att_template: the prefix to use for the attribute names, \"#\" is the 1-based index,\n ... | 856 | false | fracpete/python-weka-wrapper3 | ndarray_to_instances | 39,494 | |
LDU_FT/newville/wxmplot/onRightUp | LDU_FT | [
"<BEGIN>\n## `display`",
"generic display, using imshow (default) or contour\n<END>",
"<BEGIN>\n## `update_image`",
"update image on panel, as quickly as possible\n<END>",
"<BEGIN>\n## `add_highlight_area`",
"add a highlighted area -- outline an arbitrarily shape --\n as if drawn from a Lasso event... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the onRightUp API.
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 onRightUp API.
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... | right button up: put back to cursor mode | "right button up: put back to cursor mode" | 169 | false | newville/wxmplot | onRightUp | 39,495 | |
LDU_FT/hozn/stravalib/get_seconds_until_next_quarter | LDU_FT | [
"<BEGIN>\n## `logged_in`",
"Method called by Strava (redirect) that includes parameters.\n - state\n - code\n - error\n<END>",
"<BEGIN>\n## `unmarshal`",
"Convert the value from parsed JSON structure to native python representation.",
" By default this will leave the value as-is since the JS... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_seconds_until_next_quarter 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 get_seconds_until_next_quarter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Returns the number of seconds until the next quarter of an hour. This is the short-term rate limit used by Strava.
:param now: A (utc) timestamp
:type now: arrow.arrow.Arrow
:return: the number of seconds until the next quarter, as int | "Returns the number of seconds until the next quarter of an hour. This is the short-term rate limit used by Strava.\n :param now: A (utc) timestamp\n :type now: arrow.arrow.Arrow\n :return: the number of seconds until the next quarter, as int" | 367 | false | hozn/stravalib | get_seconds_until_next_quarter | 39,496 | |
LDU_FT/gtaylor/django-athumb/is_valid_image | LDU_FT | [
"<BEGIN>\n## `create_thumbnail`",
"This serves as a really basic example of a thumbnailing method. You\n may want to implement your own logic, but this will work for\n simple cases.",
" :param Image image: This is your engine's ``Image`` object. For\n PIL it's PIL.Image.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid_image API.
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 is_valid_image API.
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... | Checks if the supplied raw data is valid image data.
:param str raw_data: A string representation of the image data.
:rtype: bool
:returns: ``True`` if ``raw_data`` is valid, ``False`` if not. | "Checks if the supplied raw data is valid image data.\n\n :param str raw_data: A string representation of the image data.\n :rtype: bool\n :returns: ``True`` if ``raw_data`` is valid, ``False`` if not." | 76 | false | gtaylor/django-athumb | is_valid_image | 39,497 | |
LDU_FT/csurfer/gitsuggest/__get_interests | LDU_FT | [
"<BEGIN>\n## `main`",
"Starting point for the program execution.\n<END>",
"<BEGIN>\n## `get_html`",
"Method to convert the repository list to a search results page.\n<END>",
"<BEGIN>\n## `to_html`",
"Method to convert the repository list to a search results page and\n write it to a HTML file.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_interests API.
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_interests API.
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... | Method to procure description of repositories the authenticated user
is interested in.
We currently attribute interest to:
1. The repositories the authenticated user has starred.
2. The repositories the users the authenticated user follows have
starred.
:return: List of... | "Method to procure description of repositories the authenticated user\n is interested in.\n\n We currently attribute interest to:\n 1. The repositories the authenticated user has starred.\n 2. The repositories the users the authenticated user follows have\n starred.\n\n :return... | 38 | false | csurfer/gitsuggest | __get_interests | 39,498 | |
LDU_FT/Carbonara-Project/Guanciale/dumptree | LDU_FT | [
"<BEGIN>\n## `idaunpack`",
"Special data packing format, used in struct definitions, and .id2 files\r",
" sdk functions: pack_dd etc.\n<END>",
"<BEGIN>\n## `binary_search`",
"Do a binary search in an array of objects ordered by '.key'\r",
" returns the largest index for which: a[i].key <= k\r",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dumptree API.
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 dumptree API.
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... | Walks entire tree, dumping all records on each page
in sequential order | "Walks entire tree, dumping all records on each page\r\n in sequential order" | 44 | false | Carbonara-Project/Guanciale | dumptree | 39,499 | |
LDU_FT/asphalt-framework/asphalt/get_resources | LDU_FT | [
"<BEGIN>\n## `run_application`",
"Configure logging and start the given root component in the default asyncio event loop.",
" Assuming the root component was started successfully, the event loop will continue running\n until the process is terminated.",
" Initializes the logging system first based on... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_resources API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_resources API.
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... | Retrieve all the resources of the given type in this context and its parents.
Any matching resource factories are also triggered if necessary.
:param type: type of the resources to get
:return: a set of all found resources of the given type | "Retrieve all the resources of the given type in this context and its parents.\n\n Any matching resource factories are also triggered if necessary.\n\n :param type: type of the resources to get\n :return: a set of all found resources of the given type" | 143 | false | asphalt-framework/asphalt | get_resources | 39,500 | |
LDU_FT/SiLab-Bonn/pyBAR/connect_cancel | LDU_FT | [
"<BEGIN>\n## `thunkify`",
"Make a function immediately return a function of no args which, when called,\n waits for the result, which will start being processed in another thread.\n Taken from https://wiki.python.org/moin/PythonDecoratorLibrary.\n<END>",
"<BEGIN>\n## `set_event_when_keyboard_interrupt`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_cancel API.
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 connect_cancel API.
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... | Run given functions when a run is cancelled. | "Run given functions when a run is cancelled." | 501 | false | SiLab-Bonn/pyBAR | connect_cancel | 39,501 | |
LDU_FT/erikrose/peep/_downloaded_filename | LDU_FT | [
"<BEGIN>\n## `activate`",
"Make a compatible version of pip importable. Raise a RuntimeError if we\n couldn't.\n<END>",
"<BEGIN>\n## `path_and_line`",
"Return the path and line number of the file from which an\n InstallRequirement came.\n<END>",
"<BEGIN>\n## `hashes_above`",
"Yield hashes from conti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _downloaded_filename 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 _downloaded_filename API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Download the package's archive if necessary, and return its
filename.
--no-deps is implied, as we have reimplemented the bits that would
ordinarily do dependency resolution. | "Download the package's archive if necessary, and return its\n filename.\n\n --no-deps is implied, as we have reimplemented the bits that would\n ordinarily do dependency resolution." | 53 | false | erikrose/peep | _downloaded_filename | 39,502 | |
LDU_FT/zrong/rookout/create_zip | LDU_FT | [
"<BEGIN>\n## `copy_from_dict`",
"从一个已经存在的 dict 中复制所有的值。",
" :param adict: 被复制的 dict。\n :type adict: dict\n :param parent: 复制到哪个父对象。\n 若为 None 则复制到 self 。\n :type parent: rookout.PYConf\n<END>",
"<BEGIN>\n## `dump`",
"将自身内容打印成字符串",
" :param bool hu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_zip API.
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 create_zip API.
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... | 创建一个 zip 文件。
:param list files: 要创建zip 的文件列表。
:param int trim_arcname: 若提供这个值,则使用 ZipFile.write(filename, filename[trim_arcname:]) 进行调用。
:returns: zip 文件的路径。
:rtype: str | "创建一个 zip 文件。\n\n :param list files: 要创建zip 的文件列表。\n :param int trim_arcname: 若提供这个值,则使用 ZipFile.write(filename, filename[trim_arcname:]) 进行调用。\n :returns: zip 文件的路径。\n :rtype: str" | 77 | false | zrong/rookout | create_zip | 39,503 | |
LDU_FT/ssato/python-anyconfig/is_paths | LDU_FT | [
"<BEGIN>\n## `_load_plugins_itr`",
".. seealso:: the doc of :func:`load_plugins`\n<END>",
"<BEGIN>\n## `select_by_key`",
":param items: A list of tuples of keys and values, [([key], val)]\n :return: A list of tuples of key and values, [(key, [val])]",
" >>> select_by_key([([\"a\", \"aaa\"], 1), ([\"b\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_paths API.
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 is_paths API.
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... | Does given object 'maybe_paths' consist of path or path pattern strings? | "Does given object 'maybe_paths' consist of path or path pattern strings?" | 534 | false | ssato/python-anyconfig | is_paths | 39,504 | |
LDU_FT/n1analytics/python-paillier/extended_euclidean_algorithm | LDU_FT | [
"<BEGIN>\n## `generate_keypair`",
"Generate a paillier private key.",
" Output as JWK to given output file. Use \"-\" to output the private key to\n stdout. See the extract command to extract the public component of the\n private key.",
" Note:\n The default ID text includes the current tim... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extended_euclidean_algorithm 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 extended_euclidean_algorithm API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Extended Euclidean algorithm
Returns r, s, t such that r = s*a + t*b and r is gcd(a, b)
See <https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm> | "Extended Euclidean algorithm\n\n Returns r, s, t such that r = s*a + t*b and r is gcd(a, b)\n\n See <https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm>" | 169 | false | n1analytics/python-paillier | extended_euclidean_algorithm | 39,505 | |
LDU_FT/jaumebonet/libconfig/write_options_to_JSON | LDU_FT | [
"<BEGIN>\n## `_get_repo`",
"Identify the path to the repository origin.\n<END>",
"<BEGIN>\n## `_entry_must_exist`",
"Evaluate key-subkey existence.",
" Checks that the key-subkey combo exists in the\n configuration options.\n<END>",
"<BEGIN>\n## `_entry_must_not_exist`",
"Evaluate key-subkey non-e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_options_to_JSON API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_options_to_JSON API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Writes the options in JSON format to a file.
:param str filename: Target file to write the options. | "Writes the options in JSON format to a file.\n\n :param str filename: Target file to write the options." | 104 | false | jaumebonet/libconfig | write_options_to_JSON | 39,506 | |
LDU_FT/redhat-openstack/python-tripleo-helper/remove_instances_by_prefix | LDU_FT | [
"<BEGIN>\n## `start`",
"Start the ssh client and connect to the host.",
" It will wait until the ssh service is available during 90 seconds.\n If it doesn't succed to connect then the function will raise\n an SSHException.\n<END>",
"<BEGIN>\n## `run`",
"Run a command on the remote host.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_instances_by_prefix 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 remove_instances_by_prefix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Remove all the instances on which their name start by a prefix. | "Remove all the instances on which their name start by a prefix." | 82 | false | redhat-openstack/python-tripleo-helper | remove_instances_by_prefix | 39,507 | |
LDU_FT/pytorch/ignite/on | LDU_FT | [
"<BEGIN>\n## `add_event_handler`",
"Add an event handler to be executed when the specified event is fired.",
" Args:\n event_name: An event to attach the handler to. Valid events are from :class:`~ignite.engine.Events`\n or any `event_name` added by :meth:`~ignite.engine.Engine.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docu... | Decorator shortcut for add_event_handler.
Args:
event_name: An event to attach the handler to. Valid events are from :class:`~ignite.engine.Events` or
any `event_name` added by :meth:`~ignite.engine.Engine.register_events`.
*args: optional args to be passed to `handler`.... | "Decorator shortcut for add_event_handler.\n\n Args:\n event_name: An event to attach the handler to. Valid events are from :class:`~ignite.engine.Events` or\n any `event_name` added by :meth:`~ignite.engine.Engine.register_events`.\n *args: optional args to be passed to `han... | 110 | false | pytorch/ignite | on | 39,508 | |
LDU_FT/inorton/junit2html/run | LDU_FT | [
"<BEGIN>\n## `anchor`",
"Generate a html anchor name\n :return:\n<END>",
"<BEGIN>\n## `html`",
"Render this test class as html\n :return:\n<END>",
"<BEGIN>\n## `html`",
"Render those properties as html\n :return:\n<END>",
"<BEGIN>\n## `html`",
"Render this test case as HTML\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... | Run this tool
:param args:
:return: | "Run this tool\n :param args:\n :return:" | 22 | false | inorton/junit2html | run | 39,509 | |
LDU_FT/teepark/greenhouse/schedule_recurring | LDU_FT | [
"<BEGIN>\n## `read`",
"read up to len bytes and return them, or empty string on EOF\n<END>",
"<BEGIN>\n## `write`",
"write data to the ssl channel and return the # of bytes transferred\n<END>",
"<BEGIN>\n## `connect`",
"connects to the address and wraps the connection in an SSL context\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule_recurring 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 schedule_recurring 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... | insert a greenlet into the scheduler to run regularly at an interval
If provided a function, it is wrapped in a new greenlet
:param interval: the number of seconds between invocations
:type interval: int or float
:param target: what to schedule
:type target: function or greenlet
:param maxtime... | "insert a greenlet into the scheduler to run regularly at an interval\n\n If provided a function, it is wrapped in a new greenlet\n\n :param interval: the number of seconds between invocations\n :type interval: int or float\n :param target: what to schedule\n :type target: function or greenlet\n :para... | 349 | false | teepark/greenhouse | schedule_recurring | 39,510 | |
LDU_FT/googleapis/dialogflow-python-client-v2/create_document | LDU_FT | [
"<BEGIN>\n## `from_service_account_file`",
"Creates an instance of this client using the provided credentials\n file.",
" Args:\n filename (str): The path to the service account private key json\n file.\n args: Additional arguments to pass to the constructor.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_document API.
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 create_document API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Creates a Document.
Args:
project_id: The GCP project linked with the agent.
knowledge_base_id: Id of the Knowledge base.
display_name: The display name of the Document.
mime_type: The mime_type of the Document. e.g. text/csv, text/html,
text/plain, text/pdf etc.
... | "Creates a Document.\n\n Args:\n project_id: The GCP project linked with the agent.\n knowledge_base_id: Id of the Knowledge base.\n display_name: The display name of the Document.\n mime_type: The mime_type of the Document. e.g. text/csv, text/html,\n text/plain, text/pdf etc.... | 280 | false | googleapis/dialogflow-python-client-v2 | create_document | 39,511 | |
LDU_FT/redhat-openstack/python-tripleo-helper/create_bmc | LDU_FT | [
"<BEGIN>\n## `start`",
"Start the ssh client and connect to the host.",
" It will wait until the ssh service is available during 90 seconds.\n If it doesn't succed to connect then the function will raise\n an SSHException.\n<END>",
"<BEGIN>\n## `run`",
"Run a command on the remote host.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_bmc API.
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 create_bmc API.
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... | Deploy the BMC machine.
This machine hosts the ipmi servers, each ipmi server is associated to a baremetal
node and has its own IP. | "Deploy the BMC machine.\n\n This machine hosts the ipmi servers, each ipmi server is associated to a baremetal\n node and has its own IP." | 82 | false | redhat-openstack/python-tripleo-helper | create_bmc | 39,512 | |
LDU_FT/SeattleTestbed/seash/get_enabled_modules | LDU_FT | [
"<BEGIN>\n## `_bind_key`",
"u\"\"\"setup the mapping from key to call the function.\n<END>",
"<BEGIN>\n## `_bind_exit_key`",
"u\"\"\"setup the mapping from key to call the function.\n<END>",
"<BEGIN>\n## `_get_completions`",
"Return a list of possible completions for the string ending at the point.\r\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_enabled_modules API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_enabled_modules 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... | <Purpose>
Returns all enabled modules.
<Arguments>
None
<Side Effects>
None
<Exceptions>
None
<Return>
The list of all enabled modules. | "<Purpose>\n Returns all enabled modules.\n <Arguments>\n None\n <Side Effects>\n None\n <Exceptions>\n None\n <Return>\n The list of all enabled modules." | 281 | false | SeattleTestbed/seash | get_enabled_modules | 39,513 | |
LDU_FT/smarie/python-valid8/or_ | LDU_FT | [
"<BEGIN>\n## `instance_of`",
"This type validation function can be used in two modes:\n * providing two arguments (x, ref_type), it returns `True` if isinstance(x, ref_type) and raises a HasWrongType\n error if not. If ref_type is a set of types, any match with one of the included types will do\n * pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the or_ API.
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 or_ API.
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... | An 'or' validator: returns `True` if at least one of the provided validators returns `True`. All exceptions will be
silently caught. In case of failure, a global `AllValidatorsFailed` failure will be raised, together with details
about all validation results.
:param validation_func: the base validation fun... | "An 'or' validator: returns `True` if at least one of the provided validators returns `True`. All exceptions will be\n silently caught. In case of failure, a global `AllValidatorsFailed` failure will be raised, together with details\n about all validation results.\n\n :param validation_func: the base validatio... | 229 | false | smarie/python-valid8 | or_ | 39,514 | |
LDU_FT/samdobson/image_slicer/save_tiles | LDU_FT | [
"<BEGIN>\n## `calc_columns_rows`",
"Calculate the number of columns and rows required to divide an image\n into ``n`` parts.",
" Return a tuple of integers in the format (num_columns, num_rows)\n<END>",
"<BEGIN>\n## `validate_image`",
"Basic sanity checks prior to performing a split.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_tiles API.
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 save_tiles API.
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... | Write image files to disk. Create specified folder(s) if they
don't exist. Return list of :class:`Tile` instance.
Args:
tiles (list): List, tuple or set of :class:`Tile` objects to save.
prefix (str): Filename prefix of saved tiles.
Kwargs:
directory (str): Directory to save til... | "Write image files to disk. Create specified folder(s) if they\n don't exist. Return list of :class:`Tile` instance.\n\n Args:\n tiles (list): List, tuple or set of :class:`Tile` objects to save.\n prefix (str): Filename prefix of saved tiles.\n\n Kwargs:\n directory (str): Directory to... | 21 | false | samdobson/image_slicer | save_tiles | 39,515 | |
LDU_FT/moonlitesolutions/SolrClient/_lock | LDU_FT | [
"<BEGIN>\n## `get_ngroups`",
"Returns ngroups count if it was specified in the query, otherwise ValueError.",
" If grouping on more than one field, provide the field argument to specify which count you are looking for.\n<END>",
"<BEGIN>\n## `get_groups_count`",
"Returns 'matches' from group response.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lock API.
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 _lock API.
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... | Locks, or returns False if already locked | "Locks, or returns False if already locked" | 182 | false | moonlitesolutions/SolrClient | _lock | 39,516 | |
LDU_FT/kathyxchen/crosstalk-correction/index_element_map | LDU_FT | [
"<BEGIN>\n## `crosstalk_correction`",
"A wrapper function around the maximum impact estimation algorithm.",
" Parameters\n -----------\n pathway_definitions : dict(str -> set(str))\n The original pathway definitions.\n A pathway (key) is defined by a set of genes (value).\n random_seed... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index_element_map API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index_element_map API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Map the indices of the array to the respective elements.
Parameters
-----------
arr : list(a)
The array to process, of generic type a
Returns
-----------
dict(int -> a), a dictionary corresponding the index to the element | "Map the indices of the array to the respective elements.\n\n Parameters\n -----------\n arr : list(a)\n The array to process, of generic type a\n\n Returns\n -----------\n dict(int -> a), a dictionary corresponding the index to the element" | 29 | false | kathyxchen/crosstalk-correction | index_element_map | 39,517 | |
LDU_FT/davenquinn/Attitude/aligned_covariance | LDU_FT | [
"<BEGIN>\n## `bingham_pdf`",
"From the *Encyclopedia of Paleomagnetism*",
" From Onstott, 1980:\n Vector resultant: R is analogous to eigenvectors\n of T.\n Eigenvalues are analogous to |R|/N.\n<END>",
"<BEGIN>\n## `report`",
"Outputs a standalone HTML 'report card' for a\n measurement (or se... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the aligned_covariance 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 aligned_covariance 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... | Covariance rescaled so that eigenvectors sum to 1
and rotated into data coordinates from PCA space | "Covariance rescaled so that eigenvectors sum to 1\n and rotated into data coordinates from PCA space" | 138 | false | davenquinn/Attitude | aligned_covariance | 39,518 | |
LDU_FT/dshean/demcoreg/compute_offset_nuth | LDU_FT | [
"<BEGIN>\n## `get_nlcd_fn`",
"Calls external shell script `get_nlcd.sh` to fetch:",
" 2011 Land Use Land Cover (nlcd) grids, 30 m",
" http://www.mrlc.gov/nlcd11_leg.php\n<END>",
"<BEGIN>\n## `get_bareground_fn`",
"Calls external shell script `get_bareground.sh` to fetch:",
" ~2010 global bare g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_offset_nuth 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 compute_offset_nuth 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... | Compute horizontal offset between input rasters using Nuth and Kaab [2011] (nuth) method | "Compute horizontal offset between input rasters using Nuth and Kaab [2011] (nuth) method" | 63 | false | dshean/demcoreg | compute_offset_nuth | 39,519 | |
LDU_FT/wesleyfr/boxpython/search | LDU_FT | [
"<BEGIN>\n## `get_access_tokens`",
"From the authorization code, get the \"access token\" and the \"refresh token\" from Box.",
" Args:\n authorization_code (str). Authorisation code emitted by Box at the url provided by the function :func:`get_authorization_url`.",
" Returns:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Searches for files/folders
Args:
\*\*kwargs (dict): A dictionary containing necessary parameters
(check https://developers.box.com/docs/#search for
list of parameters)
Returns:
dict. Response from Box.
Raises:
... | "Searches for files/folders\n\n Args:\n \\*\\*kwargs (dict): A dictionary containing necessary parameters\n (check https://developers.box.com/docs/#search for\n list of parameters)\n\n Returns:\n dict. Response from Box.\n\n ... | 104 | false | wesleyfr/boxpython | search | 39,520 | |
LDU_FT/OCHA-DAP/hdx-python-utilities/assert_files_same | LDU_FT | [
"<BEGIN>\n## `raisefrom`",
"Call Python 3 raise from or emulate it for Python 2",
" Args:\n exc_type (Any): Type of Exception\n message (str): Error message to display\n exc (BaseException): original exception",
" Returns:\n None\n<END>",
"<BEGIN>\n## `get_session`",
"Set... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_files_same API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_files_same API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Asserts that two files are the same and returns delta using
-, ?, + format if not
Args:
path1 (str): Path to first file
path2 (str): Path to second file
Returns:
None | "Asserts that two files are the same and returns delta using\n -, ?, + format if not\n\n Args:\n path1 (str): Path to first file\n path2 (str): Path to second file\n\n Returns:\n None" | 232 | false | OCHA-DAP/hdx-python-utilities | assert_files_same | 39,521 | |
LDU_FT/dnephin/PyStaticConfiguration/get_namespaces_from_names | LDU_FT | [
"<BEGIN>\n## `build_attributes`",
"Return an attributes dictionary with ValueTokens replaced by a\n property which returns the config value.\n<END>",
"<BEGIN>\n## `cache_as_field`",
"Cache a functions return value as the field 'cache_name'.\n<END>",
"<BEGIN>\n## `extract_value`",
"Given a value pro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_namespaces_from_names 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 get_namespaces_from_names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Return a generator which yields namespace objects. | "Return a generator which yields namespace objects." | 49 | false | dnephin/PyStaticConfiguration | get_namespaces_from_names | 39,522 | |
LDU_FT/base4sistemas/pyescpos/ean13 | LDU_FT | [
"<BEGIN>\n## `ean8`",
"Render given ``data`` as **JAN-8/EAN-8** barcode symbology.\n<END>",
"<BEGIN>\n## `ean13`",
"Render given ``data`` as **JAN-13/EAN-13** barcode symbology.\n<END>",
"<BEGIN>\n## `code128`",
"Renders given ``data`` as **Code 128** barcode symbology.",
" :param str codeset: Op... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ean13 API.
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 ean13 API.
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... | Render given ``data`` as **JAN-13/EAN-13** barcode symbology. | "Render given ``data`` as **JAN-13/EAN-13** barcode symbology." | 83 | false | base4sistemas/pyescpos | ean13 | 39,523 | |
LDU_FT/acutesoftware/AIKIF/download_file_proxy | LDU_FT | [
"<BEGIN>\n## `where_am_i`",
"high level function that can estimate where user is based \n on predefined setups.\n<END>",
"<BEGIN>\n## `dump_all`",
"prints all attributes and returns them as a dictionary \n (mainly for testing how it will all integrate)\n<END>",
"<BEGIN>\n## `summarise`",
"extrap... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_file_proxy 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 download_file_proxy 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... | Currently fails behind proxy...
# https://docs.python.org/3/library/urllib.request.html#examples | "Currently fails behind proxy...\n # https://docs.python.org/3/library/urllib.request.html#examples" | 486 | false | acutesoftware/AIKIF | download_file_proxy | 39,524 | |
LDU_FT/mbakker7/timml/equation | LDU_FT | [
"<BEGIN>\n## `plot`",
"Plot layout",
" Parameters\n ----------",
" win : list or tuple\n [x1, x2, y1, y2]\n<END>",
"<BEGIN>\n## `contour`",
"Contour plot",
" Parameters\n ----------",
" win : list or tuple\n [x1, x2, y1, y2]\n ngr ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the equation API.
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 equation API.
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... | Mix-in class that returns matrix rows for difference in head between inside and
outside equals zeros
Returns matrix part (nunknowns,neq)
Returns rhs part nunknowns | "Mix-in class that returns matrix rows for difference in head between inside and\n outside equals zeros\n Returns matrix part (nunknowns,neq)\n Returns rhs part nunknowns" | 82 | false | mbakker7/timml | equation | 39,525 | |
LDU_FT/stanfordnlp/stanza/labels_to_onehots | LDU_FT | [
"<BEGIN>\n## `validate`",
"Evaluate this model on `validation_instances` during training and\n output a report.",
" :param validation_instances: The data to use to validate the model.\n :type validation_instances: list(instance.Instance)",
" :param metrics: Functions like those fou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the labels_to_onehots API.
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 labels_to_onehots API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Convert a vector of integer class labels to a matrix of one-hot target vectors.
:param labels: a vector of integer labels, 0 to num_classes. Has shape (batch_size,).
:param num_classes: the total number of classes
:return: has shape (batch_size, num_classes) | "Convert a vector of integer class labels to a matrix of one-hot target vectors.\n\n :param labels: a vector of integer labels, 0 to num_classes. Has shape (batch_size,).\n :param num_classes: the total number of classes\n :return: has shape (batch_size, num_classes)" | 309 | false | stanfordnlp/stanza | labels_to_onehots | 39,526 | |
LDU_FT/ioos/cc-plugin-ncei/check_geophysical | LDU_FT | [
"<BEGIN>\n## `check_timeseries_id`",
"Checks that if a variable exists for the time series id it has the appropriate attributes",
" :param netCDF4.Dataset dataset: An open netCDF dataset\n<END>",
"<BEGIN>\n## `check_recommended_attributes`",
"Feature type specific check of global recommended attribut... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_geophysical API.
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 check_geophysical API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Check the geophysical variable attributes for 2.0 templates.
Attributes missing_value and coverage_content_type have been added in NCEI 2.0
:param netCDF4.Dataset dataset: An open netCDF dataset
float geophysical_variable_1(time) ;//................................ This is an example of how ea... | "Check the geophysical variable attributes for 2.0 templates.\n Attributes missing_value and coverage_content_type have been added in NCEI 2.0\n\n :param netCDF4.Dataset dataset: An open netCDF dataset\n\n float geophysical_variable_1(time) ;//................................ This is an example of ... | 134 | false | ioos/cc-plugin-ncei | check_geophysical | 39,527 | |
LDU_FT/reiinakano/scikit-plot/plot_silhouette | LDU_FT | [
"<BEGIN>\n## `plot_pca_component_variance`",
"Plots PCA components' explained variance ratios. (new in v0.2.2)",
" Args:\n clf: PCA instance that has the ``explained_variance_ratio_`` attribute.",
" title (string, optional): Title of the generated plot. Defaults to\n \"PCA Componen... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_silhouette API.
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 plot_silhouette API.
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... | Plots silhouette analysis of clusters using fit_predict.
Args:
clf: Clusterer instance that implements ``fit`` and ``fit_predict``
methods.
X (array-like, shape (n_samples, n_features)):
Data to cluster, where n_samples is the number of samples and
n_features is... | "Plots silhouette analysis of clusters using fit_predict.\n\n Args:\n clf: Clusterer instance that implements ``fit`` and ``fit_predict``\n methods.\n\n X (array-like, shape (n_samples, n_features)):\n Data to cluster, where n_samples is the number of samples and\n n_fe... | 328 | false | reiinakano/scikit-plot | plot_silhouette | 39,528 | |
LDU_FT/xflr6/concepts/union_update | LDU_FT | [
"<BEGIN>\n## `lattice`",
"Return graphviz source for visualizing the lattice graph.\n<END>",
"<BEGIN>\n## `load`",
"Load and parse serialized objects, properties, bools from file.\n<END>",
"<BEGIN>\n## `dump`",
"Write serialized objects, properties, bools to file.\n<END>",
"<BEGIN>\n## `load_csv`",
"L... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the union_update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the union_update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Update the definition with the union of the ``other``. | "Update the definition with the union of the ``other``." | 56 | false | xflr6/concepts | union_update | 39,529 | |
LDU_FT/mkoura/dump2polarion/import_sqlite | LDU_FT | [
"<BEGIN>\n## `only_passed_and_wait`",
"Returns PASS and WAIT results only, skips everything else.\n<END>",
"<BEGIN>\n## `insert_source_info`",
"Adds info about source of test result if available.\n<END>",
"<BEGIN>\n## `setup_parametrization`",
"Modifies result's data according to the parametrization setti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_sqlite API.
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 import_sqlite API.
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... | Reads the content of the database file and returns imported data. | "Reads the content of the database file and returns imported data." | 107 | false | mkoura/dump2polarion | import_sqlite | 39,530 | |
LDU_FT/keon/algorithms/copy_random_pointer_v2 | LDU_FT | [
"<BEGIN>\n## `convert_to_list`",
"converts a positive integer into a (reversed) linked list.\n for example: give 112\n result 2 -> 1 -> 1\n<END>",
"<BEGIN>\n## `convert_to_str`",
"converts the non-negative number list into a string.\n<END>",
"<BEGIN>\n## `three_sum`",
":param array: List[int... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_random_pointer_v2 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 copy_random_pointer_v2 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | :type head: RandomListNode
:rtype: RandomListNode | ":type head: RandomListNode\n :rtype: RandomListNode" | 273 | false | keon/algorithms | copy_random_pointer_v2 | 39,531 | |
LDU_FT/Crunch-io/crunch-cube/table_name | LDU_FT | [
"<BEGIN>\n## `column_mask`",
"ndarray, True where column margin <= min_base_size, same shape as slice.\n<END>",
"<BEGIN>\n## `table_mask`",
"ndarray, True where table margin <= min_base_size, same shape as slice.\n<END>",
"<BEGIN>\n## `values`",
"list of _ColumnPairwiseSignificance tests.",
" Res... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the table_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the table_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Get slice name.
In case of 2D return cube name. In case of 3D, return the combination
of the cube name with the label of the corresponding slice
(nth label of the 0th dimension). | "Get slice name.\n\n In case of 2D return cube name. In case of 3D, return the combination\n of the cube name with the label of the corresponding slice\n (nth label of the 0th dimension)." | 334 | false | Crunch-io/crunch-cube | table_name | 39,532 | |
LDU_FT/debrouwere/google-analytics/precision | LDU_FT | [
"<BEGIN>\n## `serialize`",
"Greedy serialization requires the value to either be a column\n or convertible to a column, whereas non-greedy serialization\n will pass through any string as-is and will only serialize\n Column objects.",
" Non-greedy serialization is useful when preparin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the precision API.
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 precision API.
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... | For queries that should run faster, you may specify a lower precision,
and for those that need to be more precise, a higher precision:
```python
# faster queries
query.range('2014-01-01', '2014-01-31', precision=0)
query.range('2014-01-01', '2014-01-31', precision='FASTER')
... | "For queries that should run faster, you may specify a lower precision,\n and for those that need to be more precise, a higher precision:\n\n ```python\n # faster queries\n query.range('2014-01-01', '2014-01-31', precision=0)\n query.range('2014-01-01', '2014-01-31', precision='FASTER... | 76 | false | debrouwere/google-analytics | precision | 39,533 | |
LDU_FT/mozilla/DeepSpeech/average_gradients | LDU_FT | [
"<BEGIN>\n## `reduce_filename`",
"r'''\n Expects something like /tmp/tmpAjry4Gdsbench/test.weights.e5.XXX.YYY.pb\n Where XXX is a variation on the model size for example\n And where YYY is a const related to the training dataset\n<END>",
"<BEGIN>\n## `keep_only_digits`",
"r'''\n local helper to ju... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the average_gradients API.
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 average_gradients API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | r'''
A routine for computing each variable's average of the gradients obtained from the GPUs.
Note also that this code acts as a synchronization point as it requires all
GPUs to be finished with their mini-batch before it can run to completion. | "r'''\n A routine for computing each variable's average of the gradients obtained from the GPUs.\n Note also that this code acts as a synchronization point as it requires all\n GPUs to be finished with their mini-batch before it can run to completion." | 98 | false | mozilla/DeepSpeech | average_gradients | 39,534 | |
LDU_FT/abw333/dominoes/next_game | LDU_FT | [
"<BEGIN>\n## `_randomized_hands`",
":return: 4 hands, obtained by shuffling the 28 dominoes used in\n this variation of the game, and distributing them evenly\n<END>",
"<BEGIN>\n## `_validate_player`",
"Checks that a player is a valid player. Valid players are: 0, 1, 2, and 3.",
" :param int ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next_game API.
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 next_game API.
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... | Advances the series to the next game, if possible. Also updates
each team's score with points from the most recently completed game.
:return: the next game, if the previous game did not end the series;
None otherwise
:raises SeriesOverException: if the series has already ended
... | "Advances the series to the next game, if possible. Also updates\n each team's score with points from the most recently completed game.\n\n :return: the next game, if the previous game did not end the series;\n None otherwise\n :raises SeriesOverException: if the series has already ... | 70 | false | abw333/dominoes | next_game | 39,535 | |
LDU_FT/mnooner256/pyqrcode/delimit_words | LDU_FT | [
"<BEGIN>\n## `create`",
"When creating a QR code only the content to be encoded is required,\n all the other properties of the code will be guessed based on the\n contents given. This function will return a :class:`QRCode` object.",
" Unless you are familiar with QR code's inner workings\n it is rec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delimit_words API.
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 delimit_words API.
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... | This method takes the existing encoded binary string
and returns a binary string that will pad it such that
the encoded string contains only full bytes. | "This method takes the existing encoded binary string\n and returns a binary string that will pad it such that\n the encoded string contains only full bytes." | 143 | false | mnooner256/pyqrcode | delimit_words | 39,536 | |
LDU_FT/mortada/fredapi/get_series_as_of_date | LDU_FT | [
"<BEGIN>\n## `__fetch_data`",
"helper function for fetching data given a request URL\n<END>",
"<BEGIN>\n## `_parse`",
"helper function for parsing FRED date string into datetime\n<END>",
"<BEGIN>\n## `get_series_info`",
"Get information about a series such as its title, frequency, observation start/end da... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_series_as_of_date 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_series_as_of_date API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Get latest data for a Fred series id as known on a particular date. This includes any revision to the data series
before or on as_of_date, but ignores any revision on dates after as_of_date.
Parameters
----------
series_id : str
Fred series id such as 'GDP'
as_of_dat... | "Get latest data for a Fred series id as known on a particular date. This includes any revision to the data series\n before or on as_of_date, but ignores any revision on dates after as_of_date.\n\n Parameters\n ----------\n series_id : str\n Fred series id such as 'GDP'\n a... | 44 | false | mortada/fredapi | get_series_as_of_date | 39,537 | |
LDU_FT/learningequality/ricecooker/run | LDU_FT | [
"<BEGIN>\n## `_write_to_zip`",
"_write_to_zip: Write file to zip\n Args:\n path: (str) where in zip to write file\n contents: (str) contents of file to write\n Returns: None\n<END>",
"<BEGIN>\n## `_commit`",
"_commit: Adds folder/file to map\n Arg... | 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... | This function calls uploadchannel which performs all the run steps:
Args:
args (dict): chef command line arguments
options (dict): additional compatibility mode options given on command line | "This function calls uploadchannel which performs all the run steps:\n Args:\n args (dict): chef command line arguments\n options (dict): additional compatibility mode options given on command line" | 364 | false | learningequality/ricecooker | run | 39,538 | |
LDU_FT/crytic/slither/output | LDU_FT | [
"<BEGIN>\n## `_contains_incorrect_tx_origin_use`",
"Check if the node reads tx.origin and doesn't read msg.sender\n Avoid the FP due to (msg.sender == tx.origin)\n Returns:\n (bool)\n<END>",
"<BEGIN>\n## `detect_incorrect_erc20_interface`",
"Detect incorrect ERC20 interface",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | _filename is not used
Args:
_filename(string) | "_filename is not used\n Args:\n _filename(string)" | 341 | false | crytic/slither | output | 39,539 | |
LDU_FT/jvamvas/rhymediscovery/get_rhymelists | LDU_FT | [
"<BEGIN>\n## `init_perfect_ttable`",
"initialize (normalized) theta according to whether words rhyme\n<END>",
"<BEGIN>\n## `get_wordlist`",
"Get an iterable of all final words in all stanzas\n<END>",
"<BEGIN>\n## `get_rhymelists`",
"Returns ordered lists of the stanza's word indices as defined by given sc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rhymelists API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rhymelists API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns ordered lists of the stanza's word indices as defined by given scheme | "Returns ordered lists of the stanza's word indices as defined by given scheme" | 28 | false | jvamvas/rhymediscovery | get_rhymelists | 39,540 | |
LDU_FT/delph-in/pydelphin/links | LDU_FT | [
"<BEGIN>\n## `compile`",
"Use ACE to compile a grammar.",
" Args:\n cfg_path (str): the path to the ACE config file\n out_path (str): the path where the compiled grammar will be\n written\n executable (str, optional): the path to the ACE binary; if\n `None`, the `ac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the links API.
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 links API.
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... | Return the list of Links for the *xmrs*. | "Return the list of Links for the *xmrs*." | 662 | false | delph-in/pydelphin | links | 39,541 | |
LDU_FT/gatkin/declxml/parse_from_parent | LDU_FT | [
"<BEGIN>\n## `parse_from_file`",
"Parse the XML file using the processor starting from the root of the document.",
" :param root_processor: Root processor of the XML document.\n :param xml_file_path: Path to XML file to parse.\n :param encoding: Encoding of the file.",
" :return: Parsed value.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_from_parent API.
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 parse_from_parent API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Parse the primitive value under the parent XML element. | "Parse the primitive value under the parent XML element." | 127 | false | gatkin/declxml | parse_from_parent | 39,542 | |
LDU_FT/tadeck/onetimepass/get_totp | LDU_FT | [
"<BEGIN>\n## `_is_possible_token`",
"Determines if given value is acceptable as a token. Used when validating\n tokens.",
" Currently allows only numeric tokens no longer than 6 chars.",
" :param token: token value to be checked\n :type token: int or str\n :param token_length: allowed length of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_totp API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_totp API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Get time-based one-time password on the basis of given secret and time.
:param secret: the base32-encoded string acting as secret key
:type secret: str
:param as_string: True if result should be padded string, False otherwise
:type as_string: bool
:param digest_method: method of generating digest (... | "Get time-based one-time password on the basis of given secret and time.\n\n :param secret: the base32-encoded string acting as secret key\n :type secret: str\n :param as_string: True if result should be padded string, False otherwise\n :type as_string: bool\n :param digest_method: method of generating d... | 22 | false | tadeck/onetimepass | get_totp | 39,543 | |
LDU_FT/alfred82santa/dirty-models/initialise_modified_data | LDU_FT | [
"<BEGIN>\n## `recover_model_from_data`",
"Function to reconstruct a model from DirtyModel basic information: original data, the modified and deleted\n fields.\n Necessary for pickle an object\n<END>",
"<BEGIN>\n## `recover_dynamic_model_from_data`",
"Function to reconstruct a model from DirtyModel basic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialise_modified_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialise_modified_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Initialise the modified_data if necessary | "Initialise the modified_data if necessary" | 86 | false | alfred82santa/dirty-models | initialise_modified_data | 39,544 | |
LDU_FT/deep-compute/basescript/warning | LDU_FT | [
"<BEGIN>\n## `define_log_renderer`",
"the final log processor that structlog requires to render.\n<END>",
"<BEGIN>\n## `define_log_processors`",
"log processors that structlog executes before final rendering\n<END>",
"<BEGIN>\n## `_configure_logger`",
"configures a logger when required write to stderr or ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the warning API.
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 warning API.
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... | Process event and call :meth:`logging.Logger.warning` with the result. | "Process event and call :meth:`logging.Logger.warning` with the result." | 25 | false | deep-compute/basescript | warning | 39,545 | |
LDU_FT/T-002/pycast/to_gnuplot_datafile | LDU_FT | [
"<BEGIN>\n## `local_error`",
"Calculates the error between the two given values.",
" :param list originalValue: List containing the values of the original data.\n :param list calculatedValue: List containing the values of the calculated TimeSeries that\n corresponds to originalVal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_gnuplot_datafile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_gnuplot_datafile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Dumps the TimeSeries into a gnuplot compatible data file.
:param string datafilepath: Path used to create the file. If that file already exists,
it will be overwritten!
:return: Returns :py:const:`True` if the data could be written, :py:const:`False` otherwise.
:rtype: bool... | "Dumps the TimeSeries into a gnuplot compatible data file.\n\n :param string datafilepath: Path used to create the file. If that file already exists,\n it will be overwritten!\n\n :return: Returns :py:const:`True` if the data could be written, :py:const:`False` otherwise.\n :rtype: ... | 338 | false | T-002/pycast | to_gnuplot_datafile | 39,546 | |
LDU_FT/QualiSystems/cloudshell-networking-devices/_validate_build_resource_structure | LDU_FT | [
"<BEGIN>\n## `create_networking_resource_from_context`",
"Creates an instance of Networking Resource by given context\n :param shell_name: Shell Name\n :type shell_name: str\n :param supported_os: list of supported OS\n :type supported_os: list\n :param context: cloudshell.shell.core.driver_context... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_build_resource_structure API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_build_resource_structure API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | Validate resource structure
:param dict autoload_resource:
:return correct autoload resource structure
:rtype: dict | "Validate resource structure\n\n :param dict autoload_resource:\n :return correct autoload resource structure\n :rtype: dict" | 87 | false | QualiSystems/cloudshell-networking-devices | _validate_build_resource_structure | 39,547 | |
LDU_FT/pyvisa/pyvisa/out_32 | LDU_FT | [
"<BEGIN>\n## `pass_control`",
"Tell the GPIB device at the specified address to become controller in charge (CIC).",
" Corresponds to viGpibPassControl function of the VISA library.",
" :param primary_address: Primary address of the GPIB device to which you want to pass control.\n :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the out_32 API.
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 out_32 API.
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 ... | Write in an 32-bit value from the specified memory space and offset.
Corresponds to viOut32* functions of the VISA library.
:param library: the visa library wrapped by ctypes.
:param session: Unique logical identifier to a session.
:param space: Specifies the address space. (Constants.*SPACE*)
:pa... | "Write in an 32-bit value from the specified memory space and offset.\n\n Corresponds to viOut32* functions of the VISA library.\n\n :param library: the visa library wrapped by ctypes.\n :param session: Unique logical identifier to a session.\n :param space: Specifies the address space. (Constants.*SPACE*)\... | 529 | false | pyvisa/pyvisa | out_32 | 39,548 | |
LDU_FT/NicolasLM/atoma/parse_json_feed_file | LDU_FT | [
"<BEGIN>\n## `parse_atom_file`",
"Parse an Atom feed from a local XML file.\n<END>",
"<BEGIN>\n## `parse_atom_bytes`",
"Parse an Atom feed from a byte-string containing XML data.\n<END>",
"<BEGIN>\n## `_get_link`",
"Attempt to retrieve item link.",
" Use the GUID as a fallback if it is a permalink.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_json_feed_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_json_feed_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.
... | Parse a JSON feed from a local json file. | "Parse a JSON feed from a local json file." | 25 | false | NicolasLM/atoma | parse_json_feed_file | 39,549 | |
LDU_FT/junaruga/rpm-py-installer/verify_packages_installed | LDU_FT | [
"<BEGIN>\n## `download_and_install`",
"Download and install RPM Python binding.\n<END>",
"<BEGIN>\n## `add_patchs_to_build_without_pkg_config`",
"Add patches to remove pkg-config command and rpm.pc part.",
" Replace with given library_path: lib_dir and include_path: include_dir\n without rpm.p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_packages_installed 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 verify_packages_installed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Check if the RPM packages are installed.
Raise InstallError if any of the packages is not installed. | "Check if the RPM packages are installed.\n\n Raise InstallError if any of the packages is not installed." | 67 | false | junaruga/rpm-py-installer | verify_packages_installed | 39,550 | |
LDU_FT/ZELLMECHANIK-DRESDEN/dclab/fcs | LDU_FT | [
"<BEGIN>\n## `tdms2rtdc`",
"Convert .tdms datasets to the hdf5-based .rtdc file format\n<END>",
"<BEGIN>\n## `load_from_file`",
"Load the configuration from a file",
" Parameters\n ----------\n cfg_file: str\n Path to configuration file",
" Returns\n -------\n cfg : CaseInsensitiv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fcs API.
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 fcs API.
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... | Export the data of an RT-DC dataset to an .fcs file
Parameters
----------
mm: instance of dclab.RTDCBase
The dataset that will be exported.
path: str
Path to a .tsv file. The ending .tsv is added automatically.
features: list of str
The featur... | "Export the data of an RT-DC dataset to an .fcs file\n\n Parameters\n ----------\n mm: instance of dclab.RTDCBase\n The dataset that will be exported.\n path: str\n Path to a .tsv file. The ending .tsv is added automatically.\n features: list of str\n ... | 433 | false | ZELLMECHANIK-DRESDEN/dclab | fcs | 39,551 | |
LDU_FT/StellarCN/py-stellar-base/gen_compliance_xdr | 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 gen_compliance_xdr 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 gen_compliance_xdr 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... | Create an XDR object representing this builder's transaction to be
sent over via the Compliance protocol (notably, with a sequence number
of 0).
Intentionally, the XDR object is returned without any signatures on the
transaction.
See `Stellar's documentation on its Compliance P... | "Create an XDR object representing this builder's transaction to be\n sent over via the Compliance protocol (notably, with a sequence number\n of 0).\n\n Intentionally, the XDR object is returned without any signatures on the\n transaction.\n\n See `Stellar's documentation on its Comp... | 411 | false | StellarCN/py-stellar-base | gen_compliance_xdr | 39,552 | |
LDU_FT/joshspeagle/dynesty/_friends_leaveoneout_radius | LDU_FT | [
"<BEGIN>\n## `runplot`",
"Plot live points, ln(likelihood), ln(weight), and ln(evidence)\n as a function of ln(prior volume).",
" Parameters\n ----------\n results : :class:`~dynesty.results.Results` instance\n A :class:`~dynesty.results.Results` instance from a nested\n sampling run."... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _friends_leaveoneout_radius API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _friends_leaveoneout_radius API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Internal method used to compute the radius (half-side-length) for each
ball (cube) used in :class:`RadFriends` (:class:`SupFriends`) using
leave-one-out (LOO) cross-validation. | "Internal method used to compute the radius (half-side-length) for each\n ball (cube) used in :class:`RadFriends` (:class:`SupFriends`) using\n leave-one-out (LOO) cross-validation." | 709 | false | joshspeagle/dynesty | _friends_leaveoneout_radius | 39,553 | |
LDU_FT/thoth-station/solver/_get_dependency_specification | LDU_FT | [
"<BEGIN>\n## `compare_version`",
"Compare two version strings.",
" :param a: str\n :param b: str\n :return: -1 / 0 / 1\n<END>",
"<BEGIN>\n## `get_ecosystem_solver`",
"Get Solver subclass instance for particular ecosystem.",
" :param ecosystem_name: name of ecosystem for which solver should be ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_dependency_specification 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 _get_dependency_specification API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Get string representation of dependency specification as provided by PythonDependencyParser. | "Get string representation of dependency specification as provided by PythonDependencyParser." | 41 | false | thoth-station/solver | _get_dependency_specification | 39,554 | |
LDU_FT/quadrismegistus/prosodic/convert | LDU_FT | [
"<BEGIN>\n## `loadLanguage`",
"This function loads up a language configuration file and returns\n\tthe configuration to be passed to the syllabify function.\n<END>",
"<BEGIN>\n## `syllabify`",
"Syllabifies the word, given a language configuration loaded with loadLanguage.\n\t word is either a string of phon... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API.
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 convert API.
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... | Convert a tree between different subtypes of Tree. ``cls`` determines
which class will be used to encode the new tree.
:type tree: Tree
:param tree: The tree that should be converted.
:return: The new Tree. | "Convert a tree between different subtypes of Tree. ``cls`` determines\n which class will be used to encode the new tree.\n\n :type tree: Tree\n :param tree: The tree that should be converted.\n :return: The new Tree." | 80 | false | quadrismegistus/prosodic | convert | 39,555 | |
LDU_FT/samfoo/vt102/_escape_sequence | LDU_FT | [
"<BEGIN>\n## `_escape_sequence`",
"Handle characters seen when in an escape sequence. Most non-vt52\n commands start with a left-bracket after the escape and then a \n stream of parameters and a command.\n<END>",
"<BEGIN>\n## `_end_escape_sequence`",
"Handle the end of an escape sequence. The fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _escape_sequence API.
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 _escape_sequence API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Handle characters seen when in an escape sequence. Most non-vt52
commands start with a left-bracket after the escape and then a
stream of parameters and a command. | "Handle characters seen when in an escape sequence. Most non-vt52\n commands start with a left-bracket after the escape and then a \n stream of parameters and a command." | 55 | false | samfoo/vt102 | _escape_sequence | 39,556 | |
LDU_FT/alejandroautalan/pygubu/_insert_item | LDU_FT | [
"<BEGIN>\n## `_autoscroll`",
"Hide and show scrollbar as needed.\n Code from Joe English (JE) at http://wiki.tcl.tk/950\n<END>",
"<BEGIN>\n## `__regpoly_coords`",
"Create the coordinates of the regular polygon specified\n<END>",
"<BEGIN>\n## `get_image`",
"Return tk image corresponding to name which is... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _insert_item API.
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 _insert_item API.
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... | Insert a item on the treeview and fills columns from data | "Insert a item on the treeview and fills columns from data" | 73 | false | alejandroautalan/pygubu | _insert_item | 39,557 | |
LDU_FT/bitesofcode/projex/labels | LDU_FT | [
"<BEGIN>\n## `add`",
"Adds the new key to this enumerated type.",
" :param key | <str>\n<END>",
"<BEGIN>\n## `all`",
"Returns all the values joined together.",
" :return <int>\n<END>",
"<BEGIN>\n## `base`",
"Returns the root base for the given value from this enumeration.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the labels API.
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 labels API.
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 "user friendly" labels.
:return <list> [ <str>, .. ] | "Return a list of \"user friendly\" labels.\n \n :return <list> [ <str>, .. ]" | 676 | false | bitesofcode/projex | labels | 39,558 | |
LDU_FT/bcbio/bcbio-nextgen/_save_uploaded_file_list | LDU_FT | [
"<BEGIN>\n## `groom`",
"Grooms a FASTQ file from Illumina 1.3/1.5 quality scores into\n sanger format, if it is not already in that format.\n<END>",
"<BEGIN>\n## `filter_single_reads_by_length`",
"removes reads from a fastq file which are shorter than a minimum\n length\n<END>",
"<BEGIN>\n## `filter_r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _save_uploaded_file_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _save_uploaded_file_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Fixes all absolute work-rooted paths to relative final-rooted paths
For CWL, prepare paths relative to output directory. | "Fixes all absolute work-rooted paths to relative final-rooted paths\n\n For CWL, prepare paths relative to output directory." | 3,670 | true | bcbio/bcbio-nextgen | _save_uploaded_file_list | 39,559 | |
LDU_FT/RI-imaging/qpimage/del_bg | LDU_FT | [
"<BEGIN>\n## `check`",
"Checks various properties of a :class:`qpimage.core.QPImage` instance",
" Parameters\n ----------\n qpi_or_h5file: qpimage.core.QPImage or str\n A QPImage object or a path to an hdf5 file\n checks: list of str\n Which checks to perform (\"attributes\" and/or \"b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the del_bg API.
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 del_bg API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Remove the background image data
Parameters
----------
key: str
One of :const:`VALID_BG_KEYS` | "Remove the background image data\n\n Parameters\n ----------\n key: str\n One of :const:`VALID_BG_KEYS`" | 115 | false | RI-imaging/qpimage | del_bg | 39,560 | |
LDU_FT/soasme/rio/get_instance | LDU_FT | [
"<BEGIN>\n## `urlopen`",
"A slightly safer version of ``urlib2.urlopen`` which prevents redirection\n and ensures the URL isn't attempting to hit a blacklisted IP range.\n<END>",
"<BEGIN>\n## `extract_response`",
"Extract requests response object.",
" only extract those status_code in [200, 300).",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instance API.
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_instance API.
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 an instance by id.
:param model: a string, model name in rio.models
:param id: an integer, instance id.
:return: None or a SQLAlchemy Model instance. | "Get an instance by id.\n\n :param model: a string, model name in rio.models\n :param id: an integer, instance id.\n :return: None or a SQLAlchemy Model instance." | 88 | false | soasme/rio | get_instance | 39,561 | |
LDU_FT/ihmeuw/vivarium/get_components | LDU_FT | [
"<BEGIN>\n## `setup`",
"Performs this component's simulation setup.",
" The ``setup`` method is automatically called by the simulation\n framework. The framework passes in a ``builder`` object which\n provides access to a variety of framework subsystems and metadata.",
" Parameters... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_components API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_components API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Extracts component specifications from configuration information and returns initialized components.
Parameters
----------
component_config :
A hierarchical component specification blob. This configuration information needs to be parsable
into a full import path and a se... | "Extracts component specifications from configuration information and returns initialized components.\n\n Parameters\n ----------\n component_config :\n A hierarchical component specification blob. This configuration information needs to be parsable\n into a full import path a... | 370 | false | ihmeuw/vivarium | get_components | 39,562 | |
LDU_FT/tallforasmurf/byteplay/make_constants | LDU_FT | [
"<BEGIN>\n## `object_attributes`",
"Return a sorted list of names defined by thing that are not also names in\n a standard object, except include __doc__.\n<END>",
"<BEGIN>\n## `print_object_attributes`",
"Print the attribute names in thing vertically\n<END>",
"<BEGIN>\n## `print_attr_values`",
"Print ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_constants API.
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 make_constants API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return a decorator for optimizing global references.
Verify that the first argument is a function. | "Return a decorator for optimizing global references.\r\n Verify that the first argument is a function." | 35 | false | tallforasmurf/byteplay | make_constants | 39,563 | |
LDU_FT/ministryofjustice/django-form-error-reporting/is_valid | LDU_FT | [
"<BEGIN>\n## `urlencode`",
"Convert dictionary into a query string; keys are\n assumed to always be str\n<END>",
"<BEGIN>\n## `is_valid`",
"Error reporting is triggered when a form is checked for validity\n<END>",
"<BEGIN>\n## `get_ga_event_category`",
"Event category, defaults to form class name\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Error reporting is triggered when a form is checked for validity | "Error reporting is triggered when a form is checked for validity" | 12 | false | ministryofjustice/django-form-error-reporting | is_valid | 39,564 | |
LDU_FT/HEPData/hepdata-converter/_parse_header | LDU_FT | [
"<BEGIN>\n## `reset`",
"Clean any processing data, and prepare object for reuse\n<END>",
"<BEGIN>\n## `_parse_line`",
"Parse single line (or more if particular keyword actually demands it)",
" :param file:\n :type file: file\n<END>",
"<BEGIN>\n## `_set_table`",
"Set current parsing state t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_header API.
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 _parse_header API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Parse header (xheader or yheader)
:param data: data to be parsed
:type data: str
:return: list with header's data
:rtype: list | "Parse header (xheader or yheader)\n\n :param data: data to be parsed\n :type data: str\n :return: list with header's data\n :rtype: list" | 52 | false | HEPData/hepdata-converter | _parse_header | 39,565 | |
LDU_FT/openstack/horizon/get_param_name | LDU_FT | [
"<BEGIN>\n## `volume_list_paged`",
"List volumes with pagination.",
" To see all volumes in the cloud as an admin you can pass in a special\n search option: {'all_tenants': 1}\n<END>",
"<BEGIN>\n## `extension_supported`",
"This method will determine if Cinder supports a given extension name.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_param_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_param_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns the full query parameter name for this action.
Defaults to
``{{ table.name }}__{{ action.name }}__{{ action.param_name }}``. | "Returns the full query parameter name for this action.\n\n Defaults to\n ``{{ table.name }}__{{ action.name }}__{{ action.param_name }}``." | 831 | false | openstack/horizon | get_param_name | 39,566 | |
LDU_FT/unfoldingWord-dev/python-gogs-client/append_url | LDU_FT | [
"<BEGIN>\n## `json_get`",
"Retrieves the key from a parsed_json dictionary, or raises an exception if the\n key is not present\n<END>",
"<BEGIN>\n## `append_url`",
"Append path to base_url in a sensible way.\n<END>",
"<BEGIN>\n## `authenticated_user`",
"Returns the user authenticated by ``auth``",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_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 extrac... | Append path to base_url in a sensible way. | "Append path to base_url in a sensible way." | 123 | false | unfoldingWord-dev/python-gogs-client | append_url | 39,567 | |
LDU_FT/hammerlab/cohorts/_mutect_variant_stats | LDU_FT | [
"<BEGIN>\n## `download_to_path`",
"This method is analogous to \"gsutil cp gsuri localpath\", but in a\n programatically accesible way. The only difference is that we\n have to make a guess about the encoding of the file to not upset\n downstream file operations. If you are downloading a VCF,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _mutect_variant_stats 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 _mutect_variant_stats API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Parse a single sample"s variant calling statistics based on Mutect"s (v1) VCF output
Parameters
----------
variant : varcode.Variant
sample_info : dict
Dictionary of Mutect-specific variant calling fields
Returns
-------
VariantStats | "Parse a single sample\"s variant calling statistics based on Mutect\"s (v1) VCF output\n\n Parameters\n ----------\n variant : varcode.Variant\n sample_info : dict\n Dictionary of Mutect-specific variant calling fields\n\n Returns\n -------\n VariantStats" | 230 | false | hammerlab/cohorts | _mutect_variant_stats | 39,568 | |
LDU_FT/AtteqCom/zsl/_create_related | LDU_FT | [
"<BEGIN>\n## `_nested_transactional`",
"In a transactional method create a nested transaction.\n<END>",
"<BEGIN>\n## `exec_task`",
"Execute task.",
" :param task_path: task path\n :type task_path: str|Callable\n :param data: task's data\n :type data: Any\n :return:\n<END>",
"<BEGIN>\n## `ap... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_related API.
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 _create_related API.
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... | Create related field from `_embed` arguments. | "Create related field from `_embed` arguments." | 292 | false | AtteqCom/zsl | _create_related | 39,569 | |
LDU_FT/matthew-brett/delocate/get_rpaths | LDU_FT | [
"<BEGIN>\n## `back_tick`",
"Run command `cmd`, return stdout, or stdout, stderr if `ret_err`",
" Roughly equivalent to ``check_output`` in Python 2.7",
" Parameters\n ----------\n cmd : sequence\n command to execute\n ret_err : bool, optional\n If True, return stderr in addition t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rpaths API.
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_rpaths API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return a tuple of rpaths from the library `filename`
If `filename` is not a library then the returned tuple will be empty.
Parameters
----------
filaname : str
filename of library
Returns
-------
rpath : tuple
rpath paths in `filename` | "Return a tuple of rpaths from the library `filename`\n\n If `filename` is not a library then the returned tuple will be empty.\n\n Parameters\n ----------\n filaname : str\n filename of library\n\n Returns\n -------\n rpath : tuple\n rpath paths in `filename`" | 157 | false | matthew-brett/delocate | get_rpaths | 39,570 | |
LDU_FT/adamcharnock/django-hordak/sum_to_balance | LDU_FT | [
"<BEGIN>\n## `ratio_split`",
"Split in_value according to the ratios specified in `ratios`",
" This is special in that it ensures the returned values always sum to\n in_value (i.e. we avoid losses or gains due to rounding errors). As a\n result, this method returns a list of `Decimal` values with lengt... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sum_to_balance API.
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 sum_to_balance API.
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... | Sum the Legs of the QuerySet to get a `Balance`_ object | "Sum the Legs of the QuerySet to get a `Balance`_ object" | 84 | false | adamcharnock/django-hordak | sum_to_balance | 39,571 | |
LDU_FT/droope/droopescan/url_scan | LDU_FT | [
"<BEGIN>\n## `_convert_to_folder`",
"Silverstripe's page contains a list of composer packages. This\n function converts those to folder names. These may be different due\n to installer-name.",
" Implemented exponential backoff in order to prevent packager from\n being... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_scan API.
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 url_scan API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | This is the main function called whenever a URL needs to be scanned.
This is called when a user specifies an individual CMS, or after CMS
identification has taken place. This function is called for individual
hosts specified by `-u` or for individual lines specified by `-U`.
@param url: ... | "This is the main function called whenever a URL needs to be scanned.\n This is called when a user specifies an individual CMS, or after CMS\n identification has taken place. This function is called for individual\n hosts specified by `-u` or for individual lines specified by `-U`.\n @param ... | 84 | false | droope/droopescan | url_scan | 39,572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.