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/20c/xbahn/disconnect
LDU_FT
[ "<BEGIN>\n## `disconnect`", "Close all connections that are set on this wire\n<END>", "<BEGIN>\n## `send_and_wait`", "Send a message and block until a response is received. Return response message\n<END>", "<BEGIN>\n## `wire`", "Wires the link to a connection. Can be called multiple\n times to set ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect API. 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 disconnect API. 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...
Close all connections that are set on this wire
"Close all connections that are set on this wire"
119
false
20c/xbahn
disconnect
26,373
LDU_FT/scrapinghub/exporters/formatted_prefix
LDU_FT
[ "<BEGIN>\n## `formatted_prefix`", "Gets a dict with format info, and formats a prefix template with that info. For example:\n if our prefix template is:\n 'some_file_{groups[0]}_{file_number}'", " And we have this method called with:", " formatted_prefix(groups=[US], file_number=0)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the formatted_prefix API. 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 formatted_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Gets a dict with format info, and formats a prefix template with that info. For example: if our prefix template is: 'some_file_{groups[0]}_{file_number}' And we have this method called with: formatted_prefix(groups=[US], file_number=0) The returned formatted prefix would be: ...
"Gets a dict with format info, and formats a prefix template with that info. For example:\n if our prefix template is:\n 'some_file_{groups[0]}_{file_number}'\n\n And we have this method called with:\n\n formatted_prefix(groups=[US], file_number=0)\n\n The returned formatted prefix wo...
90
false
scrapinghub/exporters
formatted_prefix
26,374
LDU_FT/taleinat/fuzzysearch/find_near_matches_generic_ngrams
LDU_FT
[ "<BEGIN>\n## `find_near_matches_no_deletions_ngrams`", "search for near-matches of subsequence in sequence", " This searches for near-matches, where the nearly-matching parts of the\n sequence must meet the following limitations (relative to the subsequence):", " * the maximum allowed number of chara...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_near_matches_generic_ngrams API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_near_matches_generic_ngrams API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
search for near-matches of subsequence in sequence This searches for near-matches, where the nearly-matching parts of the sequence must meet the following limitations (relative to the subsequence): * the maximum allowed number of character substitutions * the maximum allowed number of new characters i...
"search for near-matches of subsequence in sequence\n\n This searches for near-matches, where the nearly-matching parts of the\n sequence must meet the following limitations (relative to the subsequence):\n\n * the maximum allowed number of character substitutions\n * the maximum allowed number of new chara...
51
false
taleinat/fuzzysearch
find_near_matches_generic_ngrams
26,375
LDU_FT/hfaran/progressive/write
LDU_FT
[ "<BEGIN>\n## `simple`", "Simple example using just the Bar class", " This example is intended to show usage of the Bar class at the lowest\n level.\n<END>", "<BEGIN>\n## `draw`", "Draw ``tree`` to the terminal", " :type tree: dict\n :param tree: ``tree`` should be a tree representing ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Writes ``s`` to the terminal output stream Writes can be disabled by setting the environment variable `PROGRESSIVE_NOWRITE` to `'True'`
"Writes ``s`` to the terminal output stream\n\n Writes can be disabled by setting the environment variable\n `PROGRESSIVE_NOWRITE` to `'True'`"
48
false
hfaran/progressive
write
26,376
LDU_FT/MacHu-GWU/windtalker-project/decrypt_text
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 decrypt_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrypt_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Decrypt a string. input: unicode str, output: unicode str
"Decrypt a string.\n\n input: unicode str, output: unicode str"
47
false
MacHu-GWU/windtalker-project
decrypt_text
26,377
LDU_FT/JMSwag/dsdev-utils/get_correct_answer
LDU_FT
[ "<BEGIN>\n## `lazy_import`", "Decorator for declaring a lazy import.", " This decorator turns a function into an object that will act as a lazy\n importer. Whenever the object's attributes are accessed, the function\n is called and its return value used in place of the object. So you\n can declare...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_correct_answer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_correct_answer 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...
u"""Ask user a question and confirm answer Args: question (str): Question to ask user default (str): Default answer if no input from user required (str): Require user to input answer answer (str): Used for testing is_answer_correct (str): Used for testing
"u\"\"\"Ask user a question and confirm answer\n\n Args:\n\n question (str): Question to ask user\n\n default (str): Default answer if no input from user\n\n required (str): Require user to input answer\n\n answer (str): Used for testing\n\n is_answer_correct (str): Used for testin...
36
false
JMSwag/dsdev-utils
get_correct_answer
26,378
LDU_FT/msztolcman/versionner/_parse_global_section
LDU_FT
[ "<BEGIN>\n## `parse_args`", "Parse input arguments of script.", " :param args: list of parameters\n :type: argparse.Namespace\n :param cfg: configuration storage\n :type: Config\n<END>", "<BEGIN>\n## `_find_project_config_file`", "Find path to project-wide config file\n Search from current wo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_global_section 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 _parse_global_section API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Parse global ([versionner]) section :param cfg_handler: :return:
"Parse global ([versionner]) section\n\n :param cfg_handler:\n :return:"
61
false
msztolcman/versionner
_parse_global_section
26,379
LDU_FT/offu/WeRoBot/pay_deliver_notify
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 pay_deliver_notify 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 pay_deliver_notify 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...
通知 腾讯发货 一般形式 :: wxclient.pay_delivernotify( openid=openid, transid=transaction_id, out_trade_no=本地订单号, deliver_timestamp=int(time.time()), deliver_status="1", deliver_msg="ok" ) :par...
"通知 腾讯发货\n\n 一般形式 ::\n wxclient.pay_delivernotify(\n openid=openid,\n transid=transaction_id,\n out_trade_no=本地订单号,\n deliver_timestamp=int(time.time()),\n deliver_status=\"1\",\n deliver_msg=\"ok\"\n ...
223
false
offu/WeRoBot
pay_deliver_notify
26,380
LDU_FT/rkargon/pixelsorter/getheaderAnim
LDU_FT
[ "<BEGIN>\n## `hue`", "Returns the saturation of a pixel.\n Gray pixels have saturation 0.\n :param p: A tuple of (R,G,B) values\n :return: A saturation value between 0 and 360\n<END>", "<BEGIN>\n## `saturation`", "Returns the saturation of a pixel, defined as the ratio of chroma to value.\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getheaderAnim API. 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 getheaderAnim API. 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...
getheaderAnim(im) Get animation header. To replace PILs getheader()[0]
"getheaderAnim(im)\n\n Get animation header. To replace PILs getheader()[0]"
79
false
rkargon/pixelsorter
getheaderAnim
26,381
LDU_FT/qiniu/python-sdk/list_containers
LDU_FT
[ "<BEGIN>\n## `execute`", "执行持久化处理:", " Args:\n key: 待处理的源文件\n fops: 处理详细操作,规格详见 https://developer.qiniu.com/dora/manual/1291/persistent-data-processing-pfop\n force: 强制执行持久化处理开关", " Returns:\n 一个dict变量,返回持久化处理的persistentId,类似{\"persistentId\": 54...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_containers API. 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 list_containers API. 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...
列出容器列表 列出应用内所有部署的容器, 返回一组容器IP。 Args: - stack: 要列出容器的服务组名(可不填,表示默认列出所有) - service: 要列出容器服务的服务名(可不填,表示默认列出所有) Returns: 返回一个tuple对象,其格式为(<result>, <ResponseInfo>) - result 成功返回容器的ip数组,失败返回{"error": "<errMsg string>"} - Resp...
"列出容器列表\n\n 列出应用内所有部署的容器, 返回一组容器IP。\n\n Args:\n - stack: 要列出容器的服务组名(可不填,表示默认列出所有)\n - service: 要列出容器服务的服务名(可不填,表示默认列出所有)\n\n Returns:\n 返回一个tuple对象,其格式为(<result>, <ResponseInfo>)\n - result 成功返回容器的ip数组,失败返回{\"error\": \"<errMsg string>\"}\n ...
337
false
qiniu/python-sdk
list_containers
26,382
LDU_FT/docker/docker-py/enable
LDU_FT
[ "<BEGIN>\n## `compare_version`", "Compare docker versions", " >>> v1 = '1.9'\n >>> v2 = '1.10'\n >>> compare_version(v1, v2)\n 1\n >>> compare_version(v2, v1)\n -1\n >>> compare_version(v2, v2)\n 0\n<END>", "<BEGIN>\n## `datetime_to_timestamp`", "Convert a UTC datetime to a Unix time...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable API. 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 enable API. 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 ...
Enable the plugin. Args: timeout (int): Timeout in seconds. Default: 0 Raises: :py:class:`docker.errors.APIError` If the server returns an error.
"Enable the plugin.\n\n Args:\n timeout (int): Timeout in seconds. Default: 0\n\n Raises:\n :py:class:`docker.errors.APIError`\n If the server returns an error."
998
false
docker/docker-py
enable
26,383
LDU_FT/pypyr/pypyr-cli/run_step
LDU_FT
[ "<BEGIN>\n## `run_step`", "Wipe the entire context.", " Args:\n Context is a dictionary or dictionary-like.\n Does not require any specific keys in context.\n<END>", "<BEGIN>\n## `get_parsed_context`", "Parse input context string and returns context as dictionary.\n<END>", "<BEGIN>\n## `r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_step API. 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 run_step API. 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...
Print debug info to console. context is a dictionary or dictionary-like. If you use pypyr.steps.debug as a simple step (i.e you do NOT specify the debug input context), it will just dump the entire context to stdout. Configure the debug step with the following optional context item: debug: ...
"Print debug info to console.\n\n context is a dictionary or dictionary-like.\n\n If you use pypyr.steps.debug as a simple step (i.e you do NOT specify the\n debug input context), it will just dump the entire context to stdout.\n\n Configure the debug step with the following optional context item:\n ...
527
false
pypyr/pypyr-cli
run_step
26,384
LDU_FT/OnroerendErfgoed/pyramid_urireferencer/application_adapter
LDU_FT
[ "<BEGIN>\n## `protected_operation`", "Use this decorator to prevent an operation from being executed\n when the related uri resource is still in use.\n The parent_object must contain:\n * a request\n * with a registry.queryUtility(IReferencer)\n :raises pyramid.httpexceptions.HTTPConfli...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the application_adapter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the application_adapter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Adapter for rendering a :class:`pyramid_urireferencer.models.ApplicationResponse` to json. :param pyramid_urireferencer.models.ApplicationResponse obj: The response to be rendered. :rtype: :class:`dict`
"Adapter for rendering a :class:`pyramid_urireferencer.models.ApplicationResponse` to json.\n\n :param pyramid_urireferencer.models.ApplicationResponse obj: The response to be rendered.\n :rtype: :class:`dict`"
25
false
OnroerendErfgoed/pyramid_urireferencer
application_adapter
26,385
LDU_FT/msiedlarek/wiring/scan_to_module
LDU_FT
[ "<BEGIN>\n## `get_implemented_interfaces`", "Returns a set of :term:`interfaces <interface>` declared as implemented by\n class `cls`.\n<END>", "<BEGIN>\n## `set_implemented_interfaces`", "Declares :term:`interfaces <interface>` as implemented by class `cls`.\n Those already declared are overriden.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_to_module API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_to_module API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Scans `python_modules` with :py:func:`scan` and adds found providers to `module`'s :py:attr:`wiring.configuration.Module.providers`. `ignore` argument is passed through to :py:func:`scan`.
"Scans `python_modules` with :py:func:`scan` and adds found providers\n to `module`'s :py:attr:`wiring.configuration.Module.providers`.\n\n `ignore` argument is passed through to :py:func:`scan`."
69
false
msiedlarek/wiring
scan_to_module
26,386
LDU_FT/spyder-ide/spyder-kernels/set_post_mortem
LDU_FT
[ "<BEGIN>\n## `get_numpy_dtype`", "Return NumPy data type associated to obj\n Return None if NumPy is not available\n or if obj is not a NumPy array or scalar\n<END>", "<BEGIN>\n## `address`", "Return object address as a string: '<classname @ address>\n<END>", "<BEGIN>\n## `get_size`", "Return size o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_post_mortem API. 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 set_post_mortem API. 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...
Enable the post mortem debugging excepthook.
"Enable the post mortem debugging excepthook."
125
false
spyder-ide/spyder-kernels
set_post_mortem
26,387
LDU_FT/ontio/ontology-python-sdk/write_int16
LDU_FT
[ "<BEGIN>\n## `init`", "This interface is used to call the TotalSupply method in ope4\n that initialize smart contract parameter.", " :param acct: an Account class that used to sign the transaction.\n :param payer_acct: an Account class that used to pay for the transaction.\n :param g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_int16 API. 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 write_int16 API. 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...
Pack the value as a signed integer and write 2 bytes to the stream. Args: value: little_endian (bool): specify the endianness. (Default) Little endian. Returns: int: the number of bytes written.
"Pack the value as a signed integer and write 2 bytes to the stream.\n\n Args:\n value:\n little_endian (bool): specify the endianness. (Default) Little endian.\n\n Returns:\n int: the number of bytes written."
375
false
ontio/ontology-python-sdk
write_int16
26,388
LDU_FT/wdm0006/sklearn-extensions/_get_predictions
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit the model", " Parameters\n ----------\n X : array-like of shape = [n_samples, n_features]\n The training input samples.", " y : array-like, shape = [n_samples]\n The target values", " Returns\n -------\n self : ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_predictions API. 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_predictions API. 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 predictions using internal least squares/supplied regressor
"get predictions using internal least squares/supplied regressor"
60
false
wdm0006/sklearn-extensions
_get_predictions
26,389
LDU_FT/candango/firenado/process_config
LDU_FT
[ "<BEGIN>\n## `get_handlers`", "Returns the handlers defined on the static_maps.yml file located\n at the app config directory.", " Returns: An array of static handlers to be added to the app.\n<END>", "<BEGIN>\n## `sig_handler`", "Handle the signal sent to the process\n :param sig: Sig...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Populates config with data from the configuration data dict. It handles components, data, log, management and session sections from the configuration data. :param config: The config reference of the object that will hold the configuration data from the config_data. :param config_data: The configura...
"Populates config with data from the configuration data dict. It handles\n components, data, log, management and session sections from the\n configuration data.\n\n :param config: The config reference of the object that will hold the\n configuration data from the config_data.\n :param config_data: The co...
66
false
candango/firenado
process_config
26,390
LDU_FT/guma44/GEOparse/add_log_file
LDU_FT
[ "<BEGIN>\n## `download`", "Download SRA files.", " Returns:\n :obj:`list` of :obj:`str`: List of downloaded files.\n<END>", "<BEGIN>\n## `add_log_file`", "Add log file.", " Args:\n path (:obj:`str`): Path to the log file.\n<END>", "<BEGIN>\n## `_sra_download_worker`", "A wo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_log_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_log_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Add log file. Args: path (:obj:`str`): Path to the log file.
"Add log file.\n\n Args:\n path (:obj:`str`): Path to the log file."
142
false
guma44/GEOparse
add_log_file
26,391
LDU_FT/ttroy50/pyephember/activate_boost_by_id
LDU_FT
[ "<BEGIN>\n## `_requires_refresh_token`", "Check if a refresh of the token is needed\n<END>", "<BEGIN>\n## `_login`", "Login using username / password and get the first auth token\n<END>", "<BEGIN>\n## `get_zone`", "Get the information about a particular zone\n<END>", "<BEGIN>\n## `set_target_temperature...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate_boost_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate_boost_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Activate boost for a zone based on the numeric id
"Activate boost for a zone based on the numeric id"
18
false
ttroy50/pyephember
activate_boost_by_id
26,392
LDU_FT/mbr/tinyrpc/public
LDU_FT
[ "<BEGIN>\n## `error_respond`", "Converts the error to an error response object.", " :return: An error response object ready to be serialized and sent to the client.\n :rtype: :py:class:`JSONRPCErrorResponse`\n<END>", "<BEGIN>\n## `error_respond`", "Create an error response to this request.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the public API. 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 public API. 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 ...
Convenient decorator. Allows easy registering of functions to this dispatcher. Example: .. code-block:: python dispatch = RPCDispatcher() @dispatch.public def foo(bar): # ... class Baz(object): def not_exposed(self): ...
"Convenient decorator.\n\n Allows easy registering of functions to this dispatcher. Example:\n\n .. code-block:: python\n\n dispatch = RPCDispatcher()\n\n @dispatch.public\n def foo(bar):\n # ...\n\n class Baz(object):\n def not_exp...
120
false
mbr/tinyrpc
public
26,393
LDU_FT/alorence/django-modern-rpc/parse_docstring
LDU_FT
[ "<BEGIN>\n## `_generic_convert_string`", "Generic method to convert any argument type (string type, list, set, tuple, dict) to an equivalent,\n with string values converted to given 'to_type' (str or unicode).\n This method must be used with Python 2 interpreter only.", " :param v: The value to convert...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_docstring API. 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 parse_docstring API. 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...
Parse the given full docstring, and extract method description, arguments, and return documentation. This method try to find arguments description and types, and put the information in "args_doc" and "signature" members. Also parse return type and description, and put the information in "return_doc" me...
"Parse the given full docstring, and extract method description, arguments, and return documentation.\n\n This method try to find arguments description and types, and put the information in \"args_doc\" and \"signature\"\n members. Also parse return type and description, and put the information in \"retur...
86
false
alorence/django-modern-rpc
parse_docstring
26,394
LDU_FT/horejsek/python-fastjsonschema/resolve_remote
LDU_FT
[ "<BEGIN>\n## `indent`", "Decorator for allowing to use method as normal method or with\n context manager for auto-indenting code blocks.\n<END>", "<BEGIN>\n## `resolve_path`", "Return definition from path.\r", " Path is unescaped according https://tools.ietf.org/html/rfc6901\n<END>", "<BEGIN>\n## `r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_remote API. 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 resolve_remote API. 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...
Resolve a remote ``uri``. .. note:: urllib library is used to fetch requests from the remote ``uri`` if handlers does notdefine otherwise.
"Resolve a remote ``uri``.\r\n\r\n .. note::\r\n\r\n urllib library is used to fetch requests from the remote ``uri``\r\n if handlers does notdefine otherwise."
157
false
horejsek/python-fastjsonschema
resolve_remote
26,395
LDU_FT/sernst/cauldron/parse
LDU_FT
[ "<BEGIN>\n## `set_executing`", "Toggle whether or not the current thread is executing a step file. This\n will only apply when the current thread is a CauldronThread. This function\n has no effect when run on a Main thread.", " :param on:\n Whether or not the thread should be annotated as execut...
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...
Parses the arguments for the cauldron server
"Parses the arguments for the cauldron server"
534
false
sernst/cauldron
parse
26,396
LDU_FT/C4ptainCrunch/ics.py/due
LDU_FT
[ "<BEGIN>\n## `arrow_get`", "this function exists because ICS uses ISO 8601 without dashes or\n colons, i.e. not ISO 8601 at all.\n<END>", "<BEGIN>\n## `parse_duration`", "Return a timedelta object from a string in the DURATION property format\n<END>", "<BEGIN>\n## `timedelta_to_duration`", "Return a st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the due API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the due API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get or set the end of the todo. | Will return an :class:`Arrow` object. | May be set to anything that :func:`Arrow.get` understands. | If set to a non null value, removes any already existing duration. | Setting to None will have unexpected behavior if begin ...
"Get or set the end of the todo.\n\n | Will return an :class:`Arrow` object.\n | May be set to anything that :func:`Arrow.get` understands.\n | If set to a non null value, removes any already\n existing duration.\n | Setting to None will have unexpected behavior if\n ...
50
false
C4ptainCrunch/ics.py
due
26,397
LDU_FT/TorkamaniLab/metapipe/consume
LDU_FT
[ "<BEGIN>\n## `consume`", "Converts the lexer tokens into valid statements. This process\n also checks command syntax.\n<END>", "<BEGIN>\n## `_get`", "Given a type and a dict of parser results, return\n the items as a list.\n<END>", "<BEGIN>\n## `_parse`", "Given a type and a list, parse it u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume API. 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 consume API. 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...
Converts the lexer tokens into valid statements. This process also checks command syntax.
"Converts the lexer tokens into valid statements. This process\n also checks command syntax."
84
false
TorkamaniLab/metapipe
consume
26,398
LDU_FT/OTA-Insight/djangosaml2idp/get_user_id
LDU_FT
[ "<BEGIN>\n## `get_user_id`", "Get identifier for a user. Take the one defined in settings.SAML_IDP_DJANGO_USERNAME_FIELD first, if not set\n use the USERNAME_FIELD property which is set on the user Model. This defaults to the user.username field.\n<END>", "<BEGIN>\n## `create_identity`", "Generate ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Get identifier for a user. Take the one defined in settings.SAML_IDP_DJANGO_USERNAME_FIELD first, if not set use the USERNAME_FIELD property which is set on the user Model. This defaults to the user.username field.
"Get identifier for a user. Take the one defined in settings.SAML_IDP_DJANGO_USERNAME_FIELD first, if not set\n use the USERNAME_FIELD property which is set on the user Model. This defaults to the user.username field."
16
false
OTA-Insight/djangosaml2idp
get_user_id
26,399
LDU_FT/lucasb-eyer/pydensecrf/create_pairwise_bilateral
LDU_FT
[ "<BEGIN>\n## `unary_from_labels`", "Simple classifier that is 50% certain that the annotation is correct.\n (same as in the inference example).", " Parameters\n ----------\n labels: numpy.array\n The label-map, i.e. an array of your data's shape where each unique\n value corresponds to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_pairwise_bilateral API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_pairwise_bilateral API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Util function that create pairwise bilateral potentials. This works for all image dimensions. For the 2D case does the same as `DenseCRF2D.addPairwiseBilateral`. Parameters ---------- sdims: list or tuple The scaling factors per dimension. This is referred to `sxy` in `DenseCRF2D.ad...
"Util function that create pairwise bilateral potentials. This works for\n all image dimensions. For the 2D case does the same as\n `DenseCRF2D.addPairwiseBilateral`.\n\n Parameters\n ----------\n sdims: list or tuple\n The scaling factors per dimension. This is referred to `sxy` in\n `Dens...
18
false
lucasb-eyer/pydensecrf
create_pairwise_bilateral
26,400
LDU_FT/GibbsConsulting/django-plotly-dash/locate_endpoint_function
LDU_FT
[ "<BEGIN>\n## `find_stateless_by_name`", "Find stateless app given its name", " First search the Django ORM, and if not found then look the app up in a local registry.\n If the app does not have an ORM entry then a StatelessApp model instance is created.\n<END>", "<BEGIN>\n## `as_dash_app`", "Return a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the locate_endpoint_function 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 locate_endpoint_function API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Locate endpoint function given name of view
"Locate endpoint function given name of view"
96
false
GibbsConsulting/django-plotly-dash
locate_endpoint_function
26,401
LDU_FT/hfaran/piazza-api/request
LDU_FT
[ "<BEGIN>\n## `user_login`", "Login with email, password and get back a session cookie", " :type email: str\n :param email: The email used for authentication\n :type password: str\n :param password: The password used for authentication\n<END>", "<BEGIN>\n## `demo_login`", "Authe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Get data from arbitrary Piazza API endpoint `method` in network `nid` :type method: str :param method: An internal Piazza API method name like `content.get` or `network.get_users` :type data: dict :param data: Key-value data to pass to Piazza in the request :type ...
"Get data from arbitrary Piazza API endpoint `method` in network `nid`\n\n :type method: str\n :param method: An internal Piazza API method name like `content.get`\n or `network.get_users`\n :type data: dict\n :param data: Key-value data to pass to Piazza in the request\n ...
100
false
hfaran/piazza-api
request
26,402
LDU_FT/Equitable/trump/add_feed
LDU_FT
[ "<BEGIN>\n## `create`", "Create, or get if exists, a Symbol.\r", " Parameters\r\n ----------\r\n name : str\r\n A symbol's name is a primary key, used across\r\n the Trump ORM.\r\n description : str, optional\r\n An arbitrary string, used to store use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_feed API. 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_feed API. 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 feed to the Symbol Parameters ---------- feedlike : Feed or bFeed-like The feed template, or Feed object to be added. kwargs Munging instructions
"Add a feed to the Symbol\r\n \r\n Parameters\r\n ----------\r\n feedlike : Feed or bFeed-like\r\n The feed template, or Feed object to be added.\r\n kwargs\r\n Munging instructions"
177
false
Equitable/trump
add_feed
26,403
LDU_FT/mojaie/chorus/chunk_fill
LDU_FT
[ "<BEGIN>\n## `draw`", "Draw molecule structure image.", " Args:\n canvas: draw.drawable.Drawable\n mol: model.graphmol.Compound\n<END>", "<BEGIN>\n## `smiles_to_compound`", "Convert SMILES text to compound object", " Raises:\n ValueError: SMILES with unsupported format\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunk_fill API. 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 chunk_fill API. 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...
chunk_fill('ABCDEFG', 3, 'x') --> ABC DEF Gxx
"chunk_fill('ABCDEFG', 3, 'x') --> ABC DEF Gxx"
158
false
mojaie/chorus
chunk_fill
26,404
LDU_FT/bigchaindb/bigchaindb-driver/transfer
LDU_FT
[ "<BEGIN>\n## `info`", "Retrieves information of the node being connected to via the\n root endpoint ``'/'``.", " Args:\n headers (dict): Optional headers to pass to the request.", " Returns:\n dict: Details of the node that this instance is connected\n to....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transfer API. 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 transfer API. 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 way to generate a `TRANSFER` transaction. Note: Different cases for threshold conditions: Combining multiple `inputs` with an arbitrary number of `recipients` can yield interesting cases for the creation of threshold conditions we'd ...
"A simple way to generate a `TRANSFER` transaction.\n\n Note:\n Different cases for threshold conditions:\n\n Combining multiple `inputs` with an arbitrary number of\n `recipients` can yield interesting cases for the creation of\n threshold conditio...
169
false
bigchaindb/bigchaindb-driver
transfer
26,405
LDU_FT/perrygeo/pyimpute/impute
LDU_FT
[ "<BEGIN>\n## `load_training_vector`", "Parameters\n ----------\n response_shapes : Source of vector features for raster_stats;\n can be OGR file path or iterable of geojson-like features\n response_field : Field name containing the known response category (must be numeric)\n expla...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the impute API. 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 impute API. 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 ...
Parameters ---------- target_xs: Array of explanatory variables for which to predict responses clf: instance of a scikit-learn Classifier raster_info: dictionary of raster attributes with key 'gt', 'shape' and 'srs' Options ------- outdir : output directory linechunk : number of lines t...
"Parameters\n ----------\n target_xs: Array of explanatory variables for which to predict responses\n clf: instance of a scikit-learn Classifier\n raster_info: dictionary of raster attributes with key 'gt', 'shape' and 'srs'\n\n Options\n -------\n outdir : output directory\n linechunk : number ...
17
false
perrygeo/pyimpute
impute
26,406
LDU_FT/proversity-org/bibblio-api-python/metadata
LDU_FT
[ "<BEGIN>\n## `create_content_item`", "Name: create_content_item\n\tParameters: access_token, payload (dict)\n\tReturn: dictionary\n<END>", "<BEGIN>\n## `get_content_items`", "Name: get_content_items\n\tParameters: access_token, limit (optional), page (optional)\n\tReturn: dictionary\n<END>", "<BEGIN>\n## `g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metadata API. 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 metadata API. 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...
Name: metadata_only Parameters: access_token, text (string) Return: dictionary
"Name: metadata_only\n\tParameters: access_token, text (string)\n\tReturn: dictionary"
18
false
proversity-org/bibblio-api-python
metadata
26,407
LDU_FT/openSUSE/py2pack/_requirement_filter_by_marker
LDU_FT
[ "<BEGIN>\n## `_get_template_dirs`", "existing directories where to search for jinja2 templates. The order\n is important. The first found template from the first found dir wins!\n<END>", "<BEGIN>\n## `_license_from_classifiers`", "try to get a license from the classifiers\n<END>", "<BEGIN>\n## `_requirem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _requirement_filter_by_marker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _requirement_filter_by_marker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Check if the requirement is satisfied by the marker. This function checks for a given Requirement whether its environment marker is satisfied on the current platform. Currently only the python version and system platform are checked.
"Check if the requirement is satisfied by the marker.\n\n This function checks for a given Requirement whether its environment marker\n is satisfied on the current platform. Currently only the python version and\n system platform are checked."
21
false
openSUSE/py2pack
_requirement_filter_by_marker
26,408
LDU_FT/OCA/odoorpc/get_encodings
LDU_FT
[ "<BEGIN>\n## `commit`", "Commit dirty records to the server. This method is automatically\n called when the `auto_commit` option is set to `True` (default).\n It can be useful to set the former option to `False` to get better\n performance by reducing the number of RPC requests generated.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_encodings API. 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_encodings API. 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...
Used to try different encoding. Function copied from Odoo 11.0 (odoo.loglevels.get_encodings). This piece of code is licensed under the LGPL-v3 and so it is compatible with the LGPL-v3 license of OdooRPC:: - https://github.com/odoo/odoo/blob/11.0/LICENSE - https://github.com/odoo/odoo/blob/...
"Used to try different encoding.\n Function copied from Odoo 11.0 (odoo.loglevels.get_encodings).\n This piece of code is licensed under the LGPL-v3 and so it is compatible\n with the LGPL-v3 license of OdooRPC::\n\n - https://github.com/odoo/odoo/blob/11.0/LICENSE\n - https://github.com/odoo/odo...
264
false
OCA/odoorpc
get_encodings
26,409
LDU_FT/googlemaps/google-maps-services-python/geocode
LDU_FT
[ "<BEGIN>\n## `directions`", "Get directions between an origin point and a destination point.", " :param origin: The address or latitude/longitude value from which you wish\n to calculate directions.\n :type origin: string, dict, list, or tuple", " :param destination: The address or latitude/lo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the geocode API. 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 geocode API. 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...
Geocoding is the process of converting addresses (like ``"1600 Amphitheatre Parkway, Mountain View, CA"``) into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers or position the map. :param address: The address to geocode. :type address: ...
"Geocoding is the process of converting addresses\n (like ``\"1600 Amphitheatre Parkway, Mountain View, CA\"``) into geographic\n coordinates (like latitude 37.423021 and longitude -122.083739), which you\n can use to place markers or position the map.\n\n :param address: The address to geocode.\n :type ...
262
false
googlemaps/google-maps-services-python
geocode
26,410
LDU_FT/dmcc/PyStanfordDependencies/_raise_on_bad_jar_filename
LDU_FT
[ "<BEGIN>\n## `convert_trees`", "Convert a list of Penn Treebank formatted strings (ptb_trees)\n into Stanford Dependencies. The dependencies are represented\n as a list of sentences (CoNLL.Corpus), where each sentence\n (CoNLL.Sentence) is itself a list of CoNLL.Token objects.", " Cu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _raise_on_bad_jar_filename 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 _raise_on_bad_jar_filename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Ensure that jar_filename is a valid path to a jar file.
"Ensure that jar_filename is a valid path to a jar file."
56
false
dmcc/PyStanfordDependencies
_raise_on_bad_jar_filename
26,411
LDU_FT/pebble/libpebble2/_handle_watch_message
LDU_FT
[ "<BEGIN>\n## `send_notification`", "Sends a notification. Blocks as long as necessary.", " :param subject: The subject.\n :type subject: str\n :param message: The message.\n :type message: str\n :param sender: The sender.\n :type sender: str\n :param source: The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_watch_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_watch_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Processes a binary message received from the watch and broadcasts the relevant events. :param message: A raw message from the watch, without any transport framing. :type message: bytes
"Processes a binary message received from the watch and broadcasts the relevant events.\n\n :param message: A raw message from the watch, without any transport framing.\n :type message: bytes"
121
false
pebble/libpebble2
_handle_watch_message
26,412
LDU_FT/jobovy/galpy/SkyCoord
LDU_FT
[ "<BEGIN>\n## `_evaluate`", "NAME:\n _evaluate\n PURPOSE:\n evaluate the potential at (R,z)\n INPUT:\n R - Cylindrical Galactocentric radius\n z - vertical height\n phi - azimuth\n t - time\n OUTPUT:\n potential at (R,z)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SkyCoord API. 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 SkyCoord API. 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...
NAME: SkyCoord PURPOSE: return the position as an astropy SkyCoord INPUT: t - (optional) time at which to get the position obs=[X,Y,Z] - (optional) position of observer (in kpc) (default=Object-wide default) O...
"NAME:\n SkyCoord\n PURPOSE:\n return the position as an astropy SkyCoord\n INPUT:\n t - (optional) time at which to get the position\n obs=[X,Y,Z] - (optional) position of observer (in kpc) \n (default=Object-wide default)\n ...
5,004
true
jobovy/galpy
SkyCoord
26,413
LDU_FT/fhcrc/seqmagick/cut_sequences_relative
LDU_FT
[ "<BEGIN>\n## `action`", "Run mogrify. Most of the action is in convert, this just creates a temp\n file for the output.\n<END>", "<BEGIN>\n## `all_unambiguous`", "All unambiguous versions of sequence_str\n<END>", "<BEGIN>\n## `moving_average`", "From Python collections module documentation", " mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cut_sequences_relative 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 cut_sequences_relative API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Cuts records to slices, indexed by non-gap positions in record_id
"Cuts records to slices, indexed by non-gap positions in record_id"
150
false
fhcrc/seqmagick
cut_sequences_relative
26,414
LDU_FT/ldo/dbussy/unparse_signature
LDU_FT
[ "<BEGIN>\n## `data_key`", "returns a unique value that allows data to be used as a dict/set key.\n<END>", "<BEGIN>\n## `get_version`", "returns the libdbus library version as a tuple of integers (major, minor, micro).\n<END>", "<BEGIN>\n## `matches_rule`", "does Message message match against the specified...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unparse_signature API. 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 unparse_signature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
converts a signature from parsed form to string form.
"converts a signature from parsed form to string form."
74
false
ldo/dbussy
unparse_signature
26,415
LDU_FT/LuqueDaniel/pybooru/dmail_list
LDU_FT
[ "<BEGIN>\n## `post_update`", "Update a specific post (Requires login).", " Parameters:\n post_id (int): The id number of the post to update.\n tag_string (str): A space delimited list of tags.\n rating (str): The rating for the post. Can be: safe, questionable,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dmail_list API. 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 dmail_list API. 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...
Return list of Dmails. You can only view dmails you own (Requires login). Parameters: message_matches (str): The message body contains the given terms. to_name (str): The recipient's name. to_id (int): The recipient's user id. from_name (str): The sender'...
"Return list of Dmails. You can only view dmails you own\n (Requires login).\n\n Parameters:\n message_matches (str): The message body contains the given terms.\n to_name (str): The recipient's name.\n to_id (int): The recipient's user id.\n from_name (str): The...
299
false
LuqueDaniel/pybooru
dmail_list
26,416
LDU_FT/jtpaasch/simplygithub/create_blob
LDU_FT
[ "<BEGIN>\n## `get_url`", "Get the URL for a resource.", " Args:", " profile\n A profile generated from ``simplygithub.authentication.profile``.\n Such profiles tell this module (i) the ``repo`` to connect to,\n and (ii) the ``token`` to connect with.", " res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_blob API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_blob API. 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 blob. Args: profile A profile generated from ``simplygithub.authentication.profile``. Such profiles tell this module (i) the ``repo`` to connect to, and (ii) the ``token`` to connect with. content The (UTF-8 encoded) content to create in th...
"Create a blob.\n\n Args:\n\n profile\n A profile generated from ``simplygithub.authentication.profile``.\n Such profiles tell this module (i) the ``repo`` to connect to,\n and (ii) the ``token`` to connect with.\n\n content\n The (UTF-8 encoded) content to c...
224
false
jtpaasch/simplygithub
create_blob
26,417
LDU_FT/langloisjp/tstore/sqldelete
LDU_FT
[ "<BEGIN>\n## `get`", "Return record of given type with key `rid`", " >>> s = teststore()\n >>> s.create('tstoretest', {'id': '1', 'name': 'Toto'})\n >>> r = s.get('tstoretest', '1')\n >>> r['name']\n 'Toto'\n >>> s.get('badcls', '1')\n Traceback (most recent call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sqldelete API. 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 sqldelete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Generates SQL delete from ... where ... >>> sqldelete('t', {'id': 5}) ('delete from t where id=%s', [5])
"Generates SQL delete from ... where ...\n\n >>> sqldelete('t', {'id': 5})\n ('delete from t where id=%s', [5])"
61
false
langloisjp/tstore
sqldelete
26,418
LDU_FT/twosigma/marbles/assertFileEncodingEqual
LDU_FT
[ "<BEGIN>\n## `get_stack_info`", "Capture locals, module name, filename, and line number from the\n stacktrace to provide the source of the assertion error and\n formatted note.\n<END>", "<BEGIN>\n## `assertBetween`", "Fail if ``obj`` is not between ``lower`` and ``upper``.", " If ``strict=True`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assertFileEncodingEqual 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 assertFileEncodingEqual API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Fail if ``filename`` is not encoded with the given ``encoding`` as determined by the '==' operator. Parameters ---------- filename : str, bytes, file-like encoding : str, bytes msg : str If not provided, the :mod:`marbles.mixins` or :mod:`unittest...
"Fail if ``filename`` is not encoded with the given\n ``encoding`` as determined by the '==' operator.\n\n Parameters\n ----------\n filename : str, bytes, file-like\n encoding : str, bytes\n msg : str\n If not provided, the :mod:`marbles.mixins` or\n :mod...
199
false
twosigma/marbles
assertFileEncodingEqual
26,419
LDU_FT/rorr73/LifeSOSpy/to_ascii_hex
LDU_FT
[ "<BEGIN>\n## `has_value`", "True if specified value exists in int enum; otherwise, False.\n<END>", "<BEGIN>\n## `parse_name`", "Parse specified name for IntEnum; return default if not found.\n<END>", "<BEGIN>\n## `parse_value`", "Parse specified value for IntEnum; return default if not found.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_ascii_hex API. 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 to_ascii_hex API. 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...
Converts an int value to ASCII hex, as used by LifeSOS. Unlike regular hex, it uses the first 6 characters that follow numerics on the ASCII table instead of A - F.
"Converts an int value to ASCII hex, as used by LifeSOS.\n Unlike regular hex, it uses the first 6 characters that follow\n numerics on the ASCII table instead of A - F."
84
false
rorr73/LifeSOSpy
to_ascii_hex
26,420
LDU_FT/xoolive/traffic/compute_xy
LDU_FT
[ "<BEGIN>\n## `closest_point_of_approach`", "Computes a CPA dataframe for all pairs of trajectories candidates for\n being separated by less than lateral_separation in vertical_separation.", " In order to be computed efficiently, the method needs the following\n parameters:", " - projection: a firs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_xy API. 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 compute_xy API. 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...
Computes x and y columns from latitudes and longitudes. The source projection is WGS84 (EPSG 4326). The default destination projection is a Lambert Conformal Conical projection centered on the data inside the dataframe. For consistency reasons with pandas DataFrame, a new Traffic struc...
"Computes x and y columns from latitudes and longitudes.\n\n The source projection is WGS84 (EPSG 4326).\n The default destination projection is a Lambert Conformal Conical\n projection centered on the data inside the dataframe.\n\n For consistency reasons with pandas DataFrame, a new Traffi...
147
false
xoolive/traffic
compute_xy
26,421
LDU_FT/securestate/termineter/run_procedure
LDU_FT
[ "<BEGIN>\n## `format_ltime`", "Return data formatted into a human readable time stamp.", "\t:param str endianess: The endianess to use when packing values ('>' or '<')\n\t:param int tm_format: The format that the data is packed in, this typically\n\t corresponds with the value in the GEN_CONFIG_TBL (table #0) ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_procedure API. 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 run_procedure API. 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...
Initiate a C1219 procedure, the request is written to table 7 and the response is read from table 8. :param int process_number: The numeric procedure identifier (0 <= process_number <= 2047). :param bool std_vs_mfg: Whether the procedure is manufacturer specified or not. True is manufacturer specified. :pa...
"Initiate a C1219 procedure, the request is written to table 7 and\n\t\tthe response is read from table 8.\n\n\t\t:param int process_number: The numeric procedure identifier (0 <= process_number <= 2047).\n\t\t:param bool std_vs_mfg: Whether the procedure is manufacturer specified\n\t\t or not. True is manufacturer sp...
68
false
securestate/termineter
run_procedure
26,422
LDU_FT/PredixDev/predixpy/create_space
LDU_FT
[ "<BEGIN>\n## `create`", "Create an instance of the US Weather Forecast Service with\n typical starting settings.\n<END>", "<BEGIN>\n## `add_to_manifest`", "Add useful details to the manifest about this service\n so that it can be used in an application.", " :param manifest: An predix.ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_space API. 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 create_space API. 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...
Create a new space with the given name in the current target organization.
"Create a new space with the given name in the current target\n organization."
501
false
PredixDev/predixpy
create_space
26,423
LDU_FT/sloria/textblob-aptagger/_normalize
LDU_FT
[ "<BEGIN>\n## `train`", "Train a model from sentences, and save it at ``save_loc``. ``nr_iter``\n controls the number of Perceptron training iterations.", " :param sentences: A list of (words, tags) tuples.\n :param save_loc: If not ``None``, saves a pickled model in this location.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _normalize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _normalize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Normalization used in pre-processing. - All words are lower cased - Digits in the range 1800-2100 are represented as !YEAR; - Other digits are represented as !DIGITS :rtype: str
"Normalization used in pre-processing.\n\n - All words are lower cased\n - Digits in the range 1800-2100 are represented as !YEAR;\n - Other digits are represented as !DIGITS\n\n :rtype: str"
13
false
sloria/textblob-aptagger
_normalize
26,424
LDU_FT/KnightConan/sspdatatables/get_query_dict
LDU_FT
[ "<BEGIN>\n## `get_table_frame`", "render the structure (or structure_for_superuser) and an instance of the\n footer form", " :param prefix: str: used for unifying the rendered parameter's name,\n such\n that the template of serverside datatables can be used in one page\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_query_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_query_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
function to generate a filter dictionary, in which the key is the keyword used in django filter function in string form, and the value is the searched value. :param kwargs:dict: query dict sent by data tables package :return: dict: filtering dictionary
"function to generate a filter dictionary, in which the key is the\n keyword used in django filter function in string form, and the value is\n the searched value.\n\n :param kwargs:dict: query dict sent by data tables package\n :return: dict: filtering dictionary"
42
false
KnightConan/sspdatatables
get_query_dict
26,425
LDU_FT/angr/angr/_apply_concretization_strategies
LDU_FT
[ "<BEGIN>\n## `_alias_analysis`", "Perform a forward execution and perform alias analysis. Note that this analysis is fast, light-weight, and by no\n means complete. For instance, most arithmetic operations are not supported.", " - Depending on user settings, stack pointer and stack base pointer wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_concretization_strategies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_concretization_strategies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Applies concretization strategies on the address until one of them succeeds.
"Applies concretization strategies on the address until one of them succeeds."
2,448
true
angr/angr
_apply_concretization_strategies
26,426
LDU_FT/martinkosir/neverbounce-python/check_job
LDU_FT
[ "<BEGIN>\n## `verify`", "Verify a single email address.\n :param str email: Email address to verify.\n :return: A VerifiedEmail object.\n<END>", "<BEGIN>\n## `create_job`", "Create a new bulk verification job for the list of emails.\n :param list emails: Email addresses to verify.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_job API. 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 check_job API. 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...
Check the status of a bulk verification job. :param int job_id: ID of a job to check the status of. :return: A JobStatus object.
"Check the status of a bulk verification job.\n :param int job_id: ID of a job to check the status of.\n :return: A JobStatus object."
22
false
martinkosir/neverbounce-python
check_job
26,427
LDU_FT/OnroerendErfgoed/oe_utils/parse_filter_params
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 parse_filter_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_filter_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Parse query_params to a filter params dict. Merge multiple values for one key to a list. Filter out keys that aren't filterable. :param query_params: query params :param filterable: list of filterable keys :return: dict of filter values
"Parse query_params to a filter params dict. Merge multiple values for one key to a list.\n Filter out keys that aren't filterable.\n\n :param query_params: query params\n :param filterable: list of filterable keys\n :return: dict of filter values"
100
false
OnroerendErfgoed/oe_utils
parse_filter_params
26,428
LDU_FT/keans/lmnotify/set_volume
LDU_FT
[ "<BEGIN>\n## `_exec`", "execute a command at the device using the RESTful API", " :param str cmd: one of the REST commands, e.g. GET or POST\n :param str url: URL of the REST API the command should be applied to\n :param dict json_data: json data that should be attached to the command\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_volume API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_volume API. 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...
allows to change the volume :param int volume: volume to be set for the current device [0..100] (default: 50)
"allows to change the volume\n\n :param int volume: volume to be set for the current device\n [0..100] (default: 50)"
69
false
keans/lmnotify
set_volume
26,429
LDU_FT/riggsd/davies/length
LDU_FT
[ "<BEGIN>\n## `lint`", "Run verbose PyLint on source. Optionally specify fmt=html for HTML output.\n<END>", "<BEGIN>\n## `azm`", "Corrected azimuth, taking into account backsight, declination, and compass corrections.\n<END>", "<BEGIN>\n## `inc`", "Corrected inclination, taking into account backsight and c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the length API. 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 length API. 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 ...
Total surveyed cave length, not including splays.
"Total surveyed cave length, not including splays."
60
false
riggsd/davies
length
26,430
LDU_FT/pdkit/pdkit/separate_into_sections
LDU_FT
[ "<BEGIN>\n## `load`", "This is a general load data method where the format of data to load can be passed as a parameter,", " :param str filename: The path to load data from\n :param str format_file: format of the file. Default is CloudUPDRS. Set to mpower for mpower data.\n :ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the separate_into_sections 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 separate_into_sections API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Helper function to separate a time series into multiple sections based on a labeled column. :param data_frame: The data frame. It should have x, y, and z columns. :type data_frame: pandas.DataFrame :param labels_col: The column which has the labels we would like to separate ...
"Helper function to separate a time series into multiple sections based on a labeled column.\n \n :param data_frame: The data frame. It should have x, y, and z columns.\n :type data_frame: pandas.DataFrame\n :param labels_col: The column which has the labels we would like to sepa...
344
false
pdkit/pdkit
separate_into_sections
26,431
LDU_FT/src-d/lookout-sdk/add_log_fields
LDU_FT
[ "<BEGIN>\n## `create_channel`", "Creates a gRPC channel", " The gRPC channel is created with the provided options and intercepts each\n invocation via the provided interceptors.", " The created channel is configured with the following default options:\n - \"grpc.max_send_message_length\": 100M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_log_fields API. 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 add_log_fields API. 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...
Add the provided log fields If a key is already present, then it is ignored. :param fields: the log fields to add
"Add the provided log fields\n\n If a key is already present, then it is ignored.\n\n :param fields: the log fields to add"
40
false
src-d/lookout-sdk
add_log_fields
26,432
LDU_FT/jaraco/jaraco.windows/_is_target_a_directory
LDU_FT
[ "<BEGIN>\n## `CryptUnprotectData`", "Returns a tuple of (description, data) where description is the\n\tthe description that was passed to the CryptProtectData call and\n\tdata is the decrypted result.\n<END>", "<BEGIN>\n## `set_data`", "Use this method to set the data for this blob\n<END>", "<BEGIN>\n## `m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_target_a_directory 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_target_a_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
If creating a symlink from link to a target, determine if target is a directory (relative to dirname(link)).
"If creating a symlink from link to a target, determine if target\n\tis a directory (relative to dirname(link))."
119
false
jaraco/jaraco.windows
_is_target_a_directory
26,433
LDU_FT/mkaz/termgraph/print_categories
LDU_FT
[ "<BEGIN>\n## `find_max_label_length`", "Return the maximum length for the labels.\n<END>", "<BEGIN>\n## `horiz_rows`", "Prepare the horizontal graph.\n Each row is printed through the print_row function.\n<END>", "<BEGIN>\n## `print_row`", "A method to print a row for a horizontal graphs.", " i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_categories API. 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 print_categories API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Print a tick and the category's name for each category above the graph.
"Print a tick and the category's name for each category above\n the graph."
21
false
mkaz/termgraph
print_categories
26,434
LDU_FT/tBaxter/tango-comments/post_save_moderation
LDU_FT
[ "<BEGIN>\n## `next_redirect`", "Handle the \"where should I go next?\" part of comment views.", " The next value could be a\n ``?next=...`` GET arg or the URL of a given view (``fallback``). See\n the view modules for examples.", " Returns an ``HttpResponseRedirect``.\n<END>", "<BEGIN>\n## `conf...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_save_moderation 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 post_save_moderation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Apply any necessary post-save moderation steps to new comments.
"Apply any necessary post-save moderation steps to new\n comments."
66
false
tBaxter/tango-comments
post_save_moderation
26,435
LDU_FT/pybel/pybel/raise_for_missing_default
LDU_FT
[ "<BEGIN>\n## `postpend_location`", "Rip off the closing parentheses and adds canonicalized modification.", " I did this because writing a whole new parsing model for the data would be sad and difficult", " :param bel_string: BEL string representing node\n :param dict location_model: A dictionary cont...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raise_for_missing_default API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raise_for_missing_default API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Raise an exeception if the name does not belong to the default namespace.
"Raise an exeception if the name does not belong to the default namespace."
1,164
true
pybel/pybel
raise_for_missing_default
26,436
LDU_FT/pyvisa/pyvisa/write_from_file
LDU_FT
[ "<BEGIN>\n## `pass_control`", "Tell the GPIB device at the specified address to become controller in charge (CIC).", " Corresponds to viGpibPassControl function of the VISA library.", " :param primary_address: Primary address of the GPIB device to which you want to pass control.\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Take data from a file and write it out synchronously. Corresponds to viWriteFromFile function of the VISA library. :param library: the visa library wrapped by ctypes. :param session: Unique logical identifier to a session. :param filename: Name of file from which data will be read. :param count: N...
"Take data from a file and write it out synchronously.\n\n Corresponds to viWriteFromFile function of the VISA library.\n\n :param library: the visa library wrapped by ctypes.\n :param session: Unique logical identifier to a session.\n :param filename: Name of file from which data will be read.\n :param ...
529
false
pyvisa/pyvisa
write_from_file
26,437
LDU_FT/Julius2342/pyvlx/handle_frame
LDU_FT
[ "<BEGIN>\n## `add`", "Add Node, replace existing node if node with node_id is present.\n<END>", "<BEGIN>\n## `load`", "Load nodes from KLF 200, if no node_id is specified all nodes are loaded.\n<END>", "<BEGIN>\n## `handle_frame`", "Handle incoming API frame, return True if this was the expected frame.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Handle incoming API frame, return True if this was the expected frame.
"Handle incoming API frame, return True if this was the expected frame."
74
false
Julius2342/pyvlx
handle_frame
26,438
LDU_FT/jeffbuttars/upkg/_fmt_tdelta
LDU_FT
[ "<BEGIN>\n## `exec`", "todo: Docstring for exec", " :param args: arg description\n :type args: type description\n :return:\n :rtype:\n<END>", "<BEGIN>\n## `exec`", "todo: Docstring for exec", " :param args: arg description\n :type args: type description\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fmt_tdelta API. 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 _fmt_tdelta API. 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...
todo: Docstring for _fmt_tdelta :param td: arg description :type td: type description :return: :rtype:
"todo: Docstring for _fmt_tdelta\n\n :param td: arg description\n :type td: type description\n :return:\n :rtype:"
76
false
jeffbuttars/upkg
_fmt_tdelta
26,439
LDU_FT/tanghaibao/jcvi/mitosomatic
LDU_FT
[ "<BEGIN>\n## `patience_sort`", "Patience sort an iterable, xs.", " This function generates a series of pairs (x, pile), where \"pile\"\n is the 0-based index of the pile \"x\" should be placed on top of.\n Elements of \"xs\" must be less-than comparable.\n<END>", "<BEGIN>\n## `longest_monotonic_subse...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mitosomatic API. 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 mitosomatic API. 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...
%prog mitosomatic t.piledriver Find mito mosaic somatic mutations in piledriver results.
"%prog mitosomatic t.piledriver\n\n Find mito mosaic somatic mutations in piledriver results."
3,304
true
tanghaibao/jcvi
mitosomatic
26,440
LDU_FT/mozilla/mozilla-django-oidc/get
LDU_FT
[ "<BEGIN>\n## `get_next_url`", "Retrieves next url from request", " Note: This verifies that the url is safe before returning it. If the url\n is not safe, this returns None.", " :arg HttpRequest request: the http request\n :arg str redirect_field_name: the name of the field holding the next url", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
OIDC client authentication initialization HTTP endpoint
"OIDC client authentication initialization HTTP endpoint"
49
false
mozilla/mozilla-django-oidc
get
26,441
LDU_FT/viralogic/py-enumerable/group_by
LDU_FT
[ "<BEGIN>\n## `select`", "Transforms data into different form\n :param func: lambda expression on how to perform transformation\n :return: new Enumerable object containing transformed data\n<END>", "<BEGIN>\n## `min`", "Returns the min value of data elements\n :param func: lambda expressio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_by API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_by API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Groups an enumerable on given key selector. Index of key name corresponds to index of key lambda function. Usage: Enumerable([1,2,3]).group_by(key_names=['id'], key=lambda x: x) _ .to_list() --> Enumerable object [ Grouping object { ...
"Groups an enumerable on given key selector. Index of key name\n corresponds to index of key lambda function.\n\n Usage:\n Enumerable([1,2,3]).group_by(key_names=['id'], key=lambda x: x) _\n .to_list() -->\n Enumerable object [\n Grouping object ...
65
false
viralogic/py-enumerable
group_by
26,442
LDU_FT/SecurityInnovation/PGPy/hashprefs
LDU_FT
[ "<BEGIN>\n## `decrypt_sk`", "The value \"m\" in the above formulas is derived from the session key\n as follows. First, the session key is prefixed with a one-octet\n algorithm identifier that specifies the symmetric encryption\n algorithm used to encrypt the following Symmetrically Encrypte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hashprefs API. 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 hashprefs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
A ``list`` of preferred hash algorithms specified in this signature, if any. Otherwise, an empty ``list``.
"A ``list`` of preferred hash algorithms specified in this signature, if any. Otherwise, an empty ``list``."
197
false
SecurityInnovation/PGPy
hashprefs
26,443
LDU_FT/quantum5/2048/has_free_moves
LDU_FT
[ "<BEGIN>\n## `got_score`", "Update the best score if the new score is higher, returning the change.\n<END>", "<BEGIN>\n## `get_position`", "Given dt in [0, 1], return the current position of the tile.\n<END>", "<BEGIN>\n## `_make_tile`", "Renders a tile, according to its value, and background and foregrou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_free_moves API. 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 has_free_moves API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns whether a move is possible, when there are no free cells.
"Returns whether a move is possible, when there are no free cells."
26
false
quantum5/2048
has_free_moves
26,444
LDU_FT/cni/MRS/tri_cube
LDU_FT
[ "<BEGIN>\n## `fetch_data`", "Downloads files to folder and checks their md5 checksums", " Parameters\n ----------\n files : dictionary\n For each file in `files` the value should be (url, md5). The file will\n be downloaded from url if the file does not already exist or if the\n fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tri_cube API. 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 tri_cube API. 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...
The tri-cube kernel estimated for xx values at indices idx (zero elsewhere) Parameters ---------- xx: float array Values of the function on which the kernel is computed. Typically, these are Euclidean distances from some point x0 (see do_kernel) idx: tuple An indexing tupl...
"The tri-cube kernel estimated for xx values at indices idx (zero\n elsewhere) \n\n Parameters\n ----------\n xx: float array\n Values of the function on which the kernel is computed. Typically,\n these are Euclidean distances from some point x0 (see do_kernel)\n\n idx: tuple\n An in...
328
false
cni/MRS
tri_cube
26,445
LDU_FT/pyparsing/pyparsing/same_type_as_argument
LDU_FT
[ "<BEGIN>\n## `parse`", "Accepts an input string containing an LA equation, e.g.,\r\n \"M3_mymatrix = M3_anothermatrix^-1\" returns C code function\r\n calls that implement the expression.\n<END>", "<BEGIN>\n## `fprocess`", "Scans an input file for LA equations between double square brackets,\r\n e.g. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the same_type_as_argument 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 same_type_as_argument API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns True if index and function's argument are of the same type index - index in symbol table function_index - function's index in symbol table argument_number - # of function's argument
"Returns True if index and function's argument are of the same type\r\n index - index in symbol table\r\n function_index - function's index in symbol table\r\n argument_number - # of function's argument"
132
false
pyparsing/pyparsing
same_type_as_argument
26,446
LDU_FT/jedie/DragonPy/offset_data
LDU_FT
[ "<BEGIN>\n## `create_environment`", "Creates a new environment in ``home_dir``.", " If ``site_packages`` is true, then the global ``site-packages/``\n directory will be on the path.", " If ``clear`` is true (default False) then the environment will\n first be cleared.\n<END>", "<BEGIN>\n## `path...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the offset_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the offset_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Offset the whole data section. see offset_byte_in_data for more information Returns: the entire data section + offset on each byte
"Offset the whole data section.\n see offset_byte_in_data for more information\n Returns: the entire data section + offset on each byte"
223
false
jedie/DragonPy
offset_data
26,447
LDU_FT/rbit/pydtls/listen
LDU_FT
[ "<BEGIN>\n## `decode_cert`", "Convert an X509 certificate into a Python dictionary", " This function converts the given X509 certificate into a Python dictionary\n in the manner established by the Python standard library's ssl module.\n<END>", "<BEGIN>\n## `_get_server_certificate`", "Retrieve a serve...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listen API. 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 listen API. 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 ...
Server-side cookie exchange This method reads datagrams from the socket and initiates cookie exchange, upon whose successful conclusion one can then proceed to the accept method. Alternatively, accept can be called directly, in which case it will call this method. In order to prevent de...
"Server-side cookie exchange\n\n This method reads datagrams from the socket and initiates cookie\n exchange, upon whose successful conclusion one can then proceed to\n the accept method. Alternatively, accept can be called directly, in\n which case it will call this method. In order to prev...
83
false
rbit/pydtls
listen
26,448
LDU_FT/rushter/heamy/blend
LDU_FT
[ "<BEGIN>\n## `concat`", "Concatenate a sequence of pandas or numpy objects into one entity.\n<END>", "<BEGIN>\n## `reshape_1d`", "If parameter is 1D row vector then convert it into 2D matrix.\n<END>", "<BEGIN>\n## `idx`", "Universal indexing for numpy and pandas objects.\n<END>", "<BEGIN>\n## `xgb_progr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blend API. 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 blend API. 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...
Blend a single model. You should rarely be using this method. Use `ModelsPipeline.blend` instead. Parameters ---------- proportion : float, default 0.2 Test size holdout. stratify : bool, default False seed : int, default 100 indices : list(np.ndarray...
"Blend a single model.\n You should rarely be using this method. Use `ModelsPipeline.blend` instead.\n\n Parameters\n ----------\n proportion : float, default 0.2\n Test size holdout.\n stratify : bool, default False\n seed : int, default 100\n indices : list(...
91
false
rushter/heamy
blend
26,449
LDU_FT/ocaballeror/LyricFetch/run_mp
LDU_FT
[ "<BEGIN>\n## `load_from_file`", "Load a list of filenames from an external text file.\n<END>", "<BEGIN>\n## `parse_argv`", "Parse command line arguments. Settings will be stored in the global\n variables declared above.\n<END>", "<BEGIN>\n## `exclude_sources`", "Returns a narrower list of sources.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_mp API. 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 run_mp API. 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 ...
Concurrently calls get_lyrics to fetch the lyrics of a large list of songs.
"Concurrently calls get_lyrics to fetch the lyrics of a large list of songs."
69
false
ocaballeror/LyricFetch
run_mp
26,450
LDU_FT/pyblish/pyblish-qml/format_text
LDU_FT
[ "<BEGIN>\n## `process`", "Given JSON objects from client, perform actual processing", " Arguments:\n plugin (dict): JSON representation of plug-in to process\n instance (dict, optional): JSON representation of Instance to\n be processed.\n action (str, opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Remove newlines, but preserve paragraphs
"Remove newlines, but preserve paragraphs"
272
false
pyblish/pyblish-qml
format_text
26,451
LDU_FT/PGower/PyCanvas/unflagging_question
LDU_FT
[ "<BEGIN>\n## `get_all_quiz_submissions`", "Get all quiz submissions.\r", " Get a list of all submissions for this quiz. Users who can view or manage\r\n grades for a course will have submissions from multiple users returned. A\r\n user who can only submit will have only their own submission...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unflagging_question 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 unflagging_question 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...
Unflagging a question. Remove the flag that you previously set on a quiz question after you've returned to it.
"Unflagging a question.\r\n\r\n Remove the flag that you previously set on a quiz question after you've\r\n returned to it."
833
false
PGower/PyCanvas
unflagging_question
26,452
LDU_FT/AgeOfLearning/coeus-unity-python-framework/assert_await_any_transforms_exist
LDU_FT
[ "<BEGIN>\n## `await_transform_exists`", "Waits for a single transform to exist based on does_exist.\n :param cli:\n :param transform_path:\n :param does_exist: Whether or not to await for exist state (True | False)\n :param timeout_seconds: How long until this returns with failure\n :return: bool\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_await_any_transforms_exist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_await_any_transforms_exist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Asserts that we successfully awaited for any transforms to exist based on does_exist. If the timeout passes or the expression is_registered != actual state, then it will fail. :param cli: :param transform_paths: :param does_exist: (True | False) the state change we are waiting for. :param timeout_se...
"Asserts that we successfully awaited for any transforms to exist based on does_exist. If the timeout passes\n or the expression is_registered != actual state, then it will fail.\n :param cli:\n :param transform_paths:\n :param does_exist: (True | False) the state change we are waiting for.\n :param time...
38
false
AgeOfLearning/coeus-unity-python-framework
assert_await_any_transforms_exist
26,453
LDU_FT/prompt-toolkit/pymux/get_window_by_index
LDU_FT
[ "<BEGIN>\n## `read_message_from_pipe`", "(coroutine)\n Read message from this pipe. Return text.\n<END>", "<BEGIN>\n## `read_message_bytes_from_pipe`", "(coroutine)\n Read message from this pipe. Return bytes.\n<END>", "<BEGIN>\n## `wait_for_event`", "Wraps a win32 event into a `Future` and wait for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_window_by_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_window_by_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Return the Window with this index or None if not found.
"Return the Window with this index or None if not found."
147
false
prompt-toolkit/pymux
get_window_by_index
26,454
LDU_FT/vberlier/nbtlib/should_expand
LDU_FT
[ "<BEGIN>\n## `load`", "Load the nbt file at the specified location.\r", " By default, the function will figure out by itself if the file is\r\n gzipped before loading it. You can pass a boolean to the `gzipped`\r\n keyword only argument to specify explicitly whether the file is\r\n compressed or not...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the should_expand API. 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 should_expand API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return whether the specified tag should be expanded.
"Return whether the specified tag should be expanded."
66
false
vberlier/nbtlib
should_expand
26,455
LDU_FT/git-afsantos/bonsai/pretty_str
LDU_FT
[ "<BEGIN>\n## `_build_for_statement`", "NOTE: this is not a complete implementation of for loop parsing.\n Turns out for loops allow a number of wacky things going on,\n such as declaring a variable in place of a condition.\n These more peculiar cases are not covered. See\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_str API. 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 pretty_str API. 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...
Return a human-readable string representation of this object. Kwargs: indent (int): The amount of spaces to use as indentation.
"Return a human-readable string representation of this object.\n\n Kwargs:\n indent (int): The amount of spaces to use as indentation."
111
false
git-afsantos/bonsai
pretty_str
26,456
LDU_FT/SUNCAT-Center/CatHub/molecules2symbols
LDU_FT
[ "<BEGIN>\n## `molecules2symbols`", "Take a list of molecules and return just a list of atomic\n symbols, possibly adding hydrogen\n<END>", "<BEGIN>\n## `construct_reference_system`", "Take a list of symbols and construct gas phase\n references system, when possible avoiding O2.\n Candidates can be re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the molecules2symbols API. 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 molecules2symbols API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Take a list of molecules and return just a list of atomic symbols, possibly adding hydrogen
"Take a list of molecules and return just a list of atomic\n symbols, possibly adding hydrogen"
178
false
SUNCAT-Center/CatHub
molecules2symbols
26,457
LDU_FT/django-parler/django-parler/_cache_translation_needs_fallback
LDU_FT
[ "<BEGIN>\n## `objectlanguage`", "Template tag to switch an object language\n Example::", " {% objectlanguage object \"en\" %}\n {{ object.title }}\n {% endobjectlanguage %}", " A TranslatedObject is not affected by the ``{% language .. %}`` tag\n as it maintains it's own state....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cache_translation_needs_fallback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cache_translation_needs_fallback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Store the fact that a translation doesn't exist, and the fallback should be used.
"Store the fact that a translation doesn't exist, and the fallback should be used."
163
false
django-parler/django-parler
_cache_translation_needs_fallback
26,458
LDU_FT/insilichem/ommprotocol/_pickle_load
LDU_FT
[ "<BEGIN>\n## `protocol`", "Run all the stages in protocol", " Parameters\n ----------\n handler : SystemHandler\n Container of initial conditions of simulation", " cfg : dict\n Imported YAML file.\n<END>", "<BEGIN>\n## `run`", "Launch MD simulation, which may consist of:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pickle_load API. 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 _pickle_load API. 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...
Loads pickled topology. Careful with Python versions though!
"Loads pickled topology. Careful with Python versions though!"
84
false
insilichem/ommprotocol
_pickle_load
26,459
LDU_FT/crytic/slither/all_state_variables_written
LDU_FT
[ "<BEGIN>\n## `_contains_incorrect_tx_origin_use`", "Check if the node reads tx.origin and doesn't read msg.sender\n Avoid the FP due to (msg.sender == tx.origin)\n Returns:\n (bool)\n<END>", "<BEGIN>\n## `detect_incorrect_erc20_interface`", "Detect incorrect ERC20 interface", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_state_variables_written API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_state_variables_written API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
list(StateVariable): List all of the state variables written
"list(StateVariable): List all of the state variables written"
341
false
crytic/slither
all_state_variables_written
26,460
LDU_FT/jic-dtool/dtool-http/cli
LDU_FT
[ "<BEGIN>\n## `publish`", "Return access URL to HTTP enabled (published) dataset.", " Exits with error code 1 if the dataset_uri is not a dataset.\n Exits with error code 2 if the dataset cannot be HTTP enabled.\n<END>", "<BEGIN>\n## `cli`", "Command line utility to HTTP enable (publish) a dataset.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Command line utility to HTTP enable (publish) a dataset.
"Command line utility to HTTP enable (publish) a dataset."
27
false
jic-dtool/dtool-http
cli
26,461
LDU_FT/sqreen/PyMiniRacer/babel_transform
LDU_FT
[ "<BEGIN>\n## `ensure_v8_src`", "Ensure that v8 src are presents and up-to-date\n<END>", "<BEGIN>\n## `is_unicode`", "Check if a value is a valid unicode string, compatible with python 2 and python 3", " >>> is_unicode(u'foo')\n True\n >>> is_unicode(u'✌')\n True\n >>> is_unicode(b'foo')\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the babel_transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the babel_transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Transform the provided string using babel.transform
"Transform the provided string using babel.transform"
15
false
sqreen/PyMiniRacer
babel_transform
26,462
LDU_FT/jgorset/facebook/permissions
LDU_FT
[ "<BEGIN>\n## `cache`", "Query or return the Graph API representation of this resource.\n<END>", "<BEGIN>\n## `work`", "A list of :class:`Employment` instances describing the user's work history.", " Each structure has attributes ``employer``, ``position``, ``started_at`` and ``ended_at``.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the permissions API. 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 permissions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
A list of strings describing permissions. See Facebook's exhaustive `Permissions Reference <http://developers.facebook.com/docs/authentication/permissions/>`_ for a list of available permissions.
"A list of strings describing permissions.\n\n See Facebook's exhaustive `Permissions Reference <http://developers.facebook.com/docs/authentication/permissions/>`_\n for a list of available permissions."
20
false
jgorset/facebook
permissions
26,463
LDU_FT/django-treebeard/django-treebeard/move
LDU_FT
[ "<BEGIN>\n## `get_foreign_keys`", "Get foreign keys and models they refer to, so we can pre-process\n the data for load_bulk\n<END>", "<BEGIN>\n## `_process_foreign_keys`", "For each foreign key try to load the actual object so load_bulk\n doesn't fail trying to load an int where django expects ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Moves the current node and all it's descendants to a new position relative to another node.
"Moves the current node and all it's descendants to a new position\n relative to another node."
194
false
django-treebeard/django-treebeard
move
26,464
LDU_FT/erkghlerngm44/malaffinity/init
LDU_FT
[ "<BEGIN>\n## `myanimelist`", "Retrieve a users' animelist scores from MAL.", " Only anime scored > 0 will be returned, and all\n PTW entries are ignored, even if they are scored.", " :param str username: MAL username\n :return: `id`, `score` pairs\n :rtype: list\n<END>", "<BEGIN>\n## `pearson...
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...
Retrieve a "base user"'s list, and store it in :attr:`._base_scores`. :param str base_user: Base users' username
"Retrieve a \"base user\"'s list, and store it in :attr:`._base_scores`.\n\n :param str base_user: Base users' username"
35
false
erkghlerngm44/malaffinity
init
26,465
LDU_FT/Seeed-Studio/wio-cli/cli
LDU_FT
[ "<BEGIN>\n## `cli`", "Delete a device.", " \\b\n DOES:\n Delete a device.\n sn: device_sn\n wio delete <device_sn>", " \\b\n EXAMPLE:\n wio delete 2885b2cab8abc5fb8e229e4a77bf5e4d\n<END>", "<BEGIN>\n## `cli`", "Displays a list of your devices.", " \\b\n DOES...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Displays a list of your devices. \b DOES: Displays a list of your devices, as well as their APIs \b USE: wio list
"Displays a list of your devices.\n\n \\b\n DOES:\n Displays a list of your devices, as well as their APIs\n\n \\b\n USE:\n wio list"
35
false
Seeed-Studio/wio-cli
cli
26,466
LDU_FT/aio-libs/aiohttp_admin/json_datetime_serial
LDU_FT
[ "<BEGIN>\n## `index_page`", "Return index page with initial state for admin\n<END>", "<BEGIN>\n## `json_datetime_serial`", "JSON serializer for objects not serializable by default json code\n<END>", "<BEGIN>\n## `validate_query_structure`", "Validate query arguments in list request.", " :param query:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_datetime_serial 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 json_datetime_serial API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
JSON serializer for objects not serializable by default json code
"JSON serializer for objects not serializable by default json code"
29
false
aio-libs/aiohttp_admin
json_datetime_serial
26,467
LDU_FT/quikmile/trellio/configure
LDU_FT
[ "<BEGIN>\n## `publish`", "publish the return value of this function as a message from this endpoint\n<END>", "<BEGIN>\n## `xsubscribe`", "Used to listen for publications from a specific endpoint of a service. If multiple instances\n subscribe to an endpoint, only one of them receives the event. And the pub...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
A convenience method for providing registry and pubsub(redis) endpoints :param host_name: Used for process name :param registry_host: IP Address for trellio-registry; default = 0.0.0.0 :param registry_port: Port for trellio-registry; default = 4500 :param pubsub_host: IP Address for pub...
"A convenience method for providing registry and pubsub(redis) endpoints\n\n :param host_name: Used for process name\n :param registry_host: IP Address for trellio-registry; default = 0.0.0.0\n :param registry_port: Port for trellio-registry; default = 4500\n :param pubsub_host: IP Address f...
47
false
quikmile/trellio
configure
26,468
LDU_FT/limpyd/redis-limpyd/scan_model_keys
LDU_FT
[ "<BEGIN>\n## `_make_command_method`", "Return a function which call _call_command for the given name.\n Used to bind redis commands to our own calls\n<END>", "<BEGIN>\n## `_call_command`", "Check if the command to be executed is a modifier, to connect the object.\n Then call _traverse_command.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_model_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_model_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Iter on all the key related to the current model, using redis SCAN command Parameters ---------- count: int, default to None (redis uses 10) Hint for redis about the number of expected result Yields ------- str All keys found by the scan, one by ...
"Iter on all the key related to the current model, using redis SCAN command\n\n Parameters\n ----------\n count: int, default to None (redis uses 10)\n Hint for redis about the number of expected result\n\n Yields\n -------\n str\n All keys found by the sc...
408
false
limpyd/redis-limpyd
scan_model_keys
26,469
LDU_FT/rodricios/eatiht/extract
LDU_FT
[ "<BEGIN>\n## `get_html_tree`", "From some file path, input stream, or URL, construct and return\r\n an HTML tree.\n<END>", "<BEGIN>\n## `get_xpath_frequencydistribution`", "Build and return a frequency distribution over xpath occurrences.\n<END>", "<BEGIN>\n## `calc_avgstrlen_pathstextnodes`", "In the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract API. 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 extract API. 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...
Wrapper function for extracting the main article from html document. A crappy flowchart/state-diagram: start: url[,xpath] -> xpaths of text-nodes -> frequency distribution -> argmax( freq. dist. ) = likely xpath leading to article's content
"Wrapper function for extracting the main article from html document.\r\n\r\n A crappy flowchart/state-diagram:\r\n start: url[,xpath] -> xpaths of text-nodes -> frequency distribution\r\n -> argmax( freq. dist. ) = likely xpath leading to article's content"
36
false
rodricios/eatiht
extract
26,470
LDU_FT/isislovecruft/python-gnupg/gen_key_input
LDU_FT
[ "<BEGIN>\n## `get_requirements`", "Extract the list of requirements from our requirements.txt.", " :rtype: 2-tuple\n :returns: Two lists, the first is a list of requirements in the form of\n pkgname==version. The second is a list of URIs or VCS checkout strings\n which specify the dependency...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_key_input API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_key_input API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Generate a batch file for input to :meth:`~gnupg.GPG.gen_key`. The GnuPG batch file key generation feature allows unattended key generation by creating a file with special syntax and then providing it to: :command:`gpg --gen-key --batch`. Batch files look like this: | Name-Real: Alice...
"Generate a batch file for input to :meth:`~gnupg.GPG.gen_key`.\n\n The GnuPG batch file key generation feature allows unattended key\n generation by creating a file with special syntax and then providing it\n to: :command:`gpg --gen-key --batch`. Batch files look like this:\n\n | Name-Real...
371
false
isislovecruft/python-gnupg
gen_key_input
26,471
LDU_FT/kieferk/dfply/coalesce
LDU_FT
[ "<BEGIN>\n## `select_if`", "Selects columns where fun(ction) is true\n Args:\n fun: a function that will be applied to columns\n<END>", "<BEGIN>\n## `drop_if`", "Drops columns where fun(ction) is true\n Args:\n fun: a function that will be applied to columns\n<END>", "<BEGIN>\n## `mean`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coalesce API. 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 coalesce API. 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...
Takes the first non-NaN value in order across the specified series, returning a new series. Mimics the coalesce function in dplyr and SQL. Args: *series: Series objects, typically represented in their symbolic form (like X.series). Example: df = pd.DataFrame({ 'a':[...
"Takes the first non-NaN value in order across the specified series,\n returning a new series. Mimics the coalesce function in dplyr and SQL.\n\n Args:\n *series: Series objects, typically represented in their symbolic form\n (like X.series).\n\n Example:\n df = pd.DataFrame({\n ...
149
false
kieferk/dfply
coalesce
26,472