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/metric-learn/metric-learn/predict | LDU_FT | [
"<BEGIN>\n## `fit`",
"Create constraints from labels and learn the LSML model.",
" Parameters\n ----------\n X : (n x d) matrix\n Input data, where each row corresponds to a single instance.",
" y : (n) array-like\n Data labels.",
" random_state : numpy.random.RandomState, optio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Predicts the ordering between sample distances in input quadruplets.
For each quadruplet, returns 1 if the quadruplet is in the right order (
first pair is more similar than second pair), and -1 if not.
Parameters
----------
quadruplets : array-like, shape=(n_quadruplets, 4, n_features) or
... | "Predicts the ordering between sample distances in input quadruplets.\n\n For each quadruplet, returns 1 if the quadruplet is in the right order (\n first pair is more similar than second pair), and -1 if not.\n\n Parameters\n ----------\n quadruplets : array-like, shape=(n_quadruplets, 4, n_features) or... | 132 | false | metric-learn/metric-learn | predict | 29,073 | |
LDU_FT/idlesign/django-sitegate/get_arg_or_attr | LDU_FT | [
"<BEGIN>\n## `verify_email`",
"Verifies an account activation code a user received by e-mail.",
" Requires Messages Django Contrib.",
" :param Requset request:\n :param str code:\n :param str redirect_to:\n :return:\n<END>",
"<BEGIN>\n## `get_template_name`",
"Returns template path, either ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_arg_or_attr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_arg_or_attr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Returns flow argument, as provided with sitegate decorators
or attribute set as a flow class attribute or default. | "Returns flow argument, as provided with sitegate decorators\n or attribute set as a flow class attribute or default." | 31 | false | idlesign/django-sitegate | get_arg_or_attr | 29,074 | |
LDU_FT/frascoweb/frasco/add_view_file_mapping | LDU_FT | [
"<BEGIN>\n## `load_actions`",
"Each item can be an action name as a string or a dict. When using a dict,\n one key/item pair must be the action name and its options and the rest action\n decorator names and their options.\n Example:\n load_actions([\"login_required\", {\"flash\": {\"message\": \"h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_view_file_mapping API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_view_file_mapping API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Adds a mapping between a file and a view class.
Pattern can be an extension in the form .EXT or a filename. | "Adds a mapping between a file and a view class.\n Pattern can be an extension in the form .EXT or a filename." | 80 | false | frascoweb/frasco | add_view_file_mapping | 29,075 | |
LDU_FT/lxc/python2-lxc/rename | LDU_FT | [
"<BEGIN>\n## `attach_run_command`",
"Run a command when attaching",
" Please do not call directly, this will execvp the command.\n This is to be used in conjunction with the attach method\n of a container.\n<END>",
"<BEGIN>\n## `arch_to_personality`",
"Determine the process personality ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename API.
Each 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 rename API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Rename the container.
On success, returns the new Container object.
On failure, returns False. | "Rename the container.\n On success, returns the new Container object.\n On failure, returns False." | 24 | false | lxc/python2-lxc | rename | 29,076 | |
LDU_FT/psd-tools/psd-tools/write_fmt | LDU_FT | [
"<BEGIN>\n## `open`",
"Open the smart object as binary IO.",
" :param external_dir: Path to the directory of the external file.",
" Example::",
" with layer.smart_object.open() as f:\n data = f.read()\n<END>",
"<BEGIN>\n## `data`",
"Embedded file content, or empty... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_fmt API.
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 write_fmt API.
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... | Writes data to ``fp`` according to ``fmt``. | "Writes data to ``fp`` according to ``fmt``." | 173 | false | psd-tools/psd-tools | write_fmt | 29,077 | |
LDU_FT/HPAC/matchpy/symbol | LDU_FT | [
"<BEGIN>\n## `substitute`",
"Replaces variables in the given *expression* using the given *substitution*.",
" >>> print(substitute(f(x_), {'x': a}))\n f(a)",
" If nothing was substituted, the original expression is returned:",
" >>> expression = f(x_)\n >>> result = substitute(expression, {'y... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the symbol API.
Each 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 symbol API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create a `SymbolWildcard` that matches a single `Symbol` argument.
Args:
name:
Optional variable name for the wildcard.
symbol_type:
An optional subclass of `Symbol` to further limit which kind of symbols are
matched by the wildcard.
... | "Create a `SymbolWildcard` that matches a single `Symbol` argument.\n\n Args:\n name:\n Optional variable name for the wildcard.\n symbol_type:\n An optional subclass of `Symbol` to further limit which kind of symbols are\n matched by the wildcar... | 324 | false | HPAC/matchpy | symbol | 29,078 | |
LDU_FT/StanfordVL/robosuite/_gripper_visualization | LDU_FT | [
"<BEGIN>\n## `clear_objects`",
"Clears objects with name @obj out of the task space. This is useful\n for supporting task modes with single types of objects, as in\n @self.single_object_mode without changing the model definition.\n<END>",
"<BEGIN>\n## `staged_rewards`",
"Returns staged rewards b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gripper_visualization 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 _gripper_visualization API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Do any needed visualization here. Overrides superclass implementations. | "Do any needed visualization here. Overrides superclass implementations." | 354 | false | StanfordVL/robosuite | _gripper_visualization | 29,079 | |
LDU_FT/ouroboroscoding/format-oc-python/valid | LDU_FT | [
"<BEGIN>\n## `default`",
"Default",
"\t\tCalled when the regular Encoder can't figure out what to do with the type",
"\t\tArgs:\n\t\t\tself (CEncoder): A pointer to the current instance\n\t\t\tobj (mixed): An unknown object that needs to be encoded",
"\t\tReturns:\n\t\t\tstr: A valid JSON string representin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valid API.
Each 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 valid API.
Each 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... | Valid
Checks if a value is valid based on the instance's values
Arguments:
value {mixed} -- The value to validate
include_name {bool} -- If true, Tree's name will be prepended to
all error keys
Returns:
bool | "Valid\n\n\t\tChecks if a value is valid based on the instance's values\n\n\t\tArguments:\n\t\t\tvalue {mixed} -- The value to validate\n\t\t\tinclude_name {bool} -- If true, Tree's name will be prepended to\n\t\t\t\tall error keys\n\n\t\tReturns:\n\t\t\tbool" | 155 | false | ouroboroscoding/format-oc-python | valid | 29,080 | |
LDU_FT/tensorflow/tensor2tensor/conv_block_downsample | LDU_FT | [
"<BEGIN>\n## `paracrawl_v3_pairs`",
"Generates raw (English, other) pairs from a ParaCrawl V3.0 data file.",
" Args:\n paracrawl_file: A ParaCrawl V3.0 en-.. data file.\n Yields:\n Pairs of (sentence_en, sentence_xx), as Unicode strings.\n Raises:\n StopIteration: If the file ends while this method ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the conv_block_downsample 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 conv_block_downsample API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Implements a downwards-striding conv block, like Xception exit flow. | "Implements a downwards-striding conv block, like Xception exit flow." | 4,769 | true | tensorflow/tensor2tensor | conv_block_downsample | 29,081 | |
LDU_FT/PaulHancock/Aegean/save_region | LDU_FT | [
"<BEGIN>\n## `classify_catalog`",
"Look at a list of sources and split them according to their class.",
" Parameters\n ----------\n catalog : iterable\n A list or iterable object of {SimpleSource, IslandSource, OutputSource} objects, possibly mixed.\n Any other objects will be silently ig... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_region API.
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 save_region API.
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... | Save the given region to a file
Parameters
----------
region : :class:`AegeanTools.regions.Region`
A region.
filename : str
Output file name. | "Save the given region to a file\n\n Parameters\n ----------\n region : :class:`AegeanTools.regions.Region`\n A region.\n\n filename : str\n Output file name." | 771 | false | PaulHancock/Aegean | save_region | 29,082 | |
LDU_FT/GaretJax/lancet/logout | LDU_FT | [
"<BEGIN>\n## `load_config`",
"Loads and parses an INI style configuration file using Python's built-in\n configparser module. If path is specified, load it.\n If ``defaults`` (a list of strings) is given, try to load each entry as a\n file, without throwing any error if the operation fails.\n If ``def... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logout API.
Each 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 logout API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Forget saved passwords for the web services. | "Forget saved passwords for the web services." | 50 | false | GaretJax/lancet | logout | 29,083 | |
LDU_FT/inveniosoftware-attic/invenio-upgrader/post_upgrade_checks | LDU_FT | [
"<BEGIN>\n## `has_table`",
"Return True if table exists, False otherwise.\n<END>",
"<BEGIN>\n## `pending`",
"Command for showing upgrades ready to be applied.\n<END>",
"<BEGIN>\n## `applied`",
"Command for showing all upgrades already applied.\n<END>",
"<BEGIN>\n## `release`",
"Create a new release up... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_upgrade_checks 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 post_upgrade_checks 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... | Run post-upgrade checks after applying all pending upgrades.
Post checks may be used to emit warnings encountered when applying an
upgrade, but post-checks can also be used to advice the user to run
re-indexing or similar long running processes.
Post-checks may query for user-input, bu... | "Run post-upgrade checks after applying all pending upgrades.\n\n Post checks may be used to emit warnings encountered when applying an\n upgrade, but post-checks can also be used to advice the user to run\n re-indexing or similar long running processes.\n\n Post-checks may query for user-in... | 59 | false | inveniosoftware-attic/invenio-upgrader | post_upgrade_checks | 29,084 | |
LDU_FT/usc-isi-i2/dig-sparkutil/dict_minus | LDU_FT | [
"<BEGIN>\n## `addClusterId`",
":param line:\n reads all the ads in particular cluster, takes the hash of those uri's and appends that as cluster_id\n<END>",
"<BEGIN>\n## `show_partitioning`",
"Seems to be significantly more expensive on cluster than locally\n<END>",
"<BEGIN>\n## `dict_minus`",
"De... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict_minus API.
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 dict_minus API.
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... | Delete key(s) from dict if exists, returning resulting dict | "Delete key(s) from dict if exists, returning resulting dict" | 12 | false | usc-isi-i2/dig-sparkutil | dict_minus | 29,085 | |
LDU_FT/lebinh/aq/convert_tags_to_dict | LDU_FT | [
"<BEGIN>\n## `convert_tags_to_dict`",
"Convert AWS inconvenient tags model of a list of {\"Key\": <key>, \"Value\": <value>} pairs\n to a dict of {<key>: <value>} for easier querying.",
" This returns a proxied object over given item to return a different tags format as the tags\n attribute is read-onl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_tags_to_dict 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 convert_tags_to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Convert AWS inconvenient tags model of a list of {"Key": <key>, "Value": <value>} pairs
to a dict of {<key>: <value>} for easier querying.
This returns a proxied object over given item to return a different tags format as the tags
attribute is read-only and we cannot modify it directly. | "Convert AWS inconvenient tags model of a list of {\"Key\": <key>, \"Value\": <value>} pairs\n to a dict of {<key>: <value>} for easier querying.\n\n This returns a proxied object over given item to return a different tags format as the tags\n attribute is read-only and we cannot modify it directly." | 16 | false | lebinh/aq | convert_tags_to_dict | 29,086 | |
LDU_FT/twisted/vertex/shutdown | LDU_FT | [
"<BEGIN>\n## `enregister`",
"Register a new account and return a Deferred that fires if it worked.",
" @param svc: a Q2QService",
" @param newAddress: a Q2QAddress object",
" @param password: a shared secret (str)\n<END>",
"<BEGIN>\n## `connectCached`",
"See module docstring",
" @param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shutdown API.
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 shutdown API.
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... | Disconnect all cached connections.
@returns: a deferred that fires once all connection are disconnected.
@rtype: L{Deferred} | "Disconnect all cached connections.\n\n @returns: a deferred that fires once all connection are disconnected.\n @rtype: L{Deferred}" | 191 | false | twisted/vertex | shutdown | 29,087 | |
LDU_FT/simon-anders/htseq/make_feature_dict | LDU_FT | [
"<BEGIN>\n## `parse_GFF_attribute_string`",
"Parses a GFF attribute string and returns it as a dictionary.",
" If 'extra_return_first_value' is set, a pair is returned: the dictionary\n and the value of the first attribute. This might be useful if this is the\n ID.\n<END>",
"<BEGIN>\n## `make_feature... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_feature_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_feature_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | A feature dict is a convenient way to organize a sequence of Feature
object (which you have got, e.g., from parse_GFF).
The function returns a dict with all the feature types as keys. Each value
of this dict is again a dict, now of feature names. The values of this dict
is a list of feature.
An ex... | "A feature dict is a convenient way to organize a sequence of Feature\n object (which you have got, e.g., from parse_GFF).\n\n The function returns a dict with all the feature types as keys. Each value\n of this dict is again a dict, now of feature names. The values of this dict\n is a list of feature.\n\n ... | 28 | false | simon-anders/htseq | make_feature_dict | 29,088 | |
LDU_FT/inveniosoftware/invenio-oauth2server/access_token | LDU_FT | [
"<BEGIN>\n## `require_api_auth`",
"Decorator to require API authentication using OAuth token.",
" :param allow_anonymous: Allow access without OAuth token\n (default: ``False``).\n<END>",
"<BEGIN>\n## `require_oauth_scopes`",
"r\"\"\"Decorator to require a list of OAuth scopes.",
" Decorator ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the access_token API.
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 access_token API.
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... | Token view handles exchange/refresh access tokens. | "Token view handles exchange/refresh access tokens." | 92 | false | inveniosoftware/invenio-oauth2server | access_token | 29,089 | |
LDU_FT/joowani/quadriga/buy_market_order | LDU_FT | [
"<BEGIN>\n## `_validate_order_book`",
"Check if the given order book is valid.",
" :param book: Order book name.\n :type book: str | unicode\n :raise InvalidOrderBookError: If an invalid order book is given.\n<END>",
"<BEGIN>\n## `_validate_currency`",
"Check if the given order book is ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the buy_market_order API.
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 buy_market_order API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Place a buy order at market price.
:param amount: Amount of major currency to buy at market price.
:type amount: int | float | str | unicode | decimal.Decimal
:return: Order details.
:rtype: dict | "Place a buy order at market price.\n\n :param amount: Amount of major currency to buy at market price.\n :type amount: int | float | str | unicode | decimal.Decimal\n :return: Order details.\n :rtype: dict" | 58 | false | joowani/quadriga | buy_market_order | 29,090 | |
LDU_FT/rshk/python-libxdo/set_desktop_for_window | LDU_FT | [
"<BEGIN>\n## `_errcheck`",
"Error checker for functions returning an integer indicating\n success (0) / failure (1).",
" Raises a XdoException in case of error, otherwise just\n returns ``None`` (returning the original code, 0, would be\n useless anyways..)\n<END>",
"<BEGIN>\n## `move_mouse`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_desktop_for_window API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_desktop_for_window API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Move a window to another desktop
Uses _NET_WM_DESKTOP of the EWMH spec.
:param wid: the window to move
:param desktop: the desktop destination for the window | "Move a window to another desktop\n Uses _NET_WM_DESKTOP of the EWMH spec.\n\n :param wid: the window to move\n :param desktop: the desktop destination for the window" | 125 | false | rshk/python-libxdo | set_desktop_for_window | 29,091 | |
LDU_FT/ga4gh/ga4gh-client/search_variants | LDU_FT | [
"<BEGIN>\n## `_run_search_request`",
"Runs the specified request at the specified object_name and\n instantiates an object of the specified class. We yield each object in\n listAttr. If pages of results are present, repeat this process\n until the pageToken is null.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_variants API.
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 search_variants API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Returns an iterator over the Variants fulfilling the specified
conditions from the specified VariantSet.
:param str variant_set_id: The ID of the
:class:`ga4gh.protocol.VariantSet` of interest.
:param int start: Required. The beginning of the window (0-based,
inclusive) ... | "Returns an iterator over the Variants fulfilling the specified\n conditions from the specified VariantSet.\n\n :param str variant_set_id: The ID of the\n :class:`ga4gh.protocol.VariantSet` of interest.\n :param int start: Required. The beginning of the window (0-based,\n incl... | 104 | false | ga4gh/ga4gh-client | search_variants | 29,092 | |
LDU_FT/JohnVinyard/zounds/_gradient_penalty | LDU_FT | [
"<BEGIN>\n## `validate`",
"Ensure that the size of the dimension matches the number of bands in the\n scale",
" Raises:\n ValueError: when the dimension size and number of bands don't match\n<END>",
"<BEGIN>\n## `resampled`",
"Create a basic processing pipeline that can resample al... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gradient_penalty API.
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 _gradient_penalty API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Compute the norm of the gradients for each sample in a batch, and
penalize anything on either side of unit norm | "Compute the norm of the gradients for each sample in a batch, and\n penalize anything on either side of unit norm" | 97 | false | JohnVinyard/zounds | _gradient_penalty | 29,093 | |
LDU_FT/cltk/cltk/tokenize | LDU_FT | [
"<BEGIN>\n## `transcribe`",
"Accepts a word and returns a string of an approximate pronounciation (IPA)\n<END>",
"<BEGIN>\n## `syllabify`",
"Syllabifier module for Middle High German",
" The algorithm works by applying the MOP(Maximal Onset Principle)\n on open syllables. For closed syllables,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Method for tokenizing sentences with pretrained punkt models; can
be overridden by language-specific tokenizers.
:rtype: list
:param text: text to be tokenized into sentences
:type text: str
:param model: tokenizer object to used # Should be in init?
:type model: object | "Method for tokenizing sentences with pretrained punkt models; can\n be overridden by language-specific tokenizers.\n\n :rtype: list\n :param text: text to be tokenized into sentences\n :type text: str\n :param model: tokenizer object to used # Should be in init?\n :type model:... | 1,301 | true | cltk/cltk | tokenize | 29,094 | |
LDU_FT/google/neuroglancer/stop | LDU_FT | [
"<BEGIN>\n## `stop`",
"Stop the server, invalidating any viewer URLs.",
" This allows any previously-referenced data arrays to be garbage collected if there are no other\n references to them.\n<END>",
"<BEGIN>\n## `defer_callback`",
"Register `callback` to run in the server event loop thread.\n<END>",... | 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... | Stop the server, invalidating any viewer URLs.
This allows any previously-referenced data arrays to be garbage collected if there are no other
references to them. | "Stop the server, invalidating any viewer URLs.\n\n This allows any previously-referenced data arrays to be garbage collected if there are no other\n references to them." | 46 | false | google/neuroglancer | stop | 29,095 | |
LDU_FT/ooici/elasticpy/search_simple | LDU_FT | [
"<BEGIN>\n## `ids`",
"http://www.elasticsearch.org/guide/reference/query-dsl/ids-filter.html\nFilters documents that only have the provided ids. Note, this filter does not require the _id field to be indexed since it works using the _uid field.\n<END>",
"<BEGIN>\n## `geo_bounding_box`",
"http://www.elasticsea... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_simple API.
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 search_simple API.
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... | ElasticSearch.search_simple(index,itype,key,search_term)
Usage:
> es = ElasticSearch()
> es.search_simple('twitter','users','name','kim') | "ElasticSearch.search_simple(index,itype,key,search_term)\n Usage:\n > es = ElasticSearch()\n > es.search_simple('twitter','users','name','kim')" | 89 | false | ooici/elasticpy | search_simple | 29,096 | |
LDU_FT/pyqg/pyqg/_calc_eddy_time | LDU_FT | [
"<BEGIN>\n## `run_with_snapshots`",
"Run the model forward, yielding to user code at specified intervals.",
" Parameters\n ----------",
" tsnapstart : int\n The timestep at which to begin yielding.\n tstapint : int\n The interval at which to yield.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calc_eddy_time API.
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 _calc_eddy_time API.
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... | estimate the eddy turn-over time in days | "estimate the eddy turn-over time in days" | 56 | false | pyqg/pyqg | _calc_eddy_time | 29,097 | |
LDU_FT/juju-solutions/jujuresources/resource_spec | LDU_FT | [
"<BEGIN>\n## `config_get`",
"Helper to access a Juju config option when charmhelpers is not available.",
" :param str option_name: Name of the config option to get the value of\n<END>",
"<BEGIN>\n## `fetch`",
"Attempt to fetch all resources for a charm.",
" :param list which: A name, or a list of on... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_spec API.
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 resource_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return the spec (URL, package spec, file, etc) for a named resource. | "Return the spec (URL, package spec, file, etc) for a named resource." | 34 | false | juju-solutions/jujuresources | resource_spec | 29,098 | |
LDU_FT/jason-weirather/pythologist/fill_phenotype_label | LDU_FT | [
"<BEGIN>\n## `get_valid_cell_indecies`",
"Return a dataframe of images present with 'valid' being a list of cell indecies that can be included\n<END>",
"<BEGIN>\n## `prune_neighbors`",
"If the CellDataFrame has been subsetted, some of the cell-cell contacts may no longer be part of the the dataset. This prun... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_phenotype_label API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_phenotype_label API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Set the phenotype_label column according to our rules for mutual exclusion | "Set the phenotype_label column according to our rules for mutual exclusion" | 98 | false | jason-weirather/pythologist | fill_phenotype_label | 29,099 | |
LDU_FT/AguaClara/aguaclara/w_diffuser_outer | LDU_FT | [
"<BEGIN>\n## `density_water`",
"Return the density of water at a given temperature.",
" If given units, the function will automatically convert to Kelvin.\n If not given units, the function will assume Kelvin.\n<END>",
"<BEGIN>\n## `viscosity_kinematic`",
"Return the kinematic viscosity of water at a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the w_diffuser_outer API.
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 w_diffuser_outer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Return the outer width of each diffuser in the sedimentation tank.
Parameters
----------
sed_inputs : dict
A dictionary of all of the constant inputs needed for sedimentation tank
calculations can be found in sed.yaml
Returns
-------
float
Outer width of each diffuser in ... | "Return the outer width of each diffuser in the sedimentation tank.\n Parameters\n ----------\n sed_inputs : dict\n A dictionary of all of the constant inputs needed for sedimentation tank\n calculations can be found in sed.yaml\n Returns\n -------\n float\n Outer width of each di... | 554 | false | AguaClara/aguaclara | w_diffuser_outer | 29,100 | |
LDU_FT/jonhadfield/creds/compare_user | LDU_FT | [
"<BEGIN>\n## `create_plan`",
"Determine what changes are required.",
" args:\n existing_users (Users): List of discovered users\n proposed_users (Users): List of proposed users\n purge_undefined (bool): Remove discovered users that have not been defined in proposed users list\n pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare_user API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare_user API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Check if supplied User instance exists in supplied Users list and, if so, return the differences.
args:
passed_user (User): the user instance to check for differences
user_list (Users): the Users instance containing a list of Users instances
returns:
dict: Details of the matching user ... | "Check if supplied User instance exists in supplied Users list and, if so, return the differences.\n\n args:\n passed_user (User): the user instance to check for differences\n user_list (Users): the Users instance containing a list of Users instances\n\n returns:\n dict: Details of the matchi... | 71 | false | jonhadfield/creds | compare_user | 29,101 | |
LDU_FT/gitenberg-dev/gitberg/check_config | LDU_FT | [
"<BEGIN>\n## `remote_path`",
"turns an ebook_id into a path on PG's server(s)\n 4443 -> 4/4/4/4443/\n<END>",
"<BEGIN>\n## `make`",
"turn fetched files into a local repo, make auxiliary files\n<END>",
"<BEGIN>\n## `push`",
"create a github repo and push the local repo into it\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_config API.
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... | Report if there is an existing config file | "Report if there is an existing config file" | 51 | false | gitenberg-dev/gitberg | check_config | 29,102 | |
LDU_FT/campaignmonitor/createsend-python/get | LDU_FT | [
"<BEGIN>\n## `authorize_url`",
"Get the authorization URL for your application, given the application's\n client_id, redirect_uri, scope, and optional state data.\n<END>",
"<BEGIN>\n## `exchange_token`",
"Exchange a provided OAuth code for an OAuth access token, 'expires in'\n value and refresh ... | 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 a person by client ID and email address. | "Gets a person by client ID and email address." | 73 | false | campaignmonitor/createsend-python | get | 29,103 | |
LDU_FT/sprockets/sprockets.mixins.amqp/close | LDU_FT | [
"<BEGIN>\n## `install`",
"Call this to install AMQP for the Tornado application. Additional\n keyword arguments are passed through to the constructor of the AMQP\n object.",
" :param tornado.web.Application application: The tornado application\n :param tornado.ioloop.IOLoop io_loop: The current IOLo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
Each 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 close API.
Each 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... | Cleanly shutdown the connection to RabbitMQ
:raises: sprockets.mixins.amqp.ConnectionStateError | "Cleanly shutdown the connection to RabbitMQ\n\n :raises: sprockets.mixins.amqp.ConnectionStateError" | 50 | false | sprockets/sprockets.mixins.amqp | close | 29,104 | |
LDU_FT/Archived-Object/ligament/pdebug | LDU_FT | [
"<BEGIN>\n## `register_dependency`",
"registers a dependency of data_src -> data_sink\n by placing appropriate entries in provides_for and depends_on\n<END>",
"<BEGIN>\n## `build_task`",
"Builds a task by name, resolving any dependencies on the way\n<END>",
"<BEGIN>\n## `is_build_needed`",
"ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pdebug API.
Each 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 pdebug API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | print formatted output to stdout with indentation control | "print formatted output to stdout with indentation control" | 66 | false | Archived-Object/ligament | pdebug | 29,105 | |
LDU_FT/pescadores/pescador/batch_length | LDU_FT | [
"<BEGIN>\n## `setup_data`",
"Load and shape data for training with Keras + Pescador.",
" Returns\n -------\n input_shape : tuple, len=3\n Shape of each sample; adapts to channel configuration of Keras.",
" X_train, y_train : np.ndarrays\n Images and labels for training.",
" X_te... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_length API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_length API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Determine the number of samples in a batch.
Parameters
----------
batch : dict
A batch dictionary. Each value must implement `len`.
All values must have the same `len`.
Returns
-------
n : int >= 0 or None
The number of samples in this batch.
If the batch has n... | "Determine the number of samples in a batch.\n\n Parameters\n ----------\n batch : dict\n A batch dictionary. Each value must implement `len`.\n All values must have the same `len`.\n\n Returns\n -------\n n : int >= 0 or None\n The number of samples in this batch.\n If th... | 103 | false | pescadores/pescador | batch_length | 29,106 | |
LDU_FT/xolox/python-qpass/list_matching_entries | LDU_FT | [
"<BEGIN>\n## `get_requirements`",
"Get requirements from pip requirement files.\n<END>",
"<BEGIN>\n## `create_fuzzy_pattern`",
"Convert a string into a fuzzy regular expression pattern.",
" :param pattern: The input pattern (a string).\n :returns: A compiled regular expression object.",
" This fu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_matching_entries API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_matching_entries API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | List the entries matching the given keywords/patterns. | "List the entries matching the given keywords/patterns." | 48 | false | xolox/python-qpass | list_matching_entries | 29,107 | |
LDU_FT/KnowledgeLinks/rdfframework/pyrdf | LDU_FT | [
"<BEGIN>\n## `get_obj_frm_str`",
"Returns a python object from a python object string",
" args:\n obj_str: python object path expamle\n \"rdfframework.connections.ConnManager[{param1}]\"",
" kwargs:\n * kwargs used to format the 'obj_str'\n<END>",
"<BEGIN>\n## `pyfile_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pyrdf API.
Each 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 pyrdf API.
Each 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... | Coverts an input to one of the rdfdatatypes classes
Args:
value: any rdfdatatype, json dict or vlaue
class_type: "literal", "uri" or "blanknode"
datatype: "xsd:string", "xsd:int" , etc
kwargs:
lang: language tag | "Coverts an input to one of the rdfdatatypes classes\n\n Args:\n value: any rdfdatatype, json dict or vlaue\n class_type: \"literal\", \"uri\" or \"blanknode\"\n datatype: \"xsd:string\", \"xsd:int\" , etc\n kwargs:\n lang: language tag" | 627 | false | KnowledgeLinks/rdfframework | pyrdf | 29,108 | |
LDU_FT/ask/carrot/consume | LDU_FT | [
"<BEGIN>\n## `establish_connection`",
"Establish connection to the AMQP broker.\n<END>",
"<BEGIN>\n## `queue_exists`",
"Check if a queue has been declared.",
" :rtype bool:\n<END>",
"<BEGIN>\n## `queue_bind`",
"Bind queue to an exchange using a routing key.\n<END>",
"<BEGIN>\n## `get`",
"Rece... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Returns an iterator that waits for one message at a time. | "Returns an iterator that waits for one message at a time." | 162 | false | ask/carrot | consume | 29,109 | |
LDU_FT/PythonRails/rails/get_url_param | LDU_FT | [
"<BEGIN>\n## `_load_controllers`",
"Load all controllers from folder 'controllers'.",
" Ignore files with leading underscore (for example: controllers/_blogs.py)\n<END>",
"<BEGIN>\n## `get_action_handler`",
"Return action of controller as callable.",
" If requested controller isn't found - r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url_param API.
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_url_param API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return url parameter with given index.
Args:
- index: starts from zero, and come after controller and
action names in url. | "Return url parameter with given index.\n\n Args:\n - index: starts from zero, and come after controller and\n action names in url." | 21 | false | PythonRails/rails | get_url_param | 29,110 | |
LDU_FT/klmitch/turnstile/setup_args | LDU_FT | [
"<BEGIN>\n## `add_argument`",
"Define an argument for the function when running in console script\n mode. The positional and keyword arguments are the same as for\n ArgumentParser.add_argument().\n<END>",
"<BEGIN>\n## `add_preprocessor`",
"Define a preprocessor to run after the arguments are parsed and... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Set up an argparse.ArgumentParser object by adding all the
arguments taken by the function. | "Set up an argparse.ArgumentParser object by adding all the\n arguments taken by the function." | 208 | false | klmitch/turnstile | setup_args | 29,111 | |
LDU_FT/capnproto/pycapnp/get_output_error | LDU_FT | [
"<BEGIN>\n## `localpath`",
"construct an absolute path from a list relative to the root pycapnp directory\n<END>",
"<BEGIN>\n## `fetch_archive`",
"download an archive to a specific location\n<END>",
"<BEGIN>\n## `stage_platform_hpp`",
"stage platform.hpp into libcapnp sources",
" Tries ./configure fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_output_error API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_output_error API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Return the exit status, stdout, stderr of a command | "Return the exit status, stdout, stderr of a command" | 44 | false | capnproto/pycapnp | get_output_error | 29,112 | |
LDU_FT/amcat/nlpipe/get_input_ids | LDU_FT | [
"<BEGIN>\n## `_get_corenlp_version`",
"Return the corenlp version pointed at by CORENLP_HOME, or None\n<END>",
"<BEGIN>\n## `get_command`",
"Return the system (shell) call to run corenlp\n<END>",
"<BEGIN>\n## `corenlp2naf`",
"Call from on the text and return a Naf object\n<END>",
"<BEGIN>\n## `get_singl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_input_ids API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_input_ids API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get the ids of existing input documents that match a query | "Get the ids of existing input documents that match a query" | 20 | false | amcat/nlpipe | get_input_ids | 29,113 | |
LDU_FT/ASKIDA/Selenium2LibraryExtension/element_background_color_should_be | LDU_FT | [
"<BEGIN>\n## `wait_until_element_has_focus`",
"Waits until the element identified by `locator` has focus.\n\t\tYou might rather want to use `Element Focus Should Be Set`",
"\t\t| *Argument* | *Description* | *Example* |\n\t\t| locator | Selenium 2 element locator | id=my_id |\n\t\t| timeout | maximum time to wa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the element_background_color_should_be API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the element_background_color_should_be API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | Verifies the element identified by `locator` has the expected
background color (it verifies the CSS attribute background-color). Color should
be in RGBA format.
Example of rgba format: rgba(RED, GREEN, BLUE, ALPHA)
| *Argument* | *Description* | *Example* |
| locator | Selenium 2 element locator | id=my_id ... | "Verifies the element identified by `locator` has the expected\n\t\tbackground color (it verifies the CSS attribute background-color). Color should\n\t\tbe in RGBA format.\n\n\t\tExample of rgba format: rgba(RED, GREEN, BLUE, ALPHA)\n\n\t\t| *Argument* | *Description* | *Example* |\n\t\t| locator | Selenium 2 element l... | 76 | false | ASKIDA/Selenium2LibraryExtension | element_background_color_should_be | 29,114 | |
LDU_FT/aeguana/PyFileMaker/doFindAny | LDU_FT | [
"<BEGIN>\n## `key_dict`",
"Returns dict from_dict['unicode_save_field'] = 'original key with unicode'\n<END>",
"<BEGIN>\n## `makeFMData`",
"Returns FMData structure which is initialized by given dictionary\n<END>",
"<BEGIN>\n## `_setMaxRecords`",
"Specifies the maximum number of records you want returned ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doFindAny API.
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 doFindAny API.
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... | This function will perform the command -findany. | "This function will perform the command -findany." | 52 | false | aeguana/PyFileMaker | doFindAny | 29,115 | |
LDU_FT/foliant-docs/foliantcontrib.includes/_adjust_image_paths | LDU_FT | [
"<BEGIN>\n## `_find_file`",
"Find a file in a directory by name. Check subdirectories recursively.",
" :param file_name: Name of the file\n :lookup_dir: Starting directory",
" :returns: Path to the found file or None if the file was not found\n :raises: FileNotFoundError\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _adjust_image_paths 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 _adjust_image_paths 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... | Locate images referenced in a Markdown string and replace their paths
with the absolute ones.
:param content: Markdown content
:param md_file_path: Path to the Markdown file containing the content
:returns: Markdown content with absolute image paths | "Locate images referenced in a Markdown string and replace their paths\n with the absolute ones.\n\n :param content: Markdown content\n :param md_file_path: Path to the Markdown file containing the content\n\n :returns: Markdown content with absolute image paths" | 49 | false | foliant-docs/foliantcontrib.includes | _adjust_image_paths | 29,116 | |
LDU_FT/jjmontesl/python-clementine-remote/send_message | LDU_FT | [
"<BEGIN>\n## `send_message`",
"Internal method used to send messages through Clementine remote network protocol.\n<END>",
"<BEGIN>\n## `_connect`",
"Connects to the server defined in the constructor.\n<END>",
"<BEGIN>\n## `playpause`",
"Sends a \"playpause\" command to the player.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_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 extr... | Internal method used to send messages through Clementine remote network protocol. | "Internal method used to send messages through Clementine remote network protocol." | 10 | false | jjmontesl/python-clementine-remote | send_message | 29,117 | |
LDU_FT/erocarrera/pefile/is_exe | LDU_FT | [
"<BEGIN>\n## `is_suspicious`",
"unusual locations of import tables\n non recognized section names\n presence of long ASCII strings\n<END>",
"<BEGIN>\n## `is_probably_packed`",
"Returns True is there is a high likelihood that a file is packed or contains compressed data.",
" The sections of the PE f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_exe API.
Each 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 is_exe API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Check whether the file is a standard executable.
This will return true only if the file has the IMAGE_FILE_EXECUTABLE_IMAGE flag set
and the IMAGE_FILE_DLL not set and the file does not appear to be a driver either. | "Check whether the file is a standard executable.\n\n This will return true only if the file has the IMAGE_FILE_EXECUTABLE_IMAGE flag set\n and the IMAGE_FILE_DLL not set and the file does not appear to be a driver either." | 160 | false | erocarrera/pefile | is_exe | 29,118 | |
LDU_FT/timstaley/voevent-parse/pull_params | LDU_FT | [
"<BEGIN>\n## `Param`",
"'Parameter', used as a general purpose key-value entry in the 'What' section.",
" May be assembled into a :class:`Group`.",
" NB ``name`` is not mandated by schema, but *is* mandated in full spec.",
" Args:\n value(str): String representing parameter value.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pull_params API.
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 pull_params API.
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... | Attempts to load the `What` section of a voevent as a nested dictionary.
.. warning:: Deprecated due to `Missing name attributes` issues.
`Param` or `Group` entries which are missing the `name` attribute
will be entered under a dictionary key of ``None``. This means that if
there are multi... | "Attempts to load the `What` section of a voevent as a nested dictionary.\n\n .. warning:: Deprecated due to `Missing name attributes` issues.\n\n `Param` or `Group` entries which are missing the `name` attribute\n will be entered under a dictionary key of ``None``. This means that if\n there ar... | 131 | false | timstaley/voevent-parse | pull_params | 29,119 | |
LDU_FT/pycampers/ampy/cli | LDU_FT | [
"<BEGIN>\n## `ls`",
"List the contents of the specified directory (or root if none is\n specified). Returns a list of strings with the names of files in the\n specified directory. If long_format is True then a list of 2-tuples\n with the name and size (in bytes) of the item is returned. No... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API.
Each 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 cli API.
Each 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... | ampy - Adafruit MicroPython Tool
Ampy is a tool to control MicroPython boards over a serial connection. Using
ampy you can manipulate files on the board's internal filesystem and even run
scripts. | "ampy - Adafruit MicroPython Tool\n\n Ampy is a tool to control MicroPython boards over a serial connection. Using\n ampy you can manipulate files on the board's internal filesystem and even run\n scripts." | 63 | false | pycampers/ampy | cli | 29,120 | |
LDU_FT/Genida/dependenpy/print_graph | LDU_FT | [
"<BEGIN>\n## `cast`",
"Cast a set of keys and an array to a Matrix object.\n<END>",
"<BEGIN>\n## `connect_to`",
"Connect this vertex to another one.",
" Args:\n vertex (Vertex): vertex to connect to.\n weight (int): weight of the edge.",
" Returns:\n Edge: th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_graph API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_graph API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Print the graph for self's nodes.
Args:
format (str): output format (csv, json or text).
output (file): file descriptor on which to write.
depth (int): depth of the graph. | "Print the graph for self's nodes.\n\n Args:\n format (str): output format (csv, json or text).\n output (file): file descriptor on which to write.\n depth (int): depth of the graph." | 130 | false | Genida/dependenpy | print_graph | 29,121 | |
LDU_FT/jcushman/pdfquery/prepare_for_json_encoding | LDU_FT | [
"<BEGIN>\n## `_append_sorted`",
"Add el as a child of root, or as a child of one of root's children.\r\n Comparator is a function(a, b) returning > 0 if a is a child of b, < 0 if\r\n b is a child of a, 0 if neither.\n<END>",
"<BEGIN>\n## `_box_in_box`",
"Return True if child is contained within el.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_for_json_encoding API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_for_json_encoding API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Convert an arbitrary object into just JSON data types (list, dict, unicode str, int, bool, null). | "Convert an arbitrary object into just JSON data types (list, dict, unicode str, int, bool, null)." | 37 | false | jcushman/pdfquery | prepare_for_json_encoding | 29,122 | |
LDU_FT/kata198/AdvancedHTMLParser/camelCaseToDashName | LDU_FT | [
"<BEGIN>\n## `getRootNodes`",
"getRootNodes - Gets all objects at the \"root\" (first level; no parent). Use this if you may have multiple roots (not children of <html>)\n Use this method to get objects, for example, in an AJAX request where <html> may not be your root.",
" Note: I... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the camelCaseToDashName 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 camelCaseToDashName 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... | camelCaseToDashName - Convert a camel case name to a dash-name (like paddingTop to padding-top)
@param camelCase <str> - A camel-case string
@return <str> - A dash-name | "camelCaseToDashName - Convert a camel case name to a dash-name (like paddingTop to padding-top)\n\n @param camelCase <str> - A camel-case string\n\n @return <str> - A dash-name" | 541 | false | kata198/AdvancedHTMLParser | camelCaseToDashName | 29,123 | |
LDU_FT/christophertbrown/bioscripts/strip_masked | LDU_FT | [
"<BEGIN>\n## `six_frame`",
"translate each sequence into six reading frames\n<END>",
"<BEGIN>\n## `best_model`",
"determine the best model: archaea, bacteria, eukarya (best score)\n<END>",
"<BEGIN>\n## `check_gaps`",
"check for large gaps between alignment windows\n<END>",
"<BEGIN>\n## `check_overlap`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip_masked API.
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 strip_masked API.
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... | remove masked regions from fasta file as long as
they are longer than min_len | "remove masked regions from fasta file as long as\n they are longer than min_len" | 219 | false | christophertbrown/bioscripts | strip_masked | 29,124 | |
LDU_FT/ambitioninc/django-manager-utils/get_or_none | LDU_FT | [
"<BEGIN>\n## `configure_settings`",
"Configures settings for manage.py and for run_tests.py.\n<END>",
"<BEGIN>\n## `_get_update_fields`",
"Get the fields to be updated in an upsert.",
" Always exclude auto_now_add, auto_created fields, and unique fields in an update\n<END>",
"<BEGIN>\n## `_fill_auto_fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_none API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_none API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Get an object or return None if it doesn't exist.
:param query_params: The query parameters used in the lookup.
:returns: A model object if one exists with the query params, None otherwise.
Examples:
.. code-block:: python
model_obj = get_or_none(TestModel.objects, int_field=1)
prin... | "Get an object or return None if it doesn't exist.\n\n :param query_params: The query parameters used in the lookup.\n\n :returns: A model object if one exists with the query params, None otherwise.\n\n Examples:\n\n .. code-block:: python\n\n model_obj = get_or_none(TestModel.objects, int_field=1)\n... | 110 | false | ambitioninc/django-manager-utils | get_or_none | 29,125 | |
LDU_FT/pvlib/pvlib-python/djd_to_datetime | LDU_FT | [
"<BEGIN>\n## `systemdef`",
"Generates a dict of system parameters used throughout a simulation.",
" Parameters\n ----------",
" meta : dict\n meta dict either generated from a TMY file using readtmy2 or\n readtmy3, or a dict containing at least the following fields:",
" ===... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the djd_to_datetime API.
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 djd_to_datetime API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Converts a Dublin Julian Day float to a datetime.datetime object
Parameters
----------
djd : float
fractional days since 12/31/1899+0000
tz : str, default 'UTC'
timezone to localize the result to
Returns
-------
datetime.datetime
The resultant datetime localized to t... | "Converts a Dublin Julian Day float to a datetime.datetime object\n\n Parameters\n ----------\n djd : float\n fractional days since 12/31/1899+0000\n tz : str, default 'UTC'\n timezone to localize the result to\n\n Returns\n -------\n datetime.datetime\n The resultant datetime l... | 1,499 | true | pvlib/pvlib-python | djd_to_datetime | 29,126 | |
LDU_FT/bradmontgomery/django-redis-metrics/get | LDU_FT | [
"<BEGIN>\n## `categorize_metrics`",
"Called only on a valid form, this method will place the chosen\n metrics in the given catgory.\n<END>",
"<BEGIN>\n## `dedupe`",
"Remove duplicates from a sequence (of hashable items) while maintaining\n order. NOTE: This only works if items in the list are hashab... | 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... | See if this view was called with a specified category. | "See if this view was called with a specified category." | 122 | false | bradmontgomery/django-redis-metrics | get | 29,127 | |
LDU_FT/rhgrant10/Groupy/list_after | 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 list_after API.
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 list_after API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return a page of group messages created after a message.
This is used to page forwards through messages.
:param str message_id: the ID of a message
:param int limit: maximum number of messages per page
:return: group messages
:rtype: :class:`~groupy.pagers.MessageList` | "Return a page of group messages created after a message.\n\n This is used to page forwards through messages.\n\n :param str message_id: the ID of a message\n :param int limit: maximum number of messages per page\n :return: group messages\n :rtype: :class:`~groupy.pagers.MessageList`" | 194 | false | rhgrant10/Groupy | list_after | 29,128 | |
LDU_FT/improbable-research/keanu/accept | LDU_FT | [
"<BEGIN>\n## `BooleanSlice`",
"Takes the slice along a given dimension and index of a vertex",
" :param input_vertex: the input vertex\n :param dimension: the dimension to extract along\n :param index: the index of extraction\n<END>",
"<BEGIN>\n## `BooleanTake`",
"A vertex that extracts a scalar at... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accept API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accept API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | >>> c = BiConsumer(lambda x,y : print(x + y))
>>> c.accept("foo", "bar")
foobar | ">>> c = BiConsumer(lambda x,y : print(x + y))\n >>> c.accept(\"foo\", \"bar\")\n foobar" | 185 | false | improbable-research/keanu | accept | 29,129 | |
LDU_FT/aliyun/aliyun-odps-python-sdk/append_string | LDU_FT | [
"<BEGIN>\n## `_process_worker`",
"Evaluates calls from call_queue and places the results in result_queue.",
" This worker is run in a separate process.",
" Args:\n call_queue: A multiprocessing.Queue of _CallItems that will be read and\n evaluated by the worker.\n result_queue: ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Appends a length-prefixed string to our buffer, with the
length varint-encoded. | "Appends a length-prefixed string to our buffer, with the\n length varint-encoded." | 1,057 | true | aliyun/aliyun-odps-python-sdk | append_string | 29,130 | |
LDU_FT/brandon-rhodes/python-adventure/yesno | LDU_FT | [
"<BEGIN>\n## `add_synonym`",
"Every word in a group of synonyms shares the same list.\n<END>",
"<BEGIN>\n## `play`",
"Turn the Python prompt into an Adventure game.",
" With optional the `seed` argument the caller can supply an integer\n to start the Python random number generator at a known state.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the yesno API.
Each 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 yesno API.
Each 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... | Ask a question and prepare to receive a yes-or-no answer. | "Ask a question and prepare to receive a yes-or-no answer." | 17 | false | brandon-rhodes/python-adventure | yesno | 29,131 | |
LDU_FT/warner/magic-wormhole/_extract_file | LDU_FT | [
"<BEGIN>\n## `receive`",
"I implement 'wormhole receive'. I return a Deferred that fires with\n None (for success), or signals one of the following errors:\n * WrongPasswordError: the two sides didn't use matching passwords\n * Timeout: something didn't happen fast enough for our tastes\n * TransferEr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_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 ext... | the zipfile module does not restore file permissions
so we'll do it manually | "the zipfile module does not restore file permissions\n so we'll do it manually" | 36 | false | warner/magic-wormhole | _extract_file | 29,132 | |
LDU_FT/lappis-unb/salic-ml/update_models | LDU_FT | [
"<BEGIN>\n## `approved_funds`",
"Verifica se o valor total de um projeto é um\n outlier em relação\n aos projetos do mesmo seguimento cultural\n Dataframes: planilha_orcamentaria\n<END>",
"<BEGIN>\n## `complexidade`",
"Returns a value that indicates project health, currently FinancialIndicator\n i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_models API.
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 update_models API.
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... | Updates local django db projects models using salic database from
MinC | "Updates local django db projects models using salic database from\n MinC" | 102 | false | lappis-unb/salic-ml | update_models | 29,133 | |
LDU_FT/bram85/topydo/match | LDU_FT | [
"<BEGIN>\n## `_process_flags`",
"Override to add an additional check after processing the flags: when\n there are no flags left after argument parsing, then it means we'll be\n editing the whole todo.txt file as a whole and therefore we're not in\n multi mode.\n<END>",
"<BEGIN>\n## `get_tod... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API.
Each 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 match API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Returns True when p_todo appears in the list of given todos. | "Returns True when p_todo appears in the list of given todos." | 331 | false | bram85/topydo | match | 29,134 | |
LDU_FT/aio-libs/aiohttp/clone | LDU_FT | [
"<BEGIN>\n## `_cleanup_closed`",
"Double confirmation for transport close.\n Some broken ssl servers may leave socket open without proper close.\n<END>",
"<BEGIN>\n## `_available_connections`",
"Return number of available connections taking into account\n the limit, limit_per_host and the connec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clone API.
Each 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 clone API.
Each 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... | Clone itself with replacement some attributes.
Creates and returns a new instance of Request object. If no parameters
are given, an exact copy is returned. If a parameter is not passed, it
will reuse the one from the current request object. | "Clone itself with replacement some attributes.\n\n Creates and returns a new instance of Request object. If no parameters\n are given, an exact copy is returned. If a parameter is not passed, it\n will reuse the one from the current request object." | 233 | false | aio-libs/aiohttp | clone | 29,135 | |
LDU_FT/materialsvirtuallab/monty/boxed | LDU_FT | [
"<BEGIN>\n## `zopen`",
"This function wraps around the bz2, gzip and standard python's open\n function to deal intelligently with bzipped, gzipped or standard text\n files.",
" Args:\n filename (str/Path): filename or pathlib.Path.\n \\*args: Standard args for python open(..). E.g., 'r' f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the boxed API.
Each 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 boxed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Returns a string in a box
Args:
msg: Input string.
ch: Character used to form the box.
pad: Number of characters ch added before and after msg.
>>> print(boxed("hello", ch="*", pad=2))
***********
** hello **
*********** | "Returns a string in a box\n\n Args:\n msg: Input string.\n ch: Character used to form the box.\n pad: Number of characters ch added before and after msg.\n\n >>> print(boxed(\"hello\", ch=\"*\", pad=2))\n ***********\n ** hello **\n ***********" | 238 | false | materialsvirtuallab/monty | boxed | 29,136 | |
LDU_FT/coopernurse/barrister/validate | LDU_FT | [
"<BEGIN>\n## `get_checksum`",
"Returns a checksum based on the IDL that ignores comments and \n ordering, but detects changes to types, parameter order, \n and enum values.\n<END>",
"<BEGIN>\n## `contract_from_file`",
"Loads a Barrister IDL JSON from the given file and returns a Contract class",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
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 validate API.
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... | Validates that the expected type matches the value
Returns two element tuple: (bool, string)
- `bool` - True if valid, False if not
- `string` - Description of validation error, or None if valid
:Parameters:
expected_type
string name of the type expected. This ma... | "Validates that the expected type matches the value\n\n Returns two element tuple: (bool, string)\n\n - `bool` - True if valid, False if not\n - `string` - Description of validation error, or None if valid\n\n :Parameters:\n expected_type\n string name of the type expecte... | 126 | false | coopernurse/barrister | validate | 29,137 | |
LDU_FT/riga/law/mask_struct | LDU_FT | [
"<BEGIN>\n## `full_parser`",
"Returns the full *ArgumentParser* used by the luigi ``CmdlineParser``. The returned instance is\n cached.\n<END>",
"<BEGIN>\n## `root_task_parser`",
"Returns a new *ArgumentParser* instance that only contains paremeter actions of the root task.\n The returned instance is ca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mask_struct API.
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 mask_struct API.
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... | Masks a complex structured object *struct* with a *mask* and returns the remaining values. When
*replace* is set, masked values are replaced with that value instead of being removed. The
*mask* can have a complex structure as well. Examples:
.. code-block:: python
struct = {"a": [1, 2], "b": [3, [... | "Masks a complex structured object *struct* with a *mask* and returns the remaining values. When\n *replace* is set, masked values are replaced with that value instead of being removed. The\n *mask* can have a complex structure as well. Examples:\n\n .. code-block:: python\n\n struct = {\"a\": [1, 2], \... | 279 | false | riga/law | mask_struct | 29,138 | |
LDU_FT/ansible/tacacs_plus/send | LDU_FT | [
"<BEGIN>\n## `send`",
"Send a TACACS+ message body",
" :param body: packed bytes, i.e., `struct.pack(...)`\n :param req_type: TAC_PLUS_AUTHEN,\n TAC_PLUS_AUTHOR,\n TAC_PLUS_ACCT\n :param seq_no: The sequence number of the current packet.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each 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 send API.
Each 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... | Send a TACACS+ message body
:param body: packed bytes, i.e., `struct.pack(...)`
:param req_type: TAC_PLUS_AUTHEN,
TAC_PLUS_AUTHOR,
TAC_PLUS_ACCT
:param seq_no: The sequence number of the current packet. The
first ... | "Send a TACACS+ message body\n\n :param body: packed bytes, i.e., `struct.pack(...)`\n :param req_type: TAC_PLUS_AUTHEN,\n TAC_PLUS_AUTHOR,\n TAC_PLUS_ACCT\n :param seq_no: The sequence number of the current packet. The\n ... | 23 | false | ansible/tacacs_plus | send | 29,139 | |
LDU_FT/kevin-brown/drf-json-api/render | LDU_FT | [
"<BEGIN>\n## `camelcase`",
"Return a string in lowerCamelCase",
" Examples:\n \"people\" -> \"people\"\n \"profile images\" -> \"profileImages\"\n<END>",
"<BEGIN>\n## `render`",
"Convert native data to JSON API",
" Tries each of the methods in `wrappers`, using the first successful\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API.
Each 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 render API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Convert native data to JSON API
Tries each of the methods in `wrappers`, using the first successful
one, or raises `WrapperNotApplicable`. | "Convert native data to JSON API\n\n Tries each of the methods in `wrappers`, using the first successful\n one, or raises `WrapperNotApplicable`." | 34 | false | kevin-brown/drf-json-api | render | 29,140 | |
LDU_FT/jordanh/neurio-python/get_appliance_event_after_time | LDU_FT | [
"<BEGIN>\n## `get_token`",
"Performs Neurio API token authentication using provided key and secret.",
" Note:\n This method is generally not called by hand; rather it is usually\n called as-needed by a Neurio Client object.",
" Returns:\n string: the access token\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_appliance_event_after_time API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_appliance_event_after_time API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Get appliance events by location Id after defined time.
Args:
location_id (string): hexadecimal id of the sensor to query, e.g.
``0x0013A20040B65FAD``
since (string): ISO 8601 start time for getting the events that are created or updated after it.
Maxiumim value allowe... | "Get appliance events by location Id after defined time.\n\n Args:\n location_id (string): hexadecimal id of the sensor to query, e.g.\n ``0x0013A20040B65FAD``\n since (string): ISO 8601 start time for getting the events that are created or updated after it.\n Maxiumim value... | 47 | false | jordanh/neurio-python | get_appliance_event_after_time | 29,141 | |
LDU_FT/AtomHash/evernode/quick_response | LDU_FT | [
"<BEGIN>\n## `exists`",
"Checks if item already exists in database\n<END>",
"<BEGIN>\n## `save`",
"Easy save(insert or update) for db models\n<END>",
"<BEGIN>\n## `trans`",
"Root Example:\r\n Translator()\r\n Translator.trans('messages.hello')\r\n resources/lang/en/messages.lang will ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quick_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quick_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Quickly construct response using a status code | "Quickly construct response using a status code" | 56 | false | AtomHash/evernode | quick_response | 29,142 | |
LDU_FT/jciskey/pygraph/output_component | LDU_FT | [
"<BEGIN>\n## `build_cycle_graph`",
"Builds a cycle graph with the specified number of nodes.\n Ref: http://mathworld.wolfram.com/CycleGraph.html\n<END>",
"<BEGIN>\n## `build_wheel_graph`",
"Builds a wheel graph with the specified number of nodes.\n Ref: http://mathworld.wolfram.com/WheelGraph.html... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_component API.
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 output_component API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Helper function to pop edges off the stack and produce a list of them. | "Helper function to pop edges off the stack and produce a list of them." | 189 | false | jciskey/pygraph | output_component | 29,143 | |
LDU_FT/alan-turing-institute/topic-modelling-tools/topic_content | LDU_FT | [
"<BEGIN>\n## `set_priors`",
"Override default values for Dirichlet hyperparameters.\n alpha: hyperparameter for distribution of topics within documents.\n beta: hyperparameter for distribution of tokens within topics.\n<END>",
"<BEGIN>\n## `set_sampled_topics`",
"Allocate sampled topics to the d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the topic_content API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the topic_content API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Print top W words in each topic to file. | "Print top W words in each topic to file." | 44 | false | alan-turing-institute/topic-modelling-tools | topic_content | 29,144 | |
LDU_FT/juju-solutions/charms.reactive/_expand_endpoint_name | LDU_FT | [
"<BEGIN>\n## `endpoint_from_name`",
"The object used for interacting with the named relations, or None.\n<END>",
"<BEGIN>\n## `endpoint_from_flag`",
"The object used for interacting with relations tied to a flag, or None.\n<END>",
"<BEGIN>\n## `relation_factory`",
"Get the RelationFactory for the given re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expand_endpoint_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expand_endpoint_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.
... | Populate any ``{endpoint_name}`` tags in the flag names for the given
handler, based on the handlers module / file name. | "Populate any ``{endpoint_name}`` tags in the flag names for the given\n handler, based on the handlers module / file name." | 223 | false | juju-solutions/charms.reactive | _expand_endpoint_name | 29,145 | |
LDU_FT/Cognexa/cxflow/after_epoch | LDU_FT | [
"<BEGIN>\n## `_write_header`",
"Write CSV header row with column names.",
" Column names are inferred from the ``epoch_data`` and ``self.variables`` (if specified).\n Variables and streams expected later on are stored in ``self._variables`` and ``self._streams`` respectively.",
" :param e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the after_epoch API.
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 after_epoch API.
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... | Call ``_after_n_epoch`` method every ``n_epochs`` epoch.
:param epoch_id: number of the processed epoch | "Call ``_after_n_epoch`` method every ``n_epochs`` epoch.\n\n :param epoch_id: number of the processed epoch" | 325 | false | Cognexa/cxflow | after_epoch | 29,146 | |
LDU_FT/planetlabs/planet-client-python/last_modified | LDU_FT | [
"<BEGIN>\n## `get_body`",
"Get the response Body",
" :returns Body: A Body object containing the response.\n<END>",
"<BEGIN>\n## `last_modified`",
"Read the last-modified header as a datetime, if present.\n<END>",
"<BEGIN>\n## `write`",
"Write the contents of the body to the optionally provided f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the last_modified API.
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 last_modified API.
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... | Read the last-modified header as a datetime, if present. | "Read the last-modified header as a datetime, if present." | 129 | false | planetlabs/planet-client-python | last_modified | 29,147 | |
LDU_FT/aiidateam/aiida-codtools/get_input_node | LDU_FT | [
"<BEGIN>\n## `run_filter_calculation`",
"Run the CifFilterCalculation on the CifData input node.\n<END>",
"<BEGIN>\n## `inspect_filter_calculation`",
"Inspect the result of the CifFilterCalculation, verifying that it produced a CifData output node.\n<END>",
"<BEGIN>\n## `run_select_calculation`",
"Run the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_input_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_input_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return a `Node` of a given class and given value.
If a `Node` of the given type and value already exists, that will be returned, otherwise a new one will be created,
stored and returned.
:param cls: the `Node` class
:param value: the value of the `Node` | "Return a `Node` of a given class and given value.\n\n If a `Node` of the given type and value already exists, that will be returned, otherwise a new one will be created,\n stored and returned.\n\n :param cls: the `Node` class\n :param value: the value of the `Node`" | 73 | false | aiidateam/aiida-codtools | get_input_node | 29,148 | |
LDU_FT/wickerwaka/russound_rio/get_source_variable | LDU_FT | [
"<BEGIN>\n## `_retrieve_cached_zone_variable`",
"Retrieves the cache state of the named variable for a particular\n zone. If the variable has not been cached then the UncachedVariable\n exception is raised.\n<END>",
"<BEGIN>\n## `_store_cached_zone_variable`",
"Stores the current known value of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_source_variable 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_source_variable 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... | Get the current value of a source variable. If the variable is not
in the cache it will be retrieved from the controller. | "Get the current value of a source variable. If the variable is not\n in the cache it will be retrieved from the controller." | 24 | false | wickerwaka/russound_rio | get_source_variable | 29,149 | |
LDU_FT/bokeh/bokeh/_trigger | LDU_FT | [
"<BEGIN>\n## `notify_owner`",
"A decorator for mutating methods of property container classes\n that notifies owners of the property container about mutating changes.",
" Args:\n func (callable) : the container method to wrap in a notification",
" Returns:\n wrapped method",
" Exam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _trigger API.
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 _trigger API.
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... | Unconditionally send a change event notification for the property.
Args:
obj (HasProps)
The object the property is being set on.
old (obj) :
The previous value of the property
new (obj) :
The new value of the property
... | "Unconditionally send a change event notification for the property.\n\n Args:\n obj (HasProps)\n The object the property is being set on.\n\n old (obj) :\n The previous value of the property\n\n new (obj) :\n The new value of the prope... | 2,090 | true | bokeh/bokeh | _trigger | 29,150 | |
LDU_FT/Sanji-IO/sanji/compile_resource | LDU_FT | [
"<BEGIN>\n## `add`",
"Add a object\n Args:\n Object: Object will be added\n Returns:\n Object: Object with id\n Raises:\n TypeError: If add object is not a dict\n MultipleInvalid: If input object is invaild\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_resource API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_resource API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Return compiled regex for resource matching | "Return compiled regex for resource matching" | 45 | false | Sanji-IO/sanji | compile_resource | 29,151 | |
LDU_FT/facundobatista/yaswfp/s_get | LDU_FT | [
"<BEGIN>\n## `_str`",
"Show nicely the generic object received.\n<END>",
"<BEGIN>\n## `_repr`",
"Show the received object as precise as possible.\n<END>",
"<BEGIN>\n## `parsefile`",
"Parse a SWF.",
" If you have a file object already, just use SWFParser directly.",
" read_twips: True - return v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the s_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 d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the s_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 d... | Return a number using the given quantity of signed bits. | "Return a number using the given quantity of signed bits." | 56 | false | facundobatista/yaswfp | s_get | 29,152 | |
LDU_FT/jeremymcrae/denovonear/get_previous_symbol | LDU_FT | [
"<BEGIN>\n## `get_cached_data`",
"get cached data for a url if stored in the cache and not outdated",
" Args:\n url: URL for the Ensembl REST service",
" Returns:\n data if data in cache, else None\n<END>",
"<BEGIN>\n## `cache_url_data`",
"cache the data retrieved from ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_previous_symbol 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_previous_symbol 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... | sometimes we get HGNC symbols that do not match the ensembl rest version
that we are currently using. We can look for earlier HGNC symbols for
the gene using the service at rest.genenames.org
Args:
hgnc_symbol: HGNC symbol for the gene (eg "MLL2")
Returns:
... | "sometimes we get HGNC symbols that do not match the ensembl rest version\n that we are currently using. We can look for earlier HGNC symbols for\n the gene using the service at rest.genenames.org\n \n Args:\n hgnc_symbol: HGNC symbol for the gene (eg \"MLL2\")\n \n ... | 112 | false | jeremymcrae/denovonear | get_previous_symbol | 29,153 | |
LDU_FT/gawel/irc3/maybedotted | LDU_FT | [
"<BEGIN>\n## `dcc_event`",
"Work like :class:`~irc3.dec.event` but occurs during DCC CHATs\n<END>",
"<BEGIN>\n## `extend`",
"Allow to extend a bot:",
" Create a module with some useful routine:",
" .. literalinclude:: ../examples/myextends.py\n ..\n >>> import sys\n >>> sys.path.app... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maybedotted API.
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 maybedotted API.
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... | Resolve dotted names:
.. code-block:: python
>>> maybedotted('irc3.config')
<module 'irc3.config' from '...'>
>>> maybedotted('irc3.utils.IrcString')
<class 'irc3.utils.IrcString'>
.. | "Resolve dotted names:\n\n .. code-block:: python\n\n >>> maybedotted('irc3.config')\n <module 'irc3.config' from '...'>\n >>> maybedotted('irc3.utils.IrcString')\n <class 'irc3.utils.IrcString'>\n\n .." | 95 | false | gawel/irc3 | maybedotted | 29,154 | |
LDU_FT/Autodesk/aomi/freeze_args | LDU_FT | [
"<BEGIN>\n## `seed`",
"Will provision vault based on the definition within a Secretfile\n<END>",
"<BEGIN>\n## `render`",
"Render any provided template. This includes the Secretfile,\n Vault policies, and inline AWS roles\n<END>",
"<BEGIN>\n## `export`",
"Export contents of a Secretfile from the Vault s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the freeze_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the freeze_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Add command line options for the freeze operation | "Add command line options for the freeze operation" | 231 | false | Autodesk/aomi | freeze_args | 29,155 | |
LDU_FT/openfisca/openfisca-web-api/get_relative_file_path | LDU_FT | [
"<BEGIN>\n## `ensure_json_content_type`",
"ErrorMiddleware returns hard-coded content-type text/html.\n Here we force it to be application/json.\n<END>",
"<BEGIN>\n## `make_app`",
"Create a WSGI application and return it",
" ``global_conf``\n The inherited configuration for this application. No... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_relative_file_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.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_relative_file_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.... | Example:
absolute_file_path = "/home/xxx/Dev/openfisca/openfisca-france/openfisca_france/param/param.xml"
result = "openfisca_france/param/param.xml" | "Example:\n absolute_file_path = \"/home/xxx/Dev/openfisca/openfisca-france/openfisca_france/param/param.xml\"\n result = \"openfisca_france/param/param.xml\"" | 29 | false | openfisca/openfisca-web-api | get_relative_file_path | 29,156 | |
LDU_FT/user-cont/colin/nicer_get | LDU_FT | [
"<BEGIN>\n## `run`",
"Runs the sanity checks for the target.",
" :param timeout: timeout per-check (in seconds)\n :param skips: name of checks to skip\n :param target: str (image name, ostree or dockertar)\n or ImageTarget\n or path/file-like object for dockerfile\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nicer_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nicer_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 extract... | this is a nicer way of doing dict.get()
:param di: dict
:param required: bool, raises an exc if value is not found, otherwise returns None
:param path: list of str to navigate in the dict
:return: your value | "this is a nicer way of doing dict.get()\n\n :param di: dict\n :param required: bool, raises an exc if value is not found, otherwise returns None\n :param path: list of str to navigate in the dict\n :return: your value" | 114 | false | user-cont/colin | nicer_get | 29,157 | |
LDU_FT/KenjiTakahashi/td/done | LDU_FT | [
"<BEGIN>\n## `save`",
"@decorator: Saves data after executing :func:.",
" Also performs modifications set as permanent options.\n<END>",
"<BEGIN>\n## `add`",
"Adds new item to the model.",
" Name argument may contain (ref:) syntax, which will be\n stripped down as needed.",
" :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the done API.
Each 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 done API.
Each 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... | Handles the 'd' command.
:index: Index of the item to mark as done. | "Handles the 'd' command.\n\n :index: Index of the item to mark as done." | 82 | false | KenjiTakahashi/td | done | 29,158 | |
LDU_FT/sternoru/goscalecms/up_to_date | LDU_FT | [
"<BEGIN>\n## `dict`",
"Returns dictionary of post fields and attributes\n<END>",
"<BEGIN>\n## `get_posts`",
"This method returns list of Posts for this Data Source starting at a given offset and not more than limit\n It will call content-specific methods:\n _format() to format output from t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the up_to_date API.
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 up_to_date API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns True if plugin posts are up to date
Determined by self.updated and conf.GOSCALE_POSTS_UPDATE_FREQUENCY | "Returns True if plugin posts are up to date\n\n Determined by self.updated and conf.GOSCALE_POSTS_UPDATE_FREQUENCY" | 54 | false | sternoru/goscalecms | up_to_date | 29,159 | |
LDU_FT/trendels/rhino/input | LDU_FT | [
"<BEGIN>\n## `parse_etag_header`",
"Parse a header containing one or more ETags or a wildcard ('*').",
" Returns the string '*' or a list of ETags as (weak, etag) tuples.\n `weak` is the prefix designating a weak ETag, or the empty string.\n `etag` is the ETag (including quotes) with the weak prefix st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the input API.
Each 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 input API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Returns a file-like object representing the request body. | "Returns a file-like object representing the request body." | 158 | false | trendels/rhino | input | 29,160 | |
LDU_FT/jaywink/federation/_get_element_attr_or_none | LDU_FT | [
"<BEGIN>\n## `check_sender_and_entity_handle_match`",
"Ensure that sender and entity handles match.",
" Basically we've already verified the sender is who they say when receiving the payload. However, the sender might\n be trying to set another author in the payload itself, since Diaspora has the sender i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_element_attr_or_none API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_element_attr_or_none API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Using a CSS selector, get the element and return the given attribute value, or None if no element.
Args:
document (HTMLElement) - HTMLElement document
selector (str) - CSS selector
attribute (str) - The attribute to get from the element | "Using a CSS selector, get the element and return the given attribute value, or None if no element.\n\n Args:\n document (HTMLElement) - HTMLElement document\n selector (str) - CSS selector\n attribute (str) - The attribute to get from the element" | 230 | false | jaywink/federation | _get_element_attr_or_none | 29,161 | |
LDU_FT/keon/algorithms/lowest_common_ancestor | LDU_FT | [
"<BEGIN>\n## `convert_to_list`",
"converts a positive integer into a (reversed) linked list.\n for example: give 112\n result 2 -> 1 -> 1\n<END>",
"<BEGIN>\n## `convert_to_str`",
"converts the non-negative number list into a string.\n<END>",
"<BEGIN>\n## `three_sum`",
":param array: List[int... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lowest_common_ancestor 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 lowest_common_ancestor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | :type root: Node
:type p: Node
:type q: Node
:rtype: Node | ":type root: Node\n :type p: Node\n :type q: Node\n :rtype: Node" | 273 | false | keon/algorithms | lowest_common_ancestor | 29,162 | |
LDU_FT/tadashi-aikawa/owlmixin/reject | LDU_FT | [
"<BEGIN>\n## `from_dict`",
"From dict to instance",
" :param d: Dict\n :param force_snake_case: Keys are transformed to snake case in order to compliant PEP8 if True\n :param force_cast: Cast forcibly if True\n :param restrict: Prohibit extra parameters if True\n :return: Inst... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reject API.
Each 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 reject API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | :param func:
:type func: (K, T) -> bool
:rtype: TList[T]
Usage:
>>> TDict(k1=1, k2=2, k3=3).reject(lambda k, v: v < 3)
[3] | ":param func:\n :type func: (K, T) -> bool\n :rtype: TList[T]\n\n Usage:\n\n >>> TDict(k1=1, k2=2, k3=3).reject(lambda k, v: v < 3)\n [3]" | 248 | false | tadashi-aikawa/owlmixin | reject | 29,163 | |
LDU_FT/agoragames/haigha/consume | LDU_FT | [
"<BEGIN>\n## `commit`",
"Commit the current transaction. Caller can specify a callback to use\n when the transaction is committed.\n<END>",
"<BEGIN>\n## `rollback`",
"Abandon all message publications and acks in the current transaction.\n Caller can specify a callback to use when the transactio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Start a queue consumer.
Accepts the following optional arg in addition to those of
`BasicClass.consume()`:
:param cancel_cb: a callable to be called when the broker cancels the
consumer; e.g., when the consumer's queue is deleted. See
www.rabbitmq.com/consumer-cancel.html.
... | "Start a queue consumer.\n\n Accepts the following optional arg in addition to those of\n `BasicClass.consume()`:\n\n :param cancel_cb: a callable to be called when the broker cancels the\n consumer; e.g., when the consumer's queue is deleted. See\n www.rabbitmq.com/consumer-cance... | 200 | false | agoragames/haigha | consume | 29,164 | |
LDU_FT/olt/scriptine/parse_rst_params | LDU_FT | [
"<BEGIN>\n## `autocmds`",
"Parse and run commands.",
" Will search ``namespace`` for functions that end with ``command_suffix``.",
" :param namespace: the namespace/module to search for commands\n :param args: the arguments for the command parser. defaults to\n :data:`sys.argv`\n :param com... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_rst_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_rst_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Parse a reStructuredText docstring and return a dictionary
with parameter names and descriptions.
>>> doc = '''
... :param foo: foo parameter
... foo parameter
...
... :param bar: bar parameter
... :param baz: baz parameter
... baz parameter
... baz parameter... | "Parse a reStructuredText docstring and return a dictionary\n with parameter names and descriptions. \n \n >>> doc = '''\n ... :param foo: foo parameter\n ... foo parameter\n ... \n ... :param bar: bar parameter\n ... :param baz: baz parameter\n ... baz parameter\n ... ba... | 84 | false | olt/scriptine | parse_rst_params | 29,165 | |
LDU_FT/pahaz/sshtunnel/read_private_key_file | LDU_FT | [
"<BEGIN>\n## `check_address`",
"Check if the format of the address is correct",
" Arguments:\n address (tuple):\n (``str``, ``int``) representing an IP address and port,\n respectively",
" .. note::\n alternatively a local ``address`` can be a ``str`` ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_private_key_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_private_key_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.
... | Get SSH Public key from a private key file, given an optional password
Arguments:
pkey_file (str):
File containing a private key (RSA, DSS or ECDSA)
Keyword Arguments:
pkey_password (Optional[str]):
Password to decrypt the private key
... | "Get SSH Public key from a private key file, given an optional password\n\n Arguments:\n pkey_file (str):\n File containing a private key (RSA, DSS or ECDSA)\n Keyword Arguments:\n pkey_password (Optional[str]):\n Password to decrypt the private key\n ... | 96 | false | pahaz/sshtunnel | read_private_key_file | 29,166 | |
LDU_FT/ecederstrand/exchangelib/back_off_until | LDU_FT | [
"<BEGIN>\n## `wrap`",
"Generate the necessary boilerplate XML for a raw SOAP request. The XML is specific to the server version.\n ExchangeImpersonation allows to act as the user we want to impersonate.\n<END>",
"<BEGIN>\n## `get_auth_instance`",
"Returns an *Auth instance suitable for the requests package... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the back_off_until API.
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 back_off_until API.
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 the back off value as a datetime. Resets the current back off value if it has expired. | "Returns the back off value as a datetime. Resets the current back off value if it has expired." | 83 | false | ecederstrand/exchangelib | back_off_until | 29,167 | |
LDU_FT/nanoporetech/ont_fast5_api/add_analysis | LDU_FT | [
"<BEGIN>\n## `_clean`",
"Convert numpy numeric types to their python equivalents.\n<END>",
"<BEGIN>\n## `get_prior_alignment`",
"Return the prior alignment that was used for 2D basecalling.",
" :return: Alignment data table.\n<END>",
"<BEGIN>\n## `get_2d_call_alignment`",
"Return the alignment an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_analysis API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_analysis API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Add a new analysis group to the file.
:param component: The component name.
:param group_name: The name to use for the group. Must not already
exist in the file e.g. 'Test_000'.
:param attrs: A dictionary containing the key-value pairs to
put in the analysis grou... | "Add a new analysis group to the file.\n \n :param component: The component name.\n :param group_name: The name to use for the group. Must not already\n exist in the file e.g. 'Test_000'.\n :param attrs: A dictionary containing the key-value pairs to\n put in the analys... | 159 | false | nanoporetech/ont_fast5_api | add_analysis | 29,168 | |
LDU_FT/Yubico/python-yubico/unlock_key | LDU_FT | [
"<BEGIN>\n## `req_string`",
"Return string describing model and version requirement.\n<END>",
"<BEGIN>\n## `is_compatible`",
"Check if this flag is compatible with a YubiKey of version 'ver'.\n<END>",
"<BEGIN>\n## `get_set`",
"Return the boolean value of 'flag'. If 'new' is set,\n the flag is updat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unlock_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unlock_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 extrac... | Access code to allow re-programming of your YubiKey.
Supply data as either a raw bytestring, or a hexlified bytestring prefixed by 'h:'.
The result, after any hex decoding, must be 6 bytes. | "Access code to allow re-programming of your YubiKey.\n\n Supply data as either a raw bytestring, or a hexlified bytestring prefixed by 'h:'.\n The result, after any hex decoding, must be 6 bytes." | 141 | false | Yubico/python-yubico | unlock_key | 29,169 | |
LDU_FT/MakerReduxCorp/PLOD/returnIndexList | LDU_FT | [
"<BEGIN>\n## `dropKey`",
"Drop an attribute/element/key-value pair from all the dictionaries.",
" If the dictionary key does not exist in a particular dictionary, then\n that dictionary is left unchanged.",
" Side effect: if the key is a number and it matches a list (interpreted\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the returnIndexList API.
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 returnIndexList API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return a list of integers that are list-index references to the
original list of dictionaries."
Example of use:
>>> test = [
... {"name": "Jim", "age": 18, "income": 93000, "order": 2},
... {"name": "Larry", "age": 18, "order": 3},
... {"name... | "Return a list of integers that are list-index references to the\n original list of dictionaries.\"\n\n Example of use:\n\n >>> test = [\n ... {\"name\": \"Jim\", \"age\": 18, \"income\": 93000, \"order\": 2},\n ... {\"name\": \"Larry\", \"age\": 18, \"order\"... | 199 | false | MakerReduxCorp/PLOD | returnIndexList | 29,170 | |
LDU_FT/moonso/ped_parser/check_parent | LDU_FT | [
"<BEGIN>\n## `get_individual`",
"Return a individual object based on the indata.",
" Arguments:\n family_id (str): The id for this family\n sample_id (str): The id for this sample\n father_id (str): The id for this samples father\n mother_id (str): The id for t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_parent API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_parent API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Check if the parent info is correct. If an individual is not present in file raise exeption.
Input: An id that represents a parent
father = True/False
Raises SyntaxError if
The parent id is not present
The gender of the parent is wrong. | "Check if the parent info is correct. If an individual is not present in file raise exeption.\n\n Input: An id that represents a parent\n father = True/False\n\n Raises SyntaxError if\n The parent id is not present\n The gender of the parent is wrong." | 79 | false | moonso/ped_parser | check_parent | 29,171 | |
LDU_FT/ralphje/imagemounter/get_volumes | LDU_FT | [
"<BEGIN>\n## `_get_mount_methods`",
"Finds which mount methods are suitable for the specified disk type. Returns a list of all suitable mount\n methods.\n<END>",
"<BEGIN>\n## `mount`",
"Mounts the base image on a temporary location using the mount method stored in :attr:`method`. If mounting\n w... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_volumes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_volumes API.
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... | Recursively gets a list of all subvolumes and the current volume. | "Recursively gets a list of all subvolumes and the current volume." | 225 | false | ralphje/imagemounter | get_volumes | 29,172 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.