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/nerdvegas/rez/escape_string
LDU_FT
[ "<BEGIN>\n## `add_node`", "Add given node to the graph.", " @attention: While nodes can be of any type, it's strongly recommended to use only\n numbers and single-line strings as node identifiers if you intend to use write().", " @type node: node\n @param node: Node identifier.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the escape_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the escape_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Escape the <, >, ^, and & special characters reserved by Windows. Args: value (str/EscapedString): String or already escaped string. Returns: str: The value escaped for Windows.
"Escape the <, >, ^, and & special characters reserved by Windows.\n\n Args:\n value (str/EscapedString): String or already escaped string.\n\n Returns:\n str: The value escaped for Windows."
2,330
true
nerdvegas/rez
escape_string
34,373
LDU_FT/smarie/python-autoclass/download_badge
LDU_FT
[ "<BEGIN>\n## `autohash`", "A decorator to makes objects of the class implement __hash__, so that they can be used correctly for example in\n sets.", " Parameters allow to customize the list of attributes that are taken into account in the hash.", " :param include: a tuple of explicit attribute names ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_badge API. 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 download_badge API. 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...
Downloads the badge corresponding to the provided success percentage, from https://img.shields.io. :param test_stats: :param dest_folder: :return:
"Downloads the badge corresponding to the provided success percentage, from https://img.shields.io.\n\n :param test_stats:\n :param dest_folder:\n :return:"
94
false
smarie/python-autoclass
download_badge
34,374
LDU_FT/minio/minio-py/xml_marshal_complete_multipart_upload
LDU_FT
[ "<BEGIN>\n## `run`", "Continously receive tasks and execute them\n<END>", "<BEGIN>\n## `result`", "Stop threads and return the result of all called tasks\n<END>", "<BEGIN>\n## `xml_marshal_bucket_constraint`", "Marshal's bucket constraint based on *region*.", " :param region: Region name of a given b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xml_marshal_complete_multipart_upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xml_marshal_complete_multipart_upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
Marshal's complete multipart upload request based on *uploaded_parts*. :param uploaded_parts: List of all uploaded parts, ordered by part number. :return: Marshalled XML data.
"Marshal's complete multipart upload request based on *uploaded_parts*.\n\n :param uploaded_parts: List of all uploaded parts, ordered by part number.\n :return: Marshalled XML data."
331
false
minio/minio-py
xml_marshal_complete_multipart_upload
34,375
LDU_FT/townsenddw/jhubctl/create_stack
LDU_FT
[ "<BEGIN>\n## `parse_command_line`", "Parse the jhubctl command line arguments.", " This overwrites traitlets' default `parse_command_line` method\n and tailors it to jhubctl's needs.\n<END>", "<BEGIN>\n## `define_parameters`", "Get a list of parameters to pass to AWS boto call.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_stack API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_stack API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Create a stack using Amazon's Cloud formation
"Create a stack using Amazon's Cloud formation"
31
false
townsenddw/jhubctl
create_stack
34,376
LDU_FT/mhe/pynrrd/_validate_magic_line
LDU_FT
[ "<BEGIN>\n## `format_number`", "Format number to string", " Function converts a number to string. For numbers of class :class:`float`, up to 17 digits will be used to print\n the entire floating point number. Any padding zeros will be removed at the end of the number.", " See :ref:`user-guide:int` an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_magic_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_magic_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. ...
For NRRD files, the first four characters are always "NRRD", and remaining characters give information about the file format version >>> _validate_magic_line('NRRD0005') 8 >>> _validate_magic_line('NRRD0006') Traceback (most recent call last): ... NrrdError: NRRD file version too new fo...
"For NRRD files, the first four characters are always \"NRRD\", and\n remaining characters give information about the file format version\n\n >>> _validate_magic_line('NRRD0005')\n 8\n >>> _validate_magic_line('NRRD0006')\n Traceback (most recent call last):\n ...\n NrrdError: NRRD file version...
77
false
mhe/pynrrd
_validate_magic_line
34,377
LDU_FT/naphatkrit/easyci/watch
LDU_FT
[ "<BEGIN>\n## `get_signature`", "Get the signature of the current state of the repository", " TODO right now `get_signature` is an effectful process in that\n it adds all untracked file to staging. This is the only way to get\n accruate diff on new files. This is ok because we only use it on...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watch API. 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 watch API. 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...
Watch the directory for changes. Automatically run tests.
"Watch the directory for changes. Automatically run tests."
94
false
naphatkrit/easyci
watch
34,378
LDU_FT/sdispater/cachy/_delete_forever_keys
LDU_FT
[ "<BEGIN>\n## `tag_id`", "Get the unique tag identifier for a given tag.", " :param name: The tag\n :type name: str", " :rtype: str\n<END>", "<BEGIN>\n## `reset_tag`", "Reset the tag and return the new tag identifier.", " :param name: The tag\n :type name: str", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _delete_forever_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _delete_forever_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Delete all of the items that were stored forever.
"Delete all of the items that were stored forever."
206
false
sdispater/cachy
_delete_forever_keys
34,379
LDU_FT/datajoint/datajoint-python/assert_join_compatibility
LDU_FT
[ "<BEGIN>\n## `is_foreign_key`", ":param line: a line from the table definition\n :return: true if the line appears to be a foreign key definition\n<END>", "<BEGIN>\n## `compile_foreign_key`", ":param line: a line from a table definition\n :param context: namespace containing referenced objects\n :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_join_compatibility 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 assert_join_compatibility API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Determine if expressions rel1 and rel2 are join-compatible. To be join-compatible, the matching attributes in the two expressions must be in the primary key of one or the other expression. Raises an exception if not compatible. :param rel1: A QueryExpression object :param rel2: A QueryExpression object
"Determine if expressions rel1 and rel2 are join-compatible. To be join-compatible, the matching attributes\n in the two expressions must be in the primary key of one or the other expression.\n Raises an exception if not compatible.\n :param rel1: A QueryExpression object\n :param rel2: A QueryExpression o...
198
false
datajoint/datajoint-python
assert_join_compatibility
34,380
LDU_FT/sci-bots/serial-device/OrEvent
LDU_FT
[ "<BEGIN>\n## `_comports`", "Returns\n -------\n pandas.DataFrame\n Table containing descriptor, and hardware ID of each available COM\n port, indexed by port (e.g., \"COM4\").\n<END>", "<BEGIN>\n## `comports`", ".. versionchanged:: 0.9\n Add :data:`check_available` keyword argument ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the OrEvent API. 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 OrEvent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Parameters ---------- events : list(threading.Event) List of events. Returns ------- threading.Event Event that is set when **at least one** of the events in :data:`events` is set.
"Parameters\n ----------\n events : list(threading.Event)\n List of events.\n\n Returns\n -------\n threading.Event\n Event that is set when **at least one** of the events in :data:`events`\n is set."
63
false
sci-bots/serial-device
OrEvent
34,381
LDU_FT/laike9m/pdir2/attr_category_postprocess
LDU_FT
[ "<BEGIN>\n## `search`", "Searches for names that match some pattern.", " Args:\n term: String used to match names. A name is returned if it matches\n the whole search term.\n case_sensitive: Boolean to match case or not, default is False\n (case insensitive...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attr_category_postprocess 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 attr_category_postprocess API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Unifies attr_category to a tuple, add AttrCategory.SLOT if needed.
"Unifies attr_category to a tuple, add AttrCategory.SLOT if needed."
24
false
laike9m/pdir2
attr_category_postprocess
34,382
LDU_FT/rbw/pysnow/suppress_pagination_header
LDU_FT
[ "<BEGIN>\n## `count`", "Returns the number of records the query would yield\n<END>", "<BEGIN>\n## `_all_inner`", "Yields all records for the query and follows links if present on the response after validating", " :return: List of records with content\n<END>", "<BEGIN>\n## `get_multiple`", "Wrappe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the suppress_pagination_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the suppress_pagination_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Enables or disables pagination header by setting `sysparm_suppress_pagination_header` :param suppress: bool
"Enables or disables pagination header by setting `sysparm_suppress_pagination_header`\n\n :param suppress: bool"
164
false
rbw/pysnow
suppress_pagination_header
34,383
LDU_FT/citronneur/rdpy/recvSecurityList
LDU_FT
[ "<BEGIN>\n## `update`", "Update view\n @param render: IRender\n @param force: force update\n<END>", "<BEGIN>\n## `expectWithHeader`", "2nd level of waiting event\n read expectedHeaderLen that contain body size\n @param expectedHeaderLen: contains the number of bytes, which body len...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recvSecurityList API. 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 recvSecurityList API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Read security list packet send from server to client @param data: Stream that contains well formed packet
"Read security list packet send from server to client\n @param data: Stream that contains well formed packet"
29
false
citronneur/rdpy
recvSecurityList
34,384
LDU_FT/cloudmesh/cloudmesh-common/banner
LDU_FT
[ "<BEGIN>\n## `names`", "The names defined in ~/.ssh/config\n :return: the names\n<END>", "<BEGIN>\n## `load`", "list the hosts defined in the ssh config file\n<END>", "<BEGIN>\n## `execute`", "execute the command on the named host\n :param name: the name of the host in config\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the banner API. 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 banner API. 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 ...
prints a banner of the form with a frame of # around the txt:: ############################ # txt ############################ :param color: prints in the given color :param label: adds a label :param debug: prints only if debug is true :param txt: a text message to be printed :t...
"prints a banner of the form with a frame of # around the txt::\n\n ############################\n # txt\n ############################\n\n :param color: prints in the given color\n :param label: adds a label\n :param debug: prints only if debug is true\n :param txt: a text message to be prin...
203
false
cloudmesh/cloudmesh-common
banner
34,385
LDU_FT/guyskk/flask-restaction/parse_request
LDU_FT
[ "<BEGIN>\n## `resp_json`", "Get JSON from response if success, raise requests.HTTPError otherwise.", " Args:\n resp: requests.Response or flask.Response\n Retuens:\n JSON value\n<END>", "<BEGIN>\n## `res_to_url`", "Convert resource.action to (url, HTTP_METHOD)\n<END>", "<BEGIN>\n## `_r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Parse request endpoint and return (resource, action)
"Parse request endpoint and return (resource, action)"
58
false
guyskk/flask-restaction
parse_request
34,386
LDU_FT/lark-parser/lark/parse
LDU_FT
[ "<BEGIN>\n## `dedup_list`", "Given a list (l) will removing duplicates from the list,\n preserving the original order of the list. Assumes that\n the list entrie are hashable.\n<END>", "<BEGIN>\n## `_parse`", "Parses sentence 's' using CNF grammar 'g'.\n<END>", "<BEGIN>\n## `get_any_nt_unit_rule...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parses input, which is a list of tokens.
"Parses input, which is a list of tokens."
55
false
lark-parser/lark
parse
34,387
LDU_FT/teddychoi/BynamoDB/query
LDU_FT
[ "<BEGIN>\n## `create_table`", "Create the table as the schema definition.\n<END>", "<BEGIN>\n## `update_item`", "Update item attributes. Currently SET and ADD actions are supported.\n<END>", "<BEGIN>\n## `query`", "High level query API.", " :param key_filter: key conditions of the query.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
High level query API. :param key_filter: key conditions of the query. :type key_filter: :class:`collections.Mapping` :param filter_builder: filter expression builder. :type filter_builder: :class:`~bynamodb.filterexps.Operator`
"High level query API.\n\n :param key_filter: key conditions of the query.\n :type key_filter: :class:`collections.Mapping`\n :param filter_builder: filter expression builder.\n :type filter_builder: :class:`~bynamodb.filterexps.Operator`"
20
false
teddychoi/BynamoDB
query
34,388
LDU_FT/honzamach/pynspect/compile_datetime
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse given data.", " data:\n A string containing the filter definition\n filename:\n Name of the file being parsed (for meaningful\n error messages)\n debuglevel:\n Debug level to yacc\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Compiler helper method: attempt to compile constant into object representing datetime object to enable relations and thus simple comparisons using Python operators.
"Compiler helper method: attempt to compile constant into object representing\n datetime object to enable relations and thus simple comparisons using Python\n operators."
143
false
honzamach/pynspect
compile_datetime
34,389
LDU_FT/singnet/snet-cli/_check_mpe_address_metadata
LDU_FT
[ "<BEGIN>\n## `list_my`", "Find organization that has the current identity as the owner or as the member\n<END>", "<BEGIN>\n## `is_group_name_exists`", "check if group with given name is already exists\n<END>", "<BEGIN>\n## `get_group_by_group_id`", "return group with given group_id (return None if doesn't...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_mpe_address_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_mpe_address_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
we make sure that MultiPartyEscrow address from metadata is correct
"we make sure that MultiPartyEscrow address from metadata is correct"
65
false
singnet/snet-cli
_check_mpe_address_metadata
34,390
LDU_FT/jay-johnson/spylunking/makePickle
LDU_FT
[ "<BEGIN>\n## `perform_exit`", "perform_exit", " Handling at-the-exit events\n ---------------------------", " This will cleanup each worker process which\n could be in the middle of a request/sleep/block\n action. This has been tested on python 3 with\n Celery and single processes.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makePickle API. 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 makePickle API. 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...
makePickle Convert a log record into a JSON dictionary packaged into a socket-ready message for a Splunk TCP Port configured that is set up with a JSON sourcetype :param record: log record to format as a socket-ready message
"makePickle\n\n Convert a log record into a JSON dictionary\n packaged into a socket-ready message for a Splunk\n TCP Port configured that is set up with a JSON sourcetype\n\n :param record: log record to format as a socket-ready message"
121
false
jay-johnson/spylunking
makePickle
34,391
LDU_FT/collectiveacuity/labPack/read_bucket
LDU_FT
[ "<BEGIN>\n## `_delete`", "a helper method for non-blocking deletion of files\r", " :param _file_path: string with path to file to remove \r\n :param _method_title: string with name of method calling _delete\r\n :param _record_key: string with name of record key to delete\r\n :return:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_bucket API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_bucket API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
a method to retrieve properties of a bucket in s3 :param bucket_name: string with name of bucket :return: dictionary with details of bucket
"a method to retrieve properties of a bucket in s3\n\n :param bucket_name: string with name of bucket\n :return: dictionary with details of bucket"
886
false
collectiveacuity/labPack
read_bucket
34,392
LDU_FT/bpython/curtsies/width_aware_slice
LDU_FT
[ "<BEGIN>\n## `tictactoe`", "Put two strategies to a classic battle of wits.\n<END>", "<BEGIN>\n## `memo`", "Return a function like f that remembers and reuses results of past calls.\n<END>", "<BEGIN>\n## `max_play`", "Play like Spock, except breaking ties by drunk_value.\n<END>", "<BEGIN>\n## `drunk_val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the width_aware_slice API. 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 width_aware_slice API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
>>> width_aware_slice(u'a\uff25iou', 0, 2)[1] == u' ' True
">>> width_aware_slice(u'a\\uff25iou', 0, 2)[1] == u' '\n True"
163
false
bpython/curtsies
width_aware_slice
34,393
LDU_FT/MonashBI/arcana/contents_equal
LDU_FT
[ "<BEGIN>\n## `satisfy`", "Checks whether the given requirements are satisfiable within the given\n execution context", " Parameter\n ---------\n requirements : list(Requirement)\n List of requirements to check whether they are satisfiable\n<END>", "<BEGIN>\n## `connect`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contents_equal API. 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 contents_equal API. 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...
Test the equality of the fileset contents with another fileset. If the fileset's format implements a 'contents_equal' method than that is used to determine the equality, otherwise a straight comparison of the checksums is used. Parameters ---------- other : Fileset ...
"Test the equality of the fileset contents with another fileset. If the\n fileset's format implements a 'contents_equal' method than that is used\n to determine the equality, otherwise a straight comparison of the\n checksums is used.\n\n Parameters\n ----------\n other : Files...
275
false
MonashBI/arcana
contents_equal
34,394
LDU_FT/bkg/django-spillway/arrays
LDU_FT
[ "<BEGIN>\n## `make_dbsource`", "Returns a mapnik PostGIS or SQLite Datasource.\n<END>", "<BEGIN>\n## `layer`", "Returns a map Layer.", " Arguments:\n queryset -- QuerySet for Layer\n Keyword args:\n stylename -- str name of style to apply\n<END>", "<BEGIN>\n## `zoom_bbox`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arrays API. 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 arrays API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns a list of ndarrays. Keyword args: field_name -- raster field name as str
"Returns a list of ndarrays.\n\n Keyword args:\n field_name -- raster field name as str"
57
false
bkg/django-spillway
arrays
34,395
LDU_FT/dsoprea/NsqSpinner/__read_frame
LDU_FT
[ "<BEGIN>\n## `__send_rdy`", "Determine the RDY value, and set it. It can either be a static value\n a callback, or None. If it's None, we'll calculate the value based on\n our limits and connection counts.", " The documentation recommends starting with (1), but since we are always\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __read_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __read_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
*Attempt* to read a frame. If we get an EAGAIN on the frame header, it'll raise to our caller. If we get it *after* we already got the header, wait-out the rest of the frame.
"*Attempt* to read a frame. If we get an EAGAIN on the frame header, \n it'll raise to our caller. If we get it *after* we already got the \n header, wait-out the rest of the frame."
50
false
dsoprea/NsqSpinner
__read_frame
34,396
LDU_FT/seleniumbase/SeleniumBase/switch_to_frame
LDU_FT
[ "<BEGIN>\n## `generate_application_string`", "Generate an application string based on some of the given information\n that can be pulled from the test object: app_env, start_time.\n<END>", "<BEGIN>\n## `_filter_xpath_grouping`", "This method removes the outer parentheses for xpath grouping.\n Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the switch_to_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the switch_to_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Sets driver control to the specified browser frame.
"Sets driver control to the specified browser frame."
362
false
seleniumbase/SeleniumBase
switch_to_frame
34,397
LDU_FT/pvlib/pvlib-python/get_ecmwf_macc
LDU_FT
[ "<BEGIN>\n## `systemdef`", "Generates a dict of system parameters used throughout a simulation.", " Parameters\n ----------", " meta : dict\n meta dict either generated from a TMY file using readtmy2 or\n readtmy3, or a dict containing at least the following fields:", " ===...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ecmwf_macc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ecmwf_macc API. 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...
Download data from ECMWF MACC Reanalysis API. Parameters ---------- filename : str full path of file where to save data, ``.nc`` appended if not given params : str or sequence of str keynames of parameter[s] to download startdate : datetime.datetime or datetime.date UTC date...
"Download data from ECMWF MACC Reanalysis API.\n\n Parameters\n ----------\n filename : str\n full path of file where to save data, ``.nc`` appended if not given\n params : str or sequence of str\n keynames of parameter[s] to download\n startdate : datetime.datetime or datetime.date\n ...
1,499
true
pvlib/pvlib-python
get_ecmwf_macc
34,398
LDU_FT/tomer8007/kik-bot-api-unofficial/_handle_xmpp_message
LDU_FT
[ "<BEGIN>\n## `_connect`", "Runs the kik connection thread, which creates an encrypted (SSL based) TCP connection\n to the kik servers.\n<END>", "<BEGIN>\n## `_on_connection_made`", "Gets called when the TCP connection to kik's servers is done and we are connected.\n Now we might initiate a login...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_xmpp_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_xmpp_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
a XMPP 'message' in the case of Kik is the actual stanza we receive when someone sends us a message (weather groupchat or not), starts typing, stops typing, reads our message, etc. Examples: http://slixmpp.readthedocs.io/api/stanza/message.html :param xmpp_message: The XMPP 'message' element we ...
"a XMPP 'message' in the case of Kik is the actual stanza we receive when someone sends us a message\n (weather groupchat or not), starts typing, stops typing, reads our message, etc.\n Examples: http://slixmpp.readthedocs.io/api/stanza/message.html\n :param xmpp_message: The XMPP 'message' element...
96
false
tomer8007/kik-bot-api-unofficial
_handle_xmpp_message
34,399
LDU_FT/pudo-attic/scrapekit/collapse_whitespace
LDU_FT
[ "<BEGIN>\n## `log_path`", "Determine the file name for the JSON log.\n<END>", "<BEGIN>\n## `make_logger`", "Create two log handlers, one to output info-level ouput to the\n console, the other to store all logging in a JSON file which will\n later be used to generate reports.\n<END>", "<BEGIN>\n## `_ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collapse_whitespace 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 collapse_whitespace 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...
Collapse all consecutive whitespace, newlines and tabs in a string into single whitespaces, and strip the outer whitespace. This will also accept an ``lxml`` element and extract all text.
"Collapse all consecutive whitespace, newlines and tabs\n in a string into single whitespaces, and strip the outer\n whitespace. This will also accept an ``lxml`` element and\n extract all text."
33
false
pudo-attic/scrapekit
collapse_whitespace
34,400
LDU_FT/bpython/curtsies/render_to_terminal
LDU_FT
[ "<BEGIN>\n## `tictactoe`", "Put two strategies to a classic battle of wits.\n<END>", "<BEGIN>\n## `memo`", "Return a function like f that remembers and reuses results of past calls.\n<END>", "<BEGIN>\n## `max_play`", "Play like Spock, except breaking ties by drunk_value.\n<END>", "<BEGIN>\n## `drunk_val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_to_terminal 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 render_to_terminal 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...
Renders array to terminal and places (0-indexed) cursor Args: array (FSArray): Grid of styled characters to be rendered. * If array received is of width too small, render it anyway * If array received is of width too large, * render the renderable portion * If array...
"Renders array to terminal and places (0-indexed) cursor\n\n Args:\n array (FSArray): Grid of styled characters to be rendered.\n\n * If array received is of width too small, render it anyway\n * If array received is of width too large,\n * render the renderable portion\n *...
163
false
bpython/curtsies
render_to_terminal
34,401
LDU_FT/cknoll/ipydex/save_current_nb_as_html
LDU_FT
[ "<BEGIN>\n## `format_frameinfo`", "Takes a frameinfo object (from the inspect module)", " returns a properly formated string\n<END>", "<BEGIN>\n## `IPS`", "Starts IPython embedded shell. This is similar to IPython.embed() but with some\n additional features:", " 1. Print a list of the calling fra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_current_nb_as_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_current_nb_as_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Save the current notebook as html file in the same directory
"Save the current notebook as html file in the same directory"
45
false
cknoll/ipydex
save_current_nb_as_html
34,402
LDU_FT/dhylands/rshell/is_root_path
LDU_FT
[ "<BEGIN>\n## `add_device`", "Adds a device to the list of devices we know about.\n<END>", "<BEGIN>\n## `is_micropython_usb_device`", "Checks a USB device to see if it looks like a MicroPython device.\n<END>", "<BEGIN>\n## `is_micropython_usb_port`", "Checks to see if the indicated portname is a MicroPytho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_root_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_root_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 extr...
Determines if 'filename' corresponds to a directory on this device.
"Determines if 'filename' corresponds to a directory on this device."
159
false
dhylands/rshell
is_root_path
34,403
LDU_FT/openeventdata/mordecai/batch_geoparse
LDU_FT
[ "<BEGIN>\n## `country_list_maker`", "Helper function to return dictionary of countries in {\"country\" : \"iso\"} form.\n<END>", "<BEGIN>\n## `make_skip_list`", "Return hand-defined list of place names to skip and not attempt to geolocate. If users would like to exclude\n country names, this would be the f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_geoparse API. 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 batch_geoparse API. 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...
Batch geoparsing function. Take in a list of text documents and return a list of lists of the geoparsed documents. The speed improvements come exclusively from using spaCy's `nlp.pipe`. Parameters ---------- text_list : list of strs List of documents. The documents should no...
"Batch geoparsing function. Take in a list of text documents and return a list of lists\n of the geoparsed documents. The speed improvements come exclusively from using spaCy's `nlp.pipe`.\n\n Parameters\n ----------\n text_list : list of strs\n List of documents. The documents sh...
110
false
openeventdata/mordecai
batch_geoparse
34,404
LDU_FT/bastibe/SoundFile/_open
LDU_FT
[ "<BEGIN>\n## `read`", "Provide audio data from a sound file as NumPy array.", " By default, the whole file is read from the beginning, but the\n position to start reading can be specified with `start` and the\n number of frames to read can be specified with `frames`.\n Alternatively, a range can be ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Call the appropriate sf_open*() function from libsndfile.
"Call the appropriate sf_open*() function from libsndfile."
139
false
bastibe/SoundFile
_open
34,405
LDU_FT/robotframework/Rammbock/decorator
LDU_FT
[ "<BEGIN>\n## `log_background_messages`", "Forwards messages logged on background to Robot Framework log.", " By default forwards all messages logged by all threads, but can be\n limited to a certain thread by passing thread's name as an argument.", " Logged messages are removed from the m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decorator API. 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 decorator API. 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...
decorator(caller) converts a caller function into a decorator
"decorator(caller) converts a caller function into a decorator"
234
false
robotframework/Rammbock
decorator
34,406
LDU_FT/xflr6/gsheets/base26
LDU_FT
[ "<BEGIN>\n## `write_csv`", "Dump rows to ``fileobj`` with the given ``encoding`` and CSV ``dialect``.\n<END>", "<BEGIN>\n## `write_dataframe`", "Dump ``rows`` to string buffer and load with ``pandas.read_csv()`` using ``kwargs``.\n<END>", "<BEGIN>\n## `from_string`", "Return a new SheetUrl instance from p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the base26 API. 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 base26 API. 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 positive ``int`` ``x`` as string in bijective base26 notation. >>> [base26(i) for i in [0, 1, 2, 26, 27, 28, 702, 703, 704]] ['', 'A', 'B', 'Z', 'AA', 'AB', 'ZZ', 'AAA', 'AAB'] >>> base26(344799) # 19 * 26**3 + 16 * 26**2 + 1 * 26**1 + 13 * 26**0 'SPAM' >>> base26(256) 'IV'
"Return positive ``int`` ``x`` as string in bijective base26 notation.\n\n >>> [base26(i) for i in [0, 1, 2, 26, 27, 28, 702, 703, 704]]\n ['', 'A', 'B', 'Z', 'AA', 'AB', 'ZZ', 'AAA', 'AAB']\n\n >>> base26(344799) # 19 * 26**3 + 16 * 26**2 + 1 * 26**1 + 13 * 26**0\n 'SPAM'\n\n >>> base26(256)\n 'IV'"
93
false
xflr6/gsheets
base26
34,407
LDU_FT/dustin/twitty-twister/makeConnection
LDU_FT
[ "<BEGIN>\n## `__downloadPage`", "Start a HTTP download, returning a HTTPDownloader object\n<END>", "<BEGIN>\n## `__encodeMultipart`", "fields is a sequence of (name, value) elements for regular form fields.\n files is a sequence of (name, filename, value) elements for data to be uploaded as files\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeConnection API. 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 makeConnection API. 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...
Called when the connection has been established. This method is called when an HTTP 200 response has been received, with the protocol that decodes the individual Twitter stream elements. That protocol will call the consumer for all Twitter entries received. The protocol, stored in L{pr...
"Called when the connection has been established.\n\n This method is called when an HTTP 200 response has been received,\n with the protocol that decodes the individual Twitter stream elements.\n That protocol will call the consumer for all Twitter entries received.\n\n The protocol, stored ...
93
false
dustin/twitty-twister
makeConnection
34,408
LDU_FT/common-workflow-language/workflow-service/run
LDU_FT
[ "<BEGIN>\n## `get_version`", "Determines the version of a .py, .wdl, or .cwl file.\n<END>", "<BEGIN>\n## `wf_info`", "Returns the version of the file and the file extension.", " Assumes that the file path is to the file directly ie, ends with a valid file extension.Supports checking local\n files as w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Composes and sends a post request that signals the wes server to run a workflow. :param str workflow_file: A local/http/https path to a cwl/wdl/python workflow file. :param str jsonyaml: A local path to a json or yaml file. :param list attachments: A list of local paths to files that will be up...
"Composes and sends a post request that signals the wes server to run a workflow.\n\n :param str workflow_file: A local/http/https path to a cwl/wdl/python workflow file.\n :param str jsonyaml: A local path to a json or yaml file.\n :param list attachments: A list of local paths to files that will ...
53
false
common-workflow-language/workflow-service
run
34,409
LDU_FT/adafruit/Adafruit_Python_LED_Backpack/set_image
LDU_FT
[ "<BEGIN>\n## `set_pixel`", "Set pixel at position x, y to the given value. X and Y should be values\n of 0 to 8. Value should be OFF, GREEN, RED, or YELLOW.\n<END>", "<BEGIN>\n## `set_image`", "Set display buffer to Python Image Library image. Red pixels (r=255,\n g=0, b=0) will map to red LE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_image API. 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 set_image API. 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...
Set display buffer to Python Image Library image. Image will be converted to 1 bit color and non-zero color values will light the LEDs.
"Set display buffer to Python Image Library image. Image will be converted\n to 1 bit color and non-zero color values will light the LEDs."
57
false
adafruit/Adafruit_Python_LED_Backpack
set_image
34,410
LDU_FT/lambdamusic/Ontospy/action_jsonld_playground
LDU_FT
[ "<BEGIN>\n## `main_cli`", "Ontospy allows to extract and visualise ontology information included in RDF data. Use one of the commands listed below to find out more, or visit http://lambdamusic.github.io/ontospy\n<END>", "<BEGIN>\n## `scan`", "SCAN: get ontology data from RDF source and print out a report.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the action_jsonld_playground API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the action_jsonld_playground API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Util: sends a json-ld file to the awesome https://json-ld.org/playground/
"Util: sends a json-ld file to the awesome https://json-ld.org/playground/"
360
false
lambdamusic/Ontospy
action_jsonld_playground
34,411
LDU_FT/ska-sa/spead2/_write_bits
LDU_FT
[ "<BEGIN>\n## `add_to_heap`", "Update a heap to contains all the new items and item descriptors\n since the last call.", " Parameters\n ----------\n heap : :py:class:`Heap`\n The heap to update.\n descriptors : {'stale', 'all', 'none'}\n Which descriptors ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_bits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_bits API. 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...
Generator that fills a `bytearray` with provided bits. After creating the generator, call `send(None)` to initialise it, and thereafter call `send((value, bits))` to add that many bits into the array. You must call `close()` to flush any partial bytes.
"Generator that fills a `bytearray` with provided bits. After\n creating the generator, call `send(None)` to initialise it, and\n thereafter call `send((value, bits))` to add that many bits into\n the array. You must call `close()` to flush any partial bytes."
43
false
ska-sa/spead2
_write_bits
34,412
LDU_FT/bitlabstudio/django-review/total_review_average
LDU_FT
[ "<BEGIN>\n## `get_reviews`", "Simply returns the reviews for an object.\n<END>", "<BEGIN>\n## `get_review_average`", "Returns the review average for an object.\n<END>", "<BEGIN>\n## `render_category_averages`", "Renders all the sub-averages for each category.\n<END>", "<BEGIN>\n## `total_review_average`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the total_review_average 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 total_review_average API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns the average for all reviews of the given object.
"Returns the average for all reviews of the given object."
10
false
bitlabstudio/django-review
total_review_average
34,413
LDU_FT/mozilla-services/amo2kinto/write_gfx_items
LDU_FT
[ "<BEGIN>\n## `is_related_to`", "Return True if the item relates to the given app_id (and app_ver, if passed).\n<END>", "<BEGIN>\n## `get_related_targetApplication`", "Return the first matching target application in this version range.\n Returns None if there are no target applications or no matching ones.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_gfx_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_gfx_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 e...
Generate the gfxBlacklistEntry. <gfxBlacklistEntry blockID="g35"> <os>WINNT 6.1</os> <vendor>0x10de</vendor> <devices> <device>0x0a6c</device> </devices> <feature>DIRECT2D</feature> <featureStatus>BLOCKED_DRIVER_VERSION</featureStatus> <driverVers...
"Generate the gfxBlacklistEntry.\n\n <gfxBlacklistEntry blockID=\"g35\">\n <os>WINNT 6.1</os>\n <vendor>0x10de</vendor>\n <devices>\n <device>0x0a6c</device>\n </devices>\n <feature>DIRECT2D</feature>\n <featureStatus>BLOCKED_DRIVER_VERSION</featureStatus>\n ...
24
false
mozilla-services/amo2kinto
write_gfx_items
34,414
LDU_FT/robmcmullen/atrcopy/get_raw_index
LDU_FT
[ "<BEGIN>\n## `text_to_int`", "Convert text to int, raising exeception on invalid input\n<END>", "<BEGIN>\n## `assign_sector_numbers`", "Map out the sectors and link the sectors together", " raises NotEnoughSpaceOnDisk if the whole file won't fit. It will not\n allow partial writes.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_raw_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_raw_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get index into base array's raw data, given the index into this segment
"Get index into base array's raw data, given the index into this\n segment"
73
false
robmcmullen/atrcopy
get_raw_index
34,415
LDU_FT/openfisca/openfisca-france-indirect-taxation/wavg
LDU_FT
[ "<BEGIN>\n## `calcul_ratios_calage`", "Fonction qui calcule les ratios de calage (bdf sur cn pour année de données) et de vieillissement\n à partir des masses de comptabilité nationale et des masses de consommation de bdf.\n<END>", "<BEGIN>\n## `get_bdf_data_frames`", "Récupère les dépenses de budget des f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wavg API. 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 wavg API. 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...
Fonction qui calcule la moyenne pondérée par groupe d'une variable
"Fonction qui calcule la moyenne pondérée par groupe d'une variable"
36
false
openfisca/openfisca-france-indirect-taxation
wavg
34,416
LDU_FT/czielinski/portfolioopt/tangency_portfolio
LDU_FT
[ "<BEGIN>\n## `markowitz_portfolio`", "Computes a Markowitz portfolio.", " Parameters\n ----------\n cov_mat: pandas.DataFrame\n Covariance matrix of asset returns.\n exp_rets: pandas.Series\n Expected asset returns (often historical returns).\n target_ret: float\n Target retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tangency_portfolio 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 tangency_portfolio 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...
Computes a tangency portfolio, i.e. a maximum Sharpe ratio portfolio. Note: As the Sharpe ratio is not invariant with respect to leverage, it is not possible to construct non-trivial market neutral tangency portfolios. This is because for a positive initial Sharpe ratio the sharpe grows unbound ...
"Computes a tangency portfolio, i.e. a maximum Sharpe ratio portfolio.\n \n Note: As the Sharpe ratio is not invariant with respect\n to leverage, it is not possible to construct non-trivial\n market neutral tangency portfolios. This is because for\n a positive initial Sharpe ratio the sharpe grows unbou...
24
false
czielinski/portfolioopt
tangency_portfolio
34,417
LDU_FT/sunt05/SuPy/geometric2geopotential
LDU_FT
[ "<BEGIN>\n## `_path_insensitive`", "Recursive part of path_insensitive to do the work.\n<END>", "<BEGIN>\n## `url_is_alive`", "Checks that a given URL is reachable.\n :param url: A URL\n :rtype: bool\n<END>", "<BEGIN>\n## `form_option`", "generate option name based suffix for URL", " :param str...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the geometric2geopotential 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 geometric2geopotential API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Converts geometric height to geopoential height Parameters ---------- z : float Geometric height (meters) latitude : float Latitude (degrees) Returns ------- h : float Geopotential Height (meters) above the reference ellipsoid
"Converts geometric height to geopoential height\n\n Parameters\n ----------\n z : float\n Geometric height (meters)\n latitude : float\n Latitude (degrees)\n\n Returns\n -------\n h : float\n Geopotential Height (meters) above the reference ellipsoid"
143
false
sunt05/SuPy
geometric2geopotential
34,418
LDU_FT/biocore/burrito/getTmpFilename
LDU_FT
[ "<BEGIN>\n## `which`", "Equivalent to ``which executable_name`` in a *nix environment.", " Will return ``None`` if ``executable_name`` cannot be found in ``env_var``\n or if ``env_var`` is not set. Otherwise will return the first match in\n ``env_var``.", " Note: this function will likely not work...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getTmpFilename API. 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 getTmpFilename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a temp filename tmp_dir: directory where temporary files will be stored prefix: text to append to start of file name suffix: text to append to end of file name include_class_id: if True, will append a class identifier (built from the class name) to th...
"Return a temp filename\n\n tmp_dir: directory where temporary files will be stored\n prefix: text to append to start of file name\n suffix: text to append to end of file name\n include_class_id: if True, will append a class identifier (built\n from the class name...
43
false
biocore/burrito
getTmpFilename
34,419
LDU_FT/bitcraze/crazyflie-lib-python/_parse_and_check_header
LDU_FT
[ "<BEGIN>\n## `set_group_mask`", "Set the group mask that the Crazyflie belongs to", " :param group_mask: mask for which groups this CF belongs to\n<END>", "<BEGIN>\n## `takeoff`", "vertical takeoff from current x-y position to given height", " :param absolute_height_m: absolut (m)\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_and_check_header 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_and_check_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Parse and check the CRC of the header part of the memory
"Parse and check the CRC of the header part of the memory"
312
false
bitcraze/crazyflie-lib-python
_parse_and_check_header
34,420
LDU_FT/edx/edx-val/export_to_xml
LDU_FT
[ "<BEGIN>\n## `generate_sjson_from_srt`", "Generate transcripts from sjson to SubRip (*.srt).", " Arguments:\n srt_subs(SubRip): \"SRT\" subs object", " Returns:\n Subs converted to \"SJSON\" format.\n<END>", "<BEGIN>\n## `generate_srt_from_sjson`", "Generate transcripts...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_to_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_to_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Exports data for a video into an xml object. NOTE: For external video ids, only transcripts information will be added into xml. If external=False, then edx_video_id is going to be on first index of the list. Arguments: video_id (str): Video id of the video to export transcripts. cour...
"Exports data for a video into an xml object.\n\n NOTE: For external video ids, only transcripts information will be added into xml.\n If external=False, then edx_video_id is going to be on first index of the list.\n\n Arguments:\n video_id (str): Video id of the video to export transcripts.\n ...
197
false
edx/edx-val
export_to_xml
34,421
LDU_FT/yunojuno/elasticsearch-django/page_slice
LDU_FT
[ "<BEGIN>\n## `execute_search`", "Create a new SearchQuery instance and execute a search against ES.", " Args:\n search: elasticsearch.search.Search object, that internally contains\n the connection and query; this is the query that is executed. All\n we are doing is logging the i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the page_slice API. 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 page_slice API. 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 the query from:size tuple (0-based).
"Return the query from:size tuple (0-based)."
124
false
yunojuno/elasticsearch-django
page_slice
34,422
LDU_FT/byu-dml/metalearn/list_metafeatures
LDU_FT
[ "<BEGIN>\n## `get_canonical_correlations`", "computes the correlation coefficient between each distinct pairing of columns\n preprocessing note:\n any rows with missing values (in either paired column) are dropped for that pairing\n categorical columns are replaced with one-hot encoded columns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_metafeatures API. 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 list_metafeatures API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns a list of metafeatures computable by the Metafeatures class.
"Returns a list of metafeatures computable by the Metafeatures class."
14
false
byu-dml/metalearn
list_metafeatures
34,423
LDU_FT/bwhite/hadoopy/check_call
LDU_FT
[ "<BEGIN>\n## `__add_options`", "Add the `Makespec` options to a option-parser instance or a\n option group.\n<END>", "<BEGIN>\n## `exec_python`", "Wrap running python script in a subprocess.", " Return stdout of the invoked command.\n<END>", "<BEGIN>\n## `exec_python_rc`", "Wrap running python scr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the Popen constructor. Example: check_call...
"Run command with arguments. Wait for command to complete. If\n the exit code was zero then return, otherwise raise\n CalledProcessError. The CalledProcessError object will have the\n return code in the returncode attribute.\n\n The arguments are the same as for the Popen constructor. Example:\n\n ch...
610
false
bwhite/hadoopy
check_call
34,424
LDU_FT/joeyespo/grip/render_content
LDU_FT
[ "<BEGIN>\n## `_get_style_urls`", "Gets the specified resource and parses all style URLs and their\n assets in the form of the specified patterns.\n<END>", "<BEGIN>\n## `_cache_contents`", "Fetches the given URLs and caches their contents\n and their assets in the given directory.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_content API. 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 render_content API. 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...
Renders the specified markup and returns the result.
"Renders the specified markup and returns the result."
77
false
joeyespo/grip
render_content
34,425
LDU_FT/jealous/stockstats/retype
LDU_FT
[ "<BEGIN>\n## `_get_p`", "get the permutation of specified range\r", " example:\r\n index x x_-2,-1_p\r\n 0 1 NaN\r\n 1 -1 NaN\r\n 2 3 2 (0.x > 0, and assigned to weight 2)\r\n 3 5 1 (2.x > 0, and assi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retype API. 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 retype API. 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 ...
if the input is a `DataFrame`, convert it to this class. :param index_column: the column that will be used as index, default to `date` :param value: value to convert :return: this extended class
"if the input is a `DataFrame`, convert it to this class.\r\n\r\n :param index_column: the column that will be used as index,\r\n default to `date`\r\n :param value: value to convert\r\n :return: this extended class"
84
false
jealous/stockstats
retype
34,426
LDU_FT/junaruga/rpm-py-installer/is_python_binding_installed
LDU_FT
[ "<BEGIN>\n## `download_and_install`", "Download and install RPM Python binding.\n<END>", "<BEGIN>\n## `add_patchs_to_build_without_pkg_config`", "Add patches to remove pkg-config command and rpm.pc part.", " Replace with given library_path: lib_dir and include_path: include_dir\n without rpm.p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_python_binding_installed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_python_binding_installed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Check if the Python binding has already installed. Consider below cases. - pip command is not installed. - The installed RPM Python binding does not have information showed as a result of pip list.
"Check if the Python binding has already installed.\n\n Consider below cases.\n - pip command is not installed.\n - The installed RPM Python binding does not have information\n showed as a result of pip list."
67
false
junaruga/rpm-py-installer
is_python_binding_installed
34,427
LDU_FT/evansloan/sports.py/_parse_match_info
LDU_FT
[ "<BEGIN>\n## `get_team`", "Get extra info that pertains to a certain team.\n Info available to all teams:\n - name: Name of the team\n - seasons: Number of seasons played\n - record: Overall record\n - champs: Number of championships won\n - leaders: S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_match_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_match_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Parse string containing info of a specific match :param match: Match data :type match: string :param soccer: Set to true if match contains soccer data, defaults to False :type soccer: bool, optional :return: Dictionary containing match information :rtype: dict
"Parse string containing info of a specific match\n\n :param match: Match data\n :type match: string\n :param soccer: Set to true if match contains soccer data, defaults to False\n :type soccer: bool, optional\n :return: Dictionary containing match information\n :rtype: dict"
23
false
evansloan/sports.py
_parse_match_info
34,428
LDU_FT/dask/dask-kubernetes/format_labels
LDU_FT
[ "<BEGIN>\n## `_set_k8s_attribute`", "Set a specific value on a kubernetes object's attribute", " obj\n an object from Kubernetes Python API client\n attribute\n Should be a Kubernetes API style attribute (with camelCase)\n value\n Can be anything (string, list, dict, k8s objects) t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_labels API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_labels API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Convert a dictionary of labels into a comma separated string
"Convert a dictionary of labels into a comma separated string"
55
false
dask/dask-kubernetes
format_labels
34,429
LDU_FT/LudovicRousseau/pyscard/OnRemoveCards
LDU_FT
[ "<BEGIN>\n## `translateprotocolmask`", "Translate CardConnection protocol mask into PCSC protocol mask.\n<END>", "<BEGIN>\n## `translateprotocolheader`", "Translate protocol into PCSC protocol header.\n<END>", "<BEGIN>\n## `connect`", "Connect to the card.", " If protocol is not specified, connec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the OnRemoveCards API. 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 OnRemoveCards API. 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...
Called when a card is removed. Removes the card from the tree.
"Called when a card is removed.\n Removes the card from the tree."
164
false
LudovicRousseau/pyscard
OnRemoveCards
34,430
LDU_FT/lorien/grab/set
LDU_FT
[ "<BEGIN>\n## `get_item`", "Returned item should have specific interface. See module docstring.\n<END>", "<BEGIN>\n## `has_item`", "Test if required item exists in the cache.\n<END>", "<BEGIN>\n## `build_grab_exception`", "Build Grab exception from the pycurl exception", " Args:\n ex - the orig...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. 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 set API. 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 new cookie or replace existing cookie with same parameters. :param name: name of cookie :param value: value of cookie :param kwargs: extra attributes of cookie
"Add new cookie or replace existing cookie with same parameters.\n\n :param name: name of cookie\n :param value: value of cookie\n :param kwargs: extra attributes of cookie"
188
false
lorien/grab
set
34,431
LDU_FT/atarashansky/self-assembling-manifold/plot_correlated_genes
LDU_FT
[ "<BEGIN>\n## `preprocess_data`", "Log-normalizes and filters the expression data.", " Parameters\n ----------", " div : float, optional, default 1\n The factor by which the gene expression will be divided prior to\n log normalization.", " downsample : float,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_correlated_genes 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 plot_correlated_genes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Plots gene expression patterns correlated with the input gene. Parameters ---------- name - string The name of the gene with respect to which correlated gene expression patterns will be displayed. n_genes - int, optional, default 5 The number of top ...
"Plots gene expression patterns correlated with the input gene.\n\n Parameters\n ----------\n name - string\n The name of the gene with respect to which correlated gene\n expression patterns will be displayed.\n\n n_genes - int, optional, default 5\n The numb...
125
false
atarashansky/self-assembling-manifold
plot_correlated_genes
34,432
LDU_FT/grahambell/pymoc/copy
LDU_FT
[ "<BEGIN>\n## `run`", "Main run method for PyMOC tool.", " Takes a list of command line arguments to process.", " Each operation is performed on a current \"running\" MOC\n object.\n<END>", "<BEGIN>\n## `read_moc`", "Read a file into the current running MOC object.", " If the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return a copy of a MOC. >>> p = MOC(4, (5, 6)) >>> q = p.copy() >>> repr(q) '<MOC: [(4, [5, 6])]>'
"Return a copy of a MOC.\n\n >>> p = MOC(4, (5, 6))\n >>> q = p.copy()\n >>> repr(q)\n '<MOC: [(4, [5, 6])]>'"
165
false
grahambell/pymoc
copy
34,433
LDU_FT/krinj/k-util/distance
LDU_FT
[ "<BEGIN>\n## `interpolate_color`", "Linear interpolate two 3-channel colors, using channel based interpolation.\n<END>", "<BEGIN>\n## `interpolate`", "Linearly interpolate between two float values.\n<END>", "<BEGIN>\n## `filter_value`", "Linearly interpolate between two float values.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distance API. 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 distance API. 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...
Calculate distance between the x and y of the two regions.
"Calculate distance between the x and y of the two regions."
30
false
krinj/k-util
distance
34,434
LDU_FT/belbio/bel/arg_completions
LDU_FT
[ "<BEGIN>\n## `convert_msg_to_html`", "Convert \\n into a <BR> for an HTML formatted message\n<END>", "<BEGIN>\n## `validate`", "Validate Nanopub", " Error Levels are similar to log levels - selecting WARNING includes both\n WARNING and ERROR, selecting ERROR just includes ERROR", " The validation...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arg_completions API. 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 arg_completions API. 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...
Function argument completion Only allow legal options for completion given function name, arguments and index of argument to replace. Args: completion_text: text to use for completion - used for creating highlight parent_function: BEL function containing these args args: arguments ...
"Function argument completion\n\n Only allow legal options for completion given function name, arguments and index of argument\n to replace.\n\n Args:\n completion_text: text to use for completion - used for creating highlight\n parent_function: BEL function containing these args\n args: a...
475
false
belbio/bel
arg_completions
34,435
LDU_FT/onnx/onnx/make_operatorsetid
LDU_FT
[ "<BEGIN>\n## `run_node`", "Simple run one operator and return the results.\n Args:\n outputs_info: a list of tuples, which contains the element type and\n shape of each output. First element of the tuple is the dtype, and\n the second element is the shape. More use case can...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_operatorsetid 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 make_operatorsetid 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...
Construct an OperatorSetIdProto. Arguments: domain (string): The domain of the operator set id version (integer): Version of operator set id
"Construct an OperatorSetIdProto.\n\n Arguments:\n domain (string): The domain of the operator set id\n version (integer): Version of operator set id"
72
false
onnx/onnx
make_operatorsetid
34,436
LDU_FT/Geotab/mygeotab-python/console
LDU_FT
[ "<BEGIN>\n## `object_deserializer`", "Helper to deserialize a raw result dict into a proper dict.", " :param obj: The dict.\n<END>", "<BEGIN>\n## `login`", "Logs into a MyGeotab server and stores the returned credentials.", " :param session: The current Session object.\n :param user: The username...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the console API. 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 console API. 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...
An interactive Python API console for MyGeotab If IPython is installed, it will launch an interactive IPython console instead of the built-in Python console. The IPython console has numerous advantages over the stock Python console, including: colors, pretty printing, command auto-completion, and more. ...
"An interactive Python API console for MyGeotab\n\n If IPython is installed, it will launch an interactive IPython console instead of the built-in Python console. The\n IPython console has numerous advantages over the stock Python console, including: colors, pretty printing,\n command auto-completion, and more...
96
false
Geotab/mygeotab-python
console
34,437
LDU_FT/Jaymon/endpoints/module_names
LDU_FT
[ "<BEGIN>\n## `handle_target`", "Only here to set self.request and get rid of it after", " this will set self.request so the target method can access request using\n self.request, just like in the controller.\n<END>", "<BEGIN>\n## `fetch`", "wrapper method that all the top level methods (get, p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the module_names API. 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 module_names API. 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 all the modules in the controller_prefix :returns: set, a set of string module names
"get all the modules in the controller_prefix\n\n :returns: set, a set of string module names"
215
false
Jaymon/endpoints
module_names
34,438
LDU_FT/SeabornGames/RequestClient/put
LDU_FT
[ "<BEGIN>\n## `reinstantiate_endpoints`", "This will re-instantiate the endpoints with the connection this time\n :param endpoint: Endpoint object to instantiate the sub endpoint in.\n :return: None\n<END>", "<BEGIN>\n## `_pre_process_call`", "This is called by the method_decorator within...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. 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 put API. 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...
:param withdraw_account_id: int of the account_id to withdraw the money from :param deposit_account_id: int of the account_id to deposit the money to :param amount: float of the amount to transfer :return: Transfer dict
":param withdraw_account_id: int of the account_id to withdraw the money from\n :param deposit_account_id: int of the account_id to deposit the money to\n :param amount: float of the amount to transfer\n :return: Transfer dict"
148
false
SeabornGames/RequestClient
put
34,439
LDU_FT/dh1tw/pyhamtools/get_eqsl_users
LDU_FT
[ "<BEGIN>\n## `get_homecall`", "Strips off country prefixes (HC2/DH1TW) and activity suffixes (DH1TW/P).", " Args:\n callsign (str): Amateur Radio callsign", " Returns:\n str: callsign without country/activity pre/suffixes", " Raises:\n ValueError: No cal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_eqsl_users API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_eqsl_users API. 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...
Download the latest official list of `EQSL.cc`__ users. The list of users can be found here_. Args: url (str, optional): Download URL Returns: list: List containing the callsigns of EQSL users (unicode) Raises: IOError: When network is unavailable, file can...
"Download the latest official list of `EQSL.cc`__ users. The list of users can be found here_.\n\n Args:\n url (str, optional): Download URL\n\n Returns:\n list: List containing the callsigns of EQSL users (unicode)\n\n Raises:\n IOError: When network is unavailable...
238
false
dh1tw/pyhamtools
get_eqsl_users
34,440
LDU_FT/Robpol86/flake8-pydocstyle/ignore
LDU_FT
[ "<BEGIN>\n## `load_file`", "Read file to memory.", " For stdin sourced files, this function does something super duper incredibly hacky and shameful. So so shameful. I'm\n obtaining the original source code of the target module from the only instance of pycodestyle.Checker through the\n Python garbage ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ignore API. 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 ignore API. 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 ...
Should this code be ignored. :param str code: Error code (e.g. D201). :return: True if code should be ignored, False otherwise. :rtype: bool
"Should this code be ignored.\n\n :param str code: Error code (e.g. D201).\n\n :return: True if code should be ignored, False otherwise.\n :rtype: bool"
20
false
Robpol86/flake8-pydocstyle
ignore
34,441
LDU_FT/johnbywater/eventsourcing/decimaltimestamp
LDU_FT
[ "<BEGIN>\n## `register_new_suffix_tree`", "Factory method, returns new suffix tree object.\n<END>", "<BEGIN>\n## `find_substring`", "Returns the index if substring in tree, otherwise -1.\n<END>", "<BEGIN>\n## `_canonize_suffix`", "This canonizes the suffix, walking along its suffix string until it\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decimaltimestamp API. 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 decimaltimestamp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
A UNIX timestamp as a Decimal object (exact number type). Returns current time when called without args, otherwise converts given floating point number ``t`` to a Decimal with 9 decimal places. :param t: Floating point UNIX timestamp ("seconds since epoch"). :return: A Decimal with 6 decimal place...
"A UNIX timestamp as a Decimal object (exact number type).\n\n Returns current time when called without args, otherwise\n converts given floating point number ``t`` to a Decimal\n with 9 decimal places.\n\n :param t: Floating point UNIX timestamp (\"seconds since epoch\").\n :return: A Decimal with 6 dec...
161
false
johnbywater/eventsourcing
decimaltimestamp
34,442
LDU_FT/eonpatapon/contrail-api-cli/parallel_map
LDU_FT
[ "<BEGIN>\n## `expand_paths`", "Return an unique list of resources or collections from a list of paths.\n Supports fq_name and wilcards resolution.", " >>> expand_paths(['virtual-network',\n 'floating-ip/2a0a54b4-a420-485e-8372-42f70a627ec9'])\n [Collection('virtual-network'),\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parallel_map API. 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 parallel_map API. 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...
Map func on a list using gevent greenlets. :param func: function applied on iterable elements :type func: function :param iterable: elements to map the function over :type iterable: iterable :param args: arguments of func :type args: tuple :param kwargs: keyword arguments of func :type ...
"Map func on a list using gevent greenlets.\n\n :param func: function applied on iterable elements\n :type func: function\n :param iterable: elements to map the function over\n :type iterable: iterable\n :param args: arguments of func\n :type args: tuple\n :param kwargs: keyword arguments of func\n...
138
false
eonpatapon/contrail-api-cli
parallel_map
34,443
LDU_FT/vsoch/helpme/get_pid
LDU_FT
[ "<BEGIN>\n## `main`", "the main entry point for the HelpMe Command line application. Currently,\n the user can request help or set config values for a particular helper.\n<END>", "<BEGIN>\n## `write_config`", "use configparser to write a config object to filename\n<END>", "<BEGIN>\n## `generate_tempor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pid API. 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_pid will return a pid of interest. First we use given variable, then environmental variable PID, and then PID of running process
"get_pid will return a pid of interest. First we use given variable,\n then environmental variable PID, and then PID of running process"
121
false
vsoch/helpme
get_pid
34,444
LDU_FT/marrow/schema/_validators
LDU_FT
[ "<BEGIN>\n## `_validators`", "Iterate across the complete set of child validators.\n<END>", "<BEGIN>\n## `_process_arguments`", "Map positional to keyword arguments, identify invalid assignments, and return the result.", "\t\tThis is likely generic enough to be useful as a standalone utility function, and g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validators API. 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 _validators API. 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...
Iterate across the complete set of child validators.
"Iterate across the complete set of child validators."
28
false
marrow/schema
_validators
34,445
LDU_FT/micha030201/aionationstates/deaths
LDU_FT
[ "<BEGIN>\n## `tgcanrecruit`", "Whether the nation will receive a recruitment telegram.", " Useful in conjunction with the Telegrams API.", " Parameters\n ----------\n region : str\n Name of the region you are recruiting for.", " Returns\n -------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deaths API. 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 deaths API. 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 ...
Causes of death in the nation, as percentages. Returns ------- an :class:`ApiQuery` of dict with keys of str and values of float
"Causes of death in the nation, as percentages.\n\n Returns\n -------\n an :class:`ApiQuery` of dict with keys of str and values of float"
156
false
micha030201/aionationstates
deaths
34,446
LDU_FT/EdwinvO/pyutillib/subset
LDU_FT
[ "<BEGIN>\n## `previous_weekday`", "Returns the last weekday before date", " Args:\n date (datetime or datetime.date)\n Returns:\n (datetime or datetime.date)\n Raises:\n -\n<END>", "<BEGIN>\n## `next_weekday`", "Return the first weekday after date", " Args:\n date (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subset API. 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 subset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return a list of dates from the list between <fromdate> and <todate> (inclusive)
"Return a list of dates from the list between <fromdate> and <todate>\n (inclusive)"
49
false
EdwinvO/pyutillib
subset
34,447
LDU_FT/CalebBell/ht/size_bundle_from_tubecount
LDU_FT
[ "<BEGIN>\n## `blackbody_spectral_radiance`", "r'''Returns the spectral radiance, in units of W/m^2/sr/µm.", " .. math::\n I_{\\lambda,blackbody,e}(\\lambda,T)=\\frac{2hc_o^2}\n {\\lambda^5[\\exp(hc_o/\\lambda k T)-1]}", " Parameters\n ----------\n T : float\n Temperature of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size_bundle_from_tubecount API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size_bundle_from_tubecount API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
r'''Calculates the outer diameter of a tube bundle containing a specified number of tubes. The tube count is effected by the pitch, number of tube passes, and angle. The result is an exact number of tubes and is calculated by a very accurate method using number theory by default. This method is ava...
"r'''Calculates the outer diameter of a tube bundle containing a specified\n number of tubes.\n The tube count is effected by the pitch, number of tube passes, and angle.\n \n The result is an exact number of tubes and is calculated by a very accurate\n method using number theory by default. This method ...
2,013
true
CalebBell/ht
size_bundle_from_tubecount
34,448
LDU_FT/J535D165/recordlinkage/predict_log_proba
LDU_FT
[ "<BEGIN>\n## `_map_tril_1d_on_2d`", "Map 1d indices on lower triangular matrix in 2d.\n<END>", "<BEGIN>\n## `random_pairs_without_replacement_large_frames`", "Make a sample of random pairs with replacement\n<END>", "<BEGIN>\n## `clean`", "Clean string variables.", " Clean strings in the Series by rem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict_log_proba API. 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 predict_log_proba API. 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 log-probability estimates for the test vector X. Parameters ---------- X : array-like, shape = [n_samples, n_features] Returns ------- C : array-like, shape = [n_samples, n_classes] Returns the log-probability of the samples for each class in ...
"Return log-probability estimates for the test vector X.\n\n Parameters\n ----------\n X : array-like, shape = [n_samples, n_features]\n\n Returns\n -------\n C : array-like, shape = [n_samples, n_classes]\n Returns the log-probability of the samples for each class i...
339
false
J535D165/recordlinkage
predict_log_proba
34,449
LDU_FT/lingthio/Flask-User/get_object
LDU_FT
[ "<BEGIN>\n## `send_email_message`", "Send email message via Flask-Sendmail.", " Args:\n recipient: Email address or tuple of (Name, Email-address).\n subject: Subject line.\n html_message: The message body in HTML.\n text_message: The message body in plain text...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Retrieve object of type ``ObjectClass`` by ``id``. | Returns object on success. | Returns None otherwise.
"Retrieve object of type ``ObjectClass`` by ``id``.\n\n | Returns object on success.\n | Returns None otherwise."
186
false
lingthio/Flask-User
get_object
34,450
LDU_FT/mkouhei/tonicdnscli/delete_zone
LDU_FT
[ "<BEGIN>\n## `check_infile`", "Check text file exisitense.", " Argument:", " filename: text file of bulk updating\n<END>", "<BEGIN>\n## `set_json`", "Convert text file to JSON.", " Arguments:", " domain: domain name of updating target\n action: True ; for PUT/POST HTTP m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_zone API. 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 delete_zone API. 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...
Delete specific zone. Argument: server: TonicDNS API server token: TonicDNS API authentication token domain: Specify domain name x-authentication-token: token
"Delete specific zone.\n\n Argument:\n\n server: TonicDNS API server\n token: TonicDNS API authentication token\n domain: Specify domain name\n\n x-authentication-token: token"
192
false
mkouhei/tonicdnscli
delete_zone
34,451
LDU_FT/bitshares/uptick/updateratio
LDU_FT
[ "<BEGIN>\n## `orderbook`", "Show the orderbook of a particular market\n<END>", "<BEGIN>\n## `buy`", "Buy a specific asset at a certain rate against a base asset\n<END>", "<BEGIN>\n## `cancelall`", "Cancel all orders of an account in a market\n<END>", "<BEGIN>\n## `spread`", "Place multiple orders", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updateratio API. 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 updateratio API. 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...
Update the collateral ratio of a call positions
"Update the collateral ratio of a call positions"
50
false
bitshares/uptick
updateratio
34,452
LDU_FT/gmr/infoblox/delete_old_host
LDU_FT
[ "<BEGIN>\n## `delete_old_host`", "Remove all records for the host.", " :param str hostname: Hostname to remove\n :rtype: bool\n<END>", "<BEGIN>\n## `add_new_host`", "Add or update a host in the infoblox, overwriting any IP address\n entries.", " :param str hostname: Hostname to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_old_host API. 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 delete_old_host API. 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...
Remove all records for the host. :param str hostname: Hostname to remove :rtype: bool
"Remove all records for the host.\n\n :param str hostname: Hostname to remove\n :rtype: bool"
42
false
gmr/infoblox
delete_old_host
34,453
LDU_FT/django-fluent/django-fluent-comments/get_comment_template_name
LDU_FT
[ "<BEGIN>\n## `moderate_model`", "Register a parent model (e.g. ``Blog`` or ``Article``) that should receive comment moderation.", " :param ParentModel: The parent model, e.g. a ``Blog`` or ``Article`` model.\n :param publication_date_field: The field name of a :class:`~django.db.models.DateTimeField` in t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_comment_template_name 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 get_comment_template_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Internal function for the rendering of comments.
"Internal function for the rendering of comments."
39
false
django-fluent/django-fluent-comments
get_comment_template_name
34,454
LDU_FT/textmagic/textmagic-rest-python/get_credentials
LDU_FT
[ "<BEGIN>\n## `messages`", "Fetch messages by given session id.\n An useful synonym for \"messages/search\" command with provided `sessionId` parameter.\n Returns a list of :class:`Message` objects and a pager dict.", " :Example:", " messages = client.sessions.messages(1901001)", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_credentials API. 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_credentials API. 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...
Gets the TextMagic credentials from current environment :param env: environment :return: username, token
"Gets the TextMagic credentials from current environment\n\n :param env: environment\n :return: username, token"
112
false
textmagic/textmagic-rest-python
get_credentials
34,455
LDU_FT/HDI-Project/MLPrimitives/rolling_window_sequences
LDU_FT
[ "<BEGIN>\n## `resample`", "pd.DataFrame.resample adapter.", " Call the `df.resample` method on the given time_index\n and afterwards call the indicated aggregation.", " Optionally group the dataframe by the indicated columns before\n performing the resampling.", " If groupby option is used, t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rolling_window_sequences API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rolling_window_sequences API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Create rolling window sequences out of timeseries data.
"Create rolling window sequences out of timeseries data."
96
false
HDI-Project/MLPrimitives
rolling_window_sequences
34,456
LDU_FT/aht/stream.py/extend
LDU_FT
[ "<BEGIN>\n## `returned`", "Generate a random walk and return True if the walker has returned to\n\tthe origin after taking `n` steps.\n<END>", "<BEGIN>\n## `first_return`", "Generate a random walk and return its length upto the moment\n\tthat the walker first returns to the origin.", "\tIt is mathematically...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend API. 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 extend API. 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 ...
Similar to __pipe__, except that outpipe must be a Stream, in which case self.iterator will be modified in-place by calling outpipe.__call__ on it.
"Similar to __pipe__, except that outpipe must be a Stream, in\n\t\twhich case self.iterator will be modified in-place by calling\n\t\toutpipe.__call__ on it."
35
false
aht/stream.py
extend
34,457
LDU_FT/spyder-ide/spyder-notebook/add_to_recent
LDU_FT
[ "<BEGIN>\n## `evaluate`", "Evaluate script in page frame.", " :param script: The script to evaluate.\n<END>", "<BEGIN>\n## `click`", "Click the targeted element.", " :param selector: A CSS3 selector to targeted element.\n :param btn: The number of mouse button.\n 0 - left b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_to_recent API. 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 add_to_recent API. 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...
Add an entry to recent notebooks. We only maintain the list of the 20 most recent notebooks.
"Add an entry to recent notebooks.\r\n\r\n We only maintain the list of the 20 most recent notebooks."
45
false
spyder-ide/spyder-notebook
add_to_recent
34,458
LDU_FT/azraq27/neural/align_epi
LDU_FT
[ "<BEGIN>\n## `connectivity_map`", "Will perform connectivity analysis on ``dset`` using seed point ``(x,y,z)`` (in RAI order) with a sphere of radius ``radius``.\n Does not perform any preprocessing of ``dset``. This should be already motion corrected, noise-regressed, residualized, etc.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the align_epi API. 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 align_epi API. 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...
[[currently in progress]]: a simple replacement for the ``align_epi_anat.py`` script, because I've found it to be unreliable, in my usage
"[[currently in progress]]: a simple replacement for the ``align_epi_anat.py`` script, because I've found it to be unreliable, in my usage"
232
false
azraq27/neural
align_epi
34,459
LDU_FT/ioos/thredds_crawler/_build_catalog
LDU_FT
[ "<BEGIN>\n## `request_xml`", "Returns an etree.XMLRoot object loaded from the url\n :param str url: URL for the resource to load as an XML\n<END>", "<BEGIN>\n## `_get_catalog_url`", "Returns the appropriate catalog URL by replacing html with xml in some\n cases\n :param str url: URL to the ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_catalog API. 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 _build_catalog API. 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...
Recursive function to perform the DFS and yield the leaf datasets :param str url: URL for the current catalog :param str xml_content: XML Body returned from HTTP Request
"Recursive function to perform the DFS and yield the leaf datasets\n :param str url: URL for the current catalog\n :param str xml_content: XML Body returned from HTTP Request"
12
false
ioos/thredds_crawler
_build_catalog
34,460
LDU_FT/mbodenhamer/syn/is_unique
LDU_FT
[ "<BEGIN>\n## `assign`", "Assigns B to A.attr, yields, and then assigns A.attr back to its\n original value.\n<END>", "<BEGIN>\n## `nearest_base`", "Returns the closest ancestor to cls in bases.\n<END>", "<BEGIN>\n## `get_typename`", "Returns the name of the type of x, if x is an object. Otherwise, ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_unique API. 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 is_unique API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns True if every item in the seq is unique, False otherwise.
"Returns True if every item in the seq is unique, False otherwise."
71
false
mbodenhamer/syn
is_unique
34,461
LDU_FT/numan/py-analytics/get_metric_by_day
LDU_FT
[ "<BEGIN>\n## `_get_closest_week`", "Gets the closest monday to the date provided.\n<END>", "<BEGIN>\n## `_get_daily_date_range`", "Get the range of months that we need to use as keys to scan redis.\n<END>", "<BEGIN>\n## `_get_weekly_date_range`", "Gets the range of years that we need to use as keys to get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_metric_by_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_metric_by_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...
Returns the ``metric`` for ``unique_identifier`` segmented by day starting from``from_date`` :param unique_identifier: Unique string indetifying the object this metric is for :param metric: A unique name for the metric you want to track :param from_date: A python date object :pa...
"Returns the ``metric`` for ``unique_identifier`` segmented by day\n starting from``from_date``\n\n :param unique_identifier: Unique string indetifying the object this metric is for\n :param metric: A unique name for the metric you want to track\n :param from_date: A python date object\n ...
54
false
numan/py-analytics
get_metric_by_day
34,462
LDU_FT/hannes-brt/cudnn-python-wrappers/cudnnSetTensor4dDescriptorEx
LDU_FT
[ "<BEGIN>\n## `cudnnCreate`", "Initialize cuDNN.", " Initializes cuDNN and returns a handle to the cuDNN context.", " Returns\n -------", " handle : cudnnHandle\n cuDNN context\n<END>", "<BEGIN>\n## `cudnnDestroy`", "Release cuDNN resources.", " Release hardware resources used by ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cudnnSetTensor4dDescriptorEx API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cudnnSetTensor4dDescriptorEx API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Initialize a Tensor descriptor object with strides. This function initializes a previously created generic Tensor descriptor object into a 4D tensor, similarly to cudnnSetTensor4dDescriptor but with the strides explicitly passed as parameters. This can be used to lay out the 4D tensor in any order or simpl...
"Initialize a Tensor descriptor object with strides.\n\n This function initializes a previously created generic Tensor descriptor object into a\n 4D tensor, similarly to cudnnSetTensor4dDescriptor but with the strides explicitly\n passed as parameters. This can be used to lay out the 4D tensor in any order or ...
108
false
hannes-brt/cudnn-python-wrappers
cudnnSetTensor4dDescriptorEx
34,463
LDU_FT/hadrianl/huobi/pub_msg
LDU_FT
[ "<BEGIN>\n## `async_request`", "异步并发请求\n :param reqs: 请求列表\n :return:\n<END>", "<BEGIN>\n## `get_kline`", "获取KLine\n :param symbol\n :param period: 可选值:{1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week, 1year }\n :param size: 可选值: [1,2000]\n :return:\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pub_msg API. 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 pub_msg API. 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...
核心的处理函数,如果是handle_func直接处理,如果是handler,推送到handler的队列
"核心的处理函数,如果是handle_func直接处理,如果是handler,推送到handler的队列"
108
false
hadrianl/huobi
pub_msg
34,464
LDU_FT/pybluez/pybluez/__waituntil
LDU_FT
[ "<BEGIN>\n## `btaddrtochars`", "Takes a bluetooth address and returns a tuple with the corresponding\n char values. This can then be used to construct a\n IOBluetoothDevice object, providing the signature of the withAddress:\n selector has been set (as in _setpyobjcsignatures() in this module).", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __waituntil API. 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 __waituntil API. 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...
Waits until stopwaiting() returns True, or until the wait times out (according to the self.__timeout value). This is to make a function wait until a buffer has been filled. i.e. stopwaiting() should return True when the buffer is no longer empty.
"Waits until stopwaiting() returns True, or until the wait times out\n (according to the self.__timeout value).\n\n This is to make a function wait until a buffer has been filled. i.e.\n stopwaiting() should return True when the buffer is no longer empty."
80
false
pybluez/pybluez
__waituntil
34,465
LDU_FT/niolabs/python-xbee/do_serial
LDU_FT
[ "<BEGIN>\n## `_write`", "_write: binary data -> None", " Packages the given binary data in an API frame and writes the\n result to the serial port\n<END>", "<BEGIN>\n## `_build_command`", "_build_command: string (binary data) ... -> binary data", " _build_command will construct a comm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_serial API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_serial API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Set the serial port, e.g.: /dev/tty.usbserial-A4001ib8
"Set the serial port, e.g.: /dev/tty.usbserial-A4001ib8"
91
false
niolabs/python-xbee
do_serial
34,466
LDU_FT/tomer8007/kik-bot-api-unofficial/ban_member_from_group
LDU_FT
[ "<BEGIN>\n## `_connect`", "Runs the kik connection thread, which creates an encrypted (SSL based) TCP connection\n to the kik servers.\n<END>", "<BEGIN>\n## `_on_connection_made`", "Gets called when the TCP connection to kik's servers is done and we are connected.\n Now we might initiate a login...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ban_member_from_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ban_member_from_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Bans a member from the group :param group_jid: The JID of the relevant group :param peer_jid: The JID of the user to ban
"Bans a member from the group\n\n :param group_jid: The JID of the relevant group\n :param peer_jid: The JID of the user to ban"
96
false
tomer8007/kik-bot-api-unofficial
ban_member_from_group
34,467
LDU_FT/apache/spark/ignore_unicode_prefix
LDU_FT
[ "<BEGIN>\n## `_parse_datatype_string`", "Parses the given data type string to a :class:`DataType`. The data type string format equals\n to :class:`DataType.simpleString`, except that top level struct type can omit\n the ``struct<>`` and atomic types use ``typeName()`` as their format, e.g. use ``byte`` inst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ignore_unicode_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ignore_unicode_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Ignore the 'u' prefix of string in doc tests, to make it works in both python 2 and 3
"Ignore the 'u' prefix of string in doc tests, to make it works\n in both python 2 and 3"
2,386
true
apache/spark
ignore_unicode_prefix
34,468
LDU_FT/kyuupichan/aiorpcX/timeout_after
LDU_FT
[ "<BEGIN>\n## `timeout_after`", "Execute the specified coroutine and return its result. However,\n issue a cancellation request to the calling task after seconds\n have elapsed. When this happens, a TaskTimeout exception is\n raised. If coro is None, the result of this function serves\n as an asynchr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeout_after API. 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 timeout_after API. 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...
Execute the specified coroutine and return its result. However, issue a cancellation request to the calling task after seconds have elapsed. When this happens, a TaskTimeout exception is raised. If coro is None, the result of this function serves as an asynchronous context manager that applies a timeo...
"Execute the specified coroutine and return its result. However,\n issue a cancellation request to the calling task after seconds\n have elapsed. When this happens, a TaskTimeout exception is\n raised. If coro is None, the result of this function serves\n as an asynchronous context manager that applies a ...
118
false
kyuupichan/aiorpcX
timeout_after
34,469
LDU_FT/cqlengine/cqlengine/update_compaction
LDU_FT
[ "<BEGIN>\n## `create_keyspace`", "creates a keyspace", " :param name: name of keyspace to create\n :param strategy_class: keyspace replication strategy class\n :param replication_factor: keyspace replication factor\n :param durable_writes: 1.2 only, write log is bypassed if set to False\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_compaction API. 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 update_compaction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Updates the compaction options for the given model if necessary. :param model: The model to update. :return: `True`, if the compaction options were modified in Cassandra, `False` otherwise. :rtype: bool
"Updates the compaction options for the given model if necessary.\n\n :param model: The model to update.\n\n :return: `True`, if the compaction options were modified in Cassandra,\n `False` otherwise.\n :rtype: bool"
65
false
cqlengine/cqlengine
update_compaction
34,470
LDU_FT/coldfix/udiskie/default_pathes
LDU_FT
[ "<BEGIN>\n## `_is_parent_of`", "Check whether the first device is the parent of the second device.\n<END>", "<BEGIN>\n## `prune_empty_node`", "Recursively remove empty branches and return whether this makes the node\n itself empty.", " The ``seen`` parameter is used to avoid infinite recursion due to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_pathes API. 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 default_pathes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return the default config file pathes as a list.
"Return the default config file pathes as a list."
228
false
coldfix/udiskie
default_pathes
34,471
LDU_FT/libvips/pyvips/print_all
LDU_FT
[ "<BEGIN>\n## `print_all`", "Print all objects.", " Print a table of all active libvips objects. Handy for debugging.\n<END>", "<BEGIN>\n## `get_typeof`", "Get the GType of a GObject property.", " This function returns 0 if the property does not exist.\n<END>", "<BEGIN>\n## `get`", "Get a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Print all objects. Print a table of all active libvips objects. Handy for debugging.
"Print all objects.\n\n Print a table of all active libvips objects. Handy for debugging."
73
false
libvips/pyvips
print_all
34,472