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/square/pylink/memory_read
LDU_FT
[ "<BEGIN>\n## `main`", "Prints the core's information.", " Args:\n jlink_serial (str): the J-Link serial number\n device (str): the target CPU", " Returns:\n Always returns ``0``.", " Raises:\n JLinkException: on error\n<END>", "<BEGIN>\n## `acquire`", "Attempts to acquire a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the memory_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the memory_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Reads memory from a target system or specific memory zone. The optional ``zone`` specifies a memory zone to access to read from, e.g. ``IDATA``, ``DDATA``, or ``CODE``. The given number of bits, if provided, must be either ``8``, ``16``, or ``32``. If not provided, always reads ``num_...
"Reads memory from a target system or specific memory zone.\n\n The optional ``zone`` specifies a memory zone to access to read from,\n e.g. ``IDATA``, ``DDATA``, or ``CODE``.\n\n The given number of bits, if provided, must be either ``8``, ``16``, or\n ``32``. If not provided, always reads...
949
false
square/pylink
memory_read
22,373
LDU_FT/Genida/django-appsettings/check
LDU_FT
[ "<BEGIN>\n## `check`", "Class method to check every settings.", " Will raise an ``ImproperlyConfigured`` exception with explanation.\n<END>", "<BEGIN>\n## `default_value`", "Property to return the default value.", " If the default value is callable and call_default is True, return\n t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API. 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 check API. 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...
Class method to check every settings. Will raise an ``ImproperlyConfigured`` exception with explanation.
"Class method to check every settings.\n\n Will raise an ``ImproperlyConfigured`` exception with explanation."
31
false
Genida/django-appsettings
check
22,374
LDU_FT/KrzyHonk/bpmn-python/import_lane_element
LDU_FT
[ "<BEGIN>\n## `load_diagram_from_csv`", "Reads an CSV file from given filepath and maps it into inner representation of BPMN diagram.\n Returns an instance of BPMNDiagramGraph class.", " :param filepath: string with output filepath,\n :param bpmn_diagram: an instance of BpmnDiagramGraph clas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_lane_element API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_lane_element API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Method for importing 'laneSet' element from diagram file. :param lane_element: XML document element, :param plane_element: object representing a BPMN XML 'plane' element.
"Method for importing 'laneSet' element from diagram file.\n\n :param lane_element: XML document element,\n :param plane_element: object representing a BPMN XML 'plane' element."
368
false
KrzyHonk/bpmn-python
import_lane_element
22,375
LDU_FT/base4sistemas/satcfe/analisar
LDU_FT
[ "<BEGIN>\n## `salvar`", "Salva o arquivo de log decodificado.", " :param str destino: (Opcional) Caminho completo para o arquivo onde os\n dados dos logs deverão ser salvos. Se não informado, será criado\n um arquivo temporário via :func:`tempfile.mkstemp`.", " :param str p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analisar API. 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 analisar API. 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...
Constrói uma :class:`RespostaSAT` ou especialização dependendo da função SAT encontrada na sessão consultada. :param unicode retorno: Retorno da função ``ConsultarNumeroSessao``.
"Constrói uma :class:`RespostaSAT` ou especialização dependendo da\n função SAT encontrada na sessão consultada.\n\n :param unicode retorno: Retorno da função ``ConsultarNumeroSessao``."
208
false
base4sistemas/satcfe
analisar
22,376
LDU_FT/b3j0f/annotation/_bind_target
LDU_FT
[ "<BEGIN>\n## `mixin_function_or_method`", "Mixin a routine into the target.", " :param routine: routine to mix in target.\n :param str name: mixin name. Routine name by default.\n :param bool isbound: If True (False by default), the mixin result is a\n bound method to target.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bind_target API. 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 _bind_target API. 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...
Method to override in order to specialize binding of target. :param target: target to bind. :param ctx: target ctx. :return: bound target.
"Method to override in order to specialize binding of target.\n\n :param target: target to bind.\n :param ctx: target ctx.\n :return: bound target."
84
false
b3j0f/annotation
_bind_target
22,377
LDU_FT/juju-solutions/charms.reactive/_startup
LDU_FT
[ "<BEGIN>\n## `endpoint_from_name`", "The object used for interacting with the named relations, or None.\n<END>", "<BEGIN>\n## `endpoint_from_flag`", "The object used for interacting with relations tied to a flag, or None.\n<END>", "<BEGIN>\n## `relation_factory`", "Get the RelationFactory for the given re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _startup API. 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 _startup API. 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...
Create Endpoint instances and manage automatic flags.
"Create Endpoint instances and manage automatic flags."
223
false
juju-solutions/charms.reactive
_startup
22,378
LDU_FT/coinbase/coinbase-python/deposit
LDU_FT
[ "<BEGIN>\n## `set_primary`", "https://developers.coinbase.com/api/v2#set-account-as-primary\n<END>", "<BEGIN>\n## `modify`", "https://developers.coinbase.com/api#modify-an-account\n<END>", "<BEGIN>\n## `get_address`", "https://developers.coinbase.com/api/v2#show-addresss\n<END>", "<BEGIN>\n## `get_addre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deposit API. 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 deposit API. 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...
https://developers.coinbase.com/api/v2#deposit-funds
"https://developers.coinbase.com/api/v2#deposit-funds"
166
false
coinbase/coinbase-python
deposit
22,379
LDU_FT/letuananh/chirptext/read
LDU_FT
[ "<BEGIN>\n## `download`", "Download a file at $url and save it to $path\n<END>", "<BEGIN>\n## `parse`", "Use mecab-python3 by default to parse JP text. Fall back to mecab binary app if needed\n<END>", "<BEGIN>\n## `flex_update_obj`", "Pull data from source to target.\n Target's __dict__ (object data) w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Read tagged doc from mutliple files (sents, tokens, concepts, links, tags)
"Read tagged doc from mutliple files (sents, tokens, concepts, links, tags)"
80
false
letuananh/chirptext
read
22,380
LDU_FT/aiidateam/aiida-ase/convert_the_args
LDU_FT
[ "<BEGIN>\n## `parse_from_calc`", "Parses the datafolder, stores results.\n This parser for this simple code does simply store in the DB a node\n representing the file of forces in real space\n<END>", "<BEGIN>\n## `get_calculator_impstr`", "Returns the import string for the calculator\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_the_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_the_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Function used to convert the arguments of methods
"Function used to convert the arguments of methods"
13
false
aiidateam/aiida-ase
convert_the_args
22,381
LDU_FT/Cognexa/cxflow/_is_value_better
LDU_FT
[ "<BEGIN>\n## `_write_header`", "Write CSV header row with column names.", " Column names are inferred from the ``epoch_data`` and ``self.variables`` (if specified).\n Variables and streams expected later on are stored in ``self._variables`` and ``self._streams`` respectively.", " :param e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_value_better API. 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 _is_value_better API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Test if the new value is better than the best so far. :param new_value: current value of the objective function
"Test if the new value is better than the best so far.\n\n :param new_value: current value of the objective function"
325
false
Cognexa/cxflow
_is_value_better
22,382
LDU_FT/FelixSchwarz/pymta/_dispatch_commands
LDU_FT
[ "<BEGIN>\n## `_start_new_worker_process`", "Start a new child worker process which will listen on the given\n socket and return a reference to the new process.\n<END>", "<BEGIN>\n## `get_all_allowed_internal_commands`", "Returns an iterable which includes all allowed commands. This does\n not me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dispatch_commands 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 _dispatch_commands 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...
This method dispatches a SMTP command to the appropriate handler method. It is called after a new command was received and a valid transition was found.
"This method dispatches a SMTP command to the appropriate handler\n method. It is called after a new command was received and a valid\n transition was found."
27
false
FelixSchwarz/pymta
_dispatch_commands
22,383
LDU_FT/dropbox/stone/json_encode
LDU_FT
[ "<BEGIN>\n## `generic_type_name`", "Return a descriptive type name that isn't Python specific. For example, an\n int type will return 'integer' rather than 'int'.\n<END>", "<BEGIN>\n## `doc_unwrap`", "Applies two transformations to raw_doc:\n 1. N consecutive newlines are converted into N-1 newlines.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_encode API. 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 json_encode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Encodes an object into JSON based on its type. Args: data_type (Validator): Validator for obj. obj (object): Object to be serialized. caller_permissions (list): The list of raw-string caller permissions with which to serialize. alias_validators (Optional[Mapping[bv.V...
"Encodes an object into JSON based on its type.\n\n Args:\n data_type (Validator): Validator for obj.\n obj (object): Object to be serialized.\n caller_permissions (list): The list of raw-string caller permissions with which\n to serialize.\n alias_validators (Optional[Mapp...
613
false
dropbox/stone
json_encode
22,384
LDU_FT/meraki-analytics/cassiopeia-datastores/_all
LDU_FT
[ "<BEGIN>\n## `_one`", "Gets one row from the query. Raises NotFoundError if there isn't a row or if there are multiple rows\n<END>", "<BEGIN>\n## `_first`", "Gets the first row of the query. Raises NotFoundError if there isn't a row\n<END>", "<BEGIN>\n## `_all`", "Gets all rows of the query. Raises a NotF...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Gets all rows of the query. Raises a NotFoundError if there are 0 rows
"Gets all rows of the query. Raises a NotFoundError if there are 0 rows"
10
false
meraki-analytics/cassiopeia-datastores
_all
22,385
LDU_FT/exosite-labs/pyonep/get_portals_list
LDU_FT
[ "<BEGIN>\n## `request`", "Wraps HTTPConnection.request. On exception it calls exception_fn\n with the exception object. If exception_fn is None, it re-raises the\n exception. If notimeout is True, create a new connection (regardless of\n self.reuseconnection setting) that uses the global defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_portals_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_portals_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 ...
Method to return a list of Portal names with their id's. Returns list of tuples as [(id_1, portal_name1), (id_2, portal_name2)]
"Method to return a list of Portal names with their id's. \n \n Returns list of tuples as [(id_1, portal_name1), (id_2, portal_name2)]"
199
false
exosite-labs/pyonep
get_portals_list
22,386
LDU_FT/erinn/comodo_api/_create_error
LDU_FT
[ "<BEGIN>\n## `_create_error`", "Construct an error message in jsend format.", " :param int status_code: The status code to translate into an error message\n :return: A dictionary in jsend format with the error and the code\n :rtype: dict\n<END>", "<BEGIN>\n## `get_cert_types`", "Collect...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Construct an error message in jsend format. :param int status_code: The status code to translate into an error message :return: A dictionary in jsend format with the error and the code :rtype: dict
"Construct an error message in jsend format.\n\n :param int status_code: The status code to translate into an error message\n :return: A dictionary in jsend format with the error and the code\n :rtype: dict"
15
false
erinn/comodo_api
_create_error
22,387
LDU_FT/dwavesystems/penaltymodel/to_bqm
LDU_FT
[ "<BEGIN>\n## `get_penalty_model`", "Factory function for penaltymodel_maxgap.", " Args:\n specification (penaltymodel.Specification): The specification\n for the desired penalty model.", " Returns:\n :class:`penaltymodel.PenaltyModel`: Penalty model with the given specification....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_bqm API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_bqm API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Given a pysmt model, return a bqm. Adds the values of the biases as determined by the SMT solver to a bqm. Args: model: A pysmt model. Returns: :obj:`dimod.BinaryQuadraticModel`
"Given a pysmt model, return a bqm.\n\n Adds the values of the biases as determined by the SMT solver to a bqm.\n\n Args:\n model: A pysmt model.\n\n Returns:\n :obj:`dimod.BinaryQuadraticModel`"
186
false
dwavesystems/penaltymodel
to_bqm
22,388
LDU_FT/noahbenson/pimms/_imm_resolve_deps
LDU_FT
[ "<BEGIN>\n## `to_argv_schema`", "to_argv_schema(instructions) yields a valid tuple of CommandLineParser instructions for the\n given instructions tuple; by itself, this will only return the instructions as they are, but\n optional arguments (below) will override the values in the instructions if provide...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _imm_resolve_deps API. 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 _imm_resolve_deps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
_imm_resolve_deps(imm_class) resolves the dependencies of the given immutable class imm_class and edits the immutable metadata appropriately.
"_imm_resolve_deps(imm_class) resolves the dependencies of the given immutable class imm_class\n and edits the immutable metadata appropriately."
241
false
noahbenson/pimms
_imm_resolve_deps
22,389
LDU_FT/Grk0/python-libconf/get_dump_type
LDU_FT
[ "<BEGIN>\n## `load`", "Load the contents of ``f`` (a file-like object) to a Python object", " The returned object is a subclass of ``dict`` that exposes string keys as\n attributes as well.", " Example:", " >>> with open('test/example.cfg') as f:\n ... config = libconf.load(f)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dump_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dump_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 ext...
Get the libconfig datatype of a value Return values: ``'d'`` (dict), ``'l'`` (list), ``'a'`` (array), ``'i'`` (integer), ``'i64'`` (long integer), ``'b'`` (bool), ``'f'`` (float), or ``'s'`` (string). Produces the proper type for LibconfList, LibconfArray, LibconfInt64 instances.
"Get the libconfig datatype of a value\n\n Return values: ``'d'`` (dict), ``'l'`` (list), ``'a'`` (array),\n ``'i'`` (integer), ``'i64'`` (long integer), ``'b'`` (bool),\n ``'f'`` (float), or ``'s'`` (string).\n\n Produces the proper type for LibconfList, LibconfArray, LibconfInt64\n instances."
53
false
Grk0/python-libconf
get_dump_type
22,390
LDU_FT/cathalgarvey/deadlock/decrypt
LDU_FT
[ "<BEGIN>\n## `get_slanted_adjacent_coords`", "returns the six adjacent coordinates on a standard keyboard, where each row is slanted to the right from the last.\n adjacencies are clockwise, starting with key to the left, then two keys above, then right key, then two keys below.\n (that is, only near-diagona...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrypt API. 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 decrypt API. 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...
Attempt decryption of header with a private key; returns decryptInfo. Returns a dictionary, not a new MiniLockHeader!
"Attempt decryption of header with a private key; returns decryptInfo.\n Returns a dictionary, not a new MiniLockHeader!"
73
false
cathalgarvey/deadlock
decrypt
22,391
LDU_FT/sammchardy/python-binance/get_asset_details
LDU_FT
[ "<BEGIN>\n## `add_bid`", "Add a bid to the cache", " :param bid:\n :return:\n<END>", "<BEGIN>\n## `add_ask`", "Add an ask to the cache", " :param ask:\n :return:\n<END>", "<BEGIN>\n## `_init_cache`", "Initialise the depth cache calling REST endpoint", " :return:\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_asset_details API. 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_asset_details API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Fetch details on assets. https://github.com/binance-exchange/binance-official-api-docs/blob/master/wapi-api.md#asset-detail-user_data :param recvWindow: the number of milliseconds the request is valid for :type recvWindow: int :returns: API response .. code-block:: python ...
"Fetch details on assets.\n\n https://github.com/binance-exchange/binance-official-api-docs/blob/master/wapi-api.md#asset-detail-user_data\n\n :param recvWindow: the number of milliseconds the request is valid for\n :type recvWindow: int\n\n :returns: API response\n\n .. code-block:: ...
233
false
sammchardy/python-binance
get_asset_details
22,392
LDU_FT/textX/textX/get_parent_of_type
LDU_FT
[ "<BEGIN>\n## `needs_to_be_resolved`", "This function determines, if a reference (CrossReference) needs to be\n resolved or not (while creating the model, while resolving references).", " Args:\n parent_obj: the object containing the attribute to be resolved.\n attr_name: the attribute identi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parent_of_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parent_of_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. Th...
Finds first object up the parent chain of the given type. If no parent of the given type exists None is returned. Args: typ(str or python class): The type of the model object we are looking for. obj (model object): Python model object which is the start of the search pro...
"Finds first object up the parent chain of the given type.\n If no parent of the given type exists None is returned.\n\n Args:\n typ(str or python class): The type of the model object we are\n looking for.\n obj (model object): Python model object which is the start of the\n se...
140
false
textX/textX
get_parent_of_type
22,393
LDU_FT/OCHA-DAP/hdx-python-utilities/get
LDU_FT
[ "<BEGIN>\n## `raisefrom`", "Call Python 3 raise from or emulate it for Python 2", " Args:\n exc_type (Any): Type of Exception\n message (str): Error message to display\n exc (BaseException): original exception", " Returns:\n None\n<END>", "<BEGIN>\n## `get_session`", "Set...
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...
Get full user agent string from parameters if supplied falling back on global user agent if set. Args: user_agent (Optional[str]): User agent string. HDXPythonLibrary/X.X.X- is prefixed. user_agent_config_yaml (Optional[str]): Path to YAML user agent configuration. Ignored if user_agent...
"Get full user agent string from parameters if supplied falling back on global user agent if set.\n\n Args:\n user_agent (Optional[str]): User agent string. HDXPythonLibrary/X.X.X- is prefixed.\n user_agent_config_yaml (Optional[str]): Path to YAML user agent configuration. Ignored if user_...
232
false
OCHA-DAP/hdx-python-utilities
get
22,394
LDU_FT/AndrewAnnex/SpiceyPy/insrtc
LDU_FT
[ "<BEGIN>\n## `_distribution_info`", "Creates the distribution name and the expected extension for the\n CSPICE package and returns it.", " :return (distribution, extension) tuple where distribution is the best\n guess from the strings available within the platform_urls list\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insrtc API. 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 insrtc API. 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 ...
Insert an item into a character set. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/insrtc_c.html :param item: Item to be inserted. :type item: str or list of str :param inset: Insertion set. :type inset: spiceypy.utils.support_types.SpiceCell
"Insert an item into a character set.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/insrtc_c.html\n\n :param item: Item to be inserted.\n :type item: str or list of str\n :param inset: Insertion set.\n :type inset: spiceypy.utils.support_types.SpiceCell"
2,164
true
AndrewAnnex/SpiceyPy
insrtc
22,395
LDU_FT/Asana/python-asana/find_by_project
LDU_FT
[ "<BEGIN>\n## `fetch_token`", "Exchange a code (and 'state' token) for a bearer token\n<END>", "<BEGIN>\n## `find_by_id`", "Returns the complete tag record for a single tag.", " Parameters\n ----------\n tag : {Id} The tag to get.\n [params] : {Object} Parameters for the request\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by_project API. 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 find_by_project API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns the compact records for all sections in the specified project. Parameters ---------- project : {Id} The project to get sections from. [params] : {Object} Parameters for the request
"Returns the compact records for all sections in the specified project.\n\n Parameters\n ----------\n project : {Id} The project to get sections from.\n [params] : {Object} Parameters for the request"
318
false
Asana/python-asana
find_by_project
22,396
LDU_FT/Aloomaio/python-sdk/_format_event
LDU_FT
[ "<BEGIN>\n## `_get_sender`", "Utility function acting as a Sender factory - ensures senders don't get\n created twice of more for the same target server\n<END>", "<BEGIN>\n## `terminate`", "Stops all the active Senders by flushing the buffers and closing the\n underlying sockets\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Format the event to the expected Alooma format, packing it into a message field and adding metadata :param orig_event: The original event that was sent, should be dict, str or unicode. :param external_metadata: (Optional) a dict containing metadata to ...
"Format the event to the expected Alooma format, packing it into a\n message field and adding metadata\n :param orig_event: The original event that was sent, should be\n dict, str or unicode.\n :param external_metadata: (Optional) a dict containing metadat...
27
false
Aloomaio/python-sdk
_format_event
22,397
LDU_FT/rossdylan/sham/find_volume
LDU_FT
[ "<BEGIN>\n## `get_volumes`", "Return a list of all Volumes in this Storage Pool\n<END>", "<BEGIN>\n## `create_backed_vol`", "TODO(rdelinger) think about changing _format\n This is a pretty specialized function.\n It takes an existing volume, and creates a new volume\n that is backed by th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_volume API. 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 find_volume API. 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...
Find a storage volume by its name :param name: The name of the volume :type name: str
"Find a storage volume by its name\n :param name: The name of the volume\n :type name: str"
23
false
rossdylan/sham
find_volume
22,398
LDU_FT/WhyNotHugo/django-afip/compute_amount
LDU_FT
[ "<BEGIN>\n## `catch_errors`", "Catches specific errors in admin actions and shows a friendly error.\n<END>", "<BEGIN>\n## `numbers`", "Returns the barcode's number without the verification digit.", " :return: list(int)\n<END>", "<BEGIN>\n## `verification_digit`", "Returns the verification digit f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_amount API. 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 compute_amount API. 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...
Auto-assign and return the total amount for this tax.
"Auto-assign and return the total amount for this tax."
96
false
WhyNotHugo/django-afip
compute_amount
22,399
LDU_FT/buzzfeed/caliendo/delete_io
LDU_FT
[ "<BEGIN>\n## `increment`", "Static method used to increment the depth of a context belonging to 'method'", " :param function method: A method with a context", " :rtype: caliendo.hooks.Context\n :returns: The context instance for the method.\n<END>", "<BEGIN>\n## `skip_once`", "Indicat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_io API. 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 delete_io API. 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...
Deletes records associated with a particular hash :param str hash: The hash :rtype int: The number of records deleted
"Deletes records associated with a particular hash\n\n :param str hash: The hash\n\n :rtype int: The number of records deleted"
177
false
buzzfeed/caliendo
delete_io
22,400
LDU_FT/CityOfZion/neo-python-rpc/invoke_contract
LDU_FT
[ "<BEGIN>\n## `get_account`", "Look up an account on the blockchain. Sample output:", " Args:\n address: (str) address to lookup ( in format 'AXjaFSP23Jkbe6Pk9pPGT6NBDs1HVdqaXK')\n id: (int, optional) id to use for response tracking\n endpoint: (RPCEndpoint, optional) end...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invoke_contract API. 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 invoke_contract API. 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...
Invokes a contract Args: contract_hash: (str) hash of the contract, for example 'd7678dd97c000be3f33e9362e673101bac4ca654' params: (list) a list of json ContractParameters to pass along with the invocation, example [{'type':7,'value':'symbol'},{'type':16, 'value':[]}] id: (in...
"Invokes a contract\n Args:\n contract_hash: (str) hash of the contract, for example 'd7678dd97c000be3f33e9362e673101bac4ca654'\n params: (list) a list of json ContractParameters to pass along with the invocation, example [{'type':7,'value':'symbol'},{'type':16, 'value':[]}]\n id...
76
false
CityOfZion/neo-python-rpc
invoke_contract
22,401
LDU_FT/skggm/skggm/ebic
LDU_FT
[ "<BEGIN>\n## `log_likelihood`", "Computes the log-likelihood between the covariance and precision\n estimate.", " Parameters\n ----------\n covariance : 2D ndarray (n_features, n_features)\n Maximum Likelihood Estimator of covariance", " precision : 2D ndarray (n_features, n_features)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ebic API. 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 ebic API. 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...
Extended Bayesian Information Criteria for model selection. When using path mode, use this as an alternative to cross-validation for finding lambda. See: "Extended Bayesian Information Criteria for Gaussian Graphical Models" R. Foygel and M. Drton, NIPS 2010 Parameters ---------- ...
"Extended Bayesian Information Criteria for model selection.\n\n When using path mode, use this as an alternative to cross-validation for\n finding lambda.\n\n See:\n \"Extended Bayesian Information Criteria for Gaussian Graphical Models\"\n R. Foygel and M. Drton, NIPS 2010\n\n Parameters\n ...
239
false
skggm/skggm
ebic
22,402
LDU_FT/tagcubeio/tagcube-cli/filter_resource
LDU_FT
[ "<BEGIN>\n## `create_scans`", "This method is rather simple, it will group the urls to be scanner together\n based on (protocol, domain and port).", " :param urls_file: The filename with all the URLs\n :return: A list of scans to be run\n<END>", "<BEGIN>\n## `parse_url`", "Parse a URL into the part...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_resource API. 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 filter_resource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
:return: The resource (as json), or None
":return: The resource (as json), or None"
72
false
tagcubeio/tagcube-cli
filter_resource
22,403
LDU_FT/awslabs/serverless-application-model/merge
LDU_FT
[ "<BEGIN>\n## `deaggregate_record`", "Given a Kinesis record data that is decoded, deaggregate if it was packed using the\n Kinesis Producer Library into individual records. This method will be a no-op for any\n records that are not aggregated (but will still return them).", " decoded_data - the base64...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Adds global properties to the resource, if necessary. This method is a no-op if there are no global properties for this resource type :param string resource_type: Type of the resource (Ex: AWS::Serverless::Function) :param dict resource_properties: Properties of the resource that need to be mer...
"Adds global properties to the resource, if necessary. This method is a no-op if there are no global properties\n for this resource type\n\n :param string resource_type: Type of the resource (Ex: AWS::Serverless::Function)\n :param dict resource_properties: Properties of the resource that need to b...
672
false
awslabs/serverless-application-model
merge
22,404
LDU_FT/vladsaveliev/TargQC/_get
LDU_FT
[ "<BEGIN>\n## `main`", "Annotating BED file based on reference features annotations.\n<END>", "<BEGIN>\n## `downsample`", "get N random headers from a fastq file without reading the\n whole thing into memory\n modified from: http://www.biostars.org/p/6544/\n<END>", "<BEGIN>\n## `AddIndex`", "Recursiv...
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 do...
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 do...
:param relative_path: relative path of the file inside the repository :param genome: genome name. Can contain chromosome name after comma, like hg19-chr20, in case of BED, the returning BedTool will be with added filter. :return: BedTools object if it's a BED file, or filepath
":param relative_path: relative path of the file inside the repository\n :param genome: genome name. Can contain chromosome name after comma, like hg19-chr20,\n in case of BED, the returning BedTool will be with added filter.\n :return: BedTools object if it's a BED file, or filepath"
184
false
vladsaveliev/TargQC
_get
22,405
LDU_FT/sixty-north/python-transducers/rprint
LDU_FT
[ "<BEGIN>\n## `coroutine`", "Decorator for priming generator-based coroutines.\n<END>", "<BEGIN>\n## `ticker`", "Yield numbers from 0 to `to` every `delay` seconds.\n<END>", "<BEGIN>\n## `rprint`", "A coroutine sink which prints received items stdout", " Args:\n sep: Optional separator to be pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rprint API. 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 rprint API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
A coroutine sink which prints received items stdout Args: sep: Optional separator to be printed between received items. end: Optional terminator to be printed after the last item. file: Optional stream to which to print. flush: Optional flag to force flushing after each item.
"A coroutine sink which prints received items stdout\n\n Args:\n sep: Optional separator to be printed between received items.\n end: Optional terminator to be printed after the last item.\n file: Optional stream to which to print.\n flush: Optional flag to force flushing after each item....
38
false
sixty-north/python-transducers
rprint
22,406
LDU_FT/stephantul/somber/spread
LDU_FT
[ "<BEGIN>\n## `_calculate_influence`", "Pre-calculate the influence for a given value of sigma.", " The neighborhood has size num_neurons * num_neurons, so for a\n 30 * 30 map, the neighborhood will be size (900, 900).", " Parameters\n ----------\n neighborhood : float\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spread API. 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 spread API. 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 ...
Calculate the average spread for each node. The average spread is a measure of how far each neuron is from the data points which cluster to it. Parameters ---------- X : numpy array The input data. Returns ------- spread : numpy array ...
"Calculate the average spread for each node.\n\n The average spread is a measure of how far each neuron is from the\n data points which cluster to it.\n\n Parameters\n ----------\n X : numpy array\n The input data.\n\n Returns\n -------\n spread : numpy...
123
false
stephantul/somber
spread
22,407
LDU_FT/Pegase745/sqlalchemy-datatables/_set_sort_expressions
LDU_FT
[ "<BEGIN>\n## `clean_regex`", "Escape any regex special characters other than alternation.", " :param regex: regex from datatables interface\n :type regex: str\n :rtype: str with regex to use with database\n<END>", "<BEGIN>\n## `output_result`", "Output results in the format needed by DataTables.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_sort_expressions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_sort_expressions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Construct the query: sorting. Add sorting(ORDER BY) on the columns needed to be applied on.
"Construct the query: sorting.\n\n Add sorting(ORDER BY) on the columns needed to be applied on."
17
false
Pegase745/sqlalchemy-datatables
_set_sort_expressions
22,408
LDU_FT/ResidentMario/geoplot/_validate_buckets
LDU_FT
[ "<BEGIN>\n## `load`", "A moderately mind-bendy meta-method which abstracts the internals of individual projections' load procedures.", " Parameters\n ----------\n proj : geoplot.crs object instance\n A disguised reference to ``self``.\n df : GeoDataFrame\n The G...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_buckets API. 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 _validate_buckets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This method validates that the hue parameter is correctly specified. Valid inputs are: 1. Both k and scheme are specified. In that case the user wants us to handle binning the data into k buckets ourselves, using the stated algorithm. We issue a warning if the specified k is greater than 10. ...
"This method validates that the hue parameter is correctly specified. Valid inputs are:\n\n 1. Both k and scheme are specified. In that case the user wants us to handle binning the data into k buckets\n ourselves, using the stated algorithm. We issue a warning if the specified k is greater than 10.\n ...
404
false
ResidentMario/geoplot
_validate_buckets
22,409
LDU_FT/PX4/pyulog/get_version_info_str
LDU_FT
[ "<BEGIN>\n## `convert_ulog2kml`", "Coverts and ULog file to a CSV file.", " :param ulog_file_name: The ULog filename to open and read\n :param output_file_name: KML Output file name\n :param position_topic_name: either name of a topic (must have 'lon', 'lat' &\n 'alt' fields), or a list of to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version_info_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version_info_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
get version information in the form 'v1.2.3 (RC)', or None if version tag either not found or it's a development version
"get version information in the form 'v1.2.3 (RC)', or None if version\n tag either not found or it's a development version"
31
false
PX4/pyulog
get_version_info_str
22,410
LDU_FT/UAVCAN/pyuavcan/add_update_handler
LDU_FT
[ "<BEGIN>\n## `enum_mark_last`", "Returns a generator over iterable that tells whether the current item is the last one.\n Usage:\n >>> iterable = range(10)\n >>> for index, is_last, item in enum_mark_last(iterable):\n >>> print(index, item, end='\\n' if is_last else ', ')\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_update_handler 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 add_update_handler 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...
Args: callback: The specified callback will be invoked when: - A new node appears - Node info for an existing node gets updated - Node goes offline Returns: Call remove() or try_remove() on the returned object to unregister...
"Args:\n callback: The specified callback will be invoked when:\n - A new node appears\n - Node info for an existing node gets updated\n - Node goes offline\n Returns: Call remove() or try_remove() on the returned object to unre...
65
false
UAVCAN/pyuavcan
add_update_handler
22,411
LDU_FT/slimkrazy/python-google-places/_get_place_details
LDU_FT
[ "<BEGIN>\n## `_fetch_remote_file`", "Retrieves a file from a URL.", " Returns a tuple (mimetype, filename, data)\n<END>", "<BEGIN>\n## `geocode_location`", "Converts a human-readable location to lat-lng.", " Returns a dict with lat and lng keys.", " keyword arguments:\n location -- A human-r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_place_details API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_place_details API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Gets a detailed place response. keyword arguments: place_id -- The unique identifier for the required place.
"Gets a detailed place response.\n\n keyword arguments:\n place_id -- The unique identifier for the required place."
72
false
slimkrazy/python-google-places
_get_place_details
22,412
LDU_FT/facelessuser/pyspelling/_utf_strip_bom
LDU_FT
[ "<BEGIN>\n## `is_break_tag`", "Check if tag is an element we should break on.\n<END>", "<BEGIN>\n## `to_text`", "Extract text from tags.", " Skip any selectors specified and include attributes if specified.\n Ignored tags will not have their attributes scanned either.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _utf_strip_bom API. 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 _utf_strip_bom API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return an encoding that will ignore the BOM.
"Return an encoding that will ignore the BOM."
33
false
facelessuser/pyspelling
_utf_strip_bom
22,413
LDU_FT/callowayproject/Transmogrify/get_app_ext
LDU_FT
[ "<BEGIN>\n## `list_from_env`", "Splits a string in the format \"a,b,c,d,e,f\" into\n ['a', 'b', 'c', 'd', 'e', 'f', ]\n<END>", "<BEGIN>\n## `lists_from_env`", "Splits a string in the format \"a,b:c,d,e:f\" into\n [('a', 'b'), ('c', 'd', 'e'), ('f', )]\n<END>", "<BEGIN>\n## `get_crop_size`", "Determi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_app_ext API. 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_app_ext API. 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...
get_app_ext(loops=float('inf')) Application extention. This part specifies the amount of loops. If loops is 0 or inf, it goes on infinitely.
"get_app_ext(loops=float('inf'))\n\n Application extention. This part specifies the amount of loops.\n If loops is 0 or inf, it goes on infinitely."
110
false
callowayproject/Transmogrify
get_app_ext
22,414
LDU_FT/NicolasLM/atoma/parse_opml_bytes
LDU_FT
[ "<BEGIN>\n## `parse_atom_file`", "Parse an Atom feed from a local XML file.\n<END>", "<BEGIN>\n## `parse_atom_bytes`", "Parse an Atom feed from a byte-string containing XML data.\n<END>", "<BEGIN>\n## `_get_link`", "Attempt to retrieve item link.", " Use the GUID as a fallback if it is a permalink.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_opml_bytes API. 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 parse_opml_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parse an OPML document from a byte-string containing XML data.
"Parse an OPML document from a byte-string containing XML data."
25
false
NicolasLM/atoma
parse_opml_bytes
22,415
LDU_FT/MAVENSDC/PyTplot/tplot_options
LDU_FT
[ "<BEGIN>\n## `del_data`", "This function will delete tplot variables that are already stored in memory. ", " Parameters:\n name : str \n Name of the tplot variable to be deleted. If no name is provided, then \n all tplot variables will be deleted. ", " Returns:\n N...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tplot_options API. 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 tplot_options API. 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...
This function allows the user to set several global options for the generated plots. Parameters: option : str The name of the option. See section below value : str/int/float/list The value of the option. See section below. Options: ======...
"This function allows the user to set several global options for the generated plots. \n \n Parameters:\n option : str\n The name of the option. See section below \n value : str/int/float/list\n The value of the option. See section below. \n \n Options:\n ...
155
false
MAVENSDC/PyTplot
tplot_options
22,416
LDU_FT/thombashi/pathvalidate/sanitize_ltsv_label
LDU_FT
[ "<BEGIN>\n## `validate_symbol`", "Verifying whether symbol(s) included in the ``text`` or not.", " :param str text: Input text.\n :raises pathvalidate.InvalidCharError:\n If symbol(s) included in the ``text``.\n<END>", "<BEGIN>\n## `replace_symbol`", "Replace all of the symbols in the ``text``....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sanitize_ltsv_label API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sanitize_ltsv_label API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Replace all of the symbols in text. :param str label: Input text. :param str replacement_text: Replacement text. :return: A replacement string. :rtype: str
"Replace all of the symbols in text.\n\n :param str label: Input text.\n :param str replacement_text: Replacement text.\n :return: A replacement string.\n :rtype: str"
47
false
thombashi/pathvalidate
sanitize_ltsv_label
22,417
LDU_FT/ojarva/python-ledcontroller/set_group_type
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute a single command, and sets sleep times properly.", " - controller_id = index of controller, zero-based\n - command is normal LedController command as a string\n - *args and **kwargs are passed to command", " For example, .execute(0, \"on\", 1) send...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_group_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_group_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 ex...
Set bulb type for specified group. Group must be int between 1 and 4. Type must be "rgbw" or "white". Alternatively, use constructor keywords group_1, group_2 etc. to set bulb types.
"Set bulb type for specified group.\n\n Group must be int between 1 and 4.\n\n Type must be \"rgbw\" or \"white\".\n\n Alternatively, use constructor keywords group_1, group_2 etc. to set bulb types."
49
false
ojarva/python-ledcontroller
set_group_type
22,418
LDU_FT/explosion/thinc/begin_update
LDU_FT
[ "<BEGIN>\n## `compounding`", "Yield an infinite series of compounding values. Each time the\n generator is called, a value is produced by multiplying the previous\n value by the compound rate.", " EXAMPLE:\n >>> sizes = compounding(1., 10., 1.5)\n >>> assert next(sizes) == 1.\n >>> asser...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the begin_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the begin_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return the output of the wrapped PyTorch model for the given input, along with a callback to handle the backward pass.
"Return the output of the wrapped PyTorch model for the given input,\n along with a callback to handle the backward pass."
75
false
explosion/thinc
begin_update
22,419
LDU_FT/nyergler/hieroglyph/slide_path
LDU_FT
[ "<BEGIN>\n## `filter_doctree_for_slides`", "Given a doctree, remove all non-slide related elements from it.\n<END>", "<BEGIN>\n## `_make_title_node`", "Generate a new title node for ``node``.", " ``node`` is a ``nextslide`` node. The title will use the node's\n parent's title, or the title spe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slide_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slide_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Calculate the relative path to the Slides for pagename.
"Calculate the relative path to the Slides for pagename."
39
false
nyergler/hieroglyph
slide_path
22,420
LDU_FT/lingthio/Flask-User/change_username_view
LDU_FT
[ "<BEGIN>\n## `send_email_message`", "Send email message via Flask-Sendmail.", " Args:\n recipient: Email address or tuple of (Name, Email-address).\n subject: Subject line.\n html_message: The message body in HTML.\n text_message: The message body in plain text...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_username_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_username_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Prompt for new username and old password and change the user's username.
"Prompt for new username and old password and change the user's username."
186
false
lingthio/Flask-User
change_username_view
22,421
LDU_FT/IceflowRE/unidown/reset
LDU_FT
[ "<BEGIN>\n## `from_protobuf`", "Constructor from protobuf.", " :param proto: protobuf structure\n :type proto: ~unidown.plugin.protobuf.link_item_pb2.LinkItemProto\n :return: the LinkItem\n :rtype: ~unidown.plugin.link_item.LinkItem\n :raises ValueError: name of LinkItem does ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API. 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 reset API. 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...
Reset all dynamic variables to the default values.
"Reset all dynamic variables to the default values."
88
false
IceflowRE/unidown
reset
22,422
LDU_FT/rohankapoorcom/zm-py/is_available
LDU_FT
[ "<BEGIN>\n## `active`", "Indicate if this RunState is currently active.\n<END>", "<BEGIN>\n## `_zm_request`", "Perform a request to the ZoneMinder API.\n<END>", "<BEGIN>\n## `get_monitors`", "Get a list of Monitors from the ZoneMinder API.\n<END>", "<BEGIN>\n## `get_run_states`", "Get a list of RunSta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_available API. 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_available API. 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...
Indicate if this Monitor is currently available.
"Indicate if this Monitor is currently available."
33
false
rohankapoorcom/zm-py
is_available
22,423
LDU_FT/aws/aws-dynamodb-encryption-python/crypto_config_from_cache
LDU_FT
[ "<BEGIN>\n## `encrypt_item`", "Demonstrate use of EncryptedTable to transparently encrypt an item.\n<END>", "<BEGIN>\n## `to_str`", "Takes an input str or bytes object and returns an equivalent str object.", " :param data: Input data\n :type data: str or bytes\n :returns: Data normalized to str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crypto_config_from_cache 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 crypto_config_from_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Build a crypto config from the provided values, loading the table info from the provided cache. :returns: crypto config and updated kwargs :rtype: tuple(CryptoConfig, dict)
"Build a crypto config from the provided values, loading the table info from the provided cache.\n\n :returns: crypto config and updated kwargs\n :rtype: tuple(CryptoConfig, dict)"
175
false
aws/aws-dynamodb-encryption-python
crypto_config_from_cache
22,424
LDU_FT/ivknv/s3m/release
LDU_FT
[ "<BEGIN>\n## `normalize_path`", ">>> normalize_path(\"/a/b/c/\")\n '/a/b/c'\n >>> normalize_path(\"/a/b/c\")\n '/a/b/c'\n >>> normalize_path(\"/a/b/c////////\")\n '/a/b/c'\n >>> normalize_path(\"///a/b/c\")\n '/a/b/c'\n >>> normalize_path(\"/a/././b/../b/c/\")\n '/a/b/c'\n >>> normal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the release API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the release API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Release the connection locks. :param lock_transactions: `bool`, release the transaction lock (`self.lock_transactions` is the default value)
"Release the connection locks.\n\n :param lock_transactions: `bool`, release the transaction lock\n (`self.lock_transactions` is the default value)"
27
false
ivknv/s3m
release
22,425
LDU_FT/yt-project/unyt/define_unit
LDU_FT
[ "<BEGIN>\n## `uconcatenate`", "Concatenate a sequence of arrays.", " This wrapper around numpy.concatenate preserves units. All input arrays\n must have the same units. See the documentation of numpy.concatenate for\n full details.", " Examples\n --------\n >>> from unyt import cm\n >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the define_unit API. 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 define_unit API. 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...
Define a new unit and add it to the specified unit registry. Parameters ---------- symbol : string The symbol for the new unit. value : tuple or :class:`unyt.array.unyt_quantity` The definition of the new unit in terms of some other units. For example, one would define a new "mp...
"Define a new unit and add it to the specified unit registry.\n\n Parameters\n ----------\n symbol : string\n The symbol for the new unit.\n value : tuple or :class:`unyt.array.unyt_quantity`\n The definition of the new unit in terms of some other units. For\n example, one would define ...
236
false
yt-project/unyt
define_unit
22,426
LDU_FT/devopshq/artifactory/_create_json
LDU_FT
[ "<BEGIN>\n## `_create_and_update`", "Create or update request, re-read object from Artifactory\n :return: None\n<END>", "<BEGIN>\n## `read`", "Read object from artifactory. Fill object if exist\n :return:\n True if object exist,\n False else\n<END>", "<BEGIN>\n## `_create_json`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
JSON Documentation: https://www.jfrog.com/confluence/display/RTF/Repository+Configuration+JSON
"JSON Documentation: https://www.jfrog.com/confluence/display/RTF/Repository+Configuration+JSON"
104
false
devopshq/artifactory
_create_json
22,427
LDU_FT/mottosso/be/invoke
LDU_FT
[ "<BEGIN>\n## `pager`", "Decide what method to use for paging through text.\n<END>", "<BEGIN>\n## `from_int`", "Backwards-compatibility for the old retries format.\n<END>", "<BEGIN>\n## `get_backoff_time`", "Formula for computing the current backoff", " :rtype: float\n<END>", "<BEGIN>\n## `is_fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invoke API. 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 invoke API. 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 ...
Invokes a command callback in exactly the way it expects. There are two ways to invoke this method: 1. the first argument can be a callback and all other arguments and keyword arguments are forwarded directly to the function. 2. the first argument is a click command object. In t...
"Invokes a command callback in exactly the way it expects. There\n are two ways to invoke this method:\n\n 1. the first argument can be a callback and all other arguments and\n keyword arguments are forwarded directly to the function.\n 2. the first argument is a click command object....
359
false
mottosso/be
invoke
22,428
LDU_FT/mfcloud/python-zvm-sdk/coupleTo_vswitch
LDU_FT
[ "<BEGIN>\n## `getConsole`", "Get the virtual machine's console output.", " Input:\n Request Handle with the following properties:\n function - 'CMDVM'\n subfunction - 'CMD'\n userid - userid of the virtual machine", " Output:\n Request Handle updated with t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coupleTo_vswitch API. 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 coupleTo_vswitch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Couple to vswitch. Input parameters: :userid: USERID of the guest, last 8 if length > 8 :network_info: dict of network info
"Couple to vswitch.\n\n Input parameters:\n :userid: USERID of the guest, last 8 if length > 8\n :network_info: dict of network info"
643
false
mfcloud/python-zvm-sdk
coupleTo_vswitch
22,429
LDU_FT/twisted/twistedchecker/_isInner
LDU_FT
[ "<BEGIN>\n## `_isInner`", "Determine whether the given node is, at any point in its syntactic\n parentage, defined within a function.", " @param node: The node to inspect.\n @type node: L{logilab.astng.bases.NodeNG}", " @return: a boolean indicating if the given node is defined as an inner\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _isInner API. 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 _isInner API. 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...
Determine whether the given node is, at any point in its syntactic parentage, defined within a function. @param node: The node to inspect. @type node: L{logilab.astng.bases.NodeNG} @return: a boolean indicating if the given node is defined as an inner class or inner function.
"Determine whether the given node is, at any point in its syntactic\n parentage, defined within a function.\n\n @param node: The node to inspect.\n @type node: L{logilab.astng.bases.NodeNG}\n\n @return: a boolean indicating if the given node is defined as an inner\n class or inner function."
146
false
twisted/twistedchecker
_isInner
22,430
LDU_FT/wishtack/pysynthetic/apply
LDU_FT
[ "<BEGIN>\n## `syntheticMemberDecorator`", ":type memberName: str\n :type readOnly: bool\n :type privateMemberName: str|None\n :type memberDelegate: IMemberDelegate\n<END>", "<BEGIN>\n## `namingConventionDecorator`", ":type namingConvention:INamingConvention\n<END>", "<BEGIN>\n## `makeConstructor`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
:type cls: type :type originalMemberNameList: list(str) :type classNamingConvention: INamingConvention
":type cls: type\n :type originalMemberNameList: list(str)\n :type classNamingConvention: INamingConvention"
66
false
wishtack/pysynthetic
apply
22,431
LDU_FT/Celeo/Preston/_get_access_from_refresh
LDU_FT
[ "<BEGIN>\n## `_get_access_from_refresh`", "Uses the stored refresh token to get a new access token.", " This method assumes that the refresh token exists.", " Args:\n None", " Returns:\n new access token and expiration time (from now)\n<END>", "<BEGIN>\n## `_get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_access_from_refresh 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 _get_access_from_refresh API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Uses the stored refresh token to get a new access token. This method assumes that the refresh token exists. Args: None Returns: new access token and expiration time (from now)
"Uses the stored refresh token to get a new access token.\n\n This method assumes that the refresh token exists.\n\n Args:\n None\n\n Returns:\n new access token and expiration time (from now)"
76
false
Celeo/Preston
_get_access_from_refresh
22,432
LDU_FT/CitrineInformatics/pypif-sdk/add_child_ambig
LDU_FT
[ "<BEGIN>\n## `replace_by_key`", "Replace values that match a key", " Deeply traverses the pif object, looking for `key` and\n replacing values in accordance with `subs`. If `new_key`\n is set, the replaced values are assigned to that key. If\n `remove` is `True`, the old `key` pairs are removed.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_child_ambig API. 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 add_child_ambig API. 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...
Add information about decodings of a child object :param child_ambig: ambiguous set from child :param child_unambig: unambiguous set from child :param ambig: set of keys storing ambig decodings :param unambig: dictionary storing unambiguous decodings :return:
"Add information about decodings of a child object\n\n :param child_ambig: ambiguous set from child\n :param child_unambig: unambiguous set from child\n :param ambig: set of keys storing ambig decodings\n :param unambig: dictionary storing unambiguous decodings\n :return:"
61
false
CitrineInformatics/pypif-sdk
add_child_ambig
22,433
LDU_FT/jorgenkg/python-neural-network/binary_cross_entropy_cost
LDU_FT
[ "<BEGIN>\n## `predict`", "This method accepts a list of Instances", " Eg: list_of_inputs = [ Instance([0.12, 0.54, 0.84]), Instance([0.15, 0.29, 0.49]) ]\n<END>", "<BEGIN>\n## `save_network_to_file`", "This save method pickles the parameters of the current network into a \n binary file for per...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the binary_cross_entropy_cost 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 binary_cross_entropy_cost API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
The output signals should be in the range [0, 1]
"The output signals should be in the range [0, 1]"
19
false
jorgenkg/python-neural-network
binary_cross_entropy_cost
22,434
LDU_FT/google/grr/Parse
LDU_FT
[ "<BEGIN>\n## `Column`", "Iterates over values of a given column.", " Args:\n column_name: A nome of the column to retrieve the values for.", " Yields:\n Values of the specified column.", " Raises:\n KeyError: If given column is not present in the table.\n<END>", "<BEGIN>\n## `Check...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Identifies the paths set within a file. Expands paths within the context of the file, but does not infer fully expanded paths from external states. There are plenty of cases where path attributes are unresolved, e.g. sourcing other files. Lines are not handled literally. A field parser is used to: ...
"Identifies the paths set within a file.\n\n Expands paths within the context of the file, but does not infer fully\n expanded paths from external states. There are plenty of cases where path\n attributes are unresolved, e.g. sourcing other files.\n\n Lines are not handled literally. A field parser is used ...
4,605
true
google/grr
Parse
22,435
LDU_FT/envi-idl/envipyarclib/create_pre_execute
LDU_FT
[ "<BEGIN>\n## `create_param_info`", "Builds the code block for the GPTool GetParameterInfo method based on the input task_params.", " :param task_params: A list of task parameters to map to GPTool parameters.\n :return: A string representing the code block to the GPTool GetParameterInfo method.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_pre_execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_pre_execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Builds the code block for the GPTool Execute method before the job is submitted based on the input task_params. :param task_params: A list of task parameters from the task info structure. :return: A string representing the code block to the GPTool Execute method.
"Builds the code block for the GPTool Execute method before the job is\n submitted based on the input task_params.\n\n :param task_params: A list of task parameters from the task info structure.\n :return: A string representing the code block to the GPTool Execute method."
24
false
envi-idl/envipyarclib
create_pre_execute
22,436
LDU_FT/royi1000/py-libhdate/gdate_to_jdn
LDU_FT
[ "<BEGIN>\n## `gdate_to_jdn`", "Compute Julian day from Gregorian day, month and year.", " Algorithm from wikipedia's julian_day article.\n Return: The julian day number\n<END>", "<BEGIN>\n## `hdate_to_jdn`", "Compute Julian day from Hebrew day, month and year.", " Return: julian day number,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gdate_to_jdn API. 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 gdate_to_jdn API. 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 Julian day from Gregorian day, month and year. Algorithm from wikipedia's julian_day article. Return: The julian day number
"Compute Julian day from Gregorian day, month and year.\n\n Algorithm from wikipedia's julian_day article.\n Return: The julian day number"
70
false
royi1000/py-libhdate
gdate_to_jdn
22,437
LDU_FT/booktype/python-ooxml/text_length
LDU_FT
[ "<BEGIN>\n## `parse_drawing`", "Parse drawing element.", " We don't do much with drawing element. We can find embeded image but we don't do more than that.\n<END>", "<BEGIN>\n## `parse_paragraph`", "Parse paragraph element.", " Some other elements could be found inside of paragraph element (math, li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text_length API. 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 text_length API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns length of the content in this element. Return value is not correct but it is **good enough***.
"Returns length of the content in this element.\n\n Return value is not correct but it is **good enough***."
117
false
booktype/python-ooxml
text_length
22,438
LDU_FT/totalgood/twip/parse_args
LDU_FT
[ "<BEGIN>\n## `lsi`", "Train an LSI model on a \"corpus\" of documnets, like tweets", " Arguments:\n tokenize (callable): Function that returns a sequence of tokens (str) when passed a document (str)\n ram (float): Portion of RAM to limit the document generator from consuming before StopIter...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Parse command line parameters :param args: command line parameters as list of strings :return: command line parameters as :obj:`argparse.Namespace`
"Parse command line parameters\n\n :param args: command line parameters as list of strings\n :return: command line parameters as :obj:`argparse.Namespace`"
144
false
totalgood/twip
parse_args
22,439
LDU_FT/ioos/compliance-checker/get_geophysical_variables
LDU_FT
[ "<BEGIN>\n## `is_opendap`", "Returns True if the URL is a valid OPeNDAP URL", " :param str url: URL for a remote OPeNDAP endpoint\n<END>", "<BEGIN>\n## `datetime_is_iso`", "Attempts to parse a date formatted in ISO 8601 format\n<END>", "<BEGIN>\n## `kvp_convert`", "Converts a list of string attribute...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_geophysical_variables 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 get_geophysical_variables API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Returns a list of variable names for the variables detected as geophysical variables. :param netCDF4.Dataset nc: An open netCDF dataset
"Returns a list of variable names for the variables detected as geophysical\n variables.\n\n :param netCDF4.Dataset nc: An open netCDF dataset"
624
false
ioos/compliance-checker
get_geophysical_variables
22,440
LDU_FT/materialsvirtuallab/pyhull/from_hyperplane
LDU_FT
[ "<BEGIN>\n## `simplices`", "Returns the simplices of the triangulation.\n<END>", "<BEGIN>\n## `qhull_cmd`", "Generalized helper method to perform a qhull based command.", " Args:\n cmd:\n Command to perform. Supported commands are qconvex,\n qdelaunay and qvoronoi.\n o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_hyperplane API. 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 from_hyperplane API. 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 Halfspace defined by a list of vectors parallel to the bounding hyperplane. Args: basis: basis for the hyperplane (array with vector rows) origin: point on the hyperplane point: point not on the hyperplane internal: whether point is inside the h...
"Returns a Halfspace defined by a list of vectors parallel to the\n bounding hyperplane.\n\n Args:\n basis: basis for the hyperplane (array with vector rows)\n origin: point on the hyperplane\n point: point not on the hyperplane\n internal: whether point is insi...
19
false
materialsvirtuallab/pyhull
from_hyperplane
22,441
LDU_FT/ArduPilot/MAVProxy/on_idle
LDU_FT
[ "<BEGIN>\n## `child_task`", "child process - this holds all the GUI elements\n<END>", "<BEGIN>\n## `load_tile_lowres`", "load a lower resolution tile from cache to fill in a\n map while waiting for a higher resolution tile\n<END>", "<BEGIN>\n## `area_to_image`", "return an RGB image for an area of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_idle API. 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 on_idle API. 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...
To adjust text and positions on rescaling the window when resized.
"To adjust text and positions on rescaling the window when resized."
404
false
ArduPilot/MAVProxy
on_idle
22,442
LDU_FT/siemens/django-dingos/get_query_string
LDU_FT
[ "<BEGIN>\n## `set_dict`", "set_dict takes a dictionary, the value to\n enter into the dictionary, a command of what\n to do with the value, and a sequence of keys.", " d = {}", " set_dict(d,1,'append','level 1','level 2')", " -> d['level 1']['level 2'] = [1]", " set_dict(d,2,'append','le...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_query_string API. 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_query_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Given the request, return the query string. Parameters can be added or removed as necessary. Code snippet taken from Django admin app (views/main.py) (c) Copyright Django Software Foundation and individual contributors. Redistribution and use in source and binary forms, with or without modification...
"Given the request, return the query string.\n\n Parameters can be added or removed as necessary.\n\n Code snippet taken from Django admin app (views/main.py)\n\n (c) Copyright Django Software Foundation and individual contributors.\n\n\n Redistribution and use in source and binary forms, with or without mo...
139
false
siemens/django-dingos
get_query_string
22,443
LDU_FT/bububa/pyTOP/add
LDU_FT
[ "<BEGIN>\n## `ordersku_update`", "taobao.trade.ordersku.update 更新交易订单的销售属性", " 需要商家或以上权限才可调用此接口,可重复调用本接口更新交易备注,本接口同时具有添加备注的功能\n<END>", "<BEGIN>\n## `get`", "taobao.topats.result.get 获取异步任务结果", " 使用指南:http://open.taobao.com/doc/detail.htm?id=30 ", " - 1.此接口用于获取异步任务处理的结果,传入的task_id必需属...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
taobao.traderate.add 新增单个评价 新增单个评价(注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不能再通过该接口进行评价)
"taobao.traderate.add 新增单个评价\n \n 新增单个评价(注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不能再通过该接口进行评价)"
619
false
bububa/pyTOP
add
22,444
LDU_FT/quiltdata/quilt/tokenize
LDU_FT
[ "<BEGIN>\n## `create_s3_session`", "Creates a session with automatic retries on 5xx errors.\n<END>", "<BEGIN>\n## `load_module`", "Returns an object that lazily looks up tables and groups.\n<END>", "<BEGIN>\n## `find_module`", "Looks up the table based on the module path.\n<END>", "<BEGIN>\n## `_path_ha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Split the input several times, returning intermediate results at each level: - delimited by underscores - letter/number boundaries - word segments E.g., tokenize('landuse_austin_tx_24dates') -> ['landuse', 'land', 'use', 'austin', 'tx', '24dates', '24', 'dates'] (Don't need a token for the ...
"Split the input several times, returning intermediate results at each level:\n - delimited by underscores\n - letter/number boundaries\n - word segments\n E.g., tokenize('landuse_austin_tx_24dates') ->\n ['landuse', 'land', 'use', 'austin', 'tx', '24dates', '24', 'dates']\n\n (Don't need a token ...
202
false
quiltdata/quilt
tokenize
22,445
LDU_FT/lehins/django-smartfields/get_ext
LDU_FT
[ "<BEGIN>\n## `process`", "Processing is triggered by field's pre_save method. It will be\n executed if field's value has been changed (known through descriptor and\n stashing logic) or if model instance has never been saved before,\n i.e. no pk set, because there is a chance that field was in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ext API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ext API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns new file extension based on a processor's `format` parameter. Overwrite if different extension should be set ex: `'.txt'` or `None` if this processor does not change file's extension.
"Returns new file extension based on a processor's `format` parameter.\n Overwrite if different extension should be set ex: `'.txt'` or `None` if this \n processor does not change file's extension."
16
false
lehins/django-smartfields
get_ext
22,446
LDU_FT/maxpumperla/elephas/receive
LDU_FT
[ "<BEGIN>\n## `add_params`", "Add two lists of parameters one by one", " :param param_list_left: list of numpy arrays\n :param param_list_right: list of numpy arrays\n :return: list of numpy arrays\n<END>", "<BEGIN>\n## `subtract_params`", "Subtract two lists of parameters", " :param param_list...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receive API. 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 receive API. 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...
Receive data frame from open socket. :param socket: open socket instance :param num_bytes: number of bytes to read :return: received data
"Receive data frame from open socket.\n\n :param socket: open socket instance\n :param num_bytes: number of bytes to read\n\n :return: received data"
87
false
maxpumperla/elephas
receive
22,447
LDU_FT/rene-aguirre/pywinusb/find_any_reports
LDU_FT
[ "<BEGIN>\n## `hid_device_path_exists`", "Test if required device_path is still valid\r\n (HID device connected to host)\n<END>", "<BEGIN>\n## `find_all_hid_devices`", "Finds all HID devices connected to the system\n<END>", "<BEGIN>\n## `show_hids`", "Check all HID devices conected to PC hosts.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_any_reports API. 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 find_any_reports API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Find any report type referencing HID usage control/data item. Results are returned in a dictionary mapping report_type to usage lists.
"Find any report type referencing HID usage control/data item.\r\n Results are returned in a dictionary mapping report_type to usage\r\n lists."
61
false
rene-aguirre/pywinusb
find_any_reports
22,448
LDU_FT/cloudendpoints/endpoints-python/_update_from_body
LDU_FT
[ "<BEGIN>\n## `_GetFieldAttributes`", "Decomposes field into the needed arguments to pass to the constructor.", " This can be used to create copies of the field or to compare if two fields\n are \"equal\" (since __eq__ is not implemented on messages.Field).", " Args:\n field: A ProtoRPC message field (po...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_from_body API. 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 _update_from_body API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Updates the dictionary for an API payload with the request body. The values from the body should override those already in the payload, but for nested fields (message objects) the values can be combined recursively. Args: destination: A dictionary containing an API payload parsed from the ...
"Updates the dictionary for an API payload with the request body.\n\n The values from the body should override those already in the payload, but\n for nested fields (message objects) the values can be combined\n recursively.\n\n Args:\n destination: A dictionary containing an API payload parsed from th...
801
false
cloudendpoints/endpoints-python
_update_from_body
22,449
LDU_FT/ambitioninc/django-entity-event/serialize_value
LDU_FT
[ "<BEGIN>\n## `get_context_hints_per_source`", "Given a list of context renderers, return a dictionary of context hints per source.\n<END>", "<BEGIN>\n## `get_querysets_for_context_hints`", "Given a list of context hint dictionaries, return a dictionary\n of querysets for efficient context loading. The retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Given a value, ensure that it is serialized properly :param value: :return:
"Given a value, ensure that it is serialized properly\n :param value:\n :return:"
46
false
ambitioninc/django-entity-event
serialize_value
22,450
LDU_FT/dls-controls/pymalcolm/camel_to_title
LDU_FT
[ "<BEGIN>\n## `camel_to_title`", "Takes a camelCaseFieldName and returns an Title Case Field Name", " Args:\n name (str): E.g. camelCaseFieldName", " Returns:\n str: Title Case converted name. E.g. Camel Case Field Name\n<END>", "<BEGIN>\n## `snake_to_camel`", "Takes a snake_field_name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the camel_to_title API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the camel_to_title API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Takes a camelCaseFieldName and returns an Title Case Field Name Args: name (str): E.g. camelCaseFieldName Returns: str: Title Case converted name. E.g. Camel Case Field Name
"Takes a camelCaseFieldName and returns an Title Case Field Name\n\n Args:\n name (str): E.g. camelCaseFieldName\n\n Returns:\n str: Title Case converted name. E.g. Camel Case Field Name"
332
false
dls-controls/pymalcolm
camel_to_title
22,451
LDU_FT/telefonicaid/fiware-sdc/get_url
LDU_FT
[ "<BEGIN>\n## `_xml_to_dict`", "Convert RAW XML string to Python dict\n :param xml_to_convert: XML to convert (string/text)\n :return: Python dict with all XML data\n<END>", "<BEGIN>\n## `response_body_to_dict`", "Convert a XML or JSON response in a Python dict\n :param http_requests_response: 'Reques...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
It get the url for a concrete service :param url_base: keystone url :param tenand_id: the id of the tenant :param user: the user :param paassword: the password :param type: the type of service :param region: the region
"It get the url for a concrete service\n :param url_base: keystone url\n :param tenand_id: the id of the tenant\n :param user: the user\n :param paassword: the password\n :param type: the type of service\n :param region: the region"
60
false
telefonicaid/fiware-sdc
get_url
22,452
LDU_FT/astropy/astropy-helpers/iter_pyx_files
LDU_FT
[ "<BEGIN>\n## `get_dummy_distribution`", "Returns a distutils Distribution object used to instrument the setup\n environment before calling the actual setup() function.\n<END>", "<BEGIN>\n## `get_distutils_option`", "Returns the value of the given distutils option.", " Parameters\n ----------\n o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_pyx_files API. 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 iter_pyx_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
A generator that yields Cython source files (ending in '.pyx') in the source packages. Returns ------- pyxgen : generator A generator that yields (extmod, fullfn) where `extmod` is the full name of the module that the .pyx file would live in based on the source directory structu...
"A generator that yields Cython source files (ending in '.pyx') in the\n source packages.\n\n Returns\n -------\n pyxgen : generator\n A generator that yields (extmod, fullfn) where `extmod` is the\n full name of the module that the .pyx file would live in based\n on the source director...
135
false
astropy/astropy-helpers
iter_pyx_files
22,453
LDU_FT/pecan/pecan/default
LDU_FT
[ "<BEGIN>\n## `route`", "This function is used to define an explicit route for a path segment.", " You generally only want to use this in situations where your desired path\n segment is not a valid Python variable/function name.", " For example, if you wanted to be able to route to:", " /path/wit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Converts an object and returns a ``JSON``-friendly structure. :param obj: object or structure to be converted into a ``JSON``-ifiable structure Considers the following special cases in order: * object has a callable __json__() attribute defined returns the resu...
"Converts an object and returns a ``JSON``-friendly structure.\n\n :param obj: object or structure to be converted into a\n ``JSON``-ifiable structure\n\n Considers the following special cases in order:\n\n * object has a callable __json__() attribute defined\n returns...
157
false
pecan/pecan
default
22,454
LDU_FT/cackharot/suds-py3/mkparam
LDU_FT
[ "<BEGIN>\n## `genprefix`", "Generate a prefix.\n @param node: An XML node on which the prefix will be used.\n @type node: L{sax.element.Element}\n @param ns: A namespace needing an unique prefix.\n @type ns: (prefix, uri)\n @return: The I{ns} with a new prefix.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mkparam API. 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 mkparam API. 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...
Builds a parameter for the specified I{method} using the parameter definition (pdef) and the specified value (object). @param method: A method name. @type method: str @param pdef: A parameter definition. @type pdef: tuple: (I{name}, L{xsd.sxbase.SchemaObject}) @param obje...
"Builds a parameter for the specified I{method} using the parameter\n definition (pdef) and the specified value (object).\n @param method: A method name.\n @type method: str\n @param pdef: A parameter definition.\n @type pdef: tuple: (I{name}, L{xsd.sxbase.SchemaObject})\n @par...
387
false
cackharot/suds-py3
mkparam
22,455
LDU_FT/toomore/grs/get_stock_list
LDU_FT
[ "<BEGIN>\n## `real`", "Real time data", " :rtype: dict\n :returns:", " :name: 股票名稱 Unicode\n :no: 股票代碼\n :range: 漲跌價\n :ranges: 漲跌判斷 True, False\n :time: 取得時間\n :max: 漲停價\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stock_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stock_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
回傳日常交易的代碼與名稱 :rtype: dict .. versionadded:: 0.5.6
"回傳日常交易的代碼與名稱\n\n :rtype: dict\n\n .. versionadded:: 0.5.6"
88
false
toomore/grs
get_stock_list
22,456
LDU_FT/Mindwerks/worldengine/river_flow
LDU_FT
[ "<BEGIN>\n## `anti_alias`", "Execute the anti_alias operation steps times on the given map\n<END>", "<BEGIN>\n## `count_neighbours`", "Count how many neighbours of a coordinate are set to one.\n This uses the same principles as anti_alias, compare comments there.\n<END>", "<BEGIN>\n## `_calculate`", "S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the river_flow API. 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 river_flow API. 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...
simulate fluid dynamics by using starting point and flowing to the lowest available point
"simulate fluid dynamics by using starting point and flowing to the\n lowest available point"
63
false
Mindwerks/worldengine
river_flow
22,457
LDU_FT/pydata/pandas-gbq/schema
LDU_FT
[ "<BEGIN>\n## `get_service_account_credentials`", "DEPRECATED: Load service account credentials from key data or key path.\n<END>", "<BEGIN>\n## `encode_chunk`", "Return a file-like object of CSV-encoded rows.", " Args:\n dataframe (pandas.DataFrame): A chunk of a dataframe to encode\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
Retrieve the schema of the table Obtain from BigQuery the field names and field types for the table defined by the parameters Parameters ---------- dataset_id : str Name of the BigQuery dataset for the table table_id : str Name of the BigQuery ta...
"Retrieve the schema of the table\n\n Obtain from BigQuery the field names and field types\n for the table defined by the parameters\n\n Parameters\n ----------\n dataset_id : str\n Name of the BigQuery dataset for the table\n table_id : str\n Name of the ...
94
false
pydata/pandas-gbq
schema
22,458
LDU_FT/clusterpoint/python-client-api/to_etree
LDU_FT
[ "<BEGIN>\n## `_handle_response`", "Initialize the corect Response object from the response string based on the API command type.\n<END>", "<BEGIN>\n## `_parse_for_errors`", "Look for an error tag and raise APIError for fatal errors or APIWarning for nonfatal ones.\n<END>", "<BEGIN>\n## `get_content_string`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_etree API. 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 to_etree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Convert various representations of an XML structure to a etree Element Args: source -- The source object to be converted - ET.Element\ElementTree, dict or string. Keyword args: root_tag -- A optional parent tag in which to wrap the xml tree if no root in dict representation. ...
"Convert various representations of an XML structure to a etree Element\n\n Args:\n source -- The source object to be converted - ET.Element\\ElementTree, dict or string.\n\n Keyword args:\n root_tag -- A optional parent tag in which to wrap the xml tree if no root in dict representa...
120
false
clusterpoint/python-client-api
to_etree
22,459
LDU_FT/Azure/azure-cosmos-python/DeleteTrigger
LDU_FT
[ "<BEGIN>\n## `ShouldRetry`", "Returns true if should retry based on the passed-in exception.", " :param (errors.HTTPFailure instance) exception:", " :rtype:\n boolean\n<END>", "<BEGIN>\n## `ExplicitlyExcludeFromIndex`", "The default index policy on a DocumentContainer will AUTOMAT...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DeleteTrigger API. 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 DeleteTrigger API. 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...
Deletes a trigger. :param str trigger_link: The link to the trigger. :param dict options: The request options for the request. :return: The deleted Trigger. :rtype: dict
"Deletes a trigger.\n\n :param str trigger_link:\n The link to the trigger.\n :param dict options:\n The request options for the request.\n\n :return:\n The deleted Trigger.\n :rtype:\n dict"
574
false
Azure/azure-cosmos-python
DeleteTrigger
22,460
LDU_FT/alejandrobll/py-sphviewer/set_logscale
LDU_FT
[ "<BEGIN>\n## `set_logscale`", "- set_logscale(): If M is the matrix of the image, it defines the image M as log10(M+1).\n<END>", "<BEGIN>\n## `histogram`", "- histogram(axis=None, **kargs): It computes and shows the histogram of the image. This is \n usefull for choosing a proper scale to the output, o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_logscale API. 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 set_logscale API. 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...
- set_logscale(): If M is the matrix of the image, it defines the image M as log10(M+1).
"- set_logscale(): If M is the matrix of the image, it defines the image M as log10(M+1)."
55
false
alejandrobll/py-sphviewer
set_logscale
22,461
LDU_FT/tulir/mautrix-python/set_avatar
LDU_FT
[ "<BEGIN>\n## `user`", "Get a child HTTPAPI instance.", " Args:\n user: The Matrix ID of the user whose API to get.", " Returns:\n A HTTPAPI instance that always uses the given Matrix ID.\n<END>", "<BEGIN>\n## `bot_intent`", "Get the intent API for the appservice bot.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_avatar API. 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 set_avatar API. 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...
Set the avatar of the user. See also: `API reference`_ Args: url: The new avatar URL for the user. Must be a MXC URI. .. _API reference: https://matrix.org/docs/spec/client_server/r0.3.0.html#put-matrix-client-r0-profile-userid-avatar-url
"Set the avatar of the user. See also: `API reference`_\n\n Args:\n url: The new avatar URL for the user. Must be a MXC URI.\n\n .. _API reference:\n https://matrix.org/docs/spec/client_server/r0.3.0.html#put-matrix-client-r0-profile-userid-avatar-url"
60
false
tulir/mautrix-python
set_avatar
22,462
LDU_FT/softwarefactory-project/rdopkg/spec_fn
LDU_FT
[ "<BEGIN>\n## `rdopkg_runner`", "default rdopkg action runner including rdopkg action modules\n<END>", "<BEGIN>\n## `rdopkg`", "rdopkg CLI interface", " Execute rdopkg action with specified arguments and return\n shell friendly exit code.", " This is the default high level way to interact with rdo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spec_fn API. 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 spec_fn API. 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 filename for a .spec file in this directory.
"Return the filename for a .spec file in this directory."
60
false
softwarefactory-project/rdopkg
spec_fn
22,463
LDU_FT/nhfruchter/pgh-bustime/queryjoin
LDU_FT
[ "<BEGIN>\n## `get`", "Return a Bus object for a certain vehicle ID `vid` using API\n instance `api`.\n<END>", "<BEGIN>\n## `fromapi`", "Return a Bus object from an API response dict.\n<END>", "<BEGIN>\n## `update`", "Update this bus by creating a new one and transplanting dictionaries.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the queryjoin API. 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 queryjoin API. 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...
Turn a dictionary into a querystring for a URL. >>> args = dict(a=1, b=2, c="foo") >>> queryjoin(args) "a=1&b=2&c=foo"
"Turn a dictionary into a querystring for a URL.\n \n >>> args = dict(a=1, b=2, c=\"foo\")\n >>> queryjoin(args)\n \"a=1&b=2&c=foo\""
66
false
nhfruchter/pgh-bustime
queryjoin
22,464
LDU_FT/theiviaxx/python-perforce/split_ls
LDU_FT
[ "<BEGIN>\n## `split_ls`", "Decorator to split files into manageable chunks as not to exceed the windows cmd limit", " :param func: Function to call for each chunk\n :type func: :py:class:Function\n<END>", "<BEGIN>\n## `status`", "The status of the connection to perforce\n<END>", "<BEGIN>\n## `run`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_ls API. 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 split_ls API. 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...
Decorator to split files into manageable chunks as not to exceed the windows cmd limit :param func: Function to call for each chunk :type func: :py:class:Function
"Decorator to split files into manageable chunks as not to exceed the windows cmd limit\n\n :param func: Function to call for each chunk\n :type func: :py:class:Function"
74
false
theiviaxx/python-perforce
split_ls
22,465
LDU_FT/fstab50/metal/getLogger
LDU_FT
[ "<BEGIN>\n## `compile_binary`", "Prepare chkrootkit binary\n $ tar xzvf chkrootkit.tar.gz\n $ cd chkrootkit-0.52\n $ make sense\n sudo mv chkrootkit-0.52 /usr/local/chkrootkit\n sudo ln -s\n<END>", "<BEGIN>\n## `valid_checksum`", "Summary:\n Validate file checksum using md5 hash\n Arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getLogger API. 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 getLogger API. 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...
Summary: custom format logger Args: mode (str): The Logger module supprts the following log modes: - log to console / stdout. Log_mode = 'stream' - log to file - log to system logger (syslog) Returns: logger object | TYPE: logging
"Summary:\n custom format logger\n\n Args:\n mode (str): The Logger module supprts the following log modes:\n\n - log to console / stdout. Log_mode = 'stream'\n - log to file\n - log to system logger (syslog)\n\n Returns:\n logger object | TYPE: logging"
67
false
fstab50/metal
getLogger
22,466
LDU_FT/gmr/tredis/sscan
LDU_FT
[ "<BEGIN>\n## `auth`", "Request for authentication in a password-protected Redis server.\n Redis can be instructed to require a password before allowing clients\n to execute commands. This is done using the ``requirepass`` directive\n in the configuration file.", " If the password doe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sscan API. 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 sscan API. 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...
The :meth:`~tredis.RedisClient.sscan` command and the closely related commands :meth:`~tredis.RedisClient.scan`, :meth:`~tredis.RedisClient.hscan` and :meth:`~tredis.RedisClient.zscan` are used in order to incrementally iterate over a collection of elements. - :meth:`~tredis.Red...
"The :meth:`~tredis.RedisClient.sscan` command and the closely\n related commands :meth:`~tredis.RedisClient.scan`,\n :meth:`~tredis.RedisClient.hscan` and :meth:`~tredis.RedisClient.zscan`\n are used in order to incrementally iterate over a collection of\n elements.\n\n - :meth:`~tre...
523
false
gmr/tredis
sscan
22,467
LDU_FT/paltman-archive/nashvegas/get_file_list
LDU_FT
[ "<BEGIN>\n## `handle`", "Compares current database with a migrations.", " Creates a temporary database, applies all the migrations to it, and\n then dumps the schema from both current and temporary, diffs them,\n then report the diffs to the user.\n<END>", "<BEGIN>\n## `get_sql_for_new_mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_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 get_file_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...
Recursively returns a list of all files up to ``max_depth`` in a directory.
"Recursively returns a list of all files up to ``max_depth``\n in a directory."
20
false
paltman-archive/nashvegas
get_file_list
22,468
LDU_FT/nir0s/serv/generate
LDU_FT
[ "<BEGIN>\n## `generate`", "Create a service.", " `COMMAND` is the path to the executable to run\n<END>", "<BEGIN>\n## `_parse_service_env_vars`", "Return a dict based on `key=value` pair strings.\n<END>", "<BEGIN>\n## `_set_service_name_from_command`", "Set the name of a service according to the comm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Generate service files and returns a list of them. Note that env var names will be capitalized using a Jinja filter. This is template dependent. Even though a param might be named `key` and have value `value`, it will be rendered as `KEY=value`. We retrieve the names of the tem...
"Generate service files and returns a list of them.\n\n Note that env var names will be capitalized using a Jinja filter.\n This is template dependent.\n Even though a param might be named `key` and have value `value`,\n it will be rendered as `KEY=value`.\n\n We retrieve the names of...
65
false
nir0s/serv
generate
22,469
LDU_FT/moluwole/Bast/write_error
LDU_FT
[ "<BEGIN>\n## `get_config`", "Gets the config from the os.environ. This is used to create the config dict for use by the ORM\n :return: str, dict\n<END>", "<BEGIN>\n## `check_packages`", "Check if the driver for the user defined host is available. If it is not available, download it using PIP\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 extra...
Handle Exceptions from the server. Formats the HTML into readable form
"Handle Exceptions from the server. Formats the HTML into readable form"
59
false
moluwole/Bast
write_error
22,470
LDU_FT/MIT-LCP/wfdb-python/smooth_frames
LDU_FT
[ "<BEGIN>\n## `find_peaks`", "Find hard peaks and soft peaks in a signal, defined as follows:", " - Hard peak: a peak that is either /\\ or \\/\n - Soft peak: a peak that is either /-*\\ or \\-*/\n In this case we define the middle as the peak", " Parameters\n ----------\n sig : np array\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smooth_frames API. 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 smooth_frames API. 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...
Convert expanded signals with different samples/frame into a uniform numpy array. Input parameters - sigtype (default='physical'): Specifies whether to mooth the e_p_signal field ('physical'), or the e_d_signal field ('digital').
"Convert expanded signals with different samples/frame into\n a uniform numpy array.\n\n Input parameters\n - sigtype (default='physical'): Specifies whether to mooth\n the e_p_signal field ('physical'), or the e_d_signal\n field ('digital')."
538
false
MIT-LCP/wfdb-python
smooth_frames
22,471
LDU_FT/twisted/txmongo/timeout
LDU_FT
[ "<BEGIN>\n## `configure`", "Configures the protocol using the information gathered from the\n remote Mongo instance. Such information may contain the max\n BSON document size, replica set configuration, and the master\n status of the instance.\n<END>", "<BEGIN>\n## `notifyReady`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeout API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeout API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Decorator to add timeout to Deferred calls
"Decorator to add timeout to Deferred calls"
64
false
twisted/txmongo
timeout
22,472