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/yangl1996/libpagure/list_pull_requests
LDU_FT
[ "<BEGIN>\n## `_call_api`", "Method used to call the API.\n It returns the raw JSON returned by the API or raises an exception\n if something goes wrong.", " :arg url: the URL to call\n :kwarg method: the HTTP method to use when calling the specified\n URL, can be GET, POST...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_pull_requests 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 list_pull_requests 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...
List pull-requests filed by user. Params: username (string): filters the username of the user whose activity you are interested in. page (integer): the page requested. Defaults to 1. status (string): filter the status of pull requests. Default: Open, ...
"List pull-requests filed by user.\n\n Params:\n username (string): filters the username of the user whose activity you are interested in.\n page (integer): the page requested. Defaults to 1.\n status (string): filter the status of pull requests. Default: Open,\n ...
62
false
yangl1996/libpagure
list_pull_requests
34,473
LDU_FT/lqdc/pysimstr/make_unique_ngrams
LDU_FT
[ "<BEGIN>\n## `make_unique_ngrams`", "Make a set of unique n-grams from a string.\n<END>", "<BEGIN>\n## `check`", "Check if a string is in the DB.", " :param s: str, string to check against the DB.\n :param instant_exact: bool, look up exact matches with a hash lookup.\n :return: True or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_unique_ngrams 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 make_unique_ngrams 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...
Make a set of unique n-grams from a string.
"Make a set of unique n-grams from a string."
14
false
lqdc/pysimstr
make_unique_ngrams
34,474
LDU_FT/google/importlab/create_file
LDU_FT
[ "<BEGIN>\n## `convert_to_path`", "Converts \".module\" to \"./module\", \"..module\" to \"../module\", etc.\n<END>", "<BEGIN>\n## `infer_module_name`", "Convert a python filename to a module relative to pythonpath.\n<END>", "<BEGIN>\n## `get_absolute_name`", "Joins a package name and a relative name.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Create a file in the temporary directory. Dedents the contents.
"Create a file in the temporary directory.\n\n Dedents the contents."
65
false
google/importlab
create_file
34,475
LDU_FT/20c/facsimile/find_datafile
LDU_FT
[ "<BEGIN>\n## `find_datafile`", "find all matching data files in search_path\n search_path: path of directories to load from\n codecs: allow to override from list of installed\n returns array of tuples (codec_object, filename)\n<END>", "<BEGIN>\n## `load_datafile`", "find datafile and load them from c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_datafile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_datafile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
find all matching data files in search_path search_path: path of directories to load from codecs: allow to override from list of installed returns array of tuples (codec_object, filename)
"find all matching data files in search_path\n search_path: path of directories to load from\n codecs: allow to override from list of installed\n returns array of tuples (codec_object, filename)"
24
false
20c/facsimile
find_datafile
34,476
LDU_FT/seanpar203/event-bus/add_event
LDU_FT
[ "<BEGIN>\n## `on`", "Decorator for subscribing a function to a specific event.", " :param event: Name of the event to subscribe to.\n :type event: str", " :return: The outer function.\n :rtype: Callable\n<END>", "<BEGIN>\n## `add_event`", "Adds a function to a event.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_event API. 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 add_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Adds a function to a event. :param func: The function to call when event is emitted :type func: Callable :param event: Name of the event. :type event: str
"Adds a function to a event.\n\n :param func: The function to call when event is emitted\n :type func: Callable\n\n :param event: Name of the event.\n :type event: str"
37
false
seanpar203/event-bus
add_event
34,477
LDU_FT/heikomuller/sco-engine/from_dict
LDU_FT
[ "<BEGIN>\n## `handle_request`", "Convert a model run request from the buffer into a message in a RabbitMQ\n queue.", " Parameters\n ----------\n request : dict\n Buffer entry containing 'connector' and 'request' field\n<END>", "<BEGIN>\n## `from_dict`", "Create a model output file object ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Create a model output object from a dictionary.
"Create a model output object from a dictionary."
66
false
heikomuller/sco-engine
from_dict
34,478
LDU_FT/lehins/python-wepay/__create
LDU_FT
[ "<BEGIN>\n## `authorize`", "Documentation: `/oauth2/authorize\n <https://www.wepay.com/developer/reference/oauth2#authorize>`_.", " .. note::", " This is not an API call but an actual uri that you send the user to.\n<END>", "<BEGIN>\n## `__token`", "Call documentation: `/oauth2/tok...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __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 extracte...
Call documentation: `/subscription/create <https://www.wepay.com/developer/reference/subscription#create>`_, plus extra keyword parameters: :keyword str access_token: will be used instead of instance's ``access_token``, with ``batch_mode=True`` will set `authorization` ...
"Call documentation: `/subscription/create\n <https://www.wepay.com/developer/reference/subscription#create>`_, plus\n extra keyword parameters:\n \n :keyword str access_token: will be used instead of instance's\n ``access_token``, with ``batch_mode=True`` will set `authorization`\...
269
false
lehins/python-wepay
__create
34,479
LDU_FT/thebigmunch/google-music/stream_url
LDU_FT
[ "<BEGIN>\n## `download`", "Download a song from a Google Music library.", "\t\tParameters:\n\t\t\tsong (dict): A song dict.", "\t\tReturns:\n\t\t\ttuple: Song content as bytestring, suggested filename.\n<END>", "<BEGIN>\n## `quota`", "Get the uploaded track count and allowance.", "\t\tReturns:\n\t\t\ttu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get a URL to stream a podcast episode, library song, station_song, or store song. Note: Streaming requires a ``device_id`` from a valid, linked mobile device. Parameters: item (str): A podcast episode, library song, station_song, or store song. A Google Music subscription is required to stream store son...
"Get a URL to stream a podcast episode, library song, station_song, or store song.\n\n\t\tNote:\n\t\t\tStreaming requires a ``device_id`` from a valid, linked mobile device.\n\n\t\tParameters:\n\t\t\titem (str): A podcast episode, library song, station_song, or store song.\n\t\t\t\tA Google Music subscription is requir...
268
false
thebigmunch/google-music
stream_url
34,480
LDU_FT/Nike-Inc/cerberus-python-client/throw_if_bad_response
LDU_FT
[ "<BEGIN>\n## `throw_if_bad_response`", "Throw an exception if the Cerberus response is not successful.\n<END>", "<BEGIN>\n## `_add_slash`", "if a string doesn't end in a '/' add one\n<END>", "<BEGIN>\n## `_set_token`", "Set the Cerberus token based on auth type\n<END>", "<BEGIN>\n## `get_roles`", "Ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the throw_if_bad_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the throw_if_bad_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Throw an exception if the Cerberus response is not successful.
"Throw an exception if the Cerberus response is not successful."
86
false
Nike-Inc/cerberus-python-client
throw_if_bad_response
34,481
LDU_FT/luckydonald/pytgbot/send_media_group
LDU_FT
[ "<BEGIN>\n## `to_array`", "Serializes this StickerSet to a dictionary.", " :return: dictionary representation of this object.\n :rtype: dict\n<END>", "<BEGIN>\n## `from_array`", "Deserialize a new StickerSet from a given dictionary.", " :return: new StickerSet instance.\n :rtyp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_media_group API. 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 send_media_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Use this method to send a group of photos or videos as an album. On success, an array of the sent Messages is returned. https://core.telegram.org/bots/api#sendmediagroup Parameters: :param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channe...
"Use this method to send a group of photos or videos as an album. On success, an array of the sent Messages is returned.\n\n https://core.telegram.org/bots/api#sendmediagroup\n\n\n Parameters:\n\n :param chat_id: Unique identifier for the target chat or username of the target channel (in the format...
1,048
true
luckydonald/pytgbot
send_media_group
34,482
LDU_FT/thespacedoctor/sherlock/_rank_classifications
LDU_FT
[ "<BEGIN>\n## `ingest`", "ingest the veron catalogue into the catalogues database", " See class docstring for usage.\n<END>", "<BEGIN>\n## `_create_dictionary_of_veron`", "create a list of dictionaries containing all the rows in the veron catalogue", " **Return:**\n - ``dictList`` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rank_classifications 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 _rank_classifications API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
*rank the classifications returned from the catalogue crossmatcher, annotate the results with a classification rank-number (most likely = 1) and a rank-score (weight of classification)* **Key Arguments:** - ``crossmatchArrayIndex`` -- the index of list of unranked crossmatch classifications ...
"*rank the classifications returned from the catalogue crossmatcher, annotate the results with a classification rank-number (most likely = 1) and a rank-score (weight of classification)*\n\n **Key Arguments:**\n - ``crossmatchArrayIndex`` -- the index of list of unranked crossmatch classifications\n ...
348
false
thespacedoctor/sherlock
_rank_classifications
34,483
LDU_FT/sdss/sdss_access/_check_special_kwargs
LDU_FT
[ "<BEGIN>\n## `remote`", "Configures remote access", " Parameters\n ----------\n remote_base : str\n base URL path for remote repository\n username : str\n user name for remote repository\n password : str\n password for local repository\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_special_kwargs 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 _check_special_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
check special functions for kwargs Checks the content of the special functions (%methodname) for any keyword arguments referenced within Parameters: name (str): A path key name Returns: A list of keyword arguments found in any special fu...
"check special functions for kwargs\n \n Checks the content of the special functions (%methodname) for\n any keyword arguments referenced within\n\n Parameters:\n name (str):\n A path key name\n\n Returns:\n A list of keyword arguments found in any...
121
false
sdss/sdss_access
_check_special_kwargs
34,484
LDU_FT/Datary/scrapbag/row_iter_limiter
LDU_FT
[ "<BEGIN>\n## `parse_spss_headerfile`", "Parse spss header file", " Arguments:\n path {str} -- path al fichero de cabecera.\n leyend_position -- posicion del la leyenda en el header.\n<END>", "<BEGIN>\n## `parse_spss_datafile`", "Parse spss data file", " Arguments:\n path {str} -...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the row_iter_limiter API. 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 row_iter_limiter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Alghoritm to detect row limits when row have more that one column. Depending the init params find from the begin or behind. NOT SURE THAT IT WORKS WELL..
"Alghoritm to detect row limits when row have more that one column.\n Depending the init params find from the begin or behind.\n NOT SURE THAT IT WORKS WELL.."
119
false
Datary/scrapbag
row_iter_limiter
34,485
LDU_FT/quora/qcore/safe_str
LDU_FT
[ "<BEGIN>\n## `lazy_constant`", "Decorator to make a function that takes no arguments use the LazyConstant class.\n<END>", "<BEGIN>\n## `lru_cache`", "Decorator that adds an LRU cache of size maxsize to the decorated function.", " maxsize is the number of different keys cache can accomodate.\n key_fn i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_str API. 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 safe_str API. 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...
Wrapper for str() that catches exceptions.
"Wrapper for str() that catches exceptions."
167
false
quora/qcore
safe_str
34,486
LDU_FT/Cadair/jupyter_environment_kernels/validate_IPykernel
LDU_FT
[ "<BEGIN>\n## `convert_to_env_data`", "Converts a list of paths to environments to env_data.", " env_data is a structure {name -> (ressourcedir, kernel spec)}\n<END>", "<BEGIN>\n## `validate_IPykernel`", "Validates that this env contains an IPython kernel and returns info to start it", " Returns: tup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_IPykernel 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 validate_IPykernel 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...
Validates that this env contains an IPython kernel and returns info to start it Returns: tuple (ARGV, language, resource_dir)
"Validates that this env contains an IPython kernel and returns info to start it\n\n\n Returns: tuple\n (ARGV, language, resource_dir)"
69
false
Cadair/jupyter_environment_kernels
validate_IPykernel
34,487
LDU_FT/wikimedia/ores/from_config
LDU_FT
[ "<BEGIN>\n## `redis_from_url`", "Converts a redis URL used by celery into a `redis.Redis` object.\n<END>", "<BEGIN>\n## `process_model_scores`", "Generates a score map for a set of models based on a `root_cache`.\n This method performs no substantial IO, but may incur substantial CPU\n usage.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Expects: scoring_contexts: enwiki: scorer_models: damaging: enwiki_damaging_2014 good-faith: enwiki_good-faith_2014 extractor: enwiki ptwiki: scorer_models: ...
"Expects:\n\n scoring_contexts:\n enwiki:\n scorer_models:\n damaging: enwiki_damaging_2014\n good-faith: enwiki_good-faith_2014\n extractor: enwiki\n ptwiki:\n scorer_models:\...
52
false
wikimedia/ores
from_config
34,488
LDU_FT/nickfrostatx/flask-hookserver/register_hook
LDU_FT
[ "<BEGIN>\n## `_load_github_hooks`", "Request GitHub's IP block from their API.", " Return the IP network.", " If we detect a rate-limit error, raise an error message stating when\n the rate limit will reset.", " If something else goes wrong, raise a generic 503.\n<END>", "<BEGIN>\n## `is_githu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_hook API. 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 register_hook API. 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...
Register a function to be called on a GitHub event.
"Register a function to be called on a GitHub event."
17
false
nickfrostatx/flask-hookserver
register_hook
34,489
LDU_FT/DiamondLightSource/python-workflows/_terminate_service
LDU_FT
[ "<BEGIN>\n## `_wrap_subscription`", "Internal method to create an intercepting function for incoming messages\n to interpret recipes. This function is then used to subscribe to a channel\n on the transport layer.\n :param transport_layer: Reference to underlying transport object.\n :param subscrip...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _terminate_service API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _terminate_service API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Force termination of running service. Disconnect queues, end queue feeder threads. Wait for service process to clear, drop all references.
"Force termination of running service.\n Disconnect queues, end queue feeder threads.\n Wait for service process to clear, drop all references."
160
false
DiamondLightSource/python-workflows
_terminate_service
34,490
LDU_FT/pauleveritt/kaybee/run
LDU_FT
[ "<BEGIN>\n## `render`", "Given a Sphinx builder and context with sphinx_app in it,\n generate HTML\n<END>", "<BEGIN>\n## `in_navitem`", "Given href of nav item, determine if resource is in it\n<END>", "<BEGIN>\n## `is_published`", "Return true if this resource has published date in the past\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run at parse time. When the documents are initially being scanned, this method runs and does two things: (a) creates an instance that is added to the site's widgets, and (b) leaves behind a placeholder docutils node that can later be processed after the docs are resolved. The la...
"Run at parse time.\n\n When the documents are initially being scanned, this method runs\n and does two things: (a) creates an instance that is added to\n the site's widgets, and (b) leaves behind a placeholder docutils\n node that can later be processed after the docs are resolved.\n ...
71
false
pauleveritt/kaybee
run
34,491
LDU_FT/summa-tx/riemann/to_long
LDU_FT
[ "<BEGIN>\n## `addsalt`", "adds a salt to the hash function (OPTIONAL)\n should be called AFTER Init, and BEFORE update\n salt: a bytestring, length determined by hashbitlen.\n if not of sufficient length, the bytestring\n will be assumed to be a big endia...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_long API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_long API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Convert an array to a (possibly bignum) integer, along with a prefix value of how many prefixed zeros there are. base: the source base lookup_f: a function to convert an element of s to a value between 0 and base-1. s: the value to convert
"Convert an array to a (possibly bignum) integer, along with a prefix value\n of how many prefixed zeros there are.\n base:\n the source base\n lookup_f:\n a function to convert an element of s to a value between 0 and base-1.\n s:\n the value to convert"
132
false
summa-tx/riemann
to_long
34,492
LDU_FT/tmr232/Sark/get_widget
LDU_FT
[ "<BEGIN>\n## `get_idb_graph`", "Export IDB to a NetworkX graph.", " Use xrefs to and from functions to build a DiGraph containing all\n the functions in the IDB and all the links between them.\n The graph can later be used to perform analysis on the IDB.", " :return: nx.DiGraph()\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_widget API. 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_widget API. 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 the Qt widget of the IDA window with the given title.
"Get the Qt widget of the IDA window with the given title."
137
false
tmr232/Sark
get_widget
34,493
LDU_FT/product-definition-center/pdc-client/results
LDU_FT
[ "<BEGIN>\n## `__get_permissions`", "This call returns current login user's permissions.\n<END>", "<BEGIN>\n## `add_parser_arguments`", "Helper method that populates parser arguments. The argument values can\n be later retrieved with `extract_arguments` method.", " The `args` argument to this method sh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the results API. 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 results API. 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 an iterator with all pages of data. Return NoResultsError with response if there is unexpected data.
"Return an iterator with all pages of data.\n Return NoResultsError with response if there is unexpected data."
35
false
product-definition-center/pdc-client
results
34,494
LDU_FT/samuelcolvin/pydantic/get_flat_models_from_models
LDU_FT
[ "<BEGIN>\n## `validate_email`", "Brutally simple email address validation. Note unlike most email address validation\n * raw ip address (literal) domain parts are not allowed.\n * \"John Doe <local_part@domain.com>\" style \"pretty\" email addresses are processed\n * the local part check is extremely bas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flat_models_from_models API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flat_models_from_models API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Take a list of ``models`` and generate a set with them and all their sub-models in their trees. I.e. if you pass a list of two models, ``Foo`` and ``Bar``, both subclasses of Pydantic ``BaseModel`` as models, and ``Bar`` has a field of type ``Baz`` (also subclass of ``BaseModel``), the return value will be ``se...
"Take a list of ``models`` and generate a set with them and all their sub-models in their trees. I.e. if you pass\n a list of two models, ``Foo`` and ``Bar``, both subclasses of Pydantic ``BaseModel`` as models, and ``Bar`` has\n a field of type ``Baz`` (also subclass of ``BaseModel``), the return value will be `...
113
false
samuelcolvin/pydantic
get_flat_models_from_models
34,495
LDU_FT/productml/blurr/add_errors
LDU_FT
[ "<BEGIN>\n## `run_evaluate`", "Overrides the base evaluation to set the value to the evaluation result of the value\n expression in the schema\n<END>", "<BEGIN>\n## `set`", "Sets the value of a key to a supplied value\n<END>", "<BEGIN>\n## `increment`", "Increments the value set against a key. If ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_errors API. 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_errors API. 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...
Adds errors to the error repository in schema loader
"Adds errors to the error repository in schema loader"
119
false
productml/blurr
add_errors
34,496
LDU_FT/PythonOptimizers/cygenja/register_common_type_filters
LDU_FT
[ "<BEGIN>\n## `set_parent`", "Attach node to its parent.", " Args:\n node: Parent node.", " Note:\n ``node`` can be ``None``. In that case, the node is detached from its previous parent.\n<END>", "<BEGIN>\n## `set_child_node`", "Add one child node to this node.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_common_type_filters 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 register_common_type_filters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Add/register common type filters for the :program:`CySparse` project.
"Add/register common type filters for the :program:`CySparse` project."
132
false
PythonOptimizers/cygenja
register_common_type_filters
34,497
LDU_FT/Robpol86/sphinxcontrib-imgur/event_env_updated
LDU_FT
[ "<BEGIN>\n## `query_api`", "Query the Imgur API.", " :raise APIError: When Imgur responds with errors or unexpected data.", " :param sphinx.application.Sphinx app: Sphinx application object.\n :param str client_id: Imgur API client ID to use. https://api.imgur.com/oauth2\n :param str imgur_id: The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event_env_updated API. 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 event_env_updated API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Called by Sphinx during phase 3 (resolving). * Find Imgur IDs that need to be queried. * Query the Imgur API for new/outdated albums/images. :param sphinx.application.Sphinx app: Sphinx application object. :param sphinx.environment.BuildEnvironment env: Sphinx build environment.
"Called by Sphinx during phase 3 (resolving).\n\n * Find Imgur IDs that need to be queried.\n * Query the Imgur API for new/outdated albums/images.\n\n :param sphinx.application.Sphinx app: Sphinx application object.\n :param sphinx.environment.BuildEnvironment env: Sphinx build environment."
90
false
Robpol86/sphinxcontrib-imgur
event_env_updated
34,498
LDU_FT/Microsoft/LightGBM/save_model
LDU_FT
[ "<BEGIN>\n## `check_dependicies`", "Check the dynamic symbol versions.", " Parameters\n ----------\n objdump_string : string\n The dynamic symbol table entries of the file (result of `objdump -T` command).\n<END>", "<BEGIN>\n## `_objective_function_wrapper`", "Decorate an objective function....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_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 extrac...
Save Booster to file. Parameters ---------- filename : string Filename to save Booster. num_iteration : int or None, optional (default=None) Index of the iteration that should be saved. If None, if the best iteration exists, it is saved; otherwise, al...
"Save Booster to file.\n\n Parameters\n ----------\n filename : string\n Filename to save Booster.\n num_iteration : int or None, optional (default=None)\n Index of the iteration that should be saved.\n If None, if the best iteration exists, it is saved; othe...
379
false
Microsoft/LightGBM
save_model
34,499
LDU_FT/edx/XBlock/get_block
LDU_FT
[ "<BEGIN>\n## `default_select`", "Raise an exception when we have ambiguous entry points.\n<END>", "<BEGIN>\n## `_load_class_entry_point`", "Load `entry_point`, and set the `entry_point.name` as the\n attribute `plugin_name` on the loaded object\n<END>", "<BEGIN>\n## `load_class`", "Load a single cl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_block API. 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_block API. 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 an XBlock instance in this runtime. The `usage_id` is used to find the XBlock class and data.
"Create an XBlock instance in this runtime.\n\n The `usage_id` is used to find the XBlock class and data."
295
false
edx/XBlock
get_block
34,500
LDU_FT/django-fluent/fluentcms-emailtemplates/_single_site
LDU_FT
[ "<BEGIN>\n## `replace_fields`", "Allow simple field replacements, using the python str.format() syntax.", " When a string is passed that is tagged with :func:`~django.utils.safestring.mark_safe`,\n the context variables will be escaped before replacement.", " This function is used instead of lazily u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _single_site API. 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 _single_site API. 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...
Make sure the queryset is filtered on a parent site, if that didn't happen already.
"Make sure the queryset is filtered on a parent site, if that didn't happen already."
21
false
django-fluent/fluentcms-emailtemplates
_single_site
34,501
LDU_FT/pytries/DAWG-Python/similar_item_values
LDU_FT
[ "<BEGIN>\n## `similar_keys`", "Returns all variants of ``key`` in this DAWG according to\n ``replaces``.", " ``replaces`` is an object obtained from\n ``DAWG.compile_replaces(mapping)`` where mapping is a dict\n that maps single-char unicode sitrings to another single-char\n u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the similar_item_values 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 similar_item_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns a list of values for all variants of the ``key`` in this DAWG according to ``replaces``. ``replaces`` is an object obtained from ``DAWG.compile_replaces(mapping)`` where mapping is a dict that maps single-char unicode sitrings to another single-char unicode strings.
"Returns a list of values for all variants of the ``key``\n in this DAWG according to ``replaces``.\n\n ``replaces`` is an object obtained from\n ``DAWG.compile_replaces(mapping)`` where mapping is a dict\n that maps single-char unicode sitrings to another single-char\n unicode string...
16
false
pytries/DAWG-Python
similar_item_values
34,502
LDU_FT/NetEaseGame/ATX/raw_cmd
LDU_FT
[ "<BEGIN>\n## `main`", "Args:\n - forward(int): local forward port\n - host(string): local forward host\n - listen(int): listen port\n<END>", "<BEGIN>\n## `_init_items`", ".---------------.\n | Ctrl | Screen |\n |------| |\n | Code | |\n | | ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw_cmd API. 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 raw_cmd API. 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...
adb command. return the subprocess.Popen object.
"adb command. return the subprocess.Popen object."
230
false
NetEaseGame/ATX
raw_cmd
34,503
LDU_FT/kervi/kervi-devices/set_color
LDU_FT
[ "<BEGIN>\n## `read_raw_temp`", "Reads the raw (uncompensated) temperature from the sensor.\n<END>", "<BEGIN>\n## `read_raw_pressure`", "Reads the raw (uncompensated) pressure level from the sensor.\n<END>", "<BEGIN>\n## `read_temperature`", "Gets the compensated temperature in degrees celsius.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extract...
Set backlight color to provided red, green, and blue values. If PWM is enabled then color components can be values from 0.0 to 1.0, otherwise components should be zero for off and non-zero for on.
"Set backlight color to provided red, green, and blue values. If PWM\n is enabled then color components can be values from 0.0 to 1.0, otherwise\n components should be zero for off and non-zero for on."
58
false
kervi/kervi-devices
set_color
34,504
LDU_FT/bpsmith/tia/on_security_data_node
LDU_FT
[ "<BEGIN>\n## `sma`", "If n is 0 then return the ltd mean; else return the n day mean\n<END>", "<BEGIN>\n## `true_range`", "http://en.wikipedia.org/wiki/Average_true_range\n The greatest of the following:\n - Current High less the current Low\n - Current High less the previous Close (absolute value)\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_security_data_node 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 on_security_data_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
process a securityData node - FIXME: currently not handling relateDate node
"process a securityData node - FIXME: currently not handling relateDate node"
226
false
bpsmith/tia
on_security_data_node
34,505
LDU_FT/merll/docker-map/push
LDU_FT
[ "<BEGIN>\n## `get_state_actions`", "For attached volumes, missing containers are created and initial containers are started and prepared with\n permissions. Outdated containers or containers with errors are recreated. The latter also applies to instance\n containers. Similarly, instance containers a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push API. 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 push API. 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...
Pushes an image repository to the registry. :param repository: Name of the repository (can include a tag). :type repository: unicode | str :param stream: Use the stream output format with additional status information. :type stream: bool :param raise_on_error: Raises errors in t...
"Pushes an image repository to the registry.\n\n :param repository: Name of the repository (can include a tag).\n :type repository: unicode | str\n :param stream: Use the stream output format with additional status information.\n :type stream: bool\n :param raise_on_error: Raises erro...
584
false
merll/docker-map
push
34,506
LDU_FT/aws/aws-xray-sdk-python/serialize
LDU_FT
[ "<BEGIN>\n## `middleware`", "Main middleware function, deals with all the X-Ray segment logic\n<END>", "<BEGIN>\n## `patch`", "patch the built-in `urllib/httplib/httplib.client` methods for tracing.\n<END>", "<BEGIN>\n## `unpatch`", "Unpatch any previously patched modules.\n This operation is idempoten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API. 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 serialize API. 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...
Serialize to JSON document that can be accepted by the X-Ray backend service. It uses jsonpickle to perform serialization.
"Serialize to JSON document that can be accepted by the\n X-Ray backend service. It uses jsonpickle to perform\n serialization."
198
false
aws/aws-xray-sdk-python
serialize
34,507
LDU_FT/bapakode/OmMongo/validate_unwrap
LDU_FT
[ "<BEGIN>\n## `setdefault`", "if the ``name`` is set, return its value. Otherwse set ``name`` to\n ``value`` and return ``value``\n<END>", "<BEGIN>\n## `ascending`", "Add a descending index for ``name`` to this index.", " :param name: Name to be used in the index\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_unwrap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_unwrap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Checks that value is a ``dict``, that every key is a valid MongoDB key, and that every value validates based on DictField.value_type
"Checks that value is a ``dict``, that every key is a valid MongoDB\n key, and that every value validates based on DictField.value_type"
248
false
bapakode/OmMongo
validate_unwrap
34,508
LDU_FT/bfrog/whizzer/unbuffered_write
LDU_FT
[ "<BEGIN>\n## `remote`", "Decorator that adds a remote attribute to a function.", " fn -- function being decorated\n name -- aliased name of the function, used for remote proxies\n types -- a argument type specifier, can be used to ensure\n arguments are of the correct type\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unbuffered_write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unbuffered_write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Performs an unbuffered write, the default unless socket.send does not send everything, in which case an unbuffered write is done and the write method is set to be a buffered write until the buffer is empty once again. buf -- bytes to send
"Performs an unbuffered write, the default unless socket.send does\n not send everything, in which case an unbuffered write is done and the\n write method is set to be a buffered write until the buffer is empty\n once again.\n\n buf -- bytes to send"
107
false
bfrog/whizzer
unbuffered_write
34,509
LDU_FT/scott-griffiths/bitstring/peeklist
LDU_FT
[ "<BEGIN>\n## `offsetcopy`", "Return a copy of a ByteStore with the newoffset.", " Not part of public interface.\n<END>", "<BEGIN>\n## `equal`", "Return True if ByteStores a == b.", " Not part of public interface.\n<END>", "<BEGIN>\n## `structparser`", "Parse struct-like format string token into ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the peeklist API. 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 peeklist API. 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...
Interpret next bits according to format string(s) and return list. fmt -- One or more strings with comma separated tokens describing how to interpret the next bits in the bitstring. kwargs -- A dictionary or keyword-value pairs - the keywords used in the format string w...
"Interpret next bits according to format string(s) and return list.\n\n fmt -- One or more strings with comma separated tokens describing\n how to interpret the next bits in the bitstring.\n kwargs -- A dictionary or keyword-value pairs - the keywords used in the\n format st...
251
false
scott-griffiths/bitstring
peeklist
34,510
LDU_FT/nikcub/floyd/filter
LDU_FT
[ "<BEGIN>\n## `get_file_contents`", "Get the context of the file using full path name\n<END>", "<BEGIN>\n## `import_model`", "imports a model of name from path, returning from local model\n cache if it has been previously loaded otherwise importing\n<END>", "<BEGIN>\n## `parse_md`", "Takes a post path a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. 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 filter API. 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 ...
filter results of dataset eg. Query('Posts').filter(post_type='post')
"filter results of dataset eg.\n \n Query('Posts').filter(post_type='post')"
71
false
nikcub/floyd
filter
34,511
LDU_FT/justquick/django-native-tags/now
LDU_FT
[ "<BEGIN>\n## `calendar`", "Creates a formatted ``HTMLCalendar``. \n Argument ``format`` can be one of ``month``, ``year``, or ``yearpage``\n Keyword arguments are collected and passed into ``HTMLCalendar.formatmonth``, \n ``HTMLCalendar.formatyear``, and ``HTMLCalendar.formatyearpage``", " Synta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the now API. 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 now API. 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...
Displays the date, formatted according to the given string. Uses the same format as PHP's ``date()`` function; see http://php.net/date for all the possible values. Sample usage:: It is {% now "jS F Y H:i" %}
"Displays the date, formatted according to the given string.\n\n Uses the same format as PHP's ``date()`` function; see http://php.net/date\n for all the possible values.\n\n Sample usage::\n\n It is {% now \"jS F Y H:i\" %}"
161
false
justquick/django-native-tags
now
34,512
LDU_FT/SuperCowPowers/chains/_cts_or_stc
LDU_FT
[ "<BEGIN>\n## `packet_meta_data`", "Pull out the metadata about each packet from the input_stream\n Args:\n None\n Returns:\n generator (dictionary): a generator that contains packet meta data in the form of a dictionary\n<END>", "<BEGIN>\n## `pull`", "Print out ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cts_or_stc API. 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 _cts_or_stc API. 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...
Does the data look like a Client to Server (cts) or Server to Client (stc) traffic?
"Does the data look like a Client to Server (cts) or Server to Client (stc) traffic?"
41
false
SuperCowPowers/chains
_cts_or_stc
34,513
LDU_FT/dusktreader/flask-praetorian/refresh
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 refresh API. 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 refresh API. 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...
Refreshes an existing JWT by creating a new one that is a copy of the old except that it has a refrehsed access expiration. .. example:: $ curl http://localhost:5000/refresh -X GET \ -H "Authorization: Bearer <your_token>"
"Refreshes an existing JWT by creating a new one that is a copy of the old\n except that it has a refrehsed access expiration.\n\n .. example::\n $ curl http://localhost:5000/refresh -X GET \\\n -H \"Authorization: Bearer <your_token>\""
73
false
dusktreader/flask-praetorian
refresh
34,514
LDU_FT/gtaylor/django-dynamodb-sessions/dynamodb_connection_factory
LDU_FT
[ "<BEGIN>\n## `dynamodb_connection_factory`", "Since SessionStore is called for every single page view, we'd be\n establishing new connections so frequently that performance would be\n hugely impacted. We'll lazy-load this here on a per-worker basis. Since\n boto3.resource.('dynamodb')objects are state-le...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dynamodb_connection_factory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dynamodb_connection_factory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Since SessionStore is called for every single page view, we'd be establishing new connections so frequently that performance would be hugely impacted. We'll lazy-load this here on a per-worker basis. Since boto3.resource.('dynamodb')objects are state-less (aside from security tokens), we're not too conc...
"Since SessionStore is called for every single page view, we'd be\n establishing new connections so frequently that performance would be\n hugely impacted. We'll lazy-load this here on a per-worker basis. Since\n boto3.resource.('dynamodb')objects are state-less (aside from security\n tokens), we're not too...
16
false
gtaylor/django-dynamodb-sessions
dynamodb_connection_factory
34,515
LDU_FT/ska-sa/katversion/get_git_cleaned_branch_name
LDU_FT
[ "<BEGIN>\n## `patch_init_py`", "Patch __init__.py to remove version check and append hard-coded version.\n<END>", "<BEGIN>\n## `setuptools_entry`", "Setuptools entry point for setting version and baking it into package.\n<END>", "<BEGIN>\n## `date_version`", "Generate a version string based on the SCM typ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_git_cleaned_branch_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_git_cleaned_branch_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Get the git branch name of the current HEAD in path. The branch name is scrubbed to conform to PEP-440. PEP-440 Local version identifiers shall only consist out of: - ASCII letters ( [a-zA-Z] ) - ASCII digits ( [0-9] ) - periods ( . ) https://www.python.org/dev/peps/pep-0440/#local-version-iden...
"Get the git branch name of the current HEAD in path. The branch name is\n scrubbed to conform to PEP-440.\n\n PEP-440 Local version identifiers shall only consist out of:\n - ASCII letters ( [a-zA-Z] )\n - ASCII digits ( [0-9] )\n - periods ( . )\n https://www.python.org/dev/peps/pep-0440/#local-vers...
41
false
ska-sa/katversion
get_git_cleaned_branch_name
34,516
LDU_FT/bluedazzle/wechat_sender/listen
LDU_FT
[ "<BEGIN>\n## `send`", "发送基本文字消息", " :param message: (必填|str) - 需要发送的文本消息\n :return: * status:发送状态,True 发送成,False 发送失败\n * message:发送失败详情\n<END>", "<BEGIN>\n## `delay_send`", "发送延时消息", " :param content: (必填|str) - 需要发送的消息内容\n :param time: (必填|str|datetime) - 发送消息...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listen API. 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 listen API. 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 ...
传入 bot 实例并启动 wechat_sender 服务 :param bot: (必填|Bot对象) - wxpy 的 Bot 对象实例 :param receivers: (选填|wxpy.Chat 对象|Chat 对象列表) - 消息接收者,wxpy 的 Chat 对象实例, 或 Chat 对象列表,如果为 list 第一个 Chat 为默认接收者。如果为 Chat 对象,则默认接收者也是此对象。 不填为当前 bot 对象的文件接收者 :param token: (选填|str) - 信令,防止 receiver 被非法滥用,建议加上 token 防止非法使用,如果使用 token 请在初始化 `S...
"传入 bot 实例并启动 wechat_sender 服务\n\n :param bot: (必填|Bot对象) - wxpy 的 Bot 对象实例\n :param receivers: (选填|wxpy.Chat 对象|Chat 对象列表) - 消息接收者,wxpy 的 Chat 对象实例, 或 Chat 对象列表,如果为 list 第一个 Chat 为默认接收者。如果为 Chat 对象,则默认接收者也是此对象。 不填为当前 bot 对象的文件接收者\n :param token: (选填|str) - 信令,防止 receiver 被非法滥用,建议加上 token 防止非法使用,如果使用 token 请在初...
15
false
bluedazzle/wechat_sender
listen
34,517
LDU_FT/lordmauve/lepton/set_bumper_color
LDU_FT
[ "<BEGIN>\n## `run_ahead`", "Run the particle system for the specified time frame at the\n specified framerate to move time forward as quickly as possible.\n Useful for \"warming up\" the particle system to reach a steady-state\n before anything is drawn or to simply \"skip ahead\" in time.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_bumper_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_bumper_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 ...
Set bumper color to the color of the particle that collided with it
"Set bumper color to the color of the particle that collided with it"
35
false
lordmauve/lepton
set_bumper_color
34,518
LDU_FT/beetbox/audioread/_no_more_pads
LDU_FT
[ "<BEGIN>\n## `_notify_caps`", "The callback for the sinkpad's \"notify::caps\" signal.\n<END>", "<BEGIN>\n## `_pad_added`", "The callback for GstElement's \"pad-added\" signal.\n<END>", "<BEGIN>\n## `_no_more_pads`", "The callback for GstElement's \"no-more-pads\" signal.\n<END>", "<BEGIN>\n## `_new_sam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _no_more_pads API. 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 _no_more_pads API. 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...
The callback for GstElement's "no-more-pads" signal.
"The callback for GstElement's \"no-more-pads\" signal."
58
false
beetbox/audioread
_no_more_pads
34,519
LDU_FT/byt3bl33d3r/CrackMapExec/add_credential
LDU_FT
[ "<BEGIN>\n## `add_computer`", "Check if this host has already been added to the database, if not add it in.\n<END>", "<BEGIN>\n## `remove_credentials`", "Removes a credential ID from the database\n<END>", "<BEGIN>\n## `options`", "SERVER IP of the SMB server\n NAME LNK file name\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_credential API. 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 add_credential API. 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...
Check if this credential has already been added to the database, if not add it in.
"Check if this credential has already been added to the database, if not add it in."
77
false
byt3bl33d3r/CrackMapExec
add_credential
34,520
LDU_FT/coreGreenberet/homematicip-rest-api/api_call
LDU_FT
[ "<BEGIN>\n## `from_json`", "this function will load the functional channel object \r\n from a json object and the given groups \r", " Args:\r\n js(dict): the json object\r\n groups(Iterable[Group]): the groups for referencing\n<END>", "<BEGIN>\n## `download_configuration`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_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 extracte...
Make the actual call to the HMIP server. Throws `HmipWrongHttpStatusError` or `HmipConnectionError` if connection has failed or response is not correct.
"Make the actual call to the HMIP server.\r\n\r\n Throws `HmipWrongHttpStatusError` or `HmipConnectionError` if connection has failed or\r\n response is not correct."
84
false
coreGreenberet/homematicip-rest-api
api_call
34,521
LDU_FT/b3j0f/schema/_setter
LDU_FT
[ "<BEGIN>\n## `_getter`", "Called when the parent element tries to get this property value.", " :param obj: parent object.\n<END>", "<BEGIN>\n## `_setter`", "Called when the parent element tries to set this property value.", " :param obj: parent object.\n :param value: new value to use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setter API. 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 _setter API. 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...
Called when the parent element tries to set this property value. :param obj: parent object. :param value: new value to use. If lambda, updated with the lambda result.
"Called when the parent element tries to set this property value.\n\n :param obj: parent object.\n :param value: new value to use. If lambda, updated with the lambda\n result."
101
false
b3j0f/schema
_setter
34,522
LDU_FT/bykof/billomapy/update_credit_note_item
LDU_FT
[ "<BEGIN>\n## `_create_get_request`", "Creates a get request and return the response data\n<END>", "<BEGIN>\n## `_create_put_request`", "Creates a put request and return the response data\n<END>", "<BEGIN>\n## `_create_delete_request`", "Creates a post request and return the response data\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_credit_note_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_credit_note_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Updates a credit note item :param credit_note_item_id: the credit note item id :param credit_note_item_dict: dict :return: dict
"Updates a credit note item\n\n :param credit_note_item_id: the credit note item id\n :param credit_note_item_dict: dict\n :return: dict"
502
false
bykof/billomapy
update_credit_note_item
34,523
LDU_FT/jameslyons/python_speech_features/magspec
LDU_FT
[ "<BEGIN>\n## `framesig`", "Frame a signal into overlapping frames.", " :param sig: the audio signal to frame.\n :param frame_len: length of each frame measured in samples.\n :param frame_step: number of samples after the start of the previous frame that the next frame should begin.\n :param winfunc:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the magspec API. 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 magspec API. 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...
Compute the magnitude spectrum of each frame in frames. If frames is an NxD matrix, output will be Nx(NFFT/2+1). :param frames: the array of frames. Each row is a frame. :param NFFT: the FFT length to use. If NFFT > frame_len, the frames are zero-padded. :returns: If frames is an NxD matrix, output will be...
"Compute the magnitude spectrum of each frame in frames. If frames is an NxD matrix, output will be Nx(NFFT/2+1).\n\n :param frames: the array of frames. Each row is a frame.\n :param NFFT: the FFT length to use. If NFFT > frame_len, the frames are zero-padded.\n :returns: If frames is an NxD matrix, output wi...
42
false
jameslyons/python_speech_features
magspec
34,524
LDU_FT/pyamg/pyamg/jacobi_prolongation_smoother
LDU_FT
[ "<BEGIN>\n## `make_csr`", "Convert A to CSR, if A is not a CSR or BSR matrix already.", " Parameters\n ----------\n A : array, matrix, sparse matrix\n (n x n) matrix to convert to CSR", " Returns\n -------\n A : csr_matrix, bsr_matrix\n If A is csr_matrix or bsr_matrix, then do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jacobi_prolongation_smoother 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 jacobi_prolongation_smoother API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Jacobi prolongation smoother. Parameters ---------- S : csr_matrix, bsr_matrix Sparse NxN matrix used for smoothing. Typically, A. T : csr_matrix, bsr_matrix Tentative prolongator C : csr_matrix, bsr_matrix Strength-of-connection matrix B : array Near nullspace ...
"Jacobi prolongation smoother.\n\n Parameters\n ----------\n S : csr_matrix, bsr_matrix\n Sparse NxN matrix used for smoothing. Typically, A.\n T : csr_matrix, bsr_matrix\n Tentative prolongator\n C : csr_matrix, bsr_matrix\n Strength-of-connection matrix\n B : array\n Nea...
1,074
true
pyamg/pyamg
jacobi_prolongation_smoother
34,525
LDU_FT/asweigart/pyautogui/_mouseUp
LDU_FT
[ "<BEGIN>\n## `_specialKeyEvent`", "Helper method for special keys.", " Source: http://stackoverflow.com/questions/11045814/emulate-media-key-press-on-mac\n<END>", "<BEGIN>\n## `_keyDown`", "Performs a keyboard key press without the release. This will put that\n key in a held down state.", " NOTE:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _mouseUp API. 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 _mouseUp API. 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...
Send the mouse up event to Windows by calling the mouse_event() win32 function. Args: x (int): The x position of the mouse event. y (int): The y position of the mouse event. button (str): The mouse button, either 'left', 'middle', or 'right' Returns: None
"Send the mouse up event to Windows by calling the mouse_event() win32\n function.\n\n Args:\n x (int): The x position of the mouse event.\n y (int): The y position of the mouse event.\n button (str): The mouse button, either 'left', 'middle', or 'right'\n\n Returns:\n None"
162
false
asweigart/pyautogui
_mouseUp
34,526
LDU_FT/minrk/wurlitzer/load_ipython_extension
LDU_FT
[ "<BEGIN>\n## `pipes`", "Capture C-level stdout/stderr in a context manager.", " The return value for the context manager is (stdout, stderr).", " Examples\n --------", " >>> with capture() as (stdout, stderr):\n ... printf(\"C-level stdout\")\n ... output = stdout.read()\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_ipython_extension 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 load_ipython_extension API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Register me as an IPython extension Captures all C output during execution and forwards to sys. Does nothing on terminal IPython. Use: %load_ext wurlitzer
"Register me as an IPython extension\n \n Captures all C output during execution and forwards to sys.\n \n Does nothing on terminal IPython.\n \n Use: %load_ext wurlitzer"
23
false
minrk/wurlitzer
load_ipython_extension
34,527
LDU_FT/mayfield/shellish/create_argparser
LDU_FT
[ "<BEGIN>\n## `hone_cache`", "A caching decorator that follows after the style of lru_cache. Calls\n that are sharper than previous requests are returned from the cache after\n honing in on the requested results using the `refineby` technique.", " The `refineby` technique can be `startswith`, `container...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_argparser API. 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 create_argparser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Factory for arg parser. Can be overridden as long as it returns an ArgParser compatible instance.
"Factory for arg parser. Can be overridden as long as it returns\n an ArgParser compatible instance."
172
false
mayfield/shellish
create_argparser
34,528
LDU_FT/hardbyte/python-can/check_tx_ok
LDU_FT
[ "<BEGIN>\n## `open`", "Opens a CAN connection using `CanalOpen()`.", " :param str configuration: the configuration: \"device_id; baudrate\"\n :param int flags: the flags to be set", " :raises can.CanError: if any error occurred\n :returns: Valid handle for CANAL API functions on su...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_tx_ok API. 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_tx_ok API. 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 if function :meth:`UcanServer.write_can_msg` successfully wrote CAN message(s). While using :meth:`UcanServer.write_can_msg_ex` the number of sent CAN messages can be less than the number of CAN messages which should be sent. :param ReturnCode result: Error code of the function. :return: True i...
"Checks if function :meth:`UcanServer.write_can_msg` successfully wrote CAN message(s).\n\n While using :meth:`UcanServer.write_can_msg_ex` the number of sent CAN messages can be less than\n the number of CAN messages which should be sent.\n\n :param ReturnCode result: Error code of the function.\n :return:...
417
false
hardbyte/python-can
check_tx_ok
34,529
LDU_FT/threeML/astromodels/set_uninformative_prior
LDU_FT
[ "<BEGIN>\n## `angular_distance_fast`", "Compute angular distance using the Haversine formula. Use this one when you know you will never ask for points at\n their antipodes. If this is not the case, use the angular_distance function which is slower, but works also for\n antipodes.", " :param lon1:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_uninformative_prior 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 set_uninformative_prior API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Sets the prior for the parameter to a uniform prior between the current minimum and maximum, or a log-uniform prior between the current minimum and maximum. NOTE: if the current minimum and maximum are not defined, the default bounds for the prior class will be used. :param prior_class : the c...
"Sets the prior for the parameter to a uniform prior between the current minimum and maximum, or a\n log-uniform prior between the current minimum and maximum.\n\n NOTE: if the current minimum and maximum are not defined, the default bounds for the prior class will be used.\n\n :param prior_class :...
240
false
threeML/astromodels
set_uninformative_prior
34,530
LDU_FT/justanr/Flask-Transfer/_validate
LDU_FT
[ "<BEGIN>\n## `pdftojpg`", "Converts a PDF to a JPG and places it back onto the FileStorage instance\n passed to it as a BytesIO object.", " Optional meta arguments are:\n * resolution: int or (int, int) used for wand to determine resolution,\n defaults to 300.\n * width: new width of ...
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 extract...
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 extract...
Runs all attached validators on the provided filehandle. In the base implmentation of Transfer, the result of `_validate` isn't checked. Rather validators are expected to raise UploadError to report failure. `_validate` can optionally catch all UploadErrors that occur or bail out ...
"Runs all attached validators on the provided filehandle.\n In the base implmentation of Transfer, the result of `_validate` isn't\n checked. Rather validators are expected to raise UploadError to report\n failure.\n\n `_validate` can optionally catch all UploadErrors that occur or bail out\...
25
false
justanr/Flask-Transfer
_validate
34,531
LDU_FT/keunwoochoi/kapre/mel
LDU_FT
[ "<BEGIN>\n## `_spectrogram_mono`", "x.shape : (None, 1, len_src),\n returns 2D batch of a mono power-spectrogram\n<END>", "<BEGIN>\n## `mel`", "[np] create a filterbank matrix to combine stft bins into mel-frequency bins\n use Slaney (said Librosa)", " n_mels: numbre of mel bands\n fmin : lo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mel API. 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 mel API. 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...
[np] create a filterbank matrix to combine stft bins into mel-frequency bins use Slaney (said Librosa) n_mels: numbre of mel bands fmin : lowest frequency [Hz] fmax : highest frequency [Hz] If `None`, use `sr / 2.0`
"[np] create a filterbank matrix to combine stft bins into mel-frequency bins\n use Slaney (said Librosa)\n\n n_mels: numbre of mel bands\n fmin : lowest frequency [Hz]\n fmax : highest frequency [Hz]\n If `None`, use `sr / 2.0`"
26
false
keunwoochoi/kapre
mel
34,532
LDU_FT/joerick/pyinstrument/load_report
LDU_FT
[ "<BEGIN>\n## `file_supports_color`", "Returns True if the running system's terminal supports color.", " Borrowed from Django\n https://github.com/django/django/blob/master/django/core/management/color.py\n<END>", "<BEGIN>\n## `load_report`", "Returns the session referred to by identifier\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_report API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_report API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns the session referred to by identifier
"Returns the session referred to by identifier"
43
false
joerick/pyinstrument
load_report
34,533
LDU_FT/tansey/gfl/solution_path
LDU_FT
[ "<BEGIN>\n## `solve_gfl`", "A very easy-to-use version of GFL solver that just requires the data and\n the edges.\n<END>", "<BEGIN>\n## `sample_gtf`", "Generate samples from the generalized graph trend filtering distribution via a modified Swendsen-Wang slice sampling algorithm.\n Options for likelihood...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solution_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solution_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Follows the solution path of the generalized lasso to find the best lambda value.
"Follows the solution path of the generalized lasso to find the best lambda value."
50
false
tansey/gfl
solution_path
34,534
LDU_FT/Unity-Technologies/ml-agents/_flatten
LDU_FT
[ "<BEGIN>\n## `get_action`", "Decides actions given observations information, and takes them in environment.\n :param brain_info: A dictionary of brain names and BrainInfo from environment.\n :return: an ActionInfo containing action, memories, values and an object\n to be passed to add experie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _flatten API. 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 _flatten API. 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...
Converts arrays to list. :param arr: numpy vector. :return: flattened list.
"Converts arrays to list.\n :param arr: numpy vector.\n :return: flattened list."
171
false
Unity-Technologies/ml-agents
_flatten
34,535
LDU_FT/ioos/compliance-checker/check_lat_extents
LDU_FT
[ "<BEGIN>\n## `is_opendap`", "Returns True if the URL is a valid OPeNDAP URL", " :param str url: URL for a remote OPeNDAP endpoint\n<END>", "<BEGIN>\n## `datetime_is_iso`", "Attempts to parse a date formatted in ISO 8601 format\n<END>", "<BEGIN>\n## `kvp_convert`", "Converts a list of string attribute...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_lat_extents API. 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_lat_extents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Check that the values of geospatial_lat_min/geospatial_lat_max approximately match the data. :param netCDF4.Dataset ds: An open netCDF dataset
"Check that the values of geospatial_lat_min/geospatial_lat_max\n approximately match the data.\n\n :param netCDF4.Dataset ds: An open netCDF dataset"
624
false
ioos/compliance-checker
check_lat_extents
34,536
LDU_FT/axel-events/axel/_timeout
LDU_FT
[ "<BEGIN>\n## `handle`", "Registers a handler. The handler can be transmitted together \r\n with two arguments as a list or dictionary. The arguments are:\r", " memoize \r\n if True, the execution result will be cached in self.memoize\r\n timeout \r\n will allocate a pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _timeout API. 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 _timeout API. 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...
Controls the time allocated for the execution of a method
"Controls the time allocated for the execution of a method"
17
false
axel-events/axel
_timeout
34,537
LDU_FT/joshspeagle/dynesty/cornerplot
LDU_FT
[ "<BEGIN>\n## `runplot`", "Plot live points, ln(likelihood), ln(weight), and ln(evidence)\n as a function of ln(prior volume).", " Parameters\n ----------\n results : :class:`~dynesty.results.Results` instance\n A :class:`~dynesty.results.Results` instance from a nested\n sampling run."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cornerplot API. 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 cornerplot API. 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...
Generate a corner plot of the 1-D and 2-D marginalized posteriors. Parameters ---------- results : :class:`~dynesty.results.Results` instance A :class:`~dynesty.results.Results` instance from a nested sampling run. **Compatible with results derived from** `nestle <http://kylebarbary...
"Generate a corner plot of the 1-D and 2-D marginalized posteriors.\n\n Parameters\n ----------\n results : :class:`~dynesty.results.Results` instance\n A :class:`~dynesty.results.Results` instance from a nested\n sampling run. **Compatible with results derived from**\n `nestle <http://kyl...
709
false
joshspeagle/dynesty
cornerplot
34,538
LDU_FT/dancsalo/TensorBase/neg_log_likelihood
LDU_FT
[ "<BEGIN>\n## `compute_samples`", "Sample from a Normal distribution with inferred mu and std\n<END>", "<BEGIN>\n## `neg_log_likelihood`", "Calculate Log Likelihood with particular mean and std\n x must be 2D. [batch_size * eqsamples* iwsamples, num_latent]\n<END>", "<BEGIN>\n## `compute_samples`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the neg_log_likelihood 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 neg_log_likelihood 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...
Calculate Log Likelihood with particular mean and std x must be 2D. [batch_size * eqsamples* iwsamples, num_latent]
"Calculate Log Likelihood with particular mean and std\n x must be 2D. [batch_size * eqsamples* iwsamples, num_latent]"
94
false
dancsalo/TensorBase
neg_log_likelihood
34,539
LDU_FT/github/octodns/apply
LDU_FT
[ "<BEGIN>\n## `compare`", "Compare zone data between 2 sources.", " Note: only things supported by both sources will be considered\n<END>", "<BEGIN>\n## `dump`", "Dump zone data from the specified source\n<END>", "<BEGIN>\n## `_equals`", "Checks whether two records are equal by comparing all field...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply API. 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 apply API. 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...
Submits actual planned changes to the provider. Returns the number of changes made
"Submits actual planned changes to the provider. Returns the number of\n changes made"
64
false
github/octodns
apply
34,540
LDU_FT/theelous3/asks/_body_callback
LDU_FT
[ "<BEGIN>\n## `request`", "Base function for one time http requests.", " Args:\n method (str): The http method to use. For example 'GET'\n uri (str): The url of the resource.\n Example: 'https://example.com/stuff'\n kwargs: Any number of arguments supported, found here:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _body_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _body_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
A callback func to be supplied if the user wants to do something directly with the response body's stream.
"A callback func to be supplied if the user wants to do something\n directly with the response body's stream."
75
false
theelous3/asks
_body_callback
34,541
LDU_FT/libyal/dtfabric/FoldByteStream
LDU_FT
[ "<BEGIN>\n## `Main`", "The main program function.", " Returns:\n bool: True if successful or False if not.\n<END>", "<BEGIN>\n## `CheckDirectory`", "Validates definition files in a directory.", " Args:\n path (str): path of the definition file.\n extension (Optional[str]): extension of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FoldByteStream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FoldByteStream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Folds the data type into a byte stream. Args: mapped_value (object): mapped value. Returns: bytes: byte stream. Raises: FoldingError: if the data type definition cannot be folded into the byte stream.
"Folds the data type into a byte stream.\n\n Args:\n mapped_value (object): mapped value.\n\n Returns:\n bytes: byte stream.\n\n Raises:\n FoldingError: if the data type definition cannot be folded into\n the byte stream."
373
false
libyal/dtfabric
FoldByteStream
34,542
LDU_FT/steveYeah/PyBomb/_query
LDU_FT
[ "<BEGIN>\n## `search`", "Full search of games resource, supporting all search fields\n available in API\n http://www.giantbomb.com/api/documentation#toc-0-17", " :param filter_by: dict\n :param return_fields: tuple\n :param sort_by: string\n :param desc: bool\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _query API. 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 _query API. 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 ...
:param params: dict :return: pybomb.clients.response
":param params: dict\n :return: pybomb.clients.response"
25
false
steveYeah/PyBomb
_query
34,543
LDU_FT/uralbash/sqlalchemy_mptt/mptt_before_update
LDU_FT
[ "<BEGIN>\n## `mptt_before_insert`", "Based on example\n https://bitbucket.org/zzzeek/sqlalchemy/src/73095b353124/examples/nested_sets/nested_sets.py?at=master\n<END>", "<BEGIN>\n## `mptt_before_update`", "Based on this example:\n http://stackoverflow.com/questions/889527/move-node-in-nested-set\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mptt_before_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mptt_before_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Based on this example: http://stackoverflow.com/questions/889527/move-node-in-nested-set
"Based on this example:\n http://stackoverflow.com/questions/889527/move-node-in-nested-set"
59
false
uralbash/sqlalchemy_mptt
mptt_before_update
34,544
LDU_FT/dmcc/PyStanfordDependencies/from_stanford_dependencies
LDU_FT
[ "<BEGIN>\n## `convert_trees`", "Convert a list of Penn Treebank formatted strings (ptb_trees)\n into Stanford Dependencies. The dependencies are represented\n as a list of sentences (CoNLL.Corpus), where each sentence\n (CoNLL.Sentence) is itself a list of CoNLL.Token objects.", " Cu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_stanford_dependencies 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 from_stanford_dependencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Construct a Sentence. stream is an iterable over strings where each string is a line representing a Stanford Dependency as in the output of the command line Stanford Dependency tool: deprel(gov-index, dep-depindex) The corresponding Penn Treebank formatted tree must be provided ...
"Construct a Sentence. stream is an iterable over strings\n where each string is a line representing a Stanford Dependency\n as in the output of the command line Stanford Dependency tool:\n\n deprel(gov-index, dep-depindex)\n\n The corresponding Penn Treebank formatted tree must be provi...
56
false
dmcc/PyStanfordDependencies
from_stanford_dependencies
34,545
LDU_FT/inveniosoftware-contrib/invenio-classifier/_get_core_keywords
LDU_FT
[ "<BEGIN>\n## `get_acronyms`", "Find acronyms and expansions from the fulltext.", " If needed, acronyms can already contain a dictionary of previously found\n acronyms that will be merged with the current results.\n<END>", "<BEGIN>\n## `_add_expansion_to_acronym_dict`", "Add an acronym to the dictiona...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_core_keywords 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 _get_core_keywords 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...
Return the output for the field codes. :var skw_matches: dict of {keyword: [info,...]} :var ckw_matches: dict of {keyword: [info,...]} :keyword spires: bool, to get the spires output :return: list of formatted core keywords
"Return the output for the field codes.\n\n :var skw_matches: dict of {keyword: [info,...]}\n :var ckw_matches: dict of {keyword: [info,...]}\n :keyword spires: bool, to get the spires output\n :return: list of formatted core keywords"
178
false
inveniosoftware-contrib/invenio-classifier
_get_core_keywords
34,546
LDU_FT/stefankoegl/kdtree/add
LDU_FT
[ "<BEGIN>\n## `require_axis`", "Check if the object of the function has axis and sel_axis members\n<END>", "<BEGIN>\n## `create`", "Creates a kd-tree from a list of points", " All points in the list must be of the same dimensionality.", " If no point_list is given, an empty tree is created. The numbe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. 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 add API. 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...
Adds a point to the current node or iteratively descends to one of its children. Users should call add() only to the topmost tree.
"Adds a point to the current node or iteratively\n descends to one of its children.\n\n Users should call add() only to the topmost tree."
72
false
stefankoegl/kdtree
add
34,547
LDU_FT/foutaise/texttable/set_header_align
LDU_FT
[ "<BEGIN>\n## `obj2unicode`", "Return a unicode representation of a python object\n<END>", "<BEGIN>\n## `len`", "Redefining len here so it will be able to work with non-ASCII characters\n<END>", "<BEGIN>\n## `set_chars`", "Set the characters used to draw lines between rows and columns", " - the ar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_header_align API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_header_align API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Set the desired header alignment - the elements of the array should be either "l", "c" or "r": * "l": column flushed left * "c": column centered * "r": column flushed right
"Set the desired header alignment\n\n - the elements of the array should be either \"l\", \"c\" or \"r\":\n\n * \"l\": column flushed left\n * \"c\": column centered\n * \"r\": column flushed right"
65
false
foutaise/texttable
set_header_align
34,548
LDU_FT/ahmontero/dop/domain_records
LDU_FT
[ "<BEGIN>\n## `droplets`", "This method returns the list of droplets\n<END>", "<BEGIN>\n## `reboot_droplet`", "This method allows you to reboot a droplet. This is the preferred method\n to use if a server is not responding.\n<END>", "<BEGIN>\n## `power_cycle_droplet`", "This method allows you to pow...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the domain_records API. 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 domain_records API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
This method returns all of your current domain records. Required parameters domain_id: Integer or Domain Name (e.g. domain.com), specifies the domain for which to retrieve records.
"This method returns all of your current domain records.\n\n Required parameters\n\n domain_id:\n Integer or Domain Name (e.g. domain.com), specifies the domain\n for which to retrieve records."
102
false
ahmontero/dop
domain_records
34,549
LDU_FT/simodalla/pygmount/requirements
LDU_FT
[ "<BEGIN>\n## `kwargs_helper`", "This function preprocesses the kwargs dictionary to sanitize it.\n<END>", "<BEGIN>\n## `GetDate`", "Prompt the user for a date.", " This will raise a Zenity Calendar Dialog for the user to pick a date.\n It will return a datetime.date object with the date or None if the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requirements API. 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 requirements API. 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...
Verifica che tutti i pacchetti apt necessari al "funzionamento" della classe siano installati. Se cosi' non fosse li installa.
"Verifica che tutti i pacchetti apt necessari al \"funzionamento\" della\n classe siano installati. Se cosi' non fosse li installa."
56
false
simodalla/pygmount
requirements
34,550
LDU_FT/sprymix/metamagic.json/_encode_key
LDU_FT
[ "<BEGIN>\n## `loadb`", "Deserialize ``b`` (instance of ``bytes``) to a Python object.\n<END>", "<BEGIN>\n## `_encode_str`", "Return an ASCII-only JSON representation of a Python string\n<END>", "<BEGIN>\n## `_encode_numbers`", "Returns a JSON representation of a Python number (int, float or Decimal)\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_key API. 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 _encode_key API. 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...
Encodes a dictionary key - a key can only be a string in std JSON
"Encodes a dictionary key - a key can only be a string in std JSON"
20
false
sprymix/metamagic.json
_encode_key
34,551
LDU_FT/blaix/tdubs/called_with
LDU_FT
[ "<BEGIN>\n## `_handle_call`", "Extends Stub call handling behavior to be callable by default.\n<END>", "<BEGIN>\n## `formatted_args`", "Format call arguments as a string.", " This is used to make test failure messages more helpful by referring\n to calls using a string that matches how they we...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the called_with API. 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 called_with API. 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...
Return True if the spy was called with the specified args/kwargs. Otherwise raise VerificationError.
"Return True if the spy was called with the specified args/kwargs.\n\n Otherwise raise VerificationError."
16
false
blaix/tdubs
called_with
34,552
LDU_FT/XuShaohua/bcloud/get_download_link
LDU_FT
[ "<BEGIN>\n## `display_files`", "重新格式化一下文件列表, 去除不需要的信息", " 这一操作主要是为了便于接下来的查找工作.\n 文件的path都被提取出来, 然后放到了一个list中.\n<END>", "<BEGIN>\n## `init_db`", "这个任务数据库只在程序开始时读入, 在程序关闭时导出.", " 因为Gtk没有像在Qt中那么方便的使用SQLite, 而必须将所有数据读入一个\n liststore中才行.\n<END>", "<BEGIN>\n## `get_task_db`", "从数...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_download_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_download_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
在下载之前, 要先获取最终的下载链接. path - 一个文件的绝对路径. @return red_url, red_url 是重定向后的URL, 如果获取失败, 就返回原来的dlink;
"在下载之前, 要先获取最终的下载链接.\n\n path - 一个文件的绝对路径.\n\n @return red_url, red_url 是重定向后的URL, 如果获取失败,\n 就返回原来的dlink;"
199
false
XuShaohua/bcloud
get_download_link
34,553
LDU_FT/Robpol86/terminaltables/set_terminal_title
LDU_FT
[ "<BEGIN>\n## `combine`", "Zip borders between items in `line`.", " e.g. ('l', '1', 'c', '2', 'c', '3', 'r')", " :param iter line: List to iterate.\n :param left: Left border.\n :param intersect: Column separator.\n :param right: Right border.", " :return: Yields combined objects.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_terminal_title API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_terminal_title API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Set the terminal title. :param title: The title to set (string, unicode, bytes accepted). :param kernel32: Optional mock kernel32 object. For testing. :return: If title changed successfully (Windows only, always True on Linux/OSX). :rtype: bool
"Set the terminal title.\n\n :param title: The title to set (string, unicode, bytes accepted).\n :param kernel32: Optional mock kernel32 object. For testing.\n\n :return: If title changed successfully (Windows only, always True on Linux/OSX).\n :rtype: bool"
88
false
Robpol86/terminaltables
set_terminal_title
34,554
LDU_FT/spyder-ide/spyder/request_job
LDU_FT
[ "<BEGIN>\n## `set_bracket_matcher_color_scheme`", "Set color scheme for matched parentheses.\n<END>", "<BEGIN>\n## `long_banner`", "Banner for IPython widgets with pylab message\n<END>", "<BEGIN>\n## `reset_namespace`", "Reset the namespace by removing all names defined by the user.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_job API. 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 request_job API. 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...
Request a job execution. The job will be executed after the delay specified in the DelayJobRunner contructor elapsed if no other job is requested until then. :param job: job. :type job: callable :param args: job's position arguments :param kwargs: job's keyworde...
"Request a job execution.\n\n The job will be executed after the delay specified in the\n DelayJobRunner contructor elapsed if no other job is requested until\n then.\n\n :param job: job.\n :type job: callable\n :param args: job's position arguments\n :param kwargs: job'...
2,144
true
spyder-ide/spyder
request_job
34,555
LDU_FT/kodexlab/reliure/as_dict
LDU_FT
[ "<BEGIN>\n## `add_field`", "Add a named field to the schema.", " .. Warning:: the field name should not contains spaces and should not\n start with an underscore.", " :param name: name of the new field\n :type name: str\n :param field: type instance for the field \n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
returns a dictionary view of the option :returns: the option converted in a dict :rtype: dict
"returns a dictionary view of the option\n \n :returns: the option converted in a dict\n :rtype: dict"
243
false
kodexlab/reliure
as_dict
34,556
LDU_FT/talkincode/txradius/radius_encrypt_keys
LDU_FT
[ "<BEGIN>\n## `CreateReply`", "Create a new packet as a reply to this one. This method\n makes sure the authenticator and secret are copied over\n to the new instance.\n<END>", "<BEGIN>\n## `AddAttribute`", "Add an attribute to the packet.", " :param key: attribute name or identificati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the radius_encrypt_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the radius_encrypt_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. T...
Construct a plaintext version of the String field by concate- nating the Key-Length and Key sub-fields. If necessary, pad the resulting string until its length (in octets) is an even multiple of 16. It is recommended that zero octets (0x00) be used for padding. Call this plaintext...
"Construct a plaintext version of the String field by concate-\n nating the Key-Length and Key sub-fields. If necessary, pad\n the resulting string until its length (in octets) is an even\n multiple of 16. It is recommended that zero octets (0x00) be\n used for padding. Call this plai...
61
false
talkincode/txradius
radius_encrypt_keys
34,557
LDU_FT/adamcharnock/django-hordak/currency_exchange
LDU_FT
[ "<BEGIN>\n## `ratio_split`", "Split in_value according to the ratios specified in `ratios`", " This is special in that it ensures the returned values always sum to\n in_value (i.e. we avoid losses or gains due to rounding errors). As a\n result, this method returns a list of `Decimal` values with lengt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the currency_exchange API. 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 currency_exchange API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Exchange funds from one currency to another Use this method to represent a real world currency transfer. Note this process doesn't care about exchange rates, only about the value of currency going in and out of the transaction. You can also record any exchange fees by syphoning off funds to ``fee_acco...
"Exchange funds from one currency to another\n\n Use this method to represent a real world currency transfer. Note this\n process doesn't care about exchange rates, only about the value\n of currency going in and out of the transaction.\n\n You can also record any exchange fees by syphoning off funds to ``f...
84
false
adamcharnock/django-hordak
currency_exchange
34,558
LDU_FT/nugget/python-insteonplm/set_x10_all_bit_mask
LDU_FT
[ "<BEGIN>\n## `data_received`", "Receive data from the protocol.", " Called when asyncio.Protocol detects received data from network.\n<END>", "<BEGIN>\n## `connection_lost`", "Reestablish the connection to the transport.", " Called when asyncio.Protocol loses the network connection.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_x10_all_bit_mask API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_x10_all_bit_mask API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Set the x10_all_bit_mask for the current group/button.
"Set the x10_all_bit_mask for the current group/button."
375
false
nugget/python-insteonplm
set_x10_all_bit_mask
34,559
LDU_FT/bennylope/django-organizations/create_view
LDU_FT
[ "<BEGIN>\n## `invitation_backend`", "Returns a specified invitation backend", " Args:\n backend: dotted path to the invitation backend class\n namespace: URL namespace to use", " Returns:\n an instance of an InvitationBackend\n<END>", "<BEGIN>\n## `registration_backend`", "Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 extra...
Initiates the organization and user account creation process
"Initiates the organization and user account creation process"
90
false
bennylope/django-organizations
create_view
34,560
LDU_FT/scivision/histutils/write_quota
LDU_FT
[ "<BEGIN>\n## `cp_parents`", "This function requires Python >= 3.6.", " This acts like bash cp --parents in Python\n inspiration from\n http://stackoverflow.com/questions/15329223/copy-a-file-into-a-directory-with-its-original-leading-directories-appended", " example\n source: /tmp/e/f\n dest...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_quota API. 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 write_quota API. 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...
aborts writing if not enough space on drive to write
"aborts writing if not enough space on drive to write"
58
false
scivision/histutils
write_quota
34,561
LDU_FT/kylemede/KMlogger/addFileHandler
LDU_FT
[ "<BEGIN>\n## `getLogger`", "This will either return the logging object already\n instantiated, or instantiate a new one and return it. \n **Use this function to both create and return any logger** to avoid \n accidentally adding additional handlers by using the setUpLogger function \n instead.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addFileHandler API. 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 addFileHandler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
This function will add a file handler to a log with the provided level. Args: lvl (int): The severity level of messages printed to the file with the file handler, default = 1.
"This function will add a file handler to a log with the provided level.\n \n Args:\n lvl (int): The severity level of messages printed to the file with \n the file handler, default = 1."
26
false
kylemede/KMlogger
addFileHandler
34,562
LDU_FT/barryp/py-amqplib/_setup_transport
LDU_FT
[ "<BEGIN>\n## `_textlist`", "Returns a list of text strings contained within an element and its sub-elements.", " Helpful for extracting text from prose-oriented XML (such as XHTML or DocBook).\n<END>", "<BEGIN>\n## `_reindent`", "Remove the existing indentation from each line of a chunk of\n text, s, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_transport API. 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 _setup_transport API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Setup to _write() directly to the socket, and do our own buffered reads.
"Setup to _write() directly to the socket, and\n do our own buffered reads."
449
false
barryp/py-amqplib
_setup_transport
34,563
LDU_FT/the01/python-paps/_send
LDU_FT
[ "<BEGIN>\n## `format_message_type`", "Get printable version for message type", " :param message_type: Message type\n :type message_type: int\n :return: Printable version\n :rtype: str\n<END>", "<BEGIN>\n## `format_data`", "Format bytes for printing", " :param data: Bytes\n :type data: No...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracted d...
Send an UDP message :param ip: Ip to send to :type ip: str :param port: Port to send to :type port: int :return: Number of bytes sent :rtype: int
"Send an UDP message\n\n :param ip: Ip to send to\n :type ip: str\n :param port: Port to send to\n :type port: int\n :return: Number of bytes sent\n :rtype: int"
182
false
the01/python-paps
_send
34,564
LDU_FT/kronenthaler/mod-pbxproj/add_library_search_paths
LDU_FT
[ "<BEGIN>\n## `has_child`", "Checks if the given child id\n :param child: The id to check if it's a child of the group\n :return: True if the given id it's a child of this group, False otherwise\n<END>", "<BEGIN>\n## `add_file`", "Adds a file to the project, taking care of the type of the file an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_library_search_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_library_search_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Adds paths to the LIBRARY_SEARCH_PATHS configuration. :param paths: A string or array of strings :param recursive: Add the paths as recursive ones :param escape: Escape the path in case it contains spaces :param target_name: Target name or list of target names to add the flag to or None ...
"Adds paths to the LIBRARY_SEARCH_PATHS configuration.\n :param paths: A string or array of strings\n :param recursive: Add the paths as recursive ones\n :param escape: Escape the path in case it contains spaces\n :param target_name: Target name or list of target names to add the flag to or ...
71
false
kronenthaler/mod-pbxproj
add_library_search_paths
34,565
LDU_FT/django-fluent/django-fluent-contents/__initial_minus_queryset
LDU_FT
[ "<BEGIN>\n## `type_id`", "Shortcut to retrieving the ContentType id of the model.\n<END>", "<BEGIN>\n## `get_output_cache_key`", ".. versionadded:: 0.9\n Return the default cache key which is used to store a rendered item.\n By default, this function generates the cache key using :func:`ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __initial_minus_queryset 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 __initial_minus_queryset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Gives all elements from self._initial having a slot value that is not already in self.get_queryset()
"Gives all elements from self._initial having a slot value that is not already\n in self.get_queryset()"
227
false
django-fluent/django-fluent-contents
__initial_minus_queryset
34,566
LDU_FT/Syndace/python-omemo/deleteJID
LDU_FT
[ "<BEGIN>\n## `coroutine`", "Implementation of a coroutine.", " Use as a decorator:\n @coroutine\n def foo():\n result = yield somePromise", " The function passed should be a generator yielding instances of the Promise class\n (or compatible).\n The coroutine waits for the Promise to r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deleteJID API. 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 deleteJID API. 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...
Delete all data associated with a JID. This includes the list of active/inactive devices, all sessions with that JID and all information about trusted keys.
"Delete all data associated with a JID. This includes the list of active/inactive\n devices, all sessions with that JID and all information about trusted keys."
45
false
Syndace/python-omemo
deleteJID
34,567
LDU_FT/standage/tag/merge
LDU_FT
[ "<BEGIN>\n## `accession`", "Parse accession number from commonly supported formats.", " If the defline does not match one of the following formats, the entire\n description (sans leading caret) will be returned.", " * >gi|572257426|ref|XP_006607122.1|\n * >gnl|Tcas|XP_008191512.1\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Merge this range object with another (ranges need not overlap or abut). :returns: a new Range object representing the interval containing both ranges.
"Merge this range object with another (ranges need not overlap or abut).\n\n :returns: a new Range object representing the interval containing both\n ranges."
114
false
standage/tag
merge
34,568
LDU_FT/IntegralDefense/critsapi/add_event
LDU_FT
[ "<BEGIN>\n## `connect`", "Starts the mongodb connection. Must be called before anything else\n will work.\n<END>", "<BEGIN>\n## `find`", "Search a collection for the query provided. Just a raw interface to\n mongo to do any query you want.", " Args:\n collection: The db colle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_event API. 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 add_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Adds an event. If the event name already exists, it will return that event instead. Args: source: Source of the information reference: A reference where more information can be found event_title: The title of the event event_type: The type of event. See y...
"Adds an event. If the event name already exists, it will return that\n event instead.\n\n Args:\n source: Source of the information\n reference: A reference where more information can be found\n event_title: The title of the event\n event_type: The type of even...
67
false
IntegralDefense/critsapi
add_event
34,569
LDU_FT/entrepreneur-interet-general/mkinx/train
LDU_FT
[ "<BEGIN>\n## `serve`", "Start a server which will watch .md and .rst files for changes.\n If a md file changes, the Home Documentation is rebuilt. If a .rst\n file changes, the updated sphinx project is rebuilt", " Args:\n args (ArgumentParser): flags from the CLI\n<END>", "<BEGIN>\n## `build`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the train API. 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 train API. 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...
Train and validate the LR on a train and test dataset Args: X_train (np.array): Training data Y_train (np.array): Training labels X_test (np.array): Test data Y_test (np.array): Test labels
"Train and validate the LR on a train and test dataset\n\n Args:\n X_train (np.array): Training data\n Y_train (np.array): Training labels\n X_test (np.array): Test data\n Y_test (np.array): Test labels"
22
false
entrepreneur-interet-general/mkinx
train
34,570
LDU_FT/wavycloud/pyboto3/create_fleet
LDU_FT
[ "<BEGIN>\n## `create_endpoint`", "Creates an endpoint using the provided settings.\n See also: AWS API Documentation", " :example: response = client.create_endpoint(\n EndpointIdentifier='string',\n EndpointType='source'|'target',\n EngineName='string',\n Username='string',\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_fleet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_fleet API. 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...
Creates a new fleet. See also: AWS API Documentation :example: response = client.create_fleet( Name='string', ImageName='string', InstanceType='string', ComputeCapacity={ 'DesiredInstances': 123 }, VpcConfig={ 'SubnetIds': [ ...
"Creates a new fleet.\n See also: AWS API Documentation\n \n \n :example: response = client.create_fleet(\n Name='string',\n ImageName='string',\n InstanceType='string',\n ComputeCapacity={\n 'DesiredInstances': 123\n },\n VpcConfig={\n 'Subnet...
3,657
true
wavycloud/pyboto3
create_fleet
34,571
LDU_FT/openvax/pyensembl/distance_to_interval
LDU_FT
[ "<BEGIN>\n## `_write_csv`", "Parameters\n ----------\n df : pandas.DataFrame", " csv_path : str", " chunksize : int\n Number of rows to write at a time. Helps to limit memory\n consumption while writing a CSV.\n<END>", "<BEGIN>\n## `cached_dataframe`", "If...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distance_to_interval 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 distance_to_interval API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Find the distance between intervals [start1, end1] and [start2, end2]. If the intervals overlap then the distance is 0.
"Find the distance between intervals [start1, end1] and [start2, end2].\n If the intervals overlap then the distance is 0."
234
false
openvax/pyensembl
distance_to_interval
34,572