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/aaugustin/websockets/recv
LDU_FT
[ "<BEGIN>\n## `ensure_open`", "Check that the WebSocket connection is open.", " Raise :exc:`~websockets.exceptions.ConnectionClosed` if it isn't.\n<END>", "<BEGIN>\n## `transfer_data`", "Read incoming messages and put them in a queue.", " This coroutine runs in a task until the closing handsh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recv API. 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 recv API. 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...
This coroutine receives the next message. It returns a :class:`str` for a text frame and :class:`bytes` for a binary frame. When the end of the message stream is reached, :meth:`recv` raises :exc:`~websockets.exceptions.ConnectionClosed`. This can happen after a normal connecti...
"This coroutine receives the next message.\n\n It returns a :class:`str` for a text frame and :class:`bytes` for a\n binary frame.\n\n When the end of the message stream is reached, :meth:`recv` raises\n :exc:`~websockets.exceptions.ConnectionClosed`. This can happen after\n a normal ...
346
false
aaugustin/websockets
recv
142,573
LDU_FT/noahbenson/pimms/_imm_repr
LDU_FT
[ "<BEGIN>\n## `to_argv_schema`", "to_argv_schema(instructions) yields a valid tuple of CommandLineParser instructions for the\n given instructions tuple; by itself, this will only return the instructions as they are, but\n optional arguments (below) will override the values in the instructions if provide...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _imm_repr API. 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 _imm_repr API. 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...
The default representation function for an immutable object.
"The default representation function for an immutable object."
241
false
noahbenson/pimms
_imm_repr
142,574
LDU_FT/raphaelm/django-hierarkey/add_default
LDU_FT
[ "<BEGIN>\n## `add_default`", "Adds a default value and a default type for a key.", " :param key: Key\n :param value: *Serialized* default value, i.e. a string or ``None``.\n :param default_type: The type to unserialize values for this key to, defaults to ``str``.\n<END>", "<BEGIN>\n## `ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extra...
Adds a default value and a default type for a key. :param key: Key :param value: *Serialized* default value, i.e. a string or ``None``. :param default_type: The type to unserialize values for this key to, defaults to ``str``.
"Adds a default value and a default type for a key.\n\n :param key: Key\n :param value: *Serialized* default value, i.e. a string or ``None``.\n :param default_type: The type to unserialize values for this key to, defaults to ``str``."
29
false
raphaelm/django-hierarkey
add_default
142,575
LDU_FT/celery/django-celery/task_webhook
LDU_FT
[ "<BEGIN>\n## `transaction_retry`", "Decorator for methods doing database operations.", " If the database operation fails, it will retry the operation\n at most ``max_retries`` times.\n<END>", "<BEGIN>\n## `get_task`", "Get task meta for task by ``task_id``.", " :keyword exception_retry_count:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the task_webhook API. 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 task_webhook API. 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...
Decorator turning a function into a task webhook. If an exception is raised within the function, the decorated function catches this and returns an error JSON response, otherwise it returns the result as a JSON response. Example: .. code-block:: python @task_webhook def add(requ...
"Decorator turning a function into a task webhook.\n\n If an exception is raised within the function, the decorated\n function catches this and returns an error JSON response, otherwise\n it returns the result as a JSON response.\n\n\n Example:\n\n .. code-block:: python\n\n @task_webhook\n ...
65
false
celery/django-celery
task_webhook
142,576
LDU_FT/tcalmant/python-javaobj/do_array
LDU_FT
[ "<BEGIN>\n## `decoder`", "This generator processes a sequence of bytes in Modified UTF-8 encoding\n and produces a sequence of unicode string characters.", " It takes bits from the byte until it matches one of the known encoding\n sequences.\n It uses ``DecodeMap`` to mask, compare and generate valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_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 extracte...
Handles a TC_ARRAY opcode :param parent: :param ident: Log indentation level :return: A list of deserialized objects
"Handles a TC_ARRAY opcode\n\n :param parent:\n :param ident: Log indentation level\n :return: A list of deserialized objects"
104
false
tcalmant/python-javaobj
do_array
142,577
LDU_FT/juju/theblues/timeout_error
LDU_FT
[ "<BEGIN>\n## `list_models`", "Get the logged in user's models from the JIMM controller.", " @param macaroons The discharged JIMM macaroons.\n @return The json decoded list of environments.\n<END>", "<BEGIN>\n## `make_request`", "Make a request with the provided data.", " @param url The ur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeout_error API. 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 timeout_error API. 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...
Raise a server error indicating a request timeout to the given URL.
"Raise a server error indicating a request timeout to the given URL."
141
false
juju/theblues
timeout_error
142,578
LDU_FT/lingthio/Flask-User/send_email_message
LDU_FT
[ "<BEGIN>\n## `send_email_message`", "Send email message via Flask-Sendmail.", " Args:\n recipient: Email address or tuple of (Name, Email-address).\n subject: Subject line.\n html_message: The message body in HTML.\n text_message: The message body in plain text...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_email_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_email_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Send email message via sendgrid-python. Args: recipient: Email address or tuple of (Name, Email-address). subject: Subject line. html_message: The message body in HTML. text_message: The message body in plain text.
"Send email message via sendgrid-python.\n\n Args:\n recipient: Email address or tuple of (Name, Email-address).\n subject: Subject line.\n html_message: The message body in HTML.\n text_message: The message body in plain text."
186
false
lingthio/Flask-User
send_email_message
142,579
LDU_FT/droope/droopescan/_print
LDU_FT
[ "<BEGIN>\n## `_convert_to_folder`", "Silverstripe's page contains a list of composer packages. This\n function converts those to folder names. These may be different due\n to installer-name.", " Implemented exponential backoff in order to prevent packager from\n being...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _print API. 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 _print API. 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 ...
Output format affects integration tests. @see: IntegrationTests.mock_output
"Output format affects integration tests.\n @see: IntegrationTests.mock_output"
84
false
droope/droopescan
_print
142,580
LDU_FT/JelleAalbers/multihist/std
LDU_FT
[ "<BEGIN>\n## `from_histogram`", "Make a Hist1D from a numpy bin_edges + histogram pair\n :param histogram: Initial histogram\n :param bin_edges: Bin edges of histogram. Must be one longer than length of histogram\n :param axis_names: Ignored. Sorry :-)\n :return:\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the std API. 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 std API. 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...
Estimates std of underlying data, assuming each datapoint was exactly in the center of its bin.
"Estimates std of underlying data, assuming each datapoint was exactly in the center of its bin."
57
false
JelleAalbers/multihist
std
142,581
LDU_FT/filestack/filestack-python/delete
LDU_FT
[ "<BEGIN>\n## `to_filelink`", "Checks is the status of the conversion is complete and, if so, converts to a Filelink", " *returns* [Filestack.Filelink]", " ```python\n filelink = av_convert.to_filelink()\n ```\n<END>", "<BEGIN>\n## `url`", "Returns the URL for the instance, whic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You may delete any file you have uploaded, either through a Filelink returned from the client or one you have initialized yourself. This returns a response of success or failure. This action requires security.abs *returns* [requests.response] ```python from filestack import Client, sec...
"You may delete any file you have uploaded, either through a Filelink returned from the client or one you have initialized yourself.\n This returns a response of success or failure. This action requires security.abs\n\n *returns* [requests.response]\n\n ```python\n from filestack import Clie...
82
false
filestack/filestack-python
delete
142,582
LDU_FT/edx/event-tracking/context
LDU_FT
[ "<BEGIN>\n## `send`", "Insert the event in to the Mongo collection\n<END>", "<BEGIN>\n## `create_backends_from_settings`", "Expects the Django setting \"EVENT_TRACKING_BACKENDS\" to be defined and point\n to a dictionary of backend engine configurations.", " Example::", " EVENT_TR...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the context API. 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 context API. 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...
Execute the block with the given context applied. This manager ensures that the context is removed even if an exception is raised within the context.
"Execute the block with the given context applied. This manager\n ensures that the context is removed even if an exception is raised\n within the context."
47
false
edx/event-tracking
context
142,583
LDU_FT/rdussurget/py-altimetry/yule_walker_regression
LDU_FT
[ "<BEGIN>\n## `bilinear_interpolation`", "Interpolate (x,y) from values associated with four points.\r", " The four points are a list of four triplets: (x, y, value).\r\n The four points can be in any order. They should form a rectangle.\r", " >>> bilinear_interpolation(12, 5.5,\r\n ... ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the yule_walker_regression 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 yule_walker_regression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
:parameter X: time vector (disabled) :parameter Y: stationary time series :parameter deg: AR model degree :return: * a : Yule Walker parameters * sig : Standard deviation of the noise term * aicc : corrected Akaike Information Criterion * gamma : Autocorrelation function ...
":parameter X: time vector (disabled)\r\n :parameter Y: stationary time series\r\n :parameter deg: AR model degree\r\n :return:\r\n * a : Yule Walker parameters\r\n * sig : Standard deviation of the noise term\r\n * aicc : corrected Akaike Information Criterion\r\n * gamma : Autocorrelation...
320
false
rdussurget/py-altimetry
yule_walker_regression
142,584
LDU_FT/facelessuser/backrefs/gen_uposix
LDU_FT
[ "<BEGIN>\n## `download_unicodedata`", "Download Unicode data scripts and blocks.\n<END>", "<BEGIN>\n## `get_unicodedata`", "Ensure we have Unicode data to generate Unicode tables.\n<END>", "<BEGIN>\n## `posix_props`", "Insert POSIX properties.", " Posix style properties are not as forgiving\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_uposix API. 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 gen_uposix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Generate the posix table and write out to file.
"Generate the posix table and write out to file."
75
false
facelessuser/backrefs
gen_uposix
142,585
LDU_FT/yodle/docker-registry-client/_http_response
LDU_FT
[ "<BEGIN>\n## `_http_response`", "url -> full target url\n method -> method from requests\n data -> request body\n kwargs -> url formatting args\n<END>", "<BEGIN>\n## `_http_call`", "url -> full target url\n method -> method from requests\n data -> request body...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _http_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _http_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
url -> full target url method -> method from requests data -> request body kwargs -> url formatting args
"url -> full target url\n method -> method from requests\n data -> request body\n kwargs -> url formatting args"
18
false
yodle/docker-registry-client
_http_response
142,586
LDU_FT/grahambell/pymoc/add
LDU_FT
[ "<BEGIN>\n## `run`", "Main run method for PyMOC tool.", " Takes a list of command line arguments to process.", " Each operation is performed on a current \"running\" MOC\n object.\n<END>", "<BEGIN>\n## `read_moc`", "Read a file into the current running MOC object.", " If the ...
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...
Add cells at a given order to the MOC. The cells are inserted into the MOC at the specified order. This leaves the MOC in an un-normalized state. The cells are given as a collection of integers (or types which can be converted to integers). >>> m = MOC() >>> m.add(4, ...
"Add cells at a given order to the MOC.\n\n The cells are inserted into the MOC at the specified order. This\n leaves the MOC in an un-normalized state. The cells are given\n as a collection of integers (or types which can be converted\n to integers).\n\n >>> m = MOC()\n >>> ...
165
false
grahambell/pymoc
add
142,587
LDU_FT/esheldon/fitsio/_update_info
LDU_FT
[ "<BEGIN>\n## `is_little_endian`", "Return True if array is little endian, False otherwise.", " Parameters\n ----------\n array: numpy array\n A numerical python array.", " Returns\n -------\n Truth value:\n True for little-endian", " Notes\n -----\n Strings are neith...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Call parent method and make sure this is in fact a table HDU. Set some convenience data.
"Call parent method and make sure this is in fact a\n table HDU. Set some convenience data."
294
false
esheldon/fitsio
_update_info
142,588
LDU_FT/tehmaze/natural/filesize
LDU_FT
[ "<BEGIN>\n## `ordinal`", "Converts a number to its ordinal representation.", " :param value: number", " >>> print(ordinal(1))\n 1st\n >>> print(ordinal(11))\n 11th\n >>> print(ordinal(101))\n 101st\n >>> print(ordinal(104))\n 104th\n >>> print(ordinal(113))\n 113th\n >>> pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filesize API. 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 filesize API. 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...
Convert a file size into natural readable format. Multiple formats are supported. :param value: size :param format: default ``decimal``, choices ``binary``, ``decimal`` or ``gnu`` :param digits: default ``2`` >>> print(filesize(123)) 123.00 B >>> print(filesize(123456)) ...
"Convert a file size into natural readable format. Multiple formats are\n supported.\n\n :param value: size\n :param format: default ``decimal``, choices ``binary``, ``decimal`` or\n ``gnu``\n :param digits: default ``2``\n\n >>> print(filesize(123))\n 123.00 B\n >>> print(filesiz...
153
false
tehmaze/natural
filesize
142,589
LDU_FT/SeattleTestbed/seash/get_history_item
LDU_FT
[ "<BEGIN>\n## `_bind_key`", "u\"\"\"setup the mapping from key to call the function.\n<END>", "<BEGIN>\n## `_bind_exit_key`", "u\"\"\"setup the mapping from key to call the function.\n<END>", "<BEGIN>\n## `_get_completions`", "Return a list of possible completions for the string ending at the point.\r\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_history_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_history_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
u'''Return the current contents of history item at index (starts with index 1).
"u'''Return the current contents of history item at index (starts with index 1)."
281
false
SeattleTestbed/seash
get_history_item
142,590
LDU_FT/StorjOld/plowshare-wrapper/download_from_host
LDU_FT
[ "<BEGIN>\n## `_run_command`", "Wrapper to pass command to plowshare.", " :param command: The command to pass to plowshare.\n :type command: str\n :param **kwargs: Additional keywords passed into\n :type **kwargs: dict\n :returns: Object containing either output of plowshare co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_from_host 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 download_from_host 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...
Download a file from a given host. This method renames the file to the given string. :param source: Dictionary containing information about host. :type source: dict :param output_directory: Directory to place output in. :type output_directory: str :param filename: The f...
"Download a file from a given host.\n\n This method renames the file to the given string.\n\n :param source: Dictionary containing information about host.\n :type source: dict\n :param output_directory: Directory to place output in.\n :type output_directory: str\n :param filena...
32
false
StorjOld/plowshare-wrapper
download_from_host
142,591
LDU_FT/erikrose/more-itertools/ilen
LDU_FT
[ "<BEGIN>\n## `first`", "Return the first item of *iterable*, or *default* if *iterable* is\n empty.", " >>> first([0, 1, 2, 3])\n 0\n >>> first([], 'some default')\n 'some default'", " If *default* is not provided and there are no items in the iterable,\n raise ``ValueErro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ilen API. 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 ilen API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return the number of items in *iterable*. >>> ilen(x for x in range(1000000) if x % 3 == 0) 333334 This consumes the iterable, so handle with care.
"Return the number of items in *iterable*.\n\n >>> ilen(x for x in range(1000000) if x % 3 == 0)\n 333334\n\n This consumes the iterable, so handle with care."
342
false
erikrose/more-itertools
ilen
142,592
LDU_FT/scikit-hep/root_numpy/hist2array
LDU_FT
[ "<BEGIN>\n## `matrix`", "Convert a ROOT TMatrix into a NumPy matrix.", " Parameters\n ----------\n mat : ROOT TMatrixT\n A ROOT TMatrixD or TMatrixF", " Returns\n -------\n mat : numpy.matrix\n A NumPy matrix", " Examples\n --------\n >>> from root_numpy import matri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hist2array API. 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 hist2array API. 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...
Convert a ROOT histogram into a NumPy array Parameters ---------- hist : ROOT TH1, TH2, TH3, THn, or THnSparse The ROOT histogram to convert into an array include_overflow : bool, optional (default=False) If True, the over- and underflow bins will be included in the output numpy...
"Convert a ROOT histogram into a NumPy array\n\n Parameters\n ----------\n hist : ROOT TH1, TH2, TH3, THn, or THnSparse\n The ROOT histogram to convert into an array\n include_overflow : bool, optional (default=False)\n If True, the over- and underflow bins will be included in the\n out...
180
false
scikit-hep/root_numpy
hist2array
142,593
LDU_FT/RedisJSON/rejson-py/jsonmget
LDU_FT
[ "<BEGIN>\n## `bulk_of_jsons`", "Replace serialized JSON values with objects in a bulk array response (list)\n<END>", "<BEGIN>\n## `setEncoder`", "Sets the client's encoder\n ``encoder`` should be an instance of a ``json.JSONEncoder`` class\n<END>", "<BEGIN>\n## `setDecoder`", "Sets the client's dec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsonmget API. 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 jsonmget API. 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...
Gets the objects stored as a JSON values under ``path`` from keys ``args``
"Gets the objects stored as a JSON values under ``path`` from \n keys ``args``"
43
false
RedisJSON/rejson-py
jsonmget
142,594
LDU_FT/cheind/tf-matplotlib/from_labels_and_predictions
LDU_FT
[ "<BEGIN>\n## `figure_buffer`", "Extract raw image buffer from matplotlib figure shaped as 1xHxWx3.\n<END>", "<BEGIN>\n## `figure_tensor`", "Decorate matplotlib drawing routines.", " This dectorator is meant to decorate functions that return matplotlib\n figures. The decorated function has to have the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_labels_and_predictions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_labels_and_predictions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Compute a confusion matrix from labels and predictions. A drop-in replacement for tf.confusion_matrix that works on CPU data and not tensors. Params ------ labels : array-like 1-D array of real labels for classification predicitions: array-like 1-D array of predicted label...
"Compute a confusion matrix from labels and predictions.\n \n A drop-in replacement for tf.confusion_matrix that works on CPU data\n and not tensors.\n\n Params\n ------\n labels : array-like \n 1-D array of real labels for classification\n predicitions: array-like\n 1-D array of pred...
37
false
cheind/tf-matplotlib
from_labels_and_predictions
142,595
LDU_FT/hasgeek/coaster/is_collection
LDU_FT
[ "<BEGIN>\n## `init_app`", "Enables logging for an app using :class:`LocalVarFormatter`. Requires the\n app to be configured and checks for the following configuration parameters.\n All are optional:", " * ``LOGFILE``: Name of the file to log to (default ``error.log``)\n * ``ADMINS``: List of email a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_collection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_collection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns True if the item is a collection class: list, tuple, set, frozenset or any other class that resembles one of these (using abstract base classes). >>> is_collection(0) False >>> is_collection(0.1) False >>> is_collection('') False >>> is_collection({}) False >>> is_collec...
"Returns True if the item is a collection class: list, tuple, set, frozenset\n or any other class that resembles one of these (using abstract base classes).\n\n >>> is_collection(0)\n False\n >>> is_collection(0.1)\n False\n >>> is_collection('')\n False\n >>> is_collection({})\n False\n >...
344
false
hasgeek/coaster
is_collection
142,596
LDU_FT/kevinconway/confpy/parsed
LDU_FT
[ "<BEGIN>\n## `configfile_from_path`", "Get a ConfigFile object based on a file path.", " This method will inspect the file extension and return the appropriate\n ConfigFile subclass initialized with the given path.", " Args:\n path (str): The file path which represents the configuration file.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parsed API. 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 parsed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Get the code object which represents the compiled Python file. This property is cached and only parses the content once.
"Get the code object which represents the compiled Python file.\n\n This property is cached and only parses the content once."
104
false
kevinconway/confpy
parsed
142,597
LDU_FT/Microsoft/azure-devops-python-api/update_subscription_user_settings
LDU_FT
[ "<BEGIN>\n## `create_attachment`", "CreateAttachment.\n Creates an attachment in the wiki.\n :param object upload_stream: Stream to upload\n :param str project: Project ID or project name\n :param str wiki_identifier: Wiki Id or name.\n :param str name: Wiki attachment name.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_subscription_user_settings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_subscription_user_settings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
UpdateSubscriptionUserSettings. [Preview API] Update the specified user's settings for the specified subscription. This API is typically used to opt in or out of a shared subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions. :param :cl...
"UpdateSubscriptionUserSettings.\n [Preview API] Update the specified user's settings for the specified subscription. This API is typically used to opt in or out of a shared subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions.\n :param ...
1,304
true
Microsoft/azure-devops-python-api
update_subscription_user_settings
142,598
LDU_FT/evhub/coconut/check_strict
LDU_FT
[ "<BEGIN>\n## `single_import`", "Generate import statements from a fully qualified import and the name to bind it to.\n<END>", "<BEGIN>\n## `universal_import`", "Generate code for a universal import of imports from imp_from on target.\n imports = [[imp1], [imp2, as], ...]\n<END>", "<BEGIN>\n## `bind`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_strict API. 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 check_strict API. 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...
Check that syntax meets --strict requirements.
"Check that syntax meets --strict requirements."
219
false
evhub/coconut
check_strict
142,599
LDU_FT/wbond/certvalidator/verify_crl
LDU_FT
[ "<BEGIN>\n## `fetch`", "Fetches an OCSP response for a certificate", " :param cert:\n An asn1cyrpto.x509.Certificate object to get an OCSP reponse for", " :param issuer:\n An asn1crypto.x509.Certificate object that is the issuer of cert", " :param hash_algo:\n A unicode string ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_crl API. 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 verify_crl API. 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...
Verifies a certificate against a list of CRLs, checking to make sure the certificate has not been revoked. Uses the algorithm from https://tools.ietf.org/html/rfc5280#section-6.3 as a basis, but the implementation differs to allow CRLs from unrecorded locations. :param cert: An asn1cyrpto.x509....
"Verifies a certificate against a list of CRLs, checking to make sure the\n certificate has not been revoked. Uses the algorithm from\n https://tools.ietf.org/html/rfc5280#section-6.3 as a basis, but the\n implementation differs to allow CRLs from unrecorded locations.\n\n :param cert:\n An asn1cyrpt...
202
false
wbond/certvalidator
verify_crl
142,600
LDU_FT/stxnext/mappet/create
LDU_FT
[ "<BEGIN>\n## `no_empty_value`", "Raises an exception if function argument is empty.\n<END>", "<BEGIN>\n## `to_bool`", "Converts human boolean-like values to Python boolean.", " Falls back to :class:`bool` when ``value`` is not recognized.", " :param value: the value to convert\n :returns: ``True`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
u"""Creates a node, if it doesn't exist yet. Unlike attribute access, this allows to pass a node's name with hyphens. Those hyphens will be normalized automatically. In case the required element already exists, raises an exception. Updating/overwriting should be done using `update``.
"u\"\"\"Creates a node, if it doesn't exist yet.\n\n Unlike attribute access, this allows to pass a node's name with hyphens.\n Those hyphens will be normalized automatically.\n\n In case the required element already exists, raises an exception.\n Updating/overwriting should be done using `u...
66
false
stxnext/mappet
create
142,601
LDU_FT/gmr/tredis/sinterstore
LDU_FT
[ "<BEGIN>\n## `auth`", "Request for authentication in a password-protected Redis server.\n Redis can be instructed to require a password before allowing clients\n to execute commands. This is done using the ``requirepass`` directive\n in the configuration file.", " If the password doe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sinterstore API. 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 sinterstore API. 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...
This command is equal to :meth:`~tredis.RedisClient.sinter`, but instead of returning the resulting set, it is stored in destination. If destination already exists, it is overwritten. .. note:: **Time complexity**: ``O(N*M)`` worst case where ``N`` is the cardinality of ...
"This command is equal to :meth:`~tredis.RedisClient.sinter`, but\n instead of returning the resulting set, it is stored in destination.\n\n If destination already exists, it is overwritten.\n\n .. note::\n\n **Time complexity**: ``O(N*M)`` worst case where ``N`` is the\n cardin...
523
false
gmr/tredis
sinterstore
142,602
LDU_FT/madprime/cgivar2gvcf/process_full_position
LDU_FT
[ "<BEGIN>\n## `auto_zip_open`", "Convenience function for opening potentially-compressed files.\n<END>", "<BEGIN>\n## `process_full_position`", "Return genetic data when all alleles called on same line.", " Returns an array containing one item, a tuple of five items:\n (string) chromosome\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_full_position 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_full_position API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return genetic data when all alleles called on same line. Returns an array containing one item, a tuple of five items: (string) chromosome (string) start position (1-based) (array of strings) matching dbSNP entries (string) reference allele sequence (array of strings) the ge...
"Return genetic data when all alleles called on same line.\n\n Returns an array containing one item, a tuple of five items:\n (string) chromosome\n (string) start position (1-based)\n (array of strings) matching dbSNP entries\n (string) reference allele sequence\n (array of strings...
33
false
madprime/cgivar2gvcf
process_full_position
142,603
LDU_FT/JohnVinyard/zounds/morlet_filter_bank
LDU_FT
[ "<BEGIN>\n## `validate`", "Ensure that the size of the dimension matches the number of bands in the\n scale", " Raises:\n ValueError: when the dimension size and number of bands don't match\n<END>", "<BEGIN>\n## `resampled`", "Create a basic processing pipeline that can resample al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the morlet_filter_bank 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 morlet_filter_bank 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 :class:`~zounds.core.ArrayWithUnits` instance with a :class:`~zounds.timeseries.TimeDimension` and a :class:`~zounds.spectral.FrequencyDimension` representing a bank of morlet wavelets centered on the sub-bands of the scale. Args: samplerate (SampleRate): the samplerate of the input si...
"Create a :class:`~zounds.core.ArrayWithUnits` instance with a\n :class:`~zounds.timeseries.TimeDimension` and a\n :class:`~zounds.spectral.FrequencyDimension` representing a bank of morlet\n wavelets centered on the sub-bands of the scale.\n\n Args:\n samplerate (SampleRate): the samplerate of the i...
97
false
JohnVinyard/zounds
morlet_filter_bank
142,604
LDU_FT/BernardFW/bernard/accept
LDU_FT
[ "<BEGIN>\n## `_build_stack`", "Generates the stack of functions to call. It looks at the ordered list\n of all middlewares and only keeps those which have the method we're\n trying to call.\n<END>", "<BEGIN>\n## `instance`", "Creates, initializes and returns a unique MiddlewareManager instance.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accept API. 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 accept API. 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 ...
Checks that the stack can be accepted according to the `PATTERNS`. If the pattern is found, then its name is stored in the `annotation` attribute of the stack.
"Checks that the stack can be accepted according to the `PATTERNS`.\n\n If the pattern is found, then its name is stored in the `annotation`\n attribute of the stack."
427
false
BernardFW/bernard
accept
142,605
LDU_FT/aganezov/gos/initiate_tasks
LDU_FT
[ "<BEGIN>\n## `get_vertex_surrounding_multicolor`", "Loops over all edges that are incident to supplied vertex and accumulates all colors,\n that are present in those edges\n<END>", "<BEGIN>\n## `get_irregular_edge_by_vertex`", "Loops over all edges that are incident to supplied vertex and return a first i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initiate_tasks API. 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 initiate_tasks API. 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...
Loads all tasks using `TaskLoader` from respective configuration option
"Loads all tasks using `TaskLoader` from respective configuration option"
39
false
aganezov/gos
initiate_tasks
142,606
LDU_FT/signalfx/signalfx-python/add
LDU_FT
[ "<BEGIN>\n## `gauge`", "Adds gauge with dimensions to the global pyformance registry\n<END>", "<BEGIN>\n## `count_calls_with_dims`", "Decorator to track the number of times a function is called\n with with dimensions.\n<END>", "<BEGIN>\n## `meter_calls_with_dims`", "Decorator to track the rate at which...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Adds custom metric instances to the registry with dimensions which are not created with their constructors default arguments
"Adds custom metric instances to the registry with dimensions\n which are not created with their constructors default arguments"
139
false
signalfx/signalfx-python
add
142,607
LDU_FT/benknight/hue-python-rgb-converter/get_xy_point_from_rgb
LDU_FT
[ "<BEGIN>\n## `hex_to_rgb`", "Converts a valid hex color string to an RGB array.\n<END>", "<BEGIN>\n## `cross_product`", "Returns the cross product of two XYPoints.\n<END>", "<BEGIN>\n## `get_distance_between_two_points`", "Returns the distance between two XYPoints.\n<END>", "<BEGIN>\n## `get_xy_point_fr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_xy_point_from_rgb 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_xy_point_from_rgb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns an XYPoint object containing the closest available CIE 1931 x, y coordinates based on the RGB input values.
"Returns an XYPoint object containing the closest available CIE 1931 x, y coordinates\n based on the RGB input values."
20
false
benknight/hue-python-rgb-converter
get_xy_point_from_rgb
142,608
LDU_FT/Chyroc/WechatSogou/get_article_by_history_json
LDU_FT
[ "<BEGIN>\n## `__hosting_wechat_img`", "将微信明细中图片托管到云端,同时将html页面中的对应图片替换", " Parameters\n ----------\n content_info : dict 微信文章明细字典\n {\n 'content_img_list': [], # 从微信文章解析出的原始图片列表\n 'content_html': '', # 从微信文章解析出文章的内容\n }\n hosting_ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_article_by_history_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_article_by_history_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
从 历史消息页的文本 提取文章列表信息 Parameters ---------- text : str or unicode 历史消息页的文本 article_json : dict 历史消息页的文本 提取出来的文章json dict Returns ------- list[dict] { 'send_id': '', # 群发id,注意不唯一,因为同一次群发多个消息,而群发id一致 ...
"从 历史消息页的文本 提取文章列表信息\n\n Parameters\n ----------\n text : str or unicode\n 历史消息页的文本\n article_json : dict\n 历史消息页的文本 提取出来的文章json dict\n\n Returns\n -------\n list[dict]\n {\n 'send_id': '', # 群发id,注意不唯一,因为同一次群发多个消息,而群发id一致...
99
false
Chyroc/WechatSogou
get_article_by_history_json
142,609
LDU_FT/shveenkov/aiotarantool-queue-python/delete
LDU_FT
[ "<BEGIN>\n## `create_from_tuple`", "Create task from tuple.", " Returns `Task` instance.\n<END>", "<BEGIN>\n## `release`", "Put the task back into the queue.", " May contain a possible new `delay` before the task is executed again.", " Returns `True` is task is released (task state ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Delete task (in any state) permanently. Returns `True` is task is deleted.
"Delete task (in any state) permanently.\n\n Returns `True` is task is deleted."
43
false
shveenkov/aiotarantool-queue-python
delete
142,610
LDU_FT/jobovy/galpy/_evaluate
LDU_FT
[ "<BEGIN>\n## `_evaluate`", "NAME:\n _evaluate\n PURPOSE:\n evaluate the potential at (R,z)\n INPUT:\n R - Cylindrical Galactocentric radius\n z - vertical height\n phi - azimuth\n t - time\n OUTPUT:\n potential at (R,z)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _evaluate API. 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 _evaluate API. 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...
NAME: _evaluate PURPOSE: evaluate the potential at R,z INPUT: R - Galactocentric cylindrical radius z - vertical height phi - azimuth t - time OUTPUT: Phi(R,z) HISTORY: 2015-12-04 - Started - Bovy (Uo...
"NAME:\n _evaluate\n PURPOSE:\n evaluate the potential at R,z\n INPUT:\n R - Galactocentric cylindrical radius\n z - vertical height\n phi - azimuth\n t - time\n OUTPUT:\n Phi(R,z)\n HISTORY:\n 2015-12-04 - Start...
5,004
true
jobovy/galpy
_evaluate
142,611
LDU_FT/evhub/coconut/pylog
LDU_FT
[ "<BEGIN>\n## `single_import`", "Generate import statements from a fully qualified import and the name to bind it to.\n<END>", "<BEGIN>\n## `universal_import`", "Generate code for a universal import of imports from imp_from on target.\n imports = [[imp1], [imp2, as], ...]\n<END>", "<BEGIN>\n## `bind`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pylog API. 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 pylog API. 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...
Display all available logging information.
"Display all available logging information."
219
false
evhub/coconut
pylog
142,612
LDU_FT/seyriz/taiga-contrib-google-auth/login
LDU_FT
[ "<BEGIN>\n## `login`", "Get access_token fron an user authorized code, the client id and the client secret key.\n (See https://developer.google.com/v3/oauth/#web-application-flow).\n<END>", "<BEGIN>\n## `get_user_profile`", "Get authenticated user info.\n (See https://developer.google.com/v3/users/#get-...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Get access_token fron an user authorized code, the client id and the client secret key. (See https://developer.google.com/v3/oauth/#web-application-flow).
"Get access_token fron an user authorized code, the client id and the client secret key.\n (See https://developer.google.com/v3/oauth/#web-application-flow)."
10
false
seyriz/taiga-contrib-google-auth
login
142,613
LDU_FT/pschmitt/pykeepass/aes_kdf
LDU_FT
[ "<BEGIN>\n## `compute_transformed`", "Compute transformed key for opening database\n<END>", "<BEGIN>\n## `compute_header_hmac_hash`", "Compute HMAC-SHA256 hash of header.\n Used to prevent header tampering.\n<END>", "<BEGIN>\n## `compute_payload_block_hash`", "Compute hash of each payload block.\n U...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the aes_kdf API. 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 aes_kdf API. 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 up a context for AES128-ECB encryption to find transformed_key
"Set up a context for AES128-ECB encryption to find transformed_key"
46
false
pschmitt/pykeepass
aes_kdf
142,614
LDU_FT/anrosent/cli/exec_cmd
LDU_FT
[ "<BEGIN>\n## `add_func`", "Adds a command to the CLI - specify args as you would to\n argparse.ArgumentParser.add_argument()\n<END>", "<BEGIN>\n## `add_cli`", "Adds the functionality of the other CLI to this one, where all\n commands to the other CLI are prefixed by the given prefix plus a hyphe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exec_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exec_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Parse line from CLI read loop and execute provided command
"Parse line from CLI read loop and execute provided command"
13
false
anrosent/cli
exec_cmd
142,615
LDU_FT/rackerlabs/txkazoo/remove_listener
LDU_FT
[ "<BEGIN>\n## `_initialized`", "Store the partitioner and reset the internal state.", " Now that we successfully got an actual\n :class:`kazoo.recipe.partitioner.SetPartitioner` object, we\n store it and reset our internal ``_state`` to ``None``,\n causing the ``state`` property to de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_listener API. 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 remove_listener API. 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...
Remove the given listener from the wrapped client. :param listener: A listener previously passed to :meth:`add_listener`.
"Remove the given listener from the wrapped client.\n\n :param listener: A listener previously passed to :meth:`add_listener`."
21
false
rackerlabs/txkazoo
remove_listener
142,616
LDU_FT/securestate/termineter/format_ltime
LDU_FT
[ "<BEGIN>\n## `format_ltime`", "Return data formatted into a human readable time stamp.", "\t:param str endianess: The endianess to use when packing values ('>' or '<')\n\t:param int tm_format: The format that the data is packed in, this typically\n\t corresponds with the value in the GEN_CONFIG_TBL (table #0) ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_ltime API. 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 format_ltime API. 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 data formatted into a human readable time stamp. :param str endianess: The endianess to use when packing values ('>' or '<') :param int tm_format: The format that the data is packed in, this typically corresponds with the value in the GEN_CONFIG_TBL (table #0) (1 <= tm_format <= 4) :param bytes data: The ...
"Return data formatted into a human readable time stamp.\n\n\t:param str endianess: The endianess to use when packing values ('>' or '<')\n\t:param int tm_format: The format that the data is packed in, this typically\n\t corresponds with the value in the GEN_CONFIG_TBL (table #0) (1 <= tm_format <= 4)\n\t:param bytes ...
68
false
securestate/termineter
format_ltime
142,617
LDU_FT/micha030201/aionationstates/poll
LDU_FT
[ "<BEGIN>\n## `tgcanrecruit`", "Whether the nation will receive a recruitment telegram.", " Useful in conjunction with the Telegrams API.", " Parameters\n ----------\n region : str\n Name of the region you are recruiting for.", " Returns\n -------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the poll API. 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 poll API. 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...
Poll with a given id. Parameters ---------- id : int Poll id. Returns ------- an :class:`ApiQuery` of :class:`Poll` Raises ------ :class:`NotFound` If a poll with the requested id doesn't exist.
"Poll with a given id.\n\n Parameters\n ----------\n id : int\n Poll id.\n\n Returns\n -------\n an :class:`ApiQuery` of :class:`Poll`\n\n Raises\n ------\n :class:`NotFound`\n If a poll with the requested id doesn't exist."
156
false
micha030201/aionationstates
poll
142,618
LDU_FT/CitrineInformatics/pypif/to_capitalized_camel_case
LDU_FT
[ "<BEGIN>\n## `to_camel_case`", "Convert a string from snake case to camel case. For example, \"some_var\" would become \"someVar\".", " :param snake_case_string: Snake-cased string to convert to camel case.\n :returns: Camel-cased version of snake_case_string.\n<END>", "<BEGIN>\n## `to_capitalized_camel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_capitalized_camel_case 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 to_capitalized_camel_case API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Convert a string from snake case to camel case with the first letter capitalized. For example, "some_var" would become "SomeVar". :param snake_case_string: Snake-cased string to convert to camel case. :returns: Camel-cased version of snake_case_string.
"Convert a string from snake case to camel case with the first letter capitalized. For example, \"some_var\"\n would become \"SomeVar\".\n\n :param snake_case_string: Snake-cased string to convert to camel case.\n :returns: Camel-cased version of snake_case_string."
46
false
CitrineInformatics/pypif
to_capitalized_camel_case
142,619
LDU_FT/feliphebueno/Rinzler/exec_route_callback
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 exec_route_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exec_route_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. T...
Executes the resolved end-point callback, or its fallback :rtype: Response or object
"Executes the resolved end-point callback, or its fallback\n :rtype: Response or object"
50
false
feliphebueno/Rinzler
exec_route_callback
142,620
LDU_FT/invenia/Arbiter/task_loop
LDU_FT
[ "<BEGIN>\n## `create_task`", "Create a task object\n name: The name of the task.\n function: The actual task function. It should take no arguments,\n and return a False-y value if it fails.\n dependencies: (optional, ()) Any dependencies that this task relies\n on.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the task_loop API. 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 task_loop API. 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...
The inner task loop for a task runner. execute: A function that runs a task. It should take a task as its sole argument, and may optionally return a TaskResult. wait: (optional, None) A function to run whenever there aren't any runnable tasks (but there are still tasks listed as running). ...
"The inner task loop for a task runner.\n\n execute: A function that runs a task. It should take a task as its\n sole argument, and may optionally return a TaskResult.\n wait: (optional, None) A function to run whenever there aren't any\n runnable tasks (but there are still tasks listed as running)....
50
false
invenia/Arbiter
task_loop
142,621
LDU_FT/rwl/pylon/handleNotification
LDU_FT
[ "<BEGIN>\n## `performAction`", "perform an action on the world that changes it's internal state\n (maybe stochastically).", " All you have to do is pull one of the arm and receive a payout. Each\n arm has a distribution of different payouts that are delivered with\n different probabi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handleNotification 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 handleNotification 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...
handles a notification request by calling the appropriete method the service exposes
"handles a notification request by calling the appropriete method the service exposes"
527
false
rwl/pylon
handleNotification
142,622
LDU_FT/PlaidWeb/Pushl/get_feed
LDU_FT
[ "<BEGIN>\n## `get_feed`", "Get a feed", " Arguments:", " config -- the configuration\n url -- The URL of the feed", " retval -- a tuple of feed,previous_version,changed\n<END>", "<BEGIN>\n## `archive_namespace`", "Returns the known namespace of the RFC5005 extension, if any\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_feed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_feed API. 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 a feed Arguments: config -- the configuration url -- The URL of the feed retval -- a tuple of feed,previous_version,changed
"Get a feed\n\n Arguments:\n\n config -- the configuration\n url -- The URL of the feed\n\n retval -- a tuple of feed,previous_version,changed"
38
false
PlaidWeb/Pushl
get_feed
142,623
LDU_FT/rflamary/POT/fit
LDU_FT
[ "<BEGIN>\n## `plot1D_mat`", "Plot matrix M with the source and target 1D distribution", " Creates a subplot with the source distribution a on the left and\n target distribution b on the tot. The matrix M is shown in between.", " Parameters\n ----------\n a : np.array, shape (na,)\n Sour...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. 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 fit API. 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...
Build a coupling matrix from source and target sets of samples (Xs, ys) and (Xt, yt) Parameters ---------- Xs : array-like, shape (n_source_samples, n_features) The training input samples. ys : array-like, shape (n_source_samples,) The class labels ...
"Build a coupling matrix from source and target sets of samples\n (Xs, ys) and (Xt, yt)\n\n Parameters\n ----------\n Xs : array-like, shape (n_source_samples, n_features)\n The training input samples.\n ys : array-like, shape (n_source_samples,)\n The class labe...
711
false
rflamary/POT
fit
142,624
LDU_FT/reiinakano/xcessiv/hash_file
LDU_FT
[ "<BEGIN>\n## `return_func_to_optimize`", "Creates the function to be optimized by Bayes Optimization.", " The function automatically handles the case of already existing base learners, and if\n no base learner for the hyperparameters exists yet, creates one and updates it in the\n usual way.", " A...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_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 extract...
Returns SHA256 checksum of a file Args: path (string): Absolute file path of file to hash block_size (int, optional): Number of bytes to read per block
"Returns SHA256 checksum of a file\n\n Args:\n path (string): Absolute file path of file to hash\n\n block_size (int, optional): Number of bytes to read per block"
150
false
reiinakano/xcessiv
hash_file
142,625
LDU_FT/nanoporetech/ont_fast5_api/get_summary_data
LDU_FT
[ "<BEGIN>\n## `_clean`", "Convert numpy numeric types to their python equivalents.\n<END>", "<BEGIN>\n## `get_prior_alignment`", "Return the prior alignment that was used for 2D basecalling.", " :return: Alignment data table.\n<END>", "<BEGIN>\n## `get_2d_call_alignment`", "Return the alignment an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_summary_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_summary_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get the summary data for an analysis group. :param group_name: The name of the analysis group to pull summary data for. :returns: A dictionary whose keys are analysis steps, and whose values are dictionaries of key/value pairs for the results of that step.
"Get the summary data for an analysis group.\n \n :param group_name: The name of the analysis group to pull summary\n data for.\n :returns: A dictionary whose keys are analysis steps, and whose\n values are dictionaries of key/value pairs for the results of\n that s...
159
false
nanoporetech/ont_fast5_api
get_summary_data
142,626
LDU_FT/sqlboy/fileseq/xfrange
LDU_FT
[ "<BEGIN>\n## `xfrange`", "Returns a generator that yields the frames from start to stop, inclusive.\n In other words it adds or subtracts a frame, as necessary, to return the\n stop value as well, if the stepped range would touch that value.", " Args:\n start (int):\n stop (int):\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xfrange API. 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 xfrange API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns a generator that yields the frames from start to stop, inclusive. In other words it adds or subtracts a frame, as necessary, to return the stop value as well, if the stepped range would touch that value. Args: start (int): stop (int): step (int): Note that the sign will be i...
"Returns a generator that yields the frames from start to stop, inclusive.\n In other words it adds or subtracts a frame, as necessary, to return the\n stop value as well, if the stepped range would touch that value.\n\n Args:\n start (int):\n stop (int):\n step (int): Note that the sign w...
146
false
sqlboy/fileseq
xfrange
142,627
LDU_FT/frnsys/broca/train
LDU_FT
[ "<BEGIN>\n## `train_doc2vec`", "Train a doc2vec model on a list of files.\n<END>", "<BEGIN>\n## `_doc2vec_doc_stream`", "Generator to feed sentences to the dov2vec model.\n<END>", "<BEGIN>\n## `estimate_eps`", "Estimates possible eps values (to be used with DBSCAN)\n for a given distance matrix by look...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the train API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the train API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Train Doc2Vec on a series of docs. Train from scratch or update. Args: docs: list of tuples (assetid, body_text) or dictionary {assetid : body_text} retrain: boolean, retrain from scratch or update model saves model in class to self.model Returns: 0 if successful
"Train Doc2Vec on a series of docs. Train from scratch or update.\n\n Args:\n docs: list of tuples (assetid, body_text) or dictionary {assetid : body_text}\n retrain: boolean, retrain from scratch or update model\n\n saves model in class to self.model \n\n Returns: 0 if succ...
125
false
frnsys/broca
train
142,628
LDU_FT/wuher/devil/serialize
LDU_FT
[ "<BEGIN>\n## `create`", "Create object from the given data.", " The given data may or may not have been validated prior to calling\n this function. This function will try its best in creating the object.\n If the resulting object cannot be produced, raises ``ValidationError``.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Serialize entity into dictionary. The spec can affect how individual fields will be serialized by implementing ``serialize()`` for the fields needing customization. :returns: dictionary
"Serialize entity into dictionary.\n\n The spec can affect how individual fields will be serialized by\n implementing ``serialize()`` for the fields needing customization.\n\n :returns: dictionary"
193
false
wuher/devil
serialize
142,629
LDU_FT/corpusops/pdbclone/do_undisplay
LDU_FT
[ "<BEGIN>\n## `parse_gdb_version`", "r\"\"\"Parse the gdb version from the gdb header.", " From GNU coding standards: the version starts after the last space of the\n first line.", " >>> DOCTEST_GDB_VERSIONS = [\n ... r'~\"GNU gdb (GDB) 7.5.1\\n\"',\n ... r'~\"GNU gdb (Sourcery CodeBench Lite 20...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_undisplay API. 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 do_undisplay API. 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...
undisplay [expression] Do not display the expression any more in the current frame. Without expression, clear all display expressions for the current frame.
"undisplay [expression]\n\n Do not display the expression any more in the current frame.\n\n Without expression, clear all display expressions for the current frame."
129
false
corpusops/pdbclone
do_undisplay
142,630
LDU_FT/textX/textX/convert
LDU_FT
[ "<BEGIN>\n## `needs_to_be_resolved`", "This function determines, if a reference (CrossReference) needs to be\n resolved or not (while creating the model, while resolving references).", " Args:\n parent_obj: the object containing the attribute to be resolved.\n attr_name: the attribute identi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Convert instances of textx types and match rules to python types.
"Convert instances of textx types and match rules to python types."
140
false
textX/textX
convert
142,631
LDU_FT/cocaine/cocaine-framework-python/search
LDU_FT
[ "<BEGIN>\n## `fetch_token`", "Gains token from secure backend service.", " :return: Token formatted for Cocaine protocol header.\n<END>", "<BEGIN>\n## `make_secure_adaptor`", ":param service: Service to wrap in.\n :param mod: Name (type) of token refresh backend.\n :param client_id: Cli...
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 ...
Searches the table for the entry specified by name and value Returns one of the following: - ``None``, no match at all - ``(index, name, None)`` for partial matches on name only. - ``(index, name, value)`` for perfect matches.
"Searches the table for the entry specified by name\n and value\n\n Returns one of the following:\n - ``None``, no match at all\n - ``(index, name, None)`` for partial matches on name only.\n - ``(index, name, value)`` for perfect matches."
33
false
cocaine/cocaine-framework-python
search
142,632
LDU_FT/rwl/pylon/write_bus_data
LDU_FT
[ "<BEGIN>\n## `performAction`", "perform an action on the world that changes it's internal state\n (maybe stochastically).", " All you have to do is pull one of the arm and receive a payout. Each\n arm has a distribution of different payouts that are delivered with\n different probabi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_bus_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_bus_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Writes bus data to an Excel spreadsheet.
"Writes bus data to an Excel spreadsheet."
527
false
rwl/pylon
write_bus_data
142,633
LDU_FT/ColtonProvias/sqlalchemy-jsonapi/post_collection
LDU_FT
[ "<BEGIN>\n## `user_error`", "Create and return a general user error response that is jsonapi compliant.", " Required args:\n status_code: The HTTP status code associated with the problem.\n title: A short summary of the problem.\n detail: An explanation specific to the occurence of the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_collection API. 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 post_collection API. 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 a new Resource. :param session: SQLAlchemy session :param data: Request JSON Data :param params: Keyword arguments
"Create a new Resource.\n\n :param session: SQLAlchemy session\n :param data: Request JSON Data\n :param params: Keyword arguments"
95
false
ColtonProvias/sqlalchemy-jsonapi
post_collection
142,634
LDU_FT/guyzmo/pyparts/part_specs
LDU_FT
[ "<BEGIN>\n## `download_file`", "Download a file and show progress", " url: the URL of the file to download\n filename: the filename to download it to (if not given, uses the url's filename part)\n show_progress: callback function to update a progress bar", " the show_progress function shall take t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the part_specs API. 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 part_specs API. 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...
returns the specifications of the given part. If multiple parts are matched, only the first one will be output. part: the productname or sku prints the results on stdout
"returns the specifications of the given part. If multiple parts are\n matched, only the first one will be output.\n\n part: the productname or sku\n\n prints the results on stdout"
23
false
guyzmo/pyparts
part_specs
142,635
LDU_FT/prometheus/client_python/_read_all_values
LDU_FT
[ "<BEGIN>\n## `add_sample`", "Add a sample to the metric.", " Internal-only, do not use.\n<END>", "<BEGIN>\n## `add_metric`", "Add a metric to the metric family.", " Args:\n labels: A list of label values\n value: The value of the metric\n created: Optional unix tim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_all_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 _read_all_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 ...
Yield (key, value, pos). No locking is performed.
"Yield (key, value, pos). No locking is performed."
100
false
prometheus/client_python
_read_all_values
142,636
LDU_FT/knaperek/djangosaml2/update_user
LDU_FT
[ "<BEGIN>\n## `get_idp_sso_supported_bindings`", "Returns the list of bindings supported by an IDP\n This is not clear in the pysaml2 code, so wrapping it in a util\n<END>", "<BEGIN>\n## `fail_acs_response`", "Serves as a common mechanism for ending ACS in case of any SAML related failure.\n Handling can...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_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 update_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...
Update a user with a set of attributes and returns the updated user. By default it uses a mapping defined in the settings constant SAML_ATTRIBUTE_MAPPING. For each attribute, if the user object has that field defined it will be set.
"Update a user with a set of attributes and returns the updated user.\n\n By default it uses a mapping defined in the settings constant\n SAML_ATTRIBUTE_MAPPING. For each attribute, if the user object has\n that field defined it will be set."
34
false
knaperek/djangosaml2
update_user
142,637
LDU_FT/wrobstory/vincent/_repr_html_
LDU_FT
[ "<BEGIN>\n## `fill_opacity`", "ValueRef : int or float, opacity of the fill (0 to 1)\n<END>", "<BEGIN>\n## `stroke_width`", "ValueRef : int, width of the stroke in pixels\n<END>", "<BEGIN>\n## `stroke_opacity`", "ValueRef : number, opacity of the stroke (0 to 1)\n<END>", "<BEGIN>\n## `size`", "ValueRe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _repr_html_ API. 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 _repr_html_ API. 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...
Build the HTML representation for IPython.
"Build the HTML representation for IPython."
139
false
wrobstory/vincent
_repr_html_
142,638
LDU_FT/SkyLothar/shcmd/generate
LDU_FT
[ "<BEGIN>\n## `cd`", "cd to target dir when running in this block", " :param cd_path: dir to cd into\n :param create: create new dir if destination not there", " Usage::", " >>> with cd(\"/tmp\"):\n ... print(\"we are in /tmp now\")\n<END>", "<BEGIN>\n## `cd_to`", "make a gener...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API. 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 generate API. 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...
generate tar file ..Usage:: >>> tarfile = b"".join(data for data in tg.generate())
"generate tar file\n\n ..Usage::\n\n >>> tarfile = b\"\".join(data for data in tg.generate())"
41
false
SkyLothar/shcmd
generate
142,639
LDU_FT/jic-dtool/dtool-config/set_azure_secret_access_key
LDU_FT
[ "<BEGIN>\n## `set_cache`", "Write the cache directory to the dtool config file.", " :param config_fpath: path to the dtool config file\n :param cache_dir: the path to the dtool cache direcotory\n<END>", "<BEGIN>\n## `set_azure_secret_access_key`", "Write the ECS access key id to the dtool config file....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_azure_secret_access_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_azure_secret_access_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Write the ECS access key id to the dtool config file. :param config_fpath: path to the dtool config file :param container: azure storage container name :param az_secret_access_key: azure secret access key for the container
"Write the ECS access key id to the dtool config file.\n\n :param config_fpath: path to the dtool config file\n :param container: azure storage container name\n :param az_secret_access_key: azure secret access key for the container"
21
false
jic-dtool/dtool-config
set_azure_secret_access_key
142,640
LDU_FT/jmcgeheeiv/pyfakefs/_truncate_wrapper
LDU_FT
[ "<BEGIN>\n## `_classify_directory_contents`", "Classify contents of a directory as files/directories.", " Args:\n filesystem: The fake filesystem used for implementation\n root: (str) Directory to examine.", " Returns:\n (tuple) A tuple consisting of three values: the directory exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _truncate_wrapper API. 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 _truncate_wrapper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Wrap truncate() to allow flush after truncate. Returns: Wrapper which is described below.
"Wrap truncate() to allow flush after truncate.\n\n Returns:\n Wrapper which is described below."
534
false
jmcgeheeiv/pyfakefs
_truncate_wrapper
142,641
LDU_FT/jciskey/pygraph/build_chvatal_graph
LDU_FT
[ "<BEGIN>\n## `build_cycle_graph`", "Builds a cycle graph with the specified number of nodes.\n Ref: http://mathworld.wolfram.com/CycleGraph.html\n<END>", "<BEGIN>\n## `build_wheel_graph`", "Builds a wheel graph with the specified number of nodes.\n Ref: http://mathworld.wolfram.com/WheelGraph.html...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_chvatal_graph 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 build_chvatal_graph 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...
Makes a new Chvatal graph. Ref: http://mathworld.wolfram.com/ChvatalGraph.html
"Makes a new Chvatal graph.\n Ref: http://mathworld.wolfram.com/ChvatalGraph.html"
189
false
jciskey/pygraph
build_chvatal_graph
142,642
LDU_FT/edx/i18n-tools/msgfmt_check_po_file
LDU_FT
[ "<BEGIN>\n## `default_config_filename`", "Returns the default name of the configuration file.\n<END>", "<BEGIN>\n## `read_config`", "Returns data found in config file (as dict), or raises exception if file not found\n<END>", "<BEGIN>\n## `rtl_langs`", "Returns the set of translated RTL language codes pres...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the msgfmt_check_po_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the msgfmt_check_po_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. ...
Call GNU msgfmt -c on each .po file to validate its format. Any errors caught by msgfmt are logged to log. Returns a boolean indicating whether or not problems were found.
"Call GNU msgfmt -c on each .po file to validate its format.\n Any errors caught by msgfmt are logged to log.\n\n Returns a boolean indicating whether or not problems were found."
117
false
edx/i18n-tools
msgfmt_check_po_file
142,643
LDU_FT/NYUCCL/psiTurk/do_server
LDU_FT
[ "<BEGIN>\n## `check_auth`", "This function is called to check if a username password combination\n is valid.\n<END>", "<BEGIN>\n## `requires_auth`", "Decorator to prompt for user name and password. Useful for data dumps,\n etc. That you don't want to be public.\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_server API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_server API. 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...
Usage: server on server off server restart server log server help
"Usage:\n server on\n server off\n server restart\n server log\n server help"
65
false
NYUCCL/psiTurk
do_server
142,644
LDU_FT/etal/biocma/_parse_block_postheader
LDU_FT
[ "<BEGIN>\n## `maybe_open`", "Take a file name or a handle, and return a handle.", " Simplifies creating functions that automagically accept either a file name\n or an already opened file handle.\n<END>", "<BEGIN>\n## `from_block`", "Instantiate this class given a raw block (see parse_raw).\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_block_postheader 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 _parse_block_postheader API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
(209)**************!*****************!!*************...
"(209)**************!*****************!!*************..."
74
false
etal/biocma
_parse_block_postheader
142,645
LDU_FT/intelsdi-x/snap-plugin-lib-py/add_multiple
LDU_FT
[ "<BEGIN>\n## `publish`", "Publishes metrics to a file in JSON format.", " This method is called by the Snap deamon during the collection phase\n of the execution of a Snap workflow.", " In this example we are writing the metrics to a file in json format.\n We obtain the path to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_multiple API. 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 add_multiple API. 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...
Add multiple command line flags Arguments: flags (:obj:`list` of :obj:`tuple`): List of flags in tuples (name, flag_type, description, (optional) default) Raises: TypeError: Provided wrong arguments or arguments of wrong types, method will raise TypeError
"Add multiple command line flags\n\n Arguments:\n flags (:obj:`list` of :obj:`tuple`): List of flags\n in tuples (name, flag_type, description, (optional) default)\n\n Raises:\n TypeError: Provided wrong arguments or arguments of wrong types, method will raise TypeErro...
69
false
intelsdi-x/snap-plugin-lib-py
add_multiple
142,646
LDU_FT/googleapis/dialogflow-python-client-v2/create_intent
LDU_FT
[ "<BEGIN>\n## `from_service_account_file`", "Creates an instance of this client using the provided credentials\n file.", " Args:\n filename (str): The path to the service account private key json\n file.\n args: Additional arguments to pass to the constructor.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_intent API. 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 create_intent API. 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...
Creates an intent in the specified agent. Example: >>> import dialogflow_v2 >>> >>> client = dialogflow_v2.IntentsClient() >>> >>> parent = client.project_agent_path('[PROJECT]') >>> >>> # TODO: Initialize ``intent``: ...
"Creates an intent in the specified agent.\n\n Example:\n >>> import dialogflow_v2\n >>>\n >>> client = dialogflow_v2.IntentsClient()\n >>>\n >>> parent = client.project_agent_path('[PROJECT]')\n >>>\n >>> # TODO: Initialize ``intent``:...
280
false
googleapis/dialogflow-python-client-v2
create_intent
142,647
LDU_FT/objectrocket/python-client/all
LDU_FT
[ "<BEGIN>\n## `register_extension_class`", "Instantiate the given extension class and register as a public attribute of the given base.", " README: The expected protocol here is to instantiate the given extension and pass the base\n object as the first positional argument, then unpack args and kwargs as ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. 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 all API. 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...
Get all ObjectRocket instances the current client has access to. :returns: A list of :py:class:`bases.BaseInstance` instances. :rtype: list
"Get all ObjectRocket instances the current client has access to.\n\n :returns: A list of :py:class:`bases.BaseInstance` instances.\n :rtype: list"
118
false
objectrocket/python-client
all
142,648
LDU_FT/tehmaze/natural/pesn
LDU_FT
[ "<BEGIN>\n## `ordinal`", "Converts a number to its ordinal representation.", " :param value: number", " >>> print(ordinal(1))\n 1st\n >>> print(ordinal(11))\n 11th\n >>> print(ordinal(101))\n 101st\n >>> print(ordinal(104))\n 104th\n >>> print(ordinal(113))\n 113th\n >>> pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pesn API. 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 pesn API. 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...
Printable Pseudo Electronic Serial Number. :param number: hexadecimal string >>> print(pesn('1B69B4BA630F34E')) 805F9EF7
"Printable Pseudo Electronic Serial Number.\n\n :param number: hexadecimal string\n\n >>> print(pesn('1B69B4BA630F34E'))\n 805F9EF7"
153
false
tehmaze/natural
pesn
142,649
LDU_FT/eugene-eeo/graphlite/limit
LDU_FT
[ "<BEGIN>\n## `gen_query`", "Generate an SQL query for the edge object.\n<END>", "<BEGIN>\n## `derived`", "Returns a new query object set up correctly with\n the *statement* and *params* appended to the end\n of the new instance's internal query and params,\n along with the current instanc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the limit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the limit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns a SQlite-compliant LIMIT statement that takes the *lower* and *upper* bounds into account. :param lower: The lower bound. :param upper: The upper bound.
"Returns a SQlite-compliant LIMIT statement that\n takes the *lower* and *upper* bounds into account.\n\n :param lower: The lower bound.\n :param upper: The upper bound."
19
false
eugene-eeo/graphlite
limit
142,650
LDU_FT/nickoala/telepot/sendAudio
LDU_FT
[ "<BEGIN>\n## `answer`", "Create a task that calls ``compute fn`` (along with additional arguments\n ``*compute_args`` and ``**compute_kwargs``), then applies the returned value to\n :meth:`.Bot.answerInlineQuery` to answer the inline query.\n If a preceding task is already working for a user,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sendAudio API. 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 sendAudio API. 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...
See: https://core.telegram.org/bots/api#sendaudio :param audio: Same as ``photo`` in :meth:`telepot.aio.Bot.sendPhoto`
"See: https://core.telegram.org/bots/api#sendaudio\n\n :param audio: Same as ``photo`` in :meth:`telepot.aio.Bot.sendPhoto`"
312
false
nickoala/telepot
sendAudio
142,651
LDU_FT/numenta/nupic.core/executeMethod
LDU_FT
[ "<BEGIN>\n## `fixPath`", "Ensures paths are correct for linux and windows\n<END>", "<BEGIN>\n## `findRequirements`", "Read the requirements.txt file and parse into requirements for setup's\n install_requirements option.\n<END>", "<BEGIN>\n## `main`", "Measure capnp serialization performance of a network ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the executeMethod API. 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 executeMethod API. 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...
Executes a method named ``methodName`` with the specified arguments. This method is called when the user executes a command as defined in the node spec. It provides a perfectly reasonble implementation of the command mechanism. As a sub-class developer you just need to implement a method for each comma...
"Executes a method named ``methodName`` with the specified arguments.\n\n This method is called when the user executes a command as defined in\n the node spec. It provides a perfectly reasonble implementation\n of the command mechanism. As a sub-class developer you just need to\n implement a method for each...
42
false
numenta/nupic.core
executeMethod
142,652
LDU_FT/OCR-D/core/to_xml
LDU_FT
[ "<BEGIN>\n## `xmllint_format`", "Pretty-print XML like ``xmllint`` does.", " Arguments:\n xml (string): Serialized XML\n<END>", "<BEGIN>\n## `download_to_directory`", "Download a file to the workspace.", " Early Shortcut: If url is a file://-URL and that file is already in the directory, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_xml API. 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_xml API. 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 ...
Serialize all properties as pretty-printed XML Args: xmllint (boolean): Format with ``xmllint`` in addition to pretty-printing
"Serialize all properties as pretty-printed XML\n\n Args:\n xmllint (boolean): Format with ``xmllint`` in addition to pretty-printing"
176
false
OCR-D/core
to_xml
142,653
LDU_FT/aliyun/aliyun-log-python-sdk/u
LDU_FT
[ "<BEGIN>\n## `set`", "override base to handle escape case: replace \\\" to \"\n<END>", "<BEGIN>\n## `copy_project`", "copy project, logstore, machine group and logtail config to target project,\n will create the target project if it doesn't exist", " :type from_client: LogClient\n :param from_clien...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the u API. 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 docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the u API. 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 docum...
convert string, string container or unicode :param d: :return:
"convert string, string container or unicode\n :param d:\n :return:"
600
false
aliyun/aliyun-log-python-sdk
u
142,654
LDU_FT/dbcli/athenacli/list_favorite_queries
LDU_FT
[ "<BEGIN>\n## `refresher`", "Decorator to add the decorated function to the dictionary of\n refreshers. Any function decorated with a @refresher will be executed as\n part of the completion refresh routine.\n<END>", "<BEGIN>\n## `refresh`", "Creates a SQLCompleter object and populates it with the relevan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_favorite_queries 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 list_favorite_queries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
List of all favorite queries. Returns (title, rows, headers, status)
"List of all favorite queries.\n Returns (title, rows, headers, status)"
95
false
dbcli/athenacli
list_favorite_queries
142,655
LDU_FT/xi/ldif3/_parse_attr
LDU_FT
[ "<BEGIN>\n## `_fold_line`", "Write string line as one or more folded lines.\n<END>", "<BEGIN>\n## `_needs_base64_encoding`", "Return True if attr_value has to be base-64 encoded.", " This is the case because of special chars or because attr_type is in\n self._base64_attrs\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_attr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_attr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Parse a single attribute type/value pair.
"Parse a single attribute type/value pair."
25
false
xi/ldif3
_parse_attr
142,656
LDU_FT/mmcauliffe/Conch-sounds/axb_mapping
LDU_FT
[ "<BEGIN>\n## `lpc_ref`", "Compute the Linear Prediction Coefficients.", " Return the order + 1 LPC coefficients for the signal. c = lpc(x, k) will\n find the k+1 coefficients of a k order linear filter:", " xp[n] = -c[1] * x[n-2] - ... - c[k-1] * x[n-k-1]", " Such as the sum of the squared-err...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the axb_mapping API. 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 axb_mapping API. 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...
Takes in an explicit mapping of full paths to .wav files to have acoustic similarity computed. Parameters ---------- path_mapping : iterable of iterables Explicit mapping of full paths of .wav files, in the form of a list of tuples to be compared. Returns ------- dict ...
"Takes in an explicit mapping of full paths to .wav files to have\n acoustic similarity computed.\n\n Parameters\n ----------\n path_mapping : iterable of iterables\n Explicit mapping of full paths of .wav files, in the form of a\n list of tuples to be compared.\n\n\n Returns\n -------\n...
63
false
mmcauliffe/Conch-sounds
axb_mapping
142,657
LDU_FT/treycucco/bidon/get_json_val
LDU_FT
[ "<BEGIN>\n## `_normalize_name`", "Returns a normalized element tag or attribute name. A tag name or attribute name can be given\n either as a string, or as a 2-tuple. If a 2-tuple, it is interpreted as (namespace, name) and is\n returned joined by a colon \":\"", " :name: a string or a 2-tuple of strings\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_json_val API. 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_json_val API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get the nested value identified by the json path, rooted at source.
"Get the nested value identified by the json path, rooted at source."
436
false
treycucco/bidon
get_json_val
142,658
LDU_FT/presslabs/z3/_compress
LDU_FT
[ "<BEGIN>\n## `multipart_etag`", "Computes etag for multipart uploads\n :type digests: list of hex-encoded md5 sums (string)\n :param digests: The list of digests for each individual chunk.", " :rtype: string\n :returns: The etag computed from the individual chunks.\n<END>", "<BEGIN>\n## `get_chunk...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compress API. 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 _compress API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Adds the appropriate command to compress the zfs stream
"Adds the appropriate command to compress the zfs stream"
22
false
presslabs/z3
_compress
142,659
LDU_FT/ranaroussi/pywallet/get_extended_key
LDU_FT
[ "<BEGIN>\n## `create_new_address_for_user`", "Create a new bitcoin address to accept payments for a User.", " This is a convenience wrapper around `get_child` that helps you do\n the right thing. This method always creates a public, non-prime\n address that can be generated from a BIP32 pub...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_extended_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_extended_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 ...
Get the extended key. Extended keys contain the network bytes and the public or private key.
"Get the extended key.\n\n Extended keys contain the network bytes and the public or private\n key."
186
false
ranaroussi/pywallet
get_extended_key
142,660
LDU_FT/djgagne/hagelslag/format_var_name
LDU_FT
[ "<BEGIN>\n## `label`", "Label input grid with hysteresis method.", " Args:\n input_grid: 2D array of values.", " Returns:\n Labeled output grid.\n<END>", "<BEGIN>\n## `size_filter`", "Remove labeled objects that do not meet size threshold criteria.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_var_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_var_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Searches var list for variable name, checks other variable name format options. Args: variable (str): Variable being loaded var_list (list): List of variables in file. Returns: Name of variable in file containing relevant data, and index of variable z-level if multi...
"Searches var list for variable name, checks other variable name format options.\n\n Args:\n variable (str): Variable being loaded\n var_list (list): List of variables in file.\n\n Returns:\n Name of variable in file containing relevant data, and index of variable z-level ...
530
false
djgagne/hagelslag
format_var_name
142,661
LDU_FT/tensorflow/tensor2tensor/lstm_seq2seq_internal_attention_bid_encoder
LDU_FT
[ "<BEGIN>\n## `paracrawl_v3_pairs`", "Generates raw (English, other) pairs from a ParaCrawl V3.0 data file.", " Args:\n paracrawl_file: A ParaCrawl V3.0 en-.. data file.\n Yields:\n Pairs of (sentence_en, sentence_xx), as Unicode strings.\n Raises:\n StopIteration: If the file ends while this method ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lstm_seq2seq_internal_attention_bid_encoder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lstm_seq2seq_internal_attention_bid_encoder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indi...
LSTM seq2seq model with attention, main step used for training.
"LSTM seq2seq model with attention, main step used for training."
4,769
true
tensorflow/tensor2tensor
lstm_seq2seq_internal_attention_bid_encoder
142,662
LDU_FT/OnroerendErfgoed/pyramid_urireferencer/load_from_json
LDU_FT
[ "<BEGIN>\n## `protected_operation`", "Use this decorator to prevent an operation from being executed\n when the related uri resource is still in use.\n The parent_object must contain:\n * a request\n * with a registry.queryUtility(IReferencer)\n :raises pyramid.httpexceptions.HTTPConfli...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from_json API. 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 load_from_json API. 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...
Load a :class:`Item` from a dictionary ot string (that will be parsed as json)
"Load a :class:`Item` from a dictionary ot string (that will be parsed\n as json)"
25
false
OnroerendErfgoed/pyramid_urireferencer
load_from_json
142,663
LDU_FT/heuer/segno/as_png_data_uri
LDU_FT
[ "<BEGIN>\n## `make`", "\\\n Creates a (Micro) QR Code.", " This is main entry point to create QR Codes and Micro QR Codes.", " Aside from `content`, all parameters are optional and an optimal (minimal)\n (Micro) QR Code with a maximal error correction level (minimum \"M\") is\n generated.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_png_data_uri API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_png_data_uri API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
\ Converts the provided matrix into a PNG data URI. :rtype: str
"\\\n Converts the provided matrix into a PNG data URI.\n\n :rtype: str"
436
false
heuer/segno
as_png_data_uri
142,664
LDU_FT/ThreshingFloor/libtf/_extract_features
LDU_FT
[ "<BEGIN>\n## `_extract_features`", "Extracts and sets the feature data from the log file necessary for a reduction\n<END>", "<BEGIN>\n## `_extract_line_features`", "Parse raw log lines and convert it to a dictionary with extracted features.\n<END>", "<BEGIN>\n## `_analyze`", "Decide which lines should be ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_features API. 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 _extract_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Extracts and sets the feature data from the log file necessary for a reduction
"Extracts and sets the feature data from the log file necessary for a reduction"
25
false
ThreshingFloor/libtf
_extract_features
142,665
LDU_FT/rytilahti/python-songpal/connect
LDU_FT
[ "<BEGIN>\n## `make`", "Create a container.", " Reports extra keys as well as missing ones.\n Thanks to habnabit for the idea!\n<END>", "<BEGIN>\n## `create_post_request`", "Call the given method over POST.", " :param method: Name of the method\n :param params: dict of parameters\n ...
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...
Available actions INFO:songpal.upnpctl:Action: <UpnpService.Action(X_GetDeviceInfo)> ([]) INFO:songpal.upnpctl:Action: <UpnpService.Action(X_GetState)> ([]) INFO:songpal.upnpctl:Action: <UpnpService.Action(X_GetStateM)> ([]) INFO:songpal.upnpctl:Action: <UpnpService.Action(X_SetGroupNam...
"Available actions\n\n INFO:songpal.upnpctl:Action: <UpnpService.Action(X_GetDeviceInfo)> ([])\n INFO:songpal.upnpctl:Action: <UpnpService.Action(X_GetState)> ([])\n INFO:songpal.upnpctl:Action: <UpnpService.Action(X_GetStateM)> ([])\n INFO:songpal.upnpctl:Action: <UpnpService.Action(X_SetGr...
86
false
rytilahti/python-songpal
connect
142,666
LDU_FT/mdscruggs/ga/mapstr_to_list
LDU_FT
[ "<BEGIN>\n## `eval_fitness`", "Convert a 1-gene chromosome into an integer and calculate its fitness\n by checking it against each required factor.", " return: fitness value\n<END>", "<BEGIN>\n## `translate_chromosome`", "Translate all the genes in a chromosome.", " chromosome: a ``...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mapstr_to_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mapstr_to_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 ex...
Convert an ASCII map string with rows to a list of strings, 1 string per row.
"Convert an ASCII map string with rows to a list of strings, 1 string per row."
94
false
mdscruggs/ga
mapstr_to_list
142,667
LDU_FT/tBaxter/tango-shared-core/build_howto
LDU_FT
[ "<BEGIN>\n## `build_howto`", "Searches for \"how_to.md\" files in app directories.\n Creates user-friendly admin how-to section from apps that have them.\n<END>", "<BEGIN>\n## `social_links`", "Outputs social links. At minimum, this will be Facebook and Twitter.\n But if possible, it will also output vo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_howto API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_howto API. 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...
Searches for "how_to.md" files in app directories. Creates user-friendly admin how-to section from apps that have them.
"Searches for \"how_to.md\" files in app directories.\n Creates user-friendly admin how-to section from apps that have them."
63
false
tBaxter/tango-shared-core
build_howto
142,668
LDU_FT/google/openhtf/with_args
LDU_FT
[ "<BEGIN>\n## `short_repr`", "Returns a short, term-friendly string representation of the object.", " Args:\n obj: An object for which to return a string representation.\n max_len: Maximum length of the returned string. Longer reprs will be turned\n into a brief descriptive string giving the type a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
String substitution for names and docstrings.
"String substitution for names and docstrings."
700
false
google/openhtf
with_args
142,669
LDU_FT/denniskempin/safetynet/_ValidateArguments
LDU_FT
[ "<BEGIN>\n## `_ValidateValue`", "Validate a single value with type_check.\n<END>", "<BEGIN>\n## `_ParseTypeCheckString`", "Convert string version of a type_check into a python instance.", " Type checks can be either defined directly in python code or in a string.\n The syntax is exactly the same since we ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ValidateArguments 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 _ValidateArguments 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...
Validate dictionary of arguments and return list of errors messages.
"Validate dictionary of arguments and return list of errors messages."
27
false
denniskempin/safetynet
_ValidateArguments
142,670
LDU_FT/mattja/nsim/hilbert_phase
LDU_FT
[ "<BEGIN>\n## `merge`", "Merge several timeseries\n Arguments:\n tup: sequence of Timeseries, with the same shape except for axis 0\n Returns: \n Resulting merged timeseries which can have duplicate time points.\n<END>", "<BEGIN>\n## `add_analyses`", "Dynamically add new analysis methods to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hilbert_phase API. 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 hilbert_phase API. 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...
Phase of the analytic signal, using the Hilbert transform
"Phase of the analytic signal, using the Hilbert transform"
427
false
mattja/nsim
hilbert_phase
142,671
LDU_FT/marten-de-vries/Flask-WebSub/build_blueprint
LDU_FT
[ "<BEGIN>\n## `build_blueprint`", "Build a blueprint that contains the endpoints for callback URLs of\n the current subscriber. Only call this once per instance. Arguments:", " - url_prefix; this allows you to prefix the callback URLs in your app.\n<END>", "<BEGIN>\n## `unsubscribe`", "Ask the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_blueprint API. 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 build_blueprint API. 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...
Build a blueprint that contains the endpoints for callback URLs of the current subscriber. Only call this once per instance. Arguments: - url_prefix; this allows you to prefix the callback URLs in your app.
"Build a blueprint that contains the endpoints for callback URLs of\n the current subscriber. Only call this once per instance. Arguments:\n\n - url_prefix; this allows you to prefix the callback URLs in your app."
24
false
marten-de-vries/Flask-WebSub
build_blueprint
142,672