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/jim-easterbrook/pyctools/input_connections
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect an output to any callable object.", " :param str output_name: the output to connect. Must be one of\n the ``'self'`` outputs in the ``linkages`` parameter.", " :param callable input_method: the thread-safe callable to invoke\n when :py:meth...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the input_connections API. 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 input_connections API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Yield ordered list of connections to one child. Each result is a ((component, output), (component, input)) tuple. :param string name: the component whose input connections are wanted.
"Yield ordered list of connections to one child.\n\n Each result is a ((component, output), (component, input)) tuple.\n\n :param string name: the component whose input connections are\n wanted."
158
false
jim-easterbrook/pyctools
input_connections
12,973
LDU_FT/Gbps/fastlog/newline
LDU_FT
[ "<BEGIN>\n## `addHandler`", "Setups a new internal logging handler. For fastlog loggers,\n handlers are kept track of in the self._handlers list\n<END>", "<BEGIN>\n## `setStyle`", "Adjusts the output format of messages based on the style name provided", " Styles are loaded like python modules,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the newline API. 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 newline API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Prints an empty line to the log. Uses the level of the last message printed unless specified otherwise with the level= kwarg.
"Prints an empty line to the log. Uses the level of the last message\n printed unless specified otherwise with the level= kwarg."
63
false
Gbps/fastlog
newline
12,974
LDU_FT/amol-/dukpy/less_compile
LDU_FT
[ "<BEGIN>\n## `babel_compile`", "Compiles the given ``source`` from ES6 to ES5 using Babeljs\n<END>", "<BEGIN>\n## `coffee_compile`", "Compiles the given ``source`` from CoffeeScript to JavaScript\n<END>", "<BEGIN>\n## `register_path`", "Registers a directory where to look for modules.", " By defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the less_compile API. 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 less_compile API. 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...
Compiles the given ``source`` from LESS to CSS
"Compiles the given ``source`` from LESS to CSS"
26
false
amol-/dukpy
less_compile
12,975
LDU_FT/pixelogik/NearPy/delete_vector
LDU_FT
[ "<BEGIN>\n## `store_vector`", "Stores vector and JSON-serializable data in bucket with specified key.\n<END>", "<BEGIN>\n## `store_many_vectors`", "Store a batch of vectors.\n Stores vector and JSON-serializable data in bucket with specified key.\n<END>", "<BEGIN>\n## `delete_vector`", "Deletes vec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_vector API. 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 delete_vector API. 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...
Deletes vector and JSON-serializable data in buckets with specified keys.
"Deletes vector and JSON-serializable data in buckets with specified keys."
103
false
pixelogik/NearPy
delete_vector
12,976
LDU_FT/praw-dev/prawcore/authorization_error_class
LDU_FT
[ "<BEGIN>\n## `receive_connection`", "Wait for and then return a connected socket..", " Opens a TCP connection on port 8080, and waits for a single client.\n<END>", "<BEGIN>\n## `send_message`", "Send message to client and close the connection.\n<END>", "<BEGIN>\n## `main`", "Provide the program's ent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authorization_error_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authorization_error_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Return an exception instance that maps to the OAuth Error. :param response: The HTTP response containing a www-authenticate error.
"Return an exception instance that maps to the OAuth Error.\n\n :param response: The HTTP response containing a www-authenticate error."
51
false
praw-dev/prawcore
authorization_error_class
12,977
LDU_FT/tweepy/tweepy/get_access_token
LDU_FT
[ "<BEGIN>\n## `get_authorization_url`", "Get the authorization URL to redirect the user\n<END>", "<BEGIN>\n## `get_access_token`", "After user has authorized the request token, get access token\n with user supplied verifier.\n<END>", "<BEGIN>\n## `get_xauth_access_token`", "Get an access token from ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
After user has authorized the request token, get access token with user supplied verifier.
"After user has authorized the request token, get access token\n with user supplied verifier."
54
false
tweepy/tweepy
get_access_token
12,978
LDU_FT/eddiejessup/agaro/measures
LDU_FT
[ "<BEGIN>\n## `get_average_measure`", "Calculate a measure of a model in an output directory, averaged over\n all times when the model is at steady-state.", " Parameters\n ----------\n dirname: str\n Output directory\n measure_func: function\n Function which takes a :class:`Model` in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the measures API. 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 measures API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Calculate a measure of a set of model output directories, for a measure function which returns an associated uncertainty. Parameters ---------- dirnames: list[str] Model output directory paths. measure_func: function Function which takes a :class:`Model` instance as a single argumen...
"Calculate a measure of a set of model output directories,\n for a measure function which returns an associated uncertainty.\n\n Parameters\n ----------\n dirnames: list[str]\n Model output directory paths.\n measure_func: function\n Function which takes a :class:`Model` instance as a singl...
62
false
eddiejessup/agaro
measures
12,979
LDU_FT/tariqdaouda/rabaDB/enableStats
LDU_FT
[ "<BEGIN>\n## `removeFromRegistery`", "Removes an object/rabalist from registery. This is useful if you want to allow the garbage collector to free the memory\n\ttaken by the objects you've already loaded. Be careful might cause some discrepenties in your scripts. For objects,\n\tcascades to free the registeries o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enableStats API. 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 enableStats API. 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...
If bol == True, Raba will keep a count of every query time performed, logQueries == True it will also keep a record of all the queries
"If bol == True, Raba will keep a count of every query time performed, logQueries == True it will also keep a record of all the queries"
55
false
tariqdaouda/rabaDB
enableStats
12,980
LDU_FT/etingof/pysnmp/bulkCmd
LDU_FT
[ "<BEGIN>\n## `getMibSymbol`", "Returns MIB variable symbolic identification.", " Returns\n -------\n str\n MIB module name\n str\n MIB variable symbolic name\n : :py:class:`~pysnmp.proto.rfc1902.ObjectName`\n class instance representing MIB ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bulkCmd API. 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 bulkCmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Creates a generator to perform one or more SNMP GETBULK queries. On each iteration, new SNMP GETBULK request is send (:RFC:`1905#section-4.2.3`). The iterator blocks waiting for response to arrive or error to occur. Parameters ---------- snmpEngine : :py:class:`~pysnmp.hlapi.SnmpEngine` ...
"Creates a generator to perform one or more SNMP GETBULK queries.\n\n On each iteration, new SNMP GETBULK request is send\n (:RFC:`1905#section-4.2.3`). The iterator blocks waiting for response\n to arrive or error to occur.\n\n Parameters\n ----------\n snmpEngine : :py:class:`~pysnmp.hlapi.SnmpEngin...
708
false
etingof/pysnmp
bulkCmd
12,981
LDU_FT/secynic/ipwhois/generate_output_list
LDU_FT
[ "<BEGIN>\n## `lookup_asn`", "Temporary wrapper for IP ASN lookups (moved to\n asn.IPASN.lookup()). This will be removed in a future\n release.\n<END>", "<BEGIN>\n## `get_asn_dns`", "The function for retrieving ASN information for an IP address from\n Cymru via port 53 (DNS).", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_output_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 generate_output_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
The function for generating CLI output RDAP list results. Args: source (:obj:`str`): The parent key 'network' or 'objects' (required). key (:obj:`str`): The event key 'events' or 'events_actor' (required). val (:obj:`dict`): The event dictiona...
"The function for generating CLI output RDAP list results.\n\n Args:\n source (:obj:`str`): The parent key 'network' or 'objects'\n (required).\n key (:obj:`str`): The event key 'events' or 'events_actor'\n (required).\n val (:obj:`dict`): The event ...
333
false
secynic/ipwhois
generate_output_list
12,982
LDU_FT/asaskevich/binario/write
LDU_FT
[ "<BEGIN>\n## `write`", "Writes a byte buffer to the underlying output file.\n Raise exception when file is already closed.\n<END>", "<BEGIN>\n## `write_bool`", "Writes a boolean to the underlying output file as a 1-byte value.\n<END>", "<BEGIN>\n## `write_short`", "Writes a short integer to the und...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Writes a byte buffer to the underlying output file. Raise exception when file is already closed.
"Writes a byte buffer to the underlying output file.\n Raise exception when file is already closed."
23
false
asaskevich/binario
write
12,983
LDU_FT/mezz64/pyEight/heating_values
LDU_FT
[ "<BEGIN>\n## `fetch_userid`", "Return the userid for the specified bed side.\n<END>", "<BEGIN>\n## `room_temperature`", "Return room temperature for both sides of bed.\n<END>", "<BEGIN>\n## `heating_values`", "Return a dict of all the current heating values.\n<END>", "<BEGIN>\n## `current_sleep_stage`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the heating_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. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the heating_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. The ex...
Return a dict of all the current heating values.
"Return a dict of all the current heating values."
37
false
mezz64/pyEight
heating_values
12,984
LDU_FT/gmr/tredis/expireat
LDU_FT
[ "<BEGIN>\n## `auth`", "Request for authentication in a password-protected Redis server.\n Redis can be instructed to require a password before allowing clients\n to execute commands. This is done using the ``requirepass`` directive\n in the configuration file.", " If the password doe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expireat API. 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 expireat API. 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...
:meth:`~tredis.RedisClient.expireat` has the same effect and semantic as :meth:`~tredis.RedisClient.expire`, but instead of specifying the number of seconds representing the TTL (time to live), it takes an absolute Unix timestamp (seconds since January 1, 1970). Please for the specific ...
":meth:`~tredis.RedisClient.expireat` has the same effect and\n semantic as :meth:`~tredis.RedisClient.expire`, but instead of\n specifying the number of seconds representing the TTL (time to live),\n it takes an absolute Unix timestamp (seconds since January 1, 1970).\n\n Please for the spe...
523
false
gmr/tredis
expireat
12,985
LDU_FT/drslump/pyshould/evaluate
LDU_FT
[ "<BEGIN>\n## `resolve`", "Resolve the current expression against the supplied value\n<END>", "<BEGIN>\n## `_assertion`", "Perform the actual assertion for the given matcher and value. Override\n this method to apply a special configuration when performing the assertion.\n If the assertio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate API. 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 evaluate API. 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...
Converts the current expression into a single matcher, applying coordination operators to operands according to their binding rules
"Converts the current expression into a single matcher, applying\n coordination operators to operands according to their binding rules"
26
false
drslump/pyshould
evaluate
12,986
LDU_FT/paragbaxi/qualysapi/which_api_version
LDU_FT
[ "<BEGIN>\n## `connect`", "Return a QGAPIConnect object for v1 API pulling settings from config\n file.\n<END>", "<BEGIN>\n## `format_api_version`", "Return QualysGuard API version for api_version specified.\n<END>", "<BEGIN>\n## `which_api_version`", "Return QualysGuard API version for api_call specifi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the which_api_version API. 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 which_api_version API. 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 QualysGuard API version for api_call specified.
"Return QualysGuard API version for api_call specified."
16
false
paragbaxi/qualysapi
which_api_version
12,987
LDU_FT/d0c-s4vage/pfp/_handle_if
LDU_FT
[ "<BEGIN>\n## `instantiate`", "Create a ParamList instance for actual interpretation", " :args: TODO\n :returns: A ParamList object\n<END>", "<BEGIN>\n## `int3`", "Define the ``Int3()`` function in the interpreter. Calling\n ``Int3()`` will drop the user into an interactive debugger.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_if API. 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 _handle_if API. 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...
Handle If nodes :node: TODO :scope: TODO :ctxt: TODO :stream: TODO :returns: TODO
"Handle If nodes\n\n :node: TODO\n :scope: TODO\n :ctxt: TODO\n :stream: TODO\n :returns: TODO"
383
false
d0c-s4vage/pfp
_handle_if
12,988
LDU_FT/brocade/pynos/neighbor
LDU_FT
[ "<BEGIN>\n## `local_asn`", "Set BGP local ASN.", " Args:\n local_as (str): Local ASN of NOS deice.\n rbridge_id (str): The rbridge ID of the device on which BGP will be\n configured in a VCS fabric.\n get (bool): Get config instead of editing config. (True,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the neighbor API. 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 neighbor API. 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...
Experimental neighbor method. Args: ip_addr (str): IP Address of BGP neighbor. remote_as (str): Remote ASN of BGP neighbor. rbridge_id (str): The rbridge ID of the device on which BGP will be configured in a VCS fabric. afis (list): A list of AFIs...
"Experimental neighbor method.\n\n Args:\n ip_addr (str): IP Address of BGP neighbor.\n remote_as (str): Remote ASN of BGP neighbor.\n rbridge_id (str): The rbridge ID of the device on which BGP will be\n configured in a VCS fabric.\n afis (list): A list...
711
false
brocade/pynos
neighbor
12,989
LDU_FT/Cadasta/django-tutelary/permitted_actions
LDU_FT
[ "<BEGIN>\n## `permission_required`", "Permission checking decorator -- works like the\n ``permission_required`` decorator in the default Django\n authentication system, except that it takes a sequence of actions\n to check, an object must be supplied, and the user must have\n permission to perform all...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the permitted_actions API. 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 permitted_actions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Determine permitted actions for a given object pattern.
"Determine permitted actions for a given object pattern."
50
false
Cadasta/django-tutelary
permitted_actions
12,990
LDU_FT/richq/cmake-lint/ProcessLine
LDU_FT
[ "<BEGIN>\n## `DefaultRC`", "Check XDG_CONFIG_DIR before ~/.cmakelintrc\n<END>", "<BEGIN>\n## `CleanComments`", "quote means 'was in a quote starting this line' so that\n quoted lines can be eaten/removed.\n<END>", "<BEGIN>\n## `CheckLineLength`", "Check for lines longer than the recommended length\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ProcessLine API. 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 ProcessLine API. 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...
Arguments: filename the name of the file linenumber the line number index clean_lines CleansedLines instance errors the error handling function
"Arguments:\n filename the name of the file\n linenumber the line number index\n clean_lines CleansedLines instance\n errors the error handling function"
14
false
richq/cmake-lint
ProcessLine
12,991
LDU_FT/RobotStudio/bors/get_api_service
LDU_FT
[ "<BEGIN>\n## `_generate_request`", "Generate a request object for delivery to the API\n<END>", "<BEGIN>\n## `_generate_result`", "Generate a results object for delivery to the context object\n<END>", "<BEGIN>\n## `connect_ws`", "Connect to a websocket\n :channels: List of SockChannel instances\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_api_service API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_api_service API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns the specific service config definition
"Returns the specific service config definition"
22
false
RobotStudio/bors
get_api_service
12,992
LDU_FT/GGiecold/Cluster_Ensembles/get_compression_filter
LDU_FT
[ "<BEGIN>\n## `memory`", "Determine memory specifications of the machine.", " Returns\n -------\n mem_info : dictonary\n Holds the current values for the total, free and used memory of the system.\n<END>", "<BEGIN>\n## `get_chunk_size`", "Given a two-dimensional array with a dimension of size...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_compression_filter 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_compression_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Determine whether or not to use a compression on the array stored in a hierarchical data format, and which compression library to use to that purpose. Compression reduces the HDF5 file size and also helps improving I/O efficiency for large datasets. Parameters ---------- byte_co...
"Determine whether or not to use a compression on the array stored in\n a hierarchical data format, and which compression library to use to that purpose.\n Compression reduces the HDF5 file size and also helps improving I/O efficiency\n for large datasets.\n \n Parameters\n ----------\n ...
110
false
GGiecold/Cluster_Ensembles
get_compression_filter
12,993
LDU_FT/asphalt-framework/asphalt/executor
LDU_FT
[ "<BEGIN>\n## `run_application`", "Configure logging and start the given root component in the default asyncio event loop.", " Assuming the root component was started successfully, the event loop will continue running\n until the process is terminated.", " Initializes the logging system first based on...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the executor API. 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 executor API. 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...
Decorate a function so that it runs in an :class:`~concurrent.futures.Executor`. If a resource name is given, the first argument must be a :class:`~.Context`. Usage:: @executor def should_run_in_executor(): ... With a resource name:: @executor('resourcename') ...
"Decorate a function so that it runs in an :class:`~concurrent.futures.Executor`.\n\n If a resource name is given, the first argument must be a :class:`~.Context`.\n\n Usage::\n\n @executor\n def should_run_in_executor():\n ...\n\n With a resource name::\n\n @executor('resourcen...
143
false
asphalt-framework/asphalt
executor
12,994
LDU_FT/acutesoftware/AIKIF/main
LDU_FT
[ "<BEGIN>\n## `where_am_i`", "high level function that can estimate where user is based \n on predefined setups.\n<END>", "<BEGIN>\n## `dump_all`", "prints all attributes and returns them as a dictionary \n (mainly for testing how it will all integrate)\n<END>", "<BEGIN>\n## `summarise`", "extrap...
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...
This is a sample program to show how a learning agent can be logged using AIKIF. The idea is that this main function is your algorithm, which will run until it finds a successful result. The result is returned and the time taken is logged. There can optionally be have additional functions ...
"This is a sample program to show how a learning agent can\n be logged using AIKIF. \n The idea is that this main function is your algorithm, which\n will run until it finds a successful result. The result is \n returned and the time taken is logged.\n \n There can optionally be have additional functi...
486
false
acutesoftware/AIKIF
main
12,995
LDU_FT/veripress/veripress/search_file
LDU_FT
[ "<BEGIN>\n## `generate_pages_by_file`", "Generates custom pages of 'file' storage type.\n<END>", "<BEGIN>\n## `fix_relative_url`", "Fix post or page relative url to a standard, uniform format.", " :param publish_type: publish type ('post' or 'page')\n :param rel_url: relative url to fix\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Search for a filename in a specific search root dir. :param search_root: root dir to search :param search_filename: filename to search (no extension) :param instance_relative_root: search root is relative to instance path :return: tuple(full_file_path, extension without heading dot)
"Search for a filename in a specific search root dir.\n\n :param search_root: root dir to search\n :param search_filename: filename to search (no extension)\n :param instance_relative_root: search root is relative to instance path\n :return: tuple(full_file_path, extension without heading do...
109
false
veripress/veripress
search_file
12,996
LDU_FT/mabuchilab/QNET/parenthesize
LDU_FT
[ "<BEGIN>\n## `isdisjoint`", "Check whether two Hilbert spaces are disjoint (do not have any\n common local factors). Note that `FullSpace` is *not* disjoint with any\n other Hilbert space, while `TrivialSpace` *is* disjoint with any other\n HilbertSpace (even itself)\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parenthesize API. 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 parenthesize API. 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...
Render `expr` and wrap the result in parentheses if the precedence of `expr` is below the given `level` (or at the given `level` if `strict` is True. Extra `args` and `kwargs` are passed to the internal `doit` renderer
"Render `expr` and wrap the result in parentheses if the precedence\n of `expr` is below the given `level` (or at the given `level` if\n `strict` is True. Extra `args` and `kwargs` are passed to the internal\n `doit` renderer"
1,017
false
mabuchilab/QNET
parenthesize
12,997
LDU_FT/halcy/Mastodon.py/timeline_list
LDU_FT
[ "<BEGIN>\n## `parse_version_string`", "Parses a semver version string, stripping off \"rc\" stuff if present.\n<END>", "<BEGIN>\n## `bigger_version`", "Returns the bigger version of two version strings.\n<END>", "<BEGIN>\n## `api_version`", "Version check decorator. Currently only checks Bigger Than.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeline_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeline_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Fetches a timeline containing all the toots by users in a given list. Returns a list of `toot dicts`_.
"Fetches a timeline containing all the toots by users in a given list.\n\n Returns a list of `toot dicts`_."
313
false
halcy/Mastodon.py
timeline_list
12,998
LDU_FT/tBaxter/tango-comments/perform_flag
LDU_FT
[ "<BEGIN>\n## `next_redirect`", "Handle the \"where should I go next?\" part of comment views.", " The next value could be a\n ``?next=...`` GET arg or the URL of a given view (``fallback``). See\n the view modules for examples.", " Returns an ``HttpResponseRedirect``.\n<END>", "<BEGIN>\n## `conf...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the perform_flag API. 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 perform_flag API. 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...
Actually perform the flagging of a comment from a request.
"Actually perform the flagging of a comment from a request."
66
false
tBaxter/tango-comments
perform_flag
12,999
LDU_FT/tBuLi/symfit/_determine_minimizer
LDU_FT
[ "<BEGIN>\n## `seperate_symbols`", "Seperate the symbols in symbolic function func. Return them in alphabetical\n order.", " :param func: scipy symbolic function.\n :return: (vars, params), a tuple of all variables and parameters, each \n sorted in alphabetical order.\n :raises TypeError: only...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _determine_minimizer 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 _determine_minimizer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Determine the most suitable minimizer by the presence of bounds or constraints. :return: a subclass of `BaseMinimizer`.
"Determine the most suitable minimizer by the presence of bounds or\n constraints.\n :return: a subclass of `BaseMinimizer`."
239
false
tBuLi/symfit
_determine_minimizer
13,000
LDU_FT/rbarrois/xworkflows/_match_transition
LDU_FT
[ "<BEGIN>\n## `_setup_states`", "Create a StateList object from a 'states' Workflow attribute.\n<END>", "<BEGIN>\n## `_setup_transitions`", "Create a TransitionList object from a 'transitions' Workflow attribute.", " Args:\n tdef: list of transition definitions\n states (StateList): already ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _match_transition API. 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 _match_transition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Checks whether a given Transition matches self.names.
"Checks whether a given Transition matches self.names."
59
false
rbarrois/xworkflows
_match_transition
13,001
LDU_FT/Azure/azure-event-hubs-python/has_started
LDU_FT
[ "<BEGIN>\n## `parse_sas_token`", "Parse a SAS token into its components.", " :param sas_token: The SAS token.\n :type sas_token: str\n :rtype: dict[str, str]\n<END>", "<BEGIN>\n## `offset`", "The offset of the event data object.", " :rtype: ~azure.eventhub.common.Offset\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_started API. 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 has_started API. 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...
Whether the handler has completed all start up processes such as establishing the connection, session, link and authentication, and is not ready to process messages. **This function is now deprecated and will be removed in v2.0+.** :rtype: bool
"Whether the handler has completed all start up processes such as\n establishing the connection, session, link and authentication, and\n is not ready to process messages.\n **This function is now deprecated and will be removed in v2.0+.**\n\n :rtype: bool"
260
false
Azure/azure-event-hubs-python
has_started
13,002
LDU_FT/limix/numpy-sugar/sum2diag
LDU_FT
[ "<BEGIN>\n## `dotd`", "r\"\"\"Diagonal of :math:`\\mathrm A\\mathrm B^\\intercal`.", " If ``A`` is :math:`n\\times p` and ``B`` is :math:`p\\times n`, it is done in\n :math:`O(pn)`.", " Args:\n A (array_like): Left matrix.\n B (array_like): Right matrix.\n out (:class:`numpy.ndar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sum2diag API. 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 sum2diag API. 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...
r"""Add values ``D`` to the diagonal of matrix ``A``. Args: A (array_like): Left-hand side. D (array_like or float): Values to add. out (:class:`numpy.ndarray`, optional): copy result to. Returns: :class:`numpy.ndarray`: Resulting matrix.
"r\"\"\"Add values ``D`` to the diagonal of matrix ``A``.\n\n Args:\n A (array_like): Left-hand side.\n D (array_like or float): Values to add.\n out (:class:`numpy.ndarray`, optional): copy result to.\n\n Returns:\n :class:`numpy.ndarray`: Resulting matrix."
124
false
limix/numpy-sugar
sum2diag
13,003
LDU_FT/GemHQ/round-py/get_wallets
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new Device object.", " Devices tie Users and Applications together. For your Application to\n access and act on behalf of a User, the User must authorize a Device\n created by your Application.", " This function will return a `device_token` which y...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_wallets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_wallets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return this Applications's wallets object, populating it if fetch is True.
"Return this Applications's wallets object, populating it if fetch\n is True."
136
false
GemHQ/round-py
get_wallets
13,004
LDU_FT/jbaiter/gphoto2-cffi/path
LDU_FT
[ "<BEGIN>\n## `_logging_callback`", "Callback that outputs libgphoto2's logging message via\n Python's standard logging facilities.", " :param level: libgphoto2 logging level\n :param domain: component the message originates from\n :param message: logging message\n :param data: Other dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Absolute path to the directory on the camera's filesystem.
"Absolute path to the directory on the camera's filesystem."
78
false
jbaiter/gphoto2-cffi
path
13,005
LDU_FT/UB-UNIBAS/simple-elastic/dump
LDU_FT
[ "<BEGIN>\n## `create`", "Create the corresponding index. Will overwrite existing indexes of the same name.\n<END>", "<BEGIN>\n## `search`", "Search the index with a query.", " Can at most return 10'000 results from a search. If the search would yield more than 10'000 hits, only the first 10'000 are r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API. 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 dump API. 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...
Dumps the entire index into a json file. :param path: The path to directory where the dump should be stored. :param file_name: Name of the file the dump should be stored in. If empty the index name is used. :param kwargs: Keyword arguments for the json converter. (ex. indent=4, ensure_ascii=Fa...
"Dumps the entire index into a json file. \n\n :param path: The path to directory where the dump should be stored.\n :param file_name: Name of the file the dump should be stored in. If empty the index name is used.\n :param kwargs: Keyword arguments for the json converter. (ex. indent=4, ensure_asc...
32
false
UB-UNIBAS/simple-elastic
dump
13,006
LDU_FT/pklaus/brother_ql/add_compression
LDU_FT
[ "<BEGIN>\n## `send`", "Send instruction bytes to a printer.", " :param bytes instructions: The instructions to be sent to the printer.\n :param str printer_identifier: Identifier for the printer.\n :param str backend_identifier: Can enforce the use of a specific backend.\n :param bool blocking: Indi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_compression API. 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 add_compression API. 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...
Add an instruction enabling or disabling compression for the transmitted raster image lines. Not all models support compression. If the specific model doesn't support it but this method is called trying to enable it, either a warning is set or an exception is raised depending on the value of :py...
"Add an instruction enabling or disabling compression for the transmitted raster image lines.\n Not all models support compression. If the specific model doesn't support it but this method\n is called trying to enable it, either a warning is set or an exception is raised depending on\n the value of...
37
false
pklaus/brother_ql
add_compression
13,007
LDU_FT/coded-by-hand/mass/unzip_file
LDU_FT
[ "<BEGIN>\n## `get_requirement_from_url`", "Get a requirement from the URL, if possible. This looks for #egg\n in the URL\n<END>", "<BEGIN>\n## `package_to_requirement`", "Translate a name like Foo-1.2 to Foo==1.3\n<END>", "<BEGIN>\n## `get_mirrors`", "Return the list of mirrors from the last record fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unzip_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unzip_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Unzip the file (zip file located at filename) to the destination location
"Unzip the file (zip file located at filename) to the destination\n location"
105
false
coded-by-hand/mass
unzip_file
13,008
LDU_FT/ella/ella/process_request
LDU_FT
[ "<BEGIN>\n## `thumb`", "Generates html and thumbnails for admin site.\n<END>", "<BEGIN>\n## `clean`", "Validation function that checks the dimensions of the crop whether it fits into the original and the format.\n<END>", "<BEGIN>\n## `clean`", "Check format name uniqueness for sites", " :return: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Checks whether the page is already cached and returns the cached version if available.
"Checks whether the page is already cached and returns the cached\n version if available."
180
false
ella/ella
process_request
13,009
LDU_FT/umutbozkurt/django-rest-framework-mongoengine/to_internal_value
LDU_FT
[ "<BEGIN>\n## `to_representation`", "convert value to representation.", " DRF ModelField uses ``value_to_string`` for this purpose. Mongoengine fields do not have such method.", " This implementation uses ``django.utils.encoding.smart_text`` to convert everything to text, while keeping json-safe ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_internal_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_internal_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Calls super() from DRF, but with an addition. Creates initial_data and _validated_data for nested EmbeddedDocumentSerializers, so that recursive_save could make use of them. If meets any arbitrary data, not expected by fields, just silently drops them from validated_data.
"Calls super() from DRF, but with an addition.\n\n Creates initial_data and _validated_data for nested\n EmbeddedDocumentSerializers, so that recursive_save could make\n use of them.\n\n If meets any arbitrary data, not expected by fields,\n just silently drops them from validated_dat...
36
false
umutbozkurt/django-rest-framework-mongoengine
to_internal_value
13,010
LDU_FT/ajslater/picopt/_max_timestamps
LDU_FT
[ "<BEGIN>\n## `_get_timestamp`", "Get the timestamp from the timestamp file.", " Optionally mark it for removal if we're going to write another one.\n<END>", "<BEGIN>\n## `_get_timestamp_cached`", "Get the timestamp from the cache or fill the cache\n Much quicker than reading the same files over and ov...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _max_timestamps API. 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 _max_timestamps API. 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...
Compare a timestamp file to one passed in. Get the max.
"Compare a timestamp file to one passed in. Get the max."
86
false
ajslater/picopt
_max_timestamps
13,011
LDU_FT/kytos/python-openflow/pack
LDU_FT
[ "<BEGIN>\n## `in_port`", "Retrieve the 'in_port' that generated the PacketIn.", " This method will look for the OXM_TLV with type OFPXMT_OFB_IN_PORT on\n the `oxm_match_fields` field from `match` field and return its value,\n if the OXM exists.", " Returns:\n The integer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pack API. 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 pack API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
r"""Pack the value as a binary representation. Considering an example with UBInt8 class, that inherits from GenericType: >>> from pyof.foundation.basic_types import UBInt8 >>> objectA = UBInt8(1) >>> objectB = 5 >>> objectA.pack() b'\x01' >>> objectA.pac...
"r\"\"\"Pack the value as a binary representation.\n\n Considering an example with UBInt8 class, that inherits from\n GenericType:\n\n >>> from pyof.foundation.basic_types import UBInt8\n >>> objectA = UBInt8(1)\n >>> objectB = 5\n >>> objectA.pack()\n b'\\x01'\n ...
348
false
kytos/python-openflow
pack
13,012
LDU_FT/twidi/py-dataql/solve
LDU_FT
[ "<BEGIN>\n## `EntryPoints`", "Returns an object to use as entry point when calling ``registry.solve_resource``.", " When calling ``registry.solve_resource`` on a \"root\" resource, we don't have any value.\n This function will create a object to use as a first value and is used to specify which\n entry...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solve API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solve API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Solve a resource with a value. Arguments --------- value : ? A value to solve in combination with the given resource. The first filter of the resource will be applied on this value (next filters on the result of the previous filter). resource : dataql...
"Solve a resource with a value.\n\n Arguments\n ---------\n value : ?\n A value to solve in combination with the given resource. The first filter of the\n resource will be applied on this value (next filters on the result of the previous\n filter).\n resource...
210
false
twidi/py-dataql
solve
13,013
LDU_FT/box/genty/format_arg
LDU_FT
[ "<BEGIN>\n## `genty_repeat`", "To use in conjunction with a TestClass wrapped with @genty.", " Runs the wrapped test 'count' times:\n @genty_repeat(count)\n def test_some_function(self)\n ...", " Can also wrap a test already decorated with @genty_dataset\n @genty_repeat(3...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_arg API. 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 format_arg API. 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...
:param value: Some value in a dataset. :type value: varies :return: unicode representation of that value :rtype: `unicode`
":param value:\n Some value in a dataset.\n :type value:\n varies\n :return:\n unicode representation of that value\n :rtype:\n `unicode`"
69
false
box/genty
format_arg
13,014
LDU_FT/AaronWatters/jp_proxy_widget/handle_chunk
LDU_FT
[ "<BEGIN>\n## `get_file_path`", "Look for an existing path matching filename.\n Try to resolve relative to the module location if the path cannot by found\n using \"normal\" resolution.\n<END>", "<BEGIN>\n## `load_if_not_loaded`", "Load a javascript file to the Jupyter notebook context,\n unless it wa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_chunk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_chunk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Handle one chunk of the file. Override this method for peicewise delivery or error handling.
"Handle one chunk of the file. Override this method for peicewise delivery or error handling."
12
false
AaronWatters/jp_proxy_widget
handle_chunk
13,015
LDU_FT/salu133445/pypianoroll/get_empty_tracks
LDU_FT
[ "<BEGIN>\n## `plot_pianoroll`", "Plot a pianoroll given as a numpy array.", " Parameters\n ----------\n ax : matplotlib.axes.Axes object\n A :class:`matplotlib.axes.Axes` object where the pianoroll will be\n plotted on.\n pianoroll : np.ndarray\n A pianoroll to be plotted. The v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_empty_tracks API. 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_empty_tracks API. 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 the indices of tracks with empty pianorolls. Returns ------- empty_track_indices : list The indices of tracks with empty pianorolls.
"Return the indices of tracks with empty pianorolls.\n\n Returns\n -------\n empty_track_indices : list\n The indices of tracks with empty pianorolls."
196
false
salu133445/pypianoroll
get_empty_tracks
13,016
LDU_FT/PeerAssets/pypeerassets/net_query
LDU_FT
[ "<BEGIN>\n## `parse_vote_info`", "decode vote init tx op_return protobuf message and validate it.\n<END>", "<BEGIN>\n## `vote_init`", "initialize vote transaction, must be signed by the deck_issuer privkey\n<END>", "<BEGIN>\n## `find_vote_casts`", "find and verify vote_casts on this vote_choice_address\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the net_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the net_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Find the NetworkParams for a network by its long or short name. Raises UnsupportedNetwork if no NetworkParams is found.
"Find the NetworkParams for a network by its long or short name. Raises\n UnsupportedNetwork if no NetworkParams is found."
86
false
PeerAssets/pypeerassets
net_query
13,017
LDU_FT/aio-libs/aiomcache/replace
LDU_FT
[ "<BEGIN>\n## `acquire`", "Acquire connection from the pool, or spawn new one\n if pool maxsize permits.", " :return: ``tuple`` (reader, writer)\n<END>", "<BEGIN>\n## `release`", "Releases connection back to the pool.", " :param conn: ``namedtuple`` (reader, writer)\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace API. 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 replace API. 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...
Store this data, but only if the server *does* already hold data for this key. :param key: ``bytes``, is the key of the item. :param value: ``bytes``, data to store. :param exptime: ``int`` is expiration time. If it's 0, the item never expires. :return: ``bool``, True i...
"Store this data, but only if the server *does*\n already hold data for this key.\n\n :param key: ``bytes``, is the key of the item.\n :param value: ``bytes``, data to store.\n :param exptime: ``int`` is expiration time. If it's 0, the\n item never expires.\n :return: ``bool``...
50
false
aio-libs/aiomcache
replace
13,018
LDU_FT/wheerd/multiset/update
LDU_FT
[ "<BEGIN>\n## `isdisjoint`", "r\"\"\"Return True if the set has no elements in common with other.", " Sets are disjoint iff their intersection is the empty set.", " >>> ms = Multiset('aab')\n >>> ms.isdisjoint('bc')\n False\n >>> ms.isdisjoint(Multiset('ccd'))\n True",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. 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 update API. 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 ...
r"""Like :meth:`dict.update` but add multiplicities instead of replacing them. >>> ms = Multiset('aab') >>> ms.update('abc') >>> sorted(ms) ['a', 'a', 'a', 'b', 'b', 'c'] Note that the operator ``+=`` is equivalent to :meth:`update`, except that the operator will only a...
"r\"\"\"Like :meth:`dict.update` but add multiplicities instead of replacing them.\n\n >>> ms = Multiset('aab')\n >>> ms.update('abc')\n >>> sorted(ms)\n ['a', 'a', 'a', 'b', 'b', 'c']\n\n Note that the operator ``+=`` is equivalent to :meth:`update`, except that the operator will onl...
117
false
wheerd/multiset
update
13,019
LDU_FT/Blueqat/Blueqat/net
LDU_FT
[ "<BEGIN>\n## `pauli`", "Convert to pauli operators of universal gate model.\n\tRequires blueqat.\n<END>", "<BEGIN>\n## `make_qs`", "Make sympy symbols q0, q1, ...", " Args:\n n(int), m(int, optional):\n If specified both n and m, returns [qn, q(n+1), ..., qm],\n Only n is spe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the net API. 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 net API. 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...
Automatically create QUBO which has value 1 for all connectivity defined by array of edges and graph size N .. code-block:: python print(wq.net([[0,1],[1,2]],4)) #=> [[0. 1. 0. 0.] [0. 0. 1. 0.] [0. 0. 0. 0.] [0. 0. 0. 0.]] this create 4*4 QUBO and put value 1 on connection between 0th and 1st qubit, 1st ...
"Automatically create QUBO which has value 1 for all connectivity defined by array of edges and graph size N\n\t.. code-block:: python\n\t\tprint(wq.net([[0,1],[1,2]],4))\n\t\t#=>\n\t\t[[0. 1. 0. 0.]\n\t\t[0. 0. 1. 0.]\n\t\t[0. 0. 0. 0.]\n\t\t[0. 0. 0. 0.]]\n\tthis create 4*4 QUBO and put value 1 on connection between ...
117
false
Blueqat/Blueqat
net
13,020
LDU_FT/kobejohn/PQHelper/_previous
LDU_FT
[ "<BEGIN>\n## `_create_board_image_cv`", "Return a cv image of the board or empty board if not provided.\n<END>", "<BEGIN>\n## `_draw_swap_cv`", "Add a white tile border to indicate the swap.\n<END>", "<BEGIN>\n## `_convert_cv_to_tk`", "Convert an OpenCV image to a tkinter PhotoImage\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _previous API. 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 _previous API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get the previous summary and present it.
"Get the previous summary and present it."
114
false
kobejohn/PQHelper
_previous
13,021
LDU_FT/eight04/pyAPNG/write_file
LDU_FT
[ "<BEGIN>\n## `parse_chunks`", "Parse PNG bytes into multiple chunks. ", "\t:arg bytes b: The raw bytes of the PNG file.\n\t:return: A generator yielding :class:`Chunk`.\n\t:rtype: Iterator[Chunk]\n<END>", "<BEGIN>\n## `make_chunk`", "Create a raw chunk by composing chunk type and data. It\n\tcalculates chun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Write ``b`` to file ``file``. :arg file type: path-like or file-like object. :arg bytes b: The content.
"Write ``b`` to file ``file``.\n\t\n\t:arg file type: path-like or file-like object.\n\t:arg bytes b: The content."
58
false
eight04/pyAPNG
write_file
13,022
LDU_FT/ECESeniorDesign/lazy_record/build
LDU_FT
[ "<BEGIN>\n## `does_not_mutate`", "Prevents methods from mutating the receiver\n<END>", "<BEGIN>\n## `find_by`", "Find first record subject to restrictions in +kwargs+, raising\n RecordNotFound if no such record exists.\n<END>", "<BEGIN>\n## `first`", "Returns the first record in the query (sorting ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API. 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 build API. 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...
Builds a new record subject to the restrictions in the query. Will build intermediate (join table) records as needed, and links them to the returned record so that they are saved when the returned record is.
"Builds a new record subject to the restrictions in the query.\n Will build intermediate (join table) records as needed, and links them\n to the returned record so that they are saved when the returned record\n is."
78
false
ECESeniorDesign/lazy_record
build
13,023
LDU_FT/python-useful-helpers/threaded/configure
LDU_FT
[ "<BEGIN>\n## `build_extension`", "build_extension.", " :raises BuildFailed: cythonize impossible\n<END>", "<BEGIN>\n## `_func`", "Get wrapped function.", " :rtype: typing.Optional[typing.Callable[..., typing.Union[typing.Awaitable, typing.Any]]]\n<END>", "<BEGIN>\n## `_get_function_wrapper...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Pool executor create and configure. :param max_workers: Maximum workers :type max_workers: typing.Optional[int]
"Pool executor create and configure.\n\n :param max_workers: Maximum workers\n :type max_workers: typing.Optional[int]"
42
false
python-useful-helpers/threaded
configure
13,024
LDU_FT/fedora-infra/fedmsg/get
LDU_FT
[ "<BEGIN>\n## `set_high_water_mark`", "Set a high water mark on the zmq socket. Do so in a way that is\n cross-compatible with zeromq2 and zeromq3.\n<END>", "<BEGIN>\n## `set_tcp_keepalive`", "Set a series of TCP keepalive options on the socket if\n and only if\n 1) they are specified explicitly in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Load the configuration if necessary and forward the call to the parent.
"Load the configuration if necessary and forward the call to the parent."
248
false
fedora-infra/fedmsg
get
13,025
LDU_FT/SystemRDL/systemrdl-compiler/normalize_struct
LDU_FT
[ "<BEGIN>\n## `derive_coordinates`", "Depending on the compilation source, some members of the SourceRef\n object may be incomplete.\n Calling this function performs the necessary derivations to complete the\n object.\n<END>", "<BEGIN>\n## `format_message`", "Formats the message prior to e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_struct API. 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 normalize_struct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
5.1.1.4 - c.6: Structs shall be rendered by: 1. generating the normalized value of each member, 2. joining each member’s name with its normalized value, separated by a single underscore (_), 3. joining the member character sequences with single underscores, 4. using t...
"5.1.1.4 - c.6:\n Structs shall be rendered by:\n 1. generating the normalized value of each member,\n 2. joining each member’s name with its normalized value, separated by\n a single underscore (_),\n 3. joining the member character sequences with single underscores,\n 4. ...
207
false
SystemRDL/systemrdl-compiler
normalize_struct
13,026
LDU_FT/PatrikValkovic/grammpy/_create_rule
LDU_FT
[ "<BEGIN>\n## `reverse_cyk_transforms`", "Reverse transformation made to grammar before CYK.\n Performs following steps:\n - transform from chomsky normal form\n - restore unit rules\n - restore epsilon rules\n :param root: Root node of the parsed tree.\n :return: Restored...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_rule API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_rule API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Create ReducedUnitRule based on sequence of unit rules and end, generating rule. :param path: Sequence of unit rules. :param rule: Rule that is attached after sequence of unit rules. :return: ReducedUnitRule class.
"Create ReducedUnitRule based on sequence of unit rules and end, generating rule.\n :param path: Sequence of unit rules.\n :param rule: Rule that is attached after sequence of unit rules.\n :return: ReducedUnitRule class."
126
false
PatrikValkovic/grammpy
_create_rule
13,027
LDU_FT/rapidpro/dash/get_obj_cacheable
LDU_FT
[ "<BEGIN>\n## `intersection`", "Return the intersection of lists, using the first list to determine item order\n<END>", "<BEGIN>\n## `union`", "Return the union of lists, ordering by first seen in any list\n<END>", "<BEGIN>\n## `filter_dict`", "Creates a new dict from an existing dict that only has the giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_obj_cacheable API. 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_obj_cacheable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Gets the result of a method call, using the given object and attribute name as a cache
"Gets the result of a method call, using the given object and attribute name\n as a cache"
55
false
rapidpro/dash
get_obj_cacheable
13,028
LDU_FT/ekiro/haps/scope
LDU_FT
[ "<BEGIN>\n## `inject`", "A decorator for injection dependencies into functions/methods, based\n on their type annotations.", " .. code-block:: python", " class SomeClass:\n @inject\n def __init__(self, my_dep: DepType) -> None:\n self.my_dep = my_dep", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scope API. 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 scope API. 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...
A function that returns decorator that set scopes to some class/function .. code-block:: python @egg() @scopes(SINGLETON_SCOPE) class DepImpl: pass :param scope_type: Which scope should be used :return:
"A function that returns decorator that set scopes to some class/function\n\n .. code-block:: python\n\n @egg()\n @scopes(SINGLETON_SCOPE)\n class DepImpl:\n pass\n\n :param scope_type: Which scope should be used\n :return:"
50
false
ekiro/haps
scope
13,029
LDU_FT/benfred/implicit/rank_items
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 rank_items API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rank_items API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Rank given items for a user and returns sorted item list
"Rank given items for a user and returns sorted item list"
87
false
benfred/implicit
rank_items
13,030
LDU_FT/ucsb-cs/submit/recent_submissions
LDU_FT
[ "<BEGIN>\n## `compute_diff`", "Associate the diff (if exists) with the TestCaseResult.", " Return whether or not the outputs match.\n<END>", "<BEGIN>\n## `json_exception`", "Always return json content in the body of Exceptions to xhr requests.\n<END>", "<BEGIN>\n## `merge_users`", "Merge a non-umail ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recent_submissions 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 recent_submissions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Generate a list of the most recent submissions for each user. Only yields a submission for a user if they've made one.
"Generate a list of the most recent submissions for each user.\n\n Only yields a submission for a user if they've made one."
102
false
ucsb-cs/submit
recent_submissions
13,031
LDU_FT/Microsoft/LightGBM/num_data
LDU_FT
[ "<BEGIN>\n## `check_dependicies`", "Check the dynamic symbol versions.", " Parameters\n ----------\n objdump_string : string\n The dynamic symbol table entries of the file (result of `objdump -T` command).\n<END>", "<BEGIN>\n## `_objective_function_wrapper`", "Decorate an objective function....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the num_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the num_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 extracte...
Get the number of rows in the Dataset. Returns ------- number_of_rows : int The number of rows in the Dataset.
"Get the number of rows in the Dataset.\n\n Returns\n -------\n number_of_rows : int\n The number of rows in the Dataset."
379
false
Microsoft/LightGBM
num_data
13,032
LDU_FT/zero-os/0-core/mkpart
LDU_FT
[ "<BEGIN>\n## `stdout`", "The job stdout\n :return: string or None\n<END>", "<BEGIN>\n## `stderr`", "The job stderr\n :return: string or None\n<END>", "<BEGIN>\n## `exists`", "Returns true if the job is still running or zero-os still knows about this job ID", " After a job is finishe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mkpart API. 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 mkpart API. 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 ...
Make partition on disk :param disk: device path (/dev/sda, /dev/sdb, etc...) :param start: partition start as accepted by parted mkpart :param end: partition end as accepted by parted mkpart :param part_type: partition type as accepted by parted mkpart
"Make partition on disk\n :param disk: device path (/dev/sda, /dev/sdb, etc...)\n :param start: partition start as accepted by parted mkpart\n :param end: partition end as accepted by parted mkpart\n :param part_type: partition type as accepted by parted mkpart"
236
false
zero-os/0-core
mkpart
13,033
LDU_FT/bspaans/python-mingus/from_Composition
LDU_FT
[ "<BEGIN>\n## `valid_beat_duration`", "Return True when log2(duration) is an integer.\n<END>", "<BEGIN>\n## `add_notes`", "Add a Note, note as string or NoteContainer to the last Bar.", " If the Bar is full, a new one will automatically be created.", " If the Bar is not full but the note can'...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_Composition API. 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 from_Composition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Convert a mingus.containers.Composition to an ASCII tablature string. Automatically add an header based on the title, subtitle, author, e-mail and description attributes. An extra description of the piece can also be given. Tunings can be set by using the Track.instrument.tuning or Track.tuning at...
"Convert a mingus.containers.Composition to an ASCII tablature string.\n\n Automatically add an header based on the title, subtitle, author, e-mail\n and description attributes. An extra description of the piece can also\n be given.\n\n Tunings can be set by using the Track.instrument.tuning or Track.tuning...
535
false
bspaans/python-mingus
from_Composition
13,034
LDU_FT/miquelo/resort/resolve
LDU_FT
[ "<BEGIN>\n## `insert`", "Build the project.", "\t\t:param resort.engine.execution.Context context:\n\t\t Current execution context.\n<END>", "<BEGIN>\n## `load`", "Load the profile with the given name.", "\t\t:param str prof_name:\n\t\t Profile name.\n\t\t:rtype:\n\t\t ProfileStub\n\t\t:return:\n\t\...
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 contextual value. :param value: Contextual value. :return: If value is a function with a single parameter, which is a read-only dictionary, the return value of the function called with context properties as its parameter. If not, the value itself.
"Resolve contextual value.\n\n\t\t:param value:\n\t\t Contextual value.\n\t\t:return:\n\t\t If value is a function with a single parameter, which is a read-only\n\t\t dictionary, the return value of the function called with context\n\t\t properties as its parameter. If not, the value itself."
125
false
miquelo/resort
resolve
13,035
LDU_FT/kyper-data/python-highcharts/set_map_source
LDU_FT
[ "<BEGIN>\n## `jsonp_loader`", "jsonp_loader is to request (JSON) data from a server in a different domain (JSONP) \n and covert to python readable data. \n 1. url is the url (https) where data is located\n 2. \"prefix_regex\" and \"suffix_regex\" are regex patterns used to \n remove JSONP specific...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_map_source API. 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 set_map_source API. 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...
set map data use if the mapData is loaded directly from a https source the map_src is the https link for the mapData geojson (from jsonp) or .js formates are acceptable default is js script from highcharts' map collection: https://code.highcharts.com/mapdata/
"set map data \n use if the mapData is loaded directly from a https source\n the map_src is the https link for the mapData\n geojson (from jsonp) or .js formates are acceptable\n default is js script from highcharts' map collection: https://code.highcharts.com/mapdata/"
34
false
kyper-data/python-highcharts
set_map_source
13,036
LDU_FT/Parquery/sphinx-icontract/_error_type_and_message
LDU_FT
[ "<BEGIN>\n## `_negate_compare_text`", "Generate the text representing the negation of the comparison node.", " :param atok:\n parsing obtained with ``asttokens`` so that we can access the last tokens of a node.", " The standard ``ast`` module provides only the first token of an AST node. In l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _error_type_and_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _error_type_and_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Inspect the error argument of a contract and infer the error type and the message if the error is given as a lambda. If the error argument is not given or if it is not given as a lambda function, return immediately. The error message is inferred as the single string-literal argument to a single call in the la...
"Inspect the error argument of a contract and infer the error type and the message if the error is given as a lambda.\n\n If the error argument is not given or if it is not given as a lambda function, return immediately.\n\n The error message is inferred as the single string-literal argument to a single call in t...
29
false
Parquery/sphinx-icontract
_error_type_and_message
13,037
LDU_FT/ejeschke/ginga/stretch
LDU_FT
[ "<BEGIN>\n## `set_figure`", "Call this with the matplotlib Figure() object.\n<END>", "<BEGIN>\n## `render_image1`", "Render the image represented by (rgbobj) at dst_x, dst_y\n in the pixel space.", " NOTE: this version uses a Figure.FigImage to render the image.\n<END>", "<BEGIN>\n## `render...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stretch API. 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 stretch API. 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...
Stretch the color map via altering the shift map.
"Stretch the color map via altering the shift map."
1,455
true
ejeschke/ginga
stretch
13,038
LDU_FT/hubo1016/vlcp/registerAPIs
LDU_FT
[ "<BEGIN>\n## `get_connection`", "Get an exclusive connection, useful for blocked commands and transactions.", " You must call release or shutdown (not recommanded) to return the connection after use.", " :param container: routine container", " :returns: RedisClientBase object, with some...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the registerAPIs API. 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 registerAPIs API. 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...
API definition is in format: `(name, handler, container, discoverinfo)` if the handler is a generator, container should be specified handler should accept two arguments:: def handler(name, params): ... `name` is the method name, `params` is ...
"API definition is in format: `(name, handler, container, discoverinfo)`\n \n if the handler is a generator, container should be specified\n handler should accept two arguments::\n \n def handler(name, params):\n ...\n \n `name` is the method name, `pa...
538
false
hubo1016/vlcp
registerAPIs
13,039
LDU_FT/saltant-org/saltant-py/put
LDU_FT
[ "<BEGIN>\n## `sync`", "Sync this model with latest data on the saltant server.", " Note that in addition to returning the updated object, it also\n updates the existing object.", " Returns:\n :class:`saltant.models.base_task_type.BaseTaskType`:\n This task type i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Updates a task queue on the saltant server. Args: id (int): The ID of the task queue. name (str): The name of the task queue. description (str): The description of the task queue. private (bool): A Booleon signalling whether the queue can only be ...
"Updates a task queue on the saltant server.\n\n Args:\n id (int): The ID of the task queue.\n name (str): The name of the task queue.\n description (str): The description of the task queue.\n private (bool): A Booleon signalling whether the queue can\n ...
134
false
saltant-org/saltant-py
put
13,040
LDU_FT/kennethreitz/maya/iso8601
LDU_FT
[ "<BEGIN>\n## `comparable`", "Class decorator that ensures support for the special C{__cmp__} method.\n On Python 2 this does nothing.\n On Python 3, C{__eq__}, C{__lt__}, etc. methods are added to the class,\n relying on C{__cmp__} to implement their comparisons.\n<END>", "<BEGIN>\n## `validate_class_t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iso8601 API. 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 iso8601 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns an ISO 8601 representation of the MayaDT.
"Returns an ISO 8601 representation of the MayaDT."
47
false
kennethreitz/maya
iso8601
13,041
LDU_FT/CulturePlex/django-zotero/check_field_multiplicity
LDU_FT
[ "<BEGIN>\n## `zotero_inline_tags`", "Render an inline formset of tags.", " Usage:\n {% zotero_inline_tags formset[ option] %}\n option = \"all\" | \"media\" | \"formset\"\n<END>", "<BEGIN>\n## `zotero_tags`", "Returns the code to be translated by Zotero.\n Usage:\n {% zotero_tags\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_field_multiplicity 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 check_field_multiplicity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Check the multiplicity of a 'field' for an object.
"Check the multiplicity of a 'field' for an object."
13
false
CulturePlex/django-zotero
check_field_multiplicity
13,042
LDU_FT/google/transitfeed/AddFrequency
LDU_FT
[ "<BEGIN>\n## `GetClosestPoint`", "Returns the point on the great circle segment ab closest to x.\n<END>", "<BEGIN>\n## `Norm2`", "Returns the L_2 (Euclidean) norm of self.\n<END>", "<BEGIN>\n## `Plus`", "Returns a new point which is the pointwise sum of self and other.\n<END>", "<BEGIN>\n## `Minus`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AddFrequency API. 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 AddFrequency API. 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...
Adds a period to this trip during which the vehicle travels at regular intervals (rather than specifying exact times for each stop). Args: start_time: The time at which this headway period starts, either in numerical seconds since midnight or as "HH:MM:SS" since midnight. end_time: The ti...
"Adds a period to this trip during which the vehicle travels\n at regular intervals (rather than specifying exact times for each stop).\n\n Args:\n start_time: The time at which this headway period starts, either in\n numerical seconds since midnight or as \"HH:MM:SS\" since midnight.\n end_tim...
708
false
google/transitfeed
AddFrequency
13,043
LDU_FT/pmelchior/proxmin/update_variables
LDU_FT
[ "<BEGIN>\n## `prox_gradf_lim`", "Forward-backward step: gradient, followed by projection\n<END>", "<BEGIN>\n## `prox_lim12`", "if boundary == \"circle\":\n if j == 0:\n xy = np.array([x[0], Xs[1][0]])\n if j == 1:\n xy = np.array([Xs[0][0], x[0]])\n return [prox_circ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_variables API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_variables API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Update the primal and dual variables Note: X, Z, U are updated inline Returns: LX, R, S
"Update the primal and dual variables\n\n Note: X, Z, U are updated inline\n\n Returns: LX, R, S"
91
false
pmelchior/proxmin
update_variables
13,044
LDU_FT/zblz/naima/_spectrum
LDU_FT
[ "<BEGIN>\n## `memoize`", "Cache decorator for functions inside model classes\n<END>", "<BEGIN>\n## `lnprior`", "Return probability of parameter values according to prior knowledge.\n Parameter limits should be done here through uniform prior ditributions\n<END>", "<BEGIN>\n## `get_sampler`", "Generate ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _spectrum API. 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 _spectrum API. 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...
Compute differential bremsstrahlung spectrum for energies in ``photon_energy``. Parameters ---------- photon_energy : :class:`~astropy.units.Quantity` instance Photon energy array.
"Compute differential bremsstrahlung spectrum for energies in\n ``photon_energy``.\n\n Parameters\n ----------\n photon_energy : :class:`~astropy.units.Quantity` instance\n Photon energy array."
279
false
zblz/naima
_spectrum
13,045
LDU_FT/MaT1g3R/option/unwrap_or
LDU_FT
[ "<BEGIN>\n## `maybe`", "Shortcut method to return ``Some`` or :py:data:`NONE` based on ``val``.", " Args:\n val: Some value.", " Returns:\n ``Some(val)`` if the ``val`` is not None, otherwise :py:data:`NONE`.", " Examples:\n >>> Option.maybe(0)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unwrap_or API. 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 unwrap_or API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns the success value in the :class:`Result` or ``optb``. Args: optb: The default return value. Returns: The success value in the :class:`Result` if it is a :meth:`Result.Ok` value, otherwise ``optb``. Notes: If you wish to use a result of a...
"Returns the success value in the :class:`Result` or ``optb``.\n\n Args:\n optb: The default return value.\n\n Returns:\n The success value in the :class:`Result` if it is a\n :meth:`Result.Ok` value, otherwise ``optb``.\n\n Notes:\n If you wish to use a ...
107
false
MaT1g3R/option
unwrap_or
13,046
LDU_FT/HydrelioxGitHub/PyYeelight/turn_on
LDU_FT
[ "<BEGIN>\n## `build_message`", "Make the one string message sent to the bulb\n<END>", "<BEGIN>\n## `decode_response`", "Put in self.result the data from the response\n Can generate exception if the command and the response id does not match\n of if the response is an error\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the turn_on API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the turn_on API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
This method is used to switch on the smart LED (software managed on). :param effect: if the change is made suddenly or smoothly :param transition_time: in case the change is made smoothly, time in ms that change last :type effect: str :type transition_time : int
"This method is used to switch on the smart LED (software managed on).\n\n :param effect: if the change is made suddenly or smoothly\n :param transition_time: in case the change is made smoothly, time in ms that change last\n\n :type effect: str\n :type transition_time : int"
40
false
HydrelioxGitHub/PyYeelight
turn_on
13,047
LDU_FT/wright-group/WrightTools/write
LDU_FT
[ "<BEGIN>\n## `flatten_list`", "Flatten an irregular sequence.", " Works generally but may be slower than it could\n be if you can make assumptions about your list.", " `Source`__", " __ https://stackoverflow.com/a/10824086", " Parameters\n ----------\n items : iterable\n The ir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Write to file. Parameters ---------- section : string Section. option : string Option. value : string Value.
"Write to file.\n\n Parameters\n ----------\n section : string\n Section.\n option : string\n Option.\n value : string\n Value."
603
false
wright-group/WrightTools
write
13,048
LDU_FT/jobovy/galpy/sampleLOS
LDU_FT
[ "<BEGIN>\n## `_evaluate`", "NAME:\n _evaluate\n PURPOSE:\n evaluate the potential at (R,z)\n INPUT:\n R - Cylindrical Galactocentric radius\n z - vertical height\n phi - azimuth\n t - time\n OUTPUT:\n potential at (R,z)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sampleLOS API. 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 sampleLOS API. 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...
NAME: sampleLOS PURPOSE: sample along a given LOS INPUT: los - line of sight (in deg, unless deg=False; can be Quantity) n= number of desired samples deg= los in degrees? (default=True) targetSurfmass, targetSigma2= if True, use t...
"NAME:\n\n sampleLOS\n\n PURPOSE:\n\n sample along a given LOS\n\n INPUT:\n\n los - line of sight (in deg, unless deg=False; can be Quantity)\n\n n= number of desired samples\n\n deg= los in degrees? (default=True)\n\n targetSurfmass, targetSigma...
5,004
true
jobovy/galpy
sampleLOS
13,049
LDU_FT/KnowledgeLinks/rdfframework/get_uri_parts
LDU_FT
[ "<BEGIN>\n## `get_obj_frm_str`", "Returns a python object from a python object string", " args:\n obj_str: python object path expamle\n \"rdfframework.connections.ConnManager[{param1}]\"", " kwargs:\n * kwargs used to format the 'obj_str'\n<END>", "<BEGIN>\n## `pyfile_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_uri_parts API. 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_uri_parts API. 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...
takes an value and returns a tuple of the parts args: value: a uri in any form pyuri, ttl or full IRI
"takes an value and returns a tuple of the parts\n\n args:\n value: a uri in any form pyuri, ttl or full IRI"
627
false
KnowledgeLinks/rdfframework
get_uri_parts
13,050
LDU_FT/RI-imaging/qpsphere/analyze
LDU_FT
[ "<BEGIN>\n## `interpolate_grid`", "Return the 2D field averaged radially w.r.t. the center\n<END>", "<BEGIN>\n## `rytov`", "Field behind a dielectric sphere in the Rytov approximation", " Parameters\n ----------\n radius: float\n Radius of the sphere [m]\n sphere_index: float\n Ref...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze API. 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 analyze API. 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...
Fit refractive index and radius to a phase image of a sphere Parameters ---------- qpi: QPImage Quantitative phase image information model: str Name of the light-scattering model (see :const:`qpsphere.models.available`) n0: float Approximate refractive index of the s...
"Fit refractive index and radius to a phase image of a sphere\n\n Parameters\n ----------\n qpi: QPImage\n Quantitative phase image information\n model: str\n Name of the light-scattering model\n (see :const:`qpsphere.models.available`)\n n0: float\n Approximate refractive ind...
179
false
RI-imaging/qpsphere
analyze
13,051
LDU_FT/unt-libraries/pyuntl/get_adjustable_form
LDU_FT
[ "<BEGIN>\n## `normalize_LCSH`", "Normalize a LCSH subject heading prior to indexing.\n<END>", "<BEGIN>\n## `normalize_UNTL`", "Normalize a UNTL subject heading for consistency.\n<END>", "<BEGIN>\n## `UNTL_to_encodedUNTL`", "Normalize a UNTL subject heading to be used in SOLR.\n<END>", "<BEGIN>\n## `untl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_adjustable_form 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_adjustable_form 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...
Create an adjustable form from an element dispatch table.
"Create an adjustable form from an element dispatch table."
144
false
unt-libraries/pyuntl
get_adjustable_form
13,052
LDU_FT/StackStorm/pybind/_set_isns_vrf_instance
LDU_FT
[ "<BEGIN>\n## `_set_virtual_mac`", "Setter method for virtual_mac, mapped from YANG variable /rbridge_id/interface/ve/ipv6/vrrpv3e/virtual_mac (container)\n If this variable is read-only (config: false) in the\n source YANG file, then _set_virtual_mac is considered as a private\n method. Backends looking ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_isns_vrf_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_isns_vrf_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Setter method for isns_vrf_instance, mapped from YANG variable /isns/isns_vrf/isns_vrf_instance (isns-vrf-type) If this variable is read-only (config: false) in the source YANG file, then _set_isns_vrf_instance is considered as a private method. Backends looking to populate this variable should do so vi...
"Setter method for isns_vrf_instance, mapped from YANG variable /isns/isns_vrf/isns_vrf_instance (isns-vrf-type)\n If this variable is read-only (config: false) in the\n source YANG file, then _set_isns_vrf_instance is considered as a private\n method. Backends looking to populate this variable should\n do ...
3,057
true
StackStorm/pybind
_set_isns_vrf_instance
13,053
LDU_FT/jilljenn/tryalgo/min_scalar_prod
LDU_FT
[ "<BEGIN>\n## `three_partition`", "partition a set of integers in 3 parts of same total value", " :param x: table of non negative values\n :returns: triplet of the integers encoding the sets, or None otherwise\n :complexity: :math:`O(2^{2n})`\n<END>", "<BEGIN>\n## `freivalds`", "Tests matrix product...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the min_scalar_prod API. 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 min_scalar_prod API. 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...
Permute vector to minimize scalar product :param x: :param y: x, y are vectors of same size :returns: min sum x[i] * y[sigma[i]] over all permutations sigma :complexity: O(n log n)
"Permute vector to minimize scalar product\n\n :param x:\n :param y: x, y are vectors of same size\n :returns: min sum x[i] * y[sigma[i]] over all permutations sigma\n :complexity: O(n log n)"
423
false
jilljenn/tryalgo
min_scalar_prod
13,054
LDU_FT/mattjj/pyslds/expected_hmm_logprob
LDU_FT
[ "<BEGIN>\n## `generate_states`", "Jointly sample the discrete and continuous states\n<END>", "<BEGIN>\n## `_set_gaussian_expected_stats`", "Both meanfield and VBEM require expected statistics of the continuous latent\n states, x. This is a helper function to take E[x_t], E[x_t x_t^T] and E[x_{t+1}, x_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expected_hmm_logprob 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 expected_hmm_logprob API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
:param pi_0: initial distribution :param trans_matrix: transition matrix :param stats: tuple (E[z_t], \sum_t E[z_t z_{t+1}.T]) :return: E_{q(z)} [ log p(z) ]
":param pi_0: initial distribution\n :param trans_matrix: transition matrix\n :param stats: tuple (E[z_t], \\sum_t E[z_t z_{t+1}.T])\n\n :return: E_{q(z)} [ log p(z) ]"
29
false
mattjj/pyslds
expected_hmm_logprob
13,055
LDU_FT/ariebovenberg/snug/execute_async
LDU_FT
[ "<BEGIN>\n## `check_response`", "raise a descriptive exception on a \"bad request\" response\n<END>", "<BEGIN>\n## `_urllib_send`", "Send a request with an :mod:`urllib` opener\n<END>", "<BEGIN>\n## `handle_errors`", "raise a descriptive exception on a \"bad request\" response\n<END>", "<BEGIN>\n## `exe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_async API. 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 execute_async API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Execute a query asynchronously, returning its result Parameters ---------- query: Query[T] The query to resolve auth: ~typing.Tuple[str, str] \ or ~typing.Callable[[Request], Request] or None This may be: * A (username, password)-tuple for basic authentication *...
"Execute a query asynchronously, returning its result\n\n Parameters\n ----------\n query: Query[T]\n The query to resolve\n auth: ~typing.Tuple[str, str] \\\n or ~typing.Callable[[Request], Request] or None\n This may be:\n\n * A (username, password)-tuple for basic authenticati...
37
false
ariebovenberg/snug
execute_async
13,056
LDU_FT/graphql-python/graphql-core-next/default_type_resolver
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 default_type_resolver 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 default_type_resolver API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Default type resolver function. If a resolve_type function is not given, then a default resolve behavior is used which attempts two strategies: First, See if the provided value has a `__typename` field defined, if so, use that value as name of the resolved type. Otherwise, test each possible type...
"Default type resolver function.\n\n If a resolve_type function is not given, then a default resolve behavior is used\n which attempts two strategies:\n\n First, See if the provided value has a `__typename` field defined, if so, use that\n value as name of the resolved type.\n\n Otherwise, test each poss...
470
false
graphql-python/graphql-core-next
default_type_resolver
13,057
LDU_FT/timstaley/voeventdb/setup_logging
LDU_FT
[ "<BEGIN>\n## `setup_logging`", "Set up basic (INFO level) and debug logfiles\n<END>", "<BEGIN>\n## `_list_class_vars`", "Return a dict of all 'regular' (i.e. not prefixed ``_``) class attributes.\n<END>", "<BEGIN>\n## `apiv1_root_view`", "API root url. Shows a list of active endpoints.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_logging API. 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 setup_logging API. 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...
Set up basic (INFO level) and debug logfiles
"Set up basic (INFO level) and debug logfiles"
56
false
timstaley/voeventdb
setup_logging
13,058
LDU_FT/CZ-NIC/yangson/sorted_bits
LDU_FT
[ "<BEGIN>\n## `schema_root`", "Return the root node of the receiver's schema.\n<END>", "<BEGIN>\n## `iname`", "Return the instance name corresponding to the receiver.\n<END>", "<BEGIN>\n## `_node_digest`", "Return dictionary of receiver's properties suitable for clients.\n<END>", "<BEGIN>\n## `_iname2qna...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sorted_bits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sorted_bits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return list of bit items sorted by position.
"Return list of bit items sorted by position."
352
false
CZ-NIC/yangson
sorted_bits
13,059
LDU_FT/plandes/actioncli/load_all
LDU_FT
[ "<BEGIN>\n## `populate`", "Set attributes in ``obj`` with ``setattr`` from the all values in\n ``section``.\n<END>", "<BEGIN>\n## `_get_calling_module`", "Get the last module in the call stack that is not this module or ``None`` if\n the call originated from this module.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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 load_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...
Load all instances witih multiple threads. :param workers: number of workers to use to load instances, which defaults to what was given in the class initializer :param limit: return a maximum, which defaults to no limit :param n_expected: rerun the iteration on the data...
"Load all instances witih multiple threads.\n\n :param workers: number of workers to use to load instances, which\n defaults to what was given in the class initializer\n :param limit: return a maximum, which defaults to no limit\n\n :param n_expected: rerun the iteration on t...
67
false
plandes/actioncli
load_all
13,060
LDU_FT/kubernetes-client/python/replace_cluster_custom_object_scale
LDU_FT
[ "<BEGIN>\n## `delete_namespaced_horizontal_pod_autoscaler`", "delete a HorizontalPodAutoscaler\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.delete_namespaced_horizontal_pod_autoscaler(name, nam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_cluster_custom_object_scale API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_cluster_custom_object_scale API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
replace scale of the specified cluster scoped custom object This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_custom_object_scale(group, version, plural, name, body, async_req=True) >...
"replace scale of the specified cluster scoped custom object\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.replace_cluster_custom_object_scale(group, version, plural, name, body, async_req=True)\n ...
1,652
true
kubernetes-client/python
replace_cluster_custom_object_scale
13,061
LDU_FT/nickjj/ansigenome/graph_png
LDU_FT
[ "<BEGIN>\n## `epilogue`", "Return the epilogue for the help command.\n<END>", "<BEGIN>\n## `command_name`", "Return a snippet of help text for this command.\n<END>", "<BEGIN>\n## `has_colors`", "Determine if the terminal supports ansi colors.\n<END>", "<BEGIN>\n## `file_to_string`", "Return the conten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the graph_png API. 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 graph_png API. 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...
Export a graph of the data in png format using graphviz/dot.
"Export a graph of the data in png format using graphviz/dot."
58
false
nickjj/ansigenome
graph_png
13,062
LDU_FT/pyupio/pyup/can_pull
LDU_FT
[ "<BEGIN>\n## `fetch_public_key`", "Download RSA public key Travis will use for this repo.", " Travis API docs: http://docs.travis-ci.com/api/#repository-keys\n<END>", "<BEGIN>\n## `is_empty_branch`", "Compares the top commits of two branches.\n Please note: This function isn't checking if `base_br...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_pull API. 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 can_pull API. 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...
Determines if pull requests should be created :return: bool
"Determines if pull requests should be created\n :return: bool"
31
false
pyupio/pyup
can_pull
13,063
LDU_FT/romanorac/discomll/nominal_splits
LDU_FT
[ "<BEGIN>\n## `random_init_map`", "Assign datapoint `e` randomly to one of the `k` clusters.\n<END>", "<BEGIN>\n## `estimate_map`", "Find the cluster `i` that is closest to the datapoint `e`.\n<END>", "<BEGIN>\n## `estimate_reduce`", "Estimate the cluster centers for each cluster.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nominal_splits API. 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 nominal_splits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Function uses heuristic to find best binary split of nominal values. Heuristic is described in (1) and it is originally defined for binary classes. We extend it to work with multiple classes by comparing label with least samples to others. x: numpy array - nominal feature y: numpy array - label x_v...
"Function uses heuristic to find best binary split of nominal values. Heuristic is described in (1) and it is\n originally defined for binary classes. We extend it to work with multiple classes by comparing label with least\n samples to others.\n\n x: numpy array - nominal feature\n y: numpy array - label\n...
77
false
romanorac/discomll
nominal_splits
13,064
LDU_FT/QInfer/python-qinfer/format_uncertainty
LDU_FT
[ "<BEGIN>\n## `h`", "r\"\"\"\n Returns the step size to be used in numerical differentiation with \n respect to the model parameters.", " The step size is given as a vector with length ``n_modelparams`` so \n that each model parameter can be weighted independently.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_uncertainty 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 format_uncertainty 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...
Given a value and its uncertianty, format as a LaTeX string for pretty-printing. :param int scinotn_break: How many decimal points to print before breaking into scientific notation.
"Given a value and its uncertianty, format as a LaTeX string\n for pretty-printing.\n\n :param int scinotn_break: How many decimal points to print\n before breaking into scientific notation."
362
false
QInfer/python-qinfer
format_uncertainty
13,065
LDU_FT/gouthambs/Flask-Blogging/count_posts
LDU_FT
[ "<BEGIN>\n## `init_app`", "Initialize the engine.", " :param app: The app to use\n :type app: Object\n :param storage: The blog storage instance that implements the\n :type storage: Object\n :param cache: (Optional) A Flask-Cache object to enable caching\n :type cache: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_posts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_posts API. 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...
Returns the total number of posts for the give filter :param tag: Filter by a specific tag :type tag: str :param user_id: Filter by a specific user :type user_id: str :param include_draft: Whether to include posts marked as draft or not :type include_draft: bool ...
"Returns the total number of posts for the give filter\n\n :param tag: Filter by a specific tag\n :type tag: str\n :param user_id: Filter by a specific user\n :type user_id: str\n :param include_draft: Whether to include posts marked as draft or not\n :type include_draft: bool\...
53
false
gouthambs/Flask-Blogging
count_posts
13,066
LDU_FT/edibledinos/pwnypack/compile
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 compile API. 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 compile API. 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...
Translate a list of operations into its assembler source. Arguments: ops(list): A list of shellcode operations. Returns: str: The assembler source code that implements the shellcode.
"Translate a list of operations into its assembler source.\n\n Arguments:\n ops(list): A list of shellcode operations.\n\n Returns:\n str: The assembler source code that implements the shellcode."
353
false
edibledinos/pwnypack
compile
13,067
LDU_FT/jborean93/smbprotocol/unpack
LDU_FT
[ "<BEGIN>\n## `unpack_multiple`", "Get's a list of SMB2NetworkInterfaceInfo messages from the byte value\n passed in. This is the raw buffer value that is set on the\n SMB2IOCTLResponse message.", " :param data: bytes of the messages\n :return: List of SMB2NetworkInterfaceInfo message...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack API. 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 unpack API. 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 ...
Takes in a byte string and set's the field value based on field definition. :param structure: The message structure class object :param data: The byte string of the data to unpack :return: The remaining data for subsequent fields
"Takes in a byte string and set's the field value based on field\n definition.\n\n :param structure: The message structure class object\n :param data: The byte string of the data to unpack\n :return: The remaining data for subsequent fields"
106
false
jborean93/smbprotocol
unpack
13,068
LDU_FT/bitlabstudio/django-libs/is_ignorable_request
LDU_FT
[ "<BEGIN>\n## `add_form_widget_attr`", "Adds widget attributes to a bound form field.", " This is helpful if you would like to add a certain class to all your forms\n (i.e. `form-control` to all form fields when you are using Bootstrap)::", " {% load libs_tags %}\n {% for field in form.fiel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ignorable_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 is_ignorable_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. ...
Returns True if the given request *shouldn't* notify the site managers.
"Returns True if the given request *shouldn't* notify the site managers."
101
false
bitlabstudio/django-libs
is_ignorable_request
13,069
LDU_FT/sivakov512/python-static-api-generator/convert_content
LDU_FT
[ "<BEGIN>\n## `_validate_extension`", "Validates that source file extension is supported.", " :raises: UnsupportedExtensionError\n<END>", "<BEGIN>\n## `convert_content`", "Convert content of source file into dict result.\n<END>", "<BEGIN>\n## `_get_tags_and_content`", "Splits content into two stri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Convert content of source file into dict result.
"Convert content of source file into dict result."
14
false
sivakov512/python-static-api-generator
convert_content
13,070
LDU_FT/daler/metaseq/get_gtf
LDU_FT
[ "<BEGIN>\n## `requirements_check`", "Ensure we have programs needed to download/manipulate the data\n<END>", "<BEGIN>\n## `_up_to_date`", "Make sure md5sum(fn) == md5, and if not, delete `fn`.\n<END>", "<BEGIN>\n## `logged_command`", "helper function to log a command and then run it\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gtf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gtf API. 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...
Download GTF file from Ensembl, only keeping the chr17 entries.
"Download GTF file from Ensembl, only keeping the chr17 entries."
400
false
daler/metaseq
get_gtf
13,071
LDU_FT/boppreh/keyboard/parse_hotkey_combinations
LDU_FT
[ "<BEGIN>\n## `is_modifier`", "Returns True if `key` is a scan code or name of a modifier key.\n<END>", "<BEGIN>\n## `key_to_scan_codes`", "Returns a list of scan codes associated with this key (name or scan code).\n<END>", "<BEGIN>\n## `parse_hotkey`", "Parses a user-provided hotkey into nested tuples rep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_hotkey_combinations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_hotkey_combinations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Parses a user-provided hotkey. Differently from `parse_hotkey`, instead of each step being a list of the different scan codes for each key, each step is a list of all possible combinations of those scan codes.
"Parses a user-provided hotkey. Differently from `parse_hotkey`,\n instead of each step being a list of the different scan codes for each key,\n each step is a list of all possible combinations of those scan codes."
158
false
boppreh/keyboard
parse_hotkey_combinations
13,072