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/jeffknupp/sandman2/delete
LDU_FT
[ "<BEGIN>\n## `to_dict`", "Return a dictionary representation of the exception.\n<END>", "<BEGIN>\n## `required`", "Return a list of all columns required by the database to create the\n resource.", " :param cls: The Model class to gather attributes from\n :rtype: list\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return an HTTP response object resulting from a HTTP DELETE call. :param resource_id: The value of the resource's primary key
"Return an HTTP response object resulting from a HTTP DELETE call.\n\n :param resource_id: The value of the resource's primary key"
74
false
jeffknupp/sandman2
delete
24,473
LDU_FT/okfn/ofs/_RealGetContents
LDU_FT
[ "<BEGIN>\n## `revert`", "Revert the state to the version stored on disc.\n<END>", "<BEGIN>\n## `sync`", "Synchronise and update the stored state to the in-memory state.\n<END>", "<BEGIN>\n## `del_stream`", "Will fail if the bucket or label don't exist\n<END>", "<BEGIN>\n## `authenticate_request`", "Au...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _RealGetContents API. 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 _RealGetContents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Read in the table of contents for the ZIP file.
"Read in the table of contents for the ZIP file."
53
false
okfn/ofs
_RealGetContents
24,474
LDU_FT/pyapi-gitlab/pyapi-gitlab/deletegitlabciservice
LDU_FT
[ "<BEGIN>\n## `login`", "Logs the user in and setups the header with the private token", " :param email: Gitlab user Email\n :param user: Gitlab username\n :param password: Gitlab user password\n :return: True if login successful\n :raise: HttpError\n :raise: ValueError\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deletegitlabciservice 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 deletegitlabciservice API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Delete GitLab CI service settings :param project_id: Project ID :param token: Token :param project_url: Project URL :return: true if success, false if not
"Delete GitLab CI service settings\n\n :param project_id: Project ID\n :param token: Token\n :param project_url: Project URL\n :return: true if success, false if not"
239
false
pyapi-gitlab/pyapi-gitlab
deletegitlabciservice
24,475
LDU_FT/welbornprod/colr/move_up
LDU_FT
[ "<BEGIN>\n## `main`", "Main entry point, expects doctopt arg dict as argd.\n<END>", "<BEGIN>\n## `print_err`", "A wrapper for print() that uses stderr by default.\n<END>", "<BEGIN>\n## `walk_dir_animated`", "Walk a directory, printing status updates along the way.\n<END>", "<BEGIN>\n## `walk_dir_progres...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_up API. Each 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 move_up API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Move the cursor up a number of lines. Esc[ValueA: Moves the cursor up by the specified number of lines without changing columns. If the cursor is already on the top line, ANSI.SYS ignores this sequence.
"Move the cursor up a number of lines.\n\n Esc[ValueA:\n Moves the cursor up by the specified number of lines without changing\n columns. If the cursor is already on the top line, ANSI.SYS ignores\n this sequence."
316
false
welbornprod/colr
move_up
24,476
LDU_FT/Xion/taipan/_is_final
LDU_FT
[ "<BEGIN>\n## `decorator`", "Decorator for decorators (sic), written either as classes or functions.", " In either case, the decorator ``decor`` must be \"doubly-callable\":", " * for classes, this means implementing ``__call__`` method\n in addition to possible ``__init__``\n * for f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_final API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_final API. 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...
Checks whether given class or method has been marked with the ``@final`` decorator.
"Checks whether given class or method has been marked\n with the ``@final`` decorator."
396
false
Xion/taipan
_is_final
24,477
LDU_FT/tjvr/kurt/copy
LDU_FT
[ "<BEGIN>\n## `_workaround_no_stage_specific_variables`", "Make Stage-specific variables global (move them to Project).\n<END>", "<BEGIN>\n## `register`", "Register a new :class:`KurtPlugin`.", " Once registered, the plugin can be used by :class:`Project`, when:", " * :attr:`Project.load` see...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return a new instance, deep-copying all the attributes.
"Return a new instance, deep-copying all the attributes."
171
false
tjvr/kurt
copy
24,478
LDU_FT/erikrose/peep/peep_install
LDU_FT
[ "<BEGIN>\n## `activate`", "Make a compatible version of pip importable. Raise a RuntimeError if we\n couldn't.\n<END>", "<BEGIN>\n## `path_and_line`", "Return the path and line number of the file from which an\n InstallRequirement came.\n<END>", "<BEGIN>\n## `hashes_above`", "Yield hashes from conti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the peep_install API. 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 peep_install API. 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...
Perform the ``peep install`` subcommand, returning a shell status code or raising a PipException. :arg argv: The commandline args, starting after the subcommand
"Perform the ``peep install`` subcommand, returning a shell status code\n or raising a PipException.\n\n :arg argv: The commandline args, starting after the subcommand"
53
false
erikrose/peep
peep_install
24,479
LDU_FT/erikrose/more-itertools/intersperse
LDU_FT
[ "<BEGIN>\n## `first`", "Return the first item of *iterable*, or *default* if *iterable* is\n empty.", " >>> first([0, 1, 2, 3])\n 0\n >>> first([], 'some default')\n 'some default'", " If *default* is not provided and there are no items in the iterable,\n raise ``ValueErro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intersperse API. 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 intersperse API. 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...
Intersperse filler element *e* among the items in *iterable*, leaving *n* items between each filler element. >>> list(intersperse('!', [1, 2, 3, 4, 5])) [1, '!', 2, '!', 3, '!', 4, '!', 5] >>> list(intersperse(None, [1, 2, 3, 4, 5], n=2)) [1, 2, None, 3, 4, None, 5]
"Intersperse filler element *e* among the items in *iterable*, leaving\n *n* items between each filler element.\n\n >>> list(intersperse('!', [1, 2, 3, 4, 5]))\n [1, '!', 2, '!', 3, '!', 4, '!', 5]\n\n >>> list(intersperse(None, [1, 2, 3, 4, 5], n=2))\n [1, 2, None, 3, 4, None, 5]"
342
false
erikrose/more-itertools
intersperse
24,480
LDU_FT/raghakot/keras-vis/add_defaults_to_kwargs
LDU_FT
[ "<BEGIN>\n## `visualize_activation_with_losses`", "Generates the `input_tensor` that minimizes the weighted `losses`. This function is intended for advanced\n use cases where a custom loss is desired.", " Args:\n input_tensor: An input tensor of shape: `(samples, channels, image_dims...)` if `image...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_defaults_to_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_defaults_to_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Updates `kwargs` with dict of `defaults` Args: defaults: A dictionary of keys and values **kwargs: The kwargs to update. Returns: The updated kwargs.
"Updates `kwargs` with dict of `defaults`\n\n Args:\n defaults: A dictionary of keys and values\n **kwargs: The kwargs to update.\n\n Returns:\n The updated kwargs."
138
false
raghakot/keras-vis
add_defaults_to_kwargs
24,481
LDU_FT/mnooner256/pyqrcode/encode_bytes
LDU_FT
[ "<BEGIN>\n## `create`", "When creating a QR code only the content to be encoded is required,\n all the other properties of the code will be guessed based on the\n contents given. This function will return a :class:`QRCode` object.", " Unless you are familiar with QR code's inner workings\n it is rec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
This method encodes the QR code's data if its mode is 8 bit mode. It returns the data encoded as a binary string.
"This method encodes the QR code's data if its mode is\n 8 bit mode. It returns the data encoded as a binary string."
143
false
mnooner256/pyqrcode
encode_bytes
24,482
LDU_FT/thomasjiangcy/django-rest-mock/handle_other_factory_method
LDU_FT
[ "<BEGIN>\n## `_get_view_details`", "Recursive function to extract all url details\n<END>", "<BEGIN>\n## `get_store`", "The state of the mock server will be stored in the resulting\n object created here\n<END>", "<BEGIN>\n## `build`", "Builds a server file.", " 1. Extract mock response details from...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_other_factory_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_other_factory_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
This is a temporary static method, when there are more factory methods, we can move this to another class or find a way to maintain it in a scalable manner
"This is a temporary static method, when there are more factory\n methods, we can move this to another class or find a way to maintain\n it in a scalable manner"
15
false
thomasjiangcy/django-rest-mock
handle_other_factory_method
24,483
LDU_FT/bdcht/grandalf/rank_all
LDU_FT
[ "<BEGIN>\n## `_meanvalueattr`", "find new position of vertex v according to adjacency in prevlayer.\n position is given by the mean value of adjacent positions.\n experiments show that meanvalue heuristic performs better than median.\n<END>", "<BEGIN>\n## `_medianindex`", "find new position of v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rank_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rank_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Computes rank of all vertices. add provided roots to rank 0 vertices, otherwise update ranking from provided roots. The initial rank is based on precedence relationships, optimal ranking may be derived from network flow (simplex).
"Computes rank of all vertices.\n add provided roots to rank 0 vertices,\n otherwise update ranking from provided roots.\n The initial rank is based on precedence relationships,\n optimal ranking may be derived from network flow (simplex)."
41
false
bdcht/grandalf
rank_all
24,484
LDU_FT/jgm/pandocfilters/stringify
LDU_FT
[ "<BEGIN>\n## `get_filename4code`", "Generate filename based on content", " The function ensures that the (temporary) directory exists, so that the\n file can be written.", " Example:\n filename = get_filename4code(\"myfilter\", code)\n<END>", "<BEGIN>\n## `get_caption`", "get caption from ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stringify API. 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 stringify API. 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...
Walks the tree x and returns concatenated string content, leaving out all formatting.
"Walks the tree x and returns concatenated string content,\n leaving out all formatting."
30
false
jgm/pandocfilters
stringify
24,485
LDU_FT/ga4gh/ga4gh-client/addFeaturesSearchOptions
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 addFeaturesSearchOptions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addFeaturesSearchOptions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Adds common options to a features search command line parser.
"Adds common options to a features search command line parser."
104
false
ga4gh/ga4gh-client
addFeaturesSearchOptions
24,486
LDU_FT/Phyks/libbmc/get_plaintext_citations
LDU_FT
[ "<BEGIN>\n## `is_valid`", "Check that a given HAL id is a valid one.", " :param hal_id: The HAL id to be checked.\n :returns: Boolean indicating whether the HAL id is valid or not.", " >>> is_valid(\"hal-01258754, version 1\")\n True", " >>> is_valid(\"hal-01258754\")\n True", " >>> i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_plaintext_citations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_plaintext_citations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Get the citations of a given preprint, in plain text. .. note:: Bulk download of sources from arXiv is not permitted by their API. \ You should have a look at http://arxiv.org/help/bulk_data_s3. :param arxiv_id: The arXiv id (e.g. ``1401.2910`` or ``1401.2910v1``) in \ a c...
"Get the citations of a given preprint, in plain text.\n\n .. note::\n\n Bulk download of sources from arXiv is not permitted by their API. \\\n You should have a look at http://arxiv.org/help/bulk_data_s3.\n\n :param arxiv_id: The arXiv id (e.g. ``1401.2910`` or ``1401.2910v1``) in \\\n ...
271
false
Phyks/libbmc
get_plaintext_citations
24,487
LDU_FT/hyperledger/indy-plenum/root_hash
LDU_FT
[ "<BEGIN>\n## `set_status`", "Set the status of the motor to the specified value if not already set.\n<END>", "<BEGIN>\n## `stop`", "Set the status to Status.stopping and also call `onStopping`\n with the provided args and kwargs.\n<END>", "<BEGIN>\n## `next_primary_replica_name_for_master`", "Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the root_hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the root_hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns the root hash of this tree. (Only re-computed on change.)
"Returns the root hash of this tree. (Only re-computed on change.)"
773
false
hyperledger/indy-plenum
root_hash
24,488
LDU_FT/Element-34/py.saunter/wait_for_visible
LDU_FT
[ "<BEGIN>\n## `get_random_user`", "Gets a random user from the provider", " :returns: Dictionary\n<END>", "<BEGIN>\n## `is_element_available`", "Synchronization method for making sure the element we're looking for is not only on the page,\n but also visible -- since Se will happily deal with th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_visible API. 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 wait_for_visible API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Synchronization to deal with elements that are present, but are disabled until some action triggers their visibility. :raises: ElementVisiblityTimeout
"Synchronization to deal with elements that are present, but are disabled until some action\n triggers their visibility.\n\n :raises: ElementVisiblityTimeout"
81
false
Element-34/py.saunter
wait_for_visible
24,489
LDU_FT/chemlab/chemlab/_get_nsymop
LDU_FT
[ "<BEGIN>\n## `molecular_orbital`", "Return a molecular orbital given the nuclei coordinates, as well as\n molecular orbital coefficients and basis set specification as given by the cclib library.", " The molecular orbital is represented as a function that takes x, y, z coordinates (in a vectorized f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_nsymop API. 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_nsymop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns total number of symmetry operations.
"Returns total number of symmetry operations."
665
false
chemlab/chemlab
_get_nsymop
24,490
LDU_FT/wglass/lighthouse/remove_configurable
LDU_FT
[ "<BEGIN>\n## `get_installed_classes`", "Iterates over installed plugins associated with the `entry_point` and\n returns a dictionary of viable ones keyed off of their names.", " A viable installed plugin is one that is both loadable *and* a subclass\n of the Pluggable subclass in question.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_configurable 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 remove_configurable 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...
Callback fired when a configurable instance is removed. Looks up the existing configurable in the proper "registry" and removes it. If a method named "on_<configurable classname>_remove" is defined it is called via the work pooland passed the configurable's name. If the remove...
"Callback fired when a configurable instance is removed.\n\n Looks up the existing configurable in the proper \"registry\" and\n removes it.\n\n If a method named \"on_<configurable classname>_remove\" is defined it\n is called via the work pooland passed the configurable's name.\n\n ...
231
false
wglass/lighthouse
remove_configurable
24,491
LDU_FT/deontologician/restnavigator/append_with
LDU_FT
[ "<BEGIN>\n## `cache`", "Stores a navigator in the identity map for the current\n api. Can take a link or a bare uri\n<END>", "<BEGIN>\n## `get_cached`", "Retrieves a cached navigator from the id_map.", " Either a Link object or a bare uri string may be passed in.\n<END>", "<BEGIN>\n## `is_ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_with API. 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 append_with API. 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 an item to the dictionary with the given metadata properties
"Add an item to the dictionary with the given metadata properties"
72
false
deontologician/restnavigator
append_with
24,492
LDU_FT/idlesign/uwsgiconf/header_add
LDU_FT
[ "<BEGIN>\n## `set_exit_events`", "Do exit on certain events", " :param bool no_workers: Shutdown uWSGI when no workers are running.", " :param bool idle: Shutdown uWSGI when idle.", " :param bool reload: Force exit even if a reload is requested.", " :param bool sig_term: Exit o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the header_add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the header_add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Automatically add HTTP headers to response. :param str|unicode name: :param str|unicode value:
"Automatically add HTTP headers to response.\n\n :param str|unicode name:\n\n :param str|unicode value:"
1,094
true
idlesign/uwsgiconf
header_add
24,493
LDU_FT/openvax/mhcnames/normalize_allele_name
LDU_FT
[ "<BEGIN>\n## `parse_substring`", "Extract substring of letters for which predicate is True\n<END>", "<BEGIN>\n## `parse_mouse_allele_name`", "Parses mouse MHc alleles such as H2-Kd, H-2-Db, H2-IAb.\n Returns pair of (gene, allele_code).\n<END>", "<BEGIN>\n## `infer_alpha_chain`", "Given a parsed beta c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_allele_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 normalize_allele_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. ...
MHC alleles are named with a frustratingly loose system. It's not uncommon to see dozens of different forms for the same allele. Note: this function works with both class I and class II allele names (including alpha/beta pairs). For example, these all refer to the same MHC sequence: - HLA-A*02...
"MHC alleles are named with a frustratingly loose system. It's not uncommon\n to see dozens of different forms for the same allele.\n\n Note: this function works with both class I and class II allele names (including\n alpha/beta pairs).\n\n For example, these all refer to the same MHC sequence:\n - ...
29
false
openvax/mhcnames
normalize_allele_name
24,494
LDU_FT/proteanhq/protean/_validate_unique
LDU_FT
[ "<BEGIN>\n## `from_dict`", "Initialize a ListRequestObject object from a dictionary.\n<END>", "<BEGIN>\n## `_cast_to_type`", "Convert the value to its string representation\n<END>", "<BEGIN>\n## `_cast_to_type`", "Convert the value to an int and raise error on failures\n<END>", "<BEGIN>\n## `_cast_to_ty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_unique API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_unique API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Validate the unique constraints for the entity
"Validate the unique constraints for the entity"
214
false
proteanhq/protean
_validate_unique
24,495
LDU_FT/foremast/foremast/get_all_apps
LDU_FT
[ "<BEGIN>\n## `create_elb_dns`", "Create dns entries in route53.", " Args:\n regionspecific (bool): The DNS entry should have region on it\n Returns:\n str: Auto-generated DNS name for the Elastic Load Balancer.\n<END>", "<BEGIN>\n## `create_failover_dns`", "Create dns ent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_apps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_apps API. 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...
Get a list of all applications in Spinnaker. Returns: requests.models.Response: Response from Gate containing list of all apps.
"Get a list of all applications in Spinnaker.\n\n Returns:\n requests.models.Response: Response from Gate containing list of all apps."
585
false
foremast/foremast
get_all_apps
24,496
LDU_FT/inveniosoftware-attic/invenio-upgrader/estimate
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 estimate API. 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 estimate API. 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...
Estimate the time needed to apply upgrades. If an upgrades does not specify and estimate it is assumed to be in the order of 1 second. :param upgrades: List of upgrades sorted in topological order.
"Estimate the time needed to apply upgrades.\n\n If an upgrades does not specify and estimate it is assumed to be\n in the order of 1 second.\n\n :param upgrades: List of upgrades sorted in topological order."
59
false
inveniosoftware-attic/invenio-upgrader
estimate
24,497
LDU_FT/oemof/oemof.db/get_polygon_from_nuts
LDU_FT
[ "<BEGIN>\n## `get_polygon_from_nuts`", "r\"\"\"A one-line summary that does not use variable names or the\n function name.", " Several sentences providing an extended description. Refer to\n variables using back-ticks, e.g. `var`.", " Parameters\n ----------\n var1 : array_like\n Arra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_polygon_from_nuts 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_polygon_from_nuts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
r"""A one-line summary that does not use variable names or the function name. Several sentences providing an extended description. Refer to variables using back-ticks, e.g. `var`. Parameters ---------- var1 : array_like Array_like means all those objects -- lists, nested lists, etc. --...
"r\"\"\"A one-line summary that does not use variable names or the\n function name.\n\n Several sentences providing an extended description. Refer to\n variables using back-ticks, e.g. `var`.\n\n Parameters\n ----------\n var1 : array_like\n Array_like means all those objects -- lists, nested l...
82
false
oemof/oemof.db
get_polygon_from_nuts
24,498
LDU_FT/klen/adrest/call
LDU_FT
[ "<BEGIN>\n## `convert_identifier_to_key`", "Takes an identifier (like a username or IP address) and converts it\n into a key usable by the cache system.\n<END>", "<BEGIN>\n## `emit`", "Serialize response.", " :return response: Instance of django.http.Response\n<END>", "<BEGIN>\n## `seria...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Call resource by ``Api`` name. :param name: The resource's name (short form) :param request: django.http.Request instance :param **params: Params for a resource's call :return object: Result of resource's execution
"Call resource by ``Api`` name.\n\n :param name: The resource's name (short form)\n :param request: django.http.Request instance\n :param **params: Params for a resource's call\n\n :return object: Result of resource's execution"
146
false
klen/adrest
call
24,499
LDU_FT/buriburisuri/sugartensor/sg_aconv1d
LDU_FT
[ "<BEGIN>\n## `constant`", "r\"\"\"Creates a tensor variable of which initial values are `value` and shape is `shape`.", " Args:\n name: The name of new variable.\n shape: A tuple/list of integers or an integer. \n If shape is an integer, it is converted to a list.\n value: A Python scal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sg_aconv1d API. 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 sg_aconv1d API. 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...
r"""Applies 1-D atrous (or dilated) convolution. Args: tensor: A 3-D `Tensor` (automatically passed by decorator). opt: causal: Boolean. If True, zeros are padded before the time axis such that each activation unit doesn't have receptive neurons beyond the equivalent time step. ...
"r\"\"\"Applies 1-D atrous (or dilated) convolution.\n \n Args:\n tensor: A 3-D `Tensor` (automatically passed by decorator).\n opt:\n causal: Boolean. If True, zeros are padded before the time axis such that\n each activation unit doesn't have receptive neurons beyond the equivalent tim...
399
false
buriburisuri/sugartensor
sg_aconv1d
24,500
LDU_FT/cs01/gdbgui/csrf_protect
LDU_FT
[ "<BEGIN>\n## `get_marked_up_list`", "an updated version of pygments.formatter.format_unencoded\n<END>", "<BEGIN>\n## `get_ssl_context`", "Get ssl context from private key and certificate paths.\n The return value is used when calling Flask.\n i.e. app.run(ssl_context=get_ssl_context(,,,))\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the csrf_protect API. 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 csrf_protect API. 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...
A decorator to add csrf protection by validing the X_CSRFTOKEN field in request header
"A decorator to add csrf protection by validing the X_CSRFTOKEN\n field in request header"
22
false
cs01/gdbgui
csrf_protect
24,501
LDU_FT/nimeshkverma/mongo_joins/get_collections_data
LDU_FT
[ "<BEGIN>\n## `change_dict_keys`", "Prefixes 'L_'/'R_' to the collection keys\n :param data_dict: dictionary which is to be altered\n :type data_dict: dict", " :param prefix: prefix to be attached before every key\n :type prefix: string", " :return dict_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_collections_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_collections_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Driver function to fetch the data from the two collections
"Driver function to fetch the data from the two collections"
40
false
nimeshkverma/mongo_joins
get_collections_data
24,502
LDU_FT/svasilev94/GraphLibrary/find_all_paths
LDU_FT
[ "<BEGIN>\n## `dijkstra`", "Compute shortest path length between satrt\r\n and all other reachable nodes for a weight graph.\r\n return -> ({vertex: weight form start, }, {vertex: predeseccor, })\n<END>", "<BEGIN>\n## `dijkstra_single_path_length`", "Compute shortest path length between satrt\r\n and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_all_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. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_all_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. The ex...
Find all paths between vertices start and end in graph.
"Find all paths between vertices start and end in graph."
24
false
svasilev94/GraphLibrary
find_all_paths
24,503
LDU_FT/parkouss/pyewmh/getWmAllowedActions
LDU_FT
[ "<BEGIN>\n## `setActiveWindow`", "Set the given window active (property _NET_ACTIVE_WINDOW)", " :param win: the window object\n<END>", "<BEGIN>\n## `setCloseWindow`", "Close the given window (property _NET_CLOSE_WINDOW)", " :param win: the window object\n<END>", "<BEGIN>\n## `setMoveResize...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getWmAllowedActions 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 getWmAllowedActions 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 list of allowed actions for the given window (property _NET_WM_ALLOWED_ACTIONS). :param win: the window object :param str: True to get a list of string allowed actions instead of int :return: list of (int|str)
"Get the list of allowed actions for the given window (property\n _NET_WM_ALLOWED_ACTIONS).\n\n :param win: the window object\n :param str: True to get a list of string allowed actions instead of int\n :return: list of (int|str)"
27
false
parkouss/pyewmh
getWmAllowedActions
24,504
LDU_FT/paolodragone/pymzn/save_model
LDU_FT
[ "<BEGIN>\n## `minizinc`", "Coroutine version of the ``pymzn.minizinc`` function.", " Parameters\n ----------\n max_queue_size : int\n Maximum number of solutions in the queue between the solution parser and\n the returned solution stream. When the queue is full, the solver\n execut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_model API. 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 save_model API. 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...
Save a model to file. Parameters ---------- model : str The minizinc model (i.e. the content of a ``.mzn`` file). output_file : str The path to the output file. If this parameter is ``None`` (default), a temporary file is created with the given model in the specified output ...
"Save a model to file.\n\n Parameters\n ----------\n model : str\n The minizinc model (i.e. the content of a ``.mzn`` file).\n output_file : str\n The path to the output file. If this parameter is ``None`` (default), a\n temporary file is created with the given model in the specified ou...
102
false
paolodragone/pymzn
save_model
24,505
LDU_FT/kyan001/ping3/checksum
LDU_FT
[ "<BEGIN>\n## `ones_comp_sum16`", "Calculates the 1's complement sum for 16-bit numbers.", " Args:\n num1: 16-bit number.\n num2: 16-bit number.", " Returns:\n The calculated result.\n<END>", "<BEGIN>\n## `checksum`", "Calculates the checksum of the input bytes.", " RFC1071:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checksum API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checksum API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Calculates the checksum of the input bytes. RFC1071: https://tools.ietf.org/html/rfc1071 RFC792: https://tools.ietf.org/html/rfc792 Args: source: The input to be calculated. Returns: Calculated checksum.
"Calculates the checksum of the input bytes.\n\n RFC1071: https://tools.ietf.org/html/rfc1071\n RFC792: https://tools.ietf.org/html/rfc792\n\n Args:\n source: The input to be calculated.\n\n Returns:\n Calculated checksum."
30
false
kyan001/ping3
checksum
24,506
LDU_FT/mfussenegger/cr8/geo_shape
LDU_FT
[ "<BEGIN>\n## `to_int`", "converts a string to an integer", " >>> to_int('1_000_000')\n 1000000", " >>> to_int('1e6')\n 1000000", " >>> to_int('1000')\n 1000\n<END>", "<BEGIN>\n## `dicts_from_lines`", "returns a generator producing dicts from json lines", " 1 JSON object per line i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the geo_shape API. 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 geo_shape API. 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...
Return a WKT string for a POLYGON with given amount of sides. The polygon is defined by its center (random point if not provided) and the distance (random distance if not provided; in km) of the points to its center.
"Return a WKT string for a POLYGON with given amount of sides.\n The polygon is defined by its center (random point if not provided) and\n the distance (random distance if not provided; in km) of the points to\n its center."
146
false
mfussenegger/cr8
geo_shape
24,507
LDU_FT/biocommons/bioutils/get_assembly_names
LDU_FT
[ "<BEGIN>\n## `fetch_seq`", "Fetches sequences and subsequences from NCBI eutils and Ensembl\n REST interfaces.", " :param string ac: accession of sequence to fetch\n :param int start_i: start position of *interbase* interval\n :param int end_i: end position of *interbase* interval", " **IMPORTA...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_assembly_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_assembly_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
return list of available assemblies >>> assy_names = get_assembly_names() >>> 'GRCh37.p13' in assy_names True
"return list of available assemblies\n \n >>> assy_names = get_assembly_names()\n\n >>> 'GRCh37.p13' in assy_names\n True"
172
false
biocommons/bioutils
get_assembly_names
24,508
LDU_FT/steffann/pylisp/sanitize
LDU_FT
[ "<BEGIN>\n## `from_bytes`", "Look at the type of the message, instantiate the correct class and\n let it parse the message.\n<END>", "<BEGIN>\n## `sanitize`", "Check if the current settings conform to the LISP specifications and\n fix them where possible.\n<END>", "<BEGIN>\n## `calculate_authe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sanitize API. 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 sanitize API. 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...
Check if the current settings conform to the LISP specifications and fix where possible.
"Check if the current settings conform to the LISP specifications and\n fix where possible."
85
false
steffann/pylisp
sanitize
24,509
LDU_FT/cqlengine/cqlengine/column_family_name
LDU_FT
[ "<BEGIN>\n## `create_keyspace`", "creates a keyspace", " :param name: name of keyspace to create\n :param strategy_class: keyspace replication strategy class\n :param replication_factor: keyspace replication factor\n :param durable_writes: 1.2 only, write log is bypassed if set to False\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the column_family_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the column_family_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. Th...
Returns the column family name if it's been defined otherwise, it creates it from the module and class name
"Returns the column family name if it's been defined\n otherwise, it creates it from the module and class name"
65
false
cqlengine/cqlengine
column_family_name
24,510
LDU_FT/gagneurlab/concise/read_RNAplfold
LDU_FT
[ "<BEGIN>\n## `best_kmers`", "Find best k-mers for CONCISE initialization.", " Args:\n dt (pd.DataFrame): Table containing response variable and sequence.\n response (str): Name of the column used as the reponse variable.\n sequence (str): Name of the column storing the DNA/RNA sequences....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_RNAplfold API. 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 read_RNAplfold API. 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...
pad_with = with which 2ndary structure should we pad the sequence?
"pad_with = with which 2ndary structure should we pad the sequence?"
311
false
gagneurlab/concise
read_RNAplfold
24,511
LDU_FT/harvard-nrg/yaxil/splitarg
LDU_FT
[ "<BEGIN>\n## `splitarg`", "This function will split arguments separated by spaces or commas \n to be backwards compatible with the original ArcGet command line tool\n<END>", "<BEGIN>\n## `search`", "Search for DICOM files within a given directory and receive back a \n dictionary of {StudyInstanceUID: {S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the splitarg API. 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 splitarg API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
This function will split arguments separated by spaces or commas to be backwards compatible with the original ArcGet command line tool
"This function will split arguments separated by spaces or commas \n to be backwards compatible with the original ArcGet command line tool"
71
false
harvard-nrg/yaxil
splitarg
24,512
LDU_FT/sprockets/sprockets.mixins.http/body
LDU_FT
[ "<BEGIN>\n## `append_response`", "Append the response to the stack of responses.", " :param tornado.httpclient.HTTPResponse response: The HTTP response\n<END>", "<BEGIN>\n## `body`", "Returns the HTTP response body, deserialized if possible.", " :rtype: mixed\n<END>", "<BEGIN>\n## `links`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the body API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the body API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns the HTTP response body, deserialized if possible. :rtype: mixed
"Returns the HTTP response body, deserialized if possible.\n\n :rtype: mixed"
35
false
sprockets/sprockets.mixins.http
body
24,513
LDU_FT/JamesRamm/longclaw/requests_admin
LDU_FT
[ "<BEGIN>\n## `shipping_cost`", "Returns the shipping cost for a given country\n If the shipping cost for the given country has not been set, it will\n fallback to the default shipping cost if it has been enabled in the app\n settings\n<END>", "<BEGIN>\n## `shipping_options`", "Get the shipping option...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requests_admin API. 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 requests_admin API. 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...
Table display of each request for a given product. Allows the given Page pk to refer to a direct parent of the ProductVariant model or be the ProductVariant model itself. This allows for the standard longclaw product modelling philosophy where ProductVariant refers to the actual product (in the case wh...
"Table display of each request for a given product.\n\n Allows the given Page pk to refer to a direct parent of\n the ProductVariant model or be the ProductVariant model itself.\n This allows for the standard longclaw product modelling philosophy where\n ProductVariant refers to the actual product (in the c...
49
false
JamesRamm/longclaw
requests_admin
24,514
LDU_FT/python-bugzilla/python-bugzilla/_check_version
LDU_FT
[ "<BEGIN>\n## `_request_helper`", "A helper method to assist in making a request and provide a parsed\n response.\n<END>", "<BEGIN>\n## `open_without_clobber`", "Try to open the given file with the given mode; if that filename exists,\n try \"name.1\", \"name.2\", etc. until we find an unused filenam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Check if the detected bugzilla version is >= passed major/minor pair.
"Check if the detected bugzilla version is >= passed major/minor pair."
184
false
python-bugzilla/python-bugzilla
_check_version
24,515
LDU_FT/earlzo/hfut/parse_course
LDU_FT
[ "<BEGIN>\n## `get_point`", "根据成绩判断绩点", " :param grade_str: 一个字符串,因为可能是百分制成绩或等级制成绩\n :return: 成绩绩点\n :rtype: float\n<END>", "<BEGIN>\n## `cal_gpa`", "根据成绩数组计算课程平均绩点和 gpa, 算法不一定与学校一致, 结果仅供参考", " :param grades: :meth:`models.StudentSession.get_my_achievements` 返回的成绩数组\n :return: 包含了课程平均绩点和 gpa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_course API. 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 parse_course API. 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...
解析课程表里的课程 :param course_str: 形如 `单片机原理及应用[新安学堂434 (9-15周)]/数字图像处理及应用[新安学堂434 (1-7周)]/` 的课程表数据
"解析课程表里的课程\n\n :param course_str: 形如 `单片机原理及应用[新安学堂434 (9-15周)]/数字图像处理及应用[新安学堂434 (1-7周)]/` 的课程表数据"
83
false
earlzo/hfut
parse_course
24,516
LDU_FT/peterservice-rnd/robotframework-jsonvalidator/get_elements
LDU_FT
[ "<BEGIN>\n## `_validate_json`", "Validate JSON according to JSONSchema", " *Args*:\\n\n _checked_json_: validated JSON.\n _schema_: schema that used for validation.\n<END>", "<BEGIN>\n## `validate_jsonschema_from_file`", "Validate JSON according to schema, loaded from a file.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_elements API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_elements API. 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...
Get list of elements from _json_string_, matching [http://goessner.net/articles/JsonPath/|JSONPath] expression. *Args:*\n _json_string_ - JSON string;\n _expr_ - JSONPath expression; *Returns:*\n List of found elements or ``None`` if no elements were found *Example:*\n...
"Get list of elements from _json_string_, matching [http://goessner.net/articles/JsonPath/|JSONPath] expression.\n\n *Args:*\\n\n _json_string_ - JSON string;\\n\n _expr_ - JSONPath expression;\n\n *Returns:*\\n\n List of found elements or ``None`` if no elements were found\n\n ...
67
false
peterservice-rnd/robotframework-jsonvalidator
get_elements
24,517
LDU_FT/Cognexa/cxflow/create_hooks
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 create_hooks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_hooks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Create hooks specified in ``config['hooks']`` list. Hook config entries may be one of the following types: .. code-block:: yaml :caption: A hook with default args specified only by its name as a string; e.g. hooks: - LogVariables - cxflow_tensorflow.WriteTensorBoard ....
"Create hooks specified in ``config['hooks']`` list.\n\n Hook config entries may be one of the following types:\n\n .. code-block:: yaml\n :caption: A hook with default args specified only by its name as a string; e.g.\n\n hooks:\n - LogVariables\n - cxflow_tensorflow.WriteTensorBo...
325
false
Cognexa/cxflow
create_hooks
24,518
LDU_FT/ray-project/ray/create_trial_from_spec
LDU_FT
[ "<BEGIN>\n## `_agent_import_failed`", "Returns dummy agent class for if PyTorch etc. is not installed.\n<END>", "<BEGIN>\n## `run`", "Executes training.", " Args:\n run_or_experiment (function|class|str|Experiment): If\n function|class|str, this is the algorithm or model to train.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_trial_from_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_trial_from_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....
Creates a Trial object from parsing the spec. Arguments: spec (dict): A resolved experiment specification. Arguments should The args here should correspond to the command line flags in ray.tune.config_parser. output_path (str); A specific output path within the local_dir. ...
"Creates a Trial object from parsing the spec.\n\n Arguments:\n spec (dict): A resolved experiment specification. Arguments should\n The args here should correspond to the command line flags\n in ray.tune.config_parser.\n output_path (str); A specific output path within the local_...
1,706
true
ray-project/ray
create_trial_from_spec
24,519
LDU_FT/psss/did/item
LDU_FT
[ "<BEGIN>\n## `search`", "Perform issue search for given stats instance\n<END>", "<BEGIN>\n## `updated`", "True if the issue was commented by given user\n<END>", "<BEGIN>\n## `issues`", "Filter unique issues for given activity type and email\n<END>", "<BEGIN>\n## `_fetch_activities`", "Get organization...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the item API. Each 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 item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return content of given item in selected section
"Return content of given item in selected section"
118
false
psss/did
item
24,520
LDU_FT/mitodl/pylti/_consumers
LDU_FT
[ "<BEGIN>\n## `_post_patched_request`", "Authorization header needs to be capitalized for some LTI clients\n this function ensures that header is capitalized", " :param body: body of the call\n :param client: OAuth Client\n :param url: outcome url\n :return: response\n<END>", "<BEGIN>\n## `post_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _consumers API. 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 _consumers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Gets consumers from Lambda environment variables prefixed with CONSUMER_KEY_SECRET_. For example, given a consumer key of foo and a shared secret of bar, you should have an environment variable CONSUMER_KEY_SECRET_foo=bar. :return: consumers map :raises: LTIException if environm...
"Gets consumers from Lambda environment variables prefixed with\n CONSUMER_KEY_SECRET_. For example, given a consumer key of foo\n and a shared secret of bar, you should have an environment\n variable CONSUMER_KEY_SECRET_foo=bar.\n\n :return: consumers map\n :raises: LTIException if e...
53
false
mitodl/pylti
_consumers
24,521
LDU_FT/ahmontero/dop/destroy_image
LDU_FT
[ "<BEGIN>\n## `droplets`", "This method returns the list of droplets\n<END>", "<BEGIN>\n## `reboot_droplet`", "This method allows you to reboot a droplet. This is the preferred method\n to use if a server is not responding.\n<END>", "<BEGIN>\n## `power_cycle_droplet`", "This method allows you to pow...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy_image API. 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 destroy_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
This method allows you to destroy an image. There is no way to restore a deleted image so be careful and ensure your data is properly backed up. Required parameters image_id: Numeric, this is the id of the image you would like to destroy
"This method allows you to destroy an image. There is no way to restore\n a deleted image so be careful and ensure your data is properly backed up.\n\n Required parameters\n\n image_id:\n Numeric, this is the id of the image you would like to destroy"
102
false
ahmontero/dop
destroy_image
24,522
LDU_FT/daviddrysdale/python-phonenumbers/normalize_digits_only
LDU_FT
[ "<BEGIN>\n## `_get_metadata_for_region`", "The metadata needed by this class is the same for all regions\n sharing the same country calling code. Therefore, we return the\n metadata for \"main\" region for this country calling code.\n<END>", "<BEGIN>\n## `_maybe_create_new_template`", "Returns True if a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_digits_only 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 normalize_digits_only API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Normalizes a string of characters representing a phone number. This converts wide-ascii and arabic-indic numerals to European numerals, and strips punctuation and alpha characters (optional). Arguments: number -- a string representing a phone number keep_non_digits -- whether to keep non-digits ...
"Normalizes a string of characters representing a phone number.\n\n This converts wide-ascii and arabic-indic numerals to European numerals,\n and strips punctuation and alpha characters (optional).\n\n Arguments:\n number -- a string representing a phone number\n keep_non_digits -- whether to keep non-d...
501
false
daviddrysdale/python-phonenumbers
normalize_digits_only
24,523
LDU_FT/databricks/spark-sklearn/toSKLearn
LDU_FT
[ "<BEGIN>\n## `gapply`", "Applies the function ``func`` to data grouped by key. In particular, given a dataframe\n grouped by some set of key columns key1, key2, ..., keyn, this method groups all the values\n for each row with the same key columns into a single Pandas dataframe and by default invokes\n ``...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toSKLearn API. 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 toSKLearn API. 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...
Convert a Spark MLlib model from the Pipelines API (spark.ml) to a scikit-learn model. Currently supported models: - pyspark.ml.classification.LogisticRegressionModel - pyspark.ml.regression.LinearRegressionModel :param model: Spark ML model :return: scikit-learn model with equi...
"Convert a Spark MLlib model from the Pipelines API (spark.ml) to a scikit-learn model.\n Currently supported models:\n - pyspark.ml.classification.LogisticRegressionModel\n - pyspark.ml.regression.LinearRegressionModel\n\n :param model: Spark ML model\n :return: scikit-learn model wi...
41
false
databricks/spark-sklearn
toSKLearn
24,524
LDU_FT/bitprophet/releases/release_role
LDU_FT
[ "<BEGIN>\n## `add_family`", "Expand to a new release line with given ``major_number``.", " This will flesh out mandatory buckets like ``unreleased_bugfix`` and do\n other necessary bookkeeping.\n<END>", "<BEGIN>\n## `has_stable_releases`", "Returns whether stable (post-0.x) releases seem to ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the release_role API. 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 release_role API. 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...
Invoked as :release:`N.N.N <YYYY-MM-DD>`. Turns into useful release header + link to GH tree for the tag.
"Invoked as :release:`N.N.N <YYYY-MM-DD>`.\n\n Turns into useful release header + link to GH tree for the tag."
76
false
bitprophet/releases
release_role
24,525
LDU_FT/Zaeb0s/epoll-socket-server/_mainthread_poll_readable
LDU_FT
[ "<BEGIN>\n## `handle_readable`", "Return True: The client is re-registered to the selector object.\n Return False: The server disconnects the client.\n<END>", "<BEGIN>\n## `_mainthread_accept_clients`", "Accepts new clients and sends them to the to _handle_accepted within a subthread\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _mainthread_poll_readable 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 _mainthread_poll_readable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Searches for readable client sockets. These sockets are then put in a subthread to be handled by _handle_readable
"Searches for readable client sockets. These sockets are then put in a subthread\n to be handled by _handle_readable"
10
false
Zaeb0s/epoll-socket-server
_mainthread_poll_readable
24,526
LDU_FT/paramiko/paramiko/_adjust_cwd
LDU_FT
[ "<BEGIN>\n## `make_tarball`", "Create a tar file from all the files under 'base_dir'.\n This file may be compressed.", " :param compress: Compression algorithms. Supported algorithms are:\n 'gzip': (the default)\n 'compress'\n 'bzip2'\n None\n For 'gzip' and 'bzip2' the inte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _adjust_cwd API. 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 _adjust_cwd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return an adjusted path if we're emulating a "current working directory" for the server.
"Return an adjusted path if we're emulating a \"current working\n directory\" for the server."
608
false
paramiko/paramiko
_adjust_cwd
24,527
LDU_FT/pylast/pylast/get_unixtime_registered
LDU_FT
[ "<BEGIN>\n## `cleanup_nodes`", "Remove text nodes containing only whitespace\n<END>", "<BEGIN>\n## `_collect_nodes`", "Returns a sequence of dom.Node objects about as close to limit as possible\n<END>", "<BEGIN>\n## `_extract_all`", "Extracts all the values from the xml string. returning a list.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unixtime_registered 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_unixtime_registered API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Returns the user's registration date as a UNIX timestamp.
"Returns the user's registration date as a UNIX timestamp."
146
false
pylast/pylast
get_unixtime_registered
24,528
LDU_FT/ActiveState/simplealchemy/transaction
LDU_FT
[ "<BEGIN>\n## `sqlalchemy_escape`", "Escape a string according for use in LIKE operator", " >>> sqlalchemy_escape(\"text_table\", \"\\\\\", \"%_\")\n 'text\\_table'\n<END>", "<BEGIN>\n## `_remove_unicode_keys`", "Convert keys from 'unicode' to 'str' type.", " workaround for <http://bugs.python.org...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transaction API. 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 transaction API. 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...
Start a new transaction based on the passed session object. If session is not passed, then create one and make sure of closing it finally.
"Start a new transaction based on the passed session object. If session\n is not passed, then create one and make sure of closing it finally."
17
false
ActiveState/simplealchemy
transaction
24,529
LDU_FT/eeue56/PyChat.js/create_message
LDU_FT
[ "<BEGIN>\n## `create_message`", "Creates a standard message from a given user with the message \r\n Replaces newline with html break\n<END>", "<BEGIN>\n## `write_message`", "Writes a message to this chat connection's handler\n<END>", "<BEGIN>\n## `join_room`", "Connects to a given room \r\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 ex...
Creates a standard message from a given user with the message Replaces newline with html break
"Creates a standard message from a given user with the message \r\n Replaces newline with html break"
20
false
eeue56/PyChat.js
create_message
24,530
LDU_FT/ray-project/ray/_start_plasma_store
LDU_FT
[ "<BEGIN>\n## `_agent_import_failed`", "Returns dummy agent class for if PyTorch etc. is not installed.\n<END>", "<BEGIN>\n## `run`", "Executes training.", " Args:\n run_or_experiment (function|class|str|Experiment): If\n function|class|str, this is the algorithm or model to train.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _start_plasma_store 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 _start_plasma_store 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...
Start a plasma store process. Args: plasma_store_memory (int): The amount of memory in bytes to start the plasma store with. use_valgrind (bool): True if the plasma store should be started inside of valgrind. If this is True, use_profiler must be False. use_profiler ...
"Start a plasma store process.\n\n Args:\n plasma_store_memory (int): The amount of memory in bytes to start the\n plasma store with.\n use_valgrind (bool): True if the plasma store should be started inside\n of valgrind. If this is True, use_profiler must be False.\n use_p...
1,706
true
ray-project/ray
_start_plasma_store
24,531
LDU_FT/Meseira/subordinate/who_has
LDU_FT
[ "<BEGIN>\n## `append`", "If name is not in the map, append it with an empty id range set.\n<END>", "<BEGIN>\n## `read_file`", "Read and parse id data from id_file which must be an iterable\n yielding Unicode strings formatted as in '/etc/subuid' or\n '/etc/subgid'.\n<END>", "<BEGIN>\n## `write...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the who_has API. Each 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 who_has API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return a list of names who own subid in their id range set.
"Return a list of names who own subid in their id range set."
14
false
Meseira/subordinate
who_has
24,532
LDU_FT/Cue/scales/render_GET
LDU_FT
[ "<BEGIN>\n## `lookup`", "Traverses the source, looking up each key. Returns None if can't find anything instead of raising an exception.\n<END>", "<BEGIN>\n## `connect`", "Connects to the Graphite server if not already connected.\n<END>", "<BEGIN>\n## `disconnect`", "Disconnect from the Graphite server i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_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 extrac...
Renders a GET request, by showing this nodes stats and children.
"Renders a GET request, by showing this nodes stats and children."
72
false
Cue/scales
render_GET
24,533
LDU_FT/empymod/empymod/check_hankel
LDU_FT
[ "<BEGIN>\n## `check_ab`", "r\"\"\"Check source-receiver configuration.", " This check-function is called from one of the modelling routines in\n :mod:`model`. Consult these modelling routines for a detailed description\n of the input parameters.", " Parameters\n ----------\n ab : int\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_hankel API. 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_hankel API. 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...
r"""Check Hankel transform parameters. This check-function is called from one of the modelling routines in :mod:`model`. Consult these modelling routines for a detailed description of the input parameters. Parameters ---------- ht : {'fht', 'qwe', 'quad'} Flag to choose the Hankel tra...
"r\"\"\"Check Hankel transform parameters.\n\n This check-function is called from one of the modelling routines in\n :mod:`model`. Consult these modelling routines for a detailed description\n of the input parameters.\n\n Parameters\n ----------\n ht : {'fht', 'qwe', 'quad'}\n Flag to choose t...
570
false
empymod/empymod
check_hankel
24,534
LDU_FT/biolink/biolink-model/cli
LDU_FT
[ "<BEGIN>\n## `cli`", "Generate JSON Schema representation of a biolink model\n<END>", "<BEGIN>\n## `root_representer`", "YAML callback -- used to filter out empty values (None, {}, [] and false)", " @param dumper: data dumper\n @param data: data to be dumped\n @return:\n<END>", "<BEGIN>\n## `cli`...
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...
Generate markdown documentation of a biolink model
"Generate markdown documentation of a biolink model"
119
false
biolink/biolink-model
cli
24,535
LDU_FT/SwissDataScienceCenter/renku-python/install_completion
LDU_FT
[ "<BEGIN>\n## `_jsonld`", "Return formatted graph in JSON-LD ``format`` function.\n<END>", "<BEGIN>\n## `_rdf2dot_simple`", "Create a simple graph of processes and artifacts.\n<END>", "<BEGIN>\n## `_rdf2dot_reduced`", "A reduced dot graph.", " Adapted from original source:\n https://rdflib.readthed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_completion API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_completion API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Install completion for the current shell.
"Install completion for the current shell."
121
false
SwissDataScienceCenter/renku-python
install_completion
24,536
LDU_FT/etingof/pysnmp/resolveWithMib
LDU_FT
[ "<BEGIN>\n## `getMibSymbol`", "Returns MIB variable symbolic identification.", " Returns\n -------\n str\n MIB module name\n str\n MIB variable symbolic name\n : :py:class:`~pysnmp.proto.rfc1902.ObjectName`\n class instance representing MIB ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolveWithMib API. 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 resolveWithMib API. 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...
Perform MIB variable ID and associated value conversion. Parameters ---------- mibViewController : :py:class:`~pysnmp.smi.view.MibViewController` class instance representing MIB browsing functionality. Returns ------- : :py:class:`~pysnmp.smi.rfc1902.ObjectT...
"Perform MIB variable ID and associated value conversion.\n\n Parameters\n ----------\n mibViewController : :py:class:`~pysnmp.smi.view.MibViewController`\n class instance representing MIB browsing functionality.\n\n Returns\n -------\n : :py:class:`~pysnmp.smi.rfc19...
708
false
etingof/pysnmp
resolveWithMib
24,537
LDU_FT/Geotab/mygeotab-python/set_async
LDU_FT
[ "<BEGIN>\n## `object_deserializer`", "Helper to deserialize a raw result dict into a proper dict.", " :param obj: The dict.\n<END>", "<BEGIN>\n## `login`", "Logs into a MyGeotab server and stores the returned credentials.", " :param session: The current Session object.\n :param user: The username...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_async API. 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 set_async API. 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...
Sets an entity asynchronously using the API. Shortcut for using async_call() with the 'Set' method. :param type_name: The type of entity :param entity: The entity to set :raise MyGeotabException: Raises when an exception occurs on the MyGeotab server
"Sets an entity asynchronously using the API. Shortcut for using async_call() with the 'Set' method.\n\n :param type_name: The type of entity\n :param entity: The entity to set\n :raise MyGeotabException: Raises when an exception occurs on the MyGeotab server"
96
false
Geotab/mygeotab-python
set_async
24,538
LDU_FT/push-things/wallabag_api/version
LDU_FT
[ "<BEGIN>\n## `query`", "Do a query to the System API", " :param path: url to the API\n :param method: the kind of query to do\n :param params: a dict with all the\n necessary things to query the API\n :return json data\n<END>", "<BEGIN>\n## `handle_json_response`", "get th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
GET /api/version.{_format} Retrieve version number :return data related to the ext
"GET /api/version.{_format}\n\n Retrieve version number\n\n :return data related to the ext"
68
false
push-things/wallabag_api
version
24,539
LDU_FT/couchbase/couchbase-python-client/get_client
LDU_FT
[ "<BEGIN>\n## `set_json_converters`", "Modify the default JSON conversion functions. This affects all\n :class:`~couchbase.bucket.Bucket` instances.", " These functions will called instead of the default ones (``json.dumps``\n and ``json.loads``) to encode and decode JSON (when :const:`FMT_JSON` is\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_client API. 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...
Wait until a client instance is available :param float initial_timeout: how long to wait initially for an existing client to complete :param float next_timeout: if the pool could not obtain a client during the initial timeout, and we have allocated the maximum available num...
"Wait until a client instance is available\n :param float initial_timeout:\n how long to wait initially for an existing client to complete\n :param float next_timeout:\n if the pool could not obtain a client during the initial timeout,\n and we have allocated the maximum availab...
806
false
couchbase/couchbase-python-client
get_client
24,540
LDU_FT/jbasko/wr-profiles/create_env
LDU_FT
[ "<BEGIN>\n## `envvar_profile_cls`", "A class decorator that makes the decorated class a sub-class of EnvvarProfile and transforms\n its type annotations into envvar profile properties.\n<END>", "<BEGIN>\n## `envvar_profile`", "Creates an EnvvarProfile instance without the need for an explicit declaration o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_env API. 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 create_env API. 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...
Create a custom dictionary of environment variables representing an environment by passing values of properties as keyword arguments. Values of properties not mentioned in the env will be taken from the profile itself. Property values that are None should be interpreted and will be int...
"Create a custom dictionary of environment variables representing an environment\n by passing values of properties as keyword arguments.\n\n Values of properties not mentioned in the env will be taken from the\n profile itself.\n\n Property values that are None should be interpreted and will...
23
false
jbasko/wr-profiles
create_env
24,541
LDU_FT/sprockets/sprockets-influxdb/_write_error_batch
LDU_FT
[ "<BEGIN>\n## `add_measurement`", "Add measurement data to the submission buffer for eventual writing to\n InfluxDB.", " Example:", " .. code:: python", " import sprockets_influxdb as influxdb", " measurement = influxdb.Measurement('example', 'measurement-name')\n measurement....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_error_batch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_error_batch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Invoked when a batch submission fails, this method will submit one measurement to InfluxDB. It then adds a timeout to the IOLoop which will invoke :meth:`_write_error_batch_wait` which will evaluate the result and then determine what to do next. :param str batch: The batch ID for correlation purposes ...
"Invoked when a batch submission fails, this method will submit one\n measurement to InfluxDB. It then adds a timeout to the IOLoop which will\n invoke :meth:`_write_error_batch_wait` which will evaluate the result and\n then determine what to do next.\n\n :param str batch: The batch ID for correlation purp...
93
false
sprockets/sprockets-influxdb
_write_error_batch
24,542
LDU_FT/hozn/coilmq/choice
LDU_FT
[ "<BEGIN>\n## `server_from_config`", "Gets a configured L{coilmq.server.StompServer} from specified config.", " If `config` is None, global L{coilmq.config.config} var will be used instead.", " The `server_class` and `additional_kwargs` are primarily hooks for using this method\n from a testing enviro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choice API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choice API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Choose a random connection, favoring those that are reliable from subscriber pool to deliver specified message. @param subscribers: Collection of subscribed connections to destination. @type subscribers: C{list} of L{coilmq.server.StompConnection} @param message: The message to be del...
"Choose a random connection, favoring those that are reliable from\n subscriber pool to deliver specified message.\n\n @param subscribers: Collection of subscribed connections to destination. \n @type subscribers: C{list} of L{coilmq.server.StompConnection}\n\n @param message: The message to...
211
false
hozn/coilmq
choice
24,543
LDU_FT/jkokorian/pyqt2waybinding/forProperty
LDU_FT
[ "<BEGIN>\n## `forProperty`", "2-way binds to an instance property.", " Parameters:\n - instance -- the object instance\n - propertyName -- the name of the property to bind to\n - useGetter: when True, calls the getter method to obtain the value. When False, the signal argument is use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forProperty API. 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 forProperty API. 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...
2-way binds to an instance property. Parameters: - instance -- the object instance - propertyName -- the name of the property to bind to - useGetter: when True, calls the getter method to obtain the value. When False, the signal argument is used as input for the target setter. (default ...
"2-way binds to an instance property.\n\n Parameters:\n - instance -- the object instance\n - propertyName -- the name of the property to bind to\n - useGetter: when True, calls the getter method to obtain the value. When False, the signal argument is used as input for the target setter. (de...
20
false
jkokorian/pyqt2waybinding
forProperty
24,544
LDU_FT/kenneth-reitz/args/remove
LDU_FT
[ "<BEGIN>\n## `remove`", "Removes given arg (or list thereof) from Args object.\n<END>", "<BEGIN>\n## `first`", "Returns first found index of given value (or list of values).\n<END>", "<BEGIN>\n## `start_with`", "Returns all arguments beginning with given string\n (or list thereof).\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Removes given arg (or list thereof) from Args object.
"Removes given arg (or list thereof) from Args object."
14
false
kenneth-reitz/args
remove
24,545
LDU_FT/dshean/pygeotools/block_view
LDU_FT
[ "<BEGIN>\n## `fn_check_full`", "Check for file existence", " Avoids race condition, but slower than os.path.exists.", " Parameters\n ----------\n fn : str\n Input filename string.", " Returns\n -------\n status \n True if file exists, False otherwise.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the block_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the block_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Provide a 2D block view to 2D array. No error checking made. Therefore meaningful (as implemented) only for blocks strictly compatible with the shape of A.
"Provide a 2D block view to 2D array. No error checking made.\n Therefore meaningful (as implemented) only for blocks strictly\n compatible with the shape of A."
322
false
dshean/pygeotools
block_view
24,546
LDU_FT/jupyter-widgets/ipywidgets/datetime_to_json
LDU_FT
[ "<BEGIN>\n## `_cells`", "Yield all cells in an nbformat-insensitive manner\n<END>", "<BEGIN>\n## `strip_output`", "strip the outputs from a notebook object\n<END>", "<BEGIN>\n## `show_inline_matplotlib_plots`", "Show matplotlib plots immediately if using the inline backend.", " With ipywidgets 6.0, m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime_to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime_to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Serialize a Python datetime object to json. Instantiating a JavaScript Date object with a string assumes that the string is a UTC string, while instantiating it with constructor arguments assumes that it's in local time: >>> cdate = new Date('2015-05-12') Mon May 11 2015 20:00:00 GMT-0400 (Eastern...
"Serialize a Python datetime object to json.\n\n Instantiating a JavaScript Date object with a string assumes that the\n string is a UTC string, while instantiating it with constructor arguments\n assumes that it's in local time:\n\n >>> cdate = new Date('2015-05-12')\n Mon May 11 2015 20:00:00 GMT-0400 ...
159
false
jupyter-widgets/ipywidgets
datetime_to_json
24,547
LDU_FT/ibm-watson-data-lab/ibmseti/difference
LDU_FT
[ "<BEGIN>\n## `header`", "This returns the first header in the data file\n<END>", "<BEGIN>\n## `headers`", "This returns all headers in the data file. There should be one for each\n half_frame in the file (typically 129).\n<END>", "<BEGIN>\n## `_packed_data`", "Returns the bit-packed data extracted from...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the difference API. 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 difference API. 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...
Assuming that `arr` is a 2D spectrogram returned by ibmseti.dsp.raw_to_spectrogram(data), this function uses the Numpy.diff function to calculate the nth difference along either time or frequency. If axis = 0 and n=1, then the first difference is taken between subsequent time samples If axis = 1 and n=1, ...
"Assuming that `arr` is a 2D spectrogram returned by\n ibmseti.dsp.raw_to_spectrogram(data), this function\n uses the Numpy.diff function to calculate the nth\n difference along either time or frequency.\n\n If axis = 0 and n=1, then the first difference is taken\n between subsequent time samples\n\n If axis = 1 ...
138
false
ibm-watson-data-lab/ibmseti
difference
24,548
LDU_FT/python-gitlab/python-gitlab/download
LDU_FT
[ "<BEGIN>\n## `on_http_error`", "Manage GitlabHttpError exceptions.", " This decorator function can be used to catch GitlabHttpError exceptions\n raise specialized exceptions instead.", " Args:\n error(Exception): The exception type to raise -- must inherit from\n GitlabError\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Download the archive of a project export. Args: streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passed to `action` for reatment action (callable): Callable responsible of dealing with chunk of ...
"Download the archive of a project export.\n\n Args:\n streamed (bool): If True the data will be processed by chunks of\n `chunk_size` and each chunk is passed to `action` for\n reatment\n action (callable): Callable responsible of dealing with chunk of\n ...
508
false
python-gitlab/python-gitlab
download
24,549
LDU_FT/data61/clkhash/_p2_unicode_reader
LDU_FT
[ "<BEGIN>\n## `convert_v1_to_v2`", "Convert v1 schema dict to v2 schema dict.\n :param dict: v1 schema dict\n :return: v2 schema dict\n<END>", "<BEGIN>\n## `from_json_dict`", "Create a Schema for v1 or v2 according to dct", " :param dct: This dictionary must have a `'features'`\n key spec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _p2_unicode_reader API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _p2_unicode_reader API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Encode Unicode as UTF-8 and parse as CSV. This is needed since Python 2's `csv` doesn't do Unicode. Kudos: https://docs.python.org/2/library/csv.html#examples :param unicode_csv_data: The Unicode stream to parse. :param dialect: The CSV dialect to use. :param kwargs: Any other...
"Encode Unicode as UTF-8 and parse as CSV.\n\n This is needed since Python 2's `csv` doesn't do Unicode.\n\n Kudos: https://docs.python.org/2/library/csv.html#examples\n\n :param unicode_csv_data: The Unicode stream to parse.\n :param dialect: The CSV dialect to use.\n :param kwargs: ...
212
false
data61/clkhash
_p2_unicode_reader
24,550
LDU_FT/aloetesting/aloe_webdriver/find_field_by_name
LDU_FT
[ "<BEGIN>\n## `string_literal`", "Choose a string literal that can wrap our string.", " If your string contains a ``\\'`` the result will be wrapped in ``\\\"``.\n If your string contains a ``\\\"`` the result will be wrapped in ``\\'``.", " Cannot currently handle strings which contain both ``\\\"`` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_field_by_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_field_by_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. Th...
Locate the control input with the given ``name``. :param browser: ``world.browser`` :param string field_type: a field type (i.e. `button`) :param string name: ``name`` attribute Returns: an :class:`ElementSelector`
"Locate the control input with the given ``name``.\n\n :param browser: ``world.browser``\n :param string field_type: a field type (i.e. `button`)\n :param string name: ``name`` attribute\n\n Returns: an :class:`ElementSelector`"
158
false
aloetesting/aloe_webdriver
find_field_by_name
24,551
LDU_FT/aws/aws-iot-device-sdk-python/sendJobsQuery
LDU_FT
[ "<BEGIN>\n## `shadowGet`", "**Description**", " Retrieve the device shadow JSON document from AWS IoT by publishing an empty JSON document to the \n corresponding shadow topics. Shadow response topics will be subscribed to receive responses from \n AWS IoT regarding the result of the get op...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sendJobsQuery API. 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 sendJobsQuery API. 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...
**Description** Publishes an MQTT jobs related request for a potentially specific jobId (or wildcard) **Syntax** .. code:: python #send a request to describe the next job myAWSIoTMQTTJobsClient.sendJobsQuery(jobExecutionTopicType.JOB_DESCRIBE_TOPIC, '$next') #se...
"**Description**\n\n Publishes an MQTT jobs related request for a potentially specific jobId (or wildcard)\n\n **Syntax**\n\n .. code:: python\n\n #send a request to describe the next job\n myAWSIoTMQTTJobsClient.sendJobsQuery(jobExecutionTopicType.JOB_DESCRIBE_TOPIC, '$next')\n ...
420
false
aws/aws-iot-device-sdk-python
sendJobsQuery
24,552
LDU_FT/shoeffner/pandoc-source-exec/execute_interactive_code
LDU_FT
[ "<BEGIN>\n## `select_executor`", "Determines the executor for the code in `elem.text`.", " The elem attributes and classes select the executor in this order (highest\n to lowest):\n - custom commands (cmd=...)\n - runas (runas=...) takes a key for the executors\n - first element class...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_interactive_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_interactive_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Executes code blocks for a python shell. Parses the code in `elem.text` into blocks and executes them. Args: elem The AST element. doc The document. Return: The code with inline results.
"Executes code blocks for a python shell.\n\n Parses the code in `elem.text` into blocks and\n executes them.\n\n Args:\n elem The AST element.\n doc The document.\n\n Return:\n The code with inline results."
55
false
shoeffner/pandoc-source-exec
execute_interactive_code
24,553
LDU_FT/codeinn/vcs/get_file_size
LDU_FT
[ "<BEGIN>\n## `make_ui`", "A funcion that will read python rc files and make an ui from read options", " :param path: path to mercurial config file\n<END>", "<BEGIN>\n## `status`", "Returns modified, added, removed, deleted files for current changeset\n<END>", "<BEGIN>\n## `_fix_path`", "Paths are sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns size of the file at given ``path``.
"Returns size of the file at given ``path``."
326
false
codeinn/vcs
get_file_size
24,554
LDU_FT/matthewdeanmartin/jiggle_version/find_central_module
LDU_FT
[ "<BEGIN>\n## `require_python`", "Require at least a minimum Python version.", " The version number is expressed in terms of `sys.hexversion`. E.g. to\n require a minimum of Python 2.6, use::", " >>> require_python(0x206000f0)", " :param minimum: Minimum Python version supported.\n :type mini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_central_module 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 find_central_module 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 module that is the sole module, or the module that matches the package name/version :return:
"Get the module that is the sole module, or the module\n that matches the package name/version\n :return:"
124
false
matthewdeanmartin/jiggle_version
find_central_module
24,555
LDU_FT/jaraco/irc/jump_server
LDU_FT
[ "<BEGIN>\n## `handle_nick`", "Handle the initial setting of the user's nickname and nick changes.\n<END>", "<BEGIN>\n## `handle_user`", "Handle the USER command which identifies the user to the server.\n<END>", "<BEGIN>\n## `handle_join`", "Handle the JOINing of a user to a channel. Valid channel names st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jump_server API. 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 jump_server API. 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...
Connect to a new server, possibly disconnecting from the current. The bot will skip to next server in the server_list each time jump_server is called.
"Connect to a new server, possibly disconnecting from the current.\n\n The bot will skip to next server in the server_list each time\n jump_server is called."
193
false
jaraco/irc
jump_server
24,556
LDU_FT/ponty/confduino/arduino_path
LDU_FT
[ "<BEGIN>\n## `upgrade_many`", "upgrade many libs.", " source: http://arduino.cc/playground/Main/LibraryList", " you can set your arduino path if it is not default\n os.environ['ARDUINO_HOME'] = '/home/...'\n<END>", "<BEGIN>\n## `install_hwpack`", "install hwpackrary from web or local files system...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arduino_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arduino_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
expanded root path, ARDUINO_HOME env var or arduino_default_path()
"expanded root path, ARDUINO_HOME env var or arduino_default_path()"
61
false
ponty/confduino
arduino_path
24,557
LDU_FT/PythonOptimizers/cygenja/register_action
LDU_FT
[ "<BEGIN>\n## `set_parent`", "Attach node to its parent.", " Args:\n node: Parent node.", " Note:\n ``node`` can be ``None``. In that case, the node is detached from its previous parent.\n<END>", "<BEGIN>\n## `set_child_node`", "Add one child node to this node.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_action API. 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 register_action API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Add/register an "action". Args: relative_directory (str): Relative directory from root directory. Separator is OS dependent. For instance, under linux, you can register the following: >>> register_action('cysparse/sparse/utils', 'find*.cpy', action_function) ...
"Add/register an \"action\".\n\n Args:\n relative_directory (str): Relative directory from root directory. Separator is OS dependent. For instance,\n under linux, you can register the following:\n\n >>> register_action('cysparse/sparse/utils', 'find*.cpy', action_function...
132
false
PythonOptimizers/cygenja
register_action
24,558
LDU_FT/CodyKochmann/generators/map
LDU_FT
[ "<BEGIN>\n## `first`", "first is essentially the next() function except it's second argument\n determines how many of the first items you want. If items is more than\n 1 the output is an islice of the generator. If items is 1, the first\n item is returned\n<END>", "<BEGIN>\n## `timed_pipe`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
this map works just like the builtin.map, except, this one you can also: - give it multiple functions to map over an iterable - give it a single function with multiple arguments to run a window based map operation over an iterable
"this map works just like the builtin.map, except, this one you can also:\n - give it multiple functions to map over an iterable\n - give it a single function with multiple arguments to run a window\n based map operation over an iterable"
71
false
CodyKochmann/generators
map
24,559
LDU_FT/b3j0f/conf/_exprparser
LDU_FT
[ "<BEGIN>\n## `pathresource`", "Returns specific resource.", " :param str rscpath: resource path.\n :param Logger logger: logger to use.\n :param bool error: raise internal error if True (False by default).\n :param bool force: create the resource even if rscpath does not exist.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _exprparser API. 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 _exprparser API. 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...
In charge of parsing an expression and return a python object.
"In charge of parsing an expression and return a python object."
151
false
b3j0f/conf
_exprparser
24,560
LDU_FT/neithere/monk/remove
LDU_FT
[ "<BEGIN>\n## `_insert_defaults`", "Inserts default values from :attr:`StructuredDictMixin.structure`\n to `self` by merging the two structures\n (see :func:`monk.manipulation.merge_defaults`).\n<END>", "<BEGIN>\n## `opt_key`", "Returns a validator which allows the value to be missing.\n Simil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Removes the object from given database. Usage:: item = Item.get_one(db) item.remove(db) Collection name is taken from :attr:`MongoBoundDictMixin.collection`.
"Removes the object from given database. Usage::\n\n item = Item.get_one(db)\n item.remove(db)\n\n Collection name is taken from :attr:`MongoBoundDictMixin.collection`."
64
false
neithere/monk
remove
24,561
LDU_FT/twisted/epsilon/determineFrom
LDU_FT
[ "<BEGIN>\n## `main`", "Create a private key and a certificate and write them to a file.\n<END>", "<BEGIN>\n## `setTimeout`", "Change the timeout period", " @type period: C{int} or C{NoneType}\n @param period: The period, in seconds, to change the timeout to, or\n C{None} to disable the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the determineFrom API. 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 determineFrom API. 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...
Create a nonce and use it, along with the given challenge and password, to generate the parameters for a response. @return: A C{dict} suitable to be used as the keyword arguments when calling this command.
"Create a nonce and use it, along with the given challenge and password,\n to generate the parameters for a response.\n\n @return: A C{dict} suitable to be used as the keyword arguments when\n calling this command."
217
false
twisted/epsilon
determineFrom
24,562
LDU_FT/fogleman/pg/ray_triangle_intersection
LDU_FT
[ "<BEGIN>\n## `delete_all`", "Calls `delete()` on all members of `obj` that are recognized as\n instances of `pg` objects.\n<END>", "<BEGIN>\n## `_glfw_get_version`", "Queries and returns the library version tuple or None by using a\n subprocess.\n<END>", "<BEGIN>\n## `set_error_callback`", "Sets the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ray_triangle_intersection 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 ray_triangle_intersection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Computes the distance from a point to a triangle given a ray.
"Computes the distance from a point to a triangle given a ray."
39
false
fogleman/pg
ray_triangle_intersection
24,563
LDU_FT/todbot/blink1-python/fade_to_color
LDU_FT
[ "<BEGIN>\n## `blink1`", "Context manager which automatically shuts down the Blink(1)\n after use.\n :param switch_off: turn blink(1) off when existing context\n :param gamma: set gamma curve (as tuple)\n :param white_point: set white point (as tuple)\n<END>", "<BEGIN>\n## `find`", "Find a praticul...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fade_to_color API. 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 fade_to_color API. 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...
Fade the light to a known colour in a :param fade_milliseconds: Duration of the fade in milliseconds :param color: Named color to fade to :return: None
"Fade the light to a known colour in a\n :param fade_milliseconds: Duration of the fade in milliseconds\n :param color: Named color to fade to\n :return: None"
33
false
todbot/blink1-python
fade_to_color
24,564
LDU_FT/riga/tfdeploy/optimize
LDU_FT
[ "<BEGIN>\n## `setup`", "Sets up global variables (currently only the tensorflow version) to adapt to peculiarities of\n different tensorflow versions. This function should only be called before :py:class:`Model`\n creation, not for evaluation. Therefore, the tensorflow module *tf* must be passed:", " ....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the optimize API. 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 optimize API. 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...
optimize(impl) Tries to set the implementation type of all registered :py:class:`Operation` classes to *impl*. This has no effect when an op does not implement that type. The behavior is equivalent to: .. code-block:: python for op in Operation.__subclasses__(): if impl in op.impls:...
"optimize(impl)\n Tries to set the implementation type of all registered :py:class:`Operation` classes to *impl*.\n This has no effect when an op does not implement that type.\n\n The behavior is equivalent to:\n\n .. code-block:: python\n\n for op in Operation.__subclasses__():\n if impl in...
43
false
riga/tfdeploy
optimize
24,565
LDU_FT/lawsie/guizero/_set_tk_config
LDU_FT
[ "<BEGIN>\n## `value_text`", "Sets or returns the option selected in a ButtonGroup by its text value.\n<END>", "<BEGIN>\n## `resize`", "Resizes the widget.", " :param int width:\n The width of the widget.", " :param int height:\n The height of the widget.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_tk_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_tk_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 ex...
Gets the config from the widget's tk object :param string/List keys: The tk config key or a list of tk keys. :param variable value: The value to set. If the value is `None`, the config value will be reset to its default.
"Gets the config from the widget's tk object\n\n :param string/List keys:\n The tk config key or a list of tk keys.\n\n :param variable value:\n The value to set. If the value is `None`, the config value will be\n reset to its default."
173
false
lawsie/guizero
_set_tk_config
24,566
LDU_FT/F-Secure/see/run_command
LDU_FT
[ "<BEGIN>\n## `create`", "Creates a virtual network according to the given configuration.", " @param hypervisor: (libvirt.virConnect) connection to libvirt hypervisor.\n @param identifier: (str) UUID for the virtual network.\n @param configuration: (dict) network configuration.", " @return: (libvir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Executes a command returning its exit code and output.
"Executes a command returning its exit code and output."
130
false
F-Secure/see
run_command
24,567
LDU_FT/mathandy/svgpathtools/bernstein
LDU_FT
[ "<BEGIN>\n## `big_bounding_box`", "Finds a BB containing a collection of paths, Bezier path segments, and\n points (given as complex numbers).\n<END>", "<BEGIN>\n## `disvg`", "Takes in a list of paths and creates an SVG file containing said paths.\n REQUIRED INPUTS:\n :param paths - a list of pat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bernstein API. 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 bernstein API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
returns a list of the Bernstein basis polynomials b_{i, n} evaluated at t, for i =0...n
"returns a list of the Bernstein basis polynomials b_{i, n} evaluated at\n t, for i =0...n"
252
false
mathandy/svgpathtools
bernstein
24,568
LDU_FT/plumdog/flask_table/td_contents
LDU_FT
[ "<BEGIN>\n## `main`", "Outputs:", " <table>\n <thead>\n <tr>\n <th class=\"my-name-class\">Name</th>\n <th class=\"my-description-class\"\n data-something=\"my-data\"\n data-something-else=\"my-description-th-class\">\n Description\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the td_contents API. 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 td_contents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Given an item and an attr, return the contents of the td. This method is a likely candidate to override when extending the Col class, which is done in LinkCol and ButtonCol. Override this method if you need to get some extra data from the item. Note that the output of this func...
"Given an item and an attr, return the contents of the td.\n\n This method is a likely candidate to override when extending\n the Col class, which is done in LinkCol and\n ButtonCol. Override this method if you need to get some extra\n data from the item.\n\n Note that the output of t...
17
false
plumdog/flask_table
td_contents
24,569
LDU_FT/PyMySQL/PyMySQL/read_all
LDU_FT
[ "<BEGIN>\n## `close`", "Closing a cursor just exhausts all remaining data.\n<END>", "<BEGIN>\n## `mogrify`", "Returns the exact string that is sent to the database by calling the\n execute() method.", " This method follows the extension to the DB API 2.0 followed by Psycopg.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Read all remaining data in the packet. (Subsequent read() will return errors.)
"Read all remaining data in the packet.\n\n (Subsequent read() will return errors.)"
88
false
PyMySQL/PyMySQL
read_all
24,570
LDU_FT/tadashi-aikawa/owlmixin/to_json
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 to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
From instance to json string :param indent: Number of indentation :param ignore_none: Properties which is None are excluded if True :param ignore_empty: Properties which is empty are excluded if True :return: Json string Usage: >>> from owlmixin.samples import Huma...
"From instance to json string\n\n :param indent: Number of indentation\n :param ignore_none: Properties which is None are excluded if True\n :param ignore_empty: Properties which is empty are excluded if True\n :return: Json string\n\n Usage:\n\n >>> from owlmixin.samples i...
248
false
tadashi-aikawa/owlmixin
to_json
24,571
LDU_FT/hazelcast/hazelcast-remote-controller/suspendMember
LDU_FT
[ "<BEGIN>\n## `createCluster`", "Parameters:\n - hzVersion\n - xmlconfig\n<END>", "<BEGIN>\n## `shutdownMember`", "Parameters:\n - clusterId\n - memberId\n<END>", "<BEGIN>\n## `terminateMember`", "Parameters:\n - clusterId\n - memberId\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the suspendMember API. 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 suspendMember API. 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...
Parameters: - clusterId - memberId
"Parameters:\n - clusterId\n - memberId"
14
false
hazelcast/hazelcast-remote-controller
suspendMember
24,572