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/tsnaomi/finnsyll/apply_T4
LDU_FT
[ "<BEGIN>\n## `syllabify`", "Syllabify the given word, whether simplex or complex.\n<END>", "<BEGIN>\n## `apply_T2`", "There is a syllable boundary within a VV sequence of two nonidentical\n vowels that are not a genuine diphthong, e.g., [ta.e], [ko.et.taa].\n<END>", "<BEGIN>\n## `apply_T5`", "If a (V)V...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_T4 API. 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 apply_T4 API. 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...
An agglutination diphthong that ends in /u, y/ usually contains a syllable boundary when -C# or -CCV follow, e.g., [lau.ka.us], [va.ka.ut.taa].
"An agglutination diphthong that ends in /u, y/ usually contains a\n syllable boundary when -C# or -CCV follow, e.g., [lau.ka.us],\n [va.ka.ut.taa]."
108
false
tsnaomi/finnsyll
apply_T4
21,473
LDU_FT/amirziai/flatten/flatten
LDU_FT
[ "<BEGIN>\n## `_construct_key`", "Returns the new_key if no previous key exists, otherwise concatenates\n previous key, separator, and new_key\n :param previous_key:\n :param separator:\n :param new_key:\n :return: a string if previous_key exists and simply passes through the\n new_key otherwise\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten API. Each 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 flatten API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Flattens a dictionary with nested structure to a dictionary with no hierarchy Consider ignoring keys that you are not interested in to prevent unnecessary processing This is specially true for very deep objects :param nested_dict: dictionary we want to flatten :param separator: string to separa...
"Flattens a dictionary with nested structure to a dictionary with no\n hierarchy\n Consider ignoring keys that you are not interested in to prevent\n unnecessary processing\n This is specially true for very deep objects\n\n :param nested_dict: dictionary we want to flatten\n :param separator: string t...
13
false
amirziai/flatten
flatten
21,474
LDU_FT/MinchinWeb/colourettu/update_version_number
LDU_FT
[ "<BEGIN>\n## `other_dependancies`", "Installs things that need to be in place before installing the main package\n<END>", "<BEGIN>\n## `update_version_number`", "Update version number", " Returns a semantic_version object\n<END>", "<BEGIN>\n## `add_release_to_changelog`", "Add release line at the top...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_version_number 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 update_version_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Update version number Returns a semantic_version object
"Update version number\n\n Returns a semantic_version object"
90
false
MinchinWeb/colourettu
update_version_number
21,475
LDU_FT/log2timeline/dfvfs/IsPipe
LDU_FT
[ "<BEGIN>\n## `comparable`", "str: comparable representation of the path specification.\n<END>", "<BEGIN>\n## `GetFormatSpecification`", "Retrieves the format specification.", " Returns:\n FormatSpecification: format specification or None if the format cannot\n be defined by a specification ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the IsPipe API. Each 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 IsPipe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Determines if the file entry is a pipe. Returns: bool: True if the file entry is a pipe.
"Determines if the file entry is a pipe.\n\n Returns:\n bool: True if the file entry is a pipe."
1,933
true
log2timeline/dfvfs
IsPipe
21,476
LDU_FT/pyBookshelf/bookshelf/get_rackspace_info
LDU_FT
[ "<BEGIN>\n## `apt_install_from_url`", "installs a pkg from a url\n p pkg_name: the name of the package to install\n p url: the full URL for the rpm package\n<END>", "<BEGIN>\n## `apt_add_key`", "trust a new PGP key related to a apt-repository\n<END>", "<BEGIN>\n## `is_package_installed`", "c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rackspace_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rackspace_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
queries Rackspace for details about a particular server id
"queries Rackspace for details about a particular server id"
88
false
pyBookshelf/bookshelf
get_rackspace_info
21,477
LDU_FT/ponty/eagexp/accept_freeware_license
LDU_FT
[ "<BEGIN>\n## `export_image3d`", "Exporting eagle .brd file into 3D image file\n using Eagle3D and povray.\n GUI is not displayed if ``pyvirtualdisplay`` is installed.\n If export is blocked somehow (e.g. popup window is displayed) then after timeout operation is canceled with exception.\n Problem can ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accept_freeware_license 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 accept_freeware_license API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
different Eagle versions need differnt TAB count. 6.5 -> 2 6.6 -> 3 7.4 -> 2
"different Eagle versions need differnt TAB count.\n 6.5 -> 2\n 6.6 -> 3\n 7.4 -> 2"
35
false
ponty/eagexp
accept_freeware_license
21,478
LDU_FT/grst/geos/load_maps
LDU_FT
[ "<BEGIN>\n## `griditer`", "Iterate through a grid of tiles.", " Args:\n x (int): x start-coordinate\n y (int): y start-coordinate\n ncol (int): number of tile columns\n nrow (int): number of tile rows. If not specified, this\n defaults to ncol, s.t. a quadratic region i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_maps API. 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 load_maps API. 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...
Load all xml map sources from a given directory. Args: maps_dir: path to directory to search for maps Returns: dict of MapSource:
"Load all xml map sources from a given directory.\n\n Args:\n maps_dir: path to directory to search for maps\n\n Returns:\n dict of MapSource:"
153
false
grst/geos
load_maps
21,479
LDU_FT/AlecAivazis/graphql-over-kafka/ask
LDU_FT
[ "<BEGIN>\n## `roll_call_handler`", "This action handler responds to the \"roll call\" emitted by the api\n gateway when it is brought up with the normal summary produced by\n the service.\n<END>", "<BEGIN>\n## `flexible_api_handler`", "This query handler builds the dynamic picture of availible s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ask API. Each 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 ask API. Each 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 a message with the specified action_type and payload over the event system. Useful for debugging.
"Publish a message with the specified action_type and payload over the\n event system. Useful for debugging."
145
false
AlecAivazis/graphql-over-kafka
ask
21,480
LDU_FT/djaodjin/djaodjin-deployutils/fingerprint
LDU_FT
[ "<BEGIN>\n## `filter`", "Adds user and remote_addr to the record.\n<END>", "<BEGIN>\n## `package_theme`", "Package resources and templates for a multi-tier environment\n into a zip file.", " Templates are pre-compiled into ``*build_dir*/*app_name*/templates``.\n Compilation means {% assets '*path*'...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fingerprint API. 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 fingerprint API. 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 a list of paths available from *dirname*. When previous is specified, returns a list of additional files only. Example: [{ "Key": "abc.txt", "LastModified": "Mon, 05 Jan 2015 12:00:00 UTC"}, { "Key": "def.txt", "LastModified": "Mon, 05 Jan 2015 12:00:001 UTC"}, ]
"Returns a list of paths available from *dirname*. When previous\n is specified, returns a list of additional files only.\n\n Example:\n [{ \"Key\": \"abc.txt\",\n \"LastModified\": \"Mon, 05 Jan 2015 12:00:00 UTC\"},\n { \"Key\": \"def.txt\",\n \"LastModified\": \"Mon, 05 Jan 2015 12:00:001 UT...
82
false
djaodjin/djaodjin-deployutils
fingerprint
21,481
LDU_FT/shoppimon/figcan/_recursive_merge
LDU_FT
[ "<BEGIN>\n## `_recursive_merge`", "Recursive dict merge", " This modifies `dct` in place. Use `copy.deepcopy` if this behavior is not desired.\n<END>", "<BEGIN>\n## `_create_flat_pointers`", "Create a flattened dictionary of \"key stacks\" -> (value container, key)\n<END>", "<BEGIN>\n## `apply`", "Ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _recursive_merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _recursive_merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Recursive dict merge This modifies `dct` in place. Use `copy.deepcopy` if this behavior is not desired.
"Recursive dict merge\n\n This modifies `dct` in place. Use `copy.deepcopy` if this behavior is not desired."
15
false
shoppimon/figcan
_recursive_merge
21,482
LDU_FT/JdeRobot/base/euler
LDU_FT
[ "<BEGIN>\n## `bytes_needed`", "return number of bytes needed for next parsing stage\n<END>", "<BEGIN>\n## `__callbacks`", "this method exists only to make profiling results easier to read\n<END>", "<BEGIN>\n## `parse_char`", "input some data bytes, possibly returning a new message\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the euler API. Each 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 euler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Get the euler angles. The convention is Tait-Bryan (ZY'X'') :returns: array containing the euler angles [roll, pitch, yaw]
"Get the euler angles.\n The convention is Tait-Bryan (ZY'X'')\n\n :returns: array containing the euler angles [roll, pitch, yaw]"
1,991
true
JdeRobot/base
euler
21,483
LDU_FT/jdrumgoole/mongodbshell/find
LDU_FT
[ "<BEGIN>\n## `database`", "Set the default database for this Proxy object.\n :param database_name: A string naming the database\n<END>", "<BEGIN>\n## `find`", "Run the pymongo find command against the default database and collection\n and paginate the output to the screen.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each 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 find API. Each 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...
Run the pymongo find command against the default database and collection and paginate the output to the screen.
"Run the pymongo find command against the default database and collection\n and paginate the output to the screen."
33
false
jdrumgoole/mongodbshell
find
21,484
LDU_FT/numberoverzero/bloop/pop_refs
LDU_FT
[ "<BEGIN>\n## `ordered`", "Return sorted version of nested dicts/lists for comparing.", " Modified from:\n http://stackoverflow.com/a/25851972\n<END>", "<BEGIN>\n## `dump_key`", "dump the hash (and range, if there is one) key(s) of an object into\n a dynamo-friendly format.", " returns {dynamo_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop_refs API. 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 pop_refs API. 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...
Decrement the usage of each ref by 1. If this was the last use of a ref, remove it from attr_names or attr_values.
"Decrement the usage of each ref by 1.\n\n If this was the last use of a ref, remove it from attr_names or attr_values."
288
false
numberoverzero/bloop
pop_refs
21,485
LDU_FT/amicks/Speculator/chart_json
LDU_FT
[ "<BEGIN>\n## `set_targets`", "Sets target market trend for a date", " Args:\n x: Pandas DataFrame of market features\n delta: Positive number defining a price buffer between what is\n classified as a bullish/bearish market for the training set.\n delta is equivalent to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chart_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chart_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Requests chart data from Poloniex API Args: start: Int epoch date to START getting market stats from. Note that this epoch is FURTHER from the current date. end: Int epoch date to STOP getting market stats from. Note that this epoch is CLOSER to the current date. ...
"Requests chart data from Poloniex API\n \n Args:\n start: Int epoch date to START getting market stats from.\n Note that this epoch is FURTHER from the current date.\n end: Int epoch date to STOP getting market stats from.\n Note that this epoch is CLOSER to the current date.\...
104
false
amicks/Speculator
chart_json
21,486
LDU_FT/marteinn/wpparser/_parse_authors
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses xml and returns a formatted dict.", " Example:", " wpparser.parse(\"./blog.wordpress.2014-09-26.xml\")", " Will return:", " {\n \"blog\": {\n \"tagline\": \"Tagline\",\n \"site_url\": \"http://marteinn.se/blog\",\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_authors API. 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 _parse_authors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns a well formatted list of users that can be matched against posts.
"Returns a well formatted list of users that can be matched against posts."
19
false
marteinn/wpparser
_parse_authors
21,487
LDU_FT/shawnsilva/steamwebapi/get_user_group_list
LDU_FT
[ "<BEGIN>\n## `create_request_url`", "Create the URL to submit to the Steam Web API", " interface: Steam Web API interface containing methods.\n method: The method to call.\n version: The version of the method.\n paramters: Parameters to supply to the method.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_group_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_group_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Request a list of groups a user is subscribed to. steamID: User ID format: Return format. None defaults to json. (json, xml, vdf)
"Request a list of groups a user is subscribed to.\n\n steamID: User ID\n format: Return format. None defaults to json. (json, xml, vdf)"
64
false
shawnsilva/steamwebapi
get_user_group_list
21,488
LDU_FT/vmalloc/dessert/_register_with_pkg_resources
LDU_FT
[ "<BEGIN>\n## `_read_pyc`", "Possibly read a pytest pyc containing rewritten code.", " Return rewritten code if successful or None if not.\n<END>", "<BEGIN>\n## `_saferepr`", "Get a safe repr of an object for assertion error messages.", " The assertion formatting (util.format_explanation()) requires\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _register_with_pkg_resources API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _register_with_pkg_resources API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Ensure package resources can be loaded from this loader. May be called multiple times, as the operation is idempotent.
"Ensure package resources can be loaded from this loader. May be called\n multiple times, as the operation is idempotent."
41
false
vmalloc/dessert
_register_with_pkg_resources
21,489
LDU_FT/abn/cafeteria/_merge
LDU_FT
[ "<BEGIN>\n## `replace`", "Convenience method provided as a way to replace a value mapped by a\n key.This is required since a MergingDict always merges via assignment\n of item/attribute.", " :param key: Attribute name or item key to replace rvalue for.\n :type key: object\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Internal merge logic implementation to allow merging of values when setting attributes/items. :param key: Attribute name or item key :type key: str :param value: Value to set attribute/item as. :type value: object :rtype: None
"Internal merge logic implementation to allow merging of values when\n setting attributes/items.\n\n :param key: Attribute name or item key\n :type key: str\n :param value: Value to set attribute/item as.\n :type value: object\n :rtype: None"
26
false
abn/cafeteria
_merge
21,490
LDU_FT/Robpol86/sphinxcontrib-imgur/_parse
LDU_FT
[ "<BEGIN>\n## `query_api`", "Query the Imgur API.", " :raise APIError: When Imgur responds with errors or unexpected data.", " :param sphinx.application.Sphinx app: Sphinx application object.\n :param str client_id: Imgur API client ID to use. https://api.imgur.com/oauth2\n :param str imgur_id: The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Parse API response. :param dict data: Parsed JSON response from API 'data' key.
"Parse API response.\n\n :param dict data: Parsed JSON response from API 'data' key."
90
false
Robpol86/sphinxcontrib-imgur
_parse
21,491
LDU_FT/twitterdev/search-tweets-python/stream
LDU_FT
[ "<BEGIN>\n## `parse_version`", "Parses the program's version from a python variable declaration.\n<END>", "<BEGIN>\n## `make_session`", "Creates a Requests Session for use. Accepts a bearer token\n for premiums users and will override username and password information if\n present.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Main entry point for the data from the API. Will automatically paginate through the results via the ``next`` token and return up to ``max_results`` tweets or up to ``max_requests`` API calls, whichever is lower. Usage: >>> result_stream = ResultStream(**kwargs) >>> strea...
"Main entry point for the data from the API. Will automatically paginate\n through the results via the ``next`` token and return up to ``max_results``\n tweets or up to ``max_requests`` API calls, whichever is lower.\n\n Usage:\n >>> result_stream = ResultStream(**kwargs)\n >>...
88
false
twitterdev/search-tweets-python
stream
21,492
LDU_FT/programa-stic/barf-project/_extract_section
LDU_FT
[ "<BEGIN>\n## `translate`", "Return the SMT representation of a REIL instruction.\n<END>", "<BEGIN>\n## `_translate_src_oprnd`", "Translate source operand to a SMT expression.\n<END>", "<BEGIN>\n## `_translate_dst_oprnd`", "Translate destination operand to a SMT expression.\n<END>", "<BEGIN>\n## `_transl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_section API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_section API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
:sect_req dictionary of section names as strings and SectionRequest objects :mem if mem is not null, it serves as an accumulator rather than using the memory in SectionRequests :returns nothing
":sect_req dictionary of section names as strings and SectionRequest objects\n :mem if mem is not null, it serves as an accumulator rather than using the memory\n in SectionRequests\n\n :returns nothing"
148
false
programa-stic/barf-project
_extract_section
21,493
LDU_FT/tommikaikkonen/prettyprinter/pformat
LDU_FT
[ "<BEGIN>\n## `comment`", "Annotates a value or a Doc with a comment.", " When printed by prettyprinter, the comment will be\n rendered next to the value or Doc.\n<END>", "<BEGIN>\n## `register_pretty`", "Returns a decorator that registers the decorated function\n as the pretty printer for instances...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pformat API. Each 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 pformat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns a pretty printed representation of the object as a ``str``. Accepts the same parameters as :func:`~prettyprinter.pprint`. The output is not colored.
"Returns a pretty printed representation of the object as a ``str``.\n Accepts the same parameters as :func:`~prettyprinter.pprint`.\n The output is not colored."
78
false
tommikaikkonen/prettyprinter
pformat
21,494
LDU_FT/puiterwijk/flask-oidc/init_app
LDU_FT
[ "<BEGIN>\n## `check_redirect_uris`", "This function checks all return uris provided and tries to deduce\n as what type of client we should register.", " :param uris: The redirect URIs to check.\n :type uris: list\n :param client_type: An indicator of which client type you are expecting\n to b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API. 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 init_app API. 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...
Do setup that requires a Flask app. :param app: The application to initialize. :type app: Flask
"Do setup that requires a Flask app.\n\n :param app: The application to initialize.\n :type app: Flask"
74
false
puiterwijk/flask-oidc
init_app
21,495
LDU_FT/pyupio/pyup/create_branch
LDU_FT
[ "<BEGIN>\n## `fetch_public_key`", "Download RSA public key Travis will use for this repo.", " Travis API docs: http://docs.travis-ci.com/api/#repository-keys\n<END>", "<BEGIN>\n## `is_empty_branch`", "Compares the top commits of two branches.\n Please note: This function isn't checking if `base_br...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_branch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_branch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Creates a new branch. :param new_branch: string name of the new branch :param delete_empty: bool -- delete the branch if it is empty :return: bool -- True if successfull
"Creates a new branch.\n :param new_branch: string name of the new branch\n :param delete_empty: bool -- delete the branch if it is empty\n :return: bool -- True if successfull"
31
false
pyupio/pyup
create_branch
21,496
LDU_FT/pydata/xarray/dask_rolling_wrapper
LDU_FT
[ "<BEGIN>\n## `_infer_coords_and_dims`", "All the logic for creating a new DataArray\n<END>", "<BEGIN>\n## `to_dataset`", "Convert a DataArray to a Dataset.", " Parameters\n ----------\n dim : str, optional\n Name of the dimension on this array along which to split this array\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dask_rolling_wrapper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dask_rolling_wrapper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
wrapper to apply bottleneck moving window funcs on dask arrays
"wrapper to apply bottleneck moving window funcs on dask arrays"
2,080
true
pydata/xarray
dask_rolling_wrapper
21,497
LDU_FT/noahbenson/neuropythy/to_potential
LDU_FT
[ "<BEGIN>\n## `guess_import_format`", "guess_import_format(filename) attempts to guess the file format for the given filename; it does\n this guessing by looking at the file extension and using registered sniff-tests from\n importers. It will not attempt to load the file, so if the extension of the filen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_potential API. 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 to_potential API. 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...
to_potential(f) yields f if f is a potential function; if f is not, but f can be converted to a potential function, that conversion is performed then the result is yielded. to_potential(Ellipsis) yields a potential function whose output is simply its input (i.e., the identity function). to_potential...
"to_potential(f) yields f if f is a potential function; if f is not, but f can be converted to\n a potential function, that conversion is performed then the result is yielded.\n to_potential(Ellipsis) yields a potential function whose output is simply its input (i.e., the\n identity function).\n to_pote...
815
false
noahbenson/neuropythy
to_potential
21,498
LDU_FT/asweigart/pysimplevalidate/_validateParamsFor__validateToDateTimeFormat
LDU_FT
[ "<BEGIN>\n## `_errstr`", "Returns the value str, truncated to MAX_ERROR_STR_LEN characters. If\n it's truncated, the returned value will have '...' on the end.\n<END>", "<BEGIN>\n## `_getStrippedValue`", "Like the strip() string method, except the strip argument describes\n different behavior:", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validateParamsFor__validateToDateTimeFormat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ind...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validateParamsFor__validateToDateTimeFormat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ind...
Raises PySimpleValidateException if the arguments are invalid. This is called by the validateTime() function to check its arguments. This code was refactored out to a separate function so that the PyInputPlus module (or other modules) could check their parameters' arguments for inputTime().
"Raises PySimpleValidateException if the arguments are invalid. This is called by\n the validateTime() function to check its arguments. This code was\n refactored out to a separate function so that the PyInputPlus module (or\n other modules) could check their parameters' arguments for inputTime()."
148
false
asweigart/pysimplevalidate
_validateParamsFor__validateToDateTimeFormat
21,499
LDU_FT/payplug/payplug-python/abort
LDU_FT
[ "<BEGIN>\n## `map_http_status_to_exception`", "Bind a HTTP status to an HttpError.", " :param http_code: The HTTP code\n :type http_code: int", " :return The HttpError that fits to the http_code or HttpError.\n :rtype Any subclass of HttpError or HttpError\n<END>", "<BEGIN>\n## `...
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...
Abort a payment from its id. :param payment: The payment id or payment object :type payment: string|Payment :return: The payment resource :rtype: resources.Payment
"Abort a payment from its id.\n\n :param payment: The payment id or payment object\n :type payment: string|Payment\n\n :return: The payment resource\n :rtype: resources.Payment"
108
false
payplug/payplug-python
abort
21,500
LDU_FT/petl-developers/petl/hashlookupjoin
LDU_FT
[ "<BEGIN>\n## `look`", "Format a portion of the table as text for inspection in an interactive\n session. E.g.::", " >>> import petl as etl\n >>> table1 = [['foo', 'bar'],\n ... ['a', 1],\n ... ['b', 2]]\n >>> etl.look(table1)\n +-----+-----+\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hashlookupjoin API. 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 hashlookupjoin API. 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...
Alternative implementation of :func:`petl.transform.joins.lookupjoin`, where the join is executed by constructing an in-memory lookup for the right hand table, then iterating over rows from the left hand table. May be faster and/or more resource efficient where the right table is small and the left tab...
"Alternative implementation of :func:`petl.transform.joins.lookupjoin`,\n where the join is executed by constructing an in-memory lookup for the\n right hand table, then iterating over rows from the left hand table.\n\n May be faster and/or more resource efficient where the right table is small\n and the le...
789
false
petl-developers/petl
hashlookupjoin
21,501
LDU_FT/HDI-Project/mit-d3m/get_text_path
LDU_FT
[ "<BEGIN>\n## `build_config`", "root@d3m-example-pod:/# cat /input/185_baseball/test_config.json\n {\n \"problem_schema\": \"/input/TEST/problem_TEST/problemDoc.json\",\n \"problem_root\": \"/input/TEST/problem_TEST\",\n \"dataset_schema\": \"/input/TEST/dataset_TEST/datasetDoc.json\",\n \"t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_text_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_text_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns the path of the directory containing text if they exist in this dataset.
"Returns the path of the directory containing text if they exist in this dataset."
15
false
HDI-Project/mit-d3m
get_text_path
21,502
LDU_FT/observermedia/django-wordpress-rest/load_post_webhook
LDU_FT
[ "<BEGIN>\n## `load_post_webhook`", "Webhook to insert/update a WordPress.com post on the local Django site.\n Call this after making changes to the post in WP Admin.\n The post is processed asynchronously so that a response can be returned to WordPress.com immediately.", " :param request: Should contai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_post_webhook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_post_webhook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Webhook to insert/update a WordPress.com post on the local Django site. Call this after making changes to the post in WP Admin. The post is processed asynchronously so that a response can be returned to WordPress.com immediately. :param request: Should contain the WordPress post ID, named "ID", in POST for...
"Webhook to insert/update a WordPress.com post on the local Django site.\n Call this after making changes to the post in WP Admin.\n The post is processed asynchronously so that a response can be returned to WordPress.com immediately.\n\n :param request: Should contain the WordPress post ID, named \"ID\", in P...
100
false
observermedia/django-wordpress-rest
load_post_webhook
21,503
LDU_FT/dmbee/seglearn/predict_log_proba
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit the model", " Fit all the transforms one after the other and transform the\n data, then fit the transformed data using the final estimator.", " Parameters\n ----------\n X : iterable\n Training data. Must fulfill input requirements of fir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict_log_proba API. 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 predict_log_proba API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Apply transforms, and predict_log_proba of the final estimator Parameters ---------- X : iterable Data to predict on. Must fulfill input requirements of first step of the pipeline. Returns ------- y_score : array-like, shape = [n_samples, n_class...
"Apply transforms, and predict_log_proba of the final estimator\n\n Parameters\n ----------\n X : iterable\n Data to predict on. Must fulfill input requirements of first step\n of the pipeline.\n\n Returns\n -------\n y_score : array-like, shape = [n_sampl...
165
false
dmbee/seglearn
predict_log_proba
21,504
LDU_FT/higlass/higlass-python/add_view
LDU_FT
[ "<BEGIN>\n## `get_filepath`", "Get the filepath from a tileset definition\n Parameters\n ----------\n tileset_def: { 'filepath': ..., 'uid': ..., 'filetype': ...}\n The tileset definition\n returns: string\n The filepath, either as specified in the tileset_def or\n None\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 add_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...
Add a new view Parameters ---------- uid: string The uid of new view width: int The width of this of view on a 12 unit grid height: int The height of the this view. The height is proportional to the height of all the views present....
"Add a new view\n\n Parameters\n ----------\n uid: string\n The uid of new view\n width: int\n The width of this of view on a 12 unit grid\n height: int\n The height of the this view. The height is proportional\n to the height of all the vie...
34
false
higlass/higlass-python
add_view
21,505
LDU_FT/openpermissions/perch/create
LDU_FT
[ "<BEGIN>\n## `collect`", "Import all modules inside the perch.migrations package and return the\n registered migrations\n<END>", "<BEGIN>\n## `run_migrations`", "Run migrations for a resource type", " :param: a dicitionary of migrations\n<END>", "<BEGIN>\n## `_migrate_resource`", "Migrate a resour...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create an empty migration for a resource
"Create an empty migration for a resource"
177
false
openpermissions/perch
create
21,506
LDU_FT/bfontaine/crosswords/download
LDU_FT
[ "<BEGIN>\n## `sanitize_word`", "sanitize a word by removing its accents, special characters, etc\n<END>", "<BEGIN>\n## `init_storage`", "Initialize the local dictionnaries cache in ~/.crosswords/dicts.\n<END>", "<BEGIN>\n## `local_list`", "Return a list of the locally available dictionnaries. Each element...
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 dictionnary from the remote server into the local cache. Return the number of new words or -1 on error.
"Download a dictionnary from the remote server into the local cache. Return\n the number of new words or -1 on error."
20
false
bfontaine/crosswords
download
21,507
LDU_FT/sffjunkie/astral/twilight
LDU_FT
[ "<BEGIN>\n## `timezone`", "The name of the time zone for the location.", " A list of time zone names can be obtained from pytz. For example.", " >>> from pytz import all_timezones\n >>> for timezone in all_timezones:\n ... print(timezone)\n<END>", "<BEGIN>\n## `sun`", "Retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the twilight API. 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 twilight API. 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...
Returns the start and end times of Twilight in the UTC timezone when the sun is traversing in the specified direction. This method defines twilight as being between the time when the sun is at -6 degrees and sunrise/sunset. :param direction: Determines whether the time is for the sun ...
"Returns the start and end times of Twilight in the UTC timezone when\n the sun is traversing in the specified direction.\n\n This method defines twilight as being between the time\n when the sun is at -6 degrees and sunrise/sunset.\n\n :param direction: Determines whether the time is for t...
177
false
sffjunkie/astral
twilight
21,508
LDU_FT/symengine/symengine.py/default_sort_key
LDU_FT
[ "<BEGIN>\n## `with_metaclass`", "Create a base class with a metaclass.", " For example, if you have the metaclass", " >>> class Meta(type):\n ... pass", " Use this as the metaclass by doing", " >>> from symengine.compatibility import with_metaclass\n >>> class MyClass(with_metaclass(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_sort_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_sort_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 ...
Return a key that can be used for sorting. The key has the structure: (class_key, (len(args), args), exponent.sort_key(), coefficient) This key is supplied by the sort_key routine of Basic objects when ``item`` is a Basic object or an object (other than a string) that sympifies to a Basic object....
"Return a key that can be used for sorting.\n\n The key has the structure:\n\n (class_key, (len(args), args), exponent.sort_key(), coefficient)\n\n This key is supplied by the sort_key routine of Basic objects when\n ``item`` is a Basic object or an object (other than a string) that\n sympifies to a Basi...
94
false
symengine/symengine.py
default_sort_key
21,509
LDU_FT/pydsigner/taskit/_do_cb
LDU_FT
[ "<BEGIN>\n## `_wait`", "Based upon an extract from threading.Condition().wait(). Immediately \n tries to acquire the lock, and then sleeps for a period of time (going \n 1/2ms..1ms..2ms..4ms...50ms..50ms), repeating until the lock is \n acquired or the timeout limit is reached.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _do_cb API. Each 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 _do_cb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Called internally by callback(). Does cb and error_cb selection.
"Called internally by callback(). Does cb and error_cb selection."
59
false
pydsigner/taskit
_do_cb
21,510
LDU_FT/jsfenfen/990-xml-reader/_get_table_start
LDU_FT
[ "<BEGIN>\n## `stream_download`", "Download a large file without loading it into memory.\n<END>", "<BEGIN>\n## `validate_object_id`", "It's easy to make a mistake entering these, validate the format\n<END>", "<BEGIN>\n## `_get_table_start`", "prefill the columns we need for all tables\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_table_start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_table_start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
prefill the columns we need for all tables
"prefill the columns we need for all tables"
14
false
jsfenfen/990-xml-reader
_get_table_start
21,511
LDU_FT/albahnsen/CostSensitiveClassification/savings_score
LDU_FT
[ "<BEGIN>\n## `_partition_estimators`", "Private function used to partition estimators between jobs.\n<END>", "<BEGIN>\n## `_parallel_build_estimators`", "Private function used to build a batch of estimators within a job.\n<END>", "<BEGIN>\n## `_parallel_predict_proba`", "Private function used to compute (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the savings_score API. 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 savings_score API. 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...
Savings score. This function calculates the savings cost of using y_pred on y_true with cost-matrix cost-mat, as the difference of y_pred and the cost_loss of a naive classification model. Parameters ---------- y_true : array-like or label indicator matrix Ground truth (correct) labels...
"Savings score.\n\n This function calculates the savings cost of using y_pred on y_true with\n cost-matrix cost-mat, as the difference of y_pred and the cost_loss of a naive\n classification model.\n\n Parameters\n ----------\n y_true : array-like or label indicator matrix\n Ground truth (corre...
334
false
albahnsen/CostSensitiveClassification
savings_score
21,512
LDU_FT/relwell/corenlp-xml-lib/lemma
LDU_FT
[ "<BEGIN>\n## `mentions`", "Returns mentions", " :return: list of mentions\n :rtype: list\n<END>", "<BEGIN>\n## `sentence`", "The sentence related to this mention", " :getter: returns the sentence this mention relates to\n :type: corenlp_xml.document.Sentence\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lemma API. Each 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 lemma API. Each 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...
Lazy-loads the lemma for this word :getter: Returns the plain string value of the word lemma :type: str
"Lazy-loads the lemma for this word\n\n :getter: Returns the plain string value of the word lemma\n :type: str"
87
false
relwell/corenlp-xml-lib
lemma
21,513
LDU_FT/Exirel/pylint-json2html/build_messages_modules
LDU_FT
[ "<BEGIN>\n## `build_messages_modules`", "Build and yield sorted list of messages per module.", " :param list messages: List of dict of messages\n :return: Tuple of 2 values: first is the module info, second is the list\n of messages sorted by line number\n<END>", "<BEGIN>\n## `stats_evaluati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_messages_modules 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 build_messages_modules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Build and yield sorted list of messages per module. :param list messages: List of dict of messages :return: Tuple of 2 values: first is the module info, second is the list of messages sorted by line number
"Build and yield sorted list of messages per module.\n\n :param list messages: List of dict of messages\n :return: Tuple of 2 values: first is the module info, second is the list\n of messages sorted by line number"
13
false
Exirel/pylint-json2html
build_messages_modules
21,514
LDU_FT/wiredrive/wtframework/get
LDU_FT
[ "<BEGIN>\n## `print_debug`", "Print if and only if the debug flag is set true in the config.yaml file.", " Args:\n args : var args of print arguments.\n<END>", "<BEGIN>\n## `print_time`", "Print the current elapsed time.", " Kwargs:\n message (str) : Message to prefix the time ...
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...
Gets the value from the yaml config based on the key. No type casting is performed, any type casting should be performed by the caller. Args: key (str) - Config setting key. Kwargs: default_value - Default value to return if config is not specified. R...
"Gets the value from the yaml config based on the key.\n\n No type casting is performed, any type casting should be \n performed by the caller.\n\n Args:\n key (str) - Config setting key.\n\n Kwargs:\n default_value - Default value to return if config is not specified.\...
236
false
wiredrive/wtframework
get
21,515
LDU_FT/spotify/snakebite/send_rpc_message
LDU_FT
[ "<BEGIN>\n## `get_delimited_message_bytes`", "Parse a delimited protobuf message. This is done by first getting a protobuf varint from\n the stream that represents the length of the message, then reading that amount of\n from the message and then parse it.\n Since the int can be represented as max 4 byte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_rpc_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_rpc_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Sends a Hadoop RPC request to the NameNode. The IpcConnectionContextProto, RpcPayloadHeaderProto and HadoopRpcRequestProto should already be serialized in the right way (delimited or not) before they are passed in this method. The Hadoop RPC protocol looks like this for sending request...
"Sends a Hadoop RPC request to the NameNode.\n\n The IpcConnectionContextProto, RpcPayloadHeaderProto and HadoopRpcRequestProto\n should already be serialized in the right way (delimited or not) before\n they are passed in this method.\n\n The Hadoop RPC protocol looks like this for sending ...
148
false
spotify/snakebite
send_rpc_message
21,516
LDU_FT/ahwillia/tensortools/_get_initial_ktensor
LDU_FT
[ "<BEGIN>\n## `unfold`", "Returns the mode-`mode` unfolding of `tensor`.", " Parameters\n ----------\n tensor : ndarray\n mode : int", " Returns\n -------\n ndarray\n unfolded_tensor of shape ``(tensor.shape[mode], -1)``", " Author\n ------\n Jean Kossaifi <https://github...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_initial_ktensor 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_initial_ktensor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Parameters ---------- init : str Specifies type of initializations ('randn', 'rand') X : ndarray Tensor that the decomposition is fit to. rank : int Rank of decomposition random_state : RandomState or int Specifies seed for random number generator scale_norm : boo...
"Parameters\n ----------\n init : str\n Specifies type of initializations ('randn', 'rand')\n X : ndarray\n Tensor that the decomposition is fit to.\n rank : int\n Rank of decomposition\n random_state : RandomState or int\n Specifies seed for random number generator\n scale...
158
false
ahwillia/tensortools
_get_initial_ktensor
21,517
LDU_FT/Ceasar/twosheds/gen_sentences
LDU_FT
[ "<BEGIN>\n## `eval`", "Respond to text entered by the user.", " :param text: the user's input\n<END>", "<BEGIN>\n## `interact`", "Get a command from the user and respond to it.\n<END>", "<BEGIN>\n## `serve_forever`", "Handle one interaction at a time until shutdown.", " :param banner: (o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_sentences API. 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 gen_sentences API. 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...
Generate a sequence of sentences from stream of tokens.
"Generate a sequence of sentences from stream of tokens."
49
false
Ceasar/twosheds
gen_sentences
21,518
LDU_FT/samastur/pyimagediet/check_configuration
LDU_FT
[ "<BEGIN>\n## `diet`", "Simple program that either print config customisations for your\n environment or compresses file FILE.\n<END>", "<BEGIN>\n## `read_yaml_configuration`", "Parse configuration in YAML format into a Python dict", " :param filename: filename of a file with configuration in YAML form...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_configuration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_configuration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Check if configuration object is not malformed. :param config: configuration :type config: dict :return: is configuration correct? :rtype: bool
"Check if configuration object is not malformed.\n\n :param config: configuration\n :type config: dict\n :return: is configuration correct?\n :rtype: bool"
21
false
samastur/pyimagediet
check_configuration
21,519
LDU_FT/linuxsoftware/ls.joyous/_getEventsByWeek
LDU_FT
[ "<BEGIN>\n## `getLocalTime`", "Get the time in the local timezone from date and time\n<END>", "<BEGIN>\n## `getLocalDateAndTime`", "Get the date and time in the local timezone from date and optionally time\n<END>", "<BEGIN>\n## `getLocalDatetime`", "Get a datetime in the local timezone from date and optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getEventsByWeek API. 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 _getEventsByWeek API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return my child events for the given month grouped by week.
"Return my child events for the given month grouped by week."
192
false
linuxsoftware/ls.joyous
_getEventsByWeek
21,520
LDU_FT/zero-os/0-core/raw
LDU_FT
[ "<BEGIN>\n## `stdout`", "The job stdout\n :return: string or None\n<END>", "<BEGIN>\n## `stderr`", "The job stderr\n :return: string or None\n<END>", "<BEGIN>\n## `exists`", "Returns true if the job is still running or zero-os still knows about this job ID", " After a job is finishe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
Implements the low level command call, this needs to build the command structure and push it on the correct queue. :param command: Command name to execute supported by the node (ex: core.system, info.cpu, etc...) check documentation for list of built in commands :param a...
"Implements the low level command call, this needs to build the command structure\n and push it on the correct queue.\n\n :param command: Command name to execute supported by the node (ex: core.system, info.cpu, etc...)\n check documentation for list of built in commands\n :p...
236
false
zero-os/0-core
raw
21,521
LDU_FT/CTPUG/wafer/validate_items
LDU_FT
[ "<BEGIN>\n## `build_object`", "Override django-bakery to skip profiles that raise 404\n<END>", "<BEGIN>\n## `generate_schedule`", "Helper function which creates an ordered list of schedule days\n<END>", "<BEGIN>\n## `get_context_data`", "Allow adding a 'render_description' parameter\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_items API. 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 validate_items API. 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...
Find errors in the schedule. Check for: - pending / rejected talks in the schedule - items with both talks and pages assigned - items with neither talks nor pages assigned
"Find errors in the schedule. Check for:\n - pending / rejected talks in the schedule\n - items with both talks and pages assigned\n - items with neither talks nor pages assigned"
72
false
CTPUG/wafer
validate_items
21,522
LDU_FT/holgern/pyedflib/readAnnotations
LDU_FT
[ "<BEGIN>\n## `short_path`", "Return relative or absolute path name, whichever is shortest.\n<END>", "<BEGIN>\n## `get_all_dict`", "Return a copy of the __all__ dict with irrelevant items removed.\n<END>", "<BEGIN>\n## `compare`", "Return sets of objects only in __all__, refguide, or completely missing.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readAnnotations API. 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 readAnnotations API. 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...
Annotations from a edf-file Parameters ---------- None
"Annotations from a edf-file\n\n Parameters\n ----------\n None"
135
false
holgern/pyedflib
readAnnotations
21,523
LDU_FT/dev-pipeline/dev-pipeline-configure/set
LDU_FT
[ "<BEGIN>\n## `read_config`", "Read a configuration from disk.", " Arguments\n path -- the loation to deserialize\n<END>", "<BEGIN>\n## `find_config`", "Find a build cache somewhere in a parent directory.\n<END>", "<BEGIN>\n## `update_cache`", "Load a build cache, updating it if necessary.", " ...
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 a value in the component. Arguments: key - the key to set value - the new value
"Set a value in the component.\n\n Arguments:\n key - the key to set\n value - the new value"
25
false
dev-pipeline/dev-pipeline-configure
set
21,524
LDU_FT/AirtestProject/Poco/wait_for_all
LDU_FT
[ "<BEGIN>\n## `jsonrpc_map`", "Map of json-rpc available calls.", " :return str:\n<END>", "<BEGIN>\n## `command`", "通过hunter调用gm指令,可调用hunter指令库中定义的所有指令,也可以调用text类型的gm指令\n gm指令相关功能请参考safaia GM指令扩展模块", " :param cmd: 指令\n :param type: 语言,默认text\n :return: None\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Wait until all of given UI proxies show up before timeout. All UI proxies will be polled periodically. See option :py:class:`poll_interval <poco.pocofw.Poco>` in ``Poco``'s initialization for more details. Args: objects (Iterable<:py:class:`UIObjectProxy <poco.proxy.UIObjectProxy>`...
"Wait until all of given UI proxies show up before timeout.\n All UI proxies will be polled periodically. See option :py:class:`poll_interval <poco.pocofw.Poco>` in \n ``Poco``'s initialization for more details.\n\n Args:\n objects (Iterable<:py:class:`UIObjectProxy <poco.proxy.UIObjectP...
191
false
AirtestProject/Poco
wait_for_all
21,525
LDU_FT/EwilDawe/typy/write
LDU_FT
[ "<BEGIN>\n## `move_line`", "Moves the cursor in a straight line to (x, y) at a certain speed", " :param x: target x-ordinate\n :param y: target y-ordinate\n :param speed: pixel traversal rate\n :return: None\n<END>", "<BEGIN>\n## `move_arc`", "Moves the cursor in an arc of radius r to (x, y) at ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Automates the process of typing by converting a string into a set of press() and hold() calls :param s: string to be written :return: None
"Automates the process of typing by converting a string into a set of press() and hold() calls\n\n :param s: string to be written\n :return: None"
27
false
EwilDawe/typy
write
21,526
LDU_FT/hotdoc/hotdoc/get
LDU_FT
[ "<BEGIN>\n## `connect`", "@slot: The method to be called on signal emission", " Connects to @slot\n<END>", "<BEGIN>\n## `connect_after`", "@slot: The method to be called at last stage of signal emission", " Connects to the signal after the signals has been handled by other\n connect c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get the value for `key`. Gives priority to command-line overrides. Args: key: str, the key to get the value for. Returns: object: The value for `key`
"Get the value for `key`.\n\n Gives priority to command-line overrides.\n\n Args:\n key: str, the key to get the value for.\n\n Returns:\n object: The value for `key`"
266
false
hotdoc/hotdoc
get
21,527
LDU_FT/amaas-fintech/amaas-utils-python/compute_hash
LDU_FT
[ "<BEGIN>\n## `random_string`", "Generates a random string of length equal to the length parameter\n<END>", "<BEGIN>\n## `random_date`", "Generates a random \"sensible\" date for use in things like issue dates and maturities\n<END>", "<BEGIN>\n## `dict_camel_to_snake_case`", "Recursively convert camelCased...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_hash API. 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 compute_hash API. 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...
Computes a hash code for the given dictionary that is safe for persistence round trips
"Computes a hash code for the given dictionary that is safe for persistence round trips"
12
false
amaas-fintech/amaas-utils-python
compute_hash
21,528
LDU_FT/adewes/blitzdb/regex_query
LDU_FT
[ "<BEGIN>\n## `commit`", "Commit all pending transactions to the database.", " .. admonition:: Warning", " This operation can be **expensive** in runtime if a large number of\n documents (>100.000) is contained in the database, since it will\n cause all database indexes ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the regex_query API. 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 regex_query API. 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...
Apply regular expression to result of expression.
"Apply regular expression to result of expression."
141
false
adewes/blitzdb
regex_query
21,529
LDU_FT/chukysoria/pyspotify-connect/maybe_raise
LDU_FT
[ "<BEGIN>\n## `load_application_key_file`", "Load your libspotify application key file.", " If called without arguments, it tries to read ``spotify_appkey.key``\n from the current working directory.", " This is an alternative to setting :attr:`application_key` yourself. The\n file m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maybe_raise API. 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 maybe_raise API. 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...
Raise an :exc:`LibError` unless the ``error_type`` is :attr:`ErrorType.OK` or in the ``ignores`` list of error types. Internal method.
"Raise an :exc:`LibError` unless the ``error_type`` is\n :attr:`ErrorType.OK` or in the ``ignores`` list of error types.\n Internal method."
65
false
chukysoria/pyspotify-connect
maybe_raise
21,530
LDU_FT/sander76/aio-powerview-api/activate_scene
LDU_FT
[ "<BEGIN>\n## `sanitize_resources`", "Cleans up incoming scene data", " :param resource: The dict with scene data to be sanitized.\n :returns: Cleaned up dict.\n<END>", "<BEGIN>\n## `create_scene`", "Creates am empty scene.", " Scenemembers need to be added after the scene has been cre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate_scene API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate_scene API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Activate a scene :param scene_id: Scene id. :return:
"Activate a scene\n\n :param scene_id: Scene id.\n :return:"
58
false
sander76/aio-powerview-api
activate_scene
21,531
LDU_FT/tlevine/vlermv/memoize
LDU_FT
[ "<BEGIN>\n## `_get_fn`", "Load a contents, checking that the file was not modified during the read.\n<END>", "<BEGIN>\n## `memoize`", "Memoize/record a function inside this vlermv. ::", " @Vlermv.cache('~/.http')\n def get(url):\n return requests.get(url, auth = ('userna...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the memoize API. Each 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 memoize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Memoize/record a function inside this vlermv. :: @Vlermv.cache('~/.http') def get(url): return requests.get(url, auth = ('username', 'password')) The args and kwargs get passed to the Vlermv with some slight changes. Here are the changes. First, the def...
"Memoize/record a function inside this vlermv. ::\n\n @Vlermv.cache('~/.http')\n def get(url):\n return requests.get(url, auth = ('username', 'password'))\n\n The args and kwargs get passed to the Vlermv with some slight changes.\n Here are the changes.\n\n Firs...
17
false
tlevine/vlermv
memoize
21,532
LDU_FT/TeleSign/python_telesign/get
LDU_FT
[ "<BEGIN>\n## `score`", "Score is an API that delivers reputation scoring based on phone number intelligence, traffic patterns, machine\n learning, and a global data consortium.", " See https://developer.telesign.com/docs/score-api for detailed API documentation.\n<END>", "<BEGIN>\n## `generate_t...
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...
Generic TeleSign REST API GET handler. :param resource: The partial resource URI to perform the request against, as a string. :param params: Body params to perform the GET request with, as a dictionary. :return: The RestClient Response object.
"Generic TeleSign REST API GET handler.\n\n :param resource: The partial resource URI to perform the request against, as a string.\n :param params: Body params to perform the GET request with, as a dictionary.\n :return: The RestClient Response object."
45
false
TeleSign/python_telesign
get
21,533
LDU_FT/alfred82santa/dirty-models/set_field_value
LDU_FT
[ "<BEGIN>\n## `recover_model_from_data`", "Function to reconstruct a model from DirtyModel basic information: original data, the modified and deleted\n fields.\n Necessary for pickle an object\n<END>", "<BEGIN>\n## `recover_dynamic_model_from_data`", "Function to reconstruct a model from DirtyModel basic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_field_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_field_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Set the value to the field modified_data
"Set the value to the field modified_data"
86
false
alfred82santa/dirty-models
set_field_value
21,534
LDU_FT/pytest-dev/pluggy/get_name
LDU_FT
[ "<BEGIN>\n## `create_branch`", "Create a fresh branch from upstream/master\n<END>", "<BEGIN>\n## `get_upstream`", "Find upstream repository for pluggy on the remotes\n<END>", "<BEGIN>\n## `pre_release`", "Generates new docs, release announcements and creates a local tag.\n<END>", "<BEGIN>\n## `_wrapped_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return name for registered plugin or None if not registered.
"Return name for registered plugin or None if not registered."
52
false
pytest-dev/pluggy
get_name
21,535
LDU_FT/schlamar/latexmk.py/need_latex_rerun
LDU_FT
[ "<BEGIN>\n## `_count_citations`", "Counts the citations in an aux-file.", " @return: defaultdict(int) - {citation_name: number, ...}\n<END>", "<BEGIN>\n## `main`", "Set up \"optparse\" and pass the options to\n a new instance of L{LatexMaker}.\n<END>", "<BEGIN>\n## `_parse_texlipse_config`", "Read...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the need_latex_rerun API. 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 need_latex_rerun API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Test for all rerun patterns if they match the output.
"Test for all rerun patterns if they match the output."
27
false
schlamar/latexmk.py
need_latex_rerun
21,536
LDU_FT/rpcope1/PythonConfluenceAPI/get_content_macro_by_macro_id
LDU_FT
[ "<BEGIN>\n## `request_patch`", "Maintains the existing api for Session.request.\n Used by all of the higher level methods, e.g. Session.get.\n The background_callback param allows you to do some processing on the\n response in the background, e.g. call resp.json() so that json parsing\n happens in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_content_macro_by_macro_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_content_macro_by_macro_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Returns the body of a macro (in storage format) with the given id. This resource is primarily used by connect applications that require the body of macro to perform their work. When content is created, if no macroId is specified, then Confluence will generate a random id. The id is persisted as...
"Returns the body of a macro (in storage format) with the given id.\n This resource is primarily used by connect applications that require the body of macro to perform their work.\n\n When content is created, if no macroId is specified, then Confluence will generate a random id.\n The id is persist...
140
false
rpcope1/PythonConfluenceAPI
get_content_macro_by_macro_id
21,537
LDU_FT/insightindustry/validator-collection/is_between
LDU_FT
[ "<BEGIN>\n## `disable_on_env`", "Disable the ``func`` called if its name is present in ``VALIDATORS_DISABLED``.", " :param func: The function/validator to be disabled.\n :type func: callable", " :returns: If disabled, the ``value`` (first positional argument) passed to\n ``func``. If enabled, th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_between API. 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_between API. 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...
Indicate whether ``value`` is greater than or equal to a supplied ``minimum`` and/or less than or equal to ``maximum``. .. note:: This function works on any ``value`` that support comparison operators, whether they are numbers or not. Technically, this means that ``value``, ``minimum``, or `...
"Indicate whether ``value`` is greater than or equal to a supplied ``minimum``\n and/or less than or equal to ``maximum``.\n\n .. note::\n\n This function works on any ``value`` that support comparison operators,\n whether they are numbers or not. Technically, this means that ``value``,\n ``minimum...
599
false
insightindustry/validator-collection
is_between
21,538
LDU_FT/google/apitools/download_setuptools
LDU_FT
[ "<BEGIN>\n## `_urljoin`", "Custom urljoin replacement supporting : before / in url.\n<END>", "<BEGIN>\n## `_SetCredentials`", "Fetch credentials, and set them for this client.", " Note that we can't simply return credentials, since creating them\n may involve side-effecting self.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_setuptools API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_setuptools API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Download setuptools from a specified location and return its filename `version` should be a valid setuptools version number that is available as an egg for download under the `download_base` URL (which should end with a '/'). `to_dir` is the directory where the egg will be downloaded. `delay` is the nu...
"Download setuptools from a specified location and return its filename\n\n `version` should be a valid setuptools version number that is available\n as an egg for download under the `download_base` URL (which should end\n with a '/'). `to_dir` is the directory where the egg will be downloaded.\n `delay` is ...
629
false
google/apitools
download_setuptools
21,539
LDU_FT/kblin/ncbi-genome-download/get_name_and_checksum
LDU_FT
[ "<BEGIN>\n## `_create_list`", "Create a list from the input value.", " If the input is a list already, return it.\n If the input is a comma-separated string, split it.\n<END>", "<BEGIN>\n## `is_compatible_assembly_level`", "Check if a given ncbi assembly level string matches the configured assembly le...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name_and_checksum 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_name_and_checksum API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Extract a full filename and checksum from the checksums list for a file ending in given end.
"Extract a full filename and checksum from the checksums list for a file ending in given end."
56
false
kblin/ncbi-genome-download
get_name_and_checksum
21,540
LDU_FT/rm-hull/luma.led_matrix/display
LDU_FT
[ "<BEGIN>\n## `rainbow`", "A generator that yields 'n' hues from the rainbow in the hex format #RRGGBB.\n By default the saturation and value (from HSV) are both set to 1.\n<END>", "<BEGIN>\n## `minute_change`", "When we reach a minute change, animate it.\n<END>", "<BEGIN>\n## `animation`", "Animate the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display API. Each 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 display API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Takes a 32-bit RGBA :py:mod:`PIL.Image` and dumps it to the daisy-chained APA102 neopixels. If a pixel is not fully opaque, the alpha channel value is used to set the brightness of the respective RGB LED.
"Takes a 32-bit RGBA :py:mod:`PIL.Image` and dumps it to the daisy-chained\n APA102 neopixels. If a pixel is not fully opaque, the alpha channel\n value is used to set the brightness of the respective RGB LED."
29
false
rm-hull/luma.led_matrix
display
21,541
LDU_FT/txamqp/txamqp/wait
LDU_FT
[ "<BEGIN>\n## `from_uri`", "Return an AMQEndpoint instance configured with the given AMQP uri.", " @see: https://www.rabbitmq.com/uri-spec.html\n<END>", "<BEGIN>\n## `connect`", "Connect to the C{protocolFactory} to the AMQP broker specified by the\n URI of this endpoint.", " @param pr...
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...
Return a deferred that will be fired when the event is fired.
"Return a deferred that will be fired when the event is fired."
13
false
txamqp/txamqp
wait
21,542
LDU_FT/msoulier/tftpy/decode
LDU_FT
[ "<BEGIN>\n## `parse`", "This method is used to parse an existing datagram into its\n corresponding TftpPacket object. The buffer is the raw bytes off of\n the network.\n<END>", "<BEGIN>\n## `__create`", "This method returns the appropriate class object corresponding to\n the passed opcode...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode API. Each 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 decode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Decode self.buffer into instance variables. It returns self for easy method chaining.
"Decode self.buffer into instance variables. It returns self for\n easy method chaining."
70
false
msoulier/tftpy
decode
21,543
LDU_FT/beerfactory/hbmqtt/_handle_message_flow
LDU_FT
[ "<BEGIN>\n## `mqtt_subscribe`", ":param topics: array of topics [{'filter':'/a/b', 'qos': 0x00}, ...]\n :return:\n<END>", "<BEGIN>\n## `start`", "Start the broker to serve with the given configuration", " Start method opens network sockets and will start listening for incoming connections....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_message_flow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_message_flow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Handle protocol flow for incoming and outgoing messages, depending on service level and according to MQTT spec. paragraph 4.3-Quality of Service levels and protocol flows :param app_message: PublishMessage to handle :return: nothing.
"Handle protocol flow for incoming and outgoing messages, depending on service level and according to MQTT\n spec. paragraph 4.3-Quality of Service levels and protocol flows\n :param app_message: PublishMessage to handle\n :return: nothing."
110
false
beerfactory/hbmqtt
_handle_message_flow
21,544
LDU_FT/linnarsson-lab/loompy/add_columns
LDU_FT
[ "<BEGIN>\n## `create_append`", "**DEPRECATED** - Use `new` instead; see https://github.com/linnarsson-lab/loompy/issues/42\n<END>", "<BEGIN>\n## `new`", "Create an empty Loom file, and return it as a context manager.\n<END>", "<BEGIN>\n## `create`", "Create a new Loom file from the given data.", "\tArgs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_columns API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_columns API. 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...
Add columns of data and attribute values to the dataset. Args: layers (dict or numpy.ndarray or LayerManager): Either: 1) A N-by-M matrix of float32s (N rows, M columns) in this case columns are added at the default layer 2) A dict {layer_name : matrix} specified so that the matrix (N, M) will be adde...
"Add columns of data and attribute values to the dataset.\n\n\t\tArgs:\n\t\t\tlayers (dict or numpy.ndarray or LayerManager):\n\t\t\t\tEither:\n\t\t\t\t1) A N-by-M matrix of float32s (N rows, M columns) in this case columns are added at the default layer\n\t\t\t\t2) A dict {layer_name : matrix} specified so that the ma...
170
false
linnarsson-lab/loompy
add_columns
21,545
LDU_FT/miquelo/resort/context
LDU_FT
[ "<BEGIN>\n## `insert`", "Build the project.", "\t\t:param resort.engine.execution.Context context:\n\t\t Current execution context.\n<END>", "<BEGIN>\n## `load`", "Load the profile with the given name.", "\t\t:param str prof_name:\n\t\t Profile name.\n\t\t:rtype:\n\t\t ProfileStub\n\t\t:return:\n\t\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Create an exectution context. :rtype: execution.Context :return: The created execution context.
"Create an exectution context.\n\t\t\n\t\t:rtype:\n\t\t execution.Context\n\t\t:return:\n\t\t The created execution context."
125
false
miquelo/resort
context
21,546
LDU_FT/Riparo/nougat/__body_format
LDU_FT
[ "<BEGIN>\n## `is_middleware`", "test whether it is a middleware\n :return: Boolean\n<END>", "<BEGIN>\n## `set_header`", "set response header\n :param key: the key of header\n :param value: the value of header\n<END>", "<BEGIN>\n## `send_http_response`", "generate http response payload and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __body_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __body_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 ext...
format body into different type :param body: :return:
"format body into different type\n :param body:\n :return:"
16
false
Riparo/nougat
__body_format
21,547
LDU_FT/etesync/radicale_storage_etesync/create_collection
LDU_FT
[ "<BEGIN>\n## `discover`", "Discover a list of collections under the given ``path``.", " If ``depth`` is \"0\", only the actual object under ``path`` is\n returned.", " If ``depth`` is anything but \"0\", it is considered as \"1\" and direct\n children are included in the result.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_collection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_collection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create a collection. If the collection already exists and neither ``collection`` nor ``props`` are set, this method shouldn't do anything. Otherwise the existing collection must be replaced. ``collection`` is a list of vobject components. ``props`` are metadata values for the ...
"Create a collection.\n\n If the collection already exists and neither ``collection`` nor\n ``props`` are set, this method shouldn't do anything. Otherwise the\n existing collection must be replaced.\n\n ``collection`` is a list of vobject components.\n\n ``props`` are metadata values...
33
false
etesync/radicale_storage_etesync
create_collection
21,548
LDU_FT/mozilla/mozilla-django-oidc/authenticate
LDU_FT
[ "<BEGIN>\n## `get_next_url`", "Retrieves next url from request", " Note: This verifies that the url is safe before returning it. If the url\n is not safe, this returns None.", " :arg HttpRequest request: the http request\n :arg str redirect_field_name: the name of the field holding the next url", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate API. 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 authenticate API. 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...
Authenticate the request and return a tuple of (user, token) or None if there was no authentication attempt.
"Authenticate the request and return a tuple of (user, token) or None\n if there was no authentication attempt."
49
false
mozilla/mozilla-django-oidc
authenticate
21,549
LDU_FT/mozilla/funfactory/validate_settings
LDU_FT
[ "<BEGIN>\n## `clone_repo`", "Clone the Playdoh repo into a custom path.\n<END>", "<BEGIN>\n## `init_pkg`", "Initializes a custom named package module.", " This works by replacing all instances of 'project' with a custom module\n name.\n<END>", "<BEGIN>\n## `create_settings`", "Creates a local sett...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_settings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_settings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Raise an error in prod if we see any insecure settings. This used to warn during development but that was changed in 71718bec324c2561da6cc3990c927ee87362f0f7
"Raise an error in prod if we see any insecure settings.\n\n This used to warn during development but that was changed in\n 71718bec324c2561da6cc3990c927ee87362f0f7"
52
false
mozilla/funfactory
validate_settings
21,550
LDU_FT/fredRos/pypmc/perp
LDU_FT
[ "<BEGIN>\n## `r_value`", "Calculate the Gelman-Rubin R value (Chapter 2.2 in [GR92]_).", " The R value can be used to quantify mixing of \"multiple iterative\n simulations\" (e.g. Markov Chains) in parameter space. An R value\n \"close to one\" indicates that all chains explored the same region\n o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the perp API. Each 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 perp API. Each 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...
r"""Calculate the normalized perplexity :math:`\mathcal{P}` of samples with ``weights`` :math:`\omega_i`. :math:`\mathcal{P}=0` is terrible and :math:`\mathcal{P}=1` is perfect. .. math:: \mathcal{P} = exp(H) / N where .. math:: H = - \sum_{i=1}^N \bar{\omega}_i log ~ \bar{\omeg...
"r\"\"\"Calculate the normalized perplexity :math:`\\mathcal{P}` of samples\n with ``weights`` :math:`\\omega_i`. :math:`\\mathcal{P}=0` is\n terrible and :math:`\\mathcal{P}=1` is perfect.\n\n .. math::\n\n \\mathcal{P} = exp(H) / N\n\n where\n\n .. math::\n\n H = - \\sum_{i=1}^N \\bar{\\o...
279
false
fredRos/pypmc
perp
21,551
LDU_FT/tgbugs/ontquery/process_response
LDU_FT
[ "<BEGIN>\n## `examples`", "Examples of how to use. Default are that some functions are commented out in order\n to not cause harm to existing metadata within the database.\n<END>", "<BEGIN>\n## `process_response`", "Checks for correct data response and status codes\n<END>", "<BEGIN>\n## `process_syno...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Checks for correct data response and status codes
"Checks for correct data response and status codes"
44
false
tgbugs/ontquery
process_response
21,552
LDU_FT/ShawnClake/Apitax/rename_script
LDU_FT
[ "<BEGIN>\n## `command`", "Execute a Command", " Execute a command # noqa: E501", " :param execute: The data needed to execute this command\n :type execute: dict | bytes", " :rtype: Response\n<END>", "<BEGIN>\n## `endpoint_catalog`", "Retrieve the endpoint catalog", " Retrieve the endpoi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename_script API. 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 rename_script API. 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...
Rename a script Rename a script # noqa: E501 :param rename: The data needed to save this script :type rename: dict | bytes :rtype: Response
"Rename a script\n\n Rename a script # noqa: E501\n\n :param rename: The data needed to save this script\n :type rename: dict | bytes\n\n :rtype: Response"
66
false
ShawnClake/Apitax
rename_script
21,553
LDU_FT/delfick/nose-of-yeti/find_config_file
LDU_FT
[ "<BEGIN>\n## `normalise_key`", "Make sure key is a valid python attribute\n<END>", "<BEGIN>\n## `use_options`", "If extractor isn't specified, then just update self.values with options.", " Otherwise update values with whatever the result of calling extractor with\n our template and th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_config_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_config_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 ...
Find where our config file is if there is any If the value for the config file is a default and it doesn't exist then it is silently ignored. If however, the value isn't a default and it doesn't exist, an error is raised
"Find where our config file is if there is any\n\n If the value for the config file is a default and it doesn't exist\n then it is silently ignored.\n\n If however, the value isn't a default and it doesn't exist, an error is raised"
59
false
delfick/nose-of-yeti
find_config_file
21,554
LDU_FT/ironfroggy/straight.plugin/first
LDU_FT
[ "<BEGIN>\n## `produce`", "Produce a new set of plugins, treating the current set as plugin\n factories.\n<END>", "<BEGIN>\n## `call`", "Call a common method on all the plugins, if it exists.\n<END>", "<BEGIN>\n## `first`", "Call a common method on all the plugins, if it exists. Return the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the first API. Each 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 first API. Each 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...
Call a common method on all the plugins, if it exists. Return the first result (the first non-None)
"Call a common method on all the plugins, if it exists. Return the\n first result (the first non-None)"
11
false
ironfroggy/straight.plugin
first
21,555
LDU_FT/Ceasar/staticjinja/is_partial
LDU_FT
[ "<BEGIN>\n## `should_handle`", "Check if an event should be handled.", " An event should be handled if a file in the searchpath was modified.", " :param event_type: a string, representing the type of event", " :param filename: the path to the file that triggered the event.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_partial API. 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_partial API. 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...
Check if a file is a partial. Partial files are not rendered, but they are used in rendering templates. A file is considered a partial if it or any of its parent directories are prefixed with an ``'_'``. :param filename: the name of the file to check
"Check if a file is a partial.\n\n Partial files are not rendered, but they are used in rendering\n templates.\n\n A file is considered a partial if it or any of its parent directories\n are prefixed with an ``'_'``.\n\n :param filename: the name of the file to check"
71
false
Ceasar/staticjinja
is_partial
21,556
LDU_FT/henrysher/kotocore/construct_for
LDU_FT
[ "<BEGIN>\n## `get_version`", "Returns a string-ified version number.", " Optionally accepts a ``full`` parameter, which if ``True``, will include\n any pre-release information. (Default: ``False``)\n<END>", "<BEGIN>\n## `requires_loaded`", "A decorator to ensure the resource data is loaded.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct_for API. 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 construct_for API. 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...
Builds a new, specialized ``Connection`` subclass for a given service. This will introspect a service, determine all the API calls it has & constructs a brand new class with those methods on it. :param service_name: The name of the service to construct a connection for. Ex. ``sqs``...
"Builds a new, specialized ``Connection`` subclass for a given service.\n\n This will introspect a service, determine all the API calls it has &\n constructs a brand new class with those methods on it.\n\n :param service_name: The name of the service to construct a connection\n for. Ex. ...
198
false
henrysher/kotocore
construct_for
21,557
LDU_FT/eXamadeus/godaddypy/update_record_ip
LDU_FT
[ "<BEGIN>\n## `_request_submit`", "A helper function that will wrap any requests we make.", " :param func: a function reference to the requests method to invoke\n :param kwargs: any extra arguments that requests.request takes", " :type func: (url: Any, data: Any, json: Any, kwargs: Dict)\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_record_ip API. 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_record_ip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Update the IP address(es) for (a) domain(s) specified by type and name. :param ip: the new IP for the DNS record (ex. '123.1.2.255') :param domain: the domain where the DNS belongs to (ex. 'example.com') :param name: the DNS record name to be updated (ex. 'dynamic') :param record_type: ...
"Update the IP address(es) for (a) domain(s) specified by type and name.\n\n :param ip: the new IP for the DNS record (ex. '123.1.2.255')\n :param domain: the domain where the DNS belongs to (ex. 'example.com')\n :param name: the DNS record name to be updated (ex. 'dynamic')\n :param record_...
42
false
eXamadeus/godaddypy
update_record_ip
21,558
LDU_FT/InfoAgeTech/django-core/get_md5_for_file
LDU_FT
[ "<BEGIN>\n## `build_link`", "Builds an html link.", " :param href: link for the anchor element\n :param text: text for the anchor element\n :param attrs: other attribute kwargs", " >>> build_link('xyz.com', 'hello', 'big')\n u'<a href=\"xyz.com\" class=\"big\">hello</a>'\n >>> build_link('xy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_md5_for_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_md5_for_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 ...
Get the md5 hash for a file. :param file: the file to get the md5 hash for
"Get the md5 hash for a file.\n\n :param file: the file to get the md5 hash for"
206
false
InfoAgeTech/django-core
get_md5_for_file
21,559
LDU_FT/PythonCharmers/python-future/build_opener
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 build_opener API. 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 build_opener API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Create an opener object from a list of handlers. The opener will use several default handlers, including support for HTTP, FTP and when applicable HTTPS. If any of the handlers passed as arguments are subclasses of the default handlers, the default handlers will not be used.
"Create an opener object from a list of handlers.\n\n The opener will use several default handlers, including support\n for HTTP, FTP and when applicable HTTPS.\n\n If any of the handlers passed as arguments are subclasses of the\n default handlers, the default handlers will not be used."
1,185
true
PythonCharmers/python-future
build_opener
21,560
LDU_FT/dedupeio/dedupe/markPairs
LDU_FT
[ "<BEGIN>\n## `getCentroid`", "Takes in a list of attribute values for a field,\n evaluates the centroid using the comparator,\n & returns the centroid (i.e. the 'best' value for the field)\n<END>", "<BEGIN>\n## `getCanonicalRep`", "Given a list of records within a duplicate cluster, constructs a\n ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the markPairs API. 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 markPairs API. 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...
Argument : labeled_pairs -- A dictionary with two keys, `match` and `distinct` the values are lists that can contain pairs of records
"Argument :\n\n labeled_pairs -- A dictionary with two keys, `match` and `distinct`\n the values are lists that can contain pairs of records"
136
false
dedupeio/dedupe
markPairs
21,561
LDU_FT/rhgrant10/Groupy/rejoin
LDU_FT
[ "<BEGIN>\n## `from_data`", "Create an attachment from data.", " :param str type: attachment type\n :param kwargs data: additional attachment data\n :return: an attachment subclass object\n :rtype: `~groupy.api.attachments.Attachment`\n<END>", "<BEGIN>\n## `from_file`", "Create a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rejoin API. Each 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 rejoin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Rejoin a former group. :param str group_id: the group_id of a group :return: the group :rtype: :class:`~groupy.api.groups.Group`
"Rejoin a former group.\n\n :param str group_id: the group_id of a group\n :return: the group\n :rtype: :class:`~groupy.api.groups.Group`"
194
false
rhgrant10/Groupy
rejoin
21,562
LDU_FT/aht/stream.py/Aitken
LDU_FT
[ "<BEGIN>\n## `returned`", "Generate a random walk and return True if the walker has returned to\n\tthe origin after taking `n` steps.\n<END>", "<BEGIN>\n## `first_return`", "Generate a random walk and return its length upto the moment\n\tthat the walker first returns to the origin.", "\tIt is mathematically...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Aitken API. Each 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 Aitken API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Accelerate the convergence of the a series using Aitken's delta-squared process (SCIP calls it Euler).
"Accelerate the convergence of the a series\n\tusing Aitken's delta-squared process (SCIP calls it Euler)."
35
false
aht/stream.py
Aitken
21,563
LDU_FT/AdvancedClimateSystems/uModbus/read_discrete_inputs
LDU_FT
[ "<BEGIN>\n## `pdu_to_function_code_or_raise_error`", "Parse response PDU and return of :class:`ModbusFunction` or\n raise error.", " :param resp_pdu: PDU of response.\n :return: Subclass of :class:`ModbusFunction` matching the response.\n :raises ModbusError: When response contains error code.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_discrete_inputs 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 read_discrete_inputs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return ADU for Modbus function code 02: Read Discrete Inputs. :param slave_id: Number of slave. :return: Byte array with ADU.
"Return ADU for Modbus function code 02: Read Discrete Inputs.\n\n :param slave_id: Number of slave.\n :return: Byte array with ADU."
186
false
AdvancedClimateSystems/uModbus
read_discrete_inputs
21,564
LDU_FT/danijar/layered/stop
LDU_FT
[ "<BEGIN>\n## `split`", "Utility function that can be used within the parse() implementation of\n sub classes to split a list of example into two lists for training and\n testing.\n<END>", "<BEGIN>\n## `_find_symbol`", "Find the symbol of the specified name inside the module or raise an\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API. Each 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 stop API. Each 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...
Close the window and stops the worker thread. The main thread will resume with the next command after the `start()` call.
"Close the window and stops the worker thread. The main thread will\n resume with the next command after the `start()` call."
18
false
danijar/layered
stop
21,565
LDU_FT/saulshanabrook/django-simpleimages/pil_image_to_django_file
LDU_FT
[ "<BEGIN>\n## `track_model`", "Perform designated transformations on model, when it saves.", " Calls :py:func:`~simpleimages.utils.perform_transformation`\n on every model saves using\n :py:data:`django.db.models.signals.post_save`.", " It uses the ``update_fields`` kwarg to tell what fields it sho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pil_image_to_django_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pil_image_to_django_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Gets a PIL image ready to be able to be saved using :py:meth:`django.db.models.fields.files.FieldFile.save` It converts the mode first to ``RGB`` or ``L``, so that it can then save it as a ``JPEG``. It will save it as a progressive ``JPEG`` with a quality of :py:attr:`IMAGE_QUALITY`. ...
"Gets a PIL image ready to be able to be saved using\n :py:meth:`django.db.models.fields.files.FieldFile.save`\n\n It converts the mode first to ``RGB`` or ``L``, so that it can\n then save it as a ``JPEG``. It will save it as a progressive\n ``JPEG`` with a quality of :py:attr:`IMAGE_QUALIT...
37
false
saulshanabrook/django-simpleimages
pil_image_to_django_file
21,566
LDU_FT/datajoint/datajoint-python/describe
LDU_FT
[ "<BEGIN>\n## `is_foreign_key`", ":param line: a line from the table definition\n :return: true if the line appears to be a foreign key definition\n<END>", "<BEGIN>\n## `compile_foreign_key`", ":param line: a line from a table definition\n :param context: namespace containing referenced objects\n :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe API. 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 describe API. 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...
:return: the definition string for the relation using DataJoint DDL. This does not yet work for aliased foreign keys.
":return: the definition string for the relation using DataJoint DDL.\n This does not yet work for aliased foreign keys."
198
false
datajoint/datajoint-python
describe
21,567
LDU_FT/tensorflow/tensorboard/_create_interval_filter
LDU_FT
[ "<BEGIN>\n## `add_event`", "Adds an event to the event file.", " Args:\n event: An `Event` protocol buffer.\n<END>", "<BEGIN>\n## `write`", "Enqueue the given bytes to be written asychronously\n<END>", "<BEGIN>\n## `flush`", "Write all the enqueued bytestring before this flush call to di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_interval_filter 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 _create_interval_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Returns a function that checkes whether a number belongs to an interval. Args: interval: A tensorboard.hparams.Interval protobuf describing the interval. Returns: A function taking a number (a float or an object of a type in six.integer_types) that returns True if the number belongs to (the closed) ...
"Returns a function that checkes whether a number belongs to an interval.\n\n Args:\n interval: A tensorboard.hparams.Interval protobuf describing the interval.\n Returns:\n A function taking a number (a float or an object of a type in\n six.integer_types) that returns True if the number belongs to (the clos...
1,768
true
tensorflow/tensorboard
_create_interval_filter
21,568
LDU_FT/ionelmc/python-cogen/watch
LDU_FT
[ "<BEGIN>\n## `run_op`", "Handle the operation:", " * if coro is in STATE_RUNNING, send or throw the given op\r", " * if coro is in STATE_NEED_INIT, call the init function and if it\r\n doesn't return a generator, set STATE_COMPLETED and set the result\r\n to whatever the functi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watch API. Each 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 watch API. Each 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...
This is a coroutine that runs permanently for each participant to the chat. If the participant has more than 10 unpulled messages this coroutine will die. `pubsub` is a queue that hosts the messages from all the participants. * subscribe registers this coro to the queue ...
"This is a coroutine that runs permanently for each participant to the\r\n chat. If the participant has more than 10 unpulled messages this\r\n coroutine will die.\r\n\r\n `pubsub` is a queue that hosts the messages from all the\r\n participants.\r\n * subscribe registers this coro ...
175
false
ionelmc/python-cogen
watch
21,569
LDU_FT/saeschdivara/ArangoPy/remove
LDU_FT
[ "<BEGIN>\n## `all`", "Returns all documents of the collection", " :param collection Collection instance\n :param skip The number of documents to skip in the query\n :param limit The maximal amount of documents to return. The skip is applied before the limit restriction.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each 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 remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Deletes an index with id :param id string/document-handle
"Deletes an index with id\n\n :param id string/document-handle"
115
false
saeschdivara/ArangoPy
remove
21,570
LDU_FT/CartoDB/cartoframes/get_map_template
LDU_FT
[ "<BEGIN>\n## `get_scheme_cartocss`", "Get TurboCARTO CartoCSS based on input parameters\n<END>", "<BEGIN>\n## `custom`", "Create a custom scheme.", " Args:\n colors (list of str): List of hex values for styling data\n bins (int, optional): Number of bins to style by. If not given, the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_map_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_map_template API. 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 a map template based on custom parameters supplied
"Creates a map template based on custom parameters supplied"
217
false
CartoDB/cartoframes
get_map_template
21,571
LDU_FT/oceanprotocol/squid-py/register
LDU_FT
[ "<BEGIN>\n## `get_requests_session`", "Set connection pool maxsize and block value to avoid `connection pool full` warnings.", " :return: requests session\n<END>", "<BEGIN>\n## `request_tokens`", "Request an amount of tokens for a particular address.\n This transaction has gas cost", " :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. 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 register API. 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...
Register or update a DID on the block chain using the DIDRegistry smart contract. :param did: DID to register/update, can be a 32 byte or hexstring :param checksum: hex str hash of TODO :param url: URL of the resolved DID :param account: instance of Account to use to register/update the...
"Register or update a DID on the block chain using the DIDRegistry smart contract.\n\n :param did: DID to register/update, can be a 32 byte or hexstring\n :param checksum: hex str hash of TODO\n :param url: URL of the resolved DID\n :param account: instance of Account to use to register/upda...
417
false
oceanprotocol/squid-py
register
21,572