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/Nic30/ipCorePackager/_asQuartusTcl
LDU_FT
[ "<BEGIN>\n## `tcl_add_fileset_file`", ":param filename: relative filename with .vhdl or .v", " :return: add_fileset_file command string\n<END>", "<BEGIN>\n## `_asQuartusTcl`", "Add interface to Quartus tcl by specified name map", " :param buff: line buffer for output\n :param version: Qua...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _asQuartusTcl API. 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 _asQuartusTcl API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Add interface to Quartus tcl by specified name map :param buff: line buffer for output :param version: Quartus version :param intfName: name of top interface :param component: component object from ipcore generator :param packager: instance of IpPackager which is packagin curren...
"Add interface to Quartus tcl by specified name map\n\n :param buff: line buffer for output\n :param version: Quartus version\n :param intfName: name of top interface\n :param component: component object from ipcore generator\n :param packager: instance of IpPackager which is packagin...
33
false
Nic30/ipCorePackager
_asQuartusTcl
7,473
LDU_FT/pyrapt/rapt/select
LDU_FT
[ "<BEGIN>\n## `get_attribute_references`", "Return a list of attribute references in the condition expression.", " attribute_reference ::= relation_name \".\" attribute_name | attribute_name", " :param instring: a condition expression.\n :return: a list of attribute references.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. 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 select API. 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 ...
Translate a select node into a latex qtree node. :param node: a treebrd node :return: a qtree subtree rooted at the node
"Translate a select node into a latex qtree node.\n :param node: a treebrd node\n :return: a qtree subtree rooted at the node"
86
false
pyrapt/rapt
select
7,474
LDU_FT/fmenabe/python-dokuwiki/info
LDU_FT
[ "<BEGIN>\n## `date`", "DokuWiki returns dates of `xmlrpclib`/`xmlrpc.client` ``DateTime``\n type and the format changes between DokuWiki versions ... This function\n convert *date* to a `datetime` object.\n<END>", "<BEGIN>\n## `utc2local`", "DokuWiki returns date with a +0000 timezone. This function con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Returns informations of *page*. Informations of the last version is returned if *version* is not set.
"Returns informations of *page*. Informations of the last version\n is returned if *version* is not set."
32
false
fmenabe/python-dokuwiki
info
7,475
LDU_FT/Microsoft/azure-devops-python-api/get_release
LDU_FT
[ "<BEGIN>\n## `create_attachment`", "CreateAttachment.\n Creates an attachment in the wiki.\n :param object upload_stream: Stream to upload\n :param str project: Project ID or project name\n :param str wiki_identifier: Wiki Id or name.\n :param str name: Wiki attachment name.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_release API. 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 get_release API. 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...
GetRelease. Get a Release :param str project: Project ID or project name :param int release_id: Id of the release. :param str approval_filters: A filter which would allow fetching approval steps selectively based on whether it is automated, or manual. This would also decide whether we sh...
"GetRelease.\n Get a Release\n :param str project: Project ID or project name\n :param int release_id: Id of the release.\n :param str approval_filters: A filter which would allow fetching approval steps selectively based on whether it is automated, or manual. This would also decide whether ...
1,304
true
Microsoft/azure-devops-python-api
get_release
7,476
LDU_FT/HEPData/hepdata-validator/validate
LDU_FT
[ "<BEGIN>\n## `validate`", "Validates a submission file", " :param file_path: path to file to be loaded.\n :param data: pre loaded YAML object (optional).\n :return: Bool to indicate the validity of the file.\n<END>", "<BEGIN>\n## `load_custom_schema`", "Loads a custom schema, or will us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Validates a data file :param file_path: path to file to be loaded. :param data: pre loaded YAML object (optional). :return: Bool to indicate the validity of the file.
"Validates a data file\n\n :param file_path: path to file to be loaded.\n :param data: pre loaded YAML object (optional).\n :return: Bool to indicate the validity of the file."
12
false
HEPData/hepdata-validator
validate
7,477
LDU_FT/mapbox/mapbox-sdk-py/encode_waypoints
LDU_FT
[ "<BEGIN>\n## `_geom_points`", "GeoJSON geometry to a sequence of point tuples\n<END>", "<BEGIN>\n## `read_points`", "Iterable of features to a sequence of point tuples\n Where \"features\" can be either GeoJSON mappings\n or objects implementing the geo_interface\n<END>", "<BEGIN>\n## `encode_waypoint...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_waypoints API. 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 encode_waypoints API. 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 an iterable of features return a string encoded in waypoint-style used by certain mapbox APIs ("lon,lat" pairs separated by ";")
"Given an iterable of features\n return a string encoded in waypoint-style used by certain mapbox APIs\n (\"lon,lat\" pairs separated by \";\")"
212
false
mapbox/mapbox-sdk-py
encode_waypoints
7,478
LDU_FT/danilobellini/dose/hr
LDU_FT
[ "<BEGIN>\n## `about_box`", "A simple about dialog box using the distribution data files.\n<END>", "<BEGIN>\n## `call_after`", "Parametrized decorator for calling a function after a time ``lag`` given\n in milliseconds. This cancels simultaneous calls.\n<END>", "<BEGIN>\n## `on_timer`", "Keep watching the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Colored horizontal rule printer/logger factory. The resulting function prints an entire terminal row with the given symbol repeated. It's a terminal version of the HTML ``<hr/>``.
"Colored horizontal rule printer/logger factory.\n\n The resulting function prints an entire terminal row with the given\n symbol repeated. It's a terminal version of the HTML ``<hr/>``."
79
false
danilobellini/dose
hr
7,479
LDU_FT/Data-Mechanics/geoql/features_node_edge_graph
LDU_FT
[ "<BEGIN>\n## `match`", "Determine whether a value satisfies a query.\n<END>", "<BEGIN>\n## `features_properties_null_remove`", "Remove any properties of features in the collection that have \n entries mapping to a null (i.e., None) value\n<END>", "<BEGIN>\n## `features_tags_parse_str_to_dict`", "Parse ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the features_node_edge_graph 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 features_node_edge_graph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Transform the features into a more graph-like structure by appropriately splitting LineString features into two-point "edges" that connect Point "nodes".
"Transform the features into a more graph-like structure by\n appropriately splitting LineString features into two-point\n \"edges\" that connect Point \"nodes\"."
14
false
Data-Mechanics/geoql
features_node_edge_graph
7,480
LDU_FT/jimzhan/pyx/execute
LDU_FT
[ "<BEGIN>\n## `get_version`", "Derives a PEP386-compliant version number from VERSION.\n<END>", "<BEGIN>\n## `attr`", "Decorator that add attributes into func.", " Added attributes can be access outside via function's `func_dict` property.\n<END>", "<BEGIN>\n## `timeit`", "Decorator that logs the cost...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. 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 execute API. 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...
Run the system command with optional options. Args: * command: system command. * cwd: current working directory. * verbose: direct options for :func:`subprocess.Popen`. Returns: Opened process, standard output & error.
"Run the system command with optional options.\n\n Args:\n * command: system command.\n * cwd: current working directory.\n * verbose: direct options for :func:`subprocess.Popen`.\n\n Returns:\n Opened process, standard output & error."
41
false
jimzhan/pyx
execute
7,481
LDU_FT/signetlabdei/sem/command
LDU_FT
[ "<BEGIN>\n## `configure_and_build`", "Configure and build the ns-3 code.", " Args:\n show_progress (bool): whether or not to display a progress bar\n during compilation.\n optimized (bool): whether to use an optimized build. If False, use\n a standard ....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. 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 command API. 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...
Print the command that needs to be used to reproduce a result.
"Print the command that needs to be used to reproduce a result."
148
false
signetlabdei/sem
command
7,482
LDU_FT/ambitioninc/rabbitmq-admin/get_exchange_for_vhost
LDU_FT
[ "<BEGIN>\n## `_api_get`", "A convenience wrapper for _get. Adds headers, auth and base url by\n default\n<END>", "<BEGIN>\n## `_get`", "A wrapper for getting things", " :returns: The response of your get\n :rtype: dict\n<END>", "<BEGIN>\n## `_api_put`", "A convenience wrapper for _p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_exchange_for_vhost 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_exchange_for_vhost API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
An individual exchange :param exchange: The exchange name :type exchange: str :param vhost: The vhost name :type vhost: str
"An individual exchange\n\n :param exchange: The exchange name\n :type exchange: str\n\n :param vhost: The vhost name\n :type vhost: str"
100
false
ambitioninc/rabbitmq-admin
get_exchange_for_vhost
7,483
LDU_FT/twitterdev/twitter-python-ads-sdk/users
LDU_FT
[ "<BEGIN>\n## `content_type`", "Returns the content-type value determined by file extension.\n<END>", "<BEGIN>\n## `__init_chunked_upload`", "Initialization for a multi-chunk upload.\n<END>", "<BEGIN>\n## `__upload_chunk`", "Uploads a single chunk of a multi-chunk upload.\n<END>", "<BEGIN>\n## `save`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the users API. 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 users API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
This is a private API and requires whitelisting from Twitter. This endpoint will allow partners to add, update and remove users from a given tailored_audience_id. The endpoint will also accept multiple user identifier types per user as well.
"This is a private API and requires whitelisting from Twitter.\n This endpoint will allow partners to add, update and remove users from a given\n tailored_audience_id.\n The endpoint will also accept multiple user identifier types per user as well."
74
false
twitterdev/twitter-python-ads-sdk
users
7,484
LDU_FT/Cadasta/django-tutelary/dominates
LDU_FT
[ "<BEGIN>\n## `permission_required`", "Permission checking decorator -- works like the\n ``permission_required`` decorator in the default Django\n authentication system, except that it takes a sequence of actions\n to check, an object must be supplied, and the user must have\n permission to perform all...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dominates API. 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 dominates API. 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...
Test for path domination. An individual path element *a* dominates another path element *b*, written as *a* >= *b* if either *a* == *b* or *a* is a wild card. A path *p* = *p1*, *p2*, ..., *pn* dominates another path *q* = *q1*, *q2*, ..., *qm* if *n* == *m* and, for all *i*, *pi* >= *qi*.
"Test for path domination. An individual path element *a*\n dominates another path element *b*, written as *a* >= *b* if\n either *a* == *b* or *a* is a wild card. A path *p* = *p1*, *p2*,\n ..., *pn* dominates another path *q* = *q1*, *q2*, ..., *qm* if\n *n* == *m* and, for all *i*, *pi* >= *qi*."
50
false
Cadasta/django-tutelary
dominates
7,485
LDU_FT/blockstack/pybitcoin/deserialize_transaction
LDU_FT
[ "<BEGIN>\n## `random_passphrase_from_wordlist`", "An extremely entropy efficient passphrase generator.", " This function:\n -Pulls entropy from the safer alternative to /dev/urandom: /dev/random\n -Doesn't rely on random.seed (words are selected right from the entropy)\n -Only requir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize_transaction 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 deserialize_transaction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Given a serialized transaction, return its inputs, outputs, locktime, and version Each input will have: * transaction_hash: string * output_index: int * [optional] sequence: int * [optional] script_sig: string Each output will have: * value: int ...
"Given a serialized transaction, return its inputs, outputs,\n locktime, and version\n\n Each input will have:\n * transaction_hash: string\n * output_index: int\n * [optional] sequence: int\n * [optional] script_sig: string\n\n Each output will have:\n * value: i...
79
false
blockstack/pybitcoin
deserialize_transaction
7,486
LDU_FT/CZ-NIC/python-rt/edit_ticket
LDU_FT
[ "<BEGIN>\n## `__request`", "General request for :term:`API`.", " :keyword selector: End part of URL which completes self.url parameter\n set during class initialization.\n E.g.: ``ticket/123456/show``\n :keyword post_data: Dictionary with POST me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_ticket API. 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 edit_ticket API. 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...
Edit ticket values. :param ticket_id: ID of ticket to edit :keyword kwargs: Other arguments possible to set: Requestors, Subject, Cc, AdminCc, Owner, Status, Priority, InitialPriority, FinalPriority, TimeEstimated, Starts, Due,...
"Edit ticket values.\n\n :param ticket_id: ID of ticket to edit\n :keyword kwargs: Other arguments possible to set:\n\n Requestors, Subject, Cc, AdminCc, Owner, Status,\n Priority, InitialPriority, FinalPriority,\n TimeEstimated, Star...
143
false
CZ-NIC/python-rt
edit_ticket
7,487
LDU_FT/matllubos/django-is-core/is_restricted
LDU_FT
[ "<BEGIN>\n## `short_description`", "Sets 'short_description' attribute (this attribute is in exports to generate header name).\n<END>", "<BEGIN>\n## `redirect_to_login`", "Redirects the user to the login page, passing the given 'next' page\n<END>", "<BEGIN>\n## `_check_permission`", "If customer is not au...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_restricted API. 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 is_restricted API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns True or False according to number of objects in queryset. If queryset contains too much objects the widget will be restricted and won't be used select box with choices.
"Returns True or False according to number of objects in queryset.\n If queryset contains too much objects the widget will be restricted and won't be used select box with choices."
66
false
matllubos/django-is-core
is_restricted
7,488
LDU_FT/dragnet-org/dragnet/read_gold_standard_blocks_file
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit :class`Extractor` features and model to a training dataset.", " Args:\n blocks (List[Block])\n labels (``np.ndarray``)\n weights (``np.ndarray``)", " Returns:\n :class`Extractor`\n<END>", "<BEGIN>\n## `get_html_labels_weight...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_gold_standard_blocks_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_gold_standard_blocks_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Read the gold standard blocks file corresponding to identifier ``fileroot`` in the gold standard blocks directory below the root ``data_dir``. Args: data_dir (str) fileroot (str) split_blocks (bool): If True, split the file's content into blocks. Returns: str or List[str]
"Read the gold standard blocks file corresponding to identifier ``fileroot``\n in the gold standard blocks directory below the root ``data_dir``.\n\n Args:\n data_dir (str)\n fileroot (str)\n split_blocks (bool): If True, split the file's content into blocks.\n\n Returns:\n str or L...
134
false
dragnet-org/dragnet
read_gold_standard_blocks_file
7,489
LDU_FT/onnx/onnx/_import
LDU_FT
[ "<BEGIN>\n## `run_node`", "Simple run one operator and return the results.\n Args:\n outputs_info: a list of tuples, which contains the element type and\n shape of each output. First element of the tuple is the dtype, and\n the second element is the shape. More use case can...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _import API. 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 _import API. 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...
Imports a stdlib path and returns a handle to it eg. self._import("typing", "Optional") -> "Optional"
"Imports a stdlib path and returns a handle to it\n eg. self._import(\"typing\", \"Optional\") -> \"Optional\""
72
false
onnx/onnx
_import
7,490
LDU_FT/Capitains/Nautilus/generate_sleepy_cat_graph
LDU_FT
[ "<BEGIN>\n## `r_cts`", "Actual main route of CTS APIs. Transfer typical requests through the ?request=REQUESTNAME route", " :return: Response\n<END>", "<BEGIN>\n## `cts_error`", "Create a CTS Error reply", " :param error_name: Name of the error\n :param message: Message of the Error\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_sleepy_cat_graph 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 generate_sleepy_cat_graph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Generate a graph and change the global graph to this one :param filepath: A Uri for the graph :param prefixes: A dictionary of prefixes and namespaces to bind to the graph :param identifier: An identifier that will identify the Graph root
"Generate a graph and change the global graph to this one\n\n :param filepath: A Uri for the graph\n :param prefixes: A dictionary of prefixes and namespaces to bind to the graph\n :param identifier: An identifier that will identify the Graph root"
110
false
Capitains/Nautilus
generate_sleepy_cat_graph
7,491
LDU_FT/chriso/gauged/insert_keys
LDU_FT
[ "<BEGIN>\n## `insert_keys`", "Insert keys into a table which assigns an ID\n<END>", "<BEGIN>\n## `replace_blocks`", "Replace multiple blocks. blocks must be a list of tuples where\n each tuple consists of (namespace, offset, key, data)\n<END>", "<BEGIN>\n## `remove_namespace`", "Remove all data ass...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_keys API. 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 insert_keys API. 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...
Insert keys into a table which assigns an ID
"Insert keys into a table which assigns an ID"
62
false
chriso/gauged
insert_keys
7,492
LDU_FT/edx/bok-choy/set_rules
LDU_FT
[ "<BEGIN>\n## `wait_for_js`", "Method decorator that waits for JavaScript dependencies before executing `function`.\n If the function is not a method, the decorator has no effect.", " Args:\n function (callable): Method to decorate.", " Returns:\n Decorated method\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_rules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_rules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Sets the rules to be run or ignored for the audit. Args: rules: a dictionary of the format `{"ignore": [], "apply": []}`. See https://github.com/GoogleChrome/accessibility-developer-tools/tree/master/src/audits Passing `{"apply": []}` or `{}` means to check for all available rule...
"Sets the rules to be run or ignored for the audit.\n\n Args:\n\n rules: a dictionary of the format `{\"ignore\": [], \"apply\": []}`.\n\n See https://github.com/GoogleChrome/accessibility-developer-tools/tree/master/src/audits\n\n Passing `{\"apply\": []}` or `{}` means to check for all...
254
false
edx/bok-choy
set_rules
7,493
LDU_FT/btotharye/mattermostwrapper/login
LDU_FT
[ "<BEGIN>\n## `get`", "Used to make get calls to mattermost api\n :param request:\n :return:\n<END>", "<BEGIN>\n## `post`", "Used to make post calls to mattermost api\n :param request:\n :param data:\n :return:\n<END>", "<BEGIN>\n## `login`", "Login to the corresponding (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. 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 login API. 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...
Login to the corresponding (self.url) mattermost instance.
"Login to the corresponding (self.url) mattermost instance."
10
false
btotharye/mattermostwrapper
login
7,494
LDU_FT/getsentry/raven-python/get_http_info_with_retriever
LDU_FT
[ "<BEGIN>\n## `async_send`", "Spawn an async request to a remote webserver.\n<END>", "<BEGIN>\n## `send`", "Sends a request to a remote webserver using HTTP POST.\n<END>", "<BEGIN>\n## `extract_auth_vars`", "raven-js will pass both Authorization and X-Sentry-Auth depending on the browser\n and server co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_http_info_with_retriever 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 get_http_info_with_retriever API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Exact method for getting http_info but with form data work around.
"Exact method for getting http_info but with form data work around."
126
false
getsentry/raven-python
get_http_info_with_retriever
7,495
LDU_FT/miLibris/flask-rest-jsonapi/sorting
LDU_FT
[ "<BEGIN>\n## `_get_key_values`", "Return a dict containing key / values items for a given key, used for items like filters, page, etc.", " :param str name: name of the querystring parameter\n :return dict: a dict of key / values items\n<END>", "<BEGIN>\n## `querystring`", "Return original quer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sorting API. 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 sorting API. 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 fields to sort by including sort name for SQLAlchemy and row sort parameter for other ORMs :return list: a list of sorting information Example of return value:: [ {'field': 'created_at', 'order': 'desc'}, ]
"Return fields to sort by including sort name for SQLAlchemy and row\n sort parameter for other ORMs\n\n :return list: a list of sorting information\n\n Example of return value::\n\n [\n {'field': 'created_at', 'order': 'desc'},\n ]"
149
false
miLibris/flask-rest-jsonapi
sorting
7,496
LDU_FT/lawsie/guizero/convert_color
LDU_FT
[ "<BEGIN>\n## `value_text`", "Sets or returns the option selected in a ButtonGroup by its text value.\n<END>", "<BEGIN>\n## `resize`", "Resizes the widget.", " :param int width:\n The width of the widget.", " :param int height:\n The height of the widget.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_color API. 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 convert_color API. 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...
Converts a color from "color", (255, 255, 255) or "#ffffff" into a color tk should understand.
"Converts a color from \"color\", (255, 255, 255) or \"#ffffff\" into a color tk \n should understand."
173
false
lawsie/guizero
convert_color
7,497
LDU_FT/marcomusy/vtkplotter/Lines
LDU_FT
[ "<BEGIN>\n## `add_particle`", "Adds a new particle with specified properties (in SI units)\n<END>", "<BEGIN>\n## `simulate`", "Runs the particle simulation. Simulates one time step, dt, of the particle motion.\n Calculates the force between each pair of particles and updates particles' motion accor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Lines API. 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 Lines API. 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...
Build the line segments between two lists of points `startPoints` and `endPoints`. `startPoints` can be also passed in the form ``[[point1, point2], ...]``. :param float scale: apply a rescaling factor to the length |lines| .. hint:: |fitspheres2.py|_
"Build the line segments between two lists of points `startPoints` and `endPoints`.\n `startPoints` can be also passed in the form ``[[point1, point2], ...]``.\n\n :param float scale: apply a rescaling factor to the length \n\n |lines|\n\n .. hint:: |fitspheres2.py|_"
801
false
marcomusy/vtkplotter
Lines
7,498
LDU_FT/sqlalchemy-redshift/sqlalchemy-redshift/get_pk_constraint
LDU_FT
[ "<BEGIN>\n## `gen_columns_from_children`", "Generates columns that are being used in child elements of the delete query\n this will be used to determine tables for the using clause.\n :param root: the delete query\n :return: a generator of columns\n<END>", "<BEGIN>\n## `visit_delete_stmt`", "Adds red...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pk_constraint API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pk_constraint API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return information about the primary key constraint on `table_name`. Overrides interface :meth:`~sqlalchemy.engine.interfaces.Dialect.get_pk_constraint`.
"Return information about the primary key constraint on `table_name`.\n\n Overrides interface\n :meth:`~sqlalchemy.engine.interfaces.Dialect.get_pk_constraint`."
48
false
sqlalchemy-redshift/sqlalchemy-redshift
get_pk_constraint
7,499
LDU_FT/alorence/pysvg-py3/getTopRight
LDU_FT
[ "<BEGIN>\n## `getAllElementsOfHirarchy`", "returns ALL elements of the complete hirarchy as a flat list\n<END>", "<BEGIN>\n## `getElementByID`", "returns an element with the specific id and the position of that element within the svg elements array\n<END>", "<BEGIN>\n## `getElementsByType`", "retrieves al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getTopRight API. 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 getTopRight API. 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...
Retrieves a tuple with the x,y coordinates of the upper right point of the circle. Requires the radius and the coordinates to be numbers
"Retrieves a tuple with the x,y coordinates of the upper right point of the circle. \n Requires the radius and the coordinates to be numbers"
75
false
alorence/pysvg-py3
getTopRight
7,500
LDU_FT/neo4j-drivers/neobolt/sync
LDU_FT
[ "<BEGIN>\n## `watch`", "Quick wrapper for using the Watcher.", " :param logger_name: name of logger to watch\n :param level: minimum log level to show (default INFO)\n :param out: where to send output (default stdout)\n :return: Watcher instance\n<END>", "<BEGIN>\n## `get_user_agent`", "Obtain t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API. 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 sync API. 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...
Send and fetch all outstanding messages. :return: 2-tuple of number of detail messages and number of summary messages fetched
"Send and fetch all outstanding messages.\n\n :return: 2-tuple of number of detail messages and number of summary messages fetched"
86
false
neo4j-drivers/neobolt
sync
7,501
LDU_FT/dusktreader/flask-praetorian/_check_user
LDU_FT
[ "<BEGIN>\n## `_verify_and_add_jwt`", "This helper method just checks and adds jwt data to the app context. Will\n not add jwt data if it is already present. Only use in this module\n<END>", "<BEGIN>\n## `auth_required`", "This decorator is used to ensure that a user is authenticated before\n being able ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_user API. 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 _check_user API. 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...
Checks to make sure that a user is valid. First, checks that the user is not None. If this check fails, a MissingUserError is raised. Next, checks if the user has a validation method. If the method does not exist, the check passes. If the method exists, it is called. If the result of the...
"Checks to make sure that a user is valid. First, checks that the user\n is not None. If this check fails, a MissingUserError is raised. Next,\n checks if the user has a validation method. If the method does not\n exist, the check passes. If the method exists, it is called. If the\n result o...
73
false
dusktreader/flask-praetorian
_check_user
7,502
LDU_FT/BD2KGenomics/toil-scripts/vqsr_pipeline
LDU_FT
[ "<BEGIN>\n## `kmer_dag`", "Optionally launches a Spark cluster and then runs ADAM to count k-mers on an\n input file.", " :param job: Toil job\n :param input_file: URL/path to input file to count k-mers on\n :param output_path: URL/path to save k-mer counts at\n :param kmer_length: The length of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vqsr_pipeline API. 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 vqsr_pipeline API. 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...
Runs GATK Variant Quality Score Recalibration. 0: Start 0 --> 1 --> 3 --> 4 --> 5 1: Recalibrate SNPs | | 2: Recalibrate INDELS +-> 2 -+ 3: Apply SNP Recalibration 4: Apply INDEL Recalibration 5: Write VCF to output directory :p...
"Runs GATK Variant Quality Score Recalibration.\n\n 0: Start 0 --> 1 --> 3 --> 4 --> 5\n 1: Recalibrate SNPs | |\n 2: Recalibrate INDELS +-> 2 -+\n 3: Apply SNP Recalibration\n 4: Apply INDEL Recalibration\n 5: Write VCF to output directory...
278
false
BD2KGenomics/toil-scripts
vqsr_pipeline
7,503
LDU_FT/EUDAT-B2SAFE/B2HANDLE/modify_handle_value
LDU_FT
[ "<BEGIN>\n## `add_missing_optional_args_with_value_none`", "Adds key-value pairs to the passed dictionary, so that\n afterwards, the dictionary can be used without needing\n to check for KeyErrors.", " If the keys passed as a second argument are not present,\n they are added with None as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_handle_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_handle_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. T...
Modify entries (key-value-pairs) in a handle record. If the key does not exist yet, it is created. *Note:* We assume that a key exists only once. In case a key exists several time, an exception will be raised. *Note:* To modify 10320/LOC, please use :meth:`~b2handle.handleclient.EUDATH...
"Modify entries (key-value-pairs) in a handle record. If the key\n does not exist yet, it is created.\n\n *Note:* We assume that a key exists only once. In case a key exists\n several time, an exception will be raised.\n\n *Note:* To modify 10320/LOC, please use :meth:`~b2handle.handleclient...
168
false
EUDAT-B2SAFE/B2HANDLE
modify_handle_value
7,504
LDU_FT/TurboGears/backlash/paste_traceback
LDU_FT
[ "<BEGIN>\n## `debug_application`", "Run the application and conserve the traceback frames.\n<END>", "<BEGIN>\n## `paste_traceback`", "Paste the traceback and return a JSON response.\n<END>", "<BEGIN>\n## `escape`", "Replace special characters \"&\", \"<\" and \">\" to HTML-safe sequences. If\n the opt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paste_traceback API. 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 paste_traceback API. 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...
Paste the traceback and return a JSON response.
"Paste the traceback and return a JSON response."
21
false
TurboGears/backlash
paste_traceback
7,505
LDU_FT/jbeluch/xbmcswift2/cached
LDU_FT
[ "<BEGIN>\n## `display_listitems`", "Displays a list of items along with the index to enable a user\n to select an item.\n<END>", "<BEGIN>\n## `display_video`", "Prints a message for a playing video and displays the parent\n listitem.\n<END>", "<BEGIN>\n## `get_user_choice`", "Returns the selected it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cached API. 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 cached API. 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 ...
A decorator that will cache the output of the wrapped function. The key used for the cache is the function name as well as the `*args` and `**kwargs` passed to the function. :param TTL: time to live in minutes .. note:: For route caching, you should use :meth:`xbmcswi...
"A decorator that will cache the output of the wrapped function. The\n key used for the cache is the function name as well as the `*args` and\n `**kwargs` passed to the function.\n\n :param TTL: time to live in minutes\n\n .. note:: For route caching, you should use\n :meth:...
164
false
jbeluch/xbmcswift2
cached
7,506
LDU_FT/calmjs/calmjs/pkg_manager_view
LDU_FT
[ "<BEGIN>\n## `make_choice_validator`", "Returns a callable that accepts the choices provided.", " Choices should be provided as a list of 2-tuples, where the first\n element is a string that should match user input (the key); the\n second being the value associated with the key.", " The callable b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pkg_manager_view API. 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 pkg_manager_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns the manifest JSON for the Python package name. Default npm implementation calls for package.json. If this class is initiated using standard procedures, this will mimic the functionality of ``npm view`` but mostly for showing the dependencies. This is done as a default action. ...
"Returns the manifest JSON for the Python package name. Default\n npm implementation calls for package.json.\n\n If this class is initiated using standard procedures, this will\n mimic the functionality of ``npm view`` but mostly for showing\n the dependencies. This is done as a default ac...
361
false
calmjs/calmjs
pkg_manager_view
7,507
LDU_FT/ClimateImpactLab/DataFS/batch_get_archive
LDU_FT
[ "<BEGIN>\n## `_generate_manager`", "Generate a manager from a manager_config dictionary", " Parameters\n ----------", " manager_config : dict\n Configuration with keys class, args, and kwargs\n used to generate a new datafs.manager object", " Returns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_get_archive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_get_archive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Batch version of :py:meth:`~DataAPI.get_archive` Parameters ---------- archive_names: list Iterable of archive names to retrieve default_versions: str, object, or dict Default versions to assign to each returned archive. May be a dict with archive...
"Batch version of :py:meth:`~DataAPI.get_archive`\n\n Parameters\n ----------\n\n archive_names: list\n\n Iterable of archive names to retrieve\n\n default_versions: str, object, or dict\n\n Default versions to assign to each returned archive. May be a dict\n ...
318
false
ClimateImpactLab/DataFS
batch_get_archive
7,508
LDU_FT/projecthamster/hamster/__get_activity_by_name
LDU_FT
[ "<BEGIN>\n## `set_start_time`", "set the start time. when start time is set, drop down list\n will start from start time and duration will be displayed in\n brackets\n<END>", "<BEGIN>\n## `parse_fact`", "tries to extract fact fields from the string\n the optional arguments in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_activity_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_activity_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
get most recent, preferably not deleted activity by it's name
"get most recent, preferably not deleted activity by it's name"
249
false
projecthamster/hamster
__get_activity_by_name
7,509
LDU_FT/python-gitlab/python-gitlab/reset_spent_time
LDU_FT
[ "<BEGIN>\n## `on_http_error`", "Manage GitlabHttpError exceptions.", " This decorator function can be used to catch GitlabHttpError exceptions\n raise specialized exceptions instead.", " Args:\n error(Exception): The exception type to raise -- must inherit from\n GitlabError\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_spent_time API. 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 reset_spent_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Resets the time spent working on the object. Args: **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabTimeTrackingError: If the time tracking update cannot be done
"Resets the time spent working on the object.\n\n Args:\n **kwargs: Extra options to send to the server (e.g. sudo)\n\n Raises:\n GitlabAuthenticationError: If authentication is not correct\n GitlabTimeTrackingError: If the time tracking update cannot be done"
508
false
python-gitlab/python-gitlab
reset_spent_time
7,510
LDU_FT/honzamach/pynspect/_create_factor_rule
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse given data.", " data:\n A string containing the filter definition\n filename:\n Name of the file being parsed (for meaningful\n error messages)\n debuglevel:\n Debug level to yacc\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_factor_rule 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 _create_factor_rule 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...
Simple helper method for creating factor node objects based on node name.
"Simple helper method for creating factor node objects based on node name."
143
false
honzamach/pynspect
_create_factor_rule
7,511
LDU_FT/yunojuno/elasticsearch-django/update_search_document
LDU_FT
[ "<BEGIN>\n## `execute_search`", "Create a new SearchQuery instance and execute a search against ES.", " Args:\n search: elasticsearch.search.Search object, that internally contains\n the connection and query; this is the query that is executed. All\n we are doing is logging the i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_search_document API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_search_document API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Partial update of a document in named index. Partial updates are invoked via a call to save the document with 'update_fields'. These fields are passed to the as_search_document method so that it can build a partial document. NB we don't just call as_search_document and then stri...
"Partial update of a document in named index.\n\n Partial updates are invoked via a call to save the document\n with 'update_fields'. These fields are passed to the\n as_search_document method so that it can build a partial\n document. NB we don't just call as_search_document and then\n ...
124
false
yunojuno/elasticsearch-django
update_search_document
7,512
LDU_FT/rigetti/pyquil/fields
LDU_FT
[ "<BEGIN>\n## `to_latex`", "Translates a given pyquil Program to a TikZ picture in a Latex document.", " :param Program circuit: The circuit to be drawn, represented as a pyquil program.\n :param dict settings: An optional dictionary with settings for drawing the circuit. See `get_default_settings`\n i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fields API. 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 fields API. 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 tuple describing the fields of this dataclass. Accepts a dataclass or an instance of one. Tuple elements are of type Field.
"Return a tuple describing the fields of this dataclass.\n\n Accepts a dataclass or an instance of one. Tuple elements are of\n type Field."
1,152
true
rigetti/pyquil
fields
7,513
LDU_FT/micolous/python-slackrealtime/sendCommand
LDU_FT
[ "<BEGIN>\n## `sendCommand`", "Sends a raw command to the Slack server, generating a message ID automatically.\n<END>", "<BEGIN>\n## `sendChatMessage`", "Sends a chat message to a given id, user, group or channel.", "\t\tIf the API token is not a bot token (xoxb), ``send_with_api`` may be set\n\t\tto True. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sendCommand API. 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 sendCommand API. 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...
Sends a raw command to the Slack server, generating a message ID automatically.
"Sends a raw command to the Slack server, generating a message ID automatically."
27
false
micolous/python-slackrealtime
sendCommand
7,514
LDU_FT/pavelsof/ipalint/_gen_csv_data
LDU_FT
[ "<BEGIN>\n## `_save_stdin`", "Creates a temporary dir (self.temp_dir) and saves the given input\n\t\tstream to a file within that dir. Returns the path to the file. The dir\n\t\tis removed in the __del__ method.\n<END>", "<BEGIN>\n## `_open`", "Opens the file specified by the given path. Raises ValueError if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gen_csv_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gen_csv_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 ext...
Yields (column data, row number) tuples from the given csv file handler, using the given Dialect named tuple instance. Depends on self.ipa_col being correctly set. Helper for the gen_ipa_data method.
"Yields (column data, row number) tuples from the given csv file\n\t\thandler, using the given Dialect named tuple instance. Depends on\n\t\tself.ipa_col being correctly set.\n\n\t\tHelper for the gen_ipa_data method."
53
false
pavelsof/ipalint
_gen_csv_data
7,515
LDU_FT/aio-libs/aiohttp-security/check_permission
LDU_FT
[ "<BEGIN>\n## `permits`", "Check user permissions.\n Return True if the identity is allowed the permission in the\n current context, else return False.\n<END>", "<BEGIN>\n## `remember`", "Remember identity into response.", " The action is performed by identity_policy.remember()", " Usua...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_permission API. 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_permission API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Checker that passes only to authoraised users with given permission. If user is not authorized - raises HTTPUnauthorized, if user is authorized and does not have permission - raises HTTPForbidden.
"Checker that passes only to authoraised users with given permission.\n\n If user is not authorized - raises HTTPUnauthorized,\n if user is authorized and does not have permission -\n raises HTTPForbidden."
21
false
aio-libs/aiohttp-security
check_permission
7,516
LDU_FT/5monkeys/djedi-cms/_encode_content
LDU_FT
[ "<BEGIN>\n## `_encode_content`", "Join node uri and content as string and convert to bytes to ensure no pickling in memcached.\n<END>", "<BEGIN>\n## `_decode_content`", "Split node string to uri and content and convert back to unicode.\n<END>", "<BEGIN>\n## `render_node`", "Render node as html for templat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_content API. 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 _encode_content API. 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...
Join node uri and content as string and convert to bytes to ensure no pickling in memcached.
"Join node uri and content as string and convert to bytes to ensure no pickling in memcached."
37
false
5monkeys/djedi-cms
_encode_content
7,517
LDU_FT/pyparsing/pyparsing/readline
LDU_FT
[ "<BEGIN>\n## `parse`", "Accepts an input string containing an LA equation, e.g.,\r\n \"M3_mymatrix = M3_anothermatrix^-1\" returns C code function\r\n calls that implement the expression.\n<END>", "<BEGIN>\n## `fprocess`", "Scans an input file for LA equations between double square brackets,\r\n e.g. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readline API. 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 readline API. 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...
Reads (and optionally parses) a single line.
"Reads (and optionally parses) a single line."
132
false
pyparsing/pyparsing
readline
7,518
LDU_FT/osilkin98/PyBRY/generate_method_definition
LDU_FT
[ "<BEGIN>\n## `make_request`", "Makes a cURL POST request to the given URL, specifying the data to be passed in as\n {\"method\": method, \"params\": parameters}", " :param str url: URL to connect to.\n :param str method: The API method to call.\n :param dict params: Dictionary objec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_method_definition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_method_definition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Generates the body for the given function :param dict func: dict of a JSON-Formatted function as defined by the API docs :return: A String containing the definition for the function as it should be written in code :rtype: str
"Generates the body for the given function\n\n :param dict func: dict of a JSON-Formatted function as defined by the API docs\n :return: A String containing the definition for the function as it should be written in code\n :rtype: str"
18
false
osilkin98/PyBRY
generate_method_definition
7,519
LDU_FT/prthkms/alex/words
LDU_FT
[ "<BEGIN>\n## `calculate_inverse_document_frequencies`", "Q.calculate_inverse_document_frequencies() -- measures how much\n\t\tinformation the term provides, i.e. whether the term is common or\n\t\trare across all documents.", "\t\tThis is obtained by dividing the total number of documents \n\t\tby the number of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the words API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the words API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
lines(query) -- print the number of words in a given file
"lines(query) -- print the number of words in a given file"
41
false
prthkms/alex
words
7,520
LDU_FT/redbridge/molnctrl/Initialize
LDU_FT
[ "<BEGIN>\n## `_create_api_method`", "Create dynamic class methods based on the Cloudmonkey precached_verbs\n<END>", "<BEGIN>\n## `Initialize`", "Initializes the Cloudstack API\n Accepts arguments: \n api_host (localhost)\n api_port (443)\n api_ssl (True)\n ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Initialize API. 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 Initialize API. 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...
Initializes the Cloudstack API Accepts arguments: api_host (localhost) api_port (443) api_ssl (True) api_key api_secret
"Initializes the Cloudstack API\n Accepts arguments: \n api_host (localhost)\n api_port (443)\n api_ssl (True)\n api_key\n api_secret"
12
false
redbridge/molnctrl
Initialize
7,521
LDU_FT/pescadores/pescador/build_model
LDU_FT
[ "<BEGIN>\n## `setup_data`", "Load and shape data for training with Keras + Pescador.", " Returns\n -------\n input_shape : tuple, len=3\n Shape of each sample; adapts to channel configuration of Keras.", " X_train, y_train : np.ndarrays\n Images and labels for training.", " X_te...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_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. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_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. The extra...
Create a compiled Keras model. Parameters ---------- input_shape : tuple, len=3 Shape of each image sample. Returns ------- model : keras.Model Constructed model.
"Create a compiled Keras model.\n\n Parameters\n ----------\n input_shape : tuple, len=3\n Shape of each image sample.\n\n Returns\n -------\n model : keras.Model\n Constructed model."
103
false
pescadores/pescador
build_model
7,522
LDU_FT/BDNYC/astrodbkit/add_source
LDU_FT
[ "<BEGIN>\n## `dict_tovot`", "Converts dictionary table **tabdata** to a VOTable with name **tabname**", " Parameters\n ----------\n tabdata: list\n SQL query dictionary list from running query_dict.execute()\n tabname: str\n The name of the VOTable to be created\n phot: bool\n Para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Add a source to the catalog manually and find data in existing catalogs Parameters ---------- ra: astropy.units.quantity.Quantity The RA of the source dec: astropy.units.quantity.Quantity The Dec of the source flag: str A flag for the ...
"Add a source to the catalog manually and find data in existing catalogs\n \n Parameters\n ----------\n ra: astropy.units.quantity.Quantity\n The RA of the source\n dec: astropy.units.quantity.Quantity\n The Dec of the source\n flag: str\n A fla...
166
false
BDNYC/astrodbkit
add_source
7,523
LDU_FT/tomnor/channelpack/loadtxt_asdict
LDU_FT
[ "<BEGIN>\n## `masked`", "Return a numpy array with values from a where elements in b are\n not False. Populate with numpy.nan where b is False. When plotting,\n those elements look like missing, which can be a desired result.\n<END>", "<BEGIN>\n## `duration_bool`", "Mask the parts in b being True but do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadtxt_asdict API. 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 loadtxt_asdict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return what is returned from loadtxt as a dict. The 'unpack' keyword is enforced to True. The keys in the dict is the column numbers loaded. It is the integers 0...N-1 for N loaded columns, or the numbers in usecols.
"Return what is returned from loadtxt as a dict.\n\n The 'unpack' keyword is enforced to True.\n The keys in the dict is the column numbers loaded. It is the\n integers 0...N-1 for N loaded columns, or the numbers in usecols."
253
false
tomnor/channelpack
loadtxt_asdict
7,524
LDU_FT/pymupdf/PyMuPDF/select
LDU_FT
[ "<BEGIN>\n## `_Widget_fontdict`", "Turns the above font definitions into a dictionary. Assumes certain line breaks and spaces.\n<END>", "<BEGIN>\n## `getTextlength`", "Calculate length of a string for a given built-in font.", " Args:\n fontname: name of the font.\n fontsize: size of font in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. 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 select API. 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 ...
Build sub-pdf with page numbers in 'list'.
"Build sub-pdf with page numbers in 'list'."
282
false
pymupdf/PyMuPDF
select
7,525
LDU_FT/ontio/ontology-python-sdk/get_stream
LDU_FT
[ "<BEGIN>\n## `init`", "This interface is used to call the TotalSupply method in ope4\n that initialize smart contract parameter.", " :param acct: an Account class that used to sign the transaction.\n :param payer_acct: an Account class that used to pay for the transaction.\n :param g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stream API. 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_stream API. 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 a MemoryStream instance. Args: data (bytes, bytearray, BytesIO): (Optional) data to create the stream from. Returns: MemoryStream: instance.
"Get a MemoryStream instance.\n\n Args:\n data (bytes, bytearray, BytesIO): (Optional) data to create the stream from.\n\n Returns:\n MemoryStream: instance."
375
false
ontio/ontology-python-sdk
get_stream
7,526
LDU_FT/mypebble/django-feature-flipper/do_flipper
LDU_FT
[ "<BEGIN>\n## `show_feature`", "Return True/False whether the assigned feature can be displayed. This is\n primarily used in the template tag to determine whether to render the\n content inside itself.\n<END>", "<BEGIN>\n## `do_flipper`", "The flipper tag takes two arguments: the user to look up and the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_flipper API. 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 do_flipper API. 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...
The flipper tag takes two arguments: the user to look up and the feature to compare against.
"The flipper tag takes two arguments: the user to look up and the feature\n to compare against."
10
false
mypebble/django-feature-flipper
do_flipper
7,527
LDU_FT/Autodesk/cryptorito/stderr_output
LDU_FT
[ "<BEGIN>\n## `polite_string`", "Returns a \"proper\" string that should work in both Py3/Py2\n<END>", "<BEGIN>\n## `not_a_string`", "It's probably not a string, in the sense\n that Python2/3 get confused about these things\n<END>", "<BEGIN>\n## `actually_flatten`", "Flatten iterables\n This is super...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stderr_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stderr_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Wraps the execution of check_output in a way that ignores stderr when not in debug mode
"Wraps the execution of check_output in a way that\n ignores stderr when not in debug mode"
36
false
Autodesk/cryptorito
stderr_output
7,528
LDU_FT/Yelp/detect-secrets/scan_diff
LDU_FT
[ "<BEGIN>\n## `determine_file_type`", ":param filename: str", " :rtype: FileType\n<END>", "<BEGIN>\n## `write_baseline_to_file`", ":type filename: str\n :type data: dict\n :rtype: None\n<END>", "<BEGIN>\n## `load_baseline_from_string`", "Initializes a SecretsCollection object from string.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_diff API. 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 scan_diff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
For optimization purposes, our scanning strategy focuses on looking at incremental differences, rather than re-scanning the codebase every time. This function supports this, and adds information to self.data. :type diff: str :param diff: diff string. e.g. The output...
"For optimization purposes, our scanning strategy focuses on looking\n at incremental differences, rather than re-scanning the codebase every time.\n This function supports this, and adds information to self.data.\n\n :type diff: str\n :param diff: diff string.\n e.g. The...
194
false
Yelp/detect-secrets
scan_diff
7,529
LDU_FT/CZ-NIC/python-rt/__normalize_list
LDU_FT
[ "<BEGIN>\n## `__request`", "General request for :term:`API`.", " :keyword selector: End part of URL which completes self.url parameter\n set during class initialization.\n E.g.: ``ticket/123456/show``\n :keyword post_data: Dictionary with POST me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __normalize_list API. 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 __normalize_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Split message to list by commas and trim whitespace.
"Split message to list by commas and trim whitespace."
143
false
CZ-NIC/python-rt
__normalize_list
7,530
LDU_FT/spacetelescope/drizzlepac/findExtNum
LDU_FT
[ "<BEGIN>\n## `check_and_get_data`", "Verify that all specified files are present. If not, retrieve them from MAST.", " Parameters\n ----------\n input_list : list\n List of one or more calibrated fits images that will be used for catalog generation.", " Returns\n =======\n total_input...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the findExtNum API. 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 findExtNum API. 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...
Find the extension number of the give extname and extver.
"Find the extension number of the give extname and extver."
1,138
true
spacetelescope/drizzlepac
findExtNum
7,531
LDU_FT/rsheftel/raccoon/set_cell
LDU_FT
[ "<BEGIN>\n## `sorted_exists`", "For list, values, returns the insert position for item x and whether the item already exists in the list. This\n allows one function call to return either the index to overwrite an existing value in the list, or the index to\n insert a new item in the list and keep the list i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cell API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cell API. 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...
Sets the value of a single cell. If the index and/or column is not in the current index/columns then a new index and/or column will be created. :param index: index value :param column: column name :param value: value to set :return: nothing
"Sets the value of a single cell. If the index and/or column is not in the current index/columns then a new\n index and/or column will be created.\n\n :param index: index value\n :param column: column name\n :param value: value to set\n :return: nothing"
208
false
rsheftel/raccoon
set_cell
7,532
LDU_FT/pandas-dev/pandas/invalid_comparison
LDU_FT
[ "<BEGIN>\n## `to_offset`", "Return DateOffset object from string or tuple representation\n or datetime.timedelta object", " Parameters\n ----------\n freq : str, tuple, datetime.timedelta, DateOffset or None", " Returns\n -------\n DateOffset\n None if freq is None.", " Raises...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invalid_comparison 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 invalid_comparison 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...
If a comparison has mismatched types and is not necessarily meaningful, follow python3 conventions by: - returning all-False for equality - returning all-True for inequality - raising TypeError otherwise Parameters ---------- left : array-like right : scalar, array-like ...
"If a comparison has mismatched types and is not necessarily meaningful,\n follow python3 conventions by:\n\n - returning all-False for equality\n - returning all-True for inequality\n - raising TypeError otherwise\n\n Parameters\n ----------\n left : array-like\n right : scalar, arr...
8,110
true
pandas-dev/pandas
invalid_comparison
7,533
LDU_FT/tapilab/twutil/tokenize
LDU_FT
[ "<BEGIN>\n## `list_members`", "See https://dev.twitter.com/rest/reference/get/lists/members\n<END>", "<BEGIN>\n## `lookup_handles`", "Fetch the twitter screen_names of each id.\n<END>", "<BEGIN>\n## `lookup_ids`", "Fetch the twitter ids of each screen_name.\n<END>", "<BEGIN>\n## `tweets_for_id`", "Col...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize API. 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 tokenize API. 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...
Given a Tweet object, return a dict mapping field name to tokens.
"Given a Tweet object, return a dict mapping field name to tokens."
20
false
tapilab/twutil
tokenize
7,534
LDU_FT/cameronbwhite/Flask-CAS/create_cas_login_url
LDU_FT
[ "<BEGIN>\n## `login`", "This route has two purposes. First, it is used by the user\n to login. Second, it is used by the CAS to respond with the\n `ticket` after the user logs in successfully.", " When the user accesses this url, they are redirected to the CAS\n to login. If the login was successful...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_cas_login_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_cas_login_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Create a CAS login URL . Keyword arguments: cas_url -- The url to the CAS (ex. http://sso.pdx.edu) cas_route -- The route where the CAS lives on server (ex. /cas) service -- (ex. http://localhost:5000/login) renew -- "true" or "false" gateway -- "true" or "false" Example usage: >>> cr...
"Create a CAS login URL .\n\n Keyword arguments:\n cas_url -- The url to the CAS (ex. http://sso.pdx.edu)\n cas_route -- The route where the CAS lives on server (ex. /cas)\n service -- (ex. http://localhost:5000/login)\n renew -- \"true\" or \"false\"\n gateway -- \"true\" or \"false\"\n\n Example...
20
false
cameronbwhite/Flask-CAS
create_cas_login_url
7,535
LDU_FT/serge-sans-paille/pythran/run
LDU_FT
[ "<BEGIN>\n## `check_specs`", "Does nothing but raising PythranSyntaxError if specs\n are incompatible with the actual code\n<END>", "<BEGIN>\n## `check_exports`", "Does nothing but raising PythranSyntaxError if specs\n references an undefined global\n<END>", "<BEGIN>\n## `visit_Import`", "Check if i...
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...
Dump on stdout the config flags required to compile pythran-generated code.
"Dump on stdout the config flags required to compile pythran-generated code."
547
false
serge-sans-paille/pythran
run
7,536
LDU_FT/shinux/PyTime/father
LDU_FT
[ "<BEGIN>\n## `_str_parser`", "return method by the length of string\n :param string: string\n :return: method\n<END>", "<BEGIN>\n## `parse_date`", "string to date stamp\n :param string: date string\n :param formation: format string\n :return: datetime.date\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the father API. 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 father API. 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 ...
the 3rd Sunday in June :param year: int :return: Father's day
"the 3rd Sunday in June\n :param year: int\n :return: Father's day"
27
false
shinux/PyTime
father
7,537
LDU_FT/jalanb/pysyte/_get_keycodes
LDU_FT
[ "<BEGIN>\n## `get_caselessly`", "Find the sought key in the given dictionary regardless of case", " >>> things = {'Fred' : 9}\n >>> print(get_caselessly(things, 'fred'))\n 9\n<END>", "<BEGIN>\n## `append_value`", "Append those items to the values for that key\n<END>", "<BEGIN>\n## `extend_values`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_keycodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_keycodes API. 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...
Read keypress giving a tuple of key codes A 'key code' is the ordinal value of characters read For example, pressing 'A' will give (65,)
"Read keypress giving a tuple of key codes\n\n A 'key code' is the ordinal value of characters read\n\n For example, pressing 'A' will give (65,)"
224
false
jalanb/pysyte
_get_keycodes
7,538
LDU_FT/sigsep/sigsep-mus-eval/eval_mus_dir
LDU_FT
[ "<BEGIN>\n## `_load_track_estimates`", "load estimates from disk instead of processing\n<END>", "<BEGIN>\n## `eval_dir`", "Compute bss_eval metrics for two given directories assuming file\n names are identical for both, reference source and estimates.", " Parameters\n ----------\n reference_dir ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval_mus_dir API. 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 eval_mus_dir API. 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...
Run musdb.run for the purpose of evaluation of musdb estimate dir Parameters ---------- dataset : DB(object) Musdb Database object. estimates_dir : str Path to estimates folder. output_dir : str Output folder where evaluation json files are stored. *args Variable...
"Run musdb.run for the purpose of evaluation of musdb estimate dir\n\n Parameters\n ----------\n dataset : DB(object)\n Musdb Database object.\n estimates_dir : str\n Path to estimates folder.\n output_dir : str\n Output folder where evaluation json files are stored.\n *args\n ...
69
false
sigsep/sigsep-mus-eval
eval_mus_dir
7,539
LDU_FT/merll/docker-fabric/save_image
LDU_FT
[ "<BEGIN>\n## `reset_socat`", "Finds and closes all processes of `socat`.", " :param use_sudo: Use `sudo` command. As Docker-Fabric does not run `socat` with `sudo`, this is by default set to\n ``False``. Setting it to ``True`` could unintentionally remove instances from other users.\n :type use_sudo:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Identical to :meth:`dockermap.client.base.DockerClientWrapper.save_image` with additional logging.
"Identical to :meth:`dockermap.client.base.DockerClientWrapper.save_image` with additional logging."
157
false
merll/docker-fabric
save_image
7,540
LDU_FT/joferkington/mplstereonet/pole
LDU_FT
[ "<BEGIN>\n## `subplots`", "Identical to matplotlib.pyplot.subplots, except that this will default to\n producing equal-area stereonet axes.", " This prevents constantly doing:", " >>> fig, ax = plt.subplot(subplot_kw=dict(projection='stereonet'))", " or", " >>> fig = plt.figure()\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pole API. 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 pole API. 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...
Calculates the longitude and latitude of the pole(s) to the plane(s) specified by `strike` and `dip`, given in degrees. Parameters ---------- strike : number or sequence of numbers The strike of the plane(s) in degrees, with dip direction indicated by the azimuth (e.g. 315 vs. 135) spec...
"Calculates the longitude and latitude of the pole(s) to the plane(s)\n specified by `strike` and `dip`, given in degrees.\n\n Parameters\n ----------\n strike : number or sequence of numbers\n The strike of the plane(s) in degrees, with dip direction indicated by\n the azimuth (e.g. 315 vs. 1...
362
false
joferkington/mplstereonet
pole
7,541
LDU_FT/MrYsLab/pymata-aio/digital_read
LDU_FT
[ "<BEGIN>\n## `start`", "This method opens an IP connection on the IP device", " :return: None\n<END>", "<BEGIN>\n## `write`", "This method writes sends data to the IP device\n :param data:", " :return: None\n<END>", "<BEGIN>\n## `loop`", "Function that gets called again as soon as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the digital_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the digital_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
This method reads and returns the last reported value for a digital pin. Normally not used since digital pin updates will be provided automatically as they occur with the digital_message_reply being sent to the client after set_pin_mode is called.. (see enable_digital_reporting for message forma...
"This method reads and returns the last reported value for a digital pin.\n Normally not used since digital pin updates will be provided automatically\n as they occur with the digital_message_reply being sent to the client after set_pin_mode is called..\n (see enable_digital_reporting for message f...
561
false
MrYsLab/pymata-aio
digital_read
7,542
LDU_FT/biocommons/hgvs/g_to_n
LDU_FT
[ "<BEGIN>\n## `_expose_rule_functions`", "add parse functions for public grammar rules", " Defines a function for each public grammar rule, based on\n introspecting the grammar. For example, the `c_interval` rule\n is exposed as a method `parse_c_interval` and used like this::", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the g_to_n API. 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 g_to_n API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Given a parsed g. variant, return a n. variant on the specified transcript using the specified alignment method (default is "splign" from NCBI). :param hgvs.sequencevariant.SequenceVariant var_g: a variant object :param str tx_ac: a transcript accession (e.g., NM_012345.6 or ENST0123456...
"Given a parsed g. variant, return a n. variant on the specified\n transcript using the specified alignment method (default is\n \"splign\" from NCBI).\n\n :param hgvs.sequencevariant.SequenceVariant var_g: a variant object\n :param str tx_ac: a transcript accession (e.g., NM_012345.6 or ENS...
210
false
biocommons/hgvs
g_to_n
7,543
LDU_FT/clement-alexandre/TotemBionet/available_state_for_gene
LDU_FT
[ "<BEGIN>\n## `pick_a_model_randomly`", "Naive picking function, return one of the models chosen randomly.\n<END>", "<BEGIN>\n## `as_data_frame`", "Create a panda DataFrame representation of the resource table.\n<END>", "<BEGIN>\n## `is_active`", "Return True if the multiplex is active in the given state, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the available_state_for_gene 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 available_state_for_gene API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Return the state reachable from a given state for a particular gene.
"Return the state reachable from a given state for a particular gene."
49
false
clement-alexandre/TotemBionet
available_state_for_gene
7,544
LDU_FT/raff/dynash/do_create
LDU_FT
[ "<BEGIN>\n## `do_schema`", "schema", " schema --clear", " schema filed_name field_type\n<END>", "<BEGIN>\n## `do_create`", "create {tablename} [-c rc,wc] {hkey}[:{type} {rkey}:{type}]\n<END>", "<BEGIN>\n## `do_capacity`", "capacity {tablename} {read_units} {write_units}\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
create {tablename} [-c rc,wc] {hkey}[:{type} {rkey}:{type}]
"create {tablename} [-c rc,wc] {hkey}[:{type} {rkey}:{type}]"
32
false
raff/dynash
do_create
7,545
LDU_FT/chrisbouchard/braillegraph/_chunk
LDU_FT
[ "<BEGIN>\n## `run`", "Display the arguments as a braille graph on standard output.\n<END>", "<BEGIN>\n## `_chunk`", "Split an iterable into chunks of a fixed size.\n<END>", "<BEGIN>\n## `_matrix_add_column`", "Given a matrix as a list of lists, add a column to the right, filling in\n with a default val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _chunk API. 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 _chunk API. 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 ...
Split an iterable into chunks of a fixed size.
"Split an iterable into chunks of a fixed size."
22
false
chrisbouchard/braillegraph
_chunk
7,546
LDU_FT/fdb/aufmachen/parse_number
LDU_FT
[ "<BEGIN>\n## `phantomjs_retrieve`", "Retrieve the given URL using PhantomJS.\n PhantomJS will evaluate all scripts and return the HTML after body.onload.", " url - The page URL to retrieve\n data - The form data. TODO: Currently ignored.", " Returns a status code (e.g. 200) and the HTML as a unic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_number API. 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...
Find a number using a given regular expression. If the number is found, sets it under the key in the given dictionary. d - The dictionary that will contain the data. key - The key into the dictionary. regex - A string containing the regular expression. s - The string to search.
"Find a number using a given regular expression.\n If the number is found, sets it under the key in the given dictionary.\n \n d - The dictionary that will contain the data.\n key - The key into the dictionary.\n regex - A string containing the regular expression.\n s - The string to search."
43
false
fdb/aufmachen
parse_number
7,547
LDU_FT/locationlabs/mockredis/call
LDU_FT
[ "<BEGIN>\n## `_execute_lua`", "Sets KEYS and ARGV alongwith redis.call() function in lua globals\n and executes the lua redis script\n<END>", "<BEGIN>\n## `_import_lua`", "Import lua and dependencies.", " :param load_dependencies: should Lua library dependencies be loaded?\n :raises: Ru...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. 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 call API. 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...
Sends call to the function, whose name is specified by command. Used by Script invocations and normalizes calls using standard Redis arguments to use the expected redis-py arguments.
"Sends call to the function, whose name is specified by command.\n\n Used by Script invocations and normalizes calls using standard\n Redis arguments to use the expected redis-py arguments."
76
false
locationlabs/mockredis
call
7,548
LDU_FT/architv/soccer-cli/map_team_id
LDU_FT
[ "<BEGIN>\n## `get_team_scores`", "Queries the API and gets the particular team scores\n<END>", "<BEGIN>\n## `get_standings`", "Queries the API and gets the standings for a particular league\n<END>", "<BEGIN>\n## `get_league_scores`", "Queries the API and fetches the scores for fixtures\n based upon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_team_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_team_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Take in team ID, read JSON file to map ID to name
"Take in team ID, read JSON file to map ID to name"
50
false
architv/soccer-cli
map_team_id
7,549
LDU_FT/slickqa/python-client/remove
LDU_FT
[ "<BEGIN>\n## `find`", "You can pass in the appropriate model object from the queries module,\n or a dictionary with the keys and values for the query,\n or a set of key=value parameters.\n<END>", "<BEGIN>\n## `findOne`", "Perform a find, with the same options present, but only return a maximum o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. 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 remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Remove or delete the specified object from slick. You specify which one you want by providing the id as a parameter to the parent object, using it as a function. Example: slick.projects("4fd8cd95e4b0ee7ba54b9885").remove()
"Remove or delete the specified object from slick. You specify which one you want by providing the id as\n a parameter to the parent object, using it as a function. Example:\n slick.projects(\"4fd8cd95e4b0ee7ba54b9885\").remove()"
37
false
slickqa/python-client
remove
7,550
LDU_FT/adubkov/py-zabbix/_chunk_send
LDU_FT
[ "<BEGIN>\n## `_load_from_config`", "Load zabbix server IP address and port from zabbix agent config\n file.", " If ServerActive variable is not found in the file, it will\n use the default: 127.0.0.1:10051", " :type config_file: str\n :param use_config: Path to zabbix_agentd...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _chunk_send API. 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 _chunk_send API. 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...
Send the one chunk metrics to zabbix server. :type metrics: list :param metrics: List of :class:`zabbix.sender.ZabbixMetric` to send to Zabbix :rtype: str :return: Response from Zabbix Server
"Send the one chunk metrics to zabbix server.\n\n :type metrics: list\n :param metrics: List of :class:`zabbix.sender.ZabbixMetric` to send\n to Zabbix\n\n :rtype: str\n :return: Response from Zabbix Server"
51
false
adubkov/py-zabbix
_chunk_send
7,551
LDU_FT/marrow/mongo/range
LDU_FT
[ "<BEGIN>\n## `process_fields`", "Process a list of simple string field definitions and assign their order based on prefix.\n<END>", "<BEGIN>\n## `create`", "Create this index in the specified collection; keyword arguments are passed to PyMongo.", "\t\thttp://api.mongodb.com/python/current/api/pymongo/collec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the range API. 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 range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Matches values that are between a minimum and maximum value, semi-inclusive. Document.field.range(4, 12) This will find documents with a field whose value is greater than or equal to 4, and less than 12. Comparison operator: {$gte: gte, $lt: lt}
"Matches values that are between a minimum and maximum value, semi-inclusive.\n\t\t\n\t\t\tDocument.field.range(4, 12)\n\t\t\n\t\tThis will find documents with a field whose value is greater than or equal to 4, and less than 12.\n\t\t\n\t\tComparison operator: {$gte: gte, $lt: lt}"
175
false
marrow/mongo
range
7,552
LDU_FT/Equitable/trump/describe
LDU_FT
[ "<BEGIN>\n## `create`", "Create, or get if exists, a Symbol.\r", " Parameters\r\n ----------\r\n name : str\r\n A symbol's name is a primary key, used across\r\n the Trump ORM.\r\n description : str, optional\r\n An arbitrary string, used to store use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe API. 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 describe API. 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...
Detecting attributes, inherits and relations :param items: list of objects to describe :param show_methods: do detection of methods :param show_properties: do detection of properties Return tuple (objects, relations, inherits) Where objects is list:: [{ 'name': '<Mapper clas...
"Detecting attributes, inherits and relations\n\n :param items: list of objects to describe\n :param show_methods: do detection of methods\n :param show_properties: do detection of properties\n\n Return tuple (objects, relations, inherits)\n\n\n Where objects is list::\n\n [{\n 'name': ...
177
false
Equitable/trump
describe
7,553
LDU_FT/jorahn/icy/sle
LDU_FT
[ "<BEGIN>\n## `ae`", "Computes the absolute error.", " This function computes the absolute error between two numbers,\n or for element between a pair of lists or numpy arrays.", " Parameters\n ----------\n actual : int, float, list of numbers, numpy array\n The ground truth value\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sle API. 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 sle API. 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...
Computes the squared log error. This function computes the squared log error between two numbers, or for element between a pair of lists or numpy arrays. Parameters ---------- actual : int, float, list of numbers, numpy array The ground truth value predicted : same type as actual ...
"Computes the squared log error.\n\n This function computes the squared log error between two numbers,\n or for element between a pair of lists or numpy arrays.\n\n Parameters\n ----------\n actual : int, float, list of numbers, numpy array\n The ground truth value\n predicted : same type ...
86
false
jorahn/icy
sle
7,554
LDU_FT/matthewdeanmartin/jiggle_version/name_from_setup_py
LDU_FT
[ "<BEGIN>\n## `require_python`", "Require at least a minimum Python version.", " The version number is expressed in terms of `sys.hexversion`. E.g. to\n require a minimum of Python 2.6, use::", " >>> require_python(0x206000f0)", " :param minimum: Minimum Python version supported.\n :type mini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name_from_setup_py 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 name_from_setup_py 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...
Extract likley module name from setup.py args :return:
"Extract likley module name from setup.py args\n :return:"
124
false
matthewdeanmartin/jiggle_version
name_from_setup_py
7,555
LDU_FT/ArtoLabs/SimpleSteem/minutes_back
LDU_FT
[ "<BEGIN>\n## `setup`", "Runs only the first time SimpleSteem() \n is instantiated. Prompts user for the values\n that are then written to config.py\n<END>", "<BEGIN>\n## `make`", "takes the arguments and writes them as \n variable / value pairs to config.py\n<END>", "<BEGIN>\n## `goodno...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the minutes_back API. 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 minutes_back API. 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...
Gives a number (integer) of days since a given date
"Gives a number (integer) of days\n since a given date"
74
false
ArtoLabs/SimpleSteem
minutes_back
7,556
LDU_FT/Godley/MuseParse/toLily
LDU_FT
[ "<BEGIN>\n## `get`", "method to fetch all contents as a list", " :return: list\n<END>", "<BEGIN>\n## `toLily`", "Method which converts the object instance and its attributes to a string of lilypond code", " :return: str of lilypond code\n<END>", "<BEGIN>\n## `Find`", "method for finding ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toLily API. 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 toLily API. 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 ...
Method which converts the object instance, its attributes and children to a string of lilypond code :return: str of lilypond code
"Method which converts the object instance, its attributes and children to a string of lilypond code\n\n :return: str of lilypond code"
113
false
Godley/MuseParse
toLily
7,557
LDU_FT/r0x0r/pywebview/base_uri
LDU_FT
[ "<BEGIN>\n## `base_uri`", "Get absolute path to resource, works for dev and for PyInstaller\n<END>", "<BEGIN>\n## `parse_file_type`", ":param file_type: file type string 'description (*.file_extension1;*.file_extension2)' as required by file filter in create_file_dialog\n :return: (description, file extens...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the base_uri API. 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 base_uri API. 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 absolute path to resource, works for dev and for PyInstaller
"Get absolute path to resource, works for dev and for PyInstaller"
33
false
r0x0r/pywebview
base_uri
7,558
LDU_FT/noxdafox/pebble/waitforthreads
LDU_FT
[ "<BEGIN>\n## `waitforqueues`", "Waits for one or more *Queue* to be ready or until *timeout* expires.", " *queues* is a list containing one or more *Queue.Queue* objects.\n If *timeout* is not None the function will block\n for the specified amount of seconds.", " The function returns a list conta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the waitforthreads API. 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 waitforthreads API. 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...
Waits for one or more *Thread* to exit or until *timeout* expires. .. note:: Expired *Threads* are not joined by *waitforthreads*. *threads* is a list containing one or more *threading.Thread* objects. If *timeout* is not None the function will block for the specified amount of seconds. T...
"Waits for one or more *Thread* to exit or until *timeout* expires.\n\n .. note::\n\n Expired *Threads* are not joined by *waitforthreads*.\n\n *threads* is a list containing one or more *threading.Thread* objects.\n If *timeout* is not None the function will block\n for the specified amount of second...
83
false
noxdafox/pebble
waitforthreads
7,559
LDU_FT/pre-commit/pre-commit/make_archive
LDU_FT
[ "<BEGIN>\n## `_shuffled`", "Deterministically shuffle identically under both py2 + py3.\n<END>", "<BEGIN>\n## `envcontext`", "In this context, `os.environ` is modified according to `patch`.", " `patch` is an iterable of 2-tuples (key, value):\n `key`: string\n `value`:\n - string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_archive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_archive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Makes an archive of a repository in the given destdir. :param text name: Name to give the archive. For instance foo. The file that is created will be called foo.tar.gz. :param text repo: Repository to clone. :param text ref: Tag/SHA/branch to check out. :param text destdir: Directory to place arc...
"Makes an archive of a repository in the given destdir.\n\n :param text name: Name to give the archive. For instance foo. The file\n that is created will be called foo.tar.gz.\n :param text repo: Repository to clone.\n :param text ref: Tag/SHA/branch to check out.\n :param text destdir: Directory to pl...
54
false
pre-commit/pre-commit
make_archive
7,560
LDU_FT/ergoithz/unicategories/load_from_package
LDU_FT
[ "<BEGIN>\n## `load_from_package`", "Try to load category ranges from module.", " :returns: category ranges dict or None\n :rtype: None or dict of RangeGroup\n<END>", "<BEGIN>\n## `load_from_cache`", "Try to load category ranges from userlevel cache file.", " :param path: path to userlevel cache f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from_package API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from_package API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Try to load category ranges from module. :returns: category ranges dict or None :rtype: None or dict of RangeGroup
"Try to load category ranges from module.\n\n :returns: category ranges dict or None\n :rtype: None or dict of RangeGroup"
22
false
ergoithz/unicategories
load_from_package
7,561
LDU_FT/aitjcize/cppman/rebuild_index
LDU_FT
[ "<BEGIN>\n## `_find_links`", "The link follow by the span.t-mark-rev will contained c++xx information.\n Consider the below case\n <a href=\"LinkA\">LinkA</a>\n <a href=\"LinkB\">LinkB</a>\n <span class=\"t-mark-rev\">(C++11)</span>\n We're reversing the body so it is easi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rebuild_index API. 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 rebuild_index API. 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...
Rebuild index database from cplusplus.com and cppreference.com.
"Rebuild index database from cplusplus.com and cppreference.com."
18
false
aitjcize/cppman
rebuild_index
7,562
LDU_FT/tommilligan/pypersonalassistant/edit_credentials
LDU_FT
[ "<BEGIN>\n## `edit_credentials`", "Edit the credentials used by the :py:class:`~pypersonalassistant.secure.secure` class.", " .. note :: User input is required.", " By default, unset credentials will be displayed.", " :param string credential: A specific credential to edit.\n :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_credentials API. 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 edit_credentials API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Edit the credentials used by the :py:class:`~pypersonalassistant.secure.secure` class. .. note :: User input is required. By default, unset credentials will be displayed. :param string credential: A specific credential to edit. :param bool already_set: If `False` will ...
"Edit the credentials used by the :py:class:`~pypersonalassistant.secure.secure` class.\n \n .. note :: User input is required.\n\n By default, unset credentials will be displayed.\n \n :param string credential: A specific credential to edit.\n :param bool already_set: If `Fals...
38
false
tommilligan/pypersonalassistant
edit_credentials
7,563
LDU_FT/adafruit/Adafruit_Python_TCS34725/calculate_lux
LDU_FT
[ "<BEGIN>\n## `calculate_color_temperature`", "Converts the raw R/G/B values to color temperature in degrees Kelvin.\n<END>", "<BEGIN>\n## `calculate_lux`", "Converts the raw R/G/B values to luminosity in lux.\n<END>", "<BEGIN>\n## `set_integration_time`", "Sets the integration time for the TC34725. Provi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_lux API. 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 calculate_lux API. 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...
Converts the raw R/G/B values to luminosity in lux.
"Converts the raw R/G/B values to luminosity in lux."
12
false
adafruit/Adafruit_Python_TCS34725
calculate_lux
7,564
LDU_FT/callowayproject/Transmogrify/file_exists
LDU_FT
[ "<BEGIN>\n## `list_from_env`", "Splits a string in the format \"a,b,c,d,e,f\" into\n ['a', 'b', 'c', 'd', 'e', 'f', ]\n<END>", "<BEGIN>\n## `lists_from_env`", "Splits a string in the format \"a,b:c,d,e:f\" into\n [('a', 'b'), ('c', 'd', 'e'), ('f', )]\n<END>", "<BEGIN>\n## `get_crop_size`", "Determi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_exists API. 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 file_exists API. 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...
Validate the original file is in the S3 bucket
"Validate the original file is in the S3 bucket"
110
false
callowayproject/Transmogrify
file_exists
7,565
LDU_FT/ffalcinelli/pydivert/wd_addr
LDU_FT
[ "<BEGIN>\n## `check_filter`", "Checks if the given packet filter string is valid with respect to the filter language.", " The remapped function is WinDivertHelperCheckFilter::", " BOOL WinDivertHelperCheckFilter(\n __in const char *filter,\n __in WINDIVERT_LAYER...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wd_addr API. 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 wd_addr API. 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...
Gets the interface and direction as a `WINDIVERT_ADDRESS` structure. :return: The `WINDIVERT_ADDRESS` structure.
"Gets the interface and direction as a `WINDIVERT_ADDRESS` structure.\n :return: The `WINDIVERT_ADDRESS` structure."
67
false
ffalcinelli/pydivert
wd_addr
7,566
LDU_FT/ambitioninc/django-entity/is_sub_to_any_kind
LDU_FT
[ "<BEGIN>\n## `remove_duplicates`", "Remove any duplicates from the entity relationship table\n :param apps:\n :param schema_editor:\n :return:\n<END>", "<BEGIN>\n## `transaction_atomic_with_retry`", "This is a decorator that will wrap the decorated method in an atomic transaction and\n retry the t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_sub_to_any_kind 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 is_sub_to_any_kind API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Find all entities that have super_entities of any of the specified kinds
"Find all entities that have super_entities of any of the specified kinds"
83
false
ambitioninc/django-entity
is_sub_to_any_kind
7,567
LDU_FT/PyThaiNLP/pythainlp/subword_tokenize
LDU_FT
[ "<BEGIN>\n## `spell`", ":param str word: word to check spelling\n :param str engine:\n * pn - Peter Norvig's algorithm (default)\n :return: list of words\n<END>", "<BEGIN>\n## `get_corpus`", "Read corpus from file and return a frozenset", " :param string filename: file corpus\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subword_tokenize API. 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 subword_tokenize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
:param str text: text to be tokenized :param str engine: subword tokenizer :return: list of subwords **Options for engine** * tcc (default) - Thai Character Cluster (Theeramunkong et al. 2000) * etcc - Enhanced Thai Character Cluster (Inrut et al. 2001) [In development]
":param str text: text to be tokenized\n :param str engine: subword tokenizer\n :return: list of subwords\n\n **Options for engine**\n * tcc (default) - Thai Character Cluster (Theeramunkong et al. 2000)\n * etcc - Enhanced Thai Character Cluster (Inrut et al. 2001) [In development]"
190
false
PyThaiNLP/pythainlp
subword_tokenize
7,568
LDU_FT/heuer/cablemap/reference_id_parts
LDU_FT
[ "<BEGIN>\n## `cable_to_text`", "\\\n Returns the header/content of the cable as text.\n<END>", "<BEGIN>\n## `generate_text_files`", "\\\n Walks through the `in_dir` and generates text versions of\n the cables in the `out_dir`.\n<END>", "<BEGIN>\n## `generate_csv`", "\\\n Walks through the `pat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reference_id_parts 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 reference_id_parts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
\ Returns a tuple from the provided `reference_id`:: (YEAR, ORIGIN, S/N) `reference_id` Cable reference identifier or canonical identifier.
"\\\n Returns a tuple from the provided `reference_id`::\n\n (YEAR, ORIGIN, S/N)\n\n `reference_id`\n Cable reference identifier or canonical identifier."
206
false
heuer/cablemap
reference_id_parts
7,569
LDU_FT/echonest/pyechonest/get_video
LDU_FT
[ "<BEGIN>\n## `write_xspf`", "send me a list of (artist,title,mp3_url)\n<END>", "<BEGIN>\n## `callm`", "Call the api! \n Param_dict is a *regular* *python* *dictionary* so if you want to have multi-valued params\n put them in a list.", " ** note, if we require 2.6, we can get rid of this timeout mun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_video API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_video API. 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...
Get a list of video documents found on the web related to an artist Args: Kwargs: cache (bool): A boolean indicating whether or not the cached value should be used (if available). Defaults to True. results (int): An integer number of results to retu...
"Get a list of video documents found on the web related to an artist\n \n Args:\n \n Kwargs:\n cache (bool): A boolean indicating whether or not the cached value should be used (if available). Defaults to True.\n \n results (int): An integer number of results...
438
false
echonest/pyechonest
get_video
7,570
LDU_FT/totalgood/pugnlp/quantify_field_dict
LDU_FT
[ "<BEGIN>\n## `make_datetime`", "Coerce a datetime or string into datetime.datetime object", " Arguments:\n dt (str or datetime.datetime or atetime.time or numpy.Timestamp): time or date\n to be coerced into a `datetime.date` object", " Returns:\n datetime.time: Time of day portion of a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quantify_field_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quantify_field_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
r"""Convert strings and datetime objects in the values of a dict into float/int/long, if possible Arguments: field_dict (dict): The dict to have any values (not keys) that are strings "quantified" precision (int): Number of digits of precision to enforce cleaner: A string cleaner to apply to all ...
"r\"\"\"Convert strings and datetime objects in the values of a dict into float/int/long, if possible\n\n Arguments:\n field_dict (dict): The dict to have any values (not keys) that are strings \"quantified\"\n precision (int): Number of digits of precision to enforce\n cleaner: A string cleaner to ap...
433
false
totalgood/pugnlp
quantify_field_dict
7,571
LDU_FT/pandas-profiling/pandas-profiling/describe_boolean_1d
LDU_FT
[ "<BEGIN>\n## `get_rejected_variables`", "Return a list of variable names being rejected for high\n correlation with one of remaining variables.", " Parameters:\n ----------\n threshold : float\n Correlation value which is above the threshold are rejected", " Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe_boolean_1d 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 describe_boolean_1d API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Compute summary statistics of a boolean (`TYPE_BOOL`) variable (a Series). Parameters ---------- series : Series The variable to describe. Returns ------- Series The description of the variable as a Series with index being stats keys.
"Compute summary statistics of a boolean (`TYPE_BOOL`) variable (a Series).\n\n Parameters\n ----------\n series : Series\n The variable to describe.\n\n Returns\n -------\n Series\n The description of the variable as a Series with index being stats keys."
91
false
pandas-profiling/pandas-profiling
describe_boolean_1d
7,572