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/KenjiTakahashi/td/options | LDU_FT | [
"<BEGIN>\n## `save`",
"@decorator: Saves data after executing :func:.",
" Also performs modifications set as permanent options.\n<END>",
"<BEGIN>\n## `add`",
"Adds new item to the model.",
" Name argument may contain (ref:) syntax, which will be\n stripped down as needed.",
" :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Handles the 'o' command.
:glob: Whether to store specified options globally.
:args: Arguments supplied to the 'o' command (excluding '-g'). | "Handles the 'o' command.\n\n :glob: Whether to store specified options globally.\n :args: Arguments supplied to the 'o' command (excluding '-g')." | 82 | false | KenjiTakahashi/td | options | 32,973 | |
LDU_FT/etobella/python-xmlsig/fill_signed_info | LDU_FT | [
"<BEGIN>\n## `sign`",
"Signs a Signature node\n :param node: Signature node \n :type node: lxml.etree.Element\n :return: None\n<END>",
"<BEGIN>\n## `fill_key_info`",
"Fills the KeyInfo node\n :param key_info: KeyInfo node \n :type key_info: lxml.etree.Element\n :param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_signed_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_signed_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Fills the SignedInfo node
:param signed_info: SignedInfo node
:type signed_info: lxml.etree.Element
:return: None | "Fills the SignedInfo node\n :param signed_info: SignedInfo node\n :type signed_info: lxml.etree.Element\n :return: None" | 36 | false | etobella/python-xmlsig | fill_signed_info | 32,974 | |
LDU_FT/HPENetworking/PYHPEIMC/get_all_devs | LDU_FT | [
"<BEGIN>\n## `get_real_time_locate`",
"function takes the ipAddress of a specific host and issues a RESTFUL call to get the device and interface that the\n target host is currently connected to. Note: Although intended to return a single location, Multiple locations may\n be returned for a single host due t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_devs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_devs API.
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... | Takes string input of IP address to issue RESTUL call to HP IMC\n
:param auth: requests auth object #usually auth.creds from auth pyhpeimc.auth.class
:param url: base url of IMC RS interface #usually auth.url from pyhpeimc.auth.authclass
:param network_address= str IPv4 Network Address
:return: dict... | "Takes string input of IP address to issue RESTUL call to HP IMC\\n\n\n :param auth: requests auth object #usually auth.creds from auth pyhpeimc.auth.class\n\n :param url: base url of IMC RS interface #usually auth.url from pyhpeimc.auth.authclass\n\n :param network_address= str IPv4 Network Address\n\n :re... | 1,448 | true | HPENetworking/PYHPEIMC | get_all_devs | 32,975 | |
LDU_FT/globus/globus-cli/update_command | LDU_FT | [
"<BEGIN>\n## `role_show`",
"Executor for `globus endpoint role show`\n<END>",
"<BEGIN>\n## `outformat_is_json`",
"Only safe to call within a click context.\n<END>",
"<BEGIN>\n## `outformat_is_unix`",
"Only safe to call within a click context.\n<END>",
"<BEGIN>\n## `outformat_is_text`",
"Only safe to c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Executor for `globus endpoint permission update` | "Executor for `globus endpoint permission update`" | 186 | false | globus/globus-cli | update_command | 32,976 | |
LDU_FT/xguse/table_enforcer/validate | LDU_FT | [
"<BEGIN>\n## `minmax`",
"Test that the data items fall within range: low <= x <= high.\n<END>",
"<BEGIN>\n## `choice`",
"Test that the data items are members of the set `choices`.\n<END>",
"<BEGIN>\n## `bounded_length`",
"Test that the length of the data items fall within range: low <= x <= high.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return True if all validation tests pass: False otherwise. | "Return True if all validation tests pass: False otherwise." | 42 | false | xguse/table_enforcer | validate | 32,977 | |
LDU_FT/twitterdev/twitter-python-ads-sdk/size | LDU_FT | [
"<BEGIN>\n## `content_type`",
"Returns the content-type value determined by file extension.\n<END>",
"<BEGIN>\n## `__init_chunked_upload`",
"Initialization for a multi-chunk upload.\n<END>",
"<BEGIN>\n## `__upload_chunk`",
"Uploads a single chunk of a multi-chunk upload.\n<END>",
"<BEGIN>\n## `save`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Determines the chunk size based on response times. | "Determines the chunk size based on response times." | 74 | false | twitterdev/twitter-python-ads-sdk | size | 32,978 | |
LDU_FT/criteo/gourde/healthy | LDU_FT | [
"<BEGIN>\n## `get_argparser`",
"Customize a parser to get the correct options.\n<END>",
"<BEGIN>\n## `add_url_rule`",
"Add a new url route.",
" Args:\n See flask.Flask.add_url_route().\n<END>",
"<BEGIN>\n## `healthy`",
"Return 200 is healthy, else 500.",
" Override is_healthy(... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the healthy API.
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 healthy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return 200 is healthy, else 500.
Override is_healthy() to change the health check. | "Return 200 is healthy, else 500.\n\n Override is_healthy() to change the health check." | 13 | false | criteo/gourde | healthy | 32,979 | |
LDU_FT/AirSage/Petrel/emitMany | LDU_FT | [
"<BEGIN>\n## `run_simple_topology`",
"Tests a simple topology. \"Simple\" means there it has no branches\n or cycles. \"emitters\" is a list of emitters, starting with a spout\n followed by 0 or more bolts that run in a chain.\n<END>",
"<BEGIN>\n## `write`",
"Writes the topology to a stream or f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emitMany API.
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 emitMany API.
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... | A more efficient way to emit a number of tuples at once. | "A more efficient way to emit a number of tuples at once." | 16 | false | AirSage/Petrel | emitMany | 32,980 | |
LDU_FT/quikmile/trellio/_handle_ping | LDU_FT | [
"<BEGIN>\n## `publish`",
"publish the return value of this function as a message from this endpoint\n<END>",
"<BEGIN>\n## `xsubscribe`",
"Used to listen for publications from a specific endpoint of a service. If multiple instances\n subscribe to an endpoint, only one of them receives the event. And the pub... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_ping API.
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 _handle_ping API.
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... | Responds to pings from registry_client only if the node_ids present in the ping payload are registered
:param packet: The 'ping' packet received
:param protocol: The protocol on which the pong should be sent | "Responds to pings from registry_client only if the node_ids present in the ping payload are registered\n\n :param packet: The 'ping' packet received\n :param protocol: The protocol on which the pong should be sent" | 47 | false | quikmile/trellio | _handle_ping | 32,981 | |
LDU_FT/Knoema/knoema-python-driver/find_dimension_by_name | LDU_FT | [
"<BEGIN>\n## `is_equal_strings_ignore_case`",
"The function compares strings ignoring case\n<END>",
"<BEGIN>\n## `find_dimension_by_name`",
"the method searching dimension with a given name\n<END>",
"<BEGIN>\n## `find_dimension_by_id`",
"the method searching dimension with a given id\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_dimension_by_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_dimension_by_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | the method searching dimension with a given name | "the method searching dimension with a given name" | 48 | false | Knoema/knoema-python-driver | find_dimension_by_name | 32,982 | |
LDU_FT/torfsen/service/_get_signal_event | LDU_FT | [
"<BEGIN>\n## `_detach_process`",
"Detach daemon process.",
" Forks the current process into a parent and a detached child. The\n child process resides in its own process group, has no controlling\n terminal attached and is cleaned up by the init process.",
" Returns ``True`` for the parent and ``F... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_signal_event API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_signal_event API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Get the event for a signal.
Checks if the signal has been enabled and raises a
``ValueError`` if not. | "Get the event for a signal.\n\n Checks if the signal has been enabled and raises a\n ``ValueError`` if not." | 40 | false | torfsen/service | _get_signal_event | 32,983 | |
LDU_FT/mkouhei/bootstrap-py/package_existent | LDU_FT | [
"<BEGIN>\n## `print_licences`",
"Print licenses.",
" :param argparse.Namespace params: parameter\n :param bootstrap_py.classifier.Classifiers metadata: package metadata\n<END>",
"<BEGIN>\n## `check_repository_existence`",
"Check repository existence.",
" :param argparse.Namespace params: paramete... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the package_existent API.
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 package_existent API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Search package.
* :class:`bootstrap_py.exceptions.Conflict` exception occurs
when user specified name has already existed.
* :class:`bootstrap_py.exceptions.BackendFailure` exception occurs
when PyPI service is down.
:param str name: package name | "Search package.\n\n * :class:`bootstrap_py.exceptions.Conflict` exception occurs\n when user specified name has already existed.\n\n * :class:`bootstrap_py.exceptions.BackendFailure` exception occurs\n when PyPI service is down.\n\n :param str name: package name" | 28 | false | mkouhei/bootstrap-py | package_existent | 32,984 | |
LDU_FT/OLC-Bioinformatics/sipprverse/run_mash | LDU_FT | [
"<BEGIN>\n## `cmd2list`",
"Executes a command through the operating system and returns the output\n as a list, or on error a string with the standard error.\n EXAMPLE:\n >>> from subprocess import Popen, PIPE\n >>> CMDout2array('ls -l')\n<END>",
"<BEGIN>\n## `print_timers`",
"PRINT EXECUTION TIM... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_mash API.
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 run_mash API.
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... | Run MASH to determine the closest refseq genomes | "Run MASH to determine the closest refseq genomes" | 255 | false | OLC-Bioinformatics/sipprverse | run_mash | 32,985 | |
LDU_FT/refindlyllc/rets/data_columns_to_dict | LDU_FT | [
"<BEGIN>\n## `parse`",
"Parse the login xml response\n :param response: the login response from the RETS server\n :return: None\n<END>",
"<BEGIN>\n## `read_line`",
"Reads lines of XML and delimits, strips, and returns.\n<END>",
"<BEGIN>\n## `generator`",
"Takes a response socket connection a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_columns_to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_columns_to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Turns column names in a single string into a dictionary with the key being the column name and the value
being the value in that column for each row
:param columns_string: A string of column names
:param dict_string: A string of values
:param delimiter: The delimiter to use to split the ... | "Turns column names in a single string into a dictionary with the key being the column name and the value\n being the value in that column for each row\n :param columns_string: A string of column names\n :param dict_string: A string of values\n :param delimiter: The delimiter to use to split... | 51 | false | refindlyllc/rets | data_columns_to_dict | 32,986 | |
LDU_FT/adrn/schwimmbad/_get_repo_path | LDU_FT | [
"<BEGIN>\n## `choose_pool`",
"Choose between the different pools given options from, e.g., argparse.",
" Parameters\n ----------\n mpi : bool, optional\n Use the MPI processing pool, :class:`~schwimmbad.mpi.MPIPool`. By\n default, ``False``, will use the :class:`~schwimmbad.serial.SerialP... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_repo_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_repo_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Given a file or directory name, determine the root of the git repository
this path is under. If given, this won't look any higher than ``levels``
(that is, if ``levels=0`` then the given path must be the root of the git
repository and is returned if so.
Returns `None` if the given path could not be de... | "Given a file or directory name, determine the root of the git repository\n this path is under. If given, this won't look any higher than ``levels``\n (that is, if ``levels=0`` then the given path must be the root of the git\n repository and is returned if so.\n\n Returns `None` if the given path could not... | 27 | false | adrn/schwimmbad | _get_repo_path | 32,987 | |
LDU_FT/androguard/androguard/get_files_information | LDU_FT | [
"<BEGIN>\n## `go`",
"Launch the analysis.",
" this will start a total of `max_fetcher` threads.\n<END>",
"<BEGIN>\n## `filter_file`",
"This method is called in order to filer a specific app",
" :param log: an object which corresponds to a unique app\n :param bytes fileraw: the raw fil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_files_information 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_files_information 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 files inside the APK with their associated types and crc32
:rtype: str, str, int | "Return the files inside the APK with their associated types and crc32\n\n :rtype: str, str, int" | 823 | false | androguard/androguard | get_files_information | 32,988 | |
LDU_FT/jopohl/urh/get_action | LDU_FT | [
"<BEGIN>\n## `bootstrap_modulator`",
"Set initial parameters for default modulator if it was not edited by user previously\n :return:\n<END>",
"<BEGIN>\n## `modulate_data`",
":param buffer: Buffer in which the modulated data shall be written, initialized with zeros\n :return:\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_action API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_action API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | :type parent: QTableView
:type undo_stack: QUndoStack
:type protocol_analyzers: list of ProtocolAnalyzer | ":type parent: QTableView\n :type undo_stack: QUndoStack\n :type protocol_analyzers: list of ProtocolAnalyzer" | 149 | false | jopohl/urh | get_action | 32,989 | |
LDU_FT/klmitch/appathy/_extends_preproc | LDU_FT | [
"<BEGIN>\n## `_translators`",
"Decorator which associates a set of translators (serializers or\n deserializers) with a given method. The `attr` parameter\n identifies which attribute is being updated.\n<END>",
"<BEGIN>\n## `register_types`",
"Register a short name for one or more content types.\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extends_preproc API.
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 _extends_preproc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Decorator which marks a method as a preprocessing extension. The
method must have the same name as the method it is extending.
Extension methods marked with this decorator are called before
calling the action method. They may perform any desired
preprocessing of the request. Note that if an actual va... | "Decorator which marks a method as a preprocessing extension. The\n method must have the same name as the method it is extending.\n Extension methods marked with this decorator are called before\n calling the action method. They may perform any desired\n preprocessing of the request. Note that if an actu... | 48 | false | klmitch/appathy | _extends_preproc | 32,990 | |
LDU_FT/pytroll/satpy/_linear_normalization_from_0to1 | LDU_FT | [
"<BEGIN>\n## `_get_coarse_dataset`",
"Get the coarse dataset refered to by `key` from the XML data.\n<END>",
"<BEGIN>\n## `get_dataset`",
"Get output data and metadata of specified dataset.\n<END>",
"<BEGIN>\n## `find_coefficient_index`",
"Return index in to coefficient arrays for this band's wavelength."... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _linear_normalization_from_0to1 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _linear_normalization_from_0to1 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Do a linear normalization so all data is in the 0 to 1 range.
This is a sloppy but fast calculation that relies on parameters giving it
the correct theoretical current max and min so it can scale the data
accordingly. | "Do a linear normalization so all data is in the 0 to 1 range.\n\n This is a sloppy but fast calculation that relies on parameters giving it\n the correct theoretical current max and min so it can scale the data\n accordingly." | 924 | false | pytroll/satpy | _linear_normalization_from_0to1 | 32,991 | |
LDU_FT/bmihelac/django-cruds/get_template_names | LDU_FT | [
"<BEGIN>\n## `crud_url_name`",
"Returns url name for given model and action.\n<END>",
"<BEGIN>\n## `get_fields`",
"Returns ordered dict in format 'field': 'verbose_name'\n<END>",
"<BEGIN>\n## `crud_url`",
"Shortcut function returns URL for instance or model and action.",
" Example::",
" crud... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_template_names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_template_names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Adds crud_template_name to default template names. | "Adds crud_template_name to default template names." | 34 | false | bmihelac/django-cruds | get_template_names | 32,992 | |
LDU_FT/CamDavidsonPilon/lifetimes/calibration_and_holdout_data | LDU_FT | [
"<BEGIN>\n## `fit`",
"Pareto/NBD model fitter.",
" Parameters\n ----------\n frequency: array_like\n the frequency vector of customers' purchases\n (denoted x in literature).\n recency: array_like\n the recency vector of customers' purchases\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calibration_and_holdout_data 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 calibration_and_holdout_data 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 a summary of each customer over a calibration and holdout period.
This function creates a summary of each customer over a calibration and
holdout period (training and testing, respectively).
It accepts transaction data, and returns a DataFrame of sufficient statistics.
Parameters
----------... | "Create a summary of each customer over a calibration and holdout period.\n\n This function creates a summary of each customer over a calibration and\n holdout period (training and testing, respectively).\n It accepts transaction data, and returns a DataFrame of sufficient statistics.\n\n Parameters\n --... | 232 | false | CamDavidsonPilon/lifetimes | calibration_and_holdout_data | 32,993 | |
LDU_FT/NLeSC/noodles/run_online_mode | LDU_FT | [
"<BEGIN>\n## `coroutine`",
"A sink should be send `None` first, so that the coroutine arrives\n at the `yield` position. This wrapper takes care that this is done\n automatically when the coroutine is started.\n<END>",
"<BEGIN>\n## `maybe`",
"Calls `f` in a try/except block, returning a `Fail` object if... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_online_mode API.
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 run_online_mode API.
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... | Run jobs.
:param args: arguments resulting from program ArgumentParser.
:return: None
This reads messages containing job descriptions from standard input,
and writes messages to standard output containing the result.
Messages can be encoded as either JSON or MessagePack. | "Run jobs.\n\n :param args: arguments resulting from program ArgumentParser.\n :return: None\n\n This reads messages containing job descriptions from standard input,\n and writes messages to standard output containing the result.\n\n Messages can be encoded as either JSON or MessagePack." | 293 | false | NLeSC/noodles | run_online_mode | 32,994 | |
LDU_FT/BoGoEngine/bogo-python/_get_transformation_list | LDU_FT | [
"<BEGIN>\n## `append_comps`",
"Append a character to `comps` following this rule: a vowel is added to the\n vowel part if there is no last consonant, else to the last consonant part;\n a consonant is added to the first consonant part if there is no vowel, and\n to the last consonant part if the vowel par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_transformation_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_transformation_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Return the list of transformations inferred from the entered key. The
map between transform types and keys is given by module
bogo_config (if exists) or by variable simple_telex_im
if entered key is not in im, return "+key", meaning appending
the entered key to current text | "Return the list of transformations inferred from the entered key. The\n map between transform types and keys is given by module\n bogo_config (if exists) or by variable simple_telex_im\n\n if entered key is not in im, return \"+key\", meaning appending\n the entered key to current text" | 55 | false | BoGoEngine/bogo-python | _get_transformation_list | 32,995 | |
LDU_FT/eallik/spinoff/deferred_cleanup | LDU_FT | [
"<BEGIN>\n## `deferToGreenletPool`",
"Call function using a greenlet from the given pool and return the result as a Deferred\n<END>",
"<BEGIN>\n## `deferToGreenlet`",
"Call function using a greenlet and return the result as a Deferred\n<END>",
"<BEGIN>\n## `callMultipleInGreenlet`",
"Call a list of functi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deferred_cleanup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deferred_cleanup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Go defer style cleanups--in reality, just a convenience wrapper over try-finally | "Go defer style cleanups--in reality, just a convenience wrapper over try-finally" | 60 | false | eallik/spinoff | deferred_cleanup | 32,996 | |
LDU_FT/ultradns/python_rest_api_client/get_rrsets | LDU_FT | [
"<BEGIN>\n## `create_primary_zone`",
"Creates a new primary zone.",
" Arguments:\n account_name -- The name of the account that will contain this zone.\n zone_name -- The name of the zone. It must be unique.\n<END>",
"<BEGIN>\n## `create_primary_zone_by_upload`",
"Creates a new primary... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rrsets API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rrsets API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns the list of RRSets in the specified zone.
Arguments:
zone_name -- The name of the zone.
Keyword Arguments:
q -- The search parameters, in a dict. Valid keys are:
ttl - must match the TTL for the rrset
owner - substring match of the owner name
... | "Returns the list of RRSets in the specified zone.\n\n Arguments:\n zone_name -- The name of the zone.\n\n Keyword Arguments:\n q -- The search parameters, in a dict. Valid keys are:\n ttl - must match the TTL for the rrset\n owner - substring match of the owner name... | 69 | false | ultradns/python_rest_api_client | get_rrsets | 32,997 | |
LDU_FT/cmheisel/basecampreporting/create_todo_list | LDU_FT | [
"<BEGIN>\n## `people`",
"Dictionary of people on the project, keyed by id\n<END>",
"<BEGIN>\n## `comments`",
"Looks through the last 3 messages and returns those comments.\n<END>",
"<BEGIN>\n## `people_per_project`",
"This will return all of the people in the given company that can\n access the giv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_todo_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 create_todo_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 ... | This will create a new, empty list. You can create the list
explicitly, or by giving it a list template id to base the new list
off of. | "This will create a new, empty list. You can create the list\n explicitly, or by giving it a list template id to base the new list\n off of." | 44 | false | cmheisel/basecampreporting | create_todo_list | 32,998 | |
LDU_FT/bloomberg/bqplot/set_cmap | LDU_FT | [
"<BEGIN>\n## `register_mark`",
"Returns a decorator registering a mark class in the mark type registry.",
" If no key is provided, the class name is used as a key. A key is provided\n for each core bqplot mark so that the frontend can use\n this key regardless of the kernel language.\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cmap API.
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 set_cmap API.
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... | Set the color map of the current 'color' scale. | "Set the color map of the current 'color' scale." | 142 | false | bloomberg/bqplot | set_cmap | 32,999 | |
LDU_FT/potash/drain/execute | LDU_FT | [
"<BEGIN>\n## `y_score`",
"Score examples from a new matrix X\n Args:\n estimator: an sklearn estimator object\n X: design matrix with the same features that the estimator was trained on",
" Returns: a vector of scores of the same length as X",
" Note that estimator.predict_proba is pref... | 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... | Run this step, recursively running or loading inputs.
Used in bin/run_step.py which is run by drake.
Args:
inputs: collection of steps that should be loaded
output: step that should be dumped after it is run
load_targets (boolean): load all steps which are targets.
... | "Run this step, recursively running or loading inputs.\n Used in bin/run_step.py which is run by drake.\n Args:\n inputs: collection of steps that should be loaded\n output: step that should be dumped after it is run\n load_targets (boolean): load all steps which are targe... | 165 | false | potash/drain | execute | 33,000 | |
LDU_FT/inveniosoftware-contrib/record-recommender/create_profiles | LDU_FT | [
"<BEGIN>\n## `_is_download`",
"Check if file ending is considered as download.\n<END>",
"<BEGIN>\n## `fetch`",
"Fetch PageViews and Downloads from Elasticsearch.\n<END>",
"<BEGIN>\n## `_fetch_pageviews`",
"Fetch PageViews from Elasticsearch.",
" :param time_from: Staring at timestamp.\n :p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_profiles API.
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_profiles API.
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 user profiles for the given weeks. | "Create the user profiles for the given weeks." | 55 | false | inveniosoftware-contrib/record-recommender | create_profiles | 33,001 | |
LDU_FT/Cadasta/cadasta-workertoolbox/extract_followups | LDU_FT | [
"<BEGIN>\n## `extract_followups`",
"Retrieve callbacks and errbacks from provided task instance, disables\n tasks callbacks.\n<END>",
"<BEGIN>\n## `set`",
"Set value on self if not already set. If unset, attempt to\n retrieve from environment variable of same name (unless disabled\n via 'from... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_followups API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_followups API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Retrieve callbacks and errbacks from provided task instance, disables
tasks callbacks. | "Retrieve callbacks and errbacks from provided task instance, disables\n tasks callbacks." | 14 | false | Cadasta/cadasta-workertoolbox | extract_followups | 33,002 | |
LDU_FT/PagerDuty/pagerduty-api-python-client/notes | LDU_FT | [
"<BEGIN>\n## `abilities`",
"Fetch a list of permission-like strings for this account.\n<END>",
"<BEGIN>\n## `set_api_key_from_file`",
"Set the global api_key from a file path.\n<END>",
"<BEGIN>\n## `resolve`",
"Resolve an incident using a valid email address.\n<END>",
"<BEGIN>\n## `reassign`",
"Reassi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notes API.
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 notes API.
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... | Query for notes attached to this incident. | "Query for notes attached to this incident." | 113 | false | PagerDuty/pagerduty-api-python-client | notes | 33,003 | |
LDU_FT/SteveMcGrath/pySecurityCenter/scan_download | LDU_FT | [
"<BEGIN>\n## `gen_csv`",
"csv SecurityCenterObj, AssetListName, CSVFields, EmailAddress\n<END>",
"<BEGIN>\n## `login`",
"Logs the user into SecurityCenter and stores the needed token and cookies.\n<END>",
"<BEGIN>\n## `analysis`",
"Analysis\n A thin wrapper to handle vuln/event/mobile/log analysis ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_download API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_download API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | scan_download scan_id [format]
Will download an individual scan and return a string with the results. | "scan_download scan_id [format]\n Will download an individual scan and return a string with the results." | 120 | false | SteveMcGrath/pySecurityCenter | scan_download | 33,004 | |
LDU_FT/theonion/djes/delete_index | LDU_FT | [
"<BEGIN>\n## `stringify`",
"Turns all dictionary values into strings\n<END>",
"<BEGIN>\n## `batched_queryset`",
"Iterate over a Django Queryset ordered by the primary key",
" This method loads a maximum of chunksize (default: 1000) rows in it's\n memory at the same time while django normally would loa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_index API.
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 delete_index API.
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... | Removes the object from the index if `indexed=False` | "Removes the object from the index if `indexed=False`" | 30 | false | theonion/djes | delete_index | 33,005 | |
LDU_FT/intake/intake/_set_pattern_columns | LDU_FT | [
"<BEGIN>\n## `expand_defaults`",
"Compile env, client_env, shell and client_shell commands\n<END>",
"<BEGIN>\n## `get`",
"Instantiate the DataSource for the given parameters\n<END>",
"<BEGIN>\n## `_load`",
"Load text of fcatalog file and pass to parse",
" Will do nothing if autoreload is off and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_pattern_columns API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_pattern_columns API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Get a column of values for each field in pattern | "Get a column of values for each field in pattern" | 280 | false | intake/intake | _set_pattern_columns | 33,006 | |
LDU_FT/wesm/feather/IsRValueAllowed | LDU_FT | [
"<BEGIN>\n## `IsErrorSuppressedByNolint`",
"Returns true if the specified error category is suppressed on this line.",
" Consults the global error_suppressions map populated by\n ParseNolintSuppressions/ResetNolintSuppressions.",
" Args:\n category: str, the category of the error.\n linenum: int, the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the IsRValueAllowed API.
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 IsRValueAllowed API.
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... | Check if RValue reference is allowed on a particular line.
Args:
clean_lines: A CleansedLines instance containing the file.
linenum: The number of the line to check.
typenames: set of type names from template-argument-list.
Returns:
True if line is within the region where RValue references are allo... | "Check if RValue reference is allowed on a particular line.\n\n Args:\n clean_lines: A CleansedLines instance containing the file.\n linenum: The number of the line to check.\n typenames: set of type names from template-argument-list.\n Returns:\n True if line is within the region where RValue references ... | 104 | false | wesm/feather | IsRValueAllowed | 33,007 | |
LDU_FT/jazzband/sorl-thumbnail/get_module_class | LDU_FT | [
"<BEGIN>\n## `is_valid_image`",
"Wand library makes sure when opening any image that is fine, when\n the image is corrupted raises an exception.\n<END>",
"<BEGIN>\n## `parse_geometry`",
"Parses a geometry string syntax and returns a (width, height) tuple\n<END>",
"<BEGIN>\n## `parse_crop`",
"Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_module_class API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_module_class API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | imports and returns module class from ``path.to.module.Class``
argument | "imports and returns module class from ``path.to.module.Class``\n argument" | 68 | false | jazzband/sorl-thumbnail | get_module_class | 33,008 | |
LDU_FT/atmos-python/atmos/sma | LDU_FT | [
"<BEGIN>\n## `assumes`",
"Stores a function's assumptions as an attribute.\n<END>",
"<BEGIN>\n## `overridden_by_assumptions`",
"Stores what assumptions a function is overridden by as an attribute.\n<END>",
"<BEGIN>\n## `equation_docstring`",
"Creates a decorator that adds a docstring to an equation functi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sma API.
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 sma API.
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... | Computes a 1D simple moving average along the given axis.
Parameters
----------
array : ndarray
Array on which to perform the convolution.
window_size: int
Width of the simple moving average window in indices.
axis : int, optional
Axis along which to perform the moving average
mode : {‘reflect’, ‘constant’... | "Computes a 1D simple moving average along the given axis.\n\nParameters\n----------\narray : ndarray\n Array on which to perform the convolution.\nwindow_size: int\n Width of the simple moving average window in indices.\naxis : int, optional\n Axis along which to perform the moving average\nmode : {‘reflect’,... | 126 | false | atmos-python/atmos | sma | 33,009 | |
LDU_FT/davedoesdev/dxf/hash_file | LDU_FT | [
"<BEGIN>\n## `hash_bytes`",
"Hash bytes using the same method the registry uses (currently SHA-256).",
" :param buf: Bytes to hash\n :type buf: binary str",
" :rtype: str\n :returns: Hex-encoded hash of file's content (prefixed by ``sha256:``)\n<END>",
"<BEGIN>\n## `hash_file`",
"Hash a file u... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_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 extract... | Hash a file using the same method the registry uses (currently SHA-256).
:param filename: Name of file to hash
:type filename: str
:rtype: str
:returns: Hex-encoded hash of file's content (prefixed by ``sha256:``) | "Hash a file using the same method the registry uses (currently SHA-256).\n\n :param filename: Name of file to hash\n :type filename: str\n\n :rtype: str\n :returns: Hex-encoded hash of file's content (prefixed by ``sha256:``)" | 84 | false | davedoesdev/dxf | hash_file | 33,010 | |
LDU_FT/dr-leo/pandaSDMX/_make_key_from_series | LDU_FT | [
"<BEGIN>\n## `namedtuple`",
"Returns a new subclass of tuple with named fields.\n This is a patched version of collections.namedtuple from the stdlib.\n Unlike the latter, it accepts non-identifier strings as field names.\n All values are accessible through dict syntax. Fields whose names are\n identi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_key_from_series 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 _make_key_from_series API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Get all series keys by calling
self.series_keys, and validate
the key(dict) against it. Raises ValueError if
a value does not occur in the respective
set of dimension values. Multiple values per
dimension can be provided as a list or in 'V1+V2' notation.
Return: key(str... | "Get all series keys by calling\n self.series_keys, and validate \n the key(dict) against it. Raises ValueError if\n a value does not occur in the respective\n set of dimension values. Multiple values per\n dimension can be provided as a list or in 'V1+V2' notation.\n\n Return:... | 86 | false | dr-leo/pandaSDMX | _make_key_from_series | 33,011 | |
LDU_FT/riga/scinum/asin | LDU_FT | [
"<BEGIN>\n## `log`",
"log(x, base=e)\n Logarithmic function.\n<END>",
"<BEGIN>\n## `asin`",
"asin(x)\n Trigonometric arc sin function.\n<END>",
"<BEGIN>\n## `acos`",
"acos(x)\n Trigonometric arc cos function.\n<END>",
"<BEGIN>\n## `atan`",
"tan(x)\n Trigonometric arc tan function.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asin API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asin API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | asin(x)
Trigonometric arc sin function. | "asin(x)\n Trigonometric arc sin function." | 90 | false | riga/scinum | asin | 33,012 | |
LDU_FT/20c/facsimile/transform | LDU_FT | [
"<BEGIN>\n## `find_datafile`",
"find all matching data files in search_path\n search_path: path of directories to load from\n codecs: allow to override from list of installed\n returns array of tuples (codec_object, filename)\n<END>",
"<BEGIN>\n## `load_datafile`",
"find datafile and load them from c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | replaces $tokens$ with values
will be replaced with config rendering | "replaces $tokens$ with values\n will be replaced with config rendering" | 24 | false | 20c/facsimile | transform | 33,013 | |
LDU_FT/korfuri/django-prometheus/ExportToDjangoView | LDU_FT | [
"<BEGIN>\n## `ExportMigrations`",
"Exports counts of unapplied migrations.",
" This is meant to be called during app startup, ideally by\n django_prometheus.apps.AppConfig.\n<END>",
"<BEGIN>\n## `ExportingCursorWrapper`",
"Returns a CursorWrapper class that knows its database's alias and\n vendor n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ExportToDjangoView 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 ExportToDjangoView 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... | Exports /metrics as a Django view.
You can use django_prometheus.urls to map /metrics to this view. | "Exports /metrics as a Django view.\n\n You can use django_prometheus.urls to map /metrics to this view." | 25 | false | korfuri/django-prometheus | ExportToDjangoView | 33,014 | |
LDU_FT/coleifer/walrus/cas | LDU_FT | [
"<BEGIN>\n## `get`",
"Retreive a value from the cache. In the event the value\n does not exist, return the ``default``.\n<END>",
"<BEGIN>\n## `set`",
"Cache the given ``value`` in the specified ``key``. If no\n timeout is specified, the default timeout will be used.\n<END>",
"<BEGIN>\n## `flus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cas API.
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 cas API.
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... | Perform an atomic compare-and-set on the value in "key", using a prefix
match on the provided value. | "Perform an atomic compare-and-set on the value in \"key\", using a prefix\n match on the provided value." | 363 | false | coleifer/walrus | cas | 33,015 | |
LDU_FT/crunchyroll/ef-open/precheck_dist_hash | LDU_FT | [
"<BEGIN>\n## `services`",
"Args:\n service_group: optional name of service group\n Returns:\n if service_group is omitted or None, flattened dict of all service records in the service registry\n if service_group is present, dict of service records in that group\n<END>",
"<BEGIN>\n## `iter_serv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the precheck_dist_hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the precheck_dist_hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Is the dist in service the same as the dist marked current in the version records?
This tool won't update records unless the world state is coherent.
Args:
context: a populated EFVersionContext object
Returns:
True if ok to proceed
Raises:
RuntimeError if not ok to proceed | "Is the dist in service the same as the dist marked current in the version records?\n This tool won't update records unless the world state is coherent.\n Args:\n context: a populated EFVersionContext object\n Returns:\n True if ok to proceed\n Raises:\n RuntimeError if not ok to proceed" | 231 | false | crunchyroll/ef-open | precheck_dist_hash | 33,016 | |
LDU_FT/transifex/transifex-python-library/_send_json | LDU_FT | [
"<BEGIN>\n## `get`",
"Retrieve an object by making a GET request to Transifex.",
" Each value in `kwargs` that corresponds to a field\n defined in `self.url_fields` will be used in the URL path\n of the request, so that a particular entry of this model\n is identified and retrieved."... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Make a application/json request.
Args:
`method`: The method of the request (POST or PUT).
`path`: The path to the resource.
`data`: The JSON-encoded data.
Returns:
The content of the response.
Raises:
An exception depending on the HTTP... | "Make a application/json request.\n\n Args:\n `method`: The method of the request (POST or PUT).\n `path`: The path to the resource.\n `data`: The JSON-encoded data.\n Returns:\n The content of the response.\n Raises:\n An exception depending o... | 64 | false | transifex/transifex-python-library | _send_json | 33,017 | |
LDU_FT/brandjon/simplestruct/checktype_seq | LDU_FT | [
"<BEGIN>\n## `normalize_kind`",
"Make a kind out of a possible shorthand. If the given\n argument is a sequence of types or a singular type, it becomes\n a kind that accepts exactly those types. If the given argument\n is None, it becomes a type that accepts anything.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checktype_seq API.
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 checktype_seq API.
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... | Raise TypeError if seq is not a sequence of elements satisfying
kind. Optionally require elements to be unique.
As a special case, a string is considered to be an atomic value
rather than a sequence of single-character strings. (Thus,
checktype_seq('foo', str) will fail.) | "Raise TypeError if seq is not a sequence of elements satisfying\n kind. Optionally require elements to be unique.\n \n As a special case, a string is considered to be an atomic value\n rather than a sequence of single-character strings. (Thus,\n checktype_seq('foo', str) will fail.)" | 15 | false | brandjon/simplestruct | checktype_seq | 33,018 | |
LDU_FT/dusktreader/py-buzz/handle_errors | LDU_FT | [
"<BEGIN>\n## `reformat_exception`",
"Reformats an exception by adding a message to it and reporting the\n original exception name and message\n<END>",
"<BEGIN>\n## `handle_errors`",
"provides a context manager that will intercept exceptions and repackage\n them as Buzz instances with a message a... | 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... | provides a context manager that will intercept exceptions and repackage
them as Buzz instances with a message attached:
.. code-block:: python
with Buzz.handle_errors("It didn't work"):
some_code_that_might_raise_an_exception()
:param: message: The message to attach... | "provides a context manager that will intercept exceptions and repackage\n them as Buzz instances with a message attached:\n\n .. code-block:: python\n with Buzz.handle_errors(\"It didn't work\"):\n some_code_that_might_raise_an_exception()\n\n :param: message: The message... | 15 | false | dusktreader/py-buzz | handle_errors | 33,019 | |
LDU_FT/cisco-sas/kitty/_transmit | LDU_FT | [
"<BEGIN>\n## `update`",
"update db entry",
" :param field_dict: dictionary of fields and values\n :param where_clause: where clause for the update\n<END>",
"<BEGIN>\n## `insert`",
"insert new db entry",
" :param fields: list of fields to insert\n :param values: list of values t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _transmit API.
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 _transmit API.
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... | Transmit node data to target.
:type node: Template
:param node: node to transmit
:return: response if there is any | "Transmit node data to target.\n\n :type node: Template\n :param node: node to transmit\n :return: response if there is any" | 331 | false | cisco-sas/kitty | _transmit | 33,020 | |
LDU_FT/smnorris/pgdata/_valid_table_name | LDU_FT | [
"<BEGIN>\n## `schemas`",
"Get a listing of all non-system schemas (prefixed with 'pg_') that\n exist in the database.\n<END>",
"<BEGIN>\n## `tables`",
"Get a listing of all tables\n - if schema specified on connect, return unqualifed table names in\n that schema\n - in no s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _valid_table_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _valid_table_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Check if the table name is obviously invalid. | "Check if the table name is obviously invalid." | 50 | false | smnorris/pgdata | _valid_table_name | 33,021 | |
LDU_FT/brentp/cruzdb/promoter | LDU_FT | [
"<BEGIN>\n## `relate`",
"Produce a relationship between this mapped table and another\n one. ",
" This makes usage of SQLAlchemy's :func:`sqlalchemy.orm.relationship`\n construct.\n<END>",
"<BEGIN>\n## `execute`",
"Execute a SQL statement.",
" The statement may be a string SQL ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the promoter API.
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 promoter API.
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 a start, end tuple of positions for the promoter region of this
gene
Parameters
----------
up : int
this distance upstream that is considered the promoter
down : int
the strand is used to add this many downstream bases into the gene. | "Return a start, end tuple of positions for the promoter region of this\n gene\n\n Parameters\n ----------\n\n up : int\n this distance upstream that is considered the promoter\n\n down : int\n the strand is used to add this many downstream bases into the gene." | 169 | false | brentp/cruzdb | promoter | 33,022 | |
LDU_FT/pebble/libpebble2/send_message | LDU_FT | [
"<BEGIN>\n## `send_notification`",
"Sends a notification. Blocks as long as necessary.",
" :param subject: The subject.\n :type subject: str\n :param message: The message.\n :type message: str\n :param sender: The sender.\n :type sender: str\n :param source: The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Send a message to the given app, which should be currently running on the Pebble (unless using a non-standard
AppMessage endpoint, in which case its rules apply).
AppMessage can only represent flat dictionaries with integer keys; as such, ``dictionary`` must be flat and have
integer keys.
... | "Send a message to the given app, which should be currently running on the Pebble (unless using a non-standard\n AppMessage endpoint, in which case its rules apply).\n\n AppMessage can only represent flat dictionaries with integer keys; as such, ``dictionary`` must be flat and have\n integer keys.\... | 121 | false | pebble/libpebble2 | send_message | 33,023 | |
LDU_FT/mozilla-services/python-dockerflow/_got_request_exception | LDU_FT | [
"<BEGIN>\n## `get_version`",
"Load and return the contents of version.json.",
" :param root: The root path that the ``version.json`` file will be opened\n :type root: str\n :returns: Content of ``version.json`` or None\n :rtype: dict or None\n<END>",
"<BEGIN>\n## `version`",
"Returns the content... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _got_request_exception 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 _got_request_exception API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | The signal handler for the got_request_exception signal. | "The signal handler for the got_request_exception signal." | 59 | false | mozilla-services/python-dockerflow | _got_request_exception | 33,024 | |
LDU_FT/SuperCowPowers/workbench/guess_type_tag | LDU_FT | [
"<BEGIN>\n## `conn_log_graph`",
"Build up a graph (nodes and edges from a Bro conn.log)\n<END>",
"<BEGIN>\n## `dns_log_graph`",
"Build up a graph (nodes and edges from a Bro dns.log)\n<END>",
"<BEGIN>\n## `weird_log_graph`",
"Build up a graph (nodes and edges from a Bro weird.log)\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the guess_type_tag API.
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 guess_type_tag API.
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... | Try to guess the type_tag for this sample | "Try to guess the type_tag for this sample" | 328 | false | SuperCowPowers/workbench | guess_type_tag | 33,025 | |
LDU_FT/oanda/v20-python/set_client_extensions | LDU_FT | [
"<BEGIN>\n## `from_dict`",
"Instantiate a new Trade from a dict (generally from loading a JSON\n response). The data used to instantiate the Trade is a shallow copy of\n the dict passed in, with any complex child types instantiated\n appropriately.\n<END>",
"<BEGIN>\n## `from_dict`",
"Ins... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_client_extensions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_client_extensions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Update the Client Extensions for an Order in an Account. Do not set,
modify, or delete clientExtensions if your account is associated with
MT4.
Args:
accountID:
Account Identifier
orderSpecifier:
The Order Specifier
clientExten... | "Update the Client Extensions for an Order in an Account. Do not set,\n modify, or delete clientExtensions if your account is associated with\n MT4.\n\n Args:\n accountID:\n Account Identifier\n orderSpecifier:\n The Order Specifier\n c... | 225 | false | oanda/v20-python | set_client_extensions | 33,026 | |
LDU_FT/presslabs/z3/backup_incremental | LDU_FT | [
"<BEGIN>\n## `multipart_etag`",
"Computes etag for multipart uploads\n :type digests: list of hex-encoded md5 sums (string)\n :param digests: The list of digests for each individual chunk.",
" :rtype: string\n :returns: The etag computed from the individual chunks.\n<END>",
"<BEGIN>\n## `get_chunk... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backup_incremental 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 backup_incremental 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... | Uploads named snapshot or latest, along with any other snapshots
required for an incremental backup. | "Uploads named snapshot or latest, along with any other snapshots\n required for an incremental backup." | 22 | false | presslabs/z3 | backup_incremental | 33,027 | |
LDU_FT/gvanderheide/discreteMarkovChain/indirectInitialMatrix | LDU_FT | [
"<BEGIN>\n## `uniqueStates`",
"Returns unique states and sums up the corresponding rates.\n States should be a 2d numpy array with on each row a state, and rates a 1d numpy array with length equal to the number of rows in states. ",
" This may be helpful in the transition function for summing up the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indirectInitialMatrix 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 indirectInitialMatrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Given some initial state, this iteratively determines new states.
We repeatedly call the transition function on unvisited states in the frontier set.
Each newly visited state is put in a dictionary called 'mapping' and the rates are stored in a dictionary. | "Given some initial state, this iteratively determines new states.\n We repeatedly call the transition function on unvisited states in the frontier set.\n Each newly visited state is put in a dictionary called 'mapping' and the rates are stored in a dictionary." | 68 | false | gvanderheide/discreteMarkovChain | indirectInitialMatrix | 33,028 | |
LDU_FT/marshmallow-code/flask-marshmallow/_get_value | LDU_FT | [
"<BEGIN>\n## `_get_value`",
"Slightly-modified version of marshmallow.utils.get_value.\n If a dot-delimited ``key`` is passed and any attribute in the\n path is `None`, return `None`.\n<END>",
"<BEGIN>\n## `_rapply`",
"Apply a function to all values in a dictionary or list of dictionaries, recursively.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 extrac... | Slightly-modified version of marshmallow.utils.get_value.
If a dot-delimited ``key`` is passed and any attribute in the
path is `None`, return `None`. | "Slightly-modified version of marshmallow.utils.get_value.\n If a dot-delimited ``key`` is passed and any attribute in the\n path is `None`, return `None`." | 18 | false | marshmallow-code/flask-marshmallow | _get_value | 33,029 | |
LDU_FT/housecanary/hc-api-python/post | LDU_FT | [
"<BEGIN>\n## `normalize_cell_value`",
"Process value for writing into a cell.",
" Args:\n value: any type of variable",
" Returns:\n json serialized value if value is list or dict, else value\n<END>",
"<BEGIN>\n## `get_addresses_from_input_file`",
"Read addresses from input file into l... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Makes a POST request to the specified url endpoint.
Args:
url (string): The url to the API without query params.
Example: "https://api.housecanary.com/v2/property/value"
post_data: Json post data to send in the body of the request.
query_params (dic... | "Makes a POST request to the specified url endpoint.\n\n Args:\n url (string): The url to the API without query params.\n Example: \"https://api.housecanary.com/v2/property/value\"\n post_data: Json post data to send in the body of the request.\n query_pa... | 137 | false | housecanary/hc-api-python | post | 33,030 | |
LDU_FT/krischer/mtspec/signal_bursts | LDU_FT | [
"<BEGIN>\n## `mtspec`",
"Wrapper method for the mtspec subroutine in the library by German A.\n Prieto.",
" This method estimates the adaptive weighted multitaper spectrum, as in\n Thomson 1982. This is done by estimating the DPSS (discrete prolate\n spheroidal sequences), multiplying each of the t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the signal_bursts API.
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 signal_bursts API.
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... | Generates a signal with two bursts inside. Useful for testing time
frequency distributions.
:returns: Generated signal
:rtype: numpy.ndarray | "Generates a signal with two bursts inside. Useful for testing time\n frequency distributions.\n\n :returns: Generated signal\n :rtype: numpy.ndarray" | 98 | false | krischer/mtspec | signal_bursts | 33,031 | |
LDU_FT/edeposit/edeposit.amqp.aleph/get_POST_data | LDU_FT | [
"<BEGIN>\n## `from_xml`",
"Pick informations from :class:`.MARCXMLRecord` object and use it to\n build :class:`.SemanticInfo` structure.",
" Args:\n xml (str/MARCXMLRecord): MarcXML which will be converted to\n SemanticInfo. In case of str, ``<record>`` tag is required.",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_POST_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_POST_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns:
dict: POST data, which can be sent to webform using \
:py:mod:`urllib` or similar library | "Returns:\n dict: POST data, which can be sent to webform using \\\n :py:mod:`urllib` or similar library" | 102 | false | edeposit/edeposit.amqp.aleph | get_POST_data | 33,032 | |
LDU_FT/rhgrant10/Groupy/list_former | LDU_FT | [
"<BEGIN>\n## `from_data`",
"Create an attachment from data.",
" :param str type: attachment type\n :param kwargs data: additional attachment data\n :return: an attachment subclass object\n :rtype: `~groupy.api.attachments.Attachment`\n<END>",
"<BEGIN>\n## `from_file`",
"Create a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_former API.
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 list_former API.
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... | List all former groups.
:return: a list of groups
:rtype: :class:`list` | "List all former groups.\n\n :return: a list of groups\n :rtype: :class:`list`" | 194 | false | rhgrant10/Groupy | list_former | 33,033 | |
LDU_FT/RLBot/RLBot/validate_name | LDU_FT | [
"<BEGIN>\n## `configure_processes`",
"This will update the priority and CPU affinity of the processes owned by bots to try to achieve fairness and\n good performance.",
" :param agent_metadata_map: A mapping of player index to agent metadata, including a list of owned process ids.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Finds the modification of name which is not yet in the list
:param name: the (new) name for the agent
:param agent: the agent instance to allow the same name as the previous one if necessary
:return: the best modification of name not yet in a listwidget | "Finds the modification of name which is not yet in the list\n :param name: the (new) name for the agent\n :param agent: the agent instance to allow the same name as the previous one if necessary\n :return: the best modification of name not yet in a listwidget" | 181 | false | RLBot/RLBot | validate_name | 33,034 | |
LDU_FT/batiste/django-page-cms/do_fileplaceholder | LDU_FT | [
"<BEGIN>\n## `register_widget`",
"Register the given widget as a candidate to use in placeholder.\n<END>",
"<BEGIN>\n## `get_widget`",
"Give back a widget class according to his name.\n<END>",
"<BEGIN>\n## `save_model`",
"Move the page in the tree if necessary and save every\n placeholder :class:`C... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_fileplaceholder 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 do_fileplaceholder 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... | Method that parse the fileplaceholder template tag. | "Method that parse the fileplaceholder template tag." | 218 | false | batiste/django-page-cms | do_fileplaceholder | 33,035 | |
LDU_FT/astropy/pyregion/get_mask | LDU_FT | [
"<BEGIN>\n## `_generate_arg_types`",
"Find coordinate types based on shape name and coordlist length",
" This function returns a list of coordinate types based on which\n coordinates can be repeated for a given type of shap",
" Parameters\n ----------\n coordlist_length : int\n The numbe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mask API.
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_mask API.
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... | Create a 2-d mask.
Parameters
----------
hdu : `astropy.io.fits.ImageHDU`
FITS image HDU
header : `~astropy.io.fits.Header`
FITS header
shape : tuple
Image shape
Returns
-------
mask : `numpy.array`
Boolean... | "Create a 2-d mask.\n\n Parameters\n ----------\n hdu : `astropy.io.fits.ImageHDU`\n FITS image HDU\n header : `~astropy.io.fits.Header`\n FITS header\n shape : tuple\n Image shape\n\n Returns\n -------\n mask : `numpy.array`\n ... | 75 | false | astropy/pyregion | get_mask | 33,036 | |
LDU_FT/pyapi-gitlab/pyapi-gitlab/deleteuser | LDU_FT | [
"<BEGIN>\n## `login`",
"Logs the user in and setups the header with the private token",
" :param email: Gitlab user Email\n :param user: Gitlab username\n :param password: Gitlab user password\n :return: True if login successful\n :raise: HttpError\n :raise: ValueError\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deleteuser API.
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 deleteuser API.
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... | Deletes a user. Available only for administrators.
This is an idempotent function, calling this function for a non-existent user id
still returns a status code 200 OK.
The JSON response differs if the user was actually deleted or not.
In the former the user is returned and in the latter ... | "Deletes a user. Available only for administrators.\n This is an idempotent function, calling this function for a non-existent user id\n still returns a status code 200 OK.\n The JSON response differs if the user was actually deleted or not.\n In the former the user is returned and in the la... | 239 | false | pyapi-gitlab/pyapi-gitlab | deleteuser | 33,037 | |
LDU_FT/Laufire/ec/help | LDU_FT | [
"<BEGIN>\n## `registerExitCall`",
"r\"\"\"Registers an exit call to start the core.",
" The core would be started after the main module is loaded. Ec would be exited from the core.\n<END>",
"<BEGIN>\n## `run`",
"Excecutes the given command while transfering control, till the execution is complete.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the help API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the help API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | r"""Displays help for the given route.
Args:
route (str): A route that resolves a member. | "r\"\"\"Displays help for the given route.\n\n Args:\n route (str): A route that resolves a member." | 64 | false | Laufire/ec | help | 33,038 | |
LDU_FT/awslabs/aws-shell/_copy_template_to_config | LDU_FT | [
"<BEGIN>\n## `_create_key_manager`",
"Create and initialize the keybinding manager.",
" :type get_fuzzy_match: callable\n :param get_fuzzy_match: Gets the fuzzy matching config.",
" :type set_fuzzy_match: callable\n :param set_fuzzy_match: Sets the fuzzy matching config.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _copy_template_to_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _copy_template_to_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Write the default config from a template.
:type template_path: str
:param template_path: The template config file path.
:type config_path: str
:param config_path: The user's config file path.
:type overwrite: bool
:param overwrite: (Optional) Determines whether to over... | "Write the default config from a template.\n\n :type template_path: str\n :param template_path: The template config file path.\n\n :type config_path: str\n :param config_path: The user's config file path.\n\n :type overwrite: bool\n :param overwrite: (Optional) Determines wheth... | 109 | false | awslabs/aws-shell | _copy_template_to_config | 33,039 | |
LDU_FT/johnnoone/json-spec/load | LDU_FT | [
"<BEGIN>\n## `check`",
"Check if value exists into object.",
" :param doc: the document base\n :param pointer: the path to search in\n :param expected: the expected value\n :param raise_onerror: should raise on error?\n :return: boolean\n<END>",
"<BEGIN>\n## `add`",
"Add element to sequence, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Scaffold a validator against a schema.
:param schema: the schema to compile into a Validator
:type schema: Mapping
:param uri: the uri of the schema.
it may be ignored in case of not cross
referencing.
:type uri: Pointer, str
:param spec: fallback to this spec if the... | "Scaffold a validator against a schema.\n\n :param schema: the schema to compile into a Validator\n :type schema: Mapping\n :param uri: the uri of the schema.\n it may be ignored in case of not cross\n referencing.\n :type uri: Pointer, str\n :param spec: fallback to this sp... | 113 | false | johnnoone/json-spec | load | 33,040 | |
LDU_FT/simonw/datasette/display_columns_and_rows | LDU_FT | [
"<BEGIN>\n## `fail_if_publish_binary_not_installed`",
"Exit (with error message) if ``binary` isn't installed\n<END>",
"<BEGIN>\n## `path_from_row_pks`",
"Generate an optionally URL-quoted unique identifier\n for a row from its primary keys.\n<END>",
"<BEGIN>\n## `detect_fts`",
"Detect if table has... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display_columns_and_rows API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display_columns_and_rows API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Returns columns, rows for specified table - including fancy foreign key treatment | "Returns columns, rows for specified table - including fancy foreign key treatment" | 36 | false | simonw/datasette | display_columns_and_rows | 33,041 | |
LDU_FT/jonaprieto/ponywhoosh/register_index | LDU_FT | [
"<BEGIN>\n## `add_field`",
"Add a field in the index of the model.",
" Args:\n fieldname (Text): This parameters register a new field in specified model.\n fieldspec (Name, optional): This option adds various options as were described before.",
" Returns:\n TYPE: The new schema afte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_index API.
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 register_index API.
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... | Registers a given index:
* Creates and opens an index for it (if it doesn't exist yet)
* Sets some default values on it (unless they're already set)
Args:
index (PonyWhoosh.Index): An instance of PonyWhoosh.Index class | "Registers a given index:\n\n * Creates and opens an index for it (if it doesn't exist yet)\n * Sets some default values on it (unless they're already set)\n\n Args:\n index (PonyWhoosh.Index): An instance of PonyWhoosh.Index class" | 35 | false | jonaprieto/ponywhoosh | register_index | 33,042 | |
LDU_FT/pyapi-gitlab/pyapi-gitlab/deletegroupmember | LDU_FT | [
"<BEGIN>\n## `login`",
"Logs the user in and setups the header with the private token",
" :param email: Gitlab user Email\n :param user: Gitlab username\n :param password: Gitlab user password\n :return: True if login successful\n :raise: HttpError\n :raise: ValueError\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deletegroupmember API.
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 deletegroupmember API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Delete a group member
:param group_id: group id to remove the member from
:param user_id: user id
:return: always true | "Delete a group member\n\n :param group_id: group id to remove the member from\n :param user_id: user id\n :return: always true" | 239 | false | pyapi-gitlab/pyapi-gitlab | deletegroupmember | 33,043 | |
LDU_FT/bwesterb/py-tarjan/tc | LDU_FT | [
"<BEGIN>\n## `tc`",
"Given a graph @g, returns the transitive closure of @g\n<END>",
"<BEGIN>\n## `_tarjan_head`",
"Used by @tarjan and @tarjan_iter. This is the head of the\n main iteration\n<END>",
"<BEGIN>\n## `_tarjan_body`",
"Used by @tarjan and @tarjan_iter. This is the body of the\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tc API.
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 tc API.
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... | Given a graph @g, returns the transitive closure of @g | "Given a graph @g, returns the transitive closure of @g" | 14 | false | bwesterb/py-tarjan | tc | 33,044 | |
LDU_FT/MrKriss/vigilance/within_n_sds | LDU_FT | [
"<BEGIN>\n## `maha_dist`",
"Compute the squared Mahalanobis Distance for each row in the dataframe ",
" Given a list of rows `x`, each with `p` elements, a vector :math:\\mu of the \n row means of length `p`, and the :math:pxp covarence matrix of the columns :math:\\Sigma, ",
" The returned value fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the within_n_sds API.
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 within_n_sds API.
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 true if all values in sequence are within n SDs | "Return true if all values in sequence are within n SDs" | 33 | false | MrKriss/vigilance | within_n_sds | 33,045 | |
LDU_FT/box/flaky/ensure_unicode_string | LDU_FT | [
"<BEGIN>\n## `flaky`",
"Decorator used to mark a test as \"flaky\". When used in conjuction with\n the flaky nosetests plugin, will cause the decorated test to be retried\n until min_passes successes are achieved out of up to max_runs test runs.",
" :param max_runs:\n The maximum number of times... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_unicode_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 ensure_unicode_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 unicode string representation of the given obj.
:param obj:
The obj we want to represent in unicode
:type obj:
varies
:rtype:
`unicode` | "Return a unicode string representation of the given obj.\n\n :param obj:\n The obj we want to represent in unicode\n :type obj:\n varies\n :rtype:\n `unicode`" | 56 | false | box/flaky | ensure_unicode_string | 33,046 | |
LDU_FT/biolink/ontobio/search | LDU_FT | [
"<BEGIN>\n## `extract_subset`",
"Find all nodes in a subset.",
" We assume the oboInOwl encoding of subsets, and subset IDs are IRIs\n<END>",
"<BEGIN>\n## `sparql`",
"Execute a SPARQL query.",
" The query is specified using `select` and `body` parameters.\n The argument for the Named ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API.
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 search API.
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 ... | Given an input iterable of classes or individuals,
resolves to target classes (phenotypes, go terms, etc)
and provides a ranking of similar profiles | "Given an input iterable of classes or individuals,\n resolves to target classes (phenotypes, go terms, etc)\n and provides a ranking of similar profiles" | 526 | false | biolink/ontobio | search | 33,047 | |
LDU_FT/takaakiaoki/ofblockmeshdicthelper/format | LDU_FT | [
"<BEGIN>\n## `format`",
"Format instance to dump\n vertices is dict of name to Vertex\n<END>",
"<BEGIN>\n## `format`",
"Format instance to dump\n vertices is dict of name to Vertex\n<END>",
"<BEGIN>\n## `face`",
"Generate Face object\n index is number or keyword to identify the face o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Format instance to dump
vertices is dict of name to Vertex | "Format instance to dump\n vertices is dict of name to Vertex" | 30 | false | takaakiaoki/ofblockmeshdicthelper | format | 33,048 | |
LDU_FT/ConsenSys/mythril-classic/_init_solc_binary | LDU_FT | [
"<BEGIN>\n## `_get_account`",
"Get account by address.",
" :param address:\n :return:\n<END>",
"<BEGIN>\n## `_get_block_hash`",
"Get block hash by block number.",
" :param number:\n :return:\n<END>",
"<BEGIN>\n## `_get_head_block`",
"Get head block header.",
" :ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_solc_binary API.
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 _init_solc_binary API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Figure out solc binary and version.
Only proper versions are supported. No nightlies, commits etc (such as available in remix). | "Figure out solc binary and version.\n\n Only proper versions are supported. No nightlies, commits etc (such as available in remix)." | 376 | false | ConsenSys/mythril-classic | _init_solc_binary | 33,049 | |
LDU_FT/openpermissions/perch/update | LDU_FT | [
"<BEGIN>\n## `collect`",
"Import all modules inside the perch.migrations package and return the\n registered migrations\n<END>",
"<BEGIN>\n## `run_migrations`",
"Run migrations for a resource type",
" :param: a dicitionary of migrations\n<END>",
"<BEGIN>\n## `_migrate_resource`",
"Migrate a resour... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 ... | If parent resource is not an editable state, should not be able to update | "If parent resource is not an editable state, should not be able to update" | 177 | false | openpermissions/perch | update | 33,050 | |
LDU_FT/nnseva/django-access/register_plugins | LDU_FT | [
"<BEGIN>\n## `formfield_for_manytomany`",
"Not all Admin subclasses use get_field_queryset here, so we will use it explicitly\n<END>",
"<BEGIN>\n## `delete_selected`",
"The real delete function always evaluated either from the action, or from the instance delete link\n<END>",
"<BEGIN>\n## `get_deleted_objec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_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 register_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 ... | Reguster plugins. The plugins parameter should be dict mapping model to plugin.
Just calls a register_plugin for every such a pair. | "Reguster plugins. The plugins parameter should be dict mapping model to plugin.\n\n Just calls a register_plugin for every such a pair." | 26 | false | nnseva/django-access | register_plugins | 33,051 | |
LDU_FT/sqlalchemy-redshift/sqlalchemy-redshift/create_connect_args | LDU_FT | [
"<BEGIN>\n## `gen_columns_from_children`",
"Generates columns that are being used in child elements of the delete query\n this will be used to determine tables for the using clause.\n :param root: the delete query\n :return: a generator of columns\n<END>",
"<BEGIN>\n## `visit_delete_stmt`",
"Adds red... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_connect_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_connect_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Build DB-API compatible connection arguments.
Overrides interface
:meth:`~sqlalchemy.engine.interfaces.Dialect.create_connect_args`. | "Build DB-API compatible connection arguments.\n\n Overrides interface\n :meth:`~sqlalchemy.engine.interfaces.Dialect.create_connect_args`." | 48 | false | sqlalchemy-redshift/sqlalchemy-redshift | create_connect_args | 33,052 | |
LDU_FT/SheffieldML/GPy/dlogpdf_df | LDU_FT | [
"<BEGIN>\n## `pdf_link`",
":param link_f: latent variables link(f)\n :type link_f: Nx1 array\n :param y: data\n :type y: Nx1 array\n :param Y_metadata: includes censoring information in dictionary key 'censored'\n :returns: likelihood evaluated for this point\n :rtype: fl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dlogpdf_df API.
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 dlogpdf_df API.
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... | Evaluates the link function link(f) then computes the derivative of log likelihood using it
Uses the Faa di Bruno's formula for the chain rule
.. math::
\\frac{d\\log p(y|\\lambda(f))}{df} = \\frac{d\\log p(y|\\lambda(f))}{d\\lambda(f)}\\frac{d\\lambda(f)}{df}
:param f: latent vari... | "Evaluates the link function link(f) then computes the derivative of log likelihood using it\n Uses the Faa di Bruno's formula for the chain rule\n\n .. math::\n \\\\frac{d\\\\log p(y|\\\\lambda(f))}{df} = \\\\frac{d\\\\log p(y|\\\\lambda(f))}{d\\\\lambda(f)}\\\\frac{d\\\\lambda(f)}{df}\n\n ... | 1,670 | true | SheffieldML/GPy | dlogpdf_df | 33,053 | |
LDU_FT/nuagenetworks/bambou/create_child | LDU_FT | [
"<BEGIN>\n## `start`",
"Starts listening to events.",
" Args:\n timeout (int): number of seconds before timeout. Used for testing purpose only.\n root_object (bambou.NURESTRootObject): NURESTRootObject object that is listening. Used for testing purpose only.\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_child API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_child API.
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 given nurest_object to the current object
For example, to add a child into a parent, you can call
parent.create_child(nurest_object=child)
Args:
nurest_object (bambou.NURESTObject): the NURESTObject object to add
response_choice (int): Automatica... | "Add given nurest_object to the current object\n\n For example, to add a child into a parent, you can call\n parent.create_child(nurest_object=child)\n\n Args:\n nurest_object (bambou.NURESTObject): the NURESTObject object to add\n response_choice (int): Au... | 177 | false | nuagenetworks/bambou | create_child | 33,054 | |
LDU_FT/square/connect-python-sdk/variation_name | LDU_FT | [
"<BEGIN>\n## `attribute_name`",
"Sets the attribute_name of this CatalogQueryRange.\n The name of the attribute to be searched.",
" :param attribute_name: The attribute_name of this CatalogQueryRange.\n :type: str\n<END>",
"<BEGIN>\n## `idempotency_key`",
"Sets the idempotency_key of th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the variation_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the variation_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Sets the variation_name of this OrderLineItem.
The name of the variation applied to this line item.
:param variation_name: The variation_name of this OrderLineItem.
:type: str | "Sets the variation_name of this OrderLineItem.\n The name of the variation applied to this line item.\n\n :param variation_name: The variation_name of this OrderLineItem.\n :type: str" | 148 | false | square/connect-python-sdk | variation_name | 33,055 | |
LDU_FT/sprockets/sprockets-influxdb/_write_measurements | LDU_FT | [
"<BEGIN>\n## `add_measurement`",
"Add measurement data to the submission buffer for eventual writing to\n InfluxDB.",
" Example:",
" .. code:: python",
" import sprockets_influxdb as influxdb",
" measurement = influxdb.Measurement('example', 'measurement-name')\n measurement.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_measurements 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 _write_measurements 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... | Write out all of the metrics in each of the databases,
returning a future that will indicate all metrics have been written
when that future is done.
:rtype: tornado.concurrent.Future | "Write out all of the metrics in each of the databases,\n returning a future that will indicate all metrics have been written\n when that future is done.\n\n :rtype: tornado.concurrent.Future" | 93 | false | sprockets/sprockets-influxdb | _write_measurements | 33,056 | |
LDU_FT/celery/cell/get | LDU_FT | [
"<BEGIN>\n## `main`",
"Implement the actor main loop by waiting forever for messages.\n<END>",
"<BEGIN>\n## `send`",
"Call method on agent listening to ``routing_key``.",
" See :meth:`call_or_cast` for a full list of supported\n arguments.",
" If the keyword argument `nowait` is false... | 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... | What kind of arguments should be pass here | "What kind of arguments should be pass here" | 82 | false | celery/cell | get | 33,057 | |
LDU_FT/znerol/txexiftool/responseReceived | LDU_FT | [
"<BEGIN>\n## `dataReceived`",
"Parses chunks of bytes into responses.",
" Whenever a complete response is received, this method extracts its\n payload and calls L{responseReceived} to process it.",
" @param data: A chunk of data representing a (possibly partial) response\n @type da... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the responseReceived API.
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 responseReceived API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Receives some characters of a netstring.
Whenever a complete response is received, this method calls the
deferred associated with it.
@param response: A complete response generated by exiftool.
@type response: C{bytes}
@param tag: The tag associated with the response
@t... | "Receives some characters of a netstring.\n\n Whenever a complete response is received, this method calls the\n deferred associated with it.\n\n @param response: A complete response generated by exiftool.\n @type response: C{bytes}\n @param tag: The tag associated with the response\n ... | 19 | false | znerol/txexiftool | responseReceived | 33,058 | |
LDU_FT/tensorflow/mesh/evaluate_layout | LDU_FT | [
"<BEGIN>\n## `make_layer_stack`",
"Configurable layer stack.",
" Args:\n layers: a list of subclasses of TransformerLayer\n num_layers: an integer\n Returns:\n a LayerStack\n<END>",
"<BEGIN>\n## `make_bitransformer`",
"Gin-configurable bitransformer constructor.",
" In your config file you nee... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate_layout API.
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 evaluate_layout API.
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... | The current objective value for the given layout.
TODO(joshuawang): The current function does not check that the given
layout is valid.
Args:
layout: a string, representing a layout to evaluate (e.g.
"d_ff:m1;heads:m2").
Returns:
A float, the objective value. | "The current objective value for the given layout.\n\n TODO(joshuawang): The current function does not check that the given\n layout is valid.\n\n Args:\n layout: a string, representing a layout to evaluate (e.g.\n \"d_ff:m1;heads:m2\").\n\n Returns:\n A float, the objective value." | 958 | false | tensorflow/mesh | evaluate_layout | 33,059 | |
LDU_FT/caseyjlaw/rtpipe/calcfluxscale | LDU_FT | [
"<BEGIN>\n## `get_metadata`",
"Function to scan data (a small read) and define parameters used elsewhere.\n filename needs full path.\n Examples include, read/bgsub windows, image grid, memory profile.\n If pickle file doesn't exist, it creates one. \n Either way, dictionary is returned with info.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calcfluxscale API.
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 calcfluxscale API.
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... | Given state dict and noise properties, estimate flux scale at the VLA
imstd and flagfrac are expected to be median (typical) values from sample in merged noise pkl. | "Given state dict and noise properties, estimate flux scale at the VLA \n\n imstd and flagfrac are expected to be median (typical) values from sample in merged noise pkl." | 256 | false | caseyjlaw/rtpipe | calcfluxscale | 33,060 | |
LDU_FT/ultrabug/uhashring/_remove_node | LDU_FT | [
"<BEGIN>\n## `_configure_nodes`",
"Parse and set up the given nodes.",
" :param nodes: nodes used to create the continuum (see doc for format).\n<END>",
"<BEGIN>\n## `_get_pos`",
"Get the index of the given key in the sorted key list.",
" We return the position with the nearest hash based on... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Remove the given node from the continuum/ring.
:param node_name: the node name. | "Remove the given node from the continuum/ring.\n\n :param node_name: the node name." | 40 | false | ultrabug/uhashring | _remove_node | 33,061 | |
LDU_FT/hadrianl/huobi/get_margin_balance | LDU_FT | [
"<BEGIN>\n## `async_request`",
"异步并发请求\n :param reqs: 请求列表\n :return:\n<END>",
"<BEGIN>\n## `get_kline`",
"获取KLine\n :param symbol\n :param period: 可选值:{1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week, 1year }\n :param size: 可选值: [1,2000]\n :return:\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_margin_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_margin_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.
Th... | 借贷账户详情,支持查询单个币种
:param symbol:
:return: | "借贷账户详情,支持查询单个币种\n :param symbol:\n :return:" | 108 | false | hadrianl/huobi | get_margin_balance | 33,062 | |
LDU_FT/biolink/biolink-model/grounded_slot_range | LDU_FT | [
"<BEGIN>\n## `cli`",
"Generate JSON Schema representation of a biolink model\n<END>",
"<BEGIN>\n## `root_representer`",
"YAML callback -- used to filter out empty values (None, {}, [] and false)",
" @param dumper: data dumper\n @param data: data to be dumped\n @return:\n<END>",
"<BEGIN>\n## `cli`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grounded_slot_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grounded_slot_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.
T... | Chase the slot range to its final form
@param slot: slot to check
@return: name of resolved range | "Chase the slot range to its final form\n\n @param slot: slot to check\n @return: name of resolved range" | 119 | false | biolink/biolink-model | grounded_slot_range | 33,063 | |
LDU_FT/joowani/kq/enqueue | LDU_FT | [
"<BEGIN>\n## `callback`",
"Example callback function.",
" :param status: Job status. Possible values are \"invalid\" (job could not be\n deserialized or was malformed), \"failure\" (job raised an exception),\n \"timeout\" (job timed out), or \"success\" (job finished successfully and\n r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enqueue API.
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 enqueue API.
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... | Enqueue a function call or a :doc:`job <job>`.
:param func: Function or a :doc:`job <job>` object. Must be
serializable and available to :doc:`workers <worker>`.
:type func: callable | :doc:`kq.Job <job>`
:param args: Positional arguments for the function. Ignored if **func**
... | "Enqueue a function call or a :doc:`job <job>`.\n\n :param func: Function or a :doc:`job <job>` object. Must be\n serializable and available to :doc:`workers <worker>`.\n :type func: callable | :doc:`kq.Job <job>`\n :param args: Positional arguments for the function. Ignored if **func**\... | 49 | false | joowani/kq | enqueue | 33,064 | |
LDU_FT/pmelchior/proxmin/get_gradient_y | LDU_FT | [
"<BEGIN>\n## `prox_gradf_lim`",
"Forward-backward step: gradient, followed by projection\n<END>",
"<BEGIN>\n## `prox_lim12`",
"if boundary == \"circle\":\n if j == 0:\n xy = np.array([x[0], Xs[1][0]])\n if j == 1:\n xy = np.array([Xs[0][0], x[0]])\n return [prox_circ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gradient_y API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gradient_y API.
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... | Calculate the gradient in the y direction to the line at py
The y gradient operator is a block matrix, where each block is the size of the image width.
The matrix itself is made up of (img_height x img_height) blocks, most of which are all zeros. | "Calculate the gradient in the y direction to the line at py\n\n The y gradient operator is a block matrix, where each block is the size of the image width.\n The matrix itself is made up of (img_height x img_height) blocks, most of which are all zeros." | 91 | false | pmelchior/proxmin | get_gradient_y | 33,065 | |
LDU_FT/markchil/gptools/random_draw | LDU_FT | [
"<BEGIN>\n## `matern_function`",
"r\"\"\"Matern covariance function of arbitrary dimension, for use with :py:class:`ArbitraryKernel`.",
" The Matern kernel has the following hyperparameters, always referenced in\n the order listed:",
" = ===== ====================================\n 0 sigma prefact... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_draw API.
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_draw API.
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... | Draw random samples of the hyperparameters.
Parameters
----------
size : None, int or array-like, optional
The number/shape of samples to draw. If None, only one sample is
returned. Default is None. | "Draw random samples of the hyperparameters.\n \n Parameters\n ----------\n size : None, int or array-like, optional\n The number/shape of samples to draw. If None, only one sample is\n returned. Default is None." | 496 | false | markchil/gptools | random_draw | 33,066 | |
LDU_FT/wummel/linkchecker/get_intern_pattern | LDU_FT | [
"<BEGIN>\n## `start_output`",
"Write start of checking info as gml comment.\n<END>",
"<BEGIN>\n## `getaddresses`",
"Return list of email addresses from given field value.\n<END>",
"<BEGIN>\n## `build_url`",
"Call super.build_url(), extract list of mail addresses from URL,\n and check their syntax.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_intern_pattern API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_intern_pattern API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Get pattern for intern URL matching.
@return non-empty regex pattern or None
@rtype String or None | "Get pattern for intern URL matching.\n\n @return non-empty regex pattern or None\n @rtype String or None" | 1,377 | true | wummel/linkchecker | get_intern_pattern | 33,067 | |
LDU_FT/hellock/icrawler/set | LDU_FT | [
"<BEGIN>\n## `to_dict`",
"convert detailed proxy info into a dict",
" Returns:\n dict: A dict with four keys: ``addr``, ``protocol``,\n ``weight`` and ``last_checked``\n<END>",
"<BEGIN>\n## `proxy_num`",
"Get the number of proxies in the pool",
" Args:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Set signals.
Args:
signals: A dict(key-value pairs) of all signals. For example
{'signal1': True, 'signal2': 10} | "Set signals.\n\n Args:\n signals: A dict(key-value pairs) of all signals. For example\n {'signal1': True, 'signal2': 10}" | 105 | false | hellock/icrawler | set | 33,068 | |
LDU_FT/Karaage-Cluster/karaage/validate_username_for_rename_person | LDU_FT | [
"<BEGIN>\n## `_gen_project_trend_graph`",
"Generates a bar graph for a project",
" Keyword arguments:\n project -- Project\n start -- start date\n end -- end date\n<END>",
"<BEGIN>\n## `synchronise`",
"If task already queued, running, or finished, don't restart.\n<END>",
"<BEGIN>\n## `send_bou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_username_for_rename_person API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_username_for_rename_person API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | Validate the new username to rename a person. If the username is
invalid or in use, raises :py:exc:`UsernameInvalid` or
:py:exc:`UsernameTaken`.
:param username: Username to validate.
:param person: We exclude this person when checking for duplicates. | "Validate the new username to rename a person. If the username is\n invalid or in use, raises :py:exc:`UsernameInvalid` or\n :py:exc:`UsernameTaken`.\n\n :param username: Username to validate.\n :param person: We exclude this person when checking for duplicates." | 214 | false | Karaage-Cluster/karaage | validate_username_for_rename_person | 33,069 | |
LDU_FT/pinterest/pymemcache/delete | LDU_FT | [
"<BEGIN>\n## `murmur3_32`",
"MurmurHash3 was written by Austin Appleby, and is placed in the\n public domain. The author hereby disclaims copyright to this source\n code.\n<END>",
"<BEGIN>\n## `_readline`",
"Read line of text from the socket.",
" Read a line of text (delimited by \"\\r\\n\") ... | 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 ... | The memcached "delete" command.
Args:
key: str, see class docs for details.
noreply: optional bool, True to not wait for the reply (defaults to
self.default_noreply).
Returns:
If noreply is True, always returns True. Otherwise returns True if
... | "The memcached \"delete\" command.\n\n Args:\n key: str, see class docs for details.\n noreply: optional bool, True to not wait for the reply (defaults to\n self.default_noreply).\n\n Returns:\n If noreply is True, always returns True. Otherwise returns True if... | 89 | false | pinterest/pymemcache | delete | 33,070 | |
LDU_FT/tensorflow/tensorboard/RunMetadata | LDU_FT | [
"<BEGIN>\n## `add_event`",
"Adds an event to the event file.",
" Args:\n event: An `Event` protocol buffer.\n<END>",
"<BEGIN>\n## `write`",
"Enqueue the given bytes to be written asychronously\n<END>",
"<BEGIN>\n## `flush`",
"Write all the enqueued bytestring before this flush call to di... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the RunMetadata API.
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 RunMetadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Given a tag, return the associated session.run() metadata.
Args:
tag: A string tag associated with the event.
Raises:
ValueError: If the tag is not found.
Returns:
The metadata in form of `RunMetadata` proto. | "Given a tag, return the associated session.run() metadata.\n\n Args:\n tag: A string tag associated with the event.\n\n Raises:\n ValueError: If the tag is not found.\n\n Returns:\n The metadata in form of `RunMetadata` proto." | 1,768 | true | tensorflow/tensorboard | RunMetadata | 33,071 | |
LDU_FT/wavefrontHQ/python-client/search_webhook_for_facets | LDU_FT | [
"<BEGIN>\n## `display`",
"Sets the display of this Message.",
" The form of display for this message # noqa: E501",
" :param display: The display of this Message. # noqa: E501\n :type: str\n<END>",
"<BEGIN>\n## `scope`",
"Sets the scope of this Message.",
" The audience sco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_webhook_for_facets 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 search_webhook_for_facets API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Lists the values of one or more facets over the customer's webhooks # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.search_webhook_for_facets(async_req=True)
>... | "Lists the values of one or more facets over the customer's webhooks # noqa: E501\n\n # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.search_webhook_for_facets(async_req=True)\n ... | 954 | false | wavefrontHQ/python-client | search_webhook_for_facets | 33,072 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.