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/ga4gh/ga4gh-server/_getDetails
LDU_FT
[ "<BEGIN>\n## `VerifierMiddleware`", "Common wrapper for the authentication modules.\n * Parses the request before passing it on to the authentication module.\n * Sets 'pyoidc' cookie if authentication succeeds.\n * Redirects the user to complete the authentication.\n * Allows the user ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getDetails API. 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 _getDetails API. 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...
Given a uriRef, return a dict of all the details for that Ref use the uriRef as the 'id' of the dict
"Given a uriRef, return a dict of all the details for that Ref\n use the uriRef as the 'id' of the dict"
768
false
ga4gh/ga4gh-server
_getDetails
141,273
LDU_FT/agile4you/bottle-neck/created
LDU_FT
[ "<BEGIN>\n## `wrap_callable`", "Wraps function-based callable_obj into a `Route` instance, else\n proxies a `bottle_neck.handlers.BaseHandler` subclass instance.", " Args:\n uri (str): The uri relative path.\n methods (tuple): A tuple of valid method strings.\n ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the created API. Each 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 created API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Shortcut API for HTTP 201 `Created` response. Args: data (object): Response key/value data. Returns: WSResponse Instance.
"Shortcut API for HTTP 201 `Created` response.\n\n Args:\n data (object): Response key/value data.\n\n Returns:\n WSResponse Instance."
81
false
agile4you/bottle-neck
created
141,274
LDU_FT/ming060/robotframework-uiautomatorlibrary/remove_watchers
LDU_FT
[ "<BEGIN>\n## `set_serial`", "Specify given *android_serial* device to perform test.", " You do not have to specify the device when there is only one device connects to the computer.", " When you need to use multiple devices, do not use this keyword to switch between devices in test execution.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_watchers API. 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_watchers API. 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 watcher with *watcher_name* or remove all watchers.
"Remove watcher with *watcher_name* or remove all watchers."
115
false
ming060/robotframework-uiautomatorlibrary
remove_watchers
141,275
LDU_FT/PyThaiNLP/pythainlp/metasound
LDU_FT
[ "<BEGIN>\n## `spell`", ":param str word: word to check spelling\n :param str engine:\n * pn - Peter Norvig's algorithm (default)\n :return: list of words\n<END>", "<BEGIN>\n## `get_corpus`", "Read corpus from file and return a frozenset", " :param string filename: file corpus\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metasound API. 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 metasound API. 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...
Thai MetaSound :param str text: Thai text :param int length: preferred length of the MetaSound (default is 4) :return: MetaSound for the text **Example**:: >>> from pythainlp.metasound import metasound >>> metasound("ลัก") 'ล100' >>> metasound("รัก") 'ร100' ...
"Thai MetaSound\n\n :param str text: Thai text\n :param int length: preferred length of the MetaSound (default is 4)\n :return: MetaSound for the text\n **Example**::\n >>> from pythainlp.metasound import metasound\n >>> metasound(\"ลัก\")\n 'ล100'\n >>> metasound(\"รัก\")\n ...
190
false
PyThaiNLP/pythainlp
metasound
141,276
LDU_FT/raags/ipmitool/ipmi_method
LDU_FT
[ "<BEGIN>\n## `print_report`", "Print collated report with output and errors if any\n<END>", "<BEGIN>\n## `ipmi_method`", "Use ipmitool to run commands with ipmi protocol\n<END>", "<BEGIN>\n## `execute`", "Primary method to execute ipmitool commands\n :param command: ipmi command to execute, str or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ipmi_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ipmi_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Use ipmitool to run commands with ipmi protocol
"Use ipmitool to run commands with ipmi protocol"
13
false
raags/ipmitool
ipmi_method
141,277
LDU_FT/singnet/snet-cli/_start_claim_channels
LDU_FT
[ "<BEGIN>\n## `list_my`", "Find organization that has the current identity as the owner or as the member\n<END>", "<BEGIN>\n## `is_group_name_exists`", "check if group with given name is already exists\n<END>", "<BEGIN>\n## `get_group_by_group_id`", "return group with given group_id (return None if doesn't...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _start_claim_channels 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 _start_claim_channels API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Safely run StartClaim for given channels
"Safely run StartClaim for given channels"
65
false
singnet/snet-cli
_start_claim_channels
141,278
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
141,279
LDU_FT/jbaiter/gphoto2-cffi/permissions
LDU_FT
[ "<BEGIN>\n## `_logging_callback`", "Callback that outputs libgphoto2's logging message via\n Python's standard logging facilities.", " :param level: libgphoto2 logging level\n :param domain: component the message originates from\n :param message: logging message\n :param data: Other dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the permissions API. 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 permissions API. 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...
Permissions of the file. Can be "r-" (read-only), "-w" (write-only), "rw" (read-write) or "--" (no rights). :rtype: str
"Permissions of the file.\n\n Can be \"r-\" (read-only), \"-w\" (write-only), \"rw\" (read-write)\n or \"--\" (no rights).\n\n :rtype: str"
78
false
jbaiter/gphoto2-cffi
permissions
141,280
LDU_FT/tym-xqo/nerium/get_data_source
LDU_FT
[ "<BEGIN>\n## `get_format`", "Find format schema in $FORMAT_PATH or nerium/schema\n<END>", "<BEGIN>\n## `get_query`", "Find file matching query_name, read and return query object\n<END>", "<BEGIN>\n## `get_result_set`", "Call get_query, then submit query from file to resultset module\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get data source connection metadata based on config. Prefer, in order: - Query file frontmatter - `db.yaml` file in query subdirectory - DATABASE_URL in environment To allow for possible non-SQL sources to be contributed, we only return a config value here, and leave connecting to concr...
"Get data source connection metadata based on config. Prefer, in order:\n - Query file frontmatter\n - `db.yaml` file in query subdirectory\n - DATABASE_URL in environment\n\n To allow for possible non-SQL sources to be contributed, we only\n return a config value here, and leave connecting t...
11
false
tym-xqo/nerium
get_data_source
141,281
LDU_FT/kxgames/vecrec/interpolate
LDU_FT
[ "<BEGIN>\n## `random`", "Create a unit vector pointing in a random direction.\n<END>", "<BEGIN>\n## `from_rectangle`", "Create a vector randomly within the given rectangle.\n<END>", "<BEGIN>\n## `interpolate`", "Move this vector towards the given towards the target by the given \n extent. The exte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interpolate API. 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 interpolate API. 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...
Move this vector towards the given towards the target by the given extent. The extent should be between 0 and 1.
"Move this vector towards the given towards the target by the given \n extent. The extent should be between 0 and 1."
49
false
kxgames/vecrec
interpolate
141,282
LDU_FT/fake-name/ChromeController/CSS_forcePseudoState
LDU_FT
[ "<BEGIN>\n## `close_chromium`", "Close the remote chromium instance.", "\t\tThis command is normally executed as part of the class destructor.\n\t\tIt can be called early without issue, but calling ANY class functions\n\t\tafter the remote chromium instance is shut down will have unknown effects.", "\t\tNote ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CSS_forcePseudoState 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 CSS_forcePseudoState API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Function path: CSS.forcePseudoState Domain: CSS Method name: forcePseudoState Parameters: Required arguments: 'nodeId' (type: DOM.NodeId) -> The element id for which to force the pseudo state. 'forcedPseudoClasses' (type: array) -> Element pseudo classes to force when computing the element's s...
"Function path: CSS.forcePseudoState\n\t\t\tDomain: CSS\n\t\t\tMethod name: forcePseudoState\n\t\t\n\t\t\tParameters:\n\t\t\t\tRequired arguments:\n\t\t\t\t\t'nodeId' (type: DOM.NodeId) -> The element id for which to force the pseudo state.\n\t\t\t\t\t'forcedPseudoClasses' (type: array) -> Element pseudo classes to for...
709
false
fake-name/ChromeController
CSS_forcePseudoState
141,283
LDU_FT/ionelmc/python-aspectlib/weave
LDU_FT
[ "<BEGIN>\n## `weave`", "Send a message to a recipient", " Args:\n target (string, class, instance, function or builtin):\n The object to weave.\n aspects (:py:obj:`aspectlib.Aspect`, function decorator or list of):\n The aspects to apply to the object.\n subclasses ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the weave API. Each 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 weave API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Send a message to a recipient Args: target (string, class, instance, function or builtin): The object to weave. aspects (:py:obj:`aspectlib.Aspect`, function decorator or list of): The aspects to apply to the object. subclasses (bool): If ``True``, subcla...
"Send a message to a recipient\n\n Args:\n target (string, class, instance, function or builtin):\n The object to weave.\n aspects (:py:obj:`aspectlib.Aspect`, function decorator or list of):\n The aspects to apply to the object.\n subclasses (bool):\n If ``True`...
48
false
ionelmc/python-aspectlib
weave
141,284
LDU_FT/Falkonry/falkonry-python-client/get_facts
LDU_FT
[ "<BEGIN>\n## `exception_handler`", "Function that takes exception Object(<Byte>,<str>) as a parameter and returns the error message<str>\n<END>", "<BEGIN>\n## `get`", "To make a GET request to Falkonry API server\n :param url: string\n<END>", "<BEGIN>\n## `post`", "To make a POST request to Falkonr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_facts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_facts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get facts data for the assessment :param assessment: string :param options: dict
"Get facts data for the assessment\n :param assessment: string\n :param options: dict"
52
false
Falkonry/falkonry-python-client
get_facts
141,285
LDU_FT/django-admin-tools/django-admin-tools/init_with_context
LDU_FT
[ "<BEGIN>\n## `set_preferences`", "This view serves and validates a preferences form.\n<END>", "<BEGIN>\n## `admin_tools_render_menu`", "Template tag that renders the menu, it takes an optional ``Menu`` instance\n as unique argument, if not given, the menu will be retrieved with the\n ``get_admin_menu`` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_with_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_with_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...
Please refer to :meth:`~admin_tools.menu.items.MenuItem.init_with_context` documentation from :class:`~admin_tools.menu.items.MenuItem` class.
"Please refer to\n :meth:`~admin_tools.menu.items.MenuItem.init_with_context`\n documentation from :class:`~admin_tools.menu.items.MenuItem` class."
60
false
django-admin-tools/django-admin-tools
init_with_context
141,286
LDU_FT/jazzband/django-model-utils/get_field_map
LDU_FT
[ "<BEGIN>\n## `_get_subclasses_recurse`", "Given a Model class, find all related objects, exploring children\n recursively, returning a `list` of strings representing the\n relations for select_related\n<END>", "<BEGIN>\n## `_get_ancestors_path`", "Serves as an opposite to _get_subclasses_recurse...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns dict mapping fields names to model attribute names
"Returns dict mapping fields names to model attribute names"
30
false
jazzband/django-model-utils
get_field_map
141,287
LDU_FT/svenevs/exhale/renameToNamespaceScopes
LDU_FT
[ "<BEGIN>\n## `apply_sphinx_configurations`", "This method applies the various configurations users place in their ``conf.py``, in\n the dictionary ``exhale_args``. The error checking seems to be robust, and\n borderline obsessive, but there may very well be some glaring flaws.", " When the user reques...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the renameToNamespaceScopes 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 renameToNamespaceScopes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Helper method for :func:`~exhale.graph.ExhaleRoot.reparentAll`. Some compounds in Breathe such as functions and variables do not have the namespace name they are declared in before the name of the actual compound. This method prepends the appropriate (nested) namespace name before the name of a...
"Helper method for :func:`~exhale.graph.ExhaleRoot.reparentAll`. Some compounds in\n Breathe such as functions and variables do not have the namespace name they are\n declared in before the name of the actual compound. This method prepends the\n appropriate (nested) namespace name before the name ...
239
false
svenevs/exhale
renameToNamespaceScopes
141,288
LDU_FT/inveniosoftware-contrib/invenio-workflows/after_object
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new Workflow Object with given content.\n<END>", "<BEGIN>\n## `query`", "Wrap sqlalchemy query methods.", " A wrapper for the filter and filter_by functions of sqlalchemy.\n Define a dict with which columns should be filtered by which values.", " .. c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the after_object API. 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 after_object API. 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...
Take action once the proccessing of an object completes.
"Take action once the proccessing of an object completes."
135
false
inveniosoftware-contrib/invenio-workflows
after_object
141,289
LDU_FT/Bogdanp/dramatiq/consume
LDU_FT
[ "<BEGIN>\n## `consume`", "Create a new consumer for a queue.", " Parameters:\n queue_name(str): The queue to consume.\n prefetch(int): The number of messages to prefetch.\n timeout(int): The idle timeout in milliseconds.", " Returns:\n Consumer: A consumer tha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume API. Each 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 consume API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Create a new consumer for a queue. Parameters: queue_name(str): The queue to consume. prefetch(int): The number of messages to prefetch. timeout(int): The idle timeout in milliseconds. Raises: QueueNotFound: If the queue hasn't been declared. Returns: ...
"Create a new consumer for a queue.\n\n Parameters:\n queue_name(str): The queue to consume.\n prefetch(int): The number of messages to prefetch.\n timeout(int): The idle timeout in milliseconds.\n\n Raises:\n QueueNotFound: If the queue hasn't been declared.\n\n ...
219
false
Bogdanp/dramatiq
consume
141,290
LDU_FT/manns/pyspread/fingerprint2keyid
LDU_FT
[ "<BEGIN>\n## `add_tools`", "Adds tools from self.toolbardata to self\n<END>", "<BEGIN>\n## `_get_button_label`", "Gets Button label from user and returns string\n<END>", "<BEGIN>\n## `OnButtonCell`", "Event handler for cell button toggle button\n<END>", "<BEGIN>\n## `OnVideoCell`", "Event handler for ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fingerprint2keyid API. 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 fingerprint2keyid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns keyid from fingerprint for private keys
"Returns keyid from fingerprint for private keys"
1,275
true
manns/pyspread
fingerprint2keyid
141,291
LDU_FT/kejbaly2/metrique/metrique_object
LDU_FT
[ "<BEGIN>\n## `filtered`", "Decorator function that wraps functions returning pandas\n dataframes, such that the dataframe is filtered\n according to left and right bounds set.\n<END>", "<BEGIN>\n## `to_datetime`", "This function converts epoch timestamps to datetimes.", " :param column: column ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metrique_object API. 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 metrique_object API. 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...
Function which takes a dictionary (Mapping) object as input and returns return back a metrique object. Special meta property are added to each object:: _oid: ... _start: ... ... FIXME
"Function which takes a dictionary (Mapping) object as input\n and returns return back a metrique object.\n\n Special meta property are added to each object::\n _oid: ...\n _start: ...\n ...\n FIXME"
224
false
kejbaly2/metrique
metrique_object
141,292
LDU_FT/Nike-Inc/cerberus-python-client/get_sdb_by_id
LDU_FT
[ "<BEGIN>\n## `throw_if_bad_response`", "Throw an exception if the Cerberus response is not successful.\n<END>", "<BEGIN>\n## `_add_slash`", "if a string doesn't end in a '/' add one\n<END>", "<BEGIN>\n## `_set_token`", "Set the Cerberus token based on auth type\n<END>", "<BEGIN>\n## `get_roles`", "Ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sdb_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sdb_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return the details for the given safe deposit box id Keyword arguments: sdb_id -- this is the id of the safe deposit box, not the path.
"Return the details for the given safe deposit box id\n\n Keyword arguments:\n sdb_id -- this is the id of the safe deposit box, not the path."
86
false
Nike-Inc/cerberus-python-client
get_sdb_by_id
141,293
LDU_FT/matousc89/padasip/predict
LDU_FT
[ "<BEGIN>\n## `standardize_back`", "This is function for de-standarization of input series.", " **Args:**", " * `xs` : standardized input (1 dimensional array)", " * `offset` : offset to add (float).", " * `scale` : scale (float).", " **Returns:**", " * `x` : original (destandardised)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
This function make forward pass through this layer (no update). **Args:** * `x` : input vector (1-dimensional array) **Returns:** * `y` : output of MLP (float or 1-diemnsional array). Size depends on number of nodes in this layer.
"This function make forward pass through this layer (no update).\n\n **Args:**\n\n * `x` : input vector (1-dimensional array)\n\n **Returns:**\n \n * `y` : output of MLP (float or 1-diemnsional array).\n Size depends on number of nodes in this layer."
327
false
matousc89/padasip
predict
141,294
LDU_FT/trustar/trustar-python/_get_headers
LDU_FT
[ "<BEGIN>\n## `from_dict`", "Create an indicator object from a dictionary.", " :param indicator: The dictionary.\n :return: The indicator object.\n<END>", "<BEGIN>\n## `to_dict`", "Creates a dictionary representation of the indicator.", " :param remove_nones: Whether ``None`` values sh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_headers API. 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_headers API. 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...
Create headers dictionary for a request. :param boolean is_json: Whether the request body is a json. :return: The headers dictionary.
"Create headers dictionary for a request.\n\n :param boolean is_json: Whether the request body is a json.\n :return: The headers dictionary."
243
false
trustar/trustar-python
_get_headers
141,295
LDU_FT/xsleonard/pystmark/_convert_postmark_to_native
LDU_FT
[ "<BEGIN>\n## `send`", "Send a message.", " :param message: Message to send.\n :type message: `dict` or :class:`Message`\n :param api_key: Your Postmark API key. Required, if `test` is not `True`.\n :param secure: Use the https scheme for the Postmark API.\n Defaults to `True`\n :param test...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_postmark_to_native 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 _convert_postmark_to_native API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Converts Postmark message API field names to their corresponding :class:`Message` attribute names. :param message: Postmark message data, with API fields using Postmark API names. :type message: `dict`
"Converts Postmark message API field names to their corresponding\n :class:`Message` attribute names.\n\n :param message: Postmark message data, with API fields using Postmark\n API names.\n :type message: `dict`"
113
false
xsleonard/pystmark
_convert_postmark_to_native
141,296
LDU_FT/pulumi/pulumi/get
LDU_FT
[ "<BEGIN>\n## `do_rpc`", "Wraps a given RPC function by producing an awaitable function suitable to be run in the asyncio\n event loop. The wrapped function catches all unhandled exceptions and reports them to the exception\n future, which consumers can await upon to listen for unhandled exceptions."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns an optional configuration value by its key, or None if it doesn't exist. :param str key: The requested configuration key. :return: The configuration key's value, or None if one does not exist. :rtype: Optional[str]
"Returns an optional configuration value by its key, or None if it doesn't exist.\n\n :param str key: The requested configuration key.\n :return: The configuration key's value, or None if one does not exist.\n :rtype: Optional[str]"
98
false
pulumi/pulumi
get
141,297
LDU_FT/elastic/apm-agent-python/get_cgroup_container_metadata
LDU_FT
[ "<BEGIN>\n## `extract_signature`", "Extracts a minimal signature from a given SQL query\n :param sql: the SQL statement\n :return: a string representing the signature\n<END>", "<BEGIN>\n## `_timed_queue_join`", "implementation of Queue.join which takes a 'timeout' argument", " returns True on s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cgroup_container_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cgroup_container_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Reads docker/kubernetes metadata (container id, pod id) from /proc/self/cgroup The result is a nested dictionary with the detected IDs, e.g. { "container": {"id": "2227daf62df6694645fee5df53c1f91271546a9560e8600a525690ae252b7f63"}, "pod": {"uid": "90d81341_92de_11e7_8cf2_507b9d4141...
"Reads docker/kubernetes metadata (container id, pod id) from /proc/self/cgroup\n\n The result is a nested dictionary with the detected IDs, e.g.\n\n {\n \"container\": {\"id\": \"2227daf62df6694645fee5df53c1f91271546a9560e8600a525690ae252b7f63\"},\n \"pod\": {\"uid\": \"90d81341_92de_11...
163
false
elastic/apm-agent-python
get_cgroup_container_metadata
141,298
LDU_FT/urosjarc/decisionTable.py/__checkDecisionParameters
LDU_FT
[ "<BEGIN>\n## `__tableStringParser`", "Will parse and check tableString parameter for any invalid strings.", "\t\tArgs:\n\t\t\ttableString (str): Standard table string with header and decisions.", "\t\tRaises:\n\t\t\tValueError: tableString is empty.\n\t\t\tValueError: One of the header element is not unique.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __checkDecisionParameters 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 __checkDecisionParameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Checker of decision parameters, it will raise ValueError if finds something wrong. Args: result (array of str): See public decision methods **values (array of str): See public decision methods Raise: ValueError: Result array none. ValueError: Values dict none. ValueError: Not find result key in hea...
"Checker of decision parameters, it will raise ValueError if finds something wrong.\n\n\t\tArgs:\n\t\t\tresult (array of str): See public decision methods\n\t\t\t**values (array of str): See public decision methods\n\n\t\tRaise:\n\t\t\tValueError: Result array none.\n\t\t\tValueError: Values dict none.\n\t\t\tValueErro...
35
false
urosjarc/decisionTable.py
__checkDecisionParameters
141,299
LDU_FT/klmitch/cli_tools/description
LDU_FT
[ "<BEGIN>\n## `_clean_text`", "Clean up a multiple-line, potentially multiple-paragraph text\n string. This is used to extract the first paragraph of a string\n and eliminate line breaks and indentation. Lines will be joined\n together by a single space.", " :param text: The text string to clean up...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the description API. 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 description API. 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...
Decorator used to specify a short description of the console script. This can be used to override the default, which is derived from the docstring of the function. :param text: The text to use for the description.
"Decorator used to specify a short description of the console\n script. This can be used to override the default, which is\n derived from the docstring of the function.\n\n :param text: The text to use for the description."
30
false
klmitch/cli_tools
description
141,300
LDU_FT/IRC-SPHERE/HyperStream/purge_stream
LDU_FT
[ "<BEGIN>\n## `func_load`", "Reload a function\n :param code: The code object\n :param defaults: Default values\n :param closure: The closure\n :param globs: globals\n :return:\n<END>", "<BEGIN>\n## `func_reconstruct_closure`", "Deserialization helper that reconstructs a closure\n :param valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the purge_stream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the purge_stream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Clears all the data in a given stream and the calculated intervals :param stream_id: The stream id :param remove_definition: Whether to remove the stream definition as well :param sandbox: The sandbox id :return: None
"Clears all the data in a given stream and the calculated intervals\n \n :param stream_id: The stream id\n :param remove_definition: Whether to remove the stream definition as well\n :param sandbox: The sandbox id\n :return: None"
292
false
IRC-SPHERE/HyperStream
purge_stream
141,301
LDU_FT/evansde77/dockerstache/execute_command
LDU_FT
[ "<BEGIN>\n## `run`", "_run_", " Run the dockerstache process to render templates\n based on the options provided", " If extend_context is passed as options it will be used to\n extend the context with the contents of the dictionary provided\n via context.update(extend_context)\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
execute_command: run the command provided in the working dir specified adding the env_dict settings to the execution environment :param working_dir: path to directory to execute command also gets added to the PATH :param cmd: Shell command to execute :param env_dict: dictionary of additional...
"execute_command: run the command provided in the working dir\n specified adding the env_dict settings to the\n execution environment\n\n :param working_dir: path to directory to execute command\n also gets added to the PATH\n :param cmd: Shell command to execute\n :param env_dict: dictionary of ad...
45
false
evansde77/dockerstache
execute_command
141,302
LDU_FT/amcfague/webunit2/assertHeader
LDU_FT
[ "<BEGIN>\n## `assertHeader`", "Returns `True` if ``name`` was in the headers and, if ``value`` is\n True, whether or not the values match, or `False` otherwise.\n<END>", "<BEGIN>\n## `assertCookie`", "Returns `True` if:", " - the cookie name appears in the response\n - if value ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assertHeader API. 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 assertHeader API. 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...
Returns `True` if ``name`` was in the headers and, if ``value`` is True, whether or not the values match, or `False` otherwise.
"Returns `True` if ``name`` was in the headers and, if ``value`` is\n True, whether or not the values match, or `False` otherwise."
26
false
amcfague/webunit2
assertHeader
141,303
LDU_FT/SheffieldML/GPyOpt/round
LDU_FT
[ "<BEGIN>\n## `constant_cost_withGradients`", "Constant cost function used by default: cost = 1, d_cost = 0.\n<END>", "<BEGIN>\n## `_cost_gp`", "Predicts the time cost of evaluating the function at x.\n<END>", "<BEGIN>\n## `_cost_gp_withGradients`", "Predicts the time cost and its gradient of evaluating th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the round API. Each 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 round API. Each 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...
Rounds a discrete variable by selecting the closest point in the domain Assumes an 1d array with a single element as an input.
"Rounds a discrete variable by selecting the closest point in the domain\n Assumes an 1d array with a single element as an input."
259
false
SheffieldML/GPyOpt
round
141,304
LDU_FT/nvictus/priority-queue-dictionary/additem
LDU_FT
[ "<BEGIN>\n## `nlargest`", "Takes a mapping and returns the n keys associated with the largest values\n in descending order. If the mapping has fewer than n items, all its keys\n are returned.", " Equivalent to:\n ``next(zip(*heapq.nlargest(mapping.items(), key=lambda x: x[1])))``", " Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the additem API. Each 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 additem API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Add a new item. Raises ``KeyError`` if key is already in the pqdict.
"Add a new item. Raises ``KeyError`` if key is already in the pqdict."
25
false
nvictus/priority-queue-dictionary
additem
141,305
LDU_FT/jbeluch/xbmcswift2/get_view_mode_id
LDU_FT
[ "<BEGIN>\n## `display_listitems`", "Displays a list of items along with the index to enable a user\n to select an item.\n<END>", "<BEGIN>\n## `display_video`", "Prints a message for a playing video and displays the parent\n listitem.\n<END>", "<BEGIN>\n## `get_user_choice`", "Returns the selected it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_view_mode_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_view_mode_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Attempts to return a view_mode_id for a given view_mode taking into account the current skin. If not view_mode_id can be found, None is returned. 'thumbnail' is currently the only suppported view_mode.
"Attempts to return a view_mode_id for a given view_mode\n taking into account the current skin. If not view_mode_id can\n be found, None is returned. 'thumbnail' is currently the only\n suppported view_mode."
164
false
jbeluch/xbmcswift2
get_view_mode_id
141,306
LDU_FT/marshallward/f90nml/merge_values
LDU_FT
[ "<BEGIN>\n## `write`", "Save a namelist to disk using either a file object or its file path.", " File object usage:", " >>> with open(nml_path, 'w') as nml_file:\n >>> f90nml.write(nml, nml_file)", " File path usage:", " >>> f90nml.write(nml, 'data.nml')", " This function is equiva...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_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 extr...
Merge two lists or dicts into a single element.
"Merge two lists or dicts into a single element."
98
false
marshallward/f90nml
merge_values
141,307
LDU_FT/marshmallow-code/webargs/_get_schema
LDU_FT
[ "<BEGIN>\n## `dict2schema`", "Generate a `marshmallow.Schema` class given a dictionary of\n `Fields <marshmallow.fields.Field>`.\n<END>", "<BEGIN>\n## `is_json`", "Indicates if this mimetype is JSON or not. By default a request\n is considered to include JSON data if the mimetype is\n ``application/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_schema API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_schema API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return a `marshmallow.Schema` for the given argmap and request. :param argmap: Either a `marshmallow.Schema`, `dict` of argname -> `marshmallow.fields.Field` pairs, or a callable that returns a `marshmallow.Schema` instance. :param req: The request object being parsed. :...
"Return a `marshmallow.Schema` for the given argmap and request.\n\n :param argmap: Either a `marshmallow.Schema`, `dict`\n of argname -> `marshmallow.fields.Field` pairs, or a callable that returns\n a `marshmallow.Schema` instance.\n :param req: The request object being parsed.\n ...
108
false
marshmallow-code/webargs
_get_schema
141,308
LDU_FT/arkottke/pysra/calc_accel_tf
LDU_FT
[ "<BEGIN>\n## `_calc_strain_ref`", "Compute the reference strain using Equation (6).\n<END>", "<BEGIN>\n## `_calc_mod_reduc`", "Compute the shear modulus reduction using Equation (1).\n<END>", "<BEGIN>\n## `_calc_damping`", "Compute the damping ratio using Equation (16).\n<END>", "<BEGIN>\n## `relative_e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_accel_tf API. 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 calc_accel_tf API. 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...
Compute the acceleration transfer function. Parameters ---------- lin : :class:`~site.Location` Location of input lout : :class:`~site.Location` Location of output. Note that this would typically be midheight of the layer.
"Compute the acceleration transfer function.\n\n Parameters\n ----------\n lin : :class:`~site.Location`\n Location of input\n lout : :class:`~site.Location`\n Location of output. Note that this would typically be midheight\n of the layer."
111
false
arkottke/pysra
calc_accel_tf
141,309
LDU_FT/pymoca/pymoca/call
LDU_FT
[ "<BEGIN>\n## `call`", "Convenience method for calling methods with walker.\n<END>", "<BEGIN>\n## `der`", "Get the derivative of the variable, create it if it doesn't exist.\n<END>", "<BEGIN>\n## `log`", "Convenience function for printing indenting debug output.\n<END>", "<BEGIN>\n## `flatten_component_r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Convenience method for calling methods with walker.
"Convenience method for calling methods with walker."
61
false
pymoca/pymoca
call
141,310
LDU_FT/Josef-Friedrich/tmep/translate
LDU_FT
[ "<BEGIN>\n## `ex_literal`", "An int, float, long, bool, string, or None literal with the given\n value.\n<END>", "<BEGIN>\n## `ex_varassign`", "Assign an expression into a single variable. The expression may\n either be an `ast.expr` object or a value to be used as a literal.\n<END>", "<BEGIN>\n## `ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate API. 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 translate API. 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...
Compile the expression to a list of Python AST expressions, a set of variable names used, and a set of function names.
"Compile the expression to a list of Python AST expressions, a\n set of variable names used, and a set of function names."
72
false
Josef-Friedrich/tmep
translate
141,311
LDU_FT/tech-pi/doufo/func
LDU_FT
[ "<BEGIN>\n## `_nargs`", "number of positional arguments values. Dynamically computed from the arguments attribute.\n<END>", "<BEGIN>\n## `_ndefs`", "number of any default values for positional or keyword parameters\n<END>", "<BEGIN>\n## `func`", "decorates normal function to Function with (optional) numbe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the func API. Each 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 func API. Each 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...
decorates normal function to Function with (optional) number of arguments and outputs. : func(nargs: Optional[int] = None, nouts: Optional[int] = None, ndefs: Optional[int] = None)
"decorates normal function to Function with (optional) number of arguments and outputs.\n\n : func(nargs: Optional[int] = None, nouts: Optional[int] = None, ndefs: Optional[int] = None)"
48
false
tech-pi/doufo
func
141,312
LDU_FT/rasbt/biopandas/object_to_markdownpage
LDU_FT
[ "<BEGIN>\n## `docstring_to_markdown`", "Convert a Python object's docstring to markdown", " Parameters\n ----------\n docstring : str\n The docstring body.", " Returns\n ----------\n clean_lst : list\n The markdown formatted docstring as lines (str) in a Python list.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the object_to_markdownpage 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 object_to_markdownpage API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Generate the markdown documentation of a Python object. Parameters ---------- obj_name : str Name of the Python object. obj : object Python object (class, method, function, ...) s : str (default: '') A string to which the documentation will be appended to. Returns -...
"Generate the markdown documentation of a Python object.\n\n Parameters\n ----------\n obj_name : str\n Name of the Python object.\n obj : object\n Python object (class, method, function, ...)\n s : str (default: '')\n A string to which the documentation will be appended to.\n\n R...
110
false
rasbt/biopandas
object_to_markdownpage
141,313
LDU_FT/VikParuchuri/percept/execute_train_task_with_dependencies
LDU_FT
[ "<BEGIN>\n## `train`", "Calculate the standard deviations and means in the training data\n<END>", "<BEGIN>\n## `predict`", "Adjust new input by the values in the training data\n<END>", "<BEGIN>\n## `save`", "Save an object, and use id_code in the filename\n obj - any object\n id_code - uniqu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_train_task_with_dependencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_train_task_with_dependencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
Run the training, as well as any dependencies of the training task_cls - class of a task
"Run the training, as well as any dependencies of the training\n task_cls - class of a task"
72
false
VikParuchuri/percept
execute_train_task_with_dependencies
141,314
LDU_FT/prthkms/alex/get_file_name
LDU_FT
[ "<BEGIN>\n## `calculate_inverse_document_frequencies`", "Q.calculate_inverse_document_frequencies() -- measures how much\n\t\tinformation the term provides, i.e. whether the term is common or\n\t\trare across all documents.", "\t\tThis is obtained by dividing the total number of documents \n\t\tby the number of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_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 ext...
get_file_name(query) -> filename -- return the filename found in a given, found by matching a regular expression.
"get_file_name(query) -> filename -- return the filename found in a\n\tgiven, found by matching a regular expression."
41
false
prthkms/alex
get_file_name
141,315
LDU_FT/RedFantom/ttkthemes/make_transparent
LDU_FT
[ "<BEGIN>\n## `screenshot_themes`", "Take a screenshot for all themes available\n<END>", "<BEGIN>\n## `_load_themes`", "Load the themes into the Tkinter interpreter\n<END>", "<BEGIN>\n## `_append_theme_dir`", "Append a theme dir to the Tk interpreter auto_path\n<END>", "<BEGIN>\n## `set_theme`", "Set n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_transparent API. 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 make_transparent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Turn all black pixels in an image into transparent ones
"Turn all black pixels in an image into transparent ones"
54
false
RedFantom/ttkthemes
make_transparent
141,316
LDU_FT/MechanicalSoup/MechanicalSoup/download_link
LDU_FT
[ "<BEGIN>\n## `new_control`", "Call :func:`Form.new_control` on the currently selected form.\n<END>", "<BEGIN>\n## `open`", "Open the URL and store the Browser's state in this object.\n All arguments are forwarded to :func:`Browser.get`.", " :return: Forwarded from :func:`Browser.get`.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Downloads the contents of a link to a file. This function behaves similarly to :func:`follow_link`, but the browser state will not change when calling this function. :param file: Filesystem path where the page contents will be downloaded. If the file already exists, it will be overw...
"Downloads the contents of a link to a file. This function behaves\n similarly to :func:`follow_link`, but the browser state will\n not change when calling this function.\n\n :param file: Filesystem path where the page contents will be\n downloaded. If the file already exists, it will be...
119
false
MechanicalSoup/MechanicalSoup
download_link
141,317
LDU_FT/misli/django-cms-articles/add_content
LDU_FT
[ "<BEGIN>\n## `_get_article_by_untyped_arg`", "The `article_lookup` argument can be of any of the following types:\n - Integer: interpreted as `pk` of the desired article\n - `dict`: a dictionary containing keyword arguments to find the desired article\n (for instance: `{'pk': 1}`)\n - `Article`: you c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Adds a TextPlugin with given content to given slot
"Adds a TextPlugin with given content to given slot"
32
false
misli/django-cms-articles
add_content
141,318
LDU_FT/F5Networks/f5-common-python/_modify
LDU_FT
[ "<BEGIN>\n## `update`", "Update the object, removing device group if inherited", " If inheritedDevicegroup is the string \"true\" we need to remove\n deviceGroup from the args before we update or we get the\n following error:", " The floating traffic-group: /Common/traffic-group-1 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _modify API. Each 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 _modify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Wrapped with modify, override in a subclass to customize.
"Wrapped with modify, override in a subclass to customize."
559
false
F5Networks/f5-common-python
_modify
141,319
LDU_FT/phatpiglet/autocorrect/double_typos
LDU_FT
[ "<BEGIN>\n## `spell`", "most likely correction for everything up to a double typo\n<END>", "<BEGIN>\n## `words_from_archive`", "extract words from a text file in the archive\n<END>", "<BEGIN>\n## `parse`", "tally word popularity using novel extracts, etc\n<END>", "<BEGIN>\n## `get_case`", "Best guess ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the double_typos API. 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 double_typos API. 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...
letter combinations two typos away from word
"letter combinations two typos away from word"
13
false
phatpiglet/autocorrect
double_typos
141,320
LDU_FT/shaypal5/strct/add_many_to_dict_val_set
LDU_FT
[ "<BEGIN>\n## `find_point_in_section_list`", "Returns the start of the section the given point belongs to.", " The given list is assumed to contain start points of consecutive\n sections, except for the final point, assumed to be the end point of the\n last section. For example, the list [5, 8, 30, 31] ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_many_to_dict_val_set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_many_to_dict_val_set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Adds the given value list to the set mapped by the given key. If the key is missing from the dict, the given mapping is added. Example ------- >>> dict_obj = {'a': set([1, 2])} >>> add_many_to_dict_val_set(dict_obj, 'a', [2, 3]) >>> print(dict_obj['a']) {1, 2, 3} >>> add_many_to_dict_va...
"Adds the given value list to the set mapped by the given key.\n If the key is missing from the dict, the given mapping is added.\n\n Example\n -------\n >>> dict_obj = {'a': set([1, 2])}\n >>> add_many_to_dict_val_set(dict_obj, 'a', [2, 3])\n >>> print(dict_obj['a'])\n {1, 2, 3}\n >>> add_many_...
140
false
shaypal5/strct
add_many_to_dict_val_set
141,321
LDU_FT/pebble/libpebble2/get_send_enable
LDU_FT
[ "<BEGIN>\n## `send_notification`", "Sends a notification. Blocks as long as necessary.", " :param subject: The subject.\n :type subject: str\n :param message: The message.\n :type message: str\n :param sender: The sender.\n :type sender: str\n :param source: The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_send_enable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_send_enable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return true if sending of sessions is enabled on the watch
"Return true if sending of sessions is enabled on the watch"
121
false
pebble/libpebble2
get_send_enable
141,322
LDU_FT/rycus86/ghost-client/execute_delete
LDU_FT
[ "<BEGIN>\n## `get_page`", ":param page_number: The page number to fetch (1-indexed)\n :return: The requested page fetched from the API for the query\n<END>", "<BEGIN>\n## `list`", "Fetch a list of resources from the API.", " :param kwargs: Parameters for the request\n (see from and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_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 ex...
Execute an HTTP DELETE request against the API endpoints. This method is meant for internal use. Does not return anything but raises an exception when failed. :param resource: The last part of the URI :param kwargs: Additional parameters for the HTTP call (`request` library)
"Execute an HTTP DELETE request against the API endpoints.\n This method is meant for internal use.\n Does not return anything but raises an exception when failed.\n\n :param resource: The last part of the URI\n :param kwargs: Additional parameters for the HTTP call (`request` library)"
55
false
rycus86/ghost-client
execute_delete
141,323
LDU_FT/mardix/Yass/_get_dest_file_and_url
LDU_FT
[ "<BEGIN>\n## `setup_dns`", "Setup site domain to route to static site\n<END>", "<BEGIN>\n## `create_site`", "Create a new site directory and init Yass\n<END>", "<BEGIN>\n## `init`", "Initialize Yass in the current directory\n<END>", "<BEGIN>\n## `create_page`", "Create a new page Omit the extension, i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_dest_file_and_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_dest_file_and_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return tuple of the file destination and url
"Return tuple of the file destination and url"
36
false
mardix/Yass
_get_dest_file_and_url
141,324
LDU_FT/jonbretman/jinja-to-js/_process_templatedata
LDU_FT
[ "<BEGIN>\n## `option`", "Context manager for temporarily setting a keyword argument and\n then restoring it to whatever it was before.\n<END>", "<BEGIN>\n## `is_method_call`", "Returns True if `node` is a method call for `method_name`. `method_name`\n can be either a string or an iterable of strings.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_templatedata 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_templatedata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Processes a `TemplateData` node, this is just a bit of as-is text to be written to the output.
"Processes a `TemplateData` node, this is just a bit of as-is text\n to be written to the output."
43
false
jonbretman/jinja-to-js
_process_templatedata
141,325
LDU_FT/impact27/registrator/register_channel
LDU_FT
[ "<BEGIN>\n## `channel_width`", "Get an estimation of the channel width.", " Parameters:\n -----------\n im: 2d array\n The channel image\n chanangle: number, optional\n The angle of the channel (None if unknown)\n chanapproxangle: number, optional\n If chanangle is None, the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_channel API. 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 register_channel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Register the images assuming they are channels Parameters: ----------- im0: 2d array The first image im1: 2d array The second image scale: number, optional The scale difference if known ch0angle: number, optional The angle of the channel in the first image if kno...
"Register the images assuming they are channels\n\n Parameters:\n -----------\n im0: 2d array\n The first image\n im1: 2d array\n The second image\n scale: number, optional\n The scale difference if known\n ch0angle: number, optional\n The angle of the channel in the first ...
129
false
impact27/registrator
register_channel
141,326
LDU_FT/howl-anderson/MicroTokenizer/download
LDU_FT
[ "<BEGIN>\n## `create_tokenizer`", "Create a pipeline component from a factory.", " name (unicode): Factory name to look up in `Language.factories`.\n config (dict): Configuration parameters to initialise component.\n RETURNS (callable): Pipeline component.\n<END>", "<BEGIN>\n## `add_codes...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. 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 download API. 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...
Download compatible model from default download path using pip. Model can be shortcut, model name or, if --direct flag is set, full model name with version.
"Download compatible model from default download path using pip. Model\n can be shortcut, model name or, if --direct flag is set, full model name\n with version."
43
false
howl-anderson/MicroTokenizer
download
141,327
LDU_FT/uw-it-aca/uw-restclients-sws/_json_to_registrations
LDU_FT
[ "<BEGIN>\n## `get_term_by_year_and_quarter`", "Returns a uw_sws.models.Term object,\n for the passed year and quarter.\n<END>", "<BEGIN>\n## `get_current_term`", "Returns a uw_sws.models.Term object,\n for the current term.\n<END>", "<BEGIN>\n## `get_term_before`", "Returns a uw_sws.models.Term obje...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _json_to_registrations 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 _json_to_registrations 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 a list of all uw_sws.models.Registration objects
"Returns a list of all uw_sws.models.Registration objects"
74
false
uw-it-aca/uw-restclients-sws
_json_to_registrations
141,328
LDU_FT/junzis/pyModeS/temp44
LDU_FT
[ "<BEGIN>\n## `category`", "Aircraft category number", " Args:\n msg (string): 28 bytes hexadecimal message string", " Returns:\n int: category number\n<END>", "<BEGIN>\n## `callsign`", "Aircraft callsign", " Args:\n msg (string): 28 bytes hexadecimal message string", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the temp44 API. Each 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 temp44 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Static air temperature. Args: msg (String): 28 bytes hexadecimal message string Returns: float, float: temperature and alternative temperature in Celsius degree. Note: Two values returns due to what seems to be an inconsistancy error in ICAO 9871 (2008) Appendix A-67.
"Static air temperature.\n\n Args:\n msg (String): 28 bytes hexadecimal message string\n\n Returns:\n float, float: temperature and alternative temperature in Celsius degree.\n Note: Two values returns due to what seems to be an inconsistancy\n error in ICAO 9871 (2008) Appendi...
310
false
junzis/pyModeS
temp44
141,329
LDU_FT/schlamar/latexmk.py/_count_citations
LDU_FT
[ "<BEGIN>\n## `_count_citations`", "Counts the citations in an aux-file.", " @return: defaultdict(int) - {citation_name: number, ...}\n<END>", "<BEGIN>\n## `main`", "Set up \"optparse\" and pass the options to\n a new instance of L{LatexMaker}.\n<END>", "<BEGIN>\n## `_parse_texlipse_config`", "Read...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _count_citations API. 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 _count_citations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Counts the citations in an aux-file. @return: defaultdict(int) - {citation_name: number, ...}
"Counts the citations in an aux-file.\n\n @return: defaultdict(int) - {citation_name: number, ...}"
27
false
schlamar/latexmk.py
_count_citations
141,330
LDU_FT/palantir/python-language-server/settings
LDU_FT
[ "<BEGIN>\n## `lint`", "Plugin interface to pyls linter.", " Args:\n document: The document to be linted.\n is_saved: Whether or not the file has been saved to disk.\n flags: Additional flags to pass to pylint. Not exposed to\n pyls_lint, but used for testin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the settings API. 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 settings API. 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...
Settings are constructed from a few sources: 1. User settings, found in user's home directory 2. Plugin settings, reported by PyLS plugins 3. LSP settings, given to us from didChangeConfiguration 4. Project settings, found in config files in the current project. ...
"Settings are constructed from a few sources:\n\n 1. User settings, found in user's home directory\n 2. Plugin settings, reported by PyLS plugins\n 3. LSP settings, given to us from didChangeConfiguration\n 4. Project settings, found in config files in the current project.\n\...
55
false
palantir/python-language-server
settings
141,331
LDU_FT/pytest-dev/pytest-xdist/schedule
LDU_FT
[ "<BEGIN>\n## `has_pending`", "Return True if there are pending test items.", " This indicates that collection has finished and nodes are still\n processing test items, so this can be thought of as\n \"the scheduler is active\".\n<END>", "<BEGIN>\n## `add_node`", "Add a new node to the s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule API. 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 schedule API. 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...
Schedule the test items on the nodes If the node's pending list is empty it is a new node which needs to run all the tests. If the pending list is already populated (by ``.add_node_collection()``) then it replaces a dead node and we only need to run those tests.
"Schedule the test items on the nodes\n\n If the node's pending list is empty it is a new node which\n needs to run all the tests. If the pending list is already\n populated (by ``.add_node_collection()``) then it replaces a\n dead node and we only need to run those tests."
92
false
pytest-dev/pytest-xdist
schedule
141,332
LDU_FT/ereOn/azmq/subscribe
LDU_FT
[ "<BEGIN>\n## `metadata_to_buffers`", "Transform a dict of metadata into a sequence of buffers.", " :param metadata: The metadata, as a dict.\n :returns: A list of buffers.\n<END>", "<BEGIN>\n## `buffer_to_metadata`", "Transform a buffer to a metadata dictionary.", " :param buffer: The buffer, as ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscribe API. 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 subscribe API. 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...
Subscribe the socket to the specified topic. :param topic: The topic to subscribe to.
"Subscribe the socket to the specified topic.\n\n :param topic: The topic to subscribe to."
111
false
ereOn/azmq
subscribe
141,333
LDU_FT/syrusakbary/promise/done_all
LDU_FT
[ "<BEGIN>\n## `dispatch_queue`", "Given the current state of a Loader instance, perform a batch load\n from its current queue.\n<END>", "<BEGIN>\n## `failed_dispatch`", "Do not cache individual loads if the entire batch dispatch fails,\n but still reject each request so they do not hang.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the done_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the done_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 extracte...
:type handlers: list[(Any) -> object] | list[((Any) -> object, (Any) -> object)]
":type handlers: list[(Any) -> object] | list[((Any) -> object, (Any) -> object)]"
25
false
syrusakbary/promise
done_all
141,334
LDU_FT/blockstack-packages/blockstack-profiles-py/sign_token_records
LDU_FT
[ "<BEGIN>\n## `verify_token`", "A function for validating an individual token.\n<END>", "<BEGIN>\n## `verify_token_record`", "A function for validating an individual token record and extracting\n the decoded token.\n<END>", "<BEGIN>\n## `get_profile_from_tokens`", "A function for extracting a profil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_token_records API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_token_records API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Function for iterating through a list of profile components and signing separate individual profile tokens.
"Function for iterating through a list of profile components and\n signing separate individual profile tokens."
18
false
blockstack-packages/blockstack-profiles-py
sign_token_records
141,335
LDU_FT/wilfilho/BingTranslator/detect_language
LDU_FT
[ "<BEGIN>\n## `_get_token`", "Get token for make request. The The data obtained herein are used \r\n in the variable header.\r", " Returns:\r\n To perform the request, receive in return a dictionary\r\n with several keys. With this method only return the token\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_language API. 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 detect_language API. 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...
Params: ::text = Text for identify language. Returns: Returns language present on text.
"Params:\r\n ::text = Text for identify language.\r\n \r\n Returns:\r\n Returns language present on text."
25
false
wilfilho/BingTranslator
detect_language
141,336
LDU_FT/jaredLunde/vital-tools/unwrap_obj
LDU_FT
[ "<BEGIN>\n## `line`", "Prints a line separator the full width of the terminal.", " @separator: the #str chars to create the line from\n @color: line color from :mod:vital.debug.colors\n @padding: adds extra lines to either the top, bottom or both\n of the line via :func:padd\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unwrap_obj API. 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 unwrap_obj API. 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...
Gets the actual object from a decorated or wrapped function @obj: (#object) the object to unwrap
"Gets the actual object from a decorated or wrapped function\n @obj: (#object) the object to unwrap"
396
false
jaredLunde/vital-tools
unwrap_obj
141,337
LDU_FT/twisted/txaws/submit
LDU_FT
[ "<BEGIN>\n## `get_ca_certs`", "Retrieve a list of CAs at either the DEFAULT_CERTS_PATH or the env\n override, TXAWS_CERTS_PATH.", " In order to find .pem files, this function checks first for presence of the\n TXAWS_CERTS_PATH environment variable that should point to a directory\n containing cert f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit API. Each 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 submit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Submit this query. @return: A deferred from get_page
"Submit this query.\n\n @return: A deferred from get_page"
465
false
twisted/txaws
submit
141,338
LDU_FT/saltant-org/saltant-py/put
LDU_FT
[ "<BEGIN>\n## `sync`", "Sync this model with latest data on the saltant server.", " Note that in addition to returning the updated object, it also\n updates the existing object.", " Returns:\n :class:`saltant.models.base_task_type.BaseTaskType`:\n This task type i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each 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 put API. Each 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...
Updates this task type on the saltant server. Returns: :class:`saltant.models.container_task_type.ExecutableTaskType`: An executable task type model instance representing the task type just updated.
"Updates this task type on the saltant server.\n\n Returns:\n :class:`saltant.models.container_task_type.ExecutableTaskType`:\n An executable task type model instance representing the task type\n just updated."
134
false
saltant-org/saltant-py
put
141,339
LDU_FT/stan-dev/pystan/_par_vector2dict
LDU_FT
[ "<BEGIN>\n## `lookup`", "Look up for a Stan function with similar functionality to a Python\n function (or even an R function, see examples). If the function is\n not present on the lookup table, then attempts to find similar one\n and prints the results. This function requires package `pandas`.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _par_vector2dict API. 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 _par_vector2dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Turn a vector of samples into an OrderedDict according to param dims. Parameters ---------- y : list of int or float pars : list of str parameter names dims : list of list of int list of dimensions of parameters Returns ------- d : dict Examples -------- >>...
"Turn a vector of samples into an OrderedDict according to param dims.\n\n Parameters\n ----------\n y : list of int or float\n pars : list of str\n parameter names\n dims : list of list of int\n list of dimensions of parameters\n\n Returns\n -------\n d : dict\n\n Examples\n ...
222
false
stan-dev/pystan
_par_vector2dict
141,340
LDU_FT/suurjaak/InputScope/fetch
LDU_FT
[ "<BEGIN>\n## `start`", "Starts the listener with incoming and outgoing queues.\n<END>", "<BEGIN>\n## `fetch`", "Convenience wrapper for database SELECT and fetch all.\n<END>", "<BEGIN>\n## `fetchone`", "Convenience wrapper for database SELECT and fetch one.\n<END>", "<BEGIN>\n## `insert`", "Convenienc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch API. Each 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 fetch API. Each 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...
Convenience wrapper for database SELECT and fetch all.
"Convenience wrapper for database SELECT and fetch all."
38
false
suurjaak/InputScope
fetch
141,341
LDU_FT/tommikaikkonen/prettyprinter/pretty_call_alt
LDU_FT
[ "<BEGIN>\n## `comment`", "Annotates a value or a Doc with a comment.", " When printed by prettyprinter, the comment will be\n rendered next to the value or Doc.\n<END>", "<BEGIN>\n## `register_pretty`", "Returns a decorator that registers the decorated function\n as the pretty printer for instances...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_call_alt API. 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 pretty_call_alt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns a Doc that represents a function call to :keyword:`fn` with the ``args`` and ``kwargs``. Given an arbitrary context ``ctx``,:: pretty_call_alt(ctx, sorted, args=([7, 4, 5], ), kwargs=[('reverse', True)]) Will result in output:: sorted([7, 4, 5], reverse=True) The layout algo...
"Returns a Doc that represents a function call to :keyword:`fn` with\n the ``args`` and ``kwargs``.\n\n Given an arbitrary context ``ctx``,::\n\n pretty_call_alt(ctx, sorted, args=([7, 4, 5], ), kwargs=[('reverse', True)])\n\n Will result in output::\n\n sorted([7, 4, 5], reverse=True)\n\n The...
78
false
tommikaikkonen/prettyprinter
pretty_call_alt
141,342
LDU_FT/grahambell/pymoc/area
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 area API. Each 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 area API. Each 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...
The area enclosed by the MOC, in steradians. >>> m = MOC(0, (0, 1, 2)) >>> round(m.area, 2) 3.14
"The area enclosed by the MOC, in steradians.\n\n >>> m = MOC(0, (0, 1, 2))\n >>> round(m.area, 2)\n 3.14"
165
false
grahambell/pymoc
area
141,343
LDU_FT/standage/tag/_get_primary_type
LDU_FT
[ "<BEGIN>\n## `accession`", "Parse accession number from commonly supported formats.", " If the defline does not match one of the following formats, the entire\n description (sans leading caret) will be returned.", " * >gi|572257426|ref|XP_006607122.1|\n * >gnl|Tcas|XP_008191512.1\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_primary_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_primary_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Check for multiple transcript types and, if possible, select one.
"Check for multiple transcript types and, if possible, select one."
114
false
standage/tag
_get_primary_type
141,344
LDU_FT/welbornprod/colr/lstrip
LDU_FT
[ "<BEGIN>\n## `main`", "Main entry point, expects doctopt arg dict as argd.\n<END>", "<BEGIN>\n## `print_err`", "A wrapper for print() that uses stderr by default.\n<END>", "<BEGIN>\n## `walk_dir_animated`", "Walk a directory, printing status updates along the way.\n<END>", "<BEGIN>\n## `walk_dir_progres...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lstrip API. Each 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 lstrip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Like str.lstrip, except it returns the Colr instance.
"Like str.lstrip, except it returns the Colr instance."
316
false
welbornprod/colr
lstrip
141,345
LDU_FT/LordDarkula/chess_py/_get_piece
LDU_FT
[ "<BEGIN>\n## `_get_piece`", "Returns Piece subclass given index of piece.", " :type: index: int\n :type: loc Location", " :raise: KeyError\n<END>", "<BEGIN>\n## `incomplete_alg`", "Converts a string written in short algebraic form into an incomplete move.\n These incomplete moves do not have t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_piece API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_piece API. 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 Piece subclass given index of piece. :type: index: int :type: loc Location :raise: KeyError
"Returns Piece subclass given index of piece.\n\n :type: index: int\n :type: loc Location\n\n :raise: KeyError"
173
false
LordDarkula/chess_py
_get_piece
141,346
LDU_FT/ehansis/ozelot/truncate_to_field_length
LDU_FT
[ "<BEGIN>\n## `_query`", "Base query for an url and xpath", " Args:\n url (str): URL to search\n xpath (str): xpath to search (may be ``None``)\n<END>", "<BEGIN>\n## `get`", "Get a URL via the cache.", " If the URL exists in the cache, return the cached value. Otherwise ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncate_to_field_length API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncate_to_field_length API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Truncate the value of a string field to the field's max length. Use this in a validator to check/truncate values before inserting them into the database. Copy the below example code after ``@validates`` to your model class and replace ``field1`` and ``field2`` with your field name(s). ...
"Truncate the value of a string field to the field's max length.\n\n Use this in a validator to check/truncate values before inserting them into the database.\n Copy the below example code after ``@validates`` to your model class and replace ``field1`` and ``field2`` with\n your field name(s).\n\n ...
203
false
ehansis/ozelot
truncate_to_field_length
141,347
LDU_FT/mdscruggs/ga/weighted_choice
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 weighted_choice API. 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 weighted_choice API. 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...
Select a random element from a sequence, given cumulative probabilities of selection. See ``compute_fitness_cdf`` function for obtaining cumulative probabilities. seq: sequence to select from cdf: sequence with 1 cumulative probability value in [0, 1] for each element in ``seq`` return:...
"Select a random element from a sequence, given cumulative probabilities of selection.\n \n See ``compute_fitness_cdf`` function for obtaining cumulative probabilities.\n \n seq: sequence to select from\n cdf: sequence with 1 cumulative probability value in [0, 1] for each element in ``seq``\n \n ...
94
false
mdscruggs/ga
weighted_choice
141,348
LDU_FT/DataBiosphere/toil/_runParasol
LDU_FT
[ "<BEGIN>\n## `html_page_context`", "Event handler for the html-page-context signal.\n Modifies the context directly.\n - Replaces the 'toc' value created by the HTML builder with one\n that shows all document titles and the local table of contents.\n - Sets display_toc to True so the table of con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _runParasol API. 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 _runParasol API. 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...
Issues a parasol command using popen to capture the output. If the command fails then it will try pinging parasol until it gets a response. When it gets a response it will recursively call the issue parasol command, repeating this pattern for a maximum of N times. The final exit value will refle...
"Issues a parasol command using popen to capture the output. If the command fails then it\n will try pinging parasol until it gets a response. When it gets a response it will\n recursively call the issue parasol command, repeating this pattern for a maximum of N\n times. The final exit value will r...
1,322
true
DataBiosphere/toil
_runParasol
141,349
LDU_FT/GibbsConsulting/django-plotly-dash/layout
LDU_FT
[ "<BEGIN>\n## `find_stateless_by_name`", "Find stateless app given its name", " First search the Django ORM, and if not found then look the app up in a local registry.\n If the app does not have an ORM entry then a StatelessApp model instance is created.\n<END>", "<BEGIN>\n## `as_dash_app`", "Return a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the layout API. Each 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 layout API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return the layout of the dash application
"Return the layout of the dash application"
96
false
GibbsConsulting/django-plotly-dash
layout
141,350
LDU_FT/carljm/django-adminfiles/photos_search
LDU_FT
[ "<BEGIN>\n## `get_uploads`", "Return a generator yielding uploads referenced in the given text.\n<END>", "<BEGIN>\n## `parse_match`", "Accept an re match object resulting from an ``UPLOAD_RE`` match\n and return a two-tuple where the first element is the\n corresponding ``FileUpload`` and the second is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the photos_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the photos_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 ext...
Returns a list of Photo objects. If auth=True then will auth the user. Can see private etc
"Returns a list of Photo objects.\n\n If auth=True then will auth the user. Can see private etc"
67
false
carljm/django-adminfiles
photos_search
141,351
LDU_FT/facebook/pyre-check/_parse_leaves
LDU_FT
[ "<BEGIN>\n## `log_time`", "Log the time it takes to run a function. It's sort of like timeit, but\n prettier.\n<END>", "<BEGIN>\n## `daemonize`", "We double-fork here to detach the daemon process from the parent.\n If we were to just fork the child as a daemon, we'd have to worry about the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_leaves API. 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 _parse_leaves API. 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 a list of pairs (leaf_name, distance)
"Returns a list of pairs (leaf_name, distance)"
150
false
facebook/pyre-check
_parse_leaves
141,352
LDU_FT/etal/biofrills/identity_abs
LDU_FT
[ "<BEGIN>\n## `read_logodata`", "Get weblogo data for a sequence alignment.", " Returns a list of tuples: (posn, letter_counts, entropy, weight)\n<END>", "<BEGIN>\n## `aln2logodata`", "Get weblogo data for an alignment object.", " Returns a list of tuples: (posn, letter_counts, entropy, weight)\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the identity_abs API. 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 identity_abs API. 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...
Compute absolute identity (# matching sites) between sequence strings.
"Compute absolute identity (# matching sites) between sequence strings."
81
false
etal/biofrills
identity_abs
141,353
LDU_FT/langloisjp/tstore/deserialize
LDU_FT
[ "<BEGIN>\n## `get`", "Return record of given type with key `rid`", " >>> s = teststore()\n >>> s.create('tstoretest', {'id': '1', 'name': 'Toto'})\n >>> r = s.get('tstoretest', '1')\n >>> r['name']\n 'Toto'\n >>> s.get('badcls', '1')\n Traceback (most recent call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API. 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 deserialize API. 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...
Deserialize string of given content type. `self` unused in this implementation. >>> s = teststore() >>> s.deserialize('application/json', '{"id": "1", "name": "Toto"}') {u'id': u'1', u'name': u'Toto'} >>> s.deserialize('text/plain', 'id: 1, name: Toto') Traceback (most ...
"Deserialize string of given content type.\n\n `self` unused in this implementation.\n\n >>> s = teststore()\n >>> s.deserialize('application/json', '{\"id\": \"1\", \"name\": \"Toto\"}')\n {u'id': u'1', u'name': u'Toto'}\n >>> s.deserialize('text/plain', 'id: 1, name: Toto')\n ...
61
false
langloisjp/tstore
deserialize
141,354
LDU_FT/Laufire/ec/exit_hook
LDU_FT
[ "<BEGIN>\n## `registerExitCall`", "r\"\"\"Registers an exit call to start the core.", " The core would be started after the main module is loaded. Ec would be exited from the core.\n<END>", "<BEGIN>\n## `run`", "Excecutes the given command while transfering control, till the execution is complete.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exit_hook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exit_hook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
r"""A decorator that makes the decorated function to run while ec exits. Args: callable (callable): The target callable. once (bool): Avoids adding a func to the hooks, if it has been added already. Defaults to True. Note: Hooks are processedd in a LIFO order.
"r\"\"\"A decorator that makes the decorated function to run while ec exits.\n\n Args:\n callable (callable): The target callable.\n once (bool): Avoids adding a func to the hooks, if it has been added already. Defaults to True.\n\n Note:\n Hooks are processedd in a LIFO order."
64
false
Laufire/ec
exit_hook
141,355
LDU_FT/dead-beef/markovchain/scan
LDU_FT
[ "<BEGIN>\n## `create_arg_parser`", "Create command subparsers.", " Parameters\n ----------\n parent : `argparse.ArgumentParser`\n Command parser.\n<END>", "<BEGIN>\n## `read`", "Read data files and update a generator.", " Parameters\n ----------\n fnames : `list` of `str`\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan API. Each 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 scan API. Each 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...
Scan a string. Parameters ---------- data : `str` String to scan. part : `bool` `True` if data is partial. Returns ------- `generator` of (`str` or `markovchain.scanner.Scanner.END`) Token generator.
"Scan a string.\n\n Parameters\n ----------\n data : `str`\n String to scan.\n part : `bool`\n `True` if data is partial.\n\n Returns\n -------\n `generator` of (`str` or `markovchain.scanner.Scanner.END`)\n Token generator."
323
false
dead-beef/markovchain
scan
141,356
LDU_FT/wesyoung/pyzyre/disconnect
LDU_FT
[ "<BEGIN>\n## `set_header`", "Set node header; these are provided to other nodes during discovery\nand come in each ENTER message.\n<END>", "<BEGIN>\n## `set_endpoint`", "By default, Zyre binds to an ephemeral TCP port and broadcasts the local\nhost name using UDP beaconing. When you call this method, Zyre wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect API. 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 disconnect API. 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...
Disconnect a socket from a formatted endpoint Returns 0 if OK, -1 if the endpoint was invalid or the function isn't supported.
"Disconnect a socket from a formatted endpoint\nReturns 0 if OK, -1 if the endpoint was invalid or the function\nisn't supported."
192
false
wesyoung/pyzyre
disconnect
141,357
LDU_FT/marshmallow-code/marshmallow/merge_errors
LDU_FT
[ "<BEGIN>\n## `_get_fields`", "Get fields from a class. If ordered=True, fields will sorted by creation index.", " :param attrs: Mapping of class attributes\n :param type field_class: Base field class\n :param bool pop: Remove matching fields\n<END>", "<BEGIN>\n## `_get_fields_by_mro`", "Collect fie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_errors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_errors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Deeply merge two error messages. The format of ``errors1`` and ``errors2`` matches the ``message`` parameter of :exc:`marshmallow.exceptions.ValidationError`.
"Deeply merge two error messages.\n\n The format of ``errors1`` and ``errors2`` matches the ``message``\n parameter of :exc:`marshmallow.exceptions.ValidationError`."
153
false
marshmallow-code/marshmallow
merge_errors
141,358
LDU_FT/awacha/sastool/radial_average
LDU_FT
[ "<BEGIN>\n## `readB1logfile`", "Read B1 logfile (*.log)", " Inputs:\n filename: the file name", " Output: A dictionary.\n<END>", "<BEGIN>\n## `writeB1logfile`", "Write a header structure into a B1 logfile.", " Inputs:\n filename: name of the file.\n data: header dictionary"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the radial_average API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the radial_average API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Do a radial averaging Inputs: qrange: the q-range. If None, auto-determine. If 'linear', auto-determine with linear spacing (same as None). If 'log', auto-determine with log10 spacing. pixel: do a pixel-integration (instead of q) returnmask: i...
"Do a radial averaging\n\n Inputs:\n qrange: the q-range. If None, auto-determine. If 'linear', auto-determine\n with linear spacing (same as None). If 'log', auto-determine\n with log10 spacing.\n pixel: do a pixel-integration (instead of q)\n retur...
426
false
awacha/sastool
radial_average
141,359
LDU_FT/ClimateImpactLab/DataFS/update_metadata
LDU_FT
[ "<BEGIN>\n## `_generate_manager`", "Generate a manager from a manager_config dictionary", " Parameters\n ----------", " manager_config : dict\n Configuration with keys class, args, and kwargs\n used to generate a new datafs.manager object", " Returns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_metadata API. 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...
Update metadata for archive ``archive_name``
"Update metadata for archive ``archive_name``"
318
false
ClimateImpactLab/DataFS
update_metadata
141,360
LDU_FT/frictionlessdata/datapackage-pipelines/iterfiles
LDU_FT
[ "<BEGIN>\n## `_filehash`", "Return the hash object for the file `filepath', processing the file\n by chunk of `blocksize'.", " :type filepath: str\n :param filepath: Path to file", " :type blocksize: int\n :param blocksize: Size of the chunk when processing the file\n<END>", "<BEGIN>\n## `com...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterfiles API. 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 iterfiles API. 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...
Generator for all the files not excluded recursively. Return relative path. :type pattern: str :param pattern: Unix style (glob like/gitignore like) pattern
"Generator for all the files not excluded recursively.\n\n Return relative path.\n\n :type pattern: str\n :param pattern: Unix style (glob like/gitignore like) pattern"
51
false
frictionlessdata/datapackage-pipelines
iterfiles
141,361
LDU_FT/praekeltfoundation/seed-message-sender/deliver_hook
LDU_FT
[ "<BEGIN>\n## `_get_filename`", "This function gets the base filename from the path, if a language code\n is present the filename will start from there.\n<END>", "<BEGIN>\n## `_override_payload`", "This function transforms the payload into a new format using the\n self.override_payload property.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deliver_hook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deliver_hook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
target: the url to receive the payload. payload: a python primitive data structure instance_id: a possibly None "trigger" instance ID hook_id: the ID of defining Hook object
"target: the url to receive the payload.\n payload: a python primitive data structure\n instance_id: a possibly None \"trigger\" instance ID\n hook_id: the ID of defining Hook object"
36
false
praekeltfoundation/seed-message-sender
deliver_hook
141,362
LDU_FT/psphere-project/psphere/u2open
LDU_FT
[ "<BEGIN>\n## `get_options`", "Get the options that have been set.", " Called after the user has added all their own options\n and is ready to use the variables.\n<END>", "<BEGIN>\n## `_get_dataobject`", "This function only gets called if the decorated property\n doesn't have a value in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the u2open API. Each 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 u2open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Open a connection. @param u2request: A urllib2 request. @type u2request: urllib2.Requet. @return: The opened file-like urllib2 object. @rtype: fp
"Open a connection.\n @param u2request: A urllib2 request.\n @type u2request: urllib2.Requet.\n @return: The opened file-like urllib2 object.\n @rtype: fp"
82
false
psphere-project/psphere
u2open
141,363
LDU_FT/aewallin/allantools/tau_reduction
LDU_FT
[ "<BEGIN>\n## `set_input`", "Set inputs after initialization", " Parameters\n -------\n nr: integer\n length of generated time-series\n number must be power of two\n qd: float\n discrete variance\n b: float\n noise type:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tau_reduction API. 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 tau_reduction API. 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...
Reduce the number of taus to maximum of n per decade (Helper function) takes in a tau list and reduces the number of taus to a maximum amount per decade. This is only useful if more than the "decade" and "octave" but less than the "all" taus are wanted. E.g. to show certain features of the data one mig...
"Reduce the number of taus to maximum of n per decade (Helper function)\n\n takes in a tau list and reduces the number of taus to a maximum amount per\n decade. This is only useful if more than the \"decade\" and \"octave\" but\n less than the \"all\" taus are wanted. E.g. to show certain features of\n the ...
273
false
aewallin/allantools
tau_reduction
141,364
LDU_FT/evyatarmeged/Raccoon/_detect_cms
LDU_FT
[ "<BEGIN>\n## `_extract_from_sans`", "Looks for different TLDs as well as different sub-domains in SAN list\n<END>", "<BEGIN>\n## `_detect_cms`", "Detect CMS using whatcms.org.\n Has a re-try mechanism because false negatives may occur\n :param tries: Count of tries for CMS discovery\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _detect_cms API. 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 _detect_cms API. 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...
Detect CMS using whatcms.org. Has a re-try mechanism because false negatives may occur :param tries: Count of tries for CMS discovery
"Detect CMS using whatcms.org.\n Has a re-try mechanism because false negatives may occur\n :param tries: Count of tries for CMS discovery"
27
false
evyatarmeged/Raccoon
_detect_cms
141,365
LDU_FT/sunlightlabs/django-mediasync/scripttag
LDU_FT
[ "<BEGIN>\n## `combo_serve`", "Handles generating a 'combo' file for the given path. This is similar to\n what happens when we upload to S3. Processors are applied, and we get\n the value that we would if we were serving from S3. This is a good way\n to make sure combo files work as intended before rollin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scripttag API. 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 scripttag API. 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...
Renders a <script> tag for the JS file(s).
"Renders a <script> tag for the JS file(s)."
44
false
sunlightlabs/django-mediasync
scripttag
141,366
LDU_FT/pallets/werkzeug/is_ssl_error
LDU_FT
[ "<BEGIN>\n## `mimetype`", "The mimetype (content type without charset etc.)\n<END>", "<BEGIN>\n## `mimetype_params`", "The mimetype parameters as dict. For example if the\n content type is ``text/html; charset=utf-8`` the params would be\n ``{'charset': 'utf-8'}``.", " .. versionadded::...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ssl_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ssl_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 extr...
Checks if the given error (or the current one) is an SSL error.
"Checks if the given error (or the current one) is an SSL error."
541
false
pallets/werkzeug
is_ssl_error
141,367
LDU_FT/loisaidasam/pyslack/channels_list
LDU_FT
[ "<BEGIN>\n## `_make_request`", "Make request to API endpoint", " Note: Ignoring SSL cert validation due to intermittent failures\n http://requests.readthedocs.org/en/latest/user/advanced/#ssl-cert-verification\n<END>", "<BEGIN>\n## `channels_list`", "channels.list", " This method retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the channels_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the channels_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 ext...
channels.list This method returns a list of all channels in the team. This includes channels the caller is in, channels they are not currently in, and archived channels. The number of (non-deactivated) members in each channel is also returned. https://api.slack.com/methods/chan...
"channels.list\n\n This method returns a list of all channels in the team. This includes\n channels the caller is in, channels they are not currently in, and\n archived channels. The number of (non-deactivated) members in each\n channel is also returned.\n\n https://api.slack.com/meth...
18
false
loisaidasam/pyslack
channels_list
141,368
LDU_FT/OzymandiasTheGreat/python-libinput/transform_coords
LDU_FT
[ "<BEGIN>\n## `events`", "Yield events from the internal libinput's queue.", "\t\tYields device events that are subclasses of\n\t\t:class:`~libinput.event.Event`.", "\t\tYields:\n\t\t\t:class:`~libinput.event.Event`: Device event.\n<END>", "<BEGIN>\n## `next_event_type`", "Return the type of the next event...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_coords API. 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 transform_coords API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return the current absolute (x, y) coordinates of the tablet tool event, transformed to screen coordinates and whether they have changed in this event. Note: On some devices, returned value may be negative or larger than the width of the device. See `Out-of-bounds motion events`_ for more details. Arg...
"Return the current absolute (x, y) coordinates of\n\t\tthe tablet tool event, transformed to screen coordinates and\n\t\twhether they have changed in this event.\n\n\t\tNote:\n\t\t\tOn some devices, returned value may be negative or larger than\n\t\t\tthe width of the device. See `Out-of-bounds motion events`_\n\t\t\t...
320
false
OzymandiasTheGreat/python-libinput
transform_coords
141,369
LDU_FT/hmmlearn/hmmlearn/log_multivariate_normal_density
LDU_FT
[ "<BEGIN>\n## `log_multivariate_normal_density`", "Compute the log probability under a multivariate Gaussian distribution.\n Parameters\n ----------\n X : array_like, shape (n_samples, n_features)\n List of n_features-dimensional data points. Each row corresponds to a\n single data point.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_multivariate_normal_density API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_multivariate_normal_density API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Compute the log probability under a multivariate Gaussian distribution. Parameters ---------- X : array_like, shape (n_samples, n_features) List of n_features-dimensional data points. Each row corresponds to a single data point. means : array_like, shape (n_components, n_features) ...
"Compute the log probability under a multivariate Gaussian distribution.\n Parameters\n ----------\n X : array_like, shape (n_samples, n_features)\n List of n_features-dimensional data points. Each row corresponds to a\n single data point.\n means : array_like, shape (n_components, n_features)...
108
false
hmmlearn/hmmlearn
log_multivariate_normal_density
141,370
LDU_FT/ChrisCummins/labm8/mv
LDU_FT
[ "<BEGIN>\n## `table`", "Return a formatted string of \"list of list\" table data.", " See: http://pandas.pydata.org/pandas-docs/dev/generated/pandas.DataFrame.html", " Examples:", " >>> fmt.print([(\"foo\", 1), (\"bar\", 2)])\n 0 1\n 0 foo 1\n 1 bar 2", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Move a file or directory. If the destination already exists, this will attempt to overwrite it. Arguments: src (string): path to the source file or directory. dst (string): path to the destination file or directory. Raises: File404: if source does not exist. IOError:...
"Move a file or directory.\n\n If the destination already exists, this will attempt to overwrite\n it.\n\n Arguments:\n\n src (string): path to the source file or directory.\n dst (string): path to the destination file or directory.\n\n Raises:\n\n File404: if source does not exist.\n ...
345
false
ChrisCummins/labm8
mv
141,371
LDU_FT/erikvw/django-collect-offline-files/process_queue
LDU_FT
[ "<BEGIN>\n## `confirm`", "Flags the batch as confirmed by updating\n confirmation_datetime on the history model for this batch.\n<END>", "<BEGIN>\n## `reload`", "Reloads /path/to/filenames into the queue\n that match the regexes.\n<END>", "<BEGIN>\n## `send`", "Sends the file to the remote h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_queue API. 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 process_queue API. 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...
Loops and waits on queue calling queue's `next_task` method. If an exception occurs, log the error, log the exception, and break.
"Loops and waits on queue calling queue's `next_task` method.\n\n If an exception occurs, log the error, log the exception,\n and break."
36
false
erikvw/django-collect-offline-files
process_queue
141,372