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/Yubico/python-pyhsm/do_GET | LDU_FT | [
"<BEGIN>\n## `hexdump`",
"Produce a string hexdump of src, for debug output.\n<END>",
"<BEGIN>\n## `group`",
"Split data into chunks of num chars each\n<END>",
"<BEGIN>\n## `key_handle_to_int`",
"Turn \"123\" into 123 and \"KSM1\" into 827151179\n (0x314d534b, 'K' = 0x4b, S = '0x53', M = 0x4d).",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_GET API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_GET API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Process validation GET requests.
All modes of validation (OTP, OATH and PWHASH) must be explicitly
enabled in `args' to be allowed. | "Process validation GET requests.\n\n All modes of validation (OTP, OATH and PWHASH) must be explicitly\n enabled in `args' to be allowed." | 310 | false | Yubico/python-pyhsm | do_GET | 142,973 | |
LDU_FT/RobotStudio/bors/add_channels | LDU_FT | [
"<BEGIN>\n## `_generate_request`",
"Generate a request object for delivery to the API\n<END>",
"<BEGIN>\n## `_generate_result`",
"Generate a results object for delivery to the context object\n<END>",
"<BEGIN>\n## `connect_ws`",
"Connect to a websocket\n :channels: List of SockChannel instances\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_channels API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_channels API.
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... | Take a list of SockChannel objects and extend the websock listener | "Take a list of SockChannel objects and extend the websock listener" | 22 | false | RobotStudio/bors | add_channels | 142,974 | |
LDU_FT/sprockets/sprockets.mixins.amqp/on_channel_open | LDU_FT | [
"<BEGIN>\n## `install`",
"Call this to install AMQP for the Tornado application. Additional\n keyword arguments are passed through to the constructor of the AMQP\n object.",
" :param tornado.web.Application application: The tornado application\n :param tornado.ioloop.IOLoop io_loop: The current IOLo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_channel_open API.
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 on_channel_open API.
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... | This method is invoked by pika when the channel has been opened.
The channel object is passed in so we can make use of it.
:param pika.channel.Channel channel: The channel object | "This method is invoked by pika when the channel has been opened.\n The channel object is passed in so we can make use of it.\n\n :param pika.channel.Channel channel: The channel object" | 50 | false | sprockets/sprockets.mixins.amqp | on_channel_open | 142,975 | |
LDU_FT/mongodb/motor/fetch_next | LDU_FT | [
"<BEGIN>\n## `chain_return_value`",
"Compatible way to return a value in all Pythons.",
" PEP 479, raise StopIteration(value) from a coroutine won't work forever,\n but \"return value\" doesn't work in Python 2. Instead, Motor methods that\n return values resolve a Future with it, and are implemented w... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_next API.
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 fetch_next API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | A Future used with `gen.coroutine`_ to asynchronously retrieve the
next document in the result set, fetching a batch of documents from the
server if necessary. Resolves to ``False`` if there are no more
documents, otherwise :meth:`next_object` is guaranteed to return a
document.
... | "A Future used with `gen.coroutine`_ to asynchronously retrieve the\n next document in the result set, fetching a batch of documents from the\n server if necessary. Resolves to ``False`` if there are no more\n documents, otherwise :meth:`next_object` is guaranteed to return a\n document.\n\n... | 133 | false | mongodb/motor | fetch_next | 142,976 | |
LDU_FT/alan-turing-institute/topic-modelling-tools/tt_avg | LDU_FT | [
"<BEGIN>\n## `set_priors`",
"Override default values for Dirichlet hyperparameters.\n alpha: hyperparameter for distribution of topics within documents.\n beta: hyperparameter for distribution of tokens within topics.\n<END>",
"<BEGIN>\n## `set_sampled_topics`",
"Allocate sampled topics to the d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tt_avg API.
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 tt_avg API.
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 ... | Compute average term-topic matrix, and print to file if
print_output=True. | "Compute average term-topic matrix, and print to file if\n print_output=True." | 44 | false | alan-turing-institute/topic-modelling-tools | tt_avg | 142,977 | |
LDU_FT/summa-tx/riemann/sighash_all | LDU_FT | [
"<BEGIN>\n## `addsalt`",
"adds a salt to the hash function (OPTIONAL)\n should be called AFTER Init, and BEFORE update\n salt: a bytestring, length determined by hashbitlen.\n if not of sufficient length, the bytestring\n will be assumed to be a big endia... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sighash_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sighash_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 extra... | https://gist.github.com/davecgh/b00ec6e11f73620c3deddf160353961c
https://github.com/decred/dcrd/blob/master/txscript/script.go | "https://gist.github.com/davecgh/b00ec6e11f73620c3deddf160353961c\n https://github.com/decred/dcrd/blob/master/txscript/script.go" | 132 | false | summa-tx/riemann | sighash_all | 142,978 | |
LDU_FT/openego/eTraGo/max_curtailment | LDU_FT | [
"<BEGIN>\n## `tsam_cluster`",
"Parameters\n ----------\n df : pd.DataFrame\n DataFrame with timeseries to cluster",
" Returns\n -------\n timeseries : pd.DataFrame\n Clustered timeseries\n<END>",
"<BEGIN>\n## `update_data_frames`",
"Updates the snapshots, snapshots weights and t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the max_curtailment API.
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 max_curtailment API.
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... | each RE can only be curtailed (over all snapshots)
with respect to curtail_max
Parameters
----------
curtail_max: float
maximal curtailment per power plant in p.u. | "each RE can only be curtailed (over all snapshots) \n with respect to curtail_max\n\n Parameters\n ----------\n curtail_max: float\n maximal curtailment per power plant in p.u." | 318 | false | openego/eTraGo | max_curtailment | 142,979 | |
LDU_FT/KimiNewt/pyshark/_sanitize_field_name | LDU_FT | [
"<BEGIN>\n## `get_field`",
"Gets the XML field object of the given name.\n<END>",
"<BEGIN>\n## `get_field_value`",
"Tries getting the value of the given field.\n Tries it in the following order: show (standard nice display), value (raw value), showname (extended nice display).",
" :param name:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sanitize_field_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 _sanitize_field_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.
... | Sanitizes an XML field name (since it might have characters which would make it inaccessible as a python attribute). | "Sanitizes an XML field name (since it might have characters which would make it inaccessible as a python attribute)." | 91 | false | KimiNewt/pyshark | _sanitize_field_name | 142,980 | |
LDU_FT/yahoo/TensorFlowOnSpark/batch_results | LDU_FT | [
"<BEGIN>\n## `start`",
"Create a new multiprocess.Manager (or return existing one).",
" Args:\n :authkey: string authorization key\n :queues: *INTERNAL_USE*\n :mode: 'local' indicates that the manager will only be accessible from the same host, otherwise remotely accessible.",
" Returns:\n A TFM... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_results API.
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 batch_results API.
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... | Push a batch of output results to the Spark output RDD of ``TFCluster.inference()``.
Note: this currently expects a one-to-one mapping of input to output data, so the length of the ``results`` array should match the length of
the previously retrieved batch of input data.
Args:
:results: array of out... | "Push a batch of output results to the Spark output RDD of ``TFCluster.inference()``.\n\n Note: this currently expects a one-to-one mapping of input to output data, so the length of the ``results`` array should match the length of\n the previously retrieved batch of input data.\n\n Args:\n :results: array... | 483 | false | yahoo/TensorFlowOnSpark | batch_results | 142,981 | |
LDU_FT/vladsaveliev/TargQC/transform_to | LDU_FT | [
"<BEGIN>\n## `main`",
"Annotating BED file based on reference features annotations.\n<END>",
"<BEGIN>\n## `downsample`",
"get N random headers from a fastq file without reading the\n whole thing into memory\n modified from: http://www.biostars.org/p/6544/\n<END>",
"<BEGIN>\n## `AddIndex`",
"Recursiv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_to API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_to API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Decorator to create an output filename from an output filename with
the specified extension. Changes the extension, in_file is transformed
to a new type.
Takes functions like this to decorate:
f(in_file, out_dir=None, out_file=None) or,
f(in_file=in_file, out_dir=None, out_file=None)
examples:... | "Decorator to create an output filename from an output filename with\n the specified extension. Changes the extension, in_file is transformed\n to a new type.\n\n Takes functions like this to decorate:\n f(in_file, out_dir=None, out_file=None) or,\n f(in_file=in_file, out_dir=None, out_file=None)\n\n ... | 184 | false | vladsaveliev/TargQC | transform_to | 142,982 | |
LDU_FT/pre-commit/pre-commit/envcontext | LDU_FT | [
"<BEGIN>\n## `_shuffled`",
"Deterministically shuffle identically under both py2 + py3.\n<END>",
"<BEGIN>\n## `envcontext`",
"In this context, `os.environ` is modified according to `patch`.",
" `patch` is an iterable of 2-tuples (key, value):\n `key`: string\n `value`:\n - string... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the envcontext API.
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 envcontext API.
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... | In this context, `os.environ` is modified according to `patch`.
`patch` is an iterable of 2-tuples (key, value):
`key`: string
`value`:
- string: `environ[key] == value` inside the context.
- UNSET: `key not in environ` inside the context.
- template: A template ... | "In this context, `os.environ` is modified according to `patch`.\n\n `patch` is an iterable of 2-tuples (key, value):\n `key`: string\n `value`:\n - string: `environ[key] == value` inside the context.\n - UNSET: `key not in environ` inside the context.\n - template: A t... | 54 | false | pre-commit/pre-commit | envcontext | 142,983 | |
LDU_FT/instacart/lore/check_version | LDU_FT | [
"<BEGIN>\n## `foreground`",
"Color the text of the content",
" :param color: pick a constant, any constant\n :type color: int\n :param content: Whatever you want to say...\n :type content: unicode\n :return: ansi string\n :rtype: unicode\n<END>",
"<BEGIN>\n## `rgb`",
"Colors a content usin... | 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 ext... | 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 ext... | Sanity check version information for corrupt virtualenv symlinks | "Sanity check version information for corrupt virtualenv symlinks" | 69 | false | instacart/lore | check_version | 142,984 | |
LDU_FT/artefactual-labs/agentarchives/find_parent_id_for_component | LDU_FT | [
"<BEGIN>\n## `edit_record`",
"Update a record in Archivist's Toolkit using the provided new_record.",
" The format of new_record is identical to the format returned by get_resource_component_and_children and related methods.\n This means it's possible, for example, to request a record, modify the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_parent_id_for_component API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_parent_id_for_component API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Given the URL to a component, returns the parent component's URL.
:param string component_id: The URL of the component.
:return: A tuple containing:
* The type of the parent record; valid values are ArchivesSpaceClient.RESOURCE and ArchivesSpaceClient.RESOURCE_COMPONENT.
* The U... | "Given the URL to a component, returns the parent component's URL.\n\n :param string component_id: The URL of the component.\n :return: A tuple containing:\n * The type of the parent record; valid values are ArchivesSpaceClient.RESOURCE and ArchivesSpaceClient.RESOURCE_COMPONENT.\n *... | 122 | false | artefactual-labs/agentarchives | find_parent_id_for_component | 142,985 | |
LDU_FT/marshmallow-code/marshmallow-jsonapi/wrap_response | LDU_FT | [
"<BEGIN>\n## `check_relations`",
"Recursive function which checks if a relation is valid.\n<END>",
"<BEGIN>\n## `format_json_api_response`",
"Post-dump hook that formats serialized data as a top-level JSON API object.",
" See: http://jsonapi.org/format/#document-top-level\n<END>",
"<BEGIN>\n## `on_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Wrap data and links according to the JSON API | "Wrap data and links according to the JSON API" | 41 | false | marshmallow-code/marshmallow-jsonapi | wrap_response | 142,986 | |
LDU_FT/DheerendraRathor/django-auth-ldap-ng/search_with_additional_term_string | LDU_FT | [
"<BEGIN>\n## `get_ldap`",
"Returns the ldap module. The unit test harness will assign a mock object\n to _LDAPConfig.ldap. It is imperative that the ldap module not be\n imported anywhere else so that the unit tests will pass in the absence\n of python-ldap.\n<END>",
"<BEGIN>\n## `get_logge... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_with_additional_term_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_with_additional_term_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | Returns a new search object with filterstr and-ed to the original filter
string. The caller is responsible for passing in a properly escaped
string. | "Returns a new search object with filterstr and-ed to the original filter\n string. The caller is responsible for passing in a properly escaped\n string." | 55 | false | DheerendraRathor/django-auth-ldap-ng | search_with_additional_term_string | 142,987 | |
LDU_FT/sassoftware/saspy/sasutil | LDU_FT | [
"<BEGIN>\n## `submit`",
"This method is used to submit any SAS code. It returns the Log and Listing as a python dictionary.",
" - code - the SAS statements you want to execute\n - results - format of results. 'HTML' by default, alternatively 'TEXT'\n - prompt - dict of names:flags to pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sasutil API.
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 sasutil API.
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... | This methods creates a SASutil object which you can use to run various analytics.
See the sasutil.py module.
:return: sasutil object | "This methods creates a SASutil object which you can use to run various analytics.\n See the sasutil.py module.\n\n :return: sasutil object" | 469 | false | sassoftware/saspy | sasutil | 142,988 | |
LDU_FT/nccgroup/opinel/prompt | LDU_FT | [
"<BEGIN>\n## `read_default_args`",
"Read default argument values for a given tool",
" :param tool_name: Name of the script to read the default arguments for\n :return: Dictionary of default arguments (shared + tool-specific)\n<END>",
"<BEGIN>\n## `prompt`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prompt API.
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 prompt API.
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 ... | Prompt function that works for Python2 and Python3
:param test_input: Value to be returned when testing
:return: Value typed by user (or passed in argument when testing) | "Prompt function that works for Python2 and Python3\n\n :param test_input: Value to be returned when testing\n\n :return: Value typed by user (or passed in argument when testing)" | 132 | false | nccgroup/opinel | prompt | 142,989 | |
LDU_FT/mrname/haralyzer/_get_asset_size_trans | LDU_FT | [
"<BEGIN>\n## `get_load_times`",
"Just a ``list`` of the load times of a certain asset type for each page",
" :param asset_type: ``str`` of the asset type to return load times for\n<END>",
"<BEGIN>\n## `get_stdev`",
"Returns the standard deviation for a set of a certain asset type.",
" :param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_asset_size_trans API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_asset_size_trans API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Helper function to dynamically create *_size properties. | "Helper function to dynamically create *_size properties." | 72 | false | mrname/haralyzer | _get_asset_size_trans | 142,990 | |
LDU_FT/softlayer/softlayer-python/to_python | LDU_FT | [
"<BEGIN>\n## `cli`",
"List package items used for ordering.",
" The item keyNames listed can be used with `slcli order place` to specify\n the items that are being ordered in the package.",
" .. Note::\n Items with a numbered category, like disk0 or gpu0, can be included\n multiple time... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_python API.
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 to_python API.
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... | Decode this Table object to standard Python types. | "Decode this Table object to standard Python types." | 1,375 | true | softlayer/softlayer-python | to_python | 142,991 | |
LDU_FT/captin411/ofxclient/local_id | LDU_FT | [
"<BEGIN>\n## `is_secure_option`",
"Test an option to see if it is secured or not.",
" :param section: section id\n :type section: string\n :param option: option name\n :type option: string\n :rtype: boolean\n otherwise.\n<END>",
"<BEGIN>\n## `items`",
"Get all items... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the local_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the local_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Locally generated unique account identifier.
:rtype: string | "Locally generated unique account identifier.\n\n :rtype: string" | 93 | false | captin411/ofxclient | local_id | 142,992 | |
LDU_FT/marcinmiklitz/pywindow/shift_com | LDU_FT | [
"<BEGIN>\n## `unique`",
"Return a list of unique items (similar to set functionality).",
" Parameters\n ----------\n input_list : list\n A list containg some items that can occur more than once.",
" Returns\n -------\n list\n A list with only unique occurances of an item.\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shift_com API.
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 shift_com API.
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 coordinates translated by some vector.
Parameters
----------
elements : numpy.ndarray
An array of all elements (type: str) in a molecule.
coordinates : numpy.ndarray
An array containing molecule's coordinates.
com_adjust : numpy.ndarray (default = [0, 0, 0])
Returns
... | "Return coordinates translated by some vector.\n\n Parameters\n ----------\n elements : numpy.ndarray\n An array of all elements (type: str) in a molecule.\n\n coordinates : numpy.ndarray\n An array containing molecule's coordinates.\n\n com_adjust : numpy.ndarray (default = [0, 0, 0])\n\n ... | 303 | false | marcinmiklitz/pywindow | shift_com | 142,993 | |
LDU_FT/ucfopen/canvasapi/create_conversation | LDU_FT | [
"<BEGIN>\n## `request`",
"Make a request to the Canvas API and return the response.",
" :param method: The HTTP method for the request.\n :type method: str\n :param endpoint: The endpoint to call.\n :type endpoint: str\n :param headers: Optional HTTP headers to be sent with th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_conversation 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 create_conversation 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... | Create a new Conversation.
:calls: `POST /api/v1/conversations \
<https://canvas.instructure.com/doc/api/conversations.html#method.conversations.create>`_
:param recipients: An array of recipient ids.
These may be user ids or course/group ids prefixed
with 'course\\_' o... | "Create a new Conversation.\n\n :calls: `POST /api/v1/conversations \\\n <https://canvas.instructure.com/doc/api/conversations.html#method.conversations.create>`_\n\n :param recipients: An array of recipient ids.\n These may be user ids or course/group ids prefixed\n with 'cou... | 219 | false | ucfopen/canvasapi | create_conversation | 142,994 | |
LDU_FT/djangonauts/django-rest-framework-gis/dist_to_deg | LDU_FT | [
"<BEGIN>\n## `get_properties`",
"Get the feature metadata which will be used for the GeoJSON\n \"properties\" key.",
" By default it returns all serializer fields excluding those used for\n the ID, the geometry and the bounding box.",
" :param instance: The current Django model ins... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dist_to_deg API.
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 dist_to_deg API.
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... | distance = distance in meters
latitude = latitude in degrees
at the equator, the distance of one degree is equal in latitude and longitude.
at higher latitudes, a degree longitude is shorter in length, proportional to cos(latitude)
http://en.wikipedia.org/wiki/Decimal_degrees
T... | "distance = distance in meters\n latitude = latitude in degrees\n\n at the equator, the distance of one degree is equal in latitude and longitude.\n at higher latitudes, a degree longitude is shorter in length, proportional to cos(latitude)\n http://en.wikipedia.org/wiki/Decimal_degrees\n\n ... | 22 | false | djangonauts/django-rest-framework-gis | dist_to_deg | 142,995 | |
LDU_FT/EntilZha/PyFunctional/order_by_t | LDU_FT | [
"<BEGIN>\n## `name`",
"Retrieve a pretty name for the function\n :param function: function to get name from\n :return: pretty name\n<END>",
"<BEGIN>\n## `map_t`",
"Transformation for Sequence.map\n :param func: map function\n :return: transformation\n<END>",
"<BEGIN>\n## `starmap_t`",
"Transfo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the order_by_t API.
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 order_by_t API.
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... | Transformation for Sequence.order_by
:param func: order_by function
:return: transformation | "Transformation for Sequence.order_by\n :param func: order_by function\n :return: transformation" | 249 | false | EntilZha/PyFunctional | order_by_t | 142,996 | |
LDU_FT/lobocv/pyperform/walk_tree | LDU_FT | [
"<BEGIN>\n## `validate`",
"Execute the code once to get it's results (to be used in function validation). Compare the result to the\n first function in the group.\n<END>",
"<BEGIN>\n## `summarize`",
"Tabulate and write the results of ComparisonBenchmarks to a file or standard out.\n :param str g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walk_tree API.
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 walk_tree API.
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... | Recursively walk through a tree relationship. This iterates a tree in a top-down approach,
fully reaching the end of a lineage before moving onto the next sibling of that generation. | "Recursively walk through a tree relationship. This iterates a tree in a top-down approach,\n fully reaching the end of a lineage before moving onto the next sibling of that generation." | 30 | false | lobocv/pyperform | walk_tree | 142,997 | |
LDU_FT/kennethreitz/requests-html/close | LDU_FT | [
"<BEGIN>\n## `user_agent`",
"Returns an apparently legit user-agent, if not requested one of a specific\n style. Defaults to a Chrome-style User-Agent.\n<END>",
"<BEGIN>\n## `raw_html`",
"Bytes representation of the HTML content.\n (`learn more <http://www.diveintopython3.net/strings.html>`_).\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | If a browser was created close it first. | "If a browser was created close it first." | 58 | false | kennethreitz/requests-html | close | 142,998 | |
LDU_FT/stephrdev/django-formwizard/render_revalidation_failure | LDU_FT | [
"<BEGIN>\n## `as_view`",
"This method is used within urls.py to create unique formwizard\n instances for every request. We need to override this method because\n we add some kwargs which are needed to make the formwizard usable.\n<END>",
"<BEGIN>\n## `get_initkwargs`",
"Creates a dict with all n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_revalidation_failure 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 render_revalidation_failure API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | When a step fails, we have to redirect the user to the first failing
step. | "When a step fails, we have to redirect the user to the first failing\n step." | 60 | false | stephrdev/django-formwizard | render_revalidation_failure | 142,999 | |
LDU_FT/graphql-python/graphene/maybe_thenable | LDU_FT | [
"<BEGIN>\n## `replace`",
"Creates a customized copy of the Parameter.\n<END>",
"<BEGIN>\n## `from_function`",
"Constructs Signature for the given python function\n<END>",
"<BEGIN>\n## `replace`",
"Creates a customized copy of the Signature.\n Pass 'parameters' and/or 'return_annotation' arguments\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maybe_thenable API.
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 maybe_thenable API.
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... | Execute a on_resolve function once the thenable is resolved,
returning the same type of object inputed.
If the object is not thenable, it should return on_resolve(obj) | "Execute a on_resolve function once the thenable is resolved,\n returning the same type of object inputed.\n If the object is not thenable, it should return on_resolve(obj)" | 18 | false | graphql-python/graphene | maybe_thenable | 143,000 | |
LDU_FT/AlexMathew/scrapple/check_arguments | LDU_FT | [
"<BEGIN>\n## `execute_command`",
"The web command runs the Scrapple web interface through a simple \\\n `Flask <http://flask.pocoo.org>`_ app. ",
" When the execute_command() method is called from the \\\n :ref:`runCLI() <implementation-cli>` function, it starts of two simultaneous \\\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_arguments API.
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 check_arguments API.
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... | Validates the arguments passed through the CLI commands.
:param args: The arguments passed in the CLI, parsed by the docopt module
:return: None | "Validates the arguments passed through the CLI commands.\n\n\t:param args: The arguments passed in the CLI, parsed by the docopt module\n\t:return: None" | 62 | false | AlexMathew/scrapple | check_arguments | 143,001 | |
LDU_FT/nmdp-bioinformatics/SeqAnn/deserialize_model | LDU_FT | [
"<BEGIN>\n## `search_seqs`",
"search_seqs - method for annotating a BioPython sequence without alignment",
" :param seqrec: The reference sequence\n :type seqrec: SeqRecord\n :param locus: The gene locus associated with the sequence.\n :type locus: str\n :param in_seq: The inp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize_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... | Deserializes list or dict to model.
:param data: dict, list.
:type data: dict | list
:param klass: class literal.
:return: model object. | "Deserializes list or dict to model.\n\n :param data: dict, list.\n :type data: dict | list\n :param klass: class literal.\n :return: model object." | 112 | false | nmdp-bioinformatics/SeqAnn | deserialize_model | 143,002 | |
LDU_FT/pypa/pipenv/emitCurrentToken | LDU_FT | [
"<BEGIN>\n## `site_data_dir`",
"r\"\"\"Return full path to the user-shared data dir for this application.",
" \"appname\" is the name of application.\n If None, just the system directory is returned.\n \"appauthor\" (only used on Windows) is the name of the\n appauthor or dis... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emitCurrentToken API.
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 emitCurrentToken API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | This method is a generic handler for emitting the tags. It also sets
the state to "data" because that's what's needed after a token has been
emitted. | "This method is a generic handler for emitting the tags. It also sets\n the state to \"data\" because that's what's needed after a token has been\n emitted." | 4,833 | true | pypa/pipenv | emitCurrentToken | 143,003 | |
LDU_FT/LordDarkula/chess_py/in_check_as_result | LDU_FT | [
"<BEGIN>\n## `_get_piece`",
"Returns Piece subclass given index of piece.",
" :type: index: int\n :type: loc Location",
" :raise: KeyError\n<END>",
"<BEGIN>\n## `incomplete_alg`",
"Converts a string written in short algebraic form into an incomplete move.\n These incomplete moves do not have t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the in_check_as_result 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 in_check_as_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Finds if playing my move would make both kings meet.
:type: pos: Board
:type: move: Move
:rtype: bool | "Finds if playing my move would make both kings meet.\n\n :type: pos: Board\n :type: move: Move\n :rtype: bool" | 173 | false | LordDarkula/chess_py | in_check_as_result | 143,004 | |
LDU_FT/psss/did/this_quarter | 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 this_quarter API.
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 this_quarter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return start and end date of this quarter. | "Return start and end date of this quarter." | 118 | false | psss/did | this_quarter | 143,005 | |
LDU_FT/inveniosoftware/invenio-pidstore/update | LDU_FT | [
"<BEGIN>\n## `recid_fetcher`",
"Fetch a record's identifiers.",
" :param record_uuid: The record UUID.\n :param data: The record metadata.\n :returns: A :data:`invenio_pidstore.fetchers.FetchedPID` instance.\n<END>",
"<BEGIN>\n## `get_object`",
"Get an object behind persistent identifier.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Update metadata associated with a DOI.
This can be called before/after a DOI is registered.
:param doc: Set metadata for DOI.
:returns: `True` if is updated successfully. | "Update metadata associated with a DOI.\n\n This can be called before/after a DOI is registered.\n\n :param doc: Set metadata for DOI.\n :returns: `True` if is updated successfully." | 118 | false | inveniosoftware/invenio-pidstore | update | 143,006 | |
LDU_FT/lingthio/Flask-User/username_is_available | LDU_FT | [
"<BEGIN>\n## `send_email_message`",
"Send email message via Flask-Sendmail.",
" Args:\n recipient: Email address or tuple of (Name, Email-address).\n subject: Subject line.\n html_message: The message body in HTML.\n text_message: The message body in plain text... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the username_is_available API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the username_is_available API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Check if ``new_username`` is still available.
| Returns True if ``new_username`` does not exist or belongs to the current user.
| Return False otherwise. | "Check if ``new_username`` is still available.\n\n | Returns True if ``new_username`` does not exist or belongs to the current user.\n | Return False otherwise." | 186 | false | lingthio/Flask-User | username_is_available | 143,007 | |
LDU_FT/owncloud/pyocclient/_encode_string | LDU_FT | [
"<BEGIN>\n## `get_expiration`",
"Returns the expiration date.",
" :returns: expiration date\n :rtype: datetime object\n<END>",
"<BEGIN>\n## `login`",
"Authenticate to ownCloud.\n This will create a session on the server.",
" :param user_id: user id\n :param password: pas... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Encodes a unicode instance to utf-8. If a str is passed it will
simply be returned
:param s: str or unicode to encode
:returns: encoded output as str | "Encodes a unicode instance to utf-8. If a str is passed it will\n simply be returned\n\n :param s: str or unicode to encode\n :returns: encoded output as str" | 139 | false | owncloud/pyocclient | _encode_string | 143,008 | |
LDU_FT/edx/bok-choy/execute | LDU_FT | [
"<BEGIN>\n## `wait_for_js`",
"Method decorator that waits for JavaScript dependencies before executing `function`.\n If the function is not a method, the decorator has no effect.",
" Args:\n function (callable): Method to decorate.",
" Returns:\n Decorated method\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Execute this query, retrying based on the supplied parameters.
Keyword Args:
try_limit (int): The number of times to retry the query.
try_interval (float): The number of seconds to wait between each try (float).
timeout (float): The maximum number of seconds to spend retryin... | "Execute this query, retrying based on the supplied parameters.\n\n Keyword Args:\n try_limit (int): The number of times to retry the query.\n try_interval (float): The number of seconds to wait between each try (float).\n timeout (float): The maximum number of seconds to spend r... | 254 | false | edx/bok-choy | execute | 143,009 | |
LDU_FT/google/pyringe/Detach | LDU_FT | [
"<BEGIN>\n## `StartExecServer`",
"Opens a socket in /tmp, execs data from it and writes results back.\n<END>",
"<BEGIN>\n## `ThreadsWithRunningExecServers`",
"Returns a list of tids of inferior threads with open exec servers.\n<END>",
"<BEGIN>\n## `Backtrace`",
"Get a backtrace of the current position.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Detach API.
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 Detach API.
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 ... | Detaches from the inferior. If not attached, this is a no-op. | "Detaches from the inferior. If not attached, this is a no-op." | 142 | false | google/pyringe | Detach | 143,010 | |
LDU_FT/blue-yonder/turbodbc/_get_distutils_build_directory | LDU_FT | [
"<BEGIN>\n## `cursor`",
"Create a new ``Cursor`` instance associated with this ``Connection``",
" :return: A new ``Cursor`` instance\n<END>",
"<BEGIN>\n## `close`",
"Close the connection and all associated cursors. This will implicitly\n roll back any uncommitted operations.\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_distutils_build_directory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_distutils_build_directory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Returns the directory distutils uses to build its files.
We need this directory since we build extensions which have to link
other ones. | "Returns the directory distutils uses to build its files.\n We need this directory since we build extensions which have to link\n other ones." | 54 | false | blue-yonder/turbodbc | _get_distutils_build_directory | 143,011 | |
LDU_FT/isislovecruft/python-gnupg/_create_trustdb | LDU_FT | [
"<BEGIN>\n## `get_requirements`",
"Extract the list of requirements from our requirements.txt.",
" :rtype: 2-tuple\n :returns: Two lists, the first is a list of requirements in the form of\n pkgname==version. The second is a list of URIs or VCS checkout strings\n which specify the dependency... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_trustdb API.
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 _create_trustdb API.
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... | Create the trustdb file in our homedir, if it doesn't exist. | "Create the trustdb file in our homedir, if it doesn't exist." | 371 | false | isislovecruft/python-gnupg | _create_trustdb | 143,012 | |
LDU_FT/Pegase745/sqlalchemy-datatables/parse_query_value | LDU_FT | [
"<BEGIN>\n## `clean_regex`",
"Escape any regex special characters other than alternation.",
" :param regex: regex from datatables interface\n :type regex: str\n :rtype: str with regex to use with database\n<END>",
"<BEGIN>\n## `output_result`",
"Output results in the format needed by DataTables.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_query_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_query_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Parse value in form of '>value' to a lambda and a value. | "Parse value in form of '>value' to a lambda and a value." | 17 | false | Pegase745/sqlalchemy-datatables | parse_query_value | 143,013 | |
LDU_FT/ml31415/numpy-groupies/callable | LDU_FT | [
"<BEGIN>\n## `aggregate_group_loop`",
"wraps func in lambda which prevents aggregate_numpy from\n recognising and optimising it. Instead it groups and loops.\n<END>",
"<BEGIN>\n## `step_count`",
"Return the amount of index changes within group_idx.\n<END>",
"<BEGIN>\n## `step_indices`",
"Return the edg... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the callable API.
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 callable API.
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... | Compile a jitted function doing the hard part of the job | "Compile a jitted function doing the hard part of the job" | 56 | false | ml31415/numpy-groupies | callable | 143,014 | |
LDU_FT/chezou/tabula-py/read_pdf | LDU_FT | [
"<BEGIN>\n## `load_template`",
"Build tabula-py option from template file",
" Args:\n file_like_obj: File like object of Tabula app template",
" Returns:\n `obj`:dict: tabula-py options\n<END>",
"<BEGIN>\n## `_convert_template_option`",
"Convert Tabula app template to tabula-py option"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_pdf API.
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_pdf API.
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 tables in PDF.
Args:
input_path (file like obj):
File like object of tareget PDF file.
output_format (str, optional):
Output format of this function (dataframe or json)
encoding (str, optional):
Encoding type for pandas. Default is 'utf-8'
ja... | "Read tables in PDF.\n\n Args:\n input_path (file like obj):\n File like object of tareget PDF file.\n output_format (str, optional):\n Output format of this function (dataframe or json)\n encoding (str, optional):\n Encoding type for pandas. Default is 'utf-8'\n... | 50 | false | chezou/tabula-py | read_pdf | 143,015 | |
LDU_FT/CSchoel/nolds/rs | LDU_FT | [
"<BEGIN>\n## `weron_2002_figure2`",
"Recreates figure 2 of [w]_ comparing the reported values by Weron to the\n values obtained by the functions in this package.",
" The experiment consists of n iterations where the hurst exponent of randomly\n generated gaussian noise is calculated. This is done with differ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docu... | Calculates an individual R/S value in the rescaled range approach for
a given n.
Note: This is just a helper function for hurst_rs and should not be called
directly.
Args:
data (array-like of float):
time series
n (float):
size of the subseries in which data should be split
Kwargs:
... | "Calculates an individual R/S value in the rescaled range approach for\n a given n.\n\n Note: This is just a helper function for hurst_rs and should not be called\n directly.\n\n Args:\n data (array-like of float):\n time series\n n (float):\n size of the subseries in which data should be split\n\n ... | 236 | false | CSchoel/nolds | rs | 143,016 | |
LDU_FT/BD2KOnFHIR/fhirtordf/namespace_for | LDU_FT | [
"<BEGIN>\n## `namespace_for`",
"Reverse namespace lookup. Note that returned namespace may not be unique\n :param uri: namespace URI\n :return: namespace\n<END>",
"<BEGIN>\n## `known_formats`",
"Return a list of available formats in rdflib for the required task\n :param use: task (typically Serializ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the namespace_for API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the namespace_for API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Reverse namespace lookup. Note that returned namespace may not be unique
:param uri: namespace URI
:return: namespace | "Reverse namespace lookup. Note that returned namespace may not be unique\n :param uri: namespace URI\n :return: namespace" | 75 | false | BD2KOnFHIR/fhirtordf | namespace_for | 143,017 | |
LDU_FT/edeposit/marcxml2mods/transform_to_mods_mono | LDU_FT | [
"<BEGIN>\n## `postprocess_periodical`",
"Some basic postprocessing of the periodical publications.",
" Args:\n marc_xml (str): Original Aleph record.\n mods (str): XML string generated by XSLT template.\n uuid (str): UUID of the package.\n counter (int): Number of record, is added... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_to_mods_mono 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 transform_to_mods_mono API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Convert `marc_xml` to MODS data format.
Args:
marc_xml (str): Filename or XML string. Don't use ``\\n`` in case of
filename.
uuid (str): UUID string giving the package ID.
url (str): URL of the publication (public or not).
Returns:
list: Collection of tr... | "Convert `marc_xml` to MODS data format.\n\n Args:\n marc_xml (str): Filename or XML string. Don't use ``\\\\n`` in case of\n filename.\n uuid (str): UUID string giving the package ID.\n url (str): URL of the publication (public or not).\n\n Returns:\n list: Coll... | 93 | false | edeposit/marcxml2mods | transform_to_mods_mono | 143,018 | |
LDU_FT/kmadac/bitstamp-python-client/account_balance | LDU_FT | [
"<BEGIN>\n## `_construct_url`",
"Adds the orderbook to the url if base and quote are specified.\n<END>",
"<BEGIN>\n## `_request`",
"Make a generic request, adding in any proxy defined by the instance.",
" Raises a ``requests.HTTPError`` if the response status isn't 200, and\n raises a :class:`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the account_balance API.
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 account_balance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Returns dictionary::
{u'btc_reserved': u'0',
u'fee': u'0.5000',
u'btc_available': u'2.30856098',
u'usd_reserved': u'0',
u'btc_balance': u'2.30856098',
u'usd_balance': u'114.64',
u'usd_available': u'114.64',
---If bas... | "Returns dictionary::\n\n {u'btc_reserved': u'0',\n u'fee': u'0.5000',\n u'btc_available': u'2.30856098',\n u'usd_reserved': u'0',\n u'btc_balance': u'2.30856098',\n u'usd_balance': u'114.64',\n u'usd_available': u'114.64',\n ... | 47 | false | kmadac/bitstamp-python-client | account_balance | 143,019 | |
LDU_FT/ejeschke/ginga/_short_color_list | LDU_FT | [
"<BEGIN>\n## `set_figure`",
"Call this with the matplotlib Figure() object.\n<END>",
"<BEGIN>\n## `render_image1`",
"Render the image represented by (rgbobj) at dst_x, dst_y\n in the pixel space.",
" NOTE: this version uses a Figure.FigImage to render the image.\n<END>",
"<BEGIN>\n## `render... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _short_color_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _short_color_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Color list is too long. Discard variations with numbers. | "Color list is too long. Discard variations with numbers." | 1,455 | true | ejeschke/ginga | _short_color_list | 143,020 | |
LDU_FT/adrn/gala/angact_iso | LDU_FT | [
"<BEGIN>\n## `w`",
"This returns a single array containing the phase-space positions.",
" Parameters\n ----------\n units : `~gala.units.UnitSystem` (optional)\n The unit system to represent the position and velocity in\n before combining into the full array.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the angact_iso API.
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 angact_iso API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Calculate angle and action variable in isochrone potential with
parameters params = (M,b) | "Calculate angle and action variable in isochrone potential with\n parameters params = (M,b)" | 465 | false | adrn/gala | angact_iso | 143,021 | |
LDU_FT/pasztorpisti/py-flags/unique_bits | LDU_FT | [
"<BEGIN>\n## `unique`",
"A decorator for flags classes to forbid flag aliases.\n<END>",
"<BEGIN>\n## `unique_bits`",
"A decorator for flags classes to forbid declaring flags with overlapping bits.\n<END>",
"<BEGIN>\n## `process_inline_members_definition`",
":param members: this can be any of the following... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unique_bits API.
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 unique_bits API.
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... | A decorator for flags classes to forbid declaring flags with overlapping bits. | "A decorator for flags classes to forbid declaring flags with overlapping bits." | 14 | false | pasztorpisti/py-flags | unique_bits | 143,022 | |
LDU_FT/jd/tenacity/retry_func_accept_retry_state | LDU_FT | [
"<BEGIN>\n## `after_log`",
"After call strategy that logs to some logger the finished attempt.\n<END>",
"<BEGIN>\n## `retry`",
"Wrap a function with a new `Retrying` object.",
" :param dargs: positional arguments passed to Retrying object\n :param dkw: keyword arguments passed to the Retrying object\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry_func_accept_retry_state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry_func_accept_retry_state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Wrap "retry" function to accept "retry_state" parameter. | "Wrap \"retry\" function to accept \"retry_state\" parameter." | 44 | false | jd/tenacity | retry_func_accept_retry_state | 143,023 | |
LDU_FT/jeremylow/pyshk/get_shared_file | LDU_FT | [
"<BEGIN>\n## `get_user`",
"Get a user object from the API. If no ``user_id`` or ``user_name``\n is specified, it will return the User object for the currently\n authenticated user.",
" Args:\n user_id (int): User ID of the user for whom you want to get\n informatio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_shared_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_shared_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Returns a SharedFile object given by the sharekey.
Args:
sharekey (str): Sharekey of the SharedFile you want to retrieve.
Returns:
SharedFile | "Returns a SharedFile object given by the sharekey.\n\n Args:\n sharekey (str): Sharekey of the SharedFile you want to retrieve.\n\n Returns:\n SharedFile" | 85 | false | jeremylow/pyshk | get_shared_file | 143,024 | |
LDU_FT/ml31415/numpy-groupies/get_func | LDU_FT | [
"<BEGIN>\n## `aggregate_group_loop`",
"wraps func in lambda which prevents aggregate_numpy from\n recognising and optimising it. Instead it groups and loops.\n<END>",
"<BEGIN>\n## `step_count`",
"Return the amount of index changes within group_idx.\n<END>",
"<BEGIN>\n## `step_indices`",
"Return the edg... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_func API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_func API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return the key of a found implementation or the func itself | "Return the key of a found implementation or the func itself" | 56 | false | ml31415/numpy-groupies | get_func | 143,025 | |
LDU_FT/rpcope1/PythonConfluenceAPI/delete_property | LDU_FT | [
"<BEGIN>\n## `request_patch`",
"Maintains the existing api for Session.request.\n Used by all of the higher level methods, e.g. Session.get.\n The background_callback param allows you to do some processing on the\n response in the background, e.g. call resp.json() so that json parsing\n happens in the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_property API.
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 delete_property API.
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... | Deletes a content property.
:param content_id (string): The ID for the content that owns the property to be deleted.
:param property_key (string): The name of the property to be deleted.
:param callback: OPTIONAL: The callback to execute on the resulting data, before the method returns.
... | "Deletes a content property.\n :param content_id (string): The ID for the content that owns the property to be deleted.\n :param property_key (string): The name of the property to be deleted.\n :param callback: OPTIONAL: The callback to execute on the resulting data, before the method returns.\n ... | 140 | false | rpcope1/PythonConfluenceAPI | delete_property | 143,026 | |
LDU_FT/rueckstiess/mtools/ntoreturn | LDU_FT | [
"<BEGIN>\n## `wait_for_host`",
"Ping server and wait for response.",
" Ping a mongod or mongos every `interval` seconds until it responds, or\n `timeout` seconds have passed. If `to_start` is set to False, will wait for\n the node to shut down instead. This function can be called as a separate\n thr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ntoreturn API.
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 ntoreturn API.
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... | Extract ntoreturn counter if available (lazy). | "Extract ntoreturn counter if available (lazy)." | 260 | false | rueckstiess/mtools | ntoreturn | 143,027 | |
LDU_FT/jjjake/internetarchive/delete | LDU_FT | [
"<BEGIN>\n## `prepare_metadata`",
"Prepare a metadata dict for an\n :class:`S3PreparedRequest <S3PreparedRequest>` or\n :class:`MetadataPreparedRequest <MetadataPreparedRequest>` object.",
" :type metadata: dict\n :param metadata: The metadata dict to be prepared.",
" :type source_metadata: dic... | 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 ... | Delete a file from the Archive. Note: Some files -- such as
<itemname>_meta.xml -- cannot be deleted.
:type cascade_delete: bool
:param cascade_delete: (optional) Also deletes files derived from the file, and
files the file was derived from.
:type access_... | "Delete a file from the Archive. Note: Some files -- such as\n <itemname>_meta.xml -- cannot be deleted.\n\n :type cascade_delete: bool\n :param cascade_delete: (optional) Also deletes files derived from the file, and\n files the file was derived from.\n\n :type... | 281 | false | jjjake/internetarchive | delete | 143,028 | |
LDU_FT/TechnicalBro/simple-python-plugins/scan_for_plugins | LDU_FT | [
"<BEGIN>\n## `get_filename`",
"Safe method to retrieve only the name of the file.\n :param file: Path of the file to retrieve the name from.\n :return: None if the file is non-existant, otherwise the filename (extension included)\n :rtype: None, str\n<END>",
"<BEGIN>\n## `import_module_from_file`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_for_plugins API.
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 scan_for_plugins API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Scan a directory for modules that contains plugin(s).
:param directory: Path of the folder/directory to scan.
:return: Dictionary of file (key) and plugins (value), where the key is the path of the module and value is a list of plugins inside that module.
:rtype: dict | "Scan a directory for modules that contains plugin(s).\n :param directory: Path of the folder/directory to scan.\n :return: Dictionary of file (key) and plugins (value), where the key is the path of the module and value is a list of plugins inside that module.\n :rtype: dict" | 20 | false | TechnicalBro/simple-python-plugins | scan_for_plugins | 143,029 | |
LDU_FT/jdrumgoole/mongodbshell/delete_many | LDU_FT | [
"<BEGIN>\n## `database`",
"Set the default database for this Proxy object.\n :param database_name: A string naming the database\n<END>",
"<BEGIN>\n## `find`",
"Run the pymongo find command against the default database and collection\n and paginate the output to the screen.\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_many API.
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 delete_many API.
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... | Run the pymongo delete_many command against the default database and collection
and return the deleted IDs. | "Run the pymongo delete_many command against the default database and collection\n and return the deleted IDs." | 33 | false | jdrumgoole/mongodbshell | delete_many | 143,030 | |
LDU_FT/telminov/sw-django-utils/random_date | LDU_FT | [
"<BEGIN>\n## `random_date`",
"This function will return a random datetime between two datetime objects.\n :param start:\n :param end:\n<END>",
"<BEGIN>\n## `url_path`",
"join base_url and some GET-parameters to one; it could be absolute url optionally",
" usage example:",
" c['current_url'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_date API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_date API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | This function will return a random datetime between two datetime objects.
:param start:
:param end: | "This function will return a random datetime between two datetime objects.\n :param start:\n :param end:" | 17 | false | telminov/sw-django-utils | random_date | 143,031 | |
LDU_FT/svenkreiss/pysparkling/socketBinaryStream | LDU_FT | [
"<BEGIN>\n## `get_fs`",
"Find the file system implementation for this path.\n<END>",
"<BEGIN>\n## `awaitTermination`",
"Wait for context to stop.",
" :param float timeout: in seconds\n<END>",
"<BEGIN>\n## `binaryRecordsStream`",
"Monitor a directory and process all binary files.",
" File... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the socketBinaryStream 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 socketBinaryStream 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... | Create a TCP socket server for binary input.
.. warning::
This is not part of the PySpark API.
:param string hostname: Hostname of TCP server.
:param int port: Port of TCP server.
:param length:
Message length. Length in bytes or a format string for
... | "Create a TCP socket server for binary input.\n\n .. warning::\n This is not part of the PySpark API.\n\n :param string hostname: Hostname of TCP server.\n :param int port: Port of TCP server.\n :param length:\n Message length. Length in bytes or a format string for\n ... | 109 | false | svenkreiss/pysparkling | socketBinaryStream | 143,032 | |
LDU_FT/timothydmorton/isochrones/random_points | LDU_FT | [
"<BEGIN>\n## `interp_box`",
"box is 8x3 array, though not really a box",
" values is length-8 array, corresponding to values at the \"box\" coords",
" TODO: should make power `p` an argument\n<END>",
"<BEGIN>\n## `interp_values`",
"mass_arr, age_arr, feh_arr are all arrays at which values are desire... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_points API.
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 random_points API.
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 n random mass, age, feh points, none of which are out of range.
:param n:
Number of desired points.
:param minmass, maxmass: (optional)
Desired allowed range. Default is mass range of ``self``.
:param minage, maxage: (optional)
Desired allowed rang... | "Returns n random mass, age, feh points, none of which are out of range.\n\n :param n:\n Number of desired points.\n\n :param minmass, maxmass: (optional)\n Desired allowed range. Default is mass range of ``self``.\n\n :param minage, maxage: (optional)\n Desired al... | 314 | false | timothydmorton/isochrones | random_points | 143,033 | |
LDU_FT/GiulioRossetti/ndlib/iteration | LDU_FT | [
"<BEGIN>\n## `set_initial_status`",
"Override behaviour of methods in class DiffusionModel.\n Overwrites initial status using random real values.\n Generates random node profiles.\n<END>",
"<BEGIN>\n## `iteration`",
"Execute a single model iteration",
" :return: Iteration_id, Incrementa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iteration API.
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 iteration API.
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... | Execute a single model iteration
:return: Iteration_id, Incremental node status (dictionary node->status) | "Execute a single model iteration\n\n :return: Iteration_id, Incremental node status (dictionary node->status)" | 56 | false | GiulioRossetti/ndlib | iteration | 143,034 | |
LDU_FT/django-fluent/django-fluent-dashboard/get_personal_module | LDU_FT | [
"<BEGIN>\n## `init_with_context`",
"Find the current URL based on the context.\n It uses :func:`get_edited_object` to find the model,\n and calls ``get_absolute_url()`` to get the frontend URL.\n<END>",
"<BEGIN>\n## `get_edited_object`",
"Return the object which is currently being edited.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_personal_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 get_personal_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... | Instantiate the :class:`~fluent_dashboard.modules.PersonalModule` for use in the dashboard. | "Instantiate the :class:`~fluent_dashboard.modules.PersonalModule` for use in the dashboard." | 28 | false | django-fluent/django-fluent-dashboard | get_personal_module | 143,035 | |
LDU_FT/shreyaspotnis/rampage/reset_analog_sample_clock | LDU_FT | [
"<BEGIN>\n## `updateAllKeys`",
"Update times for all keys in the layout.\n<END>",
"<BEGIN>\n## `set_output`",
"Sets whether the function generator is outputting a voltage.\n<END>",
"<BEGIN>\n## `set_fm_ext`",
"Sets the func generator to frequency modulation with external modulation.\n freq is the c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_analog_sample_clock 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 reset_analog_sample_clock API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Reset the clock line.
Use this just before starting a run to avoid timing issues. | "Reset the clock line.\n\n Use this just before starting a run to avoid timing issues." | 90 | false | shreyaspotnis/rampage | reset_analog_sample_clock | 143,036 | |
LDU_FT/google/apitools/total_seconds | LDU_FT | [
"<BEGIN>\n## `_urljoin`",
"Custom urljoin replacement supporting : before / in url.\n<END>",
"<BEGIN>\n## `_SetCredentials`",
"Fetch credentials, and set them for this client.",
" Note that we can't simply return credentials, since creating them\n may involve side-effecting self.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the total_seconds API.
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 total_seconds API.
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... | Backport of offset.total_seconds() from python 2.7+. | "Backport of offset.total_seconds() from python 2.7+." | 629 | false | google/apitools | total_seconds | 143,037 | |
LDU_FT/suds-community/suds/__find | LDU_FT | [
"<BEGIN>\n## `xml`",
"Get xml representation of the object.\n @return: The root node.\n @rtype: L{Element}\n<END>",
"<BEGIN>\n## `skip`",
"Get whether to skip (filter-out) the specified attribute.\n @param attr: An attribute.\n @type attr: I{Attribute}\n @return: True if sho... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __find API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __find API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Find a I{service} by name (string) or index (integer).
@param name: The name (or index) of a service.
@type name: int|str
@return: A L{PortSelector} for the found service.
@rtype: L{PortSelector}. | "Find a I{service} by name (string) or index (integer).\n\n @param name: The name (or index) of a service.\n @type name: int|str\n @return: A L{PortSelector} for the found service.\n @rtype: L{PortSelector}." | 466 | false | suds-community/suds | __find | 143,038 | |
LDU_FT/django-danceschool/django-danceschool/applyAndAllocate | LDU_FT | [
"<BEGIN>\n## `get_context_data`",
"Add the list of registrations for the given series\n<END>",
"<BEGIN>\n## `get_context_data`",
"The URL to redirect to can be explicitly specified, or it can come\n from the site session history, or it can be the default admin success page\n as specified in the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the applyAndAllocate API.
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 applyAndAllocate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | This method takes an initial allocation of prices across events, and
an identical length list of allocation tuples. It applies the rule
specified by this discount, allocates the discount across the listed
items, and returns both the price and the allocation | "This method takes an initial allocation of prices across events, and\n an identical length list of allocation tuples. It applies the rule\n specified by this discount, allocates the discount across the listed\n items, and returns both the price and the allocation" | 337 | false | django-danceschool/django-danceschool | applyAndAllocate | 143,039 | |
LDU_FT/quaddra/provision/handle_errors | LDU_FT | [
"<BEGIN>\n## `NodeDriver_wait_until_running`",
"Block until node is fully booted and has an IP address assigned.",
" @keyword node: Node instance.\n @type node: C{Node}",
" @keyword wait_period: How many seconds to between each loop\n iteration (default is 3)\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_errors API.
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 handle_errors API.
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... | Execute the callback, optionally passing it parsed, and return
its return value. If an exception occurs, determine which kind it
is, output an appropriate message, and return the corresponding
error code. | "Execute the callback, optionally passing it parsed, and return\n its return value. If an exception occurs, determine which kind it\n is, output an appropriate message, and return the corresponding\n error code." | 59 | false | quaddra/provision | handle_errors | 143,040 | |
LDU_FT/cloudbase/python-hnvclient/is_ready | LDU_FT | [
"<BEGIN>\n## `register`",
"Register the current options to the global ConfigOpts object.\n<END>",
"<BEGIN>\n## `get_options`",
"Collect all the options info from the other modules.\n<END>",
"<BEGIN>\n## `run_once`",
"A memoization decorator, whose purpose is to cache calls.\n<END>",
"<BEGIN>\n## `get_cl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ready API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ready API.
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 model is ready to be used. | "Check if the current model is ready to be used." | 89 | false | cloudbase/python-hnvclient | is_ready | 143,041 | |
LDU_FT/standage/tag/ncbi_geneid | LDU_FT | [
"<BEGIN>\n## `accession`",
"Parse accession number from commonly supported formats.",
" If the defline does not match one of the following formats, the entire\n description (sans leading caret) will be returned.",
" * >gi|572257426|ref|XP_006607122.1|\n * >gnl|Tcas|XP_008191512.1\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ncbi_geneid API.
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 ncbi_geneid API.
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... | Retrieve this feature's NCBI GeneID if it's present.
NCBI GFF3 files contain gene IDs encoded in **Dbxref** attributes
(example: `Dbxref=GeneID:103504972`). This function locates and returns
the GeneID if present, or returns `None` otherwise. | "Retrieve this feature's NCBI GeneID if it's present.\n\n NCBI GFF3 files contain gene IDs encoded in **Dbxref** attributes\n (example: `Dbxref=GeneID:103504972`). This function locates and returns\n the GeneID if present, or returns `None` otherwise." | 114 | false | standage/tag | ncbi_geneid | 143,042 | |
LDU_FT/Hundemeier/sacn/leave_multicast | LDU_FT | [
"<BEGIN>\n## `activate_output`",
"Activates a universe that's then starting to sending every second.\n See http://tsp.esta.org/tsp/documents/docs/E1-31-2016.pdf for more information\n :param universe: the universe to activate\n<END>",
"<BEGIN>\n## `deactivate_output`",
"Deactivates an existing s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the leave_multicast API.
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 leave_multicast API.
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... | Try to leave the multicast group with the specified universe. This does not throw any exception if the group
could not be leaved.
:param universe: the universe to leave the multicast group.
The network hardware has to support the multicast feature! | "Try to leave the multicast group with the specified universe. This does not throw any exception if the group\n could not be leaved.\n :param universe: the universe to leave the multicast group.\n The network hardware has to support the multicast feature!" | 32 | false | Hundemeier/sacn | leave_multicast | 143,043 | |
LDU_FT/varunsrin/one-py/get_special_location | LDU_FT | [
"<BEGIN>\n## `open_hierarchy`",
"CreateFileType\n 0 - Creates no new object.\n 1 - Creates a notebook with the specified name at the specified location.\n 2 - Creates a section group with the specified name at the specified location.\n 3 - Creates a section with the specified n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_special_location 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_special_location API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | SpecialLocation
0 - Gets the path to the Backup Folders folder location.
1 - Gets the path to the Unfiled Notes folder location.
2 - Gets the path to the Default Notebook folder location. | "SpecialLocation\n 0 - Gets the path to the Backup Folders folder location.\n 1 - Gets the path to the Unfiled Notes folder location.\n 2 - Gets the path to the Default Notebook folder location." | 10 | false | varunsrin/one-py | get_special_location | 143,044 | |
LDU_FT/TC01/python-xkcd/getComic | LDU_FT | [
"<BEGIN>\n## `getRandomComic`",
"Produces a :class:`Comic` object for a random xkcd comic. Uses the\n\t\tPython standard library random number generator in order to select\n\t\ta comic.",
"\t\tReturns the resulting comic object.\n<END>",
"<BEGIN>\n## `getComic`",
"Produces a :class:`Comic` object with index... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getComic API.
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 getComic API.
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... | Produces a :class:`Comic` object with index equal to the provided argument.
Prints an error in the event of a failure (i.e. the number is less than zero
or greater than the latest comic number) and returns an empty Comic object.
Arguments:
an integer or string that represents a number, "number", that is the i... | "Produces a :class:`Comic` object with index equal to the provided argument.\n\t\tPrints an error in the event of a failure (i.e. the number is less than zero\n\t\tor greater than the latest comic number) and returns an empty Comic object.\n\n\t\tArguments:\n\t\t\tan integer or string that represents a number, \"number... | 31 | false | TC01/python-xkcd | getComic | 143,045 | |
LDU_FT/TriOptima/tri.declarative/get_members | LDU_FT | [
"<BEGIN>\n## `with_meta`",
"Class decorator to enable a class (and it's sub-classes) to have a 'Meta' class attribute.",
" :type class_to_decorate: class\n :param bool add_init_kwargs: Pass Meta class members to constructor",
" :rtype: class\n<END>",
"<BEGIN>\n## `get_meta`",
"Collect... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_members API.
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_members API.
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... | Collect all class level attributes matching the given criteria.
:param class member_class: Class(es) to collect
:param is_member: Function to determine if an object should be collected
:param sort_key: Function to invoke on members to obtain ordering (Default is to use ordering from `creation_o... | "Collect all class level attributes matching the given criteria.\n\n :param class member_class: Class(es) to collect\n :param is_member: Function to determine if an object should be collected\n :param sort_key: Function to invoke on members to obtain ordering (Default is to use ordering from `creat... | 38 | false | TriOptima/tri.declarative | get_members | 143,046 | |
LDU_FT/kwikteam/phy/_get_shortcut_string | LDU_FT | [
"<BEGIN>\n## `set_state`",
"Set the view state.",
" The passed object is the persisted `self.state` bunch.",
" May be overriden.\n<END>",
"<BEGIN>\n## `_fullname`",
"Return the fully-qualified name of a function.\n<END>",
"<BEGIN>\n## `_get_default_grid`",
"In the grid specification, 0 c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_shortcut_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_shortcut_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Return a string representation of a shortcut. | "Return a string representation of a shortcut." | 346 | false | kwikteam/phy | _get_shortcut_string | 143,047 | |
LDU_FT/PedalPi/PluginsManager/connections | LDU_FT | [
"<BEGIN>\n## `load`",
"Load the index file and reorder the banks based in order listed in index",
" :param list[Indexable] indexables: Banks that will be reordered based in index file\n :return list[Bank]: Banks reordered\n<END>",
"<BEGIN>\n## `register`",
"Register an observer for it be notif... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connections API.
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 connections API.
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 list[Connection]: Connections that this effects is present (with input or output port) | ":return list[Connection]: Connections that this effects is present (with input or output port)" | 139 | false | PedalPi/PluginsManager | connections | 143,048 | |
LDU_FT/salu133445/pypianoroll/get_active_pitch_range | LDU_FT | [
"<BEGIN>\n## `plot_pianoroll`",
"Plot a pianoroll given as a numpy array.",
" Parameters\n ----------\n ax : matplotlib.axes.Axes object\n A :class:`matplotlib.axes.Axes` object where the pianoroll will be\n plotted on.\n pianoroll : np.ndarray\n A pianoroll to be plotted. The v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_active_pitch_range 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_active_pitch_range API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Return the active pitch range as a tuple (lowest, highest).
Returns
-------
lowest : int
The lowest active pitch in the pianoroll.
highest : int
The highest active pitch in the pianoroll. | "Return the active pitch range as a tuple (lowest, highest).\n\n Returns\n -------\n lowest : int\n The lowest active pitch in the pianoroll.\n highest : int\n The highest active pitch in the pianoroll." | 196 | false | salu133445/pypianoroll | get_active_pitch_range | 143,049 | |
LDU_FT/vpelletier/pprofile/_relpath | LDU_FT | [
"<BEGIN>\n## `_iterOutFiles`",
"Yields path, data, mimetype for each file involved on or produced by\n profiling.\n<END>",
"<BEGIN>\n## `asMIMEString`",
"Return a mime-multipart representation of:\n - callgrind profiling statistics (cachegrind.out.pprofile)\n - any SQL query issued via ZM... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _relpath API.
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 _relpath API.
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... | Strip absolute components from path.
Inspired from zipfile.write(). | "Strip absolute components from path.\n Inspired from zipfile.write()." | 32 | false | vpelletier/pprofile | _relpath | 143,050 | |
LDU_FT/scivision/morecvutils/doblob | LDU_FT | [
"<BEGIN>\n## `cohensutherland`",
"Clips a line to a rectangular area.",
" This implements the Cohen-Sutherland line clipping algorithm. xmin,\n ymax, xmax and ymin denote the clipping area, into which the line\n defined by x1, y1 (start point) and x2, y2 (end point) will be\n clipped.",
" If t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doblob API.
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 doblob API.
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 ... | img: can be RGB (MxNx3) or gray (MxN)
http://docs.opencv.org/master/modules/features2d/doc/drawing_function_of_keypoints_and_matches.html
http://docs.opencv.org/trunk/modules/features2d/doc/drawing_function_of_keypoints_and_matches.html | "img: can be RGB (MxNx3) or gray (MxN)\n http://docs.opencv.org/master/modules/features2d/doc/drawing_function_of_keypoints_and_matches.html\n http://docs.opencv.org/trunk/modules/features2d/doc/drawing_function_of_keypoints_and_matches.html" | 14 | false | scivision/morecvutils | doblob | 143,051 | |
LDU_FT/memphis-iis/GLUDB/log | LDU_FT | [
"<BEGIN>\n## `read_rec`",
"Generator that yields keyed recs from store.\n<END>",
"<BEGIN>\n## `set_db_application_prefix`",
"Set the global app prefix and separator.\n<END>",
"<BEGIN>\n## `find_by_index`",
"Find records matching index query - defer to backend.\n<END>",
"<BEGIN>\n## `_auto_init`",
"Our... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API.
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 log API.
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... | Append the string supplied to the log (a list of strings). If
additional arguments are supplied, then first string is assumed to be
a format string and the other args are used for string interpolation.
For instance `backup.log("%d + %d == %d", 1, 1, 2)` would result in the
string `'1 + 1... | "Append the string supplied to the log (a list of strings). If\n additional arguments are supplied, then first string is assumed to be\n a format string and the other args are used for string interpolation.\n For instance `backup.log(\"%d + %d == %d\", 1, 1, 2)` would result in the\n string ... | 57 | false | memphis-iis/GLUDB | log | 143,052 | |
LDU_FT/TAPPGuild/sqlalchemy-models/load_commodities | LDU_FT | [
"<BEGIN>\n## `load_commodities`",
"Load the commodities for Amounts in this object.\n<END>",
"<BEGIN>\n## `load_commodities`",
"Load the commodities for Amounts in this object.\n<END>",
"<BEGIN>\n## `load_commodities`",
"Load the commodities for Amounts in this object.\n<END>",
"<BEGIN>\n## `create_user... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_commodities API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_commodities API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Load the commodities for Amounts in this object. | "Load the commodities for Amounts in this object." | 30 | false | TAPPGuild/sqlalchemy-models | load_commodities | 143,053 | |
LDU_FT/pescadores/pescador/iterate | LDU_FT | [
"<BEGIN>\n## `setup_data`",
"Load and shape data for training with Keras + Pescador.",
" Returns\n -------\n input_shape : tuple, len=3\n Shape of each sample; adapts to channel configuration of Keras.",
" X_train, y_train : np.ndarrays\n Images and labels for training.",
" X_te... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterate API.
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 iterate API.
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... | Instantiate an iterator.
Parameters
----------
max_iter : None or int > 0
Maximum number of iterations to yield.
If ``None``, exhaust the stream.
Yields
------
obj : Objects yielded by the streamer provided on init.
See Also
----... | "Instantiate an iterator.\n\n Parameters\n ----------\n max_iter : None or int > 0\n Maximum number of iterations to yield.\n If ``None``, exhaust the stream.\n\n Yields\n ------\n obj : Objects yielded by the streamer provided on init.\n\n See Also... | 103 | false | pescadores/pescador | iterate | 143,054 | |
LDU_FT/pavlov99/jsonapi/register | LDU_FT | [
"<BEGIN>\n## `default`",
"Encode JSON.",
" :return str: A JSON encoded string\n<END>",
"<BEGIN>\n## `dump_document`",
"Get document for model_instance.",
" redefine dump rule for field x: def dump_document_x",
" :param django.db.models.Model instance: model instance\n :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Register resource for currnet API.
:param resource: Resource to be registered
:type resource: jsonapi.resource.Resource or None
:return: resource
:rtype: jsonapi.resource.Resource
.. versionadded:: 0.4.1
:param kwargs: Extra meta parameters | "Register resource for currnet API.\n\n :param resource: Resource to be registered\n :type resource: jsonapi.resource.Resource or None\n :return: resource\n :rtype: jsonapi.resource.Resource\n\n .. versionadded:: 0.4.1\n :param kwargs: Extra meta parameters" | 63 | false | pavlov99/jsonapi | register | 143,055 | |
LDU_FT/inveniosoftware/invenio-oauthclient/create | LDU_FT | [
"<BEGIN>\n## `response_token_setter`",
"Extract token from response and set it for the user.",
" :param remote: The remote application.\n :param resp: The response.\n :raises invenio_oauthclient.errors.OAuthClientError: If authorization with\n remote service failed.\n :raises invenio_oauthcli... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create a new access token.
.. note:: Creates RemoteAccount as well if it does not exists.
:param user_id: The user id.
:param client_id: The client id.
:param token: The token.
:param secret: The secret key.
:param token_type: The token type. (Default: ``''``)
:... | "Create a new access token.\n\n .. note:: Creates RemoteAccount as well if it does not exists.\n\n :param user_id: The user id.\n :param client_id: The client id.\n :param token: The token.\n :param secret: The secret key.\n :param token_type: The token type. (Default: ``''``)\... | 147 | false | inveniosoftware/invenio-oauthclient | create | 143,056 | |
LDU_FT/mvantellingen/py-soap-wsse/create_binary_security_token | LDU_FT | [
"<BEGIN>\n## `sign_envelope`",
"Sign the given soap request with the given key\n<END>",
"<BEGIN>\n## `verify_envelope`",
"Verify that the given soap request is signed with the certificate\n<END>",
"<BEGIN>\n## `create_key_info_node`",
"Create the KeyInfo node for WSSE.",
" Note that this currently on... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_binary_security_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_binary_security_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Create the BinarySecurityToken node containing the x509 certificate. | "Create the BinarySecurityToken node containing the x509 certificate." | 13 | false | mvantellingen/py-soap-wsse | create_binary_security_token | 143,057 | |
LDU_FT/developmentseed/landsat-util/amazon_s3_url | LDU_FT | [
"<BEGIN>\n## `_read_cmap`",
"reads the colormap from a text file given in settings.py.\n See colormap_cubehelix.txt. File must contain 256 RGB values\n<END>",
"<BEGIN>\n## `data_collector`",
"Buffers n bytes of data.",
" :param iterable:\n Could be a list, generator or string\n :type ite... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the amazon_s3_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the amazon_s3_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return an amazon s3 url the contains the scene and band provided.
:param sat:
Expects an object created by scene_interpreter method
:type sat:
dict
:param filename:
The filename that has to be downloaded from Amazon
:type filename:
String
... | "Return an amazon s3 url the contains the scene and band provided.\n\n :param sat:\n Expects an object created by scene_interpreter method\n :type sat:\n dict\n :param filename:\n The filename that has to be downloaded from Amazon\n :type filename:\n ... | 152 | false | developmentseed/landsat-util | amazon_s3_url | 143,058 | |
LDU_FT/ericmjl/nxviz/store_node_label_meta | LDU_FT | [
"<BEGIN>\n## `draw`",
"Draws the Plot to screen.",
" If there is a continuous datatype for the nodes, it will be reflected\n in self.sm being constructed (in `compute_node_colors`). It will then\n automatically add in a colorbar to the plot and scale the plot axes\n accordingly.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_node_label_meta 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 store_node_label_meta API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | This function stored coordinates-related metadate for a node
This function should not be called by the user
:param x: x location of node label or number
:type x: np.float64
:param y: y location of node label or number
:type y: np.float64
:param tx: text location x of n... | "This function stored coordinates-related metadate for a node\n This function should not be called by the user\n\n :param x: x location of node label or number\n :type x: np.float64\n\n :param y: y location of node label or number\n :type y: np.float64\n\n :param tx: text locat... | 83 | false | ericmjl/nxviz | store_node_label_meta | 143,059 | |
LDU_FT/mbodenhamer/syn/getkey | LDU_FT | [
"<BEGIN>\n## `assign`",
"Assigns B to A.attr, yields, and then assigns A.attr back to its\n original value.\n<END>",
"<BEGIN>\n## `nearest_base`",
"Returns the closest ancestor to cls in bases.\n<END>",
"<BEGIN>\n## `get_typename`",
"Returns the name of the type of x, if x is an object. Otherwise, ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getkey API.
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 getkey API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Returns the first key mapping to value, as encountered via iteritems(), otherwise default. Obviously, works best for injective maps. | "Returns the first key mapping to value, as encountered via iteritems(), otherwise default. Obviously, works best for injective maps." | 71 | false | mbodenhamer/syn | getkey | 143,060 | |
LDU_FT/rchatterjee/pwmodels/normalize | LDU_FT | [
"<BEGIN>\n## `gen_n_random_num`",
"Returns @n @unique random unsigned integers (4 bytes) \\\n between 0 and @MAX_NUM.\n<END>",
"<BEGIN>\n## `sample_following_dist`",
"Samples n passwords following the distribution from the handle\n @handle_iter is an iterator that gives (pw,f) @n is the total\n numbe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API.
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 normalize API.
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... | Lower case, and change the symbols to closest characters | "Lower case, and change the symbols to closest characters" | 48 | false | rchatterjee/pwmodels | normalize | 143,061 | |
LDU_FT/sdispater/eloquent/or_where_has | LDU_FT | [
"<BEGIN>\n## `get_last`",
"Get the last migration batch.",
" :rtype: list\n<END>",
"<BEGIN>\n## `compile_insert`",
"Compile an insert SQL statement",
" :param query: A QueryBuilder instance\n :type query: QueryBuilder",
" :param values: The values to insert\n :type val... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the or_where_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the or_where_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 extr... | Add a relationship count condition to the query with where clauses and an "or".
:param relation: The relation to count
:type relation: str
:param extra: The extra query
:type extra: Builder or callable
:param operator: The operator
:type operator: str
:param c... | "Add a relationship count condition to the query with where clauses and an \"or\".\n\n :param relation: The relation to count\n :type relation: str\n\n :param extra: The extra query\n :type extra: Builder or callable\n\n :param operator: The operator\n :type operator: str\n\n ... | 498 | false | sdispater/eloquent | or_where_has | 143,062 | |
LDU_FT/alexras/pylsdj/renumber_block_keys | LDU_FT | [
"<BEGIN>\n## `import_from_file`",
"Import this instrument's settings from the given file. Will\n automatically add the instrument's synth and table to the song's\n synths and tables if needed.",
" Note that this may invalidate existing instrument accessor objects.",
" :param index:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the renumber_block_keys 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 renumber_block_keys 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... | Renumber a block map's indices so that tehy match the blocks' block
switch statements.
:param blocks a block map to renumber
:rtype: a renumbered copy of the block map | "Renumber a block map's indices so that tehy match the blocks' block\n switch statements.\n\n :param blocks a block map to renumber\n :rtype: a renumbered copy of the block map" | 63 | false | alexras/pylsdj | renumber_block_keys | 143,063 | |
LDU_FT/xflr6/gsheets/get | LDU_FT | [
"<BEGIN>\n## `write_csv`",
"Dump rows to ``fileobj`` with the given ``encoding`` and CSV ``dialect``.\n<END>",
"<BEGIN>\n## `write_dataframe`",
"Dump ``rows`` to string buffer and load with ``pandas.read_csv()`` using ``kwargs``.\n<END>",
"<BEGIN>\n## `from_string`",
"Return a new SheetUrl instance from p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Return default or predefined URLs from keyword, pass through ``scope``. | "Return default or predefined URLs from keyword, pass through ``scope``." | 93 | false | xflr6/gsheets | get | 143,064 | |
LDU_FT/TissueMAPS/TmDeploy/key_file_private | LDU_FT | [
"<BEGIN>\n## `__init_os_api`",
"Initialise client objects for talking to OpenStack API.",
" This is in a separate function so to be called by ``__init__`` and\n ``__setstate__``.\n<END>",
"<BEGIN>\n## `stop_instance`",
"Stops the instance gracefully.",
" :param str instance_id: instan... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_file_private API.
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 key_file_private API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | str: path to the private key used by Ansible to connect to virtual
machines (by default looks for a file with name
:attr:`key_name <tmdeploy.config.CloudSection.key_name>` in ``~/.ssh``
directory) | "str: path to the private key used by Ansible to connect to virtual\n machines (by default looks for a file with name\n :attr:`key_name <tmdeploy.config.CloudSection.key_name>` in ``~/.ssh``\n directory)" | 192 | false | TissueMAPS/TmDeploy | key_file_private | 143,065 | |
LDU_FT/quantmind/agile-toolkit/validate_version | LDU_FT | [
"<BEGIN>\n## `upload`",
"Upload a file to a release",
" :param filename: filename to upload\n :param content_type: optional content type\n :return: json object from github\n<END>",
"<BEGIN>\n## `validate_tag`",
"Validate ``tag_name`` with the latest tag from github",
" If ``tag... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_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 ... | Validate version by checking if it is a valid semantic version
and its value is higher than latest github tag | "Validate version by checking if it is a valid semantic version\n and its value is higher than latest github tag" | 23 | false | quantmind/agile-toolkit | validate_version | 143,066 | |
LDU_FT/DLR-RM/RAFCON/relieve_state_machines | LDU_FT | [
"<BEGIN>\n## `modify_origin`",
"Set both from_state and from_key at the same time to modify data flow origin",
" :param str from_state: State id of the origin state\n :param int from_key: Data port id of the origin port\n :raises exceptions.ValueError: If parameters have wrong types or the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the relieve_state_machines 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 relieve_state_machines API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | The method relieves observed models before those get removed from the list of state_machines hold by
observed StateMachineMangerModel. The method register as observer of observable
StateMachineMangerModel.state_machines. | "The method relieves observed models before those get removed from the list of state_machines hold by\n observed StateMachineMangerModel. The method register as observer of observable\n StateMachineMangerModel.state_machines." | 2,325 | true | DLR-RM/RAFCON | relieve_state_machines | 143,067 | |
LDU_FT/portfoliome/postpy/execute_closing_transaction | LDU_FT | [
"<BEGIN>\n## `check_extension`",
"Check to see if an extension is installed.\n<END>",
"<BEGIN>\n## `generate_numeric_range`",
"Generate postgresql numeric range and label for insertion.",
" Parameters\n ----------\n items: iterable labels for ranges.\n lower_bound: numeric lower bound\n upper... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_closing_transaction 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 execute_closing_transaction API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Open a connection, commit a transaction, and close it. | "Open a connection, commit a transaction, and close it." | 50 | false | portfoliome/postpy | execute_closing_transaction | 143,068 | |
LDU_FT/boundlessgeo/lib-qgis-commons/setup_oauth | LDU_FT | [
"<BEGIN>\n## `get_oauth_authcfg`",
"Check if the given authcfg_id (or the default) exists, and if it's valid\n OAuth2, return the configuration or None\n<END>",
"<BEGIN>\n## `setup_oauth`",
"Setup oauth configuration to access the BCS API,\n return authcfg_id on success, None on failure\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_oauth API.
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 setup_oauth API.
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... | Setup oauth configuration to access the BCS API,
return authcfg_id on success, None on failure | "Setup oauth configuration to access the BCS API,\n return authcfg_id on success, None on failure" | 72 | false | boundlessgeo/lib-qgis-commons | setup_oauth | 143,069 | |
LDU_FT/edx/edx-django-release-util/list_migrations | LDU_FT | [
"<BEGIN>\n## `dump_migration_session_state`",
"Serialize a migration session state to yaml using nicer formatting",
" Args:\n raw: object to serialize\n Returns: string (of yaml)",
" Specifically, this forces the \"output\" member of state step dicts (e.g.\n state[0]['output']) to use block... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_migrations API.
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 list_migrations API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Returns a tuple of unapplied, current
"Unapplied" is a list of unapplied migrations. "Current" is a list of the current migration
states for apps with unapplied migrations.
Both are tuples of the form (app, migration_name). | "Returns a tuple of unapplied, current\n\n \"Unapplied\" is a list of unapplied migrations. \"Current\" is a list of the current migration\n states for apps with unapplied migrations.\n\n Both are tuples of the form (app, migration_name)." | 31 | false | edx/edx-django-release-util | list_migrations | 143,070 | |
LDU_FT/f3at/feat/view_set | LDU_FT | [
"<BEGIN>\n## `parse_incoming_query`",
"Effect factory parsing the query value from params and merging in\n the static_conditions specified.",
" @param factory: IQueryView\n @param static_conditions: effect to be called to build up static\n conditions of the query\n @par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the view_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the view_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Creates a setter that will call the view method with the context's
key as first parameter and the value as second parameter.
@param method_name: the name of a method belonging to the view.
@type method_name: str | "Creates a setter that will call the view method with the context's\n key as first parameter and the value as second parameter.\n @param method_name: the name of a method belonging to the view.\n @type method_name: str" | 658 | false | f3at/feat | view_set | 143,071 | |
LDU_FT/GeospatialPython/pyshp/as_dict | LDU_FT | [
"<BEGIN>\n## `signed_area`",
"Return the signed area enclosed by a ring using the linear time\r\n algorithm. A value >= 0 indicates a counter-clockwise oriented ring.\n<END>",
"<BEGIN>\n## `as_dict`",
"Returns this Record as a dictionary using the field names as keys\r\n :return: dict\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Returns this Record as a dictionary using the field names as keys
:return: dict | "Returns this Record as a dictionary using the field names as keys\r\n :return: dict" | 82 | false | GeospatialPython/pyshp | as_dict | 143,072 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.