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/pyapi-gitlab/pyapi-gitlab/adddeploykey
LDU_FT
[ "<BEGIN>\n## `login`", "Logs the user in and setups the header with the private token", " :param email: Gitlab user Email\n :param user: Gitlab username\n :param password: Gitlab user password\n :return: True if login successful\n :raise: HttpError\n :raise: ValueError\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adddeploykey API. 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 adddeploykey API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Creates a new deploy key for a project. :param project_id: project id :param title: title of the key :param key: the key itself :return: true if success, false if not
"Creates a new deploy key for a project.\n\n :param project_id: project id\n :param title: title of the key\n :param key: the key itself\n :return: true if success, false if not"
239
false
pyapi-gitlab/pyapi-gitlab
adddeploykey
26,673
LDU_FT/grst/geos/parse
LDU_FT
[ "<BEGIN>\n## `griditer`", "Iterate through a grid of tiles.", " Args:\n x (int): x start-coordinate\n y (int): y start-coordinate\n ncol (int): number of tile columns\n nrow (int): number of tile rows. If not specified, this\n defaults to ncol, s.t. a quadratic region i...
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 a file object This functon parses a KML file object, and optionally validates it against a provided schema.
"Parses a file object\n \n This functon parses a KML file object, and optionally validates it against \n a provided schema."
153
false
grst/geos
parse
26,674
LDU_FT/bitshares/python-bitshares/allow
LDU_FT
[ "<BEGIN>\n## `decodeRPCErrorMsg`", "Helper function to decode the raised Exception and give it a\n python Exception class\n<END>", "<BEGIN>\n## `transfer`", "Transfer an asset to another account.", " :param str to: Recipient\n :param float amount: Amount to transfer\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allow API. 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 allow API. 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...
Give additional access to an account by some other public key or account. :param str foreign: The foreign account that will obtain access :param int weight: (optional) The weight to use. If not define, the threshold will be used. If the weight is smal...
"Give additional access to an account by some other public\n key or account.\n\n :param str foreign: The foreign account that will obtain access\n :param int weight: (optional) The weight to use. If not\n define, the threshold will be used. If the weight is\n ...
116
false
bitshares/python-bitshares
allow
26,675
LDU_FT/tehmaze/natural/nato
LDU_FT
[ "<BEGIN>\n## `ordinal`", "Converts a number to its ordinal representation.", " :param value: number", " >>> print(ordinal(1))\n 1st\n >>> print(ordinal(11))\n 11th\n >>> print(ordinal(101))\n 101st\n >>> print(ordinal(104))\n 104th\n >>> print(ordinal(113))\n 113th\n >>> pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nato API. 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 nato API. 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...
Transform a sentence using the NATO spelling alphabet. :param sentence: input sentence :param pad: default ``' '`` :param format: default ``telephony``, options ``telephony`` or ``phonetic`` >>> print(nato('Python')) papa yankee tango hotel oscar november >>> print(nato('Python', format='phon...
"Transform a sentence using the NATO spelling alphabet.\n\n :param sentence: input sentence\n :param pad: default ``' '``\n :param format: default ``telephony``, options ``telephony`` or ``phonetic``\n\n >>> print(nato('Python'))\n papa yankee tango hotel oscar november\n\n >>> print(nato('Python', fo...
153
false
tehmaze/natural
nato
26,676
LDU_FT/trombastic/PyScada/request_data
LDU_FT
[ "<BEGIN>\n## `_reinit_daq_daemons`", "update the daq daemon configuration when changes be applied in the models\n<END>", "<BEGIN>\n## `connect`", "establish a connection to the Instrument\n<END>", "<BEGIN>\n## `find_gap`", "try to find a address gap in the list of modbus registers\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
(0,'cpu_percent'), (1,'virtual_memory_total'), (2,'virtual_memory_available'), (3,'virtual_memory_percent'), (4,'virtual_memory_used'), (5,'virtual_memory_free'), (6,'virtual_memory_active'), (7,'virtual_memory_inactive'), (8,'virtual_memory_buffers'), ...
"(0,'cpu_percent'),\n (1,'virtual_memory_total'),\n (2,'virtual_memory_available'),\n (3,'virtual_memory_percent'),\n (4,'virtual_memory_used'),\n (5,'virtual_memory_free'),\n (6,'virtual_memory_active'),\n (7,'virtual_memory_inactive'),\n (8,'virtual_memory_buffe...
60
false
trombastic/PyScada
request_data
26,677
LDU_FT/vladcalin/gemstone/handle_single_request
LDU_FT
[ "<BEGIN>\n## `parse_json_structure`", "Given a raw representation of a json structure, returns the parsed corresponding data\n structure (``JsonRpcRequest`` or ``JsonRpcRequestBatch``)", " :param string_item:\n :return:\n<END>", "<BEGIN>\n## `from_dict`", "Validates a dict instance and transforms i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_single_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_single_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. ...
Handles a single request object and returns the correct result as follows: - A valid response object if it is a regular request (with ID) - ``None`` if it was a notification (if None is returned, a response object with "received" body was already sent to the client. :param request_ob...
"Handles a single request object and returns the correct result as follows:\n\n - A valid response object if it is a regular request (with ID)\n - ``None`` if it was a notification (if None is returned, a response object with\n \"received\" body was already sent to the client.\n\n :param r...
107
false
vladcalin/gemstone
handle_single_request
26,678
LDU_FT/briancappello/py-yaml-fixtures/maybe_convert_values
LDU_FT
[ "<BEGIN>\n## `create_or_update`", "Create or update a model.", " :param identifier: An object with :attr:`class_name` and :attr:`key`\n attributes\n :param data: A dictionary keyed by column name, with values being the\n converted values to set on the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maybe_convert_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maybe_convert_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Takes a dictionary of raw values for a specific identifier, as parsed from the YAML file, and depending upon the type of db column the data is meant for, decides what to do with the value (eg leave it alone, convert a string to a date/time instance, or convert identifiers to model instan...
"Takes a dictionary of raw values for a specific identifier, as parsed\n from the YAML file, and depending upon the type of db column the data\n is meant for, decides what to do with the value (eg leave it alone,\n convert a string to a date/time instance, or convert identifiers to\n model i...
31
false
briancappello/py-yaml-fixtures
maybe_convert_values
26,679
LDU_FT/wtsi-hgi/consul-lock/create_logger
LDU_FT
[ "<BEGIN>\n## `get_consul_configuration_from_environment`", "Gets configuration on how to connect to Consul from the environment.\n :return: the configuration derived from the environment\n :raises KeyError: if a required environment variable has not been set\n<END>", "<BEGIN>\n## `create_logger`", "Crea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_logger API. 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 create_logger API. 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...
Creates a logger with the given name. :param name: name of the logger (gets prefixed with the package name) :return: the created logger
"Creates a logger with the given name.\n :param name: name of the logger (gets prefixed with the package name)\n :return: the created logger"
55
false
wtsi-hgi/consul-lock
create_logger
26,680
LDU_FT/MozillaSecurity/laniakea/terminate
LDU_FT
[ "<BEGIN>\n## `list_tags`", "List all used macros within a UserData script.", " :param userdata: The UserData script.\n :type userdata: str\n<END>", "<BEGIN>\n## `handle_tags`", "Insert macro values or auto export variables in UserData scripts.", " :param userdata: The UserData script....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the terminate API. 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 terminate API. 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...
Destroy one or many nodes. :param nodes: Nodes to be destroyed. :type nodes: ``list`` :return: List of nodes which failed to terminate. :rtype: ``list``
"Destroy one or many nodes.\n\n :param nodes: Nodes to be destroyed.\n :type nodes: ``list``\n\n :return: List of nodes which failed to terminate.\n :rtype: ``list``"
136
false
MozillaSecurity/laniakea
terminate
26,681
LDU_FT/inveniosoftware/invenio-webhooks/status
LDU_FT
[ "<BEGIN>\n## `get_hmac`", "Calculate HMAC value of message using ``WEBHOOKS_SECRET_KEY``.", " :param message: String to calculate HMAC for.\n<END>", "<BEGIN>\n## `check_x_hub_signature`", "Check X-Hub-Signature used by GitHub to sign requests.", " :param signature: HMAC signature extracted from requ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status API. 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 status API. 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 tuple with current processing status code and message.
"Return a tuple with current processing status code and message."
17
false
inveniosoftware/invenio-webhooks
status
26,682
LDU_FT/stevearc/dql/repl_command
LDU_FT
[ "<BEGIN>\n## `field_or_value`", "For a clause that could be a field or value,\n create the right one and return it\n<END>", "<BEGIN>\n## `from_where`", "Factory method for creating the top-level expression\n<END>", "<BEGIN>\n## `_factory`", "Factory for joining constraints with a single conjunction\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repl_command API. 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 repl_command API. 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...
Decorator for cmd methods Parses arguments from the arg string and passes them to the method as *args and **kwargs.
"Decorator for cmd methods\n\n Parses arguments from the arg string and passes them to the method as *args\n and **kwargs."
157
false
stevearc/dql
repl_command
26,683
LDU_FT/dropbox/stone/linearize_data_types
LDU_FT
[ "<BEGIN>\n## `generic_type_name`", "Return a descriptive type name that isn't Python specific. For example, an\n int type will return 'integer' rather than 'int'.\n<END>", "<BEGIN>\n## `doc_unwrap`", "Applies two transformations to raw_doc:\n 1. N consecutive newlines are converted into N-1 newlines.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the linearize_data_types 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 linearize_data_types 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 a list of all data types used in the namespace. Because the inheritance of data types can be modeled as a DAG, the list will be a linearization of the DAG. It's ideal to generate data types in this order so that composite types that reference other composite types are defined in ...
"Returns a list of all data types used in the namespace. Because the\n inheritance of data types can be modeled as a DAG, the list will be a\n linearization of the DAG. It's ideal to generate data types in this\n order so that composite types that reference other composite types are\n define...
613
false
dropbox/stone
linearize_data_types
26,684
LDU_FT/ninuxorg/nodeshot/send
LDU_FT
[ "<BEGIN>\n## `get_formset`", "Load Synchronizer schema to display specific fields in admin\n<END>", "<BEGIN>\n## `public_broadcaster`", "Thread which runs in parallel and constantly checks for new messages\n in the public pipe and broadcasts them publicly to all connected clients.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. 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 send API. 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...
Send action available in change outward list
"Send action available in change outward list"
261
false
ninuxorg/nodeshot
send
26,685
LDU_FT/ChristianKuehnel/btlewrap/wrap_exception
LDU_FT
[ "<BEGIN>\n## `wrap_exception`", "Decorator to wrap pygatt exceptions into BluetoothBackendException.\n<END>", "<BEGIN>\n## `wrap_exception`", "Decorator to wrap BTLEExceptions into BluetoothBackendException.\n<END>", "<BEGIN>\n## `read_handle`", "Read a handle from the device.", " You must be con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_exception API. 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 wrap_exception API. 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...
Decorator to wrap BTLEExceptions into BluetoothBackendException.
"Decorator to wrap BTLEExceptions into BluetoothBackendException."
27
false
ChristianKuehnel/btlewrap
wrap_exception
26,686
LDU_FT/DataKitchen/DKCloudCommand/_split_one_end
LDU_FT
[ "<BEGIN>\n## `is_same`", "Compare two directory trees content.\n Return False if they differ, True is they are the same.\n :param dir2:\n :param dir1:\n<END>", "<BEGIN>\n## `phase3`", "Find out differences between common files.\n Ensure we are using content comparison with shallow=False.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _split_one_end API. 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 _split_one_end API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Utility function for splitting off the very end part of a path.
"Utility function for splitting off the very end part of a path."
70
false
DataKitchen/DKCloudCommand
_split_one_end
26,687
LDU_FT/apache/spark/flatMap
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 flatMap API. 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 flatMap API. 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 new RDD by first applying a function to all elements of this RDD, and then flattening the results. >>> rdd = sc.parallelize([2, 3, 4]) >>> sorted(rdd.flatMap(lambda x: range(1, x)).collect()) [1, 1, 1, 2, 2, 3] >>> sorted(rdd.flatMap(lambda x: [(x, x), (x, x)]).collect(...
"Return a new RDD by first applying a function to all elements of this\n RDD, and then flattening the results.\n\n >>> rdd = sc.parallelize([2, 3, 4])\n >>> sorted(rdd.flatMap(lambda x: range(1, x)).collect())\n [1, 1, 1, 2, 2, 3]\n >>> sorted(rdd.flatMap(lambda x: [(x, x), (x, x)]).c...
2,386
true
apache/spark
flatMap
26,688
LDU_FT/pv8/noipy/update_dns
LDU_FT
[ "<BEGIN>\n## `execute_update`", "Execute the update based on command line args and returns a dictionary\n with 'execution result, ''response code', 'response info' and\n 'process friendly message'.\n<END>", "<BEGIN>\n## `update_dns`", "Call No-IP API based on dict login_info and return the status code.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_dns API. 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 update_dns API. 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...
Call No-IP API based on dict login_info and return the status code.
"Call No-IP API based on dict login_info and return the status code."
14
false
pv8/noipy
update_dns
26,689
LDU_FT/seanpar203/event-bus/emit_only
LDU_FT
[ "<BEGIN>\n## `on`", "Decorator for subscribing a function to a specific event.", " :param event: Name of the event to subscribe to.\n :type event: str", " :return: The outer function.\n :rtype: Callable\n<END>", "<BEGIN>\n## `add_event`", "Adds a function to a event.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emit_only API. 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 emit_only API. 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...
Specifically only emits certain subscribed events. :param event: Name of the event. :type event: str :param func_names: Function(s) to emit. :type func_names: Union[ str | List[str] ]
"Specifically only emits certain subscribed events.\n\n :param event: Name of the event.\n :type event: str\n\n :param func_names: Function(s) to emit.\n :type func_names: Union[ str | List[str] ]"
37
false
seanpar203/event-bus
emit_only
26,690
LDU_FT/stuaxo/vext/package_info
LDU_FT
[ "<BEGIN>\n## `do_enable`", "Uncomment any lines that start with #import in the .pth file\n<END>", "<BEGIN>\n## `do_disable`", "Comment any lines that start with import in the .pth file\n<END>", "<BEGIN>\n## `do_check`", "Attempt to import everything in the 'test-imports' section of specified\n vext_fil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the package_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the package_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 extr...
:return: list of package info on installed packages
":return: list of package info on installed packages"
64
false
stuaxo/vext
package_info
26,691
LDU_FT/hfaran/Tornado-JSON/coroutine
LDU_FT
[ "<BEGIN>\n## `_validate_example`", "Validates example against schema", " :returns: Formatted example if example exists and validates, otherwise None\n :raises ValidationError: If example does not validate against the schema\n<END>", "<BEGIN>\n## `_get_rh_methods`", "Yield all HTTP methods in ``rh`` th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coroutine API. 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 coroutine API. 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...
Tornado-JSON compatible wrapper for ``tornado.gen.coroutine`` Annotates original argspec.args of ``func`` as attribute ``__argspec_args``
"Tornado-JSON compatible wrapper for ``tornado.gen.coroutine``\n\n Annotates original argspec.args of ``func`` as attribute ``__argspec_args``"
61
false
hfaran/Tornado-JSON
coroutine
26,692
LDU_FT/adafruit/Adafruit_Python_LED_Backpack/print_number_str
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 print_number_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_number_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Print a 4 character long string of numeric values to the display. This function is similar to print_str but will interpret periods not as characters but as decimal points associated with the previous character.
"Print a 4 character long string of numeric values to the display. This\n function is similar to print_str but will interpret periods not as\n characters but as decimal points associated with the previous character."
57
false
adafruit/Adafruit_Python_LED_Backpack
print_number_str
26,693
LDU_FT/fastavro/fastavro/write_map
LDU_FT
[ "<BEGIN>\n## `_read_decimal`", "based on https://github.com/apache/avro/pull/82/\n<END>", "<BEGIN>\n## `read_long`", "int and long values are written using variable-length, zig-zag\n coding.\n<END>", "<BEGIN>\n## `read_bytes`", "Bytes are encoded as a long followed by that many bytes of data.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 extract...
Maps are encoded as a series of blocks. Each block consists of a long count value, followed by that many key/value pairs. A block with count zero indicates the end of the map. Each item is encoded per the map's value schema. If a block's count is negative, then the count is followed immediately by a...
"Maps are encoded as a series of blocks.\n\n Each block consists of a long count value, followed by that many key/value\n pairs. A block with count zero indicates the end of the map. Each item is\n encoded per the map's value schema.\n\n If a block's count is negative, then the count is followed immediate...
136
false
fastavro/fastavro
write_map
26,694
LDU_FT/jwkvam/bowtie/_check_auth
LDU_FT
[ "<BEGIN>\n## `notify`", "Notify the client.", " The function passed to ``App.respond`` will get called.\n<END>", "<BEGIN>\n## `validate`", "Check that the key is a string or bytestring.", " That's the only valid type of key.\n<END>", "<BEGIN>\n## `pack`", "Encode ``x`` into msgpack with addi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_auth API. 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 _check_auth API. 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...
Check if a username/password combination is valid.
"Check if a username/password combination is valid."
82
false
jwkvam/bowtie
_check_auth
26,695
LDU_FT/openstack/monasca-common/check_is_admin
LDU_FT
[ "<BEGIN>\n## `fmtd_sub_expr_str`", "Get the entire sub expressions as a string with spaces.\n<END>", "<BEGIN>\n## `normalized_operator`", "Get the operator as one of LT, GT, LTE, or GTE.\n<END>", "<BEGIN>\n## `_get_conn`", "Get or create a connection to a broker using host and port\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_is_admin API. 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 check_is_admin API. 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...
Check if roles contains 'admin' role according to policy settings.
"Check if roles contains 'admin' role according to policy settings."
227
false
openstack/monasca-common
check_is_admin
26,696
LDU_FT/wakatime/wakatime/_process_new_state
LDU_FT
[ "<BEGIN>\n## `wrap`", "[MS-NLMP] v28.0 2016-07-14", " 3.4.6 GSS_WrapEx()\n Emulates the GSS_Wrap() implementation to sign and seal messages if the correct flags\n are set.", " @param message: The message data that will be wrapped\n @return message: The message that has been ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_new_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_new_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Preprocess the state transition action of a token definition.
"Preprocess the state transition action of a token definition."
623
false
wakatime/wakatime
_process_new_state
26,697
LDU_FT/brunato/lograptor/between
LDU_FT
[ "<BEGIN>\n## `make_text`", "Make the text representation of a report data element.\n<END>", "<BEGIN>\n## `make_html`", "Make the text representation of a report element as html.\n<END>", "<BEGIN>\n## `make_csv`", "Get the text representation of a report element as csv.\n<END>", "<BEGIN>\n## `make_format...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the between API. 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 between API. 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...
Compare if the parameter HH:MM is in the time range.
"Compare if the parameter HH:MM is in the time range."
121
false
brunato/lograptor
between
26,698
LDU_FT/django-crispy-forms/django-crispy-forms/wrap
LDU_FT
[ "<BEGIN>\n## `do_uni_form`", "You need to pass in at least the form/formset object, and can also pass in the\n optional `crispy_forms.helpers.FormHelper` object.", " helper (optional): A `crispy_forms.helper.FormHelper` object.", " Usage::", " {% load crispy_tags %}\n {% crispy form f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap API. 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 wrap API. 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...
Wraps every layout object pointed in `self.slice` under a `LayoutClass` instance with `args` and `kwargs` passed.
"Wraps every layout object pointed in `self.slice` under a `LayoutClass` instance with\n `args` and `kwargs` passed."
89
false
django-crispy-forms/django-crispy-forms
wrap
26,699
LDU_FT/raiden-network/raiden/is_lock_pending
LDU_FT
[ "<BEGIN>\n## `events_for_onchain_secretreveal`", "Emits the event for revealing the secret on-chain if the transfer\n can not be settled off-chain.\n<END>", "<BEGIN>\n## `handle_inittarget`", "Handles an ActionInitTarget state change.\n<END>", "<BEGIN>\n## `handle_offchain_secretreveal`", "Validates an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_lock_pending API. 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 is_lock_pending API. 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...
True if the `secrethash` corresponds to a lock that is pending to be claimed and didn't expire.
"True if the `secrethash` corresponds to a lock that is pending to be claimed\n and didn't expire."
1,120
true
raiden-network/raiden
is_lock_pending
26,700
LDU_FT/junaruga/rpm-py-installer/is_python_binding_installed_on_pip
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_on_pip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_python_binding_installed_on_pip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Check if the Python binding has already installed.
"Check if the Python binding has already installed."
67
false
junaruga/rpm-py-installer
is_python_binding_installed_on_pip
26,701
LDU_FT/zyga/python-glibc/select
LDU_FT
[ "<BEGIN>\n## `_get_fd`", "Get a descriptor out of a file object.", " :param fileobj:\n An integer (existing descriptor) or any object having the `fileno()`\n method.\n :raises ValueError:\n if the descriptor cannot be obtained or if the descriptor is invalid\n :returns:\n fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. 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 select API. 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 ...
Wait until one or more of the registered file objects becomes ready or until the timeout expires. :param timeout: maximum wait time, in seconds (see below for special meaning) :returns: A list of pairs (key, events) for each ready file object. Note that the ...
"Wait until one or more of the registered file objects becomes ready\n or until the timeout expires.\n\n :param timeout:\n maximum wait time, in seconds (see below for special meaning)\n\n :returns:\n A list of pairs (key, events) for each ready file object.\n Note ...
106
false
zyga/python-glibc
select
26,702
LDU_FT/v1k45/django-notify-x/read_all
LDU_FT
[ "<BEGIN>\n## `include_notify_js_variables`", "Inclusion template tag to include all JS variables required by the\n notify.js file on the HTML page around <script> tags.", " Example::\n {% include_notify_js_variables %}", " :return: Prepares context for rendering in the inclusion file.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 extracte...
Marks all notifications as read for a user (if supplied) :param user: Notification recipient. :return: Updates QuerySet as read.
"Marks all notifications as read for a user (if supplied)\n\n :param user: Notification recipient.\n\n :return: Updates QuerySet as read."
92
false
v1k45/django-notify-x
read_all
26,703
LDU_FT/SeabornGames/Meta/parse_doc_dict
LDU_FT
[ "<BEGIN>\n## `function_arguments`", "This returns a list of all arguments\n :param func: callable object\n :return: list of str of the arguments for the function\n<END>", "<BEGIN>\n## `function_defaults`", "This returns a list of the default arguments\n :param func: callable object\n :return: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_doc_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_doc_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns a dictionary of the parsed doc for example the following would return {'a':'A','b':'B'} :: a:A b:B :param split_character: :param text: str of the text to parse, by default uses calling function doc :param split_character: str of the characters to split on in the doc string ...
"Returns a dictionary of the parsed doc for \n example the following would return {'a':'A','b':'B'} ::\n a:A\n b:B\n :param split_character:\n :param text: str of the text to parse, by default uses calling function doc\n :param split_character: str of the characters to split on in the doc stri...
43
false
SeabornGames/Meta
parse_doc_dict
26,704
LDU_FT/bfrog/whizzer/make_connection
LDU_FT
[ "<BEGIN>\n## `remote`", "Decorator that adds a remote attribute to a function.", " fn -- function being decorated\n name -- aliased name of the function, used for remote proxies\n types -- a argument type specifier, can be used to ensure\n arguments are of the correct type\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_connection API. 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 make_connection API. 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...
Called externally when the transport is ready.
"Called externally when the transport is ready."
107
false
bfrog/whizzer
make_connection
26,705
LDU_FT/theno/utlz/uncomment_or_update_or_append_line
LDU_FT
[ "<BEGIN>\n## `flo`", "Return the string given by param formatted with the callers locals.\n<END>", "<BEGIN>\n## `_wrap_with`", "Color wrapper.", " Example:\n >>> blue = _wrap_with('34')\n >>> print(blue('text'))\n \\033[34mtext\\033[0m\n<END>", "<BEGIN>\n## `clean`", "Delete temp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uncomment_or_update_or_append_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uncomment_or_update_or_append_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Remove the comment of an commented out line and make the line "active". If such an commented out line not exists it would be appended.
"Remove the comment of an commented out line and make the line \"active\".\n\n If such an commented out line not exists it would be appended."
68
false
theno/utlz
uncomment_or_update_or_append_line
26,706
LDU_FT/JustinLovinger/optimal/benchmark
LDU_FT
[ "<BEGIN>\n## `_initial_population_gsa`", "Create a random initial population of floating point values.", " Args:\n population_size: an integer representing the number of solutions in the population.\n problem_size: the number of values in each solution.\n lower_bounds: a list, each value...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the benchmark API. 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 benchmark API. 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...
Run an optimizer through a problem multiple times. Args: optimizer: Optimizer; The optimizer to benchmark. problem: Problem; The problem to benchmark on. runs: int > 0; Number of times that optimize is called on problem. Returns: dict; A dictionary of various statistics.
"Run an optimizer through a problem multiple times.\n\n Args:\n optimizer: Optimizer; The optimizer to benchmark.\n problem: Problem; The problem to benchmark on.\n runs: int > 0; Number of times that optimize is called on problem.\n\n Returns:\n dict; A dictionary of various statistic...
152
false
JustinLovinger/optimal
benchmark
26,707
LDU_FT/nfcpy/nfcpy/write_without_encryption
LDU_FT
[ "<BEGIN>\n## `reset_mode`", "Send a Reset command to set the operation mode to 0.\n<END>", "<BEGIN>\n## `sense_tta`", "Activate the RF field and probe for a Type A Target.", " The RC-S956 can discover all Type A Targets (Type 1 Tag, Type\n 2 Tag, and Type 4A Tag) at 106 kbps. Due to firmware\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_without_encryption 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 write_without_encryption API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Write data blocks to unencrypted services. This method sends a Write Without Encryption command to the tag. The data blocks to overwrite are indicated by a sequence of :class:`~nfc.tag.tt3.BlockCode` objects in the parameter *block_list*. Each block code must reference one of the ...
"Write data blocks to unencrypted services.\n\n This method sends a Write Without Encryption command to the\n tag. The data blocks to overwrite are indicated by a sequence\n of :class:`~nfc.tag.tt3.BlockCode` objects in the parameter\n *block_list*. Each block code must reference one of the\...
452
false
nfcpy/nfcpy
write_without_encryption
26,708
LDU_FT/booktype/python-ooxml/parse_drawing
LDU_FT
[ "<BEGIN>\n## `parse_drawing`", "Parse drawing element.", " We don't do much with drawing element. We can find embeded image but we don't do more than that.\n<END>", "<BEGIN>\n## `parse_paragraph`", "Parse paragraph element.", " Some other elements could be found inside of paragraph element (math, li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_drawing API. 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_drawing API. 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 drawing element. We don't do much with drawing element. We can find embeded image but we don't do more than that.
"Parse drawing element.\n\n We don't do much with drawing element. We can find embeded image but we don't do more than that."
117
false
booktype/python-ooxml
parse_drawing
26,709
LDU_FT/lrq3000/pyFileFixity/_tracker
LDU_FT
[ "<BEGIN>\n## `discard`", "Remove the first occurrence of *val*.", " If *val* is not a member, does nothing.\n<END>", "<BEGIN>\n## `remove`", "Remove first occurrence of *val*.", " Raises ValueError if *val* is not present.\n<END>", "<BEGIN>\n## `_delete`", "Delete the item at the given (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tracker API. 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 _tracker API. 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...
Injected constructor for tracked classes. Call the actual constructor of the object and track the object. Attach to the object before calling the constructor to track the object with the parameters of the most specialized class.
"Injected constructor for tracked classes.\n Call the actual constructor of the object and track the object.\n Attach to the object before calling the constructor to track the object with\n the parameters of the most specialized class."
1,045
true
lrq3000/pyFileFixity
_tracker
26,710
LDU_FT/nuagenetworks/monolithe/get_type_name
LDU_FT
[ "<BEGIN>\n## `raiseError`", "Print an error message", " Args:\n message: the message to print\n<END>", "<BEGIN>\n## `json`", "Print a nice JSON output", " Args:\n message: the message to print\n<END>", "<BEGIN>\n## `to_dict`", "Transform the current ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_type_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_type_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns a go type according to a spec type
"Returns a go type according to a spec type"
69
false
nuagenetworks/monolithe
get_type_name
26,711
LDU_FT/awickert/gFlex/BC_Rigidity
LDU_FT
[ "<BEGIN>\n## `elasprep`", "dx4, dy4, dx2dy2, D = elasprep(dx,dy,Te,E=1E11,nu=0.25)", " Defines the variables that are required to create the 2D finite \n difference solution coefficient matrix\n<END>", "<BEGIN>\n## `BC_selector_and_coeff_matrix_creator`", "Selects the boundary conditions\n E-W is f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the BC_Rigidity API. 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 BC_Rigidity API. 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...
Utility function to help implement boundary conditions by specifying them for and applying them to the elastic thickness grid
"Utility function to help implement boundary conditions by specifying \n them for and applying them to the elastic thickness grid"
78
false
awickert/gFlex
BC_Rigidity
26,712
LDU_FT/madprime/cgivar2gvcf/convert
LDU_FT
[ "<BEGIN>\n## `auto_zip_open`", "Convenience function for opening potentially-compressed files.\n<END>", "<BEGIN>\n## `process_full_position`", "Return genetic data when all alleles called on same line.", " Returns an array containing one item, a tuple of five items:\n (string) chromosome\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. 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 convert API. 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...
Generator that converts CGI var data to VCF-formated strings
"Generator that converts CGI var data to VCF-formated strings"
33
false
madprime/cgivar2gvcf
convert
26,713
LDU_FT/QualiSystems/vCenterShell/get_path_and_name
LDU_FT
[ "<BEGIN>\n## `get_inventory`", "Will locate vm in vcenter and fill its uuid\n :type context: cloudshell.shell.core.context.ResourceCommandContext\n<END>", "<BEGIN>\n## `get_snapshots`", "Restores a virtual machine to a snapshot\n :param vim.ServiceInstance si: py_vmomi service instance\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_path_and_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_path_and_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Split Whole Patch onto 'Patch' and 'Name' :param full_name: <str> Full Resource Name - likes 'Root/Folder/Folder2/Name' :return: tuple (Patch, Name)
"Split Whole Patch onto 'Patch' and 'Name'\n :param full_name: <str> Full Resource Name - likes 'Root/Folder/Folder2/Name'\n :return: tuple (Patch, Name)"
231
false
QualiSystems/vCenterShell
get_path_and_name
26,714
LDU_FT/OpenAssets/openassets/serialize_payload
LDU_FT
[ "<BEGIN>\n## `issue`", "Creates a transaction for issuing an asset.", " :param TransferParameters issuance_spec: The parameters of the issuance.\n :param bytes metadata: The metadata to be embedded in the transaction.\n :param int fees: The fees to include in the transaction.\n :retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_payload API. 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 serialize_payload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Serializes the marker output data into a payload buffer. :return: The serialized payload. :rtype: bytes
"Serializes the marker output data into a payload buffer.\n\n :return: The serialized payload.\n :rtype: bytes"
60
false
OpenAssets/openassets
serialize_payload
26,715
LDU_FT/euske/pdfminer/nextobject
LDU_FT
[ "<BEGIN>\n## `nextline`", "Fetches a next line that ends either with \\\\r or \\\\n.\n<END>", "<BEGIN>\n## `revreadlines`", "Fetches a next line backward.", " This is used to locate the trailers at the end of a file.\n<END>", "<BEGIN>\n## `nextobject`", "Yields a list of objects.", " Ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nextobject API. 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 nextobject API. 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...
Yields a list of objects. Returns keywords, literals, strings, numbers, arrays and dictionaries. Arrays and dictionaries are represented as Python lists and dictionaries.
"Yields a list of objects.\n\n Returns keywords, literals, strings, numbers, arrays and dictionaries.\n Arrays and dictionaries are represented as Python lists and dictionaries."
45
false
euske/pdfminer
nextobject
26,716
LDU_FT/getpelican/pelican-plugins/detect_images_and_galleries
LDU_FT
[ "<BEGIN>\n## `get_gif`", "Returns dict with gif informations from the API.\n<END>", "<BEGIN>\n## `main`", "Doing the regex parsing and running the create_html function.\n<END>", "<BEGIN>\n## `filetime_from_git`", "Update modification and creation times from git\n<END>", "<BEGIN>\n## `update_hash_from_st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_images_and_galleries 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 detect_images_and_galleries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Runs generator on both pages and articles.
"Runs generator on both pages and articles."
247
false
getpelican/pelican-plugins
detect_images_and_galleries
26,717
LDU_FT/paylogic/halogen/is_type
LDU_FT
[ "<BEGIN>\n## `to_dict`", "Return a dictionary representation of the error.", " :return: A dict with the keys:\n - attr: Attribute which contains the error, or \"<root>\" if it refers to the schema root.\n - errors: A list of dictionary representations of the errors.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Determine if value is an instance or subclass of the class Type.
"Determine if value is an instance or subclass of the class Type."
51
false
paylogic/halogen
is_type
26,718
LDU_FT/AmesCornish/buttersink/_printUUID
LDU_FT
[ "<BEGIN>\n## `update`", "Update self and parent with intermediate progress.\n<END>", "<BEGIN>\n## `close`", "Stop overwriting display, or update parent.\n<END>", "<BEGIN>\n## `transfer`", "Transfer (large) data from sender to receiver.\n<END>", "<BEGIN>\n## `display`", "Friendly string for volume, usi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _printUUID API. 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 _printUUID API. 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 friendly abbreviated string for uuid.
"Return friendly abbreviated string for uuid."
148
false
AmesCornish/buttersink
_printUUID
26,719
LDU_FT/pudo/normality/stringify
LDU_FT
[ "<BEGIN>\n## `_safe_name`", "Convert the file name to ASCII and normalize the string.\n<END>", "<BEGIN>\n## `safe_filename`", "Create a secure filename for plain file system storage.\n<END>", "<BEGIN>\n## `stringify`", "Brute-force convert a given object to a string.", " This will attempt an increasi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stringify API. 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 stringify API. 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...
Brute-force convert a given object to a string. This will attempt an increasingly mean set of conversions to make a given object into a unicode string. It is guaranteed to either return unicode or None, if all conversions failed (or the value is indeed empty).
"Brute-force convert a given object to a string.\n\n This will attempt an increasingly mean set of conversions to make a given\n object into a unicode string. It is guaranteed to either return unicode or\n None, if all conversions failed (or the value is indeed empty)."
33
false
pudo/normality
stringify
26,720
LDU_FT/consbio/ncdjango/clean
LDU_FT
[ "<BEGIN>\n## `p_binary_operators`", "conditional : conditional AND condition\n | conditional OR condition\n condition : condition LTE expression\n | condition GTE expression\n | condition LT expression\n | condition GT expression...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Cleans and returns the given value, or raises a ParameterNotValidError exception
"Cleans and returns the given value, or raises a ParameterNotValidError exception"
146
false
consbio/ncdjango
clean
26,721
LDU_FT/pyinvoke/invocations/prepare
LDU_FT
[ "<BEGIN>\n## `confirm`", "Ask user a yes/no question and return their response as a boolean.", " ``question`` should be a simple, grammatically complete question such as\n \"Do you wish to continue?\", and will have a string similar to ``\" [Y/n] \"``\n appended automatically. This function will *not* ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare API. 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 prepare API. 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...
Edit changelog & version, git commit, and git tag, to set up for release.
"Edit changelog & version, git commit, and git tag, to set up for release."
126
false
pyinvoke/invocations
prepare
26,722
LDU_FT/omtinez/pddb/upsert
LDU_FT
[ "<BEGIN>\n## `get_table_schema`", "Returns a list of column names of the provided table name\n<END>", "<BEGIN>\n## `load`", "Initiates the tables, schemas and record generators for this database.", " Parameters\n ----------\n table_names : list of str, str or None\n List of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upsert API. 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 upsert API. 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 ...
Attempts to update records in the provided table from the database. If none are found, inserts new record that would match all the conditions. Returns updated or inserted record as list, dict, str, dataframe or series depending on the value of `astype`. Parameters ---------- tna...
"Attempts to update records in the provided table from the database. If none are found,\n inserts new record that would match all the conditions. Returns updated or inserted record\n as list, dict, str, dataframe or series depending on the value of `astype`.\n\n Parameters\n ----------\n ...
41
false
omtinez/pddb
upsert
26,723
LDU_FT/CGATOxford/UMI-tools/main
LDU_FT
[ "<BEGIN>\n## `remove_umis`", "removes the specified nodes from the cluster and returns\n the remaining nodes\n<END>", "<BEGIN>\n## `get_substr_slices`", "Create slices to split a UMI into approximately equal size substrings\n Returns a list of tuples that can be passed to slice function\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. 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 main API. 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...
script main. parses command line options in sys.argv, unless *argv* is given.
"script main.\n\n parses command line options in sys.argv, unless *argv* is given."
165
false
CGATOxford/UMI-tools
main
26,724
LDU_FT/andymccurdy/redis-py/eval
LDU_FT
[ "<BEGIN>\n## `acquire`", "Use Redis to hold a shared, distributed lock named ``name``.\n Returns True once the lock is acquired.", " If ``blocking`` is False, always return immediately. If the lock\n was acquired, return True, otherwise return False.", " ``blocking_timeout`` specif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval API. 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 eval API. 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...
Execute the Lua ``script``, specifying the ``numkeys`` the script will touch and the key names and argument values in ``keys_and_args``. Returns the result of the script. In practice, use the object returned by ``register_script``. This function exists purely for Redis API completion.
"Execute the Lua ``script``, specifying the ``numkeys`` the script\n will touch and the key names and argument values in ``keys_and_args``.\n Returns the result of the script.\n\n In practice, use the object returned by ``register_script``. This\n function exists purely for Redis API complet...
308
false
andymccurdy/redis-py
eval
26,725
LDU_FT/edibledinos/pwnypack/fmtstring
LDU_FT
[ "<BEGIN>\n## `fmtstring`", "Build a format string that writes given data to given locations. Can be\n used easily create format strings to exploit format string bugs.", " `writes` is a list of 2- or 3-item tuples. Each tuple represents a memory\n write starting with an absolute address, then the data t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fmtstring API. 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 fmtstring API. 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...
Build a format string that writes given data to given locations. Can be used easily create format strings to exploit format string bugs. `writes` is a list of 2- or 3-item tuples. Each tuple represents a memory write starting with an absolute address, then the data to write as an integer and finally th...
"Build a format string that writes given data to given locations. Can be\n used easily create format strings to exploit format string bugs.\n\n `writes` is a list of 2- or 3-item tuples. Each tuple represents a memory\n write starting with an absolute address, then the data to write as an\n integer and fina...
353
false
edibledinos/pwnypack
fmtstring
26,726
LDU_FT/addisonlynch/iexfinance/_handle_error
LDU_FT
[ "<BEGIN>\n## `_sanitize_dates`", "Return (datetime_start, datetime_end) tuple\r\n if start is None - default is 2015/01/01\r\n if end is None - default is today\n<END>", "<BEGIN>\n## `get_social_sentiment`", "Social Sentiment", " .. warning:: Unstable endpoint. May return unexpected results.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_error API. 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 _handle_error API. 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...
Handles all responses which return an error status code
"Handles all responses which return an error status code"
129
false
addisonlynch/iexfinance
_handle_error
26,727
LDU_FT/soldag/python-pwmled/_transition_steps
LDU_FT
[ "<BEGIN>\n## `_get_pwm_values`", "Get the pwm values for a specific state of the led.", " If a state argument is omitted, current value is used.", " :param brightness: The brightness of the state.\n :param color: The color of the state.\n :return: The pwm values.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _transition_steps API. 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 _transition_steps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get the maximum number of steps needed for a transition. :param brightness: The brightness to transition to (0.0-1.0). :param color: The color to transition to. :return: The maximum number of steps.
"Get the maximum number of steps needed for a transition.\n\n :param brightness: The brightness to transition to (0.0-1.0).\n :param color: The color to transition to.\n :return: The maximum number of steps."
73
false
soldag/python-pwmled
_transition_steps
26,728
LDU_FT/Archived-Object/ligament/remove_dups
LDU_FT
[ "<BEGIN>\n## `register_dependency`", "registers a dependency of data_src -> data_sink\n by placing appropriate entries in provides_for and depends_on\n<END>", "<BEGIN>\n## `build_task`", "Builds a task by name, resolving any dependencies on the way\n<END>", "<BEGIN>\n## `is_build_needed`", "ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_dups API. 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 remove_dups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
remove duplicates from a sequence, preserving order
"remove duplicates from a sequence, preserving order"
66
false
Archived-Object/ligament
remove_dups
26,729
LDU_FT/ckoepp/TwitterSearch/send_search
LDU_FT
[ "<BEGIN>\n## `set_source_filter`", "Only search for tweets entered via given source", " :param source: String. Name of the source to search for. An example \\\n would be ``source=twitterfeed`` for tweets submitted via TwitterFeed\n :raises: TwitterSearchException\n<END>", "<BEGIN>\n## `ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Queries the Twitter API with a given query string and \ stores the results internally. Also validates returned HTTP status \ code and throws an exception in case of invalid HTTP states. \ Example usage ``sendSearch('?q=One+Two&count=100')`` :param url: A string of the URL to send the qu...
"Queries the Twitter API with a given query string and \\\n stores the results internally. Also validates returned HTTP status \\\n code and throws an exception in case of invalid HTTP states. \\\n Example usage ``sendSearch('?q=One+Two&count=100')``\n\n :param url: A string of the URL to se...
91
false
ckoepp/TwitterSearch
send_search
26,730
LDU_FT/graphql-python/graphql-core-next/collect_subfields
LDU_FT
[ "<BEGIN>\n## `uni_char_code`", "Convert unicode characters to integers.", " Converts four hexadecimal chars to the integer that the string represents.\n For example, uni_char_code('0','0','0','f') will return 15,\n and uni_char_code('0','0','f','f') returns 255.", " Returns a negative number on er...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_subfields API. 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 collect_subfields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Collect subfields. A cached collection of relevant subfields with regard to the return type is kept in the execution context as `_subfields_cache`. This ensures the subfields are not repeatedly calculated, which saves overhead when resolving lists of values.
"Collect subfields.\n\n A cached collection of relevant subfields with regard to the return type is\n kept in the execution context as `_subfields_cache`. This ensures the\n subfields are not repeatedly calculated, which saves overhead when resolving\n lists of values."
470
false
graphql-python/graphql-core-next
collect_subfields
26,731
LDU_FT/aiogram/aiogram/trigger
LDU_FT
[ "<BEGIN>\n## `execute_filter`", "Helper for executing filter", " :param filter_:\n :param args:\n :return:\n<END>", "<BEGIN>\n## `check_filters`", "Check list of filters", " :param filters:\n :param args:\n :return:\n<END>", "<BEGIN>\n## `validate`", "Validate and parse config.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trigger API. 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 trigger API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Call action to middlewares with args lilt. :param action: :param args: :return:
"Call action to middlewares with args lilt.\n\n :param action:\n :param args:\n :return:"
1,040
true
aiogram/aiogram
trigger
26,732
LDU_FT/shmir/PyIxExplorer/wait_transmit
LDU_FT
[ "<BEGIN>\n## `read_stats`", "Read port statistics from chassis.", " :param stats: list of requested statistics to read, if empty - read all statistics.\n<END>", "<BEGIN>\n## `read_stats`", "Read stream statistics from chassis.", " :param stats: list of requested statistics to read, if empty ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_transmit API. 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 wait_transmit API. 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...
Wait for traffic end on ports. :param ports: list of ports to wait for, if empty wait for all ports.
"Wait for traffic end on ports.\n\n :param ports: list of ports to wait for, if empty wait for all ports."
91
false
shmir/PyIxExplorer
wait_transmit
26,733
LDU_FT/dddomodossola/remi/configure_widget_for_editing
LDU_FT
[ "<BEGIN>\n## `add_coord`", "Adds a coord to the polyline and creates another circle\n<END>", "<BEGIN>\n## `set_stroke`", "Sets the stroke properties.\r", " Args:\r\n width (int): stroke width\r\n color (str): stroke color\n<END>", "<BEGIN>\n## `add_arrow_coord`", "Determine ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_widget_for_editing 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 configure_widget_for_editing API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
A widget have to be added to the editor, it is configured here in order to be conformant to the editor
"A widget have to be added to the editor, it is configured here in order to be conformant \n to the editor"
195
false
dddomodossola/remi
configure_widget_for_editing
26,734
LDU_FT/arve0/leicascanningtemplate/add_well
LDU_FT
[ "<BEGIN>\n## `well_fields`", "All ScanFieldData elements of given well.", " Parameters\n ----------\n well_x : int\n well_y : int", " Returns\n -------\n list of lxml.objectify.ObjectifiedElement\n All ScanFieldData elements of given well.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_well API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_well API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Add well with associated scan fields. ``self.wells[0]`` and ``self.fields[0]`` will be used as base. ScanWellData will be added to ScanWellArray and ScanFieldData to ScanFieldArray. The amount of fields added is decided by Properties/CountOfScanFields. Parameters ---------- ...
"Add well with associated scan fields. ``self.wells[0]`` and\n ``self.fields[0]`` will be used as base. ScanWellData will be added to\n ScanWellArray and ScanFieldData to ScanFieldArray. The amount of fields\n added is decided by Properties/CountOfScanFields.\n\n Parameters\n --------...
36
false
arve0/leicascanningtemplate
add_well
26,735
LDU_FT/iblancasa/GitHubCity/calculeToday
LDU_FT
[ "<BEGIN>\n## `export`", "Export all attributes of the user to a dict.", " :return: attributes of the user.\n :rtype: dict.\n<END>", "<BEGIN>\n## `__getContributions`", "Scrap the contributions from a GitHub profile.", " :param web: parsed web.\n :type web: BeautifulSoup node.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculeToday API. 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 calculeToday API. 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...
Calcule the intervals from the last date.
"Calcule the intervals from the last date."
97
false
iblancasa/GitHubCity
calculeToday
26,736
LDU_FT/jedie/DragonPy/get_initial_RAM
LDU_FT
[ "<BEGIN>\n## `create_environment`", "Creates a new environment in ``home_dir``.", " If ``site_packages`` is true, then the global ``site-packages/``\n directory will be on the path.", " If ``clear`` is true (default False) then the environment will\n first be cleared.\n<END>", "<BEGIN>\n## `path...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_initial_RAM API. 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_initial_RAM API. 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...
init the Dragon RAM See: http://archive.worldofdragon.org/phpBB3/viewtopic.php?f=5&t=4444
"init the Dragon RAM\n See: http://archive.worldofdragon.org/phpBB3/viewtopic.php?f=5&t=4444"
223
false
jedie/DragonPy
get_initial_RAM
26,737
LDU_FT/vecnet/vecnet.openmalaria/timesteps
LDU_FT
[ "<BEGIN>\n## `get_percentage_from_prob`", "Converted probability of being treated to total percentage of clinical cases treated\n<END>", "<BEGIN>\n## `get_schema_version_from_xml`", "Get schemaVersion attribute from OpenMalaria scenario file\n xml - open file or content of xml document to be processed\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timesteps API. 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 timesteps API. 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...
Time-step at which this intervention occurs, starting from 0, the first intervention-period time-step. https://github.com/SwissTPH/openmalaria/wiki/GeneratedSchema32Doc#-deploy-1 rtype: list
"Time-step at which this intervention occurs, starting from 0, the first intervention-period time-step.\n https://github.com/SwissTPH/openmalaria/wiki/GeneratedSchema32Doc#-deploy-1\n rtype: list"
42
false
vecnet/vecnet.openmalaria
timesteps
26,738
LDU_FT/sbg/sevenbridges-python/maintenance_sleeper
LDU_FT
[ "<BEGIN>\n## `query`", "Query (List) tasks. Date parameters may be both strings and python date\n objects.\n :param project: Target project. optional.\n :param status: Task status.\n :param batch: Only batch tasks.\n :param parent: Parent batch task identifier.\n :param e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maintenance_sleeper 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 maintenance_sleeper 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...
Pauses the execution if sevenbridges api is under maintenance. :param api: Api instance. :param response: requests.Response object. :param sleep: Time to sleep in between the requests.
"Pauses the execution if sevenbridges api is under maintenance.\n :param api: Api instance.\n :param response: requests.Response object.\n :param sleep: Time to sleep in between the requests."
292
false
sbg/sevenbridges-python
maintenance_sleeper
26,739
LDU_FT/inveniosoftware-contrib/invenio-classifier/get_partial_text
LDU_FT
[ "<BEGIN>\n## `get_acronyms`", "Find acronyms and expansions from the fulltext.", " If needed, acronyms can already contain a dictionary of previously found\n acronyms that will be merged with the current results.\n<END>", "<BEGIN>\n## `_add_expansion_to_acronym_dict`", "Add an acronym to the dictiona...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_partial_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_partial_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return a short version of the fulltext used with partial matching mode. The version is composed of 20% in the beginning and 20% in the middle of the text.
"Return a short version of the fulltext used with partial matching mode.\n\n The version is composed of 20% in the beginning and 20% in the middle of\n the text."
178
false
inveniosoftware-contrib/invenio-classifier
get_partial_text
26,740
LDU_FT/mardix/pylot/init
LDU_FT
[ "<BEGIN>\n## `read_pkginfo`", "Help us read the pkginfo without accessing __init__\n<END>", "<BEGIN>\n## `with_user_roles`", "with_user_roles(roles)", " It allows to check if a user has access to a view by adding the decorator\n with_user_roles([])", " Requires flask-login", " In your model,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Allow to register all subclasses of Pylot So we call it once initiating :param flask_or_import_name: Flask instance or import name -> __name__ :param directory: The directory containing your project's Views, Templates and Static :param config: string of config object. ie: "app.config.Dev...
"Allow to register all subclasses of Pylot\n So we call it once initiating\n :param flask_or_import_name: Flask instance or import name -> __name__\n :param directory: The directory containing your project's Views, Templates and Static\n :param config: string of config object. ie: \"app.conf...
66
false
mardix/pylot
init
26,741
LDU_FT/eyurtsev/fcsparser/read_text
LDU_FT
[ "<BEGIN>\n## `fromfile`", "Wrapper around np.fromfile to support any file-like object.\n<END>", "<BEGIN>\n## `parse`", "Parse an fcs file at the location specified by the path.", " Parameters\n ----------\n path: str\n Path of .fcs file\n meta_data_only: bool\n If True, the parse_f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Parse the TEXT segment of the FCS file. The TEXT segment contains meta data associated with the FCS file. Converting all meta keywords to lower case.
"Parse the TEXT segment of the FCS file.\n\n The TEXT segment contains meta data associated with the FCS file.\n Converting all meta keywords to lower case."
39
false
eyurtsev/fcsparser
read_text
26,742
LDU_FT/databricks/spark-sklearn/fit
LDU_FT
[ "<BEGIN>\n## `gapply`", "Applies the function ``func`` to data grouped by key. In particular, given a dataframe\n grouped by some set of key columns key1, key2, ..., keyn, this method groups all the values\n for each row with the same key columns into a single Pandas dataframe and by default invokes\n ``...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. 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 fit API. 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...
Run fit on the estimator with randomly drawn parameters. Parameters ---------- X : array-like, shape = [n_samples, n_features] Training vector, where n_samples in the number of samples and n_features is the number of features. y : array-like, shape = [n_samples...
"Run fit on the estimator with randomly drawn parameters.\n\n Parameters\n ----------\n\n X : array-like, shape = [n_samples, n_features]\n Training vector, where n_samples in the number of samples and\n n_features is the number of features.\n\n y : array-like, shape = ...
41
false
databricks/spark-sklearn
fit
26,743
LDU_FT/bslatkin/dpxdt/_get_release_params
LDU_FT
[ "<BEGIN>\n## `add`", "Adds a work item to a queue.", " Args:\n queue_name: Name of the queue to add the work item to.\n payload: Optional. Payload that describes the work to do as a string.\n If not a string and content_type is not provided, then this\n function assumes th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_release_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_release_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Gets the release params from the current request.
"Gets the release params from the current request."
180
false
bslatkin/dpxdt
_get_release_params
26,744
LDU_FT/eumis/pyviews/get_expression_target
LDU_FT
[ "<BEGIN>\n## `parse_expression`", "Returns tuple with expression type and expression body\n<END>", "<BEGIN>\n## `register_single`", "Generates resolver to return singleton value and adds it to global container\n<END>", "<BEGIN>\n## `wrap_with_scope`", "Wraps function with scope. If scope_name is None curr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_expression_target API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_expression_target API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Factory method to create expression target
"Factory method to create expression target"
34
false
eumis/pyviews
get_expression_target
26,745
LDU_FT/SmartTeleMax/iktomi/check_password
LDU_FT
[ "<BEGIN>\n## `pare`", "Pare text to have maximum size and add etc to the end if it's\n changed\n<END>", "<BEGIN>\n## `quoteattrs`", "Takes dict of attributes and returns their HTML representation\n<END>", "<BEGIN>\n## `quote_js`", "Quotes text to be used as JavaScript string in HTML templates. The\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_password API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_password API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns a boolean of whether the raw_password was correct. Handles encryption formats behind the scenes.
"Returns a boolean of whether the raw_password was correct. Handles\n encryption formats behind the scenes."
196
false
SmartTeleMax/iktomi
check_password
26,746
LDU_FT/PagerDuty/pagerduty-api-python-client/resolve
LDU_FT
[ "<BEGIN>\n## `abilities`", "Fetch a list of permission-like strings for this account.\n<END>", "<BEGIN>\n## `set_api_key_from_file`", "Set the global api_key from a file path.\n<END>", "<BEGIN>\n## `resolve`", "Resolve an incident using a valid email address.\n<END>", "<BEGIN>\n## `reassign`", "Reassi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve API. 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 resolve API. 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...
Resolve an alert using a valid email address.
"Resolve an alert using a valid email address."
113
false
PagerDuty/pagerduty-api-python-client
resolve
26,747
LDU_FT/widdowquinn/pyADHoRe/_write_segments
LDU_FT
[ "<BEGIN>\n## `read`", "Returns an IadhoreData object, constructed from the passed\n i-ADHoRe multiplicon and segments output.", " - mfile (str), location of multiplicons.txt\n - sfile (str), location of segments.txt\n<END>", "<BEGIN>\n## `_parse_multiplicons`", "Read the multiplicon out...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_segments API. 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_segments API. 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...
Write segments to file. - filename, (str) location of output file
"Write segments to file.\n\n - filename, (str) location of output file"
37
false
widdowquinn/pyADHoRe
_write_segments
26,748
LDU_FT/LuqueDaniel/pybooru/artist_commentary_list
LDU_FT
[ "<BEGIN>\n## `post_update`", "Update a specific post (Requires login).", " Parameters:\n post_id (int): The id number of the post to update.\n tag_string (str): A space delimited list of tags.\n rating (str): The rating for the post. Can be: safe, questionable,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the artist_commentary_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the artist_commentary_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
list artist commentary. Parameters: text_matches (str): post_id (int): post_tags_match (str): The commentary's post's tags match the giventerms. Meta-tags not supported. original_present (str): Can be: yes, no. trans...
"list artist commentary.\n\n Parameters:\n text_matches (str):\n post_id (int):\n post_tags_match (str): The commentary's post's tags match the\n giventerms. Meta-tags not supported.\n original_present (str): Can be: yes, no.\n ...
299
false
LuqueDaniel/pybooru
artist_commentary_list
26,749
LDU_FT/jaraco/path.py/files
LDU_FT
[ "<BEGIN>\n## `load`", "If the supplied parameter is a string, assum it's a simple\n pattern.\n<END>", "<BEGIN>\n## `simple_cache`", "Save results for the :meth:'path.using_module' classmethod.\n When Python 3.2 is available, use functools.lru_cache instead.\n<END>", "<BEGIN>\n## `only_newer`", "Wrap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the files API. 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 files API. 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...
D.files() -> List of the files in this directory. The elements of the list are Path objects. This does not walk into subdirectories (see :meth:`walkfiles`). Accepts parameters to :meth:`listdir`.
"D.files() -> List of the files in this directory.\n\n The elements of the list are Path objects.\n This does not walk into subdirectories (see :meth:`walkfiles`).\n\n Accepts parameters to :meth:`listdir`."
158
false
jaraco/path.py
files
26,750
LDU_FT/tanghaibao/jcvi/gaps
LDU_FT
[ "<BEGIN>\n## `patience_sort`", "Patience sort an iterable, xs.", " This function generates a series of pairs (x, pile), where \"pile\"\n is the 0-based index of the pile \"x\" should be placed on top of.\n Elements of \"xs\" must be less-than comparable.\n<END>", "<BEGIN>\n## `longest_monotonic_subse...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gaps API. 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 gaps API. 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...
%prog gaps agpfile Print out the distribution of gapsizes. Option --merge allows merging of adjacent gaps which is used by tidy().
"%prog gaps agpfile\n\n Print out the distribution of gapsizes. Option --merge allows merging of\n adjacent gaps which is used by tidy()."
3,304
true
tanghaibao/jcvi
gaps
26,751
LDU_FT/dmbee/seglearn/corr2
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit the model", " Fit all the transforms one after the other and transform the\n data, then fit the transformed data using the final estimator.", " Parameters\n ----------\n X : iterable\n Training data. Must fulfill input requirements of fir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the corr2 API. 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 corr2 API. 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...
computes correlations between all variable pairs in a segmented time series .. note:: this feature is expensive to compute with the current implementation, and cannot be used with univariate time series
"computes correlations between all variable pairs in a segmented time series\n\n .. note:: this feature is expensive to compute with the current implementation, and cannot be\n used with univariate time series"
165
false
dmbee/seglearn
corr2
26,752
LDU_FT/MagicStack/asyncpg/reset_type_codec
LDU_FT
[ "<BEGIN>\n## `fetch`", "r\"\"\"Return the next *n* rows as a list of :class:`Record` objects.", " :param float timeout: Optional timeout value in seconds.", " :return: A list of :class:`Record` instances.\n<END>", "<BEGIN>\n## `fetchrow`", "r\"\"\"Return the next row.", " :param flo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_type_codec API. 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 reset_type_codec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Reset *typename* codec to the default implementation. :param typename: Name of the data type the codec is for. :param schema: Schema name of the data type the codec is for (defaults to ``'public'``) .. versionadded:: 0.12.0
"Reset *typename* codec to the default implementation.\n\n :param typename:\n Name of the data type the codec is for.\n\n :param schema:\n Schema name of the data type the codec is for\n (defaults to ``'public'``)\n\n .. versionadded:: 0.12.0"
284
false
MagicStack/asyncpg
reset_type_codec
26,753
LDU_FT/ptmcg/littletable/csv_import
LDU_FT
[ "<BEGIN>\n## `copy_template`", "Create empty copy of the current table, with copies of all\n index definitions.\n<END>", "<BEGIN>\n## `clone`", "Create full copy of the current table, including table contents\n and index definitions.\n<END>", "<BEGIN>\n## `create_index`", "Create a new...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the csv_import API. 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 csv_import API. 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...
Imports the contents of a CSV-formatted file into this table. @param csv_source: CSV file - if a string is given, the file with that name will be opened, read, and closed; if a file object is given, then that object will be read as-is, and left for the caller to be closed. ...
"Imports the contents of a CSV-formatted file into this table.\n @param csv_source: CSV file - if a string is given, the file with that name will be\n opened, read, and closed; if a file object is given, then that object\n will be read as-is, and left for the caller to be closed.\n...
75
false
ptmcg/littletable
csv_import
26,754
LDU_FT/gitpython-developers/smmap/use_region
LDU_FT
[ "<BEGIN>\n## `_copy_from`", "Copy all data from rhs into this instance, handles usage count\n<END>", "<BEGIN>\n## `use_region`", "Assure we point to a window which allows access to the given offset into the file", " :param offset: absolute offset in bytes into the file\n :param size: amount of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_region API. 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 use_region API. 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...
Assure we point to a window which allows access to the given offset into the file :param offset: absolute offset in bytes into the file :param size: amount of bytes to map. If 0, all available bytes will be mapped :param flags: additional flags to be given to os.open in case a file handle is in...
"Assure we point to a window which allows access to the given offset into the file\n\n :param offset: absolute offset in bytes into the file\n :param size: amount of bytes to map. If 0, all available bytes will be mapped\n :param flags: additional flags to be given to os.open in case a file handle ...
49
false
gitpython-developers/smmap
use_region
26,755
LDU_FT/GoogleCloudPlatform/appengine-gcs-client/open
LDU_FT
[ "<BEGIN>\n## `check_status`", "Check HTTP response status is expected.", " Args:\n status: HTTP response status. int.\n expected: a list of expected statuses. A list of ints.\n path: filename or a path prefix.\n headers: HTTP request headers.\n resp_headers: HTTP response headers.\n body: HTT...
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 do...
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 do...
Opens a Google Cloud Storage file and returns it as a File-like object. Args: filename: A Google Cloud Storage filename of form '/bucket/filename'. mode: 'r' for reading mode. 'w' for writing mode. In reading mode, the file must exist. In writing mode, a file will be created or be overrode. c...
"Opens a Google Cloud Storage file and returns it as a File-like object.\n\n Args:\n filename: A Google Cloud Storage filename of form '/bucket/filename'.\n mode: 'r' for reading mode. 'w' for writing mode.\n In reading mode, the file must exist. In writing mode, a file will\n be created or be overrode...
270
false
GoogleCloudPlatform/appengine-gcs-client
open
26,756
LDU_FT/astropy/regions/set_coordsys
LDU_FT
[ "<BEGIN>\n## `ds9_objects_to_string`", "Converts a `list` of `~regions.Region` to DS9 region string.", " Parameters\n ----------\n regions : `list`\n List of `~regions.Region` objects\n coordsys : `str`, optional\n This overrides the coordinate system frame for all regions.\n De...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_coordsys API. 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 set_coordsys API. 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...
Transform coordinate system # TODO: needs expert attention
"Transform coordinate system\n\n # TODO: needs expert attention"
237
false
astropy/regions
set_coordsys
26,757
LDU_FT/dragnet-org/dragnet/extract_gold_standard_blocks
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit :class`Extractor` features and model to a training dataset.", " Args:\n blocks (List[Block])\n labels (``np.ndarray``)\n weights (``np.ndarray``)", " Returns:\n :class`Extractor`\n<END>", "<BEGIN>\n## `get_html_labels_weight...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_gold_standard_blocks 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 extract_gold_standard_blocks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Extract the gold standard block-level content and comments for a single observation identified by ``fileroot``, and write the results to file. Args: data_dir (str): The root directory containing sub-directories for raw HTML, gold standard extracted content, and gold standard blocks. ...
"Extract the gold standard block-level content and comments for a single\n observation identified by ``fileroot``, and write the results to file.\n\n Args:\n data_dir (str): The root directory containing sub-directories for\n raw HTML, gold standard extracted content, and gold standard blocks.\n...
134
false
dragnet-org/dragnet
extract_gold_standard_blocks
26,758
LDU_FT/baccuslab/shannon/mi
LDU_FT
[ "<BEGIN>\n## `remove_symbol_from_dist`", "prob is a ndarray representing a probability distribution.\n index is a number between 0 and and the number of symbols ( len(prob)-1 )\n return the probability distribution if the element at 'index' was no longer available\n<END>", "<BEGIN>\n## `change_response`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mi API. 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 docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mi API. 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 docu...
compute and return the mutual information between x and y inputs: ------- x, y: numpy arrays of shape samples x dimension method: 'nearest-neighbors', 'gaussian', or 'bin' units: 'bits' or 'nats' output: ------- mi: float Notes: ------ ...
"compute and return the mutual information between x and y\n\n inputs:\n -------\n x, y: numpy arrays of shape samples x dimension\n method: 'nearest-neighbors', 'gaussian', or 'bin'\n units: 'bits' or 'nats'\n\n output:\n -------\n mi: float\n\n Notes:\n ...
83
false
baccuslab/shannon
mi
26,759
LDU_FT/clintval/sample-sheet/add_sample
LDU_FT
[ "<BEGIN>\n## `_sum_cycles_from_tokens`", "Sum the total number of cycles over a list of tokens.\n<END>", "<BEGIN>\n## `template_cycles`", "The number of cycles dedicated to template.\n<END>", "<BEGIN>\n## `skip_cycles`", "The number of cycles dedicated to skips.\n<END>", "<BEGIN>\n## `total_cycles`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_sample API. 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 add_sample API. 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...
Add a :class:`Sample` to this :class:`SampleSheet`. All samples are validated against the first sample added to the sample sheet to ensure there are no ID collisions or incompatible read structures (if supplied). All samples are also validated against the ``"[Reads]"`` section of the sa...
"Add a :class:`Sample` to this :class:`SampleSheet`.\n\n All samples are validated against the first sample added to the sample\n sheet to ensure there are no ID collisions or incompatible read\n structures (if supplied). All samples are also validated against the\n ``\"[Reads]\"`` section o...
50
false
clintval/sample-sheet
add_sample
26,760
LDU_FT/cimm-kzn/CGRtools/calculate2d
LDU_FT
[ "<BEGIN>\n## `reset_query_marks`", "set or reset hyb and neighbors marks to atoms.\n<END>", "<BEGIN>\n## `implicify_hydrogens`", "remove explicit hydrogen if possible", " :return: number of removed hydrogens\n<END>", "<BEGIN>\n## `explicify_hydrogens`", "add explicit hydrogens to atoms", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate2d API. 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 calculate2d API. 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...
recalculate 2d coordinates. currently rings can be calculated badly. :param scale: rescale calculated positions. :param force: ignore existing coordinates of atoms
"recalculate 2d coordinates. currently rings can be calculated badly.\n\n :param scale: rescale calculated positions.\n :param force: ignore existing coordinates of atoms"
122
false
cimm-kzn/CGRtools
calculate2d
26,761
LDU_FT/djgagne/hagelslag/hss
LDU_FT
[ "<BEGIN>\n## `label`", "Label input grid with hysteresis method.", " Args:\n input_grid: 2D array of values.", " Returns:\n Labeled output grid.\n<END>", "<BEGIN>\n## `size_filter`", "Remove labeled objects that do not meet size threshold criteria.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hss API. 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 hss API. 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...
Doolittle (Heidke) Skill Score. 2(ad-bc)/((a+b)(b+d) + (a+c)(c+d))
"Doolittle (Heidke) Skill Score. 2(ad-bc)/((a+b)(b+d) + (a+c)(c+d))"
530
false
djgagne/hagelslag
hss
26,762
LDU_FT/openpermissions/koi/auth_optional
LDU_FT
[ "<BEGIN>\n## `define_options`", "Define the options from default.conf dynamically\n<END>", "<BEGIN>\n## `log_config`", "Logs the config used to start the application\n<END>", "<BEGIN>\n## `ssl_server_options`", "ssl options for tornado https server\n these options are defined in each application's defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_optional API. 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 auth_optional API. 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...
Decorate a RequestHandler or method to accept optional authentication token If decorating a coroutine make sure coroutine decorator is first. eg.:: class Handler(tornado.web.RequestHandler): @auth_required(validator) @coroutine def get(self): pass ...
"Decorate a RequestHandler or method to accept optional authentication token\n\n If decorating a coroutine make sure coroutine decorator is first.\n eg.::\n\n class Handler(tornado.web.RequestHandler):\n\n @auth_required(validator)\n @coroutine\n def get(self):\n ...
122
false
openpermissions/koi
auth_optional
26,763
LDU_FT/dswah/pyGAM/_has_terms
LDU_FT
[ "<BEGIN>\n## `validate_callback_data`", "wraps a callback's method to pull the desired arguments from the vars dict\n also checks to ensure the method's arguments are in the vars dict", " Parameters\n ----------\n method : callable", " Returns\n -------\n validated callable\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _has_terms API. 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 _has_terms API. 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...
bool, whether the instance has any sub-terms
"bool, whether the instance has any sub-terms"
770
false
dswah/pyGAM
_has_terms
26,764
LDU_FT/twisted/twistedchecker/run
LDU_FT
[ "<BEGIN>\n## `_isInner`", "Determine whether the given node is, at any point in its syntactic\n parentage, defined within a function.", " @param node: The node to inspect.\n @type node: L{logilab.astng.bases.NodeNG}", " @return: a boolean indicating if the given node is defined as an inner\n ...
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...
Setup the environment, and run pylint. @param args: arguments will be passed to pylint @type args: list of string
"Setup the environment, and run pylint.\n\n @param args: arguments will be passed to pylint\n @type args: list of string"
146
false
twisted/twistedchecker
run
26,765
LDU_FT/benfred/implicit/explain
LDU_FT
[ "<BEGIN>\n## `download_file`", "Simple wrapper around urlretrieve that uses tqdm to display a progress\n bar of download progress\n<END>", "<BEGIN>\n## `extract_gcc_binaries`", "Try to find GCC on OSX for OpenMP support.\n<END>", "<BEGIN>\n## `set_gcc`", "Try to use GCC on OSX for OpenMP support.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the explain API. 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 explain API. 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...
Provides explanations for why the item is liked by the user. Parameters --------- userid : int The userid to explain recommendations for user_items : csr_matrix Sparse matrix containing the liked items for the user itemid : int The itemid to e...
"Provides explanations for why the item is liked by the user.\n\n Parameters\n ---------\n userid : int\n The userid to explain recommendations for\n user_items : csr_matrix\n Sparse matrix containing the liked items for the user\n itemid : int\n The i...
87
false
benfred/implicit
explain
26,766
LDU_FT/erget/StereoVision/get_chessboard
LDU_FT
[ "<BEGIN>\n## `get_frames_singleimage`", "Get current left and right frames from a single image,\n by splitting the image in half.\n<END>", "<BEGIN>\n## `show_frames`", "Show current frames from cameras.", " ``wait`` is the wait interval in milliseconds before the window closes.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_chessboard API. 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_chessboard API. 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...
Take a picture with a chessboard visible in both captures. ``columns`` and ``rows`` should be the number of inside corners in the chessboard's columns and rows. ``show`` determines whether the frames are shown while the cameras search for a chessboard.
"Take a picture with a chessboard visible in both captures.\n\n ``columns`` and ``rows`` should be the number of inside corners in the\n chessboard's columns and rows. ``show`` determines whether the frames\n are shown while the cameras search for a chessboard."
83
false
erget/StereoVision
get_chessboard
26,767
LDU_FT/GuiltyTargets/ppi-network-annotation/get_neighborhood_network
LDU_FT
[ "<BEGIN>\n## `get_neighborhood_network`", "Get the neighborhood graph of a node.", " :param str node_name: Node whose neighborhood graph is requested.\n :return Graph: Neighborhood graph\n<END>", "<BEGIN>\n## `get_neighbor_names`", "Get the names of all neighbors of a node, and the node itself...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_neighborhood_network 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 get_neighborhood_network API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Get the neighborhood graph of a node. :param str node_name: Node whose neighborhood graph is requested. :return Graph: Neighborhood graph
"Get the neighborhood graph of a node.\n\n :param str node_name: Node whose neighborhood graph is requested.\n :return Graph: Neighborhood graph"
105
false
GuiltyTargets/ppi-network-annotation
get_neighborhood_network
26,768
LDU_FT/mdsol/rwslib/transaction_type
LDU_FT
[ "<BEGIN>\n## `format_date_argument`", "Take a date as either a datetime.date/datetime or a string and return it as a iso8601 formatted value\n :param Union[datetime.date, datetime.datetime] date_element: passed argument\n :rtype str\n :return:\n<END>", "<BEGIN>\n## `dataset`", "Qualify the dataset_na...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transaction_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transaction_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Set the TransactionType (with Input Validation)
"Set the TransactionType (with Input Validation)"
120
false
mdsol/rwslib
transaction_type
26,769
LDU_FT/usc-isi-i2/etk/has_event
LDU_FT
[ "<BEGIN>\n## `decode_unicode`", "Process of parsing:\n -> Convert unicode into standard form\n -> Convert each character of the unicode symbol to its numerical equivalent\n -> Mapping Process:\n - First check in pattern dictionary to map suffix/prefix\n - Check Emoticon Dictionary \n - Replace valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Test whether there is an "event2" or "event3" entry for the given cameo code Args: event: cameo_code: Returns:
"Test whether there is an \"event2\" or \"event3\" entry for the given cameo code\n Args:\n event:\n cameo_code:\n\n Returns:"
427
false
usc-isi-i2/etk
has_event
26,770
LDU_FT/pyusb/pyusb/detachKernelDriver
LDU_FT
[ "<BEGIN>\n## `_try_get_string`", "try to get a string, but return a string no matter what\n<END>", "<BEGIN>\n## `_try_lookup`", "try to get a string from the lookup table, return \"\" instead of key\n error\n<END>", "<BEGIN>\n## `find`", "r\"\"\"Find an USB device and return it.", " find() is the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detachKernelDriver 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 detachKernelDriver 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...
r"""Detach a kernel driver from the interface (if one is attached, we have permission and the operation is supported by the OS) Arguments: interface: interface number or an Interface object.
"r\"\"\"Detach a kernel driver from the interface (if one is attached,\n we have permission and the operation is supported by the OS)\n\n Arguments:\n interface: interface number or an Interface object."
229
false
pyusb/pyusb
detachKernelDriver
26,771
LDU_FT/nerdvegas/rez/_expand
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 _expand API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expand API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Splits sublists that are more than double the load level. Updates the index when the sublist length is less than double the load level. This requires incrementing the nodes in a traversal from the leaf node to the root. For an example traversal see self._loc.
"Splits sublists that are more than double the load level.\n\n Updates the index when the sublist length is less than double the load\n level. This requires incrementing the nodes in a traversal from the\n leaf node to the root. For an example traversal see self._loc."
2,330
true
nerdvegas/rez
_expand
26,772