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/micha030201/aionationstates/repeal_target | LDU_FT | [
"<BEGIN>\n## `tgcanrecruit`",
"Whether the nation will receive a recruitment telegram.",
" Useful in conjunction with the Telegrams API.",
" Parameters\n ----------\n region : str\n Name of the region you are recruiting for.",
" Returns\n -------\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repeal_target API.
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 repeal_target API.
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... | The resolution this resolution has repealed, or is attempting
to repeal.
Returns
-------
:class:`ApiQuery` of :class:`Resolution`
Raises
------
TypeError:
If the resolution doesn't repeal anything. | "The resolution this resolution has repealed, or is attempting\n to repeal.\n\n Returns\n -------\n :class:`ApiQuery` of :class:`Resolution`\n\n Raises\n ------\n TypeError:\n If the resolution doesn't repeal anything." | 156 | false | micha030201/aionationstates | repeal_target | 38,173 | |
LDU_FT/davgeo/clear/AddToFileNameTable | LDU_FT | [
"<BEGIN>\n## `_SetGuide`",
"Select guide corresponding to guideName",
" Parameters\n ----------\n guideName : string\n Name of guide to use.",
" Note\n ----------\n Supported guide names are: EPGUIDES\n<END>",
"<BEGIN>\n## `_GetUniqueFileShowNames`",
"Return a list containing al... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AddToFileNameTable 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 AddToFileNameTable 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... | Add entry to FileName table. If the file name and show id combination
already exists in the table a fatal error is raised.
Parameters
----------
fileName : string
File name.
showID : int
Show id. | "Add entry to FileName table. If the file name and show id combination\n already exists in the table a fatal error is raised.\n\n Parameters\n ----------\n fileName : string\n File name.\n\n showID : int\n Show id." | 298 | false | davgeo/clear | AddToFileNameTable | 38,174 | |
LDU_FT/aws/aws-dynamodb-encryption-python/_string_to_sign | LDU_FT | [
"<BEGIN>\n## `encrypt_item`",
"Demonstrate use of EncryptedTable to transparently encrypt an item.\n<END>",
"<BEGIN>\n## `to_str`",
"Takes an input str or bytes object and returns an equivalent str object.",
" :param data: Input data\n :type data: str or bytes\n :returns: Data normalized to str\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _string_to_sign API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _string_to_sign API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Generate the string to sign from an encrypted item and configuration.
:param dict item: Encrypted DynamoDB item
:param str table_name: Table name to use when generating the string to sign
:param AttributeActions attribute_actions: Actions to take for item | "Generate the string to sign from an encrypted item and configuration.\n\n :param dict item: Encrypted DynamoDB item\n :param str table_name: Table name to use when generating the string to sign\n :param AttributeActions attribute_actions: Actions to take for item" | 175 | false | aws/aws-dynamodb-encryption-python | _string_to_sign | 38,175 | |
LDU_FT/usc-isi-i2/etk/all_days | LDU_FT | [
"<BEGIN>\n## `decode_unicode`",
"Process of parsing:\n -> Convert unicode into standard form\n -> Convert each character of the unicode symbol to its numerical equivalent\n -> Mapping Process:\n - First check in pattern dictionary to map suffix/prefix\n - Check Emoticon Dictionary \n - Replace valu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_days API.
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 all_days API.
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 a list of all dates from 11/12/2015 to the present.
Args:
boo: if true, list contains Numbers (20151230); if false, list contains Strings ("2015-12-30")
Returns:
list of either Numbers or Strings | "Return a list of all dates from 11/12/2015 to the present.\n\n Args:\n boo: if true, list contains Numbers (20151230); if false, list contains Strings (\"2015-12-30\")\n Returns:\n list of either Numbers or Strings" | 427 | false | usc-isi-i2/etk | all_days | 38,176 | |
LDU_FT/python-useful-helpers/threaded/_func | LDU_FT | [
"<BEGIN>\n## `build_extension`",
"build_extension.",
" :raises BuildFailed: cythonize impossible\n<END>",
"<BEGIN>\n## `_func`",
"Get wrapped function.",
" :rtype: typing.Optional[typing.Callable[..., typing.Union[typing.Awaitable, typing.Any]]]\n<END>",
"<BEGIN>\n## `_get_function_wrapper... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _func API.
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 _func API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Get wrapped function.
:rtype: typing.Optional[typing.Callable[..., typing.Union[typing.Awaitable, typing.Any]]] | "Get wrapped function.\n\n :rtype: typing.Optional[typing.Callable[..., typing.Union[typing.Awaitable, typing.Any]]]" | 42 | false | python-useful-helpers/threaded | _func | 38,177 | |
LDU_FT/vedvyas/doxytag2zealdb/save | LDU_FT | [
"<BEGIN>\n## `set_property`",
"Set a new (or updating existing) key value pair.",
" Args:\n key: A string containing the key namespace\n value: A str, int, or bool value",
" Raises:\n NotImplementedError: an unsupported value-type was provided\n<END>",
"<BEGIN>... | 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... | Save current property list representation to the original file. | "Save current property list representation to the original file." | 50 | false | vedvyas/doxytag2zealdb | save | 38,178 | |
LDU_FT/alfred82santa/aio-service-client/use_mock | LDU_FT | [
"<BEGIN>\n## `random_token`",
"Builds a random string.",
" :param length: Token length. **Default:** 10\n :type length: int\n :return: str\n<END>",
"<BEGIN>\n## `patch_mock_desc`",
"Context manager or decorator in order to patch a mock definition of service\n endpoint in a test.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_mock API.
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 use_mock API.
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... | Context manager or decorator in order to use a coroutine as mock of service
endpoint in a test.
:param mock: Coroutine to use as mock. It should behave like :meth:`~ClientSession.request`.
:type mock: coroutine
:param service_name: Name of service where you want to use mock. If None it ... | "Context manager or decorator in order to use a coroutine as mock of service\n endpoint in a test.\n\n :param mock: Coroutine to use as mock. It should behave like :meth:`~ClientSession.request`.\n :type mock: coroutine\n :param service_name: Name of service where you want to use mock. If No... | 13 | false | alfred82santa/aio-service-client | use_mock | 38,179 | |
LDU_FT/GGiecold/Concurrent_AP/parse_options | LDU_FT | [
"<BEGIN>\n## `chunk_generator`",
"Returns a generator of slice objects.",
" Parameters\n ----------\n N : int\n The size of one of the dimensions of a two-dimensional array. ",
" n : int\n The number of arrays of shape ('N', 'get_chunk_size(N, n)') that fit into\n memory.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Specify the command line options to parse.
Returns
-------
opts : optparse.Values instance
Contains the option values in its 'dict' member variable.
args[0] : string or file-handler
The name of the file storing the data-set submitted
for Affinity Propagation clustering. | "Specify the command line options to parse.\n \n Returns\n -------\n opts : optparse.Values instance\n Contains the option values in its 'dict' member variable.\n \n args[0] : string or file-handler\n The name of the file storing the data-set submitted\n for Affinity Propagation c... | 61 | false | GGiecold/Concurrent_AP | parse_options | 38,180 | |
LDU_FT/moonso/loqusdb/load_variants | LDU_FT | [
"<BEGIN>\n## `update_database`",
"Update a case in the database",
" Args:\n adapter: Connection to database\n variant_file(str): Path to variant file\n sv_file(str): Path to sv variant file\n family_file(str): Path to family file\n family_type(str): Format of fami... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_variants API.
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 load_variants API.
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... | Load variants for a family into the database.
Args:
adapter (loqusdb.plugins.Adapter): initialized plugin
case_obj(Case): dict with case information
nr_variants(int)
skip_case_id (bool): whether to include the case id on variant level
or not
gq_t... | "Load variants for a family into the database.\n\n Args:\n adapter (loqusdb.plugins.Adapter): initialized plugin\n case_obj(Case): dict with case information\n nr_variants(int)\n skip_case_id (bool): whether to include the case id on variant level\n or not\n ... | 216 | false | moonso/loqusdb | load_variants | 38,181 | |
LDU_FT/BoboTiG/python-mss/monitors | LDU_FT | [
"<BEGIN>\n## `to_png`",
"Dump data to a PNG file. If `output` is `None`, create no file but return\n the whole PNG data.",
" :param bytes data: RGBRGB...RGB data.\n :param tuple size: The (width, height) pair.\n :param int level: PNG compression level.\n :param str output: Output file name.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the monitors API.
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 monitors API.
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... | Get positions of monitors (see parent class property). | "Get positions of monitors (see parent class property)." | 62 | false | BoboTiG/python-mss | monitors | 38,182 | |
LDU_FT/dgketchum/satellite_image/land_threshold | LDU_FT | [
"<BEGIN>\n## `_scene_centroid`",
"Compute image center coordinates\n :return: Tuple of image center in lat, lon\n<END>",
"<BEGIN>\n## `earth_sun_d`",
"Earth-sun distance in AU",
" :param dtime time, e.g. datetime.datetime(2007, 5, 1)\n :type datetime object\n :return float(distan... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the land_threshold API.
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 land_threshold API.
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... | Dynamic threshold for determining cloud cutoff
Equation 17 (Zhu and Woodcock, 2012)
Parameters
----------
land_cloud_prob: ndarray
probability of cloud over land
pcps: ndarray
potential cloud pixels
water: ndarray
water mask
Out... | "Dynamic threshold for determining cloud cutoff\n Equation 17 (Zhu and Woodcock, 2012)\n Parameters\n ----------\n land_cloud_prob: ndarray\n probability of cloud over land\n pcps: ndarray\n potential cloud pixels\n water: ndarray\n water mask\n... | 86 | false | dgketchum/satellite_image | land_threshold | 38,183 | |
LDU_FT/ardydedase/pycouchbase/_add_bad_rc | LDU_FT | [
"<BEGIN>\n## `_add_err`",
"Sets the error on this MultiResult. Will be ignored if an error is\n already set.\n :param exinfo: Return value from ``sys.exc_info()``\n<END>",
"<BEGIN>\n## `_add_bad_rc`",
"Sets an error with a bad return code. Handles 'quiet' logic\n :param rc: The error code... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_bad_rc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_bad_rc API.
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... | Sets an error with a bad return code. Handles 'quiet' logic
:param rc: The error code | "Sets an error with a bad return code. Handles 'quiet' logic\n :param rc: The error code" | 76 | false | ardydedase/pycouchbase | _add_bad_rc | 38,184 | |
LDU_FT/BeyondTheClouds/enoslib/init | LDU_FT | [
"<BEGIN>\n## `_build_g5k_conf`",
"Build the conf of the g5k provider from the vmong5k conf.\n<END>",
"<BEGIN>\n## `cached`",
"Decorator for caching/retrieving api calls request.",
" Many calls to the API are getter on static parts (e.g site of a given\n cluster name won't change). By caching some resp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API.
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 init API.
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... | Reserve and deploys the nodes according to the resources section
In comparison to the vagrant provider, networks must be characterized
as in the networks key.
Args:
force_deploy (bool): True iff the environment must be redeployed
Raises:
MissingNetworkError: If ... | "Reserve and deploys the nodes according to the resources section\n\n In comparison to the vagrant provider, networks must be characterized\n as in the networks key.\n\n Args:\n force_deploy (bool): True iff the environment must be redeployed\n Raises:\n MissingNetworkE... | 229 | false | BeyondTheClouds/enoslib | init | 38,185 | |
LDU_FT/MacHu-GWU/windtalker-project/newkeys | LDU_FT | [
"<BEGIN>\n## `newkeys`",
"Create a new pair of public and private key pair to use.\n<END>",
"<BEGIN>\n## `encrypt`",
"Encrypt binary data.",
" **中文文档**",
" - 发送消息时只需要对方的pubkey\n - 如需使用签名, 则双方都需要持有对方的pubkey\n<END>",
"<BEGIN>\n## `decrypt`",
"Decrypt binary data.",
" **中文文档... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the newkeys API.
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 newkeys API.
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... | Create a new pair of public and private key pair to use. | "Create a new pair of public and private key pair to use." | 47 | false | MacHu-GWU/windtalker-project | newkeys | 38,186 | |
LDU_FT/silenc3r/dikicli/_parse_html | LDU_FT | [
"<BEGIN>\n## `_parse_html`",
"Parse html string.",
" Parameters\n ----------\n html_dump : str\n HTML content.\n native : bool, optional\n Whether to translate from native to foreign language.",
" Returns\n -------\n translations : list\n Translations list.",
" R... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_html API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_html API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Parse html string.
Parameters
----------
html_dump : str
HTML content.
native : bool, optional
Whether to translate from native to foreign language.
Returns
-------
translations : list
Translations list.
Raises
------
WordNotFound
If word can't ... | "Parse html string.\n\n Parameters\n ----------\n html_dump : str\n HTML content.\n native : bool, optional\n Whether to translate from native to foreign language.\n\n Returns\n -------\n translations : list\n Translations list.\n\n Raises\n ------\n WordNotFound\n ... | 62 | false | silenc3r/dikicli | _parse_html | 38,187 | |
LDU_FT/fjwCode/cerium/find_elements_by_class | LDU_FT | [
"<BEGIN>\n## `version`",
"Show the version number of Android Debug Bridge.\n<END>",
"<BEGIN>\n## `devices_l`",
"List connected devices (-l for long output).\n<END>",
"<BEGIN>\n## `connect`",
"Connect to a device via TCP/IP directly.\n<END>",
"<BEGIN>\n## `disconnect`",
"Disconnect from given TCP/IP de... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_elements_by_class API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_elements_by_class API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Finds multiple elements by class.
Args:
class_: The class of the elements to be found.
update: If the interface has changed, this option should be True.
Returns:
A list with elements if any was found. An empty list if not.
Raises:
NoSuchElementE... | "Finds multiple elements by class.\n\n Args:\n class_: The class of the elements to be found.\n update: If the interface has changed, this option should be True.\n\n Returns:\n A list with elements if any was found. An empty list if not.\n\n Raises:\n NoS... | 95 | false | fjwCode/cerium | find_elements_by_class | 38,188 | |
LDU_FT/SALib/SALib/get_max_sum_ind | LDU_FT | [
"<BEGIN>\n## `analyze`",
"Perform a fractional factorial analysis",
" Returns a dictionary with keys 'ME' (main effect) and 'IE' (interaction\n effect). The techniques bulks out the number of parameters with dummy\n parameters to the nearest 2**n. Any results involving dummy parameters\n could indi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_max_sum_ind API.
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_max_sum_ind API.
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 the indices that belong to the maximum distance in `distances`
Arguments
---------
indices_list : list
list of tuples
distances : numpy.ndarray
size M
i : int
m : int
Returns
-------
list | "Get the indices that belong to the maximum distance in `distances`\n\n Arguments\n ---------\n indices_list : list\n list of tuples\n distances : numpy.ndarray\n size M\n i : int\n m : int\n\n Returns\n -------\n list" | 249 | false | SALib/SALib | get_max_sum_ind | 38,189 | |
LDU_FT/SmileyChris/easy-thumbnails/filters | LDU_FT | [
"<BEGIN>\n## `default`",
"Easy-thumbnails' default name processor.",
" For example: ``source.jpg.100x100_q80_crop_upscale.jpg``\n<END>",
"<BEGIN>\n## `alias`",
"Generate filename based on thumbnail alias name (option ``THUMBNAIL_ALIASES``).",
" For example: ``source.jpg.medium_large.jpg``\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filters API.
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 filters API.
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... | Pass the source image through post-processing filters.
sharpen
Sharpen the thumbnail image (using the PIL sharpen filter)
detail
Add detail to the image, like a mild *sharpen* (using the PIL
``detail`` filter). | "Pass the source image through post-processing filters.\n\n sharpen\n Sharpen the thumbnail image (using the PIL sharpen filter)\n\n detail\n Add detail to the image, like a mild *sharpen* (using the PIL\n ``detail`` filter)." | 218 | false | SmileyChris/easy-thumbnails | filters | 38,190 | |
LDU_FT/aerogear/digger-build-cli/from_path | LDU_FT | [
"<BEGIN>\n## `jarsign`",
"Uses Jarsign to sign an apk target file using the provided keystore information.",
" :param storepass(str) - keystore storepass\n :param keypass(str) - keystore keypass\n :param keystore(str) - keystore file path\n :param source(str) - apk path\n :param alias(str) - keystore alias... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Selects and returns a build class based on project structure/config from a given path.
:param path(str): required path argument to be used | "Selects and returns a build class based on project structure/config from a given path.\n\n :param path(str): required path argument to be used" | 100 | false | aerogear/digger-build-cli | from_path | 38,191 | |
LDU_FT/Garee/pytodoist/add_task | LDU_FT | [
"<BEGIN>\n## `login`",
"Login to Todoist.",
" :param email: The user's email address.\n :type email: str\n :param password: The user's password.\n :type password: str\n :return: The HTTP response to the request.\n :rtype: :class:`requests.Response`",
" >>> from... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_task API.
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 add_task API.
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... | Add a task to the project
:param content: The task description.
:type content: str
:param date: The task deadline.
:type date: str
:param priority: The priority of the task.
:type priority: int
:return: The added task.
:rtype: :class:`pytodoist.todoist.Ta... | "Add a task to the project\n\n :param content: The task description.\n :type content: str\n :param date: The task deadline.\n :type date: str\n :param priority: The priority of the task.\n :type priority: int\n :return: The added task.\n :rtype: :class:`pytodoist.... | 237 | false | Garee/pytodoist | add_task | 38,192 | |
LDU_FT/snobear/ezmomi/get_vm_failfast | LDU_FT | [
"<BEGIN>\n## `add_boolean_argument`",
"Add a boolean argument to an ArgumentParser instance.\n<END>",
"<BEGIN>\n## `list_objects`",
"Command Section: list\n List available VMware objects\n<END>",
"<BEGIN>\n## `clone`",
"Command Section: clone\n Clone a VM from a template\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_vm_failfast API.
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_vm_failfast API.
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 a VirtualMachine object
fail fast if the object isn't a valid reference | "Get a VirtualMachine object\n fail fast if the object isn't a valid reference" | 19 | false | snobear/ezmomi | get_vm_failfast | 38,193 | |
LDU_FT/davidcarboni/Flask-B3/span | LDU_FT | [
"<BEGIN>\n## `values`",
"Get the full current set of B3 values.\n :return: A dict containing the keys \"X-B3-TraceId\", \"X-B3-ParentSpanId\", \"X-B3-SpanId\", \"X-B3-Sampled\" and\n \"X-B3-Flags\" for the current span or subspan. NB some of the values are likely be None, but\n all keys will be present.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the span API.
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 span API.
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... | Optional decorator for Flask routes.
If you don't want to trace all routes using `Flask.before_request()' and 'Flask.after_request()'
you can use this decorator as an alternative way to handle incoming B3 headers:
@app.route('/instrumented')
@span
def instrumented():
...
... | "Optional decorator for Flask routes.\n\n If you don't want to trace all routes using `Flask.before_request()' and 'Flask.after_request()'\n you can use this decorator as an alternative way to handle incoming B3 headers:\n\n @app.route('/instrumented')\n @span\n def instrumented():\n ... | 19 | false | davidcarboni/Flask-B3 | span | 38,194 | |
LDU_FT/googlefonts/fontbakery/omit_loglevel | LDU_FT | [
"<BEGIN>\n## `get_module_profile`",
"Get or create a profile from a module and return it.",
" If the name `module.profile` is present the value of that is returned.\n Otherwise, if the name `module.profile_factory` is present, a new profile\n is created using `module.profile_factory` and then `profile.auto_r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the omit_loglevel API.
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 omit_loglevel API.
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... | Determine if message is below log level. | "Determine if message is below log level." | 381 | false | googlefonts/fontbakery | omit_loglevel | 38,195 | |
LDU_FT/Yipit/eventlib/listen_for_events | LDU_FT | [
"<BEGIN>\n## `listen_for_events`",
"Pubsub event listener",
" Listen for events in the pubsub bus and calls the process function\n when somebody comes to play.\n<END>",
"<BEGIN>\n## `get_ip`",
"Return the IP address inside the HTTP_X_FORWARDED_FOR var inside\n the `request` object.",
" The ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listen_for_events API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listen_for_events API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Pubsub event listener
Listen for events in the pubsub bus and calls the process function
when somebody comes to play. | "Pubsub event listener\n\n Listen for events in the pubsub bus and calls the process function\n when somebody comes to play." | 57 | false | Yipit/eventlib | listen_for_events | 38,196 | |
LDU_FT/CyberReboot/vent/create | LDU_FT | [
"<BEGIN>\n## `gpu_queue`",
"Queued up containers waiting for GPU resources\n<END>",
"<BEGIN>\n## `file_queue`",
"Processes files that have been added from the rq-worker, starts plugins\n that match the mime type for the new file.\n<END>",
"<BEGIN>\n## `inventory`",
"Return a dictionary of the inventory... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
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 create API.
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 with current tools for each branch at the version chosen | "Update with current tools for each branch at the version chosen" | 141 | false | CyberReboot/vent | create | 38,197 | |
LDU_FT/rohankapoorcom/zm-py/update_monitor | LDU_FT | [
"<BEGIN>\n## `active`",
"Indicate if this RunState is currently active.\n<END>",
"<BEGIN>\n## `_zm_request`",
"Perform a request to the ZoneMinder API.\n<END>",
"<BEGIN>\n## `get_monitors`",
"Get a list of Monitors from the ZoneMinder API.\n<END>",
"<BEGIN>\n## `get_run_states`",
"Get a list of RunSta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_monitor API.
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 update_monitor API.
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... | Update the monitor and monitor status from the ZM server. | "Update the monitor and monitor status from the ZM server." | 33 | false | rohankapoorcom/zm-py | update_monitor | 38,198 | |
LDU_FT/TaurusOlson/fntools/_filter_occurrences | LDU_FT | [
"<BEGIN>\n## `use_with`",
"Apply a function on the attributes of the data",
" :param data: an object\n :param fn: a function\n :param attrs: some attributes of the object\n :returns: an object",
" Let's create some data first::",
" >>> from collections import namedtuple\n >>> Pe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _filter_occurrences 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 _filter_occurrences 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... | Filter the occurrences with respect to the selected relational operators | "Filter the occurrences with respect to the selected relational operators" | 134 | false | TaurusOlson/fntools | _filter_occurrences | 38,199 | |
LDU_FT/OnroerendErfgoed/oe_utils/preparer | LDU_FT | [
"<BEGIN>\n## `after_commit_listener`",
"Processing the changes.\n All new or changed items are now indexed. All deleted items are now removed from the index.\n<END>",
"<BEGIN>\n## `_queue_job`",
"creates a new job on the queue\n :param redis: redis\n :param delegate: method to be ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preparer API.
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 preparer API.
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... | Edit a value to a value that can be validated as a
kbo number. | "Edit a value to a value that can be validated as a\n kbo number." | 100 | false | OnroerendErfgoed/oe_utils | preparer | 38,200 | |
LDU_FT/dmwm/DBS/execute | LDU_FT | [
"<BEGIN>\n## `inputChecks`",
"This is a function to check all the input for GET APIs.\n<END>",
"<BEGIN>\n## `validateStringInput`",
"To check if a string has the required format. This is only used for POST APIs.\n<END>",
"<BEGIN>\n## `execute`",
"Lists all primary datasets if pattern is not provided.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Lists all primary datasets if pattern is not provided. | "Lists all primary datasets if pattern is not provided." | 352 | false | dmwm/DBS | execute | 38,201 | |
LDU_FT/ael-code/pyFsdb/generate_tree_path | LDU_FT | [
"<BEGIN>\n## `copy_content`",
"copy the content of `origin` to `dstPath` in a safe manner.",
" this function will first copy the content to a temporary file\n and then move it atomically to the requested destination.",
" if some error occurred during content copy or file movement\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_tree_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_tree_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Generate a relative path from the given fileDigest
relative path has a numbers of directories levels according to @depth
Args:
fileDigest -- digest for which the relative path will be generate
depth -- number of levels to use in relative path generation
Returns:
... | "Generate a relative path from the given fileDigest\n relative path has a numbers of directories levels according to @depth\n\n Args:\n fileDigest -- digest for which the relative path will be generate\n depth -- number of levels to use in relative path generation\n Retu... | 42 | false | ael-code/pyFsdb | generate_tree_path | 38,202 | |
LDU_FT/uogbuji/versa/materialize | LDU_FT | [
"<BEGIN>\n## `link`",
"Action function generator to create a link based on the context's current link, or on provided parameters",
" :param origin: IRI/string, or list of same; origins for the created relationships.\n If None, the action context provides the parameter.",
" :param rel: IRI/string, or ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the materialize API.
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 materialize API.
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... | Create a new resource related to the origin
:param typ: IRI of the type for the resource to be materialized,
which becomes the target of the main link, and the origin of any
additional links given in the links param
:param rel: IRI of the relationship between the origin and the materialized
target... | "Create a new resource related to the origin\n\n :param typ: IRI of the type for the resource to be materialized,\n which becomes the target of the main link, and the origin of any\n additional links given in the links param\n\n :param rel: IRI of the relationship between the origin and the materialized\n ... | 146 | false | uogbuji/versa | materialize | 38,203 | |
LDU_FT/basler/pypylon/get_specific_subnodes | LDU_FT | [
"<BEGIN>\n## `shift`",
"Return a list corresponding to the lines of text in the `txt` list\n indented by `indent`. Prepend instead the string given in `prepend` to the\n beginning of the first line. Note that if len(prepend) > len(indent), then\n `prepend` will be truncated (doing better is tricky!). Thi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_specific_subnodes 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_specific_subnodes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Given a node and a name, return a list of child `ELEMENT_NODEs`, that
have a `tagName` matching the `name`. Search recursively for `recursive`
levels. | "Given a node and a name, return a list of child `ELEMENT_NODEs`, that\n have a `tagName` matching the `name`. Search recursively for `recursive`\n levels." | 42 | false | basler/pypylon | get_specific_subnodes | 38,204 | |
LDU_FT/scrapinghub/kafka-scanner/consume_messages | LDU_FT | [
"<BEGIN>\n## `consume_messages`",
"Get messages batch from Kafka (list at output)\n<END>",
"<BEGIN>\n## `decompress_messages`",
"Decompress pre-defined compressed fields for each message.\n<END>",
"<BEGIN>\n## `unpack_messages`",
"Deserialize a message to python structures\n<END>",
"<BEGIN>\n## `append_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume_messages API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume_messages API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Get messages batch from Kafka (list at output) | "Get messages batch from Kafka (list at output)" | 10 | false | scrapinghub/kafka-scanner | consume_messages | 38,205 | |
LDU_FT/ContextLab/quail/accuracy_helper | LDU_FT | [
"<BEGIN>\n## `analyze`",
"General analysis function that groups data by subject/list number and performs analysis.",
" Parameters\n ----------\n egg : Egg data object\n The data to be analyzed",
" subjgroup : list of strings or ints\n String/int variables indicating how to group over... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accuracy_helper API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accuracy_helper API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Computes proportion of words recalled
Parameters
----------
egg : quail.Egg
Data to analyze
match : str (exact, best or smooth)
Matching approach to compute recall matrix. If exact, the presented and
recalled items must be identical (default). If best, the recalled item
... | "Computes proportion of words recalled\n\n Parameters\n ----------\n egg : quail.Egg\n Data to analyze\n\n match : str (exact, best or smooth)\n Matching approach to compute recall matrix. If exact, the presented and\n recalled items must be identical (default). If best, the recalled ... | 201 | false | ContextLab/quail | accuracy_helper | 38,206 | |
LDU_FT/mezz64/pyEmby/deprecated_name | LDU_FT | [
"<BEGIN>\n## `media_artist`",
"Artist of current playing media (Music track only).\n<END>",
"<BEGIN>\n## `add_new_devices_callback`",
"Register as callback for when new devices are added.\n<END>",
"<BEGIN>\n## `add_stale_devices_callback`",
"Register as callback for when stale devices exist.\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deprecated_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deprecated_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Allow old method names for backwards compatability. | "Allow old method names for backwards compatability." | 19 | false | mezz64/pyEmby | deprecated_name | 38,207 | |
LDU_FT/spencerahill/aospy/_make_mask | LDU_FT | [
"<BEGIN>\n## `_preprocess_and_rename_grid_attrs`",
"Call a custom preprocessing method first then rename grid attrs.",
" This wrapper is needed to generate a single function to pass to the\n ``preprocesss`` of xr.open_mfdataset. It makes sure that the\n user-specified preprocess function is called on ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_mask API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_mask API.
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... | Construct the mask that defines a region on a given data's grid. | "Construct the mask that defines a region on a given data's grid." | 323 | false | spencerahill/aospy | _make_mask | 38,208 | |
LDU_FT/google/pyu2f/DeviceReadThread | LDU_FT | [
"<BEGIN>\n## `ToByteArray`",
"Serialize the command.",
" Encodes the command as per the U2F specs, using the standard\n ISO 7816-4 extended encoding. All Commands expect data, so\n Le is always present.",
" Returns:\n Python bytearray of the encoded command.\n<END>",
"<BEGIN>\n## `_BuildPl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DeviceReadThread API.
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 DeviceReadThread API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Binds a device to the thread's run loop, then starts the run loop.
Args:
hid_device: The MacOsHidDevice object
The HID manager requires a run loop to handle Report reads. This thread
function serves that purpose. | "Binds a device to the thread's run loop, then starts the run loop.\n\n Args:\n hid_device: The MacOsHidDevice object\n\n The HID manager requires a run loop to handle Report reads. This thread\n function serves that purpose." | 95 | false | google/pyu2f | DeviceReadThread | 38,209 | |
LDU_FT/TrafficSenseMSD/SumoTools/getDistance2D | LDU_FT | [
"<BEGIN>\n## `getDistance2D`",
"getDistance2D(double, double, double, double, boolean, boolean) -> double",
" Returns the distance between the two coordinate pairs (x1,y1) and (x2,y2)",
" If isGeo=True, coordinates are interpreted as longitude and latitude rather\n than cartesian coordina... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getDistance2D API.
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 getDistance2D API.
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... | getDistance2D(double, double, double, double, boolean, boolean) -> double
Returns the distance between the two coordinate pairs (x1,y1) and (x2,y2)
If isGeo=True, coordinates are interpreted as longitude and latitude rather
than cartesian coordinates in meters.
If isDriving=True, the ... | "getDistance2D(double, double, double, double, boolean, boolean) -> double\n\n Returns the distance between the two coordinate pairs (x1,y1) and (x2,y2)\n\n If isGeo=True, coordinates are interpreted as longitude and latitude rather\n than cartesian coordinates in meters.\n\n If isDriving=Tr... | 475 | false | TrafficSenseMSD/SumoTools | getDistance2D | 38,210 | |
LDU_FT/hubo1016/namedstruct/_realsize | LDU_FT | [
"<BEGIN>\n## `ip_frag`",
"Not fragments:\n ip_frag(packet) == 0\n not ip_frag(packet)",
" First packet of fragments:\n ip_frag(packet) == IP_FRAG_ANY",
" Not first packet of fragments:\n ip_frag(packet) & IP_FRAG_LATER",
" All fragments:\n ip_frag(packet) & IP_FRA... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _realsize API.
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 _realsize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Get the struct size without padding (or the "real size")
:returns: the "real size" in bytes | "Get the struct size without padding (or the \"real size\")\n \n :returns: the \"real size\" in bytes" | 149 | false | hubo1016/namedstruct | _realsize | 38,211 | |
LDU_FT/Parquery/icontract/_assert_invariant | LDU_FT | [
"<BEGIN>\n## `_collapse_invariants`",
"Collect invariants from the bases and merge them with the invariants in the namespace.\n<END>",
"<BEGIN>\n## `_collapse_preconditions`",
"Collapse function preconditions with the preconditions collected from the base classes.",
" :param base_preconditions: precondit... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _assert_invariant API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _assert_invariant API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Assert that the contract holds as a class invariant given the instance of the class. | "Assert that the contract holds as a class invariant given the instance of the class." | 122 | false | Parquery/icontract | _assert_invariant | 38,212 | |
LDU_FT/QunarOPS/qg.core/has_listener | LDU_FT | [
"<BEGIN>\n## `import_class`",
"Returns a class from a string including module and class.\n<END>",
"<BEGIN>\n## `import_object_ns`",
"Tries to import object from default namespace.",
" Imports a class and return an instance of it, first by trying\n to find the class in a default namespace, then failing... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_listener API.
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 has_listener API.
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... | 指定listener是否存在
:params evt_name: 事件名称
:params fn: 要注册的触发函数函数 | "指定listener是否存在\n\n :params evt_name: 事件名称\n :params fn: 要注册的触发函数函数" | 74 | false | QunarOPS/qg.core | has_listener | 38,213 | |
LDU_FT/astroswego/plotypus/phase_shifted_coefficients | LDU_FT | [
"<BEGIN>\n## `Lomb_Scargle`",
"Returns the period of *data* according to the\n `Lomb-Scargle periodogram <https://en.wikipedia.org/wiki/Least-squares_spectral_analysis#The_Lomb.E2.80.93Scargle_periodogram>`_.",
" **Parameters**",
" data : array-like, shape = [n_samples, 2] or [n_samples, 3]\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the phase_shifted_coefficients API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the phase_shifted_coefficients API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | r"""
Converts Fourier coefficients from the amplitude form to the
phase-shifted form, as either a sine or cosine series.
Amplitude form:
.. math::
m(t) = A_0 + \sum_{k=1}^n (a_k \sin(k \omega t)
+ b_k \cos(k \omega t))
Sine form... | "r\"\"\"\n Converts Fourier coefficients from the amplitude form to the\n phase-shifted form, as either a sine or cosine series.\n\n Amplitude form:\n\n .. math::\n m(t) = A_0 + \\sum_{k=1}^n (a_k \\sin(k \\omega t)\n + b_k \\cos(k \\omega t))\n... | 152 | false | astroswego/plotypus | phase_shifted_coefficients | 38,214 | |
LDU_FT/cgarciae/phi/Then0 | LDU_FT | [
"<BEGIN>\n## `RegisterMethod`",
"**RegisterMethod**",
" RegisterMethod(f, library_path, alias=None, original_name=None, doc=None, wrapped=None, explanation=\"\", method_type=utils.identity, explain=True)",
"`classmethod` for registering functions as methods of this class.",
"**Arguments**",
"* **f** : ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Then0 API.
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 Then0 API.
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... | `Then0(f, ...)` is equivalent to `ThenAt(0, f, ...)`. Checkout `phi.builder.Builder.ThenAt` for more information. | "`Then0(f, ...)` is equivalent to `ThenAt(0, f, ...)`. Checkout `phi.builder.Builder.ThenAt` for more information." | 252 | false | cgarciae/phi | Then0 | 38,215 | |
LDU_FT/hanguokai/youku/find_favorite_videos_by_userid | LDU_FT | [
"<BEGIN>\n## `check_error`",
"Youku error should return in json form, like:\n HTTP 400\n {\n \"error\":{\n \"code\":120010223,\n \"type\":\"UploadsException\",\n \"description\":\"Expired upload token\"\n }\n }",
" But error also maybe in response url p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_favorite_videos_by_userid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_favorite_videos_by_userid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | doc: http://open.youku.com/docs/doc?id=54 | "doc: http://open.youku.com/docs/doc?id=54" | 120 | false | hanguokai/youku | find_favorite_videos_by_userid | 38,216 | |
LDU_FT/ml4ai/delphi/get_shared_nodes | LDU_FT | [
"<BEGIN>\n## `all_subs`",
"given a list of tuples specifying the bounds of an array, all_subs()\n returns a list of all the tuples of subscripts for that array.\n<END>",
"<BEGIN>\n## `idx2subs`",
"Given a list idx_list of index values for each dimension of an array, \n idx2subs() returns a list of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_shared_nodes API.
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_shared_nodes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Get all the nodes that are common to both networks. | "Get all the nodes that are common to both networks." | 336 | false | ml4ai/delphi | get_shared_nodes | 38,217 | |
LDU_FT/robotpy/pyfrc/compute | LDU_FT | [
"<BEGIN>\n## `compute`",
"Call this when vision processing should be enabled",
" :param now: The value passed to ``update_sim``\n :param x: Returned from physics_controller.get_position\n :param y: Returned from physics_controller.get_position\n :param angle... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute API.
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 compute API.
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... | :param motor_pct: Percentage of power for motor in range [1..-1]
:param tm_diff: Time elapsed since this function was last called
:returns: velocity | ":param motor_pct: Percentage of power for motor in range [1..-1]\n :param tm_diff: Time elapsed since this function was last called\n \n :returns: velocity" | 109 | false | robotpy/pyfrc | compute | 38,218 | |
LDU_FT/blockstack/pybitcoin/embed_data_in_blockchain | 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 embed_data_in_blockchain 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 embed_data_in_blockchain API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Builds, signs, and dispatches an OP_RETURN transaction. | "Builds, signs, and dispatches an OP_RETURN transaction." | 79 | false | blockstack/pybitcoin | embed_data_in_blockchain | 38,219 | |
LDU_FT/offu/WeRoBot/get_encrypted_reply | LDU_FT | [
"<BEGIN>\n## `make_view`",
"为一个 BaseRoBot 生成 Flask view。",
" Usage ::",
" from werobot import WeRoBot",
" robot = WeRoBot(token='token')",
" @robot.handler\n def hello(message):\n return 'Hello World!'",
" from flask import Flask\n from werobot.con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_encrypted_reply 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_encrypted_reply 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... | 对一个指定的 WeRoBot Message ,获取 handlers 处理后得到的 Reply。
如果可能,对该 Reply 进行加密。
返回 Reply Render 后的文本。
:param message: 一个 WeRoBot Message 实例。
:return: reply (纯文本) | "对一个指定的 WeRoBot Message ,获取 handlers 处理后得到的 Reply。\n 如果可能,对该 Reply 进行加密。\n 返回 Reply Render 后的文本。\n\n :param message: 一个 WeRoBot Message 实例。\n :return: reply (纯文本)" | 223 | false | offu/WeRoBot | get_encrypted_reply | 38,220 | |
LDU_FT/quantmind/pulsar-odm/_wait_fd | LDU_FT | [
"<BEGIN>\n## `copy_models`",
"Copy models from one module to another\n :param module_from:\n :param module_to:\n :return:\n<END>",
"<BEGIN>\n## `register`",
"Register a model or a table with this mapper",
" :param model: a table or a :class:`.BaseModel` class\n :return: a Model class ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wait_fd API.
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 _wait_fd API.
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... | Wait for an event on file descriptor ``fd``.
:param conn: file descriptor
:param read: wait for a read event if ``True``, otherwise a wait
for write event.
This function must be invoked from a coroutine with parent, therefore
invoking it from the main greenlet will raise an exception. | "Wait for an event on file descriptor ``fd``.\n\n :param conn: file descriptor\n :param read: wait for a read event if ``True``, otherwise a wait\n for write event.\n\n This function must be invoked from a coroutine with parent, therefore\n invoking it from the main greenlet will raise an exception." | 29 | false | quantmind/pulsar-odm | _wait_fd | 38,221 | |
LDU_FT/common-workflow-language/schema_salad/collect_namespaces | LDU_FT | [
"<BEGIN>\n## `declare_type`",
"Add this type to our collection, if needed.\n<END>",
"<BEGIN>\n## `add_namespaces`",
"Collect the provided namespaces, checking for conflicts.\n<END>",
"<BEGIN>\n## `collect_namespaces`",
"Walk through the metadata object, collecting namespace declarations.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_namespaces 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 collect_namespaces 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... | Walk through the metadata object, collecting namespace declarations. | "Walk through the metadata object, collecting namespace declarations." | 53 | false | common-workflow-language/schema_salad | collect_namespaces | 38,222 | |
LDU_FT/yunojuno/elasticsearch-django/execute_search | LDU_FT | [
"<BEGIN>\n## `execute_search`",
"Create a new SearchQuery instance and execute a search against ES.",
" Args:\n search: elasticsearch.search.Search object, that internally contains\n the connection and query; this is the query that is executed. All\n we are doing is logging the i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_search API.
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 execute_search API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Create a new SearchQuery instance and execute a search against ES.
Args:
search: elasticsearch.search.Search object, that internally contains
the connection and query; this is the query that is executed. All
we are doing is logging the input and parsing the output.
search_te... | "Create a new SearchQuery instance and execute a search against ES.\n\n Args:\n search: elasticsearch.search.Search object, that internally contains\n the connection and query; this is the query that is executed. All\n we are doing is logging the input and parsing the output.\n se... | 124 | false | yunojuno/elasticsearch-django | execute_search | 38,223 | |
LDU_FT/artefactual-labs/mets-reader-writer/parse | LDU_FT | [
"<BEGIN>\n## `register_id`",
"Register a manually assigned id as used, to avoid collisions.\n<END>",
"<BEGIN>\n## `parse`",
"Create a new AMDSec by parsing root.",
" :param root: Element or ElementTree to be parsed into an object.\n<END>",
"<BEGIN>\n## `serialize`",
"Serialize this amdSec and all... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Create a new SubSection by parsing root.
:param root: Element or ElementTree to be parsed into an object.
:raises exceptions.ParseError: If root's tag is not in :const:`SubSection.ALLOWED_SUBSECTIONS`.
:raises exceptions.ParseError: If the first child of root is not mdRef or mdWrap. | "Create a new SubSection by parsing root.\n\n :param root: Element or ElementTree to be parsed into an object.\n :raises exceptions.ParseError: If root's tag is not in :const:`SubSection.ALLOWED_SUBSECTIONS`.\n :raises exceptions.ParseError: If the first child of root is not mdRef or mdWrap." | 179 | false | artefactual-labs/mets-reader-writer | parse | 38,224 | |
LDU_FT/miyuchina/mistletoe/get_ast | LDU_FT | [
"<BEGIN>\n## `escape`",
"Replace special characters \"&\", \"<\" and \">\" to HTML-safe sequences.\n If the optional flag quote is true (the default), the quotation mark\n characters, both double quote (\") and single quote (') characters are also\n translated.\n<END>",
"<BEGIN>\n## `render_math`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ast API.
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_ast API.
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... | Recursively unrolls token attributes into dictionaries (token.children
into lists).
Returns:
a dictionary of token's attributes. | "Recursively unrolls token attributes into dictionaries (token.children\n into lists).\n\n Returns:\n a dictionary of token's attributes." | 29 | false | miyuchina/mistletoe | get_ast | 38,225 | |
LDU_FT/Koed00/django-q/result | LDU_FT | [
"<BEGIN>\n## `loads`",
"Reverse of dumps(), raise BadSignature if signature fails.",
" The serializer is expected to accept a bytestring.\n<END>",
"<BEGIN>\n## `unsign`",
"Retrieve original value and check it wasn't signed more\n than max_age seconds ago.\n<END>",
"<BEGIN>\n## `get_broker`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result API.
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 result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Return the result of the named task.
:type task_id: str or uuid
:param task_id: the task name or uuid
:type wait: int
:param wait: number of milliseconds to wait for a result
:param bool cached: run this against the cache backend
:return: the result object of this task
:rtype: object | "Return the result of the named task.\n\n :type task_id: str or uuid\n :param task_id: the task name or uuid\n :type wait: int\n :param wait: number of milliseconds to wait for a result\n :param bool cached: run this against the cache backend\n :return: the result object of this task\n :rtype: obje... | 96 | false | Koed00/django-q | result | 38,226 | |
LDU_FT/CEA-COSMIC/ModOpt/psnr | LDU_FT | [
"<BEGIN>\n## `add_args_kwargs`",
"Add Args and Kwargs",
" This wrapper adds support for additional arguments and keyword arguments to\n any callable function",
" Parameters\n ----------\n func : function\n Callable function",
" Returns\n -------\n function wrapper\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the psnr API.
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 psnr API.
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... | r"""Peak Signal-to-Noise Ratio
This method calculates the Peak Signal-to-Noise Ratio between an two data
sets
Parameters
----------
data1 : np.ndarray
First data set
data2 : np.ndarray
Second data set
method : str {'starck', 'wiki'}, optional
PSNR implementation, de... | "r\"\"\"Peak Signal-to-Noise Ratio\n\n This method calculates the Peak Signal-to-Noise Ratio between an two data\n sets\n\n Parameters\n ----------\n data1 : np.ndarray\n First data set\n data2 : np.ndarray\n Second data set\n method : str {'starck', 'wiki'}, optional\n PSNR im... | 565 | false | CEA-COSMIC/ModOpt | psnr | 38,227 | |
LDU_FT/matllubos/django-is-core/get_link_or_none | LDU_FT | [
"<BEGIN>\n## `short_description`",
"Sets 'short_description' attribute (this attribute is in exports to generate header name).\n<END>",
"<BEGIN>\n## `redirect_to_login`",
"Redirects the user to the login page, passing the given 'next' page\n<END>",
"<BEGIN>\n## `_check_permission`",
"If customer is not au... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_link_or_none API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_link_or_none API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Helper that generate URL prom pattern name and kwargs and check if current request has permission to open the URL.
If not None is returned.
Args:
pattern_name (str): slug which is used for view registratin to pattern
request (django.http.request.HttpRequest): Django request object
view_... | "Helper that generate URL prom pattern name and kwargs and check if current request has permission to open the URL.\n If not None is returned.\n\n Args:\n pattern_name (str): slug which is used for view registratin to pattern\n request (django.http.request.HttpRequest): Django request object\n ... | 66 | false | matllubos/django-is-core | get_link_or_none | 38,228 | |
LDU_FT/stuaxo/vext/depends_on | LDU_FT | [
"<BEGIN>\n## `do_enable`",
"Uncomment any lines that start with #import in the .pth file\n<END>",
"<BEGIN>\n## `do_disable`",
"Comment any lines that start with import in the .pth file\n<END>",
"<BEGIN>\n## `do_check`",
"Attempt to import everything in the 'test-imports' section of specified\n vext_fil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the depends_on API.
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 depends_on API.
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... | List of packages that depend on dependency
:param dependency: package name, e.g. 'vext' or 'Pillow' | "List of packages that depend on dependency\n :param dependency: package name, e.g. 'vext' or 'Pillow'" | 64 | false | stuaxo/vext | depends_on | 38,229 | |
LDU_FT/biosustain/optlang/clone | LDU_FT | [
"<BEGIN>\n## `_constraint_lb_and_ub_to_gurobi_sense_rhs_and_range_value`",
"Helper function used by Constraint and Model\n<END>",
"<BEGIN>\n## `_evolve_kwargs`",
"Filter None keyword arguments. Intended to be passed on to algorithm.evolve(...)\n<END>",
"<BEGIN>\n## `parse_optimization_expression`",
"Funct... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clone API.
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 clone API.
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... | Make a copy of a model. The model being copied can be of the same type or belong to
a different solver interface. This is the preferred way of copying models.
Example
----------
>>> new_model = Model.clone(old_model) | "Make a copy of a model. The model being copied can be of the same type or belong to\n a different solver interface. This is the preferred way of copying models.\n\n Example\n ----------\n >>> new_model = Model.clone(old_model)" | 106 | false | biosustain/optlang | clone | 38,230 | |
LDU_FT/nsfmc/swatch/dumps | LDU_FT | [
"<BEGIN>\n## `chunk_count`",
"return the number of byte-chunks in a swatch object",
" this recursively walks the swatch list, returning 1 for a single color &\n returns 2 for each folder plus 1 for each color it contains\n<END>",
"<BEGIN>\n## `chunk_for_color`",
"builds up a byte-chunk for a color",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dumps API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dumps API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | converts a swatch to bytes suitable for writing | "converts a swatch to bytes suitable for writing" | 25 | false | nsfmc/swatch | dumps | 38,231 | |
LDU_FT/fhcrc/nestly/add_nest | LDU_FT | [
"<BEGIN>\n## `_delim_accum`",
"Accumulator for delimited files",
" Combines each file with values from JSON dictionary in same directory",
" :param iterable control_files: Iterable of control files\n :param filename_template: A template for the file to nest_map\n :param keys: List of keys to selec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_nest API.
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 add_nest API.
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... | A simple decorator which wraps :meth:`nestly.core.Nest.add`. | "A simple decorator which wraps :meth:`nestly.core.Nest.add`." | 73 | false | fhcrc/nestly | add_nest | 38,232 | |
LDU_FT/llazzaro/analyzerdam/getWriteSession | LDU_FT | [
"<BEGIN>\n## `getAll`",
"Get all available quote data for the given ticker symbol.\r\n Returns a dictionary.\n<END>",
"<BEGIN>\n## `getQuotes`",
"Get historical prices for the given ticker symbol.\r\n Date format is 'YYYY-MM-DD'\r",
" Returns a nested list.\n<END>",
"<BEGIN>\n## `getW... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getWriteSession API.
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 getWriteSession API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | return unscope session, TODO, make it clear | "return unscope session, TODO, make it clear" | 22 | false | llazzaro/analyzerdam | getWriteSession | 38,233 | |
LDU_FT/PSU-OIT-ARC/django-local-settings/make_local_settings | LDU_FT | [
"<BEGIN>\n## `get_strategy_types`",
"Get a list of all :class:`Strategy` subclasses.\n<END>",
"<BEGIN>\n## `get_file_type_map`",
"Map file types (extensions) to strategy types.\n<END>",
"<BEGIN>\n## `guess_strategy_type`",
"Guess strategy type to use for file by extension.",
" Args:\n file_nam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_local_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_local_settings 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... | Generate a local settings file.
The most common usage is:
make-local-settings <env>
where env is replaced with and environment name such as stage or
prod. For example:
make-local-settings prod
This will create a local settings file named local.prod.cfg with
a prod section if loc... | "Generate a local settings file.\n\n The most common usage is:\n\n make-local-settings <env>\n\n where env is replaced with and environment name such as stage or\n prod. For example:\n\n make-local-settings prod\n\n This will create a local settings file named local.prod.cfg with\n a prod s... | 78 | false | PSU-OIT-ARC/django-local-settings | make_local_settings | 38,234 | |
LDU_FT/ehansis/ozelot/_get_password | LDU_FT | [
"<BEGIN>\n## `_query`",
"Base query for an url and xpath",
" Args:\n url (str): URL to search\n xpath (str): xpath to search (may be ``None``)\n<END>",
"<BEGIN>\n## `get`",
"Get a URL via the cache.",
" If the URL exists in the cache, return the cached value. Otherwise ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_password API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_password API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get the password for a database connection from :mod:`keyring`
Args:
params (dict): database configuration, as defined in :mod:`ozelot.config`
Returns:
str: password | "Get the password for a database connection from :mod:`keyring`\n\n Args:\n params (dict): database configuration, as defined in :mod:`ozelot.config`\n\n Returns:\n str: password" | 203 | false | ehansis/ozelot | _get_password | 38,235 | |
LDU_FT/refindlyllc/rets/login | LDU_FT | [
"<BEGIN>\n## `parse`",
"Parse the login xml response\n :param response: the login response from the RETS server\n :return: None\n<END>",
"<BEGIN>\n## `read_line`",
"Reads lines of XML and delimits, strips, and returns.\n<END>",
"<BEGIN>\n## `generator`",
"Takes a response socket connection a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API.
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 login API.
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... | Login to the RETS board and return an instance of Bulletin
:return: Bulletin instance | "Login to the RETS board and return an instance of Bulletin\n :return: Bulletin instance" | 51 | false | refindlyllc/rets | login | 38,236 | |
LDU_FT/robinandeer/puzzle/variants | LDU_FT | [
"<BEGIN>\n## `individual_dict`",
"Return a dict with ind_id as key and Individual as values.\n<END>",
"<BEGIN>\n## `_get_genes`",
"Add the genes for a variant",
" Get the hgnc symbols from all transcripts and add them\n to the variant.",
" Args:\n variant (dict): A variant ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the variants API.
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 variants API.
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 all variants in the VCF.
This function will apply the given filter and return the 'count' first
variants. If skip the first 'skip' variants will not be regarded.
Args:
case_id (str): Path to a vcf file (for this adapter)
skip (int): Skip first variant... | "Return all variants in the VCF.\n\n This function will apply the given filter and return the 'count' first\n variants. If skip the first 'skip' variants will not be regarded.\n\n Args:\n case_id (str): Path to a vcf file (for this adapter)\n skip (int): Skip first... | 306 | false | robinandeer/puzzle | variants | 38,237 | |
LDU_FT/hamperbot/hamper/setup | LDU_FT | [
"<BEGIN>\n## `signedOn`",
"Called after successfully signing on to the server.\n<END>",
"<BEGIN>\n## `process_action`",
"Called when a message is received from a channel or user.\n<END>",
"<BEGIN>\n## `connectionLost`",
"Called when the connection is lost to the server.\n<END>",
"<BEGIN>\n## `userKicked... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Set up the list of responses, with weights. If the weight of a response
is 'eq', it will be assigned a value that splits what is left after
everything that has a number is assigned. If it's weight is some
fraction of 'eq' (ie: 'eq/2' or 'eq/3'), then it will be assigned
1/2, 1/3, etc of ... | "Set up the list of responses, with weights. If the weight of a response\n is 'eq', it will be assigned a value that splits what is left after\n everything that has a number is assigned. If it's weight is some\n fraction of 'eq' (ie: 'eq/2' or 'eq/3'), then it will be assigned\n 1/2, 1/3, et... | 35 | false | hamperbot/hamper | setup | 38,238 | |
LDU_FT/bachiraoun/pysimplelog/set_log_type_flags | LDU_FT | [
"<BEGIN>\n## `__stream_format_allowed`",
"Check whether a stream allows formatting such as coloring.\n Inspired from Python cookbook, #475186\n<END>",
"<BEGIN>\n## `lastLogged`",
"Get a dictionary of last logged messages.\n Keys are log types and values are the the last messages.\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_log_type_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_log_type_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.
Th... | Set a defined log type flags.
:Parameters:
#. logType (string): A defined logging type.
#. stdoutFlag (boolean): Whether to log to the standard output stream.
#. fileFlag (boolean): Whether to log to to file. | "Set a defined log type flags.\n\n :Parameters:\n #. logType (string): A defined logging type.\n #. stdoutFlag (boolean): Whether to log to the standard output stream.\n #. fileFlag (boolean): Whether to log to to file." | 56 | false | bachiraoun/pysimplelog | set_log_type_flags | 38,239 | |
LDU_FT/pantsbuild/pex/untrust | LDU_FT | [
"<BEGIN>\n## `isolated`",
"Returns a chroot for third_party isolated from the ``sys.path``.",
" PEX will typically be installed in site-packages flat alongside many other distributions; as such,\n adding the location of the pex distribution to the ``sys.path`` will typically expose many other\n distributions... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the untrust API.
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 untrust API.
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... | Stop trusting a particular key for given scope. | "Stop trusting a particular key for given scope." | 385 | false | pantsbuild/pex | untrust | 38,240 | |
LDU_FT/xenon-middleware/pyxenon/init | LDU_FT | [
"<BEGIN>\n## `make_exception`",
"Creates an exception for a given method, and RpcError.\n<END>",
"<BEGIN>\n## `get_field_type`",
"Obtain the type name of a GRPC Message field.\n<END>",
"<BEGIN>\n## `get_field_description`",
"Get the type description of a GRPC Message field.\n<END>",
"<BEGIN>\n## `make_s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API.
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 init API.
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... | Start the Xenon GRPC server on the specified port, or, if a service
is already running on that port, connect to that.
If no port is given, a random port is selected. This means that, by
default, every python instance will start its own instance of a xenon-grpc
process.
:param port: the port number... | "Start the Xenon GRPC server on the specified port, or, if a service\n is already running on that port, connect to that.\n\n If no port is given, a random port is selected. This means that, by\n default, every python instance will start its own instance of a xenon-grpc\n process.\n\n :param port: the por... | 35 | false | xenon-middleware/pyxenon | init | 38,241 | |
LDU_FT/vasilcovsky/pytinypng/find_apikey | LDU_FT | [
"<BEGIN>\n## `shrink`",
"To shrink a PNG image, post the data to the API service.\n The response is a JSON message.\n The initial request must be authorized with HTTP Basic authorization.",
" @param image: PNG image bytes sequence\n @param apikey: TinyPNG API key\n @param filename: filename of in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_apikey API.
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 find_apikey API.
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... | Finds TinyPNG API key
Search for api key in following order:
- environment variable TINYPNG_APIKEY
- environment variable TINYPNG_API_KEY
- file in local directory tinypng.key
- file in home directory ~/.tinypng.key
If key not found returns None | "Finds TinyPNG API key\n\n Search for api key in following order:\n - environment variable TINYPNG_APIKEY\n - environment variable TINYPNG_API_KEY\n - file in local directory tinypng.key\n - file in home directory ~/.tinypng.key\n\n If key not found returns None" | 21 | false | vasilcovsky/pytinypng | find_apikey | 38,242 | |
LDU_FT/gtaylor/django-dynamodb-sessions/delete | LDU_FT | [
"<BEGIN>\n## `dynamodb_connection_factory`",
"Since SessionStore is called for every single page view, we'd be\n establishing new connections so frequently that performance would be\n hugely impacted. We'll lazy-load this here on a per-worker basis. Since\n boto3.resource.('dynamodb')objects are state-le... | 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 ... | Deletes the current session, or the one specified in ``session_key``.
:keyword str session_key: Optionally, override the session key
to delete. | "Deletes the current session, or the one specified in ``session_key``.\n\n :keyword str session_key: Optionally, override the session key\n to delete." | 16 | false | gtaylor/django-dynamodb-sessions | delete | 38,243 | |
LDU_FT/ruipgil/TrackToTrip/bounds | LDU_FT | [
"<BEGIN>\n## `remove_liers`",
"Removes obvious noise points",
" Checks time consistency, removing points that appear out of order",
" Args:\n points (:obj:`list` of :obj:`Point`)\n Returns:\n :obj:`list` of :obj:`Point`\n<END>",
"<BEGIN>\n## `bounds`",
"Computes the bounds of the se... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bounds API.
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 bounds API.
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 the bounds of this segment
Returns:
(float, float, float, float): Bounds, with min latitude, min longitude,
max latitude and max longitude | "Gets the bounds of this segment\n\n Returns:\n (float, float, float, float): Bounds, with min latitude, min longitude,\n max latitude and max longitude" | 262 | false | ruipgil/TrackToTrip | bounds | 38,244 | |
LDU_FT/LISE-B26/pylabcontrol/refresh_tree | LDU_FT | [
"<BEGIN>\n## `instantiate_probes`",
"Creates instances of the probes inputed;",
" Args:\n probes: probes is a nested dictionary with\n (key, sub_dict ) = (name of the probe, {'probe_name': value_probe, 'instrument_name': value_inst}),\n where value_probe is a valid name of a pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh_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 refresh_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... | refresh trees with current settings
Args:
tree: a QtWidgets.QTreeWidget object or a QtWidgets.QTreeView object
items: dictionary or Parameter items with which to populate the tree
show_all: boolean if true show all parameters, if false only selected ones | "refresh trees with current settings\n Args:\n tree: a QtWidgets.QTreeWidget object or a QtWidgets.QTreeView object\n items: dictionary or Parameter items with which to populate the tree\n show_all: boolean if true show all parameters, if false only selected ones" | 301 | false | LISE-B26/pylabcontrol | refresh_tree | 38,245 | |
LDU_FT/PythonOptimizers/cygenja/add_generator_action | LDU_FT | [
"<BEGIN>\n## `set_parent`",
"Attach node to its parent.",
" Args:\n node: Parent node.",
" Note:\n ``node`` can be ``None``. In that case, the node is detached from its previous parent.\n<END>",
"<BEGIN>\n## `set_child_node`",
"Add one child node to this node.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_generator_action API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_generator_action API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Attach/add one :class:`GeneratorAction`.
Warning:
The order in which you add :class:`GeneratorAction` objects **is** important in case of conflicting :class:`GeneratorAction` objects:
**only** the **first compatible** :class:`GeneratorAction` object will be used to generate the (source ... | "Attach/add one :class:`GeneratorAction`.\n\n Warning:\n The order in which you add :class:`GeneratorAction` objects **is** important in case of conflicting :class:`GeneratorAction` objects:\n **only** the **first compatible** :class:`GeneratorAction` object will be used to generate the (so... | 132 | false | PythonOptimizers/cygenja | add_generator_action | 38,246 | |
LDU_FT/softlayer/softlayer-python/add_standard_firewall | LDU_FT | [
"<BEGIN>\n## `cli`",
"List package items used for ordering.",
" The item keyNames listed can be used with `slcli order place` to specify\n the items that are being ordered in the package.",
" .. Note::\n Items with a numbered category, like disk0 or gpu0, can be included\n multiple time... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_standard_firewall API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_standard_firewall API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Creates a firewall for the specified virtual/hardware server.
:param int server_id: The ID of the server to create the firewall for
:param bool is_virt: If true, will create the firewall for a virtual
server, otherwise for a hardware server.
:returns: A dictionary c... | "Creates a firewall for the specified virtual/hardware server.\n\n :param int server_id: The ID of the server to create the firewall for\n :param bool is_virt: If true, will create the firewall for a virtual\n server, otherwise for a hardware server.\n :returns: A dictio... | 1,375 | true | softlayer/softlayer-python | add_standard_firewall | 38,247 | |
LDU_FT/marcotcr/lime/explain_instance | LDU_FT | [
"<BEGIN>\n## `generate_lars_path`",
"Generates the lars path for weighted data.",
" Args:\n weighted_data: data that has been weighted by kernel\n weighted_label: labels, weighted by kernel",
" Returns:\n (alphas, coefs), both are arrays corresponding to the\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the explain_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 explain_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 ... | Generates explanations for a prediction.
First, we generate neighborhood data by randomly perturbing features
from the instance (see __data_inverse). We then learn locally weighted
linear models on this neighborhood data to explain each of the classes
in an interpretable way (see lime_b... | "Generates explanations for a prediction.\n\n First, we generate neighborhood data by randomly perturbing features\n from the instance (see __data_inverse). We then learn locally weighted\n linear models on this neighborhood data to explain each of the classes\n in an interpretable way (see ... | 113 | false | marcotcr/lime | explain_instance | 38,248 | |
LDU_FT/MahjongRepository/mahjong/divide_hand | LDU_FT | [
"<BEGIN>\n## `calculate_scores`",
"Calculate how much scores cost a hand with given han and fu\n :param han: int\n :param fu: int\n :param config: HandConfig object\n :param is_yakuman: boolean\n :return: a dictionary with main and additional cost\n for ron additional cos... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the divide_hand API.
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 divide_hand API.
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 list of possible hands.
:param tiles_34:
:param melds: list of Meld objects
:return: | "Return a list of possible hands.\n :param tiles_34:\n :param melds: list of Meld objects\n :return:" | 41 | false | MahjongRepository/mahjong | divide_hand | 38,249 | |
LDU_FT/thiagopbueno/rddl2tf/cpfs | LDU_FT | [
"<BEGIN>\n## `constant`",
"Returns a constant `value` TensorFluent with given `dtype`.",
" Args:\n value: The constant value.\n dtype: The output's data type.",
" Returns:\n A constant TensorFluent.\n<END>",
"<BEGIN>\n## `Bernoulli`",
"Returns a TensorFluent ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cpfs API.
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 cpfs API.
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... | Compiles the intermediate and next state fluent CPFs given
the current `state` and `action`.
Args:
state (Sequence[tf.Tensor]): A tuple of state tensors.
action (Sequence[tf.Tensor]): A tuple of action tensors.
Returns:
Tuple[List[TensorFluent], List[TensorF... | "Compiles the intermediate and next state fluent CPFs given\n the current `state` and `action`.\n\n Args:\n state (Sequence[tf.Tensor]): A tuple of state tensors.\n action (Sequence[tf.Tensor]): A tuple of action tensors.\n\n Returns:\n Tuple[List[TensorFluent], Lis... | 297 | false | thiagopbueno/rddl2tf | cpfs | 38,250 | |
LDU_FT/erijo/tellcore-py/add_group | LDU_FT | [
"<BEGIN>\n## `tdSensor`",
"Get the next sensor while iterating.",
" :return: a dict with the keys: protocol, model, id, datatypes.\n<END>",
"<BEGIN>\n## `tdSensorValue`",
"Get the sensor value for a given sensor.",
" :return: a dict with the keys: value, timestamp.\n<END>",
"<BEGIN>\n## `t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Add a new device group.
:return: a :class:`DeviceGroup` instance. | "Add a new device group.\n\n :return: a :class:`DeviceGroup` instance." | 34 | false | erijo/tellcore-py | add_group | 38,251 | |
LDU_FT/digidotcom/python-devicecloud/to_xml | LDU_FT | [
"<BEGIN>\n## `_parse_command_response`",
"Parse an SCI command response into ElementTree XML",
" This is a helper method that takes a Requests Response object\n of an SCI command response and will parse it into an ElementTree Element\n representing the root of the XML response.",
" :param response... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_xml API.
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_xml API.
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 ... | Convert this datapoint into a form suitable for pushing to device cloud
An XML string will be returned that will contain all pieces of information
set on this datapoint. Values not set (e.g. quality) will be ommitted. | "Convert this datapoint into a form suitable for pushing to device cloud\n\n An XML string will be returned that will contain all pieces of information\n set on this datapoint. Values not set (e.g. quality) will be ommitted." | 366 | false | digidotcom/python-devicecloud | to_xml | 38,252 | |
LDU_FT/raghakot/keras-vis/random_array | LDU_FT | [
"<BEGIN>\n## `visualize_activation_with_losses`",
"Generates the `input_tensor` that minimizes the weighted `losses`. This function is intended for advanced\n use cases where a custom loss is desired.",
" Args:\n input_tensor: An input tensor of shape: `(samples, channels, image_dims...)` if `image... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_array API.
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 random_array API.
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... | Creates a uniformly distributed random array with the given `mean` and `std`.
Args:
shape: The desired shape
mean: The desired mean (Default value = 128)
std: The desired std (Default value = 20)
Returns: Random numpy array of given `shape` uniformly distributed with desired `mean` and... | "Creates a uniformly distributed random array with the given `mean` and `std`.\n\n Args:\n shape: The desired shape\n mean: The desired mean (Default value = 128)\n std: The desired std (Default value = 20)\n\n Returns: Random numpy array of given `shape` uniformly distributed with desired `m... | 138 | false | raghakot/keras-vis | random_array | 38,253 | |
LDU_FT/gtaylor/paypal-python/is_valid_country_abbrev | LDU_FT | [
"<BEGIN>\n## `_check_required`",
"Checks kwargs for the values specified in 'requires', which is a tuple\n of strings. These strings are the NVP names of the required values.\n<END>",
"<BEGIN>\n## `_call`",
"Wrapper method for executing all API commands over HTTP. This method is\n further used t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid_country_abbrev 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 is_valid_country_abbrev API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Given a country code abbreviation, check to see if it matches the
country table.
abbrev: (str) Country code to evaluate.
case_sensitive: (bool) When True, enforce case sensitivity.
Returns True if valid, False if not. | "Given a country code abbreviation, check to see if it matches the\n country table.\n\n abbrev: (str) Country code to evaluate.\n case_sensitive: (bool) When True, enforce case sensitivity.\n\n Returns True if valid, False if not." | 78 | false | gtaylor/paypal-python | is_valid_country_abbrev | 38,254 | |
LDU_FT/CityOfZion/neo-boa/load_and_save | LDU_FT | [
"<BEGIN>\n## `main`",
"Return the default method in this module.",
" :return: the default method in this module\n :rtype: ``boa.code.method.Method``\n<END>",
"<BEGIN>\n## `orderered_methods`",
"An ordered list of methods",
" :return: A list of ordered methods is this module\n :... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_and_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_and_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 ext... | Call `load_and_save` to load a Python file to be compiled to the .avm format and save the result.
By default, the resultant .avm file is saved along side the source file.
:param path: The path of the Python file to compile
:param output_path: Optional path to save the compiled `.avm` file
... | "Call `load_and_save` to load a Python file to be compiled to the .avm format and save the result.\n By default, the resultant .avm file is saved along side the source file.\n\n :param path: The path of the Python file to compile\n :param output_path: Optional path to save the compiled `.avm` file\... | 36 | false | CityOfZion/neo-boa | load_and_save | 38,255 | |
LDU_FT/konstantint/PassportEye/_imread | LDU_FT | [
"<BEGIN>\n## `_guess_type`",
"Guesses the type of the MRZ from given lines. Returns 'TD1', 'TD2', 'TD3', 'MRVA', 'MRVB' or None.\n The algorithm is basically just counting lines, looking at their length and checking whether the first character is a 'V'",
" >>> MRZ._guess_type([]) is None\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _imread API.
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 _imread API.
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... | Proxy to skimage.io.imread with some fixes. | "Proxy to skimage.io.imread with some fixes." | 67 | false | konstantint/PassportEye | _imread | 38,256 | |
LDU_FT/ubc/ubcpi/get_other_answers | LDU_FT | [
"<BEGIN>\n## `get_max_size`",
"Calculate the max number of item that an option can stored in the pool at give time.",
" This is to limit the pool size to POOL_SIZE",
" Args:\n option_index (int): the index of the option to calculate the size for\n pool (dict): answer pool\n num_opti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_other_answers API.
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_other_answers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Select other student's answers from answer pool or seeded answers based on the selection algorithm
Args:
pool (dict): answer pool, format:
{
option1_index: {
student_id: { can store algorithm specific info here }
},
option2_ind... | "Select other student's answers from answer pool or seeded answers based on the selection algorithm\n\n Args:\n pool (dict): answer pool, format:\n {\n option1_index: {\n student_id: { can store algorithm specific info here }\n },\n op... | 98 | false | ubc/ubcpi | get_other_answers | 38,257 | |
LDU_FT/CMUSTRUDEL/strudel.utils/shell | LDU_FT | [
"<BEGIN>\n## `mkdir`",
"Create a directory specified by a sequence of subdirectories",
" >>> mkdir(\"/tmp\", \"foo\", \"bar\", \"baz\")\n '/tmp/foo/bar/baz'\n >>> os.path.isdir('/tmp/foo/bar/baz')\n True\n<END>",
"<BEGIN>\n## `shell`",
"Execute shell command and return output",
" Args:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shell API.
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 shell API.
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... | Execute shell command and return output
Args:
cmd (str): the command itself, i.e. part until the first space
*args: positional arguments, i.e. other space-separated parts
rel_path (bool): execute relative to the path (default: `False`)
raise_on_status(bool): bool, raise exception if... | "Execute shell command and return output\n\n Args:\n cmd (str): the command itself, i.e. part until the first space\n *args: positional arguments, i.e. other space-separated parts\n rel_path (bool): execute relative to the path (default: `False`)\n raise_on_status(bool): bool, raise excep... | 61 | false | CMUSTRUDEL/strudel.utils | shell | 38,258 | |
LDU_FT/wbond/certvalidator/fetch | LDU_FT | [
"<BEGIN>\n## `fetch`",
"Fetches an OCSP response for a certificate",
" :param cert:\n An asn1cyrpto.x509.Certificate object to get an OCSP reponse for",
" :param issuer:\n An asn1crypto.x509.Certificate object that is the issuer of cert",
" :param hash_algo:\n A unicode string ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch API.
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 fetch API.
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... | Fetches an OCSP response for a certificate
:param cert:
An asn1cyrpto.x509.Certificate object to get an OCSP reponse for
:param issuer:
An asn1crypto.x509.Certificate object that is the issuer of cert
:param hash_algo:
A unicode string of "sha1" or "sha256"
:param nonce:
... | "Fetches an OCSP response for a certificate\n\n :param cert:\n An asn1cyrpto.x509.Certificate object to get an OCSP reponse for\n\n :param issuer:\n An asn1crypto.x509.Certificate object that is the issuer of cert\n\n :param hash_algo:\n A unicode string of \"sha1\" or \"sha256\"\n\n :p... | 202 | false | wbond/certvalidator | fetch | 38,259 | |
LDU_FT/vatlab/SoS/Rmarkdown | LDU_FT | [
"<BEGIN>\n## `process_request`",
"port is the open port at the worker, num_pending is the num_pending of stack.\n A non-zero num_pending means that the worker is pending on something while\n looking for new job, so the worker should not be killed.\n<END>",
"<BEGIN>\n## `check_workers`",
"Kill wo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Rmarkdown API.
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 Rmarkdown API.
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... | Convert input file to output using Rmarkdown
The input can be specified in three ways:
1. instant script, which is assumed to be in md format
Rmarkdown: output='report.html'
script
2. one or more input files. The format is determined by extension of input file
Rmarkdown(input, output='r... | "Convert input file to output using Rmarkdown\n\n The input can be specified in three ways:\n\n 1. instant script, which is assumed to be in md format\n\n Rmarkdown: output='report.html'\n script\n\n 2. one or more input files. The format is determined by extension of input file\n\n Rmarkdown(inpu... | 193 | false | vatlab/SoS | Rmarkdown | 38,260 | |
LDU_FT/ClericPy/torequests/run_in_process_pool | LDU_FT | [
"<BEGIN>\n## `init_original_response`",
"Get the original response for comparing, confirm ``is_cookie_necessary``\n<END>",
"<BEGIN>\n## `init_original_response`",
"Get the original response for comparing, confirm is_cookie_necessary\n<END>",
"<BEGIN>\n## `sort_url_qsl`",
"Do nothing but sort the params of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_in_process_pool 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 run_in_process_pool 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... | If `kwargs` needed, try like this: func=lambda: foo(*args, **kwargs) | "If `kwargs` needed, try like this: func=lambda: foo(*args, **kwargs)" | 244 | false | ClericPy/torequests | run_in_process_pool | 38,261 | |
LDU_FT/vsudilov/flask-consulate/register_service | LDU_FT | [
"<BEGIN>\n## `_create_session`",
"Create a consulate.session object, and query for its leader to ensure\n that the connection is made.",
" :param test_connection: call .leader() to ensure that the connection\n is valid\n :type test_connection: bool\n :return consulate.Sess... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_service API.
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 register_service API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | register this service with consul
kwargs passed to Consul.agent.service.register | "register this service with consul\n kwargs passed to Consul.agent.service.register" | 16 | false | vsudilov/flask-consulate | register_service | 38,262 | |
LDU_FT/chakki-works/seqeval/get_entities | LDU_FT | [
"<BEGIN>\n## `find_pad_index`",
"Find padding index.",
" Args:\n array (list): integer list.",
" Returns:\n idx: padding index.",
" Examples:\n >>> array = [1, 2, 0]\n >>> self.find_pad_index(array)\n 2\n<END>",
"<BEGIN>\n## `g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_entities API.
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_entities API.
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... | Gets entities from sequence.
Args:
seq (list): sequence of labels.
Returns:
list: list of (chunk_type, chunk_start, chunk_end).
Example:
>>> from seqeval.metrics.sequence_labeling import get_entities
>>> seq = ['B-PER', 'I-PER', 'O', 'B-LOC']
>>> get_entities(seq)
... | "Gets entities from sequence.\n\n Args:\n seq (list): sequence of labels.\n\n Returns:\n list: list of (chunk_type, chunk_start, chunk_end).\n\n Example:\n >>> from seqeval.metrics.sequence_labeling import get_entities\n >>> seq = ['B-PER', 'I-PER', 'O', 'B-LOC']\n >>> get_en... | 73 | false | chakki-works/seqeval | get_entities | 38,263 | |
LDU_FT/onicagroup/runway/use_embedded_pkgs | LDU_FT | [
"<BEGIN>\n## `fix_hyphen_commands`",
"Update options to match their module names with underscores.\n<END>",
"<BEGIN>\n## `calculate_hash_of_files`",
"Return a hash of all of the given files at the given root.",
" Adapted from stacker.hooks.aws_lambda; used according to its license:\n https://github.co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_embedded_pkgs API.
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 use_embedded_pkgs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Temporarily prepend embedded packages to sys.path. | "Temporarily prepend embedded packages to sys.path." | 130 | false | onicagroup/runway | use_embedded_pkgs | 38,264 | |
LDU_FT/scdoshi/django-bits/usetz_now | LDU_FT | [
"<BEGIN>\n## `gprmc_to_degdec`",
"Converts GPRMC formats (Decimal Minutes) to Degrees Decimal.\n<END>",
"<BEGIN>\n## `tinygps_to_degdec`",
"Converts TinyGPS formats (Decimal Degrees to e-5) to Degrees Decimal.\n<END>",
"<BEGIN>\n## `change_in_longitude`",
"Given a latitude and a distance west, return the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the usetz_now API.
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 usetz_now API.
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... | Determine current time depending on USE_TZ setting.
Affects Django 1.4 and above only. if `USE_TZ = True`, then returns
current time according to timezone, else returns current UTC time. | "Determine current time depending on USE_TZ setting.\n\n Affects Django 1.4 and above only. if `USE_TZ = True`, then returns\n current time according to timezone, else returns current UTC time." | 25 | false | scdoshi/django-bits | usetz_now | 38,265 | |
LDU_FT/markchil/gptools/arrow_respond | LDU_FT | [
"<BEGIN>\n## `matern_function`",
"r\"\"\"Matern covariance function of arbitrary dimension, for use with :py:class:`ArbitraryKernel`.",
" The Matern kernel has the following hyperparameters, always referenced in\n the order listed:",
" = ===== ====================================\n 0 sigma prefact... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arrow_respond API.
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 arrow_respond API.
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... | Event handler for arrow key events in plot windows.
Pass the slider object to update as a masked argument using a lambda function::
lambda evt: arrow_respond(my_slider, evt)
Parameters
----------
slider : Slider instance associated with this handler.
event : Event to be ha... | "Event handler for arrow key events in plot windows.\n \n Pass the slider object to update as a masked argument using a lambda function::\n \n lambda evt: arrow_respond(my_slider, evt)\n \n Parameters\n ----------\n slider : Slider instance associated with this handler.\n event : Even... | 496 | false | markchil/gptools | arrow_respond | 38,266 | |
LDU_FT/ratcave/ratcave/create_opengl_object | LDU_FT | [
"<BEGIN>\n## `add_child`",
"Adds an object as a child in the scene graph.\n<END>",
"<BEGIN>\n## `add_children`",
"Conveniience function: Adds objects as children in the scene graph.\n<END>",
"<BEGIN>\n## `match_aspect_to_viewport`",
"Updates Camera.aspect to match the viewport's aspect ratio.\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_opengl_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_opengl_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Returns int pointing to an OpenGL texture | "Returns int pointing to an OpenGL texture" | 79 | false | ratcave/ratcave | create_opengl_object | 38,267 | |
LDU_FT/jmcgeheeiv/pyfakefs/_read_wrappers | LDU_FT | [
"<BEGIN>\n## `_classify_directory_contents`",
"Classify contents of a directory as files/directories.",
" Args:\n filesystem: The fake filesystem used for implementation\n root: (str) Directory to examine.",
" Returns:\n (tuple) A tuple consisting of three values: the directory exam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_wrappers API.
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 _read_wrappers API.
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... | Wrap a stream attribute in a read wrapper.
Returns a read_wrapper which tracks our own read pointer since the
stream object has no concept of a different read and write pointer.
Args:
name: The name of the attribute to wrap. Should be a read call.
Returns:
The ... | "Wrap a stream attribute in a read wrapper.\n\n Returns a read_wrapper which tracks our own read pointer since the\n stream object has no concept of a different read and write pointer.\n\n Args:\n name: The name of the attribute to wrap. Should be a read call.\n\n Returns:\n ... | 534 | false | jmcgeheeiv/pyfakefs | _read_wrappers | 38,268 | |
LDU_FT/trevisanj/f311/copy_default_data_file | LDU_FT | [
"<BEGIN>\n## `save_as`",
"Dumps object contents into file on disk.",
" Args:\n filename (optional): defaults to self.filename. If passed, self.filename\n will be updated to filename.\n<END>",
"<BEGIN>\n## `load`",
"Loads file and registers filename as attribute.\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_default_data_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.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_default_data_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.... | Copies file from default data directory to local directory. | "Copies file from default data directory to local directory." | 204 | false | trevisanj/f311 | copy_default_data_file | 38,269 | |
LDU_FT/quantmind/pulsar/count_bytes | LDU_FT | [
"<BEGIN>\n## `slugify`",
"Normalizes string, removes non-alpha characters,\n and converts spaces to ``separator`` character\n<END>",
"<BEGIN>\n## `multi_bulk`",
"Multi bulk encoding for list/tuple ``args``\n<END>",
"<BEGIN>\n## `is_mainthread`",
"Check if thread is the main thread.",
" If ``thread... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_bytes API.
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 count_bytes API.
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... | Count the number of bits in a byte ``array``.
It uses the Hamming weight popcount algorithm | "Count the number of bits in a byte ``array``.\n\n It uses the Hamming weight popcount algorithm" | 643 | false | quantmind/pulsar | count_bytes | 38,270 | |
LDU_FT/d0c-s4vage/pfp/_flush_bits_to_stream | LDU_FT | [
"<BEGIN>\n## `instantiate`",
"Create a ParamList instance for actual interpretation",
" :args: TODO\n :returns: A ParamList object\n<END>",
"<BEGIN>\n## `int3`",
"Define the ``Int3()`` function in the interpreter. Calling\n ``Int3()`` will drop the user into an interactive debugger.\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _flush_bits_to_stream API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _flush_bits_to_stream API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Flush the bits to the stream. This is used when
a few bits have been read and ``self._bits`` contains unconsumed/
flushed bits when data is to be written to the stream | "Flush the bits to the stream. This is used when\n a few bits have been read and ``self._bits`` contains unconsumed/\n flushed bits when data is to be written to the stream" | 383 | false | d0c-s4vage/pfp | _flush_bits_to_stream | 38,271 | |
LDU_FT/dstufft/crust/clone | LDU_FT | [
"<BEGIN>\n## `subclass_exception`",
"Create exception subclass.",
" If 'attached_to' is supplied, the exception will be created in a way that\n allows it to be pickled, assuming the returned exception class will be added\n as an attribute to the 'attached_to' class.\n<END>",
"<BEGIN>\n## `save`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clone API.
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 clone API.
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... | Creates a copy of the current instance. The 'kwargs' parameter can be
used by clients to update attributes after copying has taken place. | "Creates a copy of the current instance. The 'kwargs' parameter can be\n used by clients to update attributes after copying has taken place." | 38 | false | dstufft/crust | clone | 38,272 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.