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/HazardDede/argresolver/get_field_mro
LDU_FT
[ "<BEGIN>\n## `get_class_that_defined_method`", "Tries to find the class that defined the specified method. Will not work for nested classes\n (locals).", " Args:\n fun: Function / Method", " Returns:\n Returns the class which defines the given method / function.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field_mro API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field_mro API. 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...
Goes up the mro and looks for the specified field.
"Goes up the mro and looks for the specified field."
21
false
HazardDede/argresolver
get_field_mro
12,173
LDU_FT/bkjones/pyrabbit/get_vhost_permissions
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 get_vhost_permissions 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_vhost_permissions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
:returns: list of dicts, or an empty list if there are no permissions. :param string vname: Name of the vhost to set perms on.
":returns: list of dicts, or an empty list if there are no permissions.\n\n :param string vname: Name of the vhost to set perms on."
112
false
bkjones/pyrabbit
get_vhost_permissions
12,174
LDU_FT/ekiro/haps/register_scope
LDU_FT
[ "<BEGIN>\n## `inject`", "A decorator for injection dependencies into functions/methods, based\n on their type annotations.", " .. code-block:: python", " class SomeClass:\n @inject\n def __init__(self, my_dep: DepType) -> None:\n self.my_dep = my_dep", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_scope API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_scope API. 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...
Register new scopes which should be subclass of `Scope` :param name: Name of new scopes :param scope_class: Class of new scopes
"Register new scopes which should be subclass of `Scope`\n\n :param name: Name of new scopes\n :param scope_class: Class of new scopes"
50
false
ekiro/haps
register_scope
12,175
LDU_FT/horazont/aioxmpp/wait_for
LDU_FT
[ "<BEGIN>\n## `get_commands`", "Return the list of commands offered by the peer.", " :param peer_jid: JID of the peer to query\n :type peer_jid: :class:`~aioxmpp.JID`\n :rtype: :class:`list` of :class:`~.disco.xso.Item`\n :return: List of command items", " In the returned lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Wait for an exact state `new_state` to be reached by the state machine. If the state is skipped, that is, if a state which is greater than `new_state` is written to :attr:`state`, the coroutine raises :class:`OrderedStateSkipped` exception as it is not possible anymore that it c...
"Wait for an exact state `new_state` to be reached by the state\n machine.\n\n If the state is skipped, that is, if a state which is greater than\n `new_state` is written to :attr:`state`, the coroutine raises\n :class:`OrderedStateSkipped` exception as it is not possible anymore\n th...
1,660
true
horazont/aioxmpp
wait_for
12,176
LDU_FT/nikcub/floyd/P
LDU_FT
[ "<BEGIN>\n## `get_file_contents`", "Get the context of the file using full path name\n<END>", "<BEGIN>\n## `import_model`", "imports a model of name from path, returning from local model\n cache if it has been previously loaded otherwise importing\n<END>", "<BEGIN>\n## `parse_md`", "Takes a post path a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the P API. 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 docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the P API. 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 docum...
Time, in 12-hour hours, minutes and 'a.m.'/'p.m.', with minutes left off if they're zero and the strings 'midnight' and 'noon' if appropriate. Examples: '1 a.m.', '1:30 p.m.', 'midnight', 'noon', '12:30 p.m.' Proprietary extension.
"Time, in 12-hour hours, minutes and 'a.m.'/'p.m.', with minutes left off\n if they're zero and the strings 'midnight' and 'noon' if appropriate.\n Examples: '1 a.m.', '1:30 p.m.', 'midnight', 'noon', '12:30 p.m.'\n Proprietary extension."
71
false
nikcub/floyd
P
12,177
LDU_FT/se-esss-litterbox/Pynac/dynacRepresentation
LDU_FT
[ "<BEGIN>\n## `from_dynacRepr`", "Construct a ``Quad`` instance from the Pynac lattice element\n<END>", "<BEGIN>\n## `scaleField`", "Adjust the field of the magnet by the value of ``scalingFactor``. The adjustment\n is multiplicative, so a value of ``scalingFactor = 1.0`` will result in no change\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dynacRepresentation 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 dynacRepresentation 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...
Return the Pynac representation of this quadrupole instance.
"Return the Pynac representation of this quadrupole instance."
52
false
se-esss-litterbox/Pynac
dynacRepresentation
12,178
LDU_FT/torfsen/service/stop
LDU_FT
[ "<BEGIN>\n## `_detach_process`", "Detach daemon process.", " Forks the current process into a parent and a detached child. The\n child process resides in its own process group, has no controlling\n terminal attached and is cleaned up by the init process.", " Returns ``True`` for the parent and ``F...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Tell the daemon process to stop. Sends the SIGTERM signal to the daemon process, requesting it to terminate. If ``block`` is true then the call blocks until the daemon process has exited. This may take some time since the daemon process will complete its on-going backup activit...
"Tell the daemon process to stop.\n\n Sends the SIGTERM signal to the daemon process, requesting it\n to terminate.\n\n If ``block`` is true then the call blocks until the daemon\n process has exited. This may take some time since the daemon\n process will complete its on-going backup...
40
false
torfsen/service
stop
12,179
LDU_FT/frc1418/tbapy/match
LDU_FT
[ "<BEGIN>\n## `_get`", "Helper method: GET data from given URL on TBA's API.", " :param url: URL string to get data from.\n :return: Requested data in JSON format.\n<END>", "<BEGIN>\n## `_post`", "Helper method: POST data to a given URL on TBA's API.", " :param url: URL string to post ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Get data on a match. You may either pass the match's key directly, or pass `year`, `event`, `type`, `match` (the match number), and `round` if applicable (playoffs only). The event year may be specified as part of the event key or specified in the `year` parameter. :param key: Key of match to get data...
"Get data on a match.\n\n You may either pass the match's key directly, or pass `year`, `event`, `type`, `match` (the match number), and `round` if applicable (playoffs only). The event year may be specified as part of the event key or specified in the `year` parameter.\n\n :param key: Key of match to get...
66
false
frc1418/tbapy
match
12,180
LDU_FT/fatiando/pooch/get_url
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new :class:`~pooch.Pooch` with sensible defaults to fetch data files.", " If a version string is given, the Pooch will be versioned, meaning that the local\n storage folder and the base URL depend on the project version. This is necessary\n if your users have multiple ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Get the full URL to download a file in the registry. Parameters ---------- fname : str The file name (relative to the *base_url* of the remote data storage) to fetch from the local storage.
"Get the full URL to download a file in the registry.\n\n Parameters\n ----------\n fname : str\n The file name (relative to the *base_url* of the remote data storage) to\n fetch from the local storage."
69
false
fatiando/pooch
get_url
12,181
LDU_FT/Datary/scrapbag/dict2orderedlist
LDU_FT
[ "<BEGIN>\n## `parse_spss_headerfile`", "Parse spss header file", " Arguments:\n path {str} -- path al fichero de cabecera.\n leyend_position -- posicion del la leyenda en el header.\n<END>", "<BEGIN>\n## `parse_spss_datafile`", "Parse spss data file", " Arguments:\n path {str} -...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict2orderedlist API. 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 dict2orderedlist API. 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 a list with dict values ordered by a list of key passed in args.
"Return a list with dict values ordered by a list of key passed in args."
119
false
Datary/scrapbag
dict2orderedlist
12,182
LDU_FT/koehlma/pygrooveshark/song
LDU_FT
[ "<BEGIN>\n## `artist`", ":class:`Artist` object of album's artist\n<END>", "<BEGIN>\n## `export`", "Returns a dictionary with all album information.\n Use the :meth:`from_export` method to recreate the\n :class:`Album` object.\n<END>", "<BEGIN>\n## `export`", "Returns a dictionary with all s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the song API. 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 song API. 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...
:class:`Song` object of next song to play
":class:`Song` object of next song to play"
52
false
koehlma/pygrooveshark
song
12,183
LDU_FT/junzis/pyModeS/crc
LDU_FT
[ "<BEGIN>\n## `category`", "Aircraft category number", " Args:\n msg (string): 28 bytes hexadecimal message string", " Returns:\n int: category number\n<END>", "<BEGIN>\n## `callsign`", "Aircraft callsign", " Args:\n msg (string): 28 bytes hexadecimal message string", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Mode-S Cyclic Redundancy Check Detect if bit error occurs in the Mode-S message Args: msg (string): 28 bytes hexadecimal message string encode (bool): True to encode the date only and return the checksum Returns: string: message checksum, or partity bits (encoder)
"Mode-S Cyclic Redundancy Check\n Detect if bit error occurs in the Mode-S message\n Args:\n msg (string): 28 bytes hexadecimal message string\n encode (bool): True to encode the date only and return the checksum\n Returns:\n string: message checksum, or partity bits (encoder)"
310
false
junzis/pyModeS
crc
12,184
LDU_FT/jasedit/pymmd/manifest
LDU_FT
[ "<BEGIN>\n## `_expand_source`", "Expands source text to include headers, footers, and expands Multimarkdown transclusion\n directives.", " Keyword arguments:\n source -- string containing the Multimarkdown text to expand\n dname -- directory name to use as the base directory for transclusion referen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the manifest API. 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 manifest API. 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...
Extracts file manifest for a body of text with the given directory.
"Extracts file manifest for a body of text with the given directory."
21
false
jasedit/pymmd
manifest
12,185
LDU_FT/nbedi/typecaster/publish
LDU_FT
[ "<BEGIN>\n## `convert_to_ssml`", "Convert text to SSML based on the text's current format. NOTE: This module\n is extremely limited at the moment and will be expanded.", " :param text:\n The text to convert.\n :param text_format:\n The text format of the text. Currently supports 'plain', ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publish API. 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 publish API. 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...
Publish a set of episodes to the Podcast's RSS feed. :param titles: Either a single episode title or a sequence of episode titles to publish.
"Publish a set of episodes to the Podcast's RSS feed.\n\n :param titles:\n Either a single episode title or a sequence of episode titles to\n publish."
27
false
nbedi/typecaster
publish
12,186
LDU_FT/rkhleics/police-api-client-python/get_crimes_area
LDU_FT
[ "<BEGIN>\n## `get_forces`", "Get a list of all police forces. Uses the forces_ API call.", " .. _forces: https://data.police.uk/docs/method/forces/", " :rtype: list\n :return: A list of :class:`forces.Force` objects (one for each police\n force represented in the API)\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_crimes_area API. 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_crimes_area API. 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...
Get crimes within a custom area. Uses the crime-street_ API call. .. _crime-street: https//data.police.uk/docs/method/crime-street/ :rtype: list :param list points: A ``list`` of ``(lat, lng)`` tuples. :param date: The month in which the crimes were reported in the format ...
"Get crimes within a custom area. Uses the crime-street_ API call.\n\n .. _crime-street: https//data.police.uk/docs/method/crime-street/\n\n :rtype: list\n :param list points: A ``list`` of ``(lat, lng)`` tuples.\n :param date: The month in which the crimes were reported in the format\n ...
43
false
rkhleics/police-api-client-python
get_crimes_area
12,187
LDU_FT/adafruit/Adafruit_Python_DHT/read_retry
LDU_FT
[ "<BEGIN>\n## `get_platform`", "Return a DHT platform interface for the currently detected platform.\n<END>", "<BEGIN>\n## `read`", "Read DHT sensor of specified sensor type (DHT11, DHT22, or AM2302) on\n specified pin and return a tuple of humidity (as a floating point value\n in percent) and temperatur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_retry API. 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 read_retry API. 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...
Read DHT sensor of specified sensor type (DHT11, DHT22, or AM2302) on specified pin and return a tuple of humidity (as a floating point value in percent) and temperature (as a floating point value in Celsius). Unlike the read function, this read_retry function will attempt to read multiple times (up to ...
"Read DHT sensor of specified sensor type (DHT11, DHT22, or AM2302) on\n specified pin and return a tuple of humidity (as a floating point value\n in percent) and temperature (as a floating point value in Celsius).\n Unlike the read function, this read_retry function will attempt to read\n multiple times (u...
13
false
adafruit/Adafruit_Python_DHT
read_retry
12,188
LDU_FT/dwavesystems/dwave-cloud-client/_retrieve_problem
LDU_FT
[ "<BEGIN>\n## `ls`", "List configuration files detected (and/or examined paths).\n<END>", "<BEGIN>\n## `create`", "Create and/or update cloud client configuration file.\n<END>", "<BEGIN>\n## `_ping`", "Helper method for the ping command that uses `output()` for info output\n and raises `CLIError()` on h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _retrieve_problem API. 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 _retrieve_problem API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Resume polling for a problem previously submitted. Args: id_: Identification of the query. Returns: :obj: `Future`
"Resume polling for a problem previously submitted.\n\n Args:\n id_: Identification of the query.\n\n Returns:\n :obj: `Future`"
339
false
dwavesystems/dwave-cloud-client
_retrieve_problem
12,189
LDU_FT/ralphbean/taskw/encode_task
LDU_FT
[ "<BEGIN>\n## `_stub_task`", "Given a description, stub out a task dict.\n<END>", "<BEGIN>\n## `_extract_annotations_from_task`", "Removes annotations from a task and returns a list of annotations\n<END>", "<BEGIN>\n## `task_add`", "Add a new task.", " Takes any of the keywords allowed by taskwarr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_task API. 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 encode_task API. 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 dict-like task to its string representation
"Convert a dict-like task to its string representation"
62
false
ralphbean/taskw
encode_task
12,190
LDU_FT/10gen/mongo-orchestration/command
LDU_FT
[ "<BEGIN>\n## `_host`", "Get the Host from the most recent HTTP request.\n<END>", "<BEGIN>\n## `wait_for`", "waits while process starts.\n Args:\n port_num - port number\n timeout - specify how long, in seconds, a command can take before times out.\n return True if process started, r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
run command Args: server_id - server identity command - command which apply to server
"run command\n Args:\n server_id - server identity\n command - command which apply to server"
153
false
10gen/mongo-orchestration
command
12,191
LDU_FT/spookylukey/django-paypal/ipn
LDU_FT
[ "<BEGIN>\n## `render_payment_form`", "Display the DirectPayment for entering payment information.\n<END>", "<BEGIN>\n## `validate_payment_form`", "Try to validate and then process the DirectPayment form.\n<END>", "<BEGIN>\n## `redirect_to_express`", "First step of ExpressCheckout. Redirect the request to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ipn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ipn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
PayPal IPN endpoint (notify_url). Used by both PayPal Payments Pro and Payments Standard to confirm transactions. http://tinyurl.com/d9vu9d PayPal IPN Simulator: https://developer.paypal.com/cgi-bin/devscr?cmd=_ipn-link-session
"PayPal IPN endpoint (notify_url).\n Used by both PayPal Payments Pro and Payments Standard to confirm transactions.\n http://tinyurl.com/d9vu9d\n\n PayPal IPN Simulator:\n https://developer.paypal.com/cgi-bin/devscr?cmd=_ipn-link-session"
65
false
spookylukey/django-paypal
ipn
12,192
LDU_FT/OpenGov/og-python-utils/repeat_read_json_url_request
LDU_FT
[ "<BEGIN>\n## `build_default_logger`", "Generates a logger that outputs messages in the same format as default Flask applications.\n<END>", "<BEGIN>\n## `debug_generate`", "Used for efficient debug logging, where the actual message isn't evaluated unless it\r\n will actually be accepted by the logger.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repeat_read_json_url_request 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 repeat_read_json_url_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Allows for repeated http requests up to retries additional times with convienence wrapper on jsonization of response
"Allows for repeated http requests up to retries additional times with convienence\r\n wrapper on jsonization of response"
43
false
OpenGov/og-python-utils
repeat_read_json_url_request
12,193
LDU_FT/joausaga/ideascaly/vote_up_idea
LDU_FT
[ "<BEGIN>\n## `parse_list`", "Parse a list of JSON objects into\n a result set of model instances.\n<END>", "<BEGIN>\n## `pack_image`", "Pack an image from file into multipart-formdata post body\n<END>", "<BEGIN>\n## `get_all_comments`", ":pagination_param: 'page_number', 'page_size'\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vote_up_idea API. 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 vote_up_idea API. 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...
:allowed_param: 'ideaId', 'myVote' (optional)
":allowed_param: 'ideaId', 'myVote' (optional)"
14
false
joausaga/ideascaly
vote_up_idea
12,194
LDU_FT/steffann/pylisp/read_afi_address_from_bitstream
LDU_FT
[ "<BEGIN>\n## `from_bytes`", "Look at the type of the message, instantiate the correct class and\n let it parse the message.\n<END>", "<BEGIN>\n## `sanitize`", "Check if the current settings conform to the LISP specifications and\n fix them where possible.\n<END>", "<BEGIN>\n## `calculate_authe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_afi_address_from_bitstream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_afi_address_from_bitstream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
This function decodes an AFI address from a readable bitstream: >>> from bitstring import ConstBitStream This is an example of an IPv4 address: >>> afi_address = '0001c00002ab'.decode('hex') >>> bitstream = ConstBitStream(bytes=afi_address) >>> read_afi_address_from_bitstream(bitstream) IPv4Add...
"This function decodes an AFI address from a readable bitstream:\n >>> from bitstring import ConstBitStream\n\n This is an example of an IPv4 address:\n >>> afi_address = '0001c00002ab'.decode('hex')\n >>> bitstream = ConstBitStream(bytes=afi_address)\n >>> read_afi_address_from_bitstream(bitstream)\n ...
85
false
steffann/pylisp
read_afi_address_from_bitstream
12,195
LDU_FT/bblfsh/client-python/iterator
LDU_FT
[ "<BEGIN>\n## `parse`", "Queries the Babelfish server and receives the UAST response for the specified\n file.", " :param filename: The path to the file. Can be arbitrary if contents \\\n is not None.\n :param language: The programming language of the file. Refer to \...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterator API. 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 iterator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
This function has the same signature as the pre-v3 iterator() call returning a compatibility CompatNodeIterator.
"This function has the same signature as the pre-v3 iterator()\n call returning a compatibility CompatNodeIterator."
25
false
bblfsh/client-python
iterator
12,196
LDU_FT/dmlc/xgboost/predict
LDU_FT
[ "<BEGIN>\n## `init`", "Initialize the rabit library with arguments\n<END>", "<BEGIN>\n## `tracker_print`", "Print message to the tracker.", " This function can be used to communicate the information of\n the progress to the tracker", " Parameters\n ----------\n msg : str\n The messag...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Predict with `data`. .. note:: This function is not thread safe. For each booster object, predict can only be called from one thread. If you want to run prediction using multiple thread, call ``xgb.copy()`` to make copies of model object and then call ``predict()``. .. n...
"Predict with `data`.\n\n .. note:: This function is not thread safe.\n\n For each booster object, predict can only be called from one thread.\n If you want to run prediction using multiple thread, call ``xgb.copy()`` to make copies\n of model object and then call ``predict()``.\n\n ...
276
false
dmlc/xgboost
predict
12,197
LDU_FT/eelregit/mcfit/_unpad
LDU_FT
[ "<BEGIN>\n## `_deriv`", "Real deriv is to :math:`t`, complex deriv is to :math:`\\ln t`\n<END>", "<BEGIN>\n## `inv`", "Invert the transform.", " After calling this method, calling the instance will do the inverse\n transform. Calling this twice return the instance to the original\n tran...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unpad API. 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 _unpad API. 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 ...
Undo padding in an array. Parameters ---------- a : (..., N, ...) ndarray array to be trimmed to size `Nin` axis : int axis along which to unpad out : bool trim the output if True, otherwise the input; the two cases have their left...
"Undo padding in an array.\n\n Parameters\n ----------\n a : (..., N, ...) ndarray\n array to be trimmed to size `Nin`\n axis : int\n axis along which to unpad\n out : bool\n trim the output if True, otherwise the input; the two cases have\n ...
22
false
eelregit/mcfit
_unpad
12,198
LDU_FT/nuagenetworks/bambou/expose_attribute
LDU_FT
[ "<BEGIN>\n## `start`", "Starts listening to events.", " Args:\n timeout (int): number of seconds before timeout. Used for testing purpose only.\n root_object (bambou.NURESTRootObject): NURESTRootObject object that is listening. Used for testing purpose only.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expose_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. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expose_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. The ...
Expose local_name as remote_name An exposed attribute `local_name` will be sent within the HTTP request as a `remote_name`
"Expose local_name as remote_name\n\n An exposed attribute `local_name` will be sent within the HTTP request as\n a `remote_name`"
177
false
nuagenetworks/bambou
expose_attribute
12,199
LDU_FT/fedora-infra/fedora-messaging/buildProtocol
LDU_FT
[ "<BEGIN>\n## `cli`", "The fedora-messaging command line interface.\n<END>", "<BEGIN>\n## `consume`", "Consume messages from an AMQP queue using a Python callback.\n<END>", "<BEGIN>\n## `_consume_errback`", "Handle any errors that occur during consumer registration.\n<END>", "<BEGIN>\n## `_consume_callba...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the buildProtocol API. 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 buildProtocol API. 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 the Protocol instance. See the documentation of `twisted.internet.protocol.ReconnectingClientFactory` for details.
"Create the Protocol instance.\n\n See the documentation of\n `twisted.internet.protocol.ReconnectingClientFactory` for details."
302
false
fedora-infra/fedora-messaging
buildProtocol
12,200
LDU_FT/openvax/varcode/load_vcf
LDU_FT
[ "<BEGIN>\n## `translate_codon`", "Translate a single codon into a single amino acid or stop '*'", " Parameters\n ----------\n codon : str\n Expected to be of length 3\n aa_pos : int\n Codon/amino acid offset into the protein (starting from 0)\n<END>", "<BEGIN>\n## `translate`", "Tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_vcf API. 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 load_vcf API. 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...
Load reference name and Variant objects from the given VCF filename. Currently only local files are supported by this function (no http). If you call this on an HTTP URL, it will fall back to `load_vcf`. Parameters ---------- path : str Path to VCF (*.vcf) or compressed VCF (*.vcf.gz). ...
"Load reference name and Variant objects from the given VCF filename.\n\n Currently only local files are supported by this function (no http). If you\n call this on an HTTP URL, it will fall back to `load_vcf`.\n\n Parameters\n ----------\n\n path : str\n Path to VCF (*.vcf) or compressed VCF (*.v...
344
false
openvax/varcode
load_vcf
12,201
LDU_FT/lexibank/pylexibank/iter_alignments
LDU_FT
[ "<BEGIN>\n## `tokenizer`", "Datasets can provide support for segmentation (aka tokenization) in two ways:\n - by providing an orthography profile at etc/orthography.tsv or\n - by overwriting this method to return a custom tokenizer callable.", " :return: A callable to do segmentation.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_alignments API. 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 iter_alignments API. 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...
Function computes automatic alignments and writes them to file.
"Function computes automatic alignments and writes them to file."
48
false
lexibank/pylexibank
iter_alignments
12,202
LDU_FT/benjamin-hodgson/asynqp/connect
LDU_FT
[ "<BEGIN>\n## `open_channel`", "Open a new channel on this connection.", " This method is a :ref:`coroutine <coroutine>`.", " :return: The new :class:`Channel` object.\n<END>", "<BEGIN>\n## `close`", "Close the connection by handshaking with the server.", " This method is a :ref:`cor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. 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 connect API. 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...
Connect to an AMQP server on the given host and port. Log in to the given virtual host using the supplied credentials. This function is a :ref:`coroutine <coroutine>`. :param str host: the host server to connect to. :param int port: the port which the AMQP server is listening on. :param str userna...
"Connect to an AMQP server on the given host and port.\n\n Log in to the given virtual host using the supplied credentials.\n This function is a :ref:`coroutine <coroutine>`.\n\n :param str host: the host server to connect to.\n :param int port: the port which the AMQP server is listening on.\n :param st...
95
false
benjamin-hodgson/asynqp
connect
12,203
LDU_FT/scikit-hep/root_pandas/filter_noexpand_columns
LDU_FT
[ "<BEGIN>\n## `_getitem`", "Get an item from the string (where item is up to the next ',' or '}' or the\n end of the string)\n<END>", "<BEGIN>\n## `_getgroup`", "Get a group from the string, where group is a list of all the comma\n separated substrings up to the next '}' char or the brace enclosed substr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_noexpand_columns API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_noexpand_columns API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Return columns not containing and containing the noexpand prefix. Parameters ---------- columns: sequence of str A sequence of strings to be split Returns ------- Two lists, the first containing strings without the noexpand prefix, the second containing those that do with the pre...
"Return columns not containing and containing the noexpand prefix.\n\n Parameters\n ----------\n columns: sequence of str\n A sequence of strings to be split\n\n Returns\n -------\n Two lists, the first containing strings without the noexpand prefix, the\n second containing those that do w...
23
false
scikit-hep/root_pandas
filter_noexpand_columns
12,204
LDU_FT/ahopkins/sanic-jwt/__load_configuration
LDU_FT
[ "<BEGIN>\n## `_verify`", "If there is a \"permakey\", then we will verify the token by checking the\n database. Otherwise, just do the normal verification.", " Typically, any method that begins with an underscore in sanic-jwt should\n not be touched. In this case, we are trying to break the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __load_configuration 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 __load_configuration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Configure settings for the instance in the following order: 1. Sanic JWT's defaults 2. Custom Configuration class 3. Key word arguments passed to Initialize
"Configure settings for the instance in the following order:\n\n 1. Sanic JWT's defaults\n 2. Custom Configuration class\n 3. Key word arguments passed to Initialize"
47
false
ahopkins/sanic-jwt
__load_configuration
12,205
LDU_FT/SAP/PyHDB/escape_values
LDU_FT
[ "<BEGIN>\n## `from_ini`", "Make connection to database by reading connection parameters from an ini file.\n :param ini_file: Name of ini file, e.g. 'pytest.ini'\n :param section: specify alternative section in ini file. Section 'hana' and 'pytest' will be searched by default\n :return: connection object"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the escape_values API. 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 escape_values API. 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...
Escape multiple values from a list, tuple or dict.
"Escape multiple values from a list, tuple or dict."
81
false
SAP/PyHDB
escape_values
12,206
LDU_FT/TracyWebTech/django-revproxy/encode_items
LDU_FT
[ "<BEGIN>\n## `should_stream`", "Function to verify if the proxy_response must be converted into\n a stream.This will be done by checking the proxy_response content-length\n and verify if its length is bigger than one stipulated\n by MIN_STREAMING_LENGTH.", " :param proxy_response: An Instance of url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_items API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_items API. 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...
Function that encode all elements in the list of items passed as a parameter :param items: A list of tuple :returns: A list of tuple with all items encoded in 'utf-8'
"Function that encode all elements in the list of items passed as\n a parameter\n\n :param items: A list of tuple\n :returns: A list of tuple with all items encoded in 'utf-8'"
41
false
TracyWebTech/django-revproxy
encode_items
12,207
LDU_FT/quandyfactory/dicttoxml/dicttoxml
LDU_FT
[ "<BEGIN>\n## `get_xml_type`", "Returns the data type for the xml type attribute\n<END>", "<BEGIN>\n## `make_attrstring`", "Returns an attribute string in the form key=\"val\"\n<END>", "<BEGIN>\n## `make_valid_xml_name`", "Tests an XML name and fixes it if invalid\n<END>", "<BEGIN>\n## `convert`", "Rou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dicttoxml API. 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 dicttoxml API. 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...
Converts a python object into XML. Arguments: - root specifies whether the output is wrapped in an XML root element Default is True - custom_root allows you to specify a custom root element. Default is 'root' - ids specifies whether elements get unique ids. Default is False - attr_...
"Converts a python object into XML.\n Arguments:\n - root specifies whether the output is wrapped in an XML root element\n Default is True\n - custom_root allows you to specify a custom root element.\n Default is 'root'\n - ids specifies whether elements get unique ids.\n Default is False\n ...
14
false
quandyfactory/dicttoxml
dicttoxml
12,208
LDU_FT/aio-libs/aiohttp-cors/add
LDU_FT
[ "<BEGIN>\n## `_parse_config_options`", "Parse CORS configuration (default or per-route)", " :param config:\n Mapping from Origin to Resource configuration (allowed headers etc)\n defined either as mapping or `ResourceOptions` instance.", " Raises `ValueError` if configuration is not correc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Enable CORS for specific route or resource. If route is passed CORS is enabled for route's resource. :param routing_entity: Route or Resource for which CORS should be enabled. :param config: CORS options for the route. :return: `routing_entity`.
"Enable CORS for specific route or resource.\n\n If route is passed CORS is enabled for route's resource.\n\n :param routing_entity:\n Route or Resource for which CORS should be enabled.\n :param config:\n CORS options for the route.\n :return: `routing_entity`."
38
false
aio-libs/aiohttp-cors
add
12,209
LDU_FT/thespacedoctor/rockAtlas/main
LDU_FT
[ "<BEGIN>\n## `main`", "*The main function used when ``find_atlas_exposure_containing_ssobject.py`` is run as a single script from the cl*\n<END>", "<BEGIN>\n## `_extract_phot_from_exposure`", "* extract phot from exposure*", " **Key Arguments:**\n - ``expIdIndex`` -- index of the exposure to extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. 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 main API. 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...
*The main function used when ``cl_utils.py`` is run as a single script from the cl, or when installed as a cl command*
"*The main function used when ``cl_utils.py`` is run as a single script from the cl, or when installed as a cl command*"
125
false
thespacedoctor/rockAtlas
main
12,210
LDU_FT/hootnot/oanda-api-v20/InstrumentsCandlesFactory
LDU_FT
[ "<BEGIN>\n## `dyndoc_insert`", "docstring_insert - a decorator to insert API-docparts dynamically.\n<END>", "<BEGIN>\n## `endpoint`", "endpoint - decorator to manipulate the REST-service endpoint.", " The endpoint decorator sets the endpoint and the method for the class\n to access the REST-service.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the InstrumentsCandlesFactory 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 InstrumentsCandlesFactory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
InstrumentsCandlesFactory - generate InstrumentCandles requests. InstrumentsCandlesFactory is used to retrieve historical data by automatically generating consecutive requests when the OANDA limit of *count* records is exceeded. This is known by calculating the number of candles between *from* and ...
"InstrumentsCandlesFactory - generate InstrumentCandles requests.\n\n InstrumentsCandlesFactory is used to retrieve historical data by\n automatically generating consecutive requests when the OANDA limit\n of *count* records is exceeded.\n\n This is known by calculating the number of candles between *from* ...
42
false
hootnot/oanda-api-v20
InstrumentsCandlesFactory
12,211
LDU_FT/the01/paps-settings/resource_get
LDU_FT
[ "<BEGIN>\n## `get_file_hash`", "Generate hash for given file", " :param file_path: Path to file\n :type file_path: str\n :param block_size: Size of block to be read at once (default: 1024)\n :type block_size: int\n :param hasher: Use specific hasher, defaults to md5 (default: None)\n :type has...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return resource info :param resource_name: Resource name as returned by resource_get_list() :type resource_name: str :return: Resource information (empty if not found) name: Resource name hash: Resource hash path: Path to resource checked: Last ti...
"Return resource info\n\n :param resource_name: Resource name as returned by resource_get_list()\n :type resource_name: str\n :return: Resource information (empty if not found)\n name: Resource name\n hash: Resource hash\n path: Path to resource\n checked...
40
false
the01/paps-settings
resource_get
12,212
LDU_FT/brbsix/subsystem/failure
LDU_FT
[ "<BEGIN>\n## `devnull`", "Temporarily redirect stdout and stderr to /dev/null.\n<END>", "<BEGIN>\n## `error`", "Display error message via stderr or GUI.\n<END>", "<BEGIN>\n## `failure`", "Display warning message via stderr or GUI.\n<END>", "<BEGIN>\n## `have`", "Determine whether supplied argument is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the failure API. 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 failure API. 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...
Display warning message via stderr or GUI.
"Display warning message via stderr or GUI."
18
false
brbsix/subsystem
failure
12,213
LDU_FT/samuelcolvin/grablib/_lock
LDU_FT
[ "<BEGIN>\n## `_delete_stale`", "Delete files left in self._stale_files. Also delete their directories if empty.\n<END>", "<BEGIN>\n## `_file_path`", "check src_path complies with regex and generate new filename\n<END>", "<BEGIN>\n## `_lock`", "Add details of the files downloaded to _new_lock so they can b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracted d...
Add details of the files downloaded to _new_lock so they can be saved to the lock file. Also remove path from _stale_files, whatever remains at the end therefore is stale and can be deleted.
"Add details of the files downloaded to _new_lock so they can be saved to the lock file.\n Also remove path from _stale_files, whatever remains at the end therefore is stale and can be deleted."
15
false
samuelcolvin/grablib
_lock
12,214
LDU_FT/benedictpaten/sonLib/saveInputs
LDU_FT
[ "<BEGIN>\n## `linOriginRegression`", "computes a linear regression starting at zero\n<END>", "<BEGIN>\n## `close`", "check two float values are within a bound of one another\n<END>", "<BEGIN>\n## `filterOverlappingAlignments`", "Filter alignments to be non-overlapping.\n<END>", "<BEGIN>\n## `binaryTree_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the saveInputs API. 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 saveInputs API. 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...
Copies the list of files to a directory created in the save inputs dir, and returns the name of this directory.
"Copies the list of files to a directory created in the save inputs dir,\n and returns the name of this directory."
80
false
benedictpaten/sonLib
saveInputs
12,215
LDU_FT/PaulMcMillan/tasa/next
LDU_FT
[ "<BEGIN>\n## `next`", "Retrieve the next item in the queue.", " Returns deserialized value, or None if there were no entries\n in the Queue.\n<END>", "<BEGIN>\n## `send`", "Send a value to this LIFO Queue.", " Provided argument is serialized and pushed out. Don't send None.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Retrieve the next item in the queue. Returns deserialized value, or None if there were no entries in the Queue.
"Retrieve the next item in the queue.\n\n Returns deserialized value, or None if there were no entries\n in the Queue."
16
false
PaulMcMillan/tasa
next
12,216
LDU_FT/innogames/polysh/rename
LDU_FT
[ "<BEGIN>\n## `process_input_buffer`", "Send the content of the input buffer to all remote processes, this must\n be called in the main thread\n<END>", "<BEGIN>\n## `write_main_socket`", "Synchronous write to the main socket, wait for ACK\n<END>", "<BEGIN>\n## `get_stdin_pid`", "Try to get the PID of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Send to the remote shell, its new name to be shell expanded
"Send to the remote shell, its new name to be shell expanded"
66
false
innogames/polysh
rename
12,217
LDU_FT/mosdef-hub/mbuild/populate
LDU_FT
[ "<BEGIN>\n## `calc_dihedral`", "Calculates a dihedral angle", " Here, two planes are defined by (point1, point2, point3) and\n (point2, point3, point4). The angle between them is returned.", " Parameters\n ----------\n point1, point2, point3, point4 : array-like, shape=(3,), dtype=float\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populate API. 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 populate API. 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...
Expand lattice and create compound from lattice. populate will expand lattice based on user input. The user must also pass in a dictionary that contains the keys that exist in the basis_dict. The corresponding Compound will be the full lattice returned to the user. If no dictio...
"Expand lattice and create compound from lattice.\n\n populate will expand lattice based on user input. The user must also\n pass in a dictionary that contains the keys that exist in the\n basis_dict. The corresponding Compound will be the full lattice\n returned to the user.\n\n If n...
463
false
mosdef-hub/mbuild
populate
12,218
LDU_FT/protream/iquery/query
LDU_FT
[ "<BEGIN>\n## `pretty_print`", "Use `PrettyTable` to perform formatted outprint.\n<END>", "<BEGIN>\n## `_parse_date`", "Parse from the user input `date`.", " e.g. current year 2016:\n input 6-26, 626, ... return 2016626\n input 2016-6-26, 2016/6/26, ... retrun 2016626", " ...
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...
`params` is a city name or a city name + hospital name. CLI: 1. query all putian hospitals in a city: $ iquery -p 南京 +------+ | 南京 | +------+ |... | +------+ |... | +------+ ... 2. query if the hospital in the city is p...
"`params` is a city name or a city name + hospital name.\n\n CLI:\n\n 1. query all putian hospitals in a city:\n\n $ iquery -p 南京\n +------+\n | 南京 |\n +------+\n |... |\n +------+\n |... |\n +------+\n ...\n\n\n 2. query if the hospita...
31
false
protream/iquery
query
12,219
LDU_FT/inveniosoftware/invenio-formatter/init_app
LDU_FT
[ "<BEGIN>\n## `from_isodate`", "Convert an ISO formatted date into a Date object.", " :param value: The ISO formatted date.\n :param strict: If value is ``None``, then if strict is ``True`` it returns\n the Date object of today, otherwise it returns ``None``.\n (Default: ``False``)\n :retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API. 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 init_app API. 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...
Flask application initialization. :param app: The Flask application.
"Flask application initialization.\n\n :param app: The Flask application."
26
false
inveniosoftware/invenio-formatter
init_app
12,220
LDU_FT/clinicedc/edc-notification/_notify_on_condition
LDU_FT
[ "<BEGIN>\n## `notify`", "Overridden to only call `notify` if model matches.\n<END>", "<BEGIN>\n## `notification_on_post_create_historical_record`", "Checks and processes any notifications for this model.", " Processes if `label_lower` is in site_notifications.models.", " Note, this is the post_creat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _notify_on_condition 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 _notify_on_condition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns the value of `notify_on_condition` or False.
"Returns the value of `notify_on_condition` or False."
54
false
clinicedc/edc-notification
_notify_on_condition
12,221
LDU_FT/joytunes/JTLocalize/prepare_for_translation
LDU_FT
[ "<BEGIN>\n## `handle_duplications`", "Omits the duplications in the strings files.\n Keys that appear more than once, will be joined to one appearance and the omit will be documented.", " Args:\n file_path (str): The path to the strings file.\n<END>", "<BEGIN>\n## `add_comments`", "Add comm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_for_translation 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 prepare_for_translation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Prepares the localization bundle for translation. This means, after creating the strings files using genstrings.sh, this will produce '.pending' files, that contain the files that are yet to be translated. Args: localization_bundle_path (str): The path to the localization bundle.
"Prepares the localization bundle for translation.\n\n This means, after creating the strings files using genstrings.sh, this will produce '.pending' files, that contain\n the files that are yet to be translated.\n\n Args:\n localization_bundle_path (str): The path to the localization bundle."
104
false
joytunes/JTLocalize
prepare_for_translation
12,222
LDU_FT/collectiveacuity/labPack/_to_camelcase
LDU_FT
[ "<BEGIN>\n## `_delete`", "a helper method for non-blocking deletion of files\r", " :param _file_path: string with path to file to remove \r\n :param _method_title: string with name of method calling _delete\r\n :param _record_key: string with name of record key to delete\r\n :return:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_camelcase API. 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 _to_camelcase API. 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...
a helper method to convert python to camelcase
"a helper method to convert python to camelcase"
886
false
collectiveacuity/labPack
_to_camelcase
12,223
LDU_FT/flo-compbio/genometools/read_gene2acc
LDU_FT
[ "<BEGIN>\n## `sum`", "Sum over rows or columns.", " Overrides the default `pandas.DataFrame.sum()` function to prevent\n temporary in-memory copies.\n<END>", "<BEGIN>\n## `get_heatmap`", "Generate a heatmap (`ExpHeatmap`) of the matrix.", " See :class:`ExpHeatmap` constructor for keyw...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_gene2acc API. 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_gene2acc API. 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...
Extracts Entrez ID -> gene symbol mapping from gene2accession.gz file. Parameters ---------- file_path: str The path of the gene2accession.gz file (or a filtered version thereof). The file may be gzip'ed. Returns ------- dict A mapping of Entrez IDs to gene symbols.
"Extracts Entrez ID -> gene symbol mapping from gene2accession.gz file.\n\n Parameters\n ----------\n file_path: str\n The path of the gene2accession.gz file (or a filtered version thereof).\n The file may be gzip'ed.\n\n Returns\n -------\n dict\n A mapping of Entrez IDs to gene ...
496
false
flo-compbio/genometools
read_gene2acc
12,224
LDU_FT/neptune-ml/steppy/get_step_by_name
LDU_FT
[ "<BEGIN>\n## `initialize_logger`", "Initialize steppy logger.", " This logger is used throughout the steppy library to report computation progress.", " Example:", " Simple use of steppy logger:", " .. code-block:: python", " initialize_logger()\n logger = get_lo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_step_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_step_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Extracts step by name from the pipeline. Extracted Step is a fully functional pipeline as well. All upstream Steps are already defined. Args: name (str): name of the step to be fetched Returns: Step (obj): extracted step
"Extracts step by name from the pipeline.\n\n Extracted Step is a fully functional pipeline as well.\n All upstream Steps are already defined.\n\n Args:\n name (str): name of the step to be fetched\n Returns:\n Step (obj): extracted step"
57
false
neptune-ml/steppy
get_step_by_name
12,225
LDU_FT/azraq27/gini/match_all_concepts
LDU_FT
[ "<BEGIN>\n## `matches_from_list`", "Returns the members of ``options`` that best matches ``item``. Will prioritize\n exact matches, then filename-style matching, then fuzzy matching. Returns a tuple of item,\n index, match type, and fuzziness (if applicable)", " :item: string to match\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_all_concepts 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 match_all_concepts 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 sorted list of all :class:`Concept`s matching ``string``
"Returns sorted list of all :class:`Concept`s matching ``string``"
23
false
azraq27/gini
match_all_concepts
12,226
LDU_FT/mesbahamin/chronophore/flag_forgotten_entries
LDU_FT
[ "<BEGIN>\n## `migrate_050_to_051`", "Set time_out field of all flagged\n timesheet entries to Null.\n<END>", "<BEGIN>\n## `set_up_logging`", "Configure logging settings and return a logger object.\n<END>", "<BEGIN>\n## `main`", "Run Chronophore based on the command line arguments.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flag_forgotten_entries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flag_forgotten_entries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Flag any entries from previous days where users forgot to sign out. :param session: SQLAlchemy session through which to access the database. :param today: (optional) The current date as a `datetime.date` object. Used for testing.
"Flag any entries from previous days where users forgot to sign\n out.\n\n :param session: SQLAlchemy session through which to access the database.\n :param today: (optional) The current date as a `datetime.date` object. Used for testing."
60
false
mesbahamin/chronophore
flag_forgotten_entries
12,227
LDU_FT/dwavesystems/dimod/from_ising
LDU_FT
[ "<BEGIN>\n## `sample`", "Give random samples for a binary quadratic model.", " Variable assignments are chosen by coin flip.", " Args:\n bqm (:obj:`.BinaryQuadraticModel`):\n Binary quadratic model to be sampled from.", " num_reads (int, optional, default=1...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_ising API. 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 from_ising API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Create a binary quadratic model from an Ising problem. Args: h (dict/list): Linear biases of the Ising problem. If a dict, should be of the form `{v: bias, ...}` where v is a spin-valued variable and `bias` is its associated bias. If a list, it is tr...
"Create a binary quadratic model from an Ising problem.\n\n\n Args:\n h (dict/list):\n Linear biases of the Ising problem. If a dict, should be of the\n form `{v: bias, ...}` where v is a spin-valued variable and `bias`\n is its associated bias. If a list, ...
908
false
dwavesystems/dimod
from_ising
12,228
LDU_FT/cuihantao/andes/run_step0
LDU_FT
[ "<BEGIN>\n## `check`", "Check config data consistency", " Returns\n -------\n<END>", "<BEGIN>\n## `read`", "Read a dm format file and elem_add to system\n<END>", "<BEGIN>\n## `register_element`", "Register a device element to the group list", " Parameters\n ----------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_step0 API. 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 run_step0 API. 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...
For the 0th step, store the data and stream data Returns ------- None
"For the 0th step, store the data and stream data\n\n Returns\n -------\n None"
614
false
cuihantao/andes
run_step0
12,229
LDU_FT/pklaus/brother_ql/guess_backend
LDU_FT
[ "<BEGIN>\n## `send`", "Send instruction bytes to a printer.", " :param bytes instructions: The instructions to be sent to the printer.\n :param str printer_identifier: Identifier for the printer.\n :param str backend_identifier: Can enforce the use of a specific backend.\n :param bool blocking: Indi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the guess_backend API. 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 guess_backend API. 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...
guess the backend from a given identifier string for the device
"guess the backend from a given identifier string for the device"
37
false
pklaus/brother_ql
guess_backend
12,230
LDU_FT/nyaruka/smartmin/url_name_for_action
LDU_FT
[ "<BEGIN>\n## `_read_requirements`", "Parses a file for pip installation requirements.\n<END>", "<BEGIN>\n## `get_list_class`", "Returns the class to use for the passed in list. We just build something up\n from the object type for the list.\n<END>", "<BEGIN>\n## `format_datetime`", "Formats a date, co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_name_for_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_name_for_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. T...
Returns the reverse name for this action
"Returns the reverse name for this action"
118
false
nyaruka/smartmin
url_name_for_action
12,231
LDU_FT/tcalmant/python-javaobj/_readStreamHeader
LDU_FT
[ "<BEGIN>\n## `decoder`", "This generator processes a sequence of bytes in Modified UTF-8 encoding\n and produces a sequence of unicode string characters.", " It takes bits from the byte until it matches one of the known encoding\n sequences.\n It uses ``DecodeMap`` to mask, compare and generate valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _readStreamHeader API. 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 _readStreamHeader API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Reads the magic header of a Java serialization stream :raise IOError: Invalid magic header (not a Java stream)
"Reads the magic header of a Java serialization stream\n\n :raise IOError: Invalid magic header (not a Java stream)"
104
false
tcalmant/python-javaobj
_readStreamHeader
12,232
LDU_FT/napalm-automation/napalm-logs/_identify_prefix
LDU_FT
[ "<BEGIN>\n## `_setup_ipc`", "Setup the IPC pub and sub.\n Subscript to the listener IPC\n and publish to the device specific IPC.\n<END>", "<BEGIN>\n## `_compile_prefixes`", "Create a dict of all OS prefixes and their compiled regexs\n<END>", "<BEGIN>\n## `_identify_prefix`", "Check the mess...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _identify_prefix API. 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 _identify_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Check the message again each OS prefix and if matched return the message dict
"Check the message again each OS prefix and if matched return the\n message dict"
82
false
napalm-automation/napalm-logs
_identify_prefix
12,233
LDU_FT/equinor/segyio/flush
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new segy file.", " Create a new segy file with the geometry and properties given by `spec`.\n This enables creating SEGY files from your data. The created file supports\n all segyio modes, but has an emphasis on writing. The spec must be\n complete, otherwise an exc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flush API. 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 flush API. 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...
Commit backing storage to disk This method is largely internal, and it is not necessary to call this from user code. It should not be explicitly invoked and may be removed in future versions.
"Commit backing storage to disk\n\n This method is largely internal, and it is not necessary to call this\n from user code. It should not be explicitly invoked and may be removed\n in future versions."
250
false
equinor/segyio
flush
12,234
LDU_FT/tobgu/pyrsistent/set
LDU_FT
[ "<BEGIN>\n## `pdeque`", "Return deque containing the elements of iterable. If maxlen is specified then\n len(iterable) - maxlen elements are discarded from the left to if len(iterable) > maxlen.", " >>> pdeque([1, 2, 3])\n pdeque([1, 2, 3])\n >>> pdeque([1, 2, 3, 4], maxlen=2)\n pdeque([3, 4], ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return a new PMap with key and val inserted. >>> m1 = m(a=1, b=2) >>> m2 = m1.set('a', 3) >>> m3 = m1.set('c' ,4) >>> m1 pmap({'a': 1, 'b': 2}) >>> m2 pmap({'a': 3, 'b': 2}) >>> m3 pmap({'a': 1, 'c': 4, 'b': 2})
"Return a new PMap with key and val inserted.\n\n >>> m1 = m(a=1, b=2)\n >>> m2 = m1.set('a', 3)\n >>> m3 = m1.set('c' ,4)\n >>> m1\n pmap({'a': 1, 'b': 2})\n >>> m2\n pmap({'a': 3, 'b': 2})\n >>> m3\n pmap({'a': 1, 'c': 4, 'b': 2})"
130
false
tobgu/pyrsistent
set
12,235
LDU_FT/bmweiner/skillful/parse
LDU_FT
[ "<BEGIN>\n## `timestamp`", "Validate timestamp specified by request.", " See `validate.request` for additional info.", " Args:\n stamp: str. Time request was made as ISO 8601 timestamp.\n tolerance: int. Number of seconds request remains valid from timestamp.", " Returns\n bool...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. 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 parse API. 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...
Parse JSON request, storing content in object attributes. Args: body: str. HTTP request body. Returns: self
"Parse JSON request, storing content in object attributes.\n\n Args:\n body: str. HTTP request body.\n\n Returns:\n self"
94
false
bmweiner/skillful
parse
12,236
LDU_FT/tkem/uritools/getquery
LDU_FT
[ "<BEGIN>\n## `urijoin`", "Convert a URI reference relative to a base URI to its target URI\n string.\n<END>", "<BEGIN>\n## `uridefrag`", "Remove an existing fragment component from a URI reference string.\n<END>", "<BEGIN>\n## `geturi`", "Return the recombined version of the original URI as a string.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getquery API. 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 getquery API. 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 decoded query string, or `default` if the original URI reference did not contain a query component.
"Return the decoded query string, or `default` if the original URI\n reference did not contain a query component."
45
false
tkem/uritools
getquery
12,237
LDU_FT/mozilla/funfactory/split_path
LDU_FT
[ "<BEGIN>\n## `clone_repo`", "Clone the Playdoh repo into a custom path.\n<END>", "<BEGIN>\n## `init_pkg`", "Initializes a custom named package module.", " This works by replacing all instances of 'project' with a custom module\n name.\n<END>", "<BEGIN>\n## `create_settings`", "Creates a local sett...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_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 extrac...
Split the requested path into (locale, path). locale will be empty if it isn't found.
"Split the requested path into (locale, path).\n\n locale will be empty if it isn't found."
52
false
mozilla/funfactory
split_path
12,238
LDU_FT/ionelmc/python-manhole/handle_connection_exec
LDU_FT
[ "<BEGIN>\n## `get_peercred`", "Gets the (pid, uid, gid) for the client on the given *connected* socket.\n<END>", "<BEGIN>\n## `handle_connection_exec`", "Alternate connection handler. No output redirection.\n<END>", "<BEGIN>\n## `handle_repl`", "Dumps stacktraces and runs an interactive prompt (REPL).\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_connection_exec 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_connection_exec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Alternate connection handler. No output redirection.
"Alternate connection handler. No output redirection."
23
false
ionelmc/python-manhole
handle_connection_exec
12,239
LDU_FT/rocky/python-filecache/cache_file
LDU_FT
[ "<BEGIN>\n## `pyc2py`", "Find corresponding .py name given a .pyc or .pyo\n<END>", "<BEGIN>\n## `clear_file_cache`", "Clear the file cache. If no filename is given clear it entirely.\n if a filename is given, clear just that filename.\n<END>", "<BEGIN>\n## `clear_file_format_cache`", "Remove syntax-for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache_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 extrac...
Cache filename if it is not already cached. Return the expanded filename for it in the cache or nil if we can not find the file.
"Cache filename if it is not already cached.\n Return the expanded filename for it in the cache\n or nil if we can not find the file."
32
false
rocky/python-filecache
cache_file
12,240
LDU_FT/jucacrispim/pylint-mongoengine/get_field_definition
LDU_FT
[ "<BEGIN>\n## `node_is_subclass`", "Checks if cls node has parent with subclass_name.\n<END>", "<BEGIN>\n## `is_field_method`", "Checks if a call to a field instance method is valid. A call is\n valid if the call is a method of the underlying type. So, in a StringField\n the methods from str are valid, i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field_definition 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_field_definition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
node is a class attribute that is a mongoengine. Returns the definition statement for the attribute
"node is a class attribute that is a mongoengine. Returns\n the definition statement for the attribute"
22
false
jucacrispim/pylint-mongoengine
get_field_definition
12,241
LDU_FT/TissueMAPS/TmDeploy/free
LDU_FT
[ "<BEGIN>\n## `__init_os_api`", "Initialise client objects for talking to OpenStack API.", " This is in a separate function so to be called by ``__init__`` and\n ``__setstate__``.\n<END>", "<BEGIN>\n## `stop_instance`", "Stops the instance gracefully.", " :param str instance_id: instan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the free API. 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 free API. 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...
Mark a node name as no longer in use. It could thus be recycled to name a new node.
"Mark a node name as no longer in use.\n\n It could thus be recycled to name a new node."
192
false
TissueMAPS/TmDeploy
free
12,242
LDU_FT/elastic/elasticsearch-dsl-py/search
LDU_FT
[ "<BEGIN>\n## `scan_aggs`", "Helper function used to iterate over all possible bucket combinations of\n ``source_aggs``, returning results of ``inner_aggs`` for each. Uses the\n ``composite`` aggregation under the hood to perform this.\n<END>", "<BEGIN>\n## `clean`", "Automatically construct the suggesti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns the base Search object to which the facets are added. You can customize the query by overriding this method and returning a modified search object.
"Returns the base Search object to which the facets are added.\n\n You can customize the query by overriding this method and returning a\n modified search object."
257
false
elastic/elasticsearch-dsl-py
search
12,243
LDU_FT/TUT-ARG/sed_eval/overall_f_measure
LDU_FT
[ "<BEGIN>\n## `result_report_overall`", "Report overall results", " Returns\n -------\n str\n result report in string format\n<END>", "<BEGIN>\n## `result_report_class_wise_average`", "Report class-wise averages", " Returns\n -------\n str\n r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overall_f_measure API. 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 overall_f_measure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Overall f-measure metrics (f_measure, precision, and recall) Returns ------- dict results in a dictionary format
"Overall f-measure metrics (f_measure, precision, and recall)\n\n Returns\n -------\n dict\n results in a dictionary format"
268
false
TUT-ARG/sed_eval
overall_f_measure
12,244
LDU_FT/ornlneutronimaging/ImagingReso/__update_molar_mass
LDU_FT
[ "<BEGIN>\n## `add_layer`", "provide another way to define the layers (stack)", " Parameters:\n ===========\n formula: string\n ex: 'CoAg2'\n ex: 'Al'\n thickness: float (in mm)\n density: float (g/cm3)\n<END>", "<BEGIN>\n## `get_isotopic_ratio`", "retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __update_molar_mass 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 __update_molar_mass 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...
Re-calculate the molar mass of the element given due to stoichiometric changes Parameters: ========== compound: string (default is '') name of compound element: string (default is '') name of element
"Re-calculate the molar mass of the element given due to stoichiometric changes\n\n Parameters:\n ==========\n compound: string (default is '') name of compound\n element: string (default is '') name of element"
114
false
ornlneutronimaging/ImagingReso
__update_molar_mass
12,245
LDU_FT/ibm-watson-data-lab/ibmseti/_spec_fft
LDU_FT
[ "<BEGIN>\n## `header`", "This returns the first header in the data file\n<END>", "<BEGIN>\n## `headers`", "This returns all headers in the data file. There should be one for each\n half_frame in the file (typically 129).\n<END>", "<BEGIN>\n## `_packed_data`", "Returns the bit-packed data extracted from...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _spec_fft API. 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 _spec_fft API. 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...
Calculates the DFT of the complex_data along axis = 1. This assumes complex_data is a 2D array. This uses numpy and the code is straight forward np.fft.fftshift( np.fft.fft(complex_data), 1) Note that we automatically shift the FFT frequency bins so that along the frequency axis, "negative" frequenc...
"Calculates the DFT of the complex_data along axis = 1. This assumes complex_data is a 2D array.\n\n This uses numpy and the code is straight forward\n np.fft.fftshift( np.fft.fft(complex_data), 1)\n\n Note that we automatically shift the FFT frequency bins so that along the frequency axis, \n \"negative\"...
138
false
ibm-watson-data-lab/ibmseti
_spec_fft
12,246
LDU_FT/SavinaRoja/PyUserInput/click
LDU_FT
[ "<BEGIN>\n## `display_manager`", "Traps *X* errors and raises an :class:``X11Error`` at the end if any\n error occurred.", " This handler also ensures that the :class:`Xlib.display.Display` being\n managed is sync'd.", " :param Xlib.display.Display display: The *X* display.", " :return: the d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the click API. 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 click API. 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...
Click a mouse button n times on a given x, y. Button is defined as 1 = left, 2 = right, 3 = middle.
"Click a mouse button n times on a given x, y.\n Button is defined as 1 = left, 2 = right, 3 = middle."
56
false
SavinaRoja/PyUserInput
click
12,247
LDU_FT/abilian/abilian-core/get_principals
LDU_FT
[ "<BEGIN>\n## `require_flush`", "Decorator for methods that need to query security.", " It ensures all security related operations are flushed to DB, but\n avoids unneeded flushes.\n<END>", "<BEGIN>\n## `query_pa_no_flush`", "Query for a :class:`PermissionAssignment` using `session` without any\n `f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_principals API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_principals API. 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 all users which are assigned given role.
"Return all users which are assigned given role."
429
false
abilian/abilian-core
get_principals
12,248
LDU_FT/choderalab/pymbar/_selfConsistentIteration
LDU_FT
[ "<BEGIN>\n## `read_file`", "Read contents of the specified file.", " Parameters:\n -----------\n filename : str\n The name of the file to be read", " Returns:\n lines : list of str\n The contents of the file, split by line\n<END>", "<BEGIN>\n## `getFreeEnergyDifferences`", "Get the dim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _selfConsistentIteration 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 _selfConsistentIteration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Determine free energies by self-consistent iteration. OPTIONAL ARGUMENTS relative_tolerance (float between 0 and 1) - relative tolerance for convergence (default 1.0e-5) maximum_iterations (int) - maximum number of self-consistent iterations (default 1000) verbose (boolean) - ver...
"Determine free energies by self-consistent iteration.\n\n OPTIONAL ARGUMENTS\n\n relative_tolerance (float between 0 and 1) - relative tolerance for convergence (default 1.0e-5)\n maximum_iterations (int) - maximum number of self-consistent iterations (default 1000)\n verbose (boolean...
533
false
choderalab/pymbar
_selfConsistentIteration
12,249
LDU_FT/OLC-Bioinformatics/sipprverse/profiler
LDU_FT
[ "<BEGIN>\n## `cmd2list`", "Executes a command through the operating system and returns the output\n as a list, or on error a string with the standard error.\n EXAMPLE:\n >>> from subprocess import Popen, PIPE\n >>> CMDout2array('ls -l')\n<END>", "<BEGIN>\n## `print_timers`", "PRINT EXECUTION TIM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the profiler API. 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 profiler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Creates a dictionary from the profile scheme(s)
"Creates a dictionary from the profile scheme(s)"
255
false
OLC-Bioinformatics/sipprverse
profiler
12,250
LDU_FT/rycus86/prometheus_flask_exporter/info
LDU_FT
[ "<BEGIN>\n## `start_http_server`", "Start an HTTP server for exposing the metrics, if the\n `should_start_http_server` function says we should, otherwise just return.\n Uses the implementation from `prometheus_client` rather than a Flask app.", " :param port: the HTTP port to expose the met...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Report any information as a Prometheus metric. This will create a `Gauge` with the initial value of 1. The easiest way to use it is: metrics = PrometheusMetrics(app) metrics.info( 'app_info', 'Application info', version='1.0', major=1, minor=0 ...
"Report any information as a Prometheus metric.\n This will create a `Gauge` with the initial value of 1.\n\n The easiest way to use it is:\n\n metrics = PrometheusMetrics(app)\n metrics.info(\n 'app_info', 'Application info',\n version='1.0', major=1, m...
42
false
rycus86/prometheus_flask_exporter
info
12,251
LDU_FT/lambdalisue/maidenhair/default_classify_function
LDU_FT
[ "<BEGIN>\n## `load`", "Load data from file matched with given glob pattern.", " Return value will be a list of data unless :attr:`unite` is `True`.\n If :attr:`unite` is `True` then all data will be united into a single data.", " Parameters\n ----------\n pathname : string or list\n A gl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_classify_function 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 default_classify_function API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
A default classify_function which recieve `data` and return filename without characters just after the last underscore >>> # [<filename>] is mimicking `data` >>> default_classify_function(['./foo/foo_bar_hoge.piyo']) './foo/foo_bar.piyo' >>> default_classify_function(['./foo/foo_bar.piyo']) './...
"A default classify_function which recieve `data` and return filename without\n characters just after the last underscore\n\n >>> # [<filename>] is mimicking `data`\n >>> default_classify_function(['./foo/foo_bar_hoge.piyo'])\n './foo/foo_bar.piyo'\n >>> default_classify_function(['./foo/foo_bar.piyo'])\...
128
false
lambdalisue/maidenhair
default_classify_function
12,252
LDU_FT/lambdalisue/django-permission/perm_to_permission
LDU_FT
[ "<BEGIN>\n## `permission_required`", "Permission check decorator for classbased generic view", " This decorator works as class decorator\n DO NOT use ``method_decorator`` or whatever while this decorator will use\n ``self`` argument for method of classbased generic view.", " Parameters\n ------...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the perm_to_permission 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 perm_to_permission 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...
Convert a permission-string to a permission instance. Examples -------- >>> permission = perm_to_permission('auth.add_user') >>> permission.content_type.app_label 'auth' >>> permission.codename 'add_user'
"Convert a permission-string to a permission instance.\n\n Examples\n --------\n >>> permission = perm_to_permission('auth.add_user')\n >>> permission.content_type.app_label\n 'auth'\n >>> permission.codename\n 'add_user'"
147
false
lambdalisue/django-permission
perm_to_permission
12,253
LDU_FT/rmed/pyemtmad/get_street
LDU_FT
[ "<BEGIN>\n## `check_result`", "Check the result of an API response.", " Ideally, this should be done by checking that the value of the ``resultCode``\n attribute is 0, but there are endpoints that simply do not follow this rule.", " Args:\n data (dict): Response obtained from the API endpoint....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_street API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_street API. 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...
Obtain a list of nodes related to a location within a given radius. Not sure of its use, but... Args: street_name (str): Name of the street to search. street_number (int): Street number to search. radius (int): Radius (in meters) of the search. stops (in...
"Obtain a list of nodes related to a location within a given radius.\n\n Not sure of its use, but...\n\n Args:\n street_name (str): Name of the street to search.\n street_number (int): Street number to search.\n radius (int): Radius (in meters) of the search.\n ...
114
false
rmed/pyemtmad
get_street
12,254
LDU_FT/aws/aws-encryption-sdk-python/_prep_non_framed
LDU_FT
[ "<BEGIN>\n## `_encryption_context_hash`", "Generates the expected hash for the provided encryption context.", " :param hasher: Existing hasher to use\n :type hasher: cryptography.hazmat.primitives.hashes.Hash\n :param dict encryption_context: Encryption context to hash\n :returns: Complete hash\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prep_non_framed API. 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 _prep_non_framed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Prepare the opening data for a non-framed message.
"Prepare the opening data for a non-framed message."
364
false
aws/aws-encryption-sdk-python
_prep_non_framed
12,255
LDU_FT/wummel/dosage/print_results
LDU_FT
[ "<BEGIN>\n## `exception`", "Write error message with traceback info.\n<END>", "<BEGIN>\n## `write`", "Write message with indentation, context and optional timestamp.\n<END>", "<BEGIN>\n## `contains_case_insensitive`", "Check if key is in adict. The search is case insensitive.\n<END>", "<BEGIN>\n## `fini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Print all comics that have at least the given number of minimum comic strips.
"Print all comics that have at least the given number of minimum comic strips."
141
false
wummel/dosage
print_results
12,256
LDU_FT/tmr232/Sark/get_string
LDU_FT
[ "<BEGIN>\n## `get_idb_graph`", "Export IDB to a NetworkX graph.", " Use xrefs to and from functions to build a DiGraph containing all\n the functions in the IDB and all the links between them.\n The graph can later be used to perform analysis on the IDB.", " :return: nx.DiGraph()\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac...
Read the string at the given ea. This function uses IDA's string APIs and does not implement any special logic.
"Read the string at the given ea.\n\n This function uses IDA's string APIs and does not implement any special logic."
137
false
tmr232/Sark
get_string
12,257
LDU_FT/delfick/nose-of-yeti/apply_config_file
LDU_FT
[ "<BEGIN>\n## `normalise_key`", "Make sure key is a valid python attribute\n<END>", "<BEGIN>\n## `use_options`", "If extractor isn't specified, then just update self.values with options.", " Otherwise update values with whatever the result of calling extractor with\n our template and th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_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...
Add options from config file to self.values Leave alone existing values that are not an instance of Default
"Add options from config file to self.values\n Leave alone existing values that are not an instance of Default"
59
false
delfick/nose-of-yeti
apply_config_file
12,258
LDU_FT/uchicago-cs/deepdish/crop
LDU_FT
[ "<BEGIN>\n## `load`", "Loads an instance of the class from a file.", " Parameters\n ----------\n path : str\n Path to an HDF5 file.", " Examples\n --------\n This is an abstract data type, but let us say that ``Foo`` inherits\n from ``Saveable``. To ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crop API. 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 crop API. 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...
Crops an image in the center. Parameters ---------- size : tuple, (height, width) Finally size after cropping.
"Crops an image in the center.\n\n Parameters\n ----------\n size : tuple, (height, width)\n Finally size after cropping."
138
false
uchicago-cs/deepdish
crop
12,259
LDU_FT/AmesCornish/buttersink/_prune
LDU_FT
[ "<BEGIN>\n## `update`", "Update self and parent with intermediate progress.\n<END>", "<BEGIN>\n## `close`", "Stop overwriting display, or update parent.\n<END>", "<BEGIN>\n## `transfer`", "Transfer (large) data from sender to receiver.\n<END>", "<BEGIN>\n## `display`", "Friendly string for volume, usi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prune API. 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 _prune API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Get rid of all intermediate nodes that aren't needed.
"Get rid of all intermediate nodes that aren't needed."
148
false
AmesCornish/buttersink
_prune
12,260
LDU_FT/Cymmetria/honeycomb/register_service
LDU_FT
[ "<BEGIN>\n## `config_field_type`", "Validate a config field against a type.", " Similar functionality to :func:`validate_field_matches_type` but returns :obj:`honeycomb.defs.ConfigField`\n<END>", "<BEGIN>\n## `validate_config`", "Validate a JSON file configuration against list of :obj:`honeycomb.defs.Con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_service API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_service API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Register a honeycomb service. :param package_folder: Path to folder with service to load :returns: Validated service object :rtype: :func:`honeycomb.utils.defs.ServiceType`
"Register a honeycomb service.\n\n :param package_folder: Path to folder with service to load\n :returns: Validated service object\n :rtype: :func:`honeycomb.utils.defs.ServiceType`"
90
false
Cymmetria/honeycomb
register_service
12,261
LDU_FT/v1k45/python-qBittorrent/_request
LDU_FT
[ "<BEGIN>\n## `_post`", "Method to perform POST request on the API.", " :param endpoint: Endpoint of the API.\n :param data: POST DATA for the request.\n :param kwargs: Other keyword arguments for requests.", " :return: Response of the POST request.\n<END>", "<BEGIN>\n## `_request...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracte...
Method to hanle both GET and POST requests. :param endpoint: Endpoint of the API. :param method: Method of HTTP request. :param data: POST DATA for the request. :param kwargs: Other keyword arguments. :return: Response for the request.
"Method to hanle both GET and POST requests.\n\n :param endpoint: Endpoint of the API.\n :param method: Method of HTTP request.\n :param data: POST DATA for the request.\n :param kwargs: Other keyword arguments.\n\n :return: Response for the request."
98
false
v1k45/python-qBittorrent
_request
12,262
LDU_FT/andialbrecht/sqlparse/_reset
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 _reset API. 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 _reset API. 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 ...
Set the filter attributes to its default values
"Set the filter attributes to its default values"
57
false
andialbrecht/sqlparse
_reset
12,263
LDU_FT/refinery29/chassis/_parse_arguments
LDU_FT
[ "<BEGIN>\n## `detect_circle`", "Wrapper for recursive _detect_circle function\n<END>", "<BEGIN>\n## `_detect_circle`", "Recursively iterate over nodes checking\n if we've traveled to that node before.\n<END>", "<BEGIN>\n## `_do`", "Recursive method to instantiate services\n<END>", "<BEGIN>\n## `_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_arguments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_arguments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parse arguments to method, returning a dictionary.
"Parse arguments to method, returning a dictionary."
75
false
refinery29/chassis
_parse_arguments
12,264
LDU_FT/MisanthropicBit/colorise/parse
LDU_FT
[ "<BEGIN>\n## `set_color`", "Set the current colors.", " If no arguments are given, sets default colors.\n<END>", "<BEGIN>\n## `cprint`", "Print a colored string to the target handle.", " fg and bg specify foreground- and background colors, respectively. The\n remaining keyword arguments are the s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. 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 parse API. 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...
Parse color syntax from a formatted string.
"Parse color syntax from a formatted string."
31
false
MisanthropicBit/colorise
parse
12,265
LDU_FT/secynic/ipwhois/_get_nets_other
LDU_FT
[ "<BEGIN>\n## `lookup_asn`", "Temporary wrapper for IP ASN lookups (moved to\n asn.IPASN.lookup()). This will be removed in a future\n release.\n<END>", "<BEGIN>\n## `get_asn_dns`", "The function for retrieving ASN information for an IP address from\n Cymru via port 53 (DNS).", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_nets_other API. 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_nets_other API. 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...
Deprecated. This will be removed in a future release.
"Deprecated. This will be removed in a future release."
333
false
secynic/ipwhois
_get_nets_other
12,266
LDU_FT/dwavesystems/dwave_networkx/minor_min_width
LDU_FT
[ "<BEGIN>\n## `traveling_salesman`", "Returns an approximate minimum traveling salesperson route.", " Defines a QUBO with ground states corresponding to the\n minimum routes and uses the sampler to sample\n from it.", " A route is a cycle in the graph that reaches each node exactly once.\n A min...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the minor_min_width API. 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 minor_min_width API. 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...
Computes a lower bound for the treewidth of graph G. Parameters ---------- G : NetworkX graph The graph on which to compute a lower bound on the treewidth. Returns ------- lb : int A lower bound on the treewidth. Examples -------- This example computes a lower boun...
"Computes a lower bound for the treewidth of graph G.\n\n Parameters\n ----------\n G : NetworkX graph\n The graph on which to compute a lower bound on the treewidth.\n\n Returns\n -------\n lb : int\n A lower bound on the treewidth.\n\n Examples\n --------\n This example comput...
563
false
dwavesystems/dwave_networkx
minor_min_width
12,267
LDU_FT/SMTG-UCL/sumo/_sanitise_label_group
LDU_FT
[ "<BEGIN>\n## `kpath_from_seekpath`", "r\"\"\"Convert seekpath-formatted kpoints path to sumo-preferred format.", " If 'GAMMA' is used as a label this will be replaced by '\\Gamma'.", " Args:\n seekpath (list): A :obj:`list` of 2-tuples containing the labels at\n each si...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sanitise_label_group 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 _sanitise_label_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Implement label hacks: Hide trailing @, remove label with leading @ Labels split with $\mid$ symbol will be treated for each part.
"Implement label hacks: Hide trailing @, remove label with leading @\n\n Labels split with $\\mid$ symbol will be treated for each part."
449
false
SMTG-UCL/sumo
_sanitise_label_group
12,268
LDU_FT/batiste/django-page-cms/from_path
LDU_FT
[ "<BEGIN>\n## `register_widget`", "Register the given widget as a candidate to use in placeholder.\n<END>", "<BEGIN>\n## `get_widget`", "Give back a widget class according to his name.\n<END>", "<BEGIN>\n## `save_model`", "Move the page in the tree if necessary and save every\n placeholder :class:`C...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extract...
Resolve a request to an alias. returns a :class:`PageAlias <pages.models.PageAlias>` if the url matches no page at all. The aliasing system supports plain aliases (``/foo/bar``) as well as aliases containing GET parameters (like ``index.php?page=foo``). :param request: the reque...
"Resolve a request to an alias. returns a\n :class:`PageAlias <pages.models.PageAlias>` if the url matches\n no page at all. The aliasing system supports plain\n aliases (``/foo/bar``) as well as aliases containing GET parameters\n (like ``index.php?page=foo``).\n\n :param request: th...
218
false
batiste/django-page-cms
from_path
12,269
LDU_FT/rpcope1/PythonConfluenceAPI/update_property
LDU_FT
[ "<BEGIN>\n## `request_patch`", "Maintains the existing api for Session.request.\n Used by all of the higher level methods, e.g. Session.get.\n The background_callback param allows you to do some processing on the\n response in the background, e.g. call resp.json() so that json parsing\n happens in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Updates a content property. The body contains the representation of the content property. Must include the property id, and the new version number. Attempts to create a new content property if the given version number is 1, just like {@link #create(com.atlassian.confluence.api.model.content.id....
"Updates a content property.\n\n The body contains the representation of the content property. Must include the property id, and the new version\n number. Attempts to create a new content property if the given version number is 1, just like\n {@link #create(com.atlassian.confluence.api.model.conten...
140
false
rpcope1/PythonConfluenceAPI
update_property
12,270
LDU_FT/readbeyond/aeneas/_load_audio_file
LDU_FT
[ "<BEGIN>\n## `pretty_print`", "Return a Unicode string pretty print of the log entries.", " :param bool as_list: if ``True``, return a list of Unicode strings,\n one for each entry, instead of a Unicode string\n :param bool show_datetime: if ``True``, show the date and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_audio_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_audio_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 ...
Load audio in memory. :rtype: :class:`~aeneas.audiofile.AudioFile`
"Load audio in memory.\n\n :rtype: :class:`~aeneas.audiofile.AudioFile`"
1,097
true
readbeyond/aeneas
_load_audio_file
12,271
LDU_FT/pushyzheng/flask-rabbitmq/declare_consuming
LDU_FT
[ "<BEGIN>\n## `bind_topic_exchange`", "绑定主题交换机和队列\n :param exchange_name: 需要绑定的交换机名\n :param routing_key:\n :param queue_name: 需要绑定的交换机队列名\n :return:\n<END>", "<BEGIN>\n## `declare_queue`", "声明一个队列\n :param queue_name: 队列名\n :param passive:\n :param durable:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the declare_consuming API. 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 declare_consuming API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
声明一个主题交换机队列,并且将队列和交换机进行绑定,同时监听这个队列 :param exchange_name: :param routing_key: :param queue_name: :param callback: :return:
"声明一个主题交换机队列,并且将队列和交换机进行绑定,同时监听这个队列\n :param exchange_name:\n :param routing_key:\n :param queue_name:\n :param callback:\n :return:"
16
false
pushyzheng/flask-rabbitmq
declare_consuming
12,272