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/SuperCowPowers/bat/_make_df
LDU_FT
[ "<BEGIN>\n## `readlines`", "Open the file for reading and yield lines as they are added\n<END>", "<BEGIN>\n## `readrows`", "The readrows method reads simply 'combines' the rows of\n multiple files OR gunzips the file and then reads the rows\n<END>", "<BEGIN>\n## `most_recent`", "Recursively insp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_df API. 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 _make_df API. 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...
Internal Method to make and clean the dataframe in preparation for sending to Parquet
"Internal Method to make and clean the dataframe in preparation for sending to Parquet"
79
false
SuperCowPowers/bat
_make_df
10,373
LDU_FT/MacHu-GWU/uszipcode-project/by_zipcode
LDU_FT
[ "<BEGIN>\n## `from_query`", "Execute an ORM style query, and return the result in\n :class:`prettytable.PrettyTable`.", " :param query: an ``sqlalchemy.orm.Query`` object.\n :param engine: an ``sqlalchemy.engine.base.Engine`` object.\n :param limit: int, limit rows to return.", " :return: a ``p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_zipcode API. 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 by_zipcode API. 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...
Search zipcode by exact 5 digits zipcode. No zero padding is needed. :param zipcode: int or str, the zipcode will be automatically zero padding to 5 digits. :param zipcode_type: str or :class`~uszipcode.model.ZipcodeType` attribute. by default, it returns any zipcode type. ...
"Search zipcode by exact 5 digits zipcode. No zero padding is needed.\n\n :param zipcode: int or str, the zipcode will be automatically\n zero padding to 5 digits.\n :param zipcode_type: str or :class`~uszipcode.model.ZipcodeType` attribute.\n by default, it returns any zipcode type....
208
false
MacHu-GWU/uszipcode-project
by_zipcode
10,374
LDU_FT/erikrose/parsimonious/_resolve_refs
LDU_FT
[ "<BEGIN>\n## `visit`", "Walk a parse tree, transforming it into another representation.", " Recursively descend a parse tree, dispatching to the method named after\n the rule in the :class:`~parsimonious.grammar.Grammar` that produced\n each node. If, for example, a rule was... ::", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_refs API. 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 _resolve_refs API. 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...
Return an expression with all its lazy references recursively resolved. Resolve any lazy references in the expression ``expr``, recursing into all subexpressions. :arg done: The set of Expressions that have already been or are currently being resolved, to ward off redundant...
"Return an expression with all its lazy references recursively\n resolved.\n\n Resolve any lazy references in the expression ``expr``, recursing into\n all subexpressions.\n\n :arg done: The set of Expressions that have already been or are\n currently being resolved, to ward off r...
41
false
erikrose/parsimonious
_resolve_refs
10,375
LDU_FT/yangl1996/libpagure/new_project
LDU_FT
[ "<BEGIN>\n## `_call_api`", "Method used to call the API.\n It returns the raw JSON returned by the API or raises an exception\n if something goes wrong.", " :arg url: the URL to call\n :kwarg method: the HTTP method to use when calling the specified\n URL, can be GET, POST...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_project API. 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 new_project API. 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 a new project on the pagure instance :param name: the name of the new project. :param description: A short description of the new project. :param namespace: The namespace of the project to fork :param url: A url providing more information about the project. :param avatar_e...
"Create a new project on the pagure instance\n :param name: the name of the new project.\n :param description: A short description of the new project.\n :param namespace: The namespace of the project to fork\n :param url: A url providing more information about the project.\n :param av...
62
false
yangl1996/libpagure
new_project
10,376
LDU_FT/mrcagney/gtfstk/clean_route_short_names
LDU_FT
[ "<BEGIN>\n## `get_stop_times`", "Return a subset of ``feed.stop_times``.", " Parameters\n ----------\n feed : Feed\n date : string\n YYYYMMDD date string restricting the output to trips active\n on the date", " Returns\n -------\n DataFrame\n Subset of ``feed.stop_tim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_route_short_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_route_short_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...
In ``feed.routes``, assign 'n/a' to missing route short names and strip whitespace from route short names. Then disambiguate each route short name that is duplicated by appending '-' and its route ID. Return the resulting "Feed".
"In ``feed.routes``, assign 'n/a' to missing route short names and\n strip whitespace from route short names.\n Then disambiguate each route short name that is duplicated by\n appending '-' and its route ID.\n Return the resulting \"Feed\"."
474
false
mrcagney/gtfstk
clean_route_short_names
10,377
LDU_FT/Azure/azure-cosmos-table-python/insert_entity
LDU_FT
[ "<BEGIN>\n## `generate_account_shared_access_signature`", "Generates a shared access signature for the table service.\n Use the returned signature with the sas_token parameter of TableService.", " :param ResourceTypes resource_types:\n Specifies the resource types that are accessible wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_entity API. 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 insert_entity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Adds an insert entity operation to the batch. See :func:`~azure.storage.table.tableservice.TableService.insert_entity` for more information on inserts. The operation will not be executed until the batch is committed. :param entity: The entity to insert. Could be a...
"Adds an insert entity operation to the batch. See \n :func:`~azure.storage.table.tableservice.TableService.insert_entity` for more \n information on inserts.\n \n The operation will not be executed until the batch is committed.\n\n :param entity:\n The entity to insert. Co...
142
false
Azure/azure-cosmos-table-python
insert_entity
10,378
LDU_FT/kvh/ramp/model_definition_factory
LDU_FT
[ "<BEGIN>\n## `round_robin`", "Ensures all classes get representative features, not just those with strong features\n<END>", "<BEGIN>\n## `predict_maxprob`", "Most likely value. Generally equivalent to predict.\n<END>", "<BEGIN>\n## `cross_validate`", "Shortcut to cross-validate a single configuration.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the model_definition_factory 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 model_definition_factory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Provides an iterator over passed-in configuration values, allowing for easy exploration of models. Parameters: ___________ base_model_definition: The base `ModelDefinition` to augment kwargs: Can be any keyword accepted by `ModelDefinition`. Values should be iterables.
"Provides an iterator over passed-in\n configuration values, allowing for easy\n exploration of models.\n\n Parameters:\n ___________\n\n base_model_definition:\n The base `ModelDefinition` to augment\n\n kwargs:\n Can be any keyword accepted by `ModelDefinition`.\n Values should ...
34
false
kvh/ramp
model_definition_factory
10,379
LDU_FT/aio-libs/aiohttp/write
LDU_FT
[ "<BEGIN>\n## `_cleanup_closed`", "Double confirmation for transport close.\n Some broken ssl servers may leave socket open without proper close.\n<END>", "<BEGIN>\n## `_available_connections`", "Return number of available connections taking into account\n the limit, limit_per_host and the connec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. 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 write API. 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...
Writes chunk of data to a stream. write_eof() indicates end of stream. writer can't be used after write_eof() method being called. write() return drain future.
"Writes chunk of data to a stream.\n\n write_eof() indicates end of stream.\n writer can't be used after write_eof() method being called.\n write() return drain future."
233
false
aio-libs/aiohttp
write
10,380
LDU_FT/Metatab/metatab/term_is
LDU_FT
[ "<BEGIN>\n## `split_term`", "Split a term in to parent and record term components\n :param term: combined term text\n :return: Tuple of parent and record term\n<END>", "<BEGIN>\n## `split_term_lower`", "Like split_term, but also lowercases both parent and record term\n :param term: combin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the term_is API. 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 term_is API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return True if the fully qualified name of the term is the same as the argument. If the argument is a list or tuple, return True if any of the term names match. Either the parent or the record term can be '*' ( 'Table.*' or '*.Name' ) to match any value for either the parent or record term.
"Return True if the fully qualified name of the term is the same as the argument. If the\n argument is a list or tuple, return True if any of the term names match.\n\n Either the parent or the record term can be '*' ( 'Table.*' or '*.Name' ) to match any value for\n either the parent or record ter...
102
false
Metatab/metatab
term_is
10,381
LDU_FT/fedora-infra/fedora-messaging/_ssl_context_factory
LDU_FT
[ "<BEGIN>\n## `cli`", "The fedora-messaging command line interface.\n<END>", "<BEGIN>\n## `consume`", "Consume messages from an AMQP queue using a Python callback.\n<END>", "<BEGIN>\n## `_consume_errback`", "Handle any errors that occur during consumer registration.\n<END>", "<BEGIN>\n## `_consume_callba...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ssl_context_factory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ssl_context_factory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Produce a Twisted SSL context object from a pika connection parameter object. This is necessary as Twisted manages the connection, not Pika. Args: parameters (pika.ConnectionParameters): The connection parameters built from the fedora_messaging configuration.
"Produce a Twisted SSL context object from a pika connection parameter object.\n This is necessary as Twisted manages the connection, not Pika.\n\n Args:\n parameters (pika.ConnectionParameters): The connection parameters built\n from the fedora_messaging configuration."
302
false
fedora-infra/fedora-messaging
_ssl_context_factory
10,382
LDU_FT/ksbg/sparklanes/validate_params
LDU_FT
[ "<BEGIN>\n## `build_lane_from_yaml`", "Builds a `sparklanes.Lane` object from a YAML definition file.", " Parameters\n ----------\n path: str\n Path to the YAML definition file", " Returns\n -------\n Lane\n Lane, built according to definition in YAML file\n<END>", "<BEGIN>\n...
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 e...
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 e...
Validates if the given args/kwargs match the method signature. Checks if: - at least all required args/kwargs are given - no redundant args/kwargs are given Parameters ---------- cls : Class mtd_name : str Name of the method whose parameters shall be validated args: list Pos...
"Validates if the given args/kwargs match the method signature. Checks if:\n - at least all required args/kwargs are given\n - no redundant args/kwargs are given\n\n Parameters\n ----------\n cls : Class\n mtd_name : str\n Name of the method whose parameters shall be validated\n args: list\n...
62
false
ksbg/sparklanes
validate_params
10,383
LDU_FT/KE-works/pykechain/create_proxy_model
LDU_FT
[ "<BEGIN>\n## `value`", "Value of a reference property.", " You can set the reference with a Part, Part id or None value.\n Ensure that the model of the provided part, matches the configured model", " :return: a :class:`Part` or None\n :raises APIError: When unable to find the assoc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_proxy_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_proxy_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Add this model as a proxy to another parent model. This will add a model as a proxy model to another parent model. It ensure that it will copy the whole sub-assembly to the 'parent' model. In order to prevent the backend from updating the frontend you may add `suppress_kevents=True` as ...
"Add this model as a proxy to another parent model.\n\n This will add a model as a proxy model to another parent model. It ensure that it will copy the\n whole sub-assembly to the 'parent' model.\n\n In order to prevent the backend from updating the frontend you may add `suppress_kevents=True` as\n...
751
false
KE-works/pykechain
create_proxy_model
10,384
LDU_FT/rpcope1/PythonConfluenceAPI/all_of
LDU_FT
[ "<BEGIN>\n## `request_patch`", "Maintains the existing api for Session.request.\n Used by all of the higher level methods, e.g. Session.get.\n The background_callback param allows you to do some processing on the\n response in the background, e.g. call resp.json() so that json parsing\n happens in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_of API. 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 all_of API. 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 ...
Generator that iterates over all results of an API call that requires limit/start pagination. If the `limit` keyword argument is set, it is used to stop the generator after the given number of result items. >>> for i, v in enumerate(all_of(api.get_content)): >>> v = bunchify(v) >>> print('...
"Generator that iterates over all results of an API call that requires limit/start pagination.\n\n If the `limit` keyword argument is set, it is used to stop the\n generator after the given number of result items.\n\n >>> for i, v in enumerate(all_of(api.get_content)):\n >>> v = bunchify(v)\n >>> ...
140
false
rpcope1/PythonConfluenceAPI
all_of
10,385
LDU_FT/penguinmenac3/starttf/batch_alpha_balance_loss
LDU_FT
[ "<BEGIN>\n## `easy_train_and_evaluate`", "Train and evaluate your model without any boilerplate code.", " 1) Write your data using the starttf.tfrecords.autorecords.write_data method.\n 2) Create your hyper parameter file containing all required fields and then load it using\n starttf.utils.hyper_p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_alpha_balance_loss 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 batch_alpha_balance_loss API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Calculate the alpha balanced cross_entropy. This means for each sample the cross entropy is calculated and then weighted by the class specific weight. There is yet no paper for this type of loss. :param labels: A float tensor of shape [batch_size, ..., num_classes] representing the label class probabilit...
"Calculate the alpha balanced cross_entropy.\n\n This means for each sample the cross entropy is calculated and then weighted by the class specific weight.\n\n There is yet no paper for this type of loss.\n\n :param labels: A float tensor of shape [batch_size, ..., num_classes] representing the label class pro...
120
false
penguinmenac3/starttf
batch_alpha_balance_loss
10,386
LDU_FT/mozilla/DeepSpeech/vad_collector
LDU_FT
[ "<BEGIN>\n## `reduce_filename`", "r'''\n Expects something like /tmp/tmpAjry4Gdsbench/test.weights.e5.XXX.YYY.pb\n Where XXX is a variation on the model size for example\n And where YYY is a const related to the training dataset\n<END>", "<BEGIN>\n## `keep_only_digits`", "r'''\n local helper to ju...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vad_collector API. 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 vad_collector API. 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...
Generator that yields series of consecutive audio frames comprising each utterence, separated by yielding a single None. Determines voice activity by ratio of frames in padding_ms. Uses a buffer to include padding_ms prior to being triggered. Example: (frame, ..., frame, None, frame, ..., frame,...
"Generator that yields series of consecutive audio frames comprising each utterence, separated by yielding a single None.\n Determines voice activity by ratio of frames in padding_ms. Uses a buffer to include padding_ms prior to being triggered.\n Example: (frame, ..., frame, None, frame, ..., fra...
98
false
mozilla/DeepSpeech
vad_collector
10,387
LDU_FT/codelv/enaml-native/child_moved
LDU_FT
[ "<BEGIN>\n## `init_layout`", "Initialize the layout of the toolkit widget.", " This method is called during the bottom-up pass. This method\n should initialize the layout of the widget. The child widgets\n will be fully initialized and layed out when this is called.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the child_moved API. 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 child_moved API. 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...
Handle the child moved event from the declaration.
"Handle the child moved event from the declaration."
573
false
codelv/enaml-native
child_moved
10,388
LDU_FT/millar/provstore-api/prov
LDU_FT
[ "<BEGIN>\n## `create`", "Create a document on ProvStore.", " :param prov_document: The document to be stored\n :param prov_format: The format of the document provided\n :param bool refresh: Whether or not to load back the document after saving\n :param dict props: Properties for this...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prov API. 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 prov API. 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...
:return: This bundle's provenance :rtype: :py:class:`prov.model.ProvDocument`
":return: This bundle's provenance\n :rtype: :py:class:`prov.model.ProvDocument`"
34
false
millar/provstore-api
prov
10,389
LDU_FT/Nekroze/librarian/move_top_cards
LDU_FT
[ "<BEGIN>\n## `add_attribute`", "Add the given attribute to this Card. Returns the length of\n attributes after addition.\n<END>", "<BEGIN>\n## `add_ability`", "Add the given ability to this Card under the given phase. Returns\n the length of the abilities for the given phase after the addition.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_top_cards API. 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 move_top_cards API. 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...
Move the top `number` of cards to the top of some `other` deck. By default only one card will be moved if `number` is not specified.
"Move the top `number` of cards to the top of some `other` deck.\n\n By default only one card will be moved if `number` is not specified."
43
false
Nekroze/librarian
move_top_cards
10,390
LDU_FT/splitkeycoffee/pyhottop/_callback
LDU_FT
[ "<BEGIN>\n## `_generate_config`", "Generate a configuration that can be sent to the Hottop roaster.", " Configuration settings need to be represented inside of a byte array\n that is then written to the serial interface. Much of the configuration\n is static, but control settings are also i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _callback API. 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 _callback API. 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...
Processor callback to clean-up stream data. This function provides a hook into the output stream of data from the controller processing thread. Hottop readings are saved into a local class variable for later saving. If the user has defined a callback, it will be called within this priva...
"Processor callback to clean-up stream data.\n\n This function provides a hook into the output stream of data from the\n controller processing thread. Hottop readings are saved into a local\n class variable for later saving. If the user has defined a callback, it\n will be called within this...
89
false
splitkeycoffee/pyhottop
_callback
10,391
LDU_FT/cocaine/cocaine-tools/keyring_update
LDU_FT
[ "<BEGIN>\n## `reelect_app`", "tries to connect to the same app on differnet host from dist-info\n<END>", "<BEGIN>\n## `expr`", "expr ::= term ((AND | OR) term)*\n term ::= factor ((EQ | NE) factor)*\n factor ::= func | const | LPAREN expr RPAREN\n func ::= lit LPAREN expr (,expr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keyring_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keyring_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 ex...
Downloads and saves public key(s). Downloads public key(s) from the TVM service for a given client id and saves in the storage for further usage. Note, that the cocaine-runtime automatically refreshes its keyring after this call.
"Downloads and saves public key(s).\n\n Downloads public key(s) from the TVM service for a given client id and saves in the storage\n for further usage.\n Note, that the cocaine-runtime automatically refreshes its keyring after this call."
127
false
cocaine/cocaine-tools
keyring_update
10,392
LDU_FT/sebp/scikit-survival/staged_predict
LDU_FT
[ "<BEGIN>\n## `_fit_and_score`", "Train survival model on given data and return its score on test data\n<END>", "<BEGIN>\n## `fit`", "Fit estimator.", " Parameters\n ----------\n X : array-like, shape = (n_samples, n_features)\n Data matrix", " y : structured array, s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the staged_predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the staged_predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Predict hazard at each stage for X. This method allows monitoring (i.e. determine error on testing set) after each stage. Parameters ---------- X : array-like, shape = (n_samples, n_features) The input samples. Returns ------- y : generator ...
"Predict hazard at each stage for X.\n\n This method allows monitoring (i.e. determine error on testing set)\n after each stage.\n\n Parameters\n ----------\n X : array-like, shape = (n_samples, n_features)\n The input samples.\n\n Returns\n -------\n y...
432
false
sebp/scikit-survival
staged_predict
10,393
LDU_FT/lra/mackup/uninstall
LDU_FT
[ "<BEGIN>\n## `getFilepaths`", "Get home and mackup filepaths for given file", " Args:\n filename (str)", " Returns:\n home_filepath, mackup_filepath (str, str)\n<END>", "<BEGIN>\n## `backup`", "Backup the application config files.", " Algorithm:\n if...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uninstall API. 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 uninstall API. 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...
Uninstall Mackup. Restore any file where it was before the 1st Mackup backup. Algorithm: for each file in config if mackup/file exists if home/file exists delete home/file copy mackup/file home/file ...
"Uninstall Mackup.\n\n Restore any file where it was before the 1st Mackup backup.\n\n Algorithm:\n for each file in config\n if mackup/file exists\n if home/file exists\n delete home/file\n copy mackup/file home/file\n...
116
false
lra/mackup
uninstall
10,394
LDU_FT/agoragames/leaderboard-python/total_scores_in
LDU_FT
[ "<BEGIN>\n## `pool`", "Fetch a redis conenction pool for the unique combination of host\n and port. Will create a new one if there isn't one already.\n<END>", "<BEGIN>\n## `rank_member`", "Rank a member in the leaderboard.", " @param member [String] Member name.\n @param score [float] M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the total_scores_in API. 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 total_scores_in API. 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...
Sum of scores for all members in the named leaderboard. @param leaderboard_name Name of the leaderboard. @return Sum of scores for all members in the named leaderboard.
"Sum of scores for all members in the named leaderboard.\n\n @param leaderboard_name Name of the leaderboard.\n @return Sum of scores for all members in the named leaderboard."
180
false
agoragames/leaderboard-python
total_scores_in
10,395
LDU_FT/rvswift/EB/make_fpfList
LDU_FT
[ "<BEGIN>\n## `approximator`", "recursively rank queries\n :param molecules:\n :param options:\n :param sort_order:\n :param frameworks:\n :param ensemble:\n :return:\n<END>", "<BEGIN>\n## `rank_queries`", "rank queries by value added to existing ensemble\n :param molecules:\n :param sc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_fpfList API. 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 make_fpfList API. 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...
aggregate default fpf values and user-defined fpf values where enrichment factor calculations will be attempted. :param options: SplitInput object :return defaults: list includes default fpf values & unique user-defined values
"aggregate default fpf values and user-defined fpf values where enrichment factor calculations will be attempted.\n :param options: SplitInput object\n :return defaults: list includes default fpf values & unique user-defined values"
91
false
rvswift/EB
make_fpfList
10,396
LDU_FT/Genida/django-meerkat/google_maps_geoloc_link
LDU_FT
[ "<BEGIN>\n## `ip_geoloc`", "Get IP geolocation.", " Args:\n ip (str): IP address to use if no data provided.\n hit_api (bool): whether to hit api if info not found.", " Returns:\n str: latitude and longitude, comma-separated.\n<END>", "<BEGIN>\n## `google_maps_geoloc_link`", "Ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the google_maps_geoloc_link 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 google_maps_geoloc_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Get a link to google maps pointing on this IP's geolocation. Args: data (str/tuple): IP address or (latitude, longitude). Returns: str: a link to google maps pointing on this IP's geolocation.
"Get a link to google maps pointing on this IP's geolocation.\n\n Args:\n data (str/tuple): IP address or (latitude, longitude).\n\n Returns:\n str: a link to google maps pointing on this IP's geolocation."
71
false
Genida/django-meerkat
google_maps_geoloc_link
10,397
LDU_FT/LonamiWebs/Telethon/close
LDU_FT
[ "<BEGIN>\n## `collect`", "Create a `self` iterator and collect it into a `TotalList`\n (a normal list with a `.total` attribute).\n<END>", "<BEGIN>\n## `handler`", "#full: Advises to read \"Accessing the full API\" in the docs.\n<END>", "<BEGIN>\n## `handler`", "#search query: Searches for \"query\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Closes the connection unless we're working in-memory
"Closes the connection unless we're working in-memory"
1,037
true
LonamiWebs/Telethon
close
10,398
LDU_FT/olsoneric/pedemath/nlerp_quat
LDU_FT
[ "<BEGIN>\n## `add_v3`", "Return a new Vec3 containing the sum of our x, y, z, and arg.", " If argument is a float or vec, addt it to our x, y, and z.\n Otherwise, treat it as a Vec3 and add arg.x, arg.y, and arg.z from\n our own x, y, and z.\n<END>", "<BEGIN>\n## `translate_v3`", "Return a new Vec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nlerp_quat API. 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 nlerp_quat API. 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 normalized linear interpolation of two quaternions. Less computationally expensive than slerp (which not implemented in this lib yet), but does not maintain a constant velocity like slerp.
"Return normalized linear interpolation of two quaternions.\n\n Less computationally expensive than slerp (which not implemented in this\n lib yet), but does not maintain a constant velocity like slerp."
74
false
olsoneric/pedemath
nlerp_quat
10,399
LDU_FT/SALib/SALib/_sample_groups
LDU_FT
[ "<BEGIN>\n## `analyze`", "Perform a fractional factorial analysis", " Returns a dictionary with keys 'ME' (main effect) and 'IE' (interaction\n effect). The techniques bulks out the number of parameters with dummy\n parameters to the nearest 2**n. Any results involving dummy parameters\n could indi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sample_groups API. 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 _sample_groups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Generate trajectories for groups Returns an :math:`N(g+1)`-by-:math:`k` array of `N` trajectories, where :math:`g` is the number of groups and :math:`k` is the number of factors Arguments --------- problem : dict The problem definition N : int The number of trajectories to ...
"Generate trajectories for groups\n\n Returns an :math:`N(g+1)`-by-:math:`k` array of `N` trajectories,\n where :math:`g` is the number of groups and :math:`k` is the number\n of factors\n\n Arguments\n ---------\n problem : dict\n The problem definition\n N : int\n The number of traj...
249
false
SALib/SALib
_sample_groups
10,400
LDU_FT/adewes/blitzdb/save_to_data
LDU_FT
[ "<BEGIN>\n## `commit`", "Commit all pending transactions to the database.", " .. admonition:: Warning", " This operation can be **expensive** in runtime if a large number of\n documents (>100.000) is contained in the database, since it will\n cause all database indexes ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_to_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_to_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Save index to data structure. :param in_place: Do not copy index value to a new list object :type in_place: bool :return: Index data structure :rtype: list
"Save index to data structure.\n\n :param in_place: Do not copy index value to a new list object\n :type in_place: bool\n :return: Index data structure\n :rtype: list"
141
false
adewes/blitzdb
save_to_data
10,401
LDU_FT/fboender/ansible-cmdb/get
LDU_FT
[ "<BEGIN>\n## `tokenize`", "Parse a string expression into a set of tokens that can be used as a path\n into a Python datastructure.\n<END>", "<BEGIN>\n## `jsonxs`", "Get, set, delete values in a JSON structure. `expr` is a JSONpath-like\n expression pointing to the desired value. `action` determines the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Retrieve a value from the cache. :param key: the value's key. :param \**kw: cache configuration arguments. The backend is configured using these arguments upon first request. Subsequent requests that use the same series of configuration values will use that same backend.
"Retrieve a value from the cache.\n\n :param key: the value's key.\n :param \\**kw: cache configuration arguments. The\n backend is configured using these arguments upon first request.\n Subsequent requests that use the same series of configuration\n values will use that same back...
271
false
fboender/ansible-cmdb
get
10,402
LDU_FT/phareous/insteonlocal/get_device_category
LDU_FT
[ "<BEGIN>\n## `scene_command`", "Wrapper to send posted scene command and get response\n<END>", "<BEGIN>\n## `brightness_to_hex`", "Convert numeric brightness percentage into hex for insteon\n<END>", "<BEGIN>\n## `direct_command`", "Wrapper to send posted direct command and get response. Level is 0-100.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_device_category 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_device_category 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...
Return the device category and name given the category id
"Return the device category and name given the category id"
26
false
phareous/insteonlocal
get_device_category
10,403
LDU_FT/log2timeline/plaso/ParseFileObject
LDU_FT
[ "<BEGIN>\n## `_GetStatus`", "Retrieves status information.", " Returns:\n dict[str, object]: status attributes, indexed by name.\n<END>", "<BEGIN>\n## `_ProcessEvent`", "Processes an event.", " Args:\n mediator (AnalysisMediator): mediates interactions between\n analysis plugins a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ParseFileObject API. 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 ParseFileObject API. 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...
Parses an Android usage-history file-like object. Args: parser_mediator (ParserMediator): mediates interactions between parsers and other components, such as storage and dfvfs. file_object (dfvfs.FileIO): file-like object. Raises: UnableToParseFile: when the file cannot be parsed.
"Parses an Android usage-history file-like object.\n\n Args:\n parser_mediator (ParserMediator): mediates interactions between parsers\n and other components, such as storage and dfvfs.\n file_object (dfvfs.FileIO): file-like object.\n\n Raises:\n UnableToParseFile: when the file cannot be...
5,157
true
log2timeline/plaso
ParseFileObject
10,404
LDU_FT/miguelgrinberg/slam/template
LDU_FT
[ "<BEGIN>\n## `on_error`", "Error handler", " RuntimeError or ValueError exceptions raised by commands will be handled\n by this function.\n<END>", "<BEGIN>\n## `on_unexpected_error`", "Catch-all error handler", " Unexpected errors will be handled by this function.\n<END>", "<BEGIN>\n## `_run_la...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the template API. 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 template API. 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...
Print the default Cloudformation deployment template.
"Print the default Cloudformation deployment template."
18
false
miguelgrinberg/slam
template
10,405
LDU_FT/ocslegna/auto_py_torrent/get_magnet
LDU_FT
[ "<BEGIN>\n## `get_parser`", "Load parser for command line arguments.", " It parses argv/input into args variable.\n<END>", "<BEGIN>\n## `insert`", "Insert args values into instance variables.\n<END>", "<BEGIN>\n## `run_it`", "Search and download torrents until the user says it so.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_magnet API. 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_magnet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get magnet from torrent page. Url already got domain.
"Get magnet from torrent page. Url already got domain."
21
false
ocslegna/auto_py_torrent
get_magnet
10,406
LDU_FT/hubo1016/namedstruct/ip_frag
LDU_FT
[ "<BEGIN>\n## `ip_frag`", "Not fragments:\n ip_frag(packet) == 0\n not ip_frag(packet)", " First packet of fragments:\n ip_frag(packet) == IP_FRAG_ANY", " Not first packet of fragments:\n ip_frag(packet) & IP_FRAG_LATER", " All fragments:\n ip_frag(packet) & IP_FRA...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ip_frag API. 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 ip_frag API. 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...
Not fragments: ip_frag(packet) == 0 not ip_frag(packet) First packet of fragments: ip_frag(packet) == IP_FRAG_ANY Not first packet of fragments: ip_frag(packet) & IP_FRAG_LATER All fragments: ip_frag(packet) & IP_FRAG_ANY
"Not fragments:\n ip_frag(packet) == 0\n not ip_frag(packet)\n \n First packet of fragments:\n ip_frag(packet) == IP_FRAG_ANY\n \n Not first packet of fragments:\n ip_frag(packet) & IP_FRAG_LATER\n \n All fragments:\n ip_frag(packet) & IP_FRAG_ANY"
149
false
hubo1016/namedstruct
ip_frag
10,407
LDU_FT/ucfopen/canvasapi/edit
LDU_FT
[ "<BEGIN>\n## `request`", "Make a request to the Canvas API and return the response.", " :param method: The HTTP method for the request.\n :type method: str\n :param endpoint: The endpoint to call.\n :type endpoint: str\n :param headers: Optional HTTP headers to be sent with th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit API. 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 edit API. 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...
Modify this calendar event. :calls: `PUT /api/v1/calendar_events/:id \ <https://canvas.instructure.com/doc/api/calendar_events.html#method.calendar_events_api.update>`_ :rtype: :class:`canvasapi.calendar_event.CalendarEvent`
"Modify this calendar event.\n\n :calls: `PUT /api/v1/calendar_events/:id \\\n <https://canvas.instructure.com/doc/api/calendar_events.html#method.calendar_events_api.update>`_\n\n :rtype: :class:`canvasapi.calendar_event.CalendarEvent`"
219
false
ucfopen/canvasapi
edit
10,408
LDU_FT/python-escpos/python-escpos/_get_codepage_char_map
LDU_FT
[ "<BEGIN>\n## `get_profile`", "Get the profile by name; if no name is given, return the\n default profile.\n<END>", "<BEGIN>\n## `get_profile_class`", "For the given profile name, load the data from the external\n database, then generate dynamically a class.\n<END>", "<BEGIN>\n## `get_font`", "Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_codepage_char_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_codepage_char_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....
Get codepage character map Process an encoding and return a map of UTF-characters to code points in this encoding. This is generated once only, and returned from a cache. :param encoding: The name of the encoding.
"Get codepage character map\n\n Process an encoding and return a map of UTF-characters to code points\n in this encoding.\n\n This is generated once only, and returned from a cache.\n\n :param encoding: The name of the encoding."
74
false
python-escpos/python-escpos
_get_codepage_char_map
10,409
LDU_FT/bjodah/pyneqsys/post_process
LDU_FT
[ "<BEGIN>\n## `rms`", "Returns root mean square value of f(x, params)\n<END>", "<BEGIN>\n## `solve_series`", "Solve system for a set of parameters in which one is varied", " Parameters\n ----------\n x0 : array_like\n Guess (subject to ``self.post_processors``)\n params...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_process API. 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 post_process API. 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...
Used internally for transformation of variables.
"Used internally for transformation of variables."
60
false
bjodah/pyneqsys
post_process
10,410
LDU_FT/bootphon/h5features/convert
LDU_FT
[ "<BEGIN>\n## `init_group`", "Initializes a HDF5 group compliant with the stored data.", " This method creates the datasets 'items', 'labels', 'features'\n and 'index' and leaves them empty.", " :param h5py.Group group: The group to initializes.\n :param float chunk_size: The size o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Convert an input file to h5features based on its extension. :raise IOError: if `infile` is not a valid file. :raise IOError: if `infile` extension is not supported.
"Convert an input file to h5features based on its extension.\n\n :raise IOError: if `infile` is not a valid file.\n :raise IOError: if `infile` extension is not supported."
119
false
bootphon/h5features
convert
10,411
LDU_FT/bwohlberg/sporco/eval_objfn
LDU_FT
[ "<BEGIN>\n## `pyfftw_byte_aligned`", "Construct a byte-aligned array for efficient use by :mod:`pyfftw`.\n This function is a wrapper for :func:`pyfftw.byte_align`", " Parameters\n ----------\n array : ndarray\n Input array\n dtype : dtype, optional (default None)\n Output array dtype\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval_objfn API. 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 eval_objfn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Compute components of objective function as well as total contribution to objective function.
"Compute components of objective function as well as total\n contribution to objective function."
1,237
true
bwohlberg/sporco
eval_objfn
10,412
LDU_FT/ioos/cc-plugin-ncei/check_recommended_global_attributes
LDU_FT
[ "<BEGIN>\n## `check_timeseries_id`", "Checks that if a variable exists for the time series id it has the appropriate attributes", " :param netCDF4.Dataset dataset: An open netCDF dataset\n<END>", "<BEGIN>\n## `check_recommended_attributes`", "Feature type specific check of global recommended attribut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_recommended_global_attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_recommended_global_attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Check the global recommended attributes for 2.0 templates. These go an extra step besides just checking that they exist. :param netCDF4.Dataset dataset: An open netCDF dataset :id = "" ; //.................................................. RECOMMENDED - Should be a human readable unique identi...
"Check the global recommended attributes for 2.0 templates. These go an extra step besides\n just checking that they exist.\n\n :param netCDF4.Dataset dataset: An open netCDF dataset\n\n :id = \"\" ; //.................................................. RECOMMENDED - Should be a human readable uniqu...
134
false
ioos/cc-plugin-ncei
check_recommended_global_attributes
10,413
LDU_FT/eventable/vobject/transformChildrenToNative
LDU_FT
[ "<BEGIN>\n## `toVName`", "Turn a Python name into an iCalendar style name,\n optionally uppercase and with characters stripped off.\n<END>", "<BEGIN>\n## `dquoteEscape`", "Return param, or \"param\" if ',' or ';' or ':' is in param.\n<END>", "<BEGIN>\n## `readComponents`", "Generate one Component at a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transformChildrenToNative 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 transformChildrenToNative API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Recursively replace children with their native representation. Sort to get dependency order right, like vtimezone before vevent.
"Recursively replace children with their native representation.\n\n Sort to get dependency order right, like vtimezone before vevent."
138
false
eventable/vobject
transformChildrenToNative
10,414
LDU_FT/bioidiap/gridtk/delete
LDU_FT
[ "<BEGIN>\n## `submit`", "Submits a job that will be executed on the local machine during a call to \"run\".\n All kwargs will simply be ignored.\n<END>", "<BEGIN>\n## `stop_jobs`", "Resets the status of the job to 'submitted' when they are labeled as 'executing'.\n<END>", "<BEGIN>\n## `stop_job`", "Res...
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 ...
Deletes the jobs with the given ids from the database.
"Deletes the jobs with the given ids from the database."
163
false
bioidiap/gridtk
delete
10,415
LDU_FT/matze/pkgconfig/variables
LDU_FT
[ "<BEGIN>\n## `_compare_versions`", "Compare two version strings and return -1, 0 or 1 depending on the equality\n of the subset of matching version numbers.", " The implementation is inspired by the top answer at\n http://stackoverflow.com/a/1714190/997768.\n<END>", "<BEGIN>\n## `_split_version_speci...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the variables API. 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 variables API. 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 dictionary of all the variables defined in the .pc pkg-config file of 'package'.
"Return a dictionary of all the variables defined in the .pc pkg-config file\n of 'package'."
23
false
matze/pkgconfig
variables
10,416
LDU_FT/smdabdoub/kraken-biom/process_samples
LDU_FT
[ "<BEGIN>\n## `tax_fmt`", "Create a string representation of a taxonomic hierarchy (QIIME for now).", " :type tax_lvl: dict\n :param tax_lvl: Keyed on the entries in ranks\n :type end: int\n :param end: The end rank index (0-based indexing). If end == 3\n then the returned string will ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_samples API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_samples API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Parse all kraken-report data files into sample counts dict and store global taxon id -> taxonomy data
"Parse all kraken-report data files into sample counts dict\n and store global taxon id -> taxonomy data"
21
false
smdabdoub/kraken-biom
process_samples
10,417
LDU_FT/cedrus-opensource/pyxid/available_ports
LDU_FT
[ "<BEGIN>\n## `available_ports`", "Scans COM1 through COM255 for available serial ports", " returns a list of available ports\n<END>", "<BEGIN>\n## `get_current_response`", "reads the current response data from the object and returns\n it in a dict.", " Currently 'time' is reported as ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the available_ports API. 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 available_ports API. 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...
Scans COM1 through COM255 for available serial ports returns a list of available ports
"Scans COM1 through COM255 for available serial ports\n\n returns a list of available ports"
43
false
cedrus-opensource/pyxid
available_ports
10,418
LDU_FT/mardix/flask-cloudy/get_file_extension_type
LDU_FT
[ "<BEGIN>\n## `get_file_extension_type`", "Return the group associated to the file\n :param filename:\n :return: str\n<END>", "<BEGIN>\n## `get_driver_class`", "Return the driver class\n :param provider: str - provider name\n :return:\n<END>", "<BEGIN>\n## `get_provider_name`", "Return the prov...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_extension_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_extension_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Return the group associated to the file :param filename: :return: str
"Return the group associated to the file\n :param filename:\n :return: str"
33
false
mardix/flask-cloudy
get_file_extension_type
10,419
LDU_FT/ForensicArtifacts/artifacts/_CheckWindowsPath
LDU_FT
[ "<BEGIN>\n## `_PrintDictAsTable`", "Prints a table of artifact definitions.", " Args:\n src_dict (dict[str, ArtifactDefinition]): artifact definitions by name.\n<END>", "<BEGIN>\n## `PrintStats`", "Build stats and print in MarkDown format.\n<END>", "<BEGIN>\n## `AsDict`", "Represents a source ty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _CheckWindowsPath API. 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 _CheckWindowsPath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Checks if a path is a valid Windows path. Args: filename (str): name of the artifacts definition file. artifact_definition (ArtifactDefinition): artifact definition. source (SourceType): source definition. path (str): path to validate. Returns: bool: True if the Windows path is v...
"Checks if a path is a valid Windows path.\n\n Args:\n filename (str): name of the artifacts definition file.\n artifact_definition (ArtifactDefinition): artifact definition.\n source (SourceType): source definition.\n path (str): path to validate.\n\n Returns:\n bool: True if the Windows...
160
false
ForensicArtifacts/artifacts
_CheckWindowsPath
10,420
LDU_FT/alecthomas/voluptuous/IsFile
LDU_FT
[ "<BEGIN>\n## `truth`", "Convenience decorator to convert truth functions into validators.", " >>> @truth\n ... def isdir(v):\n ... return os.path.isdir(v)\n >>> validate = Schema(isdir)\n >>> validate('/')\n '/'\n >>> with raises(MultipleInvalid, 'not a valid v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the IsFile API. 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 IsFile API. 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 ...
Verify the file exists. >>> os.path.basename(IsFile()(__file__)).startswith('validators.py') True >>> with raises(FileInvalid, 'not a file'): ... IsFile()("random_filename_goes_here.py") >>> with raises(FileInvalid, 'Not a file'): ... IsFile()(None)
"Verify the file exists.\n\n >>> os.path.basename(IsFile()(__file__)).startswith('validators.py')\n True\n >>> with raises(FileInvalid, 'not a file'):\n ... IsFile()(\"random_filename_goes_here.py\")\n >>> with raises(FileInvalid, 'Not a file'):\n ... IsFile()(None)"
98
false
alecthomas/voluptuous
IsFile
10,421
LDU_FT/andreikop/qutepart/replaceText
LDU_FT
[ "<BEGIN>\n## `_createAction`", "Create QAction with given parameters and add to the widget\n<END>", "<BEGIN>\n## `clear`", "Clear bookmarks on block range including start and end\n<END>", "<BEGIN>\n## `_onPrevBookmark`", "Previous Bookmark action triggered. Move cursor\n<END>", "<BEGIN>\n## `_onNextBook...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replaceText API. 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 replaceText API. 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...
Replace length symbols from ``pos`` with new text. If ``pos`` is an integer, it is interpreted as absolute position, if a tuple - as ``(line, column)``
"Replace length symbols from ``pos`` with new text.\n\n If ``pos`` is an integer, it is interpreted as absolute position, if a tuple - as ``(line, column)``"
303
false
andreikop/qutepart
replaceText
10,422
LDU_FT/wikimedia/ores/format_v1_score_response
LDU_FT
[ "<BEGIN>\n## `redis_from_url`", "Converts a redis URL used by celery into a `redis.Redis` object.\n<END>", "<BEGIN>\n## `process_model_scores`", "Generates a score map for a set of models based on a `root_cache`.\n This method performs no substantial IO, but may incur substantial CPU\n usage.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_v1_score_response 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 format_v1_score_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
The response format looks like this:: { "<rev_id>": { "<model_name>": <score> "<model_name>": <score> }, "<rev_id>": { "<model_name>": <score> "<model_name>": <score> } }
"The response format looks like this::\n\n {\n \"<rev_id>\": {\n \"<model_name>\": <score>\n \"<model_name>\": <score>\n },\n \"<rev_id>\": {\n \"<model_name>\": <score>\n \"<model_name>\": <score>\n }\n ...
52
false
wikimedia/ores
format_v1_score_response
10,423
LDU_FT/sernst/cauldron/workspace
LDU_FT
[ "<BEGIN>\n## `set_executing`", "Toggle whether or not the current thread is executing a step file. This\n will only apply when the current thread is a CauldronThread. This function\n has no effect when run on a Main thread.", " :param on:\n Whether or not the thread should be annotated as execut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the workspace API. 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 workspace API. 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...
Adds a list of the shared variables currently stored in the project workspace. :param show_values: When true the values for each variable will be shown in addition to their name. :param show_types: When true the data types for each shared variable will be shown in addition t...
"Adds a list of the shared variables currently stored in the project\n workspace.\n\n :param show_values:\n When true the values for each variable will be shown in addition to\n their name.\n :param show_types:\n When true the data types for each shared variable will be shown in\n a...
534
false
sernst/cauldron
workspace
10,424
LDU_FT/carpyncho/feets/_embedded_frames
LDU_FT
[ "<BEGIN>\n## `basic_animation`", "Plot a basic sine wave with oscillating amplitude\n<END>", "<BEGIN>\n## `lorenz_animation`", "Plot a 3D visualization of the dynamics of the Lorenz system\n<END>", "<BEGIN>\n## `_included_frames`", "frame_list should be a list of filenames\n<END>", "<BEGIN>\n## `_embedd...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _embedded_frames API. 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 _embedded_frames API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
frame_list should be a list of base64-encoded png files
"frame_list should be a list of base64-encoded png files"
111
false
carpyncho/feets
_embedded_frames
10,425
LDU_FT/jaraco/jaraco.logging/emit
LDU_FT
[ "<BEGIN>\n## `log_level`", "Return a log level for a string\r", "\t>>> log_level('DEBUG') == logging.DEBUG\r\n\tTrue\r\n\t>>> log_level('30') == logging.WARNING\r\n\tTrue\n<END>", "<BEGIN>\n## `add_arguments`", "Add arguments to an ArgumentParser or OptionParser for purposes of\r\n\tgrabbing a logging level...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emit API. 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 emit API. 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...
Emit a record. Output the record to the file, ensuring that the currently- opened file has the correct date.
"Emit a record.\r\n\r\n\t\tOutput the record to the file, ensuring that the currently-\r\n\t\topened file has the correct date."
16
false
jaraco/jaraco.logging
emit
10,426
LDU_FT/mattlong/hermes/do_kick
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to the chatroom's server, sets up handlers, invites members as needed.\n<END>", "<BEGIN>\n## `is_member`", "Check if a user is a member of the chatroom\n<END>", "<BEGIN>\n## `kick_user`", "Kicks a member from the chatroom. Kicked user will receive no more messages.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_kick API. 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 do_kick API. 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...
Kick a member from the chatroom. Must be Admin to kick users
"Kick a member from the chatroom. Must be Admin to kick users"
19
false
mattlong/hermes
do_kick
10,427
LDU_FT/cloudera/impyla/create_table_with_constraints
LDU_FT
[ "<BEGIN>\n## `drop_database`", "Parameters:\n - name\n - deleteData\n - cascade\n<END>", "<BEGIN>\n## `get_fields`", "Parameters:\n - db_name\n - table_name\n<END>", "<BEGIN>\n## `get_fields_with_environment_context`", "Parameters:\n - db_name\n - table_name\n - environment...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_table_with_constraints API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_table_with_constraints API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Parameters: - tbl - primaryKeys - foreignKeys
"Parameters:\n - tbl\n - primaryKeys\n - foreignKeys"
206
false
cloudera/impyla
create_table_with_constraints
10,428
LDU_FT/zapier/django-drip/give_model_field
LDU_FT
[ "<BEGIN>\n## `get_fields`", "Given a Model, return a list of lists of strings with important stuff:\n ...\n ['test_user__user__customuser', 'customuser', 'User', 'RelatedObject']\n ['test_user__unique_id', 'unique_id', 'TestUser', 'CharField']\n ['test_user__confirmed', 'confirmed', 'TestUser', 'Boole...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the give_model_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the give_model_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Given a field_name and Model: "test_user__unique_id", <AchievedGoal> Returns "test_user__unique_id", "id", <Model>, <ModelField>
"Given a field_name and Model:\n\n \"test_user__unique_id\", <AchievedGoal>\n\n Returns \"test_user__unique_id\", \"id\", <Model>, <ModelField>"
20
false
zapier/django-drip
give_model_field
10,429
LDU_FT/modin-project/modin/idxmax
LDU_FT
[ "<BEGIN>\n## `_read_sql_with_offset_pandas_on_ray`", "Use a Ray task to read a chunk of SQL source.", " Note: Ray functions are not detected by codecov (thus pragma: no cover)\n<END>", "<BEGIN>\n## `read_sql`", "Read SQL query or database table into a DataFrame.", " Args:\n sql: strin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the idxmax API. 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 idxmax API. 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 ...
Get the index of the first occurrence of the max value of the axis. Args: axis (int): Identify the max over the rows (1) or columns (0). skipna (bool): Whether or not to skip NA values. Returns: A Series with the index for each maximum value for the axis ...
"Get the index of the first occurrence of the max value of the axis.\r\n\r\n Args:\r\n axis (int): Identify the max over the rows (1) or columns (0).\r\n skipna (bool): Whether or not to skip NA values.\r\n\r\n Returns:\r\n A Series with the index for each maximum value fo...
811
false
modin-project/modin
idxmax
10,430
LDU_FT/IdentityPython/pyop/match_client_preferences_with_provider_capabilities
LDU_FT
[ "<BEGIN>\n## `parse_authentication_request`", "Parses and verifies an authentication request.", " :param request_body: urlencoded authentication request\n :param http_headers: http headers\n<END>", "<BEGIN>\n## `authorize`", "Creates an Authentication Response for the specified authentication ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_client_preferences_with_provider_capabilities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_client_preferences_with_provider_capabilities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <E...
Match as many as of the client preferences as possible. :param client_preferences: requested preferences from client registration request :return: the matched preferences selected by the provider
"Match as many as of the client preferences as possible.\n :param client_preferences: requested preferences from client registration request\n :return: the matched preferences selected by the provider"
79
false
IdentityPython/pyop
match_client_preferences_with_provider_capabilities
10,431
LDU_FT/vimalloc/flask-jwt-extended/revoke_token
LDU_FT
[ "<BEGIN>\n## `decode_token`", "Returns the decoded token (python dict) from an encoded JWT. This does all\n the checks to insure that the decoded token is valid before returning it.", " :param encoded_token: The encoded JWT to decode into a python dict.\n :param csrf_value: Expected CSRF double submit ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the revoke_token API. 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 revoke_token API. 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...
Revokes the given token. Raises a TokenNotFound error if the token does not exist in the database
"Revokes the given token. Raises a TokenNotFound error if the token does\n not exist in the database"
71
false
vimalloc/flask-jwt-extended
revoke_token
10,432
LDU_FT/amelchio/pysonos/loudness
LDU_FT
[ "<BEGIN>\n## `iter_actions`", "Yield the service's actions with their arguments.", " Yields:\n `Action`: the next action.", " Each action is an Action namedtuple, consisting of action_name\n (a string), in_args (a list of Argument namedtuples consisting of name\n and arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loudness API. 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 loudness API. 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...
bool: The Sonos speaker's loudness compensation. True if on, False otherwise. Loudness is a complicated topic. You can find a nice summary about this feature here: http://forums.sonos.com/showthread.php?p=4698#post4698
"bool: The Sonos speaker's loudness compensation.\n\n True if on, False otherwise.\n\n Loudness is a complicated topic. You can find a nice summary about this\n feature here: http://forums.sonos.com/showthread.php?p=4698#post4698"
60
false
amelchio/pysonos
loudness
10,433
LDU_FT/nhfruchter/pgh-bustime/fromapi
LDU_FT
[ "<BEGIN>\n## `get`", "Return a Bus object for a certain vehicle ID `vid` using API\n instance `api`.\n<END>", "<BEGIN>\n## `fromapi`", "Return a Bus object from an API response dict.\n<END>", "<BEGIN>\n## `update`", "Update this bus by creating a new one and transplanting dictionaries.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fromapi API. 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 fromapi API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return a Bus object from an API response dict.
"Return a Bus object from an API response dict."
66
false
nhfruchter/pgh-bustime
fromapi
10,434
LDU_FT/cstatz/maui/int_global_to_local_stop
LDU_FT
[ "<BEGIN>\n## `slice_local_to_global`", "Calculate start and stop index for mapping sliced index", " :param index_slice: sliced index?\n :param axis: current axis to calculate\n :return: slice object as calculated\n<END>", "<BEGIN>\n## `local_to_global`", "Calculate local index from glob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the int_global_to_local_stop 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 int_global_to_local_stop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Calculate local index from global index from stop_index :param index: global index as integer :param axis: current axis to process :return:
"Calculate local index from global index from stop_index\n\n :param index: global index as integer\n :param axis: current axis to process\n :return:"
54
false
cstatz/maui
int_global_to_local_stop
10,435
LDU_FT/bfontaine/crosswords/compile_pattern
LDU_FT
[ "<BEGIN>\n## `sanitize_word`", "sanitize a word by removing its accents, special characters, etc\n<END>", "<BEGIN>\n## `init_storage`", "Initialize the local dictionnaries cache in ~/.crosswords/dicts.\n<END>", "<BEGIN>\n## `local_list`", "Return a list of the locally available dictionnaries. Each element...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_pattern API. 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 compile_pattern API. 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...
take a word pattern and return a Python regexp. A word pattern is a word with unknown letters replaced by a '?', e.g. 'di?ti??nar?'.
"take a word pattern and return a Python regexp. A word pattern is a word\n with unknown letters replaced by a '?', e.g. 'di?ti??nar?'."
20
false
bfontaine/crosswords
compile_pattern
10,436
LDU_FT/robotools/fontParts/clear
LDU_FT
[ "<BEGIN>\n## `_set_unicode`", "Assign the primary unicode to the glyph.\n This will be an integer or None.", " Subclasses may override this method.\n<END>", "<BEGIN>\n## `_get_leftMargin`", "This must return an int or float.\n If the glyph has no outlines, this must return `None`.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API. 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 clear API. 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...
Clear the glyph. >>> glyph.clear() This clears: - contours - components - anchors - guidelines - image It's possible to turn off the clearing of portions of the glyph with the listed arguments. >>> glyph.clear(guidelines=False)
"Clear the glyph.\n\n >>> glyph.clear()\n\n This clears:\n\n - contours\n - components\n - anchors\n - guidelines\n - image\n\n It's possible to turn off the clearing of portions of\n the glyph with the listed arguments.\n\n >>> glyph.clear(g...
646
false
robotools/fontParts
clear
10,437
LDU_FT/rjdkmr/do_x3dna/read_param_file
LDU_FT
[ "<BEGIN>\n## `checkParametersInputFile`", "Check the do_x3dna output file and return list of parameters present in the file.\n<END>", "<BEGIN>\n## `setParametersFromFile`", "Read a specific parameter from the do_x3dna output file.\n It automatically load the input parameter from a file to dna object or HDF...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_param_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_param_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Read parameters from do_x3dna file. It is the main function, which is used to read and extract the parameters values from the do_x3dna output files. Parameters ---------- FileName : str Parameter file produced from do_x3dna. parameters : list List of column indices that has to ...
"Read parameters from do_x3dna file.\n\n It is the main function, which is used to read and extract the parameters\n values from the do_x3dna output files.\n\n Parameters\n ----------\n FileName : str\n Parameter file produced from do_x3dna.\n parameters : list\n List of column indices t...
391
false
rjdkmr/do_x3dna
read_param_file
10,438
LDU_FT/eventbrite/eventbrite-sdk-python/get_event_questions
LDU_FT
[ "<BEGIN>\n## `objectify`", "Converts the returned value from a models.Payload to\n a models.EventbriteObject. Used by the access methods\n of the client.Eventbrite object\n<END>", "<BEGIN>\n## `get_category`", "GET /categories/:id/\n Gets a :format:`category` by ID as ``category``.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_event_questions 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_event_questions 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 /events/:id/questions/ Eventbrite allows event organizers to add custom questions that attendees fill out upon registration. This endpoint can be helpful for determining what custom information is collected and available per event. This endpoint will return :format:`question`.
"GET /events/:id/questions/\n Eventbrite allows event organizers to add custom questions that attendees fill\n out upon registration. This endpoint can be helpful for determining what\n custom information is collected and available per event.\n This endpoint will return :format:`question`."
194
false
eventbrite/eventbrite-sdk-python
get_event_questions
10,439
LDU_FT/rh-marketingops/dwm/run
LDU_FT
[ "<BEGIN>\n## `get_field_list`", "Retrieve list of all fields currently configured\n<END>", "<BEGIN>\n## `data_lookup_method`", "Method to lookup the replacement value given a single input value from\n the same field.", " :param dict fields_list: Fields configurations\n :param MongoClien...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
By passing the input record to be cleaned, and returns the input record after cleaning with history(dictionary). :param dict record: dictionary of values to validate :param dict hist: existing input of history values :return:
"By passing the input record to be cleaned, and returns the input record\n after cleaning with history(dictionary).\n\n :param dict record: dictionary of values to validate\n :param dict hist: existing input of history values\n :return:"
68
false
rh-marketingops/dwm
run
10,440
LDU_FT/tbielawa/bitmath/listdir
LDU_FT
[ "<BEGIN>\n## `BitmathType`", "An 'argument type' for integrations with the argparse module.", "For more information, see\nhttps://docs.python.org/2/library/argparse.html#type Of particular\ninterest to us is this bit:", " ``type=`` can take any callable that takes a single string\n argument and returns th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listdir API. 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 listdir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
This is a generator which recurses the directory tree `search_base`, yielding 2-tuples of: * The absolute/relative path to a discovered file * A bitmath instance representing the "apparent size" of the file. - `search_base` - The directory to begin walking down. - `followlinks` - Whether or not to follow symb...
"This is a generator which recurses the directory tree\n`search_base`, yielding 2-tuples of:\n\n* The absolute/relative path to a discovered file\n* A bitmath instance representing the \"apparent size\" of the file.\n\n - `search_base` - The directory to begin walking down.\n - `followlinks` - Whether or not to f...
93
false
tbielawa/bitmath
listdir
10,441
LDU_FT/holtjma/msbwt/clearAuxiliaryData
LDU_FT
[ "<BEGIN>\n## `extendSeed`", "This function is intended to be an interactive technique for constructing transcripts, probably to be released\n in a future version of msbwt\n @param bwtFN - the filename of the BWT to load\n @param seedKmer - the seed sequence to use for construction\n @p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clearAuxiliaryData 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 clearAuxiliaryData 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...
This function removes auxiliary files associated with a given filename
"This function removes auxiliary files associated with a given filename"
84
false
holtjma/msbwt
clearAuxiliaryData
10,442
LDU_FT/pysathq/pysat/get_core
LDU_FT
[ "<BEGIN>\n## `open`", "Open a file pointer. Note that a file is *always* opened in text\n mode. The method inherits its input parameters from the constructor\n of :class:`FileObject`.\n<END>", "<BEGIN>\n## `get_compression_type`", "Determine compression type for a given file using its ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_core API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_core API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get an unsatisfiable core if the formula was previously unsatisfied.
"Get an unsatisfiable core if the formula was previously\n unsatisfied."
578
false
pysathq/pysat
get_core
10,443
LDU_FT/mongolab/dex/_generate_index_report
LDU_FT
[ "<BEGIN>\n## `generate_query_report`", "Generates a comprehensive report on the raw query\n<END>", "<BEGIN>\n## `_ensure_index_cache`", "Adds a collections index entries to the cache if not present\n<END>", "<BEGIN>\n## `_generate_query_analysis`", "Translates a raw query object into a Dex query analysis\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_index_report 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_index_report API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Analyzes an existing index against the results of query analysis
"Analyzes an existing index against the results of query analysis"
30
false
mongolab/dex
_generate_index_report
10,444
LDU_FT/ensime/ensime-vim/reorder_classpath
LDU_FT
[ "<BEGIN>\n## `buffer_typechecks_and_display`", "Adds typecheck events to the buffer, and displays them right away.", " This is a workaround for this issue:\n https://github.com/ensime/ensime-server/issues/1616\n<END>", "<BEGIN>\n## `handle_typecheck_complete`", "Handles ``NewScalaNotesEvent```...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reorder_classpath API. 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 reorder_classpath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Reorder classpath and put monkeys-jar in the first place.
"Reorder classpath and put monkeys-jar in the first place."
150
false
ensime/ensime-vim
reorder_classpath
10,445
LDU_FT/alimanfoo/vcfnp/_variants_arities
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 _variants_arities API. 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 _variants_arities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Utility function to determine arities (i.e., number of values to expect) for variants fields.
"Utility function to determine arities (i.e., number of values to\n expect) for variants fields."
67
false
alimanfoo/vcfnp
_variants_arities
10,446
LDU_FT/SiLab-Bonn/basil/get_set_voltage
LDU_FT
[ "<BEGIN>\n## `write`", "Write to dummy memory", " Parameters\n ----------\n addr : int\n The register address.\n data : list, tuple\n Data (byte array) to be written.", " Returns\n -------\n nothing\n<END>", "<BEGIN>\n## `read`", "Para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_set_voltage API. 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_set_voltage API. 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...
channel: 1=OP1, 2=OP2, AUX is not supported
"channel: 1=OP1, 2=OP2, AUX is not supported"
147
false
SiLab-Bonn/basil
get_set_voltage
10,447
LDU_FT/vallis/libstempo/real_rotated_Gammas
LDU_FT
[ "<BEGIN>\n## `calczeta`", "Calculate the angular separation between position (phi1, theta1) and\n (phi2, theta2)\n<END>", "<BEGIN>\n## `dlmk`", "returns value of d^l_mk as defined in allen, ottewill 97.\n Called by Dlmk\n<END>", "<BEGIN>\n## `Dlmk`", "returns value of D^l_mk as defined in allen, ott...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the real_rotated_Gammas 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 real_rotated_Gammas 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...
This function returns the real-valued form of the Overlap Reduction Functions, see Eqs 47 in Mingarelli et al, 2013.
"This function returns the real-valued form of the Overlap Reduction Functions,\n see Eqs 47 in Mingarelli et al, 2013."
160
false
vallis/libstempo
real_rotated_Gammas
10,448
LDU_FT/ethereum/web3.py/inject
LDU_FT
[ "<BEGIN>\n## `solidityKeccak`", "Executes keccak256 exactly as Solidity does.\n Takes list of abi_types as inputs -- `[uint24, int8[], bool]`\n and list of corresponding values -- `[20, [-1, 5, 0], True]`\n<END>", "<BEGIN>\n## `gas_price_strategy_middleware`", "Includes a gas price using the ga...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inject API. 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 inject API. 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 ...
Inject a named element to an arbitrary layer in the onion. The current implementation only supports insertion at the innermost layer, or at the outermost layer. Note that inserting to the outermost is equivalent to calling :meth:`add` .
"Inject a named element to an arbitrary layer in the onion.\n\n The current implementation only supports insertion at the innermost layer,\n or at the outermost layer. Note that inserting to the outermost is equivalent\n to calling :meth:`add` ."
268
false
ethereum/web3.py
inject
10,449
LDU_FT/CalebBell/fluids/Kim_Mudawar
LDU_FT
[ "<BEGIN>\n## `ccor`", "/* CHEMISTRY/DISSOCIATION CORRECTION FOR MSIS MODELS\n * ALT - altitude\n * R - target ratio\n * H1 - transition scale length\n * ZH - altitude of 1/2 R\n */\n<END>", "<BEGIN>\n## `ccor2`", "/* CHEMISTRY/DISSOCIATION CORRECTION FOR MSIS MODE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Kim_Mudawar API. 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 Kim_Mudawar API. 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...
r'''Calculates two-phase pressure drop with the Kim and Mudawar (2012) correlation as in [1]_, also presented in [2]_. .. math:: \Delta P = \Delta P_{l} \phi_{l}^2 .. math:: \phi_l^2 = 1 + \frac{C}{X} + \frac{1}{X^2} .. math:: X^2 = \frac{\Delta P_l}{\Delta P_g} For turbu...
"r'''Calculates two-phase pressure drop with the Kim and Mudawar (2012)\n correlation as in [1]_, also presented in [2]_.\n\n .. math::\n \\Delta P = \\Delta P_{l} \\phi_{l}^2\n\n .. math::\n \\phi_l^2 = 1 + \\frac{C}{X} + \\frac{1}{X^2}\n\n .. math::\n X^2 = \\frac{\\Delta P_l}{\\Delta...
3,613
true
CalebBell/fluids
Kim_Mudawar
10,450
LDU_FT/sailthru/sailthru-python-client/purchase
LDU_FT
[ "<BEGIN>\n## `flatten_nested_hash`", "Flatten nested dictionary for GET / POST / DELETE API request\n<END>", "<BEGIN>\n## `sailthru_http_request`", "Perform an HTTP GET / POST / DELETE request\n<END>", "<BEGIN>\n## `extract_params`", "Extracts the values of a set of parameters, recursing into nested dicti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the purchase API. 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 purchase API. 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...
Record that a user has made a purchase, or has added items to their purchase total. http://docs.sailthru.com/api/purchase @param email: Email string @param items: list of item dictionary with keys: id, title, price, qty, and url @param message_id: message_id string @param extid: ...
"Record that a user has made a purchase, or has added items to their purchase total.\n http://docs.sailthru.com/api/purchase\n @param email: Email string\n @param items: list of item dictionary with keys: id, title, price, qty, and url\n @param message_id: message_id string\n @param e...
64
false
sailthru/sailthru-python-client
purchase
10,451
LDU_FT/kbr/fritzconnection/get_hosts_info
LDU_FT
[ "<BEGIN>\n## `set_fraction`", "Set the meter indicator. Value should be between 0 and 1.\n<END>", "<BEGIN>\n## `update_status`", "Update status informations in tkinter window.\n<END>", "<BEGIN>\n## `format_num`", "Returns a human readable string of a byte-value.\n If 'num' is bits, set unit='bits'.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hosts_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hosts_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns a list of dicts with information about the known hosts. The dict-keys are: 'ip', 'name', 'mac', 'status'
"Returns a list of dicts with information about the known hosts.\n The dict-keys are: 'ip', 'name', 'mac', 'status'"
38
false
kbr/fritzconnection
get_hosts_info
10,452
LDU_FT/lra/mackup/_parse_path
LDU_FT
[ "<BEGIN>\n## `getFilepaths`", "Get home and mackup filepaths for given file", " Args:\n filename (str)", " Returns:\n home_filepath, mackup_filepath (str, str)\n<END>", "<BEGIN>\n## `backup`", "Backup the application config files.", " Algorithm:\n if...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_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 extra...
Parse the storage path in the config. Returns: str
"Parse the storage path in the config.\n\n Returns:\n str"
116
false
lra/mackup
_parse_path
10,453
LDU_FT/eonpatapon/contrail-api-cli/set_ref
LDU_FT
[ "<BEGIN>\n## `expand_paths`", "Return an unique list of resources or collections from a list of paths.\n Supports fq_name and wilcards resolution.", " >>> expand_paths(['virtual-network',\n 'floating-ip/2a0a54b4-a420-485e-8372-42f70a627ec9'])\n [Collection('virtual-network'),\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_ref API. 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 set_ref API. 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...
Set reference to resource Can be used to set references on a resource that is not already created. :param ref: reference to add :type ref: Resource :rtype: Resource
"Set reference to resource\n\n Can be used to set references on a resource\n that is not already created.\n\n :param ref: reference to add\n :type ref: Resource\n\n :rtype: Resource"
138
false
eonpatapon/contrail-api-cli
set_ref
10,454
LDU_FT/gabrielelanaro/chemview/add_isosurface_grid_data
LDU_FT
[ "<BEGIN>\n## `pairs`", "Return array of pairs of adjacent elements in a.", " >>> pairs([1, 2, 3, 4])\n array([[1, 2],\n [2, 3],\n [3, 4]])\n<END>", "<BEGIN>\n## `points`", "Display the system as points.", " :param float size: the size of the points.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_isosurface_grid_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_isosurface_grid_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Add an isosurface to current scence using pre-computed data on a grid
"Add an isosurface to current scence using pre-computed data on a grid"
45
false
gabrielelanaro/chemview
add_isosurface_grid_data
10,455
LDU_FT/prompt-toolkit/pymux/read_message_bytes_from_pipe
LDU_FT
[ "<BEGIN>\n## `read_message_from_pipe`", "(coroutine)\n Read message from this pipe. Return text.\n<END>", "<BEGIN>\n## `read_message_bytes_from_pipe`", "(coroutine)\n Read message from this pipe. Return bytes.\n<END>", "<BEGIN>\n## `wait_for_event`", "Wraps a win32 event into a `Future` and wait for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_message_bytes_from_pipe 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 read_message_bytes_from_pipe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
(coroutine) Read message from this pipe. Return bytes.
"(coroutine)\n Read message from this pipe. Return bytes."
147
false
prompt-toolkit/pymux
read_message_bytes_from_pipe
10,456
LDU_FT/gplepage/gvar/analyze
LDU_FT
[ "<BEGIN>\n## `deriv`", "Compute *n*-th derivative of ``self``.", " :param n: Number of derivatives.\n :type n: positive integer\n :returns: *n*-th derivative of ``self``.\n<END>", "<BEGIN>\n## `integ`", "Compute *n*-th indefinite integral of ``self``.", " If *x0* is specified, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Analyze count data from :meth:`PDFHistogram.count`. Turns an array of counts (see :meth:`PDFHistogram.count`) into a histogram of probabilities, and estimates the mean, standard deviation, and other statistical characteristics of the corresponding probability distribution. Arg...
"Analyze count data from :meth:`PDFHistogram.count`.\n\n Turns an array of counts (see :meth:`PDFHistogram.count`) into a\n histogram of probabilities, and estimates the mean, standard\n deviation, and other statistical characteristics of the corresponding\n probability distribution.\n\n ...
206
false
gplepage/gvar
analyze
10,457
LDU_FT/rgs1/zk_shell/value
LDU_FT
[ "<BEGIN>\n## `extract_acl`", "parse an individual ACL (i.e.: world:anyone:cdrwa)\n<END>", "<BEGIN>\n## `check_path_exists_foreach`", "check that paths exist (unless we are in a transaction)\n<END>", "<BEGIN>\n## `check_path_absent`", "check path doesn't exist (unless we are in a txn or it's sequential)", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
gets the value corresponding to keys from obj. if keys is a template string, it extrapolates the keys in it
"gets the value corresponding to keys from obj. if keys is a template\n string, it extrapolates the keys in it"
379
false
rgs1/zk_shell
value
10,458
LDU_FT/joowani/binarytree/_generate_random_leaf_count
LDU_FT
[ "<BEGIN>\n## `_is_balanced`", "Return the height if the binary tree is balanced, -1 otherwise.", " :param root: Root node of the binary tree.\n :type root: binarytree.Node | None\n :return: Height if the binary tree is balanced, -1 otherwise.\n :rtype: int\n<END>", "<BEGIN>\n## `_is_bst`", "Chec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_random_leaf_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_random_leaf_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Return a random leaf count for building binary trees. :param height: Height of the binary tree. :type height: int :return: Random leaf count. :rtype: int
"Return a random leaf count for building binary trees.\n\n :param height: Height of the binary tree.\n :type height: int\n :return: Random leaf count.\n :rtype: int"
132
false
joowani/binarytree
_generate_random_leaf_count
10,459
LDU_FT/LLNL/certipy/save
LDU_FT
[ "<BEGIN>\n## `open_tls_file`", "Context to ensure correct file permissions for certs and directories", " Ensures:\n - A containing directory with appropriate permissions\n - Correct file permissions based on what the file is (0o600 for keys\n and 0o644 for certs)\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. 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 save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Write the store dict to a file specified by store_file_path
"Write the store dict to a file specified by store_file_path"
50
false
LLNL/certipy
save
10,460
LDU_FT/quikmile/trellio/attach_http_service
LDU_FT
[ "<BEGIN>\n## `publish`", "publish the return value of this function as a message from this endpoint\n<END>", "<BEGIN>\n## `xsubscribe`", "Used to listen for publications from a specific endpoint of a service. If multiple instances\n subscribe to an endpoint, only one of them receives the event. And the pub...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attach_http_service API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attach_http_service API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Attaches a service for hosting :param http_service: A HTTPService instance
"Attaches a service for hosting\n :param http_service: A HTTPService instance"
47
false
quikmile/trellio
attach_http_service
10,461
LDU_FT/chaimleib/intervaltree/from_tuples
LDU_FT
[ "<BEGIN>\n## `refresh_balance`", "Recalculate self.balance and self.depth based on child node values.\n<END>", "<BEGIN>\n## `compute_depth`", "Recursively computes true depth of the subtree. Should only\n be needed for debugging. Unless something is wrong, the\n depth field should reflect the co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_tuples API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_tuples API. 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 a new IntervalTree from an iterable of 2- or 3-tuples, where the tuple lists begin, end, and optionally data.
"Create a new IntervalTree from an iterable of 2- or 3-tuples,\n where the tuple lists begin, end, and optionally data."
139
false
chaimleib/intervaltree
from_tuples
10,462
LDU_FT/danishabdullah/algen/compiled_named_imports
LDU_FT
[ "<BEGIN>\n## `convert_case`", "Converts name from CamelCase to snake_case\n<END>", "<BEGIN>\n## `table_name`", "Pluralises the class_name using utterly simple algo and returns as table_name\n<END>", "<BEGIN>\n## `types`", "All the unique types found in user supplied model\n<END>", "<BEGIN>\n## `basic_ty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compiled_named_imports 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 compiled_named_imports API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns compiled named imports required for the model
"Returns compiled named imports required for the model"
26
false
danishabdullah/algen
compiled_named_imports
10,463
LDU_FT/tkarabela/pysubs2/rename_style
LDU_FT
[ "<BEGIN>\n## `make_time`", "Convert time to milliseconds.", " See :func:`pysubs2.time.times_to_ms()`. When both frames and fps are specified,\n :func:`pysubs2.time.frames_to_ms()` is called instead.", " Raises:\n ValueError: Invalid fps, or one of frames/fps is missing.", " Example:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename_style API. 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 rename_style API. 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...
Rename a style, including references to it. Arguments: old_name (str): Style to be renamed. new_name (str): New name for the style (must be unused). Raises: KeyError: No style named old_name. ValueError: new_name is not a legal name (cannot use commas) ...
"Rename a style, including references to it.\n\n Arguments:\n old_name (str): Style to be renamed.\n new_name (str): New name for the style (must be unused).\n\n Raises:\n KeyError: No style named old_name.\n ValueError: new_name is not a legal name (cannot use ...
94
false
tkarabela/pysubs2
rename_style
10,464
LDU_FT/lambdamusic/Ontospy/entityLabel
LDU_FT
[ "<BEGIN>\n## `main_cli`", "Ontospy allows to extract and visualise ontology information included in RDF data. Use one of the commands listed below to find out more, or visit http://lambdamusic.github.io/ontospy\n<END>", "<BEGIN>\n## `scan`", "SCAN: get ontology data from RDF source and print out a report.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the entityLabel API. 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 entityLabel API. 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 rdfs.label value of an entity (class or property), if existing. Defaults to DEFAULT_LANGUAGE. Returns the RDF.Literal resource Args: language: 'en', 'it' etc.. getall: returns a list of all labels rather than a string
"Returns the rdfs.label value of an entity (class or property), if existing.\n Defaults to DEFAULT_LANGUAGE. Returns the RDF.Literal resource\n\n Args:\n language: 'en', 'it' etc..\n getall: returns a list of all labels rather than a string"
360
false
lambdamusic/Ontospy
entityLabel
10,465
LDU_FT/s4int/robotframework-KafkaLibrary/connect_to_kafka
LDU_FT
[ "<BEGIN>\n## `connect_producer`", "A Kafka client that publishes records to the Kafka cluster.", " Keyword Arguments:\n - ``bootstrap_servers``: 'host[:port]' string (or list of 'host[:port]'\n strings) that the producer should contact to bootstrap initial\n cluster metadata. Thi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_to_kafka API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_to_kafka API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Connect to kafka - ``bootstrap_servers``: default 127.0.0.1:9092 - ``client_id``: default: Robot
"Connect to kafka\n - ``bootstrap_servers``: default 127.0.0.1:9092\n - ``client_id``: default: Robot"
42
false
s4int/robotframework-KafkaLibrary
connect_to_kafka
10,466
LDU_FT/JoshAshby/pyRethinkORM/limit
LDU_FT
[ "<BEGIN>\n## `joinOn`", "Performs an eqJoin on with the given model. The resulting join will be\n accessible through the models name.\n<END>", "<BEGIN>\n## `joinOnAs`", "Like `joinOn` but allows setting the joined results name to access it\n from.", " Performs an eqJoin on with the give...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the limit API. 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 limit API. 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...
Allows for limiting number of results returned for query. Useful for pagination.
"Allows for limiting number of results returned for query. Useful\n for pagination."
30
false
JoshAshby/pyRethinkORM
limit
10,467
LDU_FT/skggm/skggm/model_average
LDU_FT
[ "<BEGIN>\n## `log_likelihood`", "Computes the log-likelihood between the covariance and precision\n estimate.", " Parameters\n ----------\n covariance : 2D ndarray (n_features, n_features)\n Maximum Likelihood Estimator of covariance", " precision : 2D ndarray (n_features, n_features)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the model_average API. 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 model_average API. 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...
Run ModelAverage in default mode (QuicGraphicalLassoCV) to obtain proportion matrix. NOTE: This returns precision_ proportions, not cov, prec estimates, so we return the raw proportions for "cov" and the threshold support estimate for prec.
"Run ModelAverage in default mode (QuicGraphicalLassoCV) to obtain proportion\n matrix.\n\n NOTE: This returns precision_ proportions, not cov, prec estimates, so we\n return the raw proportions for \"cov\" and the threshold support\n estimate for prec."
239
false
skggm/skggm
model_average
10,468
LDU_FT/bmuller/kademlia/welcome_if_new
LDU_FT
[ "<BEGIN>\n## `add_node`", "Add a C{Node} to the C{KBucket}. Return True if successful,\n False if the bucket is full.", " If the bucket is full, keep track of node in a replacement list,\n per section 4.1 of the paper.\n<END>", "<BEGIN>\n## `lonely_buckets`", "Get all of the buckets th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the welcome_if_new API. 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 welcome_if_new API. 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...
Given a new node, send it all the keys/values it should be storing, then add it to the routing table. @param node: A new node that just joined (or that we just found out about). Process: For each key in storage, get k closest nodes. If newnode is closer than the furthe...
"Given a new node, send it all the keys/values it should be storing,\n then add it to the routing table.\n\n @param node: A new node that just joined (or that we just found out\n about).\n\n Process:\n For each key in storage, get k closest nodes. If newnode is closer\n than t...
62
false
bmuller/kademlia
welcome_if_new
10,469
LDU_FT/Spirent/py-stcrestclient/session_info
LDU_FT
[ "<BEGIN>\n## `url`", "Construct a URL from the given components.\n<END>", "<BEGIN>\n## `download_file`", "Download a file.", " If a timeout defined, it is not a time limit on the entire download;\n rather, an exception is raised if the server has not issued a response\n for timeout seco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the session_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the session_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get information on session. If session_id is None, the default, then return information about this session. If a session ID is given, then get information about that session. Arguments: session_id -- Id of session to get info for, if not this session. Return: ...
"Get information on session.\n\n If session_id is None, the default, then return information about this\n session. If a session ID is given, then get information about that\n session.\n\n Arguments:\n session_id -- Id of session to get info for, if not this session.\n\n Return...
102
false
Spirent/py-stcrestclient
session_info
10,470
LDU_FT/jhorman/pledge/check_conditions
LDU_FT
[ "<BEGIN>\n## `pre`", "Add a precondition check to the annotated method. The condition\n is passed the arguments from the annotated method. It does not\n need to accept all of the methods parameters. The condition\n is inspected to figure out which parameters to pass.\n<END>", "<BEGIN>\n## `post`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_conditions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_conditions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
This is what runs all of the conditions attached to a method, along with the conditions on the superclasses.
"This is what runs all of the conditions attached to a method,\n along with the conditions on the superclasses."
17
false
jhorman/pledge
check_conditions
10,471
LDU_FT/tehmaze/natural/ordinal
LDU_FT
[ "<BEGIN>\n## `ordinal`", "Converts a number to its ordinal representation.", " :param value: number", " >>> print(ordinal(1))\n 1st\n >>> print(ordinal(11))\n 11th\n >>> print(ordinal(101))\n 101st\n >>> print(ordinal(104))\n 104th\n >>> print(ordinal(113))\n 113th\n >>> pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ordinal API. 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 ordinal API. 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...
Converts a number to its ordinal representation. :param value: number >>> print(ordinal(1)) 1st >>> print(ordinal(11)) 11th >>> print(ordinal(101)) 101st >>> print(ordinal(104)) 104th >>> print(ordinal(113)) 113th >>> print(ordinal(123)) 123rd
"Converts a number to its ordinal representation.\n\n :param value: number\n\n >>> print(ordinal(1))\n 1st\n >>> print(ordinal(11))\n 11th\n >>> print(ordinal(101))\n 101st\n >>> print(ordinal(104))\n 104th\n >>> print(ordinal(113))\n 113th\n >>> print(ordinal(123))\n 123rd"
153
false
tehmaze/natural
ordinal
10,472