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/KnightHawk3/Hummingbird/get_feed
LDU_FT
[ "<BEGIN>\n## `_query_`", "Used internally for requests.", " :param str path: The path to hit.\n :param str method: The method to use, either `'GET'` or `'POST.`\n :param dict data:\n The optional paramters to the `GET` or the data to `POST`.", " :returns:\n Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_feed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_feed API. 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...
Gets a user's feed. :param str username: User to fetch feed from.
"Gets a user's feed.\n\n :param str username: User to fetch feed from."
35
false
KnightHawk3/Hummingbird
get_feed
36,173
LDU_FT/andymccurdy/redis-py/xpending_range
LDU_FT
[ "<BEGIN>\n## `acquire`", "Use Redis to hold a shared, distributed lock named ``name``.\n Returns True once the lock is acquired.", " If ``blocking`` is False, always return immediately. If the lock\n was acquired, return True, otherwise return False.", " ``blocking_timeout`` specif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xpending_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xpending_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns information about pending messages, in a range. name: name of the stream. groupname: name of the consumer group. min: minimum stream ID. max: maximum stream ID. count: number of messages to return consumername: name of a consumer to filter by (optional).
"Returns information about pending messages, in a range.\n name: name of the stream.\n groupname: name of the consumer group.\n min: minimum stream ID.\n max: maximum stream ID.\n count: number of messages to return\n consumername: name of a consumer to filter by (optional)."
308
false
andymccurdy/redis-py
xpending_range
36,174
LDU_FT/hydpy-dev/hydpy/get_slices
LDU_FT
[ "<BEGIN>\n## `xml_replace`", "Read the content of an XML template file (XMLT), apply the given\n `replacements` to its substitution markers, and write the result into\n an XML file with the same name but ending with `xml` instead of `xmlt`.", " First, we write an XMLT file, containing a regular HTML c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_slices API. 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_slices API. 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...
Return a |tuple| of one |int| and some |slice| objects to accesses all values of a certain device within |NetCDFVariableDeep.array|. >>> from hydpy.core.netcdftools import NetCDFVariableDeep >>> ncvar = NetCDFVariableDeep('test', isolate=False, timeaxis=1) >>> ncvar.get_slices(2...
"Return a |tuple| of one |int| and some |slice| objects to\n accesses all values of a certain device within\n |NetCDFVariableDeep.array|.\n\n >>> from hydpy.core.netcdftools import NetCDFVariableDeep\n >>> ncvar = NetCDFVariableDeep('test', isolate=False, timeaxis=1)\n >>> ncvar.get_s...
3,847
true
hydpy-dev/hydpy
get_slices
36,175
LDU_FT/wtolson/pysis/write_file_list
LDU_FT
[ "<BEGIN>\n## `apply_scaling`", "Scale pixel values to there true DN.", " :param copy: whether to apply the scalling to a copy of the pixel data\n and leave the orginial unaffected", " :returns: a scalled version of the pixel data\n<END>", "<BEGIN>\n## `specials_mask`", "Create a p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_file_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_file_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Write a list of files to a file. :param filename: the name of the file to write the list to :param file_list: a list of filenames to write to a file :param glob: if glob is specified, it will ignore file_list and instead create a list of files based on the pattern provide by glob (ex. *.cub)
"Write a list of files to a file.\n\n :param filename: the name of the file to write the list to\n\n :param file_list: a list of filenames to write to a file\n\n :param glob: if glob is specified, it will ignore file_list and instead\n create a list of files based on the pattern provide by glob (ex. *.c...
42
false
wtolson/pysis
write_file_list
36,176
LDU_FT/ARMmbed/mbed-connector-api-python/setHandler
LDU_FT
[ "<BEGIN>\n## `getConnectorVersion`", "GET the current Connector version.", "\t\t:returns: asyncResult object, populates error and result fields\n\t\t:rtype: asyncResult\n<END>", "<BEGIN>\n## `getEndpoints`", "Get list of all endpoints on the domain.", "\t\t:param str typeOfEndpoint: Optional filter endpo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setHandler API. 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 setHandler API. 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...
Register a handler for a particular notification type. These are the types of notifications that are acceptable. | 'async-responses' | 'registrations-expired' | 'de-registrations' | 'reg-updates' | 'registrations' | 'notifications' :param str handler: name of the notification type :param fnptr cb...
"Register a handler for a particular notification type.\n\t\tThese are the types of notifications that are acceptable. \n\t\t\n\t\t| 'async-responses'\n\t\t| 'registrations-expired'\n\t\t| 'de-registrations'\n\t\t| 'reg-updates'\n\t\t| 'registrations'\n\t\t| 'notifications'\n\n\t\t:param str handler: name of the notifi...
56
false
ARMmbed/mbed-connector-api-python
setHandler
36,177
LDU_FT/sveetch/boussole/update
LDU_FT
[ "<BEGIN>\n## `clean`", "Filter given settings to keep only key names available in\n ``DEFAULT_SETTINGS``.", " Args:\n settings (dict): Loaded settings.", " Returns:\n dict: Settings object filtered.\n<END>", "<BEGIN>\n## `set_settings`", "Set every given settings...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Update object attributes from given settings Args: settings (dict): Dictionnary of elements to update settings. Returns: dict: Dictionnary of all current saved settings.
"Update object attributes from given settings\n\n Args:\n settings (dict): Dictionnary of elements to update settings.\n\n Returns:\n dict: Dictionnary of all current saved settings."
289
false
sveetch/boussole
update
36,178
LDU_FT/DinoTools/python-overpy/query
LDU_FT
[ "<BEGIN>\n## `_handle_remark_msg`", "Try to parse the message provided with the remark tag or element.", " :param str msg: The message\n :raises overpy.exception.OverpassRuntimeError: If message starts with 'runtime error:'\n :raises overpy.exception.OverpassRuntimeRemark: If message starts...
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...
Query the Overpass API :param String|Bytes query: The query string in Overpass QL :return: The parsed result :rtype: overpy.Result
"Query the Overpass API\n\n :param String|Bytes query: The query string in Overpass QL\n :return: The parsed result\n :rtype: overpy.Result"
119
false
DinoTools/python-overpy
query
36,179
LDU_FT/twilio/twilio-python/example
LDU_FT
[ "<BEGIN>\n## `stream`", "Streams KeyInstance records from the API as a generator stream.\n This operation lazily loads records as efficiently as possible until the limit\n is reached.\n The results are returned as a generator, so this operation is memory efficient.", " :param int lim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the example API. 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 example API. 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...
Example of using the ValidationClient for signed requests to Twilio. This is only available to enterprise customers. This will walkthrough creating an API Key, generating an RSA keypair, setting up a ValidationClient with these values and making requests with the client.
"Example of using the ValidationClient for signed requests to Twilio.\n This is only available to enterprise customers.\n\n This will walkthrough creating an API Key, generating an RSA keypair, setting up a\n ValidationClient with these values and making requests with the client."
4,304
true
twilio/twilio-python
example
36,180
LDU_FT/edeposit/marcxml2mods/double_linked_dom
LDU_FT
[ "<BEGIN>\n## `postprocess_periodical`", "Some basic postprocessing of the periodical publications.", " Args:\n marc_xml (str): Original Aleph record.\n mods (str): XML string generated by XSLT template.\n uuid (str): UUID of the package.\n counter (int): Number of record, is added...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the double_linked_dom API. 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 double_linked_dom API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create double linked DOM from input. In case of string, parse it, make it double-linked. In case of DOM, just make it double-linked. Args: str_or_dom (str/HTMLelement): String or HTMLelement instance. Returns: obj: HTMLelement with parsed, double-linked content from `str_or_dom`.
"Create double linked DOM from input.\n\n In case of string, parse it, make it double-linked. In case of DOM, just\n make it double-linked.\n\n Args:\n str_or_dom (str/HTMLelement): String or HTMLelement instance.\n\n Returns:\n obj: HTMLelement with parsed, double-linked content from `str_or_...
93
false
edeposit/marcxml2mods
double_linked_dom
36,181
LDU_FT/althonos/moclo/placeholder_sequence
LDU_FT
[ "<BEGIN>\n## `structure`", "Get the vector structure, as a DNA regex pattern.", " Warning:\n If overloading this method, the returned pattern must include 3\n capture groups to capture the following features:", " 1. The downstream (3') overhang sequence\n 2. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the placeholder_sequence 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 placeholder_sequence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get the placeholder sequence in the vector. The placeholder sequence is replaced by the concatenation of modules during the assembly. It often contains a dropout sequence, such as a GFP expression cassette that can be used to measure the progress of the assembly.
"Get the placeholder sequence in the vector.\n\n The placeholder sequence is replaced by the concatenation of modules\n during the assembly. It often contains a dropout sequence, such as a\n GFP expression cassette that can be used to measure the progress of\n the assembly."
32
false
althonos/moclo
placeholder_sequence
36,182
LDU_FT/glue-viz/glue-vispy-viewers/_parse_template_vars
LDU_FT
[ "<BEGIN>\n## `iso_mesh_line`", "Generate an isocurve from vertex data in a surface mesh.", " Parameters\n ----------\n vertices : ndarray, shape (Nv, 3)\n Vertex coordinates.\n tris : ndarray, shape (Nf, 3)\n Indices of triangular element into the vertices array.\n vertex_data : nda...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_template_vars 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 _parse_template_vars API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
find all template variables in self._code, excluding the function name.
"find all template variables in self._code, excluding the\n function name."
1,752
true
glue-viz/glue-vispy-viewers
_parse_template_vars
36,183
LDU_FT/teepark/junction/wait_connected
LDU_FT
[ "<BEGIN>\n## `wait_connected`", "Wait for connections to be made and their handshakes to finish", " :param conns:\n a single or list of (host, port) tuples with the connections that\n must be finished before the method will return. defaults to all the\n peers the :class:`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_connected API. 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 wait_connected API. 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...
Wait for connections to be made and their handshakes to finish :param conns: a single or list of (host, port) tuples with the connections that must be finished before the method will return. defaults to all the peers the :class:`Hub` was instantiated with. :param tim...
"Wait for connections to be made and their handshakes to finish\n\n :param conns:\n a single or list of (host, port) tuples with the connections that\n must be finished before the method will return. defaults to all the\n peers the :class:`Hub` was instantiated with.\n :pa...
131
false
teepark/junction
wait_connected
36,184
LDU_FT/caseyjlaw/rtpipe/imagearm
LDU_FT
[ "<BEGIN>\n## `get_metadata`", "Function to scan data (a small read) and define parameters used elsewhere.\n filename needs full path.\n Examples include, read/bgsub windows, image grid, memory profile.\n If pickle file doesn't exist, it creates one. \n Either way, dictionary is returned with info.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the imagearm API. 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 imagearm API. 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...
Function to do end-to-end 1d, arm-based imaging
"Function to do end-to-end 1d, arm-based imaging"
256
false
caseyjlaw/rtpipe
imagearm
36,185
LDU_FT/jf-parent/brome/scp_file_remote_to_local
LDU_FT
[ "<BEGIN>\n## `validate_config`", "Validate that the browser config contains all the needed config\n<END>", "<BEGIN>\n## `send_keys`", "wait_until_clickable = kwargs.get(\n 'wait_until_clickable',\n BROME_CONFIG['proxy_element']['wait_until_clickable']\n )", " if wait_unti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scp_file_remote_to_local 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 scp_file_remote_to_local API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Scp a remote file to local Args: remote_path (str) local_path (str)
"Scp a remote file to local\n\n Args:\n remote_path (str)\n local_path (str)"
144
false
jf-parent/brome
scp_file_remote_to_local
36,186
LDU_FT/trombastic/PyScada/check_db_connection
LDU_FT
[ "<BEGIN>\n## `_reinit_daq_daemons`", "update the daq daemon configuration when changes be applied in the models\n<END>", "<BEGIN>\n## `connect`", "establish a connection to the Instrument\n<END>", "<BEGIN>\n## `find_gap`", "try to find a address gap in the list of modbus registers\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_db_connection 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 check_db_connection 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...
from: https://stackoverflow.com/questions/7835272/django-operationalerror-2006-mysql-server-has-gone-away
"from: https://stackoverflow.com/questions/7835272/django-operationalerror-2006-mysql-server-has-gone-away"
60
false
trombastic/PyScada
check_db_connection
36,187
LDU_FT/quantifiedcode/checkmate/analyze
LDU_FT
[ "<BEGIN>\n## `get_first_date_for_group`", ":param start: start date\n :n : how many groups we want to get\n :group_type : daily, weekly, monthly\n<END>", "<BEGIN>\n## `get_snapshots`", "Returns a list of snapshots in a given repository.\n<END>", "<BEGIN>\n## `diff_objects`", "Returns ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze API. 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 analyze API. 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...
Handling dependencies: * First, genreate a list of file revisions for this snapshot * Then, check which ones of of them already exist * For the existing ones, check their dependencies * If any of the dependencies are outdated, add the dependent file revision to the analyze list ...
"Handling dependencies:\n\n * First, genreate a list of file revisions for this snapshot\n * Then, check which ones of of them already exist\n * For the existing ones, check their dependencies\n * If any of the dependencies are outdated, add the dependent file revision to the analyze list\n\...
35
false
quantifiedcode/checkmate
analyze
36,188
LDU_FT/lltk/lltk/needsconnection
LDU_FT
[ "<BEGIN>\n## `pos`", "Tries to decide about the part of speech.\n<END>", "<BEGIN>\n## `articles`", "Tries to scrape the correct articles for singular and plural from uitmuntend.nl.\n<END>", "<BEGIN>\n## `plural`", "Tries to scrape the plural version from uitmuntend.nl.\n<END>", "<BEGIN>\n## `warning`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the needsconnection API. 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 needsconnection API. 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...
Decorator used to make sure that the connection has been established.
"Decorator used to make sure that the connection has been established."
80
false
lltk/lltk
needsconnection
36,189
LDU_FT/uw-it-aca/uw-restclients-core/_custom_response_edit
LDU_FT
[ "<BEGIN>\n## `retry`", "Decorator function for retrying the decorated function,\n using an exponential or fixed backoff.", " Original: https://wiki.python.org/moin/PythonDecoratorLibrary#Retry", " ExceptionToCheck: the exception to check. Can be a tuple of\n exceptions to check\n tries: num...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _custom_response_edit 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 _custom_response_edit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
This method allows a service to edit a response. If you want to do this, you probably really want to use _edit_mock_response - this method will operate on Live resources.
"This method allows a service to edit a response.\n\n If you want to do this, you probably really want to use\n _edit_mock_response - this method will operate on Live resources."
21
false
uw-it-aca/uw-restclients-core
_custom_response_edit
36,190
LDU_FT/sammchardy/python-binance/get_asset_balance
LDU_FT
[ "<BEGIN>\n## `add_bid`", "Add a bid to the cache", " :param bid:\n :return:\n<END>", "<BEGIN>\n## `add_ask`", "Add an ask to the cache", " :param ask:\n :return:\n<END>", "<BEGIN>\n## `_init_cache`", "Initialise the depth cache calling REST endpoint", " :return:\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_asset_balance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_asset_balance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get current asset balance. https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md#account-information-user_data :param asset: required :type asset: str :param recvWindow: the number of milliseconds the request is valid for :type recvWindow: int ...
"Get current asset balance.\n\n https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md#account-information-user_data\n\n :param asset: required\n :type asset: str\n :param recvWindow: the number of milliseconds the request is valid for\n :type recvWindow...
233
false
sammchardy/python-binance
get_asset_balance
36,191
LDU_FT/wiredrive/wtframework/row_to_dictionary
LDU_FT
[ "<BEGIN>\n## `print_debug`", "Print if and only if the debug flag is set true in the config.yaml file.", " Args:\n args : var args of print arguments.\n<END>", "<BEGIN>\n## `print_time`", "Print the current elapsed time.", " Kwargs:\n message (str) : Message to prefix the time ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the row_to_dictionary API. 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 row_to_dictionary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Converts a row into a dictionary of key/values. (Note: assumes all rows/columns have uniform cells. Does not account for any row or column spans) Args: header_row_web_element (WebElement): WebElement reference to the column headers. row_webelement (WebElement):...
"Converts a row into a dictionary of key/values.\n (Note: assumes all rows/columns have uniform cells. Does not \n account for any row or column spans)\n \n Args:\n header_row_web_element (WebElement): WebElement reference to the column headers.\n row_webelement (WebEl...
236
false
wiredrive/wtframework
row_to_dictionary
36,192
LDU_FT/alexa/alexa-skills-kit-sdk-for-python/post
LDU_FT
[ "<BEGIN>\n## `invoke`", "Invokes the dispatcher, to handle the request envelope and\n return a response envelope.", " :param request_envelope: Request Envelope instance containing\n request information\n :type request_envelope: RequestEnvelope\n :param context: Context pas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
The method that handles HTTP POST request on the view. This method is called when the view receives a HTTP POST request, which is generally the request sent from Alexa during skill invocation. The request is verified through the registered list of verifiers, before invoking the request ...
"The method that handles HTTP POST request on the view.\n\n This method is called when the view receives a HTTP POST\n request, which is generally the request sent from Alexa during\n skill invocation. The request is verified through the\n registered list of verifiers, before invoking the re...
285
false
alexa/alexa-skills-kit-sdk-for-python
post
36,193
LDU_FT/msmbuilder/msmbuilder/score
LDU_FT
[ "<BEGIN>\n## `fraction_visited`", "Calculate the fraction of times a walker on `tprob` going from `sources`\n to `sinks` will travel through the set of states `waypoints` en route.", " Computes the conditional committors q^{ABC^+} and uses them to find the\n fraction of paths mentioned above.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the score API. 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 score API. 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...
Score the model on new data using the generalized matrix Rayleigh quotient Parameters ---------- sequences : list of array-like List of sequences, or a single sequence. Each sequence should be a 1D iterable of state labels. Labels can be integers, strings, or ...
"Score the model on new data using the generalized matrix Rayleigh\n quotient\n\n Parameters\n ----------\n sequences : list of array-like\n List of sequences, or a single sequence. Each sequence should be a\n 1D iterable of state labels. Labels can be integers, strings...
721
false
msmbuilder/msmbuilder
score
36,194
LDU_FT/Jayin/ETipsService/get_charset
LDU_FT
[ "<BEGIN>\n## `_get_electricity_info_html`", "get html", " :param apart_id: 栋数\n :param meter_room: 宿舍号\n<END>", "<BEGIN>\n## `get_electricity_info`", "get electricity info", " :param apart_id: 栋数\n :param meter_room: 宿舍号\n<END>", "<BEGIN>\n## `get_wyu_news`", "获取新闻列...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_charset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_charset API. 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...
get charset in html page return : default if not exist `charset`
"get charset in html page\n return : default if not exist `charset`"
26
false
Jayin/ETipsService
get_charset
36,195
LDU_FT/rwl/pylon/read_case
LDU_FT
[ "<BEGIN>\n## `performAction`", "perform an action on the world that changes it's internal state\n (maybe stochastically).", " All you have to do is pull one of the arm and receive a payout. Each\n arm has a distribution of different payouts that are delivered with\n different probabi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_case API. 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 read_case API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns a case object from the given input file object. The data format may be optionally specified.
"Returns a case object from the given input file object. The data\n format may be optionally specified."
527
false
rwl/pylon
read_case
36,196
LDU_FT/koreyou/word_embedding_loader/load
LDU_FT
[ "<BEGIN>\n## `save`", "Save word embedding file.", " Args:\n f (File): File to write the vectors. File should be open for writing\n ascii.\n arr (numpy.array): Numpy array with ``float`` dtype.\n vocab (iterable): Each element is pair of a word (``bytes``) and ``arr``\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Refer to :func:`word_embedding_loader.loader.glove.load` for the API.
"Refer to :func:`word_embedding_loader.loader.glove.load` for the API."
45
false
koreyou/word_embedding_loader
load
36,197
LDU_FT/klahnakoski/pyLibrary/expand
LDU_FT
[ "<BEGIN>\n## `groupby`", ":param data:\n :param keys:\n :param size:\n :param min_size:\n :param max_size:\n :param contiguous: MAINTAIN THE ORDER OF THE DATA, STARTING THE NEW GROUP WHEN THE SELECTOR CHANGES\n :return: return list of (keys, values) PAIRS, WHERE\n keys IS IN LEAF...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand API. 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 expand API. 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 ...
ASSUMING YOU ALREADY PULED THE doc FROM doc_url, YOU CAN STILL USE THE EXPANDING FEATURE USE mo_json_config.expand({}) TO ASSUME CURRENT WORKING DIRECTORY :param doc: THE DATA STRUCTURE FROM JSON SOURCE :param doc_url: THE URL THIS doc CAME FROM (DEFAULT USES params AS A DOCUMENT SOURCE) :param pa...
"ASSUMING YOU ALREADY PULED THE doc FROM doc_url, YOU CAN STILL USE THE\n EXPANDING FEATURE\n\n USE mo_json_config.expand({}) TO ASSUME CURRENT WORKING DIRECTORY\n\n :param doc: THE DATA STRUCTURE FROM JSON SOURCE\n :param doc_url: THE URL THIS doc CAME FROM (DEFAULT USES params AS A DOCUMENT SOURCE)\n :...
574
false
klahnakoski/pyLibrary
expand
36,198
LDU_FT/Azure/azure-cosmos-python/Upsert
LDU_FT
[ "<BEGIN>\n## `ShouldRetry`", "Returns true if should retry based on the passed-in exception.", " :param (errors.HTTPFailure instance) exception:", " :rtype:\n boolean\n<END>", "<BEGIN>\n## `ExplicitlyExcludeFromIndex`", "The default index policy on a DocumentContainer will AUTOMAT...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Upsert API. 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 Upsert API. 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 ...
Upserts a Azure Cosmos resource and returns it. :param dict body: :param str path: :param str type: :param str id: :param dict initial_headers: :param dict options: The request options for the request. :return: The upserted Azure ...
"Upserts a Azure Cosmos resource and returns it.\n \n :param dict body:\n :param str path:\n :param str type:\n :param str id:\n :param dict initial_headers:\n :param dict options:\n The request options for the request.\n\n :return:\n The ups...
574
false
Azure/azure-cosmos-python
Upsert
36,199
LDU_FT/basler/pypylon/subnode_parse
LDU_FT
[ "<BEGIN>\n## `shift`", "Return a list corresponding to the lines of text in the `txt` list\n indented by `indent`. Prepend instead the string given in `prepend` to the\n beginning of the first line. Note that if len(prepend) > len(indent), then\n `prepend` will be truncated (doing better is tricky!). Thi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subnode_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subnode_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 ext...
Parse the subnodes of a given node. Subnodes with tags in the `ignore` list are ignored. If pieces is given, use this as target for the parse results instead of self.pieces. Indent all lines by the amount given in `indent`. Note that the initial content in `pieces` is not indented. The f...
"Parse the subnodes of a given node. Subnodes with tags in the\n `ignore` list are ignored. If pieces is given, use this as target for\n the parse results instead of self.pieces. Indent all lines by the amount\n given in `indent`. Note that the initial content in `pieces` is not\n indented. ...
42
false
basler/pypylon
subnode_parse
36,200
LDU_FT/scott-maddox/openbandparams/_get_z
LDU_FT
[ "<BEGIN>\n## `GaP_Eg_Gamma`", "Returns the Gamma-valley bandgap, Eg_Gamma, in electron Volts at a\n given temperature, T, in Kelvin (default: 300 K).", " GaP has a unique Gamma-gap temperature dependence.\n<END>", "<BEGIN>\n## `_has_x`", "Returns True if x is explicitly defined in kwargs\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_z API. 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_z API. 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 z if type is 1 or 2 and z is explicitly defined in kwargs. Otherwise, raises TypeError.
"Returns z if type is 1 or 2 and z is explicitly defined in kwargs.\n Otherwise, raises TypeError."
68
false
scott-maddox/openbandparams
_get_z
36,201
LDU_FT/Knoema/knoema-python-driver/save_to_json
LDU_FT
[ "<BEGIN>\n## `is_equal_strings_ignore_case`", "The function compares strings ignoring case\n<END>", "<BEGIN>\n## `find_dimension_by_name`", "the method searching dimension with a given name\n<END>", "<BEGIN>\n## `find_dimension_by_id`", "the method searching dimension with a given id\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
The method saves data to json from object
"The method saves data to json from object"
48
false
Knoema/knoema-python-driver
save_to_json
36,202
LDU_FT/BYU-Hydroinformatics/HydroErr/mde
LDU_FT
[ "<BEGIN>\n## `me`", "Compute the mean error of the simulated and observed data.", " .. image:: /pictures/ME.png", " **Range:** -inf < MAE < inf, data units, closer to zero is better, indicates bias.", " **Notes:** The mean error (ME) measures the difference between the simulated data and the\n o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mde API. 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 mde API. 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...
Compute the median error (MdE) between the simulated and observed data. .. image:: /pictures/MdE.png **Range** -inf < MdE < inf, closer to zero is better. **Notes** This metric indicates bias. It is similar to the mean error (ME), only it takes the median rather than the mean. Median measures reduces...
"Compute the median error (MdE) between the simulated and observed data.\n\n .. image:: /pictures/MdE.png\n\n **Range** -inf < MdE < inf, closer to zero is better.\n\n **Notes** This metric indicates bias. It is similar to the mean error (ME), only it takes the\n median rather than the mean. Median measures...
343
false
BYU-Hydroinformatics/HydroErr
mde
36,203
LDU_FT/fprimex/zdesk/ticket_collaborators
LDU_FT
[ "<BEGIN>\n## `batch`", "Helper to setup batch requests.", " There are endpoints which support updating multiple resources at once,\n but they are often limited to 100 updates per request.\n This function helps with splitting bigger requests into sequence of\n smaller ones.", " Example:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ticket_collaborators 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 ticket_collaborators API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
https://developer.zendesk.com/rest_api/docs/core/tickets#list-collaborators-for-a-ticket
"https://developer.zendesk.com/rest_api/docs/core/tickets#list-collaborators-for-a-ticket"
803
false
fprimex/zdesk
ticket_collaborators
36,204
LDU_FT/cenkalti/kuyruk/_process_message
LDU_FT
[ "<BEGIN>\n## `run`", "Runs the worker and consumes messages from RabbitMQ.\n Returns only after `shutdown()` is called.\n<END>", "<BEGIN>\n## `_process_message`", "Processes the message received from the queue.\n<END>", "<BEGIN>\n## `_apply_task`", "Logs the time spent while running the task.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Processes the message received from the queue.
"Processes the message received from the queue."
32
false
cenkalti/kuyruk
_process_message
36,205
LDU_FT/shazow/unstdlib.py/groupby_count
LDU_FT
[ "<BEGIN>\n## `convert_exception`", "Decorator: Catch exception ``from_exception`` and instead raise ``to_exception(*to_args, **to_kw)``.", " Useful when modules you're using in a method throw their own errors that you want to\n convert to your own exceptions that you handle higher in the stack.", " E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the groupby_count API. 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 groupby_count API. 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...
Aggregate iterator values into buckets based on how frequently the values appear. Example:: >>> list(groupby_count([1, 1, 1, 2, 3])) [(1, 3), (2, 1), (3, 1)]
"Aggregate iterator values into buckets based on how frequently the\n values appear.\n\n Example::\n\n >>> list(groupby_count([1, 1, 1, 2, 3]))\n [(1, 3), (2, 1), (3, 1)]"
187
false
shazow/unstdlib.py
groupby_count
36,206
LDU_FT/mardix/Yass/create_manifest_from_s3_files
LDU_FT
[ "<BEGIN>\n## `setup_dns`", "Setup site domain to route to static site\n<END>", "<BEGIN>\n## `create_site`", "Create a new site directory and init Yass\n<END>", "<BEGIN>\n## `init`", "Initialize Yass in the current directory\n<END>", "<BEGIN>\n## `create_page`", "Create a new page Omit the extension, i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_manifest_from_s3_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_manifest_from_s3_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
To create a manifest db for the current :return:
"To create a manifest db for the current\n :return:"
36
false
mardix/Yass
create_manifest_from_s3_files
36,207
LDU_FT/ioos/cc-plugin-ncei/check_base_suggested_attributes
LDU_FT
[ "<BEGIN>\n## `check_timeseries_id`", "Checks that if a variable exists for the time series id it has the appropriate attributes", " :param netCDF4.Dataset dataset: An open netCDF dataset\n<END>", "<BEGIN>\n## `check_recommended_attributes`", "Feature type specific check of global recommended attribut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_base_suggested_attributes 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 check_base_suggested_attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Check the global suggested attributes for 2.0 templates. These go an extra step besides just checking that they exist. :param netCDF4.Dataset dataset: An open netCDF dataset :creator_type = "" ; //........................................ SUGGESTED - Specifies type of creator with one of the fo...
"Check the global suggested attributes for 2.0 templates. These go an extra step besides\n just checking that they exist.\n\n :param netCDF4.Dataset dataset: An open netCDF dataset\n\n :creator_type = \"\" ; //........................................ SUGGESTED - Specifies type of creator with one o...
134
false
ioos/cc-plugin-ncei
check_base_suggested_attributes
36,208
LDU_FT/mikemaccana/python-docx/clean
LDU_FT
[ "<BEGIN>\n## `opendocx`", "Open a docx file, return a document XML tree\n<END>", "<BEGIN>\n## `pagebreak`", "Insert a break, default 'page'.\n See http://openxmldeveloper.org/forums/thread/4075.aspx\n Return our page break element.\n<END>", "<BEGIN>\n## `paragraph`", "Return a new paragraph element ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. 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 clean API. 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...
Perform misc cleaning operations on documents. Returns cleaned document.
"Perform misc cleaning operations on documents.\n Returns cleaned document."
51
false
mikemaccana/python-docx
clean
36,209
LDU_FT/pre-commit/pre-commit-hooks/get_aws_secrets_from_file
LDU_FT
[ "<BEGIN>\n## `check_docstring_first`", "Returns nonzero if the source has what looks like a docstring that is\n not at the beginning of the source.", " A string will be considered a docstring if it is a STRING token with a\n col offset of 0.\n<END>", "<BEGIN>\n## `get_aws_secrets_from_env`", "Extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_aws_secrets_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_aws_secrets_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Extract AWS secrets from configuration files. Read an ini-style configuration file and return a set with all found AWS secret access keys.
"Extract AWS secrets from configuration files.\n\n Read an ini-style configuration file and return a set with all found AWS\n secret access keys."
25
false
pre-commit/pre-commit-hooks
get_aws_secrets_from_file
36,210
LDU_FT/alfred82santa/dirty-models/process_base_field
LDU_FT
[ "<BEGIN>\n## `recover_model_from_data`", "Function to reconstruct a model from DirtyModel basic information: original data, the modified and deleted\n fields.\n Necessary for pickle an object\n<END>", "<BEGIN>\n## `recover_dynamic_model_from_data`", "Function to reconstruct a model from DirtyModel basic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_base_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_base_field 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...
Preprocess field instances. :param field: Field object :param key: Key where field was found
"Preprocess field instances.\n\n :param field: Field object\n :param key: Key where field was found"
86
false
alfred82santa/dirty-models
process_base_field
36,211
LDU_FT/mattloper/opendr/dImage_wrt_2dVerts_bnd
LDU_FT
[ "<BEGIN>\n## `draw_edge_visibility`", "Assumes camera is set up correctly in gl context.\n<END>", "<BEGIN>\n## `draw_boundary_images`", "Assumes camera is set up correctly, and that glf has any texmapping on necessary.\n<END>", "<BEGIN>\n## `TriArea`", "Returns a Ch object whose only attribute \"v\" repre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dImage_wrt_2dVerts_bnd 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 dImage_wrt_2dVerts_bnd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Construct a sparse jacobian that relates 2D projected vertex positions (in the columns) to pixel values (in the rows). This can be done in two steps.
"Construct a sparse jacobian that relates 2D projected vertex positions\n (in the columns) to pixel values (in the rows). This can be done\n in two steps."
28
false
mattloper/opendr
dImage_wrt_2dVerts_bnd
36,212
LDU_FT/AntagonistHQ/openprovider.py/as_models
LDU_FT
[ "<BEGIN>\n## `snake_to_camel`", "Converts a snake_case_string to a camelCaseString.", " >>> snake_to_camel(\"foo_bar_baz\")\n 'fooBarBaz'\n<END>", "<BEGIN>\n## `retrieve_approver_email_list`", "Retrieve the list of allowed approver email addresses.\n<END>", "<BEGIN>\n## `resend_approver_email`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_models API. 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 as_models API. 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...
Turns an array-style response into a list of models.
"Turns an array-style response into a list of models."
38
false
AntagonistHQ/openprovider.py
as_models
36,213
LDU_FT/paramiko/paramiko/check
LDU_FT
[ "<BEGIN>\n## `make_tarball`", "Create a tar file from all the files under 'base_dir'.\n This file may be compressed.", " :param compress: Compression algorithms. Supported algorithms are:\n 'gzip': (the default)\n 'compress'\n 'bzip2'\n None\n For 'gzip' and 'bzip2' the inte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API. 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 check API. 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...
Ask the server for a hash of a section of this file. This can be used to verify a successful upload or download, or for various rsync-like operations. The file is hashed from ``offset``, for ``length`` bytes. If ``length`` is 0, the remainder of the file is hashed. Thus, if both ...
"Ask the server for a hash of a section of this file. This can be used\n to verify a successful upload or download, or for various rsync-like\n operations.\n\n The file is hashed from ``offset``, for ``length`` bytes.\n If ``length`` is 0, the remainder of the file is hashed. Thus, if both...
608
false
paramiko/paramiko
check
36,214
LDU_FT/peterbe/premailer/_load_external
LDU_FT
[ "<BEGIN>\n## `main`", "Command-line tool to transform html style to inline css", " Usage::", " $ echo '<style>h1 { color:red; }</style><h1>Title</h1>' | \\\n python -m premailer\n <h1 style=\"color:red\"></h1>\n $ cat newsletter.html | python -m premailer\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_external API. 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 _load_external API. 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...
loads an external stylesheet from a remote url or local path
"loads an external stylesheet from a remote url or local path"
29
false
peterbe/premailer
_load_external
36,215
LDU_FT/TkTech/Jawa/unpack
LDU_FT
[ "<BEGIN>\n## `_walk`", "A modified os.walk with support for maximum traversal depth.\n<END>", "<BEGIN>\n## `update`", "Add one or more ClassFile sources to the class loader.", " If a given source is a directory path, it is traversed up to the\n maximum set depth and all files under it are adde...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack API. 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 unpack API. 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 ...
Read the CodeAttribute from the byte string `info`. .. note:: Advanced usage only. You will typically never need to call this method as it will be called for you when loading a ClassFile. :param info: A byte string containing an unparsed CodeAttribute.
"Read the CodeAttribute from the byte string `info`.\n\n .. note::\n\n Advanced usage only. You will typically never need to call this\n method as it will be called for you when loading a ClassFile.\n\n :param info: A byte string containing an unparsed CodeAttribute."
226
false
TkTech/Jawa
unpack
36,216
LDU_FT/MagicTheGathering/mtg-sdk-python/find
LDU_FT
[ "<BEGIN>\n## `get`", "Invoke an HTTP GET request on a url", " Args:\n url (string): URL endpoint to request\n params (dict): Dictionary of url parameters\n Returns:\n dict: JSON response as a dictionary\n<END>", "<BEGIN>\n## `find`", "Get a resource by its id",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Get a resource by its id Args: id (string): Resource id Returns: object: Instance of the resource type
"Get a resource by its id\n\n Args:\n id (string): Resource id\n Returns:\n object: Instance of the resource type"
15
false
MagicTheGathering/mtg-sdk-python
find
36,217
LDU_FT/deep-compute/deeputil/add
LDU_FT
[ "<BEGIN>\n## `FunctionTimer`", "To check execution time of a function\n borrowed from https://medium.com/pythonhive/python-decorator-to-measure-the-execution-time-of-methods-fa04cb6bb36d", " >>> def logger(details, args, kwargs): #some function that uses the time output\n ... print(details)\n .....
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...
When we receive stream of data, we add them in the chunk which has limit on the no. of items that it will store. >>> s = StreamCounter(5,5) >>> data_stream = ['a','b','c','d'] >>> for item in data_stream: ... s.add(item) >>> s.chunk_size 5 >>> s.n_item...
"When we receive stream of data, we add them in the chunk\n which has limit on the no. of items that it will store.\n >>> s = StreamCounter(5,5)\n >>> data_stream = ['a','b','c','d']\n >>> for item in data_stream:\n ... s.add(item)\n >>> s.chunk_size\n 5\n >>>...
68
false
deep-compute/deeputil
add
36,218
LDU_FT/selectel/pyte/set_mode
LDU_FT
[ "<BEGIN>\n## `default_char`", "An empty character with default foreground and background colors.\n<END>", "<BEGIN>\n## `display`", "A :func:`list` of screen lines as unicode strings.\n<END>", "<BEGIN>\n## `reset`", "Reset the terminal to its initial state.", " * Scrolling margins are reset to scr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_mode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_mode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Set (enable) a given list of modes. :param list modes: modes to set, where each mode is a constant from :mod:`pyte.modes`.
"Set (enable) a given list of modes.\n\n :param list modes: modes to set, where each mode is a constant\n from :mod:`pyte.modes`."
127
false
selectel/pyte
set_mode
36,219
LDU_FT/corpusops/pdbclone/do_debug
LDU_FT
[ "<BEGIN>\n## `parse_gdb_version`", "r\"\"\"Parse the gdb version from the gdb header.", " From GNU coding standards: the version starts after the last space of the\n first line.", " >>> DOCTEST_GDB_VERSIONS = [\n ... r'~\"GNU gdb (GDB) 7.5.1\\n\"',\n ... r'~\"GNU gdb (Sourcery CodeBench Lite 20...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_debug API. 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 do_debug API. 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...
debug code Enter a recursive debugger that steps through the code argument (which is an arbitrary expression or statement to be executed in the current environment).
"debug code\n Enter a recursive debugger that steps through the code\n argument (which is an arbitrary expression or statement to be\n executed in the current environment)."
129
false
corpusops/pdbclone
do_debug
36,220
LDU_FT/thespacedoctor/tastic/tidy
LDU_FT
[ "<BEGIN>\n## `projects`", "*All child projects of this taskpaper object*", " **Usage:**", " Given a taskpaper document object (`doc`), to get a list of the project objects found within the document use:", " .. code-block:: python", " docProjects = doc.projects",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tidy API. 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 tidy API. 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...
*Tidy this taskpapaer object so that sub-objects appear in this order: title, tags, notes, tasks, projects* **Return:** - ``None`` **Usage:** When a taskpaper document is opened it is tidied by default. To tidy the document object (or project or task) use the command: ...
"*Tidy this taskpapaer object so that sub-objects appear in this order: title, tags, notes, tasks, projects*\n\n **Return:**\n - ``None``\n\n **Usage:**\n\n When a taskpaper document is opened it is tidied by default. To tidy the document object (or project or task) use the command:\n...
285
false
thespacedoctor/tastic
tidy
36,221
LDU_FT/stuaxo/vext/fix_path
LDU_FT
[ "<BEGIN>\n## `do_enable`", "Uncomment any lines that start with #import in the .pth file\n<END>", "<BEGIN>\n## `do_disable`", "Comment any lines that start with import in the .pth file\n<END>", "<BEGIN>\n## `do_check`", "Attempt to import everything in the 'test-imports' section of specified\n vext_fil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_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 extracte...
Convert path pointing subdirectory of virtualenv site-packages to system site-packages. Destination directory must exist for this to work. >>> fix_path('C:\\some-venv\\Lib\\site-packages\\gnome') 'C:\\Python27\\lib\\site-packages\\gnome'
"Convert path pointing subdirectory of virtualenv site-packages\n to system site-packages.\n\n Destination directory must exist for this to work.\n\n >>> fix_path('C:\\\\some-venv\\\\Lib\\\\site-packages\\\\gnome')\n 'C:\\\\Python27\\\\lib\\\\site-packages\\\\gnome'"
64
false
stuaxo/vext
fix_path
36,222
LDU_FT/goerz/clusterjob/split_seq
LDU_FT
[ "<BEGIN>\n## `resource_headers`", "Given a :class:`~clusterjob.JobScript` instance, return a list of\n lines that encode the resource requirements, to be added at the top of\n the rendered job script\n<END>", "<BEGIN>\n## `replace_body_vars`", "Given a multiline string that is the body of the jo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_seq API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_seq API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Split the given sequence into `n_chunks`. Suitable for distributing an array of jobs over a fixed number of workers. >>> split_seq([1,2,3,4,5,6], 3) [[1, 2], [3, 4], [5, 6]] >>> split_seq([1,2,3,4,5,6], 2) [[1, 2, 3], [4, 5, 6]] >>> split_seq([1,2,3,4,5,6,7], 3) [[1, 2], [3, 4, 5], [6, 7]]
"Split the given sequence into `n_chunks`. Suitable for distributing an\n array of jobs over a fixed number of workers.\n\n >>> split_seq([1,2,3,4,5,6], 3)\n [[1, 2], [3, 4], [5, 6]]\n >>> split_seq([1,2,3,4,5,6], 2)\n [[1, 2, 3], [4, 5, 6]]\n >>> split_seq([1,2,3,4,5,6,7], 3)\n [[1, 2], [3, 4, 5],...
69
false
goerz/clusterjob
split_seq
36,223
LDU_FT/latchset/custodia/krb5_unparse_principal_name
LDU_FT
[ "<BEGIN>\n## `_load_plugin_class`", "Load Custodia plugin", " Entry points are preferred over dotted import path.\n<END>", "<BEGIN>\n## `get`", "Lookup value for a PluginOption instance", " Args:\n po: PluginOption", " Returns: converted value\n<END>", "<BEGIN>\n## `parse`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the krb5_unparse_principal_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the krb5_unparse_principal_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Split a Kerberos principal name into parts Returns: * ('host', hostname, realm) for a host principal * (servicename, hostname, realm) for a service principal * (None, username, realm) for a user principal :param text name: Kerberos principal name :return: (service, host, realm) or (No...
"Split a Kerberos principal name into parts\n\n Returns:\n * ('host', hostname, realm) for a host principal\n * (servicename, hostname, realm) for a service principal\n * (None, username, realm) for a user principal\n\n :param text name: Kerberos principal name\n :return: (service, host, real...
31
false
latchset/custodia
krb5_unparse_principal_name
36,224
LDU_FT/renweizhukov/pytwis/follow
LDU_FT
[ "<BEGIN>\n## `_is_loggedin`", "Check if a user is logged-in by verifying the input authentication secret.", " Parameters\n ----------\n auth_secret: str\n The authentication secret of a logged-in user.", " Returns\n -------\n bool\n True if the a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the follow API. 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 follow API. 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 ...
Follow a user. Parameters ---------- auth_secret: str The authentication secret of the logged-in user. followee_username: str The username of the followee. Returns ------- bool True if the follow is successful, False otherwise...
"Follow a user.\n\n Parameters\n ----------\n auth_secret: str\n The authentication secret of the logged-in user.\n followee_username: str\n The username of the followee.\n\n Returns\n -------\n bool\n True if the follow is successful, Fa...
108
false
renweizhukov/pytwis
follow
36,225
LDU_FT/juicer/juicer/delete_rpms
LDU_FT
[ "<BEGIN>\n## `log_wrap`", "DRY: Use magic instead of code to get a string for the correct log\n level when calling ``print_log_msg``. Because writing the same\n boilerplate code in each log_XXX def was too painful to commit.\n<END>", "<BEGIN>\n## `add_repo`", "Build up repos", " `name` - Name o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_rpms API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_rpms API. 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...
`repo_name` - Name of the repository rpms live in (includes -env) `rpms` - A list of rpm filenames to delete `env` - Environment we're currently deleting in Delete rpms from a repository in specified environments
"`repo_name` - Name of the repository rpms live in (includes -env)\n `rpms` - A list of rpm filenames to delete\n `env` - Environment we're currently deleting in\n\n Delete rpms from a repository in specified environments"
243
false
juicer/juicer
delete_rpms
36,226
LDU_FT/bunq/sdk_python/_get_serializer
LDU_FT
[ "<BEGIN>\n## `post`", ":type uri_relative: str\n :type request_bytes: bytes\n :type custom_headers: dict[str, str]", " :return: BunqResponseRaw\n<END>", "<BEGIN>\n## `_request`", ":type method: str\n :type uri_relative: str\n :type request_bytes: bytes\n :type param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_serializer API. 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_serializer API. 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...
:type cls_for: type :rtype: JsonAdapter
":type cls_for: type\n\n :rtype: JsonAdapter"
458
false
bunq/sdk_python
_get_serializer
36,227
LDU_FT/msuozzo/Aduro/commit_events
LDU_FT
[ "<BEGIN>\n## `calc_update_events`", "Calculate and return an iterable of `KindleEvent`s which, when\n applied to the current snapshot, result in the the current snapshot\n reflecting the progress state of the `asin_to_progress` mapping.", " Functionally, this method generates `AddEvent`s an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commit_events API. 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 commit_events API. 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...
Applies all outstanding `Event`s to the internal state
"Applies all outstanding `Event`s to the internal state"
29
false
msuozzo/Aduro
commit_events
36,228
LDU_FT/edx/bok-choy/visible
LDU_FT
[ "<BEGIN>\n## `wait_for_js`", "Method decorator that waits for JavaScript dependencies before executing `function`.\n If the function is not a method, the decorator has no effect.", " Args:\n function (callable): Method to decorate.", " Returns:\n Decorated method\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visible API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visible API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Check whether all matched elements are visible. Returns: bool
"Check whether all matched elements are visible.\n\n Returns:\n bool"
254
false
edx/bok-choy
visible
36,229
LDU_FT/django-fluent/django-fluent-blogs/get_date_range
LDU_FT
[ "<BEGIN>\n## `formfield_for_dbfield`", "Allow formfield_overrides to contain field names too.\n<END>", "<BEGIN>\n## `published`", "Return only published entries for the current site.\n<END>", "<BEGIN>\n## `authors`", "Return the entries written by the given usernames\n When multiple tags are provid...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_date_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_date_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a start..end range to query for a specific month, day or year.
"Return a start..end range to query for a specific month, day or year."
54
false
django-fluent/django-fluent-blogs
get_date_range
36,230
LDU_FT/metacloud/gilt/_get_dst_dir
LDU_FT
[ "<BEGIN>\n## `config`", "Construct `Config` object and return a list.", " :parse filename: A string containing the path to YAML file.\n :return: list\n<END>", "<BEGIN>\n## `_get_files_config`", "Construct `FileConfig` object and return a list.", " :param src_dir: A string containing the source di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_dst_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_dst_dir API. 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...
Prefix the provided string with working directory and return a str. :param dst_dir: A string to be prefixed with the working dir. :return: str
"Prefix the provided string with working directory and return a\n str.\n\n :param dst_dir: A string to be prefixed with the working dir.\n :return: str"
50
false
metacloud/gilt
_get_dst_dir
36,231
LDU_FT/baszoetekouw/janus-py/get
LDU_FT
[ "<BEGIN>\n## `list`", "Return the entity with the given entity ID in short form. If no entity \n\t\tID is given, all records are listed.", "\t\tIt returns a dictionary of the form:\n\t\t{eid : {'id' :\n\t\t\t\t'isActive' :\n\t\t\t\t'name' :\n\t\t\t\t'revisionNr' :\n\t\t\t\t'state' :\n\t\t\t\t'type' :\n\t\t\t\t}...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns a dict with the complete record of the entity with the given eID
"Returns a dict with the complete record of the entity with the given eID"
18
false
baszoetekouw/janus-py
get
36,232
LDU_FT/bovee/Aston/simple_integrate
LDU_FT
[ "<BEGIN>\n## `simple_integrate`", "Integrate each peak naively; without regard to overlap.", " This is used as the terminal step by most of the other integrators.\n<END>", "<BEGIN>\n## `drop_integrate`", "Resolves overlap by breaking at the minimum value.\n<END>", "<BEGIN>\n## `_integrate_mpwrap`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simple_integrate API. 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 simple_integrate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Integrate each peak naively; without regard to overlap. This is used as the terminal step by most of the other integrators.
"Integrate each peak naively; without regard to overlap.\n\n This is used as the terminal step by most of the other integrators."
89
false
bovee/Aston
simple_integrate
36,233
LDU_FT/pettarin/ipapy/split_using_dictionary
LDU_FT
[ "<BEGIN>\n## `can_map_ipa_string`", "Return ``True`` if the mapper can map all the IPA characters\n in the given IPA string.", " :param IPAString ipa_string: the IPAString to be parsed\n :rtype: bool\n<END>", "<BEGIN>\n## `map_ipa_string`", "Convert the given IPAString to a string\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_using_dictionary 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 split_using_dictionary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return a list of (non-empty) substrings of the given string, where each substring is either: 1. the longest string starting at the current index that is a key in the dictionary, or 2. a single character that is not a key in the dictionary. If ``single_char_parsing`` is ``False``, parse ...
"Return a list of (non-empty) substrings of the given string,\n where each substring is either:\n \n 1. the longest string starting at the current index\n that is a key in the dictionary, or\n 2. a single character that is not a key in the dictionary.\n\n If ``single_char_parsing`` is ``False``,\n ...
205
false
pettarin/ipapy
split_using_dictionary
36,234
LDU_FT/ucbvislab/radiotool/cross_fade
LDU_FT
[ "<BEGIN>\n## `analysis`", "Get musical analysis of the song using the librosa library\n<END>", "<BEGIN>\n## `read_frames`", "Read ``n`` frames from the track, starting\n with the current frame", " :param integer n: Number of frames to read\n :param integer channels: Number of channels t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cross_fade API. 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 cross_fade API. 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...
Add a linear crossfade to the composition between two segments. :param seg1: First segment (fading out) :type seg1: :py:class:`radiotool.composer.Segment` :param seg2: Second segment (fading in) :type seg2: :py:class:`radiotool.composer.Segment` :param duration: Duration...
"Add a linear crossfade to the composition between two\n segments.\n\n :param seg1: First segment (fading out)\n :type seg1: :py:class:`radiotool.composer.Segment`\n :param seg2: Second segment (fading in)\n :type seg2: :py:class:`radiotool.composer.Segment`\n :param duration: ...
107
false
ucbvislab/radiotool
cross_fade
36,235
LDU_FT/jmcarp/flask-apispec/register
LDU_FT
[ "<BEGIN>\n## `use_kwargs`", "Inject keyword arguments from the specified webargs arguments into the\n decorated view function.", " Usage:", " .. code-block:: python", " from marshmallow import fields", " @use_kwargs({'name': fields.Str(), 'category': fields.Str()})\n def get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Register a view. :param target: view function or view class. :param endpoint: (optional) endpoint name. :param blueprint: (optional) blueprint name. :param tuple resource_class_args: (optional) args to be forwarded to the view class constructor. :param dict resource_...
"Register a view.\n\n :param target: view function or view class.\n :param endpoint: (optional) endpoint name.\n :param blueprint: (optional) blueprint name.\n :param tuple resource_class_args: (optional) args to be forwarded to the\n view class constructor.\n :param dict r...
29
false
jmcarp/flask-apispec
register
36,236
LDU_FT/kblin/ncbi-genome-download/create_symlink_job
LDU_FT
[ "<BEGIN>\n## `_create_list`", "Create a list from the input value.", " If the input is a list already, return it.\n If the input is a comma-separated string, split it.\n<END>", "<BEGIN>\n## `is_compatible_assembly_level`", "Check if a given ncbi assembly level string matches the configured assembly le...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_symlink_job 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 create_symlink_job API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Create a symlink-creating DownloadJob for an already downloaded file.
"Create a symlink-creating DownloadJob for an already downloaded file."
56
false
kblin/ncbi-genome-download
create_symlink_job
36,237
LDU_FT/etoccalino/django-rest-framework-httpsignature/get_signature_from_signature_string
LDU_FT
[ "<BEGIN>\n## `http_signature`", "Return a tuple (message signature, HTTP header message signature).\n<END>", "<BEGIN>\n## `get_signature_from_signature_string`", "Return the signature from the signature header or None.\n<END>", "<BEGIN>\n## `get_headers_from_signature`", "Returns a list of headers fields ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_signature_from_signature_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_signature_from_signature_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Return the signature from the signature header or None.
"Return the signature from the signature header or None."
12
false
etoccalino/django-rest-framework-httpsignature
get_signature_from_signature_string
36,238
LDU_FT/cdgriffith/puremagic/magic_string
LDU_FT
[ "<BEGIN>\n## `_max_lengths`", "The length of the largest magic string + its offset\n<END>", "<BEGIN>\n## `_confidence`", "Rough confidence based on string length and file extension\n<END>", "<BEGIN>\n## `_identify_all`", "Attempt to identify 'data' by its magic numbers\n<END>", "<BEGIN>\n## `_magic`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the magic_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the magic_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns tuple of (num_of_matches, array_of_matches) arranged highest confidence match first If filename is provided it will be used in the computation. :param string: string representation to check :param filename: original filename :return: list of possible matches, highest confidence first
"Returns tuple of (num_of_matches, array_of_matches)\n arranged highest confidence match first\n If filename is provided it will be used in the computation.\n\n :param string: string representation to check\n :param filename: original filename\n :return: list of possible matches, highest confidence first...
23
false
cdgriffith/puremagic
magic_string
36,239
LDU_FT/robotools/fontMath/_flushContour
LDU_FT
[ "<BEGIN>\n## `_openTypeOS2WidthClassFormatter`", ">>> _openTypeOS2WidthClassFormatter(-2)\n 1\n >>> _openTypeOS2WidthClassFormatter(0)\n 1\n >>> _openTypeOS2WidthClassFormatter(5.4)\n 5\n >>> _openTypeOS2WidthClassFormatter(9.6)\n 9\n >>> _openTypeOS2WidthClassFormatter(12)\n 9\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _flushContour API. 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 _flushContour API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
This normalizes the contour so that: - there are no line segments. in their place will be curve segments with the off curves positioned on top of the previous on curve and the new curve on curve. - the contour starts with an on curve
"This normalizes the contour so that:\n - there are no line segments. in their place will be\n curve segments with the off curves positioned on top\n of the previous on curve and the new curve on curve.\n - the contour starts with an on curve"
25
false
robotools/fontMath
_flushContour
36,240
LDU_FT/python-fedex-devs/python-fedex/__set_web_authentication_detail
LDU_FT
[ "<BEGIN>\n## `transfer_config_dict`", "This is a utility function used in the certification modules to transfer\n the data dicts above to SOAP objects. This avoids repetition and allows\n us to store all of our variable configuration here rather than in\n each certification script.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __set_web_authentication_detail 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 __set_web_authentication_detail API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Sets up the WebAuthenticationDetail node. This is required for all requests.
"Sets up the WebAuthenticationDetail node. This is required for all\n requests."
92
false
python-fedex-devs/python-fedex
__set_web_authentication_detail
36,241
LDU_FT/xflr6/concepts/add_property
LDU_FT
[ "<BEGIN>\n## `lattice`", "Return graphviz source for visualizing the lattice graph.\n<END>", "<BEGIN>\n## `load`", "Load and parse serialized objects, properties, bools from file.\n<END>", "<BEGIN>\n## `dump`", "Write serialized objects, properties, bools to file.\n<END>", "<BEGIN>\n## `load_csv`", "L...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extr...
Add a property to the definition and add ``objects`` as related.
"Add a property to the definition and add ``objects`` as related."
56
false
xflr6/concepts
add_property
36,242
LDU_FT/toumorokoshi/transmute-core/add_swagger_api_route
LDU_FT
[ "<BEGIN>\n## `from_argspec`", "retrieve a FunctionSignature object\n from the argspec and the annotations passed.\n<END>", "<BEGIN>\n## `split_args`", "given a dictionary of arguments, split them into\n args and kwargs", " note: this destroys the arg_dict passed. if you need it,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_swagger_api_route API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_swagger_api_route API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
mount a swagger statics page. app: the flask app object target_route: the path to mount the statics page. swagger_json_route: the path where the swagger json definitions is expected to be.
"mount a swagger statics page.\n\n app: the flask app object\n target_route: the path to mount the statics page.\n swagger_json_route: the path where the swagger json definitions is\n expected to be."
100
false
toumorokoshi/transmute-core
add_swagger_api_route
36,243
LDU_FT/benoitkugler/abstractDataLibrary/get_info
LDU_FT
[ "<BEGIN>\n## `recherche`", "abstractSearch in fields of collection and reset rendering.\n Returns number of results.\n If in_all is True, call get_all before doing the search.\n<END>", "<BEGIN>\n## `launch_background_job`", "Launch the callable job in background thread.\n Succes or failur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte...
Returns information associated with Id or list index
"Returns information associated with Id or list index"
131
false
benoitkugler/abstractDataLibrary
get_info
36,244
LDU_FT/radujica/baloo/weld_element_wise_op
LDU_FT
[ "<BEGIN>\n## `evaluate`", "Evaluates by creating an Index containing evaluated data.", " See `LazyResult`", " Returns\n -------\n Index\n Index with evaluated data.\n<END>", "<BEGIN>\n## `raw`", "Decorator for eager functions checking input array\n and stripping a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the weld_element_wise_op 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 weld_element_wise_op API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Applies operation to each element in the array with scalar. Parameters ---------- array : numpy.ndarray or WeldObject Input array. weld_type : WeldType Type of each element in the input array. scalar : {int, float, str, bool, bytes_} Value to compare with; must be same type ...
"Applies operation to each element in the array with scalar.\n\n Parameters\n ----------\n array : numpy.ndarray or WeldObject\n Input array.\n weld_type : WeldType\n Type of each element in the input array.\n scalar : {int, float, str, bool, bytes_}\n Value to compare with; must be ...
478
false
radujica/baloo
weld_element_wise_op
36,245
LDU_FT/bjmorgan/vasppy/find_vasp_calculations
LDU_FT
[ "<BEGIN>\n## `md5sum`", "Generate the md5 checksum for a string", " Args:\n string (Str): The string to be checksummed.", " Returns:\n (Str): The hex checksum.\n<END>", "<BEGIN>\n## `file_md5`", "Generate the md5 checksum for a file", " Args:\n filename (Str): The file to b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_vasp_calculations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_vasp_calculations 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 a list of all subdirectories that contain either a vasprun.xml file or a compressed vasprun.xml.gz file. Args: None Returns: (List): list of all VASP calculation subdirectories.
"Returns a list of all subdirectories that contain either a vasprun.xml file\n or a compressed vasprun.xml.gz file.\n\n Args:\n None\n\n Returns:\n (List): list of all VASP calculation subdirectories."
174
false
bjmorgan/vasppy
find_vasp_calculations
36,246
LDU_FT/chemlab/chemlab/query_ball_point
LDU_FT
[ "<BEGIN>\n## `molecular_orbital`", "Return a molecular orbital given the nuclei coordinates, as well as\n molecular orbital coefficients and basis set specification as given by the cclib library.", " The molecular orbital is represented as a function that takes x, y, z coordinates (in a vectorized f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_ball_point API. 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 query_ball_point API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Find all points within distance r of point(s) x. Parameters ---------- x : array_like, shape tuple + (self.m,) The point or points to search for neighbors of. r : positive float The radius of points to return. p : float, optional Which Minkows...
"Find all points within distance r of point(s) x.\n\n Parameters\n ----------\n x : array_like, shape tuple + (self.m,)\n The point or points to search for neighbors of.\n r : positive float\n The radius of points to return.\n p : float, optional\n Whi...
665
false
chemlab/chemlab
query_ball_point
36,247
LDU_FT/cs50/check50/exists
LDU_FT
[ "<BEGIN>\n## `install_dependencies`", "Install all packages in dependency list via pip.\n<END>", "<BEGIN>\n## `install_translations`", "Add check translations according to ``config`` as a fallback to existing translations\n<END>", "<BEGIN>\n## `await_results`", "Ping {url} until it returns a results paylo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exists API. 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 exists API. 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 ...
Assert that all given paths exist. :params paths: files/directories to be checked for existence :raises check50.Failure: if any ``path in paths`` does not exist Example usage:: check50.exists("foo.c", "foo.h")
"Assert that all given paths exist.\n\n :params paths: files/directories to be checked for existence\n :raises check50.Failure: if any ``path in paths`` does not exist\n\n Example usage::\n\n check50.exists(\"foo.c\", \"foo.h\")"
125
false
cs50/check50
exists
36,248
LDU_FT/senseobservationsystems/commonsense-python-lib/SensorMetatagsGet
LDU_FT
[ "<BEGIN>\n## `MD5Hash`", "Returns md5 hash of a string.\r", " @param password (string) - String to be hashed.\r", " @return (string) - Md5 hash of password.\n<END>", "<BEGIN>\n## `setVerbosity`", "Set verbosity of the SenseApi object.\r", " @param verbose (boolean) - True of Fal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SensorMetatagsGet API. 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 SensorMetatagsGet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Retrieve the metatags of a sensor. @param sensor_id (int) - Id of the sensor to retrieve metatags from @param namespace (stirng) - Namespace for which to retrieve metatags. @return (bool) - Boolean indicating whether SensorMetatagsGet was successful
"Retrieve the metatags of a sensor.\r\n \r\n @param sensor_id (int) - Id of the sensor to retrieve metatags from\r\n @param namespace (stirng) - Namespace for which to retrieve metatags.\r\n \r\n @return (bool) - Boolean indicating whether SensorMetatagsGet was suc...
243
false
senseobservationsystems/commonsense-python-lib
SensorMetatagsGet
36,249
LDU_FT/bintoro/overloading.py/normalize_type
LDU_FT
[ "<BEGIN>\n## `overload`", "May be used as a shortcut for ``overloaded`` and ``overloads(f)``\n when the overloaded function `f` can be automatically identified.\n<END>", "<BEGIN>\n## `overloaded`", "Introduces a new overloaded function and registers its first implementation.\n<END>", "<BEGIN>\n## `regist...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_type API. 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...
Reduces an arbitrarily complex type declaration into something manageable.
"Reduces an arbitrarily complex type declaration into something manageable."
29
false
bintoro/overloading.py
normalize_type
36,250
LDU_FT/pytroll/satpy/available_datasets
LDU_FT
[ "<BEGIN>\n## `_get_coarse_dataset`", "Get the coarse dataset refered to by `key` from the XML data.\n<END>", "<BEGIN>\n## `get_dataset`", "Get output data and metadata of specified dataset.\n<END>", "<BEGIN>\n## `find_coefficient_index`", "Return index in to coefficient arrays for this band's wavelength."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the available_datasets 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 available_datasets 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...
Automatically determine datasets provided by this file
"Automatically determine datasets provided by this file"
924
false
pytroll/satpy
available_datasets
36,251
LDU_FT/jazzband/django-simple-menu/check
LDU_FT
[ "<BEGIN>\n## `add_item`", "add_item adds MenuItems to the menu identified by 'name'\n<END>", "<BEGIN>\n## `load_menus`", "load_menus loops through INSTALLED_APPS and loads the menu.py\n files from them.\n<END>", "<BEGIN>\n## `sort_menus`", "sort_menus goes through the items and sorts them based on\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API. 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 check API. 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...
Evaluate if we should be visible for this request
"Evaluate if we should be visible for this request"
14
false
jazzband/django-simple-menu
check
36,252
LDU_FT/getfleety/coralillo/make_password
LDU_FT
[ "<BEGIN>\n## `snake_case`", "Takes a string that represents for example a class name and returns\n the snake case version of it. It is used for model-to-key conversion\n<END>", "<BEGIN>\n## `value_or_default`", "Returns the given value or the specified default value for this\n field\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_password API. 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 make_password API. 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...
Turn a plain-text password into a hash for database storage Same as encode() but generate a new random salt. If password is None then return a concatenation of UNUSABLE_PASSWORD_PREFIX and a random string, which disallows logins. Additional random string reduces chances of gaining access to staff or sup...
"Turn a plain-text password into a hash for database storage\n Same as encode() but generate a new random salt. If password is None then\n return a concatenation of UNUSABLE_PASSWORD_PREFIX and a random string,\n which disallows logins. Additional random string reduces chances of gaining\n access to staff o...
62
false
getfleety/coralillo
make_password
36,253
LDU_FT/AlecAivazis/graphql-over-kafka/_create_remote_user
LDU_FT
[ "<BEGIN>\n## `roll_call_handler`", "This action handler responds to the \"roll call\" emitted by the api\n gateway when it is brought up with the normal summary produced by\n the service.\n<END>", "<BEGIN>\n## `flexible_api_handler`", "This query handler builds the dynamic picture of availible s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_remote_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_remote_user 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...
This method creates a service record in the remote user service with the given email. Args: uid (str): the user identifier to create Returns: (dict): a summary of the user that was created
"This method creates a service record in the remote user service\n with the given email.\n Args:\n uid (str): the user identifier to create\n Returns:\n (dict): a summary of the user that was created"
145
false
AlecAivazis/graphql-over-kafka
_create_remote_user
36,254
LDU_FT/lpantano/seqcluster/MakePmfFromCdf
LDU_FT
[ "<BEGIN>\n## `add_exp`", "Function to add the counts for each sample", " :param gr: name of the sample\n :param exp: counts of sample **gr**", " :returns: dict with key,values equally to name,counts.\n<END>", "<BEGIN>\n## `MakeJoint`", "Joint distribution of values from pmf1 and pmf2....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the MakePmfFromCdf API. 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 MakePmfFromCdf API. 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...
Makes a normalized Pmf from a Cdf object. Args: cdf: Cdf object name: string name for the new Pmf Returns: Pmf object
"Makes a normalized Pmf from a Cdf object.\n\n Args:\n cdf: Cdf object\n name: string name for the new Pmf\n\n Returns:\n Pmf object"
491
false
lpantano/seqcluster
MakePmfFromCdf
36,255
LDU_FT/python-fedex-devs/python-fedex/_assemble_and_send_request
LDU_FT
[ "<BEGIN>\n## `transfer_config_dict`", "This is a utility function used in the certification modules to transfer\n the data dicts above to SOAP objects. This avoids repetition and allows\n us to store all of our variable configuration here rather than in\n each certification script.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _assemble_and_send_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _assemble_and_send_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Fires off the Fedex request. @warning: NEVER CALL THIS METHOD DIRECTLY. CALL send_request(), WHICH RESIDES ON FedexBaseService AND IS INHERITED.
"Fires off the Fedex request.\n \n @warning: NEVER CALL THIS METHOD DIRECTLY. CALL send_request(), \n WHICH RESIDES ON FedexBaseService AND IS INHERITED."
92
false
python-fedex-devs/python-fedex
_assemble_and_send_request
36,256
LDU_FT/valohai/ulid2/encode_ulid_base32
LDU_FT
[ "<BEGIN>\n## `encode_ulid_base32`", "Encode 16 binary bytes into a 26-character long base32 string.\n :param binary: Bytestring or list of bytes\n :return: ASCII string of 26 characters\n :rtype: str\n<END>", "<BEGIN>\n## `decode_ulid_base32`", "Decode a 26-character long base32 string into the origi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_ulid_base32 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 encode_ulid_base32 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Encode 16 binary bytes into a 26-character long base32 string. :param binary: Bytestring or list of bytes :return: ASCII string of 26 characters :rtype: str
"Encode 16 binary bytes into a 26-character long base32 string.\n :param binary: Bytestring or list of bytes\n :return: ASCII string of 26 characters\n :rtype: str"
16
false
valohai/ulid2
encode_ulid_base32
36,257
LDU_FT/AguaClara/aguaclara/C_stock
LDU_FT
[ "<BEGIN>\n## `density_water`", "Return the density of water at a given temperature.", " If given units, the function will automatically convert to Kelvin.\n If not given units, the function will assume Kelvin.\n<END>", "<BEGIN>\n## `viscosity_kinematic`", "Return the kinematic viscosity of water at a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the C_stock API. 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 C_stock API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return the required concentration of material in the stock given a reactor's desired system flow rate, system concentration, and stock flow rate. :return: Concentration of material in the stock :rtype: float
"Return the required concentration of material in the stock given a\n reactor's desired system flow rate, system concentration, and stock\n flow rate.\n\n :return: Concentration of material in the stock\n :rtype: float"
554
false
AguaClara/aguaclara
C_stock
36,258
LDU_FT/jcrist/skein/get_child_queues
LDU_FT
[ "<BEGIN>\n## `add_page`", "Add a new proxied page to the Web UI.", " Parameters\n ----------\n route : str\n The route for the proxied page. Must be a valid path *segment* in a\n url (e.g. ``foo`` in ``/foo/bar/baz``). Routes must be unique\n across the appl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_child_queues API. 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_child_queues API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get information about all children of a parent queue. Parameters ---------- name : str The parent queue name. Returns ------- queues : list of Queue Examples -------- >>> client.get_child_queues('myqueue') [Queue<name='child1...
"Get information about all children of a parent queue.\n\n Parameters\n ----------\n name : str\n The parent queue name.\n\n Returns\n -------\n queues : list of Queue\n\n Examples\n --------\n >>> client.get_child_queues('myqueue')\n [Que...
153
false
jcrist/skein
get_child_queues
36,259
LDU_FT/SpotlightData/preprocessing/lemmatize
LDU_FT
[ "<BEGIN>\n## `correct_word`", "Finds all valid one and two letter corrections for word_string, returning the word\n with the highest relative probability as type str.\n<END>", "<BEGIN>\n## `find_candidates`", "Finds all potential words word_string could have intended to mean. If a word is not incorrectly\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lemmatize API. 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 lemmatize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns base from of text_string using NLTK's WordNetLemmatizer as type str. Keyword argument: - text_string: string instance Exceptions raised: - InputError: occurs should a non-string argument be passed
"Returns base from of text_string using NLTK's WordNetLemmatizer as type str.\n\n Keyword argument:\n\n - text_string: string instance\n\n Exceptions raised:\n\n - InputError: occurs should a non-string argument be passed"
106
false
SpotlightData/preprocessing
lemmatize
36,260
LDU_FT/Tivix/django-common/humanize_time_since
LDU_FT
[ "<BEGIN>\n## `ssl_required`", "Views decorated with this will always get redirected to https\n except when allow_non_ssl is set to true.\n<END>", "<BEGIN>\n## `anonymous_required`", "Only allow if user is NOT authenticated.\n<END>", "<BEGIN>\n## `generic_var`", "Stores generic variables in the session ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the humanize_time_since 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 humanize_time_since API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns a fuzzy time since. Will only return the largest time. EX: 20 days, 14 min
"Returns a fuzzy time since. Will only return the largest time. EX: 20 days, 14 min"
28
false
Tivix/django-common
humanize_time_since
36,261
LDU_FT/ethereum/py-evm/validate_uncles
LDU_FT
[ "<BEGIN>\n## `new_transaction`", "Create and return a transaction sending amount from <from_> to <to>.", " The transaction will be signed with the given private key.\n<END>", "<BEGIN>\n## `idfn`", "Function for pytest to produce uniform names for fixtures.\n<END>", "<BEGIN>\n## `get_fixtures_file_hash`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_uncles API. 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 validate_uncles API. 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...
Validate the uncles for the given block.
"Validate the uncles for the given block."
422
false
ethereum/py-evm
validate_uncles
36,262
LDU_FT/release-engineering/productmd/rpms
LDU_FT
[ "<BEGIN>\n## `parse_nvra`", "Parse RPM N-E:V-R.A string to a dict.", " :param nvra: N-E:V-R.A string. This can be a file name or a file path including the '.rpm' suffix.\n :type nvra: str\n :rtype: dict, with \"name\", \"epoch\", \"version\", \"release\", and \"arch\" elements.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rpms API. 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 rpms API. 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:`productmd.rpms.Rpms`) -- Compose RPMs metadata
"(:class:`productmd.rpms.Rpms`) -- Compose RPMs metadata"
61
false
release-engineering/productmd
rpms
36,263
LDU_FT/6809/dragonlib/invert_shift
LDU_FT
[ "<BEGIN>\n## `bin2hexline`", "Format binary data to a Hex-Editor like format...", " >>> data = bytearray([i for i in range(256)])\n >>> print('\\\\n'.join(bin2hexline(data, width=16)))\n 0000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................\n 0016 10 11 12 13 14 15 16 17 18 19 1a 1b ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invert_shift API. 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 invert_shift API. 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...
>>> invert_shift("a") 'A' >>> invert_shift("A") 'a' >>> invert_shift("123 foo 456 BAR #!") '123 FOO 456 bar #!'
">>> invert_shift(\"a\")\n 'A'\n >>> invert_shift(\"A\")\n 'a'\n\n >>> invert_shift(\"123 foo 456 BAR #!\")\n '123 FOO 456 bar #!'"
63
false
6809/dragonlib
invert_shift
36,264
LDU_FT/crossbario/txaio/add_callbacks
LDU_FT
[ "<BEGIN>\n## `guess_stream_needs_encoding`", "Guess the type (bytes/unicode) of this stream, and return whether or not it\n requires text to be encoded before written into it.\n<END>", "<BEGIN>\n## `with_config`", ":return: an instance of the txaio API with the given\n configuration. This won't affe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_callbacks API. 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 add_callbacks API. 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...
callback or errback may be None, but at least one must be non-None.
"callback or errback may be None, but at least one must be\n non-None."
62
false
crossbario/txaio
add_callbacks
36,265
LDU_FT/twisted/epsilon/clockIsBroken
LDU_FT
[ "<BEGIN>\n## `main`", "Create a private key and a certificate and write them to a file.\n<END>", "<BEGIN>\n## `setTimeout`", "Change the timeout period", " @type period: C{int} or C{NoneType}\n @param period: The period, in seconds, to change the timeout to, or\n C{None} to disable the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clockIsBroken API. 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 clockIsBroken API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns whether twisted.internet.task.Clock has the bug that returns the wrong DelayedCall or not.
"Returns whether twisted.internet.task.Clock has the bug that\n returns the wrong DelayedCall or not."
217
false
twisted/epsilon
clockIsBroken
36,266
LDU_FT/galaxy-genome-annotation/python-apollo/set_status
LDU_FT
[ "<BEGIN>\n## `cli`", "Set a feature's name", "Output:", " A standard apollo feature dictionary ({\"features\": [{...}]})\n<END>", "<BEGIN>\n## `cli`", "[UNTESTED] Delete a specific feature alteration", "Output:", " A list of sequence alterations(?)\n<END>", "<BEGIN>\n## `cli`", "Set a featur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Set a feature's description :type feature_id: str :param feature_id: Feature UUID :type status: str :param status: Feature status :type organism: str :param organism: Organism Common Name :type sequence: str :param sequence: Sequence Name :rty...
"Set a feature's description\n\n :type feature_id: str\n :param feature_id: Feature UUID\n\n :type status: str\n :param status: Feature status\n\n :type organism: str\n :param organism: Organism Common Name\n\n :type sequence: str\n :param sequence: Sequence Name\...
564
false
galaxy-genome-annotation/python-apollo
set_status
36,267
LDU_FT/openclimatedata/pymagicc/read_chunk
LDU_FT
[ "<BEGIN>\n## `get_magicc_region_to_openscm_region_mapping`", "Get the mappings from MAGICC to OpenSCM regions.", " This is not a pure inverse of the other way around. For example, we never provide\n \"GLOBAL\" as a MAGICC return value because it's unnecesarily confusing when we also\n have \"World\". F...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_chunk API. 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_chunk API. 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 out the next chunk of memory Values in fortran binary streams begin and end with the number of bytes :param t: Data type (same format as used by struct). :return: Numpy array if the variable is an array, otherwise a scalar.
"Read out the next chunk of memory\n\n Values in fortran binary streams begin and end with the number of bytes\n :param t: Data type (same format as used by struct).\n :return: Numpy array if the variable is an array, otherwise a scalar."
245
false
openclimatedata/pymagicc
read_chunk
36,268
LDU_FT/zagaran/mongobackup/s3_connect
LDU_FT
[ "<BEGIN>\n## `call`", "Runs a bash command safely, with shell=false, catches any non-zero\n return codes. Raises slightly modified CalledProcessError exceptions\n on failures.\n Note: command is a string and cannot include pipes.\n<END>", "<BEGIN>\n## `tarbz`", "Tars and bzips a director...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the s3_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the s3_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 extrac...
Returns a Boto connection to the provided S3 bucket.
"Returns a Boto connection to the provided S3 bucket."
36
false
zagaran/mongobackup
s3_connect
36,269
LDU_FT/django-auth-ldap/django-auth-ldap/_bind_as
LDU_FT
[ "<BEGIN>\n## `get_or_build_user`", "This must return a (User, built) 2-tuple for the given LDAP user.", " username is the Django-friendly username of the user. ldap_user.dn is\n the user's DN and ldap_user.attrs contains all of their LDAP\n attributes.", " The returned User object ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bind_as API. 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 _bind_as API. 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...
Binds to the LDAP server with the given credentials. This does not trap exceptions. If sticky is True, then we will consider the connection to be bound for the life of this object. If False, then the caller only wishes to test the credentials, after which the connection will be consider...
"Binds to the LDAP server with the given credentials. This does not trap\n exceptions.\n\n If sticky is True, then we will consider the connection to be bound for\n the life of this object. If False, then the caller only wishes to test\n the credentials, after which the connection will be co...
65
false
django-auth-ldap/django-auth-ldap
_bind_as
36,270
LDU_FT/elastic/elasticsearch-dsl-py/exists_type
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 exists_type API. 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 exists_type API. 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...
Check if a type/types exists in the index. Any additional keyword arguments will be passed to ``Elasticsearch.indices.exists_type`` unchanged.
"Check if a type/types exists in the index.\n\n Any additional keyword arguments will be passed to\n ``Elasticsearch.indices.exists_type`` unchanged."
257
false
elastic/elasticsearch-dsl-py
exists_type
36,271
LDU_FT/chezou/tabula-py/read_pdf_with_template
LDU_FT
[ "<BEGIN>\n## `load_template`", "Build tabula-py option from template file", " Args:\n file_like_obj: File like object of Tabula app template", " Returns:\n `obj`:dict: tabula-py options\n<END>", "<BEGIN>\n## `_convert_template_option`", "Convert Tabula app template to tabula-py option"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_pdf_with_template 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 read_pdf_with_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Read tables in PDF. Args: input_path (file like obj): File like object of tareget PDF file. template_path (file_like_obj): File like object for Tabula app template. pandas_options (dict, optional): Set pandas options like {'header': None}. encodin...
"Read tables in PDF.\n\n Args:\n input_path (file like obj):\n File like object of tareget PDF file.\n template_path (file_like_obj):\n File like object for Tabula app template.\n pandas_options (dict, optional):\n Set pandas options like {'header': None}.\n ...
50
false
chezou/tabula-py
read_pdf_with_template
36,272