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/NicolasLM/spinach/stop_workers
LDU_FT
[ "<BEGIN>\n## `_reset`", "Initialization that must happen before the arbiter is (re)started\n<END>", "<BEGIN>\n## `attach_tasks`", "Attach a set of tasks.", " A task cannot be scheduled or executed before it is attached to an\n Engine.", " >>> tasks = Tasks()\n >>> spin.attach_t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop_workers API. 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 stop_workers API. 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...
Stop the workers and wait for them to terminate.
"Stop the workers and wait for them to terminate."
93
false
NicolasLM/spinach
stop_workers
17,173
LDU_FT/maaku/python-bitcoin/digest_size
LDU_FT
[ "<BEGIN>\n## `script`", "Returns a Script object representing a contract script portion of a\n payment to the destination.\n<END>", "<BEGIN>\n## `compress_amount`", "\\\n Compress 64-bit integer values, preferring a smaller size for whole\n numbers (base-10), so as to achieve run-length encoding ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the digest_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the digest_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns the size (in bytes) of the resulting digest.
"Returns the size (in bytes) of the resulting digest."
55
false
maaku/python-bitcoin
digest_size
17,174
LDU_FT/fstab50/metal/json_integrity
LDU_FT
[ "<BEGIN>\n## `compile_binary`", "Prepare chkrootkit binary\n $ tar xzvf chkrootkit.tar.gz\n $ cd chkrootkit-0.52\n $ make sense\n sudo mv chkrootkit-0.52 /usr/local/chkrootkit\n sudo ln -s\n<END>", "<BEGIN>\n## `valid_checksum`", "Summary:\n Validate file checksum using md5 hash\n Arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_integrity API. 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 json_integrity API. 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...
Summary: Validates baseline dict against suspect dict to ensure contain USERNAME k,v parameters. Args: baseline (dict): baseline json structure suspect (dict): json object validated against baseline structure Returns: Success (matches baseline) | Failure (no match), TYPE:...
"Summary:\n Validates baseline dict against suspect dict to ensure contain USERNAME\n k,v parameters.\n Args:\n baseline (dict): baseline json structure\n suspect (dict): json object validated against baseline structure\n Returns:\n Success (matches baseline) | Failure (no match...
67
false
fstab50/metal
json_integrity
17,175
LDU_FT/emory-libraries/eulxml/from_email_message
LDU_FT
[ "<BEGIN>\n## `_serialize`", "Generate token strings which, when joined together, form a valid\n XPath serialization of the AST.\n<END>", "<BEGIN>\n## `download_schema`", "Download a schema from a specified URI and save it locally.", " :param uri: url where the schema should be downloaded\n :param p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_email_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_email_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. Th...
Convert an :class:`email.message.Message` or compatible message object into a CERP XML :class:`eulxml.xmlmap.cerp.Message`. If an id is specified, it will be stored in the Message <LocalId>. :param message: `email.message.Message` object :param id: optional message id to be set as `loca...
"Convert an :class:`email.message.Message` or compatible message\n object into a CERP XML :class:`eulxml.xmlmap.cerp.Message`. If an\n id is specified, it will be stored in the Message <LocalId>.\n\n :param message: `email.message.Message` object\n :param id: optional message id to be set as...
109
false
emory-libraries/eulxml
from_email_message
17,176
LDU_FT/xi/ldif3/_needs_base64_encoding
LDU_FT
[ "<BEGIN>\n## `_fold_line`", "Write string line as one or more folded lines.\n<END>", "<BEGIN>\n## `_needs_base64_encoding`", "Return True if attr_value has to be base-64 encoded.", " This is the case because of special chars or because attr_type is in\n self._base64_attrs\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _needs_base64_encoding 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 _needs_base64_encoding API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return True if attr_value has to be base-64 encoded. This is the case because of special chars or because attr_type is in self._base64_attrs
"Return True if attr_value has to be base-64 encoded.\n\n This is the case because of special chars or because attr_type is in\n self._base64_attrs"
25
false
xi/ldif3
_needs_base64_encoding
17,177
LDU_FT/PyThaiNLP/pythainlp/_get_path
LDU_FT
[ "<BEGIN>\n## `spell`", ":param str word: word to check spelling\n :param str engine:\n * pn - Peter Norvig's algorithm (default)\n :return: list of words\n<END>", "<BEGIN>\n## `get_corpus`", "Read corpus from file and return a frozenset", " :param string filename: file corpus\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
:meth: download get path of file from pythainlp-corpus :param str fname: file name :return: path to downloaded file
":meth: download get path of file from pythainlp-corpus\n :param str fname: file name\n :return: path to downloaded file"
190
false
PyThaiNLP/pythainlp
_get_path
17,178
LDU_FT/atztogo/phono3py/write_unitary_matrix_to_hdf5
LDU_FT
[ "<BEGIN>\n## `diagonalize_collision_matrix`", "Diagonalize collision matrices.", " Note\n ----\n collision_matricies is overwritten by eigenvectors.", " Parameters\n ----------\n collision_matricies : ndarray, optional\n Collision matrix. This ndarray has to have the following size an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_unitary_matrix_to_hdf5 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_unitary_matrix_to_hdf5 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Write eigenvectors of collision matrices at temperatures. Depending on the choice of the solver, eigenvectors are sotred in either column-wise or row-wise.
"Write eigenvectors of collision matrices at temperatures.\n\n Depending on the choice of the solver, eigenvectors are sotred in\n either column-wise or row-wise."
69
false
atztogo/phono3py
write_unitary_matrix_to_hdf5
17,179
LDU_FT/pydata/xarray/rename
LDU_FT
[ "<BEGIN>\n## `_infer_coords_and_dims`", "All the logic for creating a new DataArray\n<END>", "<BEGIN>\n## `to_dataset`", "Convert a DataArray to a Dataset.", " Parameters\n ----------\n dim : str, optional\n Name of the dimension on this array along which to split this array\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename API. 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 rename API. 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 new object with renamed variables and dimensions. Parameters ---------- name_dict : dict-like, optional Dictionary whose keys are current variable or dimension names and whose values are the desired names. inplace : bool, optional If True, r...
"Returns a new object with renamed variables and dimensions.\n\n Parameters\n ----------\n name_dict : dict-like, optional\n Dictionary whose keys are current variable or dimension names and\n whose values are the desired names.\n inplace : bool, optional\n I...
2,080
true
pydata/xarray
rename
17,180
LDU_FT/DiamondLightSource/python-workflows/_nack
LDU_FT
[ "<BEGIN>\n## `_wrap_subscription`", "Internal method to create an intercepting function for incoming messages\n to interpret recipes. This function is then used to subscribe to a channel\n on the transport layer.\n :param transport_layer: Reference to underlying transport object.\n :param subscrip...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _nack API. 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 _nack API. 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...
Reject receipt of a message. This only makes sense when the 'acknowledgement' flag was set for the relevant subscription. :param message_id: ID of the message to be rejected :param subscription: ID of the relevant subscriptiong :param **kwargs: Further parameters for the transport layer....
"Reject receipt of a message. This only makes sense when the\n 'acknowledgement' flag was set for the relevant subscription.\n :param message_id: ID of the message to be rejected\n :param subscription: ID of the relevant subscriptiong\n :param **kwargs: Further parameters for the transport l...
160
false
DiamondLightSource/python-workflows
_nack
17,181
LDU_FT/PSPC-SPAC-buyandsell/von_agent/links
LDU_FT
[ "<BEGIN>\n## `validate_config`", "Call jsonschema validation to raise JSONValidation on non-compliance or silently pass.", " :param key: validation schema key of interest\n :param config: configuration dict to validate\n<END>", "<BEGIN>\n## `_seed2did`", "Derive DID, as per indy-sdk, from seed.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the links API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the links API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return set of all paths to symbolic links (rev reg ids) associating their respective tails files, in specified base tails directory, on input issuer DID if specified. :param base_dir: base directory for tails files, thereafter split by cred def id :param issuer_did: issuer DID of intere...
"Return set of all paths to symbolic links (rev reg ids) associating\n their respective tails files, in specified base tails directory, on\n input issuer DID if specified.\n\n :param base_dir: base directory for tails files, thereafter split by cred def id\n :param issuer_did: issuer DID of ...
285
false
PSPC-SPAC-buyandsell/von_agent
links
17,182
LDU_FT/otto-torino/django-baton/get_model_voice
LDU_FT
[ "<BEGIN>\n## `get`", "Returns a json representing the menu voices\n in a format eaten by the js menu.\n Raised ImproperlyConfigured exceptions can be viewed\n in the browser console\n<END>", "<BEGIN>\n## `get_title_voice`", "Title voice\n Returns the js menu compati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_voice API. 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_model_voice API. 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...
Model voice Returns the js menu compatible voice dict if the user can see it, None otherwise
"Model voice\n Returns the js menu compatible voice dict if the user\n can see it, None otherwise"
20
false
otto-torino/django-baton
get_model_voice
17,183
LDU_FT/jeremymcrae/denovonear/get_chrom_for_transcript
LDU_FT
[ "<BEGIN>\n## `get_cached_data`", "get cached data for a url if stored in the cache and not outdated", " Args:\n url: URL for the Ensembl REST service", " Returns:\n data if data in cache, else None\n<END>", "<BEGIN>\n## `cache_url_data`", "cache the data retrieved from ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_chrom_for_transcript API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_chrom_for_transcript API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
obtain the sequence for a transcript from ensembl
"obtain the sequence for a transcript from ensembl"
112
false
jeremymcrae/denovonear
get_chrom_for_transcript
17,184
LDU_FT/Noneus/slojsonrpc/_validate_params
LDU_FT
[ "<BEGIN>\n## `register`", "register all methods for of an object as json rpc methods", " obj - object with methods\n<END>", "<BEGIN>\n## `_validate_format`", "Validate jsonrpc compliance of a jsonrpc-dict.", " req - the request as a jsonrpc-dict", " raises SLOJSONRPCError on validat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Validate parameters of a jsonrpc-request. req - request as a jsonrpc-dict raises SLOJSONRPCError on validation error
"Validate parameters of a jsonrpc-request.\n\n req - request as a jsonrpc-dict\n\n raises SLOJSONRPCError on validation error"
19
false
Noneus/slojsonrpc
_validate_params
17,185
LDU_FT/google/budou/_memorize
LDU_FT
[ "<BEGIN>\n## `get_parser`", "Gets a parser.", " Args:\n segmenter (str): Segmenter to use.\n options (:obj:`dict`, optional): Optional settings.", " Returns:\n Parser (:obj:`budou.parser.Parser`)", " Raises:\n ValueError: If unsupported segmenter is specified.\n<END>", "<BEGIN>\n## `parse_a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _memorize API. 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 _memorize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Decorator to cache the given function's output.
"Decorator to cache the given function's output."
89
false
google/budou
_memorize
17,186
LDU_FT/hyperledger-archives/indy-client/requestSchema
LDU_FT
[ "<BEGIN>\n## `_getRole`", ":param matchedVars:\n :return: NULL or the role's integer value\n<END>", "<BEGIN>\n## `addAttribute`", "Used to create a new attribute on Sovrin\n :param attrib: attribute to add\n :return: number of pending txns\n<END>", "<BEGIN>\n## `addNode`", "Used to ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requestSchema API. 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 requestSchema API. 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...
Used to get a schema from Sovrin :param nym: nym that schema is attached to :param name: name of schema :param version: version of schema :return: req object
"Used to get a schema from Sovrin\n :param nym: nym that schema is attached to\n :param name: name of schema\n :param version: version of schema\n :return: req object"
16
false
hyperledger-archives/indy-client
requestSchema
17,187
LDU_FT/Jaymon/dump/_restore_auto_increment
LDU_FT
[ "<BEGIN>\n## `table_dump`", "dump all the rows of the given table name\n<END>", "<BEGIN>\n## `_get_file`", "return an opened tempfile pointer that can be used", " http://docs.python.org/2/library/tempfile.html\n<END>", "<BEGIN>\n## `_get_args`", "compile all the executable and the arguments, comb...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _restore_auto_increment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _restore_auto_increment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
restore the auto increment value for the table to what it was previously
"restore the auto increment value for the table to what it was previously"
27
false
Jaymon/dump
_restore_auto_increment
17,188
LDU_FT/openwisp/netdiff/to_python
LDU_FT
[ "<BEGIN>\n## `parse`", "Converts a NetJSON 'NetworkGraph' object\n to a NetworkX Graph object,which is then returned.\n Additionally checks for protocol version, revision and metric.\n<END>", "<BEGIN>\n## `parse`", "Converts a OpenVPN JSON to a NetworkX Graph object\n which is then return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_python API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_python API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Parses the input data and converts it into a Python data structure Input data might be: * a path which points to a JSON file * a URL which points to a JSON file (supported schemes: http, https, telnet) * a JSON formatted string * a dict representing ...
"Parses the input data and converts it into a Python data structure\n Input data might be:\n * a path which points to a JSON file\n * a URL which points to a JSON file\n (supported schemes: http, https, telnet)\n * a JSON formatted string\n * a dict repres...
30
false
openwisp/netdiff
to_python
17,189
LDU_FT/joerick/pyinstrument/aggregate_repeated_calls
LDU_FT
[ "<BEGIN>\n## `file_supports_color`", "Returns True if the running system's terminal supports color.", " Borrowed from Django\n https://github.com/django/django/blob/master/django/core/management/color.py\n<END>", "<BEGIN>\n## `load_report`", "Returns the session referred to by identifier\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the aggregate_repeated_calls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the aggregate_repeated_calls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Converts a timeline into a time-aggregate summary. Adds together calls along the same call stack, so that repeated calls appear as the same frame. Removes time-linearity - frames are sorted according to total time spent. Useful for outputs that display a summary of execution (e.g. text and html outputs)
"Converts a timeline into a time-aggregate summary.\n\n Adds together calls along the same call stack, so that repeated calls appear as the same\n frame. Removes time-linearity - frames are sorted according to total time spent.\n\n Useful for outputs that display a summary of execution (e.g. text and html outp...
43
false
joerick/pyinstrument
aggregate_repeated_calls
17,190
LDU_FT/wuher/devil/_get_error_response
LDU_FT
[ "<BEGIN>\n## `create`", "Create object from the given data.", " The given data may or may not have been validated prior to calling\n this function. This function will try its best in creating the object.\n If the resulting object cannot be produced, raises ``ValidationError``.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_error_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_error_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Generate HttpResponse based on the HttpStatusCodeError.
"Generate HttpResponse based on the HttpStatusCodeError."
193
false
wuher/devil
_get_error_response
17,191
LDU_FT/julienc91/utools/binomial_coefficient
LDU_FT
[ "<BEGIN>\n## `is_prime`", "Miller-Rabin primality test. Keep in mind that this is not a deterministic algorithm: if it return True,\n it means that n is probably a prime.", " Args:\n n (int): the integer to check", " Returns:\n True if n is probably a prime number, False if it is not",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the binomial_coefficient 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 binomial_coefficient API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Calculate the binomial coefficient indexed by n and k. Args: n (int): positive integer k (int): positive integer Returns: The binomial coefficient indexed by n and k Raises: TypeError: If either n or k is not an integer ValueError: If either n or k is negative, or ...
"Calculate the binomial coefficient indexed by n and k.\n\n Args:\n n (int): positive integer\n k (int): positive integer\n\n Returns:\n The binomial coefficient indexed by n and k\n\n Raises:\n TypeError: If either n or k is not an integer\n ValueError: If either n or k is n...
52
false
julienc91/utools
binomial_coefficient
17,192
LDU_FT/MycroftAI/mycroft-precise/retrain
LDU_FT
[ "<BEGIN>\n## `load_precise_model`", "Loads a Keras model from file, handling custom loss function\n<END>", "<BEGIN>\n## `create_model`", "Load or create a precise model", " Args:\n model_name: Name of model\n params: Parameters used to create the model", " Returns:\n model: Load...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrain API. 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 retrain API. 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...
Train for a session, pulling in any new data from the filesystem
"Train for a session, pulling in any new data from the filesystem"
79
false
MycroftAI/mycroft-precise
retrain
17,193
LDU_FT/konture/CloeePy/_set_config_path
LDU_FT
[ "<BEGIN>\n## `_set_config_path`", "Reads config path from environment variable CLOEEPY_CONFIG_PATH\n and sets as instance attr\n<END>", "<BEGIN>\n## `_load_config`", "Loads the YAML configuration file and sets python dictionary and raw contents\n as instance attrs.\n<END>", "<BEGIN>\n## `_set_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_config_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_config_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 ...
Reads config path from environment variable CLOEEPY_CONFIG_PATH and sets as instance attr
"Reads config path from environment variable CLOEEPY_CONFIG_PATH\n and sets as instance attr"
14
false
konture/CloeePy
_set_config_path
17,194
LDU_FT/obilaniu/Nauka/snapshot
LDU_FT
[ "<BEGIN>\n## `_parseSpec`", "Split the argument string. Example:", "\t--arg name:value0,value1,key2=value2,key3=value3", "\tgets split into", "\tname, args, kwargs = (\n\t \"name\",\n\t (value0, value1),\n\t {\"key2\":value2, \"key3\":value3},\n\t)\n<END>", "<BEGIN>\n## `fromScratch`", "Start a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the snapshot API. 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 snapshot API. 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...
Take a snapshot of the experiment. Returns `self`.
"Take a snapshot of the experiment.\n\t\t\n\t\tReturns `self`."
36
false
obilaniu/Nauka
snapshot
17,195
LDU_FT/alimanfoo/vcfnp/ann_default_transformer
LDU_FT
[ "<BEGIN>\n## `eff_default_transformer`", "Return a simple transformer function for parsing EFF annotations. N.B.,\n ignores all but the first effect.\n<END>", "<BEGIN>\n## `ann_default_transformer`", "Return a simple transformer function for parsing ANN annotations. N.B.,\n ignores all but the first eff...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ann_default_transformer 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 ann_default_transformer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Return a simple transformer function for parsing ANN annotations. N.B., ignores all but the first effect.
"Return a simple transformer function for parsing ANN annotations. N.B.,\n ignores all but the first effect."
67
false
alimanfoo/vcfnp
ann_default_transformer
17,196
LDU_FT/GoogleCloudPlatform/compute-image-packages/_RemoveAuthorizedKeys
LDU_FT
[ "<BEGIN>\n## `EnableNetworkInterfaces`", "Enable the list of network interfaces.", " Args:\n interfaces: list of string, the output device names to enable.\n logger: logger object, used to write to SysLog and serial port.\n dhclient_script: string, the path to a dhclient script used by dhclien...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _RemoveAuthorizedKeys 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 _RemoveAuthorizedKeys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Remove a Linux user account's authorized keys file to prevent login. Args: user: string, the Linux user account to remove access.
"Remove a Linux user account's authorized keys file to prevent login.\n\n Args:\n user: string, the Linux user account to remove access."
310
false
GoogleCloudPlatform/compute-image-packages
_RemoveAuthorizedKeys
17,197
LDU_FT/riga/tfdeploy/SparseSegmentSqrtN
LDU_FT
[ "<BEGIN>\n## `setup`", "Sets up global variables (currently only the tensorflow version) to adapt to peculiarities of\n different tensorflow versions. This function should only be called before :py:class:`Model`\n creation, not for evaluation. Therefore, the tensorflow module *tf* must be passed:", " ....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SparseSegmentSqrtN 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 SparseSegmentSqrtN 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...
Sparse segmented sum / sqrt(n=len(idxs)) op.
"Sparse segmented sum / sqrt(n=len(idxs)) op."
43
false
riga/tfdeploy
SparseSegmentSqrtN
17,198
LDU_FT/almarklein/pyelastix/_get_image_paths
LDU_FT
[ "<BEGIN>\n## `get_elastix_exes`", "Get the executables for elastix and transformix. Raises an error\n if they cannot be found.\n<END>", "<BEGIN>\n## `_clear_dir`", "Remove a directory and it contents. Ignore any failures.\n<END>", "<BEGIN>\n## `get_tempdir`", "Get the temporary directory where pyelasti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_image_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_image_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
If the images are paths to a file, checks whether the file exist and return the paths. If the images are numpy arrays, writes them to disk and returns the paths of the new files.
"If the images are paths to a file, checks whether the file exist\n and return the paths. If the images are numpy arrays, writes them\n to disk and returns the paths of the new files."
37
false
almarklein/pyelastix
_get_image_paths
17,199
LDU_FT/tilezen/tilequeue/make_coord_dict
LDU_FT
[ "<BEGIN>\n## `merge`", "Retrieve a list of OSciMap4 tile responses and merge them into one.", " get_tiles() retrieves data and performs basic integrity checks.\n<END>", "<BEGIN>\n## `_make_valid_if_necessary`", "attempt to correct invalid shapes if necessary", " After simplification, even when p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_coord_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_coord_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
helper function to make a dict from a coordinate for logging
"helper function to make a dict from a coordinate for logging"
135
false
tilezen/tilequeue
make_coord_dict
17,200
LDU_FT/cihai/cihai/euc_to_unicode
LDU_FT
[ "<BEGIN>\n## `run`", "Wrapped so we can test in tests/test_examples.py\n<END>", "<BEGIN>\n## `reflect_db`", "No-op to reflect db info.", " This is available as a method so the database can be reflected\n outside initialization (such bootstrapping unihan during CLI usage).\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the euc_to_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 euc_to_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...
Return EUC-CN (GB2312) hex to a Python unicode. Parameters ---------- hexstr : bytes Returns ------- unicode : Python unicode e.g. ``u'\\u4e00'`` / '一'. Examples -------- >>> u'\u4e00'.encode('gb2312').decode('utf-8') u'\u04bb' >>> (b'\\x' + b'd2' + b'\\x' + b'b...
"Return EUC-CN (GB2312) hex to a Python unicode.\n\n Parameters\n ----------\n hexstr : bytes\n\n Returns\n -------\n unicode :\n Python unicode e.g. ``u'\\\\u4e00'`` / '一'.\n\n Examples\n --------\n\n >>> u'\\u4e00'.encode('gb2312').decode('utf-8')\n u'\\u04bb'\n\n >>> (b'\\\\x...
77
false
cihai/cihai
euc_to_unicode
17,201
LDU_FT/jborean93/ntlm-auth/_get_NTLM2_response
LDU_FT
[ "<BEGIN>\n## `_get_exchange_key_ntlm_v1`", "[MS-NLMP] v28.0 2016-07-14", " 3.4.5.1 KXKEY\n Calculates the Key Exchange Key for NTLMv1 authentication. Used for signing\n and sealing messages", " :param negotiate_flags: The negotiated NTLM flags\n :param session_base_key: A session key calculated...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_NTLM2_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_NTLM2_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
[MS-NLMP] v28.0 2016-07-14 This name is really misleading as it isn't NTLM v2 authentication rather this authentication is only used when the ntlm_compatibility level is set to a value < 3 (No NTLMv2 auth) but the NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY flag is set in the negotiate ...
"[MS-NLMP] v28.0 2016-07-14\n\n This name is really misleading as it isn't NTLM v2 authentication\n rather this authentication is only used when the ntlm_compatibility\n level is set to a value < 3 (No NTLMv2 auth) but the\n NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY flag is set in the negot...
60
false
jborean93/ntlm-auth
_get_NTLM2_response
17,202
LDU_FT/laginha/django-mobileesp/detectGamingHandheld
LDU_FT
[ "<BEGIN>\n## `detectIphone`", "Return detection of an iPhone", " Detects if the current device is an iPhone.\n<END>", "<BEGIN>\n## `detectIphoneOrIpod`", "Return detection of an iPhone or iPod Touch", " Detects if the current device is an iPhone or iPod Touch.\n<END>", "<BEGIN>\n## `detect...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detectGamingHandheld 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 detectGamingHandheld API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return detection of a gaming handheld with a modern iPhone-class browser Detects if the current device is a handheld gaming device with a touchscreen and modern iPhone-class browser. Includes the Playstation Vita.
"Return detection of a gaming handheld with a modern iPhone-class browser\n\n Detects if the current device is a handheld gaming device with\n a touchscreen and modern iPhone-class browser. Includes the Playstation Vita."
111
false
laginha/django-mobileesp
detectGamingHandheld
17,203
LDU_FT/nyaruka/smartmin/get_queryset
LDU_FT
[ "<BEGIN>\n## `_read_requirements`", "Parses a file for pip installation requirements.\n<END>", "<BEGIN>\n## `get_list_class`", "Returns the class to use for the passed in list. We just build something up\n from the object type for the list.\n<END>", "<BEGIN>\n## `format_datetime`", "Formats a date, co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_queryset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_queryset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Gets our queryset. This takes care of filtering if there are any fields to filter by.
"Gets our queryset. This takes care of filtering if there are any\n fields to filter by."
118
false
nyaruka/smartmin
get_queryset
17,204
LDU_FT/projecthamster/hamster/disconnect_child
LDU_FT
[ "<BEGIN>\n## `set_start_time`", "set the start time. when start time is set, drop down list\n will start from start time and duration will be displayed in\n brackets\n<END>", "<BEGIN>\n## `parse_fact`", "tries to extract fact fields from the string\n the optional arguments in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect_child API. 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 disconnect_child API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
disconnects from child event. if handler is not specified, will disconnect from all the child sprite events
"disconnects from child event. if handler is not specified, will\n disconnect from all the child sprite events"
249
false
projecthamster/hamster
disconnect_child
17,205
LDU_FT/tensorflow/tensor2tensor/maybe_download
LDU_FT
[ "<BEGIN>\n## `paracrawl_v3_pairs`", "Generates raw (English, other) pairs from a ParaCrawl V3.0 data file.", " Args:\n paracrawl_file: A ParaCrawl V3.0 en-.. data file.\n Yields:\n Pairs of (sentence_en, sentence_xx), as Unicode strings.\n Raises:\n StopIteration: If the file ends while this method ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maybe_download API. 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 maybe_download API. 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...
Download filename from uri unless it's already in directory. Copies a remote file to local if that local file does not already exist. If the local file pre-exists this function call, it does not check that the local file is a copy of the remote. Remote filenames can be filepaths, any URI readable by tensorfl...
"Download filename from uri unless it's already in directory.\n\n Copies a remote file to local if that local file does not already exist. If\n the local file pre-exists this function call, it does not check that the local\n file is a copy of the remote.\n\n Remote filenames can be filepaths, any URI readable by t...
4,769
true
tensorflow/tensor2tensor
maybe_download
17,206
LDU_FT/napalm-automation/napalm-eos/discard_config
LDU_FT
[ "<BEGIN>\n## `compare_config`", "Implementation of NAPALM method compare_config.\n<END>", "<BEGIN>\n## `commit_config`", "Implementation of NAPALM method commit_config.\n<END>", "<BEGIN>\n## `discard_config`", "Implementation of NAPALM method discard_config.\n<END>", "<BEGIN>\n## `rollback`", "Impleme...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discard_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discard_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 ex...
Implementation of NAPALM method discard_config.
"Implementation of NAPALM method discard_config."
16
false
napalm-automation/napalm-eos
discard_config
17,207
LDU_FT/datacamp/sqlwhat/lower_case
LDU_FT
[ "<BEGIN>\n## `has_no_error`", "Check whether the submission did not generate a runtime error.", " Simply use ``Ex().has_no_error()`` in your SCT whenever you want to check for errors.\n By default, after the entire SCT finished executing, ``sqlwhat`` will check\n for errors before marking the exercise ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lower_case API. 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 lower_case API. 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...
Decorator specifically for turning mssql AST into lowercase
"Decorator specifically for turning mssql AST into lowercase"
90
false
datacamp/sqlwhat
lower_case
17,208
LDU_FT/msztolcman/versionner/_parse_config_file
LDU_FT
[ "<BEGIN>\n## `parse_args`", "Parse input arguments of script.", " :param args: list of parameters\n :type: argparse.Namespace\n :param cfg: configuration storage\n :type: Config\n<END>", "<BEGIN>\n## `_find_project_config_file`", "Find path to project-wide config file\n Search from current wo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_config_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_config_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Parse config file (ini) and set properties :return:
"Parse config file (ini) and set properties\n\n :return:"
61
false
msztolcman/versionner
_parse_config_file
17,209
LDU_FT/antocuni/pdb/do_interact
LDU_FT
[ "<BEGIN>\n## `xpm`", "To be used inside an except clause, enter a post-mortem pdb\n related to the just catched exception.\n<END>", "<BEGIN>\n## `refresh_stack`", "Recompute the stack after e.g. show_hidden_frames has been modified\n<END>", "<BEGIN>\n## `complete`", "Handle completions from fancycomple...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_interact API. 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 do_interact API. 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...
interact Start an interative interpreter whose global namespace contains all the names found in the current scope.
"interact\n\n Start an interative interpreter whose global namespace\n contains all the names found in the current scope."
36
false
antocuni/pdb
do_interact
17,210
LDU_FT/Guake/guake/configure_terminal
LDU_FT
[ "<BEGIN>\n## `mk_tab_context_menu`", "Create the context menu for a notebook tab\n<END>", "<BEGIN>\n## `mk_notebook_context_menu`", "Create the context menu for the notebook\n<END>", "<BEGIN>\n## `trayicon_toggled`", "If the gconf var use_trayicon be changed, this method will\n be called and will s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_terminal 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 configure_terminal 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 all customized properties on the terminal
"Sets all customized properties on the terminal"
184
false
Guake/guake
configure_terminal
17,211
LDU_FT/gmr/infoblox/delete
LDU_FT
[ "<BEGIN>\n## `delete_old_host`", "Remove all records for the host.", " :param str hostname: Hostname to remove\n :rtype: bool\n<END>", "<BEGIN>\n## `add_new_host`", "Add or update a host in the infoblox, overwriting any IP address\n entries.", " :param str hostname: Hostname to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. 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 delete API. 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 ...
Call the Infoblox device to delete the ref :param str ref: The reference id :rtype: requests.Response
"Call the Infoblox device to delete the ref\n\n :param str ref: The reference id\n :rtype: requests.Response"
42
false
gmr/infoblox
delete
17,212
LDU_FT/seung-lab/cloud-volume/slices_from_global_coords
LDU_FT
[ "<BEGIN>\n## `decode_kempressed`", "subvol not bytestring since numpy conversion is done inside fpzip extension.\n<END>", "<BEGIN>\n## `bbox2array`", "Convenince method for creating a \n shared memory numpy array based on a CloudVolume\n and Bbox. c.f. sharedmemory.ndarray for information\n on the optional...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slices_from_global_coords 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 slices_from_global_coords API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Used for converting from mip 0 coordinates to upper mip level coordinates. This is mainly useful for debugging since the neuroglancer client displays the mip 0 coordinates for your cursor.
"Used for converting from mip 0 coordinates to upper mip level\n coordinates. This is mainly useful for debugging since the neuroglancer\n client displays the mip 0 coordinates for your cursor."
237
false
seung-lab/cloud-volume
slices_from_global_coords
17,213
LDU_FT/wdm0006/sklearn-extensions/_generate_components
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit the model", " Parameters\n ----------\n X : array-like of shape = [n_samples, n_features]\n The training input samples.", " y : array-like, shape = [n_samples]\n The target values", " Returns\n -------\n self : ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_components API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_components API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Generate components of hidden layer given X
"Generate components of hidden layer given X"
60
false
wdm0006/sklearn-extensions
_generate_components
17,214
LDU_FT/aguinane/nem-reader/parse_datetime
LDU_FT
[ "<BEGIN>\n## `flatten_list`", "takes a list of lists, l and returns a flat list\n<END>", "<BEGIN>\n## `read_nem_file`", "Read in NEM file and return meter readings named tuple", " :param file_path: The NEM file to process\n :returns: The file that was created\n<END>", "<BEGIN>\n## `parse_nem_file`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_datetime API. 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 parse_datetime API. 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...
Parse a datetime string into a python datetime object
"Parse a datetime string into a python datetime object"
24
false
aguinane/nem-reader
parse_datetime
17,215
LDU_FT/ThreatResponse/margaritashotgun/verify_module
LDU_FT
[ "<BEGIN>\n## `configure`", "Connect paramiko transport", " :type auth: :py:class`margaritashotgun.auth.AuthMethods`\n :param auth: authentication object\n :type address: str\n :param address: remote server ip or hostname\n :type port: int\n :param port: remote server po...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_module API. 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 verify_module API. 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...
Verify kernel module checksum and signature :type filename: str :param filename: downloaded kernel module path :type module: dict :param module: kernel module metadata :type verify_signature: bool :param verify_signature: enable/disable signature verification
"Verify kernel module checksum and signature\n\n :type filename: str\n :param filename: downloaded kernel module path\n :type module: dict\n :param module: kernel module metadata\n :type verify_signature: bool\n :param verify_signature: enable/disable signature verification"
134
false
ThreatResponse/margaritashotgun
verify_module
17,216
LDU_FT/Shinichi-Nakagawa/pitchpx/_inning_actions
LDU_FT
[ "<BEGIN>\n## `row`", "Game Dataset(Row)\n :return: {\n 'retro_game_id': Retrosheet Game id\n 'game_type': Game Type(S/R/F/D/L/W)\n 'game_type_des': Game Type Description\n (Spring Training or Regular Season or Wild-card Game or Divisional Series or LCS or World S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _inning_actions API. 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 _inning_actions API. 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...
Inning Actions. :param soup: Beautifulsoup object :param inning_number: Inning Number :param inning_id: Inning Id(0:home, 1:away)
"Inning Actions.\n :param soup: Beautifulsoup object\n :param inning_number: Inning Number\n :param inning_id: Inning Id(0:home, 1:away)"
102
false
Shinichi-Nakagawa/pitchpx
_inning_actions
17,217
LDU_FT/tsroten/dragonmapper/pinyin_to_zhuyin
LDU_FT
[ "<BEGIN>\n## `load_data_file`", "Load a data file and return it as a list of lines.", " Parameters:\n filename: The name of the file (no directories included).\n encoding: The file encoding. Defaults to utf-8.\n<END>", "<BEGIN>\n## `_load_data`", "Load the word and character mapping data in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pinyin_to_zhuyin API. 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 pinyin_to_zhuyin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Convert all Pinyin syllables in *s* to Zhuyin. Spaces are added between connected syllables and syllable-separating apostrophes are removed.
"Convert all Pinyin syllables in *s* to Zhuyin.\n\n Spaces are added between connected syllables and syllable-separating\n apostrophes are removed."
97
false
tsroten/dragonmapper
pinyin_to_zhuyin
17,218
LDU_FT/jurismarches/chopper/_selector_as_string
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses the CSS contents and returns the cleaned CSS as a string", " :returns: The cleaned CSS\n :rtype: str\n<END>", "<BEGIN>\n## `rel_to_abs`", "Converts relative links from css contents to absolute links", " :param base_url: The base page url to use for build...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _selector_as_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _selector_as_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns a selector as a CSS string :param selector: A list of tinycss Tokens :type selector: list :returns: The CSS string for the selector :rtype: str
"Returns a selector as a CSS string\n\n :param selector: A list of tinycss Tokens\n :type selector: list\n :returns: The CSS string for the selector\n :rtype: str"
47
false
jurismarches/chopper
_selector_as_string
17,219
LDU_FT/django-ldapdb/django-ldapdb/datetime_from_ldap
LDU_FT
[ "<BEGIN>\n## `datetime_from_ldap`", "Convert a LDAP-style datetime to a Python aware object.", " See https://tools.ietf.org/html/rfc4517#section-3.3.13 for details.", " Args:\n value (str): the datetime to parse\n<END>", "<BEGIN>\n## `get_prep_lookup`", "Convert the Python value(s) used in th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime_from_ldap 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 datetime_from_ldap 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...
Convert a LDAP-style datetime to a Python aware object. See https://tools.ietf.org/html/rfc4517#section-3.3.13 for details. Args: value (str): the datetime to parse
"Convert a LDAP-style datetime to a Python aware object.\n\n See https://tools.ietf.org/html/rfc4517#section-3.3.13 for details.\n\n Args:\n value (str): the datetime to parse"
23
false
django-ldapdb/django-ldapdb
datetime_from_ldap
17,220
LDU_FT/pbrisk/unicum/_is_modified_property
LDU_FT
[ "<BEGIN>\n## `register_link`", "creates link from obj.attr to self\n :param obj: object to register link to\n :param attr: attribute name to register link to\n<END>", "<BEGIN>\n## `update_link`", "redirects all links to self (the new linked object)\n<END>", "<BEGIN>\n## `_is_visible`", "priv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_modified_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_modified_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
True, if the given property is in the modifed members :param prop: :return:
"True, if the given property is in the modifed members\n :param prop:\n :return:"
27
false
pbrisk/unicum
_is_modified_property
17,221
LDU_FT/kensho-technologies/graphql-compiler/collect_filters_to_first_location_occurrence
LDU_FT
[ "<BEGIN>\n## `lower_ir`", "Lower the IR into an IR form that can be represented in Gremlin queries.", " Args:\n ir_blocks: list of IR blocks to lower into Gremlin-compatible form\n query_metadata_table: QueryMetadataTable object containing all metadata collected during\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_filters_to_first_location_occurrence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ind...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_filters_to_first_location_occurrence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ind...
Collect all filters for a particular location to the first instance of the location. Adding edge field non-exsistence filters in `_prune_traverse_using_omitted_locations` may result in filters being applied to locations after their first occurence. OrientDB does not resolve this behavior correctly. Therefo...
"Collect all filters for a particular location to the first instance of the location.\n\n Adding edge field non-exsistence filters in `_prune_traverse_using_omitted_locations` may\n result in filters being applied to locations after their first occurence.\n OrientDB does not resolve this behavior correctly. Th...
786
false
kensho-technologies/graphql-compiler
collect_filters_to_first_location_occurrence
17,222
LDU_FT/alexmojaki/littleutils/only
LDU_FT
[ "<BEGIN>\n## `helpful_error_list_get`", ">>> helpful_error_list_get([1, 2, 3], 1)\n 2\n >>> helpful_error_list_get([1, 2, 3], 4)\n Traceback (most recent call last):\n ...\n IndexError: Tried to access 4, length is only 3\n<END>", "<BEGIN>\n## `only`", ">>> only([7])\n 7\n >>> only([1, 2]...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the only API. 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 only API. 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...
>>> only([7]) 7 >>> only([1, 2]) Traceback (most recent call last): ... AssertionError: Expected one value, found 2 >>> only([]) Traceback (most recent call last): ... AssertionError: Expected one value, found 0 >>> from itertools import repeat >>> only(repeat(5)) Traceba...
">>> only([7])\n 7\n >>> only([1, 2])\n Traceback (most recent call last):\n ...\n AssertionError: Expected one value, found 2\n >>> only([])\n Traceback (most recent call last):\n ...\n AssertionError: Expected one value, found 0\n >>> from itertools import repeat\n >>> only(repeat(5))...
34
false
alexmojaki/littleutils
only
17,223
LDU_FT/abhishek-ram/pyas2-lib/decompress_message
LDU_FT
[ "<BEGIN>\n## `quote_as2name`", "Function converts as2 name from unquoted to quoted format\n :param unquoted_name: the as2 name in unquoted format\n :return: the as2 name in unquoted format\n<END>", "<BEGIN>\n## `mime_to_bytes`", "Function to convert and email Message to flat string format\n :param ms...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decompress_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decompress_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. Th...
Function parses an ASN.1 compressed message and extracts/decompresses the original message. :param compressed_data: A CMS ASN.1 byte string containing the compressed data. :return: A byte string containing the decompressed original message.
"Function parses an ASN.1 compressed message and extracts/decompresses \n the original message.\n \n :param compressed_data: A CMS ASN.1 byte string containing the compressed \n data.\n\n :return: A byte string containing the decompressed original message."
81
false
abhishek-ram/pyas2-lib
decompress_message
17,224
LDU_FT/hobson/pug-ann/train_weather_predictor
LDU_FT
[ "<BEGIN>\n## `hourly`", "Get detailed (hourly) weather data for the requested days and location", " The Weather Underground URL for Fresno, CA on 1/1/2011 is:\n http://www.wunderground.com/history/airport/KFAT/2011/1/1/DailyHistory.html?MR=1&format=1", " This will fail periodically on Travis, b/c wun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the train_weather_predictor 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 train_weather_predictor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Train a neural nerual net to predict the weather for tomorrow based on past weather. Builds a linear single hidden layer neural net (multi-dimensional nonlinear regression). The dataset is a basic SupervisedDataSet rather than a SequentialDataSet, so the training set and the test set are sampled randomly. ...
"Train a neural nerual net to predict the weather for tomorrow based on past weather.\n\n Builds a linear single hidden layer neural net (multi-dimensional nonlinear regression).\n The dataset is a basic SupervisedDataSet rather than a SequentialDataSet, so the training set\n and the test set are sampled rando...
81
false
hobson/pug-ann
train_weather_predictor
17,225
LDU_FT/RLBot/RLBot/convert_to_flat
LDU_FT
[ "<BEGIN>\n## `configure_processes`", "This will update the priority and CPU affinity of the processes owned by bots to try to achieve fairness and\n good performance.", " :param agent_metadata_map: A mapping of player index to agent metadata, including a list of owned process ids.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_flat API. 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 convert_to_flat API. 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...
In this conversion, we always want to return a valid flatbuffer pointer even if all the contents are blank because sometimes we need to put empty boost states into the boost list to make the indices line up.
"In this conversion, we always want to return a valid flatbuffer pointer even if all the\n contents are blank because sometimes we need to put empty boost states into the boost list\n to make the indices line up."
181
false
RLBot/RLBot
convert_to_flat
17,226
LDU_FT/sangoma/pysensu/get_aggregate_check
LDU_FT
[ "<BEGIN>\n## `get_all_client_events`", "Returns the list of current events for a given client.\n<END>", "<BEGIN>\n## `get_event`", "Returns an event for a given client & check name.\n<END>", "<BEGIN>\n## `delete_event`", "Resolves an event for a given check on a given client. (delayed action)\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_aggregate_check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_aggregate_check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns the list of aggregates for a given check
"Returns the list of aggregates for a given check"
18
false
sangoma/pysensu
get_aggregate_check
17,227
LDU_FT/python-hyper/h11/send_with_data_passthrough
LDU_FT
[ "<BEGIN>\n## `start_next_cycle`", "Attempt to reset our connection state for a new request/response\n cycle.", " If both client and server are in :data:`DONE` state, then resets them\n both to :data:`IDLE` state in preparation for a new request/response\n cycle on this same connectio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_with_data_passthrough API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_with_data_passthrough API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Identical to :meth:`send`, except that in situations where :meth:`send` returns a single :term:`bytes-like object`, this instead returns a list of them -- and when sending a :class:`Data` event, this list is guaranteed to contain the exact object you passed in as :attr:`Data.data`. See :...
"Identical to :meth:`send`, except that in situations where\n :meth:`send` returns a single :term:`bytes-like object`, this instead\n returns a list of them -- and when sending a :class:`Data` event, this\n list is guaranteed to contain the exact object you passed in as\n :attr:`Data.data`. ...
32
false
python-hyper/h11
send_with_data_passthrough
17,228
LDU_FT/weld-project/weld/_get_column_names
LDU_FT
[ "<BEGIN>\n## `to_weld_type`", "Summary", " Args:\n weld_type (TYPE): Description\n dim (TYPE): Description", " Returns:\n TYPE: Description\n<END>", "<BEGIN>\n## `evaluate`", "Summary", " Args:\n verbose (bool, optional): Description\n decode (bool...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_column_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_column_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Summary Returns: TYPE: Description
"Summary\n\n Returns:\n TYPE: Description"
210
false
weld-project/weld
_get_column_names
17,229
LDU_FT/bastikr/boolean.py/normalize
LDU_FT
[ "<BEGIN>\n## `definition`", "Return a tuple of this algebra defined elements and types as:\n (TRUE, FALSE, NOT, AND, OR, Symbol)\n<END>", "<BEGIN>\n## `parse`", "Return a boolean expression parsed from `expr` either a unicode string\n or tokens iterable.", " Optionally simplify the expr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API. 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 normalize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return a normalized expression transformed to its normal form in the given AND or OR operation. The new expression arguments will satisfy these conditions: - operation(*args) == expr (here mathematical equality is meant) - the operation does not occur in any of its arg. - NOT is...
"Return a normalized expression transformed to its normal form in the\n given AND or OR operation.\n\n The new expression arguments will satisfy these conditions:\n - operation(*args) == expr (here mathematical equality is meant)\n - the operation does not occur in any of its arg.\n -...
71
false
bastikr/boolean.py
normalize
17,230
LDU_FT/idlesign/django-siteflags/remove_flag
LDU_FT
[ "<BEGIN>\n## `update_filter_dict`", "Helper. Updates filter dict for a queryset.", " :param dict d:\n :param User|None user:\n :param int|None status:\n :return:\n<END>", "<BEGIN>\n## `get_flags_for_types`", "Returns a dictionary with flag objects associated with the given model classes (types)....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_flag API. 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 remove_flag API. 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...
Removes flag(s) from the object. :param User user: Optional user filter :param int status: Optional status filter :return:
"Removes flag(s) from the object.\n\n :param User user: Optional user filter\n :param int status: Optional status filter\n :return:"
21
false
idlesign/django-siteflags
remove_flag
17,231
LDU_FT/rbit/pydtls/set_curves
LDU_FT
[ "<BEGIN>\n## `decode_cert`", "Convert an X509 certificate into a Python dictionary", " This function converts the given X509 certificate into a Python dictionary\n in the manner established by the Python standard library's ssl module.\n<END>", "<BEGIN>\n## `_get_server_certificate`", "Retrieve a serve...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_curves API. 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_curves API. 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...
u''' Set supported curves by name, nid or nist. :param str | tuple(int) curves: Example "secp384r1:secp256k1", (715, 714), "P-384", "K-409:B-409:K-571", ... :return: 1 for success and 0 for failure
"u''' Set supported curves by name, nid or nist.\n\n :param str | tuple(int) curves: Example \"secp384r1:secp256k1\", (715, 714), \"P-384\", \"K-409:B-409:K-571\", ...\n :return: 1 for success and 0 for failure"
83
false
rbit/pydtls
set_curves
17,232
LDU_FT/danielhrisca/asammdf/get_unique_name
LDU_FT
[ "<BEGIN>\n## `extract_cncomment_xml`", "extract *TX* tag or otherwise the *common_properties* from a xml comment", " Paremeters\n ----------\n comment : str\n xml string comment", " Returns\n -------\n comment : str\n extracted string\n<END>", "<BEGIN>\n## `matlab_compatible`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unique_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unique_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
returns an available unique name Parameters ---------- name : str name to be made unique Returns ------- unique_name : str new unique name
"returns an available unique name\n\n Parameters\n ----------\n name : str\n name to be made unique\n\n Returns\n -------\n unique_name : str\n new unique name"
381
false
danielhrisca/asammdf
get_unique_name
17,233
LDU_FT/wickman/pystachio/_unwrap
LDU_FT
[ "<BEGIN>\n## `create`", "Construct a List containing type 'klazz'.\n<END>", "<BEGIN>\n## `new`", "Create a fully reified type from a type schema.\n<END>", "<BEGIN>\n## `load`", "Determine all types touched by loading the type and deposit them into\n the particular namespace.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unwrap API. 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 _unwrap API. 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...
Iterate over the options in the choice type, and try to perform some action on them. If the action fails (returns None or raises either CoercionError or ValueError), then it goes on to the next type. Args: ret_fun: a function that takes a wrapped option value, and either returns a successful ...
"Iterate over the options in the choice type, and try to perform some\n action on them. If the action fails (returns None or raises either CoercionError\n or ValueError), then it goes on to the next type.\n Args:\n ret_fun: a function that takes a wrapped option value, and either returns a successful\n ...
29
false
wickman/pystachio
_unwrap
17,234
LDU_FT/diffeo/py-nilsimsa/update
LDU_FT
[ "<BEGIN>\n## `compare_hexdigests`", "Compute difference in bits between digest1 and digest2\n returns -127 to 128; 128 is the same, -127 is different\n<END>", "<BEGIN>\n## `tran3`", "Get accumulator for a transition n between chars a, b, c.\n<END>", "<BEGIN>\n## `update`", "Add data to running diges...
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 ...
Add data to running digest, increasing the accumulators for 0-8 triplets formed by this char and the previous 0-3 chars.
"Add data to running digest, increasing the accumulators for 0-8\n triplets formed by this char and the previous 0-3 chars."
23
false
diffeo/py-nilsimsa
update
17,235
LDU_FT/supercoderz/pyflightdata/get_flights_from_to
LDU_FT
[ "<BEGIN>\n## `get_history_by_flight_number`", "Fetch the history of a flight by its number.", " This method can be used to get the history of a flight route by the number.\n It checks the user authentication and returns the data accordingly.", " Args:\n flight_number (str): The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flights_from_to API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flights_from_to API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Get the flights for a particular origin and destination. Given an origin and destination this method returns the upcoming scheduled flights between these two points. The data returned has the airline, airport and schedule information - this is subject to change in future. Args: ori...
"Get the flights for a particular origin and destination.\n\n Given an origin and destination this method returns the upcoming scheduled flights between these two points.\n The data returned has the airline, airport and schedule information - this is subject to change in future.\n\n Args:\n ...
99
false
supercoderz/pyflightdata
get_flights_from_to
17,236
LDU_FT/ponty/confduino/remove_programmer
LDU_FT
[ "<BEGIN>\n## `upgrade_many`", "upgrade many libs.", " source: http://arduino.cc/playground/Main/LibraryList", " you can set your arduino path if it is not default\n os.environ['ARDUINO_HOME'] = '/home/...'\n<END>", "<BEGIN>\n## `install_hwpack`", "install hwpackrary from web or local files system...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_programmer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_programmer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
remove programmer. :param programmer_id: programmer id (e.g. 'avrisp') :rtype: None
"remove programmer.\n\n :param programmer_id: programmer id (e.g. 'avrisp')\n :rtype: None"
61
false
ponty/confduino
remove_programmer
17,237
LDU_FT/pdkit/pdkit/plot_segmentation_data_frame
LDU_FT
[ "<BEGIN>\n## `load`", "This is a general load data method where the format of data to load can be passed as a parameter,", " :param str filename: The path to load data from\n :param str format_file: format of the file. Default is CloudUPDRS. Set to mpower for mpower data.\n :ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_segmentation_data_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_segmentation_data_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Utility method used to visualize how the segmentation dictionary interacts with the time series. :param segmented_data_frame: The segmented data frame. It should have x, y, z and segmentation columns. :type segmented_data_frame: pandas.DataFrame :param axis: The axis which we want t...
"Utility method used to visualize how the segmentation dictionary interacts with the time series.\n\n :param segmented_data_frame: The segmented data frame. It should have x, y, z and segmentation columns.\n :type segmented_data_frame: pandas.DataFrame\n :param axis: The axis which we w...
344
false
pdkit/pdkit
plot_segmentation_data_frame
17,238
LDU_FT/osrg/ryu/_compare_by_version
LDU_FT
[ "<BEGIN>\n## `update`", "Updates global configuration settings with given values.", " First checks if given configuration values differ from current values.\n If any of the configuration values changed, generates a change event.\n Currently we generate change event for any configuration cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compare_by_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compare_by_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns the current/latest learned path. Checks if given paths are from same source/peer and then compares their version number to determine which path is received later. If paths are from different source/peer return None.
"Returns the current/latest learned path.\n\n Checks if given paths are from same source/peer and then compares their\n version number to determine which path is received later. If paths are from\n different source/peer return None."
1,172
true
osrg/ryu
_compare_by_version
17,239
LDU_FT/opencivicdata/pupa/validate
LDU_FT
[ "<BEGIN>\n## `items_differ`", "check whether or not jsonitems and dbitems differ\n<END>", "<BEGIN>\n## `resolve_json_id`", "Given an id found in scraped JSON, return a DB id for the object.", " params:\n json_id: id from json\n allow_no_match: just return None...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. 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 validate API. 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...
Validate that we have a valid object. On error, this will raise a `ScrapeValueError` This also expects that the schemas assume that omitting required in the schema asserts the field is optional, not required. This is due to upstream schemas being in JSON Schema v3, and not validictory'...
"Validate that we have a valid object.\n\n On error, this will raise a `ScrapeValueError`\n\n This also expects that the schemas assume that omitting required\n in the schema asserts the field is optional, not required. This is\n due to upstream schemas being in JSON Schema v3, and not valid...
48
false
opencivicdata/pupa
validate
17,240
LDU_FT/dacut/python-aws-sig/canonical_request
LDU_FT
[ "<BEGIN>\n## `normalize_uri_path_component`", "normalize_uri_path_component(path_component) -> str", " Normalize the path component according to RFC 3986. This performs the\n following operations:\n * Alpha, digit, and the symbols '-', '.', '_', and '~' (unreserved\n characters) are left alone.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the canonical_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the canonical_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...
The AWS SigV4 canonical request given parameters from an HTTP request. This process is outlined here: http://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html The canonical request is: request_method + '\n' + canonical_uri_path + '\n' + ...
"The AWS SigV4 canonical request given parameters from an HTTP request.\n This process is outlined here:\n http://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html\n\n The canonical request is:\n request_method + '\\n' +\n canonical_uri_path + '\\n' +\n...
37
false
dacut/python-aws-sig
canonical_request
17,241
LDU_FT/ramrod-project/database-brain/apply_args
LDU_FT
[ "<BEGIN>\n## `deprecated_function`", "decorator to annotate deprecated functions", " usage @decorator(replacement=\"brain.whatever.new_function\")", " :param func_: <callable>\n :param replacement: <str>\n :param args: positional arguments\n :param kwargs:\n :return: <func_'s return value>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_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 apply_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...
This function is error checking before the job gets updated. :param job: Must be a valid job :param inputs: Must be a tuple type :param optional_inputs: optional for OptionalInputs :return: job
"This function is error checking before the job gets\n updated.\n :param job: Must be a valid job\n :param inputs: Must be a tuple type\n :param optional_inputs: optional for OptionalInputs\n :return: job"
165
false
ramrod-project/database-brain
apply_args
17,242
LDU_FT/mlperf/training/wait_for_fresh_games
LDU_FT
[ "<BEGIN>\n## `sorted_product_set`", "Compute the product set of array_a and array_b and sort it.\n<END>", "<BEGIN>\n## `set_low_quality_matches_`", "Produce additional matches for predictions that have only low-quality matches.\n Specifically, for each ground-truth find the set of predictions that have...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_fresh_games 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 wait_for_fresh_games API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Block caller until required new games have been played. Args: poll_interval: number of seconds to wait between checks If the cell `table_state=metadata:wait_for_game_number` exists, then block the caller, checking every `poll_interval` seconds, until `table_state=metadata:ga...
"Block caller until required new games have been played.\n\n Args:\n poll_interval: number of seconds to wait between checks\n\n If the cell `table_state=metadata:wait_for_game_number` exists,\n then block the caller, checking every `poll_interval` seconds,\n until `table_state=met...
1,285
true
mlperf/training
wait_for_fresh_games
17,243
LDU_FT/robotools/extractor/_handleLookupType2Format1
LDU_FT
[ "<BEGIN>\n## `_makeScriptOrder`", "Run therough GPOS and make an alphabetically\n ordered list of scripts. If DFLT is in the list,\n move it to the front.\n<END>", "<BEGIN>\n## `_gatherDataFromLookups`", "Gather kerning and classes from the applicable lookups\n and return them in script order.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handleLookupType2Format1 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 _handleLookupType2Format1 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Extract a kerning dictionary from a Lookup Type 2 Format 1.
"Extract a kerning dictionary from a Lookup Type 2 Format 1."
26
false
robotools/extractor
_handleLookupType2Format1
17,244
LDU_FT/open-homeautomation/pknx/knx_to_date
LDU_FT
[ "<BEGIN>\n## `ip_to_array`", "Convert a string representing an IPv4 address to 4 bytes.\n<END>", "<BEGIN>\n## `int_to_array`", "Convert an length byte integer to an array of bytes.\n<END>", "<BEGIN>\n## `parse_group_address`", "Parse KNX group addresses and return the address as an integer.", " This ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the knx_to_date API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the knx_to_date API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Convert a 3 byte KNX data object to a date
"Convert a 3 byte KNX data object to a date"
80
false
open-homeautomation/pknx
knx_to_date
17,245
LDU_FT/universalcore/unicore.distribute/get_schema
LDU_FT
[ "<BEGIN>\n## `get_repositories`", "Return an array of tuples with the name and path for\n repositories found in a directory.", " :param str path:\n The path to find repositories in\n :returns: tuple\n<END>", "<BEGIN>\n## `get_repository_names`", "Return an array of the path name for\n rep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_schema API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_schema API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return a schema for a content type in a repository. :param Repo repo: The git repository. :returns: dict
"Return a schema for a content type in a repository.\n\n :param Repo repo:\n The git repository.\n :returns: dict"
54
false
universalcore/unicore.distribute
get_schema
17,246
LDU_FT/stephantul/somber/load
LDU_FT
[ "<BEGIN>\n## `_calculate_influence`", "Pre-calculate the influence for a given value of sigma.", " The neighborhood has size num_neurons * num_neurons, so for a\n 30 * 30 map, the neighborhood will be size (900, 900).", " Parameters\n ----------\n neighborhood : float\n ...
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 a SOM from a JSON file saved with this package. Parameters ---------- path : str The path to the JSON file. Returns ------- s : cls A som of the specified class.
"Load a SOM from a JSON file saved with this package.\n\n Parameters\n ----------\n path : str\n The path to the JSON file.\n\n Returns\n -------\n s : cls\n A som of the specified class."
123
false
stephantul/somber
load
17,247
LDU_FT/xapple/fasta/template_align
LDU_FT
[ "<BEGIN>\n## `parse_primers`", "This functions starts with self because it's \n meant as an extension to the FASTA class.\n<END>", "<BEGIN>\n## `guess_phred_format`", "Guess the PHRED score format. The gold standard is the first one, aka\n the one called \"Sanger\". Sanger encoding is exactly equiva...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the template_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the template_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 ex...
We align the sequences in the fasta file with mothur and a template.
"We align the sequences in the fasta file with mothur and a template."
48
false
xapple/fasta
template_align
17,248
LDU_FT/jaraco/jaraco.mongodb/cdbs
LDU_FT
[ "<BEGIN>\n## `extract_param`", "From a list of args, extract the one param if supplied,\n returning the value and unused args.", " >>> extract_param('port', ['foo', '--port=999', 'bar'], type=int)\n (999, ['foo', 'bar'])\n >>> extract_param('port', ['foo', '--port', '999', 'bar'], type=int)\n (99...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cdbs API. 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 cdbs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Create a database in a shard. !create-db-in-shard {db name} {shard name}
"Create a database in a shard. !create-db-in-shard {db name} {shard name}"
82
false
jaraco/jaraco.mongodb
cdbs
17,249
LDU_FT/glormph/msstitch/specfn_quant_generator
LDU_FT
[ "<BEGIN>\n## `parse_input`", "Build peptide table has no input file (though it has a lookup),\n which is why we set it to outfile name so the infile fetching\n and outfile creating wont error.\n<END>", "<BEGIN>\n## `set_feature_generator`", "Generates proteins with quant from the lookup table\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the specfn_quant_generator 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 specfn_quant_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Generates tuples of specfile and quant element for general formats
"Generates tuples of specfile and quant element for general formats"
233
false
glormph/msstitch
specfn_quant_generator
17,250
LDU_FT/astropy/astropy-healpix/cone_search_lonlat
LDU_FT
[ "<BEGIN>\n## `healpix_to_lonlat`", "Convert HEALPix indices (optionally with offsets) to longitudes/latitudes", " Parameters\n ----------\n healpix_index : `~numpy.ndarray`\n 1-D array of HEALPix indices\n dx, dy : `~numpy.ndarray`, optional\n 1-D arrays of offs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cone_search_lonlat 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 cone_search_lonlat 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...
Find all the HEALPix pixels within a given radius of a longitude/latitude. Note that this returns all pixels that overlap, including partially, with the search cone. This function can only be used for a single lon/lat pair at a time, since different calls to the function may result in a differe...
"Find all the HEALPix pixels within a given radius of a longitude/latitude.\n\n Note that this returns all pixels that overlap, including partially, with\n the search cone. This function can only be used for a single lon/lat pair at\n a time, since different calls to the function may result in a di...
177
false
astropy/astropy-healpix
cone_search_lonlat
17,251
LDU_FT/StorjOld/plowshare-wrapper/download
LDU_FT
[ "<BEGIN>\n## `_run_command`", "Wrapper to pass command to plowshare.", " :param command: The command to pass to plowshare.\n :type command: str\n :param **kwargs: Additional keywords passed into\n :type **kwargs: dict\n :returns: Object containing either output of plowshare co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. 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 download API. 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...
Download a file from one of the provided sources The sources will be ordered by least amount of errors, so most successful hosts will be tried first. In case of failure, the next source will be attempted, until the first successful download is completed or all sources have been depleted...
"Download a file from one of the provided sources\n\n The sources will be ordered by least amount of errors, so most\n successful hosts will be tried first. In case of failure, the next\n source will be attempted, until the first successful download is\n completed or all sources have been de...
32
false
StorjOld/plowshare-wrapper
download
17,252
LDU_FT/IvanMalison/okcupyd/location
LDU_FT
[ "<BEGIN>\n## `ages`", "The age range that the user is interested in.\n<END>", "<BEGIN>\n## `single`", "Whether or not the user is only interested in people that are single.\n<END>", "<BEGIN>\n## `update`", "Update the looking for attributes of the logged in user.", " :param ages: The ages that th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracte...
:returns: The location of the user associated with this profile.
":returns: The location of the user associated with this profile."
149
false
IvanMalison/okcupyd
location
17,253
LDU_FT/scarface-4711/denonavr/_get_support_sound_mode_avr
LDU_FT
[ "<BEGIN>\n## `exec_appcommand_post`", "Prepare and execute a HTTP POST call to AppCommand.xml end point.", " Returns XML ElementTree on success and None on fail.\n<END>", "<BEGIN>\n## `get_status_xml`", "Get status XML via HTTP and return it as XML ElementTree.\n<END>", "<BEGIN>\n## `create_zones`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_support_sound_mode_avr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_support_sound_mode_avr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Get if sound mode is supported from device. Method queries device via HTTP. Returns "True" if sound mode supported and "False" if not. This method is for pre 2016 AVR(-X) devices
"Get if sound mode is supported from device.\n\n Method queries device via HTTP.\n Returns \"True\" if sound mode supported and \"False\" if not.\n This method is for pre 2016 AVR(-X) devices"
85
false
scarface-4711/denonavr
_get_support_sound_mode_avr
17,254
LDU_FT/NatLibFi/Skosify/mapping_match
LDU_FT
[ "<BEGIN>\n## `read_rdf`", "Read a list of RDF files and/or RDF graphs. May raise an Exception.\n<END>", "<BEGIN>\n## `mapping_get`", "Look up the URI in the given mapping and return the result.", " Throws KeyError if no matching mapping was found.\n<END>", "<BEGIN>\n## `mapping_match`", "Determine wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mapping_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mapping_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 ext...
Determine whether the given URI matches one of the given mappings. Returns True if a match was found, False otherwise.
"Determine whether the given URI matches one of the given mappings.\n\n Returns True if a match was found, False otherwise."
109
false
NatLibFi/Skosify
mapping_match
17,255
LDU_FT/SetBased/py-stratum/__substitute_replace_pairs
LDU_FT
[ "<BEGIN>\n## `log_verbose`", "Logs a message only when logging level is verbose.", " :param str|list[str] message: The message.\n<END>", "<BEGIN>\n## `log_very_verbose`", "Logs a message only when logging level is very verbose.", " :param str|list[str] message: The message.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __substitute_replace_pairs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __substitute_replace_pairs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Substitutes all replace pairs in the source of the stored routine.
"Substitutes all replace pairs in the source of the stored routine."
189
false
SetBased/py-stratum
__substitute_replace_pairs
17,256
LDU_FT/lovvskillz/python-discord-webhook/set_image
LDU_FT
[ "<BEGIN>\n## `add_file`", "add file to webhook\n :param file: file content\n :param filename: filename\n :return:\n<END>", "<BEGIN>\n## `add_embed`", "add embedded rich content\n :param embed: embed object or dict\n<END>", "<BEGIN>\n## `json`", "convert webhook data to json\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
set image of embed :keyword url: source url of image (only supports http(s) and attachments) :keyword proxy_url: a proxied url of the image :keyword height: height of image :keyword width: width of image
"set image of embed\n :keyword url: source url of image (only supports http(s) and attachments)\n :keyword proxy_url: a proxied url of the image\n :keyword height: height of image\n :keyword width: width of image"
20
false
lovvskillz/python-discord-webhook
set_image
17,257
LDU_FT/oczkers/pyllegro/doFeedback
LDU_FT
[ "<BEGIN>\n## `chunked`", "Chunk one big list into few small lists.\n<END>", "<BEGIN>\n## `login`", "Log in (sets self.token). Returns token (session_handle).\n<END>", "<BEGIN>\n## `getTotalPaid`", "Return total paid from buyer on single auction.\n<END>", "<BEGIN>\n## `getWaitingFeedbacks`", "Return al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doFeedback API. 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 doFeedback API. 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...
http://allegro.pl/webapi/documentation.php/show/id,42
"http://allegro.pl/webapi/documentation.php/show/id,42"
12
false
oczkers/pyllegro
doFeedback
17,258
LDU_FT/paramiko/paramiko/ssh_get_mic
LDU_FT
[ "<BEGIN>\n## `make_tarball`", "Create a tar file from all the files under 'base_dir'.\n This file may be compressed.", " :param compress: Compression algorithms. Supported algorithms are:\n 'gzip': (the default)\n 'compress'\n 'bzip2'\n None\n For 'gzip' and 'bzip2' the inte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ssh_get_mic API. 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 ssh_get_mic API. 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 the MIC token for a SSH2 message. :param str session_id: The SSH session ID :param bool gss_kex: Generate the MIC for Key Exchange with SSPI or not :return: gssapi-with-mic: Returns the MIC token from SSPI for the message we created with ``_ssh_build_mic...
"Create the MIC token for a SSH2 message.\n\n :param str session_id: The SSH session ID\n :param bool gss_kex: Generate the MIC for Key Exchange with SSPI or not\n :return: gssapi-with-mic:\n Returns the MIC token from SSPI for the message we created\n with ``_ssh_bu...
608
false
paramiko/paramiko
ssh_get_mic
17,259
LDU_FT/toloco/pyoanda/create_order
LDU_FT
[ "<BEGIN>\n## `check`", "Logic extracted from:\n http://developer.oanda.com/rest-live/orders/#createNewOrder\n<END>", "<BEGIN>\n## `__get_response`", "Creates a response object with the given params and option", " Parameters\n ----------\n url : string\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_order API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_order API. 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...
See more: http://developer.oanda.com/rest-live/orders/#createNewOrder
"See more:\n http://developer.oanda.com/rest-live/orders/#createNewOrder"
46
false
toloco/pyoanda
create_order
17,260
LDU_FT/ronaldguillen/wave/to_representation
LDU_FT
[ "<BEGIN>\n## `template_render`", "Passing Context or RequestContext to Template.render is deprecated in 1.9+,\n see https://github.com/django/django/pull/3883 and\n https://github.com/django/django/blob/1.9rc1/django/template/backends/django.py#L82-L84", " :param template: Template instance\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_representation API. 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 to_representation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Transform the *outgoing* native value into primitive data.
"Transform the *outgoing* native value into primitive data."
296
false
ronaldguillen/wave
to_representation
17,261
LDU_FT/hufman/flask_rdf/decide_mimetype
LDU_FT
[ "<BEGIN>\n## `output`", "Formats a response from a view to handle any RDF graphs\n\t\t If a view function returns an RDF graph, serialize it based on Accept header\n\t\t If it's not an RDF graph, return it without any special handling\n<END>", "<BEGIN>\n## `decorate`", "Wraps a view function to return f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decide_mimetype API. 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 decide_mimetype API. 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 what mimetype the client wants to receive Parses the given Accept header and returns the best one that we know how to output An empty Accept will default to application/rdf+xml An Accept with */* use rdf+xml unless a better match is found An Accept that doesn't match anything will ...
"Returns what mimetype the client wants to receive\n\t\t Parses the given Accept header and returns the best one that\n\t\t we know how to output\n\t\t An empty Accept will default to application/rdf+xml\n\t\t An Accept with */* use rdf+xml unless a better match is found\n\t\t An Accept that doesn't matc...
26
false
hufman/flask_rdf
decide_mimetype
17,262
LDU_FT/mommermi/callhorizons/set_discreteepochs
LDU_FT
[ "<BEGIN>\n## `_char2int`", "translate characters to integer values (upper and lower case)\n<END>", "<BEGIN>\n## `parse_comet`", "Parse `targetname` as if it were a comet.", " :return: (string or None, int or None, string or None);\n The designation, number and prefix, and name of the comet a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_discreteepochs 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_discreteepochs 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...
Set a list of discrete epochs, epochs have to be given as Julian Dates :param discreteepochs: array_like list or 1D array of floats or strings :return: None :example: >>> import callhorizons >>> ceres = callhorizons.query('Ceres') >>> ceres...
"Set a list of discrete epochs, epochs have to be given as Julian\n Dates\n\n :param discreteepochs: array_like\n list or 1D array of floats or strings\n :return: None\n :example: >>> import callhorizons\n >>> ceres = callhorizons.query('Ceres')\n ...
40
false
mommermi/callhorizons
set_discreteepochs
17,263
LDU_FT/ruipgil/TrackToTrip/bounding_box_from
LDU_FT
[ "<BEGIN>\n## `remove_liers`", "Removes obvious noise points", " Checks time consistency, removing points that appear out of order", " Args:\n points (:obj:`list` of :obj:`Point`)\n Returns:\n :obj:`list` of :obj:`Point`\n<END>", "<BEGIN>\n## `bounds`", "Computes the bounds of the se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bounding_box_from API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bounding_box_from API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Creates bounding box for a line segment Args: points (:obj:`list` of :obj:`Point`) i (int): Line segment start, index in points array i1 (int): Line segment end, index in points array Returns: (float, float, float, float): with bounding box min x, min y, max x and max y
"Creates bounding box for a line segment\n\n Args:\n points (:obj:`list` of :obj:`Point`)\n i (int): Line segment start, index in points array\n i1 (int): Line segment end, index in points array\n Returns:\n (float, float, float, float): with bounding box min x, min y, max x and max y"
262
false
ruipgil/TrackToTrip
bounding_box_from
17,264
LDU_FT/carpedm20/ndrive/getMusicAlbumList
LDU_FT
[ "<BEGIN>\n## `login`", "Log in Naver and get cookie", " Agrs:\n user_id: Naver account's login id\n password: Naver account's login password", " Returns:\n True: Login success\n False: Login failed", " Remarks:\n self.cookie is a di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getMusicAlbumList API. 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 getMusicAlbumList API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get music album list. :param tagtype: ? :return: ``metadata`` or ``False`` :metadata: - u'album':u'Greatest Hits Coldplay', - u'artist':u'Coldplay', - u'href':u'/Coldplay - Clocks.mp3', - u'musiccount':1, - u'resourceno':12459548378,...
"Get music album list.\n\n :param tagtype: ?\n\n :return: ``metadata`` or ``False``\n\n :metadata:\n - u'album':u'Greatest Hits Coldplay',\n - u'artist':u'Coldplay',\n - u'href':u'/Coldplay - Clocks.mp3',\n - u'musiccount':1,\n - u'resourceno':...
170
false
carpedm20/ndrive
getMusicAlbumList
17,265
LDU_FT/LPgenerator/django-db-mailer/email_list_to_email_dict
LDU_FT
[ "<BEGIN>\n## `send`", "Site: http://www.pubnub.com/\n API: https://www.mashape.com/pubnub/pubnub-network\n Desc: real-time browser notifications", " Installation and usage:\n pip install -U pubnub\n Tests for browser notification http://127.0.0.1:8000/browser_notification/\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the email_list_to_email_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the email_list_to_email_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Convert a list of email to a dict of email.
"Convert a list of email to a dict of email."
39
false
LPgenerator/django-db-mailer
email_list_to_email_dict
17,266
LDU_FT/bkg/django-spillway/pbf
LDU_FT
[ "<BEGIN>\n## `make_dbsource`", "Returns a mapnik PostGIS or SQLite Datasource.\n<END>", "<BEGIN>\n## `layer`", "Returns a map Layer.", " Arguments:\n queryset -- QuerySet for Layer\n Keyword args:\n stylename -- str name of style to apply\n<END>", "<BEGIN>\n## `zoom_bbox`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pbf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pbf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns tranlated and scaled geometries suitable for Mapbox vector tiles.
"Returns tranlated and scaled geometries suitable for Mapbox vector\n tiles."
57
false
bkg/django-spillway
pbf
17,267
LDU_FT/DistrictDataLabs/yellowbrick/color_sequence
LDU_FT
[ "<BEGIN>\n## `download`", "Download the dataset from the hosted Yellowbrick data store and save\n it to the location specified by ``get_data_home``. The downloader\n verifies the download completed successfully and safely by comparing\n the expected signature with the SHA 256 signature of the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the color_sequence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the color_sequence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a `ListedColormap` object from a named sequence palette. Useful for continuous color scheme values and color maps. Calling this function with ``palette=None`` will return the default color sequence: Color Brewer RdBu. Parameters ---------- palette : None or str or sequence Name...
"Return a `ListedColormap` object from a named sequence palette. Useful\n for continuous color scheme values and color maps.\n\n Calling this function with ``palette=None`` will return the default\n color sequence: Color Brewer RdBu.\n\n Parameters\n ----------\n\n palette : None or str or sequence\n ...
1,283
true
DistrictDataLabs/yellowbrick
color_sequence
17,268
LDU_FT/anchore/anchore/_flush
LDU_FT
[ "<BEGIN>\n## `get_current_user_info`", "Return the metadata about the current user as supplied by the anchore.io service. Includes permissions and tier access.", " :return: Dict of user metadata\n<END>", "<BEGIN>\n## `sync`", "Sync (download) latest policies from the Anchore.io service.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _flush API. 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 _flush API. 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 ...
Flush metadata to the backing file :return:
"Flush metadata to the backing file\n :return:"
151
false
anchore/anchore
_flush
17,269
LDU_FT/davisd50/sparc.cache/schema_map
LDU_FT
[ "<BEGIN>\n## `schema_map`", "Return a valid ICachedItemMapper.map for schema\n<END>", "<BEGIN>\n## `items`", "Returns a generator of available ICachableItem in the ICachableSource\n<END>", "<BEGIN>\n## `getById`", "Returns ICachableItem that matches id", " Args:\n id: String that ident...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schema_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schema_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return a valid ICachedItemMapper.map for schema
"Return a valid ICachedItemMapper.map for schema"
37
false
davisd50/sparc.cache
schema_map
17,270
LDU_FT/persephone-tools/persephone/fmt_error_types
LDU_FT
[ "<BEGIN>\n## `handle_unhandled_exception`", "Handler for unhandled exceptions that will write to the logs\n<END>", "<BEGIN>\n## `write_transcriptions`", "Write the utterance transcriptions to files in the tgt_dir. Is lazy and\n checks if the file already exists.", " Args:\n utterances: A list o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fmt_error_types API. 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 fmt_error_types API. 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...
Format some information about different error types: insertions, deletions and substitutions.
"Format some information about different error types: insertions, deletions and substitutions."
219
false
persephone-tools/persephone
fmt_error_types
17,271
LDU_FT/FlorianRhiem/pyGLFW/set_window_focus_callback
LDU_FT
[ "<BEGIN>\n## `_find_library_candidates`", "Finds and returns filenames which might be the library you are looking for.\n<END>", "<BEGIN>\n## `_load_library`", "Finds, loads and returns the most recent version of the library.\n<END>", "<BEGIN>\n## `_get_library_search_paths`", "Returns a list of library se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_window_focus_callback 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 set_window_focus_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Sets the focus callback for the specified window. Wrapper for: GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* window, GLFWwindowfocusfun cbfun);
"Sets the focus callback for the specified window.\n\n Wrapper for:\n GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* window, GLFWwindowfocusfun cbfun);"
105
false
FlorianRhiem/pyGLFW
set_window_focus_callback
17,272