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/entrepreneur-interet-general/mkinx/make_offline
LDU_FT
[ "<BEGIN>\n## `serve`", "Start a server which will watch .md and .rst files for changes.\n If a md file changes, the Home Documentation is rebuilt. If a .rst\n file changes, the updated sphinx project is rebuilt", " Args:\n args (ArgumentParser): flags from the CLI\n<END>", "<BEGIN>\n## `build`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_offline API. 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 make_offline API. 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...
Deletes references to the external google fonts in the Home Documentation's index.html file
"Deletes references to the external google fonts in the Home\n Documentation's index.html file"
22
false
entrepreneur-interet-general/mkinx
make_offline
18,573
LDU_FT/skggm/skggm/lattice
LDU_FT
[ "<BEGIN>\n## `log_likelihood`", "Computes the log-likelihood between the covariance and precision\n estimate.", " Parameters\n ----------\n covariance : 2D ndarray (n_features, n_features)\n Maximum Likelihood Estimator of covariance", " precision : 2D ndarray (n_features, n_features)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lattice API. 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 lattice API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns the adjacency matrix for a lattice network. The resulting network is a Toeplitz matrix with random values summing between -1 and 1 and zeros along the diagonal. The range of the values can be controlled via the parameters low and high. If random_sign is false, all entries will be negative, oth...
"Returns the adjacency matrix for a lattice network.\n\n The resulting network is a Toeplitz matrix with random values summing\n between -1 and 1 and zeros along the diagonal.\n\n The range of the values can be controlled via the parameters low and high.\n If random_sign is false, all entries will be negati...
239
false
skggm/skggm
lattice
18,574
LDU_FT/CenturyLinkCloud/clc-python-sdk/PackagePublish
LDU_FT
[ "<BEGIN>\n## `SetCredentials`", "Establish API username and password associated with APIv2 commands.\n<END>", "<BEGIN>\n## `get_session`", "Start a session with the given parameters", "\tUse instead of SetCredentials if you need a session object to avoid the use of global credentials.", "\tReturns a sessi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the PackagePublish API. 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 PackagePublish API. 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...
Publishes a Blueprint Package for use within the Blueprint Designer. https://t3n.zendesk.com/entries/20426453-Publish-Package :param package: path to zip file containing package.manifest and supporting scripts :param classification: package type (System, Script, Software) :param visibility: package visibility...
"Publishes a Blueprint Package for use within the Blueprint Designer.\n\n\t\thttps://t3n.zendesk.com/entries/20426453-Publish-Package\n\n\t\t:param package: path to zip file containing package.manifest and supporting scripts\n\t\t:param classification: package type (System, Script, Software)\n\t\t:param visibility: pac...
402
false
CenturyLinkCloud/clc-python-sdk
PackagePublish
18,575
LDU_FT/yahoo/TensorFlowOnSpark/next_batch
LDU_FT
[ "<BEGIN>\n## `start`", "Create a new multiprocess.Manager (or return existing one).", " Args:\n :authkey: string authorization key\n :queues: *INTERNAL_USE*\n :mode: 'local' indicates that the manager will only be accessible from the same host, otherwise remotely accessible.", " Returns:\n A TFM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next_batch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next_batch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Gets a batch of items from the input RDD. If multiple tensors are provided per row in the input RDD, e.g. tuple of (tensor1, tensor2, ..., tensorN) and: * no ``input_mapping`` was provided to the DataFeed constructor, this will return an array of ``batch_size`` tuples, and the caller is responsible for ...
"Gets a batch of items from the input RDD.\n\n If multiple tensors are provided per row in the input RDD, e.g. tuple of (tensor1, tensor2, ..., tensorN) and:\n\n * no ``input_mapping`` was provided to the DataFeed constructor, this will return an array of ``batch_size`` tuples,\n and the caller is responsibl...
483
false
yahoo/TensorFlowOnSpark
next_batch
18,576
LDU_FT/lsst-sqre/documenteer/format_configurablefield_nodes
LDU_FT
[ "<BEGIN>\n## `run`", "Main entrypoint method.", " Returns\n -------\n new_nodes : `list`\n Nodes to add to the doctree.\n<END>", "<BEGIN>\n## `main`", "stack-docs is a CLI for building LSST Stack documentation, such as\n pipelines.lsst.io.", " This command should be r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_configurablefield_nodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_configurablefield_nodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Create a section node that documents a ConfigurableField config field. Parameters ---------- field_name : `str` Name of the configuration field (the attribute name of on the config class). field : ``lsst.pex.config.ConfigurableField`` A configuration field. field_id : `str` ...
"Create a section node that documents a ConfigurableField config field.\n\n Parameters\n ----------\n field_name : `str`\n Name of the configuration field (the attribute name of on the config\n class).\n field : ``lsst.pex.config.ConfigurableField``\n A configuration field.\n field_i...
430
false
lsst-sqre/documenteer
format_configurablefield_nodes
18,577
LDU_FT/chrippa/ds4drv/add_watcher
LDU_FT
[ "<BEGIN>\n## `setup`", "Check if the bluetooth controller is available.\n<END>", "<BEGIN>\n## `find_device`", "Scan for bluetooth devices and return a DS4 device if found.\n<END>", "<BEGIN>\n## `start`", "Starts the timer.", " If the callback returns True the timer will be restarted.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_watcher API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_watcher API. 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...
Starts watching a non-blocking fd for data.
"Starts watching a non-blocking fd for data."
29
false
chrippa/ds4drv
add_watcher
18,578
LDU_FT/MatiasSM/fcb/encrypt_file
LDU_FT
[ "<BEGIN>\n## `delete_unverified_uploads`", ":param destinations: list of Destination.destination", " For each Destination.destination:\n Deletes all FilesDestinations where the destination is not verified\n Deletes each FilesContainer in the deleted FilesDestinations if not present in a non del...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt_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 extr...
Encrypts a file using AES (CBC mode) with the given key. key: The encryption key - a string that must be either 16, 24 or 32 bytes long. Longer keys are more secure. in_filename: Name of the input file ...
"Encrypts a file using AES (CBC mode) with the\n given key.\n \n key:\n The encryption key - a string that must be\n either 16, 24 or 32 bytes long. Longer keys\n are more secure.\n \n in_filename:\n Name of the input fil...
42
false
MatiasSM/fcb
encrypt_file
18,579
LDU_FT/rosshamish/catan-py/getting
LDU_FT
[ "<BEGIN>\n## `do`", "Does the command using the undo_manager's stack\n :param command: Command\n<END>", "<BEGIN>\n## `restore`", "Restore this Game object to match the properties and state of the given Game object\n :param game: properties to restore to the current (self) Game\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getting API. 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 getting API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns tuples corresponding to the number and type of each resource in the trade from getter->giver :return: eg [(2, Terrain.wood), (1, Terrain.brick)]
"Returns tuples corresponding to the number and type of each\n resource in the trade from getter->giver\n\n :return: eg [(2, Terrain.wood), (1, Terrain.brick)]"
52
false
rosshamish/catan-py
getting
18,580
LDU_FT/dmwm/DBS/__search_cert_key
LDU_FT
[ "<BEGIN>\n## `inputChecks`", "This is a function to check all the input for GET APIs.\n<END>", "<BEGIN>\n## `validateStringInput`", "To check if a string has the required format. This is only used for POST APIs.\n<END>", "<BEGIN>\n## `execute`", "Lists all primary datasets if pattern is not provided.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __search_cert_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __search_cert_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get the user credentials if they exist, otherwise throw an exception. This code was modified from DBSAPI/dbsHttpService.py and WMCore/Services/Requests.py
"Get the user credentials if they exist, otherwise throw an exception.\n This code was modified from DBSAPI/dbsHttpService.py and WMCore/Services/Requests.py"
352
false
dmwm/DBS
__search_cert_key
18,581
LDU_FT/Legobot/Legobot/reply
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to a server.", " This overrides the function in SimpleIRCClient\n to provide SSL functionality.", " :param args:\n :param kwargs:\n :return:\n<END>", "<BEGIN>\n## `set_metadata`", "This function sets the metadata that is common between p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reply API. 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 reply API. 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...
Reply to the sender of the provided message with a message \ containing the provided text. :param message: the message to reply to :param text: the text to reply with :param opts: A dictionary of additional values to add to metadata :return: None
"Reply to the sender of the provided message with a message \\\n containing the provided text.\n\n :param message: the message to reply to\n :param text: the text to reply with\n :param opts: A dictionary of additional values to add to metadata\n :return: None"
119
false
Legobot/Legobot
reply
18,582
LDU_FT/open-homeautomation/pknx/ip_to_array
LDU_FT
[ "<BEGIN>\n## `ip_to_array`", "Convert a string representing an IPv4 address to 4 bytes.\n<END>", "<BEGIN>\n## `int_to_array`", "Convert an length byte integer to an array of bytes.\n<END>", "<BEGIN>\n## `parse_group_address`", "Parse KNX group addresses and return the address as an integer.", " This ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ip_to_array API. 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 ip_to_array API. 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...
Convert a string representing an IPv4 address to 4 bytes.
"Convert a string representing an IPv4 address to 4 bytes."
80
false
open-homeautomation/pknx
ip_to_array
18,583
LDU_FT/rq/rq-scheduler/acquire_lock
LDU_FT
[ "<BEGIN>\n## `get_next_scheduled_time`", "Calculate the next scheduled time by creating a crontab object\n with a cron string\n<END>", "<BEGIN>\n## `rationalize_until`", "Rationalizes the `until` argument used by other functions. This function\n accepts datetime and timedelta instances as well as intege...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the acquire_lock API. 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 acquire_lock API. 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...
Acquire lock before scheduling jobs to prevent another scheduler from scheduling jobs at the same time. This function returns True if a lock is acquired. False otherwise.
"Acquire lock before scheduling jobs to prevent another scheduler\n from scheduling jobs at the same time.\n\n This function returns True if a lock is acquired. False otherwise."
37
false
rq/rq-scheduler
acquire_lock
18,584
LDU_FT/tmux-python/tmuxp/is_config_file
LDU_FT
[ "<BEGIN>\n## `get_config_dir`", "Return tmuxp configuration directory.", " ``TMUXP_CONFIGDIR`` environmental variable has precedence if set. We also \n evaluate XDG default directory from XDG_CONFIG_HOME environmental variable \n if set or its default. Then the old default ~/.tmuxp is returned for \n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_config_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_config_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return True if file has a valid config file type. Parameters ---------- filename : str filename to check (e.g. ``mysession.json``). extensions : str or list filetypes to check (e.g. ``['.yaml', '.json']``). Returns ------- bool
"Return True if file has a valid config file type.\n\n Parameters\n ----------\n filename : str\n filename to check (e.g. ``mysession.json``).\n extensions : str or list\n filetypes to check (e.g. ``['.yaml', '.json']``).\n\n Returns\n -------\n bool"
161
false
tmux-python/tmuxp
is_config_file
18,585
LDU_FT/dsoprea/PySchedules/_startStationsNode
LDU_FT
[ "<BEGIN>\n## `_startXTVDNode`", "Process the start of the top-level xtvd node\n<END>", "<BEGIN>\n## `_startStationsNode`", "Process the start of a node under xtvd/stations\n<END>", "<BEGIN>\n## `_endStationsNode`", "Process the end of a node under xtvd/stations\n<END>", "<BEGIN>\n## `_startLineupsNode`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _startStationsNode 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 _startStationsNode 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...
Process the start of a node under xtvd/stations
"Process the start of a node under xtvd/stations"
50
false
dsoprea/PySchedules
_startStationsNode
18,586
LDU_FT/gsi-upm/soil/flush_cache
LDU_FT
[ "<BEGIN>\n## `save_record`", "Save a collection of records to the database.\n Database writes are cached.\n<END>", "<BEGIN>\n## `convert`", "Get the serialized value for a given key.\n<END>", "<BEGIN>\n## `recover`", "Get the deserialized value for a given key, and the serialized version.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flush_cache API. 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 flush_cache API. 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...
Use a cache to save state changes to avoid opening a session for every change. The cache will be flushed at the end of the simulation, and when history is accessed.
"Use a cache to save state changes to avoid opening a session for every change.\n The cache will be flushed at the end of the simulation, and when history is accessed."
63
false
gsi-upm/soil
flush_cache
18,587
LDU_FT/petrjasek/eve-elastic/expand_action
LDU_FT
[ "<BEGIN>\n## `get_dates`", "Return list of datetime fields for given schema.\n<END>", "<BEGIN>\n## `set_filters`", "Put together all filters we have and set them as 'and' filter\n within filtered query.", " :param query: elastic query being constructed\n :param base_filters: all filters set outside...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_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 ext...
From one document or action definition passed in by the user extract the action/data lines needed for elasticsearch's :meth:`~elasticsearch.Elasticsearch.bulk` api.
"From one document or action definition passed in by the user extract the\n action/data lines needed for elasticsearch's\n :meth:`~elasticsearch.Elasticsearch.bulk` api."
106
false
petrjasek/eve-elastic
expand_action
18,588
LDU_FT/ChristianTremblay/BAC0/read_multiple
LDU_FT
[ "<BEGIN>\n## `sim`", "Simulate I/O points by setting the Out_Of_Service property, then doing a \r\n WriteProperty to the point's Present_Value.\r", " :param args: String with <addr> <type> <inst> <prop> <value> [ <indx> ] [ <priority> ]\n<END>", "<BEGIN>\n## `out_of_service`", "Set the Out_Of_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_multiple API. 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 read_multiple API. 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...
Functions to read points from a device using the ReadPropertyMultiple request. Using readProperty request can be very slow to read a lot of data. :param points_list: (list) a list of all point_name as str :param points_per_request: (int) number of points in the request Using too ...
"Functions to read points from a device using the ReadPropertyMultiple request.\r\n Using readProperty request can be very slow to read a lot of data.\r\n\r\n :param points_list: (list) a list of all point_name as str\r\n :param points_per_request: (int) number of points in the request\r\n\r\n ...
73
false
ChristianTremblay/BAC0
read_multiple
18,589
LDU_FT/dbrgn/RPLCD/clear
LDU_FT
[ "<BEGIN>\n## `_pulse_data`", "Pulse the `enable` flag to process value.\n<END>", "<BEGIN>\n## `_send`", "Send the specified value to the display with automatic 4bit / 8bit\n selection. The rs_mode is either ``RS_DATA`` or ``RS_INSTRUCTION``.\n<END>", "<BEGIN>\n## `_pulse_enable`", "Pulse the `enabl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API. 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 clear API. 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...
Overwrite display with blank characters and reset cursor position.
"Overwrite display with blank characters and reset cursor position."
33
false
dbrgn/RPLCD
clear
18,590
LDU_FT/fauskanger/mypolr/lookup
LDU_FT
[ "<BEGIN>\n## `_make_request`", "Prepares the request and catches common errors and returns tuple of data and the request response.", " Read more about error codes: https://docs.polrproject.org/en/latest/developer-guide/api/#http-error-codes", " :param endpoint: full endpoint url\n :type e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup API. 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 lookup API. 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 ...
Looks up the url_ending to obtain information about the short url. If it exists, the API will return a dictionary with information, including the long_url that is the destination of the given short url URL. The lookup object looks like something like this: .. code-block:: python ...
"Looks up the url_ending to obtain information about the short url.\n\n If it exists, the API will return a dictionary with information, including\n the long_url that is the destination of the given short url URL.\n\n\n The lookup object looks like something like this:\n\n .. code-block:: py...
24
false
fauskanger/mypolr
lookup
18,591
LDU_FT/Jaymon/endpoints/split_hostname_from_port
LDU_FT
[ "<BEGIN>\n## `handle_target`", "Only here to set self.request and get rid of it after", " this will set self.request so the target method can access request using\n self.request, just like in the controller.\n<END>", "<BEGIN>\n## `fetch`", "wrapper method that all the top level methods (get, p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_hostname_from_port 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 split_hostname_from_port API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
given a hostname:port return a tuple (hostname, port)
"given a hostname:port return a tuple (hostname, port)"
215
false
Jaymon/endpoints
split_hostname_from_port
18,592
LDU_FT/pyapi-gitlab/pyapi-gitlab/deletesshkey
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 deletesshkey API. 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 deletesshkey API. 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...
Deletes an sshkey for the current user identified by id :param key_id: the id of the key :return: False if it didn't delete it, True if it was deleted
"Deletes an sshkey for the current user identified by id\n\n :param key_id: the id of the key\n :return: False if it didn't delete it, True if it was deleted"
239
false
pyapi-gitlab/pyapi-gitlab
deletesshkey
18,593
LDU_FT/pyQode/pyqode.cobol/on_state_changed
LDU_FT
[ "<BEGIN>\n## `on_state_changed`", "Connects/disconnects slots to/from signals when the mode state\n changed.\n<END>", "<BEGIN>\n## `_add_decoration`", "Adds a decoration for the word under ``cursor``.\n<END>", "<BEGIN>\n## `request_goto`", "Request a go to assignment.", " :param tc: Text c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_state_changed API. 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 on_state_changed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Connects/disconnects slots to/from signals when the mode state changed.
"Connects/disconnects slots to/from signals when the mode state\n changed."
69
false
pyQode/pyqode.cobol
on_state_changed
18,594
LDU_FT/kissmetrics/py-KISSmetrics/alias
LDU_FT
[ "<BEGIN>\n## `record`", "Record event for identity with any properties.", " :param action: event performed\n :param props: any additional data to include\n :type props: dict\n :param resp: indicate whether to return response\n :type resp: boolean", " :returns: an HTTP...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alias API. 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 alias API. 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...
Map `person` to `identity`; actions done by one resolve to other. :param person: consider as same individual ``identity``; the source of the alias operation :type person: str or unicode :param identity: consider as an alias of ``person``; the target ...
"Map `person` to `identity`; actions done by one resolve to other.\n\n :param person: consider as same individual ``identity``; the\n source of the alias operation\n :type person: str or unicode\n :param identity: consider as an alias of ``person``; the target\n ...
37
false
kissmetrics/py-KISSmetrics
alias
18,595
LDU_FT/mjirik/imtools/__drawSegmentedSlice
LDU_FT
[ "<BEGIN>\n## `get_superpxl_intensities`", "Calculates mean intensities of pixels in superpixels\n inputs:\n im ... grayscale image, ndarray [MxN]\n suppxls ... image with suppxls labels, ndarray -same shape as im\n outputs:\n suppxl_intens ... vector with suppxls mean intensities\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __drawSegmentedSlice 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 __drawSegmentedSlice API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Used for visualization of midle slice of the data3d :param ax: :param contour: :param i: :return:
"Used for visualization of midle slice of the data3d\n :param ax:\n :param contour:\n :param i:\n :return:"
75
false
mjirik/imtools
__drawSegmentedSlice
18,596
LDU_FT/deep-compute/logagg/elasticsearch
LDU_FT
[ "<BEGIN>\n## `start_daemon_thread`", "starts a deamon thread for a given target function and arguments.\n<END>", "<BEGIN>\n## `serialize_dict_keys`", "returns all the keys in a dictionary.", " >>> serialize_dict_keys({\"a\": {\"b\": {\"c\": 1, \"b\": 2} } })\n ['a', 'a.b', 'a.b.c', 'a.b.b']\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elasticsearch API. 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 elasticsearch API. 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...
>>> import pprint >>> input_line = '[2017-08-30T06:27:19,158] [WARN ][o.e.m.j.JvmGcMonitorService] [Glsuj_2] [gc][296816] overhead, spent [1.2s] collecting in the last [1.3s]' >>> output_line = elasticsearch(input_line) >>> pprint.pprint(output_line) {'data': {'garbage_collector': 'gc', 'g...
">>> import pprint\n >>> input_line = '[2017-08-30T06:27:19,158] [WARN ][o.e.m.j.JvmGcMonitorService] [Glsuj_2] [gc][296816] overhead, spent [1.2s] collecting in the last [1.3s]'\n >>> output_line = elasticsearch(input_line)\n >>> pprint.pprint(output_line)\n {'data': {'garbage_collector': 'gc',\n ...
59
false
deep-compute/logagg
elasticsearch
18,597
LDU_FT/paulovn/sparql-kernel/lang_match_rdf
LDU_FT
[ "<BEGIN>\n## `token_at_cursor`", "Find the token present at the passed position in the code buffer\n :return (tuple): a pair (token, start_position)\n<END>", "<BEGIN>\n## `_send`", "Send a response to the frontend and return an execute message\n @param data: response to send\n @param msg_t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lang_match_rdf API. 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 lang_match_rdf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Find if the RDF triple contains acceptable language data
"Find if the RDF triple contains acceptable language data"
55
false
paulovn/sparql-kernel
lang_match_rdf
18,598
LDU_FT/C-Pro/pgdocgen/generate_html
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses input string and returns list of DDLObjects\n<END>", "<BEGIN>\n## `readddl`", "Walks down database objects and generates\n JDOC objects for table descriptions\n<END>", "<BEGIN>\n## `read_dir`", "reads all files with extension input_ext\n in a directory input_dir and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_html API. 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 generate_html API. 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 html for a subset of jdoc records describing objects of specific schema
"Generates html for a subset of jdoc records\n describing objects of specific schema"
10
false
C-Pro/pgdocgen
generate_html
18,599
LDU_FT/peerplays-network/python-peerplays/betting_market_rules_create
LDU_FT
[ "<BEGIN>\n## `listaccounts`", "List accounts (for the connected network)\n<END>", "<BEGIN>\n## `importaccount`", "Import an account using an account password\n<END>", "<BEGIN>\n## `eventgroups`", "[bookie] List event groups for a sport", " :param str sport: Sports id\n<END>", "<BEGIN>\n## `even...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the betting_market_rules_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the betting_market_rules_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Create betting market rules :param list names: Internationalized names, e.g. ``[['de', 'Foo'], ['en', 'bar']]`` :param list descriptions: Internationalized descriptions, e.g. ``[['de', 'Foo'], ['en', 'bar']]`` :param str account: (optional) the accoun...
"Create betting market rules\n\n :param list names: Internationalized names, e.g. ``[['de', 'Foo'],\n ['en', 'bar']]``\n :param list descriptions: Internationalized descriptions, e.g.\n ``[['de', 'Foo'], ['en', 'bar']]``\n :param str account: (optional) the...
124
false
peerplays-network/python-peerplays
betting_market_rules_create
18,600
LDU_FT/bkjones/pyrabbit/delete_binding
LDU_FT
[ "<BEGIN>\n## `do_call`", "Send an HTTP request to the REST API.", " :param string path: A URL\n :param string method: The HTTP method (GET, POST, etc.) to use\n in the request.\n :param string body: A string representing any data to be sent in the\n body of the HTTP re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_binding API. 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 delete_binding API. 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...
Deletes a binding between an exchange and a queue on a given vhost. :param string vhost: vhost housing the exchange/queue to bind :param string exchange: the target exchange of the binding :param string queue: the queue to bind to the exchange :param string rt_key: the routing key to us...
"Deletes a binding between an exchange and a queue on a given vhost.\n\n :param string vhost: vhost housing the exchange/queue to bind\n :param string exchange: the target exchange of the binding\n :param string queue: the queue to bind to the exchange\n :param string rt_key: the routing key...
112
false
bkjones/pyrabbit
delete_binding
18,601
LDU_FT/Nekroze/librarian/contians_attribute
LDU_FT
[ "<BEGIN>\n## `add_attribute`", "Add the given attribute to this Card. Returns the length of\n attributes after addition.\n<END>", "<BEGIN>\n## `add_ability`", "Add the given ability to this Card under the given phase. Returns\n the length of the abilities for the given phase after the addition.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contians_attribute 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 contians_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns how many cards in the deck have the specified attribute. This method requires a library to be stored in the deck instance and will return `None` if there is no library.
"Returns how many cards in the deck have the specified attribute.\n\n This method requires a library to be stored in the deck instance and\n will return `None` if there is no library."
43
false
Nekroze/librarian
contians_attribute
18,602
LDU_FT/EliotBerriot/django-dynamic-preferences/set_value
LDU_FT
[ "<BEGIN>\n## `by_name`", "Return a dictionary with preferences identifiers and values, but without the section name in the identifier\n<END>", "<BEGIN>\n## `get_cache_key`", "Return the cache key corresponding to a given preference\n<END>", "<BEGIN>\n## `from_cache`", "Return a preference raw_value from c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extract...
Save serialized self.value to self.raw_value
"Save serialized self.value to self.raw_value"
64
false
EliotBerriot/django-dynamic-preferences
set_value
18,603
LDU_FT/joealcorn/xbox/increment
LDU_FT
[ "<BEGIN>\n## `_get`", "Makes a GET request, setting Authorization\n header by default\n<END>", "<BEGIN>\n## `_post`", "Makes a POST request, setting Authorization\n header by default\n<END>", "<BEGIN>\n## `_post_json`", "Makes a POST request, setting Authorization\n and Content-Type h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the increment API. 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 increment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return a new Retry object with incremented retry counters. :param response: A response object, or None, if the server did not return a response. :type response: :class:`~urllib3.response.HTTPResponse` :param Exception error: An error encountered during the request, or No...
"Return a new Retry object with incremented retry counters.\n\n :param response: A response object, or None, if the server did not\n return a response.\n :type response: :class:`~urllib3.response.HTTPResponse`\n :param Exception error: An error encountered during the request, or\n ...
62
false
joealcorn/xbox
increment
18,604
LDU_FT/tuomas2/automate/toggle_value
LDU_FT
[ "<BEGIN>\n## `call_eval`", "Value might be either name registered in System namespace, or object, either\n StatusObject or Callable. If Callable, evaluate :meth:`.call` method. If StatusObject,\n return status.\n<END>", "<BEGIN>\n## `setup_callable_system`", "This function basically sets...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toggle_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toggle_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 extr...
For manual shortcut links to perform toggle actions
"For manual shortcut links to perform toggle actions"
91
false
tuomas2/automate
toggle_value
18,605
LDU_FT/usc-isi-i2/etk/process_document
LDU_FT
[ "<BEGIN>\n## `decode_unicode`", "Process of parsing:\n -> Convert unicode into standard form\n -> Convert each character of the unicode symbol to its numerical equivalent\n -> Mapping Process:\n - First check in pattern dictionary to map suffix/prefix\n - Check Emoticon Dictionary \n - Replace valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_document API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_document API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Add your code for processing the document
"Add your code for processing the document"
427
false
usc-isi-i2/etk
process_document
18,606
LDU_FT/BDNYC/astrodbkit/query
LDU_FT
[ "<BEGIN>\n## `dict_tovot`", "Converts dictionary table **tabdata** to a VOTable with name **tabname**", " Parameters\n ----------\n tabdata: list\n SQL query dictionary list from running query_dict.execute()\n tabname: str\n The name of the VOTable to be created\n phot: bool\n Para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns data satisfying the provided **SQL** script. Only SELECT or PRAGMA statements are allowed. Results can be returned in a variety of formats. For example, to extract the ra and dec of all entries in SOURCES in astropy.Table format one can write: data = db.query('SELECT ra, dec FROM sou...
"Returns data satisfying the provided **SQL** script. Only SELECT or PRAGMA statements are allowed.\n Results can be returned in a variety of formats.\n For example, to extract the ra and dec of all entries in SOURCES in astropy.Table format one can write:\n data = db.query('SELECT ra, dec FROM...
166
false
BDNYC/astrodbkit
query
18,607
LDU_FT/pudo/typecast/stringify
LDU_FT
[ "<BEGIN>\n## `name`", "Get the string title for a particular type.", " Given a value, get an appropriate string title for the type that can\n be used to re-cast the value later.\n<END>", "<BEGIN>\n## `converter`", "Get a given converter by name, or raise an exception.\n<END>", "<BEGIN>\n## `cast`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stringify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stringify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Generate a string representation of the data in ``value``. Based on the converter specified by ``type_name``. This is guaranteed to yield a form which can easily be parsed by ``cast()``.
"Generate a string representation of the data in ``value``.\n\n Based on the converter specified by ``type_name``. This is\n guaranteed to yield a form which can easily be parsed by ``cast()``."
23
false
pudo/typecast
stringify
18,608
LDU_FT/GPflow/GPflow/predict_density
LDU_FT
[ "<BEGIN>\n## `multivariate_normal`", "Computes the log-density of a multivariate normal.\n :param x : Dx1 or DxN sample(s) for which we want the density\n :param mu : Dx1 or DxN mean(s) of the normal distribution\n :param L : DxD Cholesky decomposition of the covariance matrix\n :return p : (1,) or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict_density API. 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 predict_density API. 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...
r""" Given a Normal distribution for the latent function, and a datum Y, compute the log predictive density of Y. i.e. if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes the predictive density \log \int p(y=...
"r\"\"\"\n Given a Normal distribution for the latent function, and a datum Y,\n compute the log predictive density of Y.\n\n i.e. if\n q(f) = N(Fmu, Fvar)\n\n and this object represents\n\n p(y|f)\n\n then this method computes the predictive density\n\n ...
589
false
GPflow/GPflow
predict_density
18,609
LDU_FT/dbarsam/python-vsgen/from_args
LDU_FT
[ "<BEGIN>\n## `_import`", "Internal method to import instance variables data from a dictionary", " :param dict datadict: The dictionary containing variables values.\n<END>", "<BEGIN>\n## `from_section`", "Creates a :class:`~vsgen.project.VSGProject` from a :class:`~configparser.ConfigParser` section."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Generates one or more VSGSuite instances from command line arguments. :param kwargs: List of additional keyworded arguments to be passed into the VSGSuite defined in the :meth:`~VSGSuite.make_parser` method.
"Generates one or more VSGSuite instances from command line arguments.\n\n :param kwargs: List of additional keyworded arguments to be passed into the VSGSuite defined in the :meth:`~VSGSuite.make_parser` method."
101
false
dbarsam/python-vsgen
from_args
18,610
LDU_FT/ascribe/pyspool/refill
LDU_FT
[ "<BEGIN>\n## `address_from_path`", "Args:\n path (str): Path for the HD wallet. If path is ``None`` it\n will generate a unique path based on time.", " Returns:\n A ``tuple`` with the path and leaf address.\n<END>", "<BEGIN>\n## `_unique_hierarchical_string`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refill API. 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 refill API. 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 ...
Refill wallets with the necessary fuel to perform spool transactions Args: from_address (Tuple[str]): Federation wallet address. Fuels the wallets with tokens and fees. All transactions to wallets holding a particular piece should come from the Federation wallet to_addre...
"Refill wallets with the necessary fuel to perform spool transactions\n\n Args:\n from_address (Tuple[str]): Federation wallet address. Fuels the wallets with tokens and fees. All transactions to wallets\n holding a particular piece should come from the Federation wallet\n to...
79
false
ascribe/pyspool
refill
18,611
LDU_FT/basler/pypylon/make_constructor_list
LDU_FT
[ "<BEGIN>\n## `shift`", "Return a list corresponding to the lines of text in the `txt` list\n indented by `indent`. Prepend instead the string given in `prepend` to the\n beginning of the first line. Note that if len(prepend) > len(indent), then\n `prepend` will be truncated (doing better is tricky!). Thi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_constructor_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_constructor_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. ...
Produces the "Constructors" section and the constructor signatures (since swig does not do so for classes) for class docstrings.
"Produces the \"Constructors\" section and the constructor signatures\n (since swig does not do so for classes) for class docstrings."
42
false
basler/pypylon
make_constructor_list
18,612
LDU_FT/NoneGG/aredis/_gen_identity
LDU_FT
[ "<BEGIN>\n## `merge_result`", "Merge all items in `res` into a list.", " This command is used when sending a command to multiple nodes\n and they result from each node should be merged into a single list.\n<END>", "<BEGIN>\n## `first_key`", "Returns the first result for the given command.", " If ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gen_identity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gen_identity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
generate identity according to key and param given
"generate identity according to key and param given"
421
false
NoneGG/aredis
_gen_identity
18,613
LDU_FT/python-escpos/python-escpos/get_font
LDU_FT
[ "<BEGIN>\n## `get_profile`", "Get the profile by name; if no name is given, return the\n default profile.\n<END>", "<BEGIN>\n## `get_profile_class`", "For the given profile name, load the data from the external\n database, then generate dynamically a class.\n<END>", "<BEGIN>\n## `get_font`", "Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_font API. 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_font API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return the escpos index for `font`. Makes sure that the requested `font` is valid.
"Return the escpos index for `font`. Makes sure that\n the requested `font` is valid."
74
false
python-escpos/python-escpos
get_font
18,614
LDU_FT/andialbrecht/sqlparse/group_order
LDU_FT
[ "<BEGIN>\n## `_group_matching`", "Groups Tokens that have beginning and end.\n<END>", "<BEGIN>\n## `group_order`", "Group together Identifier and Asc/Desc token\n<END>", "<BEGIN>\n## `_group`", "Groups together tokens that are joined by a middle token. i.e. x < y\n<END>", "<BEGIN>\n## `_reset`", "Set ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_order API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_order API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Group together Identifier and Asc/Desc token
"Group together Identifier and Asc/Desc token"
57
false
andialbrecht/sqlparse
group_order
18,615
LDU_FT/beerfactory/hbmqtt/_handle_qos0_message_flow
LDU_FT
[ "<BEGIN>\n## `mqtt_subscribe`", ":param topics: array of topics [{'filter':'/a/b', 'qos': 0x00}, ...]\n :return:\n<END>", "<BEGIN>\n## `start`", "Start the broker to serve with the given configuration", " Start method opens network sockets and will start listening for incoming connections....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_qos0_message_flow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_qos0_message_flow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Handle QOS_0 application message acknowledgment For incoming messages, this method stores the message For outgoing messages, this methods sends PUBLISH :param app_message: :return:
"Handle QOS_0 application message acknowledgment\n For incoming messages, this method stores the message\n For outgoing messages, this methods sends PUBLISH\n :param app_message:\n :return:"
110
false
beerfactory/hbmqtt
_handle_qos0_message_flow
18,616
LDU_FT/nitmir/django-cas-server/check_lt
LDU_FT
[ "<BEGIN>\n## `clean_deleted_sessions`", "remove old :class:`FederateSLO` object for which the session do not exists anymore\n<END>", "<BEGIN>\n## `send_mails`", "For each new django-cas-server version, if the current instance is not up to date\n send one mail to ``settings.ADMINS``.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_lt API. 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 check_lt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Check is the POSTed LoginTicket is valid, if yes invalide it :return: ``True`` if the LoginTicket is valid, ``False`` otherwise :rtype: bool
"Check is the POSTed LoginTicket is valid, if yes invalide it\n\n :return: ``True`` if the LoginTicket is valid, ``False`` otherwise\n :rtype: bool"
182
false
nitmir/django-cas-server
check_lt
18,617
LDU_FT/zagaran/mongolia/db
LDU_FT
[ "<BEGIN>\n## `exists`", "Like __init__ but simply returns a boolean as to whether or not the\n object exists, rather than returning the whole object.", " NOTE: if you pass in a single argument to exists, this will\n match against ID_KEY.", " @param query: a dictionary specifying ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db API. 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 db API. 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...
Returns a pymongo Collection object from the current database connection. If the database connection is in test mode, collection will be in the test database. @param path: if is None, the PATH attribute of the current class is used; if is not None, this is used instead ...
"Returns a pymongo Collection object from the current database connection.\n If the database connection is in test mode, collection will be in the\n test database.\n \n @param path: if is None, the PATH attribute of the current class is used;\n if is not None, this is used instead...
95
false
zagaran/mongolia
db
18,618
LDU_FT/materialsproject/custodian/file_copy
LDU_FT
[ "<BEGIN>\n## `from_spec`", "Load a Custodian instance where the jobs are specified from a\n structure and a spec dict. This allows simple\n custom job sequences to be constructed quickly via a YAML file.", " Args:\n spec (dict): A dict specifying job. A sample of the dict in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Copies a file. {'_file_copy': {'dest': 'new_file_name'}} Args: filename (str): Filename. settings (dict): Must be {"dest": path of new file}
"Copies a file. {'_file_copy': {'dest': 'new_file_name'}}\n\n Args:\n filename (str): Filename.\n settings (dict): Must be {\"dest\": path of new file}"
90
false
materialsproject/custodian
file_copy
18,619
LDU_FT/daknuett/py_register_machine2/program_run
LDU_FT
[ "<BEGIN>\n## `int_to_bytes`", ".. _int_to_bytes:", "\tConverts the ``int`` ``int_`` to a ``bytes`` object.\n\t``len(result) == width``.", "\tIf ``width`` is None, a number of bytes that is able to hold the\n\tnumber is choosen, depending on ``int_.bit_length()``.", "\tSee also: bytes_to_int_\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the program_run API. 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 program_run API. 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...
.. _program_run: Generates an iterable that can be programmed onto the register machine.
".. _program_run:\n\n\t\tGenerates an iterable that can be programmed onto the register machine."
154
false
daknuett/py_register_machine2
program_run
18,620
LDU_FT/sloria/doitlive/raw_mode
LDU_FT
[ "<BEGIN>\n## `run`", "Main function for \"magic-running\" a list of commands.\n<END>", "<BEGIN>\n## `completion`", "Output completion (to be eval'd).", " For bash or zsh, add the following to your .bashrc or .zshrc:", " eval \"$(doitlive completion)\"", " For fish, add the following to ~/.c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw_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 extracte...
Enables terminal raw mode during the context. Note: Currently noop for Windows systems. Usage: :: with raw_mode(): do_some_stuff()
"Enables terminal raw mode during the context.\n\n Note: Currently noop for Windows systems.\n\n Usage: ::\n\n with raw_mode():\n do_some_stuff()"
31
false
sloria/doitlive
raw_mode
18,621
LDU_FT/IDSIA/sacred/config
LDU_FT
[ "<BEGIN>\n## `open_resource`", "Open a file and also save it as a resource.", " Opens a file, reports it to the observers as a resource, and returns\n the opened file.", " In Sacred terminology a resource is a file that the experiment needed\n to access during a run. In case of a M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Decorator to add a function to the configuration of the Experiment. The decorated function is turned into a :class:`~sacred.config_scope.ConfigScope` and added to the Ingredient/Experiment. When the experiment is run, this function will also be executed and all json-serializabl...
"Decorator to add a function to the configuration of the Experiment.\n\n The decorated function is turned into a\n :class:`~sacred.config_scope.ConfigScope` and added to the\n Ingredient/Experiment.\n\n When the experiment is run, this function will also be executed and\n all json-ser...
284
false
IDSIA/sacred
config
18,622
LDU_FT/nickmckay/LiPD-utilities/get_filtered_dfs
LDU_FT
[ "<BEGIN>\n## `update_dois`", "Get DOI publication info for a batch of DOIs. This is LiPD-independent and only requires a CSV file with all DOIs\n listed in a single column. The output is LiPD-formatted publication data for each entry.", " :param str csv_source: Local path to CSV file\n :param bool writ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_filtered_dfs API. 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_filtered_dfs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Main: Get all data frames that match the given expression :return dict: Filenames and data frames (filtered)
"Main: Get all data frames that match the given expression\n :return dict: Filenames and data frames (filtered)"
796
false
nickmckay/LiPD-utilities
get_filtered_dfs
18,623
LDU_FT/seznam/shelter/parse_host
LDU_FT
[ "<BEGIN>\n## `exitcode`", "Process exit code. :const:`0` when process exited successfully,\n positive number when exception was occurred, negative number when\n process was signaled and :data:`None` when process has not exited\n yet.\n<END>", "<BEGIN>\n## `run`", "Tornado worker which han...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_host API. 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 parse_host API. 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...
Parse *host* in format ``"[hostname:]port"`` and return :class:`tuple` ``(address, port)``. >>> parse_host('localhost:4444') ('localhost', 4444) >>> parse_host(':4444') ('', 4444) >>> parse_host('4444') ('', 4444) >>> parse_host('2001:db8::1428:57ab:4444') ...
"Parse *host* in format ``\"[hostname:]port\"`` and return :class:`tuple`\n ``(address, port)``.\n\n >>> parse_host('localhost:4444')\n ('localhost', 4444)\n >>> parse_host(':4444')\n ('', 4444)\n >>> parse_host('4444')\n ('', 4444)\n >>> parse_host('2001:db8::1428:57...
61
false
seznam/shelter
parse_host
18,624
LDU_FT/kavdev/ldap-groups/parent
LDU_FT
[ "<BEGIN>\n## `_get_valididty`", "Determines whether this AD Group is valid.\r", " :returns: True and \"\" if this group is valid or False and a string description\r\n with the reason why it isn't valid otherwise.\n<END>", "<BEGIN>\n## `get_attribute`", "Gets the passed attribute of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns this group's parent (up to the DC)
"Returns this group's parent (up to the DC)"
59
false
kavdev/ldap-groups
parent
18,625
LDU_FT/benhoff/vexbot/iterate_multiple_addresses
LDU_FT
[ "<BEGIN>\n## `main`", "`kwargs`:", " `configuration_filepath`: filepath for the `ini` configuration\n<END>", "<BEGIN>\n## `get_addresses`", "parses a raw list from zmq to get back the components that are the address\n messages are broken by the addresses in the beginning and then the\n message,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterate_multiple_addresses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterate_multiple_addresses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
transforms an iterable, or the expectation of an iterable into zmq addresses
"transforms an iterable, or the expectation of an iterable\n into zmq addresses"
68
false
benhoff/vexbot
iterate_multiple_addresses
18,626
LDU_FT/mbedmicro/pyOCD/start_program_page_with_buffer
LDU_FT
[ "<BEGIN>\n## `byte_list_to_u32le_list`", "! @brief Convert a list of bytes to a list of 32-bit integers (little endian)", " If the length of the data list is not a multiple of 4, then the pad value is used\n for the additional required bytes.\n<END>", "<BEGIN>\n## `u32le_list_to_byte_list`", "! @brief...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_program_page_with_buffer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_program_page_with_buffer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
! @brief Start flashing one or more pages.
"!\n @brief Start flashing one or more pages."
494
false
mbedmicro/pyOCD
start_program_page_with_buffer
18,627
LDU_FT/sonyxperiadev/pygerrit/_extract_version
LDU_FT
[ "<BEGIN>\n## `run`", "Listen to the stream and send events to the client.\n<END>", "<BEGIN>\n## `run_command`", "Run a command.", " :arg str command: The command to run.", " :Return: The result as a string.", " :Raises: `ValueError` if `command` is not a string.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Extract the version from `version_string` using `pattern`. Return the version as a string, with leading/trailing whitespace stripped.
"Extract the version from `version_string` using `pattern`.\n\n Return the version as a string, with leading/trailing whitespace\n stripped."
71
false
sonyxperiadev/pygerrit
_extract_version
18,628
LDU_FT/lincolnloop/salmon/_update
LDU_FT
[ "<BEGIN>\n## `generate_settings`", "This command is run when ``default_path`` doesn't exist, or ``init`` is\n run and returns a string representing the default data to put into their\n settings file.\n<END>", "<BEGIN>\n## `configure_app`", "Builds up the settings using the same method as logan\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
This method store in the datapoints in the current database. :datapoints: is a list of tupple with the epoch timestamp and value [(1368977629,10)]
"This method store in the datapoints in the current database.\n\n :datapoints: is a list of tupple with the epoch timestamp and value\n [(1368977629,10)]"
29
false
lincolnloop/salmon
_update
18,629
LDU_FT/GoogleCloudPlatform/google-cloud-datastore/add_projection
LDU_FT
[ "<BEGIN>\n## `get_default_connection`", "Returns the default datastore connection.", " Defaults endpoint to helper.get_project_endpoint_from_env() and\n credentials to helper.get_credentials_from_env().", " Use set_options to override defaults.\n<END>", "<BEGIN>\n## `get_all`", "Query for all Todo item...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_projection API. 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 add_projection API. 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...
Add projection properties to the given datatstore.Query proto message.
"Add projection properties to the given datatstore.Query proto message."
94
false
GoogleCloudPlatform/google-cloud-datastore
add_projection
18,630
LDU_FT/ymoch/apyori/gen_support_records
LDU_FT
[ "<BEGIN>\n## `create_next_candidates`", "Returns the apriori candidates as a list.", " Arguments:\n prev_candidates -- Previous candidates as a list.\n length -- The lengths of the next candidates.\n<END>", "<BEGIN>\n## `gen_support_records`", "Returns a generator of support records with gi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_support_records 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 gen_support_records 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...
Returns a generator of support records with given transactions. Arguments: transaction_manager -- Transactions as a TransactionManager instance. min_support -- A minimum support (float). Keyword arguments: max_length -- The maximum length of relations (integer).
"Returns a generator of support records with given transactions.\n\n Arguments:\n transaction_manager -- Transactions as a TransactionManager instance.\n min_support -- A minimum support (float).\n\n Keyword arguments:\n max_length -- The maximum length of relations (integer)."
39
false
ymoch/apyori
gen_support_records
18,631
LDU_FT/Falkonry/falkonry-python-client/get_historical_output
LDU_FT
[ "<BEGIN>\n## `exception_handler`", "Function that takes exception Object(<Byte>,<str>) as a parameter and returns the error message<str>\n<END>", "<BEGIN>\n## `get`", "To make a GET request to Falkonry API server\n :param url: string\n<END>", "<BEGIN>\n## `post`", "To make a POST request to Falkonr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_historical_output 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_historical_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
To get output of a historical Assessment :param assessment: string :param options: dict
"To get output of a historical Assessment\n :param assessment: string\n :param options: dict"
52
false
Falkonry/falkonry-python-client
get_historical_output
18,632
LDU_FT/grampajoe/pymosh/find
LDU_FT
[ "<BEGIN>\n## `find`", "Find the first chunk with specified header and optional list type.\n<END>", "<BEGIN>\n## `find_all`", "Find all direct children with header and optional list type.\n<END>", "<BEGIN>\n## `replace`", "Replace a child chunk with something else.\n<END>", "<BEGIN>\n## `from_data`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Find the first chunk with specified header and optional list type.
"Find the first chunk with specified header and optional list type."
10
false
grampajoe/pymosh
find
18,633
LDU_FT/tgalal/python-axolotl/addSenderKeyState
LDU_FT
[ "<BEGIN>\n## `getSignature`", ":type signatureKey: ECPrivateKey\n :type serialized: bytearray\n<END>", "<BEGIN>\n## `process`", ":param sessionRecord:\n :param message:\n :type message: PreKeyWhisperMessage\n<END>", "<BEGIN>\n## `processV2`", ":type sessionRecord: SessionRecord\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addSenderKeyState API. 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 addSenderKeyState API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
:type id: int :type iteration: int :type chainKey: bytearray :type signatureKey: ECPublicKey
":type id: int\n :type iteration: int\n :type chainKey: bytearray\n :type signatureKey: ECPublicKey"
46
false
tgalal/python-axolotl
addSenderKeyState
18,634
LDU_FT/petl-developers/petl/todataframe
LDU_FT
[ "<BEGIN>\n## `look`", "Format a portion of the table as text for inspection in an interactive\n session. E.g.::", " >>> import petl as etl\n >>> table1 = [['foo', 'bar'],\n ... ['a', 1],\n ... ['b', 2]]\n >>> etl.look(table1)\n +-----+-----+\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the todataframe API. 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 todataframe API. 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...
Load data from the given `table` into a `pandas <http://pandas.pydata.org/>`_ DataFrame. E.g.:: >>> import petl as etl >>> table = [('foo', 'bar', 'baz'), ... ('apples', 1, 2.5), ... ('oranges', 3, 4.4), ... ('pears', 7, .1)] >>> df = etl.t...
"Load data from the given `table` into a\n `pandas <http://pandas.pydata.org/>`_ DataFrame. E.g.::\n\n >>> import petl as etl\n >>> table = [('foo', 'bar', 'baz'),\n ... ('apples', 1, 2.5),\n ... ('oranges', 3, 4.4),\n ... ('pears', 7, .1)]\n >>> d...
789
false
petl-developers/petl
todataframe
18,635
LDU_FT/textmagic/textmagic-rest-python/make_request
LDU_FT
[ "<BEGIN>\n## `messages`", "Fetch messages by given session id.\n An useful synonym for \"messages/search\" command with provided `sessionId` parameter.\n Returns a list of :class:`Message` objects and a pager dict.", " :Example:", " messages = client.sessions.messages(1901001)", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_request API. 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 make_request API. 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...
Make an HTTP request. :param str method: "POST", "GET", "PUT" or "DELETE" :param str url: URL to process request. :param dict params: Params to add to the URL. :param dict data: Form data. :param dict headers: Headers to request. :param tuple auth: Username and token.
"Make an HTTP request.\n\n :param str method: \"POST\", \"GET\", \"PUT\" or \"DELETE\"\n :param str url: URL to process request.\n :param dict params: Params to add to the URL.\n :param dict data: Form data.\n :param dict headers: Headers to request.\n :param tuple auth: Username an...
112
false
textmagic/textmagic-rest-python
make_request
18,636
LDU_FT/spotify/luigi/create_marker_table
LDU_FT
[ "<BEGIN>\n## `_fetch_json`", "Returns the json representation of the dep graph\n<END>", "<BEGIN>\n## `prefix_search`", "Searches for jobs matching the given ``job_name_prefix``.\n<END>", "<BEGIN>\n## `status_search`", "Searches for jobs matching the given ``status``.\n<END>", "<BEGIN>\n## `move`", "Mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_marker_table 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_marker_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Create marker table if it doesn't exist. Using a separate connection since the transaction might have to be reset.
"Create marker table if it doesn't exist.\n\n Using a separate connection since the transaction might have to be reset."
765
false
spotify/luigi
create_marker_table
18,637
LDU_FT/cvxopt/chompack/amalgamate
LDU_FT
[ "<BEGIN>\n## `symb_to_block`", "Maps a symbolic factorization to a block-diagonal structure with\n coupling constraints.", " :param symb: :py:class:`symbolic`\n :param coupling: optional \n :return dims: list of block dimensions\n :return sparse_to_block: di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the amalgamate API. 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 amalgamate API. 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...
Supernodal amalgamation. colcount, snode, snptr, snpar, snpost = ... amalgamate(colcount, snode, snptr, snpar, snpost, merge_function) PURPOSE Iterates over the clique tree in topological order and greedily merges a supernode with its parent if merge_function(|J_{par(k)}|, |J_k...
"Supernodal amalgamation.\n\n colcount, snode, snptr, snpar, snpost = ...\n amalgamate(colcount, snode, snptr, snpar, snpost, merge_function)\n \n PURPOSE\n Iterates over the clique tree in topological order and greedily\n merges a supernode with its parent if\n\n merge_function(|J_{par(...
215
false
cvxopt/chompack
amalgamate
18,638
LDU_FT/willkg/phil/normalize_path
LDU_FT
[ "<BEGIN>\n## `normalize_path`", "Takes a path and a filetype, verifies existence and type, and\n returns absolute path.\n<END>", "<BEGIN>\n## `err`", "Writes output to stderr.", " :arg wrap: If you set ``wrap=False``, then ``err`` won't textwrap\n the output.\n<END>", "<BEGIN>\n## `out`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_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 normalize_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...
Takes a path and a filetype, verifies existence and type, and returns absolute path.
"Takes a path and a filetype, verifies existence and type, and\n returns absolute path."
12
false
willkg/phil
normalize_path
18,639
LDU_FT/CZ-NIC/python-rt/create_ticket
LDU_FT
[ "<BEGIN>\n## `__request`", "General request for :term:`API`.", " :keyword selector: End part of URL which completes self.url parameter\n set during class initialization.\n E.g.: ``ticket/123456/show``\n :keyword post_data: Dictionary with POST me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_ticket API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_ticket API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Create new ticket and set given parameters. Example of message sended to ``http://tracker.example.com/REST/1.0/ticket/new``:: content=id: ticket/new Queue: General Owner: Nobody Requestors: somebody@example.com Subject: Ticket created through REST AP...
"Create new ticket and set given parameters.\n\n Example of message sended to ``http://tracker.example.com/REST/1.0/ticket/new``::\n\n content=id: ticket/new\n Queue: General\n Owner: Nobody\n Requestors: somebody@example.com\n Subject: Ticket created throug...
143
false
CZ-NIC/python-rt
create_ticket
18,640
LDU_FT/genepattern/nbtools/open
LDU_FT
[ "<BEGIN>\n## `_try_then`", "Check to see if self has been resolved yet, if so invoke then.\n<END>", "<BEGIN>\n## `open`", "Wrapper for opening an IO object to a local file or URL\n :param path_or_url:\n :return:\n<END>", "<BEGIN>\n## `_guess_type`", "Guess the input type of the parameter based off t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Wrapper for opening an IO object to a local file or URL :param path_or_url: :return:
"Wrapper for opening an IO object to a local file or URL\n :param path_or_url:\n :return:"
16
false
genepattern/nbtools
open
18,641
LDU_FT/rasbt/biopandas/get_functions_and_classes
LDU_FT
[ "<BEGIN>\n## `docstring_to_markdown`", "Convert a Python object's docstring to markdown", " Parameters\n ----------\n docstring : str\n The docstring body.", " Returns\n ----------\n clean_lst : list\n The markdown formatted docstring as lines (str) in a Python list.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_functions_and_classes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_functions_and_classes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Retun lists of functions and classes from a package. Parameters ---------- package : python package object Returns -------- list, list : list of classes and functions Each sublist consists of [name, member] sublists.
"Retun lists of functions and classes from a package.\n\n Parameters\n ----------\n package : python package object\n\n Returns\n --------\n list, list : list of classes and functions\n Each sublist consists of [name, member] sublists."
110
false
rasbt/biopandas
get_functions_and_classes
18,642
LDU_FT/WoLpH/python-statsd/decrement
LDU_FT
[ "<BEGIN>\n## `send`", "Send the data over UDP while taking the sample_rate in account", " The sample rate should be a number between `0` and `1` which indicates\n the probability that a message will be sent. The sample_rate is also\n communicated to `statsd` so it knows what multiplier to u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrement API. 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 decrement API. 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...
Decrement the gauge with `delta` :keyword subname: The subname to report the data to (appended to the client name) :type subname: str :keyword delta: The delta to remove from the gauge :type delta: int >>> gauge = Gauge('application_name') >>> gauge.decremen...
"Decrement the gauge with `delta`\n\n :keyword subname: The subname to report the data to (appended to the\n client name)\n :type subname: str\n :keyword delta: The delta to remove from the gauge\n :type delta: int\n\n >>> gauge = Gauge('application_name')\n >>> gaug...
67
false
WoLpH/python-statsd
decrement
18,643
LDU_FT/maas/python-libmaas/remove_None
LDU_FT
[ "<BEGIN>\n## `calculate_dict_diff`", "Return the parameters based on the difference.", " If a parameter exists in `old_params` but not in `new_params` then\n parameter will be set to an empty string.\n<END>", "<BEGIN>\n## `datum_to_value`", "Convert a given MAAS-side datum to a Python-side value.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_None API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_None API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Remove all keys in `params` that have the value of `None`.
"Remove all keys in `params` that have the value of `None`."
452
false
maas/python-libmaas
remove_None
18,644
LDU_FT/geographika/mappyfile/get_keyword
LDU_FT
[ "<BEGIN>\n## `standardise_quotes`", "Change the quotes used to wrap a value to the pprint default\n E.g. \"val\" to 'val' or 'val' to \"val\"\n<END>", "<BEGIN>\n## `process_key_dict`", "Process key value dicts e.g. METADATA \"key\" \"value\"\n<END>", "<BEGIN>\n## `process_repeated_list`", "Process ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_keyword API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_keyword API. 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...
Accept a string such as BACKGROUNDCOLOR [r] [g] [b] and return backgroundcolor
"Accept a string such as BACKGROUNDCOLOR [r] [g] [b]\n and return backgroundcolor"
184
false
geographika/mappyfile
get_keyword
18,645
LDU_FT/openstates/billy/region
LDU_FT
[ "<BEGIN>\n## `decimal_format`", "Format a decimal.Decimal like to 2 decimal places.\n<END>", "<BEGIN>\n## `notification_preference`", "Display two radio buttons for turning notifications on or off.\n The default value is is have alerts_on = True.\n<END>", "<BEGIN>\n## `committee_object`", "If the commi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the region API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the region API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Context: - abbr - metadata - sessions - chambers - joint_committee_count - geo_bounds - nav_active Templates: - bill/web/public/region.html
"Context:\n - abbr\n - metadata\n - sessions\n - chambers\n - joint_committee_count\n - geo_bounds\n - nav_active\n\n Templates:\n - bill/web/public/region.html"
168
false
openstates/billy
region
18,646
LDU_FT/mlperf/training/_batch_examples
LDU_FT
[ "<BEGIN>\n## `sorted_product_set`", "Compute the product set of array_a and array_b and sort it.\n<END>", "<BEGIN>\n## `set_low_quality_matches_`", "Produce additional matches for predictions that have only low-quality matches.\n Specifically, for each ground-truth find the set of predictions that have...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _batch_examples API. 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 _batch_examples API. 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...
Group examples by similar lengths, and return batched dataset. Each batch of similar-length examples are padded to the same length, and may have different number of elements in each batch, such that: group_batch_size * padded_length <= batch_size. This decreases the number of padding tokens per batch, which...
"Group examples by similar lengths, and return batched dataset.\n\n Each batch of similar-length examples are padded to the same length, and may\n have different number of elements in each batch, such that:\n group_batch_size * padded_length <= batch_size.\n\n This decreases the number of padding tokens per batch...
1,285
true
mlperf/training
_batch_examples
18,647
LDU_FT/torchbox/wagtail-import-export/import_from_api
LDU_FT
[ "<BEGIN>\n## `export_pages`", "Create a JSON defintion of part of a site's page tree starting\n from root_page and descending into its descendants", " By default only published pages are exported.", " If a page is unpublished it and all its descendants are pruned even\n if some of those descendant...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_from_api API. 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 import_from_api API. 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...
Import a part of a source site's page tree via a direct API request from this Wagtail Admin to the source site The source site's base url and the source page id of the point in the tree to import defined what to import and the destination parent page defines where to import it to.
"Import a part of a source site's page tree via a direct API request from\n this Wagtail Admin to the source site\n\n The source site's base url and the source page id of the point in the\n tree to import defined what to import and the destination parent page\n defines where to import it to."
18
false
torchbox/wagtail-import-export
import_from_api
18,648
LDU_FT/sbusard/wagoner/weighted_choices
LDU_FT
[ "<BEGIN>\n## `random_weighted_choice`", "Return a random key of choices, weighted by their value.", " :param choices: a dictionary of keys and positive integer pairs;\n :return: a random key of choices.\n<END>", "<BEGIN>\n## `extract_words`", "Extract from the given iterable of lines the list of words...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the weighted_choices API. 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 weighted_choices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return the weighted choices for word from this table. :param word: the word (as a string); :param exclude: if not None, a set of characters to exclude from the weighted choices; :param flatten: whether or not consider this table as flattened; :return: the...
"Return the weighted choices for word from this table.\n \n :param word: the word (as a string);\n :param exclude: if not None, a set of characters to exclude from the\n weighted choices;\n :param flatten: whether or not consider this table as flattened;\n :retu...
37
false
sbusard/wagoner
weighted_choices
18,649
LDU_FT/angr/pyvex/extend
LDU_FT
[ "<BEGIN>\n## `lift`", "This is the main body of the \"lifting\" for the instruction.\n This can/should be overriden to provide the general flow of how instructions in your arch work.\n For example, in MSP430, this is:", " - Figure out what your operands are by parsing the addressing, and lo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend API. 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 extend API. 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 ...
Appends an irsb to the current irsb. The irsb that is appended is invalidated. The appended irsb's jumpkind and default exit are used. :param extendwith: The IRSB to append to this IRSB :vartype extendwith: :class:`IRSB`
"Appends an irsb to the current irsb. The irsb that is appended is invalidated. The appended irsb's jumpkind and\n default exit are used.\n :param extendwith: The IRSB to append to this IRSB\n :vartype extendwith: :class:`IRSB`"
87
false
angr/pyvex
extend
18,650
LDU_FT/Rockhopper-Technologies/pluginlib/_process_blacklist
LDU_FT
[ "<BEGIN>\n## `_items`", "Args:\n type_filter(list): Optional iterable of types to return (GroupDict only)\n name(str): Only return key by this name", " Alternative generator for items() method\n<END>", "<BEGIN>\n## `_filter`", "Args:\n blacklist(tuple): Iterable of of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_blacklist 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 _process_blacklist 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...
Process blacklist into set of excluded versions
"Process blacklist into set of excluded versions"
65
false
Rockhopper-Technologies/pluginlib
_process_blacklist
18,651
LDU_FT/inbo/pyinaturalist/put_observation_field_values
LDU_FT
[ "<BEGIN>\n## `make_inaturalist_api_get_call`", "Make an API call to iNaturalist.", " endpoint is a string such as 'observations' !! do not put / in front\n method: 'GET', 'HEAD', 'POST', 'PUT', 'PATCH', 'DELETE'\n kwargs are passed to requests.request\n Returns a requests.Response object\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_observation_field_values 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 put_observation_field_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Sets an observation field (value) on an observation. :param observation_id: :param observation_field_id: :param value :param access_token: access_token: the access token, as returned by :func:`get_access_token()` :returns: iNaturalist's response as a dict, for example: {'id': 31, ...
"Sets an observation field (value) on an observation.\n\n :param observation_id:\n :param observation_field_id:\n :param value\n :param access_token: access_token: the access token, as returned by :func:`get_access_token()`\n\n :returns: iNaturalist's response as a dict, for example:\n {'id': ...
45
false
inbo/pyinaturalist
put_observation_field_values
18,652
LDU_FT/openvax/sercol/short_string
LDU_FT
[ "<BEGIN>\n## `clone_with_new_elements`", "Create another Collection of the same class and with same state but\n possibly different entries. Extra parameters to control which keyword\n arguments get passed to the initializer are necessary since derived\n classes have different constructors tha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the short_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the short_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Compact string representation which doesn't print any of the collection elements.
"Compact string representation which doesn't print any of the\n collection elements."
24
false
openvax/sercol
short_string
18,653
LDU_FT/googleapis/google-auth-library-python/_convert_appengine_app_assertion_credentials
LDU_FT
[ "<BEGIN>\n## `_convert_oauth2_credentials`", "Converts to :class:`google.oauth2.credentials.Credentials`.", " Args:\n credentials (Union[oauth2client.client.OAuth2Credentials,\n oauth2client.client.GoogleCredentials]): The credentials to\n convert.", " Returns:\n goog...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_appengine_app_assertion_credentials API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ind...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_appengine_app_assertion_credentials API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ind...
Converts to :class:`google.auth.app_engine.Credentials`. Args: credentials (oauth2client.contrib.app_engine.AppAssertionCredentials): The credentials to convert. Returns: google.oauth2.service_account.Credentials: The converted credentials.
"Converts to :class:`google.auth.app_engine.Credentials`.\n\n Args:\n credentials (oauth2client.contrib.app_engine.AppAssertionCredentials):\n The credentials to convert.\n\n Returns:\n google.oauth2.service_account.Credentials: The converted credentials."
311
false
googleapis/google-auth-library-python
_convert_appengine_app_assertion_credentials
18,654
LDU_FT/inveniosoftware/invenio-collections/delete_collection_percolator
LDU_FT
[ "<BEGIN>\n## `query`", "Parse query string using given grammar.", " :returns: AST that represents the query in the given grammar.\n<END>", "<BEGIN>\n## `index`", "Query Elasticsearch using \"collection\" param in query string.\n<END>", "<BEGIN>\n## `apply`", "Enhance the query restricting not per...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_collection_percolator 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 delete_collection_percolator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Delete percolator associated with the new collection. :param target: Collection where the percolator was attached.
"Delete percolator associated with the new collection.\n\n :param target: Collection where the percolator was attached."
33
false
inveniosoftware/invenio-collections
delete_collection_percolator
18,655
LDU_FT/zeth/inputs/__handle_changed_state
LDU_FT
[ "<BEGIN>\n## `chunks`", "Yield successive EVENT_SIZE sized chunks from raw.\n<END>", "<BEGIN>\n## `quartz_mouse_process`", "Single subprocess for reading mouse events on Mac using newer Quartz.\n<END>", "<BEGIN>\n## `appkit_mouse_process`", "Single subprocess for reading mouse events on Mac using older Ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __handle_changed_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __handle_changed_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
we need to pack a struct with the following five numbers: tv_sec, tv_usec, ev_type, code, value then write it using __write_to_character_device seconds, mircroseconds, ev_type, code, value time we just use now ev_type we look up code we look up value is 0 or 1 f...
"we need to pack a struct with the following five numbers:\n tv_sec, tv_usec, ev_type, code, value\n\n then write it using __write_to_character_device\n\n seconds, mircroseconds, ev_type, code, value\n time we just use now\n ev_type we look up\n code we look up\n value i...
109
false
zeth/inputs
__handle_changed_state
18,656
LDU_FT/SylvanasSun/FishFishJump/get_load_status
LDU_FT
[ "<BEGIN>\n## `hash`", "function hash() implement to acquire hash value that use simply method that weighted sum.", " Parameters:\n -----------\n value: string\n the value is param of need acquire hash\n Returns:\n --------\n result...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_load_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_load_status API. 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...
To check the load status of a service. :return: a dictionary that include json data. example: { "status": "ok", "running": "0", "pending": "0", "finished": "0", "node_name": "node-name" }
"To check the load status of a service.\n :return: a dictionary that include json data.\n example: { \"status\": \"ok\", \"running\": \"0\", \"pending\": \"0\", \"finished\": \"0\", \"node_name\": \"node-name\" }"
97
false
SylvanasSun/FishFishJump
get_load_status
18,657
LDU_FT/google/pyu2f/OpenDevice
LDU_FT
[ "<BEGIN>\n## `ToByteArray`", "Serialize the command.", " Encodes the command as per the U2F specs, using the standard\n ISO 7816-4 extended encoding. All Commands expect data, so\n Le is always present.", " Returns:\n Python bytearray of the encoded command.\n<END>", "<BEGIN>\n## `_BuildPl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the OpenDevice API. 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 OpenDevice API. 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...
Open the device and return a handle to it.
"Open the device and return a handle to it."
95
false
google/pyu2f
OpenDevice
18,658
LDU_FT/seb-m/pyinotify/watch_transient_file
LDU_FT
[ "<BEGIN>\n## `compatibility_mode`", "Use this function to turn on the compatibility mode. The compatibility\n mode is used to improve compatibility with Pyinotify 0.7.1 (or older)\n programs. The compatibility mode provides additional variables 'is_dir',\n 'event_name', 'EventsCodes.IN_*' and 'EventsCode...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watch_transient_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watch_transient_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. ...
Watch a transient file, which will be created and deleted frequently over time (e.g. pid file). @attention: Currently under the call to this function it is not possible to correctly watch the events triggered into the same base directory than the directory where is located this watched ...
"Watch a transient file, which will be created and deleted frequently\n over time (e.g. pid file).\n\n @attention: Currently under the call to this function it is not\n possible to correctly watch the events triggered into the same\n base directory than the directory where is located this wa...
107
false
seb-m/pyinotify
watch_transient_file
18,659
LDU_FT/SALib/SALib/sample
LDU_FT
[ "<BEGIN>\n## `analyze`", "Perform a fractional factorial analysis", " Returns a dictionary with keys 'ME' (main effect) and 'IE' (interaction\n effect). The techniques bulks out the number of parameters with dummy\n parameters to the nearest 2**n. Any results involving dummy parameters\n could indi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample API. 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 sample API. 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 ...
Generate (N x D) numpy array of Sobol sequence samples
"Generate (N x D) numpy array of Sobol sequence samples"
249
false
SALib/SALib
sample
18,660
LDU_FT/nmdp-bioinformatics/SeqAnn/find_features
LDU_FT
[ "<BEGIN>\n## `search_seqs`", "search_seqs - method for annotating a BioPython sequence without alignment", " :param seqrec: The reference sequence\n :type seqrec: SeqRecord\n :param locus: The gene locus associated with the sequence.\n :type locus: str\n :param in_seq: The inp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_features API. 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 find_features API. 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...
find_features - Finds the reference sequence features in the alignments and records the positions :param feats: Dictonary of sequence features :type feats: ``dict`` :param sequ: The sequence alignment for the input sequence :type sequ: ``List`` :param annotated: dictonary of the annotated features...
"find_features - Finds the reference sequence features in the alignments and records the positions \n\n :param feats: Dictonary of sequence features\n :type feats: ``dict``\n :param sequ: The sequence alignment for the input sequence\n :type sequ: ``List``\n :param annotated: dictonary of the annotated f...
112
false
nmdp-bioinformatics/SeqAnn
find_features
18,661
LDU_FT/getnikola/coil/serve_assets
LDU_FT
[ "<BEGIN>\n## `orphans_single`", "Remove all orphans in the site, in the single user-mode.\n<END>", "<BEGIN>\n## `password_hash`", "Hash the password, using bcrypt+sha256.", " .. versionchanged:: 1.1.0", " :param str password: Password in plaintext\n :return: password hash\n :rtype: str\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serve_assets API. 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 serve_assets API. 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...
Serve Nikola assets. This is meant to be used ONLY by the internal dev server. Please configure your web server to handle requests to this URL:: /assets/ => output/assets
"Serve Nikola assets.\n\n This is meant to be used ONLY by the internal dev server.\n Please configure your web server to handle requests to this URL::\n\n /assets/ => output/assets"
68
false
getnikola/coil
serve_assets
18,662
LDU_FT/gabstopper/smc-python/add_layer3_vlan_interface
LDU_FT
[ "<BEGIN>\n## `element_href`", "Get specified element href by element name", " :param name: name of element\n :return: string href location of object, else None\n<END>", "<BEGIN>\n## `element_as_json`", "Get specified element json data by name", " :param name: name of element\n :return: json da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_layer3_vlan_interface 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 add_layer3_vlan_interface API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Add a Layer 3 VLAN interface. Optionally specify an address and network if assigning an IP to the VLAN. This method will also assign an IP address to an existing VLAN, or add an additional address to an existing VLAN. This method may commonly be used on a Master Engine to create VLANs for virtua...
"Add a Layer 3 VLAN interface. Optionally specify an address and network if\n assigning an IP to the VLAN. This method will also assign an IP address to\n an existing VLAN, or add an additional address to an existing VLAN. This\n method may commonly be used on a Master Engine to create VLANs for vi...
1,703
true
gabstopper/smc-python
add_layer3_vlan_interface
18,663
LDU_FT/bububa/pyTOP/delete
LDU_FT
[ "<BEGIN>\n## `ordersku_update`", "taobao.trade.ordersku.update 更新交易订单的销售属性", " 需要商家或以上权限才可调用此接口,可重复调用本接口更新交易备注,本接口同时具有添加备注的功能\n<END>", "<BEGIN>\n## `get`", "taobao.topats.result.get 获取异步任务结果", " 使用指南:http://open.taobao.com/doc/detail.htm?id=30 ", " - 1.此接口用于获取异步任务处理的结果,传入的task_id必需属...
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 ...
xxxxx.xxxxx.keywords.delete =================================== 删除一批关键词
"xxxxx.xxxxx.keywords.delete\n ===================================\n 删除一批关键词"
619
false
bububa/pyTOP
delete
18,664
LDU_FT/hardbyte/python-can/set_logging_level
LDU_FT
[ "<BEGIN>\n## `open`", "Opens a CAN connection using `CanalOpen()`.", " :param str configuration: the configuration: \"device_id; baudrate\"\n :param int flags: the flags to be set", " :raises can.CanError: if any error occurred\n :returns: Valid handle for CANAL API functions on su...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_logging_level API. 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 set_logging_level API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Set the logging level for the "can" logger. Expects one of: 'critical', 'error', 'warning', 'info', 'debug', 'subdebug'
"Set the logging level for the \"can\" logger.\n Expects one of: 'critical', 'error', 'warning', 'info', 'debug', 'subdebug'"
417
false
hardbyte/python-can
set_logging_level
18,665
LDU_FT/sveetch/boussole/get_relative_from_paths
LDU_FT
[ "<BEGIN>\n## `clean`", "Filter given settings to keep only key names available in\n ``DEFAULT_SETTINGS``.", " Args:\n settings (dict): Loaded settings.", " Returns:\n dict: Settings object filtered.\n<END>", "<BEGIN>\n## `set_settings`", "Set every given settings...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_relative_from_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_relative_from_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Find the relative filepath from the most relevant multiple paths. This is somewhat like a ``os.path.relpath(path[, start])`` but where ``start`` is a list. The most relevant item from ``paths`` will be used to apply the relative transform. Args: filepath (str): Path to tran...
"Find the relative filepath from the most relevant multiple paths.\n\n This is somewhat like a ``os.path.relpath(path[, start])`` but where\n ``start`` is a list. The most relevant item from ``paths`` will be used\n to apply the relative transform.\n\n Args:\n filepath (str): Path...
289
false
sveetch/boussole
get_relative_from_paths
18,666
LDU_FT/tkarabela/pysubs2/import_styles
LDU_FT
[ "<BEGIN>\n## `make_time`", "Convert time to milliseconds.", " See :func:`pysubs2.time.times_to_ms()`. When both frames and fps are specified,\n :func:`pysubs2.time.frames_to_ms()` is called instead.", " Raises:\n ValueError: Invalid fps, or one of frames/fps is missing.", " Example:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_styles API. 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 import_styles API. 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...
Merge in styles from other SSAFile. Arguments: subs (SSAFile): Subtitle file imported from. overwrite (bool): On name conflict, use style from the other file (default: True).
"Merge in styles from other SSAFile.\n\n Arguments:\n subs (SSAFile): Subtitle file imported from.\n overwrite (bool): On name conflict, use style from the other file\n (default: True)."
94
false
tkarabela/pysubs2
import_styles
18,667
LDU_FT/scottgigante/tasklogger/set_timer
LDU_FT
[ "<BEGIN>\n## `set_level`", "Set the logging level", " Parameters\n ----------\n level : `int` or `bool` (optional, default: 1)\n If False or 0, prints WARNING and higher messages.\n If True or 1, prints INFO and higher messages.\n If 2 or higher, prints all ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_timer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_timer API. 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...
Set the timer function Convenience function to set the task timer Parameters ---------- timer : {'wall', 'cpu', or callable}, optional, default='wall' Timer function used to measure task running times. 'wall' uses `time.time`, 'cpu' uses `time.process_time` Returns ---...
"Set the timer function\n\n Convenience function to set the task timer\n\n Parameters\n ----------\n timer : {'wall', 'cpu', or callable}, optional, default='wall'\n Timer function used to measure task running times.\n 'wall' uses `time.time`, 'cpu' uses `time.process_time`\n\n Retu...
65
false
scottgigante/tasklogger
set_timer
18,668
LDU_FT/umutbozkurt/django-rest-framework-mongoengine/_get_dynamic_data
LDU_FT
[ "<BEGIN>\n## `to_representation`", "convert value to representation.", " DRF ModelField uses ``value_to_string`` for this purpose. Mongoengine fields do not have such method.", " This implementation uses ``django.utils.encoding.smart_text`` to convert everything to text, while keeping json-safe ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_dynamic_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_dynamic_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...
Returns dict of data, not declared in serializer fields. Should be called after self.is_valid().
"Returns dict of data, not declared in serializer fields.\n Should be called after self.is_valid()."
36
false
umutbozkurt/django-rest-framework-mongoengine
_get_dynamic_data
18,669
LDU_FT/delfick/gitmit/find
LDU_FT
[ "<BEGIN>\n## `relpath_for`", "Find the relative path from here from the parent_dir\n<END>", "<BEGIN>\n## `find`", "Find all the files we want to find commit times for, and any extra files\n under symlinks.", " Then find the commit times for those files and return a dictionary of\n {rela...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Find all the files we want to find commit times for, and any extra files under symlinks. Then find the commit times for those files and return a dictionary of {relative_path: commit_time_as_epoch}
"Find all the files we want to find commit times for, and any extra files\n under symlinks.\n\n Then find the commit times for those files and return a dictionary of\n {relative_path: commit_time_as_epoch}"
57
false
delfick/gitmit
find
18,670
LDU_FT/santosjorge/cufflinks/add_atr
LDU_FT
[ "<BEGIN>\n## `to_df`", "Extracts the data from a Plotly Figure", " Parameters\n ----------\n figure : plotly_figure\n Figure from which data will be \n extracted", " Returns a DataFrame or list of DataFrame\n<END>", "<BEGIN>\n## `to_rgba`", "Converts from hex|rgb ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_atr API. 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 add_atr API. 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...
Add Average True Range (ATR) study to QuantFigure.studies Parameters: periods : int or list(int) Number of periods name : string Name given to the study str : string Label factory for studies The following wildcards can be used: {name} : Name of the column {study} : Name of the stu...
"Add Average True Range (ATR) study to QuantFigure.studies\n\n\t\tParameters:\n\t\t\tperiods : int or list(int)\n\t\t\t\tNumber of periods\n\t\t\tname : string\n\t\t\t\tName given to the study\n\t\t\tstr : string\n\t\t\t\tLabel factory for studies\n\t\t\t\tThe following wildcards can be used:\n\t\t\t\t\t{name} : Name o...
328
false
santosjorge/cufflinks
add_atr
18,671
LDU_FT/qweeze/wex-api-client/depth
LDU_FT
[ "<BEGIN>\n## `ticker`", "This method provides all the information about currently active pairs, such as: the maximum price,\n the minimum price, average price, trade volume, trade volume in currency, the last trade, Buy and Sell price.\n All information is provided over the past 24 hours.\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the depth API. 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 depth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
This method provides the information about active orders on the pair. :param str or iterable pair: pair (ex. 'btc_usd' or ['btc_usd', 'eth_usd']) :param limit: how many orders should be displayed (150 by default, max 5000) :param int ignore_invalid: ignore non-existing pairs
"This method provides the information about active orders on the pair.\n :param str or iterable pair: pair (ex. 'btc_usd' or ['btc_usd', 'eth_usd'])\n :param limit: how many orders should be displayed (150 by default, max 5000)\n :param int ignore_invalid: ignore non-existing pairs"
23
false
qweeze/wex-api-client
depth
18,672