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/fishtown-analytics/dbt/get_relations
LDU_FT
[ "<BEGIN>\n## `patch`", "Given a ParsedNodePatch, add the new information to the node.\n<END>", "<BEGIN>\n## `build_edges`", "Build the forward and backward edges on the given list of ParsedNodes\n and return them as two separate dictionaries, each mapping unique IDs to\n lists of edges.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_relations API. 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_relations API. 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...
Case-insensitively yield all relations matching the given schema. :param str schema: The case-insensitive schema name to list from. :return List[BaseRelation]: The list of relations with the given schema
"Case-insensitively yield all relations matching the given schema.\n\n :param str schema: The case-insensitive schema name to list from.\n :return List[BaseRelation]: The list of relations with the given\n schema"
419
false
fishtown-analytics/dbt
get_relations
23,173
LDU_FT/GetmeUK/MongoFrames/cascade
LDU_FT
[ "<BEGIN>\n## `to_json_type`", "Return a dictionary for the document with values converted to JSON safe\n types.\n<END>", "<BEGIN>\n## `_path_to_value`", "Return a value from a dictionary at the given path\n<END>", "<BEGIN>\n## `_remove_keys`", "Remove a list of keys from a dictionary.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cascade API. 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 cascade API. 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...
Apply a cascading delete (does not emit signals)
"Apply a cascading delete (does not emit signals)"
121
false
GetmeUK/MongoFrames
cascade
23,174
LDU_FT/rhayes777/PyAutoFit/chi_squared_map_from_residual_map_noise_map_and_mask
LDU_FT
[ "<BEGIN>\n## `residual_map_from_data_mask_and_model_data`", "Compute the residual map between a masked observed data and model data, where:", " Residuals = (Data - Model_Data).", " Parameters\n -----------\n data : np.ndarray\n The observed data that is fitted.\n mask : np.ndarray\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chi_squared_map_from_residual_map_noise_map_and_mask API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chi_squared_map_from_residual_map_noise_map_and_mask API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <...
Computes the chi-squared map between a masked residual-map and noise-map, where: Chi_Squared = ((Residuals) / (Noise)) ** 2.0 = ((Data - Model)**2.0)/(Variances) Although noise-maps should not contain zero values, it is possible that masking leads to zeros which when \ divided by create NaNs. Thus, nan_to...
"Computes the chi-squared map between a masked residual-map and noise-map, where:\n\n Chi_Squared = ((Residuals) / (Noise)) ** 2.0 = ((Data - Model)**2.0)/(Variances)\n\n Although noise-maps should not contain zero values, it is possible that masking leads to zeros which when \\\n divided by create NaNs. Thus,...
243
false
rhayes777/PyAutoFit
chi_squared_map_from_residual_map_noise_map_and_mask
23,175
LDU_FT/abn/cafeteria/listify
LDU_FT
[ "<BEGIN>\n## `replace`", "Convenience method provided as a way to replace a value mapped by a\n key.This is required since a MergingDict always merges via assignment\n of item/attribute.", " :param key: Attribute name or item key to replace rvalue for.\n :type key: object\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listify API. 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 listify API. 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...
Simple utility method to ensure an argument provided is a list. If the provider argument is not an instance of `list`, then we return [arg], else arg is returned. :type arg: list :rtype: list
"Simple utility method to ensure an argument provided is a list. If the\n provider argument is not an instance of `list`, then we return [arg], else\n arg is returned.\n\n :type arg: list\n :rtype: list"
26
false
abn/cafeteria
listify
23,176
LDU_FT/NikolayDachev/jadm/_pkcs1imify
LDU_FT
[ "<BEGIN>\n## `recv`", "Read from the standard output of the forked program.", " :param int size: how many chars should be read", " :return: the length of the read content, as an `int`\n<END>", "<BEGIN>\n## `generate`", "Generate a new private DSS key. This factory function can be used to\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pkcs1imify API. 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 _pkcs1imify API. 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...
turn a 20-byte SHA1 hash into a blob of data as large as the key's N, using PKCS1's \"emsa-pkcs1-v1_5\" encoding. totally bizarre.
"turn a 20-byte SHA1 hash into a blob of data as large as the key's N,\n using PKCS1's \\\"emsa-pkcs1-v1_5\\\" encoding. totally bizarre."
141
false
NikolayDachev/jadm
_pkcs1imify
23,177
LDU_FT/python-odin/odinweb/sort_by_priority
LDU_FT
[ "<BEGIN>\n## `action`", "Decorator to apply an action to a resource. An action is applied to a `detail` operation.\n<END>", "<BEGIN>\n## `listing`", "Decorator to configure an operation that returns a list of resources.\n<END>", "<BEGIN>\n## `create`", "Decorator to configure an operation that creates a r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_by_priority API. 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 sort_by_priority API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return a list or objects sorted by a priority value.
"Return a list or objects sorted by a priority value."
139
false
python-odin/odinweb
sort_by_priority
23,178
LDU_FT/adafruit/Adafruit_CircuitPython_BME280/_write_config
LDU_FT
[ "<BEGIN>\n## `_write_ctrl_meas`", "Write the values to the ctrl_meas and ctrl_hum registers in the device\n ctrl_meas sets the pressure and temperature data acquistion options\n ctrl_hum sets the humidty oversampling and must be written to first\n<END>", "<BEGIN>\n## `_write_config`", "Write the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Write the value to the config register in the device
"Write the value to the config register in the device"
20
false
adafruit/Adafruit_CircuitPython_BME280
_write_config
23,179
LDU_FT/saltstack/pytest-salt/git_versions_from_keywords
LDU_FT
[ "<BEGIN>\n## `git_versions_from_keywords`", "Get version information from git keywords.\n<END>", "<BEGIN>\n## `render_pep440_branch_based`", "Build up version string, with post-release \"local version identifier\".", " Our goal: TAG[+DISTANCE.BRANCH_gHEX[.dirty]] . Note that if you\n get a tagged buil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the git_versions_from_keywords API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the git_versions_from_keywords API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Get version information from git keywords.
"Get version information from git keywords."
14
false
saltstack/pytest-salt
git_versions_from_keywords
23,180
LDU_FT/aksas/pypo4sel/find_element
LDU_FT
[ "<BEGIN>\n## `wait`", "Wait ``timeout`` seconds until ``method(**kwargs)`` returns a ``value`` that *bool(value)==True*.\n Returns last ``value``.\n If time expired and ``fail_on_timeout`` specified, then raise TimeoutException.", " :param method:\n :param timeout:\n :param fail_on_timeout:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_element API. 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 find_element API. 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...
usages with ``'one string'`` selector: - find_element(by: str) -> PageElement - find_element(by: str, value: T <= PageElement) -> T usages with ``'webdriver'`` By selector - find_element(by: str, value: str) -> PageElement - find_element(by: str, value: str, el_class: T <= P...
"usages with ``'one string'`` selector:\n - find_element(by: str) -> PageElement\n - find_element(by: str, value: T <= PageElement) -> T\n\n usages with ``'webdriver'`` By selector\n - find_element(by: str, value: str) -> PageElement\n - find_element(by: str, value: str, el_class:...
42
false
aksas/pypo4sel
find_element
23,181
LDU_FT/chaosmail/python-fs/listdirs
LDU_FT
[ "<BEGIN>\n## `touch`", "Unix equivalent *touch*\n @src: http://stackoverflow.com/a/1158096\n<END>", "<BEGIN>\n## `list`", "generator that returns all files of *path*\n<END>", "<BEGIN>\n## `listdirs`", "generator that returns all directories of *path*\n<END>", "<BEGIN>\n## `find`", "Find files that ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listdirs API. 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 listdirs API. 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...
generator that returns all directories of *path*
"generator that returns all directories of *path*"
12
false
chaosmail/python-fs
listdirs
23,182
LDU_FT/dswah/pyGAM/_estimate_AIC
LDU_FT
[ "<BEGIN>\n## `validate_callback_data`", "wraps a callback's method to pull the desired arguments from the vars dict\n also checks to ensure the method's arguments are in the vars dict", " Parameters\n ----------\n method : callable", " Returns\n -------\n validated callable\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _estimate_AIC API. 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 _estimate_AIC API. 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...
estimate the Akaike Information Criterion Parameters ---------- y : array-like of shape (n_samples,) output data vector mu : array-like of shape (n_samples,), expected value of the targets given the model and inputs weights : array-like shape (n_samples,)...
"estimate the Akaike Information Criterion\n\n Parameters\n ----------\n y : array-like of shape (n_samples,)\n output data vector\n mu : array-like of shape (n_samples,),\n expected value of the targets given the model and inputs\n weights : array-like shape (n_...
770
false
dswah/pyGAM
_estimate_AIC
23,183
LDU_FT/rmed/dev-init/start_env
LDU_FT
[ "<BEGIN>\n## `new_env`", "Create a new environment in the configuration and ask the\n user for the commands for this specific environment.\n<END>", "<BEGIN>\n## `remove_env`", "Remove an environment from the configuration.\n<END>", "<BEGIN>\n## `show_env`", "Show the commands for a given environmen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_env API. 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 start_env API. 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...
Initialize a new environment in specified directory. If path does not exist, will try to create the directory structure recursively. If the path is not provided, will use current working directory.
"Initialize a new environment in specified directory.\n\n If path does not exist, will try to create the directory structure\n recursively.\n\n If the path is not provided, will use current working directory."
13
false
rmed/dev-init
start_env
23,184
LDU_FT/uw-it-aca/uw-restclients/get_verba_link_for_schedule
LDU_FT
[ "<BEGIN>\n## `new_regid_custom_field`", "Return a BridgeCustomField object for REGID\n to be used in a POST, PATCH request\n<END>", "<BEGIN>\n## `get_reservations`", "Return a list of reservations matching the passed filter.\n Supported kwargs are listed at\n http://knowledge25.collegenet.com/display...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_verba_link_for_schedule 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 get_verba_link_for_schedule API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Returns a link to verba. The link varies by campus and schedule. Multiple calls to this with the same schedule may result in different urls.
"Returns a link to verba. The link varies by campus and schedule.\n Multiple calls to this with the same schedule may result in\n different urls."
129
false
uw-it-aca/uw-restclients
get_verba_link_for_schedule
23,185
LDU_FT/awacha/sastool/findbeam_azimuthal_fold
LDU_FT
[ "<BEGIN>\n## `readB1logfile`", "Read B1 logfile (*.log)", " Inputs:\n filename: the file name", " Output: A dictionary.\n<END>", "<BEGIN>\n## `writeB1logfile`", "Write a header structure into a B1 logfile.", " Inputs:\n filename: name of the file.\n data: header dictionary"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the findbeam_azimuthal_fold 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 findbeam_azimuthal_fold API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Find beam center using azimuthal integration and folding Inputs: data: scattering matrix orig_initial: estimated value for x (row) and y (column) coordinates of the beam center, starting from 1. mask: mask matrix. If None, nothing will be masked. Otherwise it should ...
"Find beam center using azimuthal integration and folding\n\n Inputs:\n data: scattering matrix\n orig_initial: estimated value for x (row) and y (column)\n coordinates of the beam center, starting from 1.\n mask: mask matrix. If None, nothing will be masked. Otherwise it\n ...
426
false
awacha/sastool
findbeam_azimuthal_fold
23,186
LDU_FT/cltk/cltk/set_void_declension
LDU_FT
[ "<BEGIN>\n## `transcribe`", "Accepts a word and returns a string of an approximate pronounciation (IPA)\n<END>", "<BEGIN>\n## `syllabify`", "Syllabifier module for Middle High German", " The algorithm works by applying the MOP(Maximal Onset Principle)\n on open syllables. For closed syllables,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_void_declension 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 set_void_declension 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...
>>> decl = DeclinableOneGender("armr", Gender.masculine) >>> decl.declension [] >>> decl.set_void_declension(Number, Case) >>> decl.declension [['', '', '', ''], ['', '', '', '']] :param number_type: :param case_type: :return:
">>> decl = DeclinableOneGender(\"armr\", Gender.masculine)\n >>> decl.declension\n []\n >>> decl.set_void_declension(Number, Case)\n >>> decl.declension\n [['', '', '', ''], ['', '', '', '']]\n\n :param number_type:\n :param case_type:\n :return:"
1,301
true
cltk/cltk
set_void_declension
23,187
LDU_FT/juanifioren/django-oidc-provider/extract_client_auth
LDU_FT
[ "<BEGIN>\n## `userinfo`", "Create a dictionary with all the requested claims about the End-User.\n See: http://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse", " Return a dictionary.\n<END>", "<BEGIN>\n## `create_response_dic`", "Generate the dic that will be jsonify. Checking scopes g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_client_auth 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 extract_client_auth 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...
Get client credentials using HTTP Basic Authentication method. Or try getting parameters via POST. See: http://tools.ietf.org/html/rfc6750#section-2.1 Return a tuple `(client_id, client_secret)`.
"Get client credentials using HTTP Basic Authentication method.\n Or try getting parameters via POST.\n See: http://tools.ietf.org/html/rfc6750#section-2.1\n\n Return a tuple `(client_id, client_secret)`."
60
false
juanifioren/django-oidc-provider
extract_client_auth
23,188
LDU_FT/shaypal5/pdutil/or_by_masks
LDU_FT
[ "<BEGIN>\n## `df_string`", "Return a nicely formatted string for the given dataframe.", " Arguments\n ---------\n df : pandas.DataFrame\n A dataframe object.\n percentage_columns : iterable\n A list of cloumn names to be displayed with a percentage sign.", " Returns\n -------\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the or_by_masks API. 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 or_by_masks API. 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 sub-dataframe by the logical or over the given masks. Parameters ---------- df : pandas.DataFrame The dataframe to take a subframe of. masks : list A list of pandas.Series of dtype bool, indexed identically to the given dataframe. Returns ------- pandas.Da...
"Returns a sub-dataframe by the logical or over the given masks.\n\n Parameters\n ----------\n df : pandas.DataFrame\n The dataframe to take a subframe of.\n masks : list\n A list of pandas.Series of dtype bool, indexed identically to the given\n dataframe.\n\n Returns\n -------\n...
37
false
shaypal5/pdutil
or_by_masks
23,189
LDU_FT/i3visio/osrframework/main
LDU_FT
[ "<BEGIN>\n## `getResults`", "Function to obtain the Dictionarythat represents this object.", " :param parFound: values to return.", " :return: The output format will be like:\n [{\"type\" : \"i3visio.email\", \"value\": \"foo@bar.com\", \"attributes\": [] }, {\"type\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Main function to launch usufy. The function is created in this way so as to let other applications make use of the full configuration capabilities of the application. The parameters received are used as parsed by this modules `getParser()`. Args: ----- params: A list with the parameters as...
"Main function to launch usufy.\n\n The function is created in this way so as to let other applications make\n use of the full configuration capabilities of the application. The\n parameters received are used as parsed by this modules `getParser()`.\n\n Args:\n -----\n params: A list with the para...
598
false
i3visio/osrframework
main
23,190
LDU_FT/canonical-ols/acceptable/django_api
LDU_FT
[ "<BEGIN>\n## `metadata_lint`", "Run the linter over the new metadata, comparing to the old.\n<END>", "<BEGIN>\n## `bind`", "Bind the service API urls to a flask app.\n<END>", "<BEGIN>\n## `serialize`", "Serialize into JSONable dict, and associated locations data.\n<END>", "<BEGIN>\n## `api`", "Add an ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the django_api API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the django_api API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Add a django API handler to the service. :param name: This is the name of the django url to use. The 'methods' paramater can be supplied as normal, you can also user the @api.handler decorator to link this API to its handler.
"Add a django API handler to the service.\n\n :param name: This is the name of the django url to use.\n\n The 'methods' paramater can be supplied as normal, you can also user\n the @api.handler decorator to link this API to its handler."
61
false
canonical-ols/acceptable
django_api
23,191
LDU_FT/facelessuser/wcmatch/update_dir_state
LDU_FT
[ "<BEGIN>\n## `_compile_wildcard`", "Compile or format the wildcard inclusion/exclusion pattern.\n<END>", "<BEGIN>\n## `_valid_folder`", "Return whether a folder can be searched.\n<END>", "<BEGIN>\n## `get_case`", "Parse flags for case sensitivity settings.\n<END>", "<BEGIN>\n## `_fs_match`", "Match pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_dir_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_dir_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Update the directory state. If we are at the directory start, update to after start state (the character right after). If at after start, reset state.
"Update the directory state.\n\n If we are at the directory start,\n update to after start state (the character right after).\n If at after start, reset state."
44
false
facelessuser/wcmatch
update_dir_state
23,192
LDU_FT/Aluriak/tergraw/process_input_graph
LDU_FT
[ "<BEGIN>\n## `clean`", "Return a copy of given matrix where keys associated\n to space values are discarded\n<END>", "<BEGIN>\n## `next_unwrittable_on_row`", "Return position of the next (in row) letter that is unwrittable\n<END>", "<BEGIN>\n## `next_unwrittable_on_col`", "Return position of the next l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_input_graph 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 process_input_graph 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...
Decorator, ensuring first argument is a networkx graph object. If the first arg is a dict {node: succs}, a networkx graph equivalent to the dict will be send in place of it.
"Decorator, ensuring first argument is a networkx graph object.\n If the first arg is a dict {node: succs}, a networkx graph equivalent\n to the dict will be send in place of it."
16
false
Aluriak/tergraw
process_input_graph
23,193
LDU_FT/srittau/python-asserts/assert_less_equal
LDU_FT
[ "<BEGIN>\n## `assert_true`", "Fail the test unless the expression is truthy.", " >>> assert_true(\"Hello World!\")\n >>> assert_true(\"\")\n Traceback (most recent call last):\n ...\n AssertionError: '' is not truthy", " The following msg_fmt arguments are supported:\n * msg - the def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_less_equal API. 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 assert_less_equal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Fail if first is not less than or equal to second. >>> assert_less_equal('bar', 'foo') >>> assert_less_equal(5, 5) >>> assert_less_equal(6, 5) Traceback (most recent call last): ... AssertionError: 6 is not less than or equal to 5 The following msg_fmt arguments are supported: * ms...
"Fail if first is not less than or equal to second.\n\n >>> assert_less_equal('bar', 'foo')\n >>> assert_less_equal(5, 5)\n >>> assert_less_equal(6, 5)\n Traceback (most recent call last):\n ...\n AssertionError: 6 is not less than or equal to 5\n\n The following msg_fmt arguments are supported...
131
false
srittau/python-asserts
assert_less_equal
23,194
LDU_FT/toumorokoshi/sprinter/get_context_dict
LDU_FT
[ "<BEGIN>\n## `whitespace_smart_split`", "Split a command by whitespace, taking care to not split on\n whitespace within quotes.", " >>> whitespace_smart_split(\"test this \\\\\\\"in here\\\\\\\" again\")\n ['test', 'this', '\"in here\"', 'again']\n<END>", "<BEGIN>\n## `sync`", "execute the steps re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
return a context dict of the desired state
"return a context dict of the desired state"
150
false
toumorokoshi/sprinter
get_context_dict
23,195
LDU_FT/njharman/die/do_run
LDU_FT
[ "<BEGIN>\n## `do_sum`", "Set self.sum, self.avr and return sum of dice rolled, count times.\n :param count: Number of rolls to make\n :return: Total sum of all rolls\n<END>", "<BEGIN>\n## `do_bucket`", "Set self.bucket and return results.\n :param count: Number of rolls to make\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_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 ...
Roll count dice, store results. Does all stats so might be slower than specific doFoo methods. But, it is proly faster than running each of those seperately to get same stats. Sets the following properties: - stats.bucket - stats.sum - stats.avr :param cou...
"Roll count dice, store results. Does all stats so might be slower\n than specific doFoo methods. But, it is proly faster than running\n each of those seperately to get same stats.\n\n Sets the following properties:\n - stats.bucket\n - stats.sum\n - stats.avr\n\n ...
28
false
njharman/die
do_run
23,196
LDU_FT/vimalloc/flask-jwt-extended/_set_default_configuration_options
LDU_FT
[ "<BEGIN>\n## `decode_token`", "Returns the decoded token (python dict) from an encoded JWT. This does all\n the checks to insure that the decoded token is valid before returning it.", " :param encoded_token: The encoded JWT to decode into a python dict.\n :param csrf_value: Expected CSRF double submit ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_default_configuration_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_default_configuration_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Sets the default configuration options used by this extension
"Sets the default configuration options used by this extension"
71
false
vimalloc/flask-jwt-extended
_set_default_configuration_options
23,197
LDU_FT/orbeckst/RecSQL/limits
LDU_FT
[ "<BEGIN>\n## `make_python_name`", "Returns a unicode string that can be used as a legal python identifier.", " :Arguments:\n *s*\n string\n *default*\n use *default* if *s* is ``None``\n *number_prefix*\n string to prepend if *s* starts with a number\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the limits API. 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 limits API. 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 minimum and maximum of variable across all rows of data.
"Return minimum and maximum of variable across all rows of data."
96
false
orbeckst/RecSQL
limits
23,198
LDU_FT/uber/doubles/is_class_or_module
LDU_FT
[ "<BEGIN>\n## `set_value`", "Set the value of the target.", " :param obj value: The value to set.\n<END>", "<BEGIN>\n## `patch_class`", "Create a new class based on the input_class.", " :param class input_class: The class to patch.\n :rtype class:\n<END>", "<BEGIN>\n## `clear`", "Clears a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_class_or_module 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 is_class_or_module 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...
Determines if the object is a class or a module :return: True if the object is a class or a module, False otherwise. :rtype: bool
"Determines if the object is a class or a module\n\n :return: True if the object is a class or a module, False otherwise.\n :rtype: bool"
171
false
uber/doubles
is_class_or_module
23,199
LDU_FT/pyparsing/pyparsing/same_types
LDU_FT
[ "<BEGIN>\n## `parse`", "Accepts an input string containing an LA equation, e.g.,\r\n \"M3_mymatrix = M3_anothermatrix^-1\" returns C code function\r\n calls that implement the expression.\n<END>", "<BEGIN>\n## `fprocess`", "Scans an input file for LA equations between double square brackets,\r\n e.g. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the same_types API. 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 same_types API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns True if both symbol table elements are of the same type
"Returns True if both symbol table elements are of the same type"
132
false
pyparsing/pyparsing
same_types
23,200
LDU_FT/rbit/pydtls/shutdown
LDU_FT
[ "<BEGIN>\n## `decode_cert`", "Convert an X509 certificate into a Python dictionary", " This function converts the given X509 certificate into a Python dictionary\n in the manner established by the Python standard library's ssl module.\n<END>", "<BEGIN>\n## `_get_server_certificate`", "Retrieve a serve...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shutdown API. 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 shutdown API. 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...
Shut down the DTLS connection This method attemps to complete a bidirectional shutdown between peers. For non-blocking sockets, it should be called repeatedly until it no longer raises continuation request exceptions.
"Shut down the DTLS connection\n\n This method attemps to complete a bidirectional shutdown between\n peers. For non-blocking sockets, it should be called repeatedly until\n it no longer raises continuation request exceptions."
83
false
rbit/pydtls
shutdown
23,201
LDU_FT/zyga/python-glibc/read
LDU_FT
[ "<BEGIN>\n## `_get_fd`", "Get a descriptor out of a file object.", " :param fileobj:\n An integer (existing descriptor) or any object having the `fileno()`\n method.\n :raises ValueError:\n if the descriptor cannot be obtained or if the descriptor is invalid\n :returns:\n fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. 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 read API. 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...
Read information about currently pending signals. :param maxsignals: Maximum number of signals to read. By default this is the same as the number of signals registered with this signalfd. :returns: A list of signalfd_siginfo object with information about most ...
"Read information about currently pending signals.\n\n :param maxsignals:\n Maximum number of signals to read. By default this is the same\n as the number of signals registered with this signalfd.\n :returns:\n A list of signalfd_siginfo object with information about most\...
106
false
zyga/python-glibc
read
23,202
LDU_FT/rackerlabs/silverberg/ensure_schema
LDU_FT
[ "<BEGIN>\n## `describe_version`", "Query the Cassandra server for the version.", " :returns: string -- the version tag\n<END>", "<BEGIN>\n## `execute`", "Execute a CQL query against the server.", " :param query: The CQL query to execute\n :type query: str.", " :param args: Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_schema API. 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 ensure_schema API. 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 table/columnfamily if it doesn't already exist. :param client: A Cassandra CQL client :type client: silverberg.client.CQLClient :param lock_table: A table/columnfamily table name for holding locks. :type lock_table: str
"Create the table/columnfamily if it doesn't already exist.\n\n :param client: A Cassandra CQL client\n :type client: silverberg.client.CQLClient\n\n :param lock_table: A table/columnfamily table name for holding locks.\n :type lock_table: str"
48
false
rackerlabs/silverberg
ensure_schema
23,203
LDU_FT/ubccr/pinky/set_symbol
LDU_FT
[ "<BEGIN>\n## `draw`", "(molecule)->canonical representation of a molecule\n Well, it's only canonical if the atom symorders are\n canonical, otherwise it's arbitrary.", " atoms must have a symorder attribute\n bonds must have a equiv_class attribute\n<END>", "<BEGIN>\n## `getPyroleLikeAtoms`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_symbol API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_symbol API. 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...
(symbol, bondorder) -> set the bondsymbol of the molecule
"(symbol, bondorder) -> set the bondsymbol\n of the molecule"
63
false
ubccr/pinky
set_symbol
23,204
LDU_FT/jwhitlock/drf-cached-instances/update_instance
LDU_FT
[ "<BEGIN>\n## `user_default_serializer`", "Convert a User to a cached instance representation.\n<END>", "<BEGIN>\n## `user_default_add_related_pks`", "Add related primary keys to a User instance.\n<END>", "<BEGIN>\n## `group_default_invalidator`", "Invalidated cached items when the Group changes.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Create or update a cached instance. Keyword arguments are: model_name - The name of the model pk - The primary key of the instance instance - The Django model instance, or None to load it versions - Version to update, or None for all update_only - If False (default), the...
"Create or update a cached instance.\n\n Keyword arguments are:\n model_name - The name of the model\n pk - The primary key of the instance\n instance - The Django model instance, or None to load it\n versions - Version to update, or None for all\n update_only - If False (defau...
75
false
jwhitlock/drf-cached-instances
update_instance
23,205
LDU_FT/biosustain/optlang/convert_linear_problem_to_dual
LDU_FT
[ "<BEGIN>\n## `_constraint_lb_and_ub_to_gurobi_sense_rhs_and_range_value`", "Helper function used by Constraint and Model\n<END>", "<BEGIN>\n## `_evolve_kwargs`", "Filter None keyword arguments. Intended to be passed on to algorithm.evolve(...)\n<END>", "<BEGIN>\n## `parse_optimization_expression`", "Funct...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_linear_problem_to_dual API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_linear_problem_to_dual API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
A mathematical optimization problem can be viewed as a primal and a dual problem. If the primal problem is a minimization problem the dual is a maximization problem, and the optimal value of the dual is a lower bound of the optimal value of the primal. For linear problems, strong duality holds, which means ...
"A mathematical optimization problem can be viewed as a primal and a dual problem. If the primal problem is\n a minimization problem the dual is a maximization problem, and the optimal value of the dual is a lower bound of\n the optimal value of the primal.\n For linear problems, strong duality holds, which me...
106
false
biosustain/optlang
convert_linear_problem_to_dual
23,206
LDU_FT/quodlibet/mutagen/delete
LDU_FT
[ "<BEGIN>\n## `_parse_sv8_int`", "Reads (max limit) bytes from fileobj until the MSB is zero.\n All 7 LSB will be merged to a big endian uint.", " Raises ValueError in case not MSB is zero, or EOFError in\n case the file ended before limit is reached.", " Returns (parsed number, number of bytes rea...
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(filething=None, delete_v1=True, delete_v2=True) Remove tags from a file. Args: filething (filething): A filename or `None` to use the one used when loading. delete_v1 (bool): delete any ID3v1 tag delete_v2 (bool): delete any ID3v2 tag ...
"delete(filething=None, delete_v1=True, delete_v2=True)\n\n Remove tags from a file.\n\n Args:\n filething (filething): A filename or `None` to use the one used\n when loading.\n delete_v1 (bool): delete any ID3v1 tag\n delete_v2 (bool): delete any ID3v2 tag...
518
false
quodlibet/mutagen
delete
23,207
LDU_FT/Unidata/siphon/fetch_feature_type
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 fetch_feature_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_feature_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. Th...
Request the featureType from the endpoint.
"Request the featureType from the endpoint."
309
false
Unidata/siphon
fetch_feature_type
23,208
LDU_FT/remind101/stacker_blueprints/logstream_policy
LDU_FT
[ "<BEGIN>\n## `create_sqs_policy`", "This method creates the SQS policy needed for an SNS subscription. It\n also takes the ARN of the SQS queue and converts it to the URL needed\n for the subscription, as that takes a URL rather than the ARN.\n<END>", "<BEGIN>\n## `create_topic`", "Creates the S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logstream_policy API. 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 logstream_policy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Policy needed for logspout -> kinesis log streaming.
"Policy needed for logspout -> kinesis log streaming."
53
false
remind101/stacker_blueprints
logstream_policy
23,209
LDU_FT/kiliankoe/dvbpy/poi_coords
LDU_FT
[ "<BEGIN>\n## `monitor`", "VVO Online Monitor\n (GET http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do)", " :param stop: Name of Stop\n :param offset: Minimum time of arrival\n :param limit: Count of returned results\n :param city: Name of City\n :param raw: Return raw response\n :re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the poi_coords API. 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 poi_coords API. 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...
DVB Map Coordinates (GET https://www.dvb.de/apps/map/coordinates) :param poi_id: Id of poi :param raw: Return raw response :return: Coordinates of poi
"DVB Map Coordinates\n (GET https://www.dvb.de/apps/map/coordinates)\n\n :param poi_id: Id of poi\n :param raw: Return raw response\n :return: Coordinates of poi"
18
false
kiliankoe/dvbpy
poi_coords
23,210
LDU_FT/rfarley3/Kibana/del_object
LDU_FT
[ "<BEGIN>\n## `post_field_cache`", "Where field_cache is a list of fields' mappings\n<END>", "<BEGIN>\n## `check_mapping`", "Assert minimum set of fields in cache, does not validate contents\n<END>", "<BEGIN>\n## `get_index_mappings`", "Converts all index's doc_types to .kibana\n<END>", "<BEGIN>\n## `get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the del_object API. 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 del_object API. 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...
Debug deletes obj of obj[_type] with id of obj['_id']
"Debug deletes obj of obj[_type] with id of obj['_id']"
27
false
rfarley3/Kibana
del_object
23,211
LDU_FT/videntity/django-djmongo/simple_ensure_index
LDU_FT
[ "<BEGIN>\n## `httpauth_login_required`", "Put this decorator before your view to check if the user is logged in\n via httpauth and return a JSON 401 error if he/she is not.\n<END>", "<BEGIN>\n## `ip_verification_required`", "Put this decorator before your view to check if the function is coming from an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simple_ensure_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simple_ensure_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Ensure a MongoDB index on a particular field name
"Ensure a MongoDB index on a particular field name"
24
false
videntity/django-djmongo
simple_ensure_index
23,212
LDU_FT/danpoland/pyramid-restful-framework/count
LDU_FT
[ "<BEGIN>\n## `parse_requested_expands`", "Extracts the value of the expand query string parameter from a request.\n Supports comma separated lists.", " :param query_key: The name query string parameter.\n :param request: Request instance.\n :return: List of strings representing the values of the exp...
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...
Returns the total number of objects, across all pages.
"Returns the total number of objects, across all pages."
70
false
danpoland/pyramid-restful-framework
count
23,213
LDU_FT/kappius/pyheaderfile/_open
LDU_FT
[ "<BEGIN>\n## `guess_type`", "Utility function to call classes based on filename extension.\n Just usefull if you are reading the file and don't know file extension.\n You can pass kwargs and these args are passed to class only if they are\n used in class.\n<END>", "<BEGIN>\n## `write`", ":param args:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Open the file; get sheets :return:
"Open the file; get sheets\n :return:"
18
false
kappius/pyheaderfile
_open
23,214
LDU_FT/MacHu-GWU/sqlalchemy_mate-project/keys
LDU_FT
[ "<BEGIN>\n## `count_row`", "Return number of rows in a table.", " Example::", " >>> count_row(engine, table_user)\n 3", " **中文文档**", " 返回一个表中的行数。\n<END>", "<BEGIN>\n## `keys`", "return list of all declared columns.", " :rtype: List[str]\n<END>", "<BEGIN>\n## `glance`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keys API. 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 keys API. 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...
return list of all declared columns. :rtype: List[str]
"return list of all declared columns.\n\n :rtype: List[str]"
92
false
MacHu-GWU/sqlalchemy_mate-project
keys
23,215
LDU_FT/ckoepp/TwitterSearch/get_amount_of_tweets
LDU_FT
[ "<BEGIN>\n## `set_source_filter`", "Only search for tweets entered via given source", " :param source: String. Name of the source to search for. An example \\\n would be ``source=twitterfeed`` for tweets submitted via TwitterFeed\n :raises: TwitterSearchException\n<END>", "<BEGIN>\n## `ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_amount_of_tweets 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_amount_of_tweets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns current amount of tweets available within this instance :returns: The amount of tweets currently available :raises: TwitterSearchException
"Returns current amount of tweets available within this instance\n\n :returns: The amount of tweets currently available\n :raises: TwitterSearchException"
91
false
ckoepp/TwitterSearch
get_amount_of_tweets
23,216
LDU_FT/quantmind/pulsar/chain_future
LDU_FT
[ "<BEGIN>\n## `slugify`", "Normalizes string, removes non-alpha characters,\n and converts spaces to ``separator`` character\n<END>", "<BEGIN>\n## `multi_bulk`", "Multi bulk encoding for list/tuple ``args``\n<END>", "<BEGIN>\n## `is_mainthread`", "Check if thread is the main thread.", " If ``thread...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chain_future API. 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 chain_future API. 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...
Chain a :class:`~asyncio.Future` to an existing ``future``. This function `chain` the ``next`` future to an existing ``future``. When the input ``future`` receive a result the optional ``callback`` is executed and its result set as the results of ``next``. If an exception occurs the optional ``errback`...
"Chain a :class:`~asyncio.Future` to an existing ``future``.\n\n This function `chain` the ``next`` future to an existing ``future``.\n When the input ``future`` receive a result the optional\n ``callback`` is executed and its result set as the results of ``next``.\n If an exception occurs the optional ``er...
643
false
quantmind/pulsar
chain_future
23,217
LDU_FT/banesullivan/gendocs/GetFunctionText
LDU_FT
[ "<BEGIN>\n## `GetModuleText`", "Returns the needed text to automatically document a module in RSF/sphinx\n<END>", "<BEGIN>\n## `GetClassText`", "Returns the needed text to automatically document a class in RSF/sphinx\n<END>", "<BEGIN>\n## `GetFunctionText`", "Returns the needed text to automatically docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetFunctionText API. 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 GetFunctionText API. 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...
Returns the needed text to automatically document a function in RSF/sphinx
"Returns the needed text to automatically document a function in RSF/sphinx"
27
false
banesullivan/gendocs
GetFunctionText
23,218
LDU_FT/Jarn/jarn.mkrelease/decode
LDU_FT
[ "<BEGIN>\n## `walk_revctrl`", "Return files found by the file-finder 'ff'.\n<END>", "<BEGIN>\n## `cleanup_pycache`", "Remove .pyc files we leave around because of import.\n<END>", "<BEGIN>\n## `run`", "Run setup.py with monkey patches applied.\n<END>", "<BEGIN>\n## `getinputencoding`", "Return preferr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode API. 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 decode API. 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 ...
Decode from specified encoding. ``encoding`` defaults to the preferred encoding. ``errors`` defaults to the preferred error handler.
"Decode from specified encoding.\n\n ``encoding`` defaults to the preferred encoding.\n ``errors`` defaults to the preferred error handler."
46
false
Jarn/jarn.mkrelease
decode
23,219
LDU_FT/CZ-NIC/python-rt/edit_link
LDU_FT
[ "<BEGIN>\n## `__request`", "General request for :term:`API`.", " :keyword selector: End part of URL which completes self.url parameter\n set during class initialization.\n E.g.: ``ticket/123456/show``\n :keyword post_data: Dictionary with POST me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_link API. 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 edit_link API. 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...
Creates or deletes a link between the specified tickets (undocumented API feature). :param ticket_id: ID of ticket to edit :param link_name: Name of link to edit (DependsOn, DependedOnBy, RefersTo, ReferredToBy, HasMember or MemberOf) :param link_value: Either ticker I...
"Creates or deletes a link between the specified tickets (undocumented API feature).\n\n :param ticket_id: ID of ticket to edit\n :param link_name: Name of link to edit (DependsOn, DependedOnBy,\n RefersTo, ReferredToBy, HasMember or MemberOf)\n :param link_value: Either ti...
143
false
CZ-NIC/python-rt
edit_link
23,220
LDU_FT/stefankoegl/kdtree/search_nn_dist
LDU_FT
[ "<BEGIN>\n## `require_axis`", "Check if the object of the function has axis and sel_axis members\n<END>", "<BEGIN>\n## `create`", "Creates a kd-tree from a list of points", " All points in the list must be of the same dimensionality.", " If no point_list is given, an empty tree is created. The numbe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_nn_dist API. 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 search_nn_dist API. 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...
Search the n nearest nodes of the given point which are within given distance point must be a location, not a node. A list containing the n nearest nodes to the point within the distance will be returned.
"Search the n nearest nodes of the given point which are within given\n distance\n\n point must be a location, not a node. A list containing the n nearest\n nodes to the point within the distance will be returned."
72
false
stefankoegl/kdtree
search_nn_dist
23,221
LDU_FT/elastic/apm-agent-python/sanitize_http_request_cookies
LDU_FT
[ "<BEGIN>\n## `extract_signature`", "Extracts a minimal signature from a given SQL query\n :param sql: the SQL statement\n :return: a string representing the signature\n<END>", "<BEGIN>\n## `_timed_queue_join`", "implementation of Queue.join which takes a 'timeout' argument", " returns True on s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sanitize_http_request_cookies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sanitize_http_request_cookies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Sanitizes http request cookies :param client: an ElasticAPM client :param event: a transaction or error event :return: The modified event
"Sanitizes http request cookies\n\n :param client: an ElasticAPM client\n :param event: a transaction or error event\n :return: The modified event"
163
false
elastic/apm-agent-python
sanitize_http_request_cookies
23,222
LDU_FT/developmentseed/landsat-util/year
LDU_FT
[ "<BEGIN>\n## `_read_cmap`", "reads the colormap from a text file given in settings.py.\n See colormap_cubehelix.txt. File must contain 256 RGB values\n<END>", "<BEGIN>\n## `data_collector`", "Buffers n bytes of data.", " :param iterable:\n Could be a list, generator or string\n :type ite...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the year API. 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 year API. 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...
Returns the year. :param date: The string date with this format %m/%d/%Y :type date: String :returns: int :example: >>> year('05/1/2015') 2015
"Returns the year.\n\n :param date:\n The string date with this format %m/%d/%Y\n :type date:\n String\n\n :returns:\n int\n\n :example:\n >>> year('05/1/2015')\n 2015"
152
false
developmentseed/landsat-util
year
23,223
LDU_FT/faucamp/python-gsmmodem/_handleSmsReceived
LDU_FT
[ "<BEGIN>\n## `status`", "Status of this SMS. Can be ENROUTE, DELIVERED or FAILED", " The actual status report object may be accessed via the 'report' attribute\n if status is 'DELIVERED' or 'FAILED'\n<END>", "<BEGIN>\n## `connect`", "Opens the port and initializes the modem and SIM card", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handleSmsReceived 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 _handleSmsReceived 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...
Handler for "new SMS" unsolicited notification line
"Handler for \"new SMS\" unsolicited notification line"
214
false
faucamp/python-gsmmodem
_handleSmsReceived
23,224
LDU_FT/jazzband/inflect/compare_adjs
LDU_FT
[ "<BEGIN>\n## `bysize`", "take a list of words and return a dict of sets sorted by word length\n e.g.\n ret[3]=set(['ant', 'cat', 'dog', 'pig'])\n ret[4]=set(['frog', 'goat'])\n ret[5]=set(['horse'])\n ret[8]=set(['elephant'])\n<END>", "<BEGIN>\n## `make_pl_si_lists`", "given a list of singular ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare_adjs API. 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 compare_adjs API. 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...
compare word1 and word2 for equality regardless of plurality word1 and word2 are to be treated as adjectives return values: eq - the strings are equal p:s - word1 is the plural of word2 s:p - word2 is the plural of word1 p:p - word1 and word2 are two different plural for...
"compare word1 and word2 for equality regardless of plurality\n word1 and word2 are to be treated as adjectives\n\n return values:\n eq - the strings are equal\n p:s - word1 is the plural of word2\n s:p - word2 is the plural of word1\n p:p - word1 and word2 are two different pl...
90
false
jazzband/inflect
compare_adjs
23,225
LDU_FT/rkhleics/wagtailmenus/get_template_names
LDU_FT
[ "<BEGIN>\n## `_get_specified_sub_menu_template_name`", "Called by get_sub_menu_template(). Iterates through the various ways in\n which developers can specify potential sub menu templates for a menu,\n and returns the name of the most suitable template for the\n ``current_level``. Values are ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_template_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_template_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns a list of template names to search for when rendering a a specific flat menu object (making use of self.handle)
"Returns a list of template names to search for when rendering a\n a specific flat menu object (making use of self.handle)"
95
false
rkhleics/wagtailmenus
get_template_names
23,226
LDU_FT/honzamach/pydgets/fmt_text
LDU_FT
[ "<BEGIN>\n## `terminal_size`", "Detect the current size of terminal window as a numer of rows and columns.\n<END>", "<BEGIN>\n## `list_settings`", "Get list of all appropriate settings and their default values.", " The returned list is then used in setup() and get_setup() methods to setup\n th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fmt_text API. 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 fmt_text API. 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...
Apply given console formating around given text.
"Apply given console formating around given text."
71
false
honzamach/pydgets
fmt_text
23,227
LDU_FT/crocs-muni/roca/process_mod_line
LDU_FT
[ "<BEGIN>\n## `error_message`", "Formats exception message + cause\n :param e:\n :param message:\n :param cause:\n :return: formatted message, includes cause if any is set\n<END>", "<BEGIN>\n## `format_pgp_key`", "Formats PGP key in 16hex digits\n :param key:\n :return:\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_mod_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_mod_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Processes one line mod :param data: :param name: :param idx: :param aux: :return:
"Processes one line mod\n :param data:\n :param name:\n :param idx:\n :param aux:\n :return:"
133
false
crocs-muni/roca
process_mod_line
23,228
LDU_FT/biocommons/biocommons.seqrepo/translate_alias
LDU_FT
[ "<BEGIN>\n## `fetch`", "fetch sequence by seq_id, optionally with start, end bounds\n<END>", "<BEGIN>\n## `store`", "store a sequence with key seq_id. The sequence itself is stored in\n a fasta file and a reference to it in the sqlite3 database.\n<END>", "<BEGIN>\n## `makedirs`", "cheapo replaceme...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate_alias API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate_alias API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
given an alias and optional namespace, return a list of all other aliases for same sequence
"given an alias and optional namespace, return a list of all other\n aliases for same sequence"
49
false
biocommons/biocommons.seqrepo
translate_alias
23,229
LDU_FT/Julian/jsonschema/validates
LDU_FT
[ "<BEGIN>\n## `load_schema`", "Load a schema from ./schemas/``name``.json and return it.\n<END>", "<BEGIN>\n## `find_additional_properties`", "Return the set of additional properties for the given ``instance``.", " Weeds out properties that should have been validated by ``properties`` and\n / or ``patt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validates API. 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 validates API. 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...
Register the decorated validator for a ``version`` of the specification. Registered validators and their meta schemas will be considered when parsing ``$schema`` properties' URIs. Arguments: version (str): An identifier to use as the version's name Returns: callable: a ...
"Register the decorated validator for a ``version`` of the specification.\n\n Registered validators and their meta schemas will be considered when\n parsing ``$schema`` properties' URIs.\n\n Arguments:\n\n version (str):\n\n An identifier to use as the version's name\n\n Returns:\n\n ...
181
false
Julian/jsonschema
validates
23,230
LDU_FT/inspirehep/inspire-schemas/add_title
LDU_FT
[ "<BEGIN>\n## `filter_empty_parameters`", "Decorator that is filtering empty parameters.", " :param func: function that you want wrapping\n :type func: function\n<END>", "<BEGIN>\n## `author_id_normalize_and_schema`", "Detect and normalize an author UID schema.", " Args:\n uid (string): a U...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_title API. 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 add_title API. 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...
Add title. :param title: title for the current document :type title: string :param subtitle: subtitle for the current document :type subtitle: string :param source: source for the given title :type source: string
"Add title.\n\n :param title: title for the current document\n :type title: string\n\n :param subtitle: subtitle for the current document\n :type subtitle: string\n\n :param source: source for the given title\n :type source: string"
290
false
inspirehep/inspire-schemas
add_title
23,231
LDU_FT/erikrose/more-itertools/split_at
LDU_FT
[ "<BEGIN>\n## `first`", "Return the first item of *iterable*, or *default* if *iterable* is\n empty.", " >>> first([0, 1, 2, 3])\n 0\n >>> first([], 'some default')\n 'some default'", " If *default* is not provided and there are no items in the iterable,\n raise ``ValueErro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_at API. 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 split_at API. 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...
Yield lists of items from *iterable*, where each list is delimited by an item where callable *pred* returns ``True``. The lists do not include the delimiting items. >>> list(split_at('abcdcba', lambda x: x == 'b')) [['a'], ['c', 'd', 'c'], ['a']] >>> list(split_at(range(10), lambda n: ...
"Yield lists of items from *iterable*, where each list is delimited by\n an item where callable *pred* returns ``True``. The lists do not include\n the delimiting items.\n\n >>> list(split_at('abcdcba', lambda x: x == 'b'))\n [['a'], ['c', 'd', 'c'], ['a']]\n\n >>> list(split_at(range(10), la...
342
false
erikrose/more-itertools
split_at
23,232
LDU_FT/theosysbio/means/generate_dmu_over_dt
LDU_FT
[ "<BEGIN>\n## `simulate_system`", "Perform Gillespie SSA simulations and returns trajectories for of each species.\n Each trajectory is interpolated at the given time points.\n By default, the average amounts of species for all simulations is returned.", " :param parameters: list of the init...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_dmu_over_dt 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 generate_dmu_over_dt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
r""" Calculate :math:`\frac{d\mu_i}{dt}` in eq. 6 (see Ale et al. 2013). .. math:: \frac{d\mu_i}{dt} = S \begin{bmatrix} \sum_{l} \sum_{n_1=0}^{\infty} ... \sum_{n_d=0}^{\infty} \frac{1}{\mathbf{n!}} \frac{\partial^n \mathbf{n}a_l(\mathbf{x})}{\partial \mathbf{x^n}} |...
"r\"\"\"\r\n Calculate :math:`\\frac{d\\mu_i}{dt}` in eq. 6 (see Ale et al. 2013).\r\n\r\n .. math::\r\n \\frac{d\\mu_i}{dt} = S \\begin{bmatrix} \\sum_{l} \\sum_{n_1=0}^{\\infty} ...\r\n \\sum_{n_d=0}^{\\infty}\r\n \\frac{1}{\\mathbf{n!}}\r\n \\frac{\\partial^n \\mathbf{n}a_l(\\ma...
244
false
theosysbio/means
generate_dmu_over_dt
23,233
LDU_FT/redhat-cip/python-dciclient/refresh_keys
LDU_FT
[ "<BEGIN>\n## `list`", "list(context, verbose)", " List all tags.", " >>> dcictl tag-list", " :param boolean verbose: Display verbose output\n<END>", "<BEGIN>\n## `create`", "create(context, name)", " Create a tag.", " >>> dcictl tag-create [OPTIONS]", " :param string name: Name o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh_keys API. 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 refresh_keys API. 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...
refresh_keys(context, id, etag) Refresh a remoteci key pair. >>> dcictl remoteci-refresh-keys [OPTIONS] :param string id: ID of the remote CI [required] :param string etag: Entity tag of the remote CI resource [required]
"refresh_keys(context, id, etag)\n\n Refresh a remoteci key pair.\n\n >>> dcictl remoteci-refresh-keys [OPTIONS]\n\n :param string id: ID of the remote CI [required]\n :param string etag: Entity tag of the remote CI resource [required]"
310
false
redhat-cip/python-dciclient
refresh_keys
23,234
LDU_FT/aio-libs/aiodocker/run
LDU_FT
[ "<BEGIN>\n## `inspect`", "Return low-level information about an image", " Args:\n name: name of the image\n<END>", "<BEGIN>\n## `pull`", "Similar to `docker pull`, pull an image locally", " Args:\n fromImage: name of the image to pull\n repo: repository name ...
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...
Query the events endpoint of the Docker daemon. Publish messages inside the asyncio queue.
"Query the events endpoint of the Docker daemon.\n\n Publish messages inside the asyncio queue."
108
false
aio-libs/aiodocker
run
23,235
LDU_FT/bjmorgan/vasppy/points_are_in_a_straight_line
LDU_FT
[ "<BEGIN>\n## `md5sum`", "Generate the md5 checksum for a string", " Args:\n string (Str): The string to be checksummed.", " Returns:\n (Str): The hex checksum.\n<END>", "<BEGIN>\n## `file_md5`", "Generate the md5 checksum for a file", " Args:\n filename (Str): The file to b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the points_are_in_a_straight_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the points_are_in_a_straight_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Check whether a set of points fall on a straight line. Calculates the areas of triangles formed by triplets of the points. Returns False is any of these areas are larger than the tolerance. Args: points (list(np.array)): list of Cartesian coordinates for each point. tolerance (optional:floa...
"Check whether a set of points fall on a straight line.\n Calculates the areas of triangles formed by triplets of the points.\n Returns False is any of these areas are larger than the tolerance.\n\n Args:\n points (list(np.array)): list of Cartesian coordinates for each point.\n tolerance (option...
174
false
bjmorgan/vasppy
points_are_in_a_straight_line
23,236
LDU_FT/tjcsl/ion/modify_announcement_view
LDU_FT
[ "<BEGIN>\n## `student_visible`", "Return a list of groups that are student-visible.\n<END>", "<BEGIN>\n## `stdev`", "r\"\"\"Calculate standard deviation of data x[]:\n std = sqrt(\\sum_i (x_i - mean)^2 \\over n-1)\n https://wiki.python.org/moin/NumericAndScientificRecipes\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_announcement_view 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 modify_announcement_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Modify an announcement. id: announcement id
"Modify an announcement.\n\n id: announcement id"
407
false
tjcsl/ion
modify_announcement_view
23,237
LDU_FT/kkinder/NdbSearchableBase/from_urlsafe
LDU_FT
[ "<BEGIN>\n## `search`", "Searches the index. Conveniently searches only for documents that belong to instances of this class.", " :param query_string: The query to match against documents in the index. See search.Query() for details.\n :param options: A QueryOptions describing post-processing of s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_urlsafe API. 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_urlsafe API. 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 an instance of the model from a urlsafe string. :param urlsafe: urlsafe key :return: Instance of cls
"Returns an instance of the model from a urlsafe string.\n\n :param urlsafe: urlsafe key\n :return: Instance of cls"
15
false
kkinder/NdbSearchableBase
from_urlsafe
23,238
LDU_FT/jbeluch/xbmcswift2/create_new_project
LDU_FT
[ "<BEGIN>\n## `display_listitems`", "Displays a list of items along with the index to enable a user\n to select an item.\n<END>", "<BEGIN>\n## `display_video`", "Prints a message for a playing video and displays the parent\n listitem.\n<END>", "<BEGIN>\n## `get_user_choice`", "Returns the selected it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_new_project API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_new_project 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...
Creates a new XBMC Addon directory based on user input
"Creates a new XBMC Addon directory based on user input"
164
false
jbeluch/xbmcswift2
create_new_project
23,239
LDU_FT/EnigmaBridge/client.py/get_random_integer
LDU_FT
[ "<BEGIN>\n## `to_bytes`", "Converts input to a byte string.\n Typically used in PyCrypto as an argument (e.g., key, iv)", " :param x: string (does nothing), bytearray, array with numbers\n :return:\n<END>", "<BEGIN>\n## `to_long`", "Converts input to a long number (arbitrary precision python long)\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_random_integer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_random_integer 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...
getRandomInteger(N:int, randfunc:callable):long Return a random number with at most N bits. If randfunc is omitted, then Random.new().read is used. This function is for internal use only and may be renamed or removed in the future.
"getRandomInteger(N:int, randfunc:callable):long\n Return a random number with at most N bits.\n\n If randfunc is omitted, then Random.new().read is used.\n\n This function is for internal use only and may be renamed or removed in\n the future."
107
false
EnigmaBridge/client.py
get_random_integer
23,240
LDU_FT/osrg/ryu/parse_column_key
LDU_FT
[ "<BEGIN>\n## `update`", "Updates global configuration settings with given values.", " First checks if given configuration values differ from current values.\n If any of the configuration values changed, generates a change event.\n Currently we generate change event for any configuration cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_column_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_column_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parses 'setting_string' as str formatted in <column>[:<key>] and returns str type 'column' and 'key'
"Parses 'setting_string' as str formatted in <column>[:<key>]\n and returns str type 'column' and 'key'"
1,172
true
osrg/ryu
parse_column_key
23,241
LDU_FT/Yelp/kafka-utils/display_table
LDU_FT
[ "<BEGIN>\n## `get_assignment`", "Parse the given json plan in dict format.\n<END>", "<BEGIN>\n## `_send_consumer_aware_request`", "Send a list of requests to the consumer coordinator for the group\n specified using the supplied encode/decode functions. As the payloads\n that use consumer-aware r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Print a formatted table. :param headers: A list of header objects that are displayed in the first row of the table. :param table: A list of lists where each sublist is a row of the table. The number of elements in each row should be equal to the number of headers.
"Print a formatted table.\n\n :param headers: A list of header objects that are displayed in the first\n row of the table.\n :param table: A list of lists where each sublist is a row of the table.\n The number of elements in each row should be equal to the number of\n headers."
538
false
Yelp/kafka-utils
display_table
23,242
LDU_FT/qzmfranklin/easyshell/__driver_helper
LDU_FT
[ "<BEGIN>\n## `update_parser`", "Update the parser object for the shell.", " Arguments:\n parser: An instance of argparse.ArgumentParser.\n<END>", "<BEGIN>\n## `_do_debug`", "\\\n Enter the debugging shell.\n debug Show current debugging status, i.e, on/off.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __driver_helper API. 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 __driver_helper API. 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...
Driver level helper method. 1. Display help message for the given input. Internally calls self.__get_help_message() to obtain the help message. 2. Re-display the prompt and the input line. Arguments: line: The input line. Raises: Errors from helpe...
"Driver level helper method.\n\n 1. Display help message for the given input. Internally calls\n self.__get_help_message() to obtain the help message.\n 2. Re-display the prompt and the input line.\n\n Arguments:\n line: The input line.\n\n Raises:\n Errors...
147
false
qzmfranklin/easyshell
__driver_helper
23,243
LDU_FT/jbeluch/xbmcswift2/get_addon_id
LDU_FT
[ "<BEGIN>\n## `display_listitems`", "Displays a list of items along with the index to enable a user\n to select an item.\n<END>", "<BEGIN>\n## `display_video`", "Prints a message for a playing video and displays the parent\n listitem.\n<END>", "<BEGIN>\n## `get_user_choice`", "Returns the selected it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_addon_id API. 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_addon_id API. 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...
Parses an addon id from the given addon.xml filename.
"Parses an addon id from the given addon.xml filename."
164
false
jbeluch/xbmcswift2
get_addon_id
23,244
LDU_FT/NewKnowledge/punk/rank_features
LDU_FT
[ "<BEGIN>\n## `encode_df`", "Encode columns so their values are usable in vector operations. Making a few \n assumptions here, like that datetime should be an integer, and that it's \n acceptable to fill NaNs with 0.\n<END>", "<BEGIN>\n## `rank_features`", "Rank features using Random Forest classifier an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rank_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rank_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Perform PCA and return a list of the indices of the most important features, ordered by contribution to first PCA component The matrix M will correspond to the absolute value of the components of the decomposiiton ...
"Perform PCA and return a list of the indices of the most important\n features, ordered by contribution to first PCA component\n \n The matrix M will correspond to the absolute value of the components of \n the decomposi...
18
false
NewKnowledge/punk
rank_features
23,245
LDU_FT/django-ses/django-ses/_get_bytes_to_sign
LDU_FT
[ "<BEGIN>\n## `certificate`", "Retrieves the certificate used to sign the bounce message.", " TODO: Cache the certificate based on the cert URL so we don't have to\n retrieve it for each bounce message. *We would need to do it in a\n secure way so that the cert couldn't be overwritten in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_bytes_to_sign API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_bytes_to_sign 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...
Creates the message used for signing SNS notifications. This is used to verify the bounce message when it is received.
"Creates the message used for signing SNS notifications.\n This is used to verify the bounce message when it is received."
27
false
django-ses/django-ses
_get_bytes_to_sign
23,246
LDU_FT/pkkid/python-plexapi/sync
LDU_FT
[ "<BEGIN>\n## `registerPlexObject`", "Registry of library types we may come across when parsing XML. This allows us to\n define a few helper functions to dynamically convery the XML into objects. See\n buildItem() below for an example.\n<END>", "<BEGIN>\n## `cast`", "Cast the specified value to t...
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...
Add current video (movie, tv-show, season or episode) as sync item for specified device. See :func:`plexapi.myplex.MyPlexAccount.sync()` for possible exceptions. Parameters: videoQuality (int): idx of quality of the video, one of VIDEO_QUALITY_* values defined in ...
"Add current video (movie, tv-show, season or episode) as sync item for specified device.\n See :func:`plexapi.myplex.MyPlexAccount.sync()` for possible exceptions.\n\n Parameters:\n videoQuality (int): idx of quality of the video, one of VIDEO_QUALITY_* values defined in\n ...
372
false
pkkid/python-plexapi
sync
23,247
LDU_FT/justinabrahms/imhotep/post_comment
LDU_FT
[ "<BEGIN>\n## `invoke`", "Main entrypoint for all plugins.", " Returns results in the format of:", " {'filename': {\n 'line_number': [\n 'error1',\n 'error2'\n ]\n }\n }\n<END>", "<BEGIN>\n## `process_line`", "Processes a line return a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_comment API. 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 post_comment API. 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...
Comments on an issue, not on a particular line.
"Comments on an issue, not on a particular line."
29
false
justinabrahms/imhotep
post_comment
23,248
LDU_FT/guaix-ucm/pyemir/return_params
LDU_FT
[ "<BEGIN>\n## `merge2images`", "Merge 2 EMIR images, averaging the common region.", " Parameters\n ----------\n hdu1 : HDUList object\n Input image #1.\n hdu2 : HDUList object\n Input image #2.\n debugplot : int\n Determines whether intermediate computations and/or plots\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the return_params API. 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 return_params API. 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 individual model parameters from object of type Parameters. Parameters ---------- islitlet : int Number of slitlet. csu_bar_slit_center : float CSU bar slit center, in mm. params : :class:`~lmfit.parameter.Parameters` Parameters to be employed in the prediction of the...
"Return individual model parameters from object of type Parameters.\n\n Parameters\n ----------\n islitlet : int\n Number of slitlet.\n csu_bar_slit_center : float\n CSU bar slit center, in mm.\n params : :class:`~lmfit.parameter.Parameters`\n Parameters to be employed in the predict...
282
false
guaix-ucm/pyemir
return_params
23,249
LDU_FT/base4sistemas/satcomum/as_cep
LDU_FT
[ "<BEGIN>\n## `dados_qrcode`", "Compila os dados que compõem o QRCode do CF-e-SAT, conforme a\n documentação técnica oficial **Guia para Geração do QRCode pelo Aplicativo\n Comercial**, a partir de uma instância de ``ElementTree`` que represente a\n árvore do XML do CF-e-SAT.", " :param cfe: Instânci...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_cep API. 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 as_cep API. 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 ...
Formata um número de CEP. Se o argumento não for um CEP válido apenas retorna o argumento sem qualquer modificação.
"Formata um número de CEP. Se o argumento não for um CEP válido apenas\n retorna o argumento sem qualquer modificação."
61
false
base4sistemas/satcomum
as_cep
23,250
LDU_FT/datastax/python-driver/setup
LDU_FT
[ "<BEGIN>\n## `check_applied`", "Raises LWTException if it looks like a failed LWT request. A LWTException\n won't be raised in the special case in which there are several failed LWT\n in a :class:`~cqlengine.query.BatchQuery`.\n<END>", "<BEGIN>\n## `add_callback`", "Add a function and arguments to be p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. 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 setup API. 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...
Setup a the driver connection used by the mapper :param list hosts: list of hosts, (``contact_points`` for :class:`cassandra.cluster.Cluster`) :param str default_keyspace: The default keyspace to use :param int consistency: The global default :class:`~.ConsistencyLevel` - default is the same as :attr:`.Ses...
"Setup a the driver connection used by the mapper\n\n :param list hosts: list of hosts, (``contact_points`` for :class:`cassandra.cluster.Cluster`)\n :param str default_keyspace: The default keyspace to use\n :param int consistency: The global default :class:`~.ConsistencyLevel` - default is the same as :attr:...
603
false
datastax/python-driver
setup
23,251
LDU_FT/kytos/python-openflow/unpack
LDU_FT
[ "<BEGIN>\n## `in_port`", "Retrieve the 'in_port' that generated the PacketIn.", " This method will look for the OXM_TLV with type OFPXMT_OFB_IN_PORT on\n the `oxm_match_fields` field from `match` field and return its value,\n if the OXM exists.", " Returns:\n The integer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Discard padding bytes using the unpacked length attribute.
"Discard padding bytes using the unpacked length attribute."
348
false
kytos/python-openflow
unpack
23,252
LDU_FT/Jaymon/endpoints/modules
LDU_FT
[ "<BEGIN>\n## `handle_target`", "Only here to set self.request and get rid of it after", " this will set self.request so the target method can access request using\n self.request, just like in the controller.\n<END>", "<BEGIN>\n## `fetch`", "wrapper method that all the top level methods (get, p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modules API. 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 modules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns an iterator of the actual modules, not just their names :returns: generator, each module under self.controller_prefix
"Returns an iterator of the actual modules, not just their names\n\n :returns: generator, each module under self.controller_prefix"
215
false
Jaymon/endpoints
modules
23,253
LDU_FT/googleapis/dialogflow-python-client-v2/session_entity_type_path
LDU_FT
[ "<BEGIN>\n## `from_service_account_file`", "Creates an instance of this client using the provided credentials\n file.", " Args:\n filename (str): The path to the service account private key json\n file.\n args: Additional arguments to pass to the constructor.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the session_entity_type_path 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 session_entity_type_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Return a fully-qualified session_entity_type string.
"Return a fully-qualified session_entity_type string."
280
false
googleapis/dialogflow-python-client-v2
session_entity_type_path
23,254
LDU_FT/inasafe/inasafe/hide_busy
LDU_FT
[ "<BEGIN>\n## `dict`", "dictionary representation of the metadata.", " :return: dictionary representation of the metadata\n :rtype: dict\n<END>", "<BEGIN>\n## `xml`", "xml representation of the metadata.", " :return: xml representation of the metadata\n :rtype: ElementTree.Eleme...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hide_busy API. 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 hide_busy API. 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...
Unlock buttons A helper function to indicate processing is done.
"Unlock buttons A helper function to indicate processing is done."
4,163
true
inasafe/inasafe
hide_busy
23,255
LDU_FT/BeyondTheClouds/enoslib/destroy
LDU_FT
[ "<BEGIN>\n## `_build_g5k_conf`", "Build the conf of the g5k provider from the vmong5k conf.\n<END>", "<BEGIN>\n## `cached`", "Decorator for caching/retrieving api calls request.", " Many calls to the API are getter on static parts (e.g site of a given\n cluster name won't change). By caching some resp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy API. 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 destroy API. 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...
Destroy all vagrant box involved in the deployment.
"Destroy all vagrant box involved in the deployment."
229
false
BeyondTheClouds/enoslib
destroy
23,256
LDU_FT/trevisanj/a99/disconnect_all
LDU_FT
[ "<BEGIN>\n## `make_code_readable`", "Add newlines at strategic places in code string for printing.\r", " Args:\r\n s: str, piece of code. If not str, will attempt to convert to str.\r", " Returns:\r\n str\n<END>", "<BEGIN>\n## `chunk_string`", "Splits a string into fixed-length chunks....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect_all API. 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 disconnect_all API. 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...
Disconnects all signals and slots. If already in "disconnected" state, ignores the call.
"Disconnects all signals and slots.\r\n\r\n If already in \"disconnected\" state, ignores the call."
301
false
trevisanj/a99
disconnect_all
23,257
LDU_FT/hannes-brt/hebel/backprop
LDU_FT
[ "<BEGIN>\n## `parameters`", "A property that returns all of the model's parameters.\n<END>", "<BEGIN>\n## `parameters`", "Used to set all of the model's parameters to new values.", " **Parameters:**", " value : array_like\n New values for the model parameters. Must be of length\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backprop API. 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 backprop API. 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...
Compute gradients for each task and combine the results. **Parameters:** input_data : ``GPUArray`` Inpute data to compute activations for. targets : ``GPUArray`` The target values of the units. cache : list of ``GPUArray`` Cache obtained from forwa...
"Compute gradients for each task and combine the results.\n\n **Parameters:**\n\n input_data : ``GPUArray``\n Inpute data to compute activations for.\n\n targets : ``GPUArray``\n The target values of the units.\n\n cache : list of ``GPUArray``\n Cache obtaine...
372
false
hannes-brt/hebel
backprop
23,258
LDU_FT/ace0/pyrelic/wrap
LDU_FT
[ "<BEGIN>\n## `assertSameType`", "Raises an exception if @b is not an instance of type(@a)\n<END>", "<BEGIN>\n## `assertType`", "Asserts that a variable @var is of an @expectedType. Raises a TypeError\n if the assertion fails.\n<END>", "<BEGIN>\n## `dp`", "Debugging print. Prints a list of labels and va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap API. 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 wrap API. 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...
Wraps an element or integer type by serializing it and base64 encoding the resulting bytes.
"Wraps an element or integer type by serializing it and base64 encoding \n the resulting bytes."
109
false
ace0/pyrelic
wrap
23,259
LDU_FT/thautwarm/Redy/open
LDU_FT
[ "<BEGIN>\n## `map_by`", "when pycharm supports type hinting for any implementation of currying,\n map_with and map_on would be deprecated.\n >>> from Redy.Collections import Traversal, Flow\n >>> def double(x: int) -> int: return x * 2\n >>> lst: Iterable[int] = [1, 2, 3]\n >>> x = Flow(lst)[Traver...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
:param mode: the same as the argument `mode` of `builtins.open` :param encoding: similar to the argument `encoding` of `builtins.open` which is compatible to io.open. - `encoding='auto'` to automatically detect the encoding. - `encoding is a <list|tuple|set>` to...
":param mode: the same as the argument `mode` of `builtins.open`\n :param encoding: similar to the argument `encoding` of `builtins.open` which is compatible to io.open.\n - `encoding='auto'` to automatically detect the encoding.\n - `encoding is a <list|tuple|set>...
83
false
thautwarm/Redy
open
23,260
LDU_FT/eddieantonio/perfection/check_columns_fit
LDU_FT
[ "<BEGIN>\n## `add_edge`", "Add edge (u, v) to the graph. Raises InvariantError if adding the edge\n would form a cycle.\n<END>", "<BEGIN>\n## `edges`", "Edges of this graph, in canonical order.\n<END>", "<BEGIN>\n## `ordered_deduplicate`", "Returns the sequence as a tuple with the duplicates remove...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_columns_fit API. 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 check_columns_fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Checks if all the occupied columns in the row fit in the indices given by free columns. >>> check_columns_fit({0,1,2,3}, [(0, True), (2, True)], 0, 4) True >>> check_columns_fit({0,2,3}, [(2, True), (3, True)], 0, 4) True >>> check_columns_fit({}, [(2, True), (3, True)], 0, 4) False >>>...
"Checks if all the occupied columns in the row fit in the indices\n given by free columns.\n\n >>> check_columns_fit({0,1,2,3}, [(0, True), (2, True)], 0, 4)\n True\n >>> check_columns_fit({0,2,3}, [(2, True), (3, True)], 0, 4)\n True\n >>> check_columns_fit({}, [(2, True), (3, True)], 0, 4)\n Fals...
64
false
eddieantonio/perfection
check_columns_fit
23,261
LDU_FT/gunthercox/ChatterBot/date_from_duration
LDU_FT
[ "<BEGIN>\n## `get_response`", "Return the bot's response based on the input.", " :param statement: An statement object or string.\n :returns: A response to the input.\n :rtype: Statement", " :param additional_response_selection_parameters: Parameters to pass to the\n cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the date_from_duration 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 date_from_duration 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...
Find dates from duration Eg: 20 days from now Currently does not support strings like "20 days from last monday".
"Find dates from duration\n Eg: 20 days from now\n Currently does not support strings like \"20 days from last monday\"."
158
false
gunthercox/ChatterBot
date_from_duration
23,262
LDU_FT/elmotec/massedit/get_function
LDU_FT
[ "<BEGIN>\n## `get_function`", "Retrieve the function defined by the function_name.", " Arguments:\n fn_name: specification of the type module:function_name.\n<END>", "<BEGIN>\n## `parse_command_line`", "Parse command line argument. See -h option.", " Arguments:\n argv: arguments on the com...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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. The extr...
Retrieve the function defined by the function_name. Arguments: fn_name: specification of the type module:function_name.
"Retrieve the function defined by the function_name.\n\n Arguments:\n fn_name: specification of the type module:function_name."
43
false
elmotec/massedit
get_function
23,263
LDU_FT/mailund/statusbar/summary_width
LDU_FT
[ "<BEGIN>\n## `set_progress_brackets`", "Set brackets to set around a progress bar.\n<END>", "<BEGIN>\n## `add_progress`", "Add a section of progress to the progressbar.", " The progress is captured by \"count\" and displayed as a fraction\n of the statusbar width proportional to this count ove...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the summary_width API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the summary_width API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Calculate how long a string is needed to show a summary string. This is not simply the length of the formatted summary string since that string might contain ANSI codes.
"Calculate how long a string is needed to show a summary string.\n\n This is not simply the length of the formatted summary string\n since that string might contain ANSI codes."
26
false
mailund/statusbar
summary_width
23,264
LDU_FT/matousc89/padasip/ELBND
LDU_FT
[ "<BEGIN>\n## `standardize_back`", "This is function for de-standarization of input series.", " **Args:**", " * `xs` : standardized input (1 dimensional array)", " * `offset` : offset to add (float).", " * `scale` : scale (float).", " **Returns:**", " * `x` : original (destandardised)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ELBND API. 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 ELBND API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
This function estimates Error and Learning Based Novelty Detection measure from given data. **Args:** * `w` : history of adaptive parameters of an adaptive model (2d array), every row represents parameters in given time index. * `e` : error of adaptive model (1d array) **Kwargs:** * `...
"This function estimates Error and Learning Based Novelty Detection measure\n from given data.\n\n **Args:**\n\n * `w` : history of adaptive parameters of an adaptive model (2d array),\n every row represents parameters in given time index.\n\n * `e` : error of adaptive model (1d array)\n\n **Kwargs:...
327
false
matousc89/padasip
ELBND
23,265
LDU_FT/inveniosoftware/invenio-search/build_index_name
LDU_FT
[ "<BEGIN>\n## `index`", "Query Elasticsearch using Invenio query syntax.\n<END>", "<BEGIN>\n## `templates`", "Generate a dictionary with template names and file paths.\n<END>", "<BEGIN>\n## `register_mappings`", "Register mappings from a package under given alias.", " :param alias: The alias.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_index_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_index_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Build an index name from parts. :param parts: Parts that should be combined to make an index name.
"Build an index name from parts.\n\n :param parts: Parts that should be combined to make an index name."
52
false
inveniosoftware/invenio-search
build_index_name
23,266
LDU_FT/heikomuller/sco-client/experiments_fmri_get
LDU_FT
[ "<BEGIN>\n## `download_file`", "Download attached file as temporary file.", " Parameters\n ----------\n url : string\n SCO-API download Url\n suffix : string, optional\n If suffix is specified, the name of the downloaded file will end with\n that suffix, otherwise there will be ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the experiments_fmri_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the experiments_fmri_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. ...
Get handle for functional fMRI resource at given Url. Parameters ---------- resource_url : string Url for fMRI resource at SCO-API Returns ------- scoserv.FunctionalDataHandle Handle for funcrional MRI data resource
"Get handle for functional fMRI resource at given Url.\n\n Parameters\n ----------\n resource_url : string\n Url for fMRI resource at SCO-API\n\n Returns\n -------\n scoserv.FunctionalDataHandle\n Handle for funcrional MRI data resource"
164
false
heikomuller/sco-client
experiments_fmri_get
23,267
LDU_FT/RedHatQE/python-stitches/ping_pong
LDU_FT
[ "<BEGIN>\n## `exec_command`", "Execute a command in the connection", " @param command: command to execute\n @type command: str", " @param bufsize: buffer size\n @type bufsize: int", " @param get_pty: get pty\n @type get_pty: bool", " @return: the stdin, std...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ping_pong API. 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 ping_pong API. 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...
Enter a command and wait for something to happen (enter + expect combined) @param connection: connection to the host @type connection: L{Connection} @param command: command to execute @type command: str @param strexp: string to convert to expression (.*string.*) ...
"Enter a command and wait for something to happen (enter + expect\n combined)\n\n @param connection: connection to the host\n @type connection: L{Connection}\n\n @param command: command to execute\n @type command: str\n\n @param strexp: string to convert to expression (.*string...
64
false
RedHatQE/python-stitches
ping_pong
23,268
LDU_FT/honzajavorek/tipi/_analyze_tree
LDU_FT
[ "<BEGIN>\n## `parent_tags`", "Provides tags of all parent HTML elements.\n<END>", "<BEGIN>\n## `involved_tags`", "Provides all HTML tags directly involved in this string.\n<END>", "<BEGIN>\n## `_parse`", "Parse given string as HTML and return it's etree representation.\n<END>", "<BEGIN>\n## `_analyze_tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _analyze_tree API. 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 _analyze_tree API. 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...
Analyze given tree and create mapping of indexes to character addresses.
"Analyze given tree and create mapping of indexes to character\n addresses."
18
false
honzajavorek/tipi
_analyze_tree
23,269
LDU_FT/project-rig/rig/_perform_write
LDU_FT
[ "<BEGIN>\n## `minimise`", "Remove from the routing table any entries which could be replaced by\n default routing.", " Parameters\n ----------\n routing_table : [:py:class:`~rig.routing_table.RoutingTableEntry`, ...]\n Routing table from which to remove entries which could be handled by\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _perform_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _perform_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 ex...
Perform a write using the machine controller.
"Perform a write using the machine controller."
983
false
project-rig/rig
_perform_write
23,270
LDU_FT/ecederstrand/exchangelib/wrap
LDU_FT
[ "<BEGIN>\n## `wrap`", "Generate the necessary boilerplate XML for a raw SOAP request. The XML is specific to the server version.\n ExchangeImpersonation allows to act as the user we want to impersonate.\n<END>", "<BEGIN>\n## `get_auth_instance`", "Returns an *Auth instance suitable for the requests package...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap API. 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 wrap API. 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...
Generate the necessary boilerplate XML for a raw SOAP request. The XML is specific to the server version. ExchangeImpersonation allows to act as the user we want to impersonate.
"Generate the necessary boilerplate XML for a raw SOAP request. The XML is specific to the server version.\n ExchangeImpersonation allows to act as the user we want to impersonate."
83
false
ecederstrand/exchangelib
wrap
23,271
LDU_FT/gear11/pypelogs/find_geo_coords
LDU_FT
[ "<BEGIN>\n## `geo_filter`", "Inspects the given Wikipedia article dict for geo-coordinates.", " If no coordinates are found, returns None. Otherwise, returns a new dict\n with the title and URL of the original article, along with coordinates.\n<END>", "<BEGIN>\n## `find_geo_coords`", "Returns a list ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_geo_coords API. 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 find_geo_coords API. 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...
Returns a list of lat/lons found by scanning the given text
"Returns a list of lat/lons found by scanning the given text"
40
false
gear11/pypelogs
find_geo_coords
23,272