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/dlecocq/nsq-py/pub
LDU_FT
[ "<BEGIN>\n## `pack_iterable`", "Pack an iterable of messages in the TCP protocol format\n<END>", "<BEGIN>\n## `hexify`", "Print out printable characters, but others in hex\n<END>", "<BEGIN>\n## `distribute`", "Generator for (count, object) tuples that distributes count evenly among\n the provided objec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pub API. 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 pub API. 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...
Publish the provided message to the provided topic
"Publish the provided message to the provided topic"
54
false
dlecocq/nsq-py
pub
36,373
LDU_FT/adamziel/python_translate/trans
LDU_FT
[ "<BEGIN>\n## `load_messages`", "Loads translation found in a directory.", " @type directory: string\n @param directory: The directory to search", " @type catalogue: MessageCatalogue\n @param catalogue: The message catalogue to dump", " @raises: ValueError\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trans API. 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 trans API. 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...
Translates the given message. @type id: str @param id: The message id @type parameters: dict @param parameters: A dict of parameters for the message @type domain: str @param domain: The domain for the message or null to use the default @type locale: str ...
"Translates the given message.\n\n @type id: str\n @param id: The message id\n\n @type parameters: dict\n @param parameters: A dict of parameters for the message\n\n @type domain: str\n @param domain: The domain for the message or null to use the default\n\n @type locale...
136
false
adamziel/python_translate
trans
36,374
LDU_FT/pyviz/holoviews/_norm_kwargs
LDU_FT
[ "<BEGIN>\n## `initialize_plot`", "Initializes a new plot object with the last available frame.\n<END>", "<BEGIN>\n## `_get_axis_dims`", "Returns the dimensions corresponding to each axis.", " Should return a list of dimensions or list of lists of\n dimensions, which will be formatted to label ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _norm_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _norm_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns valid color normalization kwargs to be passed to matplotlib plot function.
"Returns valid color normalization kwargs\n to be passed to matplotlib plot function."
1,961
true
pyviz/holoviews
_norm_kwargs
36,375
LDU_FT/FulcrumTechnologies/pyconfluence/get_page_id
LDU_FT
[ "<BEGIN>\n## `load_variables`", "Load variables from environment variables.\n<END>", "<BEGIN>\n## `rest`", "Main function to be called from this module.", " send a request using method 'req' and to the url. the _rest() function\n will add the base_url to this, so 'url' should be something like '/ips'....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_page_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_page_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return id of a page based on passed page name and space. Parameters: - name: name of a Confluence page. - space: space the Confluence page is in.
"Return id of a page based on passed page name and space.\n Parameters:\n - name: name of a Confluence page.\n - space: space the Confluence page is in."
19
false
FulcrumTechnologies/pyconfluence
get_page_id
36,376
LDU_FT/jaysonsantos/python-binary-memcached/stats
LDU_FT
[ "<BEGIN>\n## `str_to_bytes`", "Simply convert a string type to bytes if the value is a string\n and is an instance of six.string_types but not of six.binary_type\n in python2 struct.pack(\"<Q\") is both string_types and binary_type but\n in python3 struct.pack(\"<Q\") is binary_type but not a string_type...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stats API. 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 stats API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return server stats. :param key: Optional if you want status from a key. :type key: six.string_types :return: A dict with server stats :rtype: dict
"Return server stats.\n\n :param key: Optional if you want status from a key.\n :type key: six.string_types\n :return: A dict with server stats\n :rtype: dict"
132
false
jaysonsantos/python-binary-memcached
stats
36,377
LDU_FT/juju/python-libjuju/Claim
LDU_FT
[ "<BEGIN>\n## `get_charm_series`", "Inspects the charm directory at ``path`` and returns a default\n series from its metadata.yaml (the first item in the 'series' list).", " Returns None if no series can be determined.\n<END>", "<BEGIN>\n## `cares_about`", "Return True if this observer \"cares about\" ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Claim API. 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 Claim API. 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...
claims : typing.Sequence[~SingularClaim] Returns -> typing.Sequence[~ErrorResult]
"claims : typing.Sequence[~SingularClaim]\n Returns -> typing.Sequence[~ErrorResult]"
672
false
juju/python-libjuju
Claim
36,378
LDU_FT/dahlia/sqlalchemy-imageattach/identity_map
LDU_FT
[ "<BEGIN>\n## `readlines`", "Reads until EOF using :meth:`readline()`.", " :param sizehint: if it's present, instead of reading up to EOF,\n whole lines totalling approximately ``sizehint``\n bytes (or more to accommodate a final whole line)\n :type s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the identity_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the identity_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
(:class:`typing.Mapping`\ [:class:`str`, :class:`object`]) A dictionary of the values of primary key fields with their names. .. versionadded:: 1.0.0
"(:class:`typing.Mapping`\\ [:class:`str`, :class:`object`])\n A dictionary of the values of primary key fields with their names.\n\n .. versionadded:: 1.0.0"
145
false
dahlia/sqlalchemy-imageattach
identity_map
36,379
LDU_FT/openclimatedata/pymagicc/process_header
LDU_FT
[ "<BEGIN>\n## `get_magicc_region_to_openscm_region_mapping`", "Get the mappings from MAGICC to OpenSCM regions.", " This is not a pure inverse of the other way around. For example, we never provide\n \"GLOBAL\" as a MAGICC return value because it's unnecesarily confusing when we also\n have \"World\". F...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_header API. 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 process_header API. 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...
Reads the first part of the file to get some essential metadata # Returns return (dict): the metadata in the header
"Reads the first part of the file to get some essential metadata\n\n # Returns\n return (dict): the metadata in the header"
245
false
openclimatedata/pymagicc
process_header
36,380
LDU_FT/SALib/SALib/avail_approaches
LDU_FT
[ "<BEGIN>\n## `analyze`", "Perform a fractional factorial analysis", " Returns a dictionary with keys 'ME' (main effect) and 'IE' (interaction\n effect). The techniques bulks out the number of parameters with dummy\n parameters to the nearest 2**n. Any results involving dummy parameters\n could indi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the avail_approaches API. 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 avail_approaches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Create list of available modules. Arguments --------- pkg : module module to inspect Returns --------- method : list A list of available submodules
"Create list of available modules.\n\n Arguments\n ---------\n pkg : module\n module to inspect\n\n Returns\n ---------\n method : list\n A list of available submodules"
249
false
SALib/SALib
avail_approaches
36,381
LDU_FT/dpursehouse/pygerrit2/format
LDU_FT
[ "<BEGIN>\n## `_decode_response`", "Strip off Gerrit's magic prefix and decode a response.", " :returns:\n Decoded JSON content as a dict, or raw text if content could not be\n decoded as JSON.", " :raises:\n requests.HTTPError if the response contains an HTTP error status code.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API. 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 format API. 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 ...
Format the message parts to a string. :Returns: A string of all the message parts separated into paragraphs, with header and footer paragraphs if they were specified in the constructor.
"Format the message parts to a string.\n\n :Returns: A string of all the message parts separated into paragraphs,\n with header and footer paragraphs if they were specified in the\n constructor."
22
false
dpursehouse/pygerrit2
format
36,382
LDU_FT/jorisroovers/gitlint/assert_valid_rule_class
LDU_FT
[ "<BEGIN>\n## `find_rule_classes`", "Searches a given directory or python module for rule classes. This is done by\n adding the directory path to the python path, importing the modules and then finding\n any Rule class in those modules.", " :param extra_path: absolute directory or file path to search fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_valid_rule_class 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 assert_valid_rule_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Asserts that a given rule clazz is valid by checking a number of its properties: - Rules must extend from LineRule or CommitRule - Rule classes must have id and name string attributes. The options_spec is optional, but if set, it must be a list of gitlint Options. - Rule classes must have a valid...
"Asserts that a given rule clazz is valid by checking a number of its properties:\n - Rules must extend from LineRule or CommitRule\n - Rule classes must have id and name string attributes.\n The options_spec is optional, but if set, it must be a list of gitlint Options.\n - Rule classes must have a ...
58
false
jorisroovers/gitlint
assert_valid_rule_class
36,383
LDU_FT/apriha/lineage/_load_kgXref
LDU_FT
[ "<BEGIN>\n## `detect_build`", "Detect build of SNPs.", " Use the coordinates of common SNPs to identify the build / assembly of a genotype file\n that is being loaded.", " Notes\n -----\n rs3094315 : plus strand in 36, 37, and 38\n rs11928389 : plus strand in 36, minus strand in 37 and 38\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_kgXref API. 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 _load_kgXref API. 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...
Load UCSC kgXref table. Parameters ---------- filename : str path to kgXref file Returns ------- df : pandas.DataFrame kgXref table if loading was successful, else None
"Load UCSC kgXref table.\n\n Parameters\n ----------\n filename : str\n path to kgXref file\n\n Returns\n -------\n df : pandas.DataFrame\n kgXref table if loading was successful, else None"
183
false
apriha/lineage
_load_kgXref
36,384
LDU_FT/cimatosa/progression/__cleanup
LDU_FT
[ "<BEGIN>\n## `_get_callargs`", "Retrieve all arguments that `self.func` needs and\n return a dictionary with call arguments.\n<END>", "<BEGIN>\n## `get_terminal_size`", "Checks various methods to determine the terminal size", " Methods:\n - shutil.get_terminal_size (only Python3)\n - fcntl.i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __cleanup API. 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 __cleanup API. 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...
Wait at most twice as long as the given repetition interval for the _wrapper_function to terminate. If after that time the _wrapper_function has not terminated, send SIGTERM to and the process. Wait at most five times as long as the given repetition interval for...
"Wait at most twice as long as the given repetition interval\n for the _wrapper_function to terminate.\n \n If after that time the _wrapper_function has not terminated,\n send SIGTERM to and the process.\n \n Wait at most five times as long as the given repetition interval\n ...
48
false
cimatosa/progression
__cleanup
36,385
LDU_FT/fboender/ansible-cmdb/is_ternary
LDU_FT
[ "<BEGIN>\n## `tokenize`", "Parse a string expression into a set of tokens that can be used as a path\n into a Python datastructure.\n<END>", "<BEGIN>\n## `jsonxs`", "Get, set, delete values in a JSON structure. `expr` is a JSONpath-like\n expression pointing to the desired value. `action` determines the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ternary API. 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 is_ternary API. 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...
return true if the given keyword is a ternary keyword for this ControlLine
"return true if the given keyword is a ternary keyword\n for this ControlLine"
271
false
fboender/ansible-cmdb
is_ternary
36,386
LDU_FT/weso/CWR-DataApi/iswc
LDU_FT
[ "<BEGIN>\n## `char_code`", "Character set code field.", " :param name: name for the field\n :return: an instance of the Character set code field rules\n<END>", "<BEGIN>\n## `_iso_handler`", "Transforms an object into it's ISO format, if possible.", " If the object can't be transformed, then an er...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iswc API. 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 iswc API. 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...
ISWC field. A ISWC code written on a field follows the Pattern TNNNNNNNNNC. This being: - T: header, it is always T. - N: numeric value. - C: control digit. So, for example, an ISWC code field can contain T0345246801. :param name: name for the field :return: a parser for the ISWC fiel...
"ISWC field.\n\n A ISWC code written on a field follows the Pattern TNNNNNNNNNC.\n This being:\n - T: header, it is always T.\n - N: numeric value.\n - C: control digit.\n\n So, for example, an ISWC code field can contain T0345246801.\n\n :param name: name for the field\n :return: a parser for t...
208
false
weso/CWR-DataApi
iswc
36,387
LDU_FT/pettarin/ipapy/map_ipa_string
LDU_FT
[ "<BEGIN>\n## `can_map_ipa_string`", "Return ``True`` if the mapper can map all the IPA characters\n in the given IPA string.", " :param IPAString ipa_string: the IPAString to be parsed\n :rtype: bool\n<END>", "<BEGIN>\n## `map_ipa_string`", "Convert the given IPAString to a string\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_ipa_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_ipa_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 ex...
Convert the given IPAString to a string containing the corresponding ASCII IPA representation. :param IPAString ipa_string: the IPAString to be parsed :param bool ignore: if ``True``, ignore Unicode characters that are not IPA valid :param bool return_as_list: if ``True``, return as a l...
"Convert the given IPAString to a string\n containing the corresponding ASCII IPA representation.\n\n :param IPAString ipa_string: the IPAString to be parsed\n :param bool ignore: if ``True``, ignore Unicode characters that are not IPA valid\n :param bool return_as_list: if ``True``, return ...
205
false
pettarin/ipapy
map_ipa_string
36,388
LDU_FT/arista-eosplus/pyeapi/get
LDU_FT
[ "<BEGIN>\n## `get`", "Returns the VRF configuration as a resource dict.", " Args:\n value (string): The vrf name to retrieve from the\n running configuration.", " Returns:\n A Python dict object containing the VRF attributes as\n key/value pair...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns the specified interfaces STP configuration resource The STP interface resource contains the following * name (str): The interface name * portfast (bool): The spanning-tree portfast admin state * bpduguard (bool): The spanning-tree bpduguard admin state *...
"Returns the specified interfaces STP configuration resource\n\n The STP interface resource contains the following\n\n * name (str): The interface name\n * portfast (bool): The spanning-tree portfast admin state\n * bpduguard (bool): The spanning-tree bpduguard admin state\n ...
853
false
arista-eosplus/pyeapi
get
36,389
LDU_FT/mitsei/dlkit/use_plenary_gradebook_view
LDU_FT
[ "<BEGIN>\n## `get_osid_temporal_mdata`", "Return default mdata map for OsidTemporal\n<END>", "<BEGIN>\n## `get_osid_containable_mdata`", "Return default mdata map for OsidContainable\n<END>", "<BEGIN>\n## `get_osid_sourceable_mdata`", "Return default mdata map for OsidSourceable\n<END>", "<BEGIN>\n## `g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_plenary_gradebook_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_plenary_gradebook_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Pass through to provider GradeSystemGradebookSession.use_plenary_gradebook_view
"Pass through to provider GradeSystemGradebookSession.use_plenary_gradebook_view"
6,502
true
mitsei/dlkit
use_plenary_gradebook_view
36,390
LDU_FT/mattupstate/flask-security/create_blueprint
LDU_FT
[ "<BEGIN>\n## `add_role_to_user`", "Adds a role to a user.", " :param user: The user to manipulate\n :param role: The role to add to the user\n<END>", "<BEGIN>\n## `remove_role_from_user`", "Removes a role from a user.", " :param user: The user to manipulate\n :param role: The r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_blueprint API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_blueprint API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Creates the security extension blueprint
"Creates the security extension blueprint"
145
false
mattupstate/flask-security
create_blueprint
36,391
LDU_FT/hitchtest/hitchserve/run
LDU_FT
[ "<BEGIN>\n## `run`", "Run subcommand.", " Args:\n shell (Optional[bool]): Run command using shell (default False)\n ignore_errors (Optional[bool]): If the command has a non-zero return code, don't raise an exception (default False)\n stdin (Optional[bool]): Plug input fro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run subcommand. Args: shell (Optional[bool]): Run command using shell (default False) ignore_errors (Optional[bool]): If the command has a non-zero return code, don't raise an exception (default False) stdin (Optional[bool]): Plug input from stdin when running command (defau...
"Run subcommand.\n\n Args:\n shell (Optional[bool]): Run command using shell (default False)\n ignore_errors (Optional[bool]): If the command has a non-zero return code, don't raise an exception (default False)\n stdin (Optional[bool]): Plug input from stdin when running command ...
35
false
hitchtest/hitchserve
run
36,392
LDU_FT/Phyks/libbmc/download
LDU_FT
[ "<BEGIN>\n## `is_valid`", "Check that a given HAL id is a valid one.", " :param hal_id: The HAL id to be checked.\n :returns: Boolean indicating whether the HAL id is valid or not.", " >>> is_valid(\"hal-01258754, version 1\")\n True", " >>> is_valid(\"hal-01258754\")\n True", " >>> i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Download a PDF or DJVU document from a url, eventually using proxies. :params url: The URL to the PDF/DJVU document to fetch. :params proxies: An optional list of proxies to use. Proxies will be \ used sequentially. Proxies should be a list of proxy strings. \ Do not forget to include `...
"Download a PDF or DJVU document from a url, eventually using proxies.\n\n :params url: The URL to the PDF/DJVU document to fetch.\n :params proxies: An optional list of proxies to use. Proxies will be \\\n used sequentially. Proxies should be a list of proxy strings. \\\n Do not forget to i...
271
false
Phyks/libbmc
download
36,393
LDU_FT/Kjwon15/autotweet/expand_url
LDU_FT
[ "<BEGIN>\n## `add_document`", "Add question answer set to DB.", " :param question: A question to an answer\n :type question: :class:`str`", " :param answer: An answer to a question\n :type answer: :class:`str`\n<END>", "<BEGIN>\n## `get_best_answer`", "Get best answer to a ques...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Expand url on statuses. :param status: A tweepy status to expand urls. :type status: :class:`tweepy.models.Status` :returns: A string with expanded urls. :rtype: :class:`str`
"Expand url on statuses.\n\n :param status: A tweepy status to expand urls.\n :type status: :class:`tweepy.models.Status`\n :returns: A string with expanded urls.\n :rtype: :class:`str`"
35
false
Kjwon15/autotweet
expand_url
36,394
LDU_FT/adammck/djtables/bind_to
LDU_FT
[ "<BEGIN>\n## `get_url`", "Return an url, relative to the request associated with this\n table. Any keywords arguments provided added to the query\n string, replacing existing values.\n<END>", "<BEGIN>\n## `object_list`", "Return this table's object_list, transformed (sorted, reversed,\n f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind_to API. 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 bind_to API. 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...
Bind this column to a table, and assign it a name. This method can only be called once per instance, because a Column cannot be bound to multiple tables. (The sort order would be ambiguous.)
"Bind this column to a table, and assign it a name. This method\n can only be called once per instance, because a Column cannot be\n bound to multiple tables. (The sort order would be ambiguous.)"
20
false
adammck/djtables
bind_to
36,395
LDU_FT/kodexlab/reliure/set
LDU_FT
[ "<BEGIN>\n## `add_field`", "Add a named field to the schema.", " .. Warning:: the field name should not contains spaces and should not\n start with an underscore.", " :param name: name of the new field\n :type name: str\n :param field: type instance for the field \n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. 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 set API. 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...
Set the value of the option. One can also set the 'value' property: >>> opt = ValueOption("oname", Numeric(default=1,help="an option exemple")) >>> opt.value = 12 :param value: the new value
"Set the value of the option.\n \n One can also set the 'value' property:\n\n >>> opt = ValueOption(\"oname\", Numeric(default=1,help=\"an option exemple\"))\n >>> opt.value = 12\n \n :param value: the new value"
243
false
kodexlab/reliure
set
36,396
LDU_FT/ceph/ceph-deploy/load_raw
LDU_FT
[ "<BEGIN>\n## `ceph_is_installed`", "A helper callback to be executed after the connection is made to ensure\n that Ceph is installed.\n<END>", "<BEGIN>\n## `_get_version_output`", "Ignoring errors, call `ceph --version` and return only the version\n portion of the output. For example, output like::"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_raw API. 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 load_raw API. 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...
Read the actual file *as is* without parsing/modifiying it so that it can be written maintaining its same properties. :param args: Will be used to infer the proper configuration name :paran path: alternatively, use a path for any configuration file loading
"Read the actual file *as is* without parsing/modifiying it\n so that it can be written maintaining its same properties.\n\n :param args: Will be used to infer the proper configuration name\n :paran path: alternatively, use a path for any configuration file loading"
236
false
ceph/ceph-deploy
load_raw
36,397
LDU_FT/juju/juju-bundlelib/handle_services
LDU_FT
[ "<BEGIN>\n## `isstring`", "Report whether the given value is a byte or unicode string.\n<END>", "<BEGIN>\n## `_parse_url`", "Parse the given charm or bundle URL, provided as a string.", " Return a tuple containing the entity reference fragments: schema, user,\n series, name and revision.\n Each fra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_services API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_services API. 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...
Populate the change set with addCharm and deploy changes.
"Populate the change set with addCharm and deploy changes."
84
false
juju/juju-bundlelib
handle_services
36,398
LDU_FT/atztogo/phono3py/_set_mode_kappa_Chaput
LDU_FT
[ "<BEGIN>\n## `diagonalize_collision_matrix`", "Diagonalize collision matrices.", " Note\n ----\n collision_matricies is overwritten by eigenvectors.", " Parameters\n ----------\n collision_matricies : ndarray, optional\n Collision matrix. This ndarray has to have the following size an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_mode_kappa_Chaput 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_mode_kappa_Chaput API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Calculate mode kappa by the way in Laurent Chaput's PRL paper. This gives the different result from _set_mode_kappa and requires more memory space.
"Calculate mode kappa by the way in Laurent Chaput's PRL paper.\n\n This gives the different result from _set_mode_kappa and requires more\n memory space."
69
false
atztogo/phono3py
_set_mode_kappa_Chaput
36,399
LDU_FT/lra/mackup/_setup_parser
LDU_FT
[ "<BEGIN>\n## `getFilepaths`", "Get home and mackup filepaths for given file", " Args:\n filename (str)", " Returns:\n home_filepath, mackup_filepath (str, str)\n<END>", "<BEGIN>\n## `backup`", "Backup the application config files.", " Algorithm:\n if...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_parser API. 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 _setup_parser API. 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...
Configure the ConfigParser instance the way we want it. Args: filename (str) or None Returns: SafeConfigParser
"Configure the ConfigParser instance the way we want it.\n\n Args:\n filename (str) or None\n\n Returns:\n SafeConfigParser"
116
false
lra/mackup
_setup_parser
36,400
LDU_FT/necaris/python3-openid/parseXRDS
LDU_FT
[ "<BEGIN>\n## `parseExtensionArgs`", "Set the state of this request to be that expressed in these\n PAPE arguments", " @param args: The PAPE arguments without a namespace", " @rtype: None", " @raises ValueError: When the max_auth_age is not parseable as\n an integer\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parseXRDS API. 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 parseXRDS API. 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...
Parse the given text as an XRDS document. @return: ElementTree containing an XRDS document @raises XRDSError: When there is a parse error or the document does not contain an XRDS.
"Parse the given text as an XRDS document.\n\n @return: ElementTree containing an XRDS document\n\n @raises XRDSError: When there is a parse error or the document does\n not contain an XRDS."
164
false
necaris/python3-openid
parseXRDS
36,401
LDU_FT/alexras/pylsdj/export_to_file
LDU_FT
[ "<BEGIN>\n## `import_from_file`", "Import this instrument's settings from the given file. Will\n automatically add the instrument's synth and table to the song's\n synths and tables if needed.", " Note that this may invalidate existing instrument accessor objects.", " :param index:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Export this instrument's settings to a file. :param filename: the name of the file
"Export this instrument's settings to a file.\n\n :param filename: the name of the file"
63
false
alexras/pylsdj
export_to_file
36,402
LDU_FT/zencoder/zencoder-py/resubmit
LDU_FT
[ "<BEGIN>\n## `delete`", "Executes an HTTP DELETE request for the given URL.", " ``params`` should be a dictionary\n<END>", "<BEGIN>\n## `get`", "Executes an HTTP GET request for the given URL.", " ``data`` should be a dictionary of url parameters\n<END>", "<BEGIN>\n## `post`", "E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resubmit API. 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 resubmit API. 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...
Resubmits the given ``job_id``. https://app.zencoder.com/docs/api/jobs/resubmit
"Resubmits the given ``job_id``.\n\n https://app.zencoder.com/docs/api/jobs/resubmit"
33
false
zencoder/zencoder-py
resubmit
36,403
LDU_FT/clalancette/pycdlib/parent_link_extent
LDU_FT
[ "<BEGIN>\n## `parse`", "A method to parse an ISO9660 Path Table Record out of a string.", " Parameters:\n data - The string to parse.\n Returns:\n Nothing.\n<END>", "<BEGIN>\n## `_record`", "An internal method to generate a string representing this Path Table Record.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parent_link_extent 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 parent_link_extent 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...
Get the extent of the parent of this entry if it has one. Parameters: None. Returns: The logical block number of the parent if it exists.
"Get the extent of the parent of this entry if it has one.\n\n Parameters:\n None.\n Returns:\n The logical block number of the parent if it exists."
1,112
true
clalancette/pycdlib
parent_link_extent
36,404
LDU_FT/Salamek/cron-descriptor/get_seconds_description
LDU_FT
[ "<BEGIN>\n## `parse_cron_line`", "Parses crontab line and returns only starting time string", " Args:\n line: crontab line\n Returns:\n Time part of cron line\n<END>", "<BEGIN>\n## `parse`", "Parses the cron expression string\n Returns:\n A 7 part string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_seconds_description API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_seconds_description API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Generates a description for only the SECONDS portion of the expression Returns: The SECONDS description
"Generates a description for only the SECONDS portion of the expression\n\n Returns:\n The SECONDS description"
52
false
Salamek/cron-descriptor
get_seconds_description
36,405
LDU_FT/ska-sa/purr/_itemComboBox
LDU_FT
[ "<BEGIN>\n## `rotate`", "Rotate a coordinate around point (0,0).\n - x and y specify the coordinate.\n - degree is a number from 0 to 360.\n Returns a new coordinate.\n<END>", "<BEGIN>\n## `_compute_bounding_box`", "Given the list of coordinates (x,y), this procedure computes\n the smallest rectan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _itemComboBox API. 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 _itemComboBox API. 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 returns the QComboBox associated with item and column, or creates a new one if it hasn't been created yet. The reason we don't create a combobox immediately is because the item needs to be inserted into its QTreeWidget first.
"This returns the QComboBox associated with item and column, or creates a new one if\n it hasn't been created yet. The reason we don't create a combobox immediately is because\n the item needs to be inserted into its QTreeWidget first."
265
false
ska-sa/purr
_itemComboBox
36,406
LDU_FT/99designs/colorific/extract_colors
LDU_FT
[ "<BEGIN>\n## `color_stream_st`", "Read filenames from the input stream and detect their palette.\n<END>", "<BEGIN>\n## `color_stream_mt`", "Read filenames from the input stream and detect their palette using\n multiple processes.\n<END>", "<BEGIN>\n## `color_process`", "Receive filenames and get the co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_colors API. 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 extract_colors API. 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...
Determine what the major colors are in the given image.
"Determine what the major colors are in the given image."
12
false
99designs/colorific
extract_colors
36,407
LDU_FT/mokelly/wabbit_wappa/add_features
LDU_FT
[ "<BEGIN>\n## `make_command_line`", "Construct a command line for VW, with each named argument corresponding\n to a VW option.\n Single character keys are mapped to single-dash options,\n e.g. 'b=20' yields '-b 20',\n while multiple character keys map to double-dash options:\n 'quiet=True' yield...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Add features to this namespace. features: An iterable of features. A feature may be either 1) A VW label (not containing characters from escape_dict.keys(), unless 'escape' mode is on) 2) A tuple (label, value) where value is any float
"Add features to this namespace.\n features: An iterable of features. A feature may be either\n 1) A VW label (not containing characters from escape_dict.keys(),\n unless 'escape' mode is on)\n 2) A tuple (label, value) where value is any float"
39
false
mokelly/wabbit_wappa
add_features
36,408
LDU_FT/jaredLunde/redis_structures/_bucket_key
LDU_FT
[ "<BEGIN>\n## `_hashed_key`", "Returns 16-digit numeric hash of the redis key\n<END>", "<BEGIN>\n## `expire_at`", "Sets the expiration time of :prop:key_prefix to @_time\n @_time: absolute Unix timestamp (seconds since January 1, 1970)\n<END>", "<BEGIN>\n## `pexpire_at`", "Sets the expiration ti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bucket_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bucket_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns hash bucket key for the redis key
"Returns hash bucket key for the redis key"
216
false
jaredLunde/redis_structures
_bucket_key
36,409
LDU_FT/wheeler-microfluidics/dmf-control-board-firmware/to_frame
LDU_FT
[ "<BEGIN>\n## `swap_default`", "Given a `sympy` equation or equality, along with a list of symbol names,\n substitute the specified default value for each symbol for which a value is\n not provided through a keyword argument.", " For example, consider the following equality:", " >>> sp.pprint(H)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_frame API. 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_frame API. 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 data to a `pandas.DataFrame`. Parameters ---------- filter_order : int Filter order to use when filtering Z_device, capacitance, x_position, and dxdt. Data is filtered using a Savitzky-Golay filter with a window size that is adjusted based on the mean...
"Convert data to a `pandas.DataFrame`.\n\n Parameters\n ----------\n filter_order : int\n Filter order to use when filtering Z_device, capacitance, x_position, and dxdt.\n Data is filtered using a Savitzky-Golay filter with a window size that is adjusted\n based on ...
206
false
wheeler-microfluidics/dmf-control-board-firmware
to_frame
36,410
LDU_FT/pavlov99/jsonapi/map_view
LDU_FT
[ "<BEGIN>\n## `default`", "Encode JSON.", " :return str: A JSON encoded string\n<END>", "<BEGIN>\n## `dump_document`", "Get document for model_instance.", " redefine dump rule for field x: def dump_document_x", " :param django.db.models.Model instance: model instance\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Show information about available resources. .. versionadded:: 0.5.7 Content-Type check :return django.http.HttpResponse
"Show information about available resources.\n\n .. versionadded:: 0.5.7\n Content-Type check\n\n :return django.http.HttpResponse"
63
false
pavlov99/jsonapi
map_view
36,411
LDU_FT/mdscruggs/ga/eval_fitness
LDU_FT
[ "<BEGIN>\n## `eval_fitness`", "Convert a 1-gene chromosome into an integer and calculate its fitness\n by checking it against each required factor.", " return: fitness value\n<END>", "<BEGIN>\n## `translate_chromosome`", "Translate all the genes in a chromosome.", " chromosome: a ``...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval_fitness API. 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 eval_fitness API. 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 number of plants reached by the sprinkler. Returns a large penalty for sprinkler locations outside the map.
"Return the number of plants reached by the sprinkler.\n\n Returns a large penalty for sprinkler locations outside the map."
94
false
mdscruggs/ga
eval_fitness
36,412
LDU_FT/napalm-automation/napalm-ios/get_environment
LDU_FT
[ "<BEGIN>\n## `_create_tmp_file`", "Write temp file and for use with inline config and SCP.\n<END>", "<BEGIN>\n## `_load_candidate_wrapper`", "Transfer file to remote device for either merge or replace operations", " Returns (return_status, msg)\n<END>", "<BEGIN>\n## `load_replace_candidate`", "SC...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_environment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_environment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get environment facts. power and fan are currently not implemented cpu is using 1-minute average cpu hard-coded to cpu0 (i.e. only a single CPU)
"Get environment facts.\n\n power and fan are currently not implemented\n cpu is using 1-minute average\n cpu hard-coded to cpu0 (i.e. only a single CPU)"
84
false
napalm-automation/napalm-ios
get_environment
36,413
LDU_FT/awslabs/serverless-application-model/_make_cors_allowed_methods_for_path
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 _make_cors_allowed_methods_for_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_cors_allowed_methods_for_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Creates the value for Access-Control-Allow-Methods header for given path. All HTTP methods defined for this path will be included in the result. If the path contains "ANY" method, then *all available* HTTP methods will be returned as result. :param string path: Path to generate AllowMethods val...
"Creates the value for Access-Control-Allow-Methods header for given path. All HTTP methods defined for this\n path will be included in the result. If the path contains \"ANY\" method, then *all available* HTTP methods will\n be returned as result.\n\n :param string path: Path to generate AllowMeth...
672
false
awslabs/serverless-application-model
_make_cors_allowed_methods_for_path
36,414
LDU_FT/juju/juju-bundlelib/_validate_options
LDU_FT
[ "<BEGIN>\n## `isstring`", "Report whether the given value is a byte or unicode string.\n<END>", "<BEGIN>\n## `_parse_url`", "Parse the given charm or bundle URL, provided as a string.", " Return a tuple containing the entity reference fragments: schema, user,\n series, name and revision.\n Each fra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_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...
Lazily validate the options, ensuring that they are a dict. Use the given add_error callable to register validation error.
"Lazily validate the options, ensuring that they are a dict.\n\n Use the given add_error callable to register validation error."
84
false
juju/juju-bundlelib
_validate_options
36,415
LDU_FT/fuzeman/PyUPnP/sort
LDU_FT
[ "<BEGIN>\n## `twisted_absolute_path`", "Hack to fix twisted not accepting absolute URIs\n<END>", "<BEGIN>\n## `configure`", "Configure Logr", " @param handler: Logger message handler\n @type handler: logging.Handler or None", " @param formatter: Logger message Formatter\n @type...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort API. 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 sort API. 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...
L.sort(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1
"L.sort(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*;\n cmp(x, y) -> -1, 0, 1"
29
false
fuzeman/PyUPnP
sort
36,416
LDU_FT/sam-cox/pytides/at
LDU_FT
[ "<BEGIN>\n## `_prepare`", "Return constituent speed and equilibrium argument at a given time, and constituent node factors at given times.\n\t\tArguments:\n\t\tconstituents -- list of constituents to prepare\n\t\tt0 -- time at which to evaluate speed and equilibrium argument for each constituent\n\t\tt -- list of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the at API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the at API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Return the modelled tidal height at given times. Arguments: t -- array of times at which to evaluate the tidal height
"Return the modelled tidal height at given times.\n\t\tArguments:\n\t\tt -- array of times at which to evaluate the tidal height"
23
false
sam-cox/pytides
at
36,417
LDU_FT/honzajavorek/redis-collections/copy
LDU_FT
[ "<BEGIN>\n## `getmany`", "Return a list of values corresponding to the keys in the iterable of\n *keys*.\n If a key is not present in the collection, its corresponding value will\n be :obj:`None`.", " .. note::\n This method is not implemented by standard Python dictionary...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. 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 copy API. 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...
Creates another collection with the same items and maxsize with the given *key*.
"Creates another collection with the same items and maxsize with\n the given *key*."
147
false
honzajavorek/redis-collections
copy
36,418
LDU_FT/pandas-dev/pandas/_use_inf_as_na
LDU_FT
[ "<BEGIN>\n## `to_offset`", "Return DateOffset object from string or tuple representation\n or datetime.timedelta object", " Parameters\n ----------\n freq : str, tuple, datetime.timedelta, DateOffset or None", " Returns\n -------\n DateOffset\n None if freq is None.", " Raises...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _use_inf_as_na API. 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 _use_inf_as_na API. 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...
Option change callback for na/inf behaviour Choose which replacement for numpy.isnan / -numpy.isfinite is used. Parameters ---------- flag: bool True means treat None, NaN, INF, -INF as null (old way), False means None and NaN are null, but INF, -INF are not null (new way). ...
"Option change callback for na/inf behaviour\n Choose which replacement for numpy.isnan / -numpy.isfinite is used.\n\n Parameters\n ----------\n flag: bool\n True means treat None, NaN, INF, -INF as null (old way),\n False means None and NaN are null, but INF, -INF are not null\n (new w...
8,110
true
pandas-dev/pandas
_use_inf_as_na
36,419
LDU_FT/miso-belica/jusText/get_stoplist
LDU_FT
[ "<BEGIN>\n## `output_default`", "Outputs the paragraphs as:\n <tag> text of the first paragraph\n <tag> text of the second paragraph\n ...\n where <tag> is <p>, <h> or <b> which indicates\n standard paragraph, heading or boilerplate respecitvely.\n<END>", "<BEGIN>\n## `output_detailed`", "Same ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stoplist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stoplist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns an built-in stop-list for the language as a set of words.
"Returns an built-in stop-list for the language as a set of words."
18
false
miso-belica/jusText
get_stoplist
36,420
LDU_FT/CenterForOpenScience/sharepa/merge_dataframes
LDU_FT
[ "<BEGIN>\n## `bucket_to_dataframe`", "A function that turns elasticsearch aggregation buckets into dataframes", " :param name: The name of the bucket (will be a column in the dataframe)\n :type name: str\n :param bucket: a bucket from elasticsearch results\n :type bucket: list[dict]\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_dataframes API. 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 merge_dataframes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
A helper function for merging two dataframes that have the same indices, duplicate columns are removed :param dfs: a list of dataframes to be merged (note: they must have the same indices) :type dfs: list[pandas.DataFrame] :returns: pandas.DataFrame -- a merged dataframe
"A helper function for merging two dataframes that have the same indices, duplicate columns are removed\n\n :param dfs: a list of dataframes to be merged (note: they must have the same indices)\n :type dfs: list[pandas.DataFrame]\n :returns: pandas.DataFrame -- a merged dataframe"
19
false
CenterForOpenScience/sharepa
merge_dataframes
36,421
LDU_FT/jamieleshaw/lurklib/stepback
LDU_FT
[ "<BEGIN>\n## `find`", "Finds needle in haystack.\n If needle is found return True, if not return False.\n Required arguments:\n * haystack - Text to search in.\n * needle - Text to search for.\n<END>", "<BEGIN>\n## `send`", "Send a raw string with the CR-LF appended to it.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stepback API. 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 stepback API. 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...
Stepbacks/reverses the buffer. Optional arguments: * append=False - If True, appends the data onto the buffer; else, it just steps the index back.
"Stepbacks/reverses the buffer.\n Optional arguments:\n * append=False - If True, appends the data onto the buffer;\n else, it just steps the index back."
112
false
jamieleshaw/lurklib
stepback
36,422
LDU_FT/pudo/normality/ascii_text
LDU_FT
[ "<BEGIN>\n## `_safe_name`", "Convert the file name to ASCII and normalize the string.\n<END>", "<BEGIN>\n## `safe_filename`", "Create a secure filename for plain file system storage.\n<END>", "<BEGIN>\n## `stringify`", "Brute-force convert a given object to a string.", " This will attempt an increasi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ascii_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ascii_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Transliterate the given text and make sure it ends up as ASCII.
"Transliterate the given text and make sure it ends up as ASCII."
33
false
pudo/normality
ascii_text
36,423
LDU_FT/budacom/trading-bots/abort
LDU_FT
[ "<BEGIN>\n## `fetch_deposits`", "Fetch latest deposits, must provide a limit.\n<END>", "<BEGIN>\n## `fetch_deposits_since`", "Fetch all deposits since the given timestamp.\n<END>", "<BEGIN>\n## `fetch_withdrawals`", "Fetch latest withdrawals, must provide a limit.\n<END>", "<BEGIN>\n## `fetch_withdrawal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the abort API. 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 abort API. 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...
Run the abort command of a specified BOT by label e.g. 'MyBot
"Run the abort command of a specified BOT by label e.g. 'MyBot"
62
false
budacom/trading-bots
abort
36,424
LDU_FT/amoffat/sh/is_alive
LDU_FT
[ "<BEGIN>\n## `encode_to_py3bytes_or_py2str`", "takes anything and attempts to return a py2 string or py3 bytes. this\n is typically used when creating command + arguments to be executed via\n os.exec*\n<END>", "<BEGIN>\n## `get_exc_from_name`", "takes an exception name, like:", " ErrorReturnCo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_alive API. 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 is_alive API. 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...
polls if our child process has completed, without blocking. this method has side-effects, such as setting our exit_code, if we happen to see our child exit while this is running
"polls if our child process has completed, without blocking. this\n method has side-effects, such as setting our exit_code, if we happen to\n see our child exit while this is running"
83
false
amoffat/sh
is_alive
36,425
LDU_FT/Faylixe/pygame_vkeyboard/add_key
LDU_FT
[ "<BEGIN>\n## `synchronizeLayout`", "Synchronizes given layouts by normalizing height by using\n max height of given layouts to avoid transistion dirty effects.", " :param primary: Primary layout used.\n :param secondary: Secondary layout used.\n :param surface_size: Target surface size on which layo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Adds the given key to this row. :param key: Key to be added to this row. :param first: BOolean flag that indicates if key is added at the beginning or at the end.
"Adds the given key to this row.\n\n :param key: Key to be added to this row.\n :param first: BOolean flag that indicates if key is added at the beginning or at the end."
54
false
Faylixe/pygame_vkeyboard
add_key
36,426
LDU_FT/nicodv/kmodes/encode_features
LDU_FT
[ "<BEGIN>\n## `init_huang`", "Initialize centroids according to method by Huang [1997].\n<END>", "<BEGIN>\n## `init_cao`", "Initialize centroids according to method by Cao et al. [2009].", " Note: O(N * attr * n_clusters**2), so watch out with large n_clusters\n<END>", "<BEGIN>\n## `move_point_cat`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Converts categorical values in each column of X to integers in the range [0, n_unique_values_in_column - 1], if X is not already of integer type. If mapping is not provided, it is calculated based on the values in X. Unknown values during prediction get a value of -1. np.NaNs are ignored during encodi...
"Converts categorical values in each column of X to integers in the range\n [0, n_unique_values_in_column - 1], if X is not already of integer type.\n\n If mapping is not provided, it is calculated based on the values in X.\n\n Unknown values during prediction get a value of -1. np.NaNs are ignored\n during...
52
false
nicodv/kmodes
encode_features
36,427
LDU_FT/sacherjj/array_devices/setting
LDU_FT
[ "<BEGIN>\n## `setting`", "Load setting (Amps, Watts, or Ohms depending on program mode)\n<END>", "<BEGIN>\n## `partial_steps_data`", "Iterates 5 steps from start position and\n provides tuple for packing into buffer.", " returns (0, 0) if stpe doesn't exist.", " :param start: Position...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setting API. 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 setting API. 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...
Load setting (Amps, Watts, or Ohms depending on program mode)
"Load setting (Amps, Watts, or Ohms depending on program mode)"
44
false
sacherjj/array_devices
setting
36,428
LDU_FT/piglei/uwsgi-sloth/force_text
LDU_FT
[ "<BEGIN>\n## `merge_with`", "Merge this ``ValuesAggregation`` with another one\n<END>", "<BEGIN>\n## `force_bytes`", "A function turns \"s\" into bytes object, similar to django.utils.encoding.force_bytes\n<END>", "<BEGIN>\n## `force_text`", "A function turns \"s\" into text type, similar to django.utils....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the force_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the force_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
A function turns "s" into text type, similar to django.utils.encoding.force_text
"A function turns \"s\" into text type, similar to django.utils.encoding.force_text"
25
false
piglei/uwsgi-sloth
force_text
36,429
LDU_FT/PythonCharmers/python-future/transform
LDU_FT
[ "<BEGIN>\n## `time2isoz`", "Return a string representing time in seconds since epoch, t.", " If the function is called without an argument, it will use the current\n time.", " The format of the returned string is like \"YYYY-MM-DD hh:mm:ssZ\",\n representing Universal Time (UTC, aka GMT). An exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. 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 transform API. 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...
u""" a,b,c,d,e,f,*g,h,i = range(100) changes to _3to2list = list(range(100)) a,b,c,d,e,f,g,h,i, = _3to2list[:6] + [_3to2list[6:-2]] + _3to2list[-2:] and for a,b,*c,d,e in iter_of_iters: do_stuff changes to for _3to2iter in iter_of_iters: _3to2list = list(_3t...
"u\"\"\"\n a,b,c,d,e,f,*g,h,i = range(100) changes to\n _3to2list = list(range(100))\n a,b,c,d,e,f,g,h,i, = _3to2list[:6] + [_3to2list[6:-2]] + _3to2list[-2:]\n\n and\n\n for a,b,*c,d,e in iter_of_iters: do_stuff changes to\n for _3to2iter in iter_of_iters:\n _3to2li...
1,185
true
PythonCharmers/python-future
transform
36,430
LDU_FT/webrecorder/pywb/raise_on_self_redirect
LDU_FT
[ "<BEGIN>\n## `read_last_line`", "Read last line from a seekable file. Start reading\n from buff before end of file, and double backwards seek\n until line break is found. If reached beginning of file\n (no lines), just return whole file\n<END>", "<BEGIN>\n## `load`", "Load a file-like reader from the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raise_on_self_redirect 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 raise_on_self_redirect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Check if response is a 3xx redirect to the same url If so, reject this capture to avoid causing redirect loop
"Check if response is a 3xx redirect to the same url\n If so, reject this capture to avoid causing redirect loop"
227
false
webrecorder/pywb
raise_on_self_redirect
36,431
LDU_FT/pescadores/pescador/additive_noise
LDU_FT
[ "<BEGIN>\n## `setup_data`", "Load and shape data for training with Keras + Pescador.", " Returns\n -------\n input_shape : tuple, len=3\n Shape of each sample; adapts to channel configuration of Keras.", " X_train, y_train : np.ndarrays\n Images and labels for training.", " X_te...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the additive_noise API. 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 additive_noise API. 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...
Add noise to a data stream. Parameters ---------- stream : iterable A stream that yields data objects. key : string, default='X' Name of the field to add noise. scale : float, default=0.1 Scale factor for gaussian noise. Yields ------ data : dict Updat...
"Add noise to a data stream.\n\n Parameters\n ----------\n stream : iterable\n A stream that yields data objects.\n\n key : string, default='X'\n Name of the field to add noise.\n\n scale : float, default=0.1\n Scale factor for gaussian noise.\n\n Yields\n ------\n data : di...
103
false
pescadores/pescador
additive_noise
36,432
LDU_FT/dancsalo/TensorBase/compute_samples
LDU_FT
[ "<BEGIN>\n## `compute_samples`", "Sample from a Normal distribution with inferred mu and std\n<END>", "<BEGIN>\n## `neg_log_likelihood`", "Calculate Log Likelihood with particular mean and std\n x must be 2D. [batch_size * eqsamples* iwsamples, num_latent]\n<END>", "<BEGIN>\n## `compute_samples`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_samples API. 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 compute_samples API. 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...
Sample from a Normal distribution with inferred mu and std
"Sample from a Normal distribution with inferred mu and std"
94
false
dancsalo/TensorBase
compute_samples
36,433
LDU_FT/secure-systems-lab/securesystemslib/import_ecdsa_publickey_from_file
LDU_FT
[ "<BEGIN>\n## `get_password`", "<Purpose>\n Return the password entered by the user. If 'confirm' is True, the user is\n asked to enter the previously entered password once again. If they match,\n the password is returned to the caller.", " <Arguments>\n prompt:\n The text of the password pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_ecdsa_publickey_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_ecdsa_publickey_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
<Purpose> Load the ECDSA public key object (conformant to 'securesystemslib.formats.KEY_SCHEMA') stored in 'filepath'. Return 'filepath' in securesystemslib.formats.ECDSAKEY_SCHEMA format. If the key object in 'filepath' contains a private key, it is discarded. <Arguments> filepath: <file...
"<Purpose>\n Load the ECDSA public key object (conformant to\n 'securesystemslib.formats.KEY_SCHEMA') stored in 'filepath'. Return\n 'filepath' in securesystemslib.formats.ECDSAKEY_SCHEMA format.\n\n If the key object in 'filepath' contains a private key, it is discarded.\n\n <Arguments>\n filepath:\n ...
663
false
secure-systems-lab/securesystemslib
import_ecdsa_publickey_from_file
36,434
LDU_FT/citronneur/rdpy/expectWithHeader
LDU_FT
[ "<BEGIN>\n## `update`", "Update view\n @param render: IRender\n @param force: force update\n<END>", "<BEGIN>\n## `expectWithHeader`", "2nd level of waiting event\n read expectedHeaderLen that contain body size\n @param expectedHeaderLen: contains the number of bytes, which body len...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expectWithHeader API. 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 expectWithHeader API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
2nd level of waiting event read expectedHeaderLen that contain body size @param expectedHeaderLen: contains the number of bytes, which body length needs to be encoded @param callbackBody: next state use when expected date from expectedHeaderLen are received
"2nd level of waiting event\n read expectedHeaderLen that contain body size\n @param expectedHeaderLen: contains the number of bytes, which body length needs to be encoded\n @param callbackBody: next state use when expected date from expectedHeaderLen\n are received"
29
false
citronneur/rdpy
expectWithHeader
36,435
LDU_FT/sacrud/sacrud/update
LDU_FT
[ "<BEGIN>\n## `list_of_lists_to_dict`", "Convert list of key,value lists to dict", " [['id', 1], ['id', 2], ['id', 3], ['foo': 4]]\n {'id': [1, 2, 3], 'foo': [4]}\n<END>", "<BEGIN>\n## `get_m2m_value`", "Set m2m value for model obj from request params like \"group[]\"", " :Parameters:", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
Updates the object by primary_key: .. code-block:: python DBSession.sacrud(Users).update(1, {'name': 'Petya'}) DBSession.sacrud(Users).update('1', {'name': 'Petya'}) DBSession.sacrud(User2Groups).update({'user_id': 4, 'group_id': 2}, ...
"Updates the object by primary_key:\n\n .. code-block:: python\n\n DBSession.sacrud(Users).update(1, {'name': 'Petya'})\n DBSession.sacrud(Users).update('1', {'name': 'Petya'})\n DBSession.sacrud(User2Groups).update({'user_id': 4, 'group_id': 2},\n ...
63
false
sacrud/sacrud
update
36,436
LDU_FT/sammchardy/python-binance/order_limit_sell
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 order_limit_sell API. 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 order_limit_sell API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Send in a new limit sell order :param symbol: required :type symbol: str :param quantity: required :type quantity: decimal :param price: required :type price: str :param timeInForce: default Good till cancelled :type timeInForce: str :param newCli...
"Send in a new limit sell order\n\n :param symbol: required\n :type symbol: str\n :param quantity: required\n :type quantity: decimal\n :param price: required\n :type price: str\n :param timeInForce: default Good till cancelled\n :type timeInForce: str\n :p...
233
false
sammchardy/python-binance
order_limit_sell
36,437
LDU_FT/ChrisBeaumont/smother/parse_intervals
LDU_FT
[ "<BEGIN>\n## `parse_intervals`", "Parse a diff into an iterator of Intervals.\n<END>", "<BEGIN>\n## `_filldown`", "Copy current_context into `lines` down up until lineno\n<END>", "<BEGIN>\n## `_add_section`", "Register the current node as a new context block\n<END>", "<BEGIN>\n## `_module_name`", "Try...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_intervals API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_intervals API. 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...
Parse path strings into a collection of Intervals. `path` is a string describing a region in a file. It's format is dotted.module.name:[line | start-stop | context] `dotted.module.name` is a python module `line` is a single line number in the module (1-offset) `start-stop` is a right-open int...
"Parse path strings into a collection of Intervals.\n\n `path` is a string describing a region in a file. It's format is\n\n dotted.module.name:[line | start-stop | context]\n\n `dotted.module.name` is a python module\n `line` is a single line number in the module (1-offset)\n `start-stop` is a right...
47
false
ChrisBeaumont/smother
parse_intervals
36,438
LDU_FT/booktype/python-ooxml/serialize_math
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 serialize_math API. 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 serialize_math API. 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...
Serialize math element. Math objects are not supported at the moment. This is wht we only show error message.
"Serialize math element.\n\n Math objects are not supported at the moment. This is wht we only show error message."
117
false
booktype/python-ooxml
serialize_math
36,439
LDU_FT/dwavesystems/dwave-cloud-client/strip_tail
LDU_FT
[ "<BEGIN>\n## `ls`", "List configuration files detected (and/or examined paths).\n<END>", "<BEGIN>\n## `create`", "Create and/or update cloud client configuration file.\n<END>", "<BEGIN>\n## `_ping`", "Helper method for the ping command that uses `output()` for info output\n and raises `CLIError()` on h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip_tail API. 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 strip_tail API. 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...
Strip `values` from the end of `sequence`.
"Strip `values` from the end of `sequence`."
339
false
dwavesystems/dwave-cloud-client
strip_tail
36,440
LDU_FT/mozilla/configman/dump_conf
LDU_FT
[ "<BEGIN>\n## `str_dict_keys`", "return a modified dict where all the keys that are anything but str get\n converted to str.\n E.g.", " >>> result = str_dict_keys({u'name': u'Peter', u'age': 99, 1: 2})\n >>> # can't compare whole dicts in doctests\n >>> result['name']\n u'Peter'\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_conf API. 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 dump_conf API. 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...
write a config file to the pathname specified in the parameter. The file extention determines the type of file written and must match a registered type. parameters: config_pathname - the full path and filename of the target config file.
"write a config file to the pathname specified in the parameter. The\n file extention determines the type of file written and must match a\n registered type.\n\n parameters:\n config_pathname - the full path and filename of the target config\n file."
136
false
mozilla/configman
dump_conf
36,441
LDU_FT/partofthething/ace/_advance_window
LDU_FT
[ "<BEGIN>\n## `run_friedman82_super`", "Run Friedman's test of fixed-span smoothers from Figure 2b.\n<END>", "<BEGIN>\n## `validate_supersmoother_bass`", "Validate the supersmoother with extra bass.\n<END>", "<BEGIN>\n## `unsort_vector`", "Upermutate 1-D data that is sorted by indices_of_increasing.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _advance_window API. 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 _advance_window API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Update values in current window and the current window means and variances.
"Update values in current window and the current window means and variances."
115
false
partofthething/ace
_advance_window
36,442
LDU_FT/simoninireland/epyc/runExperiment
LDU_FT
[ "<BEGIN>\n## `_parametersAsIndex`", "Private method to turn a parameter dict into a string suitable for\n keying a dict.", " ps: the parameters as a hash\n returns: a string key\n<END>", "<BEGIN>\n## `addResult`", "Add a result. This should be :term:`results dict` as returned from\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the runExperiment API. 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 runExperiment API. 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...
Run the experiment across the parameter space in parallel using all the engines in the cluster. This method returns immediately. The experiments are run asynchronously, with the points in the parameter space being explored randomly so that intermediate retrievals of results are more rep...
"Run the experiment across the parameter space in parallel using\n all the engines in the cluster. This method returns immediately.\n\n The experiments are run asynchronously, with the points in the parameter\n space being explored randomly so that intermediate retrievals of results\n are mo...
116
false
simoninireland/epyc
runExperiment
36,443
LDU_FT/orb-framework/orb/setValue
LDU_FT
[ "<BEGIN>\n## `virtual`", "Allows for defining virtual columns and collectors on models -- these\n are objects that are defined in code and not directly in a data store.", " :param cls:\n :param options:\n :return:\n<END>", "<BEGIN>\n## `dict_factory`", "Converts the cursor information from a SQL...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setValue API. 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 setValue API. 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...
Sets the value that will be used for this query instance. :param value <variant>
"Sets the value that will be used for this query instance.\n \n :param value <variant>"
608
false
orb-framework/orb
setValue
36,444
LDU_FT/phareous/insteonlocal/beep
LDU_FT
[ "<BEGIN>\n## `scene_command`", "Wrapper to send posted scene command and get response\n<END>", "<BEGIN>\n## `brightness_to_hex`", "Convert numeric brightness percentage into hex for insteon\n<END>", "<BEGIN>\n## `direct_command`", "Wrapper to send posted direct command and get response. Level is 0-100.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the beep API. 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 beep API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Make dimmer beep. Not all devices support this
"Make dimmer beep. Not all devices support this"
26
false
phareous/insteonlocal
beep
36,445
LDU_FT/alpacahq/pylivetrader/_calculate_order_value_amount
LDU_FT
[ "<BEGIN>\n## `_deprecated_getitem_method`", "Create a deprecated ``__getitem__`` method that tells users to use\n getattr instead.", " Parameters\n ----------\n name : str\n The name of the object in the warning message.\n attrs : iterable[str]\n The set of allowed attributes.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate_order_value_amount API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate_order_value_amount API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Calculates how many shares/contracts to order based on the type of asset being ordered.
"Calculates how many shares/contracts to order based on the type of\n asset being ordered."
81
false
alpacahq/pylivetrader
_calculate_order_value_amount
36,446
LDU_FT/gijzelaerr/python-snap7/pick_event
LDU_FT
[ "<BEGIN>\n## `check_error`", "check if the error code is set. If so, a Python log message is generated\n and an error is raised.\n<END>", "<BEGIN>\n## `error_text`", "Returns a textual explanation of a given error number", " :param error: an error integer\n :param context: server, client or partner...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pick_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pick_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 extrac...
Extracts an event (if available) from the Events queue.
"Extracts an event (if available) from the Events queue."
150
false
gijzelaerr/python-snap7
pick_event
36,447
LDU_FT/LogicalDash/LiSE/_update_keycache
LDU_FT
[ "<BEGIN>\n## `on_touch_down`", "If hit, record my starting position, that I may return to it in\n ``on_touch_up`` after creating a real :class:`board.Spot` or\n :class:`board.Pawn` instance.\n<END>", "<BEGIN>\n## `on_touch_up`", "Return to ``pos_start``, but first, save my current ``pos`` into\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_keycache API. 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_keycache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Add or remove a key in the set describing the keys that exist.
"Add or remove a key in the set describing the keys that exist."
660
false
LogicalDash/LiSE
_update_keycache
36,448
LDU_FT/emichael/PyREM/wait
LDU_FT
[ "<BEGIN>\n## `synchronized`", "Function decorator to make function synchronized on ``self._lock``.", " If the first argument to the function (hopefully self) does not have a _lock\n attribute, then this decorator does nothing.\n<END>", "<BEGIN>\n## `cleanup`", "Stop all started tasks on system exit.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait API. 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 wait API. 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...
Wait on a task to finish and stop it when it has finished. Raises: RuntimeError: If the task hasn't been started or has already been stopped. Returns: The ``return_values`` of the task.
"Wait on a task to finish and stop it when it has finished.\n\n Raises:\n RuntimeError: If the task hasn't been started or has already been\n stopped.\n\n Returns:\n The ``return_values`` of the task."
41
false
emichael/PyREM
wait
36,449
LDU_FT/kennethreitz/legit/get_branches
LDU_FT
[ "<BEGIN>\n## `unstash_index`", "Returns an unstash index if one is available.\n<END>", "<BEGIN>\n## `unstash_it`", "Unstashes changes from current branch for branch sync.\n Requires prior code setting self.stash_index.\n<END>", "<BEGIN>\n## `smart_pull`", "'git log --merges origin/master..master'\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_branches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_branches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns a list of local and remote branches.
"Returns a list of local and remote branches."
25
false
kennethreitz/legit
get_branches
36,450
LDU_FT/edx/edx-val/get_videos_for_ids
LDU_FT
[ "<BEGIN>\n## `generate_sjson_from_srt`", "Generate transcripts from sjson to SubRip (*.srt).", " Arguments:\n srt_subs(SubRip): \"SRT\" subs object", " Returns:\n Subs converted to \"SJSON\" format.\n<END>", "<BEGIN>\n## `generate_srt_from_sjson`", "Generate transcripts...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_videos_for_ids 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_videos_for_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns an iterator of videos that match the given list of ids. Args: edx_video_ids (list) sort_field (VideoSortField) sort_dir (SortDirection) Returns: A generator expression that contains the videos found, sorted by the given field and direction, with ties broken by e...
"Returns an iterator of videos that match the given list of ids.\n\n Args:\n edx_video_ids (list)\n sort_field (VideoSortField)\n sort_dir (SortDirection)\n\n Returns:\n A generator expression that contains the videos found, sorted by the\n given field and direction, with ties b...
197
false
edx/edx-val
get_videos_for_ids
36,451
LDU_FT/jsvine/spectra/blend
LDU_FT
[ "<BEGIN>\n## `cmyk`", "Create a spectra.Color object in the CMYK color space.", " :param float c: c coordinate.\n :param float m: m coordinate.\n :param float y: y coordinate.\n :param float k: k coordinate.", " :rtype: Color\n :returns: A spectra.Color object in the CMYK color space.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blend API. 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 blend API. 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...
Blend this color with another color in the same color space. By default, blends the colors half-and-half (ratio: 0.5). :param Color other: The color to blend. :param float ratio: How much to blend (0 -> 1). :rtype: Color :returns: A new spectra.Color
"Blend this color with another color in the same color space.\n\n By default, blends the colors half-and-half (ratio: 0.5).\n\n :param Color other: The color to blend.\n :param float ratio: How much to blend (0 -> 1).\n\n :rtype: Color\n :returns: A new spectra.Color"
265
false
jsvine/spectra
blend
36,452
LDU_FT/staggerpkg/stagger/check_tag_data
LDU_FT
[ "<BEGIN>\n## `_in_version`", "Returns true if this frame is in any of the specified versions of ID3.\n<END>", "<BEGIN>\n## `check_tag_data`", "Raise a ValueError if DATA doesn't seem to be a well-formed ID3 tag.\n<END>", "<BEGIN>\n## `get_raw_tag_data`", "Return the ID3 tag in FILENAME as a raw byte strin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_tag_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_tag_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Raise a ValueError if DATA doesn't seem to be a well-formed ID3 tag.
"Raise a ValueError if DATA doesn't seem to be a well-formed ID3 tag."
47
false
staggerpkg/stagger
check_tag_data
36,453
LDU_FT/portantier/habu/cmd_web_tech
LDU_FT
[ "<BEGIN>\n## `cmd_arp_poison`", "Send ARP 'is-at' packets to each victim, poisoning their\n ARP tables for send the traffic to your system.", " Note: If you want a full working Man In The Middle attack, you need\n to enable the packet forwarding on your operating system to act like a\n router. You c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_web_tech API. 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 cmd_web_tech API. 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...
Use Wappalyzer apps.json database to identify technologies used on a web application. Reference: https://github.com/AliasIO/Wappalyzer Note: This tool only sends one request. So, it's stealth and not suspicious. \b $ habu.web.tech https://woocomerce.com { "Nginx": { "categorie...
"Use Wappalyzer apps.json database to identify technologies used on a web application.\n\n Reference: https://github.com/AliasIO/Wappalyzer\n\n Note: This tool only sends one request. So, it's stealth and not suspicious.\n\n \\b\n $ habu.web.tech https://woocomerce.com\n {\n \"Nginx\": {\n ...
304
false
portantier/habu
cmd_web_tech
36,454
LDU_FT/cloudflare/sqlalchemy-clickhouse/fetchall
LDU_FT
[ "<BEGIN>\n## `_reset_state`", "Reset state about the previous query in preparation for running another query\n<END>", "<BEGIN>\n## `description`", "This read-only attribute is a sequence of 7-item sequences.", " Each of these sequences contains information describing one result column:", " -...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetchall API. 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 fetchall API. 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...
Fetch all (remaining) rows of a query result, returning them as a sequence of sequences (e.g. a list of tuples).
"Fetch all (remaining) rows of a query result, returning them as a sequence of sequences\n (e.g. a list of tuples)."
22
false
cloudflare/sqlalchemy-clickhouse
fetchall
36,455
LDU_FT/MAVENSDC/PyTplot/del_data
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 del_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the del_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
This function will delete tplot variables that are already stored in memory. Parameters: name : str Name of the tplot variable to be deleted. If no name is provided, then all tplot variables will be deleted. Returns: None Examples: ...
"This function will delete tplot variables that are already stored in memory. \n \n 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. \n \n Returns:\n None\n \n Exam...
155
false
MAVENSDC/PyTplot
del_data
36,456
LDU_FT/openfisca/openfisca-survey-manager/reset
LDU_FT
[ "<BEGIN>\n## `read_dbf`", "Read a dbf file as a pandas.DataFrame, optionally selecting the index\n variable and which columns are to be loaded.", " __author__ = \"Dani Arribas-Bel <darribas@asu.edu> \"\n ...", " Arguments\n ---------\n dbf_path : str\n Path to the DBF fi...
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 the calibration to it initial state
"Reset the calibration to it initial state"
80
false
openfisca/openfisca-survey-manager
reset
36,457
LDU_FT/tjguk/networkzero/_bind_with_timeout
LDU_FT
[ "<BEGIN>\n## `get_command`", "Attempt to return a unicode object from the command socket", " If no message is available without blocking (as opposed to a blank \n message), return None\n<END>", "<BEGIN>\n## `send_response`", "Send a unicode object as reply to the most recently-issued command\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bind_with_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bind_with_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. Th...
Attempt to bind a socket a number of times with a short interval in between Especially on Linux, crashing out of a networkzero process can leave the sockets lingering and unable to re-bind on startup. We give it a few goes here to see if we can bind within a couple of seconds.
"Attempt to bind a socket a number of times with a short interval in between\n \n Especially on Linux, crashing out of a networkzero process can leave the sockets\n lingering and unable to re-bind on startup. We give it a few goes here to see if\n we can bind within a couple of seconds."
76
false
tjguk/networkzero
_bind_with_timeout
36,458
LDU_FT/adamcharnock/django-hordak/transfer_to
LDU_FT
[ "<BEGIN>\n## `ratio_split`", "Split in_value according to the ratios specified in `ratios`", " This is special in that it ensures the returned values always sum to\n in_value (i.e. we avoid losses or gains due to rounding errors). As a\n result, this method returns a list of `Decimal` values with lengt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transfer_to API. 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 transfer_to API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Create a transaction which transfers amount to to_account This is a shortcut utility method which simplifies the process of transferring between accounts. This method attempts to perform the transaction in an intuitive manner. For example: * Transferring income -> income wil...
"Create a transaction which transfers amount to to_account\n\n This is a shortcut utility method which simplifies the process of\n transferring between accounts.\n\n This method attempts to perform the transaction in an intuitive manner.\n For example:\n\n * Transferring income -> i...
84
false
adamcharnock/django-hordak
transfer_to
36,459
LDU_FT/developersociety/django-glitter/get_version
LDU_FT
[ "<BEGIN>\n## `get_templates`", "Return a list of templates usable by a model.\n<END>", "<BEGIN>\n## `attach`", "Registers the given layout(s) classes\n admin site:", " @pages.register(Page)\n class Default(PageLayout):\n pass\n<END>", "<BEGIN>\n## `get_formset`", "Default user to the cur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. 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_version API. 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 the version object for the related object.
"Get the version object for the related object."
80
false
developersociety/django-glitter
get_version
36,460
LDU_FT/FlorianRhiem/pyGLFW/set_window_close_callback
LDU_FT
[ "<BEGIN>\n## `_find_library_candidates`", "Finds and returns filenames which might be the library you are looking for.\n<END>", "<BEGIN>\n## `_load_library`", "Finds, loads and returns the most recent version of the library.\n<END>", "<BEGIN>\n## `_get_library_search_paths`", "Returns a list of library se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_window_close_callback 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 set_window_close_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Sets the close callback for the specified window. Wrapper for: GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* window, GLFWwindowclosefun cbfun);
"Sets the close callback for the specified window.\n\n Wrapper for:\n GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* window, GLFWwindowclosefun cbfun);"
105
false
FlorianRhiem/pyGLFW
set_window_close_callback
36,461
LDU_FT/jmoiron/humanize/date_and_delta
LDU_FT
[ "<BEGIN>\n## `abs_timedelta`", "Returns an \"absolute\" value for a timedelta, always representing a\n time distance.\n<END>", "<BEGIN>\n## `date_and_delta`", "Turn a value into a date and a timedelta which represents how long ago\n it was. If that's not possible, return (None, value).\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the date_and_delta API. 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 date_and_delta API. 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...
Turn a value into a date and a timedelta which represents how long ago it was. If that's not possible, return (None, value).
"Turn a value into a date and a timedelta which represents how long ago\n it was. If that's not possible, return (None, value)."
28
false
jmoiron/humanize
date_and_delta
36,462
LDU_FT/niemasd/TreeSwift/newick
LDU_FT
[ "<BEGIN>\n## `plot_ltt`", "Plot the Lineages Through Time (LTT) curve of a given tree", " Args:\n ``lineages`` (``dict``): The ``lineages`` dictionary returned by a ``Tree`` object's ``lineages_through_time()`` function call", " ``show_plot`` (``bool``): ``True`` to show the plot, otherwise `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the newick API. 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 newick API. 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 ...
Newick string conversion starting at this ``Node`` object Returns: ``str``: Newick string conversion starting at this ``Node`` object
"Newick string conversion starting at this ``Node`` object\n\n Returns:\n ``str``: Newick string conversion starting at this ``Node`` object"
280
false
niemasd/TreeSwift
newick
36,463
LDU_FT/outini/python-pylls/groups
LDU_FT
[ "<BEGIN>\n## `request`", "Handle requests to API", " :param str path: API endpoint's path to request\n :param str method: HTTP method to use\n :param dict data: Data to send (optional)\n :return: Parsed json response as :class:`dict`", " Additional named argument may be pass...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the groups API. 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 groups API. 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 ...
Component groups Special property which point to a :class:`~pylls.cachet.ComponentGroups` instance for convenience. This instance is initialized on first call.
"Component groups\n\n Special property which point to a :class:`~pylls.cachet.ComponentGroups`\n instance for convenience. This instance is initialized on first call."
71
false
outini/python-pylls
groups
36,464
LDU_FT/google/prettytensor/apply_regression
LDU_FT
[ "<BEGIN>\n## `_remove_non_methods`", "Removes any object in dict that is not a registered method.\n<END>", "<BEGIN>\n## `regularizer`", "Wraps a regularizer in a parameter-function.", " Args:\n name: The name scope for this regularizer.\n regularization_fn: A function with signature:\n fn(variab...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_regression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_regression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Applies the given regression and adds the loss to the bookkeeper. This does not change tensor. Args: input_: A Tensor or a Pretty Tensor holding the input. regression_fn: A function that takes (in order) tensor, labels. target: The targe of the regression. regression_args: Other arguments for the r...
"Applies the given regression and adds the loss to the bookkeeper.\n\n This does not change tensor.\n Args:\n input_: A Tensor or a Pretty Tensor holding the input.\n regression_fn: A function that takes (in order) tensor, labels.\n target: The targe of the regression.\n regression_args: Other arguments f...
551
false
google/prettytensor
apply_regression
36,465
LDU_FT/ManiacalLabs/PixelWeb/add_hook
LDU_FT
[ "<BEGIN>\n## `_re_flatten`", "Turn all capturing groups in a regular expression pattern into\n non-capturing groups.\n<END>", "<BEGIN>\n## `redirect`", "Aborts execution and causes a 303 or 302 redirect, depending on\n the HTTP protocol version.\n<END>", "<BEGIN>\n## `_file_iter_range`", "Yi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_hook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_hook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Attach a callback to a hook. Three hooks are currently implemented: before_request Executed once before each request. The request context is available, but no routing has happened yet. after_request Executed once after each request regardless of i...
"Attach a callback to a hook. Three hooks are currently implemented:\n\n before_request\n Executed once before each request. The request context is\n available, but no routing has happened yet.\n after_request\n Executed once after each request regardle...
100
false
ManiacalLabs/PixelWeb
add_hook
36,466
LDU_FT/konstantinstadler/pymrio/get_file_para
LDU_FT
[ "<BEGIN>\n## `load_all`", "Loads a full IO system with all extension in path", " Parameters\n ----------\n path : pathlib.Path or string\n Path or path with para file name for the data to load.\n This must either point to the directory containing the uncompressed\n data or the loca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_para API. 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_para API. 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...
Generic method to read the file parameter file Helper function to consistently read the file parameter file, which can either be uncompressed or included in a zip archive. By default, the file name is to be expected as set in DEFAULT_FILE_NAMES['filepara'] (currently file_parameters.json), but can def...
"Generic method to read the file parameter file\n\n Helper function to consistently read the file parameter file, which can\n either be uncompressed or included in a zip archive. By default, the file\n name is to be expected as set in DEFAULT_FILE_NAMES['filepara'] (currently\n file_parameters.json), but c...
433
false
konstantinstadler/pymrio
get_file_para
36,467
LDU_FT/yatiml/yatiml/is_scalar
LDU_FT
[ "<BEGIN>\n## `class_subobjects`", "Find the aggregated subobjects of an object.", " These are the public attributes.", " Args:\n class_: The class whose subobjects to return.", " Yields:\n Tuples (name, type, required) describing subobjects.\n<END>", "<BEGIN>\n## `__sweeten`", "Ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_scalar API. 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 is_scalar API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns True iff this represents a scalar node. If a type is given, checks that the ScalarNode represents this \ type. Type may be `str`, `int`, `float`, `bool`, or `None`. If no type is given, any ScalarNode will return True.
"Returns True iff this represents a scalar node.\n\n If a type is given, checks that the ScalarNode represents this \\\n type. Type may be `str`, `int`, `float`, `bool`, or `None`.\n\n If no type is given, any ScalarNode will return True."
224
false
yatiml/yatiml
is_scalar
36,468
LDU_FT/eventable/vobject/add
LDU_FT
[ "<BEGIN>\n## `toVName`", "Turn a Python name into an iCalendar style name,\n optionally uppercase and with characters stripped off.\n<END>", "<BEGIN>\n## `dquoteEscape`", "Return param, or \"param\" if ',' or ';' or ':' is in param.\n<END>", "<BEGIN>\n## `readComponents`", "Generate one Component at a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add objOrName to contents, set behavior if it can be inferred. If objOrName is a string, create an empty component or line based on behavior. If no behavior is found for the object, add a ContentLine. group is an optional prefix to the name of the object (see RFC 2425).
"Add objOrName to contents, set behavior if it can be inferred.\n\n If objOrName is a string, create an empty component or line based on\n behavior. If no behavior is found for the object, add a ContentLine.\n\n group is an optional prefix to the name of the object (see RFC 2425)."
138
false
eventable/vobject
add
36,469
LDU_FT/cloudbase/python-hnvclient/process_raw_data
LDU_FT
[ "<BEGIN>\n## `register`", "Register the current options to the global ConfigOpts object.\n<END>", "<BEGIN>\n## `get_options`", "Collect all the options info from the other modules.\n<END>", "<BEGIN>\n## `run_once`", "A memoization decorator, whose purpose is to cache calls.\n<END>", "<BEGIN>\n## `get_cl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_raw_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_raw_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Create a new model using raw API response.
"Create a new model using raw API response."
89
false
cloudbase/python-hnvclient
process_raw_data
36,470
LDU_FT/Netflix-Skunkworks/historical/detect_global_table_updates
LDU_FT
[ "<BEGIN>\n## `handler`", "Historical security group event differ.", " Listens to the Historical current table and determines if there are differences that need to be persisted in the\n historical record.\n<END>", "<BEGIN>\n## `serialize`", "Serializes the JSON for the Polling Event Model.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_global_table_updates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_global_table_updates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
This will detect DDB Global Table updates that are not relevant to application data updates. These need to be skipped over as they are pure noise. :param record: :return:
"This will detect DDB Global Table updates that are not relevant to application data updates. These need to be\n skipped over as they are pure noise.\n\n :param record:\n :return:"
146
false
Netflix-Skunkworks/historical
detect_global_table_updates
36,471
LDU_FT/datamachine/twx/send_video
LDU_FT
[ "<BEGIN>\n## `_ige`", "Given a key, given an iv, and message\n do whatever operation asked in the operation field.\n Operation will be checked for: \"decrypt\" and \"encrypt\" strings.\n Returns the message encrypted/decrypted.\n message must be a multiple by 16 bytes (for division in 16 byte bloc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_video API. 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 send_video API. 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...
Send video to peer. :param peer: Peer to send message to. :param video: File path to video to send. :param reply: Message object or message_id to reply to. :param on_success: Callback to call when call is complete. :type reply: int or Message
"Send video to peer.\n :param peer: Peer to send message to.\n :param video: File path to video to send.\n :param reply: Message object or message_id to reply to.\n :param on_success: Callback to call when call is complete.\n\n :type reply: int or Message"
94
false
datamachine/twx
send_video
36,472