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/trailofbits/protofuzz/log
LDU_FT
[ "<BEGIN>\n## `find_protoc`", "Traverse a path ($PATH by default) to find the protoc compiler\n<END>", "<BEGIN>\n## `from_string`", "Produce a Protobuf module from a string description.\r", " Return the module if successfully compiled, otherwise raise a BadProtobuf\r\n exception.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API. 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 log API. 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...
Commit an arbitrary (picklable) object to the log
"Commit an arbitrary (picklable) object to the log"
52
false
trailofbits/protofuzz
log
28,373
LDU_FT/interedition/collatex/_parse
LDU_FT
[ "<BEGIN>\n## `collate`", ":type graph: VariantGraph\n :type collation: Collation\n<END>", "<BEGIN>\n## `align`", "Every step we have 3 choices:\n 1) Move pointer witness a --> omission\n 2) Move pointer witness b --> addition\n 3) Move pointer of both witness a/b --> match\n ...
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 ...
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 ...
Parse string of comma-separated x-y/step -like ranges
"Parse string of comma-separated x-y/step -like ranges"
138
false
interedition/collatex
_parse
28,374
LDU_FT/tylucaskelley/licenser/get_defaults
LDU_FT
[ "<BEGIN>\n## `find_in_matrix_2d`", "Returns a tuple representing the index of an item in a 2D matrix.", " Arguments:\n - val (str) Value to look for\n - matrix (list) 2D matrix to search for val in", " Returns:\n - (tuple) Ordered pair representing location of val\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_defaults API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_defaults API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Reads file for configuration defaults. Arguments: - path (str) Absolute filepath (usually ~/.licenser) Returns: - (dict) Defaults for name, email, license, .txt extension
"Reads file for configuration defaults.\n\n Arguments:\n - path (str) Absolute filepath (usually ~/.licenser)\n\n Returns:\n - (dict) Defaults for name, email, license, .txt extension"
31
false
tylucaskelley/licenser
get_defaults
28,375
LDU_FT/ethan92429/onshapepy/request
LDU_FT
[ "<BEGIN>\n## `log`", "Logs a message to the console, with optional level paramater", " Args:\n - msg (str): message to send to console\n - level (int): log level; 0 for info, 1 for error (default = 0)\n<END>", "<BEGIN>\n## `parse_quantity`", "Parse an OnShape units definition\n Args:\n ...
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...
Issues a request to Onshape Args: - method (str): HTTP method - path (str): Path e.g. /api/documents/:id - query (dict, default={}): Query params in key-value pairs - headers (dict, default={}): Key-value pairs of headers - body (dict, default={}): B...
"Issues a request to Onshape\n\n Args:\n - method (str): HTTP method\n - path (str): Path e.g. /api/documents/:id\n - query (dict, default={}): Query params in key-value pairs\n - headers (dict, default={}): Key-value pairs of headers\n - body (dict, defaul...
93
false
ethan92429/onshapepy
request
28,376
LDU_FT/yamcs/yamcs-python/enable_data_link
LDU_FT
[ "<BEGIN>\n## `verification_events`", "Events related to command verification.", " :type: List[:class:`.CommandHistoryEvent`]\n<END>", "<BEGIN>\n## `events`", "All events.", " :type: List[:class:`.CommandHistoryEvent`]\n<END>", "<BEGIN>\n## `generation_time`", "The generation time as set ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_data_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_data_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Enables a data link. :param str instance: A Yamcs instance name. :param str link: The name of the data link.
"Enables a data link.\n\n :param str instance: A Yamcs instance name.\n :param str link: The name of the data link."
402
false
yamcs/yamcs-python
enable_data_link
28,377
LDU_FT/MSchnei/pyprf_feature/get_arg_parse
LDU_FT
[ "<BEGIN>\n## `pyprf`", "Main function for pRF mapping.", " Parameters\n ----------\n strCsvCnfg : str\n Absolute file path of config file.\n lgcTest : Boolean\n Whether this is a test (pytest). If yes, absolute path of pyprf libary\n will be prepended to config file paths.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_arg_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_arg_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 ext...
Parses the Command Line Arguments using argparse.
"Parses the Command Line Arguments using argparse."
266
false
MSchnei/pyprf_feature
get_arg_parse
28,378
LDU_FT/5monkeys/djedi-cms/get
LDU_FT
[ "<BEGIN>\n## `_encode_content`", "Join node uri and content as string and convert to bytes to ensure no pickling in memcached.\n<END>", "<BEGIN>\n## `_decode_content`", "Split node string to uri and content and convert back to unicode.\n<END>", "<BEGIN>\n## `render_node`", "Render node as html for templat...
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...
Load raw node source from storage. JSON Response: {uri: x, data: y}
"Load raw node source from storage.\n\n JSON Response:\n {uri: x, data: y}"
37
false
5monkeys/djedi-cms
get
28,379
LDU_FT/disqus/nydus/_route
LDU_FT
[ "<BEGIN>\n## `_route`", "The first argument is assumed to be the ``key`` for routing.\n<END>", "<BEGIN>\n## `_route`", "The first argument is assumed to be the ``key`` for routing.\n<END>", "<BEGIN>\n## `promise_method`", "A decorator which ensures that once a method has been marked as resolved\n (via ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _route API. 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 _route API. 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 ...
The first argument is assumed to be the ``key`` for routing.
"The first argument is assumed to be the ``key`` for routing."
45
false
disqus/nydus
_route
28,380
LDU_FT/XuShaohua/bcloud/parse_bdstoken
LDU_FT
[ "<BEGIN>\n## `display_files`", "重新格式化一下文件列表, 去除不需要的信息", " 这一操作主要是为了便于接下来的查找工作.\n 文件的path都被提取出来, 然后放到了一个list中.\n<END>", "<BEGIN>\n## `init_db`", "这个任务数据库只在程序开始时读入, 在程序关闭时导出.", " 因为Gtk没有像在Qt中那么方便的使用SQLite, 而必须将所有数据读入一个\n liststore中才行.\n<END>", "<BEGIN>\n## `get_task_db`", "从数...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_bdstoken API. 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 parse_bdstoken API. 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...
从页面中解析出bdstoken等信息. 这些信息都位于页面底部的<script>, 只有在授权后的页面中才出现. 这里, 为了保证兼容性, 就不再使用cssselect模块解析了. @return 返回bdstoken
"从页面中解析出bdstoken等信息.\n \n 这些信息都位于页面底部的<script>, 只有在授权后的页面中才出现.\n 这里, 为了保证兼容性, 就不再使用cssselect模块解析了.\n\n @return 返回bdstoken"
199
false
XuShaohua/bcloud
parse_bdstoken
28,381
LDU_FT/MillionIntegrals/vel/post_optimization_step
LDU_FT
[ "<BEGIN>\n## `histogram_info`", "Return extra information about histogram\n<END>", "<BEGIN>\n## `sample`", "Sample from a greedy strategy with given q-value histogram\n<END>", "<BEGIN>\n## `sample_forward_transitions`", "Sample transitions from replay buffer with _forward steps_.\n That is, instead...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_optimization_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_optimization_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....
Steps to take after optimization has been done
"Steps to take after optimization has been done"
279
false
MillionIntegrals/vel
post_optimization_step
28,382
LDU_FT/Aloomaio/python-sdk/enqueue_event
LDU_FT
[ "<BEGIN>\n## `_get_sender`", "Utility function acting as a Sender factory - ensures senders don't get\n created twice of more for the same target server\n<END>", "<BEGIN>\n## `terminate`", "Stops all the active Senders by flushing the buffers and closing the\n underlying sockets\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enqueue_event API. 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 enqueue_event API. 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...
Enqueues an event in the buffer to be sent to the Alooma server :param event: A dict representing a formatted event to be sent by the sender :param block: Whether or not we should block if the event buffer is full :return: True if the event was enqueued successfully, else F...
"Enqueues an event in the buffer to be sent to the Alooma server\n :param event: A dict representing a formatted event to be sent by the\n sender\n :param block: Whether or not we should block if the event buffer is full\n :return: True if the event was enqueued successfully, e...
27
false
Aloomaio/python-sdk
enqueue_event
28,383
LDU_FT/EasyPost/pystalk/list_tubes
LDU_FT
[ "<BEGIN>\n## `from_uri`", "Construct a synchronous Beanstalk Client from a URI.", " The URI may be of the form beanstalk://host:port or beanstalkd://host:port", " IPv6 literals must be wrapped in brackets as per RFC 2732.\n<END>", "<BEGIN>\n## `_re_establish_use_watch`", "Call after a close/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_tubes API. 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 list_tubes API. 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 list of tubes that this beanstalk instance knows about :rtype: list of tubes
"Return a list of tubes that this beanstalk instance knows about\n\n :rtype: list of tubes"
85
false
EasyPost/pystalk
list_tubes
28,384
LDU_FT/xigt/xigt/descendants
LDU_FT
[ "<BEGIN>\n## `expand`", "Expand a reference expression to individual spans.\n Also works on space-separated ID lists, although a sequence of space\n characters will be considered a delimiter.", " >>> expand('a1')\n 'a1'\n >>> expand('a1[3:5]')\n 'a1[3:5]'\n >>> expand('a1[3:5+6:7]')\n 'a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the descendants API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the descendants API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
>>> for des in query.descendants(igt.get_item('p1'), refattrs=(SEGMENTATION, ALIGNMENT)): ... print(des) (<Tier object (id: p type: phrases) at ...>, 'segmentation', <Tier object (id: w type: words) at ...>, [<Item object (id: w1) at ...>]) (<Tier object (id: p type: phrases) at ...>, 'alignment', <Tier...
">>> for des in query.descendants(igt.get_item('p1'), refattrs=(SEGMENTATION, ALIGNMENT)):\n ... print(des)\n (<Tier object (id: p type: phrases) at ...>, 'segmentation', <Tier object (id: w type: words) at ...>, [<Item object (id: w1) at ...>])\n (<Tier object (id: p type: phrases) at ...>, 'alignment', <...
19
false
xigt/xigt
descendants
28,385
LDU_FT/mattupstate/flask-security/get_hmac
LDU_FT
[ "<BEGIN>\n## `add_role_to_user`", "Adds a role to a user.", " :param user: The user to manipulate\n :param role: The role to add to the user\n<END>", "<BEGIN>\n## `remove_role_from_user`", "Removes a role from a user.", " :param user: The user to manipulate\n :param role: The r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hmac API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hmac API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns a Base64 encoded HMAC+SHA512 of the password signed with the salt specified by ``SECURITY_PASSWORD_SALT``. :param password: The password to sign
"Returns a Base64 encoded HMAC+SHA512 of the password signed with\n the salt specified by ``SECURITY_PASSWORD_SALT``.\n\n :param password: The password to sign"
145
false
mattupstate/flask-security
get_hmac
28,386
LDU_FT/OnroerendErfgoed/crabpy/check_lazy_load_perceel
LDU_FT
[ "<BEGIN>\n## `crab_gateway_request`", "Utility function that helps making requests to the CRAB service.", " This is a specialised version of :func:`crabpy.client.crab_request` that\n allows adding extra functionality for the calls made by the gateway.", " :param client: A :class:`suds.client.Client` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_lazy_load_perceel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_lazy_load_perceel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Decorator function to lazy load a :class:`Perceel`.
"Decorator function to lazy load a :class:`Perceel`."
196
false
OnroerendErfgoed/crabpy
check_lazy_load_perceel
28,387
LDU_FT/openstax/cnx-epub/make_publication_epub
LDU_FT
[ "<BEGIN>\n## `squash_xml_to_text`", "Squash the given XML element (as `elm`) to a text containing XML.\n The outer most element/tag will be removed, but inner elements will\n remain. If `remove_namespaces` is specified, XML namespace declarations\n will be removed from the text.", " :param elm: XML ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_publication_epub API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_publication_epub API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Creates an epub file from a binder(s). Also requires publication information, meant to be used in a EPUB publication request.
"Creates an epub file from a binder(s). Also requires\n publication information, meant to be used in a EPUB publication\n request."
67
false
openstax/cnx-epub
make_publication_epub
28,388
LDU_FT/fchorney/rpI2C/write_raw_byte
LDU_FT
[ "<BEGIN>\n## `write_byte`", "Writes an 8-bit byte to the specified command register\n<END>", "<BEGIN>\n## `write_word`", "Writes a 16-bit word to the specified command register\n<END>", "<BEGIN>\n## `write_raw_byte`", "Writes an 8-bit byte directly to the bus\n<END>", "<BEGIN>\n## `write_block_data`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_raw_byte API. 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 write_raw_byte API. 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...
Writes an 8-bit byte directly to the bus
"Writes an 8-bit byte directly to the bus"
16
false
fchorney/rpI2C
write_raw_byte
28,389
LDU_FT/yvesalexandre/bandicoot/positions_binning
LDU_FT
[ "<BEGIN>\n## `filter_user`", "Filter records of a User objects by interaction, part of week and day.", " Parameters\n ----------\n user : User\n a bandicoot User object\n type : str, default 'records'\n 'records' or 'recharges'\n part_of_week : {'allweek', 'weekday', 'weekend'}, def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the positions_binning API. 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 positions_binning API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Bin records by chunks of 30 minutes, returning the most prevalent position. If multiple positions have the same number of occurrences (during 30 minutes), we select the last one.
"Bin records by chunks of 30 minutes, returning the most prevalent position.\n\n If multiple positions have the same number of occurrences\n (during 30 minutes), we select the last one."
318
false
yvesalexandre/bandicoot
positions_binning
28,390
LDU_FT/GNS3/gns3-server/slot_add_nio_binding
LDU_FT
[ "<BEGIN>\n## `_asyncio_open_serial_windows`", "Open a windows named pipe", " :returns: An IO like object\n<END>", "<BEGIN>\n## `_asyncio_open_serial_unix`", "Open a unix socket or a windows named pipe", " :returns: An IO like object\n<END>", "<BEGIN>\n## `_choose_capture_side`", "Run capture on ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slot_add_nio_binding 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 slot_add_nio_binding API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Adds a slot NIO binding. :param slot_number: slot number :param port_number: port number :param nio: NIO instance to add to the slot/port
"Adds a slot NIO binding.\n\n :param slot_number: slot number\n :param port_number: port number\n :param nio: NIO instance to add to the slot/port"
1,412
true
GNS3/gns3-server
slot_add_nio_binding
28,391
LDU_FT/prawn-cake/vk-requests/do_direct_authorization
LDU_FT
[ "<BEGIN>\n## `consumer`", "Consumer decorator", " :param fn: coroutine consumer function", " Example:", " >>> api = StreamingAPI('my_service_key')\n >>> stream = api.get_stream()", " >>> @stream.consumer\n >>> @asyncio.coroutine\n >>> def handle_event(paylo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_direct_authorization 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 do_direct_authorization API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Direct Authorization, more info: https://vk.com/dev/auth_direct
"Direct Authorization, more info: https://vk.com/dev/auth_direct"
55
false
prawn-cake/vk-requests
do_direct_authorization
28,392
LDU_FT/openvax/topiary/filter_silent_and_noncoding_effects
LDU_FT
[ "<BEGIN>\n## `transcript_sort_key`", "Key function used to sort transcripts. Taking the negative of\n protein sequence length and nucleotide sequence length so that\n the transcripts with longest sequences come first in the list. This couldn't\n be accomplished with `reverse=True` since we're also sortin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_silent_and_noncoding_effects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_silent_and_noncoding_effects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Keep only variant effects which result in modified proteins. Parameters ---------- effects : varcode.EffectCollection
"Keep only variant effects which result in modified proteins.\n\n Parameters\n ----------\n effects : varcode.EffectCollection"
91
false
openvax/topiary
filter_silent_and_noncoding_effects
28,393
LDU_FT/pyinvoke/invocations/upload
LDU_FT
[ "<BEGIN>\n## `confirm`", "Ask user a yes/no question and return their response as a boolean.", " ``question`` should be a simple, grammatically complete question such as\n \"Do you wish to continue?\", and will have a string similar to ``\" [Y/n] \"``\n appended automatically. This function will *not* ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload API. 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 upload API. 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 ...
Upload (potentially also signing) all artifacts in ``directory``. :param str index: Custom upload index/repository name. By default, uses whatever the invoked ``pip`` is configured to use. Modify your ``pypirc`` file to add new named repositories. :param bool sign: Whether to ...
"Upload (potentially also signing) all artifacts in ``directory``.\n\n :param str index:\n Custom upload index/repository name.\n\n By default, uses whatever the invoked ``pip`` is configured to use.\n Modify your ``pypirc`` file to add new named repositories.\n\n :param bool sign:\n W...
126
false
pyinvoke/invocations
upload
28,394
LDU_FT/cloudtools/troposphere/set_parameter_label
LDU_FT
[ "<BEGIN>\n## `main`", "Create a ElastiCache Redis Node and EC2 Instance\n<END>", "<BEGIN>\n## `validate_backup_window`", "Validate PreferredBackupWindow for DBInstance\n<END>", "<BEGIN>\n## `validate_maintenance_window`", "Validate PreferredMaintenanceWindow for DBInstance\n<END>", "<BEGIN>\n## `validat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_parameter_label API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_parameter_label 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...
Sets the Label used in the User Interface for the given parameter. :type parameter: str or Parameter :type label: str
"Sets the Label used in the User Interface for the given parameter.\n :type parameter: str or Parameter\n :type label: str"
74
false
cloudtools/troposphere
set_parameter_label
28,395
LDU_FT/HDI-Project/BTB/bandit
LDU_FT
[ "<BEGIN>\n## `tune_pipeline`", "Tunes a specified pipeline with the\n specified tuner for TUNING_BUDGET_PER_ITER (3) iterations.", " Params:\n X: np.array of X training data\n y: np.array of y training data\n X_val: np.array of X validation data\n y_val: np.array of y validatio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bandit API. 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 bandit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return the choice to take next using multi-armed bandit Multi-armed bandit method. Accepts a mapping of choices to rewards which indicate their historical performance, and returns the choice that we should make next in order to maximize expected reward in the long term. The default imp...
"Return the choice to take next using multi-armed bandit\n\n Multi-armed bandit method. Accepts a mapping of choices to rewards which indicate their\n historical performance, and returns the choice that we should make next in order to\n maximize expected reward in the long term.\n\n The defa...
75
false
HDI-Project/BTB
bandit
28,396
LDU_FT/gitpython-developers/GitPython/remove
LDU_FT
[ "<BEGIN>\n## `new_from_sha`", ":return: new object instance of a type appropriate to represent the given\n binary sha1\n :param sha1: 20 byte binary sha1\n<END>", "<BEGIN>\n## `stream_data`", "Writes our data directly to the given output stream\n :param ostream: File object compatible...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. 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 remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Remove the given items from the index and optionally from the working tree as well. :param items: Multiple types of items are supported which may be be freely mixed. - path string Remove the given path at all stages. If it is a directory, you must ...
"Remove the given items from the index and optionally from\n the working tree as well.\n\n :param items:\n Multiple types of items are supported which may be be freely mixed.\n\n - path string\n Remove the given path at all stages. If it is a directory, you must\n ...
741
false
gitpython-developers/GitPython
remove
28,397
LDU_FT/peopledoc/workalendar/items
LDU_FT
[ "<BEGIN>\n## `get_variable_days`", "Add Late Summer holiday (First Monday of September)\n<END>", "<BEGIN>\n## `iso_register`", "Registers Calendar class as country or region in IsoRegistry.", " Registered country must set class variables ``iso`` using this decorator.", " >>> from workalendar.core im...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the items API. 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 items API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns calendar classes for regions :param region_codes list of ISO codes for selected regions :param include_subregions boolean if subregions of selected regions should be included in result :rtype dict :return dict where keys are ISO codes strings and values are calen...
"Returns calendar classes for regions\n\n :param region_codes list of ISO codes for selected regions\n :param include_subregions boolean if subregions\n of selected regions should be included in result\n :rtype dict\n :return dict where keys are ISO codes strings\n and values a...
106
false
peopledoc/workalendar
items
28,398
LDU_FT/ratcave/wavefront_reader/read_objfile
LDU_FT
[ "<BEGIN>\n## `face_index`", "Takes an MxNx3 array and returns a 2D vertices and MxN face_indices arrays\n<END>", "<BEGIN>\n## `fan_triangulate`", "Return an array of vertices in triangular order using a fan triangulation algorithm.\n<END>", "<BEGIN>\n## `from_dicts`", "Returns a wavefront .obj string usin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_objfile API. 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 read_objfile API. 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...
Takes .obj filename and returns dict of object properties for each object in file.
"Takes .obj filename and returns dict of object properties for each object in file."
18
false
ratcave/wavefront_reader
read_objfile
28,399
LDU_FT/dnanexus/dx-toolkit/clone
LDU_FT
[ "<BEGIN>\n## `load_app_resource`", ":param kwargs: keyword args for :func:`~dxpy.bindings.search.find_one_data_object`, with the exception of \"project\"\n :raises: :exc:`~dxpy.exceptions.DXError` if \"project\" is given, if this is called with dxpy.JOB_ID not set, or if \"DX_RESOURCES_ID\" or \"DX_PROJECT_CON...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clone API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clone API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
:param container: Destination container ID :type container: string :param destination: Path of destination folder in the destination container :type destination: string :param objects: List of object IDs to move :type objects: list of strings :param folders: List of full ...
":param container: Destination container ID\n :type container: string\n :param destination: Path of destination folder in the destination container\n :type destination: string\n :param objects: List of object IDs to move\n :type objects: list of strings\n :param folders: List o...
1,430
true
dnanexus/dx-toolkit
clone
28,400
LDU_FT/Clarify/clarify_python/get_embedded
LDU_FT
[ "<BEGIN>\n## `process_embed`", "Returns an embed field value based on the parameters.\n<END>", "<BEGIN>\n## `process_embed_override`", "Returns an embed field value based on the parameters.\n<END>", "<BEGIN>\n## `get_embedded_items`", "Given a result_collection (returned by a previous API call that\n r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_embedded API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_embedded API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Given a result_object (returned by a previous API call), return the embedded object for link_relation. The returned object can be treated as a result object in its own right. 'result_object' a JSON object returned by a previous API call. The link relation of teh embedded object must have been specifie...
"Given a result_object (returned by a previous API call), return\n the embedded object for link_relation. The returned object can be\n treated as a result object in its own right.\n\n 'result_object' a JSON object returned by a previous API call.\n The link relation of teh embedded object must have been sp...
137
false
Clarify/clarify_python
get_embedded
28,401
LDU_FT/tkarabela/pysubs2/to_file
LDU_FT
[ "<BEGIN>\n## `make_time`", "Convert time to milliseconds.", " See :func:`pysubs2.time.times_to_ms()`. When both frames and fps are specified,\n :func:`pysubs2.time.frames_to_ms()` is called instead.", " Raises:\n ValueError: Invalid fps, or one of frames/fps is missing.", " Example:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Write subtitle file to file object. See :meth:`SSAFile.save()` for full description. Note: This is a low-level method. Usually, one of :meth:`SSAFile.save()` or :meth:`SSAFile.to_string()` is preferable. Arguments: fp (file object): A file object, ie. :clas...
"Write subtitle file to file object.\n\n See :meth:`SSAFile.save()` for full description.\n\n Note:\n This is a low-level method. Usually, one of :meth:`SSAFile.save()`\n or :meth:`SSAFile.to_string()` is preferable.\n\n Arguments:\n fp (file object): A file object,...
94
false
tkarabela/pysubs2
to_file
28,402
LDU_FT/ltworf/typedload/_enumload
LDU_FT
[ "<BEGIN>\n## `uniontypes`", "Returns the types of a Union.", " Raises ValueError if the argument is not a Union\n and AttributeError when running on an unsupported\n Python version.\n<END>", "<BEGIN>\n## `index`", "Returns the index in the handlers list\n that matches the given value.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _enumload API. 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 _enumload API. 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...
This loads something into an Enum. It tries with basic types first. If that fails, it tries to look for type annotations inside the Enum, and tries to use those to load the value into something that is compatible with the Enum. Of course if that fails too, a ValueError is raised.
"This loads something into an Enum.\n\n It tries with basic types first.\n\n If that fails, it tries to look for type annotations inside the\n Enum, and tries to use those to load the value into something\n that is compatible with the Enum.\n\n Of course if that fails too, a ValueError is raised."
55
false
ltworf/typedload
_enumload
28,403
LDU_FT/sepandhaghighi/pycm/html_dataset_type
LDU_FT
[ "<BEGIN>\n## `print_report`", "Print Compare report.", " :return: None\n<END>", "<BEGIN>\n## `save_report`", "Save Compare report in .comp (flat file format).", " :param name: filename\n :type name : str\n :param address: flag for address return\n :type address : bool\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the html_dataset_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the html_dataset_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return HTML report file dataset type. :param is_binary: is_binary flag (binary : True , multi-class : False) :type is_binary: bool :param is_imbalanced: is_imbalanced flag (imbalance : True , balance : False) :type is_imbalanced: bool :return: dataset_type as str
"Return HTML report file dataset type.\n\n :param is_binary: is_binary flag (binary : True , multi-class : False)\n :type is_binary: bool\n :param is_imbalanced: is_imbalanced flag (imbalance : True , balance : False)\n :type is_imbalanced: bool\n :return: dataset_type as str"
259
false
sepandhaghighi/pycm
html_dataset_type
28,404
LDU_FT/sparklingpandas/sparklingpandas/collect
LDU_FT
[ "<BEGIN>\n## `_prep_pandas_groupby`", "Prepare the old school pandas group by based approach.\n<END>", "<BEGIN>\n## `_group`", "Group together the values with the same key.\n<END>", "<BEGIN>\n## `groups`", "Returns dict {group name -> group labels}.\n<END>", "<BEGIN>\n## `indices`", "Returns dict {gro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect API. 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 collect API. 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...
Collect the elements in an PRDD and concatenate the partition.
"Collect the elements in an PRDD and concatenate the partition."
87
false
sparklingpandas/sparklingpandas
collect
28,405
LDU_FT/DallasMorningNews/django-datafreezer/home
LDU_FT
[ "<BEGIN>\n## `clean`", "Verifies that beginning date is before ending date.\n<END>", "<BEGIN>\n## `get_success_url`", "Ensure the user-originating redirection URL is safe.\n<END>", "<BEGIN>\n## `form_valid`", "Security check complete. Log the user in.\n<END>", "<BEGIN>\n## `map_hubs_to_verticals`", "R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the home API. 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 home API. 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...
Renders Datafreezer homepage. Includes recent uploads.
"Renders Datafreezer homepage. Includes recent uploads."
63
false
DallasMorningNews/django-datafreezer
home
28,406
LDU_FT/Workiva/furious/store_context
LDU_FT
[ "<BEGIN>\n## `_handle_task`", "Pass request info to the async framework.\n<END>", "<BEGIN>\n## `_init`", "Initialize the furious context and registry.", " NOTE: Do not directly run this method.\n<END>", "<BEGIN>\n## `run_job`", "Takes an async object and executes its job.\n<END>", "<BEGIN>\n## `_ha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Persist a furious.context.Context object to the datastore by loading it into a FuriousContext ndb.Model.
"Persist a furious.context.Context object to the datastore by loading it\n into a FuriousContext ndb.Model."
211
false
Workiva/furious
store_context
28,407
LDU_FT/dellis23/ansible-toolkit/get_old_filename
LDU_FT
[ "<BEGIN>\n## `split_path`", "\"/tmp/test\"", " Becomes:", " (\"/\", \"tmp\", \"test\")\n<END>", "<BEGIN>\n## `get_files`", "Returns a recursive list of all non-hidden files in and below the current\n directory.\n<END>", "<BEGIN>\n## `backup`", "Replaces the contents of a file with its dec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_old_filename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_old_filename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns the filename for the original file that was changed in a diff part.
"Returns the filename for the original file that was changed in a diff part."
23
false
dellis23/ansible-toolkit
get_old_filename
28,408
LDU_FT/eyurtsev/fcsparser/_verify_assumptions
LDU_FT
[ "<BEGIN>\n## `fromfile`", "Wrapper around np.fromfile to support any file-like object.\n<END>", "<BEGIN>\n## `parse`", "Parse an fcs file at the location specified by the path.", " Parameters\n ----------\n path: str\n Path of .fcs file\n meta_data_only: bool\n If True, the parse_f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _verify_assumptions 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 _verify_assumptions 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...
Verify that all assumptions made by the parser hold.
"Verify that all assumptions made by the parser hold."
39
false
eyurtsev/fcsparser
_verify_assumptions
28,409
LDU_FT/chinapnr/fishbase/has_special_char
LDU_FT
[ "<BEGIN>\n## `string`", "获取一个字符串的 MD5 值", " :param:\n * s: (string) 需要进行 hash 的字符串\n * salt: (string) 随机字符串,默认为 None\n :return:\n * result: (string) 32 位小写 MD5 值\n<END>", "<BEGIN>\n## `file`", "获取一个文件的 MD5 值", " :param:\n * filename: (string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_special_char API. 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 has_special_char API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
检查字符串是否含有指定类型字符 :param: * p_str: (string) 需要判断的字符串 * check_style: (string) 需要判断的字符类型,默认为 charChinese (编码仅支持utf-8), 支持 charNum,该参数向后兼容 :return: * True 含有指定类型字符 * False 不含有指定类型字符 举例如下:: print('--- has_special_char demo ---') p_str1 = 'meiyouzhongwen' ...
"检查字符串是否含有指定类型字符\n\n :param:\n * p_str: (string) 需要判断的字符串\n * check_style: (string) 需要判断的字符类型,默认为 charChinese (编码仅支持utf-8), 支持 charNum,该参数向后兼容\n\n :return:\n * True 含有指定类型字符\n * False 不含有指定类型字符\n\n 举例如下::\n\n print('--- has_special_char demo ---')\n p_str1 = 'meiyouzho...
448
false
chinapnr/fishbase
has_special_char
28,410
LDU_FT/loli/medpy/quadratic_forms
LDU_FT
[ "<BEGIN>\n## `sls`", "r\"\"\"\n Computes the signed local similarity between two images.", " Compares a patch around each voxel of the minuend array to a number of patches\n centered at the points of a search neighbourhood in the subtrahend. Thus, creates\n a multi-dimensional measure of patch simil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quadratic_forms API. 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 quadratic_forms API. 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...
r""" Quadrativ forms metric. Notes ----- UNDER DEVELOPMENT This distance measure shows very strange behaviour. The expression transpose(h1-h2) * A * (h1-h2) yields egative values that can not be processed by the square root. Some examples:: h1 h2 ...
"r\"\"\"\n Quadrativ forms metric.\n \n Notes\n -----\n UNDER DEVELOPMENT\n \n This distance measure shows very strange behaviour. The expression\n transpose(h1-h2) * A * (h1-h2) yields egative values that can not be processed by the\n square root. Some examples::\n \n h1 h2 ...
1,313
true
loli/medpy
quadratic_forms
28,411
LDU_FT/Miserlou/Zappa/create_handler_venv
LDU_FT
[ "<BEGIN>\n## `route_sns_task`", "Gets SNS Message, deserialises the message,\n imports the function, calls the function with args\n<END>", "<BEGIN>\n## `run_message`", "Runs a function defined by a message object with keys:\n 'task_path', 'args', and 'kwargs' used by lambda routing\n and a 'command' ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_handler_venv 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 create_handler_venv 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...
Takes the installed zappa and brings it into a fresh virtualenv-like folder. All dependencies are then downloaded.
"Takes the installed zappa and brings it into a fresh virtualenv-like folder. All dependencies are then downloaded."
312
false
Miserlou/Zappa
create_handler_venv
28,412
LDU_FT/Yelp/pyramid_zipkin/get_binary_annotations
LDU_FT
[ "<BEGIN>\n## `_getattr_path`", "getattr for a dot separated path", " If an AttributeError is raised, it will return None.\n<END>", "<BEGIN>\n## `_get_settings_from_request`", "Extracts Zipkin attributes and configuration from request attributes.\n See the `zipkin_span` context in py-zipkin for more de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_binary_annotations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_binary_annotations 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 method for getting all binary annotations from the request. :param request: the Pyramid request object :param response: the Pyramid response object :returns: binary annotation dict of {str: str}
"Helper method for getting all binary annotations from the request.\n\n :param request: the Pyramid request object\n :param response: the Pyramid response object\n :returns: binary annotation dict of {str: str}"
35
false
Yelp/pyramid_zipkin
get_binary_annotations
28,413
LDU_FT/pytroll/pyorbital/vectors
LDU_FT
[ "<BEGIN>\n## `gmst`", "Greenwich mean sidereal utc_time, in radians.", " As defined in the AIAA 2006 implementation:\n http://www.celestrak.com/publications/AIAA/2006-6753/\n<END>", "<BEGIN>\n## `sun_ecliptic_longitude`", "Ecliptic longitude of the sun at *utc_time*.\n<END>", "<BEGIN>\n## `sun_ra_de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vectors API. 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 vectors API. 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 unit vectors pointing to the different pixels. *pos* and *vel* are column vectors, or matrices of column vectors. Returns vectors as stacked rows.
"Get unit vectors pointing to the different pixels.\n\n *pos* and *vel* are column vectors, or matrices of column\n vectors. Returns vectors as stacked rows."
83
false
pytroll/pyorbital
vectors
28,414
LDU_FT/aquatix/ns-api/list_from_json
LDU_FT
[ "<BEGIN>\n## `simple_time`", "Format a datetime or timedelta object to a string of format HH:MM\n<END>", "<BEGIN>\n## `is_dst`", "Find out whether it's Daylight Saving Time in this timezone\n<END>", "<BEGIN>\n## `list_to_json`", "Serialise all the items in source_list to json\n<END>", "<BEGIN>\n## `list...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_from_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_from_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Deserialise all the items in source_list from json
"Deserialise all the items in source_list from json"
32
false
aquatix/ns-api
list_from_json
28,415
LDU_FT/murphy214/berrl/make_geohash_tables
LDU_FT
[ "<BEGIN>\n## `make_spark_lines`", "alignment_field = False\n\tspark_output = True\n\tif kwargs is not None:\n\t\tfor key,value in kwargs.iteritems():\n\t\t\tif key == 'alignment_field':\n\t\t\t\talignment_field = value \n\t\t\tif key == 'spark_output':\n\t\t\t\tspark_output = value", "\t#changing dataframe to l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_geohash_tables API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_geohash_tables API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
sort_by - field to sort by for each group return_squares - boolean arg if true returns a list of squares instead of writing out to table
"sort_by - field to sort by for each group\n\treturn_squares - boolean arg if true returns a list of squares instead of writing out to table"
12
false
murphy214/berrl
make_geohash_tables
28,416
LDU_FT/GoogleCloudPlatform/python-repo-tools/get_gae_versions
LDU_FT
[ "<BEGIN>\n## `read_config`", "Reads pylintrc config into native ConfigParser object.", " Args:\n contents (str): The contents of the file containing the INI config.", " Returns:\n ConfigParser.ConfigParser: The parsed configuration.\n<END>", "<BEGIN>\n## `load_local_config`", "Loads th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gae_versions API. 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_gae_versions API. 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 list of all of the available Python SDK versions, sorted with the newest last.
"Gets a list of all of the available Python SDK versions, sorted with\n the newest last."
57
false
GoogleCloudPlatform/python-repo-tools
get_gae_versions
28,417
LDU_FT/cartologic/cartoview/session
LDU_FT
[ "<BEGIN>\n## `session`", "Creates a context with an open SQLAlchemy session.\n<END>", "<BEGIN>\n## `get_path_permission`", "on platforms that do not support symbolic links,\n lstat is an alias for stat()\n so we return a tuple of both\n<END>", "<BEGIN>\n## `_robust_rmtree`", "Try to delete paths rob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the session API. 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 session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Creates a context with an open SQLAlchemy session.
"Creates a context with an open SQLAlchemy session."
10
false
cartologic/cartoview
session
28,418
LDU_FT/b3j0f/aop/base_ctx
LDU_FT
[ "<BEGIN>\n## `find_ctx`", "Find a Pointcut ctx which is a class/instance related to input\n function/method.", " :param elt: elt from where find a ctx.\n :return: elt ctx. None if no ctx available or if elt is a None method.\n<END>", "<BEGIN>\n## `base_ctx`", "Get base ctx.", " :param ctx: ini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the base_ctx API. 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 base_ctx API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get base ctx. :param ctx: initial ctx. :return: base ctx.
"Get base ctx.\n\n :param ctx: initial ctx.\n :return: base ctx."
79
false
b3j0f/aop
base_ctx
28,419
LDU_FT/RIPE-NCC/ripe-atlas-cousteau/clean
LDU_FT
[ "<BEGIN>\n## `update_get_params`", "Update HTTP GET params with the given fields that user wants to fetch.\n<END>", "<BEGIN>\n## `_fetch_meta_data`", "Makes an API call to fetch meta data for the given probe and stores the raw data.\n<END>", "<BEGIN>\n## `_populate_data`", "Assing some probe's raw meta da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. 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 clean API. 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...
Cleans/checks user entered data making sure required options are at least present. This might save some queries from being sent if they are totally wrong.
"Cleans/checks user entered data making sure required options are at\n least present. This might save some queries from being sent if\n they are totally wrong."
62
false
RIPE-NCC/ripe-atlas-cousteau
clean
28,420
LDU_FT/diefans/objective/_resolve_value
LDU_FT
[ "<BEGIN>\n## `node`", "Create a :py:class:`Node` instance.", " All args and kwargs are forwarded to the node.", " :returns: a :py:class:`Node` instance\n<END>", "<BEGIN>\n## `_resolve_value`", "Resolve the value.", " Either apply missing or leave the value as is.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Resolve the value. Either apply missing or leave the value as is. :param value: the value either from deserialize or serialize :param environment: an optional environment
"Resolve the value.\n\n Either apply missing or leave the value as is.\n\n :param value: the value either from deserialize or serialize\n :param environment: an optional environment"
21
false
diefans/objective
_resolve_value
28,421
LDU_FT/SwissDataScienceCenter/renku-python/validate_path
LDU_FT
[ "<BEGIN>\n## `_jsonld`", "Return formatted graph in JSON-LD ``format`` function.\n<END>", "<BEGIN>\n## `_rdf2dot_simple`", "Create a simple graph of processes and artifacts.\n<END>", "<BEGIN>\n## `_rdf2dot_reduced`", "A reduced dot graph.", " Adapted from original source:\n https://rdflib.readthed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Detect a workflow path if it is not passed.
"Detect a workflow path if it is not passed."
121
false
SwissDataScienceCenter/renku-python
validate_path
28,422
LDU_FT/hobson/pug-invest/integrated_change
LDU_FT
[ "<BEGIN>\n## `log_loss`", "Log of the loss (error) summed over all entries", " The negative of the logarithm of the frequency (probability) of the predicted\n label given the true binary label for a category.", " Arguments:\n predicted (np.array of float): 2-D table of probabilities for each\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the integrated_change API. 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 integrated_change API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Total value * time above the starting value within a TimeSeries
"Total value * time above the starting value within a TimeSeries"
205
false
hobson/pug-invest
integrated_change
28,423
LDU_FT/stevearc/dynamo3/complete
LDU_FT
[ "<BEGIN>\n## `build_kwargs`", "Construct the kwargs to pass to batch_get_item\n<END>", "<BEGIN>\n## `set_request_args`", "Set the Limit parameter into the request args\n<END>", "<BEGIN>\n## `complete`", "Return True if the limit has been reached\n<END>", "<BEGIN>\n## `accept`", "Apply the filter and i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the complete API. 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 complete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return True if the limit has been reached
"Return True if the limit has been reached"
164
false
stevearc/dynamo3
complete
28,424
LDU_FT/pipermerriam/ethereum-client-utils/process_requests
LDU_FT
[ "<BEGIN>\n## `process_requests`", "Loop that runs in a thread to process requests synchronously.\n<END>", "<BEGIN>\n## `default_from_address`", "Cache the coinbase address so that we don't make two requests for every\n single transaction.\n<END>", "<BEGIN>\n## `get_balance`", "https://github.com/et...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_requests API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_requests API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Loop that runs in a thread to process requests synchronously.
"Loop that runs in a thread to process requests synchronously."
18
false
pipermerriam/ethereum-client-utils
process_requests
28,425
LDU_FT/peterwittek/somoclu/_check_cooling_parameters
LDU_FT
[ "<BEGIN>\n## `_check_cooling_parameters`", "Helper function to verify the cooling parameters of the training.\n<END>", "<BEGIN>\n## `_hexplot`", "Internal function to plot a hexagonal map.\n<END>", "<BEGIN>\n## `load_bmus`", "Load the best matching units from a file to the Somoclu object.", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_cooling_parameters 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 _check_cooling_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Helper function to verify the cooling parameters of the training.
"Helper function to verify the cooling parameters of the training."
55
false
peterwittek/somoclu
_check_cooling_parameters
28,426
LDU_FT/etingof/pysnmp/readGet
LDU_FT
[ "<BEGIN>\n## `getMibSymbol`", "Returns MIB variable symbolic identification.", " Returns\n -------\n str\n MIB module name\n str\n MIB variable symbolic name\n : :py:class:`~pysnmp.proto.rfc1902.ObjectName`\n class instance representing MIB ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readGet API. 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 readGet API. 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...
Read Managed Object Instance. Implements the second of the two phases of the SNMP GET command processing (:RFC:`1905#section-4.2.1`). The goal of the second phase is to actually read the requested Managed Object Instance. When multiple Managed Objects Instances are read at once...
"Read Managed Object Instance.\n\n Implements the second of the two phases of the SNMP GET command\n processing (:RFC:`1905#section-4.2.1`).\n\n The goal of the second phase is to actually read the requested Managed\n Object Instance. When multiple Managed Objects Instances are read at\n ...
708
false
etingof/pysnmp
readGet
28,427
LDU_FT/HarveyHunt/i3situation/convert_time
LDU_FT
[ "<BEGIN>\n## `main`", "Generates an output string by replacing the keywords in the format\n string with the corresponding values from a submission dictionary.\n<END>", "<BEGIN>\n## `login`", "Logs into Reddit in order to display a personalised front page.\n<END>", "<BEGIN>\n## `manage_submissions`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_time API. 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 convert_time API. 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...
A helper function to convert seconds into hh:mm:ss for better readability. time: A string representing time in seconds.
"A helper function to convert seconds into hh:mm:ss for better\n readability.\n\n time: A string representing time in seconds."
63
false
HarveyHunt/i3situation
convert_time
28,428
LDU_FT/fr33jc/bang/db_to_dict
LDU_FT
[ "<BEGIN>\n## `set_ssh_creds`", "Set ssh credentials into config.", " Note that these values might also be set in ~/.bangrc. If they are\n specified both in ~/.bangrc and as command-line arguments to ``bang``, then\n the command-line arguments win.\n<END>", "<BEGIN>\n## `run_bang`", "Runs bang with...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db_to_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db_to_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 extrac...
Returns the :class:`dict` representation of a database object. The returned :class:`dict` is meant to be consumed by :class:`~bang.deployers.cloud.ServerDeployer` objects.
"Returns the :class:`dict` representation of a database object.\n\n The returned :class:`dict` is meant to be consumed by\n :class:`~bang.deployers.cloud.ServerDeployer` objects."
336
false
fr33jc/bang
db_to_dict
28,429
LDU_FT/charnley/rmsd/get_coordinates
LDU_FT
[ "<BEGIN>\n## `rmsd`", "Calculate Root-mean-square deviation from two sets of vectors V and W.", " Parameters\n ----------\n V : array\n (N,D) matrix, where N is points and D is dimension.\n W : array\n (N,D) matrix, where N is points and D is dimension.", " Returns\n -------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_coordinates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_coordinates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get coordinates from filename in format fmt. Supports XYZ and PDB. Parameters ---------- filename : string Filename to read fmt : string Format of filename. Either xyz or pdb. Returns ------- atoms : list List of atomic types V : array (N,3) where N is num...
"Get coordinates from filename in format fmt. Supports XYZ and PDB.\n Parameters\n ----------\n filename : string\n Filename to read\n fmt : string\n Format of filename. Either xyz or pdb.\n Returns\n -------\n atoms : list\n List of atomic types\n V : array\n (N,3) w...
66
false
charnley/rmsd
get_coordinates
28,430
LDU_FT/thecynic/pylutron/_parse_keypad
LDU_FT
[ "<BEGIN>\n## `_send_locked`", "Sends the specified command to the lutron controller.", " Assumes self._lock is held.\n<END>", "<BEGIN>\n## `_do_login_locked`", "Executes the login procedure (telnet) as well as setting up some\n connection defaults like turning off the prompt, etc.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_keypad API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_keypad API. 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...
Parses a keypad device (the Visor receiver is technically a keypad too).
"Parses a keypad device (the Visor receiver is technically a keypad too)."
73
false
thecynic/pylutron
_parse_keypad
28,431
LDU_FT/classam/silly/things
LDU_FT
[ "<BEGIN>\n## `_slugify`", "This is not as good as a proper slugification function, but the input space is limited", " >>> _slugify(\"beets\")\n 'beets'\n >>> _slugify(\"Toaster Strudel\")\n 'toaster-strudel'", " Here's why: It handles very little. It doesn't handle esoteric whitespace or symbol...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the things API. 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 things API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return a set of things. >>> mock_random.seed(0) >>> things(random=mock_random) 'two secrets, two secrets, and two secrets' >>> mock_random.seed(1) >>> things(random=mock_random, capitalize=True) 'A Mighty Poop, A Mighty Poop, And A Mighty Poop'
"Return a set of things.\n\n >>> mock_random.seed(0)\n >>> things(random=mock_random)\n 'two secrets, two secrets, and two secrets'\n >>> mock_random.seed(1)\n >>> things(random=mock_random, capitalize=True)\n 'A Mighty Poop, A Mighty Poop, And A Mighty Poop'"
80
false
classam/silly
things
28,432
LDU_FT/oauthlib/oauthlib/add_token
LDU_FT
[ "<BEGIN>\n## `signature_base_string`", "**Construct the signature base string.**\n Per `section 3.4.1.1`_ of the spec.", " For example, the HTTP request::", " POST /request?b5=%3D%253D&a3=a&c%40=&a2=r%20b HTTP/1.1\n Host: example.com\n Content-Type: application/x-www-form-urlencoded...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Add token to the request uri, body or authorization header. The access token type provides the client with the information required to successfully utilize the access token to make a protected resource request (along with type-specific attributes). The client MUST NOT use an access tok...
"Add token to the request uri, body or authorization header.\n\n The access token type provides the client with the information\n required to successfully utilize the access token to make a protected\n resource request (along with type-specific attributes). The client\n MUST NOT use an acce...
651
false
oauthlib/oauthlib
add_token
28,433
LDU_FT/timothycrosley/isort/_parse_known_pattern
LDU_FT
[ "<BEGIN>\n## `iter_source_code`", "Iterate over all Python source files defined in paths.\n<END>", "<BEGIN>\n## `file_should_be_skipped`", "Returns True if the file and/or folder should be skipped based on the passed in settings.\n<END>", "<BEGIN>\n## `chdir`", "Context manager for changing dir and restor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_known_pattern 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_known_pattern API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Expand pattern if identified as a directory and return found sub packages
"Expand pattern if identified as a directory and return found sub packages"
44
false
timothycrosley/isort
_parse_known_pattern
28,434
LDU_FT/dragnet-org/dragnet/bytes_cast
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit :class`Extractor` features and model to a training dataset.", " Args:\n blocks (List[Block])\n labels (``np.ndarray``)\n weights (``np.ndarray``)", " Returns:\n :class`Extractor`\n<END>", "<BEGIN>\n## `get_html_labels_weight...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bytes_cast API. 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 bytes_cast API. 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...
Converts any string-like input to a bytes-like output, with respect to python version Parameters ---------- maybe_str : if this is a string-like object, it will be converted to bytes encoding : str, default='utf-8' encoding to be used when encoding string
"Converts any string-like input to a bytes-like output, with respect to\n python version\n\n Parameters\n ----------\n maybe_str : if this is a string-like object, it will be converted to bytes\n encoding : str, default='utf-8'\n encoding to be used when encoding string"
134
false
dragnet-org/dragnet
bytes_cast
28,435
LDU_FT/hootnot/postcode-api-wrapper/get_signalcheck
LDU_FT
[ "<BEGIN>\n## `translate_addresstype`", "decorator to translate the addressType field.", " translate the value of the addressType field of the API response into a\n translated type.\n<END>", "<BEGIN>\n## `translate_purposes`", "decorator to translate the purposes field.", " translate the values of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_signalcheck API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_signalcheck API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
get_signalcheck - perform a signal check. Parameters ---------- sar : dict signal-api-request specified as a dictionary of parameters. All of these parameters are optional. For details check https://api.postcode.nl/documentation/signal-api-example. ...
"get_signalcheck - perform a signal check.\n\n Parameters\n ----------\n sar : dict\n signal-api-request specified as a dictionary of parameters.\n All of these parameters are optional. For details\n check https://api.postcode.nl/documentation/signal-api-example.\n...
20
false
hootnot/postcode-api-wrapper
get_signalcheck
28,436
LDU_FT/wind-python/windpowerlib/mean_hub_height
LDU_FT
[ "<BEGIN>\n## `reduce_wind_speed`", "r\"\"\"\n Reduces wind speed by a wind efficiency curve.", " The wind efficiency curves are provided in the windpowerlib and were\n calculated in the dena-Netzstudie II and in the work of Knorr\n (see [1]_ and [2]_).", " Parameters\n ----------\n wind_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mean_hub_height API. 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 mean_hub_height API. 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...
r""" Calculates the mean hub height of the wind farm. The mean hub height of a wind farm is necessary for power output calculations with an aggregated wind farm power curve containing wind turbines with different hub heights. Hub heights of wind turbines with higher nominal powe...
"r\"\"\"\n Calculates the mean hub height of the wind farm.\n\n The mean hub height of a wind farm is necessary for power output\n calculations with an aggregated wind farm power curve containing wind\n turbines with different hub heights. Hub heights of wind turbines with\n higher no...
249
false
wind-python/windpowerlib
mean_hub_height
28,437
LDU_FT/mgoral/subconvert/last
LDU_FT
[ "<BEGIN>\n## `__parseFormat`", "Actual parser. Please note that time_to is not required to process as not all subtitles\n provide it.\n<END>", "<BEGIN>\n## `createSubtitle`", "Returns a correct 'Subtitle' object from a text given in 'section'. If 'section' cannot\n be parsed, None is returned.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the last API. 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 last API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns the last element accessed via next() or prev(). Returns the first element of range() if neither of these was called.
"Returns the last element accessed via next() or prev().\n Returns the first element of range() if neither of these was called."
50
false
mgoral/subconvert
last
28,438
LDU_FT/albertyw/syspath/get_git_root
LDU_FT
[ "<BEGIN>\n## `_append_path`", "Given a path string, append it to sys.path\n<END>", "<BEGIN>\n## `_caller_path`", "Get the caller's file path, by the index of the stack,\n does not work when the caller is stdin through a CLI python\n<END>", "<BEGIN>\n## `get_current_path`", "Get the caller's path to sys...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_git_root API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_git_root API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get the path of the git root directory of the caller's file Raises a RuntimeError if a git repository cannot be found
"Get the path of the git root directory of the caller's file\n Raises a RuntimeError if a git repository cannot be found"
10
false
albertyw/syspath
get_git_root
28,439
LDU_FT/heuer/cablemap/titlefy
LDU_FT
[ "<BEGIN>\n## `cable_to_text`", "\\\n Returns the header/content of the cable as text.\n<END>", "<BEGIN>\n## `generate_text_files`", "\\\n Walks through the `in_dir` and generates text versions of\n the cables in the `out_dir`.\n<END>", "<BEGIN>\n## `generate_csv`", "\\\n Walks through the `pat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the titlefy API. 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 titlefy API. 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...
\ Titlecases the provided subject but respects common abbreviations. This function returns ``None`` if the provided `subject` is ``None``. It returns an empty string if the provided subject is empty. `subject A cable's subject.
"\\\n Titlecases the provided subject but respects common abbreviations.\n \n This function returns ``None`` if the provided `subject` is ``None``. It\n returns an empty string if the provided subject is empty.\n \n `subject\n A cable's subject."
206
false
heuer/cablemap
titlefy
28,440
LDU_FT/floydhub/floyd-cli/print_experiments
LDU_FT
[ "<BEGIN>\n## `init`", "Initialize new project at the current path.", " After this you can run other FloydHub commands like status and run.\n<END>", "<BEGIN>\n## `status`", "View status of all jobs in a project.", " The command also accepts a specific job name.\n<END>", "<BEGIN>\n## `print_experime...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_experiments API. 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_experiments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Prints job details in a table. Includes urls and mode parameters
"Prints job details in a table. Includes urls and mode parameters"
84
false
floydhub/floyd-cli
print_experiments
28,441
LDU_FT/DLR-RM/RAFCON/log_to_ganttplot
LDU_FT
[ "<BEGIN>\n## `modify_origin`", "Set both from_state and from_key at the same time to modify data flow origin", " :param str from_state: State id of the origin state\n :param int from_key: Data port id of the origin port\n :raises exceptions.ValueError: If parameters have wrong types or the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_to_ganttplot API. 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 log_to_ganttplot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Example how to use the DataFrame representation
"Example how to use the DataFrame representation"
2,325
true
DLR-RM/RAFCON
log_to_ganttplot
28,442
LDU_FT/mozilla/amo-validator/_format_line
LDU_FT
[ "<BEGIN>\n## `decode`", "Decode data employing some charset detection and including unicode BOM\n stripping.\n<END>", "<BEGIN>\n## `get_context`", "Returns a tuple containing the context for a line\n<END>", "<BEGIN>\n## `_format_line`", "Formats a line from the data to be the appropriate length\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Formats a line from the data to be the appropriate length
"Formats a line from the data to be the appropriate length"
94
false
mozilla/amo-validator
_format_line
28,443
LDU_FT/PMBio/limix-backup/setSNPFilter
LDU_FT
[ "<BEGIN>\n## `PCA`", "run PCA, retrieving the first (components) principle components\n\treturn [s0, eig, w0]\n\ts0: factors\n\tw0: weights\n<END>", "<BEGIN>\n## `PC_varExplained`", "Run PCA and calculate the cumulative fraction of variance\n Args:\n Y: phenotype values\n standardize: if True...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setSNPFilter API. 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 setSNPFilter API. 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...
setSNPFilter(AGenotypeContainer self, std::string chrom, limix::muint_t start, limix::muint_t stop) Parameters ---------- chrom: std::string start: limix::muint_t stop: limix::muint_t
"setSNPFilter(AGenotypeContainer self, std::string chrom, limix::muint_t start, limix::muint_t stop)\n\n Parameters\n ----------\n chrom: std::string\n start: limix::muint_t\n stop: limix::muint_t"
428
false
PMBio/limix-backup
setSNPFilter
28,444
LDU_FT/wummel/dosage/urlopen
LDU_FT
[ "<BEGIN>\n## `exception`", "Write error message with traceback info.\n<END>", "<BEGIN>\n## `write`", "Write message with indentation, context and optional timestamp.\n<END>", "<BEGIN>\n## `contains_case_insensitive`", "Check if key is in adict. The search is case insensitive.\n<END>", "<BEGIN>\n## `fini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the urlopen API. 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 urlopen API. 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...
Open an URL and return the response object.
"Open an URL and return the response object."
141
false
wummel/dosage
urlopen
28,445
LDU_FT/APSL/transmanager/get_elements
LDU_FT
[ "<BEGIN>\n## `create_translation_tasks`", "Creates the translations tasks from the instance and its translatable children", " :param instance:\n :return:\n<END>", "<BEGIN>\n## `update_task`", "Updates a task as done if we have a new value for this alternative language", " :param diffe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_elements API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_elements API. 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...
Recursive method to iterate the tree of children in order to flatten it :param object_list: :return:
"Recursive method to iterate the tree of children in order to flatten it\n\n :param object_list:\n :return:"
92
false
APSL/transmanager
get_elements
28,446
LDU_FT/jam31118/vis/get_square_axes_limits
LDU_FT
[ "<BEGIN>\n## `estimate_global_norm_range`", "Return estimated global range for 2D (pcolormesh-like) plot.", " ## Returns:\n - vmin\n - vmax\n<END>", "<BEGIN>\n## `process_frames_argument`", "Check and process 'frames' argument\n into a proper iterable for an animation object", " ## Argument...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_square_axes_limits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_square_axes_limits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return N-dimensional square's limits ## Arguments # 'coords': list of coordinates of poins to be plotted # 'margin': margin to be added from boundaries of the square. - 'margin' can be negative if one wants to reduce the square size. ## Example if 'coords' was given as [x,y,z], then the r...
"Return N-dimensional square's limits\n\n ## Arguments\n # 'coords': list of coordinates of poins to be plotted\n # 'margin': margin to be added from boundaries of the square.\n - 'margin' can be negative if one wants to reduce the square size.\n\n ## Example\n if 'coords' was given as [x,y,z],\n\n ...
53
false
jam31118/vis
get_square_axes_limits
28,447
LDU_FT/EconForge/dolo/deterministic_solve
LDU_FT
[ "<BEGIN>\n## `multidot_old`", "Implements tensor operation : tensor-times-matrices.\n If last dimensions of ten represent multilinear operations of the type : [X1,...,Xk]->B[X1,...,Xk]\n and mats contains matrices or vectors [A1,...Ak] the function returns an array representing operators :\n [X1,...,Xk]-...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deterministic_solve 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 deterministic_solve 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...
Computes a perfect foresight simulation using a stacked-time algorithm. The initial state is specified either by providing a series of exogenous shocks and assuming the model is initially in equilibrium with the first value of the shock, or by specifying an initial value for the states. Parameters ...
"Computes a perfect foresight simulation using a stacked-time algorithm.\n\n The initial state is specified either by providing a series of exogenous\n shocks and assuming the model is initially in equilibrium with the first\n value of the shock, or by specifying an initial value for the states.\n\n Paramet...
221
false
EconForge/dolo
deterministic_solve
28,448
LDU_FT/joowani/binarytree/tree
LDU_FT
[ "<BEGIN>\n## `_is_balanced`", "Return the height if the binary tree is balanced, -1 otherwise.", " :param root: Root node of the binary tree.\n :type root: binarytree.Node | None\n :return: Height if the binary tree is balanced, -1 otherwise.\n :rtype: int\n<END>", "<BEGIN>\n## `_is_bst`", "Chec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Generate a random binary tree and return its root node. :param height: Height of the tree (default: 3, range: 0 - 9 inclusive). :type height: int :param is_perfect: If set to True (default: False), a perfect binary tree with all levels filled is returned. If set to False, a perfect binary t...
"Generate a random binary tree and return its root node.\n\n :param height: Height of the tree (default: 3, range: 0 - 9 inclusive).\n :type height: int\n :param is_perfect: If set to True (default: False), a perfect binary tree\n with all levels filled is returned. If set to False, a perfect binary\n ...
132
false
joowani/binarytree
tree
28,449
LDU_FT/nwilming/ocupy/dict_fun
LDU_FT
[ "<BEGIN>\n## `path`", "Constructs the path to categories, images and features.", " This path function assumes that the following storage scheme is used on\n the hard disk to access categories, images and features:\n - categories: /impath/category\n - images: /impath/categ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict_fun API. 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 dict_fun API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Apply a function to all values in a dictionary, return a dictionary with results. Parameters ---------- data : dict a dictionary whose values are adequate input to the second argument of this function. function : function a function that takes one argument Returns ...
"Apply a function to all values in a dictionary, return a dictionary with\n results.\n\n Parameters\n ----------\n data : dict\n a dictionary whose values are adequate input to the second argument\n of this function. \n function : function\n a function that takes one argument\n\n ...
310
false
nwilming/ocupy
dict_fun
28,450
LDU_FT/openpermissions/perch/first
LDU_FT
[ "<BEGIN>\n## `collect`", "Import all modules inside the perch.migrations package and return the\n registered migrations\n<END>", "<BEGIN>\n## `run_migrations`", "Run migrations for a resource type", " :param: a dicitionary of migrations\n<END>", "<BEGIN>\n## `_migrate_resource`", "Migrate a resour...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the first API. 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 first API. 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...
Queries database for first result of view :return:
"Queries database for first result of view\n :return:"
177
false
openpermissions/perch
first
28,451
LDU_FT/cocoakekeyu/cancan/add
LDU_FT
[ "<BEGIN>\n## `is_relevant`", "Matches both the subject and action, not necessarily the conditions.\n<END>", "<BEGIN>\n## `add`", "Add ability are allowed using two arguments.", " The first one is the action you're setting the permission for,\n the second one is the class of object you're setti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. 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 add API. 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...
Add ability are allowed using two arguments. The first one is the action you're setting the permission for, the second one is the class of object you're setting it on. the third one is the subject's conditions must be matches or a function to be test. self.add('update', Article...
"Add ability are allowed using two arguments.\n\n The first one is the action you're setting the permission for,\n the second one is the class of object you're setting it on.\n the third one is the subject's conditions must be matches or a function\n to be test.\n\n self.add('update',...
15
false
cocoakekeyu/cancan
add
28,452
LDU_FT/iskandr/fancyimpute/nested_key_indices
LDU_FT
[ "<BEGIN>\n## `_svd_step`", "Returns reconstructed X from low-rank thresholded SVD and\n the rank achieved.\n<END>", "<BEGIN>\n## `fill`", "Parameters\n ----------\n X : np.array\n Data array containing NaN entries", " missing_mask : np.array\n Boolean array ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nested_key_indices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nested_key_indices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Give an ordering to the outer and inner keys used in a dictionary that maps to dictionaries.
"Give an ordering to the outer and inner keys used in a dictionary that\n maps to dictionaries."
137
false
iskandr/fancyimpute
nested_key_indices
28,453
LDU_FT/presslabs/z3/backup_full
LDU_FT
[ "<BEGIN>\n## `multipart_etag`", "Computes etag for multipart uploads\n :type digests: list of hex-encoded md5 sums (string)\n :param digests: The list of digests for each individual chunk.", " :rtype: string\n :returns: The etag computed from the individual chunks.\n<END>", "<BEGIN>\n## `get_chunk...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backup_full API. 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 backup_full API. 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...
Do a full backup of a snapshot. By default latest local snapshot
"Do a full backup of a snapshot. By default latest local snapshot"
22
false
presslabs/z3
backup_full
28,454
LDU_FT/rocky/python-filecache/size
LDU_FT
[ "<BEGIN>\n## `pyc2py`", "Find corresponding .py name given a .pyc or .pyo\n<END>", "<BEGIN>\n## `clear_file_cache`", "Clear the file cache. If no filename is given clear it entirely.\n if a filename is given, clear just that filename.\n<END>", "<BEGIN>\n## `clear_file_format_cache`", "Remove syntax-for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size API. 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 size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return the number of lines in filename. If `use_cache_only' is False, we'll try to fetch the file if it is not cached.
"Return the number of lines in filename. If `use_cache_only' is False,\n we'll try to fetch the file if it is not cached."
32
false
rocky/python-filecache
size
28,455
LDU_FT/tomi77/python-t77-date/start_of_day
LDU_FT
[ "<BEGIN>\n## `timedelta_to_seconds`", "Convert datetime.timedelta to seconds\n :param value: timedelta to convert\n :type value: datetime.timedelta\n :param with_microseconds:\n :type with_microseconds: bool\n :return: seconds/seconds with microseconds or None if val is None\n :rtype: int/float/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_of_day API. 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 start_of_day API. 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...
Return a new datetime.datetime object with values that represent a start of a day. :param val: Date to ... :type val: datetime.datetime | datetime.date :rtype: datetime.datetime
"Return a new datetime.datetime object with values that represent\n a start of a day.\n :param val: Date to ...\n :type val: datetime.datetime | datetime.date\n :rtype: datetime.datetime"
26
false
tomi77/python-t77-date
start_of_day
28,456
LDU_FT/earlye/nephele/do_template
LDU_FT
[ "<BEGIN>\n## `do_mfa`", "Enter a 6-digit MFA token. Nephele will execute the appropriate\n `aws` command line to authenticate that token. ", " mfa -h for more details\n<END>", "<BEGIN>\n## `do_up`", "Navigate up by one level.", " For example, if you are in `(aws)/stack:.../asg:.../`, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_template API. 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 do_template API. 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...
Print the template for the current stack. template -h for detailed help
"Print the template for the current stack. template -h for detailed help"
52
false
earlye/nephele
do_template
28,457
LDU_FT/ethpm/py-ethpm/apply_link_ref
LDU_FT
[ "<BEGIN>\n## `fetch_uri_contents`", "Return content-addressed URI stored at registry URI.\n<END>", "<BEGIN>\n## `pin_assets`", "Return a dict containing the IPFS hash, file name, and size of a file.\n<END>", "<BEGIN>\n## `create_content_addressed_github_uri`", "Returns a content-addressed Github \"git_url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_link_ref API. 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 apply_link_ref API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns the new bytecode with `value` put into the location indicated by `offset` and `length`.
"Returns the new bytecode with `value` put into the location indicated by `offset` and `length`."
133
false
ethpm/py-ethpm
apply_link_ref
28,458
LDU_FT/Azure/azure-cli-extensions/delete_frontdoor_resource_property_entry
LDU_FT
[ "<BEGIN>\n## `_retry`", "A function which determines whether and how to retry.", " :param ~azure.storage.models.RetryContext context: \n The retry context. This contains the request, response, and other data \n which can be used to determine whether or not to retry.\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_frontdoor_resource_property_entry API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_frontdoor_resource_property_entry API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
Factory method for creating delete functions.
"Factory method for creating delete functions."
472
false
Azure/azure-cli-extensions
delete_frontdoor_resource_property_entry
28,459
LDU_FT/doakey3/DashTable/get_column_width
LDU_FT
[ "<BEGIN>\n## `check_table`", "Ensure the table is valid for converting to grid table.", " * The table must a list of lists\n * Each row must contain the same number of columns\n * The table must not be empty", " Parameters\n ----------\n table : list of lists of str\n The list of rows...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_column_width API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_column_width API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get the character width of a column in a table Parameters ---------- column : int The column index analyze table : list of lists of str The table of rows of strings. For this to be accurate, each string must only be 1 line long. Returns ------- width : int
"Get the character width of a column in a table\n\n Parameters\n ----------\n column : int\n The column index analyze\n table : list of lists of str\n The table of rows of strings. For this to be accurate, each\n string must only be 1 line long.\n\n Returns\n -------\n widt...
230
false
doakey3/DashTable
get_column_width
28,460
LDU_FT/funkybob/knights-templater/use
LDU_FT
[ "<BEGIN>\n## `parseprint`", "Parse some code from a string and pretty-print it.\n<END>", "<BEGIN>\n## `tokenise`", "A generator which yields Token instances\n<END>", "<BEGIN>\n## `kompile`", "Creates a new class based on the supplied template, and returnsit.", " class Template(object):\n def _...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use API. 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 use API. 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...
Counterpart to `macro`, lets you render any block/macro in place.
"Counterpart to `macro`, lets you render any block/macro in place."
27
false
funkybob/knights-templater
use
28,461
LDU_FT/openego/ding0/init_mv_grid
LDU_FT
[ "<BEGIN>\n## `print_upper_triangular_matrix`", "Prints a CVRP data dict matrix", " Arguments\n ---------\n matrix : dict\n Description", " Notes\n -----\n It is assummed that the first row of matrix contains all needed headers.\n<END>", "<BEGIN>\n## `print_upper_triangular_matrix_as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_mv_grid API. 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 init_mv_grid API. 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...
Runs ding0 over the districtis selected in mv_grid_districts It also writes the result in filename. If filename = False, then the network is not saved. Parameters ---------- mv_grid_districts: :any:`list` of :obj:`int` Districts IDs: Defaults to [3545] filename: str Defaults to...
"Runs ding0 over the districtis selected in mv_grid_districts\n\n It also writes the result in filename. If filename = False,\n then the network is not saved.\n\n Parameters\n ----------\n mv_grid_districts: :any:`list` of :obj:`int`\n Districts IDs: Defaults to [3545]\n filename: str\n ...
932
false
openego/ding0
init_mv_grid
28,462
LDU_FT/greenelab/PathCORE-T/convert_pathway_mapping
LDU_FT
[ "<BEGIN>\n## `_load_significant_pathways_file`", "Read in the significant pathways file as a\n pandas.DataFrame.\n<END>", "<BEGIN>\n## `_pathway_feature_permutation`", "Permute the pathways across features for one side in the\n network. Used in `permute_pathways_across_features`", " Parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_pathway_mapping 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 convert_pathway_mapping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Used to convert the pathway-to-vertex id mapping in one CoNetwork to the one used in the current CoNetwork (`self`). The following tasks are carried out in the remapping: (1) If `self.pathways` contains the pathway to be merged, map the vertex id in `other_pathway_mapping` to the ver...
"Used to convert the pathway-to-vertex id mapping in one CoNetwork\n to the one used in the current CoNetwork (`self`).\n The following tasks are carried out in the remapping:\n (1) If `self.pathways` contains the pathway to be merged, map the\n vertex id in `other_pathway_mapping` to th...
82
false
greenelab/PathCORE-T
convert_pathway_mapping
28,463
LDU_FT/CartoDB/cartoframes/cssify
LDU_FT
[ "<BEGIN>\n## `get_scheme_cartocss`", "Get TurboCARTO CartoCSS based on input parameters\n<END>", "<BEGIN>\n## `custom`", "Create a custom scheme.", " Args:\n colors (list of str): List of hex values for styling data\n bins (int, optional): Number of bins to style by. If not given, the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cssify API. 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 cssify API. 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 ...
Function to get CartoCSS from Python dicts
"Function to get CartoCSS from Python dicts"
217
false
CartoDB/cartoframes
cssify
28,464
LDU_FT/perrygeo/simanneal/point
LDU_FT
[ "<BEGIN>\n## `distance`", "Calculates distance between two latitude-longitude coordinates.\n<END>", "<BEGIN>\n## `round_figures`", "Returns x rounded to n significant figures.\n<END>", "<BEGIN>\n## `set_schedule`", "Takes the output from `auto` and sets the attributes\n<END>", "<BEGIN>\n## `copy_state`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the point API. 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 point API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Creates/updates a point shape. The arguments allows you to update a specific point by shape, part, point of any shape type.
"Creates/updates a point shape. The arguments allows\r\n you to update a specific point by shape, part, point of any\r\n shape type."
67
false
perrygeo/simanneal
point
28,465
LDU_FT/freevoid/django-datafilters/is_empty
LDU_FT
[ "<BEGIN>\n## `split_in_columns`", "Return iterator that yields a column (iterator too).", " By default, flat field list is divided in columns with\n fields_per_column elements in each (fields_per_column is a\n class attribute).\n<END>", "<BEGIN>\n## `get_declared_fields`", "Create a list of form fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_empty API. 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 is_empty API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return `True` if form is valid and contains an empty lookup.
"Return `True` if form is valid and contains an empty lookup."
18
false
freevoid/django-datafilters
is_empty
28,466
LDU_FT/cloudtools/stacker/get_session
LDU_FT
[ "<BEGIN>\n## `handle`", "Returns the value of a key for a given hook in hook_data.", " Format of value:", " <hook_name>::<key>\n<END>", "<BEGIN>\n## `resolve_variables`", "Given a list of variables, resolve all of them.", " Args:\n variables (list of :class:`stacker.variables...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_session API. 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_session API. 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...
Creates a boto3 session with a cache Args: region (str): The region for the session profile (str): The profile for the session Returns: :class:`boto3.session.Session`: A boto3 session with credential caching
"Creates a boto3 session with a cache\n\n Args:\n region (str): The region for the session\n profile (str): The profile for the session\n\n Returns:\n :class:`boto3.session.Session`: A boto3 session with\n credential caching"
733
false
cloudtools/stacker
get_session
28,467
LDU_FT/marshallward/f90nml/_parse_variable
LDU_FT
[ "<BEGIN>\n## `write`", "Save a namelist to disk using either a file object or its file path.", " File object usage:", " >>> with open(nml_path, 'w') as nml_file:\n >>> f90nml.write(nml, nml_file)", " File path usage:", " >>> f90nml.write(nml, 'data.nml')", " This function is equiva...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_variable API. 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_variable API. 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 a variable and return its name and values.
"Parse a variable and return its name and values."
98
false
marshallward/f90nml
_parse_variable
28,468
LDU_FT/danilobellini/audiolazy/lpc
LDU_FT
[ "<BEGIN>\n## `deprecate`", "A deprecation warning emmiter as a decorator.\n<END>", "<BEGIN>\n## `get_module_names`", "All names in the package directory that matches the given glob, without\n their extension. Repeated names should appear only once.\n<END>", "<BEGIN>\n## `get_modules`", "List of module ob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lpc API. 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 lpc API. 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...
Find the Linear Predictive Coding (LPC) coefficients as a ZFilter object, the analysis whitening filter. This implementation uses the covariance method, assuming a zero-mean stochastic process, using numpy.linalg.pinv as a linear system solver.
"Find the Linear Predictive Coding (LPC) coefficients as a ZFilter object,\n the analysis whitening filter. This implementation uses the covariance\n method, assuming a zero-mean stochastic process, using numpy.linalg.pinv\n as a linear system solver."
578
false
danilobellini/audiolazy
lpc
28,469
LDU_FT/soravux/scoop/askForPreviousFutures
LDU_FT
[ "<BEGIN>\n## `_ensureAtomicity`", "Ensure atomicity of passed elements on the whole worker pool\n<END>", "<BEGIN>\n## `setConst`", "setConst(**kwargs)\n Set a constant that will be shared to every workers.", " :param **kwargs: One or more combination(s) key=value. Key being the\n variable name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the askForPreviousFutures 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 askForPreviousFutures API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Request a status for every future to the broker.
"Request a status for every future to the broker."
251
false
soravux/scoop
askForPreviousFutures
28,470
LDU_FT/kyb3r/dhooks/add_field
LDU_FT
[ "<BEGIN>\n## `close`", "Closes the file if the file was opened by :class:`File`,\n if not, this does nothing.", " Parameters\n ----------\n force: bool\n If set to :class:`True`, force close every file.\n<END>", "<BEGIN>\n## `set_title`", "Sets the title of the embed."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_field API. 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...
Adds an embed field. Parameters ---------- name: str Name attribute of the embed field. value: str Value attribute of the embed field. inline: bool Defaults to :class:`True`. Whether or not the embed should be inline.
"Adds an embed field.\n\n Parameters\n ----------\n name: str\n Name attribute of the embed field.\n\n value: str\n Value attribute of the embed field.\n\n inline: bool\n Defaults to :class:`True`.\n Whether or not the embed should be inline...
33
false
kyb3r/dhooks
add_field
28,471
LDU_FT/marten-de-vries/Flask-WebSub/intent_verified
LDU_FT
[ "<BEGIN>\n## `build_blueprint`", "Build a blueprint that contains the endpoints for callback URLs of\n the current subscriber. Only call this once per instance. Arguments:", " - url_prefix; this allows you to prefix the callback URLs in your app.\n<END>", "<BEGIN>\n## `unsubscribe`", "Ask the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intent_verified API. 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 intent_verified API. 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...
5.3 Hub Verifies Intent of the Subscriber
"5.3 Hub Verifies Intent of the Subscriber"
24
false
marten-de-vries/Flask-WebSub
intent_verified
28,472