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/bpython/curtsies/_wait_for_read_ready_or_timeout
LDU_FT
[ "<BEGIN>\n## `tictactoe`", "Put two strategies to a classic battle of wits.\n<END>", "<BEGIN>\n## `memo`", "Return a function like f that remembers and reuses results of past calls.\n<END>", "<BEGIN>\n## `max_play`", "Play like Spock, except breaking ties by drunk_value.\n<END>", "<BEGIN>\n## `drunk_val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wait_for_read_ready_or_timeout 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 _wait_for_read_ready_or_timeout API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Returns tuple of whether stdin is ready to read and an event. If an event is returned, that event is more pressing than reading bytes on stdin to create a keyboard input event. If stdin is ready, either there are bytes to read or a SIGTSTP triggered by dsusp has been received
"Returns tuple of whether stdin is ready to read and an event.\n\n If an event is returned, that event is more pressing than reading\n bytes on stdin to create a keyboard input event.\n If stdin is ready, either there are bytes to read or a SIGTSTP\n triggered by dsusp has been received"
163
false
bpython/curtsies
_wait_for_read_ready_or_timeout
35,573
LDU_FT/datadesk/django-bakery/get_url
LDU_FT
[ "<BEGIN>\n## `serve`", "Serve static files below a given point in the directory structure.", " To use, put a URL pattern such as::", " (r'^(?P<path>.*)$', 'django.views.static.serve',\n {'document_root' : '/path/to/my/files/'})", " in your URLconf. You must provide the ``document_roo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
The URL at which the detail page should appear.
"The URL at which the detail page should appear."
104
false
datadesk/django-bakery
get_url
35,574
LDU_FT/sckott/pygbif/add_predicate
LDU_FT
[ "<BEGIN>\n## `name_suggest`", "A quick and simple autocomplete service that returns up to 20 name usages by\n doing prefix matching against the scientific name. Results are ordered by relevance.", " :param q: [str] Simple search parameter. The value for this parameter can be a\n simple word or a phrase. W...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_predicate API. 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_predicate API. 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...
add key, value, type combination of a predicate :param key: query KEY parameter :param value: the value used in the predicate :param predicate_type: the type of predicate (e.g. ``equals``)
"add key, value, type combination of a predicate\n\n :param key: query KEY parameter\n :param value: the value used in the predicate\n :param predicate_type: the type of predicate (e.g. ``equals``)"
300
false
sckott/pygbif
add_predicate
35,575
LDU_FT/openid/python-openid/handleCheckIDRequest
LDU_FT
[ "<BEGIN>\n## `queryURL`", "Build a URL to query the proxy resolver.", " @param xri: An XRI to resolve.\n @type xri: unicode", " @param service_type: The service type to resolve, if you desire\n service endpoint selection. A service type is a URI.\n @type service_type: s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handleCheckIDRequest 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 handleCheckIDRequest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Handle checkid_* requests. Get input from the user to find out whether she trusts the RP involved. Possibly, get intput about what Simple Registration information, if any, to send in the response.
"Handle checkid_* requests. Get input from the user to find out\n whether she trusts the RP involved. Possibly, get intput about\n what Simple Registration information, if any, to send in the\n response."
828
false
openid/python-openid
handleCheckIDRequest
35,576
LDU_FT/mlenzen/collections-extended/get
LDU_FT
[ "<BEGIN>\n## `get`", "Return value with given key or index.", "\t\tIf no value is found, return d (None by default).\n<END>", "<BEGIN>\n## `pop`", "Remove and return value with given key or index (last item by default).", "\t\tIf key is not found, returns d if given,\n\t\totherwise raises KeyError or Inde...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return value with given key or index. If no value is found, return d (None by default).
"Return value with given key or index.\n\n\t\tIf no value is found, return d (None by default)."
104
false
mlenzen/collections-extended
get
35,577
LDU_FT/davidmogar/cucco/initialize_logger
LDU_FT
[ "<BEGIN>\n## `_load_from_file`", "Load a config file from the given path.", " Load all normalizations from the config file received as\n argument. It expects to find a YAML file with a list of\n normalizations and arguments under the key 'normalizations'.", " Args:\n pat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_logger API. 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 initialize_logger API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Set up logger to be used by the library. Args: debug: Wheter to use debug level or not. Returns: A logger ready to be used.
"Set up logger to be used by the library.\n\n Args:\n debug: Wheter to use debug level or not.\n\n Returns:\n A logger ready to be used."
103
false
davidmogar/cucco
initialize_logger
35,578
LDU_FT/qacafe/cdrouter.py/delete
LDU_FT
[ "<BEGIN>\n## `list`", "Get a list of configs.", " :param filter: (optional) Filters to apply as a string list.\n :param type: (optional) `union` or `inter` as string.\n :param sort: (optional) Sort fields to apply as string list.\n :param limit: (optional) Limit returned list length....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Delete a highlight. :param id: Result ID as an int. :param seq: TestResult sequence ID as an int. :param line: Line number in TestResult's logfile as an int.
"Delete a highlight.\n\n :param id: Result ID as an int.\n :param seq: TestResult sequence ID as an int.\n :param line: Line number in TestResult's logfile as an int."
282
false
qacafe/cdrouter.py
delete
35,579
LDU_FT/danpaquin/coinbasepro-python/get_fills
LDU_FT
[ "<BEGIN>\n## `get_account_history`", "List account activity. Account activity either increases or\n decreases your account balance.", " Entry type indicates the reason for the account change.\n * transfer:\tFunds moved to/from Coinbase to cbpro\n * match:\tFunds moved as a result of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fills API. 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 get_fills API. 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...
Get a list of recent fills. As of 8/23/18 - Requests without either order_id or product_id will be rejected This method returns a generator which may make multiple HTTP requests while iterating through it. Fees are recorded in two stages. Immediately after the matching ...
"Get a list of recent fills.\n\n As of 8/23/18 - Requests without either order_id or product_id\n will be rejected\n\n This method returns a generator which may make multiple HTTP requests\n while iterating through it.\n\n Fees are recorded in two stages. Immediately after the matchin...
127
false
danpaquin/coinbasepro-python
get_fills
35,580
LDU_FT/arviz-devs/arviz/r2_score
LDU_FT
[ "<BEGIN>\n## `generate_dims_coords`", "Generate default dimensions and coordinates for a variable.", " Parameters\n ----------\n shape : tuple[int]\n Shape of the variable\n var_name : str\n Name of the variable. Used in the default name, if necessary\n dims : list\n List of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the r2_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the r2_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 extracte...
R² for Bayesian regression models. Only valid for linear models. Parameters ---------- y_true: : array-like of shape = (n_samples) or (n_samples, n_outputs) Ground truth (correct) target values. y_pred : array-like of shape = (n_samples) or (n_samples, n_outputs) Estimated target values...
"R² for Bayesian regression models. Only valid for linear models.\n\n Parameters\n ----------\n y_true: : array-like of shape = (n_samples) or (n_samples, n_outputs)\n Ground truth (correct) target values.\n y_pred : array-like of shape = (n_samples) or (n_samples, n_outputs)\n Estimated targe...
674
false
arviz-devs/arviz
r2_score
35,581
LDU_FT/bopo/mootdx/quote5
LDU_FT
[ "<BEGIN>\n## `bars`", "获取实时日K线数据", " :param symbol: 股票代码\n :param category: 数据类别\n :param market: 证券市场\n :param start: 开始位置\n :param offset: 每次获取条数\n :return: pd.dataFrame or None\n<END>", "<BEGIN>\n## `minute_his`", "分时历史数据", " :param market:\n :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quote5 API. 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 quote5 API. 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: pd.dataFrame or None
"查询五档行情\n\n :return: pd.dataFrame or None"
62
false
bopo/mootdx
quote5
35,582
LDU_FT/iotile/coretools/finish_connection
LDU_FT
[ "<BEGIN>\n## `_value_length`", "Given an integer or list of them, convert it to an array of bytes.\n<END>", "<BEGIN>\n## `_parse_line`", "Parse a line in a TileBus file", " Args:\n line_no (int): The line number for printing useful error messages\n line (string): The line that w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the finish_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. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the finish_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. The...
Finish a connection attempt Args: conn_or_internal_id (string, int): Either an integer connection id or a string internal_id successful (bool): Whether this connection attempt was successful failure_reason (string): If this connection attempt failed, an optio...
"Finish a connection attempt\n\n Args:\n conn_or_internal_id (string, int): Either an integer connection id or a string\n internal_id\n successful (bool): Whether this connection attempt was successful\n failure_reason (string): If this connection attempt failed, a...
4,849
true
iotile/coretools
finish_connection
35,583
LDU_FT/fakedrake/overlay_parse/fit_overlays
LDU_FT
[ "<BEGIN>\n## `rx_int_extra`", "We didn't just match an int but the int is what we need.\n<END>", "<BEGIN>\n## `offset_overlays`", "Generate overlays after offset.\n :param text: The text to be searched.\n :param offset: Match starting that index. If none just search.\n :returns: An overla...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_overlays API. 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 fit_overlays API. 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...
Get an overlay thet fits the range [start, end).
"Get an overlay thet fits the range [start, end)."
35
false
fakedrake/overlay_parse
fit_overlays
35,584
LDU_FT/Unidata/siphon/_find_base_tds_url
LDU_FT
[ "<BEGIN>\n## `open_store_variable`", "Turn CDMRemote variable into something like a numpy.ndarray.\n<END>", "<BEGIN>\n## `get_attrs`", "Get the global attributes from underlying data set.\n<END>", "<BEGIN>\n## `get_dimensions`", "Get the dimensions from underlying data set.\n<END>", "<BEGIN>\n## `_find_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_base_tds_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_base_tds_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Identify the base URL of the THREDDS server from the catalog URL. Will retain URL scheme, host, port and username/password when present.
"Identify the base URL of the THREDDS server from the catalog URL.\n\n Will retain URL scheme, host, port and username/password when present."
309
false
Unidata/siphon
_find_base_tds_url
35,585
LDU_FT/wdecoster/nanoget/check_existance
LDU_FT
[ "<BEGIN>\n## `process_summary`", "Extracting information from an albacore summary file.", " Only reads which have a >0 length are returned.", " The fields below may or may not exist, depending on the type of sequencing performed.\n Fields 1-14 are for 1D sequencing.\n Fields 1-23 for 2D sequencing...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_existance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_existance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Check if the file supplied as input exists.
"Check if the file supplied as input exists."
63
false
wdecoster/nanoget
check_existance
35,586
LDU_FT/PagerDuty/pagerduty-api-python-client/find
LDU_FT
[ "<BEGIN>\n## `abilities`", "Fetch a list of permission-like strings for this account.\n<END>", "<BEGIN>\n## `set_api_key_from_file`", "Set the global api_key from a file path.\n<END>", "<BEGIN>\n## `resolve`", "Resolve an incident using a valid email address.\n<END>", "<BEGIN>\n## `reassign`", "Reassi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Find some entities from the API endpoint. If no api_key is provided, the global api key will be used. If fetch_all is True, page through all the data and find every record that exists. If add_headers is provided (as a dict) use it to add headers to the HTTP request, eg. ...
"Find some entities from the API endpoint.\n\n If no api_key is provided, the global api key will be used.\n If fetch_all is True, page through all the data and find every record\n that exists.\n If add_headers is provided (as a dict) use it to add headers to the\n HTTP request, eg.\n...
113
false
PagerDuty/pagerduty-api-python-client
find
35,587
LDU_FT/JamesRamm/longclaw/shipping_options
LDU_FT
[ "<BEGIN>\n## `shipping_cost`", "Returns the shipping cost for a given country\n If the shipping cost for the given country has not been set, it will\n fallback to the default shipping cost if it has been enabled in the app\n settings\n<END>", "<BEGIN>\n## `shipping_options`", "Get the shipping option...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shipping_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shipping_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get the shipping options for a given country
"Get the shipping options for a given country"
49
false
JamesRamm/longclaw
shipping_options
35,588
LDU_FT/wooga/play-deliver/upload
LDU_FT
[ "<BEGIN>\n## `list`", "convinent access method for list.", " service_name describes the endpoint to call\n the `list` function on.", " images.list or apks.list.\n<END>", "<BEGIN>\n## `build_params`", "build a params dictionary with current editId and packageName.", " use opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload API. 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 upload API. 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 ...
Upload images to play store. The function will iterate through source_dir and upload all matching image_types found in folder herachy.
"Upload images to play store.\n\n The function will iterate through source_dir and upload all matching\n image_types found in folder herachy."
27
false
wooga/play-deliver
upload
35,589
LDU_FT/CameronLonsdale/lantern/make_shift_function
LDU_FT
[ "<BEGIN>\n## `frequency_to_probability`", "Transform a ``frequency_map`` into a map of probability using the sum of all frequencies as the total.", " Example:\n >>> frequency_to_probability({'a': 2, 'b': 2})\n {'a': 0.5, 'b': 0.5}", " Args:\n frequency_map (dict): The dictionary to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_shift_function 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 make_shift_function 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...
Construct a shift function from an alphabet. Examples: Shift cases independently >>> make_shift_function([string.ascii_uppercase, string.ascii_lowercase]) <function make_shift_function.<locals>.shift_case_sensitive> Additionally shift punctuation characters >>> make_shift...
"Construct a shift function from an alphabet.\n\n Examples:\n Shift cases independently\n\n >>> make_shift_function([string.ascii_uppercase, string.ascii_lowercase])\n <function make_shift_function.<locals>.shift_case_sensitive>\n\n Additionally shift punctuation characters\n\n >>>...
131
false
CameronLonsdale/lantern
make_shift_function
35,590
LDU_FT/Gorialis/jishaku/traverse
LDU_FT
[ "<BEGIN>\n## `get_var_dict_from_ctx`", "Returns the dict to be used in REPL for a given Context.\n<END>", "<BEGIN>\n## `background_reader`", "Reads a stream and forwards each line to an async callback.\n<END>", "<BEGIN>\n## `make_reader_task`", "Create a reader executor task for a stream.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the traverse API. 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 traverse API. 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...
Traverses an async function or generator, yielding each result. This function is private. The class should be used as an iterator instead of using this method.
"Traverses an async function or generator, yielding each result.\n\n This function is private. The class should be used as an iterator instead of using this method."
161
false
Gorialis/jishaku
traverse
35,591
LDU_FT/stephen-bunn/file-config/is_object_type
LDU_FT
[ "<BEGIN>\n## `on_yaml_imported`", "The `pyyaml <https://pypi.org/project/pyyaml/>`_ import hook.", " :param module yaml: The ``yaml`` module\n<END>", "<BEGIN>\n## `on_yaml_dumps`", "The `pyyaml <https://pypi.org/project/pyyaml/>`_ dumps method.", " :param module yaml: The ``yaml`` module\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_object_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 is_object_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...
Checks if the given type is a object type. :param type_: The type to check :return: True if the type is a object type, otherwise False :rtype: bool
"Checks if the given type is a object type.\n\n :param type_: The type to check\n :return: True if the type is a object type, otherwise False\n :rtype: bool"
215
false
stephen-bunn/file-config
is_object_type
35,592
LDU_FT/gwpy/gwpy/_read_channel
LDU_FT
[ "<BEGIN>\n## `canonical_name`", "Find the canonical name for the given window in scipy.signal", " Parameters\n ----------\n name : `str`\n the name of the window you want", " Returns\n -------\n realname : `str`\n the name of the window as implemented in `scipy.signal.window`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_channel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_channel API. 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...
Read a channel from a specific frame in a stream
"Read a channel from a specific frame in a stream"
2,764
true
gwpy/gwpy
_read_channel
35,593
LDU_FT/NiklasRosenstein/myo-python/wait_for_single_device
LDU_FT
[ "<BEGIN>\n## `encode`", "Encodes the number *value* to a MAC address ASCII string in binary form.\n Raises a #ValueError if *value* is a negative number or exceeds the MAC\n address range.\n<END>", "<BEGIN>\n## `decode`", "Decodes an ASCII encoded binary MAC address tring into a number.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_single_device 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 wait_for_single_device API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Waits until a Myo is was paired **and** connected with the Hub and returns it. If the *timeout* is exceeded, returns None. This function will not return a Myo that is only paired but not connected. # Parameters timeout: The maximum time to wait for a device. interval: The interval at which the func...
"Waits until a Myo is was paired **and** connected with the Hub and returns\n it. If the *timeout* is exceeded, returns None. This function will not\n return a Myo that is only paired but not connected.\n\n # Parameters\n timeout: The maximum time to wait for a device.\n interval: The interval at which t...
44
false
NiklasRosenstein/myo-python
wait_for_single_device
35,594
LDU_FT/ming060/robotframework-uiautomatorlibrary/wait_until_gone
LDU_FT
[ "<BEGIN>\n## `set_serial`", "Specify given *android_serial* device to perform test.", " You do not have to specify the device when there is only one device connects to the computer.", " When you need to use multiple devices, do not use this keyword to switch between devices in test execution.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_until_gone API. 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 wait_until_gone API. 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...
Wait for the object which has *selectors* within the given timeout. Return true if the object *disappear* in the given timeout. Else return false.
"Wait for the object which has *selectors* within the given timeout.\n\n Return true if the object *disappear* in the given timeout. Else return false."
115
false
ming060/robotframework-uiautomatorlibrary
wait_until_gone
35,595
LDU_FT/mushkevych/scheduler/get
LDU_FT
[ "<BEGIN>\n## `_process_state_embryo`", "method that takes care of processing job records in STATE_EMBRYO state\n<END>", "<BEGIN>\n## `_process_state_in_progress`", "method that takes care of processing job records in STATE_IN_PROGRESS state\n<END>", "<BEGIN>\n## `__process_non_finalizable_job`", "method h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
:return valid :mq::flopsy::Publisher instance
":return valid :mq::flopsy::Publisher instance"
335
false
mushkevych/scheduler
get
35,596
LDU_FT/Gjum/agarnet/same_player
LDU_FT
[ "<BEGIN>\n## `gcommer_claim`", "Try to get a token for this server address.\n `address` has to be ip:port, e.g. `'1.2.3.4:1234'`\n Returns tuple(address, token)\n<END>", "<BEGIN>\n## `gcommer_donate`", "Donate a token for this server address.\n `address` and `token` should be the return values from f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the same_player API. 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 same_player API. 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...
Compares name and color. Returns True if both are owned by the same player.
"Compares name and color.\n Returns True if both are owned by the same player."
57
false
Gjum/agarnet
same_player
35,597
LDU_FT/gazpachoking/jsonref/dumps
LDU_FT
[ "<BEGIN>\n## `_no_proxy`", "Returns a wrapped version of `method`, such that proxying is turned off\n during the method call.\n<END>", "<BEGIN>\n## `_should_proxy`", "Determines whether `attr` should be looked up on the proxied object, or\n the proxy itself.\n<END>", "<BEGIN>\n## `add_proxy_me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dumps API. 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 dumps API. 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...
Serialize `obj`, which may contain :class:`JsonRef` objects, to a JSON formatted string. `JsonRef` objects will be dumped as the original reference object they were created from. :param obj: Object to serialize :param kwargs: Keyword arguments are the same as to :func:`json.dumps`
"Serialize `obj`, which may contain :class:`JsonRef` objects, to a JSON\n formatted string. `JsonRef` objects will be dumped as the original\n reference object they were created from.\n\n :param obj: Object to serialize\n :param kwargs: Keyword arguments are the same as to :func:`json.dumps`"
25
false
gazpachoking/jsonref
dumps
35,598
LDU_FT/catherinedevlin/ddl-generator/set_worst
LDU_FT
[ "<BEGIN>\n## `precision_and_scale`", "From a float, decide what precision and scale are needed to represent it.", " >>> precision_and_scale(54.2)\n (3, 1)\n >>> precision_and_scale(9)\n (1, 0)", " Thanks to Mark Ransom,\n http://stackoverflow.com/questions/3018758/determine-precision-and-sca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_worst API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_worst API. 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...
Pad new_worst with zeroes to prevent it being shorter than old_worst. >>> set_worst(311920, '48-49') '48-490' >>> set_worst(98, -2) -20
"Pad new_worst with zeroes to prevent it being shorter than old_worst.\n \n >>> set_worst(311920, '48-49')\n '48-490'\n >>> set_worst(98, -2)\n -20"
63
false
catherinedevlin/ddl-generator
set_worst
35,599
LDU_FT/neo4j-drivers/neobolt/in_use_connection_count
LDU_FT
[ "<BEGIN>\n## `watch`", "Quick wrapper for using the Watcher.", " :param logger_name: name of logger to watch\n :param level: minimum log level to show (default INFO)\n :param out: where to send output (default stdout)\n :return: Watcher instance\n<END>", "<BEGIN>\n## `get_user_agent`", "Obtain t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the in_use_connection_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the in_use_connection_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...
Count the number of connections currently in use to a given address.
"Count the number of connections currently in use to a given\n address."
86
false
neo4j-drivers/neobolt
in_use_connection_count
35,600
LDU_FT/zabertech/python-izaber/chunks
LDU_FT
[ "<BEGIN>\n## `initialize`", "Loads the globally shared YAML configuration\n<END>", "<BEGIN>\n## `config_find`", "Attempt to use the config dir/config_filenames to\n locate the configuration file requested. Some folks\n would prefer to keep their config in ~ where it's in\n pla...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunks API. 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 chunks API. 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 ...
Takes a time range and returns sub timeranges based upon the cuts that cutter callback provides :param local: if False [default] use UTC datetime. If True use localtz :param cutter_callback: This should be a callback function that takes the current TimeRange and ...
"Takes a time range and returns sub timeranges based upon\n the cuts that cutter callback provides\n\n :param local: if False [default] use UTC datetime. If True use localtz\n :param cutter_callback: This should be a callback function that\n takes the current TimeRang...
38
false
zabertech/python-izaber
chunks
35,601
LDU_FT/GemHQ/round-py/get_netki_names
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new Device object.", " Devices tie Users and Applications together. For your Application to\n access and act on behalf of a User, the User must authorize a Device\n created by your Application.", " This function will return a `device_token` which y...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_netki_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_netki_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return the Account's NetkiNames object, populating it if fetch is True.
"Return the Account's NetkiNames object, populating it if fetch is True."
136
false
GemHQ/round-py
get_netki_names
35,602
LDU_FT/IBMStreams/pypi.streamsx/_get_timestamp_tuple
LDU_FT
[ "<BEGIN>\n## `get_application_configuration`", "Get a named application configuration.", " An application configuration is a named set of securely stored properties\n where each key and its value in the property set is a string.", " An application configuration object is used to store information tha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_timestamp_tuple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_timestamp_tuple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Internal method to get a timestamp tuple from a value. Handles input being a datetime or a Timestamp.
"Internal method to get a timestamp tuple from a value.\n Handles input being a datetime or a Timestamp."
651
false
IBMStreams/pypi.streamsx
_get_timestamp_tuple
35,603
LDU_FT/pyviz/imagen/gabor
LDU_FT
[ "<BEGIN>\n## `_threeDdot_simple`", "Return Ma, where M is a 3x3 transformation matrix, for each pixel\n<END>", "<BEGIN>\n## `_swaplch`", "Reverse the order of an LCH numpy dstack or tuple for analysis.\n<END>", "<BEGIN>\n## `convert`", "Convert image or color \"what\" from \"from_\" colorpace to \"to\"\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gabor API. 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 gabor API. 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...
Gabor pattern (sine grating multiplied by a circular Gaussian).
"Gabor pattern (sine grating multiplied by a circular Gaussian)."
127
false
pyviz/imagen
gabor
35,604
LDU_FT/mehmetg/streak_client/delete_pipeline
LDU_FT
[ "<BEGIN>\n## `_get_req_fp`", "Decisions on what verb to use and content headers happen here\n\t\tArgs:\n\t\t\top \t\t\ta string specifying a http verb\n<END>", "<BEGIN>\n## `_req`", "HTTP reequest wrapper with data packaging fucntionality\n\t\tArgs:\n\t\t\top \t\t\thttp verb in str\n\t\t\turi \t\taddress of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_pipeline API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_pipeline API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Deletes the pipeline specified by the key Args: returns (status code for the DELETE request, success message dict) expect (200 , {'success': 'true'}) for successful execution}
"Deletes the pipeline specified by the key\n\t\tArgs:\n\t\t\treturns \t(status code for the DELETE request, success message dict)\n\t\t\t\t\t\texpect (200 , {'success': 'true'}) for successful execution}"
90
false
mehmetg/streak_client
delete_pipeline
35,605
LDU_FT/Ezhil-Language-Foundation/open-tamil/make_pattern
LDU_FT
[ "<BEGIN>\n## `unicode2encode`", "charmap : dictionary which has both encode as key, unicode as value\n<END>", "<BEGIN>\n## `unicode2auto`", "This function will convert unicode (first argument) text into other\r\n encodes by auto find the encode (from available encodes) by using sample\r\n encode text in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_pattern API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_pattern API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
returns a compile regular expression object
"returns a compile regular expression object"
90
false
Ezhil-Language-Foundation/open-tamil
make_pattern
35,606
LDU_FT/delph-in/pydelphin/from_triples
LDU_FT
[ "<BEGIN>\n## `compile`", "Use ACE to compile a grammar.", " Args:\n cfg_path (str): the path to the ACE config file\n out_path (str): the path where the compiled grammar will be\n written\n executable (str, optional): the path to the ACE binary; if\n `None`, the `ac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_triples API. 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 from_triples API. 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...
Decode triples, as from :meth:`to_triples`, into an Eds object.
"Decode triples, as from :meth:`to_triples`, into an Eds object."
662
false
delph-in/pydelphin
from_triples
35,607
LDU_FT/LabKey/labkey-api-python/select_rows
LDU_FT
[ "<BEGIN>\n## `create`", "Create a domain\n :param server_context: A LabKey server context. See utils.create_server_context.\n :param domain_definition: A domain definition.\n :param container_path: labkey container path if not already set in context\n :return: Domain\n<END>", "<BEGIN>\n## `drop`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_rows API. 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 select_rows API. 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...
Query data from a LabKey server :param server_context: A LabKey server context. See utils.create_server_context. :param schema_name: schema of table :param query_name: table name to select from :param view_name: pre-existing named view :param filter_array: set of filter objects to apply :param c...
"Query data from a LabKey server\n :param server_context: A LabKey server context. See utils.create_server_context.\n :param schema_name: schema of table\n :param query_name: table name to select from\n :param view_name: pre-existing named view\n :param filter_array: set of filter objects to apply\n :...
60
false
LabKey/labkey-api-python
select_rows
35,608
LDU_FT/andy29485/embypy/update
LDU_FT
[ "<BEGIN>\n## `songs`", "list of songs in the playlist", " |force|", " |coro|", " Returns\n -------\n list\n of type :class:`embypy.objects.Audio`\n<END>", "<BEGIN>\n## `add_items`", "append items to the playlist", " |coro|", " Parameters\n ----------\n items : array_l...
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 ...
reload all cached information |coro| Notes ----- This is a slow process, and will remove the cache before updating. Thus it is recomended to use the `*_force` properties, which will only update the cache after data is retrived.
"reload all cached information\n\n |coro|\n\n Notes\n -----\n This is a slow process, and will remove the cache before updating.\n Thus it is recomended to use the `*_force` properties, which will\n only update the cache after data is retrived."
87
false
andy29485/embypy
update
35,609
LDU_FT/rorr73/LifeSOSpy/control_high_limit
LDU_FT
[ "<BEGIN>\n## `has_value`", "True if specified value exists in int enum; otherwise, False.\n<END>", "<BEGIN>\n## `parse_name`", "Parse specified name for IntEnum; return default if not found.\n<END>", "<BEGIN>\n## `parse_value`", "Parse specified value for IntEnum; return default if not found.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the control_high_limit 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 control_high_limit 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...
Control high limit setting for a special sensor. For LS-10/LS-20 base units only.
"Control high limit setting for a special sensor.\n\n For LS-10/LS-20 base units only."
84
false
rorr73/LifeSOSpy
control_high_limit
35,610
LDU_FT/kevin-brown/drf-json-api/wrap_error
LDU_FT
[ "<BEGIN>\n## `camelcase`", "Return a string in lowerCamelCase", " Examples:\n \"people\" -> \"people\"\n \"profile images\" -> \"profileImages\"\n<END>", "<BEGIN>\n## `render`", "Convert native data to JSON API", " Tries each of the methods in `wrappers`, using the first successful\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_error API. 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 wrap_error API. 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...
Convert error native data to the JSON API Error format JSON API has a different format for errors, but Django REST Framework doesn't have a separate rendering path for errors. This results in some guesswork to determine if data is an error, what kind, and how to handle it. As ...
"Convert error native data to the JSON API Error format\n\n JSON API has a different format for errors, but Django REST Framework\n doesn't have a separate rendering path for errors. This results in\n some guesswork to determine if data is an error, what kind, and how\n to handle it.\n\n ...
34
false
kevin-brown/drf-json-api
wrap_error
35,611
LDU_FT/joytunes/JTLocalize/merge_strings_files
LDU_FT
[ "<BEGIN>\n## `handle_duplications`", "Omits the duplications in the strings files.\n Keys that appear more than once, will be joined to one appearance and the omit will be documented.", " Args:\n file_path (str): The path to the strings file.\n<END>", "<BEGIN>\n## `add_comments`", "Add comm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_strings_files 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 merge_strings_files 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...
Merges the old strings file with the new one. Args: old_strings_file (str): The path to the old strings file (previously produced, and possibly altered) new_strings_file (str): The path to the new strings file (newly produced).
"Merges the old strings file with the new one.\n\n Args:\n old_strings_file (str): The path to the old strings file (previously produced, and possibly altered)\n new_strings_file (str): The path to the new strings file (newly produced)."
104
false
joytunes/JTLocalize
merge_strings_files
35,612
LDU_FT/isislovecruft/python-gnupg/author_info
LDU_FT
[ "<BEGIN>\n## `get_requirements`", "Extract the list of requirements from our requirements.txt.", " :rtype: 2-tuple\n :returns: Two lists, the first is a list of requirements in the form of\n pkgname==version. The second is a list of URIs or VCS checkout strings\n which specify the dependency...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the author_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the author_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 extra...
Easy object-oriented representation of contributor info. :param str name: The contributor´s name. :param str contact: The contributor´s email address or contact information, if given. :param str public_key: The contributor´s public keyid, if given.
"Easy object-oriented representation of contributor info.\n\n :param str name: The contributor´s name.\n :param str contact: The contributor´s email address or contact\n information, if given.\n :param str public_key: The contributor´s public keyid, if given."
371
false
isislovecruft/python-gnupg
author_info
35,613
LDU_FT/visualfabriq/bquery/rm_file_or_dir
LDU_FT
[ "<BEGIN>\n## `rm_file_or_dir`", "Helper function to clean a certain filepath", " Parameters\n ----------\n path", " Returns\n -------\n<END>", "<BEGIN>\n## `cache_valid`", "Checks whether the column has a factorization that exists and is not older than the source", " :param col:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rm_file_or_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rm_file_or_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 ex...
Helper function to clean a certain filepath Parameters ---------- path Returns -------
"Helper function to clean a certain filepath\n\n Parameters\n ----------\n path\n\n Returns\n -------"
60
false
visualfabriq/bquery
rm_file_or_dir
35,614
LDU_FT/bearyinnovative/bearychat.py/start
LDU_FT
[ "<BEGIN>\n## `request`", "Perform a request.", " Args:\n request_method: HTTP method for this request.\n api_method: API method name for this request.\n *args: Extra arguments to pass to the request.\n **kwargs: Extra keyword arguments to pass to the request.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. 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 start API. 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...
Gets the rtm ws_host and user information Returns: None if request failed, else a dict containing "user"(User) and "ws_host"
"Gets the rtm ws_host and user information\n\n Returns:\n None if request failed,\n else a dict containing \"user\"(User) and \"ws_host\""
68
false
bearyinnovative/bearychat.py
start
35,615
LDU_FT/ravendb/ravendb-python-client/basic_parse
LDU_FT
[ "<BEGIN>\n## `parse_json`", "This function will use the custom JsonDecoder and the conventions.mappers to recreate your custom object\n in the parse json string state just call this method with the json_string your complete object_type and with your\n mappers dict.\n the mappers dict must contain in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the basic_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the basic_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 extra...
Iterator yielding unprefixed events. Parameters: - response: a stream response from requests
"Iterator yielding unprefixed events.\n\n Parameters:\n\n - response: a stream response from requests"
29
false
ravendb/ravendb-python-client
basic_parse
35,616
LDU_FT/ivelum/graphql-py/p_operation_definition6
LDU_FT
[ "<BEGIN>\n## `p_operation_definition1`", "operation_definition : operation_type name variable_definitions directives selection_set\n<END>", "<BEGIN>\n## `p_operation_definition2`", "operation_definition : operation_type name variable_definitions selection_set\n<END>", "<BEGIN>\n## `p_operation_definition3`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_operation_definition6 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 p_operation_definition6 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
operation_definition : operation_type variable_definitions selection_set
"operation_definition : operation_type variable_definitions selection_set"
36
false
ivelum/graphql-py
p_operation_definition6
35,617
LDU_FT/HPAC/matchpy/preorder_iter_with_position
LDU_FT
[ "<BEGIN>\n## `substitute`", "Replaces variables in the given *expression* using the given *substitution*.", " >>> print(substitute(f(x_), {'x': a}))\n f(a)", " If nothing was substituted, the original expression is returned:", " >>> expression = f(x_)\n >>> result = substitute(expression, {'y...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preorder_iter_with_position 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 preorder_iter_with_position API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Iterate over the expression in preorder. Also yields the position of each subexpression.
"Iterate over the expression in preorder.\n\n Also yields the position of each subexpression."
324
false
HPAC/matchpy
preorder_iter_with_position
35,618
LDU_FT/skitazaki/python-clitool/logparse
LDU_FT
[ "<BEGIN>\n## `base_parser`", "Create arguments parser with basic options and no help message.", " * -c, --config: load configuration file.\n * -v, --verbose: increase logging verbosity. `-v`, `-vv`, and `-vvv`.\n * -q, --quiet: quiet logging except critical level.\n * -o, --output: output file. (def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logparse API. 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 logparse API. 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...
Parse access log on the terminal application. If list of files are given, parse each file. Otherwise, parse standard input. :param args: supporting functions after processed raw log line :type: list of callables :rtype: tuple of (statistics, key/value report)
"Parse access log on the terminal application.\n If list of files are given, parse each file. Otherwise, parse standard\n input.\n\n :param args: supporting functions after processed raw log line\n :type: list of callables\n :rtype: tuple of (statistics, key/value report)"
52
false
skitazaki/python-clitool
logparse
35,619
LDU_FT/mozilla/mozilla-django-oidc/create_user
LDU_FT
[ "<BEGIN>\n## `get_next_url`", "Retrieves next url from request", " Note: This verifies that the url is safe before returning it. If the url\n is not safe, this returns None.", " :arg HttpRequest request: the http request\n :arg str redirect_field_name: the name of the field holding the next url", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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. The extra...
Return object for a newly created user account.
"Return object for a newly created user account."
49
false
mozilla/mozilla-django-oidc
create_user
35,620
LDU_FT/inveniosoftware/invenio-oauth2server/login_oauth2_user
LDU_FT
[ "<BEGIN>\n## `require_api_auth`", "Decorator to require API authentication using OAuth token.", " :param allow_anonymous: Allow access without OAuth token\n (default: ``False``).\n<END>", "<BEGIN>\n## `require_oauth_scopes`", "r\"\"\"Decorator to require a list of OAuth scopes.", " Decorator ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login_oauth2_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. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login_oauth2_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. The...
Log in a user after having been verified.
"Log in a user after having been verified."
92
false
inveniosoftware/invenio-oauth2server
login_oauth2_user
35,621
LDU_FT/learningequality/iceqube/mark_job_as_canceling
LDU_FT
[ "<BEGIN>\n## `wait_for_job_update`", "Blocks until a job given by job_id has updated its state (canceled, completed, progress updated, etc.)\n if timeout is not None, then this function raises iceqube.exceptions.TimeoutError.", " :param job_id: the job's job_id to monitor for changes.\n :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mark_job_as_canceling 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 mark_job_as_canceling API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Mark the job as requested for canceling. Does not actually try to cancel a running job. :param job_id: the job to be marked as canceling. :return: the job object
"Mark the job as requested for canceling. Does not actually try to cancel a running job.\n\n :param job_id: the job to be marked as canceling.\n :return: the job object"
93
false
learningequality/iceqube
mark_job_as_canceling
35,622
LDU_FT/python-thumbnails/python-thumbnails/text_filter
LDU_FT
[ "<BEGIN>\n## `text_filter`", "A text-filter helper, used in ``markdown_thumbnails``-filter and ``html_thumbnails``-filter.\n It can be used to build custom thumbnail text-filters.", " :param regex_base: A string with a regex that contains ``%(captions)s`` and ``%(image)s`` where\n th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text_filter API. 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 text_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
A text-filter helper, used in ``markdown_thumbnails``-filter and ``html_thumbnails``-filter. It can be used to build custom thumbnail text-filters. :param regex_base: A string with a regex that contains ``%(captions)s`` and ``%(image)s`` where the caption and image should be. :param ...
"A text-filter helper, used in ``markdown_thumbnails``-filter and ``html_thumbnails``-filter.\n It can be used to build custom thumbnail text-filters.\n\n :param regex_base: A string with a regex that contains ``%(captions)s`` and ``%(image)s`` where\n the caption and image should be.\n :...
41
false
python-thumbnails/python-thumbnails
text_filter
35,623
LDU_FT/openwisp/netdiff/_make_diff
LDU_FT
[ "<BEGIN>\n## `parse`", "Converts a NetJSON 'NetworkGraph' object\n to a NetworkX Graph object,which is then returned.\n Additionally checks for protocol version, revision and metric.\n<END>", "<BEGIN>\n## `parse`", "Converts a OpenVPN JSON to a NetworkX Graph object\n which is then return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_diff API. 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 _make_diff API. 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...
calculates differences between topologies 'old' and 'new' returns a tuple with two network graph objects the first graph contains the added nodes, the secnod contains the added links
"calculates differences between topologies 'old' and 'new'\n returns a tuple with two network graph objects\n the first graph contains the added nodes, the secnod contains the added links"
30
false
openwisp/netdiff
_make_diff
35,624
LDU_FT/seibert-media/Highton/encode
LDU_FT
[ "<BEGIN>\n## `decode`", "Decode the object to the object", " :param root_element: the parsed xml Element\n :type root_element: xml.etree.ElementTree.Element\n :return: the decoded Element as object\n :rtype: object\n<END>", "<BEGIN>\n## `add_note`", "Create a Note to current obje...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode API. 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 encode API. 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 ...
Just iterate over the child elements and append them to the current element :return: the encoded element :rtype: xml.etree.ElementTree.Element
"Just iterate over the child elements and append them to the current element\n\n :return: the encoded element\n :rtype: xml.etree.ElementTree.Element"
80
false
seibert-media/Highton
encode
35,625
LDU_FT/rigetti/grove/check_solution
LDU_FT
[ "<BEGIN>\n## `_prepare_c_jk_m`", "Prepare the coefficient matrix for state tomography. This function uses sparse matrices\n for much greater efficiency.\n The coefficient matrix is defined as:", " .. math::", " C_{(jk)m} = \\tr{\\Pi_{s_j} \\Lambda_k(P_m)} = \\sum_{r}\\pi_{jr}(\\mathcal{R}_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_solution API. 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 check_solution API. 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...
Checks if the the found solution correctly reproduces the input. :return: True if solution correctly reproduces input bitstring map :rtype: Bool
"Checks if the the found solution correctly reproduces the input.\n\n :return: True if solution correctly reproduces input bitstring map\n :rtype: Bool"
428
false
rigetti/grove
check_solution
35,626
LDU_FT/vladsaveliev/TargQC/execute
LDU_FT
[ "<BEGIN>\n## `main`", "Annotating BED file based on reference features annotations.\n<END>", "<BEGIN>\n## `downsample`", "get N random headers from a fastq file without reading the\n whole thing into memory\n modified from: http://www.biostars.org/p/6544/\n<END>", "<BEGIN>\n## `AddIndex`", "Recursiv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Low level method to expand the template piece by piece. Args: data_dict: The JSON data dictionary. callback: A callback which should be called with each expanded token. group: Dictionary of name -> Template instance (for styles) Example: You can pass 'f.write' as the callback to write direct...
"Low level method to expand the template piece by piece.\n\n Args:\n data_dict: The JSON data dictionary.\n callback: A callback which should be called with each expanded token.\n group: Dictionary of name -> Template instance (for styles)\n\n Example: You can pass 'f.write' as the callback to writ...
184
false
vladsaveliev/TargQC
execute
35,627
LDU_FT/andrea-cuttone/geoplotlib/lonlat_to_screen
LDU_FT
[ "<BEGIN>\n## `__voronoi_finite_polygons_2d`", "Reconstruct infinite voronoi regions in a 2D diagram to finite\n regions.", " Parameters\n ----------\n vor : Voronoi\n Input diagram\n radius : float, optional\n Distance to 'points at infinity'.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lonlat_to_screen API. 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 lonlat_to_screen API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Projects geodesic coordinates to screen :param lon: longitude :param lat: latitude :return: x,y screen coordinates
"Projects geodesic coordinates to screen\n :param lon: longitude\n :param lat: latitude\n :return: x,y screen coordinates"
82
false
andrea-cuttone/geoplotlib
lonlat_to_screen
35,628
LDU_FT/RI-imaging/qpimage/_get_amp_pha
LDU_FT
[ "<BEGIN>\n## `check`", "Checks various properties of a :class:`qpimage.core.QPImage` instance", " Parameters\n ----------\n qpi_or_h5file: qpimage.core.QPImage or str\n A QPImage object or a path to an hdf5 file\n checks: list of str\n Which checks to perform (\"attributes\" and/or \"b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_amp_pha API. 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_amp_pha API. 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...
Convert input data to phase and amplitude Parameters ---------- data: 2d ndarray (float or complex) or list The experimental data (see `which_data`) which_data: str String or comma-separated list of strings indicating the order and type of input data....
"Convert input data to phase and amplitude\n\n Parameters\n ----------\n data: 2d ndarray (float or complex) or list\n The experimental data (see `which_data`)\n which_data: str\n String or comma-separated list of strings indicating\n the order and type of in...
115
false
RI-imaging/qpimage
_get_amp_pha
35,629
LDU_FT/projecthamster/hamster/fill_area
LDU_FT
[ "<BEGIN>\n## `set_start_time`", "set the start time. when start time is set, drop down list\n will start from start time and duration will be displayed in\n brackets\n<END>", "<BEGIN>\n## `parse_fact`", "tries to extract fact fields from the string\n the optional arguments in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_area API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_area API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
fill rectangular area with specified color
"fill rectangular area with specified color"
249
false
projecthamster/hamster
fill_area
35,630
LDU_FT/tk0miya/tk.phpautodoc/p_new_else_single
LDU_FT
[ "<BEGIN>\n## `p_top_statement_namespace`", "top_statement : NAMESPACE namespace_name SEMI\n | NAMESPACE LBRACE top_statement_list RBRACE\n | NAMESPACE namespace_name LBRACE top_statement_list RBRACE\n<END>", "<BEGIN>\n## `p_use_declaration`", "use_declaration : namespac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_new_else_single API. 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 p_new_else_single API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
new_else_single : empty | ELSE COLON inner_statement_list
"new_else_single : empty\n | ELSE COLON inner_statement_list"
152
false
tk0miya/tk.phpautodoc
p_new_else_single
35,631
LDU_FT/pablorecio/Cobaya/get_password
LDU_FT
[ "<BEGIN>\n## `get_all_tasks`", "Returns a list with every task registred on Hamster.\n<END>", "<BEGIN>\n## `get_fact_by_id`", "Obtains fact data by it's id.", " As the fact is unique, it returns a tuple like:\n (activity_id, start_time, end_time, description).\n If there is no fact with...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extr...
Returns the password for a remote server It tries to fetch the password from the following locations in this order: 1. config file [remote] section, password option 2. GNOME keyring 3. interactively, from the user
"Returns the password for a remote server\n\n It tries to fetch the password from the following\n locations in this order:\n\n 1. config file [remote] section, password option\n 2. GNOME keyring\n 3. interactively, from the user"
18
false
pablorecio/Cobaya
get_password
35,632
LDU_FT/havardgulldahl/jottalib/write
LDU_FT
[ "<BEGIN>\n## `get_auth_info`", "Get authentication details to jottacloud.", " Will first check environment variables, then the .netrc file.\n<END>", "<BEGIN>\n## `calculate_md5`", "Utility function to calculate md5 hashes while being light on memory usage.", " By reading the fileobject piece by piec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. 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 write API. 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...
Put, possibly replace, file contents with (new) data
"Put, possibly replace, file contents with (new) data"
111
false
havardgulldahl/jottalib
write
35,633
LDU_FT/fedora-infra/fedmsg/tail_messages
LDU_FT
[ "<BEGIN>\n## `set_high_water_mark`", "Set a high water mark on the zmq socket. Do so in a way that is\n cross-compatible with zeromq2 and zeromq3.\n<END>", "<BEGIN>\n## `set_tcp_keepalive`", "Set a series of TCP keepalive options on the socket if\n and only if\n 1) they are specified explicitly in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tail_messages API. 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 tail_messages API. 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...
Subscribe to messages published on the sockets listed in :ref:`conf-endpoints`. Args: topic (six.text_type): The topic to subscribe to. The default is to subscribe to all topics. passive (bool): If ``True``, bind to the :ref:`conf-endpoints` sockets inste...
"Subscribe to messages published on the sockets listed in :ref:`conf-endpoints`.\n\n Args:\n topic (six.text_type): The topic to subscribe to. The default is to\n subscribe to all topics.\n passive (bool): If ``True``, bind to the :ref:`conf-endpoints` sockets\n ...
248
false
fedora-infra/fedmsg
tail_messages
35,634
LDU_FT/pesaply/sarafu/sync
LDU_FT
[ "<BEGIN>\n## `get_account_details`", "This method can be used in a number of scenarios:\n 1. When it is necessary to very account information\n 2. When there's a need to filter transactions by an account id\n 3. When account details (e.g. name of account) are needed\n<END>", "<BEGIN>\n## `g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API. 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 sync API. 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...
Overwrite local customer payment profile data with remote data
"Overwrite local customer payment profile data with remote data"
30
false
pesaply/sarafu
sync
35,635
LDU_FT/pyscaffold/configupdater/get
LDU_FT
[ "<BEGIN>\n## `add_before`", "Returns a builder inserting a new block before the current block\n<END>", "<BEGIN>\n## `add_after`", "Returns a builder inserting a new block after the current block\n<END>", "<BEGIN>\n## `comment`", "Creates a comment block", " Args:\n text (str): content ...
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...
Gets an option value for a given section. Args: section (str): section name option (str): option name Returns: :class:`Option`: Option object holding key/value pair
"Gets an option value for a given section.\n\n Args:\n section (str): section name\n option (str): option name\n\n Returns:\n :class:`Option`: Option object holding key/value pair"
78
false
pyscaffold/configupdater
get
35,636
LDU_FT/dropbox/stone/_generate_struct_class_repr
LDU_FT
[ "<BEGIN>\n## `generic_type_name`", "Return a descriptive type name that isn't Python specific. For example, an\n int type will return 'integer' rather than 'int'.\n<END>", "<BEGIN>\n## `doc_unwrap`", "Applies two transformations to raw_doc:\n 1. N consecutive newlines are converted into N-1 newlines.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_struct_class_repr 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 _generate_struct_class_repr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Generates something like: def __repr__(self): return 'Employee(first_name={!r}, last_name={!r}, age={!r})'.format( self._first_name_value, self._last_name_value, self._age_value, )
"Generates something like:\n\n def __repr__(self):\n return 'Employee(first_name={!r}, last_name={!r}, age={!r})'.format(\n self._first_name_value,\n self._last_name_value,\n self._age_value,\n )"
613
false
dropbox/stone
_generate_struct_class_repr
35,637
LDU_FT/sivakov512/python-static-api-generator/_validate_extension
LDU_FT
[ "<BEGIN>\n## `_validate_extension`", "Validates that source file extension is supported.", " :raises: UnsupportedExtensionError\n<END>", "<BEGIN>\n## `convert_content`", "Convert content of source file into dict result.\n<END>", "<BEGIN>\n## `_get_tags_and_content`", "Splits content into two stri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_extension 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 _validate_extension 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...
Validates that source file extension is supported. :raises: UnsupportedExtensionError
"Validates that source file extension is supported.\n\n :raises: UnsupportedExtensionError"
14
false
sivakov512/python-static-api-generator
_validate_extension
35,638
LDU_FT/ofek/depq/addlast
LDU_FT
[ "<BEGIN>\n## `binary_insert`", "Traditional binary search. Performance: O(n log n)\n<END>", "<BEGIN>\n## `insert`", "Adds item to DEPQ with given priority by performing a binary\n search on the concurrently rotating deque. Amount rotated R of\n DEPQ of length n would be n <= R <= 3n/2. Performan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addlast API. 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 addlast API. 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...
Adds item to DEPQ as lowest priority. The default starting priority is 0, the default new priority is self.low(). Performance: O(1)
"Adds item to DEPQ as lowest priority. The default\n starting priority is 0, the default new priority is\n self.low(). Performance: O(1)"
22
false
ofek/depq
addlast
35,639
LDU_FT/edeposit/edeposit.amqp.storage/reactToAMQPMessage
LDU_FT
[ "<BEGIN>\n## `render_trees`", "Render list of `trees` to HTML.", " Args:\n trees (list): List of :class:`.Tree`.\n path_composer (fn reference): Function used to compose paths from UUID.\n Look at :func:`.compose_tree_path` from :mod:`.web_tools`.", " Returns:\n str: HTML...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reactToAMQPMessage 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 reactToAMQPMessage 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...
React to given (AMQP) message. `message` is expected to be :py:func:`collections.namedtuple` structure from :mod:`.structures` filled with all necessary data. Args: message (object): One of the request objects defined in :mod:`.structures`. send_back (fn reference)...
"React to given (AMQP) message. `message` is expected to be\n :py:func:`collections.namedtuple` structure from :mod:`.structures` filled\n with all necessary data.\n\n Args:\n message (object): One of the request objects defined in\n :mod:`.structures`.\n send_back (fn re...
140
false
edeposit/edeposit.amqp.storage
reactToAMQPMessage
35,640
LDU_FT/StorjOld/heartbeat/get_hmac
LDU_FT
[ "<BEGIN>\n## `generate_challenges`", "Generate the specified number of hash challenges.", " :param num: The number of hash challenges we want to generate.\n :param root_seed: Some value that we use to generate our seeds from.\n<END>", "<BEGIN>\n## `meet_challenge`", "Get the SHA256 hash of a s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hmac API. 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_hmac API. 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 the keyed HMAC for authentication of this state data. :param key: the key for the keyed hash function
"Returns the keyed HMAC for authentication of this state data.\n\n :param key: the key for the keyed hash function"
100
false
StorjOld/heartbeat
get_hmac
35,641
LDU_FT/ternaris/marv/marvcli_comment_add
LDU_FT
[ "<BEGIN>\n## `encode_setid`", "Encode uint128 setid as stripped b32encoded string\n<END>", "<BEGIN>\n## `marvcli_cleanup`", "Cleanup unused tags and discarded datasets.\n<END>", "<BEGIN>\n## `marvcli_develop_server`", "Run development webserver.", " ATTENTION: By default it is only served on localhos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marvcli_comment_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marvcli_comment_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. T...
Add comment as user for one or more datasets
"Add comment as user for one or more datasets"
76
false
ternaris/marv
marvcli_comment_add
35,642
LDU_FT/myusuf3/delorean/format_datetime
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses a datetime string and returns a `Delorean` object.", " :param datetime_str: The string to be interpreted into a `Delorean` object.\n :param timezone: Pass this parameter and the returned Delorean object will be normalized to this timezone. Any\n offsets passed as part...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_datetime API. 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 format_datetime API. 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...
Return a date string formatted to the given pattern. .. testsetup:: from delorean import Delorean .. doctest:: >>> d = Delorean(datetime(2015, 1, 1, 12, 30), timezone='US/Pacific') >>> d.format_datetime(locale='en_US') u'Jan 1, 2015, 12:30:00 PM' ...
"Return a date string formatted to the given pattern.\n\n .. testsetup::\n\n from delorean import Delorean\n\n .. doctest::\n\n >>> d = Delorean(datetime(2015, 1, 1, 12, 30), timezone='US/Pacific')\n >>> d.format_datetime(locale='en_US')\n u'Jan 1, 2015, 12:30:0...
85
false
myusuf3/delorean
format_datetime
35,643
LDU_FT/craffel/mir_eval/generate_labels
LDU_FT
[ "<BEGIN>\n## `_open`", "Either open a file handle, or use an existing file-like object.", " This will behave as the `open` function if `file_or_str` is a string.", " If `file_or_str` has the `read` attribute, it will return `file_or_str`.", " Otherwise, an `IOError` is raised.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_labels API. 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 generate_labels API. 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...
Given an array of items (e.g. events, intervals), create a synthetic label for each event of the form '(label prefix)(item number)' Parameters ---------- items : list-like A list or array of events or intervals prefix : str This prefix will be prepended to all synthetically generate...
"Given an array of items (e.g. events, intervals), create a synthetic label\n for each event of the form '(label prefix)(item number)'\n\n Parameters\n ----------\n items : list-like\n A list or array of events or intervals\n prefix : str\n This prefix will be prepended to all synthetically...
1,001
false
craffel/mir_eval
generate_labels
35,644
LDU_FT/humilis/humilis-lambdautils/get_function_annotations
LDU_FT
[ "<BEGIN>\n## `unpack_kinesis_event`", "Extracts events (a list of dicts) from a Kinesis event.\n<END>", "<BEGIN>\n## `send_to_delivery_stream`", "Sends a list of events to a Firehose delivery stream.\n<END>", "<BEGIN>\n## `_secrets_table_name`", "Name of the secrets table associated to a humilis deploymen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_function_annotations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_function_annotations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Produce a list of function annotations in in this event.
"Produce a list of function annotations in in this event."
40
false
humilis/humilis-lambdautils
get_function_annotations
35,645
LDU_FT/phac-nml/sistr_cmd/trunc
LDU_FT
[ "<BEGIN>\n## `parse_cgmlst_alleles`", "Parse cgMLST alleles from fasta file\n cgMLST FASTA file must have a header format of \">{marker name}|{allele name}\"", " Args:\n cgmlst_fasta (str): cgMLST fasta file path", " Returns:\n dict of list: Marker name to list of allele sequences\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trunc API. 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 trunc API. 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...
Check if a query sequence is truncated by the end of a subject sequence Args: qstart (int pandas.Series): Query sequence start index qend (int pandas.Series): Query sequence end index sstart (int pandas.Series): Subject sequence start index send (int pandas.Serie...
"Check if a query sequence is truncated by the end of a subject sequence\n\n Args:\n qstart (int pandas.Series): Query sequence start index\n qend (int pandas.Series): Query sequence end index\n sstart (int pandas.Series): Subject sequence start index\n send (int panda...
148
false
phac-nml/sistr_cmd
trunc
35,646
LDU_FT/weaming/filetree/n_relative_paths
LDU_FT
[ "<BEGIN>\n## `tree`", "A generator return a tuple with three elements (root, dirs, files).\n<END>", "<BEGIN>\n## `n_parent_paths`", "return parent paths of n levels.\n eg: File('a/b/c/d').n_parent_paths(2) == 'b/c'\n<END>", "<BEGIN>\n## `n_relative_paths`", "return relative paths of n levels, inclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the n_relative_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the n_relative_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
return relative paths of n levels, including basename. eg: File('a/b/c/d').n_parent_paths(3) == 'b/c/d'
"return relative paths of n levels, including basename.\n eg: File('a/b/c/d').n_parent_paths(3) == 'b/c/d'"
10
false
weaming/filetree
n_relative_paths
35,647
LDU_FT/OnroerendErfgoed/crabpy_pyramid/item_perceel_adapter
LDU_FT
[ "<BEGIN>\n## `range_return`", "Determine what range of objects to return.", " Will check fot both `Range` and `X-Range` headers in the request and\n set both `Content-Range` and 'X-Content-Range' headers.", " :rtype: list\n<END>", "<BEGIN>\n## `set_http_caching`", "Set an HTTP Cache Control heade...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the item_perceel_adapter 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 item_perceel_adapter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Adapter for rendering an object of :class: `crabpy.gateway.capakey.Perceel` to json.
"Adapter for rendering an object of\n :class: `crabpy.gateway.capakey.Perceel` to json."
72
false
OnroerendErfgoed/crabpy_pyramid
item_perceel_adapter
35,648
LDU_FT/pyGrowler/Growler/validate_and_store_body_data
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new prototype object with the argument as the source\n prototype.", " .. Note:", " This does not `initialize` the newly created object any\n more than setting its prototype.\n Calling the __init__ method is usually unnecessary as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_and_store_body_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_and_store_body_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Attempts simple body data validation by comparining incoming data to the content length header. If passes store the data into self._buffer. Parameters: data (bytes): Incoming client data to be added to the body Raises: HTTPErrorBadRequest: Raised if data is sent...
"Attempts simple body data validation by comparining incoming\n data to the content length header.\n If passes store the data into self._buffer.\n\n Parameters:\n data (bytes): Incoming client data to be added to the body\n\n Raises:\n HTTPErrorBadRequest: Raised if dat...
203
false
pyGrowler/Growler
validate_and_store_body_data
35,649
LDU_FT/inveniosoftware/invenio-records-rest/_format_args
LDU_FT
[ "<BEGIN>\n## `build_default_endpoint_prefixes`", "Build the default_endpoint_prefixes map.\n<END>", "<BEGIN>\n## `obj_or_import_string`", "Import string or return object.", " :params value: Import path or class object to instantiate.\n :params default: Default object to return if the import fails.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get JSON dump indentation and separates.
"Get JSON dump indentation and separates."
165
false
inveniosoftware/invenio-records-rest
_format_args
35,650
LDU_FT/diging/tethne/_strip_list_attributes
LDU_FT
[ "<BEGIN>\n## `to_dxgmml`", "Writes a :class:`.GraphCollection` to\n `dynamic XGMML. <https://code.google.com/p/dynnetwork/wiki/DynamicXGMML>`_.", " Dynamic XGMML is a schema for describing dynamic networks in Cytoscape 3.0.\n This method assumes that `Graph` indices are orderable points in time\n (e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _strip_list_attributes 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 _strip_list_attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Converts lists attributes to strings for all nodes and edges in G.
"Converts lists attributes to strings for all nodes and edges in G."
497
false
diging/tethne
_strip_list_attributes
35,651
LDU_FT/huge-success/sanic/run
LDU_FT
[ "<BEGIN>\n## `group`", "Create a list of blueprints, optionally grouping them under a\n general URL prefix.", " :param blueprints: blueprints to be registered as a group\n :param url_prefix: URL route to be prepended to all sub-prefixes\n<END>", "<BEGIN>\n## `register`", "Register the b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run the HTTP Server and listen until keyboard interrupt or term signal. On termination, drain connections before closing. :param host: Address to host on :type host: str :param port: Port to host on :type port: int :param debug: Enables debug output (slows server) ...
"Run the HTTP Server and listen until keyboard interrupt or term\n signal. On termination, drain connections before closing.\n\n :param host: Address to host on\n :type host: str\n :param port: Port to host on\n :type port: int\n :param debug: Enables debug output (slows server...
238
false
huge-success/sanic
run
35,652
LDU_FT/redhat-cip/dci-control-server/create_client
LDU_FT
[ "<BEGIN>\n## `get_user_and_check_auth`", "Check the combination username/password that is valid on the\n database.\n<END>", "<BEGIN>\n## `retrieve_info`", "Query the Github API to retrieve the needed infos.\n<END>", "<BEGIN>\n## `get_last_rconfiguration_id`", "Get the rconfiguration_id of the last ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Create the dci client in the master realm.
"Create the dci client in the master realm."
86
false
redhat-cip/dci-control-server
create_client
35,653
LDU_FT/pypa/setuptools/translate_pattern
LDU_FT
[ "<BEGIN>\n## `indentedBlock`", "Helper method for defining space-delimited indentation blocks, such as\r\n those used to define block statements in Python source code.\r", " Parameters:\r\n - blockStatementExpr - expression defining syntax of statement that\r\n is repeated within the indent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate_pattern API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate_pattern API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Translate a file path glob like '*.txt' in to a regular expression. This differs from fnmatch.translate which allows wildcards to match directory separators. It also knows about '**/' which matches any number of directories.
"Translate a file path glob like '*.txt' in to a regular expression.\n This differs from fnmatch.translate which allows wildcards to match\n directory separators. It also knows about '**/' which matches any number of\n directories."
565
false
pypa/setuptools
translate_pattern
35,654
LDU_FT/GemHQ/round-py/get_addresses
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new Device object.", " Devices tie Users and Applications together. For your Application to\n access and act on behalf of a User, the User must authorize a Device\n created by your Application.", " This function will return a `device_token` which y...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_addresses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_addresses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return the Account's addresses object, populating it if fetch is True.
"Return the Account's addresses object, populating it if fetch is True."
136
false
GemHQ/round-py
get_addresses
35,655
LDU_FT/Blueqat/Blueqat/is_commutable
LDU_FT
[ "<BEGIN>\n## `pauli`", "Convert to pauli operators of universal gate model.\n\tRequires blueqat.\n<END>", "<BEGIN>\n## `make_qs`", "Make sympy symbols q0, q1, ...", " Args:\n n(int), m(int, optional):\n If specified both n and m, returns [qn, q(n+1), ..., qm],\n Only n is spe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_commutable API. 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 is_commutable API. 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...
Test whether expr1 and expr2 are commutable. Args: expr1 (Expr, Term or Pauli operator): Pauli's expression. expr2 (Expr, Term or Pauli operator): Pauli's expression. eps (float, optional): Machine epsilon. If |[expr1, expr2]| < eps, consider it is commutable. Returns: ...
"Test whether expr1 and expr2 are commutable.\n\n Args:\n expr1 (Expr, Term or Pauli operator): Pauli's expression.\n expr2 (Expr, Term or Pauli operator): Pauli's expression.\n eps (float, optional): Machine epsilon.\n If |[expr1, expr2]| < eps, consider it is commutable.\n\n Retu...
117
false
Blueqat/Blueqat
is_commutable
35,656
LDU_FT/sentinelsat/sentinelsat/count
LDU_FT
[ "<BEGIN>\n## `cli`", "Search for Sentinel products and, optionally, download all the results\n and/or create a geojson file with the search result footprints.\n Beyond your Copernicus Open Access Hub user and password, you must pass a geojson file\n containing the geometry of the area you want to search ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
Get the number of products matching a query. Accepted parameters are identical to :meth:`SentinelAPI.query()`. This is a significantly more efficient alternative to doing `len(api.query())`, which can take minutes to run for queries matching thousands of products. Returns ----...
"Get the number of products matching a query.\n\n Accepted parameters are identical to :meth:`SentinelAPI.query()`.\n\n This is a significantly more efficient alternative to doing `len(api.query())`,\n which can take minutes to run for queries matching thousands of products.\n\n Returns\n ...
90
false
sentinelsat/sentinelsat
count
35,657
LDU_FT/ralphje/imagemounter/expand_path
LDU_FT
[ "<BEGIN>\n## `_get_mount_methods`", "Finds which mount methods are suitable for the specified disk type. Returns a list of all suitable mount\n methods.\n<END>", "<BEGIN>\n## `mount`", "Mounts the base image on a temporary location using the mount method stored in :attr:`method`. If mounting\n w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_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 extra...
Expand the given path to either an Encase image or a dd image i.e. if path is '/path/to/image.E01' then the result of this method will be /path/to/image.E*' and if path is '/path/to/image.001' then the result of this method will be '/path/to/image.[0-9][0-9]?'
"Expand the given path to either an Encase image or a dd image\n i.e. if path is '/path/to/image.E01' then the result of this method will be\n /path/to/image.E*'\n and if path is '/path/to/image.001' then the result of this method will be\n '/path/to/image.[0-9][0-9]?'"
225
false
ralphje/imagemounter
expand_path
35,658
LDU_FT/iskandr/knnimpute/knn_impute_with_argpartition
LDU_FT
[ "<BEGIN>\n## `knn_impute_few_observed`", "Seems to be the fastest kNN implementation. Pre-sorts each rows neighbors\n and then filters these sorted indices using each columns mask of\n observed values.", " Important detail: If k observed values are not available then uses fewer\n than k neighboring ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the knn_impute_with_argpartition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the knn_impute_with_argpartition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Fill in the given incomplete matrix using k-nearest neighbor imputation. This version is a simpler algorithm meant primarily for testing but surprisingly it's faster for many (but not all) dataset sizes, particularly when most of the columns are missing in any given row. The crucial bottleneck is the c...
"Fill in the given incomplete matrix using k-nearest neighbor imputation.\n\n This version is a simpler algorithm meant primarily for testing but\n surprisingly it's faster for many (but not all) dataset sizes, particularly\n when most of the columns are missing in any given row. The crucial\n bottleneck is...
35
false
iskandr/knnimpute
knn_impute_with_argpartition
35,659
LDU_FT/bitesofcode/projex/isConnected
LDU_FT
[ "<BEGIN>\n## `add`", "Adds the new key to this enumerated type.", " :param key | <str>\n<END>", "<BEGIN>\n## `all`", "Returns all the values joined together.", " :return <int>\n<END>", "<BEGIN>\n## `base`", "Returns the root base for the given value from this enumeration.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isConnected API. 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 isConnected API. 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...
Returns if the given signal is connected to the inputted slot. :param signal | <variant> slot | <callable> :return <bool> | is connected
"Returns if the given signal is connected to the inputted slot.\n \n :param signal | <variant>\n slot | <callable>\n \n :return <bool> | is connected"
676
false
bitesofcode/projex
isConnected
35,660
LDU_FT/tobgu/pyrsistent/rotate
LDU_FT
[ "<BEGIN>\n## `pdeque`", "Return deque containing the elements of iterable. If maxlen is specified then\n len(iterable) - maxlen elements are discarded from the left to if len(iterable) > maxlen.", " >>> pdeque([1, 2, 3])\n pdeque([1, 2, 3])\n >>> pdeque([1, 2, 3, 4], maxlen=2)\n pdeque([3, 4], ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rotate API. 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 rotate API. 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 deque with elements rotated steps steps. >>> x = pdeque([1, 2, 3]) >>> x.rotate(1) pdeque([3, 1, 2]) >>> x.rotate(-2) pdeque([3, 1, 2])
"Return deque with elements rotated steps steps.\n\n >>> x = pdeque([1, 2, 3])\n >>> x.rotate(1)\n pdeque([3, 1, 2])\n >>> x.rotate(-2)\n pdeque([3, 1, 2])"
130
false
tobgu/pyrsistent
rotate
35,661
LDU_FT/alefnula/tea/gremove
LDU_FT
[ "<BEGIN>\n## `smart_text`", "Return a unicode object representing 's'.\r", " Treats bytes using the 'encoding' codec.\r", " If strings_only is True, don't convert (some) non-string-like objects.\n<END>", "<BEGIN>\n## `smart_bytes`", "Return a bytes version of 's' encoded as specified in 'encoding'.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gremove API. 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 gremove API. 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...
Remove all file found by glob.glob(pattern). Args: pattern (str): Pattern of files to remove Returns: bool: True if the operation is successful, False otherwise.
"Remove all file found by glob.glob(pattern).\n\n Args:\n pattern (str): Pattern of files to remove\n Returns:\n bool: True if the operation is successful, False otherwise."
240
false
alefnula/tea
gremove
35,662
LDU_FT/diyan/pywinrm/_strip_namespace
LDU_FT
[ "<BEGIN>\n## `prepare_encrypted_request`", "Creates a prepared request to send to the server with an encrypted message\n and correct headers", " :param session: The handle of the session to prepare requests with\n :param endpoint: The endpoint/server to prepare requests to\n :param m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _strip_namespace API. 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 _strip_namespace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
strips any namespaces from an xml string
"strips any namespaces from an xml string"
20
false
diyan/pywinrm
_strip_namespace
35,663
LDU_FT/OzymandiasTheGreat/python-libinput/seat_button_count
LDU_FT
[ "<BEGIN>\n## `events`", "Yield events from the internal libinput's queue.", "\t\tYields device events that are subclasses of\n\t\t:class:`~libinput.event.Event`.", "\t\tYields:\n\t\t\t:class:`~libinput.event.Event`: Device event.\n<END>", "<BEGIN>\n## `next_event_type`", "Return the type of the next event...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seat_button_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seat_button_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...
The total number of buttons pressed on all devices on the associated seat after the the event was triggered. For events that are not of type :attr:`~libinput.constant.EventType.TABLET_TOOL_BUTTON`, this property raises :exc:`AttributeError`. Returns: int: The seat wide pressed button count for the key of...
"The total number of buttons pressed on all devices on\n\t\tthe associated seat after the the event was triggered.\n\n\t\tFor events that are not of type\n\t\t:attr:`~libinput.constant.EventType.TABLET_TOOL_BUTTON`, this property\n\t\traises :exc:`AttributeError`.\n\n\t\tReturns:\n\t\t\tint: The seat wide pressed butto...
320
false
OzymandiasTheGreat/python-libinput
seat_button_count
35,664
LDU_FT/YosaiProject/yosai/start
LDU_FT
[ "<BEGIN>\n## `on_successful_login`", "Reacts to the successful login attempt by first always\n forgetting any previously stored identity. Then if the authc_token\n is a ``RememberMe`` type of token, the associated identity\n will be remembered for later retrieval during a new user session.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. 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 start API. 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...
unlike shiro, yosai does not apply session timeouts from within the start method of the SessionManager but rather defers timeout settings responsibilities to the SimpleSession, which uses session_settings
"unlike shiro, yosai does not apply session timeouts from within the\n start method of the SessionManager but rather defers timeout settings\n responsibilities to the SimpleSession, which uses session_settings"
335
false
YosaiProject/yosai
start
35,665
LDU_FT/jantman/pypi-download-stats/set_log_level_format
LDU_FT
[ "<BEGIN>\n## `_path_for_file`", "Generate the path on disk for a specified project and date.", " :param project_name: the PyPI project name for the data\n :type project: str\n :param date: the date for the data\n :type date: datetime.datetime\n :return: path for where to store...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_log_level_format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_log_level_format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Set logger level and format. :param level: logging level; see the :py:mod:`logging` constants. :type level: int :param format: logging formatter format string :type format: str
"Set logger level and format.\n\n :param level: logging level; see the :py:mod:`logging` constants.\n :type level: int\n :param format: logging formatter format string\n :type format: str"
135
false
jantman/pypi-download-stats
set_log_level_format
35,666
LDU_FT/MartinThoma/mpu/get_creation_datetime
LDU_FT
[ "<BEGIN>\n## `timing`", "Measure the execution time of a function call and print the result.\n<END>", "<BEGIN>\n## `deprecated`", "Mark functions as deprecated.", " It will result in a warning being emitted when the function is used.\n<END>", "<BEGIN>\n## `get_currency`", "Convert an identifier for a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_creation_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_creation_datetime 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 date that a file was created. Parameters ---------- filepath : str Returns ------- creation_datetime : datetime.datetime or None
"Get the date that a file was created.\n\n Parameters\n ----------\n filepath : str\n\n Returns\n -------\n creation_datetime : datetime.datetime or None"
255
false
MartinThoma/mpu
get_creation_datetime
35,667
LDU_FT/maweigert/gputools/init_device
LDU_FT
[ "<BEGIN>\n## `gaussian_filter`", "blurs data with a gaussian kernel of given sigmas", " Parameters\n ----------\n data: ndarray\n 2 or 3 dimensional array \n sigma: scalar or tuple\n the sigma of the gaussian \n truncate: float \n truncate the kernel after truncate*sigma \n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_device API. 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 init_device API. 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...
same arguments as OCLDevice.__init__ e.g. id_platform = 0 id_device = 1 ....
"same arguments as OCLDevice.__init__\n e.g.\n id_platform = 0\n id_device = 1\n ...."
199
false
maweigert/gputools
init_device
35,668
LDU_FT/mouradmourafiq/pandas2sklearn/get_columns
LDU_FT
[ "<BEGIN>\n## `get_columns`", "Returns a `data_frame.columns`.\n :param usage (str): should be a value from [ALL, INCLUDE, EXCLUDE].\n this value only makes sense if attr `columns` is also set.\n otherwise, should be used with default value ALL.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_columns API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_columns API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a `data_frame.columns`. :param usage (str): should be a value from [ALL, INCLUDE, EXCLUDE]. this value only makes sense if attr `columns` is also set. otherwise, should be used with default value ALL. :param columns: * if `usage` is all, th...
"Returns a `data_frame.columns`.\n :param usage (str): should be a value from [ALL, INCLUDE, EXCLUDE].\n this value only makes sense if attr `columns` is also set.\n otherwise, should be used with default value ALL.\n :param columns: * if `usage` is al...
10
false
mouradmourafiq/pandas2sklearn
get_columns
35,669
LDU_FT/vtraag/leidenalg/diff_move
LDU_FT
[ "<BEGIN>\n## `find_partition`", "Detect communities using the default settings.", " This function detects communities given the specified method in the\n ``partition_type``. This should be type derived from\n :class:`VertexPartition.MutableVertexPartition`, e.g.\n :class:`ModularityVertexPartition` or :clas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diff_move API. 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 diff_move API. 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...
Calculate the difference in the quality function if node ``v`` is moved to community ``new_comm``. Parameters ---------- v The node to move. new_comm The community to move to. Returns ------- float Difference in quality function. Notes ----- The differen...
"Calculate the difference in the quality function if node ``v`` is\n moved to community ``new_comm``.\n\n Parameters\n ----------\n v\n The node to move.\n\n new_comm\n The community to move to.\n\n Returns\n -------\n float\n Difference in quality function.\n\n Notes\n ----...
202
false
vtraag/leidenalg
diff_move
35,670
LDU_FT/kkroening/ffmpeg-python/trim
LDU_FT
[ "<BEGIN>\n## `get_args`", "Build command-line arguments to be passed to ffmpeg.\n<END>", "<BEGIN>\n## `compile`", "Build command-line for invoking ffmpeg.", " The :meth:`run` function uses this to build the commnad line\n arguments and should work in most cases, but calling this function\n directly...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trim API. 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 trim API. 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...
Trim the input so that the output contains one continuous subpart of the input. Args: start: Specify the time of the start of the kept section, i.e. the frame with the timestamp start will be the first frame in the output. end: Specify the time of the first frame that will be dropped, i...
"Trim the input so that the output contains one continuous subpart of the input.\n\n Args:\n start: Specify the time of the start of the kept section, i.e. the frame with the timestamp start will be the\n first frame in the output.\n end: Specify the time of the first frame that will be drop...
149
false
kkroening/ffmpeg-python
trim
35,671
LDU_FT/okfn/ofs/put_stream
LDU_FT
[ "<BEGIN>\n## `revert`", "Revert the state to the version stored on disc.\n<END>", "<BEGIN>\n## `sync`", "Synchronise and update the stored state to the in-memory state.\n<END>", "<BEGIN>\n## `del_stream`", "Will fail if the bucket or label don't exist\n<END>", "<BEGIN>\n## `authenticate_request`", "Au...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_stream API. 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 put_stream API. 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...
Put a bitstream (stream_object) for the specified bucket:label identifier. :param bucket: as standard :param label: as standard :param stream_object: file-like object to read from or bytestring. :param params: update metadata with these params (see `update_metadata`)
"Put a bitstream (stream_object) for the specified bucket:label identifier.\n\n :param bucket: as standard\n :param label: as standard\n :param stream_object: file-like object to read from or bytestring.\n :param params: update metadata with these params (see `update_metadata`)"
53
false
okfn/ofs
put_stream
35,672