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/cloudera/cm_api/to_json | LDU_FT | [
"<BEGIN>\n## `set_basic_auth`",
"Set up basic auth for the client\n @param username: Login name.\n @param password: Login password.\n @param realm: The authentication realm.\n @return: The current object\n<END>",
"<BEGIN>\n## `execute`",
"Submit an HTTP request.\n @param http_method: GET, POST,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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.
The extracted... | Returns the JSON encoding of the given attribute value.
If the value has a 'to_json_dict' object, that method is called. Otherwise,
the following values are returned for each input type:
- datetime.datetime: string with the API representation of a date.
- dictionary: if 'atype' is ApiConfig, a list o... | "Returns the JSON encoding of the given attribute value.\n\n If the value has a 'to_json_dict' object, that method is called. Otherwise,\n the following values are returned for each input type:\n - datetime.datetime: string with the API representation of a date.\n - dictionary: if 'atype' is ApiConfig, a ... | 561 | false | cloudera/cm_api | to_json | 5,273 | |
LDU_FT/DMSC-Instrument-Data/lewis/get_api | LDU_FT | [
"<BEGIN>\n## `get_submodules`",
"This function imports all sub-modules of the supplied module and returns a dictionary\n with module names as keys and the sub-module objects as values. If the supplied parameter\n is not a module object, a RuntimeError is raised.",
" :param module: Module object from wh... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_api API.
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 get_api API.
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... | This method returns the class name and a list of exposed methods.
It is exposed to RPC-clients by an instance of ExposedObjectCollection.
:return: A dictionary describing the exposed API (consisting of a class name and methods). | "This method returns the class name and a list of exposed methods.\n It is exposed to RPC-clients by an instance of ExposedObjectCollection.\n\n :return: A dictionary describing the exposed API (consisting of a class name and methods)." | 198 | false | DMSC-Instrument-Data/lewis | get_api | 5,274 | |
LDU_FT/wdm0006/git-pandas/file_owner | LDU_FT | [
"<BEGIN>\n## `repo_name`",
"Returns a DataFrame of the repo names present in this project directory",
" :return: DataFrame\n<END>",
"<BEGIN>\n## `coverage`",
"Will return a DataFrame with coverage information (if available) for each repo in the project).",
" If there is a .coverage file avai... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_owner API.
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 file_owner API.
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 owner (by majority blame) of a given file in a given rev. Returns the committers' name.
:param rev:
:param filename:
:param committer: | "Returns the owner (by majority blame) of a given file in a given rev. Returns the committers' name.\n\n :param rev:\n :param filename:\n :param committer:" | 123 | false | wdm0006/git-pandas | file_owner | 5,275 | |
LDU_FT/bitcraze/crazyflie-lib-python/_param_toc_updated_cb | LDU_FT | [
"<BEGIN>\n## `set_group_mask`",
"Set the group mask that the Crazyflie belongs to",
" :param group_mask: mask for which groups this CF belongs to\n<END>",
"<BEGIN>\n## `takeoff`",
"vertical takeoff from current x-y position to given height",
" :param absolute_height_m: absolut (m)\n :... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _param_toc_updated_cb 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 _param_toc_updated_cb API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Called when the param TOC has been fully updated | "Called when the param TOC has been fully updated" | 312 | false | bitcraze/crazyflie-lib-python | _param_toc_updated_cb | 5,276 | |
LDU_FT/diffeo/yakonfig/parse_args | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a sub-object of this factory.",
" Instantiates the `configurable` object with the current saved\n :attr:`config`. This essentially translates to\n ``configurable(**config)``, except services defined in the\n parent and requested by `configurable` (by ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Set up global configuration for command-line tools.
`modules` is an iterable of
:class:`yakonfig.Configurable` objects, or anything
equivalently typed. This function iterates through those objects
and calls
:meth:`~yakonfig.Configurable.add_arguments` on
each to build up a complete list of com... | "Set up global configuration for command-line tools.\n\n `modules` is an iterable of\n :class:`yakonfig.Configurable` objects, or anything\n equivalently typed. This function iterates through those objects\n and calls\n :meth:`~yakonfig.Configurable.add_arguments` on\n each to build up a complete lis... | 114 | false | diffeo/yakonfig | parse_args | 5,277 | |
LDU_FT/joeyespo/grip/render | LDU_FT | [
"<BEGIN>\n## `_get_style_urls`",
"Gets the specified resource and parses all style URLs and their\n assets in the form of the specified patterns.\n<END>",
"<BEGIN>\n## `_cache_contents`",
"Fetches the given URLs and caches their contents\n and their assets in the given directory.\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API.
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 render API.
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 ... | Renders the specified markdown content and embedded styles.
Raises TypeError if text is not a Unicode string.
Raises requests.HTTPError if the request fails. | "Renders the specified markdown content and embedded styles.\n\n Raises TypeError if text is not a Unicode string.\n Raises requests.HTTPError if the request fails." | 77 | false | joeyespo/grip | render | 5,278 | |
LDU_FT/lvieirajr/mongorest/retrieve | LDU_FT | [
"<BEGIN>\n## `insert`",
"Saves the Document to the database if it is valid.\n Returns errors otherwise.\n<END>",
"<BEGIN>\n## `update`",
"Updates the document with the given _id saved in the collection if it\n is valid.\n Returns errors otherwise.\n<END>",
"<BEGIN>\n## `delete`",
"Del... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve API.
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 retrieve API.
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... | Returns the document containing the given _id or 404 | "Returns the document containing the given _id or 404" | 42 | false | lvieirajr/mongorest | retrieve | 5,279 | |
LDU_FT/openspending/babbage/configure_api | LDU_FT | [
"<BEGIN>\n## `count_results`",
"Get the count of records matching the query.\n<END>",
"<BEGIN>\n## `generate_results`",
"Generate the resulting records for this query, applying pagination.\n Values will be returned by their reference.\n<END>",
"<BEGIN>\n## `apply`",
"Sort on a set of field specificatio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_api API.
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 configure_api API.
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... | Configure the current Flask app with an instance of ``CubeManager`` that
will be used to load and query data. | "Configure the current Flask app with an instance of ``CubeManager`` that\n will be used to load and query data." | 66 | false | openspending/babbage | configure_api | 5,280 | |
LDU_FT/wbond/certvalidator/_validate_path | LDU_FT | [
"<BEGIN>\n## `fetch`",
"Fetches an OCSP response for a certificate",
" :param cert:\n An asn1cyrpto.x509.Certificate object to get an OCSP reponse for",
" :param issuer:\n An asn1crypto.x509.Certificate object that is the issuer of cert",
" :param hash_algo:\n A unicode string ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_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 ex... | Builds possible certificate paths and validates them until a valid one
is found, or all fail.
:raises:
certvalidator.errors.PathValidationError - when an error occurs validating the path
certvalidator.errors.RevokedError - when the certificate or another certificate in its path ... | "Builds possible certificate paths and validates them until a valid one\n is found, or all fail.\n\n :raises:\n certvalidator.errors.PathValidationError - when an error occurs validating the path\n certvalidator.errors.RevokedError - when the certificate or another certificate in its... | 202 | false | wbond/certvalidator | _validate_path | 5,281 | |
LDU_FT/weso/CWR-DataApi/_printable_id_code | LDU_FT | [
"<BEGIN>\n## `char_code`",
"Character set code field.",
" :param name: name for the field\n :return: an instance of the Character set code field rules\n<END>",
"<BEGIN>\n## `_iso_handler`",
"Transforms an object into it's ISO format, if possible.",
" If the object can't be transformed, then an er... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _printable_id_code API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _printable_id_code API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Returns the code in a printable form, separating it into groups of
three characters using a point between them.
:return: the ID code in a printable form | "Returns the code in a printable form, separating it into groups of\n three characters using a point between them.\n\n :return: the ID code in a printable form" | 208 | false | weso/CWR-DataApi | _printable_id_code | 5,282 | |
LDU_FT/artefactual-labs/mets-reader-writer/get_decompression_transform_files | LDU_FT | [
"<BEGIN>\n## `register_id`",
"Register a manually assigned id as used, to avoid collisions.\n<END>",
"<BEGIN>\n## `parse`",
"Create a new AMDSec by parsing root.",
" :param root: Element or ElementTree to be parsed into an object.\n<END>",
"<BEGIN>\n## `serialize`",
"Serialize this amdSec and all... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_decompression_transform_files 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 get_decompression_transform_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | Returns a list of dicts representing ``<mets:transformFile>``
elements with ``TRANSFORMTYPE="decompression"`` given
``compression_algorithm`` which is a comma-separated string of
algorithms that must be used in the order provided to decompress
the package, e.g., 'bzip2,tar' or 'lzma'. | "Returns a list of dicts representing ``<mets:transformFile>``\n elements with ``TRANSFORMTYPE=\"decompression\"`` given\n ``compression_algorithm`` which is a comma-separated string of\n algorithms that must be used in the order provided to decompress\n the package, e.g., 'bzip2,tar' or 'lz... | 179 | false | artefactual-labs/mets-reader-writer | get_decompression_transform_files | 5,283 | |
LDU_FT/pkgw/pwkit/weighted_variance | LDU_FT | [
"<BEGIN>\n## `sample_gamma`",
"This is mostly about recording the conversion between Numpy/Scipy\n conventions and Wikipedia conventions. Some equations:",
" mean = alpha / beta\n variance = alpha / beta**2\n mode = (alpha - 1) / beta [if alpha > 1; otherwise undefined]\n skewness = 2 / sqrt(alph... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the weighted_variance API.
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 weighted_variance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Return the variance of a weighted sample.
The weighted sample mean is calculated and subtracted off, so the returned
variance is upweighted by ``n / (n - 1)``. If the sample mean is known to
be zero, you should just compute ``np.average (x**2, weights=weights)``. | "Return the variance of a weighted sample.\n\n The weighted sample mean is calculated and subtracted off, so the returned\n variance is upweighted by ``n / (n - 1)``. If the sample mean is known to\n be zero, you should just compute ``np.average (x**2, weights=weights)``." | 1,269 | true | pkgw/pwkit | weighted_variance | 5,284 | |
LDU_FT/buriburisuri/sugartensor/uniform | LDU_FT | [
"<BEGIN>\n## `constant`",
"r\"\"\"Creates a tensor variable of which initial values are `value` and shape is `shape`.",
" Args:\n name: The name of new variable.\n shape: A tuple/list of integers or an integer. \n If shape is an integer, it is converted to a list.\n value: A Python scal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uniform API.
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 uniform API.
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... | r"""Creates a tensor variable of which initial values are
random numbers based on uniform distribution.
Note that the default value of `scale` (=0.05) is different from
the min/max values (=0.0, 1.0) of tf.random_uniform_initializer.
Args:
name: The name of the new variable.
shap... | "r\"\"\"Creates a tensor variable of which initial values are \n random numbers based on uniform distribution.\n \n Note that the default value of `scale` (=0.05) is different from \n the min/max values (=0.0, 1.0) of tf.random_uniform_initializer.\n \n Args:\n name: The name of the new variable.... | 399 | false | buriburisuri/sugartensor | uniform | 5,285 | |
LDU_FT/erocarrera/pefile/set_dword_at_rva | LDU_FT | [
"<BEGIN>\n## `is_suspicious`",
"unusual locations of import tables\n non recognized section names\n presence of long ASCII strings\n<END>",
"<BEGIN>\n## `is_probably_packed`",
"Returns True is there is a high likelihood that a file is packed or contains compressed data.",
" The sections of the PE f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_dword_at_rva API.
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 set_dword_at_rva API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Set the double word value at the file offset corresponding to the given RVA. | "Set the double word value at the file offset corresponding to the given RVA." | 160 | false | erocarrera/pefile | set_dword_at_rva | 5,286 | |
LDU_FT/zrong/rookout/merge | 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 merge API.
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 merge API.
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... | 从源码中获取所有条目,合并到 po_file 中。
:param string po_file: 待写入的 po 文件路径。
:param list source_files : 所有待处理的原文件路径 list。 | "从源码中获取所有条目,合并到 po_file 中。\n\n :param string po_file: 待写入的 po 文件路径。\n :param list source_files : 所有待处理的原文件路径 list。" | 77 | false | zrong/rookout | merge | 5,287 | |
LDU_FT/wiheto/teneto/add_edge | LDU_FT | [
"<BEGIN>\n## `temporal_betweenness_centrality`",
"Returns temporal betweenness centrality per node.",
" Parameters\n -----------",
" Input should be *either* tnet or paths.",
" data : array or dict",
" Temporal network input (graphlet or contact). nettype: 'bu', 'bd'.",
" calc : st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_edge API.
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 add_edge API.
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... | Adds an edge from network.
Parameters
----------
edgelist : list
a list (or list of lists) containing the i,j and t indicies to be added. For weighted networks list should also contain a 'weight' key.
Returns
--------
Updates TenetoBIDS.network datafram... | "Adds an edge from network.\n\n Parameters\n ----------\n\n edgelist : list\n a list (or list of lists) containing the i,j and t indicies to be added. For weighted networks list should also contain a 'weight' key.\n\n Returns\n --------\n Updates TenetoBIDS.netwo... | 649 | false | wiheto/teneto | add_edge | 5,288 | |
LDU_FT/vertexproject/synapse/setLayers | LDU_FT | [
"<BEGIN>\n## `openDatFile`",
"Open a file-like object using a pkg relative path.",
" Example:",
" fd = openDatFile('foopkg.barpkg/wootwoot.bin')\n<END>",
"<BEGIN>\n## `scrape`",
"Scrape types from a blob of text and return node tuples.",
" Args:\n text (str): Text to scrape.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setLayers API.
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 setLayers API.
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... | Set the view layers from a list of idens.
NOTE: view layers are stored "top down" ( write is layers[0] ) | "Set the view layers from a list of idens.\n NOTE: view layers are stored \"top down\" ( write is layers[0] )" | 1,135 | true | vertexproject/synapse | setLayers | 5,289 | |
LDU_FT/prometheus/client_python/factory | LDU_FT | [
"<BEGIN>\n## `add_sample`",
"Add a sample to the metric.",
" Internal-only, do not use.\n<END>",
"<BEGIN>\n## `add_metric`",
"Add a metric to the metric family.",
" Args:\n labels: A list of label values\n value: The value of the metric\n created: Optional unix tim... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the factory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the factory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Returns a dynamic MetricsHandler class tied
to the passed registry. | "Returns a dynamic MetricsHandler class tied\n to the passed registry." | 100 | false | prometheus/client_python | factory | 5,290 | |
LDU_FT/bhmm/bhmm/init_hmm | LDU_FT | [
"<BEGIN>\n## `_forward_backward`",
"Estimation step: Runs the forward-back algorithm on trajectory with index itraj",
" Parameters\n ----------\n itraj : int\n index of the observation trajectory to process",
" Results\n -------\n logprob : float\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_hmm API.
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 init_hmm API.
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... | Use a heuristic scheme to generate an initial model.
Parameters
----------
observations : list of ndarray((T_i))
list of arrays of length T_i with observation data
nstates : int
The number of states.
output : str, optional, default=None
Output model type from [None, 'gaussia... | "Use a heuristic scheme to generate an initial model.\n\n Parameters\n ----------\n observations : list of ndarray((T_i))\n list of arrays of length T_i with observation data\n nstates : int\n The number of states.\n output : str, optional, default=None\n Output model type from [None... | 497 | false | bhmm/bhmm | init_hmm | 5,291 | |
LDU_FT/biocore/deblur/parallel_deblur | LDU_FT | [
"<BEGIN>\n## `deblur_system_call`",
"Build deblur command for subprocess.",
" Parameters\n ----------\n params: list of str\n parameter settings to pass to deblur CLI\n input_fp : str\n name of the input fasta file to deblur",
" Returns\n -------\n stdout: string\n pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parallel_deblur API.
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 parallel_deblur API.
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... | Dispatch execution over a pool of processors
This code was adopted from the American Gut project:
https://github.com/biocore/American-Gut/blob/master/americangut/parallel.py
Parameters
----------
inputs : iterable of str
File paths to input per-sample sequence files
params : list of st... | "Dispatch execution over a pool of processors\n\n This code was adopted from the American Gut project:\n https://github.com/biocore/American-Gut/blob/master/americangut/parallel.py\n\n Parameters\n ----------\n inputs : iterable of str\n File paths to input per-sample sequence files\n params : ... | 94 | false | biocore/deblur | parallel_deblur | 5,292 | |
LDU_FT/Hrabal/TemPy/move | LDU_FT | [
"<BEGIN>\n## `render_attrs`",
"Renders the tag's attributes using the formats and performing special attributes name substitution.\n<END>",
"<BEGIN>\n## `toggle_class`",
"Same as jQuery's toggleClass function. It toggles the css class on this element.\n<END>",
"<BEGIN>\n## `remove_class`",
"Removes the gi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move API.
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 move API.
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... | Moves this element from his father to the given one. | "Moves this element from his father to the given one." | 80 | false | Hrabal/TemPy | move | 5,293 | |
LDU_FT/Sanji-IO/sanji/register | LDU_FT | [
"<BEGIN>\n## `add`",
"Add a object\n Args:\n Object: Object will be added\n Returns:\n Object: Object with id\n Raises:\n TypeError: If add object is not a dict\n MultipleInvalid: If input object is invaild\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | register function
retry
True, infinity retries
False, no retries
Number, retries times
interval
time period for retry
return
False if no success
Tunnel if success | "register function\n retry\n True, infinity retries\n False, no retries\n Number, retries times\n interval\n time period for retry\n return\n False if no success\n Tunnel if success" | 45 | false | Sanji-IO/sanji | register | 5,294 | |
LDU_FT/inveniosoftware/invenio-oaiserver/_delete_percolator | LDU_FT | [
"<BEGIN>\n## `_schema_from_verb`",
"Return an instance of schema for given verb.\n<END>",
"<BEGIN>\n## `load`",
"Deserialize a data structure to an object.\n<END>",
"<BEGIN>\n## `make_request_validator`",
"Validate arguments in incomming request.\n<END>",
"<BEGIN>\n## `from_iso_permissive`",
"Parse an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _delete_percolator 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 _delete_percolator 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... | Delete percolator associated with the new oaiset. | "Delete percolator associated with the new oaiset." | 78 | false | inveniosoftware/invenio-oaiserver | _delete_percolator | 5,295 | |
LDU_FT/utek/pyseaweed/get_data | LDU_FT | [
"<BEGIN>\n## `get_file`",
"Get file from WeedFS.",
" Returns file content. May be problematic for large files as content is\n stored in memory.",
" Args:\n **fid**: File identifier <volume_id>,<file_name_hash>",
" Returns:\n Content of the file with provided... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Gets data from url as text
Returns content under the provided url as text
Args:
**url**: address of the wanted data
.. versionadded:: 0.3.2
**additional_headers**: (optional) Additional headers
to be used with request
Returns:
... | "Gets data from url as text\n\n Returns content under the provided url as text\n\n Args:\n **url**: address of the wanted data\n\n .. versionadded:: 0.3.2\n **additional_headers**: (optional) Additional headers\n to be used with request\n\n Return... | 67 | false | utek/pyseaweed | get_data | 5,296 | |
LDU_FT/matthiask/django-cte-forest/siblings | LDU_FT | [
"<BEGIN>\n## `_ensure_parameters`",
"Attempts to load and verify the CTE node parameters. Will use\n default values for all missing parameters, and raise an exception if\n a parameter's value cannot be verified. This method will only\n perform these actions once, and set the :attr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the siblings API.
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 siblings API.
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... | Returns a :class:`QuerySet` of all siblings of a given
:class:`CTENode` `node`.
:param node: a :class:`CTENode` whose siblings are required.
:returns: A :class:`QuerySet` of all siblings of the given `node`. | "Returns a :class:`QuerySet` of all siblings of a given\n :class:`CTENode` `node`.\n\n :param node: a :class:`CTENode` whose siblings are required.\n\n :returns: A :class:`QuerySet` of all siblings of the given `node`." | 153 | false | matthiask/django-cte-forest | siblings | 5,297 | |
LDU_FT/astropy/pyregion/_calculate_rotation_angle | LDU_FT | [
"<BEGIN>\n## `_generate_arg_types`",
"Find coordinate types based on shape name and coordlist length",
" This function returns a list of coordinate types based on which\n coordinates can be repeated for a given type of shap",
" Parameters\n ----------\n coordlist_length : int\n The numbe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate_rotation_angle 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 _calculate_rotation_angle API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Calculates the rotation angle from the region to the header's frame
This attempts to be compatible with the implementation used by SAOImage
DS9. In particular, this measures the rotation of the north axis as
measured at the center of the image, and therefore requires a
`~astropy.io.fits.Header` object ... | "Calculates the rotation angle from the region to the header's frame\n\n This attempts to be compatible with the implementation used by SAOImage\n DS9. In particular, this measures the rotation of the north axis as\n measured at the center of the image, and therefore requires a\n `~astropy.io.fits.Header` o... | 75 | false | astropy/pyregion | _calculate_rotation_angle | 5,298 | |
LDU_FT/agoragames/haigha/_purge_consumer_by_tag | LDU_FT | [
"<BEGIN>\n## `commit`",
"Commit the current transaction. Caller can specify a callback to use\n when the transaction is committed.\n<END>",
"<BEGIN>\n## `rollback`",
"Abandon all message publications and acks in the current transaction.\n Caller can specify a callback to use when the transactio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _purge_consumer_by_tag 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 _purge_consumer_by_tag API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Purge consumer entry from this basic instance
NOTE: this protected method may be called by derived classes
:param str consumer_tag: | "Purge consumer entry from this basic instance\n\n NOTE: this protected method may be called by derived classes\n\n :param str consumer_tag:" | 200 | false | agoragames/haigha | _purge_consumer_by_tag | 5,299 | |
LDU_FT/scikit-tda/persim/bottleneck | LDU_FT | [
"<BEGIN>\n## `bottleneck_matching`",
"Visualize bottleneck matching between two diagrams",
" Parameters\n ===========",
" I1: array\n A diagram\n I2: array\n A diagram\n matchidx: tuples of matched indices\n if input `matching=True`, then return matching\n D: array\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bottleneck API.
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 bottleneck API.
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... | Perform the Bottleneck distance matching between persistence diagrams.
Assumes first two columns of S and T are the coordinates of the persistence
points, but allows for other coordinate columns (which are ignored in
diagonal matching)
Parameters
-----------
dgm1: Mx(>=2)
array of birt... | "Perform the Bottleneck distance matching between persistence diagrams.\n Assumes first two columns of S and T are the coordinates of the persistence\n points, but allows for other coordinate columns (which are ignored in\n diagonal matching)\n\n Parameters\n -----------\n dgm1: Mx(>=2) \n arra... | 41 | false | scikit-tda/persim | bottleneck | 5,300 | |
LDU_FT/rdo-management/python-rdomanager-oscplugin/file_checksum | LDU_FT | [
"<BEGIN>\n## `_csv_to_nodes_dict`",
"Convert CSV to a list of dicts formatted for os_cloud_config",
" Given a CSV file in the format below, convert it into the\n structure expected by os_could_config JSON files.",
" pm_type, pm_addr, pm_user, pm_password, mac\n<END>",
"<BEGIN>\n## `build_option_par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_checksum API.
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 file_checksum API.
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... | Calculate md5 checksum on file
:param filepath: Full path to file (e.g. /home/stack/image.qcow2)
:type filepath: string | "Calculate md5 checksum on file\n\n :param filepath: Full path to file (e.g. /home/stack/image.qcow2)\n :type filepath: string" | 85 | false | rdo-management/python-rdomanager-oscplugin | file_checksum | 5,301 | |
LDU_FT/candango/firenado/is_mobile | LDU_FT | [
"<BEGIN>\n## `get_handlers`",
"Returns the handlers defined on the static_maps.yml file located\n at the app config directory.",
" Returns: An array of static handlers to be added to the app.\n<END>",
"<BEGIN>\n## `sig_handler`",
"Handle the signal sent to the process\n :param sig: Sig... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_mobile API.
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 is_mobile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Checks if the user browser from the given user agent is mobile.
Args:
user_agent: A given user agent.
Returns: True if the browser from the user agent is mobile. | "Checks if the user browser from the given user agent is mobile.\n\n Args:\n user_agent: A given user agent.\n\n Returns: True if the browser from the user agent is mobile." | 66 | false | candango/firenado | is_mobile | 5,302 | |
LDU_FT/mikemaccana/python-docx/findTypeParent | LDU_FT | [
"<BEGIN>\n## `opendocx`",
"Open a docx file, return a document XML tree\n<END>",
"<BEGIN>\n## `pagebreak`",
"Insert a break, default 'page'.\n See http://openxmldeveloper.org/forums/thread/4075.aspx\n Return our page break element.\n<END>",
"<BEGIN>\n## `paragraph`",
"Return a new paragraph element ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the findTypeParent API.
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 findTypeParent API.
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... | Finds fist parent of element of the given type
@param object element: etree element
@param string the tag parent to search for
@return object element: the found parent or None when not found | "Finds fist parent of element of the given type\n\n @param object element: etree element\n @param string the tag parent to search for\n\n @return object element: the found parent or None when not found" | 51 | false | mikemaccana/python-docx | findTypeParent | 5,303 | |
LDU_FT/google/tangent/forward_ad | LDU_FT | [
"<BEGIN>\n## `compile_file`",
"Compile by saving to file and importing that.",
" Compiling the AST/source code this way ensures that the source code is\n readable by e.g. `pdb` or `inspect`.",
" Args:\n source: The code to compile, either as a string or as an AST.\n globals_: A dictionary of variable... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forward_ad API.
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 forward_ad API.
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... | Perform forward-mode AD on an AST.
This function analyses the AST to determine which variables are active and
proceeds by taking the naive derivative. Before returning the primal and
adjoint it annotates push and pop statements as such.
Args:
node: A `FunctionDef` AST node.
wrt: A tuple of argument in... | "Perform forward-mode AD on an AST.\n\n This function analyses the AST to determine which variables are active and\n proceeds by taking the naive derivative. Before returning the primal and\n adjoint it annotates push and pop statements as such.\n\n Args:\n node: A `FunctionDef` AST node.\n wrt: A tuple of ar... | 368 | false | google/tangent | forward_ad | 5,304 | |
LDU_FT/chop-dbhi/varify/forwards | LDU_FT | [
"<BEGIN>\n## `set_cell_value`",
"Convenience method for setting the value of an openpyxl cell",
" This is necessary since the value property changed from internal_value\n to value between version 1.* and 2.*.\n<END>",
"<BEGIN>\n## `get_change_type`",
"Given ref, allele1, and allele2, returns the type ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forwards API.
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 forwards API.
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... | Perform a 'safe' load using Avocado's backup utilities. | "Perform a 'safe' load using Avocado's backup utilities." | 27 | false | chop-dbhi/varify | forwards | 5,305 | |
LDU_FT/SoftwareDefinedBuildings/XBOS/get_weather_power_tstat | LDU_FT | [
"<BEGIN>\n## `fillPelicanHole`",
"Fill a hole in a Pelican thermostat's data stream.",
" Arguments:\n site -- The thermostat's Pelican site name\n username -- The Pelican username for the site\n password -- The Pelican password for the site\n tstat_name -- The name of the thermost... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_weather_power_tstat 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_weather_power_tstat 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 weather and power data.
Parameters
----------
site : str
Site name.
start : str
Start date.
end : str
End date.
data_type : str
Type of data needed (all, weather, power, temperature, hsp, csp) | "Get weather and power data.\n\n Parameters\n ----------\n site : str\n Site name.\n start : str\n Start date.\n end : str\n End date.\n data_type : str\n Type of data needed (all, weather, power, temperature, h... | 305 | false | SoftwareDefinedBuildings/XBOS | get_weather_power_tstat | 5,306 | |
LDU_FT/exhuma/python-cluster/set_linkage_method | LDU_FT | [
"<BEGIN>\n## `getclusters`",
"Generates *count* clusters.",
" :param count: The amount of clusters that should be generated. count\n must be greater than ``1``.\n :raises ClusteringError: if *count* is out of bounds.\n<END>",
"<BEGIN>\n## `assign_item`",
"Assigns an item from a giv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_linkage_method API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_linkage_method API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Sets the method to determine the distance between two clusters.
:param method: The method to use. It can be one of ``'single'``,
``'complete'``, ``'average'`` or ``'uclus'``, or a callable. The
callable should take two collections as parameters and return a
distance value be... | "Sets the method to determine the distance between two clusters.\n\n :param method: The method to use. It can be one of ``'single'``,\n ``'complete'``, ``'average'`` or ``'uclus'``, or a callable. The\n callable should take two collections as parameters and return a\n distance va... | 76 | false | exhuma/python-cluster | set_linkage_method | 5,307 | |
LDU_FT/google/dotty/implicit_dynamic | LDU_FT | [
"<BEGIN>\n## `generate_chunks`",
"Yield 'chunk_size' items from 'data' at a time.\n<END>",
"<BEGIN>\n## `reduce`",
"Repeatedly call fold and merge on data and then finalize.",
" Arguments:\n data: Input for the fold function.\n reducer: The IReducer to use.\n chunk_size: How many ite... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the implicit_dynamic API.
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 implicit_dynamic API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Automatically generate late dynamic dispatchers to type.
This is similar to 'implicit_static', except instead of binding the
instance methods, it generates a dispatcher that will call whatever
instance method of the same name happens to be available at time of
dispatch.
This ha... | "Automatically generate late dynamic dispatchers to type.\n\n This is similar to 'implicit_static', except instead of binding the\n instance methods, it generates a dispatcher that will call whatever\n instance method of the same name happens to be available at time of\n dispatch.\n\n ... | 284 | false | google/dotty | implicit_dynamic | 5,308 | |
LDU_FT/btr1975/ipaddresstools/mcast_ip_mask | LDU_FT | [
"<BEGIN>\n## `ucast_ip_mask`",
"Function to check if a address is unicast and that the CIDR mask is good\n Args:\n ip_addr_and_mask: Unicast IP address and mask in the following format 192.168.1.1/24\n return_tuple: Set to True it returns a IP and mask in a tuple, set to False returns True or Fal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mcast_ip_mask API.
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 mcast_ip_mask API.
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... | Function to check if a address is multicast and that the CIDR mask is good
Args:
ip_addr_and_mask: Multicast IP address and mask in the following format 239.1.1.1/24
return_tuple: Set to True it returns a IP and mask in a tuple, set to False returns True or False
Returns: see return_tuple for r... | "Function to check if a address is multicast and that the CIDR mask is good\n Args:\n ip_addr_and_mask: Multicast IP address and mask in the following format 239.1.1.1/24\n return_tuple: Set to True it returns a IP and mask in a tuple, set to False returns True or False\n\n Returns: see return_tuple... | 46 | false | btr1975/ipaddresstools | mcast_ip_mask | 5,309 | |
LDU_FT/danilobellini/audiolazy/pre_processor | LDU_FT | [
"<BEGIN>\n## `deprecate`",
"A deprecation warning emmiter as a decorator.\n<END>",
"<BEGIN>\n## `get_module_names`",
"All names in the package directory that matches the given glob, without\n their extension. Repeated names should appear only once.\n<END>",
"<BEGIN>\n## `get_modules`",
"List of module ob... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pre_processor API.
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 pre_processor API.
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... | Callback preprocessor function for docstrings.
Converts data from Spyder pattern to Sphinx, using a ``namer`` function
that defaults to ``lambda name: ":obj:`{0}`".format(name)`` (specific for
``.. seealso::``). | "Callback preprocessor function for docstrings.\n Converts data from Spyder pattern to Sphinx, using a ``namer`` function\n that defaults to ``lambda name: \":obj:`{0}`\".format(name)`` (specific for\n ``.. seealso::``)." | 578 | false | danilobellini/audiolazy | pre_processor | 5,310 | |
LDU_FT/albu/albumentations/keypoint_rot90 | LDU_FT | [
"<BEGIN>\n## `add_snow`",
"Bleaches out pixels, mitation snow.",
" From https://github.com/UjjwalSaxena/Automold--Road-Augmentation-Library",
" Args:\n img:\n snow_point:\n brightness_coeff:",
" Returns:\n<END>",
"<BEGIN>\n## `add_fog`",
"Add fog to the image.",
" From... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keypoint_rot90 API.
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 keypoint_rot90 API.
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... | Rotates a keypoint by 90 degrees CCW (see np.rot90)
Args:
keypoint (tuple): A tuple (x, y, angle, scale).
factor (int): Number of CCW rotations. Must be in range [0;3] See np.rot90.
rows (int): Image rows.
cols (int): Image cols. | "Rotates a keypoint by 90 degrees CCW (see np.rot90)\n\n Args:\n keypoint (tuple): A tuple (x, y, angle, scale).\n factor (int): Number of CCW rotations. Must be in range [0;3] See np.rot90.\n rows (int): Image rows.\n cols (int): Image cols." | 100 | false | albu/albumentations | keypoint_rot90 | 5,311 | |
LDU_FT/NuGrid/NuGridPy/filter_desc | LDU_FT | [
"<BEGIN>\n## `_obsolete_plot_iso_abund_marco`",
"Interface to plot average over mass_range.",
" Parameters\n ----------\n directory : string\n Location of h5 file to plot. Needed for plot_tools.\n name_h5_file : string\n Name of h5 file. Needed for plot_tools.\n mass_range : list\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_desc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_desc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | This routine is to filter for description elements. You can
check what is available in the description by running,
>>> i.header_desc()
where i is the instance you loaded.
You can run the filter multiple times! You can filter for the
following types:
Parameters
... | "This routine is to filter for description elements. You can\n check what is available in the description by running,\n\n >>> i.header_desc()\n\n where i is the instance you loaded.\n\n You can run the filter multiple times! You can filter for the\n following types:\n\n Param... | 713 | false | NuGrid/NuGridPy | filter_desc | 5,312 | |
LDU_FT/libyal/dtfabric/FoldByteStream | LDU_FT | [
"<BEGIN>\n## `Main`",
"The main program function.",
" Returns:\n bool: True if successful or False if not.\n<END>",
"<BEGIN>\n## `CheckDirectory`",
"Validates definition files in a directory.",
" Args:\n path (str): path of the definition file.\n extension (Optional[str]): extension of th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FoldByteStream API.
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 FoldByteStream API.
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... | Folds the data type into a byte stream.
Args:
mapped_value (object): mapped value.
Returns:
bytes: byte stream.
Raises:
FoldingError: if the data type definition cannot be folded into
the byte stream. | "Folds the data type into a byte stream.\n\n Args:\n mapped_value (object): mapped value.\n\n Returns:\n bytes: byte stream.\n\n Raises:\n FoldingError: if the data type definition cannot be folded into\n the byte stream." | 373 | false | libyal/dtfabric | FoldByteStream | 5,313 | |
LDU_FT/skyfielders/python-skyfield/subpoint | LDU_FT | [
"<BEGIN>\n## `add_deflection`",
"Update `position` for how solar system masses will deflect its light.",
" Given the ICRS `position` [x,y,z] of an object (au) that is being\n viewed from the `observer` also expressed as [x,y,z], and given an\n ephemeris that can be used to determine solar system body p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subpoint API.
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 subpoint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return the latitude and longitude directly beneath this position.
Returns a :class:`~skyfield.toposlib.Topos` whose ``longitude``
and ``latitude`` are those of the point on the Earth's surface
directly beneath this position, and whose ``elevation`` is the
height of this position above t... | "Return the latitude and longitude directly beneath this position.\n\n Returns a :class:`~skyfield.toposlib.Topos` whose ``longitude``\n and ``latitude`` are those of the point on the Earth's surface\n directly beneath this position, and whose ``elevation`` is the\n height of this position a... | 392 | false | skyfielders/python-skyfield | subpoint | 5,314 | |
LDU_FT/GoogleCloudPlatform/appengine-gcs-client/delay | LDU_FT | [
"<BEGIN>\n## `check_status`",
"Check HTTP response status is expected.",
" Args:\n status: HTTP response status. int.\n expected: a list of expected statuses. A list of ints.\n path: filename or a path prefix.\n headers: HTTP request headers.\n resp_headers: HTTP response headers.\n body: HTT... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delay API.
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 delay API.
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... | Calculate delay before the next retry.
Args:
n: the number of current attempt. The first attempt should be 1.
start_time: the time when retry started in unix time.
Returns:
Number of seconds to wait before next retry. -1 if retry should give up. | "Calculate delay before the next retry.\n\n Args:\n n: the number of current attempt. The first attempt should be 1.\n start_time: the time when retry started in unix time.\n\n Returns:\n Number of seconds to wait before next retry. -1 if retry should give up." | 270 | false | GoogleCloudPlatform/appengine-gcs-client | delay | 5,315 | |
LDU_FT/totalgood/nlpia/clean_asciidoc | LDU_FT | [
"<BEGIN>\n## `main`",
"Train an LSTM encoder-decoder squence-to-sequence model on Anki flashcards for international translation",
" >>> model = main('spa', n=400, epochs=3, batch_size=128, num_neurons=32)\n Train on 360 samples, validate on 40 samples\n Epoch 1/3\n ...\n >>> len(model.get_weights... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_asciidoc API.
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 clean_asciidoc API.
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... | r""" Transform asciidoc text into ASCII text that NL parsers can handle
TODO:
Tag lines and words with meta data like italics, underlined, bold, title, heading 1, etc
>>> clean_asciidoc('**Hello** _world_!')
'"Hello" "world"!' | "r\"\"\" Transform asciidoc text into ASCII text that NL parsers can handle\n\n TODO:\n Tag lines and words with meta data like italics, underlined, bold, title, heading 1, etc\n\n >>> clean_asciidoc('**Hello** _world_!')\n '\"Hello\" \"world\"!'" | 471 | false | totalgood/nlpia | clean_asciidoc | 5,316 | |
LDU_FT/textmagic/textmagic-rest-python/delete_contacts | LDU_FT | [
"<BEGIN>\n## `messages`",
"Fetch messages by given session id.\n An useful synonym for \"messages/search\" command with provided `sessionId` parameter.\n Returns a list of :class:`Message` objects and a pager dict.",
" :Example:",
" messages = client.sessions.messages(1901001)",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_contacts API.
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 delete_contacts API.
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... | Unassign contacts from the specified list.
If contacts assign only to the specified list, then delete permanently.
Returns True if success.
:Example:
client.lists.delete_contacts(uid=1901010, contacts="1723812,1239912")
:param int uid: The unique id of the List. Required.... | "Unassign contacts from the specified list.\n If contacts assign only to the specified list, then delete permanently.\n Returns True if success.\n\n :Example:\n\n client.lists.delete_contacts(uid=1901010, contacts=\"1723812,1239912\")\n\n :param int uid: The unique id of the List... | 112 | false | textmagic/textmagic-rest-python | delete_contacts | 5,317 | |
LDU_FT/moonso/vcftoolbox/add_format | LDU_FT | [
"<BEGIN>\n## `get_vcf_header`",
"Get the header lines of a vcf file",
" Args:\n source(iterable): A vcf file",
" Returns:\n head (HeaderParser): A headerparser object\n<END>",
"<BEGIN>\n## `get_variant_dict`",
"Parse a variant line",
" Split a variant line and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_format API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_format API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Add a format line to the header.
Arguments:
format_id (str): The id of the format line
number (str): Integer or any of [A,R,G,.]
entry_type (str): Any of [Integer,Float,Flag,Character,String]
description (str): A description of the info line | "Add a format line to the header.\n\n Arguments:\n format_id (str): The id of the format line\n number (str): Integer or any of [A,R,G,.]\n entry_type (str): Any of [Integer,Float,Flag,Character,String]\n description (str): A description of the info line" | 81 | false | moonso/vcftoolbox | add_format | 5,318 | |
LDU_FT/GiulioRossetti/dynetx/non_neighbors | LDU_FT | [
"<BEGIN>\n## `node_link_data`",
"Return data in node-link format that is suitable for JSON serialization\n and use in Javascript documents.",
" Parameters\n ----------\n G : DyNetx graph",
" attrs : dict\n A dictionary that contains three keys 'id', 'source' and 'target'.\n The c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the non_neighbors API.
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 non_neighbors API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns the non-neighbors of the node in the graph at time t.
Parameters
----------
graph : DyNetx graph
Graph to find neighbors.
node : node
The node whose neighbors will be returned.
t : snapshot id (default=None)
If None the non-neighbors... | "Returns the non-neighbors of the node in the graph at time t.\n\n Parameters\n ----------\n graph : DyNetx graph\n Graph to find neighbors.\n\n node : node\n The node whose neighbors will be returned.\n\n t : snapshot id (default=None)\n If None the n... | 349 | false | GiulioRossetti/dynetx | non_neighbors | 5,319 | |
LDU_FT/TAPPGuild/bitjws/wif_to_privkey | LDU_FT | [
"<BEGIN>\n## `base64url_decode`",
"Decode a base64 message based on JWT spec, Appendix B.\n \"Notes on implementing base64url encoding without padding\"\n<END>",
"<BEGIN>\n## `_jws_payload`",
"Produce a base64-encoded JWS payload.",
" expire_at, if specified, must be a number that indicates\n a tim... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wif_to_privkey API.
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 wif_to_privkey API.
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... | Convert Wallet Import Format (WIF) to privkey bytes. | "Convert Wallet Import Format (WIF) to privkey bytes." | 32 | false | TAPPGuild/bitjws | wif_to_privkey | 5,320 | |
LDU_FT/hsdp/python-dropsonde/proto_refactor | LDU_FT | [
"<BEGIN>\n## `proto_refactor`",
"This method refactors a Protobuf file to import from a namespace\n that will map to the desired python package structure. It also ensures\n that the syntax is set to \"proto2\", since protoc complains without it.",
" Args:\n proto_filename (str): the protobuf fil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the proto_refactor API.
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 proto_refactor API.
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... | This method refactors a Protobuf file to import from a namespace
that will map to the desired python package structure. It also ensures
that the syntax is set to "proto2", since protoc complains without it.
Args:
proto_filename (str): the protobuf filename to be refactored
namespace (str): ... | "This method refactors a Protobuf file to import from a namespace\n that will map to the desired python package structure. It also ensures\n that the syntax is set to \"proto2\", since protoc complains without it.\n\n Args:\n proto_filename (str): the protobuf filename to be refactored\n namespac... | 16 | false | hsdp/python-dropsonde | proto_refactor | 5,321 | |
LDU_FT/EconForge/dolo/cartesian | LDU_FT | [
"<BEGIN>\n## `multidot_old`",
"Implements tensor operation : tensor-times-matrices.\n If last dimensions of ten represent multilinear operations of the type : [X1,...,Xk]->B[X1,...,Xk]\n and mats contains matrices or vectors [A1,...Ak] the function returns an array representing operators :\n [X1,...,Xk]-... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cartesian API.
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 cartesian API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Generate a cartesian product of input arrays.
Parameters
----------
arrays : list of array-like
1-D arrays to form the cartesian product of.
out : ndarray
Array to place the cartesian product in.
Returns
-------
out : ndarray
2-D array of shape (M, len(arrays)) cont... | "Generate a cartesian product of input arrays.\n\n Parameters\n ----------\n arrays : list of array-like\n 1-D arrays to form the cartesian product of.\n out : ndarray\n Array to place the cartesian product in.\n\n Returns\n -------\n out : ndarray\n 2-D array of shape (M, len(... | 221 | false | EconForge/dolo | cartesian | 5,322 | |
LDU_FT/log2timeline/dfdatetime/_GetNormalizedTimestamp | LDU_FT | [
"<BEGIN>\n## `_GetNormalizedTimestamp`",
"Retrieves the normalized timestamp.",
" Returns:\n decimal.Decimal: normalized timestamp, which contains the number of\n seconds since January 1, 1970 00:00:00 and a fraction of second used\n for increased precision, or None if the normalized t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _GetNormalizedTimestamp 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 _GetNormalizedTimestamp API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Retrieves the normalized timestamp.
Returns:
decimal.Decimal: normalized timestamp, which contains the number of
seconds since January 1, 1970 00:00:00 and a fraction of second used
for increased precision, or None if the normalized timestamp cannot be
determined. | "Retrieves the normalized timestamp.\n\n Returns:\n decimal.Decimal: normalized timestamp, which contains the number of\n seconds since January 1, 1970 00:00:00 and a fraction of second used\n for increased precision, or None if the normalized timestamp cannot be\n determined." | 244 | false | log2timeline/dfdatetime | _GetNormalizedTimestamp | 5,323 | |
LDU_FT/nicolargo/glances/load | LDU_FT | [
"<BEGIN>\n## `msg_curse`",
"Return the string to display in the curse interface.\n<END>",
"<BEGIN>\n## `load`",
"Load the web list from the configuration file.\n<END>",
"<BEGIN>\n## `set_server`",
"Set the key to the value for the pos (position in the list).\n<END>",
"<BEGIN>\n## `update`",
"Update se... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API.
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 load API.
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... | Load the server list from the configuration file. | "Load the server list from the configuration file." | 678 | false | nicolargo/glances | load | 5,324 | |
LDU_FT/crs4/pydoop/dump | LDU_FT | [
"<BEGIN>\n## `align_after`",
"Search for a sync point after offset and align just after that.\n<END>",
"<BEGIN>\n## `get_progress`",
"Give a rough estimate of the progress done.\n<END>",
"<BEGIN>\n## `is_local`",
"\\\n Is Hadoop configured to run in local mode?",
" By default, it is. [pseu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API.
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 dump API.
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... | \
Write ``data`` to ``hdfs_path``.
Keyword arguments are passed to :func:`open`, except for ``mode``,
which is forced to ``"w"`` (or ``"wt"`` for text data). | "\\\n Write ``data`` to ``hdfs_path``.\n\n Keyword arguments are passed to :func:`open`, except for ``mode``,\n which is forced to ``\"w\"`` (or ``\"wt\"`` for text data)." | 256 | false | crs4/pydoop | dump | 5,325 | |
LDU_FT/QUANTAXIS/QUANTAXIS/set_config | LDU_FT | [
"<BEGIN>\n## `start_market`",
"start the market thread and register backtest broker thread\n QAMarket 继承QATrader, QATrader 中有 trade_engine属性 , trade_engine类型是QA_Engine从 QA_Thread继承\n<END>",
"<BEGIN>\n## `message`",
"the standard message which can be transfer\n<END>",
"<BEGIN>\n## `init_hold_with_acco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | [summary]
Keyword Arguments:
section {str} -- [description] (default: {'MONGODB'})
option {str} -- [description] (default: {'uri'})
default_value {[type]} -- [description] (default: {DEFAULT_DB_URI})
Returns:
[type] -- [description] | "[summary]\n\n Keyword Arguments:\n section {str} -- [description] (default: {'MONGODB'})\n option {str} -- [description] (default: {'uri'})\n default_value {[type]} -- [description] (default: {DEFAULT_DB_URI})\n\n Returns:\n [type] -- [description]" | 835 | false | QUANTAXIS/QUANTAXIS | set_config | 5,326 | |
LDU_FT/night-crawler/django-docker-helpers/print_config_read_queue | LDU_FT | [
"<BEGIN>\n## `get`",
":param variable_path: a delimiter-separated path to a nested value\n :param default: default value if there's no object by specified path\n :param coerce_type: cast a type of a value to a specified one\n :param coercer: perform a type casting with specified callback\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_config_read_queue 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 print_config_read_queue API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Prints all read (in call order) options.
:param max_col_width: limit column width, ``50`` by default
:param use_color: use terminal colors
:return: nothing | "Prints all read (in call order) options.\n\n :param max_col_width: limit column width, ``50`` by default\n :param use_color: use terminal colors\n :return: nothing" | 141 | false | night-crawler/django-docker-helpers | print_config_read_queue | 5,327 | |
LDU_FT/tulsawebdevs/django-multi-gtfs/export_txt | LDU_FT | [
"<BEGIN>\n## `post_save_stop`",
"Update related objects when the Stop is updated\n<END>",
"<BEGIN>\n## `to_python`",
"Handle data from serialization and form clean() methods.\n<END>",
"<BEGIN>\n## `parse_seconds`",
"Parse string into Seconds instances.",
" Handled formats:\n HH:MM:SS\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_txt API.
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 export_txt API.
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... | Export records as a GTFS comma-separated file | "Export records as a GTFS comma-separated file" | 16 | false | tulsawebdevs/django-multi-gtfs | export_txt | 5,328 | |
LDU_FT/RI-imaging/qpimage/add_qpimage | 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 add_qpimage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_qpimage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Add a QPImage instance to the QPSeries
Parameters
----------
qpi: qpimage.QPImage
The QPImage that is added to the series
identifier: str
Identifier key for `qpi`
bg_from_idx: int or None
Use the background data from the data stored in this in... | "Add a QPImage instance to the QPSeries\n\n Parameters\n ----------\n qpi: qpimage.QPImage\n The QPImage that is added to the series\n identifier: str\n Identifier key for `qpi`\n bg_from_idx: int or None\n Use the background data from the data stored ... | 115 | false | RI-imaging/qpimage | add_qpimage | 5,329 | |
LDU_FT/sanoma/django-arctic/find_attribute | LDU_FT | [
"<BEGIN>\n## `get_all_fields`",
"Returns a list of all field names on the instance.\n<END>",
"<BEGIN>\n## `query_string_ordering`",
"Add ordering param to the given query string\n :param context: template context\n :param value: examples would be '-id' or 'id'. A minus indicates that the\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_attribute API.
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 find_attribute API.
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... | Finds the attribute connected to the last object when a chain of
connected objects is given in a string separated with double underscores.
For example when a model x has a foreign key to model y and model y has
attribute a, findattr(x, 'y__a') will return the a attribute from the y
model that exists in ... | "Finds the attribute connected to the last object when a chain of\n connected objects is given in a string separated with double underscores.\n For example when a model x has a foreign key to model y and model y has\n attribute a, findattr(x, 'y__a') will return the a attribute from the y\n model that exist... | 85 | false | sanoma/django-arctic | find_attribute | 5,330 | |
LDU_FT/barrust/mediawiki/str_or_unicode | LDU_FT | [
"<BEGIN>\n## `timeout`",
"Set request timeout in seconds (or fractions of a second)\n<END>",
"<BEGIN>\n## `language`",
"Set the language to use; attempts to change the API URL\n<END>",
"<BEGIN>\n## `login`",
"Login as specified user",
" Args:\n username (str): The username to l... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_or_unicode API.
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 str_or_unicode API.
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... | handle python 3 unicode and python 2.7 byte strings | "handle python 3 unicode and python 2.7 byte strings" | 107 | false | barrust/mediawiki | str_or_unicode | 5,331 | |
LDU_FT/facelessuser/backrefs/gen_properties | LDU_FT | [
"<BEGIN>\n## `download_unicodedata`",
"Download Unicode data scripts and blocks.\n<END>",
"<BEGIN>\n## `get_unicodedata`",
"Ensure we have Unicode data to generate Unicode tables.\n<END>",
"<BEGIN>\n## `posix_props`",
"Insert POSIX properties.",
" Posix style properties are not as forgiving\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_properties API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_properties API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Generate the property table and dump it to the provided file. | "Generate the property table and dump it to the provided file." | 75 | false | facelessuser/backrefs | gen_properties | 5,332 | |
LDU_FT/opentracing-contrib/python-tornado/trace | LDU_FT | [
"<BEGIN>\n## `tracer_config`",
"Wraps the Tornado web application initialization so that the\n TornadoTracing instance is created around an OpenTracing-compatible tracer.\n<END>",
"<BEGIN>\n## `trace`",
"Function decorator that traces functions\n NOTE: Must be placed before the Tornado decorators\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trace API.
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 trace API.
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... | Function decorator that traces functions
NOTE: Must be placed before the Tornado decorators
@param attributes any number of request attributes
(strings) to be set as tags on the created span | "Function decorator that traces functions\n NOTE: Must be placed before the Tornado decorators\n @param attributes any number of request attributes\n (strings) to be set as tags on the created span" | 12 | false | opentracing-contrib/python-tornado | trace | 5,333 | |
LDU_FT/google/textfsm/_SetValues | LDU_FT | [
"<BEGIN>\n## `_SetValues`",
"Set values from supplied dictionary or list.",
" Args:\n values: A Row, dict indexed by column name, or list.",
" Raises:\n TypeError: Argument is not a list or dict, or list is not equal row\n length or dictionary keys don't match.\n<END>",
"<BEGIN>\n## `Fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _SetValues API.
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 _SetValues API.
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... | Set values from supplied dictionary or list.
Args:
values: A Row, dict indexed by column name, or list.
Raises:
TypeError: Argument is not a list or dict, or list is not equal row
length or dictionary keys don't match. | "Set values from supplied dictionary or list.\n\n Args:\n values: A Row, dict indexed by column name, or list.\n\n Raises:\n TypeError: Argument is not a list or dict, or list is not equal row\n length or dictionary keys don't match." | 149 | false | google/textfsm | _SetValues | 5,334 | |
LDU_FT/pjamesjoyce/lcopt/evaluate_parameter_sets | LDU_FT | [
"<BEGIN>\n## `write`",
"write the current settings to the config file\n<END>",
"<BEGIN>\n## `hierarchy_pos`",
"If there is a cycle that is reachable from root, then this will see infinite recursion.\n G: the graph\n root: the root node of current branch\n width: horizontal space allocated fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate_parameter_sets 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 evaluate_parameter_sets API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | This takes the parameter sets of the model instance and evaluates any formulas using the parameter values to create a
fixed, full set of parameters for each parameter set in the model | "This takes the parameter sets of the model instance and evaluates any formulas using the parameter values to create a \n fixed, full set of parameters for each parameter set in the model" | 73 | false | pjamesjoyce/lcopt | evaluate_parameter_sets | 5,335 | |
LDU_FT/BerkeleyAutomation/perception/align | LDU_FT | [
"<BEGIN>\n## `frames`",
"Retrieve a new frame from the PhoXi and convert it to a ColorImage,\n a DepthImage, and an IrImage.",
" Returns\n -------\n :obj:`tuple` of :obj:`ColorImage`, :obj:`DepthImage`, :obj:`IrImage`, :obj:`numpy.ndarray`\n The ColorImage, DepthImage, and... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the align API.
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 align API.
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... | Create a thumbnail from the original image that
is scaled by the given factor, centered on the center pixel, oriented along the grasp angle, and cropped to the desired height and width.
Parameters
----------
scale : float
scale factor to apply
center : 2D array
... | "Create a thumbnail from the original image that\n is scaled by the given factor, centered on the center pixel, oriented along the grasp angle, and cropped to the desired height and width.\n\n Parameters\n ----------\n scale : float\n scale factor to apply\n center : 2D arr... | 657 | false | BerkeleyAutomation/perception | align | 5,336 | |
LDU_FT/flowroute/txjason/_fill_request | LDU_FT | [
"<BEGIN>\n## `addToService`",
"Add this Handler's exported methods to an RPC Service instance.\n<END>",
"<BEGIN>\n## `add`",
"Adds a new method to the jsonrpc service.",
" Arguments:\n f -- the remote function\n name -- name of the method in the jsonrpc service\n types -- list or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fill_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fill_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Fills request with data from the jsonrpc call. | "Fills request with data from the jsonrpc call." | 40 | false | flowroute/txjason | _fill_request | 5,337 | |
LDU_FT/CodyKochmann/generators/multi_ops | LDU_FT | [
"<BEGIN>\n## `first`",
"first is essentially the next() function except it's second argument\n determines how many of the first items you want. If items is more than\n 1 the output is an islice of the generator. If items is 1, the first\n item is returned\n<END>",
"<BEGIN>\n## `timed_pipe`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_ops API.
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 multi_ops API.
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... | fork a generator with multiple operations/functions
data_stream - an iterable data structure (ie: list/generator/tuple)
funcs - every function that will be applied to the data_stream | "fork a generator with multiple operations/functions\n\n data_stream - an iterable data structure (ie: list/generator/tuple)\n funcs - every function that will be applied to the data_stream" | 71 | false | CodyKochmann/generators | multi_ops | 5,338 | |
LDU_FT/MichaelAquilina/hashedindex/get_tfidf | LDU_FT | [
"<BEGIN>\n## `normalize_unicode`",
"Normalize any unicode characters to ascii equivalent\n https://docs.python.org/2/library/unicodedata.html#unicodedata.normalize\n<END>",
"<BEGIN>\n## `word_tokenize`",
"Parses the given text and yields tokens which represent words within\n the given text. Tokens are a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tfidf API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tfidf API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Returns the Term-Frequency Inverse-Document-Frequency value for the given
term in the specified document. If normalized is True, term frequency will
be divided by the document length. | "Returns the Term-Frequency Inverse-Document-Frequency value for the given\n term in the specified document. If normalized is True, term frequency will\n be divided by the document length." | 27 | false | MichaelAquilina/hashedindex | get_tfidf | 5,339 | |
LDU_FT/roamanalytics/mittens/get_step | LDU_FT | [
"<BEGIN>\n## `_apply_updates`",
"Apply AdaGrad update to parameters.",
" Parameters\n ----------\n gradients",
" Returns\n -------\n<END>",
"<BEGIN>\n## `get_step`",
"Computes the 'step' to take for the next gradient descent update.",
" Returns the step rather t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_step API.
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_step API.
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... | Computes the 'step' to take for the next gradient descent update.
Returns the step rather than performing the update so that
parameters can be updated in place rather than overwritten.
Examples
--------
>>> gradient = # ...
>>> optimizer = AdaGradOptimizer(0.01)
... | "Computes the 'step' to take for the next gradient descent update.\n\n Returns the step rather than performing the update so that\n parameters can be updated in place rather than overwritten.\n\n Examples\n --------\n >>> gradient = # ...\n >>> optimizer = AdaGradOptimizer(0.01... | 47 | false | roamanalytics/mittens | get_step | 5,340 | |
LDU_FT/jorisroovers/pymarkdownlint/lint_files | LDU_FT | [
"<BEGIN>\n## `find_files`",
"Finds files with an (optional) given extension in a given path.\n<END>",
"<BEGIN>\n## `apply_on_csv_string`",
"Splits a given string by comma, trims whitespace on the resulting strings and applies a given ```func``` to\n each item.\n<END>",
"<BEGIN>\n## `get_lint_config`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lint_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lint_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Lints a list of files.
:param files: list of files to lint
:return: a list of violations found in the files | "Lints a list of files.\n :param files: list of files to lint\n :return: a list of violations found in the files" | 12 | false | jorisroovers/pymarkdownlint | lint_files | 5,341 | |
LDU_FT/raphaelm/python-sepaxml/_finalize_batch | LDU_FT | [
"<BEGIN>\n## `check_payment`",
"Check the payment for required fields and validity.\n @param payment: The payment dict\n @return: True if valid, error string if invalid paramaters where\n encountered.\n<END>",
"<BEGIN>\n## `add_payment`",
"Function to add payments\n @param payment:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _finalize_batch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _finalize_batch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Method to finalize the batch, this will iterate over the _batches dict
and create a PmtInf node for each batch. The correct information (from
the batch_key and batch_totals) will be inserted and the batch
transaction nodes will be folded. Finally, the batches will be added to
the main XM... | "Method to finalize the batch, this will iterate over the _batches dict\n and create a PmtInf node for each batch. The correct information (from\n the batch_key and batch_totals) will be inserted and the batch\n transaction nodes will be folded. Finally, the batches will be added to\n the ma... | 45 | false | raphaelm/python-sepaxml | _finalize_batch | 5,342 | |
LDU_FT/javipalanca/spade/match | LDU_FT | [
"<BEGIN>\n## `set_available`",
"Sets the agent availability to True.",
" Args:\n show (aioxmpp.PresenceShow, optional): the show state of the presence (Default value = None)\n<END>",
"<BEGIN>\n## `set_presence`",
"Change the presence broadcast by the client.\n If the client is current... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Matches a message with the behaviour's template
Args:
message(spade.message.Message): the message to match with
Returns:
bool: wheter the messaged matches or not | "Matches a message with the behaviour's template\n\n Args:\n message(spade.message.Message): the message to match with\n\n Returns:\n bool: wheter the messaged matches or not" | 153 | false | javipalanca/spade | match | 5,343 | |
LDU_FT/suds-community/suds/__parse | LDU_FT | [
"<BEGIN>\n## `xml`",
"Get xml representation of the object.\n @return: The root node.\n @rtype: L{Element}\n<END>",
"<BEGIN>\n## `skip`",
"Get whether to skip (filter-out) the specified attribute.\n @param attr: An attribute.\n @type attr: I{Attribute}\n @return: True if sho... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Parse the string datetime.
Supports the subset of ISO8601 used by xsd:dateTime, but is lenient
with what is accepted, handling most reasonable syntax.
Subsecond information is rounded to microseconds due to a restriction
in the python datetime.datetime/time implementation.
@pa... | "Parse the string datetime.\n\n Supports the subset of ISO8601 used by xsd:dateTime, but is lenient\n with what is accepted, handling most reasonable syntax.\n\n Subsecond information is rounded to microseconds due to a restriction\n in the python datetime.datetime/time implementation.\n\n ... | 466 | false | suds-community/suds | __parse | 5,344 | |
LDU_FT/pyusb/pyusb/find | LDU_FT | [
"<BEGIN>\n## `_try_get_string`",
"try to get a string, but return a string no matter what\n<END>",
"<BEGIN>\n## `_try_lookup`",
"try to get a string from the lookup table, return \"\" instead of key\n error\n<END>",
"<BEGIN>\n## `find`",
"r\"\"\"Find an USB device and return it.",
" find() is the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | r"""Find an USB device and return it.
find() is the function used to discover USB devices. You can pass as
arguments any combination of the USB Device Descriptor fields to match a
device. For example:
find(idVendor=0x3f4, idProduct=0x2009)
will return the Device object for the device with idVend... | "r\"\"\"Find an USB device and return it.\n\n find() is the function used to discover USB devices. You can pass as\n arguments any combination of the USB Device Descriptor fields to match a\n device. For example:\n\n find(idVendor=0x3f4, idProduct=0x2009)\n\n will return the Device object for the device... | 229 | false | pyusb/pyusb | find | 5,345 | |
LDU_FT/yvesalexandre/bandicoot/fix_location | LDU_FT | [
"<BEGIN>\n## `filter_user`",
"Filter records of a User objects by interaction, part of week and day.",
" Parameters\n ----------\n user : User\n a bandicoot User object\n type : str, default 'records'\n 'records' or 'recharges'\n part_of_week : {'allweek', 'weekday', 'weekend'}, def... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_location API.
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 fix_location API.
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 position of all records based on the position of
the closest GPS record.
.. note:: Use this function when call and text records are missing a
location, but you have access to accurate GPS traces. | "Update position of all records based on the position of\n the closest GPS record.\n\n .. note:: Use this function when call and text records are missing a\n location, but you have access to accurate GPS traces." | 318 | false | yvesalexandre/bandicoot | fix_location | 5,346 | |
LDU_FT/thespacedoctor/HMpTy/_get_trixel_ids_that_overlap_conesearch_circles | LDU_FT | [
"<BEGIN>\n## `add_htm_ids_to_mysql_database_table`",
"*Given a database connection, a name of a table and the column names for RA and DEC, generates ID for one or more HTM level in the table*",
" **Key Arguments:**\n - ``raColName`` -- ra in sexegesimal\n - ``declColName`` -- dec in sexegesimal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_trixel_ids_that_overlap_conesearch_circles API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_trixel_ids_that_overlap_conesearch_circles API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ... | *Get an array of all of the trixels IDs that overlap the conesearch circles(s)*
**Return:**
- ``trixelArray`` -- an array of all the overlapping trixel ids | "*Get an array of all of the trixels IDs that overlap the conesearch circles(s)*\n\n **Return:**\n - ``trixelArray`` -- an array of all the overlapping trixel ids" | 81 | false | thespacedoctor/HMpTy | _get_trixel_ids_that_overlap_conesearch_circles | 5,347 | |
LDU_FT/LISE-B26/pylabcontrol/explore_package | LDU_FT | [
"<BEGIN>\n## `instantiate_probes`",
"Creates instances of the probes inputed;",
" Args:\n probes: probes is a nested dictionary with\n (key, sub_dict ) = (name of the probe, {'probe_name': value_probe, 'instrument_name': value_inst}),\n where value_probe is a valid name of a pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the explore_package API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the explore_package API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | returns all the packages in the module
Args:
module_name: name of module
Returns: | "returns all the packages in the module\n\n Args:\n module_name: name of module\n\n Returns:" | 301 | false | LISE-B26/pylabcontrol | explore_package | 5,348 | |
LDU_FT/kbr/fritzconnection/format_num | LDU_FT | [
"<BEGIN>\n## `set_fraction`",
"Set the meter indicator. Value should be between 0 and 1.\n<END>",
"<BEGIN>\n## `update_status`",
"Update status informations in tkinter window.\n<END>",
"<BEGIN>\n## `format_num`",
"Returns a human readable string of a byte-value.\n If 'num' is bits, set unit='bits'.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_num API.
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 format_num API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns a human readable string of a byte-value.
If 'num' is bits, set unit='bits'. | "Returns a human readable string of a byte-value.\n If 'num' is bits, set unit='bits'." | 38 | false | kbr/fritzconnection | format_num | 5,349 | |
LDU_FT/offu/WeRoBot/encrypt_message | LDU_FT | [
"<BEGIN>\n## `make_view`",
"为一个 BaseRoBot 生成 Flask view。",
" Usage ::",
" from werobot import WeRoBot",
" robot = WeRoBot(token='token')",
" @robot.handler\n def hello(message):\n return 'Hello World!'",
" from flask import Flask\n from werobot.con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | 加密微信回复
:param reply: 加密前的回复
:type reply: WeChatReply 或 XML 文本
:return: 加密后的回复文本 | "加密微信回复\n :param reply: 加密前的回复\n :type reply: WeChatReply 或 XML 文本\n :return: 加密后的回复文本" | 223 | false | offu/WeRoBot | encrypt_message | 5,350 | |
LDU_FT/CSchoel/nolds/corr_dim | LDU_FT | [
"<BEGIN>\n## `weron_2002_figure2`",
"Recreates figure 2 of [w]_ comparing the reported values by Weron to the\n values obtained by the functions in this package.",
" The experiment consists of n iterations where the hurst exponent of randomly\n generated gaussian noise is calculated. This is done with differ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the corr_dim API.
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 corr_dim API.
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... | Calculates the correlation dimension with the Grassberger-Procaccia algorithm
Explanation of correlation dimension:
The correlation dimension is a characteristic measure that can be used
to describe the geometry of chaotic attractors. It is defined using the
correlation sum C(r) which is the fraction of ... | "Calculates the correlation dimension with the Grassberger-Procaccia algorithm\n\n Explanation of correlation dimension:\n The correlation dimension is a characteristic measure that can be used\n to describe the geometry of chaotic attractors. It is defined using the\n correlation sum C(r) which is the fracti... | 236 | false | CSchoel/nolds | corr_dim | 5,351 | |
LDU_FT/kpdyer/libfte/encrypt | LDU_FT | [
"<BEGIN>\n## `long_to_bytes`",
"Given an input integer ``N``, ``long_to_bytes`` returns the representation of ``N`` in bytes.\n If ``blocksize`` is greater than ``1`` then the output string will be right justified and then padded with zero-bytes,\n such that the return values length is a multiple of ``block... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt API.
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 encrypt API.
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... | Given ``plaintext``, returns a ``ciphertext`` encrypted with an authenticated-encryption scheme, using the keys specified in ``__init__``.
Ciphertext expansion is deterministic, the output ciphertext is always 42 bytes longer than the input ``plaintext``.
The input ``plaintext`` can be ``''``.
... | "Given ``plaintext``, returns a ``ciphertext`` encrypted with an authenticated-encryption scheme, using the keys specified in ``__init__``.\n Ciphertext expansion is deterministic, the output ciphertext is always 42 bytes longer than the input ``plaintext``.\n The input ``plaintext`` can be ``''``.\n\n ... | 16 | false | kpdyer/libfte | encrypt | 5,352 | |
LDU_FT/sanger-pathogens/ariba/get_total_alignment_score | LDU_FT | [
"<BEGIN>\n## `_update_threads`",
"Update available thread count post-construction.\n To be called any number of times from run() method\n<END>",
"<BEGIN>\n## `_report_completion`",
"Update shared counters to signal that we are done with this cluster.\n Call just before exiting run() method (in a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_total_alignment_score 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_total_alignment_score API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Returns total of AS: tags in the input BAM | "Returns total of AS: tags in the input BAM" | 105 | false | sanger-pathogens/ariba | get_total_alignment_score | 5,353 | |
LDU_FT/morngrar/betterdialogs/buttons | LDU_FT | [
"<BEGIN>\n## `load_image`",
"Takes a tk.Canvas and a filepath, loads image into canvas\n<END>",
"<BEGIN>\n## `load_image`",
"Loads new image into canvas, updating size if needed.\n<END>",
"<BEGIN>\n## `parse_geometry`",
"Takes a geometry string, returns map of parameters.\n<END>",
"<BEGIN>\n## `buttons`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the buttons API.
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 buttons API.
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... | Add a standard button box.
Override if you do not want the standard buttons | "Add a standard button box.\n\n Override if you do not want the standard buttons" | 20 | false | morngrar/betterdialogs | buttons | 5,354 | |
LDU_FT/rpcope1/HackerNewsAPI-Py/_make_request | LDU_FT | [
"<BEGIN>\n## `_make_request`",
"Helper function for making requests\n :param suburl: The suburl to query\n :return: Decoded json object\n<END>",
"<BEGIN>\n## `get_item`",
"Get a dictionary or object with info about the given item number from the Hacker News API.\n Item can be a poll, stor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Helper function for making requests
:param suburl: The suburl to query
:return: Decoded json object | "Helper function for making requests\n :param suburl: The suburl to query\n :return: Decoded json object" | 19 | false | rpcope1/HackerNewsAPI-Py | _make_request | 5,355 | |
LDU_FT/hfaran/Tornado-JSON/_get_rh_methods | LDU_FT | [
"<BEGIN>\n## `_validate_example`",
"Validates example against schema",
" :returns: Formatted example if example exists and validates, otherwise None\n :raises ValidationError: If example does not validate against the schema\n<END>",
"<BEGIN>\n## `_get_rh_methods`",
"Yield all HTTP methods in ``rh`` th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_rh_methods API.
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_rh_methods API.
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... | Yield all HTTP methods in ``rh`` that are decorated
with schema.validate | "Yield all HTTP methods in ``rh`` that are decorated\n with schema.validate" | 61 | false | hfaran/Tornado-JSON | _get_rh_methods | 5,356 | |
LDU_FT/potash/drain/_print_unhashable | LDU_FT | [
"<BEGIN>\n## `y_score`",
"Score examples from a new matrix X\n Args:\n estimator: an sklearn estimator object\n X: design matrix with the same features that the estimator was trained on",
" Returns: a vector of scores of the same length as X",
" Note that estimator.predict_proba is pref... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _print_unhashable API.
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 _print_unhashable API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Replace unhashable values in a DataFrame with their string repr
Args:
df: DataFrame
columns: columns to replace, if necessary. Default None replaces all columns. | "Replace unhashable values in a DataFrame with their string repr\n Args:\n df: DataFrame\n columns: columns to replace, if necessary. Default None replaces all columns." | 165 | false | potash/drain | _print_unhashable | 5,357 | |
LDU_FT/msmbuilder/msmbuilder/partial_transform | LDU_FT | [
"<BEGIN>\n## `fraction_visited`",
"Calculate the fraction of times a walker on `tprob` going from `sources`\n to `sinks` will travel through the set of states `waypoints` en route.",
" Computes the conditional committors q^{ABC^+} and uses them to find the\n fraction of paths mentioned above.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the partial_transform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the partial_transform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Featurize an MD trajectory into a vector space via distance
after superposition
Parameters
----------
traj : mdtraj.Trajectory
A molecular dynamics trajectory to featurize.
Returns
-------
features : np.ndarray, shape=(n_frames, n_ref_frames)
... | "Featurize an MD trajectory into a vector space via distance\n after superposition\n\n Parameters\n ----------\n traj : mdtraj.Trajectory\n A molecular dynamics trajectory to featurize.\n\n Returns\n -------\n features : np.ndarray, shape=(n_frames, n_ref_fram... | 721 | false | msmbuilder/msmbuilder | partial_transform | 5,358 | |
LDU_FT/s4int/robotframework-KafkaLibrary/connect_producer | LDU_FT | [
"<BEGIN>\n## `connect_producer`",
"A Kafka client that publishes records to the Kafka cluster.",
" Keyword Arguments:\n - ``bootstrap_servers``: 'host[:port]' string (or list of 'host[:port]'\n strings) that the producer should contact to bootstrap initial\n cluster metadata. Thi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_producer API.
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 connect_producer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | A Kafka client that publishes records to the Kafka cluster.
Keyword Arguments:
- ``bootstrap_servers``: 'host[:port]' string (or list of 'host[:port]'
strings) that the producer should contact to bootstrap initial
cluster metadata. This does not have to be the full node list.
... | "A Kafka client that publishes records to the Kafka cluster.\n \n Keyword Arguments:\n - ``bootstrap_servers``: 'host[:port]' string (or list of 'host[:port]'\n strings) that the producer should contact to bootstrap initial\n cluster metadata. This does not have to be the full node li... | 42 | false | s4int/robotframework-KafkaLibrary | connect_producer | 5,359 | |
LDU_FT/awslabs/sockeye/create_training_model | LDU_FT | [
"<BEGIN>\n## `check_arg_compatibility`",
"Check if some arguments are incompatible with each other.",
" :param args: Arguments as returned by argparse.\n<END>",
"<BEGIN>\n## `check_resume`",
"Check if we should resume a broken training run.",
" :param args: Arguments as returned by argparse.\n :p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_training_model API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_training_model API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Create a training model and load the parameters from disk if needed.
:param config: The configuration for the model.
:param context: The context(s) to run on.
:param output_dir: Output folder.
:param train_iter: The training data iterator.
:param args: Arguments as returned by argparse.
:return... | "Create a training model and load the parameters from disk if needed.\n\n :param config: The configuration for the model.\n :param context: The context(s) to run on.\n :param output_dir: Output folder.\n :param train_iter: The training data iterator.\n :param args: Arguments as returned by argparse.\n ... | 1,056 | true | awslabs/sockeye | create_training_model | 5,360 | |
LDU_FT/grahame/sedge/update | LDU_FT | [
"<BEGIN>\n## `check_or_confirm_overwrite`",
"Returns True if OK to proceed, False otherwise\n<END>",
"<BEGIN>\n## `cli`",
"Template and share OpenSSH ssh_config(5) files. A preprocessor for\n OpenSSH configurations.\n<END>",
"<BEGIN>\n## `init`",
"Initialise ~./sedge/config file if none exists.\n Go... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Update ssh config from sedge specification | "Update ssh config from sedge specification" | 14 | false | grahame/sedge | update | 5,361 | |
LDU_FT/Jaymon/prom/modify | LDU_FT | [
"<BEGIN>\n## `fields`",
"return all the fields and their raw values for this Orm instance. This\n property returns a dict with the field names and their current values",
" if you want to control the values for outputting to an api, use .jsonable()\n<END>",
"<BEGIN>\n## `create`",
"create an in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | update the fields of this instance with the values in dict fields
this should rarely be messed with, if you would like to manipulate the
fields you should override _modify()
:param fields: dict, the fields in a dict
:param **fields_kwargs: dict, if you would like to pass the fields as ... | "update the fields of this instance with the values in dict fields\n\n this should rarely be messed with, if you would like to manipulate the\n fields you should override _modify()\n\n :param fields: dict, the fields in a dict\n :param **fields_kwargs: dict, if you would like to pass the fie... | 241 | false | Jaymon/prom | modify | 5,362 | |
LDU_FT/Turbo87/aerofiles/write_task_points | LDU_FT | [
"<BEGIN>\n## `write_waypoint`",
"Write a waypoint::",
" writer.write_waypoint(\n 'Meiersberg',\n 'MEIER',\n 'DE',\n (51 + 7.345 / 60.),\n (6 + 24.765 / 60.),\n )\n # -> \"Meiersberg\",\"MEIER\",DE,5107.34... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_task_points API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_task_points API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Write multiple task declaration points with one call::
writer.write_task_points([
(None, None, 'TAKEOFF'),
(51.40375, 6.41275, 'START'),
(50.38210, 8.82105, 'TURN 1'),
(50.59045, 7.03555, 'TURN 2', 0, 32.5, 0, 180),
(51.40375, ... | "Write multiple task declaration points with one call::\n\n writer.write_task_points([\n (None, None, 'TAKEOFF'),\n (51.40375, 6.41275, 'START'),\n (50.38210, 8.82105, 'TURN 1'),\n (50.59045, 7.03555, 'TURN 2', 0, 32.5, 0, 180),\n (51... | 129 | false | Turbo87/aerofiles | write_task_points | 5,363 | |
LDU_FT/maroba/findiff/coefficients | LDU_FT | [
"<BEGIN>\n## `wrap_in_ndarray`",
"Wraps the argument in a numpy.ndarray.",
" If value is a scalar, it is converted in a list first.\n If value is array-like, the shape is conserved.\n<END>",
"<BEGIN>\n## `coefficients`",
"Calculates the finite difference coefficients for given derivative order a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coefficients API.
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 coefficients API.
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... | Calculates the finite difference coefficients for given derivative order and accuracy order.
Assumes that the underlying grid is uniform. This function is available at the `findiff`
package level.
:param deriv: int > 0: The derivative order.
:param acc: even int > 0: The accuracy order.... | "Calculates the finite difference coefficients for given derivative order and accuracy order.\n Assumes that the underlying grid is uniform. This function is available at the `findiff`\n package level.\n \n :param deriv: int > 0: The derivative order.\n \n :param acc: even int > 0: The accuracy... | 29 | false | maroba/findiff | coefficients | 5,364 | |
LDU_FT/gplepage/lsqfit/_reformat | LDU_FT | [
"<BEGIN>\n## `run`",
"Append version number to lsqfit/__init__.py\n<END>",
"<BEGIN>\n## `_reformat`",
"Apply format of ``p`` to data in 1-d array ``buf``.\n<END>",
"<BEGIN>\n## `_unpack_data`",
"Unpack data and prior into ``(x, y, prior, fdata)``.",
" This routine unpacks ``data`` and ``prior`` into ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reformat API.
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 _reformat API.
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... | Apply format of ``p`` to data in 1-d array ``buf``. | "Apply format of ``p`` to data in 1-d array ``buf``." | 208 | false | gplepage/lsqfit | _reformat | 5,365 | |
LDU_FT/peepall/FancyLogger/set_task | LDU_FT | [
"<BEGIN>\n## `set_configuration`",
"Defines the current configuration of the logger. Can be used at any moment during runtime to modify the logger\n behavior.\n :param command: The command object that holds all the necessary information from the remote process.\n<END>",
"<BEGIN>\n## `run`",
"The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_task API.
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 set_task API.
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... | Defines a new progress bar with the given information.
:param task_id: Unique identifier for this progress bar. Will erase if already existing.
:param total: The total number of iteration for this progress bar.
:param prefix: The text that should be displayed at the le... | "Defines a new progress bar with the given information.\n :param task_id: Unique identifier for this progress bar. Will erase if already existing.\n :param total: The total number of iteration for this progress bar.\n :param prefix: The text that should be displayed at th... | 61 | false | peepall/FancyLogger | set_task | 5,366 | |
LDU_FT/asphalt-framework/asphalt/close | 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 close API.
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 close API.
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... | Close this context and call any necessary resource teardown callbacks.
If a teardown callback returns an awaitable, the return value is awaited on before calling
any further teardown callbacks.
All callbacks will be processed, even if some of them raise exceptions. If at least one
call... | "Close this context and call any necessary resource teardown callbacks.\n\n If a teardown callback returns an awaitable, the return value is awaited on before calling\n any further teardown callbacks.\n\n All callbacks will be processed, even if some of them raise exceptions. If at least one\n ... | 143 | false | asphalt-framework/asphalt | close | 5,367 | |
LDU_FT/numba/llvmlite/as_bitcode | LDU_FT | [
"<BEGIN>\n## `create_mcjit_compiler`",
"Create a MCJIT ExecutionEngine from the given *module* and\n *target_machine*.\n<END>",
"<BEGIN>\n## `add_module`",
"Ownership of module is transferred to the execution engine\n<END>",
"<BEGIN>\n## `target_data`",
"The TargetData for this execution engine.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_bitcode API.
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 as_bitcode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return the module's LLVM bitcode, as a bytes object. | "Return the module's LLVM bitcode, as a bytes object." | 226 | false | numba/llvmlite | as_bitcode | 5,368 | |
LDU_FT/sebp/scikit-survival/from_arrays | LDU_FT | [
"<BEGIN>\n## `_fit_and_score`",
"Train survival model on given data and return its score on test data\n<END>",
"<BEGIN>\n## `fit`",
"Fit estimator.",
" Parameters\n ----------\n X : array-like, shape = (n_samples, n_features)\n Data matrix",
" y : structured array, s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_arrays API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_arrays API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Create structured array.
Parameters
----------
event : array-like
Event indicator. A boolean array or array with values 0/1.
time : array-like
Observed time.
name_event : str|None
Name of event, optional, default: 'event'
name_time : s... | "Create structured array.\n\n Parameters\n ----------\n event : array-like\n Event indicator. A boolean array or array with values 0/1.\n time : array-like\n Observed time.\n name_event : str|None\n Name of event, optional, default: 'event'\n na... | 432 | false | sebp/scikit-survival | from_arrays | 5,369 | |
LDU_FT/fhamborg/news-please/__start_commoncrawl_extractor | LDU_FT | [
"<BEGIN>\n## `rss_parse`",
"Extracts all article links and initiates crawling them.",
" :param obj response: The scrapy response\n<END>",
"<BEGIN>\n## `article_parse`",
"Checks any given response on being an article and if positiv,\n passes the response to the pipeline.",
" :param obj... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __start_commoncrawl_extractor 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 __start_commoncrawl_extractor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Starts a single CommonCrawlExtractor
:param warc_download_url:
:param callback_on_article_extracted:
:param valid_hosts:
:param start_date:
:param end_date:
:param strict_date:
:param reuse_previously_downloaded_files:
:param local_download_dir_warc:
:param continue_after_error:
... | "Starts a single CommonCrawlExtractor\n :param warc_download_url:\n :param callback_on_article_extracted:\n :param valid_hosts:\n :param start_date:\n :param end_date:\n :param strict_date:\n :param reuse_previously_downloaded_files:\n :param local_download_dir_warc:\n :param continue_after_e... | 277 | false | fhamborg/news-please | __start_commoncrawl_extractor | 5,370 | |
LDU_FT/dwavesystems/penaltymodel/_get_lp_matrix | LDU_FT | [
"<BEGIN>\n## `get_penalty_model`",
"Factory function for penaltymodel_maxgap.",
" Args:\n specification (penaltymodel.Specification): The specification\n for the desired penalty model.",
" Returns:\n :class:`penaltymodel.PenaltyModel`: Penalty model with the given specification.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_lp_matrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_lp_matrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Creates an linear programming matrix based on the spin states, graph, and scalars provided.
LP matrix:
[spin_states, corresponding states of edges, offset_weight, gap_weight]
Args:
spin_states: Numpy array of spin states
nodes: Iterable
edges: Iterable of tuples
offset_w... | "Creates an linear programming matrix based on the spin states, graph, and scalars provided.\n LP matrix:\n [spin_states, corresponding states of edges, offset_weight, gap_weight]\n\n Args:\n spin_states: Numpy array of spin states\n nodes: Iterable\n edges: Iterable of tuples\n ... | 186 | false | dwavesystems/penaltymodel | _get_lp_matrix | 5,371 | |
LDU_FT/cloudmesh/cloudmesh-common/make_a_copy | LDU_FT | [
"<BEGIN>\n## `names`",
"The names defined in ~/.ssh/config\n :return: the names\n<END>",
"<BEGIN>\n## `load`",
"list the hosts defined in the ssh config file\n<END>",
"<BEGIN>\n## `execute`",
"execute the command on the named host\n :param name: the name of the host in config\n :param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_a_copy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_a_copy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Creates a backup of the file specified in the location. The backup
filename appends a .bak.NO where number is a number that is not yet
used in the backup directory.
TODO: This function should be moved to another file maybe XShell
:param location: the location of the file to be backed up | "Creates a backup of the file specified in the location. The backup\n filename appends a .bak.NO where number is a number that is not yet\n used in the backup directory.\n TODO: This function should be moved to another file maybe XShell\n :param location: the location of the file to be back... | 203 | false | cloudmesh/cloudmesh-common | make_a_copy | 5,372 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.