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/deshima-dev/decode/array
LDU_FT
[ "<BEGIN>\n## `xarrayfunc`", "Make a function compatible with xarray.DataArray.", " This function is intended to be used as a decorator like::", " >>> @dc.xarrayfunc\n >>> def func(array):\n ... # do something\n ... return newarray\n >>>\n >>> result = func(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the array API. 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 array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Create an array as an instance of xarray.DataArray with Decode accessor. Args: data (numpy.ndarray): 2D (time x channel) array. tcoords (dict, optional): Dictionary of arrays that label time axis. chcoords (dict, optional): Dictionary of arrays that label channel axis. scalarcoords ...
"Create an array as an instance of xarray.DataArray with Decode accessor.\n\n Args:\n data (numpy.ndarray): 2D (time x channel) array.\n tcoords (dict, optional): Dictionary of arrays that label time axis.\n chcoords (dict, optional): Dictionary of arrays that label channel axis.\n scalar...
137
false
deshima-dev/decode
array
20,273
LDU_FT/briancappello/flask-unchained/get_message_plain_text
LDU_FT
[ "<BEGIN>\n## `create`", "Create an instance of a model.", " :param instance: The created model instance.\n :param errors: Any errors.\n :return: The created model instance, or a dictionary of errors.\n<END>", "<BEGIN>\n## `patch`", "Partially update a model instance.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_message_plain_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_message_plain_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Converts an HTML message to plain text. :param msg: A :class:`~flask_mail.Message` :return: The plain text message.
"Converts an HTML message to plain text.\n\n :param msg: A :class:`~flask_mail.Message`\n :return: The plain text message."
597
false
briancappello/flask-unchained
get_message_plain_text
20,274
LDU_FT/mesosphere/deimos/logger
LDU_FT
[ "<BEGIN>\n## `dirs`", "Provider a generator of container state directories.", " If exited is None, all are returned. If it is False, unexited\n containers are returned. If it is True, only exited containers are\n returned.\n<END>", "<BEGIN>\n## `methods`", "Names of operations provided ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logger API. 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 logger API. 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 ...
Obtain a function logger for the calling function. Uses the inspect module to find the name of the calling function and its position in the module hierarchy. With the optional height argument, logs for caller's caller, and so forth.
"Obtain a function logger for the calling function. Uses the inspect module\n to find the name of the calling function and its position in the module\n hierarchy. With the optional height argument, logs for caller's caller, and\n so forth."
23
false
mesosphere/deimos
logger
20,275
LDU_FT/DarkEnergySurvey/ugali/pixelizeCatalog
LDU_FT
[ "<BEGIN>\n## `integrate`", "Calculate the 2D integral of the 1D surface brightness profile \n (i.e, the flux) between rmin and rmax (elliptical radii). ", " Parameters:\n -----------\n rmin : minimum integration radius (deg)\n rmax : maximum integration radius (deg)", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pixelizeCatalog API. 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 pixelizeCatalog API. 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...
Break catalog into chunks by healpix pixel. Parameters: ----------- infiles : List of input files config : Configuration file force : Overwrite existing files (depricated) Returns: -------- None
"Break catalog into chunks by healpix pixel.\n \n Parameters:\n -----------\n infiles : List of input files\n config : Configuration file\n force : Overwrite existing files (depricated)\n \n Returns:\n --------\n None"
614
false
DarkEnergySurvey/ugali
pixelizeCatalog
20,276
LDU_FT/Preston-Landers/concurrent-log-handler/getLockFilename
LDU_FT
[ "<BEGIN>\n## `get_all_logger_names`", "Return ``list`` of names of all loggers than have been accessed.", " Warning: this is sensitive to internal structures in the standard logging module.\n<END>", "<BEGIN>\n## `queuify_logger`", "Replace logger's handlers with a queue handler while adding existing\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getLockFilename API. 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 getLockFilename API. 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...
Decide the lock filename. If the logfile is file.log, then we use `.__file.lock` and not `file.log.lock`. This only removes the extension if it's `*.log`. :return: the path to the lock file.
"Decide the lock filename. If the logfile is file.log, then we use `.__file.lock` and\n not `file.log.lock`. This only removes the extension if it's `*.log`.\n\n :return: the path to the lock file."
24
false
Preston-Landers/concurrent-log-handler
getLockFilename
20,277
LDU_FT/Zaeb0s/epoll-socket-server/handle_readable
LDU_FT
[ "<BEGIN>\n## `handle_readable`", "Return True: The client is re-registered to the selector object.\n Return False: The server disconnects the client.\n<END>", "<BEGIN>\n## `_mainthread_accept_clients`", "Accepts new clients and sends them to the to _handle_accepted within a subthread\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_readable API. 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 handle_readable API. 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...
Return True: The client is re-registered to the selector object. Return False: The server disconnects the client.
"Return True: The client is re-registered to the selector object.\n Return False: The server disconnects the client."
10
false
Zaeb0s/epoll-socket-server
handle_readable
20,278
LDU_FT/schapman1974/tinymongo/parse_md_to_rst
LDU_FT
[ "<BEGIN>\n## `parse_md_to_rst`", "Read Markdown file and convert to ReStructured Text.\n<END>", "<BEGIN>\n## `build_table`", "Builds a new tinydb table at the parent database\n :return:\n<END>", "<BEGIN>\n## `drop`", "Removes a collection from the database.\n **kwargs only because of the opt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_md_to_rst API. 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 parse_md_to_rst API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Read Markdown file and convert to ReStructured Text.
"Read Markdown file and convert to ReStructured Text."
38
false
schapman1974/tinymongo
parse_md_to_rst
20,279
LDU_FT/sprockets/sprockets.mixins.http/_error_message
LDU_FT
[ "<BEGIN>\n## `append_response`", "Append the response to the stack of responses.", " :param tornado.httpclient.HTTPResponse response: The HTTP response\n<END>", "<BEGIN>\n## `body`", "Returns the HTTP response body, deserialized if possible.", " :rtype: mixed\n<END>", "<BEGIN>\n## `links`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _error_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _error_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Try and extract the error message from a HTTP error response. :rtype: str
"Try and extract the error message from a HTTP error response.\n\n :rtype: str"
35
false
sprockets/sprockets.mixins.http
_error_message
20,280
LDU_FT/childsish/lhc-python/_update_sorting
LDU_FT
[ "<BEGIN>\n## `_get_sorted_iterator`", "Get the iterator over the sorted items.", " This function decides whether the items can be sorted in memory or on disk.\n :return:\n<END>", "<BEGIN>\n## `_split`", "Splits the file into several chunks.", " If the original file is too big to fit i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_sorting API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_sorting API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Insert new entries into the merged iterator. :param sorted_tops: A SortedDict. :param tops: The most recent entry from each iterator. :param idxs: The indices to update.
"Insert new entries into the merged iterator.\n\n :param sorted_tops: A SortedDict.\n :param tops: The most recent entry from each iterator.\n :param idxs: The indices to update."
76
false
childsish/lhc-python
_update_sorting
20,281
LDU_FT/sampsyo/confuse/represent_bool
LDU_FT
[ "<BEGIN>\n## `namespace_to_dict`", "If obj is argparse.Namespace or optparse.Values we'll return\n a dict representation of it, else return the original object.", " Redefine this method if using other parsers.", " :param obj: *\n :return:\n :rtype: dict or *\n<END>", "<BEGIN>\n## `_package_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the represent_bool API. 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 represent_bool API. 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...
Represent bool as 'yes' or 'no' instead of 'true' or 'false'.
"Represent bool as 'yes' or 'no' instead of 'true' or 'false'."
79
false
sampsyo/confuse
represent_bool
20,282
LDU_FT/czepluch/pysecp256k1/ecdsa_sign_compact
LDU_FT
[ "<BEGIN>\n## `_ecdsa_sign_recoverable`", "Takes a message of 32 bytes and a private key\n Returns a recoverable signature of length 64\n<END>", "<BEGIN>\n## `_parse_to_recoverable_signature`", "Returns a parsed recoverable signature of length 65 bytes\n<END>", "<BEGIN>\n## `ecdsa_sign_compact`", "T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ecdsa_sign_compact 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 ecdsa_sign_compact 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...
Takes the same message and seckey as _ecdsa_sign_recoverable Returns an unsigned char array of length 65 containing the signed message
"Takes the same message and seckey as _ecdsa_sign_recoverable\n Returns an unsigned char array of length 65 containing the signed message"
14
false
czepluch/pysecp256k1
ecdsa_sign_compact
20,283
LDU_FT/trombastic/PyScada/status
LDU_FT
[ "<BEGIN>\n## `_reinit_daq_daemons`", "update the daq daemon configuration when changes be applied in the models\n<END>", "<BEGIN>\n## `connect`", "establish a connection to the Instrument\n<END>", "<BEGIN>\n## `find_gap`", "try to find a address gap in the list of modbus registers\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status API. 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 status API. 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 ...
write the current daemon status to stdout
"write the current daemon status to stdout"
60
false
trombastic/PyScada
status
20,284
LDU_FT/pallets/flask-sqlalchemy/load_logged_in_user
LDU_FT
[ "<BEGIN>\n## `should_set_tablename`", "Determine whether ``__tablename__`` should be automatically generated\n for a model.", " * If no class in the MRO sets a name, one should be generated.\n * If a declared attr is found, it should be used instead.\n * If a name is found, it should be used if the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_logged_in_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_logged_in_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
If a user id is stored in the session, load the user object from the database into ``g.user``.
"If a user id is stored in the session, load the user object from\n the database into ``g.user``."
73
false
pallets/flask-sqlalchemy
load_logged_in_user
20,285
LDU_FT/todbot/blink1-python/readPattern
LDU_FT
[ "<BEGIN>\n## `blink1`", "Context manager which automatically shuts down the Blink(1)\n after use.\n :param switch_off: turn blink(1) off when existing context\n :param gamma: set gamma curve (as tuple)\n :param white_point: set white point (as tuple)\n<END>", "<BEGIN>\n## `find`", "Find a praticul...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readPattern API. 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 readPattern API. 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...
Read the entire color pattern :return List of pattern line tuples
"Read the entire color pattern\n :return List of pattern line tuples"
33
false
todbot/blink1-python
readPattern
20,286
LDU_FT/Gawen/pytun/open
LDU_FT
[ "<BEGIN>\n## `mode_name`", "Returns the tunnel mode's name, for printing purpose.\n<END>", "<BEGIN>\n## `open`", "Create the tunnel.\n If the tunnel is already opened, the function will\n raised an AlreadyOpened exception.\n<END>", "<BEGIN>\n## `close`", "Close the tunnel.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. 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 open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Create the tunnel. If the tunnel is already opened, the function will raised an AlreadyOpened exception.
"Create the tunnel.\n If the tunnel is already opened, the function will\n raised an AlreadyOpened exception."
12
false
Gawen/pytun
open
20,287
LDU_FT/opendns/pyinvestigate/security
LDU_FT
[ "<BEGIN>\n## `get`", "A generic method to make GET requests to the OpenDNS Investigate API\n on the given URI.\n<END>", "<BEGIN>\n## `post`", "A generic method to make POST requests to the OpenDNS Investigate API\n on the given URI.\n<END>", "<BEGIN>\n## `get_parse`", "Convenience method to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the security API. 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 security API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get the Security Information for the given domain. For details, see https://investigate.umbrella.com/docs/api#securityInfo
"Get the Security Information for the given domain.\n\n For details, see https://investigate.umbrella.com/docs/api#securityInfo"
38
false
opendns/pyinvestigate
security
20,288
LDU_FT/insomnia-lab/libreant/requestedFormat
LDU_FT
[ "<BEGIN>\n## `get_def_conf`", "return default configurations as simple dict\n<END>", "<BEGIN>\n## `_load_paths`", "Goes recursevly through the given list of paths\n in order to find and pass all preset files to ```_load_preset()```\n<END>", "<BEGIN>\n## `_load_preset`", "load, validate and store a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requestedFormat API. 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 requestedFormat API. 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...
Return the response format requested by client Client could specify requested format using: (options are processed in this order) - `format` field in http request - `Accept` header in http request Example: chooseFormat(request, ['text/html','application/json'...
"Return the response format requested by client\n\n Client could specify requested format using:\n (options are processed in this order)\n - `format` field in http request\n - `Accept` header in http request\n Example:\n chooseFormat(request, ['text/html','applicati...
150
false
insomnia-lab/libreant
requestedFormat
20,289
LDU_FT/spacetelescope/drizzlepac/getHeader
LDU_FT
[ "<BEGIN>\n## `check_and_get_data`", "Verify that all specified files are present. If not, retrieve them from MAST.", " Parameters\n ----------\n input_list : list\n List of one or more calibrated fits images that will be used for catalog generation.", " Returns\n =======\n total_input...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getHeader API. 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 getHeader API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return just the specified header extension fileutil is used instead of fits to account for non-FITS input images. openImage returns a fits object.
"Return just the specified header extension fileutil\n is used instead of fits to account for non-FITS\n input images. openImage returns a fits object."
1,138
true
spacetelescope/drizzlepac
getHeader
20,290
LDU_FT/iterative/dvc/init
LDU_FT
[ "<BEGIN>\n## `_get_remote`", "The config file is stored in a way that allows you to have a\n cache for each remote.", " This is needed when specifying external outputs\n (as they require you to have an external cache location).", " Imagine a config file like the following:", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. 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 init API. 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...
Initializes dvc config. Args: dvc_dir (str): path to .dvc directory. Returns: dvc.config.Config: config object.
"Initializes dvc config.\n\n Args:\n dvc_dir (str): path to .dvc directory.\n\n Returns:\n dvc.config.Config: config object."
269
false
iterative/dvc
init
20,291
LDU_FT/oanda/v20-python/from_dict
LDU_FT
[ "<BEGIN>\n## `from_dict`", "Instantiate a new Trade from a dict (generally from loading a JSON\n response). The data used to instantiate the Trade is a shallow copy of\n the dict passed in, with any complex child types instantiated\n appropriately.\n<END>", "<BEGIN>\n## `from_dict`", "Ins...
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...
Instantiate a new GuaranteedStopLossOrderEntryData from a dict (generally from loading a JSON response). The data used to instantiate the GuaranteedStopLossOrderEntryData is a shallow copy of the dict passed in, with any complex child types instantiated appropriately.
"Instantiate a new GuaranteedStopLossOrderEntryData from a dict\n (generally from loading a JSON response). The data used to instantiate\n the GuaranteedStopLossOrderEntryData is a shallow copy of the dict\n passed in, with any complex child types instantiated appropriately."
225
false
oanda/v20-python
from_dict
20,292
LDU_FT/plaid/plaid-python/post
LDU_FT
[ "<BEGIN>\n## `create`", "Generate a public token for sandbox testing.", " :param str institution_id:", " :param [str] initial_products:", " :param str webhook:\n<END>", "<BEGIN>\n## `get`", "Return accounts and transactions for an item.\n (`HTTP docs <https://pla...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. 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 post API. 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...
Make a post request with client_id and secret key.
"Make a post request with client_id and secret key."
36
false
plaid/plaid-python
post
20,293
LDU_FT/redhat-cip/python-dciclient/list
LDU_FT
[ "<BEGIN>\n## `list`", "list(context, verbose)", " List all tags.", " >>> dcictl tag-list", " :param boolean verbose: Display verbose output\n<END>", "<BEGIN>\n## `create`", "create(context, name)", " Create a tag.", " >>> dcictl tag-create [OPTIONS]", " :param string name: Name o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
list(context, sort, limit, where, verbose) List all products. >>> dcictl product list :param string sort: Field to apply sort :param integer limit: Max number of rows to return :param string where: An optional filter criteria :param boolean verbose: Display verbose output
"list(context, sort, limit, where, verbose)\n\n List all products.\n\n >>> dcictl product list\n\n :param string sort: Field to apply sort\n :param integer limit: Max number of rows to return\n :param string where: An optional filter criteria\n :param boolean verbose: Display verbose output"
310
false
redhat-cip/python-dciclient
list
20,294
LDU_FT/SmartTeleMax/iktomi/logout
LDU_FT
[ "<BEGIN>\n## `pare`", "Pare text to have maximum size and add etc to the end if it's\n changed\n<END>", "<BEGIN>\n## `quoteattrs`", "Takes dict of attributes and returns their HTML representation\n<END>", "<BEGIN>\n## `quote_js`", "Quotes text to be used as JavaScript string in HTML templates. The\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logout API. 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 logout API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This property will return component which will handle logout requests. It only handles POST requests and do not display any rendered content. This handler deletes session id from `storage`. If there is no session id provided or id is incorrect handler silently redirects to login url and ...
"This property will return component which will handle logout requests.\n It only handles POST requests and do not display any rendered content.\n This handler deletes session id from `storage`. If there is no\n session id provided or id is incorrect handler silently redirects to\n login url...
196
false
SmartTeleMax/iktomi
logout
20,295
LDU_FT/cavia-io/coupling/search
LDU_FT
[ "<BEGIN>\n## `_wrap`", "This is a decorator which can be used to mark functions\n as deprecated. It will result in a warning being emitted\n when the function is used.\n<END>", "<BEGIN>\n## `search`", "when not found:\n if raise_not_found is true, raise NotFoundError, else return default value.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. 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 search API. 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 ...
when not found: if raise_not_found is true, raise NotFoundError, else return default value.
"when not found:\n if raise_not_found is true, raise NotFoundError, else return default value."
11
false
cavia-io/coupling
search
20,296
LDU_FT/dossier/dossier.label/get_relationships_for_idents
LDU_FT
[ "<BEGIN>\n## `get_related_coref_relationships`", "Follow coreference relationships to get full related graph.", " :rtype: dict mapping related identifier to list of documents\n coref to that identifier.\n<END>", "<BEGIN>\n## `get_related_flat`", "Follow coreference relationships to get full re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_relationships_for_idents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_relationships_for_idents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Get relationships between ``idents`` and a ``cid``. Returns a dictionary mapping the identifiers in ``idents`` to either None, if no relationship label is found between the identifier and ``cid``, or a RelationshipType classifying the strength of the relationship between the identifier ...
"Get relationships between ``idents`` and a ``cid``.\n\n Returns a dictionary mapping the identifiers in ``idents``\n to either None, if no relationship label is found between\n the identifier and ``cid``, or a RelationshipType classifying\n the strength of the relationship between the ident...
88
false
dossier/dossier.label
get_relationships_for_idents
20,297
LDU_FT/tchellomello/python-arlo/videos
LDU_FT
[ "<BEGIN>\n## `query`", "Return a JSON object or raw session.", " :param url: Arlo API URL\n :param method: Specify the method GET, POST or PUT. Default is GET.\n :param extra_params: Dictionary to be appended on request.body\n :param extra_headers: Dictionary to be apppended on requ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the videos API. 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 videos API. 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 all <ArloVideo> objects from camera given days range :param days: number of days to retrieve
"Return all <ArloVideo> objects from camera given days range\n\n :param days: number of days to retrieve"
69
false
tchellomello/python-arlo
videos
20,298
LDU_FT/tundish/turberfield-dialogue/handle_scene
LDU_FT
[ "<BEGIN>\n## `options`", "Generate folders to best match metadata.", " The results will be a single, perfectly matched folder, or the two nearest\n neighbours of an imperfect match.", " :param dict data: metadata matching criteria.", " This method is a generator. It yields\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_scene API. 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 handle_scene API. 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...
Handle a scene event. This function applies a blocking wait at the start of a scene. :param obj: A :py:class:`~turberfield.dialogue.model.Model.Shot` object. :return: The supplied object.
"Handle a scene event.\n\n This function applies a blocking wait at the start of a scene.\n\n :param obj: A :py:class:`~turberfield.dialogue.model.Model.Shot`\n object.\n :return: The supplied object."
63
false
tundish/turberfield-dialogue
handle_scene
20,299
LDU_FT/C-Pro/pgdocgen/read_dir
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses input string and returns list of DDLObjects\n<END>", "<BEGIN>\n## `readddl`", "Walks down database objects and generates\n JDOC objects for table descriptions\n<END>", "<BEGIN>\n## `read_dir`", "reads all files with extension input_ext\n in a directory input_dir and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
reads all files with extension input_ext in a directory input_dir and apply function func to their contents
"reads all files with extension input_ext\n in a directory input_dir and apply function func\n to their contents"
10
false
C-Pro/pgdocgen
read_dir
20,300
LDU_FT/danielhrisca/asammdf/fmt_to_datatype_v4
LDU_FT
[ "<BEGIN>\n## `extract_cncomment_xml`", "extract *TX* tag or otherwise the *common_properties* from a xml comment", " Paremeters\n ----------\n comment : str\n xml string comment", " Returns\n -------\n comment : str\n extracted string\n<END>", "<BEGIN>\n## `matlab_compatible`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fmt_to_datatype_v4 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 fmt_to_datatype_v4 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
convert numpy dtype format string to mdf version 4 channel data type and size Parameters ---------- fmt : numpy.dtype numpy data type shape : tuple numpy array shape array : bool disambiguate between bytearray and channel array Returns ------- data_type, siz...
"convert numpy dtype format string to mdf version 4 channel data\n type and size\n\n Parameters\n ----------\n fmt : numpy.dtype\n numpy data type\n shape : tuple\n numpy array shape\n array : bool\n disambiguate between bytearray and channel array\n\n Returns\n -------\n ...
381
false
danielhrisca/asammdf
fmt_to_datatype_v4
20,301
LDU_FT/ontio/ontology-python-sdk/write_hashes
LDU_FT
[ "<BEGIN>\n## `init`", "This interface is used to call the TotalSupply method in ope4\n that initialize smart contract parameter.", " :param acct: an Account class that used to sign the transaction.\n :param payer_acct: an Account class that used to pay for the transaction.\n :param g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_hashes API. 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 write_hashes API. 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...
Write an array of hashes to the stream. Args: arr (list): a list of 32 byte hashes.
"Write an array of hashes to the stream.\n\n Args:\n arr (list): a list of 32 byte hashes."
375
false
ontio/ontology-python-sdk
write_hashes
20,302
LDU_FT/celiao/rtsimple/movies_in_theaters
LDU_FT
[ "<BEGIN>\n## `search`", "Get movies that match the search query string from the API.", " Args:\n q (optional): plain text search query; remember to URI encode\n page_limit (optional): number of search results to show per page, \n default=30\n pag...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the movies_in_theaters 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 movies_in_theaters 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...
Gets the movies currently in theaters from the API. Args: page_limit (optional): number of movies to show per page, default=16 page (optional): results page number, default=1 country (optional): localized data for selected country, default="us" Returns: A dict r...
"Gets the movies currently in theaters from the API.\n\n Args:\n page_limit (optional): number of movies to show per page, default=16\n page (optional): results page number, default=1\n country (optional): localized data for selected country, default=\"us\"\n\n Returns:\n ...
51
false
celiao/rtsimple
movies_in_theaters
20,303
LDU_FT/baverman/supplement/assist
LDU_FT
[ "<BEGIN>\n## `assist`", "Return completion match and list of completion proposals", " :param project_path: absolute project path\n :param source: unicode or byte string code source\n :param position: character or byte cursor position\n :param filename: absolute path of file with sour...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assist API. 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 assist API. 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 completion match and list of completion proposals :param project_path: absolute project path :param source: unicode or byte string code source :param position: character or byte cursor position :param filename: absolute path of file with source code :returns: tuple (compl...
"Return completion match and list of completion proposals\n\n :param project_path: absolute project path\n :param source: unicode or byte string code source\n :param position: character or byte cursor position\n :param filename: absolute path of file with source code\n :returns: tuple...
24
false
baverman/supplement
assist
20,304
LDU_FT/rix0rrr/gcl/attach
LDU_FT
[ "<BEGIN>\n## `from_spec`", "Return a schema object from a spec.", " A spec is either a string for a scalar type, or a list of 0 or 1 specs,\n or a dictionary with two elements: {'fields': { ... }, required: [...]}.\n<END>", "<BEGIN>\n## `validate`", "Validate an object according to its own AND an external...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attach API. 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 attach API. 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 ...
Attach the given schema to the given object.
"Attach the given schema to the given object."
129
false
rix0rrr/gcl
attach
20,305
LDU_FT/googlesamples/assistant-sdk-python/pretty_print_model
LDU_FT
[ "<BEGIN>\n## `main`", "File based sample for the Google Assistant API.", " Examples:\n $ python -m audiofileinput -i <input file> -o <output file>\n<END>", "<BEGIN>\n## `process_event`", "Pretty prints events.", " Prints all events that occur with two spaces between each new\n conversation a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_print_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_print_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Prints out a device model in the terminal by parsing dict.
"Prints out a device model in the terminal by parsing dict."
72
false
googlesamples/assistant-sdk-python
pretty_print_model
20,306
LDU_FT/aio-libs/aiomcache/add
LDU_FT
[ "<BEGIN>\n## `acquire`", "Acquire connection from the pool, or spawn new one\n if pool maxsize permits.", " :return: ``tuple`` (reader, writer)\n<END>", "<BEGIN>\n## `release`", "Releases connection back to the pool.", " :param conn: ``namedtuple`` (reader, writer)\n<END>", "<BEGIN>...
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...
Store this data, but only if the server *doesn't* already hold data for this key. :param key: ``bytes``, is the key of the item. :param value: ``bytes``, data to store. :param exptime: ``int`` is expiration time. If it's 0, the item never expires. :return: ``bool``, Tru...
"Store this data, but only if the server *doesn't* already\n hold data for this key.\n\n :param key: ``bytes``, is the key of the item.\n :param value: ``bytes``, data to store.\n :param exptime: ``int`` is expiration time. If it's 0, the\n item never expires.\n :return: ``boo...
50
false
aio-libs/aiomcache
add
20,307
LDU_FT/Pixelapse/pyglass/to_png
LDU_FT
[ "<BEGIN>\n## `embedded_preview`", "Returns path to temporary copy of embedded QuickLook preview, if it exists\n<END>", "<BEGIN>\n## `thumbnail_preview`", "Returns the path to small thumbnail preview.\n<END>", "<BEGIN>\n## `export_cmd`", "Executes a `sketchtool export` command and returns formatted output"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_png API. 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_png API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Converts a single-page pdf to a png image via the `sips` command :returns: Path to the converted png
"Converts a single-page pdf to a png image via the `sips` command\n :returns: Path to the converted png"
33
false
Pixelapse/pyglass
to_png
20,308
LDU_FT/openvax/datacache/_create_indices
LDU_FT
[ "<BEGIN>\n## `connect_if_correct_version`", "Return a sqlite3 database connection if the version in the database's\n metadata matches the version argument.", " Also implicitly checks for whether the data in this database has\n been completely filled, since we set the version last.", " TODO: Make a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_indices API. 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 _create_indices API. 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...
Create multiple indices (each over multiple columns) on a given table. Parameters ---------- table_name : str indices : iterable of tuples Multiple groups of columns, each of which should be indexed.
"Create multiple indices (each over multiple columns) on a given table.\n\n Parameters\n ----------\n table_name : str\n\n indices : iterable of tuples\n Multiple groups of columns, each of which should be indexed."
101
false
openvax/datacache
_create_indices
20,309
LDU_FT/jsvine/spectra/NewFromRgb
LDU_FT
[ "<BEGIN>\n## `cmyk`", "Create a spectra.Color object in the CMYK color space.", " :param float c: c coordinate.\n :param float m: m coordinate.\n :param float y: y coordinate.\n :param float k: k coordinate.", " :rtype: Color\n :returns: A spectra.Color object in the CMYK color space.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the NewFromRgb API. 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 NewFromRgb API. 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...
Create a new instance based on the specifed RGB values. Parameters: :r: The Red component value [0...1] :g: The Green component value [0...1] :b: The Blue component value [0...1] :alpha: The color transparency [0...1], default is opaque :wref: T...
"Create a new instance based on the specifed RGB values.\n\n Parameters:\n :r:\n The Red component value [0...1]\n :g:\n The Green component value [0...1]\n :b:\n The Blue component value [0...1]\n :alpha:\n The color transparency [0...1], default is opaque\n :wre...
265
false
jsvine/spectra
NewFromRgb
20,310
LDU_FT/lsst-sqre/sqre-codekit/lookup_user
LDU_FT
[ "<BEGIN>\n## `countdown_timer`", "Show a simple countdown progress bar", " Parameters\n ----------\n seconds\n Period of time the progress bar takes to reach zero.\n<END>", "<BEGIN>\n## `eta_bar`", "Display an adaptive ETA / countdown bar with a message.", " Parameters\n ----------\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return the user name to use when creating git objects or exit program. Parameters ---------- args: parser.parse_args() Returns ------- user: `string` git user name
"Return the user name to use when creating git objects or exit\n program.\n\n Parameters\n ----------\n args: parser.parse_args()\n\n Returns\n -------\n user: `string`\n git user name"
82
false
lsst-sqre/sqre-codekit
lookup_user
20,311
LDU_FT/KimiNewt/pyshark/packet_from_xml_packet
LDU_FT
[ "<BEGIN>\n## `get_field`", "Gets the XML field object of the given name.\n<END>", "<BEGIN>\n## `get_field_value`", "Tries getting the value of the given field.\n Tries it in the following order: show (standard nice display), value (raw value), showname (extended nice display).", " :param name:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the packet_from_xml_packet 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 packet_from_xml_packet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Gets a TShark XML packet object or string, and returns a pyshark Packet objec.t :param xml_pkt: str or xml object. :param psml_structure: a list of the fields in each packet summary in the psml data. If given, packets will be returned as a PacketSummary object. :return: Packet object.
"Gets a TShark XML packet object or string, and returns a pyshark Packet objec.t\n\n :param xml_pkt: str or xml object.\n :param psml_structure: a list of the fields in each packet summary in the psml data. If given, packets will\n be returned as a PacketSummary object.\n :return: Packet object."
91
false
KimiNewt/pyshark
packet_from_xml_packet
20,312
LDU_FT/tyarkoni/pliers/correlation_matrix
LDU_FT
[ "<BEGIN>\n## `load_stims`", "Load one or more stimuli directly from file, inferring/extracting\n metadata as needed.", " Args:\n source (str or list): The location to load the stim(s) from. Can be\n the path to a directory, to a single file, or a list of filenames.\n dtype (str): ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the correlation_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the correlation_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns a pandas DataFrame with the pair-wise correlations of the columns. Args: df: pandas DataFrame with columns to run diagnostics on
"Returns a pandas DataFrame with the pair-wise correlations of the columns.\n\n Args:\n df: pandas DataFrame with columns to run diagnostics on"
137
false
tyarkoni/pliers
correlation_matrix
20,313
LDU_FT/happyleavesaoc/python-limitlessled/transition
LDU_FT
[ "<BEGIN>\n## `command_set_factory`", "Create command set for controlling a specific led group.\n :param bridge: The bridge the leds are connected to.\n :param group_number: The group number.\n :param led_type: The type of the leds.\n :return: The created command set.\n<END>", "<BEGIN>\n## `rate`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transition API. 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 transition API. 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...
Transition wrapper. Short-circuit transition as necessary. :param duration: Time to transition. :param color: Transition to this color. :param brightness: Transition to this brightness.
"Transition wrapper.\n\n Short-circuit transition as necessary.\n\n :param duration: Time to transition.\n :param color: Transition to this color.\n :param brightness: Transition to this brightness."
164
false
happyleavesaoc/python-limitlessled
transition
20,314
LDU_FT/ajyoon/blur/weighted_order
LDU_FT
[ "<BEGIN>\n## `with_random_weights`", "Initialize from a list of options with random weights.", " The weights assigned to each object are uniformally random\n integers between ``1`` and ``len(options)``", " Args:\n options (list): The list of options of any type this object\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the weighted_order API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the weighted_order API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Non-uniformally order a list according to weighted priorities. ``weights`` is a list of tuples of form ``(Any, float or int)`` corresponding to ``(item, strength)``. The output list is constructed by repeatedly calling ``weighted_choice()`` on the weights, adding items to the end of the list as they ar...
"Non-uniformally order a list according to weighted priorities.\n\n ``weights`` is a list of tuples of form ``(Any, float or int)``\n corresponding to ``(item, strength)``. The output list is constructed\n by repeatedly calling ``weighted_choice()`` on the weights, adding items\n to the end of the list as t...
235
false
ajyoon/blur
weighted_order
20,315
LDU_FT/postmanlabs/httpbin/etag
LDU_FT
[ "<BEGIN>\n## `json_safe`", "Returns JSON-safe version of `string`.", " If `string` is a Unicode string or a valid UTF-8, it is returned unmodified,\n as it can safely be encoded to JSON string.", " If `string` contains raw/binary data, it is Base64-encoded, formatted and\n returned according to \"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the etag API. 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 etag API. 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...
Assumes the resource has the given etag and responds to If-None-Match and If-Match headers appropriately. --- tags: - Response inspection parameters: - in: header name: If-None-Match - in: header name: If-Match produces: - application/json responses: 200...
"Assumes the resource has the given etag and responds to If-None-Match and If-Match headers appropriately.\n ---\n tags:\n - Response inspection\n parameters:\n - in: header\n name: If-None-Match\n - in: header\n name: If-Match\n produces:\n - application/json\n response...
86
false
postmanlabs/httpbin
etag
20,316
LDU_FT/EventTeam/beliefs/find_path
LDU_FT
[ "<BEGIN>\n## `size`", "Size of LazyCell: the size of the intension plus accounting for\n excluded and included additions.", " The exclusions are assumed to be part of the set\n The inclusions are assumed to NOT be part of the intension\n<END>", "<BEGIN>\n## `update`", "Updates intensio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
General helper method that iterates breadth-first over the referential_domain's cells and returns a path where the test_function is True
"General helper method that iterates breadth-first over the referential_domain's\n cells and returns a path where the test_function is True"
158
false
EventTeam/beliefs
find_path
20,317
LDU_FT/monarch-initiative/dipper/_process_phenotype_hpoa
LDU_FT
[ "<BEGIN>\n## `_process_phenotype_hpoa`", "see info on format here:\n http://www.human-phenotype-ontology.org/contao/index.php/annotation-guide.html", " :param raw:\n :param limit:\n :return:\n<END>", "<BEGIN>\n## `get_common_files`", "Fetch the hpo-annotation-data\n [repos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_phenotype_hpoa 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 _process_phenotype_hpoa API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
see info on format here: http://www.human-phenotype-ontology.org/contao/index.php/annotation-guide.html :param raw: :param limit: :return:
"see info on format here:\n http://www.human-phenotype-ontology.org/contao/index.php/annotation-guide.html\n\n :param raw:\n :param limit:\n :return:"
848
false
monarch-initiative/dipper
_process_phenotype_hpoa
20,318
LDU_FT/randomsync/robotframework-mqttlibrary/connect
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to an MQTT broker. This is a pre-requisite step for publish\n and subscribe keywords.", " `broker` MQTT broker host", " `port` broker port (default 1883)", " `client_id` if not specified, a random id is generated", " `clean_session` spec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. 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 connect API. 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...
Connect to an MQTT broker. This is a pre-requisite step for publish and subscribe keywords. `broker` MQTT broker host `port` broker port (default 1883) `client_id` if not specified, a random id is generated `clean_session` specifies the clean session flag for the connection ...
"Connect to an MQTT broker. This is a pre-requisite step for publish\n and subscribe keywords.\n\n `broker` MQTT broker host\n\n `port` broker port (default 1883)\n\n `client_id` if not specified, a random id is generated\n\n `clean_session` specifies the clean session flag for the co...
72
false
randomsync/robotframework-mqttlibrary
connect
20,319
LDU_FT/IBM-Cloud/gp-python-client/__perform_rest_call
LDU_FT
[ "<BEGIN>\n## `__get_user_env_vars`", "Return the user defined environment variables\n<END>", "<BEGIN>\n## `__parse_vcap_services_env_var`", "Parse the ``VCAP_SERVICES`` env var and search for the necessary\r\n values\n<END>", "<BEGIN>\n## `__get_language_match`", "Compares ``languageCode`` to the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __perform_rest_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __perform_rest_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. T...
Returns the JSON representation of the response if the response status was ok, returns ``None`` otherwise.
"Returns the JSON representation of the response if the response\r\n status was ok, returns ``None`` otherwise."
71
false
IBM-Cloud/gp-python-client
__perform_rest_call
20,320
LDU_FT/marshmallow-code/webargs/parse
LDU_FT
[ "<BEGIN>\n## `dict2schema`", "Generate a `marshmallow.Schema` class given a dictionary of\n `Fields <marshmallow.fields.Field>`.\n<END>", "<BEGIN>\n## `is_json`", "Indicates if this mimetype is JSON or not. By default a request\n is considered to include JSON data if the mimetype is\n ``application/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Coroutine variant of `webargs.core.Parser`. Receives the same arguments as `webargs.core.Parser.parse`.
"Coroutine variant of `webargs.core.Parser`.\n\n Receives the same arguments as `webargs.core.Parser.parse`."
108
false
marshmallow-code/webargs
parse
20,321
LDU_FT/django-fluent/django-fluent-blogs/create_placeholder
LDU_FT
[ "<BEGIN>\n## `formfield_for_dbfield`", "Allow formfield_overrides to contain field names too.\n<END>", "<BEGIN>\n## `published`", "Return only published entries for the current site.\n<END>", "<BEGIN>\n## `authors`", "Return the entries written by the given usernames\n When multiple tags are provid...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_placeholder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_placeholder 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...
Create a placeholder on this blog entry. To fill the content items, use :func:`ContentItemModel.objects.create_for_placeholder() <fluent_contents.models.managers.ContentItemManager.create_for_placeholder>`. :rtype: :class:`~fluent_contents.models.Placeholder`
"Create a placeholder on this blog entry.\n\n To fill the content items, use\n :func:`ContentItemModel.objects.create_for_placeholder() <fluent_contents.models.managers.ContentItemManager.create_for_placeholder>`.\n\n :rtype: :class:`~fluent_contents.models.Placeholder`"
54
false
django-fluent/django-fluent-blogs
create_placeholder
20,322
LDU_FT/bram85/topydo/priority_color
LDU_FT
[ "<BEGIN>\n## `_process_flags`", "Override to add an additional check after processing the flags: when\n there are no flags left after argument parsing, then it means we'll be\n editing the whole todo.txt file as a whole and therefore we're not in\n multi mode.\n<END>", "<BEGIN>\n## `get_tod...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the priority_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the priority_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 ex...
Returns a dict with priorities as keys and color numbers as value.
"Returns a dict with priorities as keys and color numbers as value."
331
false
bram85/topydo
priority_color
20,323
LDU_FT/manns/pyspread/media_new_callbacks
LDU_FT
[ "<BEGIN>\n## `add_tools`", "Adds tools from self.toolbardata to self\n<END>", "<BEGIN>\n## `_get_button_label`", "Gets Button label from user and returns string\n<END>", "<BEGIN>\n## `OnButtonCell`", "Event handler for cell button toggle button\n<END>", "<BEGIN>\n## `OnVideoCell`", "Event handler for ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the media_new_callbacks 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 media_new_callbacks 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...
Create a media with custom callbacks to read the data from. @param open_cb: callback to open the custom bitstream input media. @param read_cb: callback to read data (must not be NULL). @param seek_cb: callback to seek, or NULL if seeking is not supported. @param close_cb: callback to clo...
"Create a media with custom callbacks to read the data from.\n @param open_cb: callback to open the custom bitstream input media.\n @param read_cb: callback to read data (must not be NULL).\n @param seek_cb: callback to seek, or NULL if seeking is not supported.\n @param close_cb: callback t...
1,275
true
manns/pyspread
media_new_callbacks
20,324
LDU_FT/feliphebueno/Rinzler/get_json_ident
LDU_FT
[ "<BEGIN>\n## `authenticate`", "Your AuhtService should override this method for request authentication, otherwise means no authentication.\n :param request: HttpRequest Django's HttpRequest object\n :param auth_route: str User's resqueted route\n :param actual_params: User's url parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_json_ident API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_json_ident API. 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...
Defines whether the JSON response will be indented or not :param request_headers: dict :return: self
"Defines whether the JSON response will be indented or not\n :param request_headers: dict\n :return: self"
50
false
feliphebueno/Rinzler
get_json_ident
20,325
LDU_FT/remram44/rpaths/copyfile
LDU_FT
[ "<BEGIN>\n## `pattern2re`", "Makes a unicode regular expression from a pattern.", " Returns ``(start, full_re, int_re)`` where:", " * `start` is either empty or the subdirectory in which to start searching,\n * `full_re` is a regular expression object that matches the requested\n files, i.e. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copyfile API. 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 copyfile API. 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...
Copies this file to the given `target` location.
"Copies this file to the given `target` location."
95
false
remram44/rpaths
copyfile
20,326
LDU_FT/Tenchi2xh/Almonds/mandelbrot_iterate
LDU_FT
[ "<BEGIN>\n## `extrema`", "Returns the minimum and maximum values contained in a given area.", " :param x0: Starting x index.\n :param y0: Starting y index.\n :param w: Width of the area to scan.\n :param h: Height of the area to scan.\n :return: Tuple containing the minimu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mandelbrot_iterate 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 mandelbrot_iterate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns the number of iterations before escaping the Mandelbrot fractal. :param c: Coordinates as a complex number :type c: complex :param max_iterations: Limit of how many tries are attempted. :return: Tuple containing the last complex number in the sequence and the number of iterations.
"Returns the number of iterations before escaping the Mandelbrot fractal.\n\n :param c: Coordinates as a complex number\n :type c: complex\n :param max_iterations: Limit of how many tries are attempted.\n :return: Tuple containing the last complex number in the sequence and the number of iterations."
79
false
Tenchi2xh/Almonds
mandelbrot_iterate
20,327
LDU_FT/DAI-Lab/Copulas/percent_point
LDU_FT
[ "<BEGIN>\n## `get_lower_bound`", "Compute the lower bound to integrate cumulative density.", " Returns:\n float: lower bound for cumulative density integral.\n<END>", "<BEGIN>\n## `get_column_names`", "Return iterable containing columns for the given array X.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the percent_point API. 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 percent_point API. 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...
Given a cdf value, returns a value in original space. Args: U(numpy.array): cdf values in [0,1] Returns: numpy.array: value in original space
"Given a cdf value, returns a value in original space.\n\n Args:\n U(numpy.array): cdf values in [0,1]\n\n Returns:\n numpy.array: value in original space"
278
false
DAI-Lab/Copulas
percent_point
20,328
LDU_FT/kejbaly2/idid/_parse
LDU_FT
[ "<BEGIN>\n## `main`", "Parse arguments for ``idid`` command.", " Pass optional parameter ``arguments`` as either command line\n string or list of options. This is mainly useful for testing.", " ``config`` can be passed in as a path or string to access user defined\n values for important variables ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Perform additional check for ``idid`` command arguments
"Perform additional check for ``idid`` command arguments"
16
false
kejbaly2/idid
_parse
20,329
LDU_FT/skojaku/core-periphery-detection/detect
LDU_FT
[ "<BEGIN>\n## `detect`", "Detect a single core-periphery pair.", "\t\tParameters\n\t\t----------\n\t\tG : NetworkX graph object", "\t\tExamples\n\t\t--------\n\t\t>>> import networkx as nx\n\t\t>>> import cpalgorithm as cpa\n\t\t>>> G = nx.karate_club_graph() # load the karate club network. \n\t\t>>> rb = cp....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect API. 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 detect API. 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 ...
Detect a single core-periphery pair using the Borgatti-Everett algorithm. Parameters ---------- G : NetworkX graph object Examples -------- >>> import networkx as nx >>> import cpalgorithm as cpa >>> G = nx.karate_club_graph() # load the karate club network. >>> spr = cpa.Surprise() >>> spr.d...
"Detect a single core-periphery pair using the Borgatti-Everett algorithm.\n\t\n\t\tParameters\n\t\t----------\n\t\tG : NetworkX graph object\n\t\t\n\t\tExamples\n\t\t--------\n\t\t>>> import networkx as nx\n\t\t>>> import cpalgorithm as cpa\n\t\t>>> G = nx.karate_club_graph() # load the karate club network. \n\t\t>>>...
24
false
skojaku/core-periphery-detection
detect
20,330
LDU_FT/smarie/python-parsyfiles/print_capabilities_by_ext
LDU_FT
[ "<BEGIN>\n## `read_dict_or_list_from_json`", "Helper method to read a dictionary from a .json file using json library\n :param file_object:\n :return:\n<END>", "<BEGIN>\n## `get_default_collection_parsers`", "Utility method to return the default parsers able to parse a dictionary from a file.\n :retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_capabilities_by_ext API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_capabilities_by_ext API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Used to print the list of all file extensions that can be parsed by this parser registry. :return:
"Used to print the list of all file extensions that can be parsed by this parser registry.\n :return:"
504
false
smarie/python-parsyfiles
print_capabilities_by_ext
20,331
LDU_FT/berkeley-cocosci/Wallace/summary
LDU_FT
[ "<BEGIN>\n## `submission_successful`", "Run when a participant submits successfully.\n<END>", "<BEGIN>\n## `summary`", "Summarize the participants' status codes.\n<END>", "<BEGIN>\n## `experiment_property`", "Get a property of the experiment by name.\n<END>", "<BEGIN>\n## `ad_address`", "Get the addre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the summary API. 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 summary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Print a summary of a deployed app's status.
"Print a summary of a deployed app's status."
118
false
berkeley-cocosci/Wallace
summary
20,332
LDU_FT/inasafe/inasafe/get_value_map
LDU_FT
[ "<BEGIN>\n## `dict`", "dictionary representation of the metadata.", " :return: dictionary representation of the metadata\n :rtype: dict\n<END>", "<BEGIN>\n## `xml`", "xml representation of the metadata.", " :return: xml representation of the metadata\n :rtype: ElementTree.Eleme...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Obtain the value-to-class mapping set by user. :returns: The complete mapping as a dict of lists. :rtype: dict
"Obtain the value-to-class mapping set by user.\n\n :returns: The complete mapping as a dict of lists.\n :rtype: dict"
4,163
true
inasafe/inasafe
get_value_map
20,333
LDU_FT/tonybaloney/wily/diff
LDU_FT
[ "<BEGIN>\n## `revisions`", "Get the list of revisions.", " :param path: the path to target.\n :type path: ``str``", " :param max_revisions: the maximum number of revisions.\n :type max_revisions: ``int``", " :return: A list of revisions.\n :rtype: ``list`` of :cla...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Show the differences in metrics for each file.
"Show the differences in metrics for each file."
174
false
tonybaloney/wily
diff
20,334
LDU_FT/RockFeng0/rtsf/_load_json_file
LDU_FT
[ "<BEGIN>\n## `get_summary`", "summarize the report data\r\n @param list_all: a list which save the report data\r\n @param kwargs: such as\r\n show_all: True/False report show all status cases\r\n proj_name: project name \r\n home_page: ho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_json_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_json_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
load json file and check file content format
"load json file and check file content format"
53
false
RockFeng0/rtsf
_load_json_file
20,335
LDU_FT/gridaphobe/pyGravatar/rating
LDU_FT
[ "<BEGIN>\n## `secure`", "Set the secure parameter and regenerate the thumbnail link.\n<END>", "<BEGIN>\n## `rating`", "Set the rating parameter and regenerate the thumbnail link.\n<END>", "<BEGIN>\n## `size`", "Set the size parameter and regenerate the thumbnail link.\n<END>", "<BEGIN>\n## `default`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rating API. 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 rating API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Set the rating parameter and regenerate the thumbnail link.
"Set the rating parameter and regenerate the thumbnail link."
13
false
gridaphobe/pyGravatar
rating
20,336
LDU_FT/oanda/v20-python/from_dict
LDU_FT
[ "<BEGIN>\n## `from_dict`", "Instantiate a new Trade from a dict (generally from loading a JSON\n response). The data used to instantiate the Trade is a shallow copy of\n the dict passed in, with any complex child types instantiated\n appropriately.\n<END>", "<BEGIN>\n## `from_dict`", "Ins...
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...
Instantiate a new Order from a dict (generally from loading a JSON response). The data used to instantiate the Order is a shallow copy of the dict passed in, with any complex child types instantiated appropriately.
"Instantiate a new Order from a dict (generally from loading a JSON\n response). The data used to instantiate the Order is a shallow copy of\n the dict passed in, with any complex child types instantiated\n appropriately."
225
false
oanda/v20-python
from_dict
20,337
LDU_FT/SheffieldML/GPy/xerrorbar
LDU_FT
[ "<BEGIN>\n## `pdf_link`", ":param link_f: latent variables link(f)\n :type link_f: Nx1 array\n :param y: data\n :type y: Nx1 array\n :param Y_metadata: includes censoring information in dictionary key 'censored'\n :returns: likelihood evaluated for this point\n :rtype: fl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xerrorbar API. 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 xerrorbar API. 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...
Make an errorbar along the xaxis for points at (X,Y) on the canvas. if error is two dimensional, the lower error is error[:,0] and the upper error is error[:,1] the kwargs are plotting library specific kwargs!
"Make an errorbar along the xaxis for points at (X,Y) on the canvas.\n if error is two dimensional, the lower error is error[:,0] and\n the upper error is error[:,1]\n \n the kwargs are plotting library specific kwargs!"
1,670
true
SheffieldML/GPy
xerrorbar
20,338
LDU_FT/The-Politico/politico-civic-election/get_election_delegates
LDU_FT
[ "<BEGIN>\n## `save`", "**uid**: :code:`{office.uid}_{cycle.uid}_race`\n<END>", "<BEGIN>\n## `save`", "**uid**: :code:`division_cycle_ballotmeasure:{number}`\n<END>", "<BEGIN>\n## `save`", "**uid**: :code:`{race.uid}_election:{election_day}-{party}`\n<END>", "<BEGIN>\n## `get_candidates`", "Get all Can...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_election_delegates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_election_delegates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Get all pledged delegates for this candidate in an election.
"Get all pledged delegates for this candidate in an election."
32
false
The-Politico/politico-civic-election
get_election_delegates
20,339
LDU_FT/bitprophet/ssh/auth_none
LDU_FT
[ "<BEGIN>\n## `start_client`", "Negotiate a new SSH2 session as a client. This is the first step after\n creating a new L{Transport}. A separate thread is created for protocol\n negotiation.", " If an event is passed in, this method returns immediately. When\n negotiation is done (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_none API. 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 auth_none API. 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...
Try to authenticate to the server using no authentication at all. This will almost always fail. It may be useful for determining the list of authentication types supported by the server, by catching the L{BadAuthenticationType} exception raised. @param username: the username to authent...
"Try to authenticate to the server using no authentication at all.\n This will almost always fail. It may be useful for determining the\n list of authentication types supported by the server, by catching the\n L{BadAuthenticationType} exception raised.\n\n @param username: the username to a...
272
false
bitprophet/ssh
auth_none
20,340
LDU_FT/NVIDIA/pynvrtc/nvrtcGetErrorString
LDU_FT
[ "<BEGIN>\n## `_load_nvrtc_lib`", "Loads the NVRTC shared library, with an optional search path in\n lib_path.\n<END>", "<BEGIN>\n## `nvrtcCreateProgram`", "Creates and returns a new NVRTC program object.\n<END>", "<BEGIN>\n## `nvrtcDestroyProgram`", "Destroys the given NVRTC program object.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nvrtcGetErrorString 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 nvrtcGetErrorString 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 text identifier for the given NVRTC status code.
"Returns a text identifier for the given NVRTC status code."
23
false
NVIDIA/pynvrtc
nvrtcGetErrorString
20,341
LDU_FT/mretegan/crispy/_contextMenu
LDU_FT
[ "<BEGIN>\n## `loadFromDisk`", "Read the spectra from the files generated by Quanty and store them\n as a list of spectum objects.\n<END>", "<BEGIN>\n## `populateWidget`", "Populate the widget using data stored in the state\n object. The order in which the individual widgets are populated\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _contextMenu API. 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 _contextMenu API. 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...
Handle plot area customContextMenuRequested signal. :param QPoint pos: Mouse position relative to plot area
"Handle plot area customContextMenuRequested signal.\n\n :param QPoint pos: Mouse position relative to plot area"
38
false
mretegan/crispy
_contextMenu
20,342
LDU_FT/azaghal/pydenticon/_generate_image
LDU_FT
[ "<BEGIN>\n## `_get_bit`", "Determines if the n-th bit of passed bytes is 1 or 0.", " Arguments:", " hash_bytes - List of hash byte values for which the n-th bit value\n should be checked. Each element of the list should be an integer from\n 0 to 255.", " Returns:", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Generates an identicon image in requested image format out of the passed block matrix, with the requested width, height, padding, foreground colour, background colour, and image format. Arguments: matrix - Matrix describing which blocks in the identicon should be painted wi...
"Generates an identicon image in requested image format out of the passed\n block matrix, with the requested width, height, padding, foreground\n colour, background colour, and image format.\n\n Arguments:\n\n matrix - Matrix describing which blocks in the identicon should be\n pa...
48
false
azaghal/pydenticon
_generate_image
20,343
LDU_FT/jbaiter/hidapi-cffi/write
LDU_FT
[ "<BEGIN>\n## `enumerate`", "Enumerate the HID Devices.", " Returns a generator that yields all of the HID devices attached to the\n system.", " :param vendor_id: Only return devices which match this vendor id\n :type vendor_id: int\n :param product_id: Only return devices which match this...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Write an Output report to a HID device. This will send the data on the first OUT endpoint, if one exists. If it does not, it will be sent the data through the Control Endpoint (Endpoint 0). :param data: The data to be sent :type data: str/bytes :param rep...
"Write an Output report to a HID device.\n\n This will send the data on the first OUT endpoint, if one exists. If it\n does not, it will be sent the data through the Control Endpoint\n (Endpoint 0).\n\n :param data: The data to be sent\n :type data: str/bytes\n :...
34
false
jbaiter/hidapi-cffi
write
20,344
LDU_FT/spantaleev/flask-sijax/execute_callback
LDU_FT
[ "<BEGIN>\n## `csrf_token`", "Generate a token string from bytes arrays. The token in the session is user\n specific.\n<END>", "<BEGIN>\n## `check_csrf_token`", "Checks that token is correct, aborting if not\n<END>", "<BEGIN>\n## `route`", "An alternative to :meth:`flask.Flask.route` or :meth:`flask.Blu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_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 ...
Executes a callback and returns the proper response. Refer to :meth:`sijax.Sijax.execute_callback` for more details.
"Executes a callback and returns the proper response.\n\n Refer to :meth:`sijax.Sijax.execute_callback` for more details."
33
false
spantaleev/flask-sijax
execute_callback
20,345
LDU_FT/kurtbrose/pyjks/derive_key
LDU_FT
[ "<BEGIN>\n## `new`", "Helper function to create a new TrustedCertEntry.", " :param str alias: The alias for the Trusted Cert Entry\n :param str certs: The certificate, as a byte string.", " :returns: A loaded :class:`TrustedCertEntry` instance, ready\n to be placed in a keystore....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the derive_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the derive_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 extrac...
Implements PKCS#12 key derivation as specified in RFC 7292, Appendix B, "Deriving Keys and IVs from Passwords and Salt". Ported from BC's implementation in org.bouncycastle.crypto.generators.PKCS12ParametersGenerator. hashfn: hash function to use (expected to support the hashlib interface and attrib...
"Implements PKCS#12 key derivation as specified in RFC 7292, Appendix B, \"Deriving Keys and IVs from Passwords and Salt\".\n Ported from BC's implementation in org.bouncycastle.crypto.generators.PKCS12ParametersGenerator.\n\n hashfn: hash function to use (expected to support the hashlib interface and ...
104
false
kurtbrose/pyjks
derive_key
20,346
LDU_FT/Kozea/wdb/get_trace
LDU_FT
[ "<BEGIN>\n## `import_from_stdlib`", "Copied from pdbpp https://bitbucket.org/antocuni/pdb\n<END>", "<BEGIN>\n## `handle_exc`", "Return a formated exception traceback for wdb.js use\n<END>", "<BEGIN>\n## `_patch_tcpserver`", "Patch shutdown_request to open blocking interaction after the end of the\n req...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_trace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_trace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get a dict of the traceback for wdb.js use
"Get a dict of the traceback for wdb.js use"
45
false
Kozea/wdb
get_trace
20,347
LDU_FT/Jetsetter/graphyte/send
LDU_FT
[ "<BEGIN>\n## `stop`", "Tell the sender thread to finish and wait for it to stop sending\n (should be at most \"timeout\" seconds).\n<END>", "<BEGIN>\n## `build_message`", "Build a Graphite message to send and return it as a byte string.\n<END>", "<BEGIN>\n## `send`", "Send given metric and (int or ...
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 do...
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 do...
Send given metric and (int or float) value to Graphite host. Performs send on background thread if "interval" was specified when creating this Sender. If a "tags" dict is specified, send the tags to the Graphite host along with the metric.
"Send given metric and (int or float) value to Graphite host.\n Performs send on background thread if \"interval\" was specified when\n creating this Sender.\n\n If a \"tags\" dict is specified, send the tags to the Graphite host along with the metric."
11
false
Jetsetter/graphyte
send
20,348
LDU_FT/GluuFederation/oxd-python/register_site
LDU_FT
[ "<BEGIN>\n## `register_site`", "Function to register the site and generate a unique ID for the site", " Returns:\n **string:** The ID of the site (also called client id) if the registration is successful", " Raises:\n **OxdServerError:** If the site registration fails.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_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 ext...
Function to register the site and generate a unique ID for the site Returns: **string:** The ID of the site (also called client id) if the registration is successful Raises: **OxdServerError:** If the site registration fails.
"Function to register the site and generate a unique ID for the site\n\n Returns:\n **string:** The ID of the site (also called client id) if the registration is successful\n\n Raises:\n **OxdServerError:** If the site registration fails."
124
false
GluuFederation/oxd-python
register_site
20,349
LDU_FT/nikhilkumarsingh/content-downloader/get_google_links
LDU_FT
[ "<BEGIN>\n## `download_parallel_gui`", "called when paralled downloading is true\n<END>", "<BEGIN>\n## `download_series_gui`", "called when user wants serial downloading\n<END>", "<BEGIN>\n## `start`", "function to initialize thread for downloading\n<END>", "<BEGIN>\n## `read_bytes`", "reading bytes; ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_google_links API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_google_links API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
function to fetch links equal to limit every Google search result page has a start index. every page contains 10 search results.
"function to fetch links equal to limit\n\n\tevery Google search result page has a start index.\n\tevery page contains 10 search results."
37
false
nikhilkumarsingh/content-downloader
get_google_links
20,350
LDU_FT/helium/helium-python/boolean
LDU_FT
[ "<BEGIN>\n## `error_for`", "Return the appropriate initialized exception class for a response.\n<END>", "<BEGIN>\n## `device_configuration`", "Get a specific device configuration.", " A device can have at most one loaded and one pending device\n configuration. This returns that device_configur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the boolean API. 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 boolean API. 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...
Callback to validate a response code. The returned callback checks whether a given response has a ``status_code`` that is considered good (``true_code``) and raise an appropriate error if not. The optional ``false_code`` allows for a non-successful status code to return False i...
"Callback to validate a response code.\n\n The returned callback checks whether a given response has a\n ``status_code`` that is considered good (``true_code``) and\n raise an appropriate error if not.\n\n The optional ``false_code`` allows for a non-successful status\n code to return...
223
false
helium/helium-python
boolean
20,351
LDU_FT/juju-solutions/charms.reactive/received
LDU_FT
[ "<BEGIN>\n## `endpoint_from_name`", "The object used for interacting with the named relations, or None.\n<END>", "<BEGIN>\n## `endpoint_from_flag`", "The object used for interacting with relations tied to a flag, or None.\n<END>", "<BEGIN>\n## `relation_factory`", "Get the RelationFactory for the given re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the received API. 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 received API. 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...
A :class:`~charms.reactive.endpoints.JSONUnitDataView` of the data received from this remote unit over the relation, with values being automatically decoded as JSON.
"A :class:`~charms.reactive.endpoints.JSONUnitDataView` of the data\n received from this remote unit over the relation, with values being\n automatically decoded as JSON."
223
false
juju-solutions/charms.reactive
received
20,352
LDU_FT/marcinmiklitz/pywindow/find_windows
LDU_FT
[ "<BEGIN>\n## `unique`", "Return a list of unique items (similar to set functionality).", " Parameters\n ----------\n input_list : list\n A list containg some items that can occur more than once.", " Returns\n -------\n list\n A list with only unique occurances of an item.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_windows API. 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 find_windows API. 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...
Return windows diameters and center of masses for a molecule.
"Return windows diameters and center of masses for a molecule."
303
false
marcinmiklitz/pywindow
find_windows
20,353
LDU_FT/tBaxter/tango-comments/handle_token
LDU_FT
[ "<BEGIN>\n## `next_redirect`", "Handle the \"where should I go next?\" part of comment views.", " The next value could be a\n ``?next=...`` GET arg or the URL of a given view (``fallback``). See\n the view modules for examples.", " Returns an ``HttpResponseRedirect``.\n<END>", "<BEGIN>\n## `conf...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Class method to parse get_comment_list/count/form and return a Node.
"Class method to parse get_comment_list/count/form and return a Node."
66
false
tBaxter/tango-comments
handle_token
20,354
LDU_FT/druids/django-chamber/get_class_method
LDU_FT
[ "<BEGIN>\n## `get_class_method`", "Returns a method from a given class or instance. When the method doest not exist, it returns `None`. Also works with\n properties and cached properties.\n<END>", "<BEGIN>\n## `model_to_dict`", "The same implementation as django model_to_dict but editable fields are allowe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_class_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_class_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns a method from a given class or instance. When the method doest not exist, it returns `None`. Also works with properties and cached properties.
"Returns a method from a given class or instance. When the method doest not exist, it returns `None`. Also works with\n properties and cached properties."
38
false
druids/django-chamber
get_class_method
20,355
LDU_FT/empymod/empymod/cos_1
LDU_FT
[ "<BEGIN>\n## `check_ab`", "r\"\"\"Check source-receiver configuration.", " This check-function is called from one of the modelling routines in\n :mod:`model`. Consult these modelling routines for a detailed description\n of the input parameters.", " Parameters\n ----------\n ab : int\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cos_1 API. 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 cos_1 API. 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...
r"""Fourier cosine transform pair cos_1 ([Ande75]_).
"r\"\"\"Fourier cosine transform pair cos_1 ([Ande75]_)."
570
false
empymod/empymod
cos_1
20,356
LDU_FT/qzmfranklin/easyshell/_do_exit
LDU_FT
[ "<BEGIN>\n## `update_parser`", "Update the parser object for the shell.", " Arguments:\n parser: An instance of argparse.ArgumentParser.\n<END>", "<BEGIN>\n## `_do_debug`", "\\\n Enter the debugging shell.\n debug Show current debugging status, i.e, on/off.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _do_exit API. 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 _do_exit API. 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...
\ Exit shell. exit | C-D Exit to the parent shell. exit root | end Exit to the root shell. exit all Exit to the command line.
"\\\n Exit shell.\n exit | C-D Exit to the parent shell.\n exit root | end Exit to the root shell.\n exit all Exit to the command line."
147
false
qzmfranklin/easyshell
_do_exit
20,357
LDU_FT/theonion/django-bulbs/get_queryset
LDU_FT
[ "<BEGIN>\n## `save`", "Kicks off celery task to re-save associated special coverages to percolator", " :param args: inline arguments (optional)\n :param kwargs: keyword arguments\n :return: `bulbs.campaigns.Campaign`\n<END>", "<BEGIN>\n## `get_field_info`", "This method is basically a m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_queryset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_queryset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
created the base queryset object for the serializer limited to users within the authors groups and having `is_staff` :return: `django.db.models.QuerySet`
"created the base queryset object for the serializer limited to users within the authors\n groups and having `is_staff`\n\n :return: `django.db.models.QuerySet`"
277
false
theonion/django-bulbs
get_queryset
20,358
LDU_FT/qubole/qds-sdk-py/get_log
LDU_FT
[ "<BEGIN>\n## `_parse_list`", "Parse command line arguments to construct a dictionary of cluster\n parameters that can be used to determine which clusters to list.", " Args:\n `args`: sequence of arguments", " Returns:\n Dictionary that can be used to determine which ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_log API. 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...
Fetches log for the command represented by this object Returns: The log as a string
"Fetches log for the command represented by this object\n\n Returns:\n The log as a string"
316
false
qubole/qds-sdk-py
get_log
20,359
LDU_FT/Infinidat/infi.clickhouse_orm/get_error_code_msg
LDU_FT
[ "<BEGIN>\n## `_range_check`", "Utility method to check that the given value is between min_value and max_value.\n<END>", "<BEGIN>\n## `get_sql`", "Returns an SQL expression describing the field (e.g. for CREATE TABLE).\n :param with_default_expression: If True, adds default value to sql.\n I...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_error_code_msg 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_error_code_msg API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Extract the code and message of the exception that clickhouse-server generated. See the list of error codes here: https://github.com/yandex/ClickHouse/blob/master/dbms/src/Common/ErrorCodes.cpp
"Extract the code and message of the exception that clickhouse-server generated.\n\n See the list of error codes here:\n https://github.com/yandex/ClickHouse/blob/master/dbms/src/Common/ErrorCodes.cpp"
86
false
Infinidat/infi.clickhouse_orm
get_error_code_msg
20,360
LDU_FT/matthiask/django-cte-forest/is_ancestor_of
LDU_FT
[ "<BEGIN>\n## `_ensure_parameters`", "Attempts to load and verify the CTE node parameters. Will use\n default values for all missing parameters, and raise an exception if\n a parameter's value cannot be verified. This method will only\n perform these actions once, and set the :attr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ancestor_of API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ancestor_of API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns ``True`` if the given `node` is an ancestor of the given `subject` node, ``False`` otherwise. This method uses the :attr:`path` virtual field, and so does not perform any query. :param node: the :class:`CTENode' for which to determine whether it is an ancesto...
"Returns ``True`` if the given `node` is an ancestor of the given\n `subject` node, ``False`` otherwise. This method uses the\n :attr:`path` virtual field, and so does not perform any query.\n\n :param node: the :class:`CTENode' for which to determine whether it\n is an a...
153
false
matthiask/django-cte-forest
is_ancestor_of
20,361
LDU_FT/adamheins/r12/default
LDU_FT
[ "<BEGIN>\n## `search_for_port`", "Find the serial port the arm is connected to.\n<END>", "<BEGIN>\n## `read`", "Read data from the arm. Data is returned as a latin_1 encoded\n string, or raw bytes if 'raw' is True.\n<END>", "<BEGIN>\n## `dump`", "Dump all output currently in the arm's output qu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default API. 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 default API. 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...
Commands with no do_* method fall to here.
"Commands with no do_* method fall to here."
22
false
adamheins/r12
default
20,362
LDU_FT/martinpitt/python-dbusmock/AddWiFiConnection
LDU_FT
[ "<BEGIN>\n## `AddAdapter`", "Convenience method to add a Bluetooth adapter", " You have to specify a device name which must be a valid part of an object\n path, e. g. \"hci0\", and an arbitrary system name (pretty hostname).", " Returns the new object path.\n<END>", "<BEGIN>\n## `AddDevice`", "Co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AddWiFiConnection API. 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 AddWiFiConnection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Add an available connection to an existing WiFi device and access point. You have to specify WiFi Device path, Connection object name, SSID and key management. The SSID must match one of the previously created access points. Please note that this does not set any global properties. Returns the n...
"Add an available connection to an existing WiFi device and access point.\n\n You have to specify WiFi Device path, Connection object name,\n SSID and key management.\n\n The SSID must match one of the previously created access points.\n\n Please note that this does not set any global properties.\n\n Ret...
188
false
martinpitt/python-dbusmock
AddWiFiConnection
20,363
LDU_FT/pudo/dataset/count
LDU_FT
[ "<BEGIN>\n## `normalize_column_name`", "Check if a string is a reasonable thing to use as a column name.\n<END>", "<BEGIN>\n## `normalize_table_name`", "Check if the table name is obviously invalid.\n<END>", "<BEGIN>\n## `safe_url`", "Remove password from printed connection URLs.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count API. 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 count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return the count of results for the given filter set.
"Return the count of results for the given filter set."
128
false
pudo/dataset
count
20,364
LDU_FT/bcb/jsonrpcserver/validate
LDU_FT
[ "<BEGIN>\n## `validate`", "Wraps jsonschema.validate, returning the same object passed in.", " Args:\n request: The deserialized-from-json request.\n schema: The jsonschema schema to validate against.", " Raises:\n jsonschema.ValidationError\n<END>", "<BEGIN>\n## `call`", "Valid...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Wraps jsonschema.validate, returning the same object passed in. Args: request: The deserialized-from-json request. schema: The jsonschema schema to validate against. Raises: jsonschema.ValidationError
"Wraps jsonschema.validate, returning the same object passed in.\n\n Args:\n request: The deserialized-from-json request.\n schema: The jsonschema schema to validate against.\n\n Raises:\n jsonschema.ValidationError"
47
false
bcb/jsonrpcserver
validate
20,365
LDU_FT/ArtoLabs/SimpleSteem/vote
LDU_FT
[ "<BEGIN>\n## `setup`", "Runs only the first time SimpleSteem() \n is instantiated. Prompts user for the values\n that are then written to config.py\n<END>", "<BEGIN>\n## `make`", "takes the arguments and writes them as \n variable / value pairs to config.py\n<END>", "<BEGIN>\n## `goodno...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vote API. 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 vote API. 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...
Waits 5 seconds as that is the required amount of time between votes.
"Waits 5 seconds as that is the required amount \n of time between votes."
74
false
ArtoLabs/SimpleSteem
vote
20,366
LDU_FT/richardliaw/track/absl_flags
LDU_FT
[ "<BEGIN>\n## `dfl_local_dir`", "Infers a default local directory, which is DFL_DIR_PARENT/<project name>,\n where the project name is guessed according to the following rules.", " If we detect we're in a repository, the project name is the repository name\n (git only for now).", " If we're not in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the absl_flags API. 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 absl_flags API. 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...
Extracts absl-py flags that the user has specified and outputs their key-value mapping. By default, extracts only those flags in the current __package__ and mainfile. Useful to put into a trial's param_map.
"Extracts absl-py flags that the user has specified and outputs their\n key-value mapping.\n\n By default, extracts only those flags in the current __package__\n and mainfile.\n\n Useful to put into a trial's param_map."
32
false
richardliaw/track
absl_flags
20,367
LDU_FT/langloisjp/pysvcmetrics/timeit
LDU_FT
[ "<BEGIN>\n## `timeit`", "Time execution of function. Returns (res, seconds).", " >>> res, timing = timeit(time.sleep, 1)\n<END>", "<BEGIN>\n## `timing`", "Log timing information", " >>> client = StatsdClient()\n >>> client.timing('example.timing', 500)\n >>> client.timing(('example...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeit API. 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 timeit API. 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 ...
Times given function and log metric in ms for duration of execution. >>> import time >>> client = StatsdClient() >>> client.timeit("latency", time.sleep, 0.5)
"Times given function and log metric in ms for duration of execution.\n\n >>> import time\n >>> client = StatsdClient()\n >>> client.timeit(\"latency\", time.sleep, 0.5)"
40
false
langloisjp/pysvcmetrics
timeit
20,368
LDU_FT/DerMitch/fritzbox-smarthome/get_temperature
LDU_FT
[ "<BEGIN>\n## `login`", "Try to login and set the internal session id.", " Please note:\n - Any failed login resets all existing session ids, even of\n other users.\n - SIDs expire after some time\n<END>", "<BEGIN>\n## `calculate_response`", "Calculate response for the challenge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_temperature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_temperature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns the current environment temperature. Attention: Returns None if the value can't be queried or is unknown.
"Returns the current environment temperature.\n Attention: Returns None if the value can't be queried or is unknown."
35
false
DerMitch/fritzbox-smarthome
get_temperature
20,369
LDU_FT/VitorRamos/cpufreq/set_governors
LDU_FT
[ "<BEGIN>\n## `reset`", "Enable all offline cpus, and reset max and min frequencies files", " rg: range or list of threads to reset\n<END>", "<BEGIN>\n## `disable_hyperthread`", "Disable all threads attached to the same core\n<END>", "<BEGIN>\n## `disable_cpu`", "Disable cpus", " rg: rang...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_governors API. 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 set_governors API. 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...
Set governors gov: str name of the governor rg: list of range of cores
"Set governors\n\n gov: str name of the governor\n rg: list of range of cores"
17
false
VitorRamos/cpufreq
set_governors
20,370
LDU_FT/hawkular/hawkular-client-python/query_tag_values
LDU_FT
[ "<BEGIN>\n## `create_datapoint`", "Creates a single datapoint dict with a value, timestamp and tags.", " :param value: Value of the datapoint. Type depends on the id's MetricType\n :param timestamp: Optional timestamp of the datapoint. Uses client current time if not set. Millisecond accuracy. Can be date...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_tag_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. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_tag_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. The ...
Query for possible tag values. :param metric_type: A MetricType to be queried. If left to None, matches all the MetricTypes :param tags: A dict of tag key/value pairs. Uses Hawkular-Metrics tag query language for syntax
"Query for possible tag values.\n\n :param metric_type: A MetricType to be queried. If left to None, matches all the MetricTypes\n :param tags: A dict of tag key/value pairs. Uses Hawkular-Metrics tag query language for syntax"
116
false
hawkular/hawkular-client-python
query_tag_values
20,371
LDU_FT/pydsigner/taskit/taskit
LDU_FT
[ "<BEGIN>\n## `_wait`", "Based upon an extract from threading.Condition().wait(). Immediately \n tries to acquire the lock, and then sleeps for a period of time (going \n 1/2ms..1ms..2ms..4ms...50ms..50ms), repeating until the lock is \n acquired or the timeout limit is reached.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the taskit API. 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 taskit API. 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 ...
Shortcut for a standard subclass of Task(). Can be used as a decorator.
"Shortcut for a standard subclass of Task(). Can be used as a decorator."
59
false
pydsigner/taskit
taskit
20,372