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/vladsaveliev/TargQC/_FlattenToCallback
LDU_FT
[ "<BEGIN>\n## `main`", "Annotating BED file based on reference features annotations.\n<END>", "<BEGIN>\n## `downsample`", "get N random headers from a fastq file without reading the\n whole thing into memory\n modified from: http://www.biostars.org/p/6544/\n<END>", "<BEGIN>\n## `AddIndex`", "Recursiv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _FlattenToCallback 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 _FlattenToCallback 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...
Takes a nested list structure and flattens it. ['a', ['b', 'c']] -> callback('a'); callback('b'); callback('c');
"Takes a nested list structure and flattens it.\n\n ['a', ['b', 'c']] -> callback('a'); callback('b'); callback('c');"
184
false
vladsaveliev/TargQC
_FlattenToCallback
30,173
LDU_FT/DeV1doR/aioethereum/eth_getBalance
LDU_FT
[ "<BEGIN>\n## `db_putString`", "https://github.com/ethereum/wiki/wiki/JSON-RPC#db_putstring", " DEPRECATED\n<END>", "<BEGIN>\n## `db_getString`", "https://github.com/ethereum/wiki/wiki/JSON-RPC#db_getstring", " DEPRECATED\n<END>", "<BEGIN>\n## `db_putHex`", "https://github.com/ethereum/wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eth_getBalance API. 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 eth_getBalance API. 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...
https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getbalance :param address: Account address :type address: str :param block: Block tag or number (optional) :type block: int or BLOCK_TAGS :return: wei :rtype: int
"https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getbalance\n\n :param address: Account address\n :type address: str\n\n :param block: Block tag or number (optional)\n :type block: int or BLOCK_TAGS\n\n :return: wei\n :rtype: int"
166
false
DeV1doR/aioethereum
eth_getBalance
30,174
LDU_FT/LonamiWebs/Telethon/inline_query
LDU_FT
[ "<BEGIN>\n## `collect`", "Create a `self` iterator and collect it into a `TotalList`\n (a normal list with a `.total` attribute).\n<END>", "<BEGIN>\n## `handler`", "#full: Advises to read \"Accessing the full API\" in the docs.\n<END>", "<BEGIN>\n## `handler`", "#search query: Searches for \"query\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inline_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inline_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Makes the given inline query to the specified bot i.e. ``@vote My New Poll`` would be as follows: >>> client = ... >>> client.inline_query('vote', 'My New Poll') Args: bot (`entity`): The bot entity to which the inline query should be made. quer...
"Makes the given inline query to the specified bot\n i.e. ``@vote My New Poll`` would be as follows:\n\n >>> client = ...\n >>> client.inline_query('vote', 'My New Poll')\n\n Args:\n bot (`entity`):\n The bot entity to which the inline query should be made.\n\n ...
1,037
true
LonamiWebs/Telethon
inline_query
30,175
LDU_FT/bschollnick/semantic_url/sub_pi_to_number
LDU_FT
[ "<BEGIN>\n## `norm_page_cnt`", "Normalize a integer (page).", " * Ensure that it is greater than Zero, and is not None.\n - If less than 1, or None, set it to 1", " * if max_number is None, then do not check for max_number\n * if greater than max_number, reset it to be max_number\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sub_pi_to_number API. 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 sub_pi_to_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Convert subpage & subitem to a integer * if page == 1, then return 0, since the item count is the true # of items * if page == 2, then return, page-1 * items_per_page, since we are returning the # of items on a full page. Args: * None Returns: * Integer - Which represents the nu...
"Convert subpage & subitem to a integer\n\n * if page == 1, then return 0, since the item count is the true # of items\n * if page == 2, then return, page-1 * items_per_page, since we are\n returning the # of items on a full page.\n\n Args:\n * None\n\n Returns:\n * Integer - Which repres...
61
false
bschollnick/semantic_url
sub_pi_to_number
30,176
LDU_FT/crate/crash/get_parser
LDU_FT
[ "<BEGIN>\n## `_padleft`", "Flush right.", " >>> _padleft(6, '\\u044f\\u0439\\u0446\\u0430') == ' \\u044f\\u0439\\u0446\\u0430'\n True\n<END>", "<BEGIN>\n## `_visible_width`", "Visible width of a printed string. ANSI color codes are removed.", " >>> _visible_width('\\x1b[31mhello\\x1b[0m'), _visi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Create an argument parser that reads default values from a configuration file if provided.
"Create an argument parser that reads default values from a\n configuration file if provided."
90
false
crate/crash
get_parser
30,177
LDU_FT/harlowja/notifier/copy
LDU_FT
[ "<BEGIN>\n## `register_deregister`", "Context manager that registers a callback, then deregisters on exit.", " NOTE(harlowja): if the callback is none, then this registers nothing, which\n is different from the behavior of the ``register`` method\n which will *not* accep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Clones this notifier (and its bound listeners).
"Clones this notifier (and its bound listeners)."
42
false
harlowja/notifier
copy
30,178
LDU_FT/flavio/scsgate/_home_assistant_config
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses a raw datagram and return the right type of message\n<END>", "<BEGIN>\n## `checksum_bytes`", "Returns a XOR of all the bytes specified inside of the given list\n<END>", "<BEGIN>\n## `compose_telegram`", "Compose a SCS message", " body: list containing the body of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _home_assistant_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _home_assistant_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....
Creates home assistant configuration for the known devices
"Creates home assistant configuration for the known devices"
15
false
flavio/scsgate
_home_assistant_config
30,179
LDU_FT/liampauling/betfair/get_event_timeline
LDU_FT
[ "<BEGIN>\n## `streaming_market_filter`", ":param list market_ids: filter market data to data pertaining to specific marketIds.\n :param list event_type_ids: filter market data to data pertaining to specific event_type ids.\n :param list event_ids: filter market data to data pertaining to specific event ids....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_event_timeline 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_event_timeline 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 event timeline for event id provided. :param int event_id: Event id to return :param requests.session session: Requests session object :param bool lightweight: If True will return dict not a resource :rtype: resources.EventTimeline
"Returns event timeline for event id provided.\n\n :param int event_id: Event id to return\n :param requests.session session: Requests session object\n :param bool lightweight: If True will return dict not a resource\n\n :rtype: resources.EventTimeline"
224
false
liampauling/betfair
get_event_timeline
30,180
LDU_FT/rosenbrockc/ci/get_json
LDU_FT
[ "<BEGIN>\n## `_get_github`", "Creates an instance of github.Github to interact with the repos via the \n API interface in pygithub.\n<END>", "<BEGIN>\n## `_parse_repo`", "Parses a <repo> tag to update settings on this Repository instance.", " :arg xml: the <repo> tag XMLElement.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns the JSON serialized object at the specified path, or the default if it doesn't exist or can't be deserialized.
"Returns the JSON serialized object at the specified path, or the default\n if it doesn't exist or can't be deserialized."
123
false
rosenbrockc/ci
get_json
30,181
LDU_FT/jldantas/libmft/_create_attrcontent_class
LDU_FT
[ "<BEGIN>\n## `apply_fixup_array`", "This function reads the fixup array and apply the correct values\n to the underlying binary stream. This function changes the bin_view\n in memory.", " Args:\n bin_view (memoryview of bytearray) - The binary stream\n fx_offset (int) - Offset to the fixu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_attrcontent_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_attrcontent_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Helper function that creates a class for attribute contents. This function creates is a boilerplate to create all the expected methods of an attributes. The basic methods work in the same way for all classes. Once it executes it defines a dynamic class with the methods "__init__", "__repr__" and "__eq...
"Helper function that creates a class for attribute contents.\n\n This function creates is a boilerplate to create all the expected methods of\n an attributes. The basic methods work in the same way for all classes.\n\n Once it executes it defines a dynamic class with the methods \"__init__\",\n \"__repr__\...
107
false
jldantas/libmft
_create_attrcontent_class
30,182
LDU_FT/zengbin93/zb/make_zip
LDU_FT
[ "<BEGIN>\n## `layer_sizes`", "Arguments:\n X -- input dataset of shape (input size, number of examples)\n Y -- labels of shape (output size, number of examples)", " Returns:\n n_x -- the size of the input layer\n n_h -- the size of the hidden layer\n n_y -- the size of the output layer\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_zip API. 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 make_zip API. 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...
将目录中除zip之外的文件打包成zip文件(包括子文件夹) 空文件夹不会被打包 example ---------------- make_zip('results','zips//招标信息结果_2017-05-09.zip')
"将目录中除zip之外的文件打包成zip文件(包括子文件夹)\n 空文件夹不会被打包\n\n example\n ----------------\n make_zip('results','zips//招标信息结果_2017-05-09.zip')"
101
false
zengbin93/zb
make_zip
30,183
LDU_FT/bradmontgomery/django-redis-metrics/categorize_metrics
LDU_FT
[ "<BEGIN>\n## `categorize_metrics`", "Called only on a valid form, this method will place the chosen\n metrics in the given catgory.\n<END>", "<BEGIN>\n## `dedupe`", "Remove duplicates from a sequence (of hashable items) while maintaining\n order. NOTE: This only works if items in the list are hashab...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the categorize_metrics 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 categorize_metrics 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...
Called only on a valid form, this method will place the chosen metrics in the given catgory.
"Called only on a valid form, this method will place the chosen\n metrics in the given catgory."
122
false
bradmontgomery/django-redis-metrics
categorize_metrics
30,184
LDU_FT/miguelgrinberg/python-socketio/_data_is_binary
LDU_FT
[ "<BEGIN>\n## `get_participants`", "Return an iterable with the active participants in a room.\n<END>", "<BEGIN>\n## `connect`", "Register a client connection to a namespace.\n<END>", "<BEGIN>\n## `pre_disconnect`", "Put the client in the to-be-disconnected list.", " This allows the client data st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _data_is_binary API. 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 _data_is_binary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Check if the data contains binary components.
"Check if the data contains binary components."
172
false
miguelgrinberg/python-socketio
_data_is_binary
30,185
LDU_FT/kajala/django-jutil/_xml_tag_filter
LDU_FT
[ "<BEGIN>\n## `se_iban_load_map`", "Loads Swedish monetary institution codes in CSV format.\n :param filename: CSV file name of the BIC definitions.\n Columns: Institution Name, Range Begin-Range End (inclusive), Account digits count\n :return: List of (bank name, clearing code begin, clearing code end, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _xml_tag_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _xml_tag_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns tag name and optionally strips namespaces. :param el: Element :param strip_namespaces: Strip namespace prefix :return: str
"Returns tag name and optionally strips namespaces.\n :param el: Element\n :param strip_namespaces: Strip namespace prefix\n :return: str"
110
false
kajala/django-jutil
_xml_tag_filter
30,186
LDU_FT/blue-yonder/turbodbc/executemanycolumns
LDU_FT
[ "<BEGIN>\n## `cursor`", "Create a new ``Cursor`` instance associated with this ``Connection``", " :return: A new ``Cursor`` instance\n<END>", "<BEGIN>\n## `close`", "Close the connection and all associated cursors. This will implicitly\n roll back any uncommitted operations.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the executemanycolumns 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 executemanycolumns 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...
Execute an SQL command or query with multiple parameter sets that are passed in a column-wise fashion as opposed to the row-wise parameters in ``executemany()``. This function is a turbodbc-specific extension to PEP-249. :param sql: A (unicode) string that contains the SQL command or query. If ...
"Execute an SQL command or query with multiple parameter sets that are passed in\n a column-wise fashion as opposed to the row-wise parameters in ``executemany()``.\n This function is a turbodbc-specific extension to PEP-249.\n\n :param sql: A (unicode) string that contains the SQL command or query...
54
false
blue-yonder/turbodbc
executemanycolumns
30,187
LDU_FT/ntucllab/libact/next
LDU_FT
[ "<BEGIN>\n## `report_entry_label`", "Return the best label of the asked entry.", " Parameters\n ----------\n entry_id : int\n The index of the sample to ask.", " Returns\n -------\n label: object\n The best label of the given sample.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Taking the label and the reward value of last question and returns the next question to ask.
"Taking the label and the reward value of last question and returns\n the next question to ask."
128
false
ntucllab/libact
next
30,188
LDU_FT/klmitch/framer/to_frame
LDU_FT
[ "<BEGIN>\n## `factory`", "Generates and returns a callable suitable for passing as the\n ``protocol_factory`` parameter of the ``create_connection()``\n or ``create_server()`` loop methods. This class method\n performs some sanity checks on the arguments, and is preferred\n over using...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_frame API. 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 to_frame API. 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...
Extract a single frame from the data buffer. The consumed data should be removed from the buffer. If no complete frame can be read, must raise a ``NoFrames`` exception. :param data: A ``bytearray`` instance containing the data so far read. :param state: An instanc...
"Extract a single frame from the data buffer. The consumed\n data should be removed from the buffer. If no complete frame\n can be read, must raise a ``NoFrames`` exception.\n\n :param data: A ``bytearray`` instance containing the data so\n far read.\n :param state: An ...
77
false
klmitch/framer
to_frame
30,189
LDU_FT/WebarchivCZ/WA-KAT/_send_request
LDU_FT
[ "<BEGIN>\n## `_convert_metadata`", "Convert metadata from WA-KAT to Dublin core dictionary like structure,\n which may be easily converted to xml using :mod:`xmltodict` module.", " Args:\n data (dict): Nested WA-KAT data. See tests for example.", " Returns:\n dict: Dict in dublin core f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Send request to Seeder's API. Args: url_id (str): ID used as identification in Seeder. data (obj, default None): Optional parameter for data. json (obj, default None): Optional parameter for JSON body. req_type (fn, default None): Request method used to send/download the ...
"Send request to Seeder's API.\n\n Args:\n url_id (str): ID used as identification in Seeder.\n data (obj, default None): Optional parameter for data.\n json (obj, default None): Optional parameter for JSON body.\n req_type (fn, default None): Request method used to send/download the\n ...
401
false
WebarchivCZ/WA-KAT
_send_request
30,190
LDU_FT/jermnelson/flask-fedora-commons/as_json
LDU_FT
[ "<BEGIN>\n## `build_prefixes`", "Internal function takes a list of prefix, namespace uri tuples and\n generates a SPARQL PREFIX string.", " Args:\n namespaces(list): List of tuples, defaults to BIBFRAME and\n Schema.org", " Returns:\n string\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Method takes a entity uri and attempts to return the Fedora Object as a JSON-LD. Args: entity_url(str): Fedora Commons URL of Entity context(None): Returns JSON-LD with Context, default is None Returns: str: JSON-LD of Fedora Object
"Method takes a entity uri and attempts to return the Fedora Object\n as a JSON-LD.\n\n Args:\n entity_url(str): Fedora Commons URL of Entity\n context(None): Returns JSON-LD with Context, default is None\n\n Returns:\n str: JSON-LD of Fedora Object"
57
false
jermnelson/flask-fedora-commons
as_json
30,191
LDU_FT/dmwm/DBS/authInsert
LDU_FT
[ "<BEGIN>\n## `inputChecks`", "This is a function to check all the input for GET APIs.\n<END>", "<BEGIN>\n## `validateStringInput`", "To check if a string has the required format. This is only used for POST APIs.\n<END>", "<BEGIN>\n## `execute`", "Lists all primary datasets if pattern is not provided.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authInsert API. 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 authInsert API. 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...
Authorization function for general insert
"Authorization function for general insert"
352
false
dmwm/DBS
authInsert
30,192
LDU_FT/developmentseed/landsat-util/run
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 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...
Executes the pansharpen image processing. :returns: (String) the path to the processed image
"Executes the pansharpen image processing.\n :returns:\n (String) the path to the processed image"
152
false
developmentseed/landsat-util
run
30,193
LDU_FT/tarbell-project/tarbell/filter_files
LDU_FT
[ "<BEGIN>\n## `_get_or_create_config`", "Get or create a Tarbell configuration directory.\n<END>", "<BEGIN>\n## `slughifi`", "High Fidelity slugify - slughifi.py, v 0.1", " Examples :", " >>> text = 'C\\'est déjà l\\'été.'", " >>> slughifi(text)\n 'cest-deja-lete'", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Exclude files based on blueprint and project configuration as well as hidden files.
"Exclude files based on blueprint and project configuration as well as hidden files."
66
false
tarbell-project/tarbell
filter_files
30,194
LDU_FT/OLC-Bioinformatics/ConFindr/find_genusspecific_allele_list
LDU_FT
[ "<BEGIN>\n## `bbduk_trim`", "Wrapper for using bbduk to quality trim reads. Contains arguments used in OLC Assembly Pipeline, but these can\n be overwritten by using keyword parameters.\n :param forward_in: Forward reads you want to quality trim.\n :param returncmd: If set to true, function will return t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_genusspecific_allele_list 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 find_genusspecific_allele_list 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 new way of making our specific databases: Make our profiles file have lists of every gene/allele present for each genus instead of just excluding a few genes for each. This way, should have much smaller databases while managing to make ConFindr a decent bit faster (maybe) :param profiles_file: Path to pro...
"A new way of making our specific databases: Make our profiles file have lists of every gene/allele present for\n each genus instead of just excluding a few genes for each. This way, should have much smaller databases\n while managing to make ConFindr a decent bit faster (maybe)\n :param profiles_file: Path to...
56
false
OLC-Bioinformatics/ConFindr
find_genusspecific_allele_list
30,195
LDU_FT/yhat/db.py/all
LDU_FT
[ "<BEGIN>\n## `all`", "Returns entire table as a DataFrame. This is executing:\n SELECT\n *\n FROM\n <name_of_the_table>", " Examples\n --------\n >>> from db import DemoDB\n >>> db = DemoDB()\n >>> len(db.tables.Track.all())\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
Returns entire table as a DataFrame. This is executing: SELECT * FROM <name_of_the_table> Examples -------- >>> from db import DemoDB >>> db = DemoDB() >>> len(db.tables.Track.all()) 3503 >>> df = db.tables....
"Returns entire table as a DataFrame. This is executing:\n SELECT\n *\n FROM\n <name_of_the_table>\n\n Examples\n --------\n >>> from db import DemoDB\n >>> db = DemoDB()\n >>> len(db.tables.Track.all())\n 3503\n >>> df...
89
false
yhat/db.py
all
30,196
LDU_FT/fastavro/fastavro/prepare_timestamp_millis
LDU_FT
[ "<BEGIN>\n## `_read_decimal`", "based on https://github.com/apache/avro/pull/82/\n<END>", "<BEGIN>\n## `read_long`", "int and long values are written using variable-length, zig-zag\n coding.\n<END>", "<BEGIN>\n## `read_bytes`", "Bytes are encoded as a long followed by that many bytes of data.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_timestamp_millis 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 prepare_timestamp_millis API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Converts datetime.datetime object to int timestamp with milliseconds
"Converts datetime.datetime object to int timestamp with milliseconds"
136
false
fastavro/fastavro
prepare_timestamp_millis
30,197
LDU_FT/edx/pa11ycrawler/process_item
LDU_FT
[ "<BEGIN>\n## `make_parser`", "Returns an argparse instance for this script.\n<END>", "<BEGIN>\n## `main`", "Validates script arguments and calls the render_html() function with them.\n<END>", "<BEGIN>\n## `wcag_refs`", "Given a `code` from pa11y, return a list of the WCAG references.\n These references...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_item API. 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 process_item API. 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...
Stops processing item if we've already seen this URL before.
"Stops processing item if we've already seen this URL before."
56
false
edx/pa11ycrawler
process_item
30,198
LDU_FT/ironfroggy/straight.plugin/call
LDU_FT
[ "<BEGIN>\n## `produce`", "Produce a new set of plugins, treating the current set as plugin\n factories.\n<END>", "<BEGIN>\n## `call`", "Call a common method on all the plugins, if it exists.\n<END>", "<BEGIN>\n## `first`", "Call a common method on all the plugins, if it exists. Return the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. 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 call API. 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...
Call a common method on all the plugins, if it exists.
"Call a common method on all the plugins, if it exists."
11
false
ironfroggy/straight.plugin
call
30,199
LDU_FT/samjabrahams/anchorhub/_create_regex_if_none
LDU_FT
[ "<BEGIN>\n## `get`", "Extract the specified AnchorHub tag, as well as the portion of the\n line that should be converted from the ATX style Markdown header.", " :param file_lines: List of strings corresponding to lines in a text file\n :param index: index of file_lines corresponding to the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_regex_if_none API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_regex_if_none API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Private function. Checks to see if the local regular expression object has been created yet
"Private function. Checks to see if the local regular expression\n object has been created yet"
148
false
samjabrahams/anchorhub
_create_regex_if_none
30,200
LDU_FT/FlaskGuys/Flask-Imagine/_scale
LDU_FT
[ "<BEGIN>\n## `apply`", "Apply filter to resource\n :param resource: Image\n :return: Image\n<END>", "<BEGIN>\n## `get_item`", "Get resource item\n :param path: string\n :return: PIL.Image\n<END>", "<BEGIN>\n## `create_cached_item`", "Create cached resource item\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _scale API. 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 _scale API. 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 ...
Scale image :param resource: Image :return: Image
"Scale image\n :param resource: Image\n :return: Image"
66
false
FlaskGuys/Flask-Imagine
_scale
30,201
LDU_FT/quadrismegistus/prosodic/wordtokens
LDU_FT
[ "<BEGIN>\n## `loadLanguage`", "This function loads up a language configuration file and returns\n\tthe configuration to be passed to the syllabify function.\n<END>", "<BEGIN>\n## `syllabify`", "Syllabifies the word, given a language configuration loaded with loadLanguage.\n\t word is either a string of phon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wordtokens API. 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 wordtokens API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns a list of this object's Words in order of their appearance. Set flattenList to False to receive a list of lists of Words.
"Returns a list of this object's Words in order of their appearance.\n\t\tSet flattenList to False to receive a list of lists of Words."
80
false
quadrismegistus/prosodic
wordtokens
30,202
LDU_FT/klen/makesite/module
LDU_FT
[ "<BEGIN>\n## `migrate`", "Migration utils [create, run, undo, redo].\n<END>", "<BEGIN>\n## `update`", "Atomically update instance, setting field/value pairs from kwargs\n<END>", "<BEGIN>\n## `ls`", "List sites\n ----------", " Show list of installed sites.", " ::", " usage: makesite ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extracted ...
Copy module source to current directory.
"Copy module source to current directory."
54
false
klen/makesite
module
30,203
LDU_FT/instacart/jardin/find_by
LDU_FT
[ "<BEGIN>\n## `index_by`", "Returns a dict with a key for each value of `field` and the first record with that value as value.\n :param field: Name of the field to index by.\n :type field: string.\n<END>", "<BEGIN>\n## `destroy`", "Deletes the record. If the model has ``soft_delete`` activated, t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by API. 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 find_by API. 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 a single record matching the criteria in ``values`` found in the model's table in the replica database. :param values: Criteria to find the record. :type values: dict :returns: an instance of the model.
"Returns a single record matching the criteria in ``values`` found in the model's table in the replica database.\n\n :param values: Criteria to find the record.\n :type values: dict\n :returns: an instance of the model."
41
false
instacart/jardin
find_by
30,204
LDU_FT/python-astrodynamics/spacetrack/_iter_content_generator
LDU_FT
[ "<BEGIN>\n## `check_git_unchanged`", "Check git to avoid overwriting user changes.\n<END>", "<BEGIN>\n## `check_staged`", "Check if there are 'changes to be committed' in the index.\n<END>", "<BEGIN>\n## `_raise_for_status`", "Raise an appropriate error for a given response.", " Arguments:\n res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _iter_content_generator 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 _iter_content_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Generator used to yield 100 KiB chunks for a given response.
"Generator used to yield 100 KiB chunks for a given response."
71
false
python-astrodynamics/spacetrack
_iter_content_generator
30,205
LDU_FT/mozilla/mozdownload/handle_data
LDU_FT
[ "<BEGIN>\n## `parse_arguments`", "Setup argument parser for command line arguments.\n<END>", "<BEGIN>\n## `query_builds_by_revision`", "Retrieve build folders for a given revision with the help of Treeherder.", " :param revision: Revision of the build to download.\n :param job_type_name: Name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Callback when the data of a tag has been collected.
"Callback when the data of a tag has been collected."
43
false
mozilla/mozdownload
handle_data
30,206
LDU_FT/ucfopen/canvasapi/obj_or_id
LDU_FT
[ "<BEGIN>\n## `request`", "Make a request to the Canvas API and return the response.", " :param method: The HTTP method for the request.\n :type method: str\n :param endpoint: The endpoint to call.\n :type endpoint: str\n :param headers: Optional HTTP headers to be sent with th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obj_or_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obj_or_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 extract...
Accepts either an int (or long or str representation of an integer) or an object. If it is an int, return it. If it is an object and the object is of correct type, return the object's id. Otherwise, throw an exception. :param parameter: int, str, long, or object :param param_name: str :param ob...
"Accepts either an int (or long or str representation of an integer)\n or an object. If it is an int, return it. If it is an object and\n the object is of correct type, return the object's id. Otherwise,\n throw an exception.\n\n :param parameter: int, str, long, or object\n :param param_name: str\n :...
219
false
ucfopen/canvasapi
obj_or_id
30,207
LDU_FT/mgbarrero/xbob.db.atvskeystroke/checkfiles
LDU_FT
[ "<BEGIN>\n## `dumplist`", "Dumps lists of files based on your criteria\n<END>", "<BEGIN>\n## `checkfiles`", "Checks existence of files based on your criteria\n<END>", "<BEGIN>\n## `reverse`", "Returns a list of file database identifiers given the path stems\n<END>", "<BEGIN>\n## `path`", "Returns a li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkfiles API. 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 checkfiles API. 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...
Checks existence of files based on your criteria
"Checks existence of files based on your criteria"
45
false
mgbarrero/xbob.db.atvskeystroke
checkfiles
30,208
LDU_FT/kstaniek/condoor/emit_message
LDU_FT
[ "<BEGIN>\n## `_prepare_patterns`", "Return two dictionaries: compiled and text prompts.\n<END>", "<BEGIN>\n## `_platform_patterns`", "Return all the patterns for specific platform.\n<END>", "<BEGIN>\n## `pattern`", "Return the pattern defined by the key string specific to the platform.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emit_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emit_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Call the msg callback function with the message.
"Call the msg callback function with the message."
229
false
kstaniek/condoor
emit_message
30,209
LDU_FT/trendels/rhino/form
LDU_FT
[ "<BEGIN>\n## `parse_etag_header`", "Parse a header containing one or more ETags or a wildcard ('*').", " Returns the string '*' or a list of ETags as (weak, etag) tuples.\n `weak` is the prefix designating a weak ETag, or the empty string.\n `etag` is the ETag (including quotes) with the weak prefix st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the form API. 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 form API. 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...
Reads the request body and tries to parse it as a web form. Parsing is done using the stdlib's `cgi.FieldStorage` class which supports multipart forms (file uploads). Returns a `QueryDict` object holding the form fields. Uploaded files are represented as form fields with a 'filename' at...
"Reads the request body and tries to parse it as a web form.\n\n Parsing is done using the stdlib's `cgi.FieldStorage` class\n which supports multipart forms (file uploads).\n Returns a `QueryDict` object holding the form fields. Uploaded files\n are represented as form fields with a 'filena...
158
false
trendels/rhino
form
30,210
LDU_FT/miracle2k/flask-assets/convert_item_to_flask_url
LDU_FT
[ "<BEGIN>\n## `get_static_folder`", "Return the static folder of the given Flask app\n instance, or module/blueprint.", " In newer Flask versions this can be customized, in older\n ones (<=0.6) the folder is fixed.\n<END>", "<BEGIN>\n## `setdefault`", "We may not always be connected to an app, but w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_item_to_flask_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_item_to_flask_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Given a relative reference like `foo/bar.css`, returns the Flask static url. By doing so it takes into account blueprints, i.e. in the aformentioned example, ``foo`` may reference a blueprint. If an absolute path is given via ``filepath``, it will be used instead. This is needed...
"Given a relative reference like `foo/bar.css`, returns\n the Flask static url. By doing so it takes into account\n blueprints, i.e. in the aformentioned example,\n ``foo`` may reference a blueprint.\n\n If an absolute path is given via ``filepath``, it will be\n used instead. This is...
16
false
miracle2k/flask-assets
convert_item_to_flask_url
30,211
LDU_FT/mcs07/ChemDataExtractor/tokens
LDU_FT
[ "<BEGIN>\n## `train_punkt`", "Train Punkt sentence splitter using sentences in input.\n<END>", "<BEGIN>\n## `sentences`", "Read input document, and output sentences.\n<END>", "<BEGIN>\n## `_in_stoplist`", "Return True if the entity is in the stoplist.\n<END>", "<BEGIN>\n## `tag`", "Run individual chem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokens API. 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 tokens API. 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 a list of token Spans for this sentence.
"Return a list of token Spans for this sentence."
243
false
mcs07/ChemDataExtractor
tokens
30,212
LDU_FT/pybel/pybel-artifactory/get_knowledge_url
LDU_FT
[ "<BEGIN>\n## `convert_to_annotation`", "Convert a namespace file to an annotation file.\n<END>", "<BEGIN>\n## `history`", "Output the hashes for the annotation resources' versions.\n<END>", "<BEGIN>\n## `convert_to_namespace`", "Convert an annotation file to a namespace file.\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_knowledge_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_knowledge_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get a BEL knowledge file from Artifactory given the name and version. :param str module: :param str version: :rtype: str
"Get a BEL knowledge file from Artifactory given the name and version.\n\n :param str module:\n :param str version:\n :rtype: str"
39
false
pybel/pybel-artifactory
get_knowledge_url
30,213
LDU_FT/fr33jc/bang/find_component_tarball
LDU_FT
[ "<BEGIN>\n## `set_ssh_creds`", "Set ssh credentials into config.", " Note that these values might also be set in ~/.bangrc. If they are\n specified both in ~/.bangrc and as command-line arguments to ``bang``, then\n the command-line arguments win.\n<END>", "<BEGIN>\n## `run_bang`", "Runs bang with...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_component_tarball API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_component_tarball 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 True if the component tarball is found in the bucket. Otherwise, returns False.
"Returns True if the component tarball is found in the bucket.\n\n Otherwise, returns False."
336
false
fr33jc/bang
find_component_tarball
30,214
LDU_FT/reanahub/reana-commons/_publish
LDU_FT
[ "<BEGIN>\n## `click_table_printer`", "Generate space separated output for click commands.\n<END>", "<BEGIN>\n## `calculate_job_input_hash`", "Calculate md5 hash of job specification and workflow json.\n<END>", "<BEGIN>\n## `calculate_file_access_time`", "Calculate access times of files in workspace.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _publish API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _publish API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Publish, handling retries, a message in the queue. :param msg: Object which represents the message to be sent in the queue. Note that this object should be serializable in the configured format (by default JSON).
"Publish, handling retries, a message in the queue.\n\n :param msg: Object which represents the message to be sent in\n the queue. Note that this object should be serializable in the\n configured format (by default JSON)."
45
false
reanahub/reana-commons
_publish
30,215
LDU_FT/bintoro/overloading.py/type_complexity
LDU_FT
[ "<BEGIN>\n## `overload`", "May be used as a shortcut for ``overloaded`` and ``overloads(f)``\n when the overloaded function `f` can be automatically identified.\n<END>", "<BEGIN>\n## `overloaded`", "Introduces a new overloaded function and registers its first implementation.\n<END>", "<BEGIN>\n## `regist...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the type_complexity API. 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 type_complexity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Computes an indicator for the complexity of `type_`. If the return value is 0, the supplied type is not parameterizable. Otherwise, set bits in the return value denote the following features: - bit 0: The type could be parameterized but is not. - bit 1: The type represents an iterable container with 1 ...
"Computes an indicator for the complexity of `type_`.\n\n If the return value is 0, the supplied type is not parameterizable.\n Otherwise, set bits in the return value denote the following features:\n - bit 0: The type could be parameterized but is not.\n - bit 1: The type represents an iterable container w...
29
false
bintoro/overloading.py
type_complexity
30,216
LDU_FT/APSL/transmanager/update_model_languages
LDU_FT
[ "<BEGIN>\n## `create_translation_tasks`", "Creates the translations tasks from the instance and its translatable children", " :param instance:\n :return:\n<END>", "<BEGIN>\n## `update_task`", "Updates a task as done if we have a new value for this alternative language", " :param diffe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_model_languages 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 update_model_languages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Update the TransModelLanguages model with the selected languages :param model_class: :param languages: :return:
"Update the TransModelLanguages model with the selected languages\n\n :param model_class:\n :param languages:\n :return:"
92
false
APSL/transmanager
update_model_languages
30,217
LDU_FT/shad7/tvrenamer/_make_valid_filename
LDU_FT
[ "<BEGIN>\n## `execute`", "Renames a file based on the name generated using metadata.", " :param str filename: absolute path and filename of original file\n :param str formatted_name: absolute path and new filename\n<END>", "<BEGIN>\n## `get_series_by_name`", "Perform lookup for series", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_valid_filename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_valid_filename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Takes a string and makes it into a valid filename. replaces accented characters with ASCII equivalent, and removes characters that cannot be converted sensibly to ASCII. additional characters that will removed. This will not touch the extension separator: >>> _make_valid_filename("T.est.avi")...
"Takes a string and makes it into a valid filename.\n\n replaces accented characters with ASCII equivalent, and\n removes characters that cannot be converted sensibly to ASCII.\n\n additional characters that will removed. This\n will not touch the extension separator:\n\n >>> _make_valid_filename(\"T...
135
false
shad7/tvrenamer
_make_valid_filename
30,218
LDU_FT/RiotGames/cloud-inquisitor/run
LDU_FT
[ "<BEGIN>\n## `options`", "Returns metadata information required for User Creation\n<END>", "<BEGIN>\n## `run`", "Update the cache of all DNS entries and perform checks", " Args:\n *args: Optional list of arguments\n **kwargs: Optional list of keyword arguments", " Retur...
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...
Main execution point for the auditor Args: *args: **kwargs: Returns: `None`
"Main execution point for the auditor\n\n Args:\n *args:\n **kwargs:\n\n Returns:\n `None`"
693
false
RiotGames/cloud-inquisitor
run
30,219
LDU_FT/llllllllll/codetransformer/_check_missing_slots
LDU_FT
[ "<BEGIN>\n## `_new_lnotab`", "The updated lnotab after the instructions have been transformed.", " Parameters\n ----------\n instrs : iterable[Instruction]\n The new instructions.\n lnotab : dict[Instruction -> int]\n The lnotab for the old code object.", " Returns\n -------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_missing_slots 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 _check_missing_slots API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Check that all slots have been initialized when a custom __init__ method is provided. Parameters ---------- ob : immutable The instance that was just initialized. Raises ------ TypeError Raised when the instance has not set values that are named in the __slots__.
"Check that all slots have been initialized when a custom __init__ method\n is provided.\n\n Parameters\n ----------\n ob : immutable\n The instance that was just initialized.\n\n Raises\n ------\n TypeError\n Raised when the instance has not set values that are named in the\n ...
223
false
llllllllll/codetransformer
_check_missing_slots
30,220
LDU_FT/prompt-toolkit/pymux/read_message_from_pipe
LDU_FT
[ "<BEGIN>\n## `read_message_from_pipe`", "(coroutine)\n Read message from this pipe. Return text.\n<END>", "<BEGIN>\n## `read_message_bytes_from_pipe`", "(coroutine)\n Read message from this pipe. Return bytes.\n<END>", "<BEGIN>\n## `wait_for_event`", "Wraps a win32 event into a `Future` and wait for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_message_from_pipe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_message_from_pipe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
(coroutine) Read message from this pipe. Return text.
"(coroutine)\n Read message from this pipe. Return text."
147
false
prompt-toolkit/pymux
read_message_from_pipe
30,221
LDU_FT/ehuggett/send-cli/api_params
LDU_FT
[ "<BEGIN>\n## `api_params`", "Change the download limit for a file hosted on a Send Server\n<END>", "<BEGIN>\n## `api_download`", "Given a Send url, download and return the encrypted data and metadata\n<END>", "<BEGIN>\n## `sign_nonce`", "sign the server nonce from the WWW-Authenticate header with an authK...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_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 extrac...
Change the download limit for a file hosted on a Send Server
"Change the download limit for a file hosted on a Send Server"
22
false
ehuggett/send-cli
api_params
30,222
LDU_FT/oz123/blogit/add_numbers
LDU_FT
[ "<BEGIN>\n## `add_numbers`", "Add two numbers server side, ridiculous but well...\n<END>", "<BEGIN>\n## `find_new_posts_and_pages`", "Walk content dir, put each post and page in the database\n<END>", "<BEGIN>\n## `_get_last_entries`", "get all entries and the last qty entries\n<END>", "<BEGIN>\n## `upda...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_numbers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_numbers API. 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...
Add two numbers server side, ridiculous but well...
"Add two numbers server side, ridiculous but well..."
17
false
oz123/blogit
add_numbers
30,223
LDU_FT/aio-libs/aioodbc/tables
LDU_FT
[ "<BEGIN>\n## `close`", "Close the cursor now (rather than whenever __del__ is called).", " The cursor will be unusable from this point forward; an Error\n (or subclass) exception will be raised if any operation is attempted\n with the cursor.\n<END>", "<BEGIN>\n## `execute`", "Executes ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tables API. 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 tables API. 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 ...
Creates a result set of tables in the database that match the given criteria. :param table: the table tname :param catalog: the catalog name :param schema: the schmea name :param tableType: one of TABLE, VIEW, SYSTEM TABLE ...
"Creates a result set of tables in the database that match the\n given criteria.\n\n :param table: the table tname\n :param catalog: the catalog name\n :param schema: the schmea name\n :param tableType: one of TABLE, VIEW, SYSTEM TABLE ..."
56
false
aio-libs/aioodbc
tables
30,224
LDU_FT/alexmojaki/littleutils/date_to_datetime
LDU_FT
[ "<BEGIN>\n## `helpful_error_list_get`", ">>> helpful_error_list_get([1, 2, 3], 1)\n 2\n >>> helpful_error_list_get([1, 2, 3], 4)\n Traceback (most recent call last):\n ...\n IndexError: Tried to access 4, length is only 3\n<END>", "<BEGIN>\n## `only`", ">>> only([7])\n 7\n >>> only([1, 2]...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the date_to_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the date_to_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
>>> date_to_datetime(date(2000, 1, 2)) datetime.datetime(2000, 1, 2, 0, 0) >>> date_to_datetime(datetime(2000, 1, 2, 3, 4, 5)) datetime.datetime(2000, 1, 2, 3, 4, 5)
">>> date_to_datetime(date(2000, 1, 2))\n datetime.datetime(2000, 1, 2, 0, 0)\n >>> date_to_datetime(datetime(2000, 1, 2, 3, 4, 5))\n datetime.datetime(2000, 1, 2, 3, 4, 5)"
34
false
alexmojaki/littleutils
date_to_datetime
30,225
LDU_FT/Jarn/jarn.mkrelease/encode
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 encode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Encode to specified encoding. ``encoding`` defaults to the preferred encoding. ``errors`` defaults to the preferred error handler.
"Encode to specified encoding.\n\n ``encoding`` defaults to the preferred encoding.\n ``errors`` defaults to the preferred error handler."
46
false
Jarn/jarn.mkrelease
encode
30,226
LDU_FT/mdickinson/refcycle/_raw
LDU_FT
[ "<BEGIN>\n## `restore_gc_state`", "Restore the garbage collector state on leaving the with block.\n<END>", "<BEGIN>\n## `children`", "Return the list of immediate children of the given vertex.\n<END>", "<BEGIN>\n## `parents`", "Return the list of immediate parents of this vertex.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _raw API. 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 _raw API. 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...
Private constructor for direct construction of an ObjectGraph from its attributes. vertices is the collection of vertices out_edges and in_edges map vertices to lists of edges head and tail map edges to objects.
"Private constructor for direct construction\n of an ObjectGraph from its attributes.\n\n vertices is the collection of vertices\n out_edges and in_edges map vertices to lists of edges\n head and tail map edges to objects."
98
false
mdickinson/refcycle
_raw
30,227
LDU_FT/aio-libs/aiodocker/build
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 build API. 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 build API. 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...
Build an image given a remote Dockerfile or a file object with a Dockerfile inside Args: path_dockerfile: path within the build context to the Dockerfile remote: a Git repository URI or HTTP/HTTPS context URI quiet: suppress verbose build output nocache: ...
"Build an image given a remote Dockerfile\n or a file object with a Dockerfile inside\n\n Args:\n path_dockerfile: path within the build context to the Dockerfile\n remote: a Git repository URI or HTTP/HTTPS context URI\n quiet: suppress verbose build output\n n...
108
false
aio-libs/aiodocker
build
30,228
LDU_FT/mikedh/trimesh/update_faces
LDU_FT
[ "<BEGIN>\n## `face_adjacency`", "Returns an (n,2) list of face indices.\n Each pair of faces in the list shares an edge, making them adjacent.", " Parameters\n ----------\n faces : (n, 3) int, or None\n List of vertex indices representing triangles\n mesh : Trimesh object\n If passe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_faces API. 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 update_faces API. 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...
In many cases, we will want to remove specific faces. However, there is additional bookkeeping to do this cleanly. This function updates the set of faces with a validity mask, as well as keeping track of normals and colors. Parameters --------- valid : (m) int or (len(se...
"In many cases, we will want to remove specific faces.\n However, there is additional bookkeeping to do this cleanly.\n This function updates the set of faces with a validity mask,\n as well as keeping track of normals and colors.\n\n Parameters\n ---------\n valid : (m) int or...
2,650
true
mikedh/trimesh
update_faces
30,229
LDU_FT/pyca/pynacl/crypto_secretbox
LDU_FT
[ "<BEGIN>\n## `ensure`", "Return if a condition is true, otherwise raise a caller-configurable\n :py:class:`Exception`\n :param bool cond: the condition to be checked\n :param sequence args: the arguments to be passed to the exception's\n constructor\n The only accepted named p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crypto_secretbox API. 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 crypto_secretbox API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Encrypts and returns the message ``message`` with the secret ``key`` and the nonce ``nonce``. :param message: bytes :param nonce: bytes :param key: bytes :rtype: bytes
"Encrypts and returns the message ``message`` with the secret ``key`` and\n the nonce ``nonce``.\n\n :param message: bytes\n :param nonce: bytes\n :param key: bytes\n :rtype: bytes"
266
false
pyca/pynacl
crypto_secretbox
30,230
LDU_FT/paylogic/halogen/_get_context
LDU_FT
[ "<BEGIN>\n## `to_dict`", "Return a dictionary representation of the error.", " :return: A dict with the keys:\n - attr: Attribute which contains the error, or \"<root>\" if it refers to the schema root.\n - errors: A list of dictionary representations of the errors.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_context API. 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_context API. 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...
Prepare a context for the serialization. :param argspec: The argspec of the serialization function. :param kwargs: Dict with context :return: Keywords arguments that function can accept.
"Prepare a context for the serialization.\n\n :param argspec: The argspec of the serialization function.\n :param kwargs: Dict with context\n :return: Keywords arguments that function can accept."
51
false
paylogic/halogen
_get_context
30,231
LDU_FT/mcs07/PubChemPy/bonds
LDU_FT
[ "<BEGIN>\n## `request`", "Construct API request from parameters and return the response.", " Full specification at http://pubchem.ncbi.nlm.nih.gov/pug_rest/PUG_REST.html\n<END>", "<BEGIN>\n## `get`", "Request wrapper that automatically handles async requests.\n<END>", "<BEGIN>\n## `get_json`", "Reque...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bonds API. 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 bonds API. 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...
List of :class:`Bonds <pubchempy.Bond>` between :class:`Atoms <pubchempy.Atom>` in this Compound.
"List of :class:`Bonds <pubchempy.Bond>` between :class:`Atoms <pubchempy.Atom>` in this Compound."
83
false
mcs07/PubChemPy
bonds
30,232
LDU_FT/kragniz/python-etcd3/replace
LDU_FT
[ "<BEGIN>\n## `new_event`", "Wrap a raw gRPC event in a friendlier containing class.", " This picks the appropriate class from one of PutEvent or DeleteEvent and\n returns a new instance.\n<END>", "<BEGIN>\n## `acquire`", "Acquire the lock.", " :params timeout: Maximum time to wait before retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace API. 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 replace API. 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...
Atomically replace the value of a key with a new value. This compares the current value of a key, then replaces it with a new value if it is equal to a specified value. This operation takes place in a transaction. :param key: key in etcd to replace :param initial_value: old val...
"Atomically replace the value of a key with a new value.\n\n This compares the current value of a key, then replaces it with a new\n value if it is equal to a specified value. This operation takes place\n in a transaction.\n\n :param key: key in etcd to replace\n :param initial_value:...
113
false
kragniz/python-etcd3
replace
30,233
LDU_FT/chinapnr/fishbase/get_random_areanote
LDU_FT
[ "<BEGIN>\n## `string`", "获取一个字符串的 MD5 值", " :param:\n * s: (string) 需要进行 hash 的字符串\n * salt: (string) 随机字符串,默认为 None\n :return:\n * result: (string) 32 位小写 MD5 值\n<END>", "<BEGIN>\n## `file`", "获取一个文件的 MD5 值", " :param:\n * filename: (string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_random_areanote 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 get_random_areanote 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...
省份行政区划代码,返回下辖的随机地区名称 :param: * zone: (string) 省份行政区划代码 比如 '310000' :returns: * random_areanote: (string) 省份下辖随机地区名称 举例如下:: print('--- fish_data get_random_areanote demo ---') print(cardbin_get_bank_by_name(310000)) print('---') 输出结果:: --- fish_data g...
"省份行政区划代码,返回下辖的随机地区名称\n\n :param:\n * zone: (string) 省份行政区划代码 比如 '310000'\n\n :returns:\n * random_areanote: (string) 省份下辖随机地区名称\n\n 举例如下::\n\n print('--- fish_data get_random_areanote demo ---')\n print(cardbin_get_bank_by_name(310000))\n print('---')\n\n 输出结果::\n\n ...
448
false
chinapnr/fishbase
get_random_areanote
30,234
LDU_FT/esterhui/pypu/update_exif_GEXIV2
LDU_FT
[ "<BEGIN>\n## `_connectToWP`", "Establish the actual TCP connection to Flickr\n<END>", "<BEGIN>\n## `_readMetaAndContent`", "Reads meta data and content from file into WordPressPost() class.\n Returns the class", " If error, returns None\n<END>", "<BEGIN>\n## `GetStatus`", "Scans through al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_exif_GEXIV2 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 update_exif_GEXIV2 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...
Transfers oldfile's exif to newfile's exif and updates the width/height EXIF fields
"Transfers oldfile's exif to newfile's exif and\n updates the width/height EXIF fields"
113
false
esterhui/pypu
update_exif_GEXIV2
30,235
LDU_FT/gitpython-developers/smmap/begin_access
LDU_FT
[ "<BEGIN>\n## `_copy_from`", "Copy all data from rhs into this instance, handles usage count\n<END>", "<BEGIN>\n## `use_region`", "Assure we point to a window which allows access to the given offset into the file", " :param offset: absolute offset in bytes into the file\n :param size: amount of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the begin_access API. 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 begin_access API. 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...
Call this before the first use of this instance. The method was already called by the constructor in case sufficient information was provided. For more information no the parameters, see the __init__ method :param path: if cursor is None the existing one will be used. :return: True if t...
"Call this before the first use of this instance. The method was already\n called by the constructor in case sufficient information was provided.\n\n For more information no the parameters, see the __init__ method\n :param path: if cursor is None the existing one will be used.\n :return: Tru...
49
false
gitpython-developers/smmap
begin_access
30,236
LDU_FT/aio-libs/aiodocker/delete
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 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 ...
Remove a service Args: service_id: ID or name of the service Returns: True if successful
"Remove a service\n\n Args:\n service_id: ID or name of the service\n\n Returns:\n True if successful"
108
false
aio-libs/aiodocker
delete
30,237
LDU_FT/ace0/pyrelic/_getCachedValue
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 _getCachedValue API. 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 _getCachedValue API. 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...
Retrieves a value from obj.cached (if not None) or calls @relicFunc and caches the result (of @resultType) int obj.cached. This is a common implementation for orderG1/G2/Gt and generatotG1/G2/Gt
"Retrieves a value from obj.cached (if not None) or calls @relicFunc and \n caches the result (of @resultType) int obj.cached.\n\n This is a common implementation for orderG1/G2/Gt and generatotG1/G2/Gt"
109
false
ace0/pyrelic
_getCachedValue
30,238
LDU_FT/all-umass/graphs/classify_lgc
LDU_FT
[ "<BEGIN>\n## `random_graph`", "Random graph generator. Does not generate self-edges.\n out_degree : array-like of ints, controlling the out degree of each vertex.\n<END>", "<BEGIN>\n## `urquhart_graph`", "Urquhart graph: made from the 2 shortest edges of each Delaunay triangle.\n<END>", "<BEGIN>\n## `isoma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the classify_lgc API. 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 classify_lgc API. 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...
Iterative label spreading for semi-supervised classification. partial_labels: (n,) array of integer labels, -1 for unlabeled. kernel: one of {'none', 'rbf', 'binary'}, for reweighting edges. alpha: scalar, clamping factor. tol: scalar, convergence tolerance. max_iter: integer, cap on the number of ...
"Iterative label spreading for semi-supervised classification.\n\n partial_labels: (n,) array of integer labels, -1 for unlabeled.\n kernel: one of {'none', 'rbf', 'binary'}, for reweighting edges.\n alpha: scalar, clamping factor.\n tol: scalar, convergence tolerance.\n max_iter: integer, cap on the num...
167
false
all-umass/graphs
classify_lgc
30,239
LDU_FT/IdentityPython/pysaml2/subjects
LDU_FT
[ "<BEGIN>\n## `add_vo_information_about_user`", "Add information to the knowledge I have about the user. This is\n for Virtual organizations.", " :param name_id: The subject identifier\n :return: A possibly extended knowledge.\n<END>", "<BEGIN>\n## `create_authn_request`", "Creates an au...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subjects API. 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 subjects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return identifiers for all the subjects that are in the cache. :return: list of subject identifiers
"Return identifiers for all the subjects that are in the cache.\n\n :return: list of subject identifiers"
738
false
IdentityPython/pysaml2
subjects
30,240
LDU_FT/ChristopherRabotin/bungiesearch/get_model_indices
LDU_FT
[ "<BEGIN>\n## `update_index`", "Updates the index for the provided model_items.\n :param model_items: a list of model_items (django Model instances, or proxy instances) which are to be indexed/updated or deleted.\n If action is 'index', the model_items must be serializable objects. If action is 'delete', the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_indices API. 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_model_indices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns the list of model indices (i.e. ModelIndex objects) defined for this index. :param index: index name.
"Returns the list of model indices (i.e. ModelIndex objects) defined for this index.\n :param index: index name."
46
false
ChristopherRabotin/bungiesearch
get_model_indices
30,241
LDU_FT/seibert-media/pyxelletter/send_letter
LDU_FT
[ "<BEGIN>\n## `send_letter`", "Send pdf-File\n :param file_list: list of files\n :param destination: country code of the destination country\n :param duplex: send letter in duplex\n :param color: send letter with color or black/white\n :param user_transaction: custom transaction ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_letter API. 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 send_letter API. 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...
Send pdf-File :param file_list: list of files :param destination: country code of the destination country :param duplex: send letter in duplex :param color: send letter with color or black/white :param user_transaction: custom transaction id :param test_environment: Enabl...
"Send pdf-File\n :param file_list: list of files\n :param destination: country code of the destination country\n :param duplex: send letter in duplex\n :param color: send letter with color or black/white\n :param user_transaction: custom transaction id\n :param test_environment...
10
false
seibert-media/pyxelletter
send_letter
30,242
LDU_FT/mwouts/jupytext/pep8_lines_between_cells
LDU_FT
[ "<BEGIN>\n## `is_magic`", "Is the current line a (possibly escaped) Jupyter magic, and should it be commented?\n<END>", "<BEGIN>\n## `metadata_filter_as_dict`", "Return the metadata filter represented as either None (no filter),\n or a dictionary with at most two keys: 'additional' and 'excluded',\n whi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pep8_lines_between_cells 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 pep8_lines_between_cells API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
How many blank lines should be added between the two python paragraphs to make them pep8?
"How many blank lines should be added between the two python paragraphs to make them pep8?"
229
false
mwouts/jupytext
pep8_lines_between_cells
30,243
LDU_FT/eaton-lab/toytree/get_descendants
LDU_FT
[ "<BEGIN>\n## `_translate_nodes`", "Convert node names into node instances...\n<END>", "<BEGIN>\n## `add_child`", "Adds a new child to this node. If child node is not suplied\n as an argument, a new node instance will be created.", " Parameters\n ----------", " child: \n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_descendants API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_descendants API. 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 all (leaves and internal) descendant nodes.
"Returns a list of all (leaves and internal) descendant nodes."
332
false
eaton-lab/toytree
get_descendants
30,244
LDU_FT/partofthething/ace/build_model_from_txt
LDU_FT
[ "<BEGIN>\n## `run_friedman82_super`", "Run Friedman's test of fixed-span smoothers from Figure 2b.\n<END>", "<BEGIN>\n## `validate_supersmoother_bass`", "Validate the supersmoother with extra bass.\n<END>", "<BEGIN>\n## `unsort_vector`", "Upermutate 1-D data that is sorted by indices_of_increasing.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_model_from_txt 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 build_model_from_txt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Construct the model and perform regressions based on data in a txt file. Parameters ---------- fname : str The name of the file to load.
"Construct the model and perform regressions based on data in a txt file.\n\n Parameters\n ----------\n fname : str\n The name of the file to load."
115
false
partofthething/ace
build_model_from_txt
30,245
LDU_FT/sdispater/cleo/spin
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse the given console command definition into a dict.", " :param expression: The expression to parse\n :type expression: str", " :rtype: dict\n<END>", "<BEGIN>\n## `_parameters`", "Extract all of the parameters from the tokens.", " :param tokens: The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spin API. 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 spin API. 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...
Automatically spin a progress indicator.
"Automatically spin a progress indicator."
29
false
sdispater/cleo
spin
30,246
LDU_FT/Kaggle/kaggle-api/kernel_output
LDU_FT
[ "<BEGIN>\n## `language`", "Sets the language of this KernelPushRequest.", " The language that the kernel is written in # noqa: E501", " :param language: The language of this KernelPushRequest. # noqa: E501\n :type: str\n<END>", "<BEGIN>\n## `kernel_type`", "Sets the kernel_type of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kernel_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kernel_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Download the latest output from a kernel # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.kernel_output(user_name, kernel_slug, async_req=True) >>> result = thread.get() :par...
"Download the latest output from a kernel # noqa: E501\n\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.kernel_output(user_name, kernel_slug, async_req=True)\n >>> result = thread.get()\n\n ...
304
false
Kaggle/kaggle-api
kernel_output
30,247
LDU_FT/inspirehep/inspire-utils/dedupe_list_of_dicts
LDU_FT
[ "<BEGIN>\n## `dedupe_list_of_dicts`", "Remove duplicates from a list of dictionaries preserving the order.", " We can't use the generic list helper because a dictionary isn't hashable.\n Adapted from http://stackoverflow.com/a/9427216/374865.\n<END>", "<BEGIN>\n## `force_list`", "Force ``data`` to bec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dedupe_list_of_dicts 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 dedupe_list_of_dicts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Remove duplicates from a list of dictionaries preserving the order. We can't use the generic list helper because a dictionary isn't hashable. Adapted from http://stackoverflow.com/a/9427216/374865.
"Remove duplicates from a list of dictionaries preserving the order.\n\n We can't use the generic list helper because a dictionary isn't hashable.\n Adapted from http://stackoverflow.com/a/9427216/374865."
65
false
inspirehep/inspire-utils
dedupe_list_of_dicts
30,248
LDU_FT/learningequality/ricecooker/open
LDU_FT
[ "<BEGIN>\n## `_write_to_zip`", "_write_to_zip: Write file to zip\n Args:\n path: (str) where in zip to write file\n contents: (str) contents of file to write\n Returns: None\n<END>", "<BEGIN>\n## `_commit`", "_commit: Adds folder/file to map\n Arg...
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...
open: Opens zipfile to write to Args: None Returns: None
"open: Opens zipfile to write to\n Args: None\n Returns: None"
364
false
learningequality/ricecooker
open
30,249
LDU_FT/eternnoir/pyTelegramBotAPI/register_next_step_handler_by_chat_id
LDU_FT
[ "<BEGIN>\n## `split_string`", "Splits one string into multiple strings, with a maximum amount of `chars_per_string` characters per string.\n This is very useful for splitting one giant message into multiples.", " :param text: The text to split\n :param chars_per_string: The number of characters per lin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_next_step_handler_by_chat_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_next_step_handler_by_chat_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
Registers a callback function to be notified when new message arrives after `message`. Warning: In case `callback` as lambda function, saving next step handlers will not work. :param chat_id: The chat for which we want to handle new message. :param callback: The callback function which ...
"Registers a callback function to be notified when new message arrives after `message`.\n\n Warning: In case `callback` as lambda function, saving next step handlers will not work.\n\n :param chat_id: The chat for which we want to handle new message.\n :param callback: The callback function ...
187
false
eternnoir/pyTelegramBotAPI
register_next_step_handler_by_chat_id
30,250
LDU_FT/Spinmob/spinmob/free
LDU_FT
[ "<BEGIN>\n## `get_data`", "Currently pretends to talk to an instrument and get back the magnitud\n and phase of the measurement.\n<END>", "<BEGIN>\n## `Set`", "Sets the key-value pair and dumps to the preferences file.\n<END>", "<BEGIN>\n## `MakeDir`", "Creates a directory of the specified path in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the free API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the free API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Turns a constant into a parameter. As arguments, parameters must be strings. As keyword arguments, they can be set at the same time.
"Turns a constant into a parameter. As arguments, parameters must be strings.\n As keyword arguments, they can be set at the same time."
745
false
Spinmob/spinmob
free
30,251
LDU_FT/acutesoftware/AIKIF/get_column_list_from_select
LDU_FT
[ "<BEGIN>\n## `where_am_i`", "high level function that can estimate where user is based \n on predefined setups.\n<END>", "<BEGIN>\n## `dump_all`", "prints all attributes and returns them as a dictionary \n (mainly for testing how it will all integrate)\n<END>", "<BEGIN>\n## `summarise`", "extrap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_column_list_from_select 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_column_list_from_select API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
takes the list of columns as a string (via SELECT statement in DB) and produces a lst of columns
"takes the list of columns as a string (via SELECT statement in DB)\n and produces a lst of columns"
486
false
acutesoftware/AIKIF
get_column_list_from_select
30,252
LDU_FT/carljm/django-adminfiles/slug
LDU_FT
[ "<BEGIN>\n## `get_uploads`", "Return a generator yielding uploads referenced in the given text.\n<END>", "<BEGIN>\n## `parse_match`", "Accept an re match object resulting from an ``UPLOAD_RE`` match\n and return a two-tuple where the first element is the\n corresponding ``FileUpload`` and the second is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slug API. 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 slug API. 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 slug suitable for accessing this view in a URLconf.
"Return slug suitable for accessing this view in a URLconf."
67
false
carljm/django-adminfiles
slug
30,253
LDU_FT/nicfit/MishMash/mostCommonItem
LDU_FT
[ "<BEGIN>\n## `iterall`", "Iterate over all Library rows found in `session`.\n :param names: Optional sequence of names to filter on.\n<END>", "<BEGIN>\n## `search`", "Naive search of the database for `query`.", " :return: A dict with keys 'artists', 'albums', and 'tracks'. Each containing a list\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mostCommonItem API. 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 mostCommonItem API. 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...
Choose the most common item from the list, or the first item if all items are unique.
"Choose the most common item from the list, or the first item if all\n items are unique."
11
false
nicfit/MishMash
mostCommonItem
30,254
LDU_FT/boundlessgeo/lib-qgis-commons/layerFromName
LDU_FT
[ "<BEGIN>\n## `get_oauth_authcfg`", "Check if the given authcfg_id (or the default) exists, and if it's valid\n OAuth2, return the configuration or None\n<END>", "<BEGIN>\n## `setup_oauth`", "Setup oauth configuration to access the BCS API,\n return authcfg_id on success, None on failure\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the layerFromName API. 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 layerFromName API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns the layer from the current project with the passed name Raises WrongLayerNameException if no layer with that name is found If several layers with that name exist, only the first one is returned
"Returns the layer from the current project with the passed name\n Raises WrongLayerNameException if no layer with that name is found\n If several layers with that name exist, only the first one is returned"
72
false
boundlessgeo/lib-qgis-commons
layerFromName
30,255
LDU_FT/quadrismegistus/prosodic/findattr
LDU_FT
[ "<BEGIN>\n## `loadLanguage`", "This function loads up a language configuration file and returns\n\tthe configuration to be passed to the syllabify function.\n<END>", "<BEGIN>\n## `syllabify`", "Syllabifies the word, given a language configuration loaded with loadLanguage.\n\t word is either a string of phon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the findattr API. 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 findattr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns the attribute named {attr}, from either the self or the self's parents (recursively).
"Returns the attribute named {attr}, from either the self or the self's parents (recursively)."
80
false
quadrismegistus/prosodic
findattr
30,256
LDU_FT/inveniosoftware/invenio-assets/load_entrypoint
LDU_FT
[ "<BEGIN>\n## `setup`", "Setup filter (only called when filter is actually used).\n<END>", "<BEGIN>\n## `setup`", "Initialize filter just before it will be used.\n<END>", "<BEGIN>\n## `collect_staticroot_removal`", "Remove collect's static root folder from list.\n<END>", "<BEGIN>\n## `init_app`", "Init...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_entrypoint API. 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 load_entrypoint API. 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...
Load entrypoint. :param entry_point_group: A name of entry point group used to load ``webassets`` bundles. .. versionchanged:: 1.0.0b2 The *entrypoint* has been renamed to *entry_point_group*.
"Load entrypoint.\n\n :param entry_point_group: A name of entry point group used to load\n ``webassets`` bundles.\n\n .. versionchanged:: 1.0.0b2\n The *entrypoint* has been renamed to *entry_point_group*."
22
false
inveniosoftware/invenio-assets
load_entrypoint
30,257
LDU_FT/pallets/werkzeug/_hash_internal
LDU_FT
[ "<BEGIN>\n## `mimetype`", "The mimetype (content type without charset etc.)\n<END>", "<BEGIN>\n## `mimetype_params`", "The mimetype parameters as dict. For example if the\n content type is ``text/html; charset=utf-8`` the params would be\n ``{'charset': 'utf-8'}``.", " .. versionadded::...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _hash_internal API. 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 _hash_internal API. 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...
Internal password hash helper. Supports plaintext without salt, unsalted and salted passwords. In case salted passwords are used hmac is used.
"Internal password hash helper. Supports plaintext without salt,\n unsalted and salted passwords. In case salted passwords are used\n hmac is used."
541
false
pallets/werkzeug
_hash_internal
30,258
LDU_FT/dbarsam/python-vsgen/debug
LDU_FT
[ "<BEGIN>\n## `_import`", "Internal method to import instance variables data from a dictionary", " :param dict datadict: The dictionary containing variables values.\n<END>", "<BEGIN>\n## `from_section`", "Creates a :class:`~vsgen.project.VSGProject` from a :class:`~configparser.ConfigParser` section."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the debug API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the debug API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Convenience function to log a message at the DEBUG level. :param name: The name of the logger instance in the VSG namespace (VSG.<name>) :param message: A message format string. :param args: The arguments that are are merged into msg using the string formatting operator. :..note: ...
"Convenience function to log a message at the DEBUG level.\n\n :param name: The name of the logger instance in the VSG namespace (VSG.<name>)\n :param message: A message format string.\n :param args: The arguments that are are merged into msg using the string formatting operator.\n :.....
101
false
dbarsam/python-vsgen
debug
30,259
LDU_FT/esheldon/fitsio/write
LDU_FT
[ "<BEGIN>\n## `is_little_endian`", "Return True if array is little endian, False otherwise.", " Parameters\n ----------\n array: numpy array\n A numerical python array.", " Returns\n -------\n Truth value:\n True for little-endian", " Notes\n -----\n Strings are neith...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Write data into this HDU parameters ---------- data: ndarray or list of ndarray A numerical python array. Should be an ordinary array for image HDUs, should have fields for tables. To write an ordinary array to a column in a table HDU, use write_column. If...
"Write data into this HDU\n\n parameters\n ----------\n data: ndarray or list of ndarray\n A numerical python array. Should be an ordinary array for image\n HDUs, should have fields for tables. To write an ordinary array to\n a column in a table HDU, use write_col...
294
false
esheldon/fitsio
write
30,260
LDU_FT/tijme/not-your-average-web-crawler/__crawler_stop
LDU_FT
[ "<BEGIN>\n## `get_new_requests`", "Retrieve all the new request that were found in this request.", " Returns:\n list(:class:`nyawc.http.Request`): A list of request objects.\n<END>", "<BEGIN>\n## `__make_request`", "Execute a request with the given data.", " Args:\n url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __crawler_stop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __crawler_stop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Mark the crawler as stopped. Note: If :attr:`__stopped` is True, the main thread will be stopped. Every piece of code that gets executed after :attr:`__stopped` is True could cause Thread exceptions and or race conditions.
"Mark the crawler as stopped.\n\n Note:\n If :attr:`__stopped` is True, the main thread will be stopped. Every piece of code that gets\n executed after :attr:`__stopped` is True could cause Thread exceptions and or race conditions."
220
false
tijme/not-your-average-web-crawler
__crawler_stop
30,261
LDU_FT/sveetch/py-css-styleguide/get_enabled_references
LDU_FT
[ "<BEGIN>\n## `digest_prelude`", "Walk on rule prelude (aka CSS selector) tokens to return a string of\n the value name (from css selector).", " Actually only simple selector and selector with descendant combinator\n are supported. Using any other selector kind may leads to unexpected\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_enabled_references 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_enabled_references 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 enabled manifest references declarations. Enabled references are defined through meta references declaration, every other references are ignored. Arguments: datas (dict): Data where to search for reference declarations. This is commonly the fully parsed manifest...
"Get enabled manifest references declarations.\n\n Enabled references are defined through meta references declaration,\n every other references are ignored.\n\n Arguments:\n datas (dict): Data where to search for reference declarations.\n This is commonly the fully parsed ...
98
false
sveetch/py-css-styleguide
get_enabled_references
30,262
LDU_FT/redcanari/canari3/debug_transform
LDU_FT
[ "<BEGIN>\n## `icon_resource`", "Returns the absolute URI path to an image. If a package is not explicitly specified then the calling package name is\n used.", " :param name: path relative to package path of the image resource.\n :param package: package name in dotted format.\n :return: the file URI ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the debug_transform API. 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 debug_transform API. 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...
Runs Canari local transforms in a terminal-friendly fashion.
"Runs Canari local transforms in a terminal-friendly fashion."
126
false
redcanari/canari3
debug_transform
30,263
LDU_FT/pybluez/pybluez/cancel_inquiry
LDU_FT
[ "<BEGIN>\n## `btaddrtochars`", "Takes a bluetooth address and returns a tuple with the corresponding\n char values. This can then be used to construct a\n IOBluetoothDevice object, providing the signature of the withAddress:\n selector has been set (as in _setpyobjcsignatures() in this module).", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cancel_inquiry API. 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 cancel_inquiry API. 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...
Call this method to cancel an inquiry in process. inquiry_complete will still be called.
"Call this method to cancel an inquiry in process. inquiry_complete\n will still be called."
80
false
pybluez/pybluez
cancel_inquiry
30,264
LDU_FT/mfcloud/python-zvm-sdk/fileChunkIter
LDU_FT
[ "<BEGIN>\n## `getConsole`", "Get the virtual machine's console output.", " Input:\n Request Handle with the following properties:\n function - 'CMDVM'\n subfunction - 'CMD'\n userid - userid of the virtual machine", " Output:\n Request Handle updated with t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fileChunkIter API. 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 fileChunkIter API. 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 an iterator to a file-like object that yields fixed size chunks :param file_object: a file-like object :param file_chunk_size: maximum size of chunk
"Return an iterator to a file-like object that yields fixed size chunks\n\n :param file_object: a file-like object\n :param file_chunk_size: maximum size of chunk"
643
false
mfcloud/python-zvm-sdk
fileChunkIter
30,265
LDU_FT/tgalal/python-axolotl/processV2
LDU_FT
[ "<BEGIN>\n## `getSignature`", ":type signatureKey: ECPrivateKey\n :type serialized: bytearray\n<END>", "<BEGIN>\n## `process`", ":param sessionRecord:\n :param message:\n :type message: PreKeyWhisperMessage\n<END>", "<BEGIN>\n## `processV2`", ":type sessionRecord: SessionRecord\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the processV2 API. 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 processV2 API. 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...
:type sessionRecord: SessionRecord :type message: PreKeyWhisperMessage
":type sessionRecord: SessionRecord\n :type message: PreKeyWhisperMessage"
46
false
tgalal/python-axolotl
processV2
30,266
LDU_FT/crs4/hl7apy/parse_components
LDU_FT
[ "<BEGIN>\n## `check_encoding_chars`", "Validate the given encoding chars", " :type encoding_chars: ``dict``\n :param encoding_chars: the encoding chars (see :func:`hl7apy.set_default_encoding_chars`)\n :raises: :exc:`hl7apy.exceptions.InvalidEncodingChars` if the given encoding chars are not valid\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_components API. 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_components API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parse the given ER7-encoded components and return a list of :class:`Component <hl7apy.core.Component>` instances. :type text: ``str`` :param text: the ER7-encoded string containing the components to be parsed :type field_datatype: ``str`` :param field_datatype: the datatype of the components (e.g....
"Parse the given ER7-encoded components and return a list of :class:`Component <hl7apy.core.Component>`\n instances.\n\n :type text: ``str``\n :param text: the ER7-encoded string containing the components to be parsed\n\n :type field_datatype: ``str``\n :param field_datatype: the datatype of the componen...
289
false
crs4/hl7apy
parse_components
30,267
LDU_FT/emencia/emencia-django-forum/get_object
LDU_FT
[ "<BEGIN>\n## `get_first_post`", "Retourne le premier post en date, celui créé lors de la création du fil\n<END>", "<BEGIN>\n## `save`", "Fill 'created' and 'modified' attributes on first create\n<END>", "<BEGIN>\n## `get_paginated_urlargs`", "Return url arguments to retrieve the Post in a paginated list\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 get_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...
Should memoize the object to avoid multiple query if get_object is used many times in the view
"Should memoize the object to avoid multiple query if get_object is used many times in the view"
23
false
emencia/emencia-django-forum
get_object
30,268
LDU_FT/opereto/pyopereto/create_process
LDU_FT
[ "<BEGIN>\n## `get_service_version`", "get_service_version(self, service_id, mode='production', version='default')", " | Get a specific version details of a given service. Opereto will try to fetch the requested service version. If not found, it will return the default production version. The \"actual_ver...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_process API. 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 create_process API. 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...
create_process(self, service, agent=None, title=None, mode=None, service_version=None, **kwargs) Registers a new process or processes :Parameters: * *service* (`string`) -- Service which process will be started * *agent* (`string`) -- The service identifier (e.g shell_command) ...
"create_process(self, service, agent=None, title=None, mode=None, service_version=None, **kwargs)\n\n Registers a new process or processes\n\n :Parameters:\n * *service* (`string`) -- Service which process will be started\n * *agent* (`string`) -- The service identifier (e.g shell_command)\n...
220
false
opereto/pyopereto
create_process
30,269
LDU_FT/django-fluent/fluentcms-emailtemplates/render_html
LDU_FT
[ "<BEGIN>\n## `replace_fields`", "Allow simple field replacements, using the python str.format() syntax.", " When a string is passed that is tagged with :func:`~django.utils.safestring.mark_safe`,\n the context variables will be escaped before replacement.", " This function is used instead of lazily u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Custom rendering function for HTML output
"Custom rendering function for HTML output"
21
false
django-fluent/fluentcms-emailtemplates
render_html
30,270
LDU_FT/ph4r05/monero-serialize/uint
LDU_FT
[ "<BEGIN>\n## `load_uint`", "Constant-width integer serialization\n :param reader:\n :param width:\n :return:\n<END>", "<BEGIN>\n## `dump_uint`", "Constant-width integer serialization\n :param writer:\n :param n:\n :param width:\n :return:\n<END>", "<BEGIN>\n## `load_uvarint_b`", "Vari...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uint API. 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 uint API. 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...
Integer types :param elem: :param elem_type: :param params: :return:
"Integer types\n :param elem:\n :param elem_type:\n :param params:\n :return:"
273
false
ph4r05/monero-serialize
uint
30,271
LDU_FT/hovren/crisp/estimate_rotation_procrustes_ransac
LDU_FT
[ "<BEGIN>\n## `sync_camera_gyro`", "Get time offset that aligns image timestamps with gyro timestamps.", " Given an image sequence, and gyroscope data, with their respective timestamps,\n calculate the offset that aligns the image data with the gyro data.\n The timestamps must only differ by an offset, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the estimate_rotation_procrustes_ransac API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the estimate_rotation_procrustes_ransac API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Calculate rotation between two sets of image coordinates using ransac. Inlier criteria is the reprojection error of y into image 1. Parameters ------------------------- x : array 2xN image coordinates in image 1 y : array 2xN image coordinates in image 2 camera : Camera model threshold...
"Calculate rotation between two sets of image coordinates using ransac.\n \n Inlier criteria is the reprojection error of y into image 1.\n\n Parameters\n -------------------------\n x : array 2xN image coordinates in image 1\n y : array 2xN image coordinates in image 2\n camera : Camera model\n ...
252
false
hovren/crisp
estimate_rotation_procrustes_ransac
30,272