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/mayfield/shellish/autocommand
LDU_FT
[ "<BEGIN>\n## `hone_cache`", "A caching decorator that follows after the style of lru_cache. Calls\n that are sharper than previous requests are returned from the cache after\n honing in on the requested results using the `refineby` technique.", " The `refineby` technique can be `startswith`, `container...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the autocommand API. 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 autocommand API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
A simplified decorator for making a single function a Command instance. In the future this will leverage PEP0484 to do really smart function parsing and conversion to argparse actions.
"A simplified decorator for making a single function a Command\n instance. In the future this will leverage PEP0484 to do really smart\n function parsing and conversion to argparse actions."
172
false
mayfield/shellish
autocommand
40,773
LDU_FT/pixelogik/NearPy/insert_entry_for_bucket
LDU_FT
[ "<BEGIN>\n## `store_vector`", "Stores vector and JSON-serializable data in bucket with specified key.\n<END>", "<BEGIN>\n## `store_many_vectors`", "Store a batch of vectors.\n Stores vector and JSON-serializable data in bucket with specified key.\n<END>", "<BEGIN>\n## `delete_vector`", "Deletes vec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_entry_for_bucket 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 insert_entry_for_bucket API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Increases counter for specified bucket_key (leaf of tree) and also increases counters along the way from the root to the leaf.
"Increases counter for specified bucket_key (leaf of tree) and\n also increases counters along the way from the root to the leaf."
103
false
pixelogik/NearPy
insert_entry_for_bucket
40,774
LDU_FT/acrisci/i3ipc-python/leaves
LDU_FT
[ "<BEGIN>\n## `_pack`", "Packs the given message type and payload. Turns the resulting\n message into a byte string.\n<END>", "<BEGIN>\n## `_unpack`", "Unpacks the given byte string and parses the result from JSON.\n Returns None on failure and saves data into \"self.buffer\".\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the leaves API. 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 leaves API. 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 ...
Retrieve a list of windows that delineate from the currently selected container. Only lists client windows, no intermediate containers. :rtype: List of :class:`Con`.
"Retrieve a list of windows that delineate from the currently\n selected container. Only lists client windows, no intermediate\n containers.\n\n :rtype: List of :class:`Con`."
69
false
acrisci/i3ipc-python
leaves
40,775
LDU_FT/hvac/hvac/configure
LDU_FT
[ "<BEGIN>\n## `read_init_status`", "Read the initialization status of Vault.", " Supported methods:\n GET: /sys/init. Produces: 200 application/json", " :return: The JSON response of the request.\n :rtype: dict\n<END>", "<BEGIN>\n## `initialize`", "Initialize a new Vault.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. 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 configure API. 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...
Configure the connection parameters for Kubernetes. This path honors the distinction between the create and update capabilities inside ACL policies. Supported methods: POST: /auth/{mount_point}/config. Produces: 204 (empty body) :param kubernetes_host: Host must be a host string, ...
"Configure the connection parameters for Kubernetes.\n\n This path honors the distinction between the create and update capabilities inside ACL policies.\n\n Supported methods:\n POST: /auth/{mount_point}/config. Produces: 204 (empty body)\n\n :param kubernetes_host: Host must be a host ...
856
false
hvac/hvac
configure
40,776
LDU_FT/aws/aws-xray-sdk-python/is_eligible
LDU_FT
[ "<BEGIN>\n## `middleware`", "Main middleware function, deals with all the X-Ray segment logic\n<END>", "<BEGIN>\n## `patch`", "patch the built-in `urllib/httplib/httplib.client` methods for tracing.\n<END>", "<BEGIN>\n## `unpatch`", "Unpatch any previously patched modules.\n This operation is idempoten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_eligible API. 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 is_eligible API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
A segment is eligible to have its children subsegments streamed if it is sampled and it breaches streaming threshold.
"A segment is eligible to have its children subsegments streamed\n if it is sampled and it breaches streaming threshold."
198
false
aws/aws-xray-sdk-python
is_eligible
40,777
LDU_FT/ramses-tech/nefertari/get_collections
LDU_FT
[ "<BEGIN>\n## `_import_public_names`", "Import public names from module into this module, like import *\n<END>", "<BEGIN>\n## `encrypt_password`", "Crypt :new_value: if it's not crypted yet.\n<END>", "<BEGIN>\n## `create_apikey_model`", "Generate ApiKey model class and connect it with :user_model:.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_collections API. 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_collections API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get names of collections from request matchdict. :return: Names of collections :rtype: list of str
"Get names of collections from request matchdict.\n\n :return: Names of collections\n :rtype: list of str"
226
false
ramses-tech/nefertari
get_collections
40,778
LDU_FT/Groundworkstech/pybfd/build_extensions
LDU_FT
[ "<BEGIN>\n## `generate_source_files`", "Genertate source files to be used during the compile process of the\n extension module.\n This is better than just hardcoding the values on python files because\n header definitions might change along differente Binutils versions and\n we'll be a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_extensions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_extensions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Compile the python extension module for further installation.
"Compile the python extension module for further installation."
96
false
Groundworkstech/pybfd
build_extensions
40,779
LDU_FT/aouyar/PyMunin/_configDevRequests
LDU_FT
[ "<BEGIN>\n## `parse_value`", "Parse input string and return int, float or str depending on format.", " @param val: Input string.\n @param parsebool: If True parse yes / no, on / off as boolean.\n @return: Value of type int, float or str.\n<END>", "<BEGIN>\n## `socket_read`", "Buffere...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _configDevRequests 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 _configDevRequests 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...
Generate configuration for I/O Request stats. @param namestr: Field name component indicating device type. @param titlestr: Title component indicating device type. @param devlist: List of devices.
"Generate configuration for I/O Request stats.\n \n @param namestr: Field name component indicating device type.\n @param titlestr: Title component indicating device type.\n @param devlist: List of devices."
491
false
aouyar/PyMunin
_configDevRequests
40,780
LDU_FT/yunojuno-archive/django-inbound-email/_decode_POST_value
LDU_FT
[ "<BEGIN>\n## `_decode_POST_value`", "Helper to decode a request field into unicode based on charsets encoding.", " Args:\n request: the HttpRequest object.\n field_name: the field expected in the request.POST", " Kwargs:\n default: if passed in then field is optional and default is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decode_POST_value 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 _decode_POST_value 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...
Helper to decode a request field into unicode based on charsets encoding. Args: request: the HttpRequest object. field_name: the field expected in the request.POST Kwargs: default: if passed in then field is optional and default is used if not found; if None, then assume fi...
"Helper to decode a request field into unicode based on charsets encoding.\n\n Args:\n request: the HttpRequest object.\n field_name: the field expected in the request.POST\n\n Kwargs:\n default: if passed in then field is optional and default is used if not\n found; if None, then ...
29
false
yunojuno-archive/django-inbound-email
_decode_POST_value
40,781
LDU_FT/kyan001/ping3/ones_comp_sum16
LDU_FT
[ "<BEGIN>\n## `ones_comp_sum16`", "Calculates the 1's complement sum for 16-bit numbers.", " Args:\n num1: 16-bit number.\n num2: 16-bit number.", " Returns:\n The calculated result.\n<END>", "<BEGIN>\n## `checksum`", "Calculates the checksum of the input bytes.", " RFC1071:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ones_comp_sum16 API. 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 ones_comp_sum16 API. 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...
Calculates the 1's complement sum for 16-bit numbers. Args: num1: 16-bit number. num2: 16-bit number. Returns: The calculated result.
"Calculates the 1's complement sum for 16-bit numbers.\n\n Args:\n num1: 16-bit number.\n num2: 16-bit number.\n\n Returns:\n The calculated result."
30
false
kyan001/ping3
ones_comp_sum16
40,782
LDU_FT/RIPE-NCC/ripe-atlas-cousteau/timeout
LDU_FT
[ "<BEGIN>\n## `update_get_params`", "Update HTTP GET params with the given fields that user wants to fetch.\n<END>", "<BEGIN>\n## `_fetch_meta_data`", "Makes an API call to fetch meta data for the given probe and stores the raw data.\n<END>", "<BEGIN>\n## `_populate_data`", "Assing some probe's raw meta da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeout API. 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 timeout API. 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...
Times out all streams after n seconds or wait forever if seconds is None
"Times out all streams after n seconds or wait forever if seconds is\n None"
62
false
RIPE-NCC/ripe-atlas-cousteau
timeout
40,783
LDU_FT/pavlin-policar/openTSNE/calculate_cpm
LDU_FT
[ "<BEGIN>\n## `has_c_library`", "Check whether a C/C++ library is available on the system to the compiler.", " Parameters\n ----------\n library: str\n The library we want to check for e.g. if we are interested in FFTW3, we\n want to check for `fftw3.h`, so this parameter will be `fftw3`.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_cpm API. 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 calculate_cpm API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Calculate counts-per-million on data where the rows are genes. Parameters ---------- x : array_like axis : int Axis accross which to compute CPM. 0 for genes being in rows and 1 for genes in columns.
"Calculate counts-per-million on data where the rows are genes.\n \n Parameters\n ----------\n x : array_like\n axis : int\n Axis accross which to compute CPM. 0 for genes being in rows and 1 for\n genes in columns."
181
false
pavlin-policar/openTSNE
calculate_cpm
40,784
LDU_FT/gbiggs/rtctree/iterate
LDU_FT
[ "<BEGIN>\n## `build_attr_string`", "Build a string that will turn any ANSI shell output the desired\r\n colour.\r", " attrs should be a list of keys into the term_attributes table.\n<END>", "<BEGIN>\n## `get_num_columns_and_rows`", "Given a list of string widths, a width of the minimum gap to place\r\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterate API. 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 iterate API. 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...
Call a function on the root node, and recursively all its children. This is a depth-first iteration. @param func The function to call. Its declaration must be 'def blag(node, args)', where 'node' is the current node in the iteration and args is the value of @ref...
"Call a function on the root node, and recursively all its children.\n\n This is a depth-first iteration.\n\n @param func The function to call. Its declaration must be\n 'def blag(node, args)', where 'node' is the current node\n in the iteration and args is the value ...
285
false
gbiggs/rtctree
iterate
40,785
LDU_FT/nilp0inter/cpe/compare_wfns
LDU_FT
[ "<BEGIN>\n## `_trim`", "Remove trailing colons from the URI back to the first non-colon.", " :param string s: input URI string\n :returns: URI string with trailing colons removed\n :rtype: string", " TEST: trailing colons necessary", " >>> s = '1:2::::'\n >>> CPE._t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare_wfns API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare_wfns API. 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...
Compares two WFNs and returns a generator of pairwise attribute-value comparison results. It provides full access to the individual comparison results to enable use-case specific implementations of novel name-comparison algorithms. Compare each attribute of the Source WFN to the Target ...
"Compares two WFNs and returns a generator of pairwise attribute-value\n comparison results. It provides full access to the individual\n comparison results to enable use-case specific implementations\n of novel name-comparison algorithms.\n\n Compare each attribute of the Source WFN to the T...
206
false
nilp0inter/cpe
compare_wfns
40,786
LDU_FT/nesaro/pydsl/get_trees
LDU_FT
[ "<BEGIN>\n## `check`", "Checks if the input follows the definition\n<END>", "<BEGIN>\n## `formatchecker_factory`", "Converts a dictionary of strings:checkers into a formatchecker object\n<END>", "<BEGIN>\n## `item_set_goto`", "returns an itemset\n locate inside itemset every element with inputsymbol fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_trees API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_trees API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
returns a list of trees with valid guesses
"returns a list of trees with valid guesses"
32
false
nesaro/pydsl
get_trees
40,787
LDU_FT/omza/azurestoragewrap/register_model
LDU_FT
[ "<BEGIN>\n## `getmessage`", "parse self into unicode string as message content\n<END>", "<BEGIN>\n## `register_model`", "set up an Queueservice for an StorageQueueModel in your Azure Storage Account\n Will create the Queue if not exist!", " required Parameter is:\n - storag...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_model API. 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...
set up an Tableservice for an StorageTableModel in your Azure Storage Account Will create the Table if not exist! required Parameter is: - storagemodel: StorageTableModel(Object)
"set up an Tableservice for an StorageTableModel in your Azure Storage Account\n Will create the Table if not exist!\n \n required Parameter is:\n - storagemodel: StorageTableModel(Object)"
34
false
omza/azurestoragewrap
register_model
40,788
LDU_FT/cloudboss/friend/retryable
LDU_FT
[ "<BEGIN>\n## `cached`", "A decorator function to cache values. It uses the decorated\n function's arguments as the keys to determine if the function\n has been called previously.\n<END>", "<BEGIN>\n## `retry_wait_time`", "Determine a retry wait time based on the number of the\n retry attempt and a ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retryable API. 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 retryable API. 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...
A decorator to make a function retry. By default the retry occurs when an exception is thrown, but this may be changed by modifying the ``retryer`` argument. See also :py:func:`retry_ex` and :py:func:`retry_bool`. By default :py:func:`retry_ex` is used as the retry function. Note that the decorato...
"A decorator to make a function retry. By default the retry\n occurs when an exception is thrown, but this may be changed\n by modifying the ``retryer`` argument.\n\n See also :py:func:`retry_ex` and :py:func:`retry_bool`. By\n default :py:func:`retry_ex` is used as the retry function.\n\n Note that the ...
49
false
cloudboss/friend
retryable
40,789
LDU_FT/jupyter-widgets/ipywidgets/datetime_from_json
LDU_FT
[ "<BEGIN>\n## `_cells`", "Yield all cells in an nbformat-insensitive manner\n<END>", "<BEGIN>\n## `strip_output`", "strip the outputs from a notebook object\n<END>", "<BEGIN>\n## `show_inline_matplotlib_plots`", "Show matplotlib plots immediately if using the inline backend.", " With ipywidgets 6.0, m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime_from_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime_from_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. Th...
Deserialize a Python datetime object from json.
"Deserialize a Python datetime object from json."
159
false
jupyter-widgets/ipywidgets
datetime_from_json
40,790
LDU_FT/ranaroussi/ezibpy/createTrailingStopOrder
LDU_FT
[ "<BEGIN>\n## `registerContract`", "used for when callback receives a contract\n that isn't found in local database\n<END>", "<BEGIN>\n## `handleConnectionState`", ":Return: True if IBPy message `msg` indicates the connection is unavailable for any reason, else False.\n<END>", "<BEGIN>\n## `handleCont...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createTrailingStopOrder 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 createTrailingStopOrder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
convert hard stop order to trailing stop order
"convert hard stop order to trailing stop order"
58
false
ranaroussi/ezibpy
createTrailingStopOrder
40,791
LDU_FT/terrycain/aioboto3/upload_file
LDU_FT
[ "<BEGIN>\n## `download_file`", "Download an S3 object to a file.", " Usage::", " import boto3\n s3 = boto3.resource('s3')\n s3.meta.client.download_file('mybucket', 'hello.txt', '/tmp/hello.txt')", " Similar behavior as S3Transfer's download_file() method,\n except that paramet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Upload a file to an S3 object. Usage:: import boto3 s3 = boto3.resource('s3') s3.meta.client.upload_file('/tmp/hello.txt', 'mybucket', 'hello.txt') Similar behavior as S3Transfer's upload_file() method, except that parameters are capitalized.
"Upload a file to an S3 object.\n\n Usage::\n\n import boto3\n s3 = boto3.resource('s3')\n s3.meta.client.upload_file('/tmp/hello.txt', 'mybucket', 'hello.txt')\n\n Similar behavior as S3Transfer's upload_file() method,\n except that parameters are capitalized."
74
false
terrycain/aioboto3
upload_file
40,792
LDU_FT/tmr232/Sark/color
LDU_FT
[ "<BEGIN>\n## `get_idb_graph`", "Export IDB to a NetworkX graph.", " Use xrefs to and from functions to build a DiGraph containing all\n the functions in the IDB and all the links between them.\n The graph can later be used to perform analysis on the IDB.", " :return: nx.DiGraph()\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the color API. 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 color API. 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...
Function Color in IDA View. Set color to `None` to clear the color.
"Function Color in IDA View.\n\n Set color to `None` to clear the color."
137
false
tmr232/Sark
color
40,793
LDU_FT/PyCQA/pydocstyle/check_ends_with_period
LDU_FT
[ "<BEGIN>\n## `error_lineno`", "Get the line number with which to report violations.\n<END>", "<BEGIN>\n## `source`", "Return the source code for the definition.\n<END>", "<BEGIN>\n## `is_public`", "Return True iff this function should be considered public.\n<END>", "<BEGIN>\n## `is_magic`", "Return Tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_ends_with_period 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_ends_with_period API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
D400: First line should end with a period. The [first line of a] docstring is a phrase ending in a period.
"D400: First line should end with a period.\n\n The [first line of a] docstring is a phrase ending in a period."
183
false
PyCQA/pydocstyle
check_ends_with_period
40,794
LDU_FT/tophatmonocle/ims_lti_py/username
LDU_FT
[ "<BEGIN>\n## `has_role`", "Check whether the Launch Paramters set the role.\n<END>", "<BEGIN>\n## `username`", "Return the full, given, or family name if set.\n<END>", "<BEGIN>\n## `post_replace_result`", "POSTs the given score to the Tool Consumer with a replaceResult.", " Returns OutcomeRespons...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the username API. 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 username API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return the full, given, or family name if set.
"Return the full, given, or family name if set."
46
false
tophatmonocle/ims_lti_py
username
40,795
LDU_FT/samjabrahams/anchorhub/validate
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 validate API. 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 validate API. 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...
Client-facing validate method. Checks to see if the passed in opts argument is either a list or a namespace containing the attribute 'extensions' and runs validations on it accordingly. If opts is neither of those things, this will raise a ValueError :param opts: either a list of strings or a namespace...
"Client-facing validate method. Checks to see if the passed in opts\n argument is either a list or a namespace containing the attribute\n 'extensions' and runs validations on it accordingly. If opts is neither\n of those things, this will raise a ValueError\n\n :param opts: either a list of strings or a nam...
148
false
samjabrahams/anchorhub
validate
40,796
LDU_FT/renzon/gaepagseguro/search_all_payments
LDU_FT
[ "<BEGIN>\n## `handle_previous`", "Method to generate item from a ItemForm. The form must be exposed on form attribute\n @param command: a command tha expose data through form attributte\n<END>", "<BEGIN>\n## `generate_payment`", "Function used to generate a payment on pagseguro\n See facade_tests to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_all_payments 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 search_all_payments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns a command to search all payments ordered by creation desc @param payment_status: The payment status. If None is going to return results independent from status @param page_size: number of payments per page @param start_cursor: cursor to continue the search @param offset: offset number of payment...
"Returns a command to search all payments ordered by creation desc\n @param payment_status: The payment status. If None is going to return results independent from status\n @param page_size: number of payments per page\n @param start_cursor: cursor to continue the search\n @param offset: offset number of pa...
12
false
renzon/gaepagseguro
search_all_payments
40,797
LDU_FT/openstax/cnx-epub/_nav_to_tree
LDU_FT
[ "<BEGIN>\n## `squash_xml_to_text`", "Squash the given XML element (as `elm`) to a text containing XML.\n The outer most element/tag will be removed, but inner elements will\n remain. If `remove_namespaces` is specified, XML namespace declarations\n will be removed from the text.", " :param elm: XML ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _nav_to_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _nav_to_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Given an etree containing a navigation document structure rooted from the 'nav' element, parse to a tree: {'id': <id>|'subcol', 'title': <title>, 'contents': [<tree>, ...]}
"Given an etree containing a navigation document structure\n rooted from the 'nav' element, parse to a tree:\n {'id': <id>|'subcol', 'title': <title>, 'contents': [<tree>, ...]}"
67
false
openstax/cnx-epub
_nav_to_tree
40,798
LDU_FT/mcieslik-mctp/papy/_inject
LDU_FT
[ "<BEGIN>\n## `_inspect`", "(internal) Determines the type of a given ``object``. Discriminates between \n ``Piper``, ``Worker``, ``FunctionType`` and ``Iterable`` instances. It \n returns a ``tuple`` of boolean variables i.e: (is_piper, is_worker, \n is_function, is_iterable_of_pipers, is_iterable_of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _inject API. 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 _inject API. 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...
(internal) inject/replace all functions into a rpyc connection object.
"(internal) inject/replace all functions into a rpyc connection object."
323
false
mcieslik-mctp/papy
_inject
40,799
LDU_FT/ensime/ensime-vim/current_client
LDU_FT
[ "<BEGIN>\n## `buffer_typechecks_and_display`", "Adds typecheck events to the buffer, and displays them right away.", " This is a workaround for this issue:\n https://github.com/ensime/ensime-server/issues/1616\n<END>", "<BEGIN>\n## `handle_typecheck_complete`", "Handles ``NewScalaNotesEvent```...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the current_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the current_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return the client for current file in the editor.
"Return the client for current file in the editor."
150
false
ensime/ensime-vim
current_client
40,800
LDU_FT/scivision/histutils/setupimgh5
LDU_FT
[ "<BEGIN>\n## `cp_parents`", "This function requires Python >= 3.6.", " This acts like bash cp --parents in Python\n inspiration from\n http://stackoverflow.com/questions/15329223/copy-a-file-into-a-directory-with-its-original-leading-directories-appended", " example\n source: /tmp/e/f\n dest...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setupimgh5 API. 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 setupimgh5 API. 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...
f: HDF5 handle (or filename) h: HDF5 dataset handle
"f: HDF5 handle (or filename)\n\n h: HDF5 dataset handle"
58
false
scivision/histutils
setupimgh5
40,801
LDU_FT/springload/draftjs_exporter/for_kind
LDU_FT
[ "<BEGIN>\n## `create_element`", "Signature inspired by React.createElement.\n createElement(\n string/Component type,\n [dict props],\n [children ...]\n )\n https://facebook.github.io/react/docs/top-level-api.html#react.createelement\n<END>", "<BEGIN>\n## `start_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the for_kind API. 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 for_kind API. 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...
Create an Options object from any mapping.
"Create an Options object from any mapping."
14
false
springload/draftjs_exporter
for_kind
40,802
LDU_FT/chaoss/grimoirelab-elk/process
LDU_FT
[ "<BEGIN>\n## `__related_categories`", "Get all related categories to a given one\n<END>", "<BEGIN>\n## `__show_categories_tree`", "Show the category tree: list of categories and its subcategories\n<END>", "<BEGIN>\n## `fetch_track_items`", "The file format is:", " # Upstream contributions, bitergia w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
Process a DataFrame to compute Onion. :param items_block: items to be processed. Expects to find a pandas DataFrame.
"Process a DataFrame to compute Onion.\n\n :param items_block: items to be processed. Expects to find a pandas DataFrame."
296
false
chaoss/grimoirelab-elk
process
40,803
LDU_FT/altair-viz/pdvega/prev_this_next
LDU_FT
[ "<BEGIN>\n## `infer_vegalite_type`", "From an array-like input, infer the correct vega typecode\n ('ordinal', 'nominal', 'quantitative', or 'temporal')", " Parameters\n ----------\n data: Numpy array or Pandas Series\n data for which the type will be inferred\n ordinal_threshold: integer (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prev_this_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prev_this_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 ex...
Utility to return (prev, this, next) tuples from an iterator
"Utility to return (prev, this, next) tuples from an iterator"
48
false
altair-viz/pdvega
prev_this_next
40,804
LDU_FT/wearpants/instrument/_dump
LDU_FT
[ "<BEGIN>\n## `_make_decorator`", "morass of closures for making decorators/descriptors\n<END>", "<BEGIN>\n## `all`", "Measure total time and item count for consuming an iterable", " :arg iterable: any iterable\n :arg function metric: f(name, count, total_time)\n :arg str name: name for the metric\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dump API. 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 _dump API. 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...
dump data for an individual metric. For internal use only.
"dump data for an individual metric. For internal use only."
53
false
wearpants/instrument
_dump
40,805
LDU_FT/blockstack/pybitcoin/get_unspents
LDU_FT
[ "<BEGIN>\n## `random_passphrase_from_wordlist`", "An extremely entropy efficient passphrase generator.", " This function:\n -Pulls entropy from the safer alternative to /dev/urandom: /dev/random\n -Doesn't rely on random.seed (words are selected right from the entropy)\n -Only requir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unspents API. 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_unspents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get the spendable transaction outputs, also known as UTXOs or unspent transaction outputs. NOTE: this will only return unspents if the address provided is present in the bitcoind server. Use the chain, blockchain, or blockcypher API to grab the unspents for arbitrary add...
"Get the spendable transaction outputs, also known as UTXOs or\n unspent transaction outputs.\n\n NOTE: this will only return unspents if the address provided is\n present in the bitcoind server. Use the chain, blockchain,\n or blockcypher API to grab the unspents for arbitra...
79
false
blockstack/pybitcoin
get_unspents
40,806
LDU_FT/datamachine/twx.botapi/send_video_note
LDU_FT
[ "<BEGIN>\n## `export_chat_invite_link`", "Use this method to generate a new invite link for a chat; any previously generated link is revoked.\n The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.\n :param chat_id: Unique identifier for the target chat or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_video_note API. 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 send_video_note API. 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...
Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document). :param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername) :param video_note: Video to send. Pass a file_id as String to send a video t...
"Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document).\n\n :param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)\n :param video_note: Video to send. Pass a file_id as String to send a vid...
194
false
datamachine/twx.botapi
send_video_note
40,807
LDU_FT/xflr6/graphviz/render
LDU_FT
[ "<BEGIN>\n## `command`", "Return args list for ``subprocess.Popen`` and name of the rendered file.\n<END>", "<BEGIN>\n## `run`", "Run the command described by cmd and return its (stdout, stderr) tuple.\n<END>", "<BEGIN>\n## `render`", "Render file with Graphviz ``engine`` into ``format``, return result f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. 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 render API. 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 ...
Save the source to file and render with the Graphviz engine. Args: filename: Filename for saving the source (defaults to ``name`` + ``'.gv'``) directory: (Sub)directory for source saving and rendering. view (bool): Open the rendered result with the default application. ...
"Save the source to file and render with the Graphviz engine.\n\n Args:\n filename: Filename for saving the source (defaults to ``name`` + ``'.gv'``)\n directory: (Sub)directory for source saving and rendering.\n view (bool): Open the rendered result with the default application....
93
false
xflr6/graphviz
render
40,808
LDU_FT/xav/Grapefruit/rgb_to_ryb
LDU_FT
[ "<BEGIN>\n## `rgb_to_hsl`", "Convert the color from RGB coordinates to HSL.", " Parameters:\n :r:\n The Red component value [0...1]\n :g:\n The Green component value [0...1]\n :b:\n The Blue component value [0...1]", " Returns:\n The color as an (h, s, l) tuple in the range:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rgb_to_ryb API. 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 rgb_to_ryb API. 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...
Maps a hue on the RGB color wheel to Itten's RYB wheel. Parameters: :hue: The hue on the RGB color wheel [0...360] Returns: An approximation of the corresponding hue on Itten's RYB wheel. >>> rgb_to_ryb(15) 26.0
"Maps a hue on the RGB color wheel to Itten's RYB wheel.\n\n Parameters:\n :hue:\n The hue on the RGB color wheel [0...360]\n\n Returns:\n An approximation of the corresponding hue on Itten's RYB wheel.\n\n >>> rgb_to_ryb(15)\n 26.0"
234
false
xav/Grapefruit
rgb_to_ryb
40,809
LDU_FT/AtteqCom/zsl/_parse_tuple
LDU_FT
[ "<BEGIN>\n## `_nested_transactional`", "In a transactional method create a nested transaction.\n<END>", "<BEGIN>\n## `exec_task`", "Execute task.", " :param task_path: task path\n :type task_path: str|Callable\n :param data: task's data\n :type data: Any\n :return:\n<END>", "<BEGIN>\n## `ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_tuple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_tuple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Parse xml element by a definition given in tuple format. :param element: ElementTree element :param definition: definition schema :type definition: tuple :param required: parsed value should be not None :type required: bool :return: parsed xml
"Parse xml element by a definition given in tuple format.\n\n :param element: ElementTree element\n :param definition: definition schema\n :type definition: tuple\n :param required: parsed value should be not None\n :type required: bool\n :return: parsed xml"
292
false
AtteqCom/zsl
_parse_tuple
40,810
LDU_FT/hyperledger-archives/indy-anoncreds/genSchema
LDU_FT
[ "<BEGIN>\n## `get_hash_as_int`", "Enumerate over the input tuple and generate a hash using the tuple values", " :param args: sequence of either group or integer elements\n :param group: pairing group if an element is a group element\n :return:\n<END>", "<BEGIN>\n## `randomString`", "Generate a rand...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the genSchema API. 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 genSchema API. 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...
Generates and submits Schema. :param name: schema name :param version: schema version :param attrNames: a list of attributes the schema contains :return: submitted Schema
"Generates and submits Schema.\n\n :param name: schema name\n :param version: schema version\n :param attrNames: a list of attributes the schema contains\n :return: submitted Schema"
48
false
hyperledger-archives/indy-anoncreds
genSchema
40,811
LDU_FT/Crypto-toolbox/bitex/_register_order_book_channels
LDU_FT
[ "<BEGIN>\n## `_restart_thread`", "Restarts subscription threads if their connection drops.\n :return:\n<END>", "<BEGIN>\n## `_subscription_thread`", "Thread Method, running the connection for each endpoint.\n :param endpoint:\n :return:\n<END>", "<BEGIN>\n## `start`", "Starts threads....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _register_order_book_channels API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _register_order_book_channels API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Registers the binding for the order_book channels. :return:
"Registers the binding for the order_book channels.\n :return:"
79
false
Crypto-toolbox/bitex
_register_order_book_channels
40,812
LDU_FT/caseyjlaw/sdmreader/calc_uvw
LDU_FT
[ "<BEGIN>\n## `read_bdf`", "Reads given range of integrations from sdm of given scan.\r\n Uses BDFData object to read.\r\n readints=0 will read all of bdf (skipping nskip).\r\n Option to write pkl to store bdf info for faster parse next time.\n<END>", "<BEGIN>\n## `calc_uvw`", "Calculates and returns ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_uvw API. 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 calc_uvw API. 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...
Calculates and returns uvw in meters for a given SDM, time, and pointing direction. sdmfile is path to sdm directory that includes "Station.xml" file. scan is scan number defined by observatory. datetime is time (as string) to calculate uvw (format: '2014/09/03/08:33:04.20') radec is (ra,dec) as tup...
"Calculates and returns uvw in meters for a given SDM, time, and pointing direction.\r\n sdmfile is path to sdm directory that includes \"Station.xml\" file.\r\n scan is scan number defined by observatory.\r\n datetime is time (as string) to calculate uvw (format: '2014/09/03/08:33:04.20')\r\n radec is (ra,...
14
false
caseyjlaw/sdmreader
calc_uvw
40,813
LDU_FT/aarongarrett/inspyred/constructor
LDU_FT
[ "<BEGIN>\n## `mutator`", "Return an inspyred mutator function based on the given function.", " This function generator takes a function that operates on only\n one candidate to produce a single mutated candidate. The generator \n handles the iteration over each candidate in the set to be mutated.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the constructor API. 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 constructor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return a candidate solution for an ant colony optimization.
"Return a candidate solution for an ant colony optimization."
390
false
aarongarrett/inspyred
constructor
40,814
LDU_FT/amueller/word_cloud/to_file
LDU_FT
[ "<BEGIN>\n## `process_tokens`", "Normalize cases and remove plurals.", " Each word is represented by the most common case.\n If a word appears with an \"s\" on the end and without an \"s\" on the end,\n the version with \"s\" is assumed to be a plural and merged with the\n version without \"s\" (exc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Export to image file. Parameters ---------- filename : string Location to write to. Returns ------- self
"Export to image file.\n\n Parameters\n ----------\n filename : string\n Location to write to.\n\n Returns\n -------\n self"
45
false
amueller/word_cloud
to_file
40,815
LDU_FT/jelmer/python-fastimport/_convert_copy
LDU_FT
[ "<BEGIN>\n## `check_path`", "Check that a path is legal.", " :return: the path if all is OK\n :raise ValueError: if the path is illegal\n<END>", "<BEGIN>\n## `format_path`", "Format a path in utf8, quoting it if necessary.\n<END>", "<BEGIN>\n## `format_who_when`", "Format a tuple of name,email,sec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_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 ext...
Convert a FileCopyCommand into a new FileCommand. :return: None if the copy is being ignored, otherwise a new FileCommand based on the whether the source and destination paths are inside or outside of the interesting locations.
"Convert a FileCopyCommand into a new FileCommand.\n\n :return: None if the copy is being ignored, otherwise a\n new FileCommand based on the whether the source and destination\n paths are inside or outside of the interesting locations."
100
false
jelmer/python-fastimport
_convert_copy
40,816
LDU_FT/ggaughan/pipe2py/asyncPipeStringtokenizer
LDU_FT
[ "<BEGIN>\n## `repr_args`", "formats a list of function arguments prettily but as working code", " (kwargs are tuples (argname, argvalue)\n<END>", "<BEGIN>\n## `repr_arg`", "formats a function argument prettily but as working code", " unicode encodable as ascii is formatted as str\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asyncPipeStringtokenizer 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 asyncPipeStringtokenizer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
A string module that asynchronously splits a string into tokens delimited by separators. Loopable. Parameters ---------- context : pipe2py.Context object _INPUT : twisted Deferred iterable of items or strings conf : { 'to-str': {'value': <delimiter>}, 'dedupe': {'type': 'bool', ...
"A string module that asynchronously splits a string into tokens\n delimited by separators. Loopable.\n\n Parameters\n ----------\n context : pipe2py.Context object\n _INPUT : twisted Deferred iterable of items or strings\n conf : {\n 'to-str': {'value': <delimiter>},\n 'dedupe': {'type'...
257
false
ggaughan/pipe2py
asyncPipeStringtokenizer
40,817
LDU_FT/ismms-himc/clustergrammer2/normalize
LDU_FT
[ "<BEGIN>\n## `run_norm`", "A dataframe (more accurately a dictionary of dataframes, e.g. mat,\n mat_up...) can be passed to run_norm and a normalization will be run (\n e.g. zscore) on either the rows or columns\n<END>", "<BEGIN>\n## `qn_df`", "do quantile normalization of a dataframe dictionary, does not w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API. 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 normalize API. 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...
Normalize the matrix rows or columns using Z-score (zscore) or Quantile Normalization (qn). Users can optionally pass in a DataFrame to be normalized (and this will be incorporated into the Network object).
"Normalize the matrix rows or columns using Z-score (zscore) or Quantile Normalization (qn). Users can optionally pass in a DataFrame to be normalized (and this will be incorporated into the Network object)."
90
false
ismms-himc/clustergrammer2
normalize
40,818
LDU_FT/rauenzi/discordbot.py/plonk
LDU_FT
[ "<BEGIN>\n## `stop_pages`", "stops the interactive pagination session\n<END>", "<BEGIN>\n## `paginate`", "Actually paginate the entries and run the interactive loop if necessary.\n<END>", "<BEGIN>\n## `_do`", "Repeats a command a specified number of times.\n<END>", "<BEGIN>\n## `disable`", "Disables a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plonk API. 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 plonk API. 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...
Bans a user from using the bot. This bans a person from using the bot in the current server. There is no concept of a global ban. This ban can be bypassed by having the Manage Server permission. To use this command you must have the Manage Server permission or have a Bot Admin ...
"Bans a user from using the bot.\n\n This bans a person from using the bot in the current server.\n There is no concept of a global ban. This ban can be bypassed\n by having the Manage Server permission.\n\n To use this command you must have the Manage Server permission\n or have a Bo...
52
false
rauenzi/discordbot.py
plonk
40,819
LDU_FT/yvesalexandre/bandicoot/interactions_per_contact
LDU_FT
[ "<BEGIN>\n## `filter_user`", "Filter records of a User objects by interaction, part of week and day.", " Parameters\n ----------\n user : User\n a bandicoot User object\n type : str, default 'records'\n 'records' or 'recharges'\n part_of_week : {'allweek', 'weekday', 'weekend'}, def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interactions_per_contact 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 interactions_per_contact API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
The number of interactions a user had with each of its contacts. Parameters ---------- direction : str, optional Filters the records by their direction: ``None`` for all records, ``'in'`` for incoming, and ``'out'`` for outgoing.
"The number of interactions a user had with each of its contacts.\n\n Parameters\n ----------\n direction : str, optional\n Filters the records by their direction: ``None`` for all records,\n ``'in'`` for incoming, and ``'out'`` for outgoing."
318
false
yvesalexandre/bandicoot
interactions_per_contact
40,820
LDU_FT/camptocamp/Studio/discover_datasource_columns
LDU_FT
[ "<BEGIN>\n## `discover_datasources`", "Discover the datasources contained in the datastore\n corresponding to the OGR string ogr_str, return an\n array of {name,type, hash}\n<END>", "<BEGIN>\n## `discover_datasource_columns`", "Loop through the datastore's datasources to find\n the datasource identif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discover_datasource_columns 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 discover_datasource_columns API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Loop through the datastore's datasources to find the datasource identified by datasource_id, return the matching datasource's columns.
"Loop through the datastore's datasources to find\n the datasource identified by datasource_id, return\n the matching datasource's columns."
98
false
camptocamp/Studio
discover_datasource_columns
40,821
LDU_FT/andrea-cuttone/geoplotlib/convexhull
LDU_FT
[ "<BEGIN>\n## `__voronoi_finite_polygons_2d`", "Reconstruct infinite voronoi regions in a 2D diagram to finite\n regions.", " Parameters\n ----------\n vor : Voronoi\n Input diagram\n radius : float, optional\n Distance to 'points at infinity'.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convexhull API. 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 convexhull API. 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...
Convex hull for a set of points :param data: points :param col: color :param fill: whether to fill the convexhull polygon or not :param point_size: size of the points on the convexhull. Points are not rendered if None
"Convex hull for a set of points\n\n :param data: points\n :param col: color\n :param fill: whether to fill the convexhull polygon or not\n :param point_size: size of the points on the convexhull. Points are not rendered if None"
82
false
andrea-cuttone/geoplotlib
convexhull
40,822
LDU_FT/ccubed/PyMoe/get
LDU_FT
[ "<BEGIN>\n## `to_xml`", "Convert data to XML String.\n :return: Str of valid XML data\n<END>", "<BEGIN>\n## `search`", "Search for a user by name.", " :param str term: What to search for.\n :return: The results as a SearchWrapper iterator or None if no results.\n :rtype: SearchWr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get a kitsu mapping by external site ID :param str external_site: string representing the external site :param int external_id: ID of the entry in the external site. :return: Dictionary or None (for not found) :rtype: Dictionary or None :raises: :class:`Pymoe.errors.ServerError`
"Get a kitsu mapping by external site ID\n\n :param str external_site: string representing the external site\n :param int external_id: ID of the entry in the external site.\n :return: Dictionary or None (for not found)\n :rtype: Dictionary or None\n :raises: :class:`Pymoe.errors.Serve...
105
false
ccubed/PyMoe
get
40,823
LDU_FT/the01/python-paps/format_message_type
LDU_FT
[ "<BEGIN>\n## `format_message_type`", "Get printable version for message type", " :param message_type: Message type\n :type message_type: int\n :return: Printable version\n :rtype: str\n<END>", "<BEGIN>\n## `format_data`", "Format bytes for printing", " :param data: Bytes\n :type data: No...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_message_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_message_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Get printable version for message type :param message_type: Message type :type message_type: int :return: Printable version :rtype: str
"Get printable version for message type\n\n :param message_type: Message type\n :type message_type: int\n :return: Printable version\n :rtype: str"
182
false
the01/python-paps
format_message_type
40,824
LDU_FT/tensorflow/mesh/pad
LDU_FT
[ "<BEGIN>\n## `make_layer_stack`", "Configurable layer stack.", " Args:\n layers: a list of subclasses of TransformerLayer\n num_layers: an integer\n Returns:\n a LayerStack\n<END>", "<BEGIN>\n## `make_bitransformer`", "Gin-configurable bitransformer constructor.", " In your config file you nee...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pad API. 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 pad API. 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...
Slice operation. Args: x: a list of Tensors paddings: list of integers of size 2, padding size before and after for dim. dim_name: string, name for the padding dim name: an optional string Returns: a Tensor with shape extended by output_shape for the last axis.
"Slice operation.\n\n Args:\n x: a list of Tensors\n paddings: list of integers of size 2, padding size before and after for dim.\n dim_name: string, name for the padding dim\n name: an optional string\n Returns:\n a Tensor with shape extended by output_shape for the last axis."
958
false
tensorflow/mesh
pad
40,825
LDU_FT/nschloe/meshplex/_update_cell_values
LDU_FT
[ "<BEGIN>\n## `create_cell_volumes`", "Computes the volumes of the \"cells\" in the mesh.\n<END>", "<BEGIN>\n## `create_control_volumes`", "Compute the control volumes of all nodes in the mesh.\n<END>", "<BEGIN>\n## `get_signed_simplex_volumes`", "Signed volume of a simplex in nD. Note that signing only ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_cell_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_cell_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Updates all sorts of cell information for the given cell IDs.
"Updates all sorts of cell information for the given cell IDs."
44
false
nschloe/meshplex
_update_cell_values
40,826
LDU_FT/HazyResearch/metal/_to_torch
LDU_FT
[ "<BEGIN>\n## `plot_probabilities_histogram`", "Plot a histogram from a numpy array of probabilities", " Args:\n Y_p: An [n] or [n, 1] np.ndarray of probabilities (floats in [0,1])\n<END>", "<BEGIN>\n## `plot_predictions_histogram`", "Plot a histogram comparing int predictions vs true labels by cla...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_torch API. 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 _to_torch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Converts a None, list, np.ndarray, or torch.Tensor to torch.Tensor
"Converts a None, list, np.ndarray, or torch.Tensor to torch.Tensor"
326
false
HazyResearch/metal
_to_torch
40,827
LDU_FT/kdeldycke/maildir-deduplicate/cli
LDU_FT
[ "<BEGIN>\n## `check_differences`", "In-depth check of mail differences.", " Compare all mails of the duplicate set with each other, both in size\n and content. Raise an error if we're not within the limits imposed by\n the threshold setting.\n<END>", "<BEGIN>\n## `diff`", "Return differ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API. 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 cli API. 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...
CLI for maildirs content analysis and deletion.
"CLI for maildirs content analysis and deletion."
68
false
kdeldycke/maildir-deduplicate
cli
40,828
LDU_FT/qacafe/cdrouter.py/list_logdir
LDU_FT
[ "<BEGIN>\n## `list`", "Get a list of configs.", " :param filter: (optional) Filters to apply as a string list.\n :param type: (optional) `union` or `inter` as string.\n :param sort: (optional) Sort fields to apply as string list.\n :param limit: (optional) Limit returned list length....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_logdir API. 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 list_logdir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Get a list of logdir files. :param id: Result ID as an int. :param filter: Filter to apply as string. :param sort: Sort field to apply as string. :return: :class:`results.LogDirFile <results.LogDirFile>` list
"Get a list of logdir files.\n\n :param id: Result ID as an int.\n :param filter: Filter to apply as string.\n :param sort: Sort field to apply as string.\n :return: :class:`results.LogDirFile <results.LogDirFile>` list"
282
false
qacafe/cdrouter.py
list_logdir
40,829
LDU_FT/JosuaKrause/quick_server/handle_special
LDU_FT
[ "<BEGIN>\n## `json_dumps`", "A safe JSON dump function that provides correct diverging numbers for a\n ECMAscript consumer.\n<END>", "<BEGIN>\n## `msg`", "Prints a message from the server to the log file.\n<END>", "<BEGIN>\n## `setup_restart`", "Sets up restart functionality that doesn't keep the fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_special API. 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 handle_special API. 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...
Handles a dynamic request. If this method returns False the request is interpreted as static file request. Methods can be registered using the `add_TYPE_METHOD_mask` methods of QuickServer. Parameters ---------- send_body : bool Whether to actually send the res...
"Handles a dynamic request. If this method returns False the request\n is interpreted as static file request. Methods can be registered\n using the `add_TYPE_METHOD_mask` methods of QuickServer.\n\n Parameters\n ----------\n send_body : bool\n Whether to actually send...
90
false
JosuaKrause/quick_server
handle_special
40,830
LDU_FT/kgori/treeCl/get_partition_score
LDU_FT
[ "<BEGIN>\n## `brent_optimise`", "Optimise ML distance between two partials. min and max set brackets\n<END>", "<BEGIN>\n## `pairdists`", "Load an alignment, calculate all pairwise distances and variances\n model parameter must be a Substitution model type from phylo_utils\n<END>", "<BEGIN>\n## `write...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_partition_score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_partition_score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Assumes analysis is done and written to id.json!
"Assumes analysis is done and written to id.json!"
389
false
kgori/treeCl
get_partition_score
40,831
LDU_FT/divio/aldryn-apphooks-config/get_app_instance
LDU_FT
[ "<BEGIN>\n## `namespace`", "Filter by namespace. Try to guess which field to use in lookup.\n Accept 'to' argument if you need to specify.\n<END>", "<BEGIN>\n## `_app_config_select`", "Return the select value for apphook configs", " :param request: request object\n :param obj: current o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_app_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_app_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns a tuple containing the current namespace and the AppHookConfig instance :param request: request object :return: namespace, config
"Returns a tuple containing the current namespace and the AppHookConfig instance\n\n :param request: request object\n :return: namespace, config"
39
false
divio/aldryn-apphooks-config
get_app_instance
40,832
LDU_FT/buckmaxwell/neoapi/disconnect_relationship
LDU_FT
[ "<BEGIN>\n## `resource_collection_response`", "This method is deprecated for version 1.1.0. Please use get_collection\n<END>", "<BEGIN>\n## `get_collection`", "r\"\"\"\n Used to fetch a collection of resource object of type 'cls' in response to a GET request\\\n . get_resource_or_collection sho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect_relationship 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 disconnect_relationship API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Disconnect one or more relationship in a collection with cardinality 'Many'. :param id: The 'id' field of the node on the left side of the relationship in the database. The id field must \ be set in the model -- it is not the same as the node id :param related_collection_name: The name of the ...
"Disconnect one or more relationship in a collection with cardinality 'Many'.\n\n :param id: The 'id' field of the node on the left side of the relationship in the database. The id field must \\\n be set in the model -- it is not the same as the node id\n :param related_collection_name: The name o...
33
false
buckmaxwell/neoapi
disconnect_relationship
40,833
LDU_FT/rkhleics/wagtailmenus/link_page_is_suitable_for_display
LDU_FT
[ "<BEGIN>\n## `_get_specified_sub_menu_template_name`", "Called by get_sub_menu_template(). Iterates through the various ways in\n which developers can specify potential sub menu templates for a menu,\n and returns the name of the most suitable template for the\n ``current_level``. Values are ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the link_page_is_suitable_for_display API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the link_page_is_suitable_for_display API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Like menu items, link pages linking to pages should only be included in menus when the target page is live and is itself configured to appear in menus. Returns a boolean indicating as much
"Like menu items, link pages linking to pages should only be included\n in menus when the target page is live and is itself configured to\n appear in menus. Returns a boolean indicating as much"
95
false
rkhleics/wagtailmenus
link_page_is_suitable_for_display
40,834
LDU_FT/dpursehouse/pygerrit2/_decode_response
LDU_FT
[ "<BEGIN>\n## `_decode_response`", "Strip off Gerrit's magic prefix and decode a response.", " :returns:\n Decoded JSON content as a dict, or raw text if content could not be\n decoded as JSON.", " :raises:\n requests.HTTPError if the response contains an HTTP error status code.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decode_response API. 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 _decode_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Strip off Gerrit's magic prefix and decode a response. :returns: Decoded JSON content as a dict, or raw text if content could not be decoded as JSON. :raises: requests.HTTPError if the response contains an HTTP error status code.
"Strip off Gerrit's magic prefix and decode a response.\n\n :returns:\n Decoded JSON content as a dict, or raw text if content could not be\n decoded as JSON.\n\n :raises:\n requests.HTTPError if the response contains an HTTP error status code."
22
false
dpursehouse/pygerrit2
_decode_response
40,835
LDU_FT/KelSolaar/Foundations/format_report
LDU_FT
[ "<BEGIN>\n## `list_attributes`", "Returns the Node attributes names.", " Usage::", " >>>\tnode_a = AbstractNode(\"MyNodeA\", attributeA=Attribute(), attributeB=Attribute())\n >>> node_a.list_attributes()\n ['attributeB', 'attributeA']", " :return: Attributes na...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_report API. 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 format_report API. 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...
Formats a report using given exception. :param cls: Exception class. :type cls: object :param instance: Exception instance. :type instance: object :param trcback: Traceback. :type trcback: Traceback :param context: Context being included. :type context: int :return: Formated report....
"Formats a report using given exception.\n\n :param cls: Exception class.\n :type cls: object\n :param instance: Exception instance.\n :type instance: object\n :param trcback: Traceback.\n :type trcback: Traceback\n :param context: Context being included.\n :type context: int\n :return: Forma...
629
false
KelSolaar/Foundations
format_report
40,836
LDU_FT/frawau/aiolifx/register
LDU_FT
[ "<BEGIN>\n## `mac_to_ipv6_linklocal`", "Translate a MAC address into an IPv6 address in the prefixed network.", " This function calculates the EUI (Extended Unique Identifier) from the given\n MAC address and prepend the needed prefix to come up with a valid IPv6 address.\n The default prefix is the li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Proxy method to register the device with the parent.
"Proxy method to register the device with the parent."
134
false
frawau/aiolifx
register
40,837
LDU_FT/agile-geoscience/welly/from_string
LDU_FT
[ "<BEGIN>\n## `sharey`", "Shared axes limits without shared locators, ticks, etc.", " By Joe Kington\n<END>", "<BEGIN>\n## `fix_ticks`", "Center ticklabels and hide any outside axes limits.", " By Joe Kington\n<END>", "<BEGIN>\n## `flatten_list`", "Unpacks lists in a list:", " [1, 2, [3,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Turn a PROJ.4 string into a mapping of parameters. Bare parameters like "+no_defs" are given a value of ``True``. All keys are checked against the ``all_proj_keys`` list. Args: prjs (str): A PROJ4 string.
"Turn a PROJ.4 string into a mapping of parameters. Bare parameters\n like \"+no_defs\" are given a value of ``True``. All keys are checked\n against the ``all_proj_keys`` list.\n\n Args:\n prjs (str): A PROJ4 string."
325
false
agile-geoscience/welly
from_string
40,838
LDU_FT/deshima-dev/decode/psd
LDU_FT
[ "<BEGIN>\n## `xarrayfunc`", "Make a function compatible with xarray.DataArray.", " This function is intended to be used as a decorator like::", " >>> @dc.xarrayfunc\n >>> def func(array):\n ... # do something\n ... return newarray\n >>>\n >>> result = func(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the psd API. 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 psd API. 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...
Calculate power spectrum density of data. Args: data (np.ndarray): Input data. dt (float): Time between each data. ndivide (int): Do averaging (split data into ndivide, get psd of each, and average them). ax (matplotlib.axes): Axis you want to plot on. doplot (bool): Plot ho...
"Calculate power spectrum density of data.\n\n Args:\n data (np.ndarray): Input data.\n dt (float): Time between each data.\n ndivide (int): Do averaging (split data into ndivide, get psd of each, and average them).\n ax (matplotlib.axes): Axis you want to plot on.\n doplot (bool):...
137
false
deshima-dev/decode
psd
40,839
LDU_FT/vicalloy/lbutils/fmt_datetime
LDU_FT
[ "<BEGIN>\n## `get_sum`", "get sum for queryset.", " ``qs``: queryset\n ``field``: The field name to sum.\n<END>", "<BEGIN>\n## `get_max`", "get max for queryset.", " qs: queryset\n field: The field name to max.\n<END>", "<BEGIN>\n## `do_filter`", "auto filter queryset by dict.", " qs:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fmt_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fmt_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 extr...
format date with local support ``d``: datetime to format ``fmt``: format, default is '%Y-%m-%d %H-%M' ``local``: format as local time
"format date with local support\n ``d``: datetime to format\n ``fmt``: format, default is '%Y-%m-%d %H-%M'\n ``local``: format as local time"
30
false
vicalloy/lbutils
fmt_datetime
40,840
LDU_FT/pebble/libpebble2/delete
LDU_FT
[ "<BEGIN>\n## `send_notification`", "Sends a notification. Blocks as long as necessary.", " :param subject: The subject.\n :type subject: str\n :param message: The message.\n :type message: str\n :param sender: The sender.\n :type sender: str\n :param source: The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Delete an item from the given database. :param database: The database from which to delete the value. :type database: .BlobDatabaseID :param key: The key to delete. :type key: uuid.UUID :param callback: A callback to be called on success or failure.
"Delete an item from the given database.\n\n :param database: The database from which to delete the value.\n :type database: .BlobDatabaseID\n :param key: The key to delete.\n :type key: uuid.UUID\n :param callback: A callback to be called on success or failure."
121
false
pebble/libpebble2
delete
40,841
LDU_FT/sigvaldm/frmt/format_time_small
LDU_FT
[ "<BEGIN>\n## `format_fit`", "Fits a piece of text to ``width`` characters by truncating too long text and\n padding too short text with spaces. Defaults to terminal width. Truncation\n is indicated by a customizable suffix. ``align`` specifies the alignment of\n the contents if it is padded, and can be:"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_time_small API. 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 format_time_small API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Same as format_time() but always uses SI-prefix and 3 significant figures.
"Same as format_time() but always uses SI-prefix and 3 significant figures."
31
false
sigvaldm/frmt
format_time_small
40,842
LDU_FT/SpikeInterface/spikeextractors/set_units_property
LDU_FT
[ "<BEGIN>\n## `write_recording`", "Save recording extractor to MEArec format.\n Parameters\n ----------\n recording: RecordingExtractor\n Recording extractor object to be saved\n save_path: str\n .h5 or .hdf5 path\n<END>", "<BEGIN>\n## `write_sorting`", "Save s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_units_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_units_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Sets unit property data for a list of units Parameters ---------- unit_ids: list The list of unit ids for which the property will be set Defaults to get_unit_ids() property_name: str The name of the property value: list The list of...
"Sets unit property data for a list of units\n\n Parameters\n ----------\n unit_ids: list\n The list of unit ids for which the property will be set\n Defaults to get_unit_ids()\n property_name: str\n The name of the property\n value: list\n ...
115
false
SpikeInterface/spikeextractors
set_units_property
40,843
LDU_FT/toumorokoshi/sprinter/get
LDU_FT
[ "<BEGIN>\n## `whitespace_smart_split`", "Split a command by whitespace, taking care to not split on\n whitespace within quotes.", " >>> whitespace_smart_split(\"test this \\\\\\\"in here\\\\\\\" again\")\n ['test', 'this', '\"in here\"', 'again']\n<END>", "<BEGIN>\n## `sync`", "execute the steps re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns the value if it exist, or default if default is set
"Returns the value if it exist, or default if default is set"
150
false
toumorokoshi/sprinter
get
40,844
LDU_FT/chemlab/chemlab/state
LDU_FT
[ "<BEGIN>\n## `molecular_orbital`", "Return a molecular orbital given the nuclei coordinates, as well as\n molecular orbital coefficients and basis set specification as given by the cclib library.", " The molecular orbital is represented as a function that takes x, y, z coordinates (in a vectorized f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return the current camera state as a dictionary, it can be restored with `Camera.restore`.
"Return the current camera state as a dictionary, it can be\n restored with `Camera.restore`."
665
false
chemlab/chemlab
state
40,845
LDU_FT/sangoma/pysensu/get_all_client_events
LDU_FT
[ "<BEGIN>\n## `get_all_client_events`", "Returns the list of current events for a given client.\n<END>", "<BEGIN>\n## `get_event`", "Returns an event for a given client & check name.\n<END>", "<BEGIN>\n## `delete_event`", "Resolves an event for a given check on a given client. (delayed action)\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_client_events API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_client_events API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns the list of current events for a given client.
"Returns the list of current events for a given client."
18
false
sangoma/pysensu
get_all_client_events
40,846
LDU_FT/vmirly/pyclust/_assign_clusters
LDU_FT
[ "<BEGIN>\n## `_update_centers`", "Update Cluster Centers:\n calculate the mean of feature vectors for each cluster.", " distance can be a string or callable.\n<END>", "<BEGIN>\n## `_kmedoids_run`", "Run a single trial of k-medoids clustering\n on dataset X, and given number of cluste...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _assign_clusters API. 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 _assign_clusters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Assignment Step: assign each point to the closet cluster center
"Assignment Step:\n assign each point to the closet cluster center"
47
false
vmirly/pyclust
_assign_clusters
40,847
LDU_FT/arista-eosplus/pyeapi/get
LDU_FT
[ "<BEGIN>\n## `get`", "Returns the VRF configuration as a resource dict.", " Args:\n value (string): The vrf name to retrieve from the\n running configuration.", " Returns:\n A Python dict object containing the VRF attributes as\n key/value pair...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns the specific IP interface properties The Ipinterface resource returns the following: * name (str): The name of the interface * address (str): The IP address of the interface in the form of A.B.C.D/E * mtu (int): The configured value for IP MTU. ...
"Returns the specific IP interface properties\n\n The Ipinterface resource returns the following:\n\n * name (str): The name of the interface\n * address (str): The IP address of the interface in the form\n of A.B.C.D/E\n * mtu (int): The configured value for IP MT...
853
false
arista-eosplus/pyeapi
get
40,848
LDU_FT/elastic/elasticsearch-dsl-py/query
LDU_FT
[ "<BEGIN>\n## `scan_aggs`", "Helper function used to iterate over all possible bucket combinations of\n ``source_aggs``, returning results of ``inner_aggs`` for each. Uses the\n ``composite`` aggregation under the hood to perform this.\n<END>", "<BEGIN>\n## `clean`", "Automatically construct the suggesti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Add query part to ``search``. Override this if you wish to customize the query used.
"Add query part to ``search``.\n\n Override this if you wish to customize the query used."
257
false
elastic/elasticsearch-dsl-py
query
40,849
LDU_FT/jxtech/wechatpy/rsa_encrypt
LDU_FT
[ "<BEGIN>\n## `add_articles`", "新增永久图文素材\n 详情请参考\n https://mp.weixin.qq.com/wiki?id=mp1494572718_WzHIY", " :param articles: 图文素材数组\n :type articles: list[dict]\n :return: 返回的 JSON 数据包\n<END>", "<BEGIN>\n## `add`", "新增其它类型永久素材\n 详情请参考\n http://mp.weixin.qq.com/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rsa_encrypt API. 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 rsa_encrypt API. 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...
rsa 加密 :param data: 待加密字符串/binary :param pem: RSA public key 内容/binary :param b64_encode: 是否对输出进行 base64 encode :return: 如果 b64_encode=True 的话,返回加密并 base64 处理后的 string;否则返回加密后的 binary
"rsa 加密\n :param data: 待加密字符串/binary\n :param pem: RSA public key 内容/binary\n :param b64_encode: 是否对输出进行 base64 encode\n :return: 如果 b64_encode=True 的话,返回加密并 base64 处理后的 string;否则返回加密后的 binary"
813
false
jxtech/wechatpy
rsa_encrypt
40,850
LDU_FT/eyurtsev/FlowCytometryTools/validate_input
LDU_FT
[ "<BEGIN>\n## `get_tag_value`", "Extracts the value of a tag from a string.", " Parameters\n -----------------", " pre : str\n regular expression to match before the the tag value", " post : str | list | tuple\n regular expression to match after the the tag value", " if lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_input API. 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 validate_input API. 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...
Raise appropriate exception if gate was defined incorrectly.
"Raise appropriate exception if gate was defined incorrectly."
330
false
eyurtsev/FlowCytometryTools
validate_input
40,851
LDU_FT/bearyinnovative/bearychat.py/members
LDU_FT
[ "<BEGIN>\n## `request`", "Perform a request.", " Args:\n request_method: HTTP method for this request.\n api_method: API method name for this request.\n *args: Extra arguments to pass to the request.\n **kwargs: Extra keyword arguments to pass to the request.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the members API. 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 members API. 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...
Gets members of current team Returns: list of User Throws: RTMServiceError when request failed
"Gets members of current team\n\n Returns:\n list of User\n\n Throws:\n RTMServiceError when request failed"
68
false
bearyinnovative/bearychat.py
members
40,852
LDU_FT/grabbles/grabbit/as_named_tuple
LDU_FT
[ "<BEGIN>\n## `merge_layouts`", "Utility function for merging multiple layouts.", " Args:\n layouts (list): A list of BIDSLayout instances to merge.\n Returns:\n A BIDSLayout containing merged files and entities.\n Notes:\n Layouts will be merged in the order of the elements in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_named_tuple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_named_tuple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns the File as a named tuple. The full path plus all entity key/value pairs are returned as attributes.
"Returns the File as a named tuple. The full path plus all entity\n key/value pairs are returned as attributes."
60
false
grabbles/grabbit
as_named_tuple
40,853
LDU_FT/project-ncl/pnc-cli/get_all
LDU_FT
[ "<BEGIN>\n## `get_environment`", "Get a specific Environment by name or ID\n<END>", "<BEGIN>\n## `create_new`", "Creates a new License", " This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please define a `callback` function\n to be invoked...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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...
Gets all Licenses This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> ...
"Gets all Licenses\n \n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please define a `callback` function\n to be invoked when receiving the response.\n >>> def callback_function(response):\n >>> pprint(response)\n >...
527
false
project-ncl/pnc-cli
get_all
40,854
LDU_FT/schlamar/latexmk.py/read_glossaries
LDU_FT
[ "<BEGIN>\n## `_count_citations`", "Counts the citations in an aux-file.", " @return: defaultdict(int) - {citation_name: number, ...}\n<END>", "<BEGIN>\n## `main`", "Set up \"optparse\" and pass the options to\n a new instance of L{LatexMaker}.\n<END>", "<BEGIN>\n## `_parse_texlipse_config`", "Read...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_glossaries API. 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 read_glossaries API. 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...
Read all existing glossaries in the main aux-file.
"Read all existing glossaries in the main aux-file."
27
false
schlamar/latexmk.py
read_glossaries
40,855
LDU_FT/Yubico/yubikey-manager/nfc
LDU_FT
[ "<BEGIN>\n## `openpgp`", "Manage OpenPGP Application.", " Examples:", " \\b\n Set the retries for PIN, Reset Code and Admin PIN to 10:\n $ ykman openpgp set-retries 10 10 10", " \\b\n Require touch to use the authentication key:\n $ ykman openpgp touch aut on\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nfc API. 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 nfc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Enable or disable applications over NFC.
"Enable or disable applications over NFC."
180
false
Yubico/yubikey-manager
nfc
40,856
LDU_FT/jwhitlock/drf-cached-instances/update_cache_for_instance
LDU_FT
[ "<BEGIN>\n## `user_default_serializer`", "Convert a User to a cached instance representation.\n<END>", "<BEGIN>\n## `user_default_add_related_pks`", "Add related primary keys to a User instance.\n<END>", "<BEGIN>\n## `group_default_invalidator`", "Invalidated cached items when the Group changes.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_cache_for_instance 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 update_cache_for_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Update the cache for an instance, with cascading updates.
"Update the cache for an instance, with cascading updates."
75
false
jwhitlock/drf-cached-instances
update_cache_for_instance
40,857
LDU_FT/csurfer/pyheat/__fetch_heatmap_data_from_profile
LDU_FT
[ "<BEGIN>\n## `show_heatmap`", "Method to actually display the heatmap created.", " @param blocking: When set to False makes an unblocking plot show.\n @param output_file: If not None the heatmap image is output to this\n file. Supported formats: (eps, pdf, pgf, png, ps, raw, rgb...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __fetch_heatmap_data_from_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __fetch_heatmap_data_from_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Method to create heatmap data from profile information.
"Method to create heatmap data from profile information."
14
false
csurfer/pyheat
__fetch_heatmap_data_from_profile
40,858
LDU_FT/marrow/mailer/_apply_common_rules
LDU_FT
[ "<BEGIN>\n## `validate_or_raise`", "Some people would condemn this whole module screaming:\n \"Don't return success codes, use exceptions!\"\n This method allows them to be happy, too.\n<END>", "<BEGIN>\n## `_apply_common_rules`", "This method contains the rules that must be applied to both the\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_common_rules 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 _apply_common_rules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
This method contains the rules that must be applied to both the domain and the local part of the e-mail address.
"This method contains the rules that must be applied to both the\n domain and the local part of the e-mail address."
28
false
marrow/mailer
_apply_common_rules
40,859
LDU_FT/camptocamp/anthem/safe_record
LDU_FT
[ "<BEGIN>\n## `define_settings`", "Define settings like being in the interface\n Example :\n - model = 'sale.config.settings' or ctx.env['sale.config.settings']\n - values = {'default_invoice_policy': 'delivery'}\n Be careful, settings onchange are not triggered with this function.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_record API. 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 safe_record API. 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...
Make sure we get a record instance even if we pass an xmlid.
"Make sure we get a record instance even if we pass an xmlid."
28
false
camptocamp/anthem
safe_record
40,860
LDU_FT/ForensicArtifacts/artifacts/_ReadSources
LDU_FT
[ "<BEGIN>\n## `_PrintDictAsTable`", "Prints a table of artifact definitions.", " Args:\n src_dict (dict[str, ArtifactDefinition]): artifact definitions by name.\n<END>", "<BEGIN>\n## `PrintStats`", "Build stats and print in MarkDown format.\n<END>", "<BEGIN>\n## `AsDict`", "Represents a source ty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ReadSources API. 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 _ReadSources API. 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...
Reads the artifact definition sources. Args: artifact_definition_values (dict[str, object]): artifact definition values. artifact_definition (ArtifactDefinition): an artifact definition. name (str): name of the artifact definition. Raises: FormatError: if the type indicator i...
"Reads the artifact definition sources.\n\n Args:\n artifact_definition_values (dict[str, object]): artifact definition\n values.\n artifact_definition (ArtifactDefinition): an artifact definition.\n name (str): name of the artifact definition.\n\n Raises:\n FormatError: if the type i...
160
false
ForensicArtifacts/artifacts
_ReadSources
40,861
LDU_FT/pypyr/pypyr-cli/keys_of_type_exist
LDU_FT
[ "<BEGIN>\n## `run_step`", "Wipe the entire context.", " Args:\n Context is a dictionary or dictionary-like.\n Does not require any specific keys in context.\n<END>", "<BEGIN>\n## `get_parsed_context`", "Parse input context string and returns context as dictionary.\n<END>", "<BEGIN>\n## `r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keys_of_type_exist 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 keys_of_type_exist 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...
Check if keys exist in context and if types are as expected. Args: *keys: *args for keys to check in context. Each arg is a tuple (str, type) Returns: Tuple of namedtuple ContextItemInfo, same order as *keys. ContextItemInfo(key, ...
"Check if keys exist in context and if types are as expected.\n\n Args:\n *keys: *args for keys to check in context.\n Each arg is a tuple (str, type)\n\n Returns:\n Tuple of namedtuple ContextItemInfo, same order as *keys.\n ContextItemInfo(key,\n ...
527
false
pypyr/pypyr-cli
keys_of_type_exist
40,862
LDU_FT/scour-project/scour/flags
LDU_FT
[ "<BEGIN>\n## `lex`", "Yield (token_type, str_data) tokens.", " The last token will be (EOF, None) where EOF is the singleton object\n defined in this module.\n<END>", "<BEGIN>\n## `parse`", "Parse a string of SVG transform=\"\" data.\n<END>", "<BEGIN>\n## `findReferencedElements`", "Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flags API. 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 flags API. 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...
Checks if there are flags in the path data Returns the indices of all values in the path data which are flags
"Checks if there are flags in the path data\n\n Returns the indices of all values in the path data which are flags"
103
false
scour-project/scour
flags
40,863
LDU_FT/onnx/onnx/make_attribute
LDU_FT
[ "<BEGIN>\n## `run_node`", "Simple run one operator and return the results.\n Args:\n outputs_info: a list of tuples, which contains the element type and\n shape of each output. First element of the tuple is the dtype, and\n the second element is the shape. More use case can...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Makes an AttributeProto based on the value type.
"Makes an AttributeProto based on the value type."
72
false
onnx/onnx
make_attribute
40,864
LDU_FT/vimalkvn/riboplot/get_color_palette
LDU_FT
[ "<BEGIN>\n## `lengths_offsets`", "Split the given comma separated value to multiple integer values.\n<END>", "<BEGIN>\n## `open_pysam_file`", "Open a BAM or FASTA file with pysam (for use with \"with\" statement)\n<END>", "<BEGIN>\n## `is_bam_valid`", "Check if bam file is valid. Raises a ValueError if py...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_color_palette API. 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_color_palette API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return colors for a given scheme. Default colors are returned for an item if undefined in scheme.
"Return colors for a given scheme. Default colors are returned for an item\n if undefined in scheme."
53
false
vimalkvn/riboplot
get_color_palette
40,865
LDU_FT/tBaxter/tango-articles/save
LDU_FT
[ "<BEGIN>\n## `auto_tweet`", "Allows auto-tweeting newly created object to twitter\n on accounts configured in settings.", " You MUST create an app to allow oAuth authentication to work:\n -- https://dev.twitter.com/apps/\n You also must set the app to \"Read and Write\" access level,\n and creat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. 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 save API. 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...
Store summary if none was given and created formatted version of body text.
"Store summary if none was given\r\n and created formatted version of body text."
17
false
tBaxter/tango-articles
save
40,866
LDU_FT/quantum5/2048/_scale_tile
LDU_FT
[ "<BEGIN>\n## `got_score`", "Update the best score if the new score is higher, returning the change.\n<END>", "<BEGIN>\n## `get_position`", "Given dt in [0, 1], return the current position of the tile.\n<END>", "<BEGIN>\n## `_make_tile`", "Renders a tile, according to its value, and background and foregrou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _scale_tile API. 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 _scale_tile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return the prescaled tile if already exists, otherwise scale and store it.
"Return the prescaled tile if already exists, otherwise scale and store it."
26
false
quantum5/2048
_scale_tile
40,867
LDU_FT/KieranWynn/pyquaternion/derivative
LDU_FT
[ "<BEGIN>\n## `_validate_number_sequence`", "Validate a sequence to be of a certain length and ensure it's a numpy array of floats.", " Raises:\n ValueError: Invalid length or non-numeric value\n<END>", "<BEGIN>\n## `_from_matrix`", "Initialise from matrix representation", " Create...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the derivative API. 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 derivative API. 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...
Get the instantaneous quaternion derivative representing a quaternion rotating at a 3D rate vector `rate` Params: rate: numpy 3-array (or array-like) describing rotation rates about the global x, y and z axes respectively. Returns: A unit quaternion describing the rotation rate
"Get the instantaneous quaternion derivative representing a quaternion rotating at a 3D rate vector `rate`\n\n Params:\n rate: numpy 3-array (or array-like) describing rotation rates about the global x, y and z axes respectively.\n\n Returns:\n A unit quaternion describing the rotati...
129
false
KieranWynn/pyquaternion
derivative
40,868
LDU_FT/EVEprosper/ProsperCommon/send_msg_to_webhook
LDU_FT
[ "<BEGIN>\n## `render_secrets`", "combine a jinja template with a secret .ini file", " Args:\n config_path (str): path to .cfg file with jinja templating\n secret_path (str): path to .ini-like secrets file", " Returns:\n ProsperConfig: rendered configuration object\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_msg_to_webhook 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 send_msg_to_webhook 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...
separated Requests logic for easier testing Args: message (str): actual logging string to be passed to REST endpoint Todo: * Requests.text/json return for better testing options
"separated Requests logic for easier testing\n\n Args:\n message (str): actual logging string to be passed to REST endpoint\n\n Todo:\n * Requests.text/json return for better testing options"
115
false
EVEprosper/ProsperCommon
send_msg_to_webhook
40,869
LDU_FT/ECESeniorDesign/lazy_record/update
LDU_FT
[ "<BEGIN>\n## `does_not_mutate`", "Prevents methods from mutating the receiver\n<END>", "<BEGIN>\n## `find_by`", "Find first record subject to restrictions in +kwargs+, raising\n RecordNotFound if no such record exists.\n<END>", "<BEGIN>\n## `first`", "Returns the first record in the query (sorting ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Update records in the table with +data+. Often combined with `where`, as it acts on all records in the table unless restricted. ex) >>> Repo("foos").update(name="bar") UPDATE foos SET name = "bar"
"Update records in the table with +data+. Often combined with `where`,\n as it acts on all records in the table unless restricted.\n\n ex)\n\n >>> Repo(\"foos\").update(name=\"bar\")\n UPDATE foos SET name = \"bar\""
78
false
ECESeniorDesign/lazy_record
update
40,870
LDU_FT/UCL-INGI/INGInious/get_custom_renderer
LDU_FT
[ "<BEGIN>\n## `handle_agent_message`", "Dispatch messages received from agents to the right handlers\n<END>", "<BEGIN>\n## `handle_client_message`", "Dispatch messages received from clients to the right handlers\n<END>", "<BEGIN>\n## `send_container_update_to_client`", ":param client_addrs: list of clients...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_custom_renderer 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_custom_renderer 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...
Create a template renderer on templates in the directory specified, and returns it. :param dir_path: the path to the template dir. If it is not absolute, it will be taken from the root of the inginious package. :param layout: can either be True (use the base layout of the running app), False (use no lay...
"Create a template renderer on templates in the directory specified, and returns it.\n :param dir_path: the path to the template dir. If it is not absolute, it will be taken from the root of the inginious package.\n :param layout: can either be True (use the base layout of the running app), False (use no ...
567
false
UCL-INGI/INGInious
get_custom_renderer
40,871
LDU_FT/PyCQA/pydocstyle/check_one_liners
LDU_FT
[ "<BEGIN>\n## `error_lineno`", "Get the line number with which to report violations.\n<END>", "<BEGIN>\n## `source`", "Return the source code for the definition.\n<END>", "<BEGIN>\n## `is_public`", "Return True iff this function should be considered public.\n<END>", "<BEGIN>\n## `is_magic`", "Return Tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_one_liners API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_one_liners API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
D200: One-liner docstrings should fit on one line with quotes. The closing quotes are on the same line as the opening quotes. This looks better for one-liners.
"D200: One-liner docstrings should fit on one line with quotes.\n\n The closing quotes are on the same line as the opening quotes.\n This looks better for one-liners."
183
false
PyCQA/pydocstyle
check_one_liners
40,872